@font-face {
  font-family: "Manrope";
  src: url("assets/Manrope-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b0b0b;
  --ink-muted: #5d5d58;
  --paper: #ffffff;
  --paper-soft: #f6f6f1;
  --paper-warm: #eeeeE7;
  --paper-deep: #e4e4dc;
  --line: #d3d3ca;
  --accent: #b8d0f8;
  --accent-hover: #dbe7fa;
  --accent-deep: #4f70ad;
  --radius-content: 0.7rem;
  --font: "Manrope", "Arial", sans-serif;
  --page-x: clamp(1.25rem, 4.5vw, 5.5rem);
  --topbar-height: 4.25rem;
  --bottom-nav-height: 4.25rem;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper-soft);
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--paper-soft);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.045em;
  line-height: 1.02;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(4.5rem, 11vw, 10.5rem);
  font-weight: 800;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.75rem, 6.5vw, 6.75rem);
  font-weight: 750;
}

h3 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  font-weight: 700;
}

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

.skip-link {
  position: fixed;
  z-index: 200;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-180%);
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
}

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

.topbar {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--topbar-height);
  padding: 0 var(--page-x);
  border-bottom: 1px solid rgba(11, 11, 11, 0.14);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.wordmark,
.control-button,
.icon-button,
.nav-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.wordmark {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wordmark-dot {
  width: 0.75rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent-deep);
  box-shadow: 0 0 0 3px var(--ink);
}

.topbar-center {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.topbar-count {
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.topbar-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.control-button,
.icon-button {
  min-height: 2.55rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.control-button {
  padding: 0.55rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 750;
}

.control-button:hover,
.control-button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--accent);
}

.icon-button {
  display: inline-grid;
  width: 2.55rem;
  place-items: center;
  font-size: 1.15rem;
}

.search-control {
  display: none;
  position: relative;
  width: min(25rem, 32vw);
}

.search-field {
  display: block;
  width: 100%;
}

.search-field input {
  width: 100%;
  min-height: 2.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 8.8rem 0.55rem 1rem;
  background: var(--paper);
  color: var(--ink);
}

.search-field input:focus {
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent);
  outline: 0;
}

.search-navigation {
  position: absolute;
  top: 50%;
  right: 0.4rem;
  translate: 0 -50%;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.search-status {
  min-width: 3.8rem;
  padding: 0.34rem 0.58rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.search-step {
  display: grid;
  width: 1.75rem;
  min-width: 1.75rem;
  aspect-ratio: 1;
  place-items: center;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: var(--paper-soft);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.search-step:hover:not(:disabled),
.search-step:focus-visible {
  background: var(--accent);
  outline: 0;
}

.search-step:focus-visible {
  box-shadow: 0 0 0 2px var(--accent-deep);
}

.search-step:disabled {
  opacity: 0.3;
  cursor: default;
}

.progress-track {
  position: fixed;
  z-index: 60;
  top: calc(var(--topbar-height) - 3px);
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
}

.progress-bar {
  width: 0;
  height: 100%;
  background: var(--accent-deep);
  transition: width 240ms ease;
}

.deck {
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

.deck::-webkit-scrollbar {
  display: none;
}

.slide {
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--paper);
}

.surface-soft {
  background: var(--paper-soft);
}

.surface-warm {
  background: var(--paper-warm);
}

.slide-inner {
  width: 100%;
  min-height: 100dvh;
  padding: calc(var(--topbar-height) + clamp(2rem, 5vh, 4.75rem)) var(--page-x)
    calc(var(--bottom-nav-height) + clamp(2rem, 4vh, 4rem));
}

.slide-cover {
  background:
    linear-gradient(90deg, transparent calc(25% - 1px), rgba(11, 11, 11, 0.08) 25%, transparent calc(25% + 1px)),
    linear-gradient(90deg, transparent calc(75% - 1px), rgba(11, 11, 11, 0.08) 75%, transparent calc(75% + 1px)),
    var(--paper-soft);
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto;
  gap: 2rem;
  align-items: end;
}

.cover-kicker {
  grid-column: 1 / 7;
  align-self: start;
  max-width: max-content;
  border-top: 5px solid var(--ink);
  padding-top: 0.65rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cover-heading {
  grid-column: 1 / 11;
  align-self: end;
}

.cover-heading h1 {
  max-width: 10ch;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cover-meta {
  grid-column: 9 / 13;
  grid-row: 1;
  align-self: start;
  border-top: 1px solid var(--ink);
  padding-top: 0.75rem;
  font-size: 0.9rem;
}

.cover-meta p {
  margin-bottom: 0.25rem;
}

.cover-prompt {
  grid-column: 9 / 13;
  align-self: end;
  font-size: 0.82rem;
}

.cover-prompt p {
  margin: 0.75rem 0 0;
}

.accent-chip {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  background: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(4.5rem, 1.2fr) 10.8fr;
  gap: clamp(1rem, 3vw, 3rem);
  margin-bottom: clamp(3rem, 7vh, 6.5rem);
  align-items: start;
}

.compact-heading {
  margin-bottom: clamp(2rem, 4.5vh, 4.25rem);
}

.section-number {
  margin: 0.4rem 0 0;
  font-size: clamp(1.05rem, 1.8vw, 1.65rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  border-top: 1px solid var(--ink);
}

.metric-block {
  min-height: clamp(13rem, 28vh, 19rem);
  padding: 1.5rem;
  border-right: 1px solid var(--line);
}

.metric-block:last-child {
  border-right: 0;
}

.metric-feature {
  background: var(--accent);
}

.metric-label,
.rule-label,
.timeline-days,
.responsibility-role {
  margin-bottom: 1.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-value {
  margin-bottom: 0;
  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.85;
}

.metric-note {
  max-width: 22ch;
  margin: 1.5rem 0 0;
  font-weight: 700;
}

.reference-note {
  max-width: 70ch;
  margin: clamp(1.5rem, 4vh, 3rem) 0 0;
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.status-list {
  border-top: 1px solid var(--ink);
}

.status-row {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  min-height: clamp(4.6rem, 9vh, 6.75rem);
  border-bottom: 1px solid var(--line);
}

.status-row h3 {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 2rem);
}

.status-index {
  font-weight: 800;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.process-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.process-step {
  position: relative;
  min-height: clamp(14rem, 31vh, 21rem);
  padding: 1.5rem;
  border-right: 1px solid var(--line);
}

.process-step:last-child {
  border-right: 0;
}

.process-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 0;
  display: grid;
  width: 2rem;
  aspect-ratio: 1;
  translate: 50% -50%;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.85rem;
}

.process-start {
  background: var(--ink);
  color: var(--paper);
}

.process-count {
  margin-bottom: clamp(3rem, 7vh, 6rem);
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.process-step p:last-child {
  max-width: 26ch;
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.process-start p:last-child {
  color: #ccccca;
}

.callout-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 1.5rem;
}

.callout-strip > * {
  padding: 0.65rem 1rem;
  border: 1px solid var(--ink);
  border-right: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.callout-strip > *:last-child {
  border-right: 1px solid var(--ink);
}

.callout-strip strong {
  background: var(--accent);
}

.timeline {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.timeline-block {
  min-height: clamp(14rem, 30vh, 20rem);
  padding: 1.35rem;
  border-right: 1px solid var(--line);
}

.timeline-block:last-child {
  border-right: 0;
}

.timeline-production {
  background: var(--ink);
  color: var(--paper);
}

.timeline-accent {
  background: var(--accent);
}

.timeline-signoff {
  box-shadow: inset 0 -8px 0 var(--accent-deep);
}

.timeline-block p:last-child {
  margin-bottom: 0;
  color: var(--ink-muted);
  font-size: 0.86rem;
}

.timeline-production p:last-child {
  color: #ccccca;
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.rule-grid > div {
  padding: 1rem 1.5rem 0 0;
}

.rule-grid p:last-child {
  max-width: 40ch;
  margin-bottom: 0;
  font-size: 0.86rem;
}

.responsibility-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
}

.responsibility-grid article {
  min-height: clamp(13rem, 28vh, 18rem);
  padding: 1.35rem;
  border-right: 1px solid var(--line);
}

.responsibility-grid article:last-child {
  border-right: 0;
  background: var(--accent);
}

.responsibility-grid p:last-child {
  margin-bottom: 0;
  color: var(--ink-muted);
  font-size: 0.86rem;
}

.reference-panel {
  margin-top: 1.5rem;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.reference-panel summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.reference-panel[open] summary {
  border-bottom: 1px solid var(--line);
}

.reference-panel-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 1.25rem;
}

.reference-panel-body p:last-child {
  margin-bottom: 0;
}

.solution-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(22rem, 47vh, 35rem);
  border: 1px solid var(--ink);
}

.solution-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: clamp(1.5rem, 3vw, 3rem);
}

.solution-panel + .solution-panel {
  border-left: 1px solid var(--ink);
}

.solution-primary {
  background: var(--accent);
}

.solution-number {
  font-weight: 800;
}

.solution-panel h3 {
  margin: auto 0;
  font-size: clamp(2.5rem, 5vw, 5.5rem);
}

.status-light {
  background: var(--paper);
}

.placeholder-layout {
  display: grid;
  grid-template-rows: auto 1fr;
}

.placeholder-block {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) 3fr;
  gap: 2rem;
  align-items: center;
  min-height: 40vh;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.placeholder-mark {
  display: grid;
  height: 100%;
  place-items: center;
  background: var(--accent);
  font-size: clamp(5rem, 12vw, 12rem);
  font-weight: 800;
  line-height: 1;
}

.placeholder-block h3 {
  font-size: clamp(1.75rem, 3vw, 3.25rem);
}

.placeholder-block p {
  max-width: 55ch;
  margin-bottom: 0;
  color: var(--ink-muted);
}

.placeholder-dark .placeholder-mark {
  background: var(--ink);
  color: var(--paper);
}

.brief-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 6rem);
}

.brief-checklist {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.brief-checklist li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.brief-checklist span {
  font-size: 0.75rem;
  font-weight: 800;
}

.brief-checklist p {
  margin: 0;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  font-weight: 700;
}

.title-template {
  align-self: stretch;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  background: var(--ink);
  color: var(--paper);
}

.template-line {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: clamp(2rem, 6vh, 5rem) 0 1.5rem;
  font-size: clamp(1.35rem, 2.5vw, 2.5rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.template-line span:nth-child(2) {
  color: var(--accent);
}

.template-examples {
  margin-bottom: 0;
  color: #bdbdb7;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.parking-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.parking-grid article {
  min-height: clamp(9rem, 20vh, 14rem);
  padding: 1.25rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.parking-grid span {
  display: block;
  margin-bottom: 2rem;
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.draft-stamp {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.6rem 0.85rem;
  background: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.bottom-nav {
  position: fixed;
  z-index: 50;
  inset: auto 0 0 0;
  display: grid;
  grid-template-columns: 4.25rem 1fr 4.25rem;
  height: var(--bottom-nav-height);
  border-top: 1px solid rgba(11, 11, 11, 0.14);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.nav-button {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  font-size: 1.35rem;
}

.nav-next {
  border-right: 0;
  border-left: 1px solid var(--line);
  background: var(--accent);
}

.nav-button:hover:not(:disabled) {
  background: var(--ink);
  color: var(--paper);
}

.nav-button:disabled {
  cursor: not-allowed;
  color: #aaaaa5;
}

.nav-hint {
  align-self: center;
  justify-self: center;
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.7rem;
}

.nav-hint kbd {
  border: 1px solid var(--line);
  padding: 0.1rem 0.3rem;
  background: var(--paper-soft);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.65rem;
}

.nav-hint span {
  margin: 0 0.4rem;
}

.outline-dialog {
  width: min(48rem, calc(100vw - 2rem));
  max-height: min(48rem, calc(100dvh - 2rem));
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0;
  background: var(--paper-soft);
  color: var(--ink);
}

.outline-dialog::backdrop {
  background: rgba(11, 11, 11, 0.56);
  backdrop-filter: blur(4px);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding: 1.5rem;
  border-bottom: 1px solid var(--ink);
}

.dialog-header h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

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

.outline-list button {
  display: grid;
  grid-template-columns: 3rem 1fr;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.5rem;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.outline-list button:hover,
.outline-list button[aria-current="true"] {
  background: var(--accent);
}

.outline-list span:first-child {
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.outline-list span:last-child {
  font-weight: 750;
}

.search-empty {
  position: fixed;
  z-index: 40;
  inset: var(--topbar-height) 0 var(--bottom-nav-height);
  display: grid;
  place-items: center;
  background: var(--paper-soft);
}

.search-empty-card {
  display: grid;
  gap: 1rem;
  justify-items: start;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-content);
  background: var(--paper);
}

.search-empty-card p {
  margin: 0;
}

.search-highlight {
  padding: 0 0.08em;
  border-radius: 0.2em;
  background: var(--accent);
  color: var(--ink);
  box-decoration-break: clone;
}

.search-empty[hidden] {
  display: none;
}

/* Reference mode turns the slide deck into a searchable handbook. */
body.reference-mode {
  overflow: auto;
}

body.reference-mode .search-control {
  display: block;
}

body.reference-mode .deck {
  height: auto;
  min-height: 100dvh;
  overflow: visible;
  scroll-snap-type: none;
}

body.reference-mode .slide {
  min-height: auto;
  border-bottom: 1px solid var(--ink);
}

body.reference-mode .slide-inner {
  min-height: auto;
  padding-top: clamp(7rem, 10vw, 10rem);
  padding-bottom: clamp(5rem, 9vw, 9rem);
}

body.reference-mode .slide-cover .slide-inner {
  min-height: 80dvh;
}

body.reference-mode .bottom-nav {
  display: none;
}

body.reference-mode .slide.search-hidden {
  display: none;
}

@media (max-width: 1000px) {
  :root {
    --page-x: clamp(1rem, 3vw, 2rem);
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topbar-center,
  .nav-hint {
    display: none;
  }

  .metric-grid,
  .responsibility-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-block:nth-child(2),
  .responsibility-grid article:nth-child(2) {
    border-right: 0;
  }

  .metric-block:nth-child(-n + 2),
  .responsibility-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

  .timeline-block:nth-child(3) {
    border-right: 0;
  }

  .timeline-block:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

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

@media (max-width: 720px) {
  :root {
    --topbar-height: 3.75rem;
    --bottom-nav-height: 3.75rem;
  }

  body {
    font-size: 15px;
  }

  h1 {
    font-size: clamp(3.75rem, 20vw, 6.5rem);
  }

  h2 {
    font-size: clamp(2.3rem, 12vw, 4.3rem);
  }

  .wordmark {
    font-size: 0.67rem;
  }

  .control-button {
    padding-inline: 0.65rem;
    font-size: 0.66rem;
  }

  .icon-button {
    display: none;
  }

  .cover-grid {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
  }

  .cover-kicker,
  .cover-heading,
  .cover-meta,
  .cover-prompt {
    width: 100%;
  }

  .cover-meta {
    order: 2;
  }

  .cover-heading {
    order: 1;
    margin-top: auto;
  }

  .cover-prompt {
    order: 3;
  }

  .section-heading {
    grid-template-columns: 3rem 1fr;
  }

  .metric-grid,
  .process-track,
  .timeline,
  .rule-grid,
  .responsibility-grid,
  .solution-split,
  .brief-layout,
  .parking-grid,
  .reference-panel-body {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .process-track,
  .responsibility-grid,
  .solution-split {
    border-left: 1px solid var(--ink);
    border-right: 1px solid var(--ink);
  }

  .metric-block,
  .process-step,
  .timeline-block,
  .responsibility-grid article,
  .solution-panel,
  .parking-grid article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 1.1rem;
  }

  .process-step:not(:last-child)::after {
    top: auto;
    right: 1rem;
    bottom: 0;
    translate: 0 50%;
    rotate: 90deg;
  }

  .process-count {
    margin-bottom: 1.5rem;
  }

  .timeline-block:nth-child(3) {
    border-right: 0;
  }

  .rule-grid > div {
    border-bottom: 1px solid var(--line);
    padding-bottom: 1rem;
  }

  .solution-panel + .solution-panel {
    border-left: 0;
  }

  .solution-panel h3 {
    margin: 2.5rem 0;
  }

  .status-row {
    grid-template-columns: 2.5rem 1fr;
    padding: 1rem 0;
  }

  .status-tag {
    grid-column: 2;
    justify-self: start;
  }

  .placeholder-block {
    grid-template-columns: 1fr;
  }

  .placeholder-mark {
    min-height: 10rem;
  }

  .placeholder-block > div {
    padding-bottom: 1.5rem;
  }

  .bottom-nav {
    grid-template-columns: 3.75rem 1fr 3.75rem;
  }

  .slide {
    min-height: 100dvh;
  }

  .slide-inner {
    min-height: 100dvh;
  }

  /* Tall content can scroll within its slide on small screens. */
  .deck {
    scroll-snap-type: y proximity;
  }

  body.reference-mode .topbar-actions {
    gap: 0.25rem;
  }

  body.reference-mode .search-control {
    position: fixed;
    z-index: 55;
    top: var(--topbar-height);
    left: 0;
    right: 0;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper-soft);
  }

  body.reference-mode .search-control,
  body.reference-mode .search-field input {
    width: 100%;
  }

  body.reference-mode .search-navigation {
    right: 1.42rem;
  }

  body.reference-mode .slide:first-child .slide-inner {
    padding-top: calc(var(--topbar-height) + 5rem);
  }
}

/* Collapsible section rail and unconstrained short reference notes. */

.brand-controls {
  display: flex;
  height: 100%;
  min-width: 0;
  border-right: 1px solid var(--line);
}

.brand-controls .wordmark {
  flex: 1;
  min-width: 0;
  border-right: 0;
}

.wordmark-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-toggle-button {
  display: grid;
  width: 3.25rem;
  flex: 0 0 3.25rem;
  place-items: center;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.05rem;
}

.menu-toggle-button:hover {
  background: var(--accent);
}

.reference-note {
  width: 100%;
  max-width: var(--reading-width);
}

.journey-list .journey-name {
  font-size: inherit;
}

.journey-rail,
.slide-inner,
.progress-track,
.brand-controls {
  transition: width 220ms ease, padding 220ms ease, left 220ms ease;
}

body.menu-collapsed {
  --journey-width: 4.25rem;
}

body.menu-collapsed .journey-rail {
  padding-right: 0.55rem;
  padding-left: 0.55rem;
}

body.menu-collapsed .journey-label {
  height: 0;
  margin-bottom: 1rem;
  overflow: hidden;
  font-size: 0;
}

body.menu-collapsed .journey-list button {
  grid-template-columns: 1fr;
  place-items: center;
  padding: 0.85rem 0;
  text-align: center;
}

body.menu-collapsed .journey-list button::before {
  left: -0.55rem;
}

body.menu-collapsed .journey-name,
body.menu-collapsed .wordmark {
  display: none;
}

body.menu-collapsed .journey-status {
  justify-content: center;
  gap: 0;
  font-size: 0;
}

body.menu-collapsed .brand-controls {
  justify-content: center;
}

body.menu-collapsed .menu-toggle-button {
  width: 100%;
  flex-basis: 100%;
  border-left: 0;
}

@media (max-width: 1080px) {
  body.menu-collapsed {
    --journey-width: 0rem;
  }

  .brand-controls {
    border-right: 0;
  }

  .brand-controls .wordmark,
  body.menu-collapsed .brand-controls .wordmark {
    display: inline-flex;
  }

  .menu-toggle-button {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .topbar,
  .bottom-nav,
  .progress-track,
  .skip-link {
    display: none !important;
  }

  body,
  .deck {
    overflow: visible;
    height: auto;
  }

  .slide,
  .slide-inner {
    min-height: 100vh;
    break-after: page;
  }
}

/* --------------------------------------------------------------------------
   Unified presentation shell

   Every screen now uses the same rails, title baseline, content boundary and
   restrained module language. The cover is the only intentional exception.
   -------------------------------------------------------------------------- */

:root {
  --journey-width: 15.75rem;
  --content-gutter: clamp(2rem, 4vw, 4.5rem);
}

.topbar {
  grid-template-columns: var(--journey-width) minmax(0, 1fr) auto;
  padding: 0;
}

.wordmark {
  align-self: stretch;
  justify-self: stretch;
  padding: 0 1.5rem;
  border-right: 1px solid var(--line);
}

.topbar-center {
  justify-self: start;
  padding-left: var(--content-gutter);
}

.topbar-actions {
  padding-right: 1rem;
}

.progress-track {
  left: var(--journey-width);
}

.journey-rail {
  position: fixed;
  z-index: 45;
  top: var(--topbar-height);
  bottom: var(--bottom-nav-height);
  left: 0;
  display: flex;
  width: var(--journey-width);
  flex-direction: column;
  padding: 1.75rem 1.25rem 1.25rem;
  border-right: 1px solid var(--line);
  background: rgba(246, 246, 241, 0.96);
  backdrop-filter: blur(14px);
}

.journey-label,
.journey-status {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey-label {
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

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

.journey-list button {
  position: relative;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  width: 100%;
  gap: 0.4rem;
  align-items: start;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.82rem 0.25rem;
  background: transparent;
  color: var(--ink-muted);
  text-align: left;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.25;
}

.journey-list button::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1.25rem;
  width: 4px;
  background: transparent;
}

.journey-list button:hover {
  color: var(--ink);
}

.journey-list button[aria-current="step"] {
  color: var(--ink);
  font-weight: 800;
}

.journey-list button[aria-current="step"]::before {
  background: var(--accent-deep);
}

.journey-list span {
  color: inherit;
  font-size: 0.66rem;
  font-variant-numeric: tabular-nums;
}

.journey-status {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin: auto 0 0;
}

.journey-status span {
  width: 0.62rem;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
}

.slide-inner {
  padding-right: var(--content-gutter);
  padding-left: calc(var(--journey-width) + var(--content-gutter));
}

.slide-cover {
  background: var(--paper-soft);
}

.slide-cover .slide-inner {
  border: 0;
}

.slide:not(.slide-cover) .slide-inner {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: start;
}

.section-heading,
.compact-heading {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin-bottom: clamp(1.75rem, 4vh, 3rem);
  padding-bottom: clamp(1.2rem, 2.5vh, 2rem);
  border-bottom: 1px solid var(--ink);
}

.section-heading h2 {
  max-width: 18ch;
  font-size: clamp(2.65rem, 4.7vw, 4.75rem);
  line-height: 0.98;
}

.section-number {
  margin-top: 0.2rem;
  font-size: 1rem;
}

.metric-grid,
.status-list,
.process-track,
.timeline,
.responsibility-grid,
.solution-split,
.placeholder-block,
.brief-layout,
.parking-grid {
  align-self: start;
  width: 100%;
}

.metric-grid,
.process-track,
.timeline,
.responsibility-grid,
.solution-split,
.placeholder-block,
.parking-grid {
  background: transparent;
}

.metric-block,
.process-step,
.timeline-block,
.responsibility-grid article,
.solution-panel,
.parking-grid article {
  background: transparent;
}

.metric-feature,
.process-start,
.timeline-production,
.timeline-accent,
.responsibility-grid article:last-child,
.solution-primary {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 5px 0 var(--accent-deep);
}

.process-start p:last-child,
.timeline-production p:last-child {
  color: var(--ink-muted);
}

.metric-block,
.process-step,
.timeline-block,
.responsibility-grid article {
  min-height: clamp(12rem, 25vh, 17rem);
}

.metric-value {
  font-size: clamp(4.5rem, 8vw, 7.25rem);
}

.process-count {
  margin-bottom: clamp(2rem, 5vh, 4rem);
  font-size: clamp(2.25rem, 4vw, 4rem);
}

.timeline {
  grid-template-columns: 2fr repeat(4, 1fr);
}

.timeline-block {
  padding: 1.2rem;
}

.timeline-signoff {
  box-shadow: inset 0 5px 0 var(--accent-deep);
}

.rule-grid {
  margin-top: 1.5rem;
}

.responsibility-grid article:last-child {
  border-right: 0;
}

.solution-split {
  min-height: clamp(18rem, 40vh, 27rem);
}

.solution-panel h3 {
  font-size: clamp(2.25rem, 4vw, 4.5rem);
}

.placeholder-block {
  grid-template-columns: minmax(7rem, 0.8fr) 3fr;
  min-height: clamp(18rem, 38vh, 26rem);
}

.placeholder-mark,
.placeholder-dark .placeholder-mark {
  height: 100%;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 5px 0 var(--accent-deep);
  font-size: clamp(4rem, 8vw, 8rem);
}

.brief-layout {
  gap: clamp(2rem, 4vw, 4rem);
}

.title-template {
  border-top: 5px solid var(--accent-deep);
  background: var(--ink);
}

.parking-grid article {
  min-height: clamp(8rem, 17vh, 11rem);
}

.cover-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto;
}

.cover-kicker {
  grid-column: 1 / 8;
  border-top-width: 1px;
}

.cover-heading {
  grid-column: 1 / 12;
}

.cover-heading h1 {
  max-width: 9ch;
  font-size: clamp(4.5rem, 9vw, 9rem);
}

.cover-meta,
.cover-prompt {
  grid-column: 9 / 13;
}

.bottom-nav {
  grid-template-columns: var(--journey-width) 1fr 4.25rem;
}

.bottom-nav .nav-button:first-child {
  justify-content: start;
  padding-left: 1.5rem;
}

body.reference-mode .journey-rail {
  bottom: 0;
}

@media (max-width: 1080px) {
  :root {
    --journey-width: 0rem;
  }

  .journey-rail {
    display: none;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    padding: 0 var(--page-x);
  }

  .wordmark {
    align-self: auto;
    justify-self: start;
    width: auto;
    padding: 0;
    border-right: 0;
  }

  .topbar-center {
    display: none;
  }

  .topbar-actions {
    padding-right: 0;
  }

  .progress-track {
    left: 0;
  }

  .slide-inner {
    padding-right: var(--page-x);
    padding-left: var(--page-x);
  }

  .bottom-nav {
    grid-template-columns: 4.25rem 1fr 4.25rem;
  }

  .bottom-nav .nav-button:first-child {
    justify-content: center;
    padding-left: 0;
  }
}

@media (max-width: 720px) {
  .section-heading,
  .compact-heading {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .section-heading h2 {
    max-width: none;
    font-size: clamp(2.15rem, 9.5vw, 3.35rem);
    overflow-wrap: anywhere;
  }

  .section-heading > div {
    min-width: 0;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline-block {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .placeholder-block {
    grid-template-columns: 1fr;
  }

  .placeholder-mark,
  .placeholder-dark .placeholder-mark {
    min-height: 8rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .bottom-nav {
    grid-template-columns: 3.75rem 1fr 3.75rem;
  }
}

@media print {
  .journey-rail {
    display: none !important;
  }

  .slide-inner {
    padding-right: var(--page-x);
    padding-left: var(--page-x);
  }
}

/* --------------------------------------------------------------------------
   Readable editorial pass

   The left rail carries structure. Content screens favour a calm reading
   sequence, short measures and whitespace over boxed grids.
   -------------------------------------------------------------------------- */

:root {
  --reading-width: 66rem;
  --body-measure: 65ch;
}

.section-heading,
.compact-heading {
  display: flex;
  width: 100%;
  max-width: var(--reading-width);
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: clamp(2rem, 4vh, 3.25rem);
  padding-bottom: 0;
  border-bottom: 0;
}

.section-heading > div {
  min-width: 0;
}

.section-heading h2 {
  max-width: 17ch;
  font-size: clamp(2.5rem, 4.2vw, 4.15rem);
  line-height: 1.02;
}

.section-number {
  flex: 0 0 3rem;
  margin-top: 0.15rem;
}

.reference-note,
.metric-note,
.process-step p:last-child,
.timeline-block p:last-child,
.responsibility-grid article p:last-child,
.placeholder-block p,
.rule-grid p:last-child,
.reference-panel-body p:last-child {
  max-width: var(--body-measure);
  line-height: 1.55;
}

.metric-grid,
.status-list,
.process-track,
.timeline,
.responsibility-grid,
.solution-split,
.placeholder-block,
.brief-layout,
.parking-grid,
.rule-grid,
.reference-panel {
  width: 100%;
  max-width: var(--reading-width);
}

.metric-grid {
  display: block;
  border-top: 1px solid var(--line);
}

.metric-block,
.metric-feature {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 2rem;
  align-items: baseline;
  min-height: auto;
  padding: 1.25rem 0;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  box-shadow: none;
}

.metric-feature {
  grid-template-columns: 10rem 7rem minmax(0, 1fr);
}

.metric-label,
.metric-note,
.metric-value,
.metric-block h3 {
  margin: 0;
}

.metric-value {
  font-size: 3.25rem;
  line-height: 0.9;
}

.metric-block h3 {
  max-width: 34ch;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  line-height: 1.15;
}

.status-list {
  border-top-color: var(--line);
}

.status-row {
  min-height: 4.3rem;
}

.status-tag {
  gap: 0.5rem;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink-muted);
}

.status-tag::before {
  content: "";
  width: 0.5rem;
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
}

.process-track {
  display: block;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.process-step,
.process-start {
  display: grid;
  grid-template-columns: 4rem 15rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: baseline;
  min-height: auto;
  padding: 1.15rem 0;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.process-step:not(:last-child)::after {
  display: none;
}

.process-count,
.process-step h3,
.process-step p:last-child {
  margin: 0;
}

.process-count {
  color: var(--ink-muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.process-step h3 {
  font-size: 1.25rem;
  line-height: 1.2;
}

.callout-strip {
  gap: 0.9rem;
  max-width: var(--reading-width);
  margin-top: 1.5rem;
}

.callout-strip > *,
.callout-strip > *:last-child {
  border: 0;
  padding: 0.35rem 0;
  color: var(--ink-muted);
}

.callout-strip strong {
  border-bottom: 3px solid var(--accent-deep);
  background: transparent;
  color: var(--ink);
}

.timeline {
  display: block;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.timeline-block,
.timeline-production,
.timeline-accent,
.timeline-signoff {
  display: grid;
  grid-template-columns: 8rem 13rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: baseline;
  min-height: auto;
  padding: 1.05rem 0;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.timeline-days,
.timeline-block h3,
.timeline-block p:last-child {
  margin: 0;
}

.timeline-days {
  color: var(--ink-muted);
}

.timeline-block h3 {
  font-size: 1.2rem;
}

.rule-grid {
  gap: clamp(1.5rem, 3vw, 3.25rem);
  margin-top: 2.25rem;
  border-top: 0;
}

.rule-grid > div {
  padding: 0;
}

.responsibility-grid {
  display: block;
  border-top: 1px solid var(--line);
}

.responsibility-grid article,
.responsibility-grid article:last-child {
  display: grid;
  grid-template-columns: 8rem 15rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: baseline;
  min-height: auto;
  padding: 1.05rem 0;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  box-shadow: none;
}

.responsibility-role,
.responsibility-grid h3,
.responsibility-grid article p:last-child {
  margin: 0;
}

.responsibility-grid h3 {
  font-size: 1.2rem;
}

.reference-panel {
  margin-top: 1.5rem;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

.reference-panel summary {
  padding: 1rem 0;
}

.reference-panel[open] summary {
  border-bottom-color: var(--line);
}

.reference-panel-body {
  padding: 1.25rem 0;
}

.solution-split {
  display: block;
  min-height: auto;
  border: 0;
  border-top: 1px solid var(--line);
}

.solution-panel,
.solution-primary,
.solution-panel + .solution-panel {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  min-height: auto;
  padding: 1.5rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  box-shadow: none;
}

.solution-number,
.solution-panel h3 {
  margin: 0;
}

.solution-panel h3 {
  font-size: clamp(1.75rem, 3vw, 3rem);
}

.placeholder-block {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  min-height: auto;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.placeholder-mark,
.placeholder-dark .placeholder-mark {
  display: block;
  height: auto;
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  font-size: 2rem;
  line-height: 1;
}

.placeholder-block h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
}

.brief-layout {
  display: block;
}

.brief-checklist {
  max-width: var(--body-measure);
}

.brief-checklist li {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.title-template {
  max-width: var(--body-measure);
  margin-top: 1.5rem;
  border-top: 0;
  border-left: 4px solid var(--accent-deep);
  padding: 1.2rem 1.5rem;
  background: var(--paper-deep);
  color: var(--ink);
}

.template-line {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  margin: 0.8rem 0 0.75rem;
  font-size: clamp(1.15rem, 1.6vw, 1.55rem);
}

.template-line span:nth-child(2),
.template-examples {
  color: var(--ink-muted);
}

.parking-grid {
  display: block;
  border-top: 1px solid var(--line);
  border-left: 0;
}

.parking-grid article {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: baseline;
  min-height: auto;
  padding: 1rem 0;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.parking-grid span,
.parking-grid h3 {
  margin: 0;
}

.parking-grid h3 {
  font-size: 1.2rem;
}

.draft-stamp {
  margin-top: 1.5rem;
  padding: 0;
  border-bottom: 3px solid var(--accent-deep);
  background: transparent;
}

@media (max-width: 720px) {
  .section-heading,
  .compact-heading {
    display: block;
  }

  .section-number {
    margin-bottom: 0.75rem;
  }

  .metric-block,
  .metric-feature,
  .process-step,
  .process-start,
  .timeline-block,
  .timeline-production,
  .timeline-accent,
  .timeline-signoff,
  .responsibility-grid article,
  .responsibility-grid article:last-child,
  .solution-panel,
  .solution-primary,
  .solution-panel + .solution-panel,
  .placeholder-block,
  .parking-grid article {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .metric-feature {
    grid-template-columns: 1fr;
  }

  .metric-label,
  .timeline-days,
  .responsibility-role,
  .solution-number,
  .parking-grid span {
    margin-bottom: 0.35rem;
  }

  .solution-panel .status-tag {
    justify-self: start;
  }

  .metric-grid,
  .process-track,
  .responsibility-grid,
  .solution-split {
    border-right: 0;
    border-left: 0;
  }

  .placeholder-mark,
  .placeholder-dark .placeholder-mark {
    min-height: 0;
    border-bottom: 0;
  }

  .rule-grid,
  .reference-panel-body {
    grid-template-columns: 1fr;
  }
}

/* Final interaction overrides must remain after the editorial layout rules. */

.reference-note {
  width: 100%;
  max-width: none;
}

.journey-list .journey-name {
  font-size: inherit;
}

body.menu-collapsed {
  --journey-width: 4.25rem;
}

body.menu-collapsed .journey-rail {
  padding-right: 0.55rem;
  padding-left: 0.55rem;
}

body.menu-collapsed .journey-label {
  height: 0;
  margin-bottom: 1rem;
  overflow: hidden;
  font-size: 0;
}

body.menu-collapsed .journey-list button {
  grid-template-columns: 1fr;
  place-items: center;
  padding: 0.85rem 0;
  text-align: center;
}

body.menu-collapsed .journey-list button::before {
  left: -0.55rem;
}

body.menu-collapsed .journey-name,
body.menu-collapsed .wordmark {
  display: none;
}

body.menu-collapsed .journey-status {
  justify-content: center;
  gap: 0;
  font-size: 0;
}

body.menu-collapsed .brand-controls {
  justify-content: center;
}

body.menu-collapsed .menu-toggle-button {
  width: 100%;
  flex-basis: 100%;
  border-left: 0;
}

@media (max-width: 1080px) {
  body.menu-collapsed {
    --journey-width: 0rem;
  }

  .brand-controls .wordmark,
  body.menu-collapsed .brand-controls .wordmark {
    display: inline-flex;
  }
}

/* --------------------------------------------------------------------------
   Visual structure pass: columns, lifecycle and calendar
   Keep this block last so the presentation and reference views stay aligned.
   -------------------------------------------------------------------------- */

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

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

.metric-block,
.metric-feature {
  display: flex;
  min-height: clamp(12rem, 27vh, 16rem);
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 1.35rem 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  box-shadow: none;
}

.metric-block:first-child {
  padding-left: 0;
}

.metric-block:last-child {
  border-right: 0;
}

.metric-label {
  margin: 0 0 2rem;
}

.metric-value {
  margin: 0 0 1.25rem;
}

.metric-note,
.metric-block h3 {
  margin: 0;
}

.metric-block h3 {
  max-width: 25ch;
}

.process-track {
  position: relative;
  display: block;
  border: 0;
  padding-left: 0.25rem;
}

.process-track::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  bottom: 1.4rem;
  left: 1.35rem;
  width: 1px;
  background: var(--line);
}

.process-step,
.process-start {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.2rem 1.5rem;
  align-items: start;
  min-height: 0;
  padding: 0 0 1.5rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

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

.process-step:not(:last-child)::after {
  display: none;
}

.process-count {
  z-index: 1;
  display: grid;
  width: 2.25rem;
  aspect-ratio: 1;
  grid-column: 1;
  grid-row: 1 / span 2;
  place-items: center;
  margin: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-soft);
  color: var(--ink);
  font-weight: 800;
}

.process-start .process-count {
  background: var(--accent);
}

.process-step h3 {
  grid-column: 2;
  margin: 0;
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
}

.process-step p:last-child,
.process-start p:last-child {
  grid-column: 2;
  margin: 0.25rem 0 0;
}

.timeline {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.timeline-block,
.timeline-production,
.timeline-accent,
.timeline-signoff {
  display: flex;
  min-width: 0;
  min-height: clamp(13rem, 29vh, 17rem);
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 1.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.timeline-block:first-child {
  padding-left: 0;
  box-shadow: inset 0 4px 0 var(--accent-deep);
}

.timeline-block:last-child {
  border-right: 0;
}

.timeline-days {
  margin: 0 0 2.4rem;
  color: var(--ink-muted);
}

.timeline-block h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
  line-height: 1.15;
}

.timeline-block p:last-child,
.timeline-production p:last-child {
  margin: 0;
  line-height: 1.45;
}

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

.responsibility-grid article,
.responsibility-grid article:last-child {
  display: flex;
  min-width: 0;
  min-height: clamp(13rem, 29vh, 17rem);
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 1.3rem 1.45rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  box-shadow: none;
}

.responsibility-grid article:first-child {
  padding-left: 0;
}

.responsibility-grid article:last-child {
  border-right: 0;
}

.responsibility-role {
  margin: 0 0 2.3rem;
}

.responsibility-grid h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
}

.responsibility-grid article p:last-child {
  margin: 0;
}

@media (max-width: 760px) {
  .metric-grid,
  .timeline,
  .responsibility-grid {
    grid-template-columns: 1fr;
  }

  .metric-block,
  .metric-feature,
  .timeline-block,
  .timeline-production,
  .timeline-accent,
  .timeline-signoff,
  .responsibility-grid article,
  .responsibility-grid article:last-child {
    min-height: 0;
    padding: 1.1rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-label,
  .timeline-days,
  .responsibility-role {
    margin-bottom: 0.75rem;
  }

  .process-step,
  .process-start {
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 0.15rem 0.85rem;
    padding-bottom: 1.25rem;
  }

  .process-track::before {
    left: 1.25rem;
  }

  .process-count {
    width: 2rem;
  }
}

/* Lifecycle layout refinement and grouped navigation */

#brief-context .slide-inner,
#wireframe .slide-inner,
#cosmetic .slide-inner,
#responsive .slide-inner,
#migration .slide-inner {
  display: block;
}

.journey-parent-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.35rem;
}

.journey-parent-row > [data-chapter-target] {
  min-width: 0;
}

.journey-list .journey-children-toggle {
  display: grid;
  width: 2.35rem;
  min-width: 2.35rem;
  grid-template-columns: 1fr;
  place-items: center;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  padding: 0;
  color: var(--ink);
}

.journey-list .journey-children-toggle::before {
  display: none;
}

.journey-list .journey-children-toggle span {
  font-size: 0.95rem;
}

.journey-children {
  margin: 0;
  padding: 0 0 0 0.6rem;
  border-left: 1px solid var(--line);
  list-style: none;
}

.journey-children[hidden] {
  display: none;
}

.journey-children button {
  padding-top: 0.58rem;
  padding-bottom: 0.58rem;
  font-size: 0.7rem;
}

#brief-context .routing-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

#brief-context .routing-list article {
  min-width: 0;
  min-height: 13rem;
  padding: 1.1rem 1.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

#brief-context .routing-list article:first-child {
  padding-left: 0;
}

#brief-context .routing-list article:last-child {
  border-right: 0;
}

#brief-context .decision-example {
  margin-top: 1rem;
}

.wireframe-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.wireframe-rules article {
  min-width: 0;
  min-height: 12rem;
  padding: 1.1rem 1.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.wireframe-rules article:first-child {
  padding-left: 0;
}

.wireframe-rules article:last-child {
  border-right: 0;
}

.rule-icon {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--ink);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
}

.cosmetic-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.cosmetic-rules article {
  min-width: 0;
  min-height: 9.5rem;
  padding: 1.05rem 1.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cosmetic-rules article:nth-child(odd) {
  padding-left: 0;
}

.cosmetic-rules article:nth-child(even) {
  border-right: 0;
}

.cosmetic-rules article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.cosmetic-rules .rule-label::before {
  content: "●";
  margin-right: 0.45rem;
}

.cosmetic-rules .rule-accepted .rule-label {
  color: #4f7300;
}

.cosmetic-rules .rule-negative .rule-label {
  color: #b42318;
}

.cosmetic-rules .rule-negative > p:last-child {
  color: #7d1c14;
}

.cosmetic-rules .rule-approval .rule-label {
  color: #596c00;
}

.responsive-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.responsive-columns li {
  display: block;
  min-width: 0;
  min-height: 12rem;
  padding: 1.1rem 1.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.responsive-columns li:first-child {
  padding-left: 0;
}

.responsive-columns li:last-child {
  border-right: 0;
}

.responsive-columns li > span {
  display: block;
  margin-bottom: 1.5rem;
}

.migration-accordion {
  width: 100%;
  max-width: var(--reading-width);
  border-top: 1px solid var(--line);
}

.migration-accordion details {
  border-bottom: 1px solid var(--line);
}

.migration-accordion summary {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0;
  cursor: pointer;
  list-style: none;
}

.migration-accordion summary::-webkit-details-marker {
  display: none;
}

.migration-accordion summary::after {
  content: "+";
  font-size: 1.25rem;
  line-height: 1;
}

.migration-accordion details[open] summary::after {
  content: "−";
}

.migration-accordion summary span {
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.migration-accordion summary strong {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
}

.migration-accordion details > p {
  max-width: 78ch;
  margin: -0.2rem 2rem 0.9rem 4rem;
  color: var(--ink-muted);
  line-height: 1.48;
}

body.menu-collapsed .journey-parent-row {
  display: block;
}

body.menu-collapsed .journey-children-toggle {
  display: none;
}

body.menu-collapsed .journey-children {
  padding-left: 0;
  border-left: 0;
}

@media (max-width: 1000px) {
  #brief-context .routing-list,
  .wireframe-rules,
  .responsive-columns {
    grid-template-columns: 1fr;
  }

  #brief-context .routing-list article,
  .wireframe-rules article,
  .responsive-columns li {
    min-height: 0;
    padding: 1rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rule-icon,
  .responsive-columns li > span {
    margin-bottom: 0.65rem;
  }
}

@media (max-width: 760px) {
  .cosmetic-rules {
    grid-template-columns: 1fr;
  }

  .cosmetic-rules article,
  .cosmetic-rules article:nth-child(odd),
  .cosmetic-rules article:nth-child(even),
  .cosmetic-rules article:nth-last-child(-n + 2) {
    min-height: 0;
    padding: 1rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .migration-accordion summary {
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    gap: 0.65rem;
  }

  .migration-accordion details > p {
    margin-left: 2.65rem;
  }
}

/* --------------------------------------------------------------------------
   RFRS section and tabs
   -------------------------------------------------------------------------- */

.metric-person {
  margin: 0 0 1.35rem;
  font-size: clamp(1.8rem, 2.8vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.rfrs-entry {
  display: grid;
  width: 100%;
  max-width: var(--reading-width);
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.15rem 2rem;
  align-items: center;
  padding: 1.05rem 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.rfrs-entry:hover,
.rfrs-entry:focus-visible {
  padding-right: 1rem;
  padding-left: 1rem;
  background: var(--accent);
}

.rfrs-entry-label {
  grid-column: 1;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rfrs-entry strong {
  grid-column: 1;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.rfrs-entry > span:nth-child(3) {
  grid-column: 1;
  color: var(--ink-muted);
}

.rfrs-entry-action {
  display: inline-flex;
  grid-column: 2;
  grid-row: 1 / span 3;
  gap: 0.65rem;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.rfrs-tabs {
  width: 100%;
  max-width: var(--reading-width);
}

.rfrs-standalone {
  width: 100%;
  max-width: var(--reading-width);
}

.rfrs-tablist {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.rfrs-tab {
  position: relative;
  border: 0;
  padding: 0.8rem 1.15rem;
  background: transparent;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}

.rfrs-tab:first-child {
  padding-left: 0;
}

.rfrs-tab::after {
  content: "";
  position: absolute;
  right: 1.15rem;
  bottom: -1px;
  left: 1.15rem;
  height: 4px;
  background: transparent;
}

.rfrs-tab:first-child::after {
  left: 0;
}

.rfrs-tab:hover,
.rfrs-tab.is-active {
  color: var(--ink);
}

.rfrs-tab.is-active::after {
  background: var(--accent-deep);
}

.rfrs-tabpanel {
  margin-top: 1.35rem;
}

.rfrs-tabpanel[hidden] {
  display: none;
}

.rfrs-panel-heading {
  display: block;
  margin-bottom: 1.35rem;
}

.rfrs-panel-heading h3,
.rfrs-panel-heading p {
  margin: 0;
}

.rfrs-panel-heading h3 {
  max-width: none;
  font-size: clamp(1.65rem, 2.6vw, 2.45rem);
}

.rfrs-panel-heading p {
  max-width: 70ch;
  margin-top: 0.7rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.rfrs-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rfrs-flow article {
  min-width: 0;
  padding: 1rem 1.1rem 1.15rem;
  border-right: 1px solid var(--line);
}

.rfrs-flow article:first-child {
  padding-left: 1.1rem;
}

.rfrs-flow article:last-child {
  border-right: 0;
}

.rfrs-flow span,
.rfrs-flow h4,
.rfrs-flow p {
  margin: 0;
}

.rfrs-flow span {
  display: block;
  margin-bottom: 1.35rem;
  color: var(--ink-muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.rfrs-flow h4 {
  margin-bottom: 0.45rem;
  font-size: 1.1rem;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.rfrs-flow p {
  color: var(--ink-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.rfrs-scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3.25rem);
  margin-top: 1.35rem;
}

.rfrs-scope-grid p {
  margin: 0;
}

.rfrs-scope-grid p:last-child {
  margin-top: 0.45rem;
  line-height: 1.45;
}

.rfrs-tabpanel .timeline-block,
.rfrs-tabpanel .timeline-production,
.rfrs-tabpanel .timeline-accent,
.rfrs-tabpanel .timeline-signoff,
.rfrs-tabpanel .responsibility-grid article,
.rfrs-tabpanel .responsibility-grid article:last-child {
  min-height: clamp(10rem, 22vh, 12.5rem);
}

.rfrs-tabpanel .timeline-days,
.rfrs-tabpanel .responsibility-role {
  margin-bottom: 1.5rem;
}

.rfrs-tabpanel .rule-grid {
  margin-top: 1.35rem;
}

.rfrs-tabpanel .reference-panel {
  margin-top: 1rem;
}

@media (max-width: 1000px) and (min-width: 761px) {
  .rfrs-flow,
  .rfrs-tabpanel .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rfrs-flow article:nth-child(2),
  .rfrs-tabpanel .timeline-block:nth-child(even) {
    border-right: 0;
  }

  .rfrs-flow article:nth-child(-n + 2),
  .rfrs-tabpanel .timeline-block:nth-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }

  .rfrs-tabpanel .timeline-block:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .metric-person {
    margin-bottom: 0.8rem;
  }

  .rfrs-entry {
    grid-template-columns: 1fr;
  }

  .rfrs-entry-action {
    grid-column: 1;
    grid-row: auto;
    margin-top: 0.45rem;
  }

  .rfrs-tablist {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .rfrs-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .rfrs-panel-heading,
  .rfrs-flow,
  .rfrs-scope-grid,
  .rfrs-tabpanel .timeline {
    grid-template-columns: 1fr;
  }

  .rfrs-panel-heading {
    gap: 0.7rem;
  }

  .rfrs-flow article,
  .rfrs-flow article:first-child {
    padding: 1rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rfrs-flow article:last-child {
    border-bottom: 0;
  }

  .rfrs-flow span {
    margin-bottom: 0.65rem;
  }

  .rfrs-scope-grid {
    gap: 1rem;
  }
}

/* Six-day phase: each production day group is its own tab. */

.phase-intro,
.day-tabs {
  width: 100%;
  max-width: var(--reading-width);
}

.phase-intro {
  margin: -0.75rem 0 1.35rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.day-panel {
  min-height: clamp(11rem, 24vh, 14rem);
  padding: 1.35rem 0 1.6rem;
  border-bottom: 1px solid var(--line);
}

.day-panel-label,
.day-panel h3,
.day-panel p {
  margin: 0;
}

.day-panel-label {
  margin-bottom: 1.75rem;
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.day-panel h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
}

.day-panel p:last-child {
  max-width: 60ch;
  color: var(--ink-muted);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.5;
}

.day-tabs + .rule-grid {
  margin-top: 1.35rem;
}

/* Unified page heading: number and subtitle share one left-aligned pill. */

.section-heading,
.compact-heading {
  display: block;
}

.section-heading > div,
.compact-heading > div {
  width: 100%;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
  padding: 0.42rem 0.75rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--accent);
  line-height: 1;
}

.section-pill .section-number,
.section-pill .eyebrow {
  flex: none;
  margin: 0;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
}

.section-pill .section-number {
  padding-right: 0.55rem;
  border-right: 1px solid rgba(11, 11, 11, 0.35);
}

.section-heading h2,
.compact-heading h2 {
  margin: 0;
  text-align: left;
}

/* Lifecycle content pages */

.journey-rail {
  overflow-y: auto;
  scrollbar-width: thin;
}

.page-lede {
  width: 100%;
  max-width: 68ch;
  margin: -0.6rem 0 1.4rem;
  color: var(--ink-muted);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.55;
}

.routing-list,
.content-rule-list,
.stage-list,
.migration-list {
  width: 100%;
  max-width: var(--reading-width);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.routing-list article,
.content-rule-list article {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.routing-list p,
.routing-list h3,
.content-rule-list p {
  margin: 0;
}

.routing-owner,
.content-rule-list .rule-label {
  margin-bottom: 0.4rem !important;
}

.routing-list h3 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
}

.routing-list article > div > p,
.content-rule-list article > p:last-child {
  max-width: 78ch;
  color: var(--ink-muted);
  line-height: 1.48;
}

.decision-example {
  display: flex;
  width: 100%;
  max-width: var(--reading-width);
  flex-wrap: wrap;
  gap: 0.45rem 1.25rem;
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--accent-deep);
  background: var(--paper-deep);
}

.decision-example strong {
  flex-basis: 100%;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.why-callout {
  width: 100%;
  max-width: var(--reading-width);
  margin-top: 1.2rem;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--accent-deep);
  background: var(--paper-deep);
}

.why-callout p {
  margin: 0;
}

.why-callout p:last-child {
  max-width: 78ch;
  margin-top: 0.45rem;
  line-height: 1.5;
}

.stage-list,
.migration-list {
  list-style: none;
}

.stage-list li,
.migration-list li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.stage-list li > span,
.migration-list li > span {
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.stage-list h3,
.stage-list p,
.migration-list h3,
.migration-list p {
  margin: 0;
}

.stage-list h3,
.migration-list h3 {
  margin-bottom: 0.3rem;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
}

.stage-list p,
.migration-list p {
  max-width: 82ch;
  color: var(--ink-muted);
  line-height: 1.45;
}

.migration-list li {
  padding-top: 0.72rem;
  padding-bottom: 0.72rem;
}

.migration-warning {
  display: flex;
  width: 100%;
  max-width: var(--reading-width);
  gap: 1rem;
  align-items: baseline;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--ink);
  background: var(--accent);
}

.migration-warning strong,
.migration-warning p {
  margin: 0;
}

.migration-warning strong {
  flex: none;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.brief-checklist strong,
.brief-checklist small {
  display: block;
}

.brief-checklist small {
  margin-top: 0.25rem;
  color: var(--ink-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.brief-title-panel {
  max-width: var(--body-measure);
}

.brief-title-panel .title-template {
  margin-top: 0;
}

@media (max-width: 760px) {
  .stage-list li,
  .migration-list li {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 0.65rem;
  }

  .decision-example,
  .migration-warning {
    display: block;
  }

  .decision-example span,
  .migration-warning p {
    display: block;
    margin-top: 0.35rem;
  }
}

/* Final lifecycle card overrides must remain last. */

.wireframe-rules > article {
  min-width: 0;
  min-height: 12rem;
  padding: 1.1rem 1.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.wireframe-rules > article:first-child {
  padding-left: 0;
}

.wireframe-rules > article:last-child {
  border-right: 0;
}

.cosmetic-rules > article {
  min-width: 0;
  min-height: 9.5rem;
  padding: 1.05rem 1.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cosmetic-rules > article:nth-child(odd) {
  padding-left: 0;
}

.cosmetic-rules > article:nth-child(even) {
  border-right: 0;
}

.cosmetic-rules > article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.responsive-columns > li {
  display: block;
  min-width: 0;
  min-height: 12rem;
  padding: 1.1rem 1.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.responsive-columns > li:first-child {
  padding-left: 0;
}

.responsive-columns > li:last-child {
  border-right: 0;
}

@media (max-width: 1000px) {
  .wireframe-rules > article,
  .responsive-columns > li {
    min-height: 0;
    padding: 1rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .cosmetic-rules > article,
  .cosmetic-rules > article:nth-child(odd),
  .cosmetic-rules > article:nth-child(even),
  .cosmetic-rules > article:nth-last-child(-n + 2) {
    min-height: 0;
    padding: 1rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

/* Feedback pass v14: hierarchy, scope notes and compact content rhythm. */

#internal-qa .slide-inner,
#rfrs-responsibilities .slide-inner,
#brief-preparation .slide-inner {
  display: block;
}

#introduction .metric-block h3 {
  max-width: 27ch;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.5;
}

#brief-context .routing-list {
  gap: 0.85rem;
  border: 0;
}

#brief-context .routing-list .routing-card,
#brief-context .routing-list .routing-card:first-child,
#brief-context .routing-list .routing-card:last-child {
  position: relative;
  display: flex;
  min-height: 14.25rem;
  flex-direction: column;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--paper-soft);
}

#brief-context .routing-list .routing-card-vivien {
  background: var(--paper-warm);
}

#brief-context .routing-list .routing-card-triage {
  border-color: var(--ink);
  background: var(--accent);
}

.routing-index {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  margin-bottom: 1.35rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

#brief-context .routing-owner {
  width: fit-content;
  margin-bottom: 0.65rem !important;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

#brief-context .routing-card h3 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.15rem, 1.45vw, 1.4rem);
  line-height: 1.08;
}

#brief-context .routing-card > div > p {
  font-size: 0.88rem;
  line-height: 1.48;
}

.phase-scope-note {
  display: grid;
  width: 100%;
  max-width: var(--reading-width);
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem 1.25rem;
  align-items: center;
  margin: 0 0 1.2rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.phase-scope-note p {
  margin: 0;
}

.phase-scope-list {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.phase-scope-list span {
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  background: var(--paper-deep);
  font-size: 0.75rem;
  font-weight: 700;
}

.phase-scope-boundary {
  padding-left: 1rem;
  border-left: 3px solid var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

#internal-qa .phase-intro,
#rfrs-responsibilities .phase-intro,
#brief-preparation .phase-intro,
#brief-example .phase-intro {
  margin: -0.35rem 0 1.15rem;
}

#internal-qa .day-panel {
  min-height: clamp(9.5rem, 20vh, 11.5rem);
}

#rfrs-responsibilities .responsibility-grid {
  margin-top: 0;
}

#brief-preparation .brief-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(15rem, 0.75fr);
  gap: 1rem;
  align-items: start;
}

#brief-preparation .brief-checklist {
  display: grid;
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  border: 0;
}

#brief-preparation .brief-checklist li {
  display: grid;
  min-width: 0;
  min-height: 5.65rem;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--paper);
}

#brief-preparation .brief-checklist li:nth-child(6),
#brief-preparation .brief-checklist li:nth-child(7) {
  background: var(--paper-warm);
}

#brief-preparation .brief-checklist li > span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  font-size: 0.66rem;
}

#brief-preparation .brief-checklist strong {
  display: flex;
  min-height: 2rem;
  align-items: center;
  font-size: 0.95rem;
  line-height: 1.25;
}

#brief-preparation .brief-checklist small {
  margin-top: 0.3rem;
  font-size: 0.72rem;
  line-height: 1.35;
}

#brief-preparation .brief-title-panel {
  max-width: none;
  margin: 0;
  border: 1px solid var(--ink);
  border-radius: 0.55rem;
  background: var(--paper-soft);
}

#brief-preparation .brief-title-panel summary {
  padding: 0.85rem 1rem;
}

#brief-preparation .brief-title-panel .title-template {
  margin: 0;
  padding: 1rem;
  border-left: 0;
  background: transparent;
}

#brief-preparation .template-line {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1rem;
  font-size: 1rem;
}

#brief-preparation .reference-note {
  margin-top: 1rem;
}

@media (max-width: 1000px) {
  #brief-context .routing-list {
    grid-template-columns: 1fr;
  }

  #brief-context .routing-list .routing-card,
  #brief-context .routing-list .routing-card:first-child,
  #brief-context .routing-list .routing-card:last-child {
    min-height: 0;
  }

  .phase-scope-note,
  #brief-preparation .brief-layout {
    grid-template-columns: 1fr;
  }

  .phase-scope-boundary {
    padding-top: 0.65rem;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  #brief-preparation .brief-checklist {
    grid-template-columns: 1fr;
  }
}

/* Assignment cards: isolate the route currently under the pointer. */

#brief-context .routing-list .routing-card {
  transition:
    background-color 160ms ease,
    opacity 160ms ease;
}

#brief-context .routing-list .routing-card-triage {
  background: var(--paper);
}

#brief-context .routing-list .routing-index {
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  #brief-context .routing-list:has(.routing-card:hover) .routing-card:not(:hover) {
    opacity: 0.46;
  }

  #brief-context .routing-list .routing-card:hover {
    z-index: 1;
    background: var(--accent-hover);
    box-shadow: none;
    transform: none;
  }

  #brief-context .routing-list .routing-card:hover .routing-index {
    background: var(--ink);
    color: var(--accent);
  }
}

@media (prefers-reduced-motion: reduce) {
  #brief-context .routing-list .routing-card,
  #brief-context .routing-list .routing-index {
    transition: none;
  }

  #brief-context .routing-list .routing-card:hover {
    transform: none;
  }
}

/* Cosmetic rules: elevate labels above their supporting copy. */

.cosmetic-rules .rule-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-bottom: 0.85rem !important;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid currentColor;
  font-size: clamp(0.82rem, 1.05vw, 0.92rem);
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 1.2;
}

.cosmetic-rules .rule-label::before {
  font-size: 0.68em;
}

/* Hosting and DNS introduction */

#hosting-dns-basics .slide-inner,
#hosting-dns-ownership .slide-inner {
  display: block;
}

.infrastructure-flow {
  display: grid;
  width: 100%;
  max-width: var(--reading-width);
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr) auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: stretch;
}

.infrastructure-card {
  display: flex;
  min-width: 0;
  min-height: 13.5rem;
  flex-direction: column;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--paper);
  transition:
    background-color 160ms ease,
    opacity 160ms ease;
}

.infrastructure-card-featured {
  border-color: var(--ink);
  background: var(--accent);
}

.infrastructure-label,
.ownership-label {
  width: fit-content;
  margin: 0 0 0.85rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.infrastructure-symbol {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  margin-bottom: auto;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 800;
}

.infrastructure-card h3,
.infrastructure-card > p,
.ownership-card h3,
.ownership-option p,
.ownership-footer p {
  margin: 0;
}

.infrastructure-card h3 {
  margin-top: 1.2rem;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.08;
}

.infrastructure-card > p:last-of-type {
  margin-top: 0.45rem;
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.infrastructure-card-featured > p:last-of-type {
  color: var(--ink);
}

.analogy-tag {
  display: block;
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid currentColor;
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1.35;
}

.infrastructure-arrow {
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 800;
}

.infrastructure-route {
  display: flex;
  width: 100%;
  max-width: var(--reading-width);
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-left: 4px solid var(--accent-deep);
  background: var(--paper-deep);
  font-size: 0.82rem;
}

.infrastructure-route strong {
  margin-right: auto;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.infrastructure-route span {
  font-weight: 750;
}

.infrastructure-route i {
  font-style: normal;
}

.ownership-grid {
  display: grid;
  width: 100%;
  max-width: var(--reading-width);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.ownership-card {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--paper-soft);
  overflow: hidden;
}

.ownership-card:nth-child(2) {
  background: var(--paper-warm);
}

.ownership-card > .ownership-label,
.ownership-card > h3 {
  grid-column: 1 / -1;
  margin-right: 1.1rem;
  margin-left: 1.1rem;
}

.ownership-card > .ownership-label {
  margin-top: 1rem;
  margin-bottom: 0.65rem;
  padding: 0.32rem 0.58rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--accent);
}

.ownership-card > h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.ownership-option {
  min-width: 0;
  padding: 0.9rem 1.1rem 1rem;
  border-top: 1px solid var(--line);
}

.ownership-option + .ownership-option {
  border-left: 1px solid var(--line);
}

.ownership-option strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
}

.ownership-option p {
  color: var(--ink-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.ownership-footer {
  display: grid;
  width: 100%;
  max-width: var(--reading-width);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  margin-top: 0.9rem;
  border: 1px solid var(--line);
}

.ownership-footer > div {
  min-width: 0;
  padding: 0.9rem 1rem;
}

.ownership-footer > div:first-child {
  background: var(--paper-deep);
}

.ownership-footer .rule-label {
  margin-bottom: 0.4rem;
}

.ownership-footer p:last-child {
  font-size: 0.84rem;
  line-height: 1.45;
}

.dns-timing {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  border-left: 1px solid var(--ink);
  background: var(--accent);
}

.dns-timing strong {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1;
}

@media (hover: hover) and (pointer: fine) {
  .infrastructure-flow:has(.infrastructure-card:hover) .infrastructure-card:not(:hover) {
    opacity: 0.46;
  }

  .infrastructure-card:hover {
    background: var(--accent-hover);
    box-shadow: none;
    transform: none;
  }
}

@media (max-width: 1000px) {
  .infrastructure-flow {
    grid-template-columns: 1fr;
  }

  .infrastructure-card {
    min-height: 0;
  }

  .infrastructure-symbol {
    margin-bottom: 0;
  }

  .infrastructure-arrow {
    transform: rotate(90deg);
  }

  .ownership-grid,
  .ownership-footer {
    grid-template-columns: 1fr;
  }

  .dns-timing {
    border-top: 1px solid var(--ink);
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .ownership-card {
    grid-template-columns: 1fr;
  }

  .ownership-option + .ownership-option {
    border-left: 0;
  }

  .dns-timing {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .infrastructure-card {
    transition: none;
  }

  .infrastructure-card:hover {
    transform: none;
  }
}

/* Responsibilities reference: make the native details element read as a tool. */

#rfrs-responsibilities .reference-accordion {
  margin-top: 1.35rem;
  border: 1px solid var(--ink);
  border-radius: 0.65rem;
  background: var(--paper-soft);
  overflow: hidden;
}

#rfrs-responsibilities .reference-accordion summary {
  display: flex;
  min-height: 4.75rem;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  list-style: none;
  transition: background-color 160ms ease;
}

#rfrs-responsibilities .reference-accordion summary::-webkit-details-marker {
  display: none;
}

#rfrs-responsibilities .reference-accordion summary::after {
  content: "+";
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 2.35rem;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
  font-size: 1.35rem;
  font-weight: 750;
  line-height: 1;
}

#rfrs-responsibilities .reference-accordion[open] summary {
  border-bottom: 1px solid var(--ink);
  background: var(--accent);
}

#rfrs-responsibilities .reference-accordion[open] summary::after {
  content: "−";
  background: var(--ink);
  color: var(--accent);
}

.reference-accordion-title {
  display: block;
}

.reference-accordion-title > span,
.reference-accordion-title > strong {
  display: block;
}

.reference-accordion-title > span {
  margin-bottom: 0.3rem;
  color: var(--ink-muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.reference-accordion-title > strong {
  font-size: 0.9rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
  text-transform: none;
}

#rfrs-responsibilities .reference-accordion .reference-panel-body {
  padding: 1rem;
}

#rfrs-responsibilities .reference-accordion .reference-panel-body p:last-child {
  color: var(--ink-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

@media (hover: hover) and (pointer: fine) {
  #rfrs-responsibilities .reference-accordion summary:hover {
    background: var(--accent-hover);
  }
}

@media (prefers-reduced-motion: reduce) {
  #rfrs-responsibilities .reference-accordion summary {
    transition: none;
  }
}

/* Shape system: sharp navigation chrome, rounded content regions. */

.wireframe-rules,
.cosmetic-rules,
.responsive-columns,
.responsibility-grid,
.migration-accordion {
  border: 1px solid var(--line);
  border-radius: var(--radius-content);
  overflow: hidden;
}

.wireframe-rules > article:first-child,
.responsive-columns > li:first-child,
.cosmetic-rules > article:nth-child(odd) {
  padding-left: 1.25rem;
}

.migration-accordion details:last-child {
  border-bottom: 0;
}

.decision-example,
.why-callout,
.phase-scope-note,
.migration-warning,
.infrastructure-route,
.ownership-footer {
  border-radius: var(--radius-content);
  overflow: hidden;
}

.routing-card,
.infrastructure-card,
.ownership-card,
.brief-checklist li,
.brief-title-panel,
.reference-accordion {
  border-radius: var(--radius-content);
}

#brief-preparation .brief-title-panel,
#rfrs-responsibilities .reference-accordion {
  border-radius: var(--radius-content);
}

@media (max-width: 1000px) {
  .wireframe-rules > article,
  .responsive-columns > li {
    padding-right: 1rem;
    padding-left: 1rem;
  }
}

/* Feedback pass v21: aligned ownership cards and consistent internal rhythm. */

.ownership-footer {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.ownership-footer > div {
  min-height: 5.45rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-content);
}

.dns-timing {
  border: 1px solid var(--ink);
}

.migration-accordion summary {
  grid-template-columns: 2.25rem minmax(0, 1fr) 2rem;
  gap: 0.75rem;
  padding: 0.72rem 0.85rem;
}

.migration-accordion summary span {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-deep);
  line-height: 1;
}

.migration-accordion details[open] summary {
  background: var(--paper-soft);
}

.migration-accordion details[open] summary span {
  background: var(--accent);
  color: var(--ink);
}

.migration-accordion summary::after {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-deep);
  font-size: 1rem;
}

.migration-accordion details[open] summary::after {
  background: var(--ink);
  color: var(--accent);
}

.migration-accordion details > p {
  max-width: none;
  margin: 0;
  padding: 0.8rem 3.6rem 1rem 3.85rem;
}

.migration-warning {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  padding: 0;
}

.migration-warning strong {
  display: flex;
  align-items: center;
  padding: 0.82rem 1rem;
  background: var(--ink);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.055em;
}

.migration-warning p {
  display: flex;
  align-items: center;
  padding: 0.82rem 1rem;
  font-weight: 650;
}

.rfrs-scope-grid {
  margin-top: 2.25rem;
}

.responsibility-grid article,
.responsibility-grid article:first-child,
.responsibility-grid article:last-child {
  padding: 1.3rem 1.45rem;
  border-bottom: 0;
}

.responsibility-role {
  margin-bottom: 1.15rem;
}

.responsibility-grid h3 {
  margin-bottom: 0.65rem;
}

.responsibility-grid article p:last-child {
  line-height: 1.5;
}

@media (max-width: 1000px) {
  .ownership-footer {
    grid-template-columns: 1fr;
  }

  .dns-timing {
    border: 1px solid var(--ink);
  }
}

@media (max-width: 760px) {
  .migration-warning {
    grid-template-columns: 1fr;
  }

  .migration-accordion details > p {
    padding-right: 1rem;
    padding-left: 3.85rem;
  }
}

/* Presentation laser: isolate the column currently under the pointer. */

:is(
  .metric-grid,
  .wireframe-rules,
  .cosmetic-rules,
  .responsive-columns,
  .ownership-grid,
  .rfrs-flow,
  .responsibility-grid,
  .solution-split,
  .brief-checklist,
  .parking-grid
) > * {
  position: relative;
  transition:
    background-color 160ms ease,
    opacity 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  :is(
    .metric-grid,
    .wireframe-rules,
    .cosmetic-rules,
    .responsive-columns,
    .ownership-grid,
    .rfrs-flow,
    .responsibility-grid,
    .solution-split,
    .brief-checklist,
    .parking-grid
  ):has(> :hover) > :not(:hover) {
    opacity: 0.46;
  }

  :is(
    .metric-grid,
    .wireframe-rules,
    .cosmetic-rules,
    .responsive-columns,
    .ownership-grid,
    .rfrs-flow,
    .responsibility-grid,
    .solution-split,
    .brief-checklist,
    .parking-grid
  ) > :hover {
    z-index: 2;
    background: var(--accent-hover) !important;
    box-shadow: none;
  }

  :is(
    .metric-grid,
    .wireframe-rules,
    .cosmetic-rules,
    .responsive-columns,
    .ownership-grid,
    .rfrs-flow,
    .responsibility-grid,
    .solution-split,
    .brief-checklist,
    .parking-grid
  ) > :hover :is(p, h3, h4, strong, small, span) {
    color: var(--ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(
    .metric-grid,
    .wireframe-rules,
    .cosmetic-rules,
    .responsive-columns,
    .ownership-grid,
    .rfrs-flow,
    .responsibility-grid,
    .solution-split,
    .brief-checklist,
    .parking-grid
  ) > * {
    transition: none;
  }
}

/* Infrastructure card hierarchy: step first, service name second. */

.infrastructure-symbol {
  margin-bottom: 0.7rem;
}

.infrastructure-label {
  margin: 0 0 auto;
  font-size: clamp(0.95rem, 1.25vw, 1.1rem);
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.1;
}

@media (max-width: 760px) {
  .cosmetic-rules > article,
  .cosmetic-rules > article:nth-child(odd),
  .cosmetic-rules > article:nth-child(even),
  .cosmetic-rules > article:nth-last-child(-n + 2) {
    padding-right: 1rem;
    padding-left: 1rem;
  }
}

/* Confirmed department scope and WordPress operating guidance. */

#what-we-can-do .slide-inner,
#what-we-do-not-do .slide-inner,
#pm-ae-role .slide-inner,
#wordpress-elementor .slide-inner,
#wordpress-content-source .slide-inner,
#wordpress-controls .slide-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.info-grid {
  display: grid;
  width: 100%;
  max-width: var(--reading-width);
  gap: 0.85rem;
  align-self: start;
}

.info-grid-two,
.solution-fit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.info-card {
  min-width: 0;
  min-height: 10.5rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-content);
  background: var(--paper);
}

.info-card-label {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  margin: 0 0 1.35rem;
  padding: 0.28rem 0.65rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
}

.info-card h3 {
  max-width: 32ch;
  margin: 0 0 0.65rem;
  font-size: clamp(1.15rem, 1.65vw, 1.45rem);
  line-height: 1.12;
}

.info-card > p:last-child {
  max-width: 58ch;
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.52;
}

.plain-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0 0 0 1.05rem;
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.48;
}

.boundary-card {
  background: var(--paper-soft);
}

.boundary-note,
.wordpress-principle,
.source-status-strip {
  display: flex;
  width: 100%;
  max-width: var(--reading-width);
  gap: 1rem;
  align-items: center;
  margin-top: 0.9rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-content);
  background: var(--paper-warm);
}

.boundary-note strong,
.wordpress-principle strong,
.source-status-strip strong {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.boundary-note span,
.wordpress-principle span {
  line-height: 1.45;
}

.fit-card {
  background: var(--paper);
}

.limit-card {
  background: var(--paper-warm);
}

.solution-fit-grid .info-card {
  min-height: clamp(16rem, 35vh, 20rem);
}

.wordpress-principle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  padding: 0;
  border-color: var(--ink);
  background: var(--accent);
  overflow: hidden;
}

.wordpress-principle strong {
  display: flex;
  align-items: center;
  padding: 0.82rem 1rem;
  border-radius: 0;
  background: var(--ink);
  color: var(--accent);
  white-space: nowrap;
}

.wordpress-principle span {
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 0.82rem 1rem;
  font-weight: 650;
}

.source-owner-grid .info-card,
.wordpress-control-grid .info-card {
  min-height: clamp(14rem, 29vh, 17rem);
}

.source-status-strip {
  flex-wrap: wrap;
  background: var(--paper-soft);
}

.source-status-strip span {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--accent);
  font-size: 0.76rem;
  font-weight: 750;
}

.portfolio-grid {
  display: grid;
  width: 100%;
  max-width: var(--reading-width);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

#portfolio .slide-inner {
  grid-template-rows: auto auto auto;
}

.portfolio-card {
  min-width: 0;
  min-height: clamp(18rem, 38vh, 21rem);
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-content);
  background: var(--paper);
}

.portfolio-card-heading {
  display: block;
}

.portfolio-card-heading > span {
  display: grid;
  width: 2rem;
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  background: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
}

.portfolio-card h3,
.portfolio-card p {
  margin: 0;
}

.portfolio-card h3 {
  margin-top: 0.45rem;
  font-size: clamp(1.25rem, 1.65vw, 1.65rem);
  line-height: 1.13;
}

.portfolio-card > a {
  display: block;
  margin: 1rem 0;
  color: var(--accent-deep);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.portfolio-card .plain-list {
  font-size: 0.86rem;
}

.portfolio-grid > :hover a,
.portfolio-card > a:focus-visible {
  color: var(--ink);
}

.brief-example-tabs {
  width: 100%;
  max-width: var(--reading-width);
}

.brief-example-panel {
  display: grid;
  min-height: 0;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: var(--radius-content);
  background: var(--paper);
  overflow: hidden;
}

.brief-example-full {
  display: block;
  max-height: min(50dvh, 32rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.brief-example-full:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.brief-email-header {
  position: sticky;
  z-index: 2;
  top: 0;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(10px);
}

.brief-email-header :is(p, h3),
.brief-email-body p,
.brief-email-section h4 {
  margin: 0;
}

.brief-email-header h3 {
  margin-top: 0.45rem;
  font-size: clamp(1.3rem, 1.8vw, 1.65rem);
  line-height: 1.2;
}

.brief-email-body {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
}

.brief-email-body > p,
.brief-email-section > p {
  max-width: 78ch;
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

.brief-email-section {
  display: grid;
  gap: 0.55rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.brief-email-section h4 {
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.065em;
}

.brief-email-section :is(a, code) {
  min-width: 0;
  color: var(--accent-deep);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.brief-email-section code {
  display: block;
  color: var(--ink);
  font-weight: 650;
}

.brief-email-resource {
  display: grid;
  gap: 0.25rem;
}

.brief-email-resource > strong {
  font-size: 0.78rem;
}

.brief-source-note {
  font-style: italic;
}

body.reference-mode .brief-example-full {
  max-height: none;
  overflow: visible;
}

.brief-example-task {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.brief-example-task > div {
  padding: 1.35rem;
}

.brief-example-task > div + div {
  border-left: 1px solid var(--line);
}

.brief-example-task h3,
.brief-example-task p,
.brief-resource-row p,
.brief-resource-row span {
  margin: 0;
}

.brief-example-task h3 {
  max-width: 24ch;
  margin-top: 0.65rem;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.12;
}

.brief-example-task div:last-child > p:last-child {
  max-width: 58ch;
  margin-top: 0.65rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.brief-resource-row {
  display: grid;
  grid-template-columns: minmax(12rem, 0.72fr) minmax(0, 1.28fr);
  gap: 1rem;
  align-items: start;
  padding: 0.88rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.brief-resource-row:last-child {
  border-bottom: 0;
}

.brief-resource-row :is(a, code, span) {
  min-width: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.brief-resource-row a {
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.brief-resource-row a:hover,
.brief-resource-row a:focus-visible {
  color: var(--ink);
}

.brief-resource-inactive {
  background: var(--paper-warm);
}

.brief-resource-inactive span {
  color: var(--ink-muted);
}

.brief-resource-benchmark {
  background: var(--accent);
}

.brief-example-notes {
  padding: 1.1rem;
}

.brief-example-notes > .plain-list {
  margin: 0 0 1rem;
}

.brief-example-notes .brief-resource-row {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-content);
  background: var(--paper-soft);
}

.brief-deadline-panel {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.deadline-example-column {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.deadline-example-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-content);
  background: var(--paper-soft);
}

.deadline-example-card :is(p, blockquote),
.deadline-target-heading :is(p, h3),
.deadline-note {
  margin: 0;
}

.deadline-example-card blockquote {
  margin-top: 0.65rem;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.55;
}

.deadline-target-column {
  padding: 1rem;
  border-left: 1px solid var(--line);
}

.deadline-target-heading h3 {
  margin-top: 0.45rem;
  font-size: clamp(1.25rem, 1.75vw, 1.65rem);
  line-height: 1.2;
}

.deadline-target-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.deadline-target-list li {
  display: grid;
  grid-template-columns: 6.2rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.64rem 0;
  border-bottom: 1px solid var(--line);
}

.deadline-target-list span {
  color: var(--accent-deep);
  font-size: 0.75rem;
  font-weight: 850;
}

.deadline-target-list strong {
  font-size: 0.86rem;
  line-height: 1.35;
}

.deadline-note {
  margin-top: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-content);
  background: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.45;
}

.brief-missing-input {
  margin-top: 0.9rem;
}

.feature-flow {
  display: grid;
  width: 100%;
  max-width: var(--reading-width);
  grid-template-columns: 0.9fr 1fr 1.65fr 1fr;
  margin: 0.9rem 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-content);
  overflow: hidden;
  list-style: none;
}

.feature-flow li {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  border-right: 1px solid var(--line);
}

.feature-flow li:last-child {
  border-right: 0;
}

.feature-flow span {
  color: var(--accent-deep);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.feature-flow strong {
  font-size: 0.84rem;
  line-height: 1.4;
}

/* Confirmed timeline, handover and scope-control pages. */

#project-timeline .slide-inner,
#post-migration .slide-inner,
#scope-control .slide-inner,
#scope-expansion .slide-inner,
#process-risks .slide-inner,
#technical-issue-intake .slide-inner,
#incident-case-studies .slide-inner,
#akw-land-incident .slide-inner,
#hg-nic-incident .slide-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.case-overview-card {
  display: flex;
  flex-direction: column;
}

.case-overview-card > p:not(.info-card-label) {
  max-width: 58ch;
  margin: 0 0 1rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.52;
}

.case-overview-card .case-open-button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.65rem;
  margin-top: auto;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  cursor: pointer;
}

.case-overview-card .case-open-button:hover,
.case-overview-card .case-open-button:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.case-overview-card .case-open-button:hover span,
.case-overview-card .case-open-button:focus-visible span {
  color: var(--paper);
}

.case-study-grid .info-card {
  min-height: 0;
  padding: 1rem 1.15rem;
}

.case-study-grid .info-card-label {
  margin-bottom: 0.8rem;
}

.case-study-grid .info-card h3 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
}

.case-study-grid .info-card > p:last-child {
  font-size: 0.84rem;
  line-height: 1.45;
}

.case-study-lesson {
  margin-top: 0.85rem;
}

.timeline-phase-grid .info-card,
.timeline-exception-grid .info-card,
.scope-expansion-grid .info-card {
  min-height: 0;
}

.timeline-total,
.timeline-exception-grid,
.post-migration-confirm,
.scope-commitment-rule,
.scope-review-flow,
.process-risk-rule {
  margin-top: 0.9rem;
}

.timeline-total strong {
  min-width: 12.75rem;
  justify-content: center;
}

.timeline-exception-grid .boundary-card,
.process-risk-grid .info-card {
  background: var(--paper-warm);
}

.post-migration-grid .info-card,
.scope-overview-grid .info-card,
.process-risk-grid .info-card {
  min-height: 13.5rem;
}

.post-migration-confirm strong {
  min-width: 10.5rem;
  justify-content: center;
}

.scope-commitment-rule strong,
.process-risk-rule strong {
  min-width: 9.5rem;
  justify-content: center;
}

.scope-review-flow {
  grid-template-columns: 0.8fr 1.4fr 1.5fr 1fr;
}

.laser-grid > * {
  position: relative;
  transition:
    background-color 160ms ease,
    opacity 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .laser-grid:has(> :hover) > :not(:hover) {
    opacity: 0.46;
  }

  .laser-grid > :hover {
    z-index: 2;
    background: var(--accent-hover);
    box-shadow: none;
  }

  .laser-grid > :hover :is(p, h3, strong, span, li) {
    color: var(--ink);
  }

  .laser-grid > :hover :is(dt, dd) {
    color: var(--ink);
  }
}

@media (max-width: 1000px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card {
    min-height: 0;
  }

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

  .info-grid-three .info-card {
    min-height: 0;
  }

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

  .feature-flow li:nth-child(2) {
    border-right: 0;
  }

  .feature-flow li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .info-grid-two,
  .solution-fit-grid {
    grid-template-columns: 1fr;
  }

  .info-card,
  .solution-fit-grid .info-card,
  .source-owner-grid .info-card,
  .wordpress-control-grid .info-card {
    min-height: 0;
  }

  .brief-example-task,
  .brief-deadline-panel,
  .brief-resource-row {
    grid-template-columns: 1fr;
  }

  .brief-example-task > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .brief-example-panel {
    min-height: 0;
  }

  .deadline-target-column {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .boundary-note,
  .source-status-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .wordpress-principle {
    grid-template-columns: 1fr;
  }

  .wordpress-principle span {
    width: 100%;
  }

  .wordpress-principle strong {
    width: 100%;
  }

  .feature-flow {
    grid-template-columns: 1fr;
  }

  .feature-flow li,
  .feature-flow li:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-flow li:last-child {
    border-bottom: 0;
  }
}

@media (max-height: 720px) and (min-width: 900px) {
  #project-timeline .slide-inner,
  #post-migration .slide-inner,
  #scope-control .slide-inner,
  #scope-expansion .slide-inner,
  #process-risks .slide-inner,
  #technical-issue-intake .slide-inner,
  #incident-case-studies .slide-inner,
  .case-study-slide .slide-inner {
    padding-top: calc(var(--topbar-height) + 1.15rem);
    padding-bottom: calc(var(--bottom-nav-height) + 1.15rem);
  }

  #project-timeline .compact-heading,
  #post-migration .compact-heading,
  #scope-control .compact-heading,
  #scope-expansion .compact-heading,
  #process-risks .compact-heading,
  #technical-issue-intake .compact-heading,
  #incident-case-studies .compact-heading,
  .case-study-slide .compact-heading {
    margin-bottom: 1.2rem;
  }

  #project-timeline h2,
  #post-migration h2,
  #scope-control h2,
  #scope-expansion h2,
  #process-risks h2,
  #technical-issue-intake h2,
  #incident-case-studies h2,
  .case-study-slide h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
  }

  #project-timeline .section-pill,
  #post-migration .section-pill,
  #scope-control .section-pill,
  #scope-expansion .section-pill,
  #process-risks .section-pill,
  #technical-issue-intake .section-pill,
  #incident-case-studies .section-pill,
  .case-study-slide .section-pill {
    margin-bottom: 0.65rem;
  }

  #project-timeline .page-lede,
  #post-migration .page-lede,
  #scope-control .page-lede,
  #scope-expansion .page-lede,
  #process-risks .page-lede,
  #technical-issue-intake .page-lede,
  #incident-case-studies .page-lede,
  .case-study-slide .page-lede {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
  }

  #project-timeline .info-grid,
  #post-migration .info-grid,
  #scope-control .info-grid,
  #scope-expansion .info-grid,
  #process-risks .info-grid,
  #technical-issue-intake .info-grid,
  #incident-case-studies .info-grid,
  .case-study-slide .info-grid {
    gap: 0.65rem;
  }

  #project-timeline .info-card,
  #post-migration .info-card,
  #scope-control .info-card,
  #scope-expansion .info-card,
  #process-risks .info-card,
  #technical-issue-intake .info-card,
  #incident-case-studies .info-card,
  .case-study-slide .info-card {
    min-height: 0;
    padding: 0.9rem 1rem;
  }

  #project-timeline .info-card-label,
  #post-migration .info-card-label,
  #scope-control .info-card-label,
  #scope-expansion .info-card-label,
  #process-risks .info-card-label,
  #technical-issue-intake .info-card-label,
  #incident-case-studies .info-card-label,
  .case-study-slide .info-card-label {
    min-height: 1.45rem;
    margin-bottom: 0.75rem;
    padding: 0.22rem 0.55rem;
    font-size: 0.62rem;
  }

  #project-timeline .info-card h3,
  #post-migration .info-card h3,
  #scope-control .info-card h3,
  #scope-expansion .info-card h3,
  #process-risks .info-card h3,
  #technical-issue-intake .info-card h3,
  #incident-case-studies .info-card h3,
  .case-study-slide .info-card h3 {
    margin-bottom: 0.45rem;
    font-size: 1.05rem;
  }

  #project-timeline .info-card > p:last-child,
  #post-migration .info-card > p:last-child,
  #scope-control .info-card > p:last-child,
  #scope-expansion .info-card > p:last-child,
  #process-risks .info-card > p:last-child,
  #technical-issue-intake .info-card > p:last-child,
  #incident-case-studies .info-card > p:last-child,
  .case-study-slide .info-card > p:last-child,
  #post-migration .plain-list {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .timeline-total,
  .timeline-exception-grid,
  .post-migration-confirm,
  .scope-commitment-rule,
  .scope-review-flow,
  .process-risk-rule {
    margin-top: 0.65rem;
  }

  #project-timeline .wordpress-principle :is(strong, span),
  #post-migration .wordpress-principle :is(strong, span),
  #scope-control .wordpress-principle :is(strong, span),
  #scope-expansion .wordpress-principle :is(strong, span),
  #process-risks .wordpress-principle :is(strong, span),
  #technical-issue-intake .wordpress-principle :is(strong, span),
  #incident-case-studies .wordpress-principle :is(strong, span),
  .case-study-slide .wordpress-principle :is(strong, span) {
    padding-top: 0.62rem;
    padding-bottom: 0.62rem;
    font-size: 0.72rem;
  }

  .scope-review-flow li {
    padding: 0.65rem 0.8rem;
  }
}

/* Browser-comment refinements: chapter centering, map, assignments and timeline cues. */

.slide.chapter-break > .chapter-break-inner {
  display: flex !important;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center !important;
}

/* Solution comparison and provisional Astro timelines. */

.solution-comparison-table {
  width: 100%;
  max-width: var(--reading-width);
  border: 1px solid var(--line);
  border-radius: var(--radius-content);
  background: var(--paper);
  overflow: auto;
}

.solution-comparison-table table {
  width: 100%;
  min-width: 54rem;
  border-collapse: collapse;
  table-layout: fixed;
}

.solution-comparison-table th,
.solution-comparison-table td {
  padding: 0.72rem 0.8rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.solution-comparison-table th:last-child,
.solution-comparison-table td:last-child {
  border-right: 0;
}

.solution-comparison-table tbody tr:last-child > * {
  border-bottom: 0;
}

.solution-comparison-table thead th {
  font-size: 0.76rem;
  line-height: 1.3;
}

.solution-comparison-table thead th:first-child {
  width: 17%;
  background: var(--paper-deep);
}

.solution-comparison-table thead th:nth-child(2) {
  background: #efe5db;
}

.solution-comparison-table thead th:nth-child(3) {
  background: #f5efcb;
}

.solution-comparison-table thead th:nth-child(4) {
  background: #dfeedd;
}

.solution-comparison-table tbody th {
  background: var(--paper-soft);
  font-size: 0.72rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.solution-comparison-table tbody td {
  color: var(--ink-muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.solution-comparison-table tbody td strong,
.solution-comparison-table tbody td span {
  display: block;
}

.solution-comparison-table tbody td strong {
  color: var(--ink);
  font-size: 0.88rem;
}

.solution-comparison-table tbody td span {
  margin-top: 0.12rem;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (hover: hover) and (pointer: fine) {
  .solution-comparison-table tbody tr:hover > * {
    background: var(--accent-hover);
    color: var(--ink);
  }
}

.info-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.astro-timeline-grid .info-card {
  min-height: clamp(12.25rem, 29vh, 15rem);
  padding: 1rem;
}

.astro-timeline-grid .info-card-label {
  margin-bottom: 1rem;
}

.astro-timeline-grid h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.25rem, 1.85vw, 1.65rem);
  line-height: 1.12;
}

.astro-timeline-grid .info-card > p:last-child {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.timeline-phase-sanity .info-card-label {
  background: var(--accent);
}

.astro-timeline-total {
  margin-top: 0.8rem;
}

.sanity-timeline-note {
  width: 100%;
  max-width: var(--reading-width);
  margin: 0.8rem 0 0;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--accent-deep);
  border-radius: var(--radius-content);
  background: var(--paper-deep);
  font-size: 0.76rem;
  line-height: 1.45;
}

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

@media (max-width: 760px) {
  .info-grid-four {
    grid-template-columns: 1fr;
  }

  .astro-timeline-grid .info-card {
    min-height: 0;
  }
}

#introduction .metric-block:first-child {
  padding-left: 1.5rem;
}

.deck-map-grid {
  display: grid;
  width: 100%;
  max-width: var(--reading-width);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-content);
  background: var(--paper);
  overflow: hidden;
}

.deck-map-card {
  display: grid;
  min-width: 0;
  min-height: 5.4rem;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.deck-map-card:nth-child(even) {
  border-right: 0;
}

.deck-map-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  border-right: 0;
  border-bottom: 0;
}

.deck-map-card > span {
  display: grid;
  width: 2rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  font-size: 0.68rem;
  font-weight: 850;
}

.deck-map-card h3 {
  margin: 0 0 0.28rem;
  font-size: 1.12rem;
  line-height: 1.2;
}

.deck-map-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

#brief-context .decision-example {
  display: block;
  padding: 0.85rem 1rem 1rem;
}

.decision-example-grid {
  display: grid;
  gap: 1px;
  margin-top: 0.7rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-content) - 0.15rem);
  background: var(--line);
  overflow: hidden;
}

.decision-example-grid p {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(14rem, 1.15fr);
  gap: 1rem;
  align-items: center;
  margin: 0;
  padding: 0.72rem 0.85rem;
  background: var(--paper);
}

.decision-example-grid p span {
  color: var(--ink-muted);
  font-size: 0.8rem;
}

.decision-example-grid p b {
  font-size: 0.82rem;
}

.timeline-phase-wireframe,
.timeline-phase-cosmetic,
.timeline-phase-responsive,
.timeline-one-page,
.timeline-rush {
  background: var(--paper);
}

.timeline-phase-wireframe .info-card-label {
  background: #efe5db;
}

.timeline-phase-cosmetic .info-card-label {
  background: #f5efcb;
}

.timeline-phase-responsive .info-card-label {
  background: #dfeedd;
}

.timeline-one-page .info-card-label {
  background: #f6e4ce;
}

.timeline-rush .info-card-label {
  background: #f3dddd;
}

#pm-ae-role .info-grid > .info-card:nth-child(1) .info-card-label {
  background: #efe5db;
}

#pm-ae-role .info-grid > .info-card:nth-child(2) .info-card-label {
  background: #f5efcb;
}

#pm-ae-role .info-grid > .info-card:nth-child(3) .info-card-label {
  background: #dfeedd;
}

#solutions .solution-panel,
#solutions .solution-primary,
#solutions .solution-panel + .solution-panel {
  grid-template-columns: 4rem minmax(0, 1fr);
}

.solution-choice-grid {
  display: grid;
  width: 100%;
  max-width: var(--reading-width);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-content);
  background: var(--paper);
  overflow: hidden;
}

.solution-choice-card {
  display: flex;
  min-width: 0;
  min-height: clamp(18rem, 39vh, 23rem);
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem;
  border-right: 1px solid var(--line);
}

.solution-choice-card:last-child {
  border-right: 0;
}

.solution-choice-card .solution-number {
  display: grid;
  width: 2.15rem;
  aspect-ratio: 1;
  margin: 0 0 1.4rem;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  font-size: 0.72rem;
  font-weight: 850;
}

.solution-choice-label {
  margin: 0 0 0.6rem;
  color: var(--ink-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.solution-choice-card h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 2.55vw, 2.35rem);
  line-height: 1.05;
}

.solution-choice-card div > p:last-child {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.solution-choice-button {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 2.75rem;
  margin-top: auto;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.solution-choice-button:hover,
.solution-choice-button:focus-visible {
  background: var(--ink);
  color: var(--paper);
  outline: 0;
}

.solution-choice-button:hover span,
.solution-choice-button:focus-visible span {
  color: var(--paper) !important;
}

@media (max-width: 900px) {
  .solution-choice-grid {
    grid-template-columns: 1fr;
  }

  .solution-choice-card {
    min-height: 15rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .solution-choice-card:last-child {
    border-bottom: 0;
  }
}

@media (hover: hover) and (pointer: fine) {
  #pm-ae-role .laser-grid > .info-card:hover :is(.plain-list, .plain-list li) {
    color: var(--ink) !important;
  }
}

@media (max-width: 760px) {
  #introduction .metric-block:first-child {
    padding-left: 1.1rem;
  }

  .deck-map-grid {
    grid-template-columns: 1fr;
  }

  .deck-map-card,
  .deck-map-card:nth-child(even),
  .deck-map-card:last-child:nth-child(odd) {
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .deck-map-card:last-child {
    border-bottom: 0;
  }

  .decision-example-grid p {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .laser-grid > * {
    transition: none;
  }
}

/* Astro + Sanity delivery guide. */

.slide.astro-slide .slide-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: calc(var(--topbar-height) + clamp(1.6rem, 3.2vh, 2.65rem));
  padding-bottom: calc(var(--bottom-nav-height) + clamp(1.4rem, 3vh, 2.4rem));
}

.astro-slide .compact-heading {
  margin-bottom: clamp(1rem, 2.2vh, 1.65rem);
}

.astro-slide .compact-heading h2 {
  max-width: 22ch;
  font-size: clamp(2.35rem, 4vw, 3.7rem);
  line-height: 1.02;
}

.astro-slide .page-lede {
  max-width: 74ch;
  margin: 0 0 clamp(1rem, 2.4vh, 1.5rem);
}

.astro-slide .info-card {
  min-height: 0;
}

.astro-slide .info-card-label {
  margin-bottom: 0.95rem;
}

.astro-slide .plain-list {
  font-size: 0.86rem;
}

.astro-model-grid .info-card {
  min-height: clamp(13.75rem, 29vh, 16.5rem);
}

.astro-reference-row {
  display: grid;
  width: 100%;
  max-width: var(--reading-width);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.85rem;
}

.astro-reference-link {
  display: flex;
  width: 100%;
  min-width: 0;
  gap: 0.35rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-content);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.astro-reference-link span {
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.astro-reference-link strong {
  font-size: 0.85rem;
  line-height: 1.35;
  text-align: right;
}

.astro-reference-link:hover,
.astro-reference-link:focus-visible {
  border-color: var(--accent-deep);
  background: var(--accent);
  outline: 0;
}

.astro-single-reference {
  max-width: var(--reading-width);
  margin-top: 0.85rem;
}

.astro-benefit-grid .info-card,
.astro-comparison-grid .info-card {
  min-height: clamp(18rem, 39vh, 21.5rem);
}

.astro-framework-grid .info-card {
  min-height: clamp(14rem, 30vh, 17rem);
}

.astro-definition-list {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--line);
}

.astro-definition-list > div {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--line);
}

.astro-definition-list dt,
.astro-definition-list dd {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
}

.astro-definition-list dt {
  color: var(--accent-deep);
  font-weight: 800;
}

.astro-definition-list dd {
  color: var(--ink-muted);
}

.astro-html-answer {
  grid-template-columns: minmax(13rem, 16rem) minmax(0, 1fr);
}

.astro-html-answer strong {
  white-space: normal;
}

/* Standalone chapter breaks */

.chapter-break {
  background: var(--accent);
}

.chapter-break-inner {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  justify-content: center;
}

.chapter-break-number {
  width: max-content;
  margin: 0 0 clamp(1rem, 2.5vh, 1.75rem);
  padding: 0.48rem 0.85rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1;
}

.chapter-break h2 {
  max-width: 11ch;
  font-size: clamp(4.5rem, 10vw, 9.5rem);
  line-height: 0.92;
}

@media (max-width: 760px) {
  .chapter-break h2 {
    max-width: 12ch;
    font-size: clamp(3.1rem, 15vw, 5.25rem);
  }
}

.astro-decision-rule {
  margin-top: 0.85rem;
}

.astro-stack-list {
  display: grid;
  width: 100%;
  max-width: var(--reading-width);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-content);
  background: var(--paper);
  overflow: hidden;
}

.astro-stack-list article {
  display: grid;
  min-width: 0;
  min-height: clamp(12rem, 27vh, 14.5rem);
  grid-template-rows: auto 1fr;
  gap: 1rem;
  padding: 1rem;
  border-right: 1px solid var(--line);
}

.astro-stack-list article:last-child {
  border-right: 0;
}

.astro-stack-list article > span,
.astro-phase-flow > li > span,
.astro-deploy-flow > li > span {
  display: grid;
  width: 2.15rem;
  min-height: 2.15rem;
  padding: 0.25rem;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 800;
}

.astro-stack-list strong,
.astro-stack-list p,
.astro-phase-flow strong,
.astro-phase-flow p,
.astro-deploy-flow strong,
.astro-deploy-flow p {
  margin: 0;
}

.astro-stack-list strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.03rem;
}

.astro-stack-list p {
  color: var(--ink-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.astro-phase-flow,
.astro-deploy-flow {
  display: grid;
  width: 100%;
  max-width: var(--reading-width);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-content);
  background: var(--paper);
  list-style: none;
  overflow: hidden;
}

.astro-phase-flow li,
.astro-deploy-flow li {
  display: grid;
  min-width: 0;
  min-height: clamp(12.25rem, 27vh, 15rem);
  align-content: start;
  gap: 1.15rem;
  padding: 1rem;
  border-right: 1px solid var(--line);
}

.astro-phase-flow li:last-child,
.astro-deploy-flow li:last-child {
  border-right: 0;
}

.astro-phase-flow strong,
.astro-deploy-flow strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  line-height: 1.2;
}

.astro-phase-flow p,
.astro-deploy-flow p {
  color: var(--ink-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.astro-process-grid .info-card,
.astro-source-grid .info-card,
.sanity-integration-grid .info-card,
.sanity-qa-grid .info-card,
.astro-fidelity-grid .info-card,
.astro-definition-grid .info-card {
  min-height: clamp(13rem, 28vh, 16rem);
}

.astro-development-grid .info-card {
  min-height: clamp(11.5rem, 24vh, 14rem);
}

.staging-card p:last-child strong,
.astro-fidelity-grid p:last-child strong {
  color: var(--ink);
}

.sanity-boundary {
  display: grid;
  width: 100%;
  max-width: var(--reading-width);
  grid-template-columns: auto minmax(0, 1fr);
  margin-top: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-content);
  background: var(--paper);
  overflow: hidden;
}

.sanity-boundary strong,
.sanity-boundary span {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
}

.sanity-boundary strong {
  border-right: 1px solid var(--line);
  color: var(--accent-deep);
  font-size: 0.72rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.sanity-boundary span {
  color: var(--ink-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.sanity-boundary > :nth-last-child(-n + 2) {
  border-bottom: 0;
}

.astro-ownership-grid .info-card {
  min-height: clamp(18rem, 39vh, 21.5rem);
}

@media (max-width: 1180px) {
  .astro-stack-list,
  .astro-phase-flow,
  .astro-deploy-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .astro-stack-list article,
  .astro-phase-flow li,
  .astro-deploy-flow li {
    min-height: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .astro-stack-list article:nth-child(even),
  .astro-phase-flow li:nth-child(even),
  .astro-deploy-flow li:nth-child(even) {
    border-right: 0;
  }

  .astro-stack-list article:last-child,
  .astro-phase-flow li:last-child,
  .astro-deploy-flow li:last-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }

  .astro-definition-grid,
  .astro-process-grid,
  .astro-source-grid,
  .sanity-integration-grid,
  .sanity-qa-grid,
  .astro-fidelity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: max-content;
    align-content: start;
  }

  .astro-definition-grid .info-card,
  .astro-process-grid .info-card,
  .astro-source-grid .info-card,
  .sanity-integration-grid .info-card,
  .sanity-qa-grid .info-card,
  .astro-fidelity-grid .info-card {
    min-height: 0;
  }

  .astro-definition-grid > :last-child,
  .astro-process-grid > :last-child,
  .astro-source-grid > :last-child,
  .sanity-integration-grid > :last-child,
  .sanity-qa-grid > :last-child,
  .astro-fidelity-grid > :last-child {
    grid-column: 1 / -1;
    min-height: 8.5rem;
  }
}

@media (max-width: 760px) {
  .astro-reference-row,
  .astro-stack-list,
  .astro-phase-flow,
  .astro-deploy-flow,
  .astro-definition-grid,
  .astro-process-grid,
  .astro-source-grid,
  .sanity-integration-grid,
  .sanity-qa-grid,
  .astro-fidelity-grid {
    grid-template-columns: 1fr;
  }

  .astro-stack-list article,
  .astro-phase-flow li,
  .astro-deploy-flow li,
  .astro-stack-list article:last-child,
  .astro-phase-flow li:last-child,
  .astro-deploy-flow li:last-child,
  .astro-definition-grid > :last-child,
  .astro-process-grid > :last-child,
  .astro-source-grid > :last-child,
  .sanity-integration-grid > :last-child,
  .sanity-qa-grid > :last-child,
  .astro-fidelity-grid > :last-child {
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .astro-stack-list article:last-child,
  .astro-phase-flow li:last-child,
  .astro-deploy-flow li:last-child {
    border-bottom: 0;
  }

  .astro-reference-link {
    flex-direction: column;
  }

  .astro-reference-link strong {
    text-align: left;
  }

  .astro-html-answer {
    grid-template-columns: 1fr;
  }

  .astro-definition-list > div {
    grid-template-columns: 5.3rem minmax(0, 1fr);
  }

  .sanity-boundary {
    grid-template-columns: 1fr;
  }

  .sanity-boundary strong,
  .sanity-boundary span,
  .sanity-boundary > :nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sanity-boundary span:last-child {
    border-bottom: 0;
  }
}

@media (max-height: 720px) and (min-width: 900px) {
  .slide.astro-slide .slide-inner {
    padding-top: calc(var(--topbar-height) + 1rem);
    padding-bottom: calc(var(--bottom-nav-height) + 1rem);
  }

  .astro-slide .compact-heading {
    margin-bottom: 0.8rem;
  }

  .astro-slide .compact-heading h2 {
    font-size: clamp(2rem, 3.4vw, 2.85rem);
  }

  .astro-slide .section-pill {
    margin-bottom: 0.55rem;
  }

  .astro-slide .page-lede {
    margin-bottom: 0.8rem;
    font-size: 0.92rem;
  }

  .astro-slide .info-card {
    padding: 0.85rem 0.95rem;
  }

  .astro-slide .info-card-label {
    min-height: 1.4rem;
    margin-bottom: 0.65rem;
    font-size: 0.61rem;
  }

  .astro-slide .info-card h3 {
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
  }

  .astro-slide .info-card > p:last-child,
  .astro-slide .plain-list,
  .astro-stack-list p,
  .astro-phase-flow p,
  .astro-deploy-flow p {
    font-size: 0.76rem;
    line-height: 1.4;
  }

  .astro-model-grid .info-card,
  .astro-framework-grid .info-card,
  .astro-benefit-grid .info-card,
  .astro-comparison-grid .info-card,
  .astro-process-grid .info-card,
  .astro-source-grid .info-card,
  .sanity-integration-grid .info-card,
  .sanity-qa-grid .info-card,
  .astro-fidelity-grid .info-card,
  .astro-definition-grid .info-card,
  .astro-development-grid .info-card,
  .astro-ownership-grid .info-card,
  .astro-stack-list article,
  .astro-phase-flow li,
  .astro-deploy-flow li {
    min-height: 0;
  }

  .astro-stack-list article,
  .astro-phase-flow li,
  .astro-deploy-flow li {
    gap: 0.7rem;
    padding: 0.8rem;
  }

  .astro-reference-row,
  .astro-single-reference,
  .astro-slide .wordpress-principle,
  .sanity-boundary {
    margin-top: 0.65rem;
  }
}
