:root {
  color-scheme: light dark;
  --bg: #f7f4ef;
  --surface: #fffaf2;
  --surface-strong: #fff5e6;
  --text: #251a12;
  --muted: #66584c;
  --line: #d8c8b8;
  --accent: #7b3f00;
  --accent-2: #4d6b45;
  --link: #6d3200;
  --shadow: 0 20px 50px rgba(49, 31, 16, .12);
  --header-shadow: 0 10px 28px rgba(49, 31, 16, .08);
  --radius: 18px;
  --max: 1120px;
  --anchor-offset: 8.75rem;
  --stacked-label-heading-gap: .75rem;
  --card-heading-size: clamp(1.35rem, 1.7vw, 1.65rem);
  --standard-diagram-max-width: 46rem;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12100d;
    --surface: #1b1713;
    --surface-strong: #241d17;
    --text: #f2e8dc;
    --muted: #c8b6a4;
    --line: #44372b;
    --accent: #ffb56b;
    --accent-2: #a8d18d;
    --link: #ffd0a1;
    --shadow: 0 20px 50px rgba(0, 0, 0, .35);
    --header-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  }
}
@media (prefers-color-scheme: dark) {
  .topbar {
    border-color: color-mix(in srgb, var(--line) 72%, var(--accent) 28%);
    background: color-mix(in srgb, var(--surface-strong) 94%, transparent);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .46);
  }
}
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
/* Fragment-link and sticky-header offset: keep anchored headings visible below the persistent menu. */
main [id], .anchor-target { scroll-margin-top: var(--anchor-offset); }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(123, 63, 0, .12), transparent 36rem),
    radial-gradient(circle at bottom right, rgba(77, 107, 69, .10), transparent 32rem),
    var(--bg);
  color: var(--text);
  line-height: 1.62;
}
a { color: var(--link); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; }
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 64%, transparent);
  outline-offset: .18rem;
  border-radius: .3rem;
}
.skip-link {
  position: fixed;
  top: .75rem;
  left: max(.75rem, env(safe-area-inset-left));
  z-index: 100;
  padding: .58rem .82rem;
  border: 2px solid var(--accent);
  border-radius: .65rem;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--header-shadow);
  font-weight: 750;
  text-decoration: none;
  transform: translateY(calc(-100% - 1rem));
  transition: transform .16s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}
header.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: .7rem 0;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.topbar {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1rem;
  border: 1px solid color-mix(in srgb, var(--line) 76%, var(--accent) 24%);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 38px rgba(49, 31, 16, .16);
}
.brand {
  align-items: baseline;
  color: var(--text);
  column-gap: .55rem;
  display: inline-flex;
  flex-wrap: wrap;
  font-weight: 750;
  letter-spacing: -.02em;
  row-gap: .05rem;
  text-decoration: none;
}
.brand .brand-subtitle {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 550;
  letter-spacing: .01em;
  white-space: nowrap;
}
.nowrap { white-space: nowrap; }
.primary-nav-shell {
  position: relative;
  min-width: 0;
}
.topbar .primary-nav-shell {
  margin-left: auto;
}
nav.primary-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .35rem .75rem;
  font-size: .92rem;
}
nav.primary-nav a,
.all-pages-toggle {
  color: var(--muted);
  text-decoration: none;
  padding: .25rem .1rem;
}
.all-pages-toggle span[aria-hidden="true"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: .62rem;
  height: .62rem;
  margin-left: .16rem;
  font-size: 0;
  line-height: 1;
  transform: translateY(.04em);
}
.all-pages-toggle span[aria-hidden="true"]::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: .28rem solid transparent;
  border-right: .28rem solid transparent;
  border-top: .36rem solid currentColor;
}
nav.primary-nav a[aria-current="page"],
nav.primary-nav a[aria-current="location"],
nav.primary-nav a:hover,
.all-pages-toggle:hover,
.all-pages-toggle[aria-expanded="true"] {
  color: var(--accent);
}
.all-pages-toggle {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-radius: .4rem;
  cursor: pointer;
  flex: 0 0 auto;
  font: inherit;
  line-height: inherit;
  white-space: nowrap;
}
.all-pages-toggle:focus-visible,
.all-pages-close:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 64%, transparent);
  outline-offset: .18rem;
}
.all-pages-panel {
  position: fixed;
  left: max(.75rem, env(safe-area-inset-left));
  right: max(.75rem, env(safe-area-inset-right));
  top: var(--site-nav-bottom, 5.5rem);
  z-index: 70;
  max-height: calc(100vh - var(--site-nav-bottom, 5.5rem) - env(safe-area-inset-bottom) - .75rem);
  max-height: calc(100dvh - var(--site-nav-bottom, 5.5rem) - env(safe-area-inset-bottom) - .75rem);
  max-height: calc(var(--vvh, 100dvh) - var(--site-nav-bottom, 5.5rem) - env(safe-area-inset-bottom) - .75rem);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--line) 72%, var(--accent) 28%);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  box-shadow: var(--shadow);
}
.all-pages-panel[hidden] { display: none; }
.all-pages-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--line);
}
.all-pages-head strong {
  color: var(--accent);
  font-size: 1rem;
}
.all-pages-close {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: .86rem;
  font-weight: 720;
  padding: .35rem .7rem;
}
.all-pages-close:hover { color: var(--accent); }
.all-pages-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.35rem 1.25rem;
  padding-top: .95rem;
}
.all-pages-nav section { min-width: 0; }
.all-pages-nav h2 {
  margin: 0 0 .45rem;
  color: var(--accent);
  font-size: .86rem;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.all-pages-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.all-pages-nav li + li { margin-top: .35rem; }
.all-pages-nav a {
  display: inline-block;
  padding: .1rem 0;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.35;
}
.all-pages-nav a:hover,
.all-pages-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}
main { padding: 2rem 0 4rem; }
.hero {
  position: relative;
  overflow: hidden;
  padding: 2.4rem;
  border: 1px solid color-mix(in srgb, var(--line) 68%, var(--accent) 32%);
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--surface) 92%, var(--accent) 8%),
      color-mix(in srgb, var(--surface-strong) 93%, var(--accent-2) 7%));
  border-radius: calc(var(--radius) + 10px);
  box-shadow: var(--shadow), inset 0 1px 0 color-mix(in srgb, white 38%, transparent);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: .72;
}
.hero > * { position: relative; }
.hero--home {
  border-color: color-mix(in srgb, var(--line) 54%, var(--accent) 46%);
  background:
    radial-gradient(circle at 88% 10%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 23rem),
    linear-gradient(135deg,
      color-mix(in srgb, var(--surface) 86%, var(--accent) 14%),
      color-mix(in srgb, var(--surface-strong) 89%, var(--accent-2) 11%));
  box-shadow: 0 24px 58px rgba(49, 31, 16, .16), inset 0 1px 0 color-mix(in srgb, white 44%, transparent);
}
@media (prefers-color-scheme: dark) {
  .hero { box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .08); }
  .hero--home { box-shadow: 0 24px 58px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .1); }
}
.eyebrow {
  color: var(--accent-2);
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .095em;
  font-size: .76rem;
}
h1, h2, h3 {
  line-height: 1.16;
  letter-spacing: -.035em;
  margin: 0 0 .8rem;
  text-wrap: balance;
}
/* Primary headings use the available content or hero width. Natural wrapping and
   text balancing govern line breaks; avoid character-count constraints that can
   create accidental-looking wraps when horizontal space remains available. */
h1 { font-size: 2.25rem; }
.page h1 { font-size: 2.15rem; }
h2 { font-size: 1.55rem; margin-top: 2.2rem; }
h3 { font-size: 1.15rem; margin-top: 1.35rem; }
p { margin: .55rem 0 1rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 65rem; }
/* Semantic secondary copy: apply deliberately to supporting orientation, summaries and metadata. */
.supporting-copy { color: var(--muted); }
@media (min-width: 960px) {
  /* The content container stops growing at 1120px. Cap viewport-responsive type
     near that point so ultrawide screens retain the balanced medium-width scale. */
  h1 { font-size: clamp(2.6rem, 4.4vw, 4.2rem); }
  .page h1 { font-size: clamp(2.35rem, 3.6vw, 3.6rem); }
  h2 { font-size: clamp(1.7rem, 2.2vw, 2rem); }
  .lead { font-size: clamp(1.15rem, 1.35vw, 1.25rem); }
}
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.3rem; }
/* Homepage gateway actions: deliberate balance at intermediate widths; no lone wrapped specialist action. */
@media (min-width: 681px) and (max-width: 1680px) {
  .home-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
  }
}
@media (max-width: 680px) {
  .home-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .home-hero-actions .button { width: 100%; }
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .76rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 720;
  box-shadow: 0 10px 24px rgba(49, 31, 16, .08);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.button:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--line) 58%, var(--accent) 42%);
  box-shadow: 0 14px 30px rgba(49, 31, 16, .13);
  text-decoration: none;
}
.button.primary {
  background: var(--accent);
  color: var(--bg);
  border-color: color-mix(in srgb, var(--accent), black 15%);
}
.button.secondary {
  background: color-mix(in srgb, var(--surface) 80%, var(--surface-strong) 20%);
}
.button.contact {
  border-style: dashed;
  background: color-mix(in srgb, var(--surface-strong) 74%, transparent);
}
.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.paper-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.card h2, .card h3 { margin-top: 0; }
.card h2 { font-size: var(--card-heading-size); }
.card.compact p { margin-bottom: .4rem; }

/* Ordered narrative sequences: preserve chronology and process without forcing peer-card geometry. */
.architecture-route,
.ordered-mini-steps,
.development-steps {
  list-style: none;
  padding-left: 0;
  counter-reset: ordered-step;
}
.architecture-route { margin: 0; }
.ordered-mini-steps { margin-bottom: 0; }
.architecture-route > li + li,
.ordered-mini-steps > li + li,
.development-steps > li + li { margin-top: 0; }
.architecture-route > li,
.ordered-mini-steps > li,
.development-steps > li {
  counter-increment: ordered-step;
}
.architecture-step-label::before {
  content: counter(ordered-step) ".\00a0";
}
.mini-steps.ordered-mini-steps > li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  column-gap: .75rem;
  row-gap: .15rem;
  align-content: start;
}
.mini-steps.ordered-mini-steps > li::before {
  content: counter(ordered-step);
  display: grid;
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  margin-top: .05rem;
  border: 1px solid color-mix(in srgb, var(--line) 66%, var(--accent) 34%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 78%, transparent);
  color: var(--accent);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1;
}
.mini-steps.ordered-mini-steps > li > strong,
.mini-steps.ordered-mini-steps > li > span {
  grid-column: 2;
}
.mini-steps.ordered-mini-steps > li > strong {
  margin-bottom: 0;
}
.development-steps {
  margin: 1rem 0 0;
}
.development-steps > li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: .9rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}
.development-steps > li:first-child {
  padding-top: .4rem;
  border-top: 0;
}
.development-steps > li::before {
  content: counter(ordered-step);
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  margin-top: .05rem;
  border: 1px solid color-mix(in srgb, var(--line) 66%, var(--accent) 34%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 78%, transparent);
  color: var(--accent);
  font-size: .88rem;
  font-weight: 800;
  line-height: 1;
}
.development-step-content > h3 {
  margin: 0;
}
.development-step-content > p:last-child {
  margin-bottom: 0;
}

/* Functional capability surface: one joined list avoids a false peer-card hierarchy. */
.capability-surface-list {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 0;
  border-top: 1px solid var(--line);
}
.capability-surface-list > li {
  display: grid;
  grid-template-columns: minmax(13rem, .75fr) minmax(0, 2fr);
  gap: 1rem;
  padding: .95rem 0;
  border-bottom: 1px solid var(--line);
}
.capability-surface-list strong {
  color: var(--accent);
  line-height: 1.4;
}
.capability-surface-list span {
  color: var(--text);
  line-height: 1.55;
}
@media (max-width: 680px) {
  .development-steps > li {
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: .75rem;
  }
  .capability-surface-list > li {
    grid-template-columns: 1fr;
    gap: .25rem;
  }
}

/* Practice-derived principles: joined text rows avoid false card hierarchy or mandatory-sequence cues. */
.principle-group + .principle-group { margin-top: 1.5rem; }
.principle-group > h3 { margin: 0 0 .55rem; }
.principle-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.principle-list > li {
  display: grid;
  grid-template-columns: minmax(13rem, .72fr) minmax(0, 2fr);
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
}
.principle-list strong {
  color: var(--accent);
  line-height: 1.4;
}
.principle-list span {
  color: var(--text);
  line-height: 1.55;
}
.foundation-list { margin: .85rem 0 0; }
.foundation-list > li + li { margin-top: .65rem; }
@media (max-width: 680px) {
  .principle-list > li {
    grid-template-columns: 1fr;
    gap: .25rem;
  }

  .on-this-page ul { display: grid; grid-template-columns: 1fr; gap: .35rem; }
}
.table-block > h2 { margin-bottom: .55rem; }
.table-block > p,
.figure-section > p,
.route-cards-block > p { max-width: 72rem; }
.table-block table { margin-top: .85rem; }
.route-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
  margin-top: 1rem;
}
.route-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 88%, var(--surface-strong) 12%);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(49, 31, 16, .06);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.route-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--line) 54%, var(--accent) 46%);
  box-shadow: 0 16px 34px rgba(49, 31, 16, .12);
  text-decoration: none;
}
.route-card h3 {
  margin-top: 0;
  margin-bottom: .45rem;
  color: var(--accent);
}
.route-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: .2rem .55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--accent);
  font-weight: 720;
  font-size: .78rem;
  margin-bottom: 0;
}

.role-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  margin-top: 1rem;
}
.role-map > a,
.role-map > div {
  display: block;
  padding: .95rem 1rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 4px);
  background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
  text-decoration: none;
}
.role-map > a {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.role-map > a:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--line) 62%, var(--accent) 38%);
  background: color-mix(in srgb, var(--surface-strong) 88%, var(--accent) 12%);
  box-shadow: 0 8px 18px rgba(49, 31, 16, .08);
  text-decoration: none;
}
.role-map > a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, white 45%);
  outline-offset: 3px;
}
.evidence-status-text {
  display: block;
  margin-bottom: .35rem;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 760;
  letter-spacing: .055em;
  line-height: 1.35;
  text-transform: uppercase;
}
.role-map strong { display: block; margin-bottom: .2rem; color: var(--accent); }
.role-map span { display: block; color: var(--muted); line-height: 1.45; }
@media (max-width: 920px) {
  .role-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .role-map { grid-template-columns: 1fr; }
}
/* Shared stacked-label rhythm for selective section-eyebrow badges. */
.badge + :is(h1, h2, h3) {
  margin-top: var(--stacked-label-heading-gap);
}
.section { margin-top: 2rem; }
table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: .82rem .95rem;
  border-bottom: 1px solid var(--line);
}
th { color: var(--accent); background: color-mix(in srgb, var(--surface-strong) 76%, transparent); }
tr:last-child td,
tr:last-child th[scope="row"] { border-bottom: 0; }


/* Screen-reader-only text remains available to assistive technologies without changing visual composition. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Selective long-page navigation: used only where the page has a real reference-navigation need. */
.on-this-page {
  margin-top: 1.35rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 4px);
  background: color-mix(in srgb, var(--surface) 92%, var(--surface-strong) 8%);
}
.on-this-page h2 { margin: 0 0 .55rem; font-size: 1.08rem; }
.on-this-page ul { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: 0; padding: 0; list-style: none; }
.on-this-page li { margin: 0; }
.on-this-page a { font-weight: 650; }

/* Simple data tables expose column and row-header relationships programmatically. */
tbody th[scope="row"] {
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  font-weight: 700;
}

/* Cue icons: decorative visual correlation between diagrams, prose and dense comparison/mechanism tables. */
.icon-label {
  align-items: center;
  display: inline-flex;
  gap: .45rem;
  line-height: 1.35;
}
.icon-cue {
  background-color: var(--icon-colour, currentColor);
  display: inline-block;
  flex: 0 0 auto;
  height: 1.15em;
  -webkit-mask: var(--icon-url) center / contain no-repeat;
  mask: var(--icon-url) center / contain no-repeat;
  width: 1.15em;
}
.icon-blue { --icon-colour: #1D4ED8; }
.icon-orange { --icon-colour: #EA580C; }
.icon-green { --icon-colour: #16843A; }

/* Running-prose cue icons align like inline symbols and keep the icon with its labelled term. */
main :where(p, li) .icon-label {
  display: inline;
  line-height: inherit;
  vertical-align: baseline;
  white-space: nowrap;
}
main :where(p, li) .icon-label .icon-cue {
  display: inline-block;
  height: 1em;
  width: 1em;
  margin-inline-end: .35rem;
  vertical-align: -0.14em;
}
main :where(p, li) .icon-label > :last-child {
  vertical-align: baseline;
}
.term-list {
  display: grid;
  gap: .35rem;
}
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: .35rem; }
.callout {
  border-left: 4px solid var(--accent);
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
  padding: 1rem 1.15rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.boundary {
  border: 1px dashed var(--accent);
  background: color-mix(in srgb, var(--surface-strong) 68%, transparent);
}
.concept-stack-panel {
  padding: 1.35rem;
  border: 1px solid color-mix(in srgb, var(--line) 70%, var(--accent-2) 30%);
  border-radius: calc(var(--radius) + 4px);
  background: color-mix(in srgb, var(--surface) 88%, var(--surface-strong) 12%);
}
.concept-stack-panel h2 {
  margin-top: 0;
}
.concept-stack-panel .figure-card {
  background: color-mix(in srgb, var(--surface-strong) 55%, var(--surface) 45%);
}


.figure-card {
  width: 100%;
  margin: 1.25rem 0 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}
.figure-card img {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
  border-radius: calc(var(--radius) - 6px);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}
.figure-card img.diagram-standard {
  max-width: var(--standard-diagram-max-width);
}
.figure-card img.diagram-dense {
  max-width: none;
}
.figure-card figcaption {
  margin-top: .8rem;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.55;
}

/* Figure roles: integrated hero diagrams belong inside heroes; lead figures open dense pages; section figures support later content. */
.hero > .hero-diagram {
  margin: 1.35rem 0 0;
  background: color-mix(in srgb, var(--surface-strong) 52%, var(--surface) 48%);
}
.hero > .hero-diagram img {
  background: transparent;
}
.hero > .hero-diagram figcaption {
  font-size: .92rem;
}
.lead-figure {
  width: 100%;
  margin: 1.15rem auto 0;
  border-color: color-mix(in srgb, var(--line) 88%, var(--accent) 12%);
  background: color-mix(in srgb, var(--surface) 96%, var(--surface-strong) 4%);
  box-shadow: 0 10px 24px rgba(49, 31, 16, .06);
}
.section-figure { margin-top: 1.25rem; }
@media (prefers-color-scheme: dark) {
  .lead-figure { box-shadow: 0 10px 24px rgba(0, 0, 0, .24); }
}
.diagram-note {
  margin: .65rem 0 0;
  color: var(--text);
  font-size: .98rem;
  line-height: 1.6;
}

/* Quiet topical onward links: optional exploration, visually distinct from route hubs and the linear reading sequence. */
.related-pages {
  margin-top: 2rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}
.related-pages h2 {
  margin: 0 0 .65rem;
  font-size: 1.12rem;
  letter-spacing: -.02em;
}
.related-pages ul {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.related-pages li {
  display: inline-flex;
  align-items: baseline;
  margin: 0;
}
.related-pages a {
  font-weight: 650;
}
/* Comparison-table is a visual treatment only; column geometry stays content-driven unless a scoped layout class governs it. */
.comparison-table td {
  background: color-mix(in srgb, var(--surface) 95%, transparent);
}

.burden-shift-components-table {
  table-layout: fixed;
}
.burden-shift-components-table th:nth-child(1),
.burden-shift-components-table td:nth-child(1) {
  width: 31%;
}
.burden-shift-components-table th:nth-child(2),
.burden-shift-components-table td:nth-child(2) {
  width: 28%;
}
.burden-shift-components-table th:nth-child(3),
.burden-shift-components-table td:nth-child(3) {
  width: 41%;
}
.breadcrumbs {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
  margin-bottom: 1.1rem;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
}
.breadcrumbs li {
  position: relative;
  display: block;
  min-width: 0;
  line-height: inherit;
}
.breadcrumbs li + li {
  margin-left: 1.5rem;
}
.breadcrumbs li + li::before {
  content: "";
  position: absolute;
  left: -.98rem;
  top: .72em;
  width: .36rem;
  height: .36rem;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  opacity: .72;
  transform: translateY(-50%) rotate(45deg);
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs [aria-current="page"] { color: var(--muted); }
footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  color: var(--muted);
}
footer .footgrid {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.4rem;
  justify-content: space-between;
}
.site-version {
  margin-left: .4rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
dl { display: grid; gap: .8rem; }
dt { font-weight: 800; color: var(--accent); }
dd { margin: .1rem 0 0; }
details {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
details + details { margin-top: .8rem; }
summary { cursor: pointer; font-weight: 800; color: var(--accent); }
@media (max-width: 820px) {
  :root { --anchor-offset: 11rem; }
  header.site-header { padding: .55rem 0; }
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: .45rem;
    padding: .8rem 1rem .7rem;
  }
  .primary-nav-shell {
    width: 100%;
  }
  .primary-nav-shell::before,
  .primary-nav-shell::after {
    content: "";
    position: absolute;
    top: 0;
    z-index: 3;
    width: 2rem;
    height: 2.25rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease;
  }
  .primary-nav-shell::before {
    left: 0;
    background: linear-gradient(to right, var(--surface) 18%, transparent);
  }
  .primary-nav-shell::after {
    right: 0;
    background: linear-gradient(to left, var(--surface) 18%, transparent);
  }
  .primary-nav-shell.can-scroll-left::before,
  .primary-nav-shell.can-scroll-right::after {
    opacity: 1;
  }
  nav.primary-nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: .85rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: .05rem 0 .25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  nav.primary-nav a,
  .all-pages-toggle {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  nav.primary-nav a:first-child {
    padding-left: 0;
  }
  .all-pages-panel {
    border-radius: calc(var(--radius) - 4px);
    max-height: calc(100vh - var(--site-nav-bottom, 5.5rem) - env(safe-area-inset-bottom) - .65rem);
    max-height: calc(100dvh - var(--site-nav-bottom, 5.5rem) - env(safe-area-inset-bottom) - .65rem);
    max-height: calc(var(--vvh, 100dvh) - var(--site-nav-bottom, 5.5rem) - env(safe-area-inset-bottom) - .65rem);
  }
  .all-pages-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.1rem .95rem;
  }
  main { padding: 1.6rem 0 3.25rem; }
  .hero { padding: 1.4rem; }
  .grid.two, .grid.paper-grid { grid-template-columns: 1fr; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { border-bottom: 1px solid var(--line); }
  td { border: 0; padding: .65rem .85rem; }
  td::before { content: attr(data-label); display: block; font-weight: 800; color: var(--accent); margin-bottom: .15rem; }

  tbody th[scope="row"] { border: 0; padding: .65rem .85rem; }
  tbody th[scope="row"]::before { content: attr(data-label); display: block; font-weight: 800; color: var(--accent); margin-bottom: .15rem; }

  .burden-shift-components-table {
    table-layout: auto;
  }

  .burden-shift-components-table th:nth-child(1),
  .burden-shift-components-table td:nth-child(1),
  .burden-shift-components-table th:nth-child(2),
  .burden-shift-components-table td:nth-child(2),
  .burden-shift-components-table th:nth-child(3),
  .burden-shift-components-table td:nth-child(3) {
    box-sizing: border-box;
    width: 100%;
  }
}


/* Cold-reader absorption aids: explanatory scaffolding without reducing the underlying content. */
.reader-guide,
.reader-note,
.plain-example {
  border: 1px solid color-mix(in srgb, var(--line) 78%, var(--accent-2) 22%);
  background: color-mix(in srgb, var(--surface) 90%, var(--surface-strong) 10%);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.reader-guide-intro > h2,
.reader-note > h2,
.plain-example > h2 { margin-top: 0; }
.reader-guide-intro > p,
.reader-note > p,
.plain-example > p { max-width: 74rem; }
.route-strip,
.comparison-strip,
.mini-steps,
.checklist-grid {
  display: grid;
  gap: .8rem;
  margin-top: 1rem;
}
.route-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.route-strip.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.comparison-strip,
.mini-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.paper-purpose-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mini-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.checklist-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Five equal peers: keep equal widths while centring the two-item final row. */
@media (min-width: 921px) {
  .route-strip.compact.balanced-five,
  .checklist-grid.balanced-five {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .route-strip.compact.balanced-five > *,
  .checklist-grid.balanced-five > * {
    grid-column: span 2;
  }
  .route-strip.compact.balanced-five > :nth-child(4),
  .checklist-grid.balanced-five > :nth-child(4) {
    grid-column: 2 / span 2;
  }
  .route-strip.compact.balanced-five > :nth-child(5),
  .checklist-grid.balanced-five > :nth-child(5) {
    grid-column: 4 / span 2;
  }
}
.route-strip a,
.comparison-strip div,
.mini-steps div,
.mini-steps > li,
.checklist-grid div {
  display: block;
  padding: .95rem 1rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 4px);
  background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
  text-decoration: none;
}
.route-strip a {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.route-strip a:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--line) 62%, var(--accent) 38%);
  background: color-mix(in srgb, var(--surface-strong) 88%, var(--accent) 12%);
  box-shadow: 0 8px 18px rgba(49, 31, 16, .08);
  text-decoration: none;
}
.route-card:focus-visible,
.route-strip a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, white 45%);
  outline-offset: 3px;
}
.route-card:focus-visible {
  border-radius: var(--radius);
}
.route-strip a:focus-visible {
  border-radius: calc(var(--radius) - 4px);
}
.route-strip strong,
.comparison-strip strong,
.mini-steps strong {
  display: block;
  color: var(--accent);
  margin-bottom: .2rem;
}
.route-strip a > span,
.comparison-strip > div > span,
.mini-steps > div > span,
.mini-steps > li > span {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}
.checklist-grid div {
  color: var(--text);
  font-weight: 650;
}
@media (max-width: 1040px) {
  .route-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .comparison-strip,
  .paper-purpose-strip,
  .mini-steps { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .route-strip,
  .route-strip.compact,
  .checklist-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .route-card-grid { grid-template-columns: 1fr; }
}
@media (min-width: 821px) {
  .all-pages-panel {
    left: 50%;
    right: auto;
    width: min(68rem, calc(100vw - 2rem));
    transform: translateX(-50%);
  }
}
@media (max-width: 520px) {
  .all-pages-nav {
    grid-template-columns: 1fr;
    row-gap: 2.8rem;
  }
}
@media (max-height: 460px) and (orientation: landscape) {
  .all-pages-panel {
    padding: .85rem;
  }
  .all-pages-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.65rem .95rem;
  }
  .all-pages-nav h2 { font-size: .78rem; }
  .all-pages-nav a { line-height: 1.28; }
}


/* Glossary popup treatment: first meaningful occurrence of glossary terms outside the glossary page. */
.glossary-term-phrase {
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}
.glossary-term-tail,
.glossary-term-punctuation,
.glossary-term-attachment {
  white-space: nowrap;
}
.glossary-term {
  appearance: none;
  -webkit-appearance: none;
  display: inline;
  margin: 0;
  padding: 0 .03em;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: inherit;
  cursor: help;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}
.glossary-term-main {
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  text-decoration-skip-ink: auto;
}
.glossary-term-attachment {
  text-decoration: none;
}
.glossary-term:hover,
.glossary-term:focus-visible,
.glossary-term[aria-expanded="true"] {
  color: inherit;
}

.glossary-term,
.glossary-term:hover,
.glossary-term:focus-visible,
.glossary-term[aria-expanded="true"],
.glossary-term .glossary-term-main,
.glossary-term:hover .glossary-term-main,
.glossary-term:focus-visible .glossary-term-main,
.glossary-term[aria-expanded="true"] .glossary-term-main {
  color: inherit;
}

.glossary-term:hover .glossary-term-main,
.glossary-term:focus-visible .glossary-term-main,
.glossary-term[aria-expanded="true"] .glossary-term-main {
  text-decoration-style: solid;
  text-decoration-thickness: 1.5px;
}
.glossary-term:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 72%, transparent);
  outline-offset: .16em;
}
.glossary-popover {
  position: absolute;
  z-index: 80;
  width: min(24rem, calc(100vw - 2rem));
  padding: .85rem .95rem;
  border: 1px solid color-mix(in srgb, var(--line) 74%, var(--accent) 26%);
  border-radius: calc(var(--radius) - 6px);
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: .94rem;
  line-height: 1.48;
}
.glossary-popover[hidden] { display: none; }
.glossary-popover strong {
  display: block;
  margin-bottom: .25rem;
  color: var(--accent);
  line-height: 1.25;
}
.glossary-popover p {
  margin: 0 0 .55rem;
  color: var(--text);
}
.glossary-popover a {
  font-weight: 720;
}


/* Harmonised reader-layer refinements: preserve claim precision while reducing repeated explanation. */
.layer-map,
.canonical-note {
  border: 1px solid color-mix(in srgb, var(--line) 74%, var(--accent-2) 26%);
  background: color-mix(in srgb, var(--surface) 90%, var(--surface-strong) 10%);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.layer-map > h2,
.canonical-note > h2 { margin-top: 0; }
.layer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  margin-top: 1rem;
}
.layer-grid div {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 4px);
  background: color-mix(in srgb, var(--surface-strong) 70%, transparent);
  padding: .95rem 1rem;
}
.layer-grid strong {
  display: block;
  color: var(--accent);
  margin-bottom: .25rem;
}
.layer-grid span {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}
.layer-grid span a {
  font-weight: inherit;
}
@media (min-width: 821px) {
  .layer-grid.balanced-five {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .layer-grid.balanced-five > * {
    grid-column: span 2;
  }
  .layer-grid.balanced-five > :nth-child(4) {
    grid-column: 2 / span 2;
  }
  .layer-grid.balanced-five > :nth-child(5) {
    grid-column: 4 / span 2;
  }
}
@media (max-width: 820px) {
  .layer-grid { grid-template-columns: 1fr; }
}
/* Reference-page polish: grouped glossary and FAQ sections. */
.glossary-group h2,
.faq-group h2 { margin-top: 0; }
.glossary-group dl { gap: .9rem; }
.faq-group details:first-of-type { margin-top: .35rem; }
.faq-group details + details { margin-top: .8rem; }

@media (max-width: 520px) {
  .brand {
    align-items: flex-start;
    flex-direction: column;
    gap: .05rem;
  }
  .brand .brand-subtitle,
  .brand .nowrap {
    white-space: normal;
  }
  h1,
  h2,
  h3,
  main p,
  main li,
  main th,
  main td,
  main a,
  .reading-sequence-link strong,
  .icon-label > :last-child {
    overflow-wrap: anywhere;
  }
  main :where(p, li) .icon-label {
    display: inline-flex;
    max-width: 100%;
    white-space: normal;
  }
  .reading-sequence-link {
    margin-inline: 0;
  }
}

/* Grid and card children must be allowed to shrink when text is enlarged. */
.grid > *,
.hero,
.card,
.reading-sequence-link {
  min-width: 0;
}

/* Reading sequence: quiet linear Previous / progress / Next continuation across the public site. */
.reading-sequence-block {
  margin-top: 2rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}
.reading-sequence-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .55rem;
}
.reading-sequence-heading h2 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: -.02em;
}
.sequence-progress {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 650;
}
/* Reusable number-plus-label geometry for sequential table structure. */
.numbered-label {
  display: grid;
  grid-template-columns: 1.65em minmax(min-content, 1fr);
  column-gap: .4rem;
  align-items: start;
}
.numbered-label-number {
  min-width: 0;
  text-align: right;
}
.numbered-label-label {
  min-width: 0;
}
.numbered-label--ordinal .numbered-label-number {
  color: var(--muted);
  font-size: .9em;
  font-weight: 600;
}
.reading-sequence-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.reading-sequence-link {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .18rem;
  margin-inline: -.5rem;
  padding: .55rem .5rem;
  border-radius: .45rem;
  color: var(--text);
  text-decoration: none;
  transition: transform .16s ease, color .16s ease;
}
.reading-sequence-link:hover {
  transform: translateY(-1px);
  text-decoration: none;
}
.reading-sequence-link:hover .reading-sequence-direction {
  color: var(--accent);
}
.reading-sequence-link:hover strong {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.reading-sequence-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, white 45%);
  outline-offset: 3px;
  border-radius: .35rem;
}
.reading-sequence-direction {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 650;
}
.reading-sequence-link strong {
  color: var(--accent);
  font-size: 1rem;
  line-height: 1.35;
}
.reading-sequence-next {
  align-items: flex-end;
  text-align: right;
}
.reading-sequence-links > .reading-sequence-next:only-child {
  grid-column: 2;
}
.reading-sequence-links > .reading-sequence-previous:only-child {
  grid-column: 1;
}
@media (max-width: 820px) {
  .numbered-label {
    grid-template-columns: auto minmax(0, 1fr);
    justify-content: start;
    text-align: left;
  }
  .numbered-label-number {
    text-align: left;
  }
}
@media (max-width: 620px) {
  .reading-sequence-links {
    grid-template-columns: 1fr;
    gap: .25rem;
  }
  .reading-sequence-links > .reading-sequence-link:only-child {
    grid-column: 1;
  }
  .reading-sequence-next {
    align-items: flex-start;
    text-align: left;
  }
}
@media (max-width: 520px) {
  .reading-sequence-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: .2rem;
  }
  .related-pages ul {
    display: grid;
    gap: .45rem;
  }
  .related-pages li {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .route-card,
  .route-strip a,
  .reading-sequence-link,
  .skip-link {
    transition: none;
  }
  .button:hover,
  .route-card:hover,
  .route-strip a:hover,
  .reading-sequence-link:hover {
    transform: none;
  }
}

/* Public practice disclosure funnel: width represents disclosure depth, not strategic importance. */
.disclosure-funnel {
  display: grid;
  gap: .7rem;
  max-width: 66rem;
  margin: 1rem auto 0;
  padding: 0;
  list-style: none;
}
.disclosure-funnel > li {
  box-sizing: border-box;
  margin-inline: auto;
  padding: .95rem 1rem;
  border: 1px solid color-mix(in srgb, var(--line) 72%, var(--accent) 28%);
  border-radius: calc(var(--radius) - 4px);
  background: color-mix(in srgb, var(--surface-strong) 76%, transparent);
}
.disclosure-funnel > li:nth-child(1) { width: 100%; }
.disclosure-funnel > li:nth-child(2) { width: 82%; }
.disclosure-funnel > li:nth-child(3) { width: 64%; }
.disclosure-funnel strong {
  display: block;
  margin-bottom: .2rem;
  color: var(--accent);
}
.disclosure-funnel span {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 680px) {
  .disclosure-funnel > li:nth-child(n) { width: 100%; }
}

/* Relationship invariant: keep after every component and responsive heading reset. */
body .badge + :is(h1, h2, h3) {
  margin-block-start: var(--stacked-label-heading-gap);
}
