/* KCC shared roles: existing navy/gold identity and locally hosted Vazirmatn. */
@font-face{font-family:Vazir;src:url('assets/vazirmatn.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
:root{
 --kcc-ink:#102c44;--kcc-paper:#f4f1ea;--kcc-surface:#fff;--kcc-muted:#51645f;
 --kcc-on-ink:#f4f1ea;--kcc-muted-on-ink:#d7e2e7;--kcc-accent:#b99b65;
 --kcc-line:#c8d0cd;--kcc-control-border:#80928b;--kcc-focus:#8c6a30;--kcc-error:#942e35;
 --kcc-font:Vazir,Tahoma,sans-serif;--font-ui:var(--kcc-font);--font-latin:var(--kcc-font);
 --kcc-space-1:4px;--kcc-space-2:8px;--kcc-space-3:12px;--kcc-space-4:16px;
 --kcc-space-6:24px;--kcc-space-8:32px;--kcc-space-12:48px;--kcc-space-16:64px;
 --kcc-ease:cubic-bezier(.16,1,.3,1);--kcc-feedback:140ms;--kcc-state:200ms;
 --navy:var(--kcc-ink);--ivory:var(--kcc-paper);--gold:var(--kcc-accent);--ink:var(--kcc-ink);
 --muted:var(--kcc-muted);--line:var(--kcc-line);--error:var(--kcc-error);
 color-scheme:light;font-family:var(--kcc-font)
}
body{font-family:var(--kcc-font);font-size:16px;line-height:1.85}
button,input,select,textarea{font-family:inherit}
h1,h2,h3{text-wrap:balance}
p{text-wrap:pretty}
::selection{background:#d9c497;color:#102c44}
input,textarea{caret-color:var(--kcc-ink)}
a{text-underline-offset:.3em}
button,.button{transition:transform var(--kcc-feedback) var(--kcc-ease),background-color var(--kcc-feedback) ease,border-color var(--kcc-feedback) ease}
.button:active,button:active{transform:translateY(1px)}
.button[aria-busy=true]{cursor:wait;opacity:.7}
:focus-visible{outline-color:var(--kcc-focus)}
.brand strong{font-size:16px;line-height:1.8;font-weight:750}
.brand small{font-size:12px;line-height:1.65}
.section-head h2,.journal h2{font-size:38px;line-height:1.55;letter-spacing:0}
.section-sub,.journal-intro{font-size:16px;line-height:1.95}
.reader-prose{max-width:68ch;font-size:18px;line-height:2.1}
.reader-lead{font-size:20px;line-height:1.9;max-width:60ch}
.collection-note,.preview-caption,.card-meta,.reader-aside>p{font-size:14px;line-height:1.9}
.footer p,.footer .brand small{font-size:13px;line-height:1.9}
.identity-credits{font-size:14px}
@media(max-width:600px){
 .brand strong{font-size:13px;line-height:1.8}
 .brand small{font-size:11px;line-height:1.7}
 .section-head h2,.journal h2{font-size:32px}
 .section-sub,.journal-intro{font-size:16px}
 .reader-prose{font-size:17px;line-height:2.05}
 .reader-lead{font-size:18px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.button:active,button:active{transform:none!important}}

/* Step 8: a clear navigation rhythm and consistent control finish. */
.desktop-nav{gap:0!important}
.desktop-nav .nav-group{display:flex;align-items:center;gap:24px}
.desktop-nav .nav-group+.nav-group{margin-inline-start:24px;padding-inline-start:24px;border-inline-start:1px solid var(--kcc-line)}
.dialog-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}
.button,.icon-btn,.language-choices button{border-radius:8px}
.button:focus-visible,.icon-btn:focus-visible,.language:focus-visible,.tabs button:focus-visible{outline:3px solid var(--kcc-focus);outline-offset:4px}
.audio-card,.activity-card,.book-card,.article-card,.poetry-card{border-radius:12px;overflow:hidden}
.section-head{margin-bottom:32px}
.section-sub{max-width:42ch}
@media(max-width:850px){
 .mobile-nav:not([hidden]){display:block}
 .mobile-nav .nav-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;border-bottom:1px solid var(--kcc-line);padding-block:8px}
 .mobile-nav .nav-group a{border-bottom:0;min-height:48px}
}
@media(max-width:600px){.section-head{margin-bottom:24px}.section-sub{max-width:none}}
html:lang(en) .brand strong{font-size:14px}
@media(max-width:600px){html:lang(en) .brand strong{font-size:13px}}
