:root {
  --paper: #f5f1e8;
  --paper-2: #fbf8f2;
  --ink: #162326;
  --muted: #5d6c6f;
  --teal: #1d6b68;
  --teal-dark: #104e4c;
  --teal-soft: #dcebe5;
  --orange: #f2763f;
  --orange-soft: #fde5d8;
  --yellow: #f3c64e;
  --yellow-soft: #fff2bf;
  --red: #b84646;
  --red-soft: #f8dddd;
  --blue: #5269b8;
  --blue-soft: #e5e9f8;
  --line: #d7d0c4;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgb(22 35 38 / 0.08), 0 10px 28px rgb(22 35 38 / 0.06);
  --shadow-lg: 0 24px 70px rgb(22 35 38 / 0.12);
  --radius-sm: 0.6rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --max: 1180px;
  --measure: 72ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% -5%, rgb(242 118 63 / 0.10), transparent 26rem),
    radial-gradient(circle at 92% 12%, rgb(29 107 104 / 0.09), transparent 28rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--teal-dark); text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--orange); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
::selection { background: var(--yellow-soft); color: var(--ink); }

.skip-link {
  position: fixed;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 999;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-180%);
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 2rem), 820px); margin-inline: auto; }
.readable { max-width: var(--measure); }
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section-tight { padding: clamp(2.4rem, 5vw, 4rem) 0; }
.section-ink { color: var(--white); background: var(--ink); }
.section-teal { color: var(--white); background: var(--teal-dark); }
.section-paper2 { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-mint { background: var(--teal-soft); }
.section-orange { background: var(--orange-soft); }
.section-yellow { background: var(--yellow-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.8rem;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 1.8rem; height: 0.18rem; border-radius: 99px; background: var(--orange); }
.section-ink .eyebrow,
.section-teal .eyebrow { color: var(--yellow-soft); }

h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 8vw, 6.8rem); max-width: 13ch; }
h2 { font-size: clamp(2.1rem, 5vw, 4.2rem); max-width: 18ch; }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.75rem); }
h4 { font-size: 1.02rem; letter-spacing: -0.015em; }
p { margin: 0 0 1rem; }
.lede { max-width: 64ch; color: var(--muted); font-size: clamp(1.08rem, 2.2vw, 1.35rem); line-height: 1.55; }
.section-ink .lede, .section-teal .lede { color: rgb(255 255 255 / 0.76); }
.small { font-size: 0.9rem; }
.muted { color: var(--muted); }
.kicker { font-weight: 800; color: var(--teal-dark); }

.site-notice {
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
  color: rgb(255 255 255 / 0.84);
  background: var(--ink);
  font-size: 0.82rem;
}
.site-notice .container { display: flex; justify-content: center; gap: 0.55rem; padding-block: 0.48rem; text-align: center; }
.site-notice a { color: var(--yellow-soft); font-weight: 750; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgb(215 208 196 / 0.85);
  background: rgb(245 241 232 / 0.92);
  backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark { width: 40px; height: 40px; flex: 0 0 auto; }
.brand-copy { display: grid; line-height: 1.02; }
.brand-copy small { margin-top: 0.28rem; color: var(--muted); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper-2);
}
.nav-toggle svg { width: 22px; height: 22px; }
.primary-nav { display: flex; align-items: center; gap: 0.12rem; }
.primary-nav a {
  padding: 0.65rem 0.72rem;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 740;
  text-decoration: none;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--teal-dark); background: var(--teal-soft); }
.primary-nav .nav-cta { margin-left: 0.35rem; color: var(--white); background: var(--teal-dark); }
.primary-nav .nav-cta:hover, .primary-nav .nav-cta[aria-current="page"] { color: var(--white); background: var(--orange); }

.breadcrumbs { padding: 1.1rem 0 0; color: var(--muted); font-size: 0.84rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.5rem; color: #a59d91; }
.breadcrumbs a { color: inherit; }

.hero { position: relative; overflow: hidden; padding: clamp(4rem, 10vw, 8.5rem) 0 clamp(3.5rem, 8vw, 7rem); }
.hero::after {
  content: "";
  position: absolute;
  right: -9rem;
  bottom: -13rem;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgb(29 107 104 / 0.25);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgb(29 107 104 / 0.04), 0 0 0 10rem rgb(242 118 63 / 0.035);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr); gap: clamp(2rem, 7vw, 6rem); align-items: end; }
.hero h1 em { color: var(--teal); font-style: normal; }
.hero .lede { margin-top: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.hero-proof {
  position: relative;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgb(251 248 242 / 0.92);
  box-shadow: var(--shadow-sm);
}
.hero-proof::before { content: ""; position: absolute; inset: 0.65rem; z-index: -1; border: 1px dashed rgb(29 107 104 / 0.35); border-radius: 1.1rem; }
.hero-proof strong { display: block; font-size: 1.05rem; }
.hero-proof p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.92rem; }
.hero-proof .signal { display: flex; align-items: center; gap: 0.75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.signal-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 7px var(--orange-soft); }

.page-hero { padding: clamp(3.5rem, 8vw, 6.7rem) 0 clamp(2.5rem, 6vw, 4.8rem); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr); gap: clamp(2rem, 6vw, 5rem); align-items: end; }
.page-hero h1 { font-size: clamp(2.7rem, 7vw, 5.8rem); max-width: 13ch; }
.page-hero .lede { margin-top: 1.2rem; }
.page-hero-aside { padding: 1.25rem; border-left: 4px solid var(--orange); background: var(--paper-2); box-shadow: var(--shadow-sm); }
.page-hero-aside strong { display: block; margin-bottom: 0.35rem; }
.page-hero-aside p:last-child { margin-bottom: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.76rem 1.08rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--white);
  background: var(--teal-dark);
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn:hover { color: var(--white); background: var(--orange); transform: translateY(-2px); }
.btn-secondary { color: var(--ink); border-color: var(--line); background: var(--paper-2); }
.btn-secondary:hover { color: var(--ink); border-color: var(--teal); background: var(--teal-soft); }
.btn-orange { background: var(--orange); }
.btn-orange:hover { background: var(--teal-dark); }
.btn-dark { background: var(--ink); }
.btn-small { min-height: 40px; padding: 0.55rem 0.85rem; font-size: 0.88rem; }
.btn svg { width: 1.05em; height: 1.05em; }

.section-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.section-heading > div { max-width: 760px; }
.section-heading .lede { margin-top: 0.85rem; }

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.auto-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.75) inset;
}
.card:hover { border-color: rgb(29 107 104 / 0.55); }
.card h3 { margin-bottom: 0.65rem; }
.card p { color: var(--muted); }
.card p:last-of-type { margin-bottom: 0; }
.card .card-footer { margin-top: auto; padding-top: 1.25rem; }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; }
.card-link:hover { color: inherit; }
.card-topline { width: 48px; height: 5px; margin-bottom: 1rem; border-radius: 999px; background: var(--teal); }
.card:nth-child(2n) .card-topline { background: var(--orange); }
.card:nth-child(3n) .card-topline { background: var(--yellow); }
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  border-radius: 14px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-weight: 900;
}
.card-icon.orange { color: #8c3a17; background: var(--orange-soft); }
.card-icon.yellow { color: #745b10; background: var(--yellow-soft); }
.card-icon.blue { color: #354a92; background: var(--blue-soft); }

.topic-card { overflow: hidden; padding: 1.55rem; }
.topic-card .number { margin-bottom: 1.3rem; color: var(--teal); font-size: 0.8rem; font-weight: 900; letter-spacing: 0.12em; }
.topic-card::after { content: ""; position: absolute; right: -2.5rem; bottom: -2.5rem; width: 7rem; height: 7rem; border: 1px solid rgb(29 107 104 / 0.18); border-radius: 50%; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.split.sticky > :first-child { position: sticky; top: 120px; }
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.5rem; }

.callout {
  padding: 1.2rem 1.25rem;
  border-left: 5px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--teal-soft);
}
.callout.orange { border-left-color: var(--orange); background: var(--orange-soft); }
.callout.yellow { border-left-color: var(--yellow); background: var(--yellow-soft); }
.callout.red { border-left-color: var(--red); background: var(--red-soft); }
.callout.blue { border-left-color: var(--blue); background: var(--blue-soft); }
.callout strong { display: block; margin-bottom: 0.25rem; }
.callout p:last-child { margin-bottom: 0; }

.quote {
  margin: 0;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border-radius: var(--radius-lg);
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow-lg);
}
.quote p { margin: 0; font-size: clamp(1.5rem, 3.4vw, 2.6rem); font-weight: 780; line-height: 1.22; letter-spacing: -0.03em; }
.quote footer { margin-top: 1rem; color: rgb(255 255 255 / 0.66); font-size: 0.9rem; }

.check-list, .x-list, .plain-list { margin: 0; padding: 0; list-style: none; }
.check-list li, .x-list li { position: relative; padding-left: 2rem; margin: 0.65rem 0; }
.check-list li::before, .x-list li::before {
  position: absolute;
  left: 0;
  top: 0.12rem;
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 900;
}
.check-list li::before { content: "✓"; color: var(--white); background: var(--teal); }
.x-list li::before { content: "×"; color: var(--white); background: var(--red); }
.plain-list li { padding-block: 0.55rem; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }

.step-list { counter-reset: steps; display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.step-list li { counter-increment: steps; position: relative; padding: 1.25rem 1.25rem 1.25rem 4.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.step-list li::before { content: counter(steps); position: absolute; left: 1.15rem; top: 1.15rem; display: grid; place-items: center; width: 2.15rem; height: 2.15rem; border-radius: 50%; color: var(--white); background: var(--teal-dark); font-weight: 900; }
.step-list strong { display: block; margin-bottom: 0.25rem; }

.stop-switch-confirm { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-2); box-shadow: var(--shadow-sm); }
.stop-switch-confirm > div { padding: clamp(1.2rem, 3vw, 2rem); border-right: 1px solid var(--line); }
.stop-switch-confirm > div:last-child { border-right: 0; }
.stop-switch-confirm span { display: block; margin-bottom: 0.65rem; color: var(--teal); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }
.stop-switch-confirm h3 { margin-bottom: 0.5rem; }
.stop-switch-confirm p { margin: 0; color: var(--muted); }

.traffic-light { display: grid; gap: 0.8rem; }
.traffic-row { display: grid; grid-template-columns: 128px 1fr; gap: 1rem; align-items: start; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.traffic-badge { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 900; }
.traffic-badge::before { content: ""; width: 13px; height: 13px; border-radius: 50%; background: currentColor; }
.traffic-green { color: #267446; }
.traffic-yellow { color: #8d6c05; }
.traffic-red { color: #a43e3e; }
.traffic-row p { margin: 0; color: var(--muted); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
th { color: var(--white); background: var(--ink); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
td { min-width: 150px; }

.resource-toolbar { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1.3rem; }
.filter-button { padding: 0.55rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--paper-2); font-weight: 760; }
.filter-button[aria-pressed="true"], .filter-button:hover { color: var(--white); border-color: var(--teal-dark); background: var(--teal-dark); }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.resource-card { position: relative; display: flex; flex-direction: column; min-height: 330px; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.resource-card[hidden] { display: none; }
.resource-card h3 { margin: 0.8rem 0 0.55rem; }
.resource-card p { color: var(--muted); }
.resource-meta { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pill { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.55rem; border-radius: 999px; color: var(--teal-dark); background: var(--teal-soft); font-size: 0.74rem; font-weight: 800; }
.pill.orange { color: #873514; background: var(--orange-soft); }
.pill.yellow { color: #6c5511; background: var(--yellow-soft); }
.pill.dark { color: var(--white); background: var(--ink); }
.resource-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: auto; padding-top: 1.2rem; }
.resource-card .lock-note { display: flex; gap: 0.45rem; align-items: center; margin-top: 0.8rem; color: var(--muted); font-size: 0.82rem; }

.program-map { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.65rem; }
.program-step { min-height: 170px; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.program-step strong { display: block; margin-bottom: 0.5rem; color: var(--teal); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; }
.program-step p { margin: 0; color: var(--muted); font-size: 0.88rem; }

.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.metric { padding: 1.25rem; border-top: 5px solid var(--orange); background: var(--paper-2); box-shadow: var(--shadow-sm); }
.metric strong { display: block; font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.05em; }
.metric span { display: block; margin-top: 0.45rem; color: var(--muted); font-size: 0.88rem; }

.faq { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { padding: 1rem 2.5rem 1rem 0; cursor: pointer; font-weight: 850; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0.4rem; top: 0.68rem; color: var(--teal); font-size: 1.6rem; }
details[open] summary::after { content: "−"; }
details > div { padding: 0 0 1.2rem; color: var(--muted); max-width: var(--measure); }

.article-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.article-toc { position: sticky; top: 115px; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.article-toc strong { display: block; margin-bottom: 0.7rem; }
.article-toc a { display: block; padding: 0.4rem 0; color: var(--muted); font-size: 0.86rem; text-decoration: none; }
.article-toc a:hover { color: var(--teal-dark); }
.prose { max-width: 820px; }
.prose h2 { margin-top: 3.2rem; margin-bottom: 1rem; font-size: clamp(1.8rem, 4vw, 3rem); }
.prose h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: 0.45rem 0; }
.prose code { padding: 0.12rem 0.35rem; border-radius: 0.35rem; background: var(--teal-soft); font-size: 0.9em; }
.prose pre { overflow-x: auto; padding: 1rem; border-radius: var(--radius); color: var(--white); background: var(--ink); }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.2rem; border-left: 5px solid var(--orange); background: var(--orange-soft); }
.source-list { padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 0.9rem; }
.source-list li { margin-bottom: 0.55rem; }

.form-card { padding: clamp(1.3rem, 4vw, 2.2rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-2); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 790; font-size: 0.9rem; }
input, textarea, select {
  width: 100%;
  padding: 0.75rem 0.82rem;
  border: 1px solid #bdb5a9;
  border-radius: 0.65rem;
  color: var(--ink);
  background: var(--white);
}
textarea { min-height: 145px; resize: vertical; }
.field-hint { color: var(--muted); font-size: 0.78rem; }
.checkbox { display: grid; grid-template-columns: 1.2rem 1fr; gap: 0.65rem; align-items: start; }
.checkbox input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; }
.checkbox label { font-weight: 620; }
.form-status { min-height: 1.5em; margin-top: 0.8rem; font-size: 0.9rem; }
.form-status.error { color: var(--red); }
.form-status.success { color: #267446; }
.hp-field { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }

.dialog { width: min(calc(100% - 2rem), 620px); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: var(--radius-lg); color: var(--ink); background: var(--paper-2); box-shadow: var(--shadow-lg); }
.dialog::backdrop { background: rgb(15 25 27 / 0.72); backdrop-filter: blur(5px); }
.dialog-inner { padding: clamp(1.3rem, 4vw, 2rem); }
.dialog-header { display: flex; justify-content: space-between; gap: 1rem; align-items: start; margin-bottom: 1rem; }
.dialog-close { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); font-size: 1.4rem; }
.download-result { display: none; padding: 1rem; border-radius: var(--radius); background: var(--teal-soft); }
.download-result.visible { display: block; }

.cta-band { position: relative; overflow: hidden; padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--radius-lg); color: var(--white); background: var(--teal-dark); box-shadow: var(--shadow-lg); }
.cta-band::after { content: ""; position: absolute; right: -5rem; top: -5rem; width: 14rem; height: 14rem; border: 1px solid rgb(255 255 255 / 0.22); border-radius: 50%; box-shadow: 0 0 0 3rem rgb(255 255 255 / 0.04), 0 0 0 6rem rgb(255 255 255 / 0.03); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { max-width: 20ch; }
.cta-band p { max-width: 62ch; margin-top: 0.8rem; color: rgb(255 255 255 / 0.78); }
.cta-band .hero-actions { margin-top: 1.3rem; }

.site-footer { padding: 3.5rem 0 1.5rem; color: rgb(255 255 255 / 0.75); background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 0.7fr); gap: 2rem; }
.footer-brand { max-width: 420px; }
.footer-brand .brand { color: var(--white); }
.footer-brand p { margin-top: 1rem; }
.site-footer h3 { margin-bottom: 0.8rem; color: var(--white); font-size: 0.95rem; letter-spacing: 0; }
.site-footer a { display: block; padding: 0.28rem 0; color: rgb(255 255 255 / 0.72); text-decoration: none; font-size: 0.88rem; }
.site-footer a:hover { color: var(--yellow-soft); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.3rem; padding-top: 1.2rem; border-top: 1px solid rgb(255 255 255 / 0.12); font-size: 0.78rem; }

.toast { position: fixed; right: 1rem; bottom: 1rem; z-index: 300; max-width: 390px; padding: 0.9rem 1rem; border-radius: var(--radius); color: var(--white); background: var(--ink); box-shadow: var(--shadow-lg); transform: translateY(140%); transition: transform 220ms ease; }
.toast.visible { transform: translateY(0); }

@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    padding: 0.75rem 1rem 1rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
  }
  .primary-nav[data-open="true"] { display: grid; }
  .primary-nav a { border-radius: 0.6rem; }
  .primary-nav .nav-cta { margin: 0.35rem 0 0; text-align: center; }
  .program-map { grid-template-columns: repeat(3, 1fr); }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr repeat(2, 0.8fr); }
  .footer-grid > :last-child { grid-column: 2 / -1; }
}

@media (max-width: 780px) {
  .hero-grid, .page-hero-grid, .split, .article-layout { grid-template-columns: 1fr; }
  .hero-grid { align-items: start; }
  .hero h1 { max-width: 12ch; }
  .page-hero h1 { max-width: 15ch; }
  .page-hero-aside { border-left-width: 3px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .section-heading > a, .section-heading > .btn { margin-top: 1rem; }
  .split.sticky > :first-child, .article-toc { position: static; }
  .article-toc { display: none; }
  .stop-switch-confirm { grid-template-columns: 1fr; }
  .stop-switch-confirm > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .stop-switch-confirm > div:last-child { border-bottom: 0; }
  .program-map { grid-template-columns: repeat(2, 1fr); }
  .metric-row { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
  .traffic-row { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > :last-child { grid-column: auto; }
}

@media (max-width: 520px) {
  .container, .narrow { width: min(calc(100% - 1.25rem), var(--max)); }
  .brand-copy small { display: none; }
  .header-inner { min-height: 68px; }
  .hero-actions { display: grid; }
  .btn { width: 100%; }
  .program-map { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { display: block; }
  .footer-bottom > * + * { margin-top: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .site-notice, .site-header, .site-footer, .hero-actions, .resource-toolbar, .article-toc { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .page-hero { padding: 1.5rem 0; }
  .card, .callout, .table-wrap { break-inside: avoid; box-shadow: none; }
  a { color: #000; text-decoration: underline; }
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
