/* Shared public refinements. Theme palettes and the chosen Persian font remain authoritative. */
.fb-article { background: var(--fb-card); color: var(--fb-fg); border: 1px solid var(--fb-line); border-radius: var(--fb-radius); padding: 20px; }
.fb-meta { color: var(--fb-muted); font-size: .875rem; }
.fb-article :where(input:not([type=checkbox]), textarea, select) { background: var(--fb-card); color: var(--fb-fg); }
:where(html[class^="theme-"]) { scroll-padding-block-start: 7rem; }
:where(html[class^="theme-"]) :focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
:where(.kc-hero__lead, .kc-hero__side, .kc-card__body, .kc-card, .md-pick, .st-playlist__body, .kc-layout__main, .md-list__body) { min-inline-size: 0; }
:where(.kc-prose, .md-prose, .mg-prose, .np-prose, .st-prose) { overflow-wrap: anywhere; text-align: start; }
:where(.kc-prose, .md-prose, .mg-prose, .np-prose, .st-prose) :where(p, li) { line-height: 2.05; }
:where(.kc-prose, .md-prose, .mg-prose, .np-prose, .st-prose) :where(table, pre) { display: block; max-inline-size: 100%; overflow-x: auto; }
:where(.kc-prose, .md-prose, .mg-prose, .np-prose, .st-prose) :where(img, video) { max-inline-size: 100%; height: auto; }
:where(.kc-card__title, .md-hero__title, .md-pick__title, .st-studio__title, .kc-article__title, .md-article__title, .st-article__title) { text-wrap: pretty; letter-spacing: normal; }
:where(.kc-nav, .md-nav, .st-nav, .mg-nav, .np-nav) a { text-underline-offset: .3em; }
:where(.st-nav__list > li:focus-within) .st-nav__submenu { display: block; }
:where(.kc-search, .md-search, .st-search) :where(input, button) { min-block-size: 44px; }
:where(.kc-share__btn, .md-share a, .st-share a, .kc-nav__toggle, .md-nav__toggle, .st-nav__toggle) { min-block-size: 44px; min-inline-size: 44px; }

/* Classic: a balanced front-page lead and compact supporting stories. */
.kc-header { border-block-start: 3px solid var(--kc-primary); }
.kc-brand__name { font-size: clamp(1.55rem, 2.4vw, 2rem); letter-spacing: -.025em; }
.kc-header__inner { padding-block: 1.15rem; }
.kc-home { padding-block-start: .35rem; }
.kc-panel { box-shadow: 0 4px 22px rgb(15 23 42 / .035); }
.kc-panel__head { padding-block: 1.05rem; }
.kc-panel__title { line-height: 1.6; }
.kc-card { border-color: var(--kc-border); }
.kc-card:hover { transform: none; box-shadow: 0 5px 18px rgb(15 23 42 / .07); }
.kc-card__body { padding: .9rem 1rem; gap: .55rem; }
.kc-card__title { line-height: 1.85; }
.kc-card__meta { row-gap: .35rem; }
.kc-hero__side { grid-template-columns: 1fr; align-content: stretch; }
.kc-hero__side .kc-card { min-block-size: 112px; }
.kc-hero__side .kc-card__media { inline-size: 32%; max-inline-size: 136px; }
.kc-hero__side .kc-card__author, .kc-hero__side .kc-card__reading { display: none; }
.kc-hero__lead .kc-card--overlay .kc-card__body { padding: 1.5rem; }
.kc-hero__lead .kc-card--overlay .kc-card__title { font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.7; }
.kc-card--overlay.kc-card--text { min-block-size: 260px; background: var(--kc-secondary); }
.kc-article { padding: clamp(1rem, 3vw, 2rem); }
.kc-article__title { font-size: clamp(1.5rem, 3vw, 2.35rem); line-height: 1.65; }
.kc-article__lead { line-height: 2; border-inline-start: 3px solid var(--kc-primary); padding-inline-start: 1rem; }
.kc-prose { max-inline-size: 72ch; margin-inline: auto; }

/* Modern: a calmer masthead, deliberate section rhythm and clearer reading measure. */
.md-header__inner { padding-block: 1.6rem; }
.md-brand__name { letter-spacing: -.025em; }
.md-hero { padding-block-end: 2.2rem; }
.md-hero__media { overflow: hidden; border-radius: 12px; }
.md-hero__title { font-size: clamp(1.6rem, 3.4vw, 2.8rem); line-height: 1.65; max-inline-size: 30ch; }
.md-hero__dek { line-height: 2; max-inline-size: 70ch; }
.md-hero__rest { gap: 1.25rem; }
.md-head { align-items: baseline; gap: .8rem; }
.md-head__title { line-height: 1.7; }
.md-list__item { padding-block: 1.2rem; }
.md-list__title { line-height: 1.85; }
.md-list__num { font-variant-numeric: tabular-nums; opacity: .7; }
.md-pick { padding-block: 1.2rem; }
.md-pick__title { line-height: 1.85; }
.md-article__title { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.65; }
.md-article__dek { line-height: 1.9; }
.md-article__figure img { border-radius: 12px; }
.md-leading { line-height: 2; }
.md-prose { max-inline-size: 68ch; margin-inline: auto; }

/* Studio keeps its dark video identity, with lighter borders and quieter controls. */
.st-header__inner { padding-block: 1.15rem; }
.st-studio__stage, .st-studio__playlist, .st-article { border: 1px solid var(--st-line); }
.st-studio__caption { padding: 1.3rem 1.5rem 1.5rem; }
.st-studio__title { line-height: 1.75; font-size: clamp(1.25rem, 2.3vw, 1.85rem); }
.st-studio__text { line-height: 1.95; }
.st-studio__badge { box-shadow: 0 0 0 10px rgb(255 255 255 / .1), 0 6px 24px rgb(0 0 0 / .22); }
.st-playlist__item { padding-block: .8rem; }
.st-playlist__body strong { line-height: 1.85; }
.st-article__title { font-size: clamp(1.6rem, 3.3vw, 2.5rem); line-height: 1.65; }
.st-prose { max-inline-size: 72ch; margin-inline: auto; }

@media (min-width: 1000px) {
    .md-hero__lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2.5rem; align-items: center; }
    .md-hero__media { grid-column: 2; grid-row: 1; margin: 0; block-size: 100%; }
    .md-hero__media img { aspect-ratio: 4 / 3; block-size: 100%; min-block-size: 330px; }
    .md-hero__text { grid-column: 1; grid-row: 1; min-inline-size: 0; }
    .md-hero__title { font-size: clamp(1.8rem, 2.6vw, 2.35rem); }
    .md-hero__lead--text { display: block; }
}
@media (min-width: 900px) {
    .kc-hero__lead { min-block-size: 380px; }
    .kc-hero__lead .kc-card__media { position: absolute; inset: 0; inline-size: 100%; }
    .kc-hero__side { grid-template-rows: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .kc-header__inner, .md-header__inner, .st-header__inner { padding-block: .9rem; gap: .8rem; }
    .kc-panel { border-radius: 10px; }
    .kc-panel__body, .kc-panel__head { padding-inline: 1rem; }
    .kc-hero__lead .kc-card--overlay .kc-card__body { padding: 1.1rem; }
    .kc-article__facts { gap: .9rem; }
    .md-hero { padding-block-end: 1.5rem; }
    .md-list__item { padding-block: 1rem; }
    .md-meta { row-gap: .45rem; }
    .st-studio__caption { padding: 1rem; }
    .st-studio__badge { inline-size: 60px; block-size: 60px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .kc-card__media img, .st-studio__badge { transition: none; }
    .kc-card:hover .kc-card__media img { transform: none; }
}
@media print {
    :where(.kc-prose, .md-prose, .st-prose) { max-inline-size: none; color: #000; }
    :where(.kc-header, .md-header, .st-header) { position: static; }
}
