/* =========================================================================
   PBM Claims Adjudication Automation — design system
   Light, professional healthcare palette (teal/cyan + emerald + amber).
   ========================================================================= */
:root {
  --teal-900: #134e4a;
  --teal-800: #115e59;
  --teal-700: #0f766e;
  --cyan-700: #0e7490;
  --cyan-600: #0891b2;
  --cyan-500: #06b6d4;
  --cyan-300: #67e8f9;
  --cyan-100: #cffafe;
  --cyan-50:  #ecfeff;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;

  --ink:        #0f2b30;
  --ink-soft:   #355b61;
  --muted:      #5b7b80;
  --line:       #d6e6e8;
  --line-soft:  #e7f1f2;

  --bg:         #f6fbfb;
  --bg-tint:    #eef7f8;
  --surface:    #ffffff;
  --surface-2:  #f3fafb;

  --brand:      var(--cyan-700);
  --brand-strong: var(--teal-700);
  --accent:     var(--amber-500);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(15, 64, 70, 0.06), 0 1px 3px rgba(15, 64, 70, 0.08);
  --shadow:    0 6px 18px rgba(15, 64, 70, 0.08), 0 2px 6px rgba(15, 64, 70, 0.06);
  --shadow-lg: 0 18px 48px rgba(15, 64, 70, 0.14);

  --header-h: 68px;
  --container: 1320px;
  --measure: 74ch;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;

  --grad-brand: linear-gradient(120deg, var(--cyan-600), var(--teal-700));
  --grad-accent: linear-gradient(120deg, var(--amber-400), var(--amber-500));
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main { flex: 1 0 auto; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 3rem);
}

a { color: var(--cyan-700); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--teal-800); }

img, svg { max-width: 100%; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--cyan-500); outline-offset: 2px; border-radius: 4px; }

/* ----------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; color: var(--ink); }
.brand__logo { width: 42px; height: 42px; flex: none; transition: transform .25s ease; }
.brand:hover .brand__logo { transform: rotate(-6deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 700; font-size: .98rem; letter-spacing: -.01em; }
.brand__sub { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.primary-nav { display: flex; align-items: center; gap: .25rem; }
.nav-link {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .8rem; border-radius: 999px;
  color: var(--ink-soft); font-weight: 600; font-size: .92rem;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nav-link__icon { width: 19px; height: 19px; }
.nav-link:hover { background: var(--cyan-50); color: var(--teal-800); transform: translateY(-1px); }
.nav-link.is-active { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-sm); }
.nav-link.is-active:hover { color: #fff; }

.nav-toggle {
  display: none; border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--radius-sm); padding: .4rem; color: var(--ink); cursor: pointer;
}
.nav-toggle__icon { width: 24px; height: 24px; }

/* ------------------------------------------------------------------- Hero */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 460px at 78% -8%, var(--cyan-100), transparent 60%),
    radial-gradient(900px 420px at 8% 4%, #d1fae5, transparent 55%),
    linear-gradient(180deg, var(--cyan-50), var(--bg));
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.hero__inner { padding-block: clamp(2.6rem, 6vw, 5rem) clamp(2.4rem, 5vw, 4rem); text-align: center; }
.hero__logo-row { display: block; margin-bottom: 1.4rem; }
.hero__logo { width: clamp(96px, 16vw, 150px); height: auto; filter: drop-shadow(0 10px 22px rgba(8, 145, 178, .25)); }
.hero__title {
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  line-height: 1.05; letter-spacing: -.03em; margin: 0 0 1rem; font-weight: 800;
  color: var(--teal-900);
}
.hero__title-accent {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lede {
  max-width: 60ch; margin: 0 auto 2rem; font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--ink-soft);
}

.hero__cta {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 980px; margin-inline: auto;
}
.cta {
  display: flex; align-items: center; gap: .9rem; text-align: left;
  padding: 1rem 1.1rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cta:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--cyan-300); }
.cta__icon {
  flex: none; width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; color: #fff;
}
.cta__svg { width: 26px; height: 26px; }
.cta--architecture .cta__icon { background: linear-gradient(135deg, #22d3ee, #0e7490); }
.cta--ingestion   .cta__icon { background: linear-gradient(135deg, #34d399, #059669); }
.cta--formulary   .cta__icon { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.cta__text { display: flex; flex-direction: column; }
.cta__title { font-weight: 700; color: var(--ink); }
.cta__sub { font-size: .85rem; color: var(--muted); }

/* ------------------------------------------------------------ Intro block */
.intro { padding-block: clamp(2.4rem, 5vw, 4rem); }
.intro__body { max-width: none; }
.intro__body h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--teal-800); margin-top: 0; }
.intro__body p { color: var(--ink-soft); font-size: 1.05rem; }

/* -------------------------------------------------------- Section blocks */
.sections {
  padding-bottom: clamp(3rem, 6vw, 5rem);
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.section-block {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.section-block:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--cyan-300); }
.section-block__head { display: flex; gap: .9rem; margin-bottom: 1rem; }
.section-block__icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px; color: #fff; display: grid; place-items: center;
}
.section-block__svg { width: 24px; height: 24px; }
.section-block__icon--architecture { background: linear-gradient(135deg, #22d3ee, #0e7490); }
.section-block__icon--ingestion   { background: linear-gradient(135deg, #34d399, #059669); }
.section-block__icon--formulary   { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.section-block__title { margin: 0 0 .25rem; font-size: 1.2rem; }
.section-block__title a { color: var(--teal-800); }
.section-block__blurb { margin: 0; color: var(--muted); font-size: .92rem; }
.section-block__list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .15rem; }
.section-block__list a {
  display: flex; align-items: center; gap: .5rem; padding: .45rem .5rem; border-radius: var(--radius-sm);
  color: var(--ink-soft); font-weight: 500; transition: background .16s ease, color .16s ease, transform .16s ease;
}
.section-block__list a:hover { background: var(--cyan-50); color: var(--teal-800); transform: translateX(3px); }
.section-block__arrow { width: 16px; height: 16px; color: var(--cyan-600); flex: none; }
.section-block__all {
  margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--cyan-700);
}
.section-block__all:hover { gap: .65rem; }

/* ----------------------------------------------------- Content / article */
.content-shell { padding-block: 2rem clamp(3rem, 6vw, 5rem); }

.breadcrumbs { margin-bottom: 1.4rem; font-size: .85rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0; }
.breadcrumbs li { display: flex; align-items: center; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--line); }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--cyan-700); }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

.prose { max-width: none; font-size: 1.06rem; }
.prose > * { scroll-margin-top: calc(var(--header-h) + 1rem); }

.prose h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 1.2rem;
  font-weight: 800;
  background: linear-gradient(120deg, var(--teal-800), var(--cyan-600));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.prose h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 2.4rem 0 .9rem; color: var(--teal-800);
  letter-spacing: -.015em; padding-bottom: .35rem; border-bottom: 2px solid var(--line-soft);
}
.prose h3 { font-size: 1.28rem; margin: 1.8rem 0 .6rem; color: var(--teal-700); }
.prose h4 { font-size: 1.08rem; margin: 1.4rem 0 .5rem; color: var(--ink); }
.prose p { margin: 0 0 1.05rem; color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 700; }

.prose a {
  color: var(--cyan-700); font-weight: 500;
  background-image: linear-gradient(var(--cyan-300), var(--cyan-300));
  background-size: 0% 2px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .25s ease, color .2s ease;
}
.prose a:hover { color: var(--teal-800); background-size: 100% 2px; }

.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.1rem; color: var(--ink-soft); }
.prose li { margin: .35rem 0; }
.prose li::marker { color: var(--cyan-600); }

.prose blockquote {
  margin: 1.4rem 0; padding: .8rem 1.2rem; border-left: 4px solid var(--cyan-500);
  background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-soft);
}

.header-anchor {
  margin-left: .4rem; color: var(--line); font-weight: 400; opacity: 0; text-decoration: none;
  transition: opacity .15s ease, color .15s ease;
}
.prose h2:hover .header-anchor,
.prose h3:hover .header-anchor,
.prose h4:hover .header-anchor { opacity: 1; }
.header-anchor:hover { color: var(--cyan-600); }

/* Inline code: tinted, borderless, blends with text */
.prose :not(pre) > code {
  font-family: var(--mono); font-size: .88em;
  background: var(--cyan-50); color: var(--teal-800);
  padding: .12em .4em; border-radius: 5px; white-space: nowrap;
}

/* -------------------------------------------------------- Code blocks */
.code-block {
  margin: 1.6rem 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--surface);
}
.code-block__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: .45rem .55rem .45rem .95rem; background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.code-block__lang {
  font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--cyan-700); font-weight: 600;
}
.code-block__copy {
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
  font: inherit; font-size: .78rem; font-weight: 600; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .7rem;
  transition: all .16s ease;
}
.code-block__copy:hover { color: var(--teal-800); border-color: var(--cyan-300); background: var(--cyan-50); }
.code-block__copy-icon {
  width: 14px; height: 14px; border: 1.6px solid currentColor; border-radius: 3px; position: relative;
}
.code-block__copy-icon::after {
  content: ""; position: absolute; width: 10px; height: 10px; border: 1.6px solid currentColor;
  border-radius: 3px; right: -5px; bottom: -5px; background: var(--surface);
}
.code-block.is-copied .code-block__copy { color: var(--emerald-600); border-color: var(--emerald-500); background: #ecfdf5; }
.code-block pre {
  margin: 0; padding: 1.1rem 1.2rem; overflow-x: auto; background: #f8fdfe;
  font-family: var(--mono); font-size: .86rem; line-height: 1.6;
}
.code-block code { font-family: var(--mono); background: none; padding: 0; }

/* -------------------------------------------------------- Tables */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: .94rem; }
.table-wrap th, .table-wrap td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--line-soft); }
.table-wrap thead th { background: var(--surface-2); color: var(--teal-800); font-weight: 700; position: sticky; top: 0; }
.table-wrap tbody tr:hover { background: var(--cyan-50); }
.table-wrap tbody tr:last-child td { border-bottom: none; }

/* -------------------------------------------------------- Task checkboxes */
.prose ul.contains-task-list { list-style: none; padding-left: .2rem; }
.prose .task-list-item { display: flex; align-items: flex-start; gap: .6rem; }
.prose .task-list-item::marker { content: none; }
.prose .task-list-item input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none; margin-top: .28rem;
  width: 1.15em; height: 1.15em; border: 2px solid var(--cyan-600); border-radius: 5px;
  background: var(--surface); cursor: pointer; position: relative; transition: all .16s ease;
}
.prose .task-list-item input[type="checkbox"]:hover { border-color: var(--teal-700); box-shadow: 0 0 0 3px var(--cyan-50); }
.prose .task-list-item input[type="checkbox"]:checked { background: var(--grad-brand); border-color: var(--teal-700); }
.prose .task-list-item input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.prose .task-list-item input[type="checkbox"]:checked + label,
.prose .task-list-item.is-checked label { text-decoration: line-through; color: var(--muted); }

/* -------------------------------------------------------- FAQ accordion */
.faq-accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: .8rem 0; box-shadow: var(--shadow-sm); }
.faq-accordion + .faq-accordion { margin-top: -1px; }
.faq-accordion__q {
  width: 100%; text-align: left; cursor: pointer; border: 0; background: var(--surface);
  padding: 1rem 1.2rem; font: inherit; font-weight: 600; color: var(--teal-800);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-accordion__q:hover { background: var(--cyan-50); }
.faq-accordion__q::after { content: "+"; font-size: 1.3rem; color: var(--cyan-600); transition: transform .2s ease; }
.faq-accordion[open] .faq-accordion__q::after { transform: rotate(45deg); }
.faq-accordion__a { padding: 0 1.2rem 1.1rem; color: var(--ink-soft); }

/* -------------------------------------------------------- Mermaid diagrams */
.mermaid-wrap {
  position: relative; margin: 1.8rem 0; padding: 1.4rem 1.2rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; text-align: center;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, border-color .2s ease;
}
.mermaid-wrap pre.mermaid { margin: 0; background: none; border: 0; }
.mermaid-wrap svg { max-width: 100%; height: auto; }
/* Caption rendered from an italic line immediately after the diagram */
.mermaid-wrap + p em:only-child,
.diagram-caption { display: block; }
.diagram-caption {
  margin: -1rem 0 1.8rem; text-align: center; font-size: .86rem; color: var(--muted); font-style: italic;
}
.mermaid-wrap.is-zoomable { cursor: zoom-in; }
.mermaid-wrap.is-zoomable:hover { border-color: var(--cyan-300); box-shadow: var(--shadow); }
.mermaid-wrap__expand {
  position: absolute; top: .6rem; right: .6rem; display: inline-flex; align-items: center; gap: .35rem;
  font: inherit; font-size: .74rem; font-weight: 600; color: var(--ink-soft); cursor: pointer;
  background: rgba(255,255,255,.86); backdrop-filter: blur(4px); border: 1px solid var(--line);
  border-radius: 999px; padding: .28rem .65rem; opacity: 0; transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease, color .16s ease, border-color .16s ease;
}
.mermaid-wrap__expand svg { width: 15px; height: 15px; }
.mermaid-wrap:hover .mermaid-wrap__expand,
.mermaid-wrap:focus-visible .mermaid-wrap__expand,
.mermaid-wrap__expand:focus-visible { opacity: 1; transform: translateY(0); }
.mermaid-wrap__expand:hover { color: var(--teal-800); border-color: var(--cyan-300); background: #fff; }

/* Full-screen diagram lightbox */
.diagram-modal { position: fixed; inset: 0; z-index: 100; display: none; }
.diagram-modal.is-open { display: block; }
.diagram-modal__backdrop {
  position: absolute; inset: 0; background: rgba(8, 47, 51, 0.62); backdrop-filter: blur(3px);
  animation: dm-fade .2s ease;
}
.diagram-modal__panel {
  position: absolute; inset: clamp(.6rem, 2.5vw, 2rem); background: var(--surface);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  overflow: hidden; animation: dm-pop .2s ease;
}
.diagram-modal__close {
  position: absolute; top: .7rem; right: .7rem; z-index: 2; width: 40px; height: 40px; cursor: pointer;
  display: grid; place-items: center; font-size: 1.7rem; line-height: 1; color: var(--ink-soft);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 50%; transition: all .16s ease;
}
.diagram-modal__close:hover { color: #fff; background: var(--brand-strong); border-color: var(--brand-strong); }
.diagram-modal__stage {
  flex: 1; min-height: 0; display: grid; place-items: center; padding: clamp(1.5rem, 4vw, 3rem);
  overflow: auto; background:
    radial-gradient(1000px 500px at 50% 0%, var(--cyan-50), transparent 70%), var(--surface);
}
.diagram-modal__stage svg { display: block; width: 100%; height: 100%; max-width: 100%; }
@keyframes dm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dm-pop { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: scale(1); } }

/* -------------------------------------------------------- Related cards */
.related { margin-top: 3rem; max-width: none; }
.related__title { font-size: 1.4rem; color: var(--teal-800); margin-bottom: 1.1rem; }
.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  display: flex; flex-direction: column; gap: .4rem; padding: 1.2rem 1.3rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--cyan-300); }
.card__kicker { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: var(--cyan-600); font-weight: 700; }
.card__title { font-weight: 700; color: var(--teal-800); font-size: 1.08rem; }
.card__desc { color: var(--muted); font-size: .9rem; flex: 1; }
.card__more { display: inline-flex; align-items: center; gap: .35rem; color: var(--cyan-700); font-weight: 600; font-size: .9rem; }
.card__arrow { width: 16px; height: 16px; }
.card:hover .card__more { gap: .6rem; }

.related--siblings .related__links { list-style: none; padding: 0; display: grid; gap: .3rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.related--siblings a { display: flex; align-items: center; gap: .5rem; padding: .55rem .7rem; border-radius: var(--radius-sm); color: var(--ink-soft); font-weight: 500; transition: background .16s ease, transform .16s ease, color .16s ease; }
.related--siblings a:hover { background: var(--cyan-50); color: var(--teal-800); transform: translateX(3px); }
.related__arrow { width: 16px; height: 16px; color: var(--cyan-600); flex: none; }

.button {
  display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.3rem; border-radius: 999px;
  background: var(--grad-brand); color: #fff; font-weight: 600; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.button:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }

/* ----------------------------------------------------------------- Footer */
.site-footer { flex-shrink: 0; background: var(--teal-900); color: #cdeef0; margin-top: 3rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; padding-block: 2.6rem; }
.site-footer__brand { display: flex; align-items: center; gap: 1rem; max-width: 420px; }
.site-footer__logo { width: 52px; height: 52px; flex: none; }
.site-footer__name { font-weight: 700; color: #fff; margin: 0 0 .25rem; }
.site-footer__tag { margin: 0; font-size: .9rem; color: #9fd4d7; }
.site-footer__nav { display: flex; flex-direction: column; gap: .4rem; }
.site-footer__heading { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: #6fb3b7; margin: 0 0 .3rem; }
.site-footer__nav a { color: #cdeef0; font-weight: 500; }
.site-footer__nav a:hover { color: #fff; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.site-footer__bottom p { margin: 0; padding-block: 1.1rem; font-size: .82rem; color: #84c0c3; }

/* ----------------------------------------------------------------- Mobile */
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: .8rem clamp(1.1rem, 4vw, 3rem) 1.2rem;
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .28s ease; visibility: hidden;
  }
  .primary-nav.is-open { transform: translateY(0); visibility: visible; }
  .nav-link { justify-content: flex-start; padding: .7rem .8rem; }
  .brand__sub { display: none; }
}

@media (min-width: 1100px) {
  /* Widescreen: text fills the full width of its container (the container,
     capped at --container, is what keeps lines off the page edges). */
  .content-shell { display: grid; grid-template-columns: minmax(0, 1fr); }
  .prose { max-width: none; }
  .related { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
