/* آروم شدم — the static article section (/maghalat/).
   The app's «Navy · Ice · Gold» tokens (src/styles/tokens.css) and its two faces:
   Markazi Text for display, Estedad for reading. Light only, like the app. No JavaScript:
   every page is finished HTML. Logical properties throughout so RTL stays native. */

@font-face { font-family: 'Estedad'; font-weight: 400; font-display: swap; src: url(fonts/estedad-arabic-400.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Estedad'; font-weight: 400; font-display: swap; src: url(fonts/estedad-latin-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2190-21FF, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Estedad'; font-weight: 600; font-display: swap; src: url(fonts/estedad-arabic-600.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Estedad'; font-weight: 600; font-display: swap; src: url(fonts/estedad-latin-600.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2190-21FF, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Estedad'; font-weight: 700; font-display: swap; src: url(fonts/estedad-arabic-700.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Estedad'; font-weight: 700; font-display: swap; src: url(fonts/estedad-latin-700.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2190-21FF, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Markazi'; font-weight: 500; font-display: swap; src: url(fonts/markazi-arabic-500.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Markazi'; font-weight: 500; font-display: swap; src: url(fonts/markazi-latin-500.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2190-21FF, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Markazi'; font-weight: 700; font-display: swap; src: url(fonts/markazi-arabic-700.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Markazi'; font-weight: 700; font-display: swap; src: url(fonts/markazi-latin-700.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2190-21FF, U+2212, U+FEFF, U+FFFD; }

:root {
  --bg: #F5F7FD;
  --surface: #FFFFFF;
  --navy-deep: #141B47;
  --navy: #1E2761;
  --navy-mid: #2E3A7A;
  --periwinkle: #8892C8;
  --navy-mist: #DEE4F6;
  --ice: #CADCFC;
  --ice-wash: #EAF0FD;
  --gold: #D4A24E;
  --gold-soft: #E9CE97;
  --gold-mist: #F7EFDA;
  --gold-ink: #87601F;      /* gold that reads as text (AA on --bg) */

  --text: #26304F;
  --text-strong: #161D33;
  --text-muted: #5A6484;
  --line: rgba(30, 39, 97, 0.12);
  --line-strong: rgba(30, 39, 97, 0.2);

  --font-display: 'Markazi', 'Estedad', Georgia, serif;
  --font-body: 'Estedad', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1180px;
  --gutter: 20px;
  --measure: 700px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-block-size: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  /* a morning wash at the top of the page, ice on one side and gold on the other */
  background:
    radial-gradient(900px 420px at 100% -120px, rgba(202, 220, 252, 0.7), transparent 70%),
    radial-gradient(700px 380px at -10% -160px, rgba(247, 239, 218, 0.9), transparent 70%),
    var(--bg) no-repeat;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-inline-size: 100%; block-size: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { inline-size: 100%; max-inline-size: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; inset-inline-start: var(--gutter); inset-block-start: -60px; z-index: 10;
  padding: 10px 18px; border-radius: 999px; background: var(--navy); color: #fff; text-decoration: none;
}
.skip:focus { inset-block-start: 12px; }

/* ── header ─────────────────────────────────────────────── */
.site-header { border-block-end: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; block-size: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--navy-deep); flex: none; }
.brand svg { inline-size: 28px; block-size: 28px; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1; padding-block-start: 2px; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 30px); font-size: 0.92rem; font-weight: 600; }
.site-nav a { text-decoration: none; color: var(--text-muted); padding-block: 6px; border-block-end: 1.5px solid transparent; transition: color 0.2s, border-color 0.2s; white-space: nowrap; }
.site-nav a:hover { color: var(--navy-deep); }
.site-nav a[aria-current] { color: var(--navy-deep); border-block-end-color: var(--gold); }
@media (max-width: 459px) { .site-nav .wide-only { display: none; } }

/* ── shared bits ────────────────────────────────────────── */
.kicker {
  display: inline-block; font-size: 0.86rem; font-weight: 600; color: var(--gold-ink);
  text-decoration: none; letter-spacing: 0;
}
a.kicker:hover { color: var(--navy-deep); }
.meta { display: flex; flex-wrap: wrap; align-items: center; column-gap: 0; row-gap: 2px; font-size: 0.88rem; color: var(--text-muted); }
.meta > * + *::before { content: '·'; margin-inline: 10px; color: var(--gold); font-weight: 700; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; font-size: 0.84rem; color: var(--text-muted); }
.crumbs li + li::before { content: '/'; margin-inline: 9px; color: var(--line-strong); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--navy-deep); text-decoration: underline; text-underline-offset: 4px; }

/* ── article ────────────────────────────────────────────── */
.article { padding-block: clamp(28px, 5vw, 56px) clamp(48px, 8vw, 96px); }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.article-head { margin-block-end: clamp(28px, 4vw, 44px); }
.article-head .crumbs { margin-block-end: clamp(28px, 5vw, 52px); }
.article-head .kicker { margin-block-end: 14px; padding-block-start: 14px; border-block-start: 2px solid var(--gold); }
.title {
  margin: 0 0 22px;
  max-inline-size: 15em;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.35rem, 4.6vw + 1rem, 4rem); line-height: 1.2;
  color: var(--navy-deep);
  text-wrap: balance;
}
.lead {
  margin: 0 0 24px;
  max-inline-size: 36em;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.32rem, 1vw + 1.1rem, 1.6rem); line-height: 1.75;
  color: var(--text-strong);
}
.cover { margin: 0 0 clamp(28px, 4vw, 40px); }
.cover img {
  display: block; inline-size: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 26px; background: var(--navy-mist);
  box-shadow: 0 24px 60px -28px rgba(20, 27, 71, 0.45);
}

.glance {
  margin-block-end: clamp(32px, 5vw, 48px);
  padding: 22px 24px 18px;
  border-radius: 24px; background: var(--surface); border: 1px solid var(--line);
}
.glance-title { margin: 0 0 8px; font-size: 0.9rem; font-weight: 700; color: var(--gold-ink); font-family: var(--font-body); line-height: 1.6; }
.glance ul { list-style: none; margin: 0; padding: 0; }
.glance li { position: relative; padding-block: 8px; padding-inline-start: 22px; line-height: 1.85; color: var(--text-strong); }
.glance li + li { border-block-start: 1px dashed var(--line); }
.glance li::before {
  content: ''; position: absolute; inset-inline-start: 2px; inset-block-start: 1.05em;
  inline-size: 7px; block-size: 7px; border-radius: 50%; border: 1.5px solid var(--gold);
}

.rail { display: flex; flex-direction: column; gap: 20px; margin-block-end: 36px; }
.toc { padding: 18px 22px 14px; border-radius: 22px; background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line); }
.toc-title { margin: 0 0 6px; font-size: 0.82rem; font-weight: 700; color: var(--text-muted); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a {
  display: block; padding-block: 7px; padding-inline-start: 14px;
  border-inline-start: 2px solid var(--line);
  font-size: 0.93rem; line-height: 1.6; color: var(--text-muted); text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.toc a:hover { color: var(--navy-deep); border-inline-start-color: var(--gold); }
.rail-note { display: none; }

@media (min-width: 1040px) {
  .article-grid {
    grid-template-columns: minmax(0, var(--measure)) minmax(0, 1fr);
    column-gap: clamp(48px, 6vw, 96px);
  }
  .article-head { grid-column: 1 / -1; }
  .cover { grid-column: 1; grid-row: 2; }
  .glance { grid-column: 1; grid-row: 3; }
  .article-body { grid-column: 1; grid-row: 4; }
  .rail { grid-column: 2; grid-row: 2 / span 3; margin: 0; max-inline-size: 300px; }
  .rail-inner { position: sticky; inset-block-start: 28px; display: flex; flex-direction: column; gap: 20px; }
  .rail-note {
    display: block; padding: 22px; border-radius: 22px;
    background: var(--navy-deep); color: #D5DEF7; font-size: 0.92rem; line-height: 1.9;
  }
  .rail-note p { margin: 0 0 12px; }
  .rail-note a { color: var(--gold-soft); font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 1px; }
  .rail-note a:hover { color: #fff; }
}

/* ── prose ──────────────────────────────────────────────── */
.prose { font-size: 1.125rem; line-height: 2.05; color: var(--text); }
.prose > :first-child { margin-block-start: 0; }
.prose p {
  margin: 0 0 1.15em;
  /* Persian letters join: never a drop cap, never letter-spacing. Justified without
     hyphenation so the measure stays even in both scripts. */
  text-align: justify; text-justify: inter-word; hyphens: none;
}
.prose h2 {
  margin: 2.3em 0 0.55em; padding-block-start: 0.9em; border-block-start: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 1.6vw + 1.2rem, 2.15rem); line-height: 1.4;
  color: var(--navy-deep); scroll-margin-block-start: 24px; text-wrap: balance;
}
.prose h3 {
  margin: 1.8em 0 0.5em; font-size: 1.2rem; font-weight: 700; line-height: 1.6; color: var(--navy);
  scroll-margin-block-start: 24px;
}
.prose h4 { margin: 1.5em 0 0.4em; font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.prose .h2, .prose .h3, .prose .h4 { margin: 0 0 0.5em; color: var(--navy); }
.prose a {
  color: var(--navy-mid); text-decoration: underline; text-decoration-color: var(--gold);
  text-decoration-thickness: 1.5px; text-underline-offset: 6px; transition: color 0.2s, text-decoration-color 0.2s;
}
.prose a:hover { color: var(--navy-deep); text-decoration-color: var(--navy-deep); }
.prose strong { font-weight: 700; color: var(--text-strong); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-inline-start: 1.4em; }
.prose ol { list-style-type: persian; }
.prose li { margin-block: 0.35em; padding-inline-start: 0.25em; }
.prose li::marker { color: var(--gold-ink); font-weight: 700; }
.prose blockquote {
  margin: 1.6em 0; padding-inline-start: 1.2em; border-inline-start: 3px solid var(--gold-soft);
  font-family: var(--font-display); font-size: 1.35rem; line-height: 1.8; color: var(--text-strong);
}
.prose blockquote p { text-align: start; }
.prose hr { border: 0; block-size: 1px; background: var(--line); margin: 2.4em 0; }
.prose code { direction: ltr; unicode-bidi: isolate; font-family: ui-monospace, Consolas, monospace; font-size: 0.86em; padding: 0.1em 0.4em; border-radius: 6px; background: var(--navy-mist); }
.prose pre { direction: ltr; text-align: left; overflow-x: auto; padding: 16px 20px; border-radius: 16px; background: var(--navy-deep); color: #E8EEFC; font-size: 0.9rem; line-height: 1.7; }
.prose pre code { background: none; padding: 0; color: inherit; }

.figure { margin: 2.2em 0; }
.figure img { display: block; inline-size: 100%; border-radius: 22px; background: var(--navy-mist); }
.figure figcaption { margin-block-start: 12px; font-size: 0.9rem; line-height: 1.8; color: var(--text-muted); text-align: center; }
.inline-image { display: inline-block; vertical-align: middle; border-radius: 8px; }

.table-wrap { margin: 1.8em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.table-wrap table { inline-size: 100%; border-collapse: collapse; font-size: 0.98rem; line-height: 1.8; }
.table-wrap th, .table-wrap td { padding: 12px 16px; text-align: start; vertical-align: top; border-block-end: 1px solid var(--line); }
.table-wrap th { background: var(--ice-wash); color: var(--navy-deep); font-weight: 700; white-space: nowrap; }
.table-wrap tr:last-child td { border-block-end: 0; }

.callout { margin: 1.9em 0; padding: 20px 24px 6px; border-radius: 20px; }
.callout p { text-align: start; }
.callout-label { margin: 0 0 4px !important; font-size: 0.84rem; font-weight: 700; line-height: 1.6; }
.callout-note { background: var(--ice-wash); border: 1px solid rgba(110, 155, 224, 0.32); }
.callout-note .callout-label { color: var(--navy-mid); }
.callout-warning { background: var(--gold-mist); border: 1px solid rgba(212, 162, 78, 0.45); border-inline-start-width: 4px; }
.callout-warning .callout-label { color: var(--gold-ink); }
.callout-cta {
  margin-block: 2.4em; padding: clamp(24px, 4vw, 34px) clamp(22px, 4vw, 36px) clamp(10px, 2vw, 16px);
  border-radius: 28px; color: #DCE5FA;
  background: radial-gradient(420px 220px at 0% 100%, rgba(212, 162, 78, 0.22), transparent 70%), linear-gradient(140deg, #2E3A7A 0%, #141B47 100%);
}
.callout-cta p { font-size: 1.15rem; line-height: 1.95; }
.callout-cta strong { color: #fff; }
.callout-cta a { color: var(--gold-soft); text-decoration-color: rgba(233, 206, 151, 0.6); }
.callout-cta a:hover { color: #fff; text-decoration-color: #fff; }
.callout-cta .cta-action { margin-block-start: 1.3em; }
.button, .callout-cta a.button {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 24px; border-radius: 999px;
  background: var(--gold); color: var(--navy-deep); font-weight: 700; font-size: 1rem; text-decoration: none;
  box-shadow: 0 10px 26px -10px rgba(212, 162, 78, 0.7); transition: background 0.2s;
}
.button:hover, .callout-cta a.button:hover { background: var(--gold-soft); color: var(--navy-deep); }

/* ── after the body ─────────────────────────────────────── */
.after { margin-block-start: clamp(40px, 6vw, 64px); }
.after h2 {
  margin: 0 0 12px; padding-block-start: 0.9em; border-block-start: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 1.4vw + 1.2rem, 2rem); line-height: 1.4; color: var(--navy-deep);
}
.faq { margin-block-end: 44px; }
.faq details { border-block-end: 1px solid var(--line); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding-block: 18px; padding-inline-end: 40px;
  font-weight: 600; font-size: 1.08rem; line-height: 1.8; color: var(--text-strong);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; inset-inline-end: 6px; inset-block-start: 50%;
  inline-size: 10px; block-size: 10px; margin-block-start: -7px;
  /* a down chevron: physical sides on purpose, so it points down in either direction */
  border-right: 1.5px solid var(--gold-ink); border-bottom: 1.5px solid var(--gold-ink);
  transform: rotate(45deg); transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(4px) rotate(-135deg); }
.faq summary:hover { color: var(--navy-mid); }
.faq .answer { padding-block-end: 18px; color: var(--text); font-size: 1.04rem; line-height: 2; }
.faq .answer p { margin: 0; text-align: justify; hyphens: none; }

.sources { margin-block-end: 40px; }
.sources ol { margin: 0; padding-inline-start: 1.4em; list-style-type: persian; font-size: 0.95rem; line-height: 1.9; }
.sources li { margin-block: 6px; }
.sources li::marker { color: var(--gold-ink); }
.sources a { margin-inline-end: 10px; color: var(--navy-mid); text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.sources a:hover { text-decoration-color: var(--navy-mid); }
/* the domain is LTR inside an RTL line, so the gap before it sits on the link, not here */
.sources .host { direction: ltr; unicode-bidi: isolate; display: inline-block; font-size: 0.82rem; color: var(--text-muted); }

.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags .tags-label { font-size: 0.84rem; color: var(--text-muted); margin-inline-end: 4px; }
.tags li:not(.tags-label) { padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 0.84rem; color: var(--text-muted); }

/* ── lists of articles ──────────────────────────────────── */
.intro { padding-block: clamp(36px, 7vw, 88px) clamp(28px, 5vw, 48px); }
.intro .crumbs { margin-block-end: clamp(26px, 5vw, 48px); }
.intro .kicker { margin-block-end: 12px; }
.intro h1 {
  margin: 0 0 18px; max-inline-size: 13em;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 6vw + 0.5rem, 5rem); line-height: 1.12; color: var(--navy-deep); text-wrap: balance;
}
.intro .lede { margin: 0; max-inline-size: 34em; font-size: 1.1rem; line-height: 2; color: var(--text-muted); }
@media (min-width: 1040px) {
  /* the heading sits on the start side; the lede steps in under its second half */
  .intro-grid { display: grid; grid-template-columns: 1.15fr 1fr; column-gap: 64px; align-items: end; }
  .intro-grid h1 { margin: 0; }
  .intro .lede { padding-block-end: 12px; }
}

.cats { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-block-start: clamp(28px, 4vw, 40px); padding-block-start: 18px; border-block-start: 1px solid var(--line); font-size: 0.94rem; font-weight: 600; }
.cats a { text-decoration: none; color: var(--text-muted); padding-block: 4px; border-block-end: 1.5px solid transparent; }
.cats a:hover { color: var(--navy-deep); }
.cats a[aria-current] { color: var(--navy-deep); border-block-end-color: var(--gold); }

.feature { display: grid; gap: 24px; margin-block-end: clamp(36px, 6vw, 72px); text-decoration: none; color: inherit; }
.feature-media img {
  display: block; inline-size: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 26px; background: var(--navy-mist);
  box-shadow: 0 24px 60px -30px rgba(20, 27, 71, 0.45); transition: transform 0.6s var(--ease);
}
.feature-text { align-self: center; }
.feature .kicker { margin-block-end: 10px; }
.feature h2 { margin: 0 0 14px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 2.2vw + 1.1rem, 2.7rem); line-height: 1.3; color: var(--navy-deep); text-wrap: balance; }
.feature p { margin: 0 0 16px; color: var(--text); line-height: 2; }
.feature .more { display: inline-block; margin-block-start: 18px; font-weight: 600; color: var(--navy-mid); border-block-end: 1.5px solid var(--gold); padding-block-end: 2px; }
.feature:hover h2, .entry:hover h3 { color: var(--navy-mid); }
.feature:hover .feature-media img { transform: scale(1.012); }
@media (min-width: 860px) {
  .feature { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4vw, 56px); }
}

.entries { list-style: none; margin: 0; padding: 0; border-block-start: 1px solid var(--line); }
.entries > li { border-block-end: 1px solid var(--line); }
.entry { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 18px; align-items: start; padding-block: 24px; text-decoration: none; color: inherit; }
.entry .kicker { margin-block-end: 4px; font-size: 0.8rem; }
.entry h3 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; line-height: 1.45; color: var(--navy-deep); transition: color 0.2s; }
.entry p { display: none; margin: 0 0 8px; color: var(--text-muted); line-height: 1.9; }
.entry .meta { font-size: 0.82rem; }
.entry img { display: block; inline-size: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: var(--navy-mist); }
@media (min-width: 720px) {
  .entry { grid-template-columns: minmax(0, 1fr) 232px; gap: 40px; padding-block: 30px; }
  .entry h3 { font-size: 1.75rem; }
  .entry p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-inline-size: 40em; }
  .entry img { aspect-ratio: 16 / 10; border-radius: 18px; }
}
.list-section { padding-block-end: clamp(56px, 9vw, 112px); }
.list-section > h2 { margin: 0 0 14px; font-size: 0.86rem; font-weight: 700; color: var(--text-muted); }
.empty { padding-block: 40px 80px; color: var(--text-muted); font-size: 1.05rem; }

.related { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px); border-block-start: 1px solid var(--line); background: rgba(255, 255, 255, 0.45); }
.related > .wrap > h2 { margin: 0 0 18px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 1.6vw + 1.2rem, 2.3rem); color: var(--navy-deep); }

.not-found { padding-block: clamp(64px, 12vw, 140px); }
.not-found h1 { margin: 0 0 12px; font-family: var(--font-display); font-size: clamp(2.4rem, 5vw + 1rem, 3.8rem); line-height: 1.2; color: var(--navy-deep); }
.not-found p { margin: 0 0 28px; color: var(--text-muted); font-size: 1.1rem; }
.not-found .button { box-shadow: none; }

/* ── footer ─────────────────────────────────────────────── */
.site-footer { background: var(--navy-deep); color: #B9C4E6; font-size: 0.92rem; }
.footer-grid { display: grid; gap: 28px; padding-block: 48px 32px; }
.footer-brand .brand { color: #F4F6FD; }
.footer-brand p, .footer-contact { margin: 14px 0 0; max-inline-size: 26em; line-height: 1.95; }
.footer-contact { font-style: normal; text-wrap: balance; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a, .footer-contact a { color: #E2E8F8; text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-soft); }
.footer-bottom { margin: 0; padding-block: 18px 26px; border-block-start: 1px solid rgba(202, 220, 252, 0.14); font-size: 0.82rem; color: #8E9AC4; }
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-block: 60px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .rail, .related, .skip { display: none !important; }
  body { background: #fff; }
  .callout-cta { background: none; color: inherit; border: 1px solid #999; }
}
