:root {
  color-scheme: light;
  /* Future-state redesign tokens: warm-neutral paper palette, deep ink, single editorial accent #2F4E78.
     Legacy variable names retained as aliases so existing layouts retone without rewrites. */
  --paper: #FAF8F2;
  --paper-2: #F2EFE6;
  --paper-3: #ECE8DC;
  --ink-deep: #2A2620;
  --ink-mid: #6B645A;
  --ink-quiet: #94897B;
  --rule: #D7D1C4;
  --rule-2: #E5E0D3;
  --editorial-accent: #2F4E78;
  --editorial-accent-soft: #D8E1ED;
  --editorial-accent-ink: #1B2E47;
  --caution: #B07A2E;

  /* Legacy aliases (retoned to redesign palette) */
  --bg: var(--paper);
  --bg-soft: var(--paper-2);
  --surface: var(--paper);
  --surface-soft: var(--paper-2);
  --surface-tint: var(--paper-2);
  --surface-strong: var(--ink-deep);
  --surface-dark: var(--ink-deep);
  --ink: var(--ink-deep);
  --ink-soft: var(--ink-mid);
  --muted: var(--ink-quiet);
  --line: var(--rule-2);
  --line-strong: var(--rule);
  --brand: var(--editorial-accent);
  --brand-strong: var(--editorial-accent-ink);
  --brand-soft: var(--editorial-accent-soft);
  --accent: var(--editorial-accent);
  --accent-soft: var(--editorial-accent-soft);
  --shadow-sm: 0 1px 0 rgba(42, 38, 32, 0.04);
  --shadow-md: 0 1px 0 rgba(42, 38, 32, 0.06);
  --radius-xl: 4px;
  --radius-lg: 4px;
  --radius-md: 2px;
  --radius-sm: 2px;
  --wrap: 1180px;
  --measure: 720px;
  --font-ui: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brand-strong);
  text-decoration-color: rgba(11, 109, 113, 0.26);
  text-underline-offset: 0.18em;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

a:hover {
  color: var(--brand);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--editorial-accent);
  outline-offset: 2px;
}

p,
ul,
ol,
table,
blockquote {
  margin: 0 0 1.2rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.45rem;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-name,
.button,
.eyebrow,
.panel-label,
.page-card-type,
.page-card-tag,
.page-card-link,
.feature-kicker,
.feature-badge,
.footer-heading,
.footer-chip,
.resource-count,
.nav-toggle,
.meta-pill,
.workflow-step-index,
.text-link {
  font-family: var(--font-ui);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1rem;
  color: #0f2431;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

h1 {
  font-size: clamp(3rem, 6vw, 4.8rem);
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

small {
  font-size: 0.92rem;
}

blockquote {
  border-left: 4px solid rgba(15, 139, 141, 0.24);
  padding: 0.2rem 0 0.2rem 1rem;
  color: var(--ink-soft);
  font-style: italic;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

th,
td {
  padding: 1rem 1.05rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(15, 139, 141, 0.08);
  color: var(--ink-soft);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

input,
button,
textarea,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap {
  width: min(var(--wrap), calc(100vw - 2rem));
  margin: 0 auto;
}

.site-main {
  padding: 1.25rem 0 5rem;
}

.page-shell {
  display: grid;
  gap: 1.6rem;
}

.home-shell {
  gap: 2rem;
}

.home-section,
.page-section,
.page-hero {
  padding-top: 0.35rem;
}

.home-section-surface .wrap {
  padding: clamp(1.3rem, 2.5vw, 2rem);
  border: 1px solid rgba(23, 48, 66, 0.06);
  border-radius: calc(var(--radius-xl) + 2px);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(23, 48, 66, 0.08);
  backdrop-filter: blur(16px);
  background: rgba(250, 252, 253, 0.9);
}

.site-header-shell {
  display: grid;
  gap: 1rem;
  padding: 1rem 0 1.15rem;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.brand-system {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-mark svg {
  width: 2.4rem;
  height: 2.4rem;
  display: block;
}

.brand-mark .bm-stroke {
  fill: none;
  stroke: #1F3A5F;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark .bm-ink { fill: #1F3A5F; }
/* Logo-only teal — must never appear elsewhere in the UI. */
.brand-mark .bm-teal { fill: #5C8499; }
.brand-mark .bm-disc { fill: var(--paper); }
.brand-mark .bm-num {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 6.6px;
  font-weight: 700;
  fill: #1F3A5F;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}

.brand-name {
  font-size: 1.16rem;
  font-weight: 720;
  letter-spacing: -0.03em;
  color: #102430;
}

.brand-tagline {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.35;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.primary-nav .menu,
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-nav .menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: rgba(15, 139, 141, 0.09);
  color: var(--brand-strong);
}

.nav-toggle {
  display: none;
  min-height: 2.75rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-header-search {
  width: 100%;
}

.site-search-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  max-width: 720px;
}

.site-search-icon {
  position: absolute;
  left: 1rem;
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid #90a1b0;
  border-radius: 50%;
}

.site-search-icon::after {
  content: "";
  position: absolute;
  right: -0.32rem;
  bottom: -0.32rem;
  width: 0.45rem;
  height: 2px;
  border-radius: 999px;
  background: #90a1b0;
  transform: rotate(45deg);
  transform-origin: center;
}

.site-search-form input,
.site-search-form button {
  min-height: 3.25rem;
  border-radius: var(--radius-sm);
}

.site-search-form input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.8rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.site-search-form input::placeholder {
  color: #8ca0af;
}

.site-search-form input:focus {
  outline: 2px solid rgba(15, 139, 141, 0.18);
  outline-offset: 2px;
  border-color: rgba(15, 139, 141, 0.3);
}

.site-search-form button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.82rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 14px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.button-primary,
.site-search-form button {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #f7fbfc;
  box-shadow: 0 14px 28px rgba(15, 139, 141, 0.16);
}

.button-primary:hover,
.site-search-form button:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

/* Keep the visually hidden submit button at 1px; the button padding above widened it past the viewport on phones */
.site-search-form button.sr-only {
  min-height: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(23, 48, 66, 0.12);
  color: var(--ink);
}

.button-secondary:hover {
  background: var(--surface-soft);
}

.button-header {
  min-height: 2.9rem;
  padding-inline: 1rem;
  white-space: nowrap;
}

.eyebrow,
.panel-label,
.page-card-type,
.feature-kicker,
.footer-heading,
.resource-count,
.utility-kicker {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-summary,
.section-heading p,
.feature-card p,
.resource-card p,
.page-card-summary,
.article-aside-card p,
.footer-intro p,
.utility-panel p,
.related-panel p,
.article-meta,
.hero-feature-card p,
.hero-support-card li,
.journey-note p,
.section-stat p,
.final-cta p,
.term-card p,
.section-hero-panel p {
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.text-link::after {
  content: "\2192";
}

.home-hero-grid,
.section-hero-grid,
.article-header,
.workflow-explainer,
.two-column-panels,
.split-section,
.utility-grid,
.footer-bottom,
.final-cta {
  display: grid;
  gap: 1.4rem;
}

.home-hero-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  align-items: stretch;
}

.home-hero-copy,
.hero-feature-card,
.hero-support-card,
.feature-card,
.resource-card,
.section-hero-copy,
.section-hero-panel,
.article-header-main,
.article-aside-card,
.reading-layout,
.utility-panel,
.related-panel,
.term-card,
.final-cta {
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: none;
}

.page-card {
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--paper);
  box-shadow: none;
  transition: border-color 120ms ease;
}

.home-hero-copy,
.section-hero-copy,
.article-header-main,
.reading-layout {
  padding: clamp(1.6rem, 3vw, 2.6rem);
}

.home-hero-copy {
  background: var(--paper);
}

.hero-actions,
.footer-note,
.hero-proof,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions {
  margin-top: 2rem;
}

.home-hero-rail {
  display: grid;
  gap: 1rem;
}

.hero-feature-card,
.hero-support-card,
.feature-card,
.resource-card,
.section-hero-panel,
.article-aside-card,
.utility-panel,
.related-panel {
  padding: 1.35rem;
}

.hero-feature-card {
  background: var(--paper-2);
}

.hero-feature-top,
.page-card-top,
.page-card-footer,
.section-heading-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.feature-badge,
.hero-proof span,
.footer-chip,
.meta-pill,
.page-card-tag {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-badge-amber {
  background: var(--editorial-accent-soft);
  color: var(--editorial-accent-ink);
}

.hero-feature-meta,
.page-card-date {
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-proof span,
.footer-chip {
  border: 1px solid var(--rule);
  background: var(--paper-2);
  color: var(--ink-mid);
}

.hero-support-card {
  background: var(--paper-2);
}

.hero-support-list {
  margin: 0;
  padding-left: 1.15rem;
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 1.5rem;
}

.section-heading-centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading-split {
  max-width: none;
}

.feature-grid,
.card-grid,
.resource-grid,
.featured-grid,
.related-grid,
.term-grid {
  display: grid;
  gap: 1rem;
}

.feature-grid-3,
.card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid-2,
.featured-grid,
.term-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.featured-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-icon,
.resource-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 16px;
  margin-bottom: 1rem;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resource-card,
.term-card {
  text-decoration: none;
}

.resource-card:hover,
.feature-card:hover,
.page-card:hover,
.term-card:hover {
  border-color: var(--ink-deep);
}

.resource-count {
  display: inline-flex;
  margin-top: 1rem;
  margin-bottom: 0;
  color: var(--brand-strong);
}

.page-card {
  display: grid;
  overflow: hidden;
  padding: 0;
}

/* Page-card media — warm-paper striped placeholder shared by all sections.
   Replaces the prior teal/amber gradient theme overrides. When a feature
   image exists, the <img> covers this block. */
.page-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, var(--paper-2), var(--paper-2) 8px, var(--paper-3) 8px, var(--paper-3) 16px);
  border-bottom: 1px solid var(--rule);
}

.page-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-card-media-inner {
  position: absolute;
  inset: 0;
}

.page-card-body {
  display: grid;
  gap: 0.8rem;
  padding: 1.25rem;
}

.page-card-top {
  align-items: flex-start;
}

.page-card-type {
  margin: 0;
}

.page-card h3,
.feature-card h3,
.resource-card h3,
.term-card h3 {
  margin: 0;
}

.page-card h3 a,
.resource-card h3,
.feature-card h3,
.term-card h3,
.section-featured-link a {
  color: var(--ink-deep);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: -0.005em;
}

.page-card-summary:last-child,
.feature-card p:last-child,
.resource-card p:last-child,
.term-card p:last-child {
  margin-bottom: 0;
}

.page-card-tag {
  margin: 0;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-mid);
  border-radius: 2px;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.5rem;
}

.page-card-link {
  margin-left: auto;
  color: var(--brand-strong);
}

.page-card-featured .page-card-body {
  padding: 1.45rem;
}

.section-hero-grid,
.article-header {
  grid-template-columns: minmax(0, 1.24fr) minmax(280px, 0.76fr);
  align-items: start;
}

.journey-note,
.section-stat {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(23, 48, 66, 0.08);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(242, 247, 248, 0.95), rgba(255, 255, 255, 0.94));
}

.section-stat {
  display: grid;
  gap: 0.15rem;
}

.section-stat span {
  font-family: var(--font-ui);
  font-size: 2rem;
  font-weight: 750;
  line-height: 1;
  color: #102430;
}

.section-featured-link {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.section-featured-link span {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.article-shell {
  display: grid;
  gap: 1.2rem;
}

.article-aside {
  display: grid;
  gap: 1rem;
}

.article-aside-card-soft {
  background: linear-gradient(180deg, rgba(242, 247, 248, 0.95), rgba(255, 243, 227, 0.84));
}

.reading-layout {
  width: min(100%, 980px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 253, 0.95));
}

.meta-pill {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.meta-pill-muted {
  background: rgba(23, 48, 66, 0.06);
  color: var(--ink-soft);
}

.prose,
.prose-lead {
  max-width: var(--measure);
}

.prose > :first-child,
.prose-lead > :first-child {
  margin-top: 0;
}

.prose h2,
.prose h3 {
  scroll-margin-top: 6rem;
}

.prose h2:not(:first-child) {
  margin-top: 3.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.prose h3 {
  margin-top: 2.1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.45rem;
}

.prose ul li::marker,
.prose ol li::marker {
  color: var(--brand);
}

.prose strong {
  color: #102430;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.prose code {
  padding: 0.12rem 0.35rem;
  border-radius: 7px;
  background: rgba(23, 48, 66, 0.07);
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.prose pre {
  overflow: auto;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: #102430;
  color: #eff5f7;
}

.prose pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.utility-panel,
.related-panel {
  margin-top: 2rem;
}

.utility-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.final-cta {
  grid-template-columns: minmax(0, 1.1fr) auto;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--paper-2);
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-end;
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid rgba(15, 28, 40, 0.1);
  background: linear-gradient(180deg, #132130 0%, #0e1a25 100%);
  color: rgba(239, 244, 247, 0.78);
}

.footer-shell {
  padding: 2.8rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 1.4rem;
}

.footer-brand-link {
  display: inline-block;
  margin-bottom: 1rem;
}

.site-footer .brand-name,
.site-footer .footer-heading,
.site-footer .brand-link,
.site-footer .footer-bottom p {
  color: #f5f8fb;
}

.site-footer .brand-tagline,
.footer-menu a,
.footer-intro p {
  color: rgba(226, 234, 239, 0.72);
}

.footer-menu li + li {
  margin-top: 0.65rem;
}

.footer-menu a {
  text-decoration: none;
}

.footer-menu a:hover {
  color: #6ed7d8;
}

.footer-note {
  margin-top: 1rem;
}

.footer-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(239, 244, 247, 0.8);
}

.footer-bottom {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 1080px) {
  .home-hero-grid,
  .section-hero-grid,
  .article-header,
  .final-cta,
  .footer-grid,
  .footer-bottom,
  .utility-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid-3,
  .card-grid-3,
  .resource-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid-2,
  .term-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .wrap {
    width: min(var(--wrap), calc(100vw - 1.2rem));
  }

  .site-main {
    padding-top: 0.8rem;
  }

  .site-header-inner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header-actions {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .site-header.nav-open .header-actions {
    display: grid;
  }

  .primary-nav,
  .button-header,
  .site-search-form {
    width: 100%;
  }

  .primary-nav .menu {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-nav a {
    width: 100%;
    border-radius: var(--radius-sm);
  }

  .site-search-form {
    grid-template-columns: 1fr;
  }

  .button-header {
    justify-content: center;
  }

  .feature-grid-3,
  .card-grid-3,
  .resource-grid,
  .related-grid,
  .term-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-copy,
  .section-hero-copy,
  .article-header-main,
  .reading-layout {
    padding: 1.35rem;
  }

  .hero-feature-card,
  .hero-support-card,
  .feature-card,
  .resource-card,
  .section-hero-panel,
  .article-aside-card,
  .utility-panel,
  .related-panel,
  .term-card,
  .page-card-body,
  .final-cta {
    padding: 1.05rem;
  }

  h1 {
    font-size: clamp(2.35rem, 10vw, 3.6rem);
  }

  h2 {
    font-size: clamp(1.75rem, 7vw, 2.4rem);
  }
}

body {
  background: #fafbfc;
  font-family: var(--font-ui);
  line-height: 1.6;
}

.wrap {
  width: min(1280px, calc(100vw - 2rem));
}

.site-main {
  padding: 0 0 5rem;
}

.site-header {
  position: relative;
  top: auto;
  background: #ffffff;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  backdrop-filter: none;
}

.site-header-shell {
  gap: 0;
  padding: 0 2rem;
}

.site-header-inner {
  padding: 1.25rem 0;
}

.brand-link-plain {
  color: inherit;
  text-decoration: none;
}

.brand-plain {
  display: flex;
  flex-direction: column;
}

.brand-plain-name {
  color: #0f172a;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-plain-tagline {
  margin-top: 0.125rem;
  color: #64748b;
  font-size: 13px;
  line-height: 1.35;
}

.header-actions {
  gap: 1.5rem;
}

.primary-nav .menu {
  flex-wrap: nowrap;
  gap: 2rem;
}

.primary-nav a {
  display: block;
  min-height: auto;
  padding: 0;
  border-radius: 0;
  color: #334155;
  font-size: 15px;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: transparent;
  color: #0f172a;
}

.site-header-search {
  padding-bottom: 1.25rem;
}

.site-search-form {
  display: block;
  max-width: 600px;
}

.site-search-form input {
  min-height: 48px;
  padding: 0.75rem 1rem 0.75rem 3rem;
  border: 1px solid rgba(226, 232, 240, 1);
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  box-shadow: none;
  font-size: 15px;
}

.site-search-form input::placeholder {
  color: #94a3b8;
}

.site-search-form input:focus {
  outline: none;
  border-color: rgba(13, 148, 136, 0.9);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.08);
}

.button {
  min-height: 3rem;
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.button-primary {
  background: #0d9488;
  color: #ffffff;
  box-shadow: none;
}

.button-primary:hover {
  background: #0f766e;
  color: #ffffff;
  transform: none;
}

.button-secondary {
  background: #f1f5f9;
  border-color: transparent;
  color: #334155;
}

.button-secondary:hover {
  background: #e2e8f0;
}

.button-header {
  min-height: 44px;
  padding: 0.6875rem 1.25rem;
  font-size: 15px;
}

.homepage-mockup {
  min-height: 100vh;
  background: #fafbfc;
}

.homepage-hero {
  background: #ffffff;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.homepage-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.93fr);
  gap: 4rem;
  align-items: center;
  padding: 5rem 2rem;
}

.homepage-hero-copy h1 {
  margin-bottom: 1.5rem;
  color: #0f172a;
  font-size: clamp(2.85rem, 4.6vw, 3.9rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.homepage-pill {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: #ccfbf1;
  color: #0f766e;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.homepage-pill-outline {
  background: #ffffff;
  border: 1px solid #99f6e4;
}

.homepage-hero-lead,
.homepage-section-intro p,
.homepage-editorial-card p,
.homepage-popular-card p,
.homepage-feature-card p,
.homepage-value-card p,
.homepage-resource-card p,
.homepage-cta-inner p,
.footer-intro p,
.footer-copyright {
  color: #475569;
}

.homepage-hero-lead {
  max-width: 36rem;
  margin-bottom: 2rem;
  font-size: 18px;
  line-height: 1.75;
}

.homepage-hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.homepage-feature-card {
  padding: 2rem;
  border: 1px solid rgba(226, 232, 240, 1);
  border-radius: 16px;
  background: #f8fafc;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.homepage-feature-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.homepage-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: #fef3c7;
  color: #d97706;
  font-size: 14px;
}

.homepage-feature-label {
  color: #b45309;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.homepage-feature-card h2 {
  margin-bottom: 0.75rem;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.homepage-feature-card h2 a,
.homepage-editorial-card h3 a,
.homepage-popular-card h3 a {
  color: #0f172a;
  text-decoration: none;
}

.homepage-feature-card p {
  margin-bottom: 1.5rem;
  font-size: 15px;
  line-height: 1.65;
}

.homepage-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.homepage-feature-tags span {
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(226, 232, 240, 1);
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
}

.homepage-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #0f766e;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.homepage-value,
.homepage-resources {
  padding: 5rem 0;
}

.homepage-chooser {
  padding: 4rem 0 3.5rem;
  background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.homepage-chooser .homepage-section-intro {
  margin-bottom: 2rem;
}

.homepage-chooser-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.homepage-chooser-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  height: 100%;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(226, 232, 240, 1);
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.homepage-chooser-card:hover {
  border-color: #0f766e;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.1);
  transform: translateY(-1px);
}

.homepage-chooser-situation {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.homepage-chooser-destination {
  margin-top: auto;
  font-size: 13px;
  font-weight: 500;
  color: #0f766e;
}

.homepage-editorial,
.homepage-popular {
  padding: 5rem 0;
  background: #ffffff;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.homepage-section-intro {
  margin-bottom: 2.5rem;
}

.homepage-section-intro-centered {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.homepage-section-intro h2 {
  margin-bottom: 0.75rem;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.homepage-section-intro p {
  font-size: 16px;
}

.homepage-section-intro-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.homepage-section-intro-split h2,
.homepage-popular .homepage-section-intro h2,
.homepage-resources .homepage-section-intro h2 {
  font-size: 32px;
}

.homepage-feature-grid,
.homepage-editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.homepage-value-card,
.homepage-editorial-card,
.homepage-popular-card,
.homepage-resource-card {
  border: 1px solid rgba(226, 232, 240, 1);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.homepage-value-card {
  padding: 2rem;
}

.homepage-value-icon,
.homepage-resource-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  background: #ccfbf1;
  color: #0d9488;
  font-size: 22px;
}

.homepage-resource-icon {
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid rgba(226, 232, 240, 1);
  background: linear-gradient(180deg, #f8fafc, #ecfeff);
  color: #0f766e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.homepage-resource-icon svg {
  width: 1.65rem;
  height: 1.65rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.homepage-resource-card-workflows .homepage-resource-icon {
  color: #0f8b8d;
  background: linear-gradient(180deg, #f0fdfa, #dff7f5);
}

.homepage-resource-card-blueprints .homepage-resource-icon {
  color: #24518b;
  background: linear-gradient(180deg, #eff6ff, #dbeafe);
}

.homepage-resource-card-comparisons .homepage-resource-icon {
  color: #9a6b33;
  background: linear-gradient(180deg, #fff7ed, #ffedd5);
}

.homepage-resource-card-templates .homepage-resource-icon {
  color: #0f766e;
  background: linear-gradient(180deg, #f0fdfa, #ccfbf1);
}

.homepage-resource-card-glossary .homepage-resource-icon,
.homepage-resource-card-faq .homepage-resource-icon {
  color: #475569;
  background: linear-gradient(180deg, #f8fafc, #e2e8f0);
}

.homepage-value-card h3 {
  margin-bottom: 0.75rem;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.homepage-value-card p {
  font-size: 15px;
  line-height: 1.65;
}

.homepage-editorial-card,
.homepage-popular-card {
  overflow: hidden;
  background: #f8fafc;
}

.homepage-editorial-media,
.homepage-popular-media {
  display: block;
  background-color: #cbd5e1;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.homepage-editorial-media {
  aspect-ratio: 16 / 9;
}

.homepage-editorial-body {
  padding: 1.5rem;
}

.homepage-popular-body {
  padding: 1.75rem;
}

.homepage-editorial-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: #64748b;
  font-size: 13px;
}

.homepage-editorial-meta span:first-child {
  color: #0f766e;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.homepage-editorial-card h3 {
  margin-bottom: 0.5rem;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.homepage-editorial-card p {
  margin-bottom: 1rem;
  font-size: 14px;
  line-height: 1.6;
}

.homepage-editorial-foot,
.homepage-popular-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #64748b;
  font-size: 13px;
}

.homepage-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.65rem;
}

.homepage-resource-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  gap: 0.18rem;
  min-height: 100%;
  padding: 1.55rem 1.5rem 1.45rem;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.homepage-resource-card:hover {
  border-color: #99f6e4;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.homepage-resource-card h3 {
  margin-bottom: 0.4rem;
  color: #0f172a;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.homepage-resource-card p {
  margin-bottom: 0.95rem;
  max-width: 100%;
  color: #526172;
  font-size: 12.75px;
  line-height: 1.56;
}

.homepage-resource-card span:last-child {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  color: #0f766e;
  font-size: 12.5px;
  font-weight: 600;
}

.homepage-popular-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.homepage-popular-card h3 {
  margin-bottom: 0.75rem;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.homepage-popular-card p {
  margin-bottom: 1.25rem;
  font-size: 15px;
  line-height: 1.65;
}

.homepage-cta {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, rgba(204, 251, 241, 0.45) 100%);
}

.homepage-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.homepage-cta-inner h2 {
  margin-bottom: 1rem;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.homepage-cta-inner p {
  font-size: 17px;
  line-height: 1.68;
}

.homepage-cta-actions {
  justify-content: center;
  margin-top: 2rem;
}

.site-footer {
  margin-top: 0;
  background: #0f172a;
  border-top: 0;
  color: #94a3b8;
}

.footer-shell {
  padding: 4rem 2rem;
}

.footer-grid {
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand-link {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.site-footer .brand-plain-name,
.footer-heading {
  color: #ffffff;
}

.footer-heading {
  margin-bottom: 1rem;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.footer-menu a,
.footer-bottom p,
.footer-bottom-links a,
.footer-intro p,
.footer-copyright {
  color: #94a3b8;
}

.footer-menu a,
.footer-bottom-links a {
  text-decoration: none;
  font-size: 14px;
}

.footer-menu a:hover,
.footer-bottom-links a:hover {
  color: #5eead4;
}

.footer-copyright {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 13px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(30, 41, 59, 1);
}

.footer-bottom p {
  font-size: 13px;
}

@media (max-width: 1080px) {
  .homepage-hero-inner,
  .homepage-feature-grid,
  .homepage-editorial-grid,
  .homepage-popular-grid,
  .homepage-resource-grid,
  .homepage-chooser-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .homepage-hero-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header-shell,
  .footer-shell,
  .homepage-hero-inner {
    padding-left: 0;
    padding-right: 0;
  }

  .site-header-inner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .header-actions {
    display: none;
    width: 100%;
    gap: 1rem;
    flex-direction: column;
    align-items: stretch;
  }

  .site-header.nav-open .header-actions {
    display: flex;
  }

  .primary-nav .menu {
    flex-direction: column;
    gap: 0.75rem;
  }

  .button-header {
    width: 100%;
    justify-content: center;
  }

  .homepage-hero-inner,
  .homepage-feature-grid,
  .homepage-editorial-grid,
  .homepage-resource-grid,
  .homepage-chooser-grid,
  .homepage-popular-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .homepage-section-intro-split,
  .homepage-popular-foot,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .homepage-cta-inner h2 {
    font-size: 32px;
  }

  .homepage-hero-copy h1 {
    font-size: clamp(2.6rem, 10vw, 3.5rem);
  }
}

/* Header fidelity pass: scoped to header only */
.site-header {
  position: relative;
  top: auto;
  z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  backdrop-filter: none;
}

.site-header-shell {
  display: block;
  width: min(1280px, calc(100vw - 2rem));
  padding: 0 2rem;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: inherit;
  text-decoration: none;
  flex: 0 0 auto;
}

.site-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.site-brand-icon svg {
  width: 2.4rem;
  height: 2.4rem;
  display: block;
}

.site-brand-copy {
  display: flex;
  flex-direction: column;
}

.site-brand-name {
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.site-brand-accent {
  color: var(--brand);
}

.site-brand-tagline {
  margin-top: 0.125rem;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.35;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  gap: 1.25rem;
}

.primary-nav .menu {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  min-height: 2.75rem;
  gap: 2rem;
  justify-content: flex-start;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #334155;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: transparent;
  color: #0f172a;
}

.button-header {
  min-height: 2.75rem;
  padding: 0.6875rem 1.25rem;
  margin-left: 0.25rem;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  background: #0d9488;
  color: #ffffff;
}

.button-header:hover {
  background: #0f766e;
  color: #ffffff;
}

.button-header[aria-current="page"] {
  background: #0f766e;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.site-header-search {
  width: 100%;
  padding: 0 0 1.25rem;
}

.site-search-form {
  position: relative;
  display: block;
  max-width: 600px;
}

.site-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 2px solid #94a3b8;
  border-radius: 50%;
  transform: translateY(-50%);
}

.site-search-icon::after {
  content: "";
  position: absolute;
  right: -0.32rem;
  bottom: -0.32rem;
  width: 0.45rem;
  height: 2px;
  border-radius: 999px;
  background: #94a3b8;
  transform: rotate(45deg);
  transform-origin: center;
}

.site-search-form input {
  width: 100%;
  min-height: 3.125rem;
  padding: 0.75rem 1rem 0.75rem 3rem;
  border: 1px solid rgba(226, 232, 240, 1);
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  font-size: 15px;
  line-height: 1.4;
  box-shadow: none;
}

.site-search-form input::placeholder {
  color: #94a3b8;
}

.site-search-form input:focus {
  outline: none;
  border-color: rgba(13, 148, 136, 0.9);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.08);
}

.nav-toggle {
  min-height: 2.75rem;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(226, 232, 240, 1);
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 600;
}

@media (max-width: 1080px) {
  .site-header-shell {
    padding: 0;
  }

  .site-header-inner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header-actions {
    display: none;
    width: 100%;
    gap: 1rem;
    flex-direction: column;
    align-items: stretch;
  }

  .site-header.nav-open .header-actions {
    display: flex;
  }

  .primary-nav,
  .button-header {
    width: 100%;
  }

  .primary-nav .menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .button-header {
    justify-content: center;
  }

  /* Mobile-open CTA presented as a calmer ghost link so it does not dominate the menu */
  .site-header.nav-open .header-actions .button-header {
    margin-top: 0.5rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    color: var(--brand-strong);
    box-shadow: none;
  }

  .site-header.nav-open .header-actions .button-header::after {
    content: " \2192";
  }

  .site-header.nav-open .header-actions .button-header:hover,
  .site-header.nav-open .header-actions .button-header:focus-visible {
    background: var(--brand-soft);
    color: var(--brand-strong);
  }
}

/* Site-wide consistency pass aligned to current homepage system */
.site-header-inner {
  align-items: center;
}

.primary-nav {
  display: flex;
  align-items: center;
}

.primary-nav .menu {
  align-items: center;
  justify-content: center;
}

.primary-nav .menu li {
  display: flex;
  align-items: center;
}

.primary-nav .menu li + li {
  margin-top: 0;
}

.button-header {
  align-self: center;
}

/* Collapsed menu: undo the centring above so links stack left-aligned at full width */
@media (max-width: 1080px) {
  .primary-nav .menu {
    width: 100%;
    align-items: stretch;
  }

  .primary-nav .menu li {
    display: block;
  }

  .primary-nav a {
    width: 100%;
    justify-content: flex-start;
  }
}

.page-shell {
  gap: 2rem;
}

.page-hero,
.page-section {
  padding-top: 0;
}

.section-hero-grid,
.article-header {
  gap: 1.5rem;
}

.section-hero-copy,
.section-hero-panel,
.article-header-main,
.article-aside-card,
.reading-layout,
.utility-panel,
.related-panel,
.term-card,
.page-card {
  border: 1px solid rgba(226, 232, 240, 1);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.section-hero-copy,
.article-header-main,
.reading-layout {
  padding: 2rem;
}

.section-hero-panel,
.article-aside-card,
.utility-panel,
.related-panel,
.term-card {
  padding: 1.5rem;
}

.section-hero-copy {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
}

.section-hero-copy h1,
.article-header-main h1 {
  color: #0f172a;
  font-size: clamp(2.35rem, 4.2vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

.hero-summary {
  max-width: 42rem;
  color: #475569;
  font-size: 18px;
  line-height: 1.72;
}

.prose-lead {
  margin-top: 1.25rem;
}

.prose-lead p,
.section-hero-panel p,
.article-aside-card p,
.journey-note p,
.section-stat p,
.page-card-summary,
.utility-panel p,
.related-panel p,
.term-card p {
  color: #475569;
}

.section-stat {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(226, 232, 240, 1);
  border-radius: 14px;
  background: #f8fafc;
}

.section-stat span {
  color: #0f172a;
  font-size: 2rem;
  font-weight: 700;
}

.journey-note {
  border: 1px solid rgba(226, 232, 240, 1);
  border-radius: 14px;
  background: #f8fafc;
}

.section-featured-link {
  margin-top: 1rem;
}

.section-featured-link a {
  color: #0f172a;
  font-weight: 600;
  text-decoration: none;
}

.section-heading {
  max-width: 44rem;
  margin-bottom: 1.5rem;
}

.section-heading h2,
.utility-panel h2,
.related-panel h2 {
  color: var(--ink-deep);
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.008em;
}

.section-heading p,
.utility-panel p,
.related-panel p {
  color: var(--ink-mid);
  font-size: 16px;
}

.card-grid,
.featured-grid,
.term-grid,
.related-grid {
  gap: 1.5rem;
}

.card-grid.card-grid-2,
.featured-grid,
.term-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-card {
  overflow: hidden;
  background: var(--paper);
  transition: border-color 120ms ease;
}

.page-card:focus-within,
.term-card:focus-within {
  border-color: var(--editorial-accent);
  outline: 2px solid var(--editorial-accent-soft);
  outline-offset: 0;
}

.page-card-media {
  aspect-ratio: 16 / 9;
}

.page-card-media img,
.homepage-editorial-media img,
.homepage-popular-media img,
.section-hero-media img,
.article-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-card-body {
  gap: 0.85rem;
  padding: 1.5rem;
}

.page-card-top {
  align-items: center;
}

.page-card-type {
  margin: 0;
  color: #0f766e;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.page-card-date {
  color: #64748b;
  font-size: 13px;
}

.page-card h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.page-card h3 a {
  color: #0f172a;
  text-decoration: none;
}

.page-card-summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.page-card-footer {
  align-items: center;
  min-height: 1.5rem;
}

.page-card-tag {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 1);
  color: #475569;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.page-card-link {
  margin-left: auto;
  color: #0f766e;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
}

.page-card-link:hover {
  color: #0d9488;
}

.homepage-resource-card:focus-visible,
.homepage-chooser-card:focus-visible,
.homepage-inline-link:focus-visible,
.homepage-editorial-card a:focus-visible,
.homepage-popular-card a:focus-visible,
.page-card h3 a:focus-visible,
.page-card-link:focus-visible,
.term-card:focus-visible,
.term-card-link:focus-visible,
.primary-nav a:focus-visible,
.button:focus-visible {
  outline-color: rgba(15, 139, 141, 0.26);
}

.page-card-featured .page-card-body {
  padding: 1.75rem;
}

.page-card-featured h3 {
  font-size: 24px;
}

.article-shell {
  gap: 1.75rem;
}

.article-header-main {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
}

@media (min-width: 1081px) {
  .article-header {
    grid-template-columns: minmax(0, 1.16fr) minmax(260px, 0.84fr);
  }
}

.article-header {
  align-items: start;
}

.article-header-main .eyebrow {
  margin-bottom: 0.7rem;
}

.article-header-main h1 {
  max-width: 16ch;
  font-size: clamp(2.15rem, 3.9vw, 2.95rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.article-header-main .hero-summary {
  max-width: 39rem;
  margin-top: 0.45rem;
  font-size: 1rem;
  line-height: 1.75;
}

body[data-page-trust="true"] .article-header-main h1,
body[data-page-trust="true"] .section-hero-copy h1 {
  font-size: clamp(2rem, 3.3vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

body[data-page-trust="true"] .article-header-main .hero-summary,
body[data-page-trust="true"] .section-hero-copy .hero-summary {
  max-width: 37rem;
}

.section-hero-media,
.article-hero-media {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 1);
  border-radius: 16px;
  background: #e2e8f0;
}

.section-hero-media {
  margin-bottom: 1rem;
  aspect-ratio: 16 / 9;
}

.article-hero-media {
  margin-top: 0;
  aspect-ratio: 16 / 9;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.75rem;
  padding: 0.75rem;
  border: 1px solid rgba(226, 232, 240, 1);
  border-radius: 12px;
  background: #f8fafc;
}

.article-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(203, 213, 225, 1);
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
}

.article-action:hover,
.article-action:focus-visible {
  border-color: #0f766e;
  color: #0f766e;
  outline: none;
}

.article-action.is-copied {
  border-color: #0f766e;
  color: #0f766e;
  background: #ccfbf1;
}

.article-action-feedback {
  font-weight: 600;
}

@media print {
  .site-header,
  .site-footer,
  .article-aside,
  [data-back-to-top],
  [data-no-print],
  .related-panel,
  .page-type-block,
  nav,
  form,
  .article-meta {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .page-shell-single,
  .article-shell,
  .article-header,
  .reading-layout,
  .article-body {
    max-width: 100%;
    padding: 0;
    margin: 0;
    display: block;
  }

  .article-body.prose a {
    color: #000000;
    text-decoration: underline;
  }

  .article-hero-media {
    display: none;
  }
}

.article-meta {
  gap: 0.55rem;
  margin-top: 1.1rem;
  margin-bottom: 1.35rem;
}

.meta-pill {
  min-height: 2rem;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  background: #ccfbf1;
  color: #0f766e;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.meta-pill-muted {
  background: #f1f5f9;
  color: #64748b;
}

.article-aside-card {
  background: #ffffff;
}

.article-aside-card-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(248, 250, 252, 1));
}

.article-aside-card-muted {
  background: #f8fafc;
}

.reading-layout {
  width: min(100%, 940px);
  background: #ffffff;
  padding: 2.2rem;
  overflow: hidden;
}

.article-body {
  max-width: 720px;
}

.prose {
  color: #334155;
  font-size: 16.75px;
  line-height: 1.9;
  overflow-wrap: break-word;
}

.prose h2 {
  margin-top: 3.3rem;
  margin-bottom: 1.1rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(226, 232, 240, 1);
  color: #0f172a;
  font-size: 29px;
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

.prose h3 {
  margin-top: 2.35rem;
  margin-bottom: 0.9rem;
  color: #0f172a;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.28;
  text-wrap: balance;
}

.prose p,
.prose ul,
.prose ol,
.prose table,
.prose blockquote,
.prose pre {
  margin-bottom: 1.35rem;
}

.prose ul,
.prose ol {
  padding-left: 1.5rem;
}

.prose li + li {
  margin-top: 0.42rem;
}

.prose ul li::marker,
.prose ol li::marker {
  color: #0d9488;
}

.prose blockquote {
  margin-left: 0;
  border-left: 4px solid rgba(20, 184, 166, 0.22);
  padding: 0.35rem 0 0.35rem 1rem;
  color: #475569;
  background: transparent;
}

.prose table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(226, 232, 240, 1);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: none;
}

.prose th {
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.prose td {
  color: #334155;
}

.prose code {
  background: #f1f5f9;
  color: #0f172a;
}

.prose a,
.page-card h3 a,
.section-featured-link a {
  overflow-wrap: anywhere;
}

.prose pre {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: #0f172a;
  color: #f8fafc;
}

.utility-panel,
.related-panel {
  margin-top: 2rem;
  background: #f8fafc;
}

.utility-grid {
  gap: 1.5rem;
}

.utility-panel h3 {
  margin-bottom: 0.65rem;
  color: #0f172a;
  font-size: 18px;
  font-weight: 600;
}

.utility-panel ul,
.utility-panel p {
  margin-bottom: 0;
}

.related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.term-card {
  display: block;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.term-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.term-card h3 {
  margin-bottom: 0.65rem;
  color: #0f172a;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.term-card-link {
  display: inline-flex;
  margin-top: 1rem;
  color: #0f766e;
  font-size: 14px;
  font-weight: 500;
}

.site-footer {
  margin-top: 4rem;
}

.back-to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 32;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  border: 1px solid rgba(23, 48, 66, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-strong);
  box-shadow: 0 16px 36px rgba(17, 38, 52, 0.12);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.6rem);
  transition: opacity 160ms ease, transform 180ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: rgba(15, 139, 141, 0.24);
  background: rgba(255, 255, 255, 0.98);
  color: var(--brand);
  box-shadow: 0 18px 40px rgba(17, 38, 52, 0.14);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--editorial-accent);
  outline-offset: 2px;
}

.back-to-top svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.footer-shell {
  width: min(1280px, calc(100vw - 2rem));
  padding: 4rem 2rem;
}

.footer-grid {
  gap: 2rem;
}

.footer-intro {
  max-width: 28rem;
}

.footer-menu li + li {
  margin-top: 0.7rem;
}

.footer-bottom {
  gap: 1rem;
}

@media (max-width: 1080px) {
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .card-grid.card-grid-2,
  .featured-grid,
  .term-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .section-hero-copy,
  .article-header-main,
  .reading-layout {
    padding: 1.5rem;
  }

  .section-hero-panel,
  .article-aside-card,
  .utility-panel,
  .related-panel,
  .term-card,
  .page-card-body {
    padding: 1.25rem;
  }

  .section-heading h2,
  .utility-panel h2,
  .related-panel h2,
  .prose h2 {
    font-size: 28px;
  }

  .article-header-main h1,
  .section-hero-copy h1 {
    font-size: clamp(2rem, 7vw, 2.35rem);
    line-height: 1.12;
  }

  .article-header-main h1 {
    max-width: none;
  }

  .article-header-main .hero-summary {
    font-size: 0.98rem;
  }

  .article-meta {
    margin-bottom: 1.1rem;
  }

  .article-hero-media {
    aspect-ratio: 16 / 9;
  }

  .back-to-top {
    right: max(0.85rem, env(safe-area-inset-right));
    bottom: max(0.85rem, env(safe-area-inset-bottom));
    width: 2.75rem;
    height: 2.75rem;
  }
}

/* Internal search page */
.page-shell-search .page-hero { padding-bottom: 1.5rem; }
.search-page-form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  max-width: 640px;
  margin-top: 1.25rem;
}
.search-page-form input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.9rem 1rem 0.9rem 2.8rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-size: 1rem;
}
.search-page-form input:focus {
  outline: 2px solid rgba(15, 139, 141, 0.18);
  outline-offset: 2px;
  border-color: rgba(13, 148, 136, 0.9);
}
.search-page-form button {
  min-height: 3.25rem;
  padding: 0 1.25rem;
  border-radius: var(--radius-sm);
  border: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #f7fbfc;
  font-weight: 600;
  cursor: pointer;
}
.search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.search-filter {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #ffffff;
  font-size: 0.9rem;
  color: #334155;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.search-filter:hover { border-color: rgba(13, 148, 136, 0.55); color: #0f172a; }
.search-filter.is-active {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}
.search-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
}
.search-chips-label {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
  flex-shrink: 0;
}
.search-chip {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px dashed rgba(13, 148, 136, 0.45);
  background: rgba(13, 148, 136, 0.04);
  font-size: 0.82rem;
  color: #0f766e;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  line-height: 1.4;
}
.search-chip:hover {
  background: rgba(13, 148, 136, 0.1);
  border-color: rgba(13, 148, 136, 0.7);
  color: #0d4f4a;
}
.search-chip:focus-visible {
  outline: 2px solid rgba(13, 148, 136, 0.6);
  outline-offset: 2px;
}
.search-status {
  color: #475569;
  font-size: 0.95rem;
  margin: 0.5rem 0 1.25rem;
}
.search-results {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}
.search-result {
  padding: 1rem 1.1rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.search-result-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-strong);
  margin-bottom: 0.35rem;
}
.search-result-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  line-height: 1.3;
}
.search-result-title:hover { color: var(--brand-strong); text-decoration: underline; }
.search-result-desc {
  margin: 0.35rem 0 0;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Reading path component */
.reading-path {
  margin: 1rem 0 1.15rem;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(251, 252, 253, 0.98)),
    var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(17, 38, 52, 0.06);
}

.reading-path + .reading-path {
  margin-top: 0.9rem;
}

.reading-path-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.reading-path-label {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f2431;
  line-height: 1.25;
}

.reading-path-count {
  flex: 0 0 auto;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(184, 130, 63, 0.24);
  border-radius: 999px;
  background: var(--accent-soft);
  color: #7a5527;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.reading-path-steps {
  display: grid;
  gap: 0;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.reading-path-step {
  position: relative;
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0 0 0.75rem;
}

.reading-path-step:last-child {
  padding-bottom: 0;
}

.reading-path-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 2.15rem;
  bottom: 0.12rem;
  left: 1rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(15, 139, 141, 0.42), rgba(184, 130, 63, 0.28));
}

.reading-path-number {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--brand-strong);
  color: #ffffff;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(15, 139, 141, 0.18), 0 6px 14px rgba(17, 38, 52, 0.1);
}

.reading-path-step:last-child .reading-path-number {
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(184, 130, 63, 0.22), 0 6px 14px rgba(17, 38, 52, 0.1);
}

.reading-path-step-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
  min-height: 2.1rem;
  padding: 0.48rem 0.65rem 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.reading-path-step-link,
.reading-path-step-text {
  min-width: 0;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.35;
}

.reading-path-step-link {
  color: var(--brand-strong);
  text-decoration: none;
}

.reading-path-step-link:hover {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
}

.reading-path-step-text {
  color: var(--ink-soft);
}

.reading-path-endpoint {
  flex: 0 0 auto;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

@media (max-width: 640px) {
  .reading-path {
    padding: 0.85rem;
    border-radius: var(--radius-sm);
  }

  .reading-path-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .reading-path-step {
    grid-template-columns: 1.9rem minmax(0, 1fr);
    gap: 0.65rem;
  }

  .reading-path-step:not(:last-child)::before {
    left: 0.92rem;
  }

  .reading-path-number {
    width: 1.9rem;
    height: 1.9rem;
    font-size: 0.78rem;
  }

  .reading-path-step-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.55rem 0.65rem;
  }
}

/* 404 / not-found page — aligned with design-system not-found-page reference */
.page-shell-404 {
  padding: 3rem 0 5rem;
}

.not-found-hero {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  margin-bottom: 2rem;
}

.not-found-eyebrow {
  color: var(--accent);
  margin: 0 0 0.85rem;
}

.not-found-hero h1 {
  margin: 0 0 1rem;
  max-width: 22ch;
  text-wrap: balance;
}

.not-found-hero .hero-summary {
  max-width: 42rem;
  margin: 0 0 0.6rem;
}

.not-found-lead {
  font-family: var(--font-ui);
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 42rem;
  margin: 0 0 1.5rem;
}

.not-found-search {
  position: relative;
  max-width: 560px;
  margin: 0 0 0.85rem;
}

.not-found-search input[type="search"] {
  width: 100%;
  height: 3.125rem;
  padding: 0 6.5rem 0 2.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.not-found-search input[type="search"]:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 139, 141, 0.18);
}

.not-found-search .site-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.not-found-search button {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  height: 2.4rem;
  padding: 0 1rem;
  border: none;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.not-found-search button:hover {
  background: var(--brand-strong);
  transform: translateY(calc(-50% - 1px));
}

.not-found-note {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.not-found-section {
  margin-bottom: 2rem;
}

.not-found-section:last-child {
  margin-bottom: 0;
}

.not-found-grid {
  margin-top: 1rem;
}

.not-found-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  text-decoration: none;
  color: inherit;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.not-found-card:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.not-found-card h3 {
  margin: 0;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.not-found-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
  flex: 1 1 auto;
}

.not-found-card-cta {
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--brand-strong);
}

.not-found-narrow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.not-found-narrow-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.not-found-narrow-link:hover {
  border-color: var(--line-strong);
  background: var(--bg-soft);
}

.not-found-narrow-link > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.not-found-narrow-link strong {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.not-found-narrow-link strong + span {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.not-found-narrow-cta {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--brand-strong);
  white-space: nowrap;
}

.not-found-footnote {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 1.5rem 0 0;
  max-width: 42rem;
}

/* Breadcrumb */
.breadcrumb {
  padding: 0.85rem 0 0.7rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-mid);
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin: 0;
  white-space: nowrap;
}

.breadcrumb li + li::before {
  content: "\203A";
  margin: 0 0.5rem;
  color: var(--ink-quiet);
}

.breadcrumb a {
  display: inline-block;
  padding: 0.15rem 0;
  color: var(--ink-mid);
  text-decoration: underline;
  text-decoration-color: var(--rule);
}

.breadcrumb a:hover {
  color: var(--editorial-accent);
  text-decoration-color: currentColor;
}

.breadcrumb .breadcrumb-current {
  flex-shrink: 1;
  min-width: 0;
}

.breadcrumb-current span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 640px) {
  .breadcrumb .breadcrumb-current-page {
    display: none;
  }
}
