:root {
  color-scheme: light;
  --ink: #173a35;
  --muted: #566b65;
  --paper: #f7f6f0;
  --surface: #fffefa;
  --line: #d8e3dc;
  --green: #1b6753;
  --green-dark: #103f36;
  --mint: #e8f3ec;
  --blue-pale: #e6f0f1;
  --gold: #e7b95e;
  --shadow: 0 18px 44px rgba(22, 54, 47, .09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { min-width: 320px; margin: 0; background: var(--paper); }
img, svg { max-width: 100%; }
a { color: var(--green); text-underline-offset: .19em; }
a:hover { color: var(--green-dark); }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #155344; outline-offset: 3px; }
.site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: #f4d58e; }

.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 30;
  padding: .75rem 1rem;
  color: var(--green-dark);
  border-radius: .5rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 1rem; }

/* Shared site shell and task navigation */
.site-header {
  position: relative;
  z-index: 10;
  color: white;
  background: var(--green-dark);
  box-shadow: 0 4px 18px rgba(16, 63, 54, .12);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  max-width: 1360px;
  margin: auto;
  padding: .8rem 1.5rem;
}
.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  flex: 0 0 auto;
  color: white;
  font-size: 1.05rem;
  font-weight: 780;
  letter-spacing: -.025em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark { display: block; width: 2.25rem; height: 2.25rem; }
.brand:hover, .footer-brand:hover { color: #f5d68e; }
.primary-nav { flex: 1 1 auto; min-width: 0; }
.primary-nav > ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .12rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.primary-nav li { position: relative; }
.primary-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem .52rem;
  color: #edf7f1;
  border-radius: .55rem;
  font-size: .87rem;
  line-height: 1.25;
  text-decoration: none;
}
.primary-nav > ul > li.has-children > a::after {
  width: .38rem;
  height: .38rem;
  margin: -.18rem 0 0 .45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: white; background: rgba(255,255,255,.14); }
.subnav {
  position: absolute;
  top: calc(100% - .1rem);
  left: 0;
  display: none;
  min-width: 15rem;
  padding: .4rem;
  margin: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: .75rem;
  background: #16483d;
  box-shadow: var(--shadow);
  list-style: none;
}
.has-children:hover .subnav, .has-children:focus-within .subnav { display: block; }
.subnav a { min-height: 42px; padding: .65rem .75rem; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 46px;
  padding: .5rem .8rem;
  color: white;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: .65rem;
  background: rgba(255,255,255,.06);
}
.nav-toggle:hover, .nav-toggle[aria-expanded="true"] { background: rgba(255,255,255,.15); }
.nav-toggle-icon { display: grid; gap: 4px; width: 1rem; }
.nav-toggle-icon i { display: block; height: 2px; border-radius: 2px; background: currentColor; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.search-wrap { max-width: 1360px; margin: auto; padding: 0 1.5rem .9rem; }
#site-search { display: flex; align-items: center; gap: .5rem; max-width: 680px; }
#site-search label { margin-right: .15rem; font-size: .9rem; font-weight: 700; }
#search-query {
  flex: 1 1 18rem;
  min-width: 8rem;
  min-height: 46px;
  padding: .62rem .8rem;
  color: var(--ink);
  border: 1px solid #afc9ba;
  border-radius: .58rem;
  background: #fffefa;
}
#search-query::placeholder { color: #63756e; opacity: 1; }
#site-search button[type="submit"], .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 46px;
  padding: .65rem 1rem;
  color: white;
  border: 1px solid transparent;
  border-radius: .62rem;
  background: #23745d;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
#site-search button[type="submit"]:hover, .button:hover { color: white; background: #2b8268; box-shadow: 0 7px 18px rgba(5, 31, 25, .16); transform: translateY(-1px); }
#site-search .search-clear {
  min-height: 44px;
  padding: .45rem .55rem;
  color: #edf7f1;
  border: 0;
  border-radius: .45rem;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: .15em;
}
#site-search .search-clear:hover { background: rgba(255,255,255,.12); }
#site-search .search-clear[hidden] { display: none; }
.search-results {
  position: absolute;
  top: calc(100% - .15rem);
  left: max(1rem, calc((100vw - 1360px) / 2 + 1.5rem));
  z-index: 20;
  width: min(680px, calc(100vw - 2rem));
  max-height: min(70vh, 40rem);
  overflow: auto;
  padding: .65rem 1.1rem 1rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0 0 .85rem .85rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.search-results[hidden] { display: none; }
.search-results ul { padding: 0; margin: 0; list-style: none; }
.search-results li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .18rem .8rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.search-results li a { font-weight: 750; text-decoration-thickness: 1px; }
.search-results li a:focus-visible { border-radius: .2rem; }
.search-results li p { grid-column: 1 / -1; margin: .12rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.search-count { margin: .35rem 0 .65rem; color: var(--muted); font-size: .9rem; }
.search-result-section { align-self: center; color: var(--muted); font-size: .78rem; text-align: right; }

/* Home page: an illustrated, home-first entry point */
.hero {
  color: white;
  background:
    radial-gradient(ellipse at 78% 15%, rgba(232,185,94,.19), transparent 22rem),
    radial-gradient(ellipse at 100% 100%, rgba(83,151,120,.24), transparent 32rem),
    linear-gradient(116deg, #103f36 0%, #155646 55%, #1d6753 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(22rem, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  width: min(100%, 1360px);
  margin: auto;
  padding: clamp(3.25rem, 7vw, 6.5rem) 1.5rem;
}
.hero-copy-block { max-width: 39rem; }
.hero-eyebrow { display: flex; align-items: center; gap: .55rem; color: #f4d58e; }
.eyebrow-dot { width: .52rem; height: .52rem; border-radius: 50%; background: #f3ca74; box-shadow: 0 0 0 4px rgba(243,202,116,.14); }
.hero h1 { max-width: none; margin: .45rem 0 1rem; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -.06em; white-space: nowrap; }
.hero-copy { max-width: 41rem; margin: 0 0 1.65rem; color: #e0eee6; font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.hero .button { min-height: 50px; padding: .7rem 1.05rem; color: #143e34; background: #f3d185; }
.hero .button:hover { color: #143e34; background: #ffe0a1; }
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .65rem .9rem;
  color: #f4fbf6;
  border: 1px solid rgba(238,249,242,.4);
  border-radius: .62rem;
  font-weight: 700;
  text-decoration: none;
}
.button-secondary:hover { color: white; background: rgba(255,255,255,.1); }
.hero-note { margin: 1.2rem 0 0; color: #c4d9ce; font-size: .9rem; }
.hero-visual {
  min-width: 0;
  padding: .55rem .65rem .7rem;
  margin: 0;
  border: 1px solid rgba(247,255,248,.2);
  border-radius: 1.35rem;
  background: rgba(255,255,255,.08);
  box-shadow: 0 22px 55px rgba(8,35,29,.2);
  backdrop-filter: blur(4px);
}
.hero-visual img { display: block; width: 100%; height: auto; border-radius: .95rem; }
.hero-visual figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem; padding: .45rem .35rem 0; color: #eaf4ed; font-size: .84rem; font-weight: 650; text-align: center; }
.legend-warm { width: .62rem; height: .62rem; border-radius: 50%; background: #e9ad54; box-shadow: 0 0 0 3px rgba(233,173,84,.16); }

.pathway-section { max-width: 1360px; margin: auto; padding: 2.8rem 1.5rem 3.2rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.4rem; }
.section-heading h2, .content-section > h2 { margin: .18rem 0 0; font-size: clamp(1.55rem, 2.8vw, 2.2rem); line-height: 1.2; letter-spacing: -.025em; }
.pathway-heading { max-width: 52rem; margin-bottom: 1.2rem; }
.pathway-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; padding: 0; margin: 0; list-style: none; counter-reset: path; }
.pathway-list li { min-width: 0; }
.pathway-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  gap: .08rem .65rem;
  min-height: 112px;
  height: 100%;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: var(--surface);
  box-shadow: 0 5px 18px rgba(22,54,47,.035);
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.pathway-list a:hover, .pathway-list a:focus-visible { border-color: #8db8a1; box-shadow: 0 12px 26px rgba(22,54,47,.09); transform: translateY(-2px); }
.pathway-number { grid-row: span 2; align-self: start; color: #ae7932; font-size: .79rem; font-weight: 850; letter-spacing: .06em; }
.pathway-title { color: var(--ink); font-weight: 780; line-height: 1.3; }
.pathway-detail { color: var(--muted); font-size: .83rem; line-height: 1.4; }

.home-content-section {
  width: min(calc(100% - 3rem), 1180px);
  margin: .35rem auto 1rem;
  padding: clamp(1.3rem, 4vw, 3.3rem) clamp(1rem, 4vw, 3.3rem) .4rem;
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  background: var(--surface);
  box-shadow: 0 9px 30px rgba(22,54,47,.035);
}
.home-prose { padding-bottom: 1.4rem; }

/* Category and guide discovery */
.content-section { max-width: 1360px; margin: auto; padding: 3.8rem 1.5rem; }
.latest-section { padding-top: 1rem; }
.section-note { max-width: 25rem; margin: 0; color: var(--muted); font-size: .96rem; }
.eyebrow { margin: 0 0 .35rem; color: var(--green); font-size: .76rem; font-weight: 820; letter-spacing: .11em; line-height: 1.45; text-transform: uppercase; }
.hero .eyebrow { color: #f3d390; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card {
  min-width: 0;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: .95rem;
  background: var(--surface);
  box-shadow: 0 5px 18px rgba(22,54,47,.035);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card:hover, .card:focus-within { border-color: #b5cdbd; box-shadow: 0 14px 30px rgba(22,54,47,.09); transform: translateY(-2px); }
.card h2 { margin: .35rem 0 .55rem; font-size: 1.19rem; line-height: 1.32; letter-spacing: -.015em; overflow-wrap: anywhere; }
.card h2 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover { color: var(--green); text-decoration: underline; text-underline-offset: .18em; }
.card p { margin: .4rem 0; color: var(--muted); }
.card .eyebrow { color: #397561; }
.card-meta { font-size: .83rem; }
.category-card { display: flex; flex-direction: column; min-height: 238px; }
.category-card-top { display: flex; align-items: center; gap: .7rem; }
.category-card-top .eyebrow { margin: 0; }
.category-icon-wrap { display: inline-grid; flex: 0 0 auto; place-items: center; width: 2.75rem; height: 2.75rem; color: var(--green); border: 1px solid #cfe1d5; border-radius: .82rem; background: linear-gradient(145deg, #f5faf5, #e6f2ea); }
.category-icon { display: block; width: 1.7rem; height: 1.7rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.category-card .category-description { margin: .25rem 0 1rem; font-size: .96rem; line-height: 1.55; }
.category-card-footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .75rem; border-top: 1px solid #edf1ed; color: var(--muted); font-size: .82rem; }
.text-link { color: var(--green); font-size: .88rem; font-weight: 780; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: .18em; }
.article-card .eyebrow { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

/* Shared page headers, breadcrumbs and article reading */
.breadcrumbs { max-width: 1080px; margin: auto; padding: 1.15rem 1.5rem 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; color: var(--muted); font-size: .88rem; list-style: none; }
.breadcrumbs li { min-width: 0; overflow-wrap: anywhere; }
.breadcrumbs li + li::before { margin-right: .4rem; color: #8a9b96; content: "/"; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.page-header { max-width: 1080px; margin: auto; padding: 1.8rem 1.5rem 1.3rem; }
.page-header h1 { max-width: 900px; margin: .25rem 0 .7rem; font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.12; letter-spacing: -.04em; overflow-wrap: anywhere; }
.lede { max-width: 800px; margin: 0; color: var(--muted); font-size: clamp(1.06rem, 1.8vw, 1.2rem); line-height: 1.6; }
.category-heading { display: flex; align-items: center; gap: 1rem; margin-bottom: .65rem; }
.category-heading .eyebrow { margin-bottom: .25rem; }
.category-heading h1 { margin-bottom: 0; }
.category-icon-large { width: 4rem; height: 4rem; border-radius: 1.1rem; }
.category-icon-large .category-icon { width: 2.4rem; height: 2.4rem; }
.article { padding-bottom: 1rem; }
.article-header { padding-top: 2rem; }
.article-header h1 { max-width: 920px; }
.article-category { display: flex; align-items: center; gap: .55rem; margin-bottom: .7rem; }
.article-category .eyebrow { margin: 0; }
.article-category a { text-decoration: none; }
.article-category a:hover { text-decoration: underline; }
.article-category-icon { width: 2.25rem; height: 2.25rem; border-radius: .65rem; }
.article-category-icon .category-icon { width: 1.38rem; height: 1.38rem; }
.article-meta { margin: .85rem 0 0; color: var(--muted); font-size: .88rem; }
.featured-image { max-width: 820px; margin: 1.5rem auto 0; }
.featured-image img { display: block; width: auto; max-width: 100%; max-height: 32rem; height: auto; border-radius: .9rem; object-fit: contain; }
.prose { max-width: 820px; min-width: 0; margin: auto; padding: .25rem 1.5rem 2rem; font-size: 1.055rem; line-height: 1.78; overflow-wrap: break-word; }
.prose p { margin: 0 0 1.15rem; }
.prose h2 { margin: 2.45rem 0 .75rem; font-size: 1.62rem; line-height: 1.28; letter-spacing: -.025em; scroll-margin-top: 1.5rem; }
.prose h3 { margin: 1.8rem 0 .55rem; font-size: 1.22rem; line-height: 1.35; scroll-margin-top: 1.5rem; }
.prose h4 { margin: 1.5rem 0 .45rem; font-size: 1.08rem; line-height: 1.4; }
.prose li { padding-left: .22rem; margin: .42rem 0; }
.prose li::marker { color: #678f79; }
.prose blockquote { margin: 1.5rem 0; padding: .9rem 1.1rem .75rem; border-left: 4px solid var(--gold); border-radius: 0 .65rem .65rem 0; color: var(--muted); background: var(--mint); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; -webkit-overflow-scrolling: touch; }
.prose th, .prose td { min-width: 8rem; padding: .7rem .75rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--mint); }
.prose figure { max-width: 100%; margin: 1.5rem 0; }
.prose img, .prose figure img { display: block; width: auto; max-width: 100%; height: auto; margin: 1.35rem auto; border-radius: .72rem; }
.prose figure img { margin: 0 auto; }
.prose figcaption { margin-top: .55rem; color: var(--muted); font-size: .88rem; line-height: 1.5; text-align: center; }
.prose pre { max-width: 100%; overflow: auto; padding: 1rem; border: 1px solid var(--line); border-radius: .7rem; background: #f0f3ef; -webkit-overflow-scrolling: touch; }
.prose code { padding: .1em .25em; border-radius: .25rem; background: #edf2ed; font-size: .92em; overflow-wrap: anywhere; }
.prose pre code { padding: 0; background: transparent; overflow-wrap: normal; }
.category-intro { padding-bottom: .4rem; }
.content-section .card-grid { margin-top: 1.25rem; }

.article-toc { max-width: 820px; margin: 0 auto 1.35rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: .8rem; background: #f0f5ef; }
.article-toc summary { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 42px; color: var(--green-dark); font-weight: 780; cursor: pointer; list-style: none; }
.article-toc summary::-webkit-details-marker { display: none; }
.article-toc summary::after { width: .48rem; height: .48rem; flex: 0 0 auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; content: ""; transform: rotate(45deg); transition: transform .16s ease; }
.article-toc[open] summary::after { transform: rotate(225deg); }
.toc-hint { margin-left: auto; color: var(--muted); font-size: .82rem; font-weight: 500; }
.toc-links { padding: .45rem .15rem .3rem; border-top: 1px solid #d8e3dc; }
.toc-links nav > ul, .toc-links ul { padding-left: 1.15rem; margin: .45rem 0; }
.toc-links li { margin: .3rem 0; font-size: .94rem; line-height: 1.5; }
.toc-links a { text-decoration-thickness: 1px; }

.tag-list { display: flex; flex-wrap: wrap; gap: .42rem; padding: .85rem 0 0; margin: 0; list-style: none; }
.tag-list a { display: inline-flex; align-items: center; min-height: 34px; padding: .24rem .65rem; border: 1px solid #c9ded2; border-radius: 99px; background: var(--mint); color: var(--green-dark); font-size: .82rem; text-decoration: none; }
.tag-list a:hover { border-color: #92b89e; background: #dcece1; }
.related-panel, .source-list { max-width: 820px; margin: 1rem auto 2rem; padding: 1.25rem 1.5rem; border: 1px solid #cfe0d4; border-radius: .9rem; background: var(--mint); }
.related-panel h2, .source-list h2 { margin: 0 0 .55rem; font-size: 1.2rem; line-height: 1.3; }
.related-panel ul, .source-list ul { padding-left: 1.15rem; margin: 0; }
.related-panel li, .source-list li { margin: .5rem 0; }
.source-list { border-color: var(--line); background: var(--surface); }
.source-tier, .brand-meta { color: var(--muted); font-size: .88rem; }
.term-list { max-width: 860px; columns: 2; column-gap: 3rem; padding: 0 1.5rem 3rem; margin: auto; }
.term-list li { break-inside: avoid; margin: .5rem 0; }
.empty-state { max-width: 860px; margin: auto; padding: 1.5rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--surface); }

.site-footer { margin-top: 1.5rem; padding: 2.3rem 1.5rem; color: #dcebe4; background: var(--green-dark); }
.footer-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; max-width: 1280px; margin: auto; }
.footer-brand { font-size: .98rem; }
.footer-brand img { display: block; width: 2.1rem; height: 2.1rem; }
.footer-inner p { max-width: 680px; margin: 0; color: #d4e5dc; font-size: .92rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.site-footer a:not(.footer-brand) { color: #f3d390; text-underline-offset: .2em; }

@media (max-width: 70rem) {
  .header-inner { flex-wrap: wrap; justify-content: space-between; gap: .5rem .8rem; }
  .nav-toggle { display: inline-flex; }
  .primary-nav { display: none; flex: 1 0 100%; }
  .primary-nav.is-open { display: block; }
  .primary-nav > ul { align-items: stretch; flex-direction: column; gap: .05rem; padding: .5rem 0 .3rem; }
  .primary-nav > ul > li > a { justify-content: space-between; padding: .62rem .7rem; }
  .primary-nav a { min-height: 46px; font-size: .96rem; }
  .subnav { position: static; display: block; min-width: 0; padding: 0 0 .3rem .85rem; border: 0; border-left: 1px solid rgba(255,255,255,.25); border-radius: 0; background: transparent; box-shadow: none; }
  .subnav a { min-height: 42px; padding: .5rem .8rem; color: #cce2d6; }
  .hero-inner { grid-template-columns: minmax(0, .9fr) minmax(19rem, 1.1fr); gap: 2rem; }
}

@media (max-width: 48rem) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; padding: 3.1rem 1.25rem 2.6rem; }
  .hero-copy-block { max-width: 42rem; }
  .hero h1 { max-width: none; font-size: clamp(2.4rem, 8.5vw, 3.65rem); }
  .hero-visual { width: min(100%, 40rem); margin-inline: auto; }
  .pathway-section { padding: 2.5rem 1.25rem; }
  .pathway-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-section { padding: 3rem 1.25rem; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr; justify-items: start; gap: .8rem; }
  .footer-inner nav { padding-top: .35rem; }
}

@media (max-width: 35rem) {
  .header-inner, .search-wrap { padding-right: 1rem; padding-left: 1rem; }
  .brand { gap: .45rem; font-size: .98rem; }
  .brand-mark { width: 2rem; height: 2rem; }
  #site-search { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .35rem; }
  #site-search label { grid-column: 1 / -1; font-size: .84rem; }
  #search-query { width: 100%; min-width: 0; }
  #site-search .search-clear { padding-inline: .45rem; }
  .search-results { left: 1rem; width: calc(100vw - 2rem); padding-inline: .85rem; }
  .search-results li { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .search-result-section { text-align: left; }
  .hero-inner { padding: 2.6rem 1rem 2.1rem; }
  .hero h1 { font-size: clamp(2.3rem, 10.4vw, 3.4rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button, .hero-actions .button-secondary { width: 100%; }
  .hero-note { font-size: .85rem; }
  .hero-visual { padding: .35rem .35rem .55rem; border-radius: 1rem; }
  .hero-visual figcaption { font-size: .76rem; }
  .pathway-section { padding: 2rem 1rem; }
  .pathway-list { grid-template-columns: 1fr; gap: .55rem; }
  .pathway-list a { min-height: 83px; padding: .7rem .85rem; }
  .section-heading { align-items: start; flex-direction: column; gap: .6rem; }
  .content-section { padding: 2.6rem 1rem; }
  .card-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 0; }
  .home-content-section { width: calc(100% - 2rem); margin-top: .2rem; padding: 1.2rem .15rem .2rem; border-radius: .95rem; }
  .home-prose { padding-right: 1rem; padding-left: 1rem; }
  .breadcrumbs, .page-header { padding-right: 1rem; padding-left: 1rem; }
  .page-header { padding-top: 1.45rem; }
  .category-heading { align-items: flex-start; gap: .7rem; }
  .category-icon-large { width: 3.25rem; height: 3.25rem; border-radius: .9rem; }
  .category-icon-large .category-icon { width: 1.95rem; height: 1.95rem; }
  .category-heading h1 { font-size: clamp(1.85rem, 8vw, 2.55rem); }
  .article-header { padding-top: 1.5rem; }
  .article-header h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .prose { padding-right: 1rem; padding-left: 1rem; font-size: 1rem; }
  .prose th, .prose td { min-width: 7rem; padding: .55rem; }
  .article-toc, .related-panel, .source-list { width: calc(100% - 2rem); padding: .85rem 1rem; }
  .term-list { columns: 1; padding-right: 1rem; padding-left: 1rem; }
}

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