:root {
  color-scheme: light;
  --page: #f3f5f8;
  --surface: #ffffff;
  --surface-quiet: #e9eef6;
  --ink: #172033;
  --muted: #5e687a;
  --line: #cfd6e1;
  --line-strong: #9ca8ba;
  --accent: #31579f;
  --accent-hover: #24447f;
  --accent-soft: #e5ecf9;
  --warning: #8a5319;
  --warning-soft: #fff1d9;
  --success: #246247;
  --success-soft: #e4f3eb;
  --radius: 12px;
  --content: 1180px;
  --reading: 760px;
  --shadow: 0 18px 48px rgb(20 32 55 / 0.09);
  --focus-ring: #24447f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--page);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

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

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

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

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

:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--focus-ring);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.shell {
  width: min(var(--content), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  background: color-mix(in srgb, var(--page) 94%, transparent);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  position: relative;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.desktop-nav > a,
.nav-library > summary {
  min-height: 44px;
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 8px;
  font-size: 0.91rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.desktop-nav > a:hover,
.desktop-nav > a[aria-current="page"],
.nav-library[open] > summary,
.nav-library > summary:hover {
  color: var(--ink);
  background: var(--surface);
}

.nav-library {
  position: relative;
}

.nav-library > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  list-style: none;
}

.nav-library > summary::-webkit-details-marker,
.mobile-menu > summary::-webkit-details-marker {
  display: none;
}

.nav-library > summary::after {
  content: "+";
  font-size: 1rem;
  font-weight: 500;
}

.nav-library[open] > summary::after {
  content: "−";
}

.nav-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: -120px;
  display: grid;
  width: min(680px, calc(100vw - 40px));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.nav-panel__group {
  min-height: 176px;
  padding: 20px;
  background: var(--surface);
}

.nav-panel__group strong,
.nav-panel__group a {
  display: block;
}

.nav-panel__group strong {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.nav-panel__group a {
  padding: 6px 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-panel__group a:hover,
.nav-panel__all:hover {
  color: var(--accent);
}

.nav-panel__all {
  grid-column: 1 / -1;
  padding: 13px 20px;
  color: var(--ink);
  background: var(--surface-quiet);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

.mobile-menu {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  font-size: 0.92rem;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  min-height: 44px;
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 8px;
  font-size: 0.91rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 2px;
  background: currentColor;
  content: "";
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
  padding: clamp(62px, 9vw, 116px) 0 72px;
}

.hero > *,
.section__head > *,
.path-grid > *,
.evidence-grid > *,
.site-footer__top > * {
  min-width: 0;
}

.hero h1,
.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.6rem, 6.1vw, 4.85rem);
  line-height: 0.99;
  letter-spacing: -0.052em;
}

.hero__lead {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
  line-height: 1.6;
}

.hero__actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px;
  margin: 30px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line-strong);
}

.hero-facts div {
  padding-right: 18px;
}

.hero-facts dt {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1;
}

.hero-facts dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  color: #fff;
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.button--quiet {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line-strong);
}

.button--quiet:hover {
  color: var(--ink);
  background: var(--surface-quiet);
  border-color: var(--ink);
}

.hero__note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.route-panel {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.route-panel__head {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.route-panel__head p,
.route-panel__head strong {
  margin: 0;
}

.route-panel__head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
}

.route-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.route-list li:last-child {
  border-bottom: 0;
}

.route-list__number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 8px;
  font-size: 0.77rem;
  font-weight: 850;
}

.route-list strong {
  display: block;
  font-size: 0.94rem;
  line-height: 1.35;
}

.route-list p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.invite-status {
  padding: 22px 24px;
  color: var(--warning);
  background: var(--warning-soft);
  border-top: 1px solid color-mix(in srgb, var(--warning) 28%, transparent);
}

.invite-status strong,
.invite-status span {
  display: block;
}

.invite-status span {
  margin-top: 4px;
  font-size: 0.82rem;
}

.section {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.section--surface {
  background: var(--surface);
}

.section__head {
  max-width: 820px;
  margin-bottom: 38px;
}

.section__head h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.section__head p {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
}

.section__head .eyebrow {
  margin: 0 0 16px;
}

.path-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 28px;
}

.path-aside {
  padding: 24px;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius);
}

.path-aside h3 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  line-height: 1.25;
}

.path-aside p {
  margin: 0;
  color: rgb(255 255 255 / 0.82);
}

.path-aside ul {
  margin: 22px 0 0;
  padding-left: 20px;
}

.path-aside li + li {
  margin-top: 8px;
}

.guide-index {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.guide-index li {
  border-bottom: 1px solid var(--line);
}

.guide-index a {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 112px;
  padding: 20px 4px;
  color: var(--ink);
  text-decoration: none;
}

.guide-index a:hover .guide-index__title {
  color: var(--accent);
}

.guide-index__number {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.guide-index__title {
  display: block;
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  font-weight: 780;
  line-height: 1.25;
}

.guide-index__summary {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
}

.evidence-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 19px 0 19px 38px;
  border-bottom: 1px solid var(--line);
}

.checklist li:first-child {
  border-top: 1px solid var(--line);
}

.checklist li::before {
  position: absolute;
  top: 22px;
  left: 0;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--success);
  background: var(--success-soft);
  border-radius: 7px;
  content: "✓";
  font-size: 0.8rem;
  font-weight: 900;
}

.checklist strong,
.checklist span {
  display: block;
}

.checklist span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.fact-box {
  align-self: start;
  padding: 25px;
  background: var(--surface-quiet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.fact-box h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.fact-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.fact-box p + p {
  margin-top: 12px;
}

.tool-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  padding: 34px;
  color: #fff;
  background: #1b2a46;
  border-radius: var(--radius);
}

.tool-teaser h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.tool-teaser p {
  max-width: 720px;
  margin: 12px 0 0;
  color: #bdc8da;
}

.tool-teaser .button {
  color: #1b2a46;
  background: #fff;
  border-color: #fff;
}

.tool-teaser .button:hover {
  color: #1b2a46;
  background: #dce5f5;
}

.risk-strip {
  padding: 15px 0;
  color: #dce4f1;
  background: #1b2a46;
  border-top: 1px solid #34415b;
  font-size: 0.85rem;
}

.risk-strip strong {
  color: #fff;
}

.featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 22px;
}

.feature-guide {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 5vw, 52px);
  color: #fff;
  background:
    linear-gradient(145deg, rgb(49 87 159 / 0.28), transparent 46%),
    #1b2a46;
  border: 1px solid #34415b;
  border-radius: var(--radius);
  text-decoration: none;
}

.feature-guide:hover {
  color: #fff;
  background:
    linear-gradient(145deg, rgb(69 111 188 / 0.42), transparent 52%),
    #1b2a46;
}

.feature-guide__meta,
.feature-guide span,
.feature-guide em {
  color: #bdc8da;
}

.feature-guide__meta {
  margin-bottom: auto;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.feature-guide strong {
  max-width: 620px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.feature-guide span:not(.feature-guide__meta) {
  max-width: 620px;
  margin-top: 14px;
}

.feature-guide em {
  margin-top: 24px;
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.compact-guide-list {
  border-top: 1px solid var(--line-strong);
}

.compact-guide-list a {
  display: block;
  min-height: 180px;
  padding: 24px 4px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.compact-guide-list a > span {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.compact-guide-list strong {
  display: block;
  margin-top: 8px;
  font-size: 1.3rem;
  line-height: 1.25;
}

.compact-guide-list p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.compact-guide-list a:hover strong {
  color: var(--accent);
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.library-grid--dense {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}

.library-group {
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}

.library-group > span {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 850;
}

.library-group h3 {
  min-height: 2.6em;
  margin: 12px 0 18px;
  font-size: 1.18rem;
  line-height: 1.3;
}

.library-group a {
  display: block;
  padding: 9px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.library-group a:hover {
  color: var(--accent);
}

.problem-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.problem-index a {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: baseline;
  padding: 22px 4px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.problem-index a:nth-child(odd) {
  padding-right: 28px;
  border-right: 1px solid var(--line);
}

.problem-index a:nth-child(even) {
  padding-left: 28px;
}

.problem-index span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.problem-index strong {
  font-size: 0.98rem;
}

.problem-index em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
}

.problem-index a:hover strong {
  color: var(--accent);
}

.tool-catalog {
  border-top: 1px solid var(--line-strong);
}

.tool-catalog a {
  display: grid;
  grid-template-columns: 54px minmax(230px, 0.7fr) 1fr;
  gap: 22px;
  align-items: baseline;
  padding: 22px 4px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.tool-catalog a > span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 850;
}

.tool-catalog strong {
  font-size: 1.18rem;
}

.tool-catalog p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.tool-catalog a:hover strong {
  color: var(--accent);
}

.checklist--columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 36px;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.directory-item {
  min-height: 220px;
  padding: 28px;
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
}

.directory-item:first-child {
  grid-row: span 2;
  padding: clamp(28px, 5vw, 48px);
  color: #fff;
  background: #1b2a46;
}

.directory-item > span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.directory-item:first-child > span,
.directory-item:first-child p {
  color: #bdc8da;
}

.directory-item strong {
  display: block;
  margin-top: 16px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.18;
}

.directory-item:first-child strong {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
}

.directory-item p {
  margin: 12px 0 0;
  color: var(--muted);
}

.directory-item:hover strong {
  color: var(--accent);
}

.directory-item:first-child:hover strong {
  color: #fff;
}

.calculator-note {
  max-width: 860px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

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

.position-grid {
  display: grid;
  grid-template-columns: 56px repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  align-items: end;
}

.position-grid__head {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.position-grid__number {
  align-self: center;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
}

.page-hero {
  padding: 64px 0 50px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 980px;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
}

.page-hero__lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.82rem;
}

.page-meta a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.82rem;
}

.breadcrumbs a {
  color: var(--muted);
}

.article-layout {
  display: grid;
  grid-template-columns: 238px minmax(0, var(--reading));
  gap: clamp(32px, 6vw, 74px);
  align-items: start;
  padding: 50px 0 88px;
}

.article-toc {
  position: sticky;
  top: 94px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article-toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-toc a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  line-height: 1.4;
  text-decoration: none;
}

.article-toc a:hover {
  color: var(--accent);
}

.article-toc__toggle {
  display: none;
}

.article-toc__links {
  display: contents;
}

.prose {
  min-width: 0;
}

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

.prose h2 {
  margin: 58px 0 16px;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.prose h3 {
  margin: 34px 0 10px;
  font-size: 1.23rem;
  line-height: 1.3;
}

.prose p,
.prose li {
  color: color-mix(in srgb, var(--ink) 92%, var(--muted));
}

.prose p {
  margin: 0 0 18px;
}

.prose ul,
.prose ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.prose li + li {
  margin-top: 9px;
}

.prose a {
  overflow-wrap: anywhere;
}

.article-cover {
  margin: 0 0 34px;
}

.article-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-cover figcaption,
.article-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.source-note {
  margin: 28px 0 34px;
  padding: 18px 20px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.source-note strong {
  color: var(--ink);
}

.answer-summary {
  margin: 0 0 34px;
  padding: 24px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.answer-summary h2 {
  margin: 0 0 10px;
  font-size: 1.28rem;
}

.answer-summary p:last-child {
  margin-bottom: 0;
}

.decision-list {
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.decision-list > li {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.decision-list > li:first-child {
  border-top: 1px solid var(--line);
}

.decision-list strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}

.definition-list {
  margin: 26px 0;
}

.definition-list dt {
  margin-top: 18px;
  color: var(--ink);
  font-weight: 800;
}

.definition-list dd {
  margin: 5px 0 0;
  color: color-mix(in srgb, var(--ink) 92%, var(--muted));
}

.review-box {
  margin: 30px 0;
  padding: 24px 26px;
  background: var(--surface-quiet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.review-box h3 {
  margin-top: 0;
}

.review-box p:last-child,
.review-box ul:last-child,
.review-box ol:last-child {
  margin-bottom: 0;
}

.faq-list {
  margin: 26px 0;
  border-top: 1px solid var(--line);
}

.faq-list details {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.faq-list details p {
  margin: 12px 0 0;
}

.callout {
  margin: 28px 0;
  padding: 22px 24px;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.callout--warning {
  color: var(--warning);
  background: var(--warning-soft);
  border-left-color: var(--warning);
}

.callout strong {
  display: block;
  margin-bottom: 5px;
}

.callout p:last-child {
  margin-bottom: 0;
}

.step-list {
  margin: 28px 0;
  padding: 0;
  counter-reset: steps;
  list-style: none;
}

.step-list > li {
  position: relative;
  padding: 4px 0 30px 52px;
  counter-increment: steps;
}

.step-list > li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 9px;
  content: counter(steps, decimal-leading-zero);
  font-size: 0.74rem;
  font-weight: 850;
}

.step-list strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 1.05rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.9rem;
}

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

th {
  background: var(--surface-quiet);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.source-list {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.source-list h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

.source-list li {
  font-size: 0.88rem;
}

.source-citations {
  margin-left: 0.2em;
  white-space: nowrap;
}

.source-ref {
  font-size: 0.8em;
  font-weight: 800;
  text-decoration: none;
}

.source-list li:target {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.next-guide {
  margin-top: 48px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.next-guide span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.next-guide a {
  font-size: 1.14rem;
  font-weight: 800;
}

.calculator {
  max-width: 860px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 0.88rem;
  font-weight: 750;
}

.field small {
  color: var(--muted);
  font-size: 0.77rem;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.field input:focus {
  border-color: var(--accent);
}

.calculator__actions {
  margin-top: 22px;
}

.calculator__result {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 26px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.calculator__result[data-visible="true"] {
  display: grid;
}

.result-cell {
  padding: 20px;
  background: var(--surface-quiet);
}

.result-cell span,
.result-cell output {
  display: block;
}

.result-cell span {
  color: var(--muted);
  font-size: 0.77rem;
}

.result-cell output {
  margin-top: 5px;
  font-size: 1.3rem;
  font-weight: 850;
}

.form-error {
  min-height: 1.5em;
  margin: 12px 0 0;
  color: #a22d2d;
  font-size: 0.86rem;
}

.legal-page {
  max-width: var(--reading);
  padding: 58px 0 90px;
}

.legal-page h1 {
  margin: 0 0 18px;
  font-size: clamp(2.25rem, 5vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.legal-page h2 {
  margin: 44px 0 12px;
  font-size: 1.55rem;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

.site-footer {
  padding: 48px 0 32px;
  background: #16213a;
  color: #dce4f1;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 42px;
  padding-bottom: 34px;
  border-bottom: 1px solid #34415b;
}

.site-footer h2 {
  margin: 0;
  color: #fff;
  font-size: 1.4rem;
}

.site-footer p {
  max-width: 620px;
  margin: 10px 0 0;
  color: #aebbd0;
  font-size: 0.88rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  align-content: start;
}

.footer-links a {
  min-height: 38px;
  color: #dce4f1;
  font-size: 0.86rem;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 25px;
  color: #8795ad;
  font-size: 0.76rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #121722;
    --surface: #1a2130;
    --surface-quiet: #222b3c;
    --ink: #eef3fb;
    --muted: #aeb8c8;
    --line: #354054;
    --line-strong: #59667c;
    --accent: #8eafea;
    --accent-hover: #b2c9f0;
    --accent-soft: #243654;
    --warning: #efbd77;
    --warning-soft: #3b2d1f;
    --success: #8dd4b0;
    --success-soft: #1e3c32;
    --shadow: none;
  }

  .button {
    color: #101a2d;
  }

  .button:hover {
    color: #101a2d;
  }

  .brand__mark,
  .step-list > li::before {
    color: #101a2d;
  }

  .tool-teaser {
    background: #202d46;
  }

  .tool-teaser .button {
    color: #1b2a46;
  }
}

@media (max-width: 900px) {
  .site-header__inner {
    display: flex;
    min-height: 66px;
    padding: 10px 0;
  }

  .desktop-nav,
  .site-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-menu > summary {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 800;
    list-style: none;
    cursor: pointer;
  }

  .mobile-menu > summary span {
    font-size: 1.35rem;
    line-height: 1;
  }

  .mobile-menu__panel {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .mobile-menu__panel a {
    min-height: 44px;
    padding: 10px 12px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
  }

  .mobile-menu__panel a[aria-current="page"] {
    color: var(--accent);
    background: var(--accent-soft);
  }

  .mobile-menu__label {
    grid-column: 1 / -1;
    padding: 18px 12px 8px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .hero,
  .path-grid,
  .evidence-grid,
  .site-footer__top,
  .featured-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 58px;
  }

  .route-panel {
    max-width: 620px;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-toc {
    position: static;
  }

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

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

  .problem-index {
    grid-template-columns: 1fr;
  }

  .problem-index a:nth-child(odd),
  .problem-index a:nth-child(even) {
    padding-right: 4px;
    padding-left: 4px;
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 28px, var(--content));
  }

  .mobile-menu__panel {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-hero h1 {
    max-width: 100%;
    font-size: clamp(2.25rem, 11.5vw, 3rem);
    overflow-wrap: break-word;
  }

  .hero__actions .button,
  .button-row .button {
    width: 100%;
  }

  .section {
    padding: 58px 0;
  }

  .guide-index a {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .tool-teaser {
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .library-grid,
  .checklist--columns,
  .directory-grid {
    grid-template-columns: 1fr;
  }

  .library-grid--dense,
  .problem-index {
    grid-template-columns: 1fr;
  }

  .problem-index a {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .problem-index em {
    grid-column: 2;
  }

  .library-group h3 {
    min-height: 0;
  }

  .tool-catalog a {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .tool-catalog p {
    grid-column: 2;
  }

  .directory-item:first-child {
    grid-row: auto;
  }

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

  .position-grid {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .position-grid__head {
    display: none;
  }

  .position-grid > span:first-child {
    display: none;
  }

  .position-grid .field:nth-of-type(even) {
    grid-column: 2;
  }

  .tool-teaser .button {
    width: 100%;
  }

  .form-grid,
  .calculator__result {
    grid-template-columns: 1fr;
  }

  .calculator {
    padding: 22px;
  }

  .site-footer__bottom {
    display: block;
  }

  .site-footer__bottom span {
    display: block;
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .article-toc,
  .button-row {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  .article-layout {
    display: block;
  }
}

:root {
  color-scheme: light;
  --page: #f4f4f1;
  --surface: #ffffff;
  --surface-quiet: #e9eff8;
  --ink: #111622;
  --muted: #4c5567;
  --line: #aeb4bf;
  --line-strong: #111622;
  --accent: #0868df;
  --accent-hover: #064caa;
  --accent-soft: #e6f0ff;
  --warning: #332400;
  --warning-soft: #ffd91a;
  --success: #165c40;
  --success-soft: #dff5e9;
  --radius: 2px;
  --content: 1220px;
  --reading: 760px;
  --shadow: none;
  --bau-blue: #0868df;
  --bau-blue-dark: #064caa;
  --bau-yellow: #ffd91a;
  --bau-red: #ed2b20;
  --bau-white: #f7f7f4;
  --focus-ring: #073c8c;
  --font-display: "Bahnschrift Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: Verdana, Geneva, sans-serif;
}

body {
  background: var(--page);
  font-family: var(--font-body);
  line-height: 1.62;
}

h1,
h2,
h3,
h4,
.brand,
.button,
.route-list__number,
.guide-index__number,
.directory-item > span,
.result-cell output {
  font-family: var(--font-display);
  font-stretch: condensed;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

a {
  text-decoration-thickness: 1px;
}

:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--focus-ring);
}

.skip-link {
  color: var(--bau-white);
  background: var(--ink);
  border-radius: 0;
}

.site-header {
  background: var(--surface);
  border-bottom: 3px solid var(--line-strong);
}

.site-header__inner.shell {
  width: 100%;
  max-width: none;
  min-height: 82px;
  padding-right: clamp(18px, 4vw, 64px);
  padding-left: clamp(18px, 4vw, 64px);
}

.brand {
  gap: 14px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.brand__mark {
  position: relative;
  z-index: 0;
  width: 46px;
  height: 46px;
  color: var(--ink);
  background: var(--bau-yellow);
  border: 3px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.brand__mark::after {
  position: absolute;
  z-index: -1;
  right: -10px;
  bottom: -8px;
  width: 20px;
  height: 20px;
  background: var(--bau-red);
  border: 3px solid var(--line-strong);
  content: "";
}

.desktop-nav {
  align-self: stretch;
  gap: 0;
  border-left: 3px solid var(--line-strong);
}

.desktop-nav > a,
.nav-library > summary {
  display: flex;
  min-width: 126px;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  color: var(--ink);
  border-right: 1px solid var(--line-strong);
  border-radius: 0;
  font-size: 0.84rem;
  font-weight: 750;
}

.desktop-nav > a:hover,
.desktop-nav > a[aria-current="page"],
.nav-library[open] > summary,
.nav-library > summary:hover {
  color: var(--bau-white);
  background: var(--ink);
}

.nav-panel {
  top: calc(100% + 3px);
  gap: 0;
  background: var(--surface);
  border: 3px solid var(--line-strong);
  border-radius: 0;
  box-shadow: none;
}

.nav-panel__group {
  background: var(--surface);
  border-right: 1px solid var(--line-strong);
}

.nav-panel__group:last-of-type {
  border-right: 0;
}

.nav-panel__group strong {
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}

.nav-panel__all {
  color: var(--ink);
  background: var(--bau-yellow);
  border-top: 3px solid var(--line-strong);
}

.eyebrow {
  gap: 9px;
  margin-bottom: 14px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 750;
  letter-spacing: 0.015em;
  text-transform: none;
}

.eyebrow::before {
  width: 10px;
  height: 10px;
  background: var(--bau-red);
  border-radius: 50%;
}

.button {
  min-height: 50px;
  padding: 11px 18px 10px;
  color: var(--bau-white);
  background: var(--ink);
  border: 3px solid var(--line-strong);
  border-radius: 0;
  font-size: 0.94rem;
  font-weight: 800;
}

.button:hover {
  color: var(--ink);
  background: var(--bau-yellow);
  border-color: var(--line-strong);
}

.button--quiet {
  color: var(--ink);
  background: transparent;
  border-color: var(--line-strong);
}

.button--quiet:hover {
  color: var(--bau-white);
  background: var(--bau-blue);
  border-color: var(--line-strong);
}

.home-hero {
  display: grid;
  min-height: calc(100vh - 82px);
  grid-template-columns: minmax(0, 1.12fr) minmax(460px, 0.88fr);
  align-items: stretch;
}

.home-hero__copy {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 6.3vw, 96px) clamp(30px, 6vw, 92px) clamp(42px, 5vw, 74px);
  isolation: isolate;
}

.home-hero__copy::before {
  position: absolute;
  z-index: -1;
  top: clamp(38px, 6vw, 90px);
  right: clamp(22px, 5vw, 70px);
  width: clamp(76px, 10vw, 142px);
  aspect-ratio: 1;
  background: var(--bau-yellow);
  border: 3px solid var(--line-strong);
  border-radius: 50%;
  content: "";
}

.home-hero__label {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 7px 11px 6px;
  color: var(--bau-white);
  background: var(--ink);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.home-hero__label::before {
  width: 10px;
  height: 10px;
  background: var(--bau-red);
  border-radius: 50%;
  content: "";
}

.home-hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7.2vw, 6rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 0.9;
}

.home-hero h1 span {
  display: block;
  color: var(--bau-blue);
}

.home-hero__lead {
  max-width: 660px;
  margin: clamp(24px, 3vw, 36px) 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.65;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.home-invite {
  display: grid;
  max-width: 680px;
  margin-top: clamp(30px, 4vw, 48px);
  grid-template-columns: minmax(180px, 0.7fr) minmax(250px, 1.3fr);
  border: 3px solid var(--line-strong);
}

.home-invite__code,
.home-invite__terms {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 16px 18px;
}

.home-invite__code {
  background: var(--bau-yellow);
  border-right: 3px solid var(--line-strong);
}

.home-invite__code span,
.home-invite__terms strong {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.035em;
}

.home-invite__code strong {
  margin-top: 3px;
  color: #111622;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  font-weight: 850;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.home-invite__terms span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.home-invite__copy {
  min-height: 44px;
  margin-top: 10px;
  padding: 9px 12px;
  color: var(--bau-white);
  background: var(--ink);
  border: 0;
  cursor: pointer;
  font-weight: 750;
}

.course-map {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 5vw, 76px) clamp(34px, 4.8vw, 72px);
  color: var(--bau-white);
  background: var(--bau-blue);
  border-left: 3px solid var(--line-strong);
  overflow: hidden;
}

.course-map::after {
  position: absolute;
  right: -64px;
  bottom: -74px;
  width: 190px;
  height: 190px;
  background: var(--bau-red);
  border: 3px solid var(--line-strong);
  border-radius: 50%;
  content: "";
}

.course-map__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 17px;
  border-bottom: 3px solid var(--bau-white);
}

.course-map__head h2 {
  max-width: 340px;
  margin: 0;
  color: var(--bau-white);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.8vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.course-map__head > span {
  color: var(--bau-yellow);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}

.course-map__list {
  position: relative;
  z-index: 1;
  display: grid;
  margin: 0;
  padding: 15px 0 0;
  list-style: none;
}

.course-map__list::before {
  position: absolute;
  top: 41px;
  bottom: 35px;
  left: 21px;
  width: 3px;
  background: var(--bau-white);
  content: "";
}

.course-map__list li {
  position: relative;
  display: grid;
  min-height: 73px;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 7px 0;
}

.course-map__number {
  z-index: 1;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #111622;
  background: var(--bau-white);
  border: 3px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 850;
}

.course-map__list li:nth-child(2) .course-map__number {
  background: var(--bau-yellow);
  border-radius: 0;
}

.course-map__list li:nth-child(3) .course-map__number {
  color: var(--bau-white);
  background: var(--bau-red);
  transform: rotate(45deg);
}

.course-map__list li:nth-child(3) .course-map__number span {
  transform: rotate(-45deg);
}

.course-map__list strong {
  display: block;
  color: var(--bau-white);
  font-size: 0.94rem;
  line-height: 1.3;
}

.course-map__list small {
  display: block;
  margin-top: 4px;
  color: #dceaff;
  font-size: 0.73rem;
  line-height: 1.35;
}

.course-map__safety {
  position: relative;
  z-index: 1;
  margin: 17px 0 0;
  padding: 13px 15px;
  color: #111622;
  background: var(--bau-yellow);
  border: 3px solid var(--line-strong);
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1.45;
}

.risk-strip {
  padding: 16px 0;
  color: var(--bau-white);
  background: var(--ink);
  border-top: 3px solid var(--line-strong);
  border-bottom: 3px solid var(--line-strong);
}

.risk-strip strong {
  color: var(--bau-yellow);
}

.section {
  padding: clamp(62px, 7vw, 92px) 0;
  border-top: 2px solid var(--line-strong);
}

.section--surface {
  background: var(--surface);
}

.section__head {
  max-width: 860px;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.8vw, 4.15rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
}

#path {
  background: var(--bau-yellow);
}

.feature-guide {
  background: var(--bau-blue);
  border: 3px solid var(--line-strong);
  border-radius: 0;
}

.feature-guide:hover {
  background: var(--bau-blue-dark);
}

.feature-guide__meta,
.feature-guide span,
.feature-guide em {
  color: #e1ecff;
}

.feature-guide strong {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
}

.compact-guide-list {
  border-top: 3px solid var(--line-strong);
}

.compact-guide-list a {
  border-bottom-color: var(--line-strong);
}

.compact-guide-list a > span {
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}

.library-group {
  border-top: 3px solid var(--line-strong);
}

.library-group > span,
.tool-catalog a > span,
.directory-item > span,
.position-grid__number {
  color: var(--bau-blue);
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.library-group a,
.problem-index a,
.tool-catalog a {
  border-color: var(--line);
}

.problem-index,
.tool-catalog {
  border-top: 3px solid var(--line-strong);
}

.problem-index span {
  color: var(--bau-red);
  letter-spacing: 0;
  text-transform: none;
}

.problem-index a:hover strong,
.tool-catalog a:hover strong,
.library-group a:hover {
  color: var(--bau-blue);
}

.directory-grid {
  gap: 0;
  background: var(--surface);
  border: 3px solid var(--line-strong);
  border-radius: 0;
}

.directory-item {
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.directory-item:first-child {
  color: var(--bau-white);
  background: var(--bau-blue);
}

.directory-item:first-child > span {
  color: var(--bau-yellow);
}

.directory-item:first-child p {
  color: #e1ecff;
}

.page-hero {
  position: relative;
  padding: clamp(54px, 7vw, 86px) 0 clamp(42px, 5vw, 66px);
  border-bottom: 3px solid var(--line-strong);
  isolation: isolate;
}

.page-hero::after {
  position: absolute;
  z-index: -1;
  top: 54px;
  right: 0;
  width: 108px;
  height: 108px;
  background: var(--bau-yellow);
  border: 3px solid var(--line-strong);
  border-radius: 50%;
  content: "";
}

.page-hero h1 {
  max-width: min(930px, calc(100% - 150px));
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 5.8vw, 5.3rem);
  letter-spacing: -0.035em;
  line-height: 0.96;
}

.page-hero__lead {
  color: var(--muted);
  line-height: 1.66;
}

.breadcrumbs {
  color: var(--muted);
}

.article-layout {
  grid-template-columns: 250px minmax(0, var(--reading));
  padding-top: 58px;
}

.article-toc {
  top: 102px;
  padding: 19px;
  background: var(--surface);
  border: 3px solid var(--line-strong);
  border-top: 12px solid var(--bau-yellow);
  border-radius: 0;
}

.article-toc strong {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
}

.article-toc a {
  border-color: var(--line);
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
}

.prose h2 {
  margin-top: 64px;
  padding-top: 16px;
  border-top: 3px solid var(--line-strong);
  font-size: clamp(1.85rem, 3.3vw, 2.65rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.prose h3 {
  font-size: 1.42rem;
}

.prose p,
.prose li,
.definition-list dd {
  color: color-mix(in srgb, var(--ink) 88%, var(--muted));
}

.article-cover img {
  border: 3px solid var(--line-strong);
  border-radius: 0;
  box-shadow: none;
}

.answer-summary,
.callout,
.review-box,
.next-guide {
  border: 2px solid var(--line-strong);
  border-radius: 0;
}

.answer-summary,
.callout {
  background: var(--accent-soft);
}

.callout--warning {
  color: #332400;
  background: var(--bau-yellow);
}

.review-box {
  background: var(--surface-quiet);
}

.next-guide {
  background: var(--bau-yellow);
}

.next-guide span {
  color: #4d3b00;
  letter-spacing: 0;
  text-transform: none;
}

.step-list > li::before {
  color: var(--bau-white);
  background: var(--bau-blue);
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.88rem;
}

.faq-list,
.faq-list details,
.decision-list > li,
.source-list {
  border-color: var(--line-strong);
}

.table-wrap {
  border: 2px solid var(--line-strong);
  border-radius: 0;
}

th {
  color: #111622;
  background: var(--bau-yellow);
  letter-spacing: 0;
  text-transform: none;
}

.calculator {
  padding: clamp(24px, 4vw, 38px);
  background: var(--surface);
  border: 3px solid var(--line-strong);
  border-top: 12px solid var(--bau-blue);
  border-radius: 0;
  box-shadow: none;
}

.field input {
  color: var(--ink);
  background: var(--page);
  border: 2px solid var(--line-strong);
  border-radius: 0;
}

.field input:focus {
  border-color: var(--bau-blue);
  outline: 3px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--focus-ring);
}

.calculator__result {
  gap: 0;
  background: var(--bau-blue);
  border: 3px solid var(--line-strong);
  border-radius: 0;
}

.result-cell {
  color: var(--bau-white);
  background: var(--bau-blue);
  border-right: 1px solid var(--bau-white);
}

.result-cell:last-child {
  border-right: 0;
}

.result-cell span {
  color: #dceaff;
}

.site-footer {
  padding-top: 54px;
  color: #e8ebf2;
  background: var(--ink);
  border-top: 12px solid var(--bau-yellow);
}

.site-footer__top {
  border-bottom-color: #687084;
}

.site-footer h2 {
  color: var(--bau-yellow);
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.035em;
}

.site-footer p,
.site-footer__bottom {
  color: #b8c0d0;
}

.footer-links a {
  color: #eef1f6;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #111620;
    --surface: #191f2a;
    --surface-quiet: #242c3a;
    --ink: #f5f6f3;
    --muted: #bec6d4;
    --line: #5a6476;
    --line-strong: #f5f6f3;
    --accent: #70a9ff;
    --accent-hover: #9fc4ff;
    --accent-soft: #202f49;
    --warning: #ffd91a;
    --warning-soft: #332b0c;
  }

  .brand__mark,
  .home-hero__copy::before,
  .home-invite__code,
  .page-hero::after,
  .next-guide,
  th {
    color: #111622;
  }

  .desktop-nav > a:hover,
  .desktop-nav > a[aria-current="page"],
  .nav-library[open] > summary,
  .nav-library > summary:hover {
    color: #111622;
    background: var(--bau-yellow);
  }

  .home-hero h1 span {
    color: #70a9ff;
  }

  .home-invite__terms span,
  .page-hero__lead {
    color: var(--muted);
  }

  #path {
    color: #111622;
  }

  #path .section__head p,
  #path .compact-guide-list p {
    color: #3b3b37;
  }

  #path .compact-guide-list a,
  #path .compact-guide-list a > span {
    color: #111622;
  }

  .button {
    color: #111622;
    background: var(--bau-yellow);
  }

  .button:hover {
    color: var(--bau-white);
    background: var(--bau-blue);
  }

  .button--quiet {
    color: var(--ink);
    background: transparent;
  }

  .callout--warning {
    color: #332400;
  }

  .result-cell {
    color: var(--bau-white);
  }
}

@media (max-width: 980px) {
  .home-hero {
    grid-template-columns: 1fr;
  }

  .course-map {
    min-height: 610px;
    border-top: 3px solid var(--line-strong);
    border-left: 0;
  }

  .page-hero::after {
    width: 84px;
    height: 84px;
  }
}

@media (max-width: 900px) {
  .site-header__inner.shell {
    min-height: 66px;
    padding: 0 18px;
  }

  .mobile-menu > summary {
    min-height: 48px;
    color: var(--ink);
    background: transparent;
    border: 2px solid var(--line-strong);
    border-radius: 0;
  }

  .mobile-menu[open] > summary {
    color: var(--bau-white);
    background: var(--ink);
  }

  .mobile-menu__panel {
    top: 100%;
    gap: 0;
    padding: 0;
    background: var(--bau-yellow);
    border: 3px solid var(--line-strong);
    box-shadow: none;
  }

  .mobile-menu__panel a {
    color: #111622;
    border-color: #111622;
  }

  .mobile-menu__panel a[aria-current="page"] {
    color: var(--bau-white);
    background: var(--bau-blue);
  }

  .mobile-menu__label {
    color: #413700;
    letter-spacing: 0;
    text-transform: none;
  }

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

  .article-toc {
    position: static;
    top: auto;
  }

  .article-toc--enhanced {
    padding: 0;
  }

  .article-toc--enhanced > strong {
    display: none;
  }

  .article-toc__toggle {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    color: var(--ink);
    background: var(--surface);
    border: 0;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 800;
    text-align: left;
  }

  .article-toc__toggle::after {
    flex: 0 0 auto;
    color: var(--bau-blue);
    content: "+";
    font-size: 1.5rem;
    line-height: 1;
  }

  .article-toc__toggle[aria-expanded="true"]::after {
    content: "−";
  }

  .article-toc__links {
    display: block;
    padding: 0 16px 12px;
    border-top: 2px solid var(--line-strong);
  }

  .article-toc__links[hidden] {
    display: none;
  }

  .article-toc__links a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding-block: 8px;
  }
}

@media (max-width: 640px) {
  .brand {
    gap: 10px;
    font-size: 0.92rem;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
    font-size: 1.08rem;
  }

  .brand__mark::after {
    right: -7px;
    bottom: -5px;
    width: 16px;
    height: 16px;
  }

  .home-hero {
    min-height: 0;
  }

  .home-hero__copy {
    justify-content: flex-start;
    padding: 26px 18px 30px;
  }

  .home-hero__copy::before {
    top: 24px;
    right: -22px;
    width: 94px;
  }

  .home-hero__label {
    margin-bottom: 18px;
    font-size: 0.73rem;
  }

  .home-hero h1 {
    max-width: 350px;
    font-size: clamp(3rem, 15.8vw, 4.15rem);
    line-height: 0.88;
  }

  .home-hero__lead {
    max-width: 340px;
    margin-top: 19px;
    font-size: 0.89rem;
    line-height: 1.52;
  }

  .home-hero__actions {
    gap: 10px;
    margin-top: 20px;
  }

  .home-hero__actions .button {
    width: auto;
    min-height: 46px;
    padding: 9px 13px;
    font-size: 0.8rem;
  }

  .home-invite {
    margin-top: 22px;
    grid-template-columns: 1fr;
  }

  .home-invite__code,
  .home-invite__terms {
    padding: 12px 14px;
  }

  .home-invite__code {
    border-right: 0;
    border-bottom: 3px solid var(--line-strong);
  }

  .home-invite__code strong {
    font-size: 1.35rem;
  }

  .home-invite__terms span {
    font-size: 0.875rem;
  }

  .course-map {
    min-height: auto;
    padding: 34px 22px 56px;
  }

  .course-map__head {
    align-items: start;
  }

  .course-map__head h2 {
    font-size: 2rem;
  }

  .course-map__list li {
    min-height: 70px;
    gap: 15px;
  }

  .course-map::after {
    right: -95px;
    bottom: -100px;
  }

  .page-hero::after {
    display: none;
  }

  .page-hero h1 {
    max-width: 100%;
    font-size: clamp(2.45rem, 12vw, 3.5rem);
    line-height: 0.98;
  }

  .article-layout {
    padding-top: 34px;
  }

  .article-toc {
    border-top-width: 10px;
  }

  .position-grid .field > .visually-hidden {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
    border: 0 !important;
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.3;
  }

  .result-cell {
    border-right: 0;
    border-bottom: 1px solid var(--bau-white);
  }

  .result-cell:last-child {
    border-bottom: 0;
  }
}
