:root {
  color-scheme: dark;
  --graphite-950: #071919;
  --graphite-900: #0d2424;
  --graphite-800: #102a2a;
  --graphite-700: #183b39;
  --graphite-600: #28524e;
  --paper-100: #edf2ea;
  --paper-200: #dde6dc;
  --paper-300: #cbd7cd;
  --ink-900: #102a2a;
  --ink-700: #3d5a56;
  --amber: #ffb000;
  --amber-soft: #ffd36b;
  --sea-glass: #6cc6b2;
  --sea-glass-soft: #a9ded2;
  --dark-text: #eff4ed;
  --dark-muted: #a8c6bd;
  --caveat: #e0bd75;
  --rule-dark: rgba(237, 242, 234, 0.2);
  --rule-light: rgba(16, 42, 42, 0.24);
  --display: "Arial Narrow", "Aptos Narrow", "Helvetica Neue Condensed", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --rail-width: 9rem;
  --content-max: 97.5rem;
  --gutter: clamp(1rem, 2vw, 2rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--graphite-950);
}

body {
  margin: 0;
  min-width: 20rem;
  background: var(--graphite-900);
  color: var(--dark-text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--amber);
  color: var(--ink-900);
  font-weight: 800;
  transform: translateY(-160%);
}

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

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

.app-shell {
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  min-height: 100vh;
}

.briefing-rail {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  height: 100vh;
  min-height: 40rem;
  flex-direction: column;
  border-right: 1px solid var(--rule-dark);
  background: var(--graphite-800);
}

.rail-brand {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.7rem;
  align-items: center;
  min-height: 7rem;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--rule-dark);
  color: var(--sea-glass-soft);
  text-decoration: none;
}

.rail-brand > span {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border: 1px solid var(--sea-glass);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 800;
}

.rail-brand__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rail-brand strong {
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-transform: uppercase;
}

.rail-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-list li {
  flex: 1;
  min-height: 4.5rem;
}

.rail-list a {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--rule-dark);
  color: var(--dark-muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.rail-list a::after {
  position: absolute;
  top: 0;
  right: -1px;
  width: 3px;
  height: 100%;
  background: transparent;
  content: "";
}

.rail-list a span {
  color: var(--paper-100);
  font-family: var(--display);
  font-size: 1.8rem;
  font-stretch: condensed;
  line-height: 1;
}

.rail-list a:hover,
.rail-list a[aria-current] {
  background: var(--graphite-700);
  color: var(--dark-text);
}

.rail-list a[aria-current]::after {
  background: var(--amber);
}

.rail-status {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid var(--rule-dark);
  color: var(--dark-muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.briefing-body {
  min-width: 0;
}

.top-strip {
  position: sticky;
  top: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 3.25rem;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem var(--gutter);
  border-bottom: 1px solid var(--rule-dark);
  background: rgba(7, 25, 25, 0.96);
  backdrop-filter: blur(0.65rem);
}

.top-strip__title {
  color: var(--dark-text);
  font-family: var(--display);
  font-size: clamp(0.76rem, 1vw, 0.92rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
}

.top-strip__title span {
  color: var(--sea-glass-soft);
  font-family: var(--mono);
  font-size: 0.82em;
}

.top-strip__actions {
  display: inline-flex;
  gap: 0.25rem;
  align-items: center;
  justify-self: end;
}

.sheet-download {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--sea-glass-soft);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.share-menu {
  position: relative;
  display: inline-flex;
  justify-self: end;
}

.share-trigger {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--sea-glass-soft);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.sheet-download:hover,
.share-trigger:hover,
.share-trigger[aria-expanded="true"] {
  background: var(--graphite-700);
  color: var(--amber-soft);
}

.share-popover {
  position: absolute;
  z-index: 60;
  top: calc(100% + 0.55rem);
  right: 0;
  display: grid;
  width: max-content;
  min-width: 13.75rem;
  max-width: min(18rem, calc(100vw - 2rem));
  gap: 0.2rem;
  padding: 0.4rem;
  border: 1px solid var(--rule-light);
  background: var(--paper-100);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.3);
  color: var(--ink-900);
}

.share-popover[hidden],
.share-menu-item[hidden] {
  display: none;
}

.share-popover::before {
  position: absolute;
  top: -0.42rem;
  right: 1rem;
  width: 0.75rem;
  height: 0.75rem;
  border-top: 1px solid var(--rule-light);
  border-left: 1px solid var(--rule-light);
  background: var(--paper-100);
  content: "";
  transform: rotate(45deg);
}

.share-network-list {
  display: grid;
  gap: 0.2rem;
}

.share-menu-item {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--ink-900);
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
}

.share-menu-item:hover,
.share-menu-item:focus-visible {
  border-color: var(--rule-light);
  background: var(--paper-200);
}

.share-menu-item:focus-visible {
  outline-offset: -2px;
}

.share-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.share-menu-item .share-icon {
  color: var(--ink-700);
}

.share-copy[data-share-state="success"] {
  border-color: var(--sea-glass);
  background: var(--paper-200);
}

.share-copy[data-share-state="error"] {
  border-color: var(--amber);
}

main,
.page-footer {
  width: min(100%, var(--content-max));
  margin: 0 auto;
}

.brief-section {
  min-height: 36rem;
  padding: clamp(3rem, 6vw, 6.5rem) var(--gutter);
  scroll-margin-top: 2.8rem;
}

.brief-section--dark {
  background: var(--graphite-900);
  color: var(--dark-text);
}

.brief-section--paper {
  background: var(--paper-100);
  color: var(--ink-900);
}

#brief {
  min-height: calc(100vh - 2.8rem);
  padding-top: var(--gutter);
}

.loading-state,
.error-state,
.empty-state {
  display: grid;
  min-height: 20rem;
  place-content: center;
  gap: 0.75rem;
  text-align: center;
}

.loading-mark {
  width: 3rem;
  height: 0.75rem;
  margin: 0 auto;
  border: 1px solid var(--sea-glass);
  background: var(--sea-glass);
  animation: load-track 1.4s ease-out infinite alternate;
  transform-origin: left;
}

.error-state {
  border: 1px solid var(--caveat);
  color: var(--dark-text);
}

.error-state code {
  color: var(--amber-soft);
}

.brief-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.75fr) minmax(38rem, 2fr);
  border: 1px solid var(--rule-dark);
}

.decision-panel {
  padding: clamp(1.5rem, 3vw, 3.25rem);
  background: var(--paper-100);
  color: var(--ink-900);
}

.document-coordinate {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule-light);
  color: var(--ink-700);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

#brief-title {
  max-width: 11ch;
  margin: 0;
  color: var(--ink-900);
  font-family: var(--display);
  font-size: clamp(2.1rem, 2.45vw, 2.2rem);
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.9;
  text-transform: uppercase;
}

.brief-headline {
  max-width: 28ch;
  margin: 1.75rem 0 0;
  color: var(--ink-900);
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  font-weight: 750;
  line-height: 1.3;
}

.brief-summary {
  max-width: 58ch;
  margin: 1rem 0 2rem;
  color: var(--ink-700);
}

.goal-control h2,
.subsection-title {
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.goal-buttons {
  display: grid;
  gap: 0.5rem;
}

.goal-button {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  min-height: 4.2rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--rule-light);
  border-radius: 2px;
  background: transparent;
  color: var(--ink-900);
  text-align: left;
  transition: background-color 180ms ease-out, border-color 180ms ease-out;
}

.goal-button:hover {
  border-color: var(--ink-900);
  background: var(--paper-200);
}

.goal-button.is-selected {
  border-color: var(--amber);
  background: var(--amber);
}

.goal-button__code {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.goal-button strong,
.goal-button small {
  display: block;
}

.goal-button strong {
  font-family: var(--display);
  font-size: 1.18rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.goal-button small {
  margin-top: 0.12rem;
  color: var(--ink-700);
  font-size: 0.72rem;
}

.goal-button.is-selected small {
  color: var(--ink-900);
}

.goal-button__arrow {
  font-size: 1.25rem;
}

.synthesis-note,
.inline-caveat {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule-light);
  color: var(--ink-700);
  font-size: 0.75rem;
}

.route-board {
  min-width: 0;
  padding: clamp(1.25rem, 2.5vw, 2.5rem);
  background: var(--graphite-950);
}

.route-board__header,
.china-board__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.coordinate,
.status-stamp,
.manifest-code,
.source-id,
.cluster-code,
.route-stage__code {
  font-family: var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.coordinate {
  color: var(--sea-glass);
  font-size: 0.68rem;
}

.route-board h2 {
  margin: 0.35rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}

.status-stamp {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--sea-glass);
  color: var(--sea-glass-soft);
  font-size: 0.65rem;
  transform: rotate(-1deg);
}

.route-columns,
.community-columns {
  display: grid;
  gap: 0.7rem;
  padding: 0 1rem 0.45rem;
  color: var(--dark-muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.route-columns {
  grid-template-columns: 1.15fr 0.9fr 2fr 4rem;
}

.route-matrix {
  display: grid;
  gap: 0.45rem;
}

.route-strip {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 2fr 4rem;
  gap: 0.7rem;
  align-items: center;
  min-height: 4.2rem;
  padding: 0.75rem 1rem;
  background: var(--paper-100);
  clip-path: polygon(0.55rem 0, calc(100% - 0.55rem) 0, 100% 50%, calc(100% - 0.55rem) 100%, 0.55rem 100%, 0 72%, 0.35rem 50%, 0 28%);
  color: var(--ink-900);
}

.route-strip > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.65rem;
}

.strip-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid var(--ink-900);
  border-radius: 50%;
}

.route-strip strong {
  font-family: var(--display);
  font-size: 1.04rem;
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-transform: uppercase;
}

.route-strip > span,
.route-strip p {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.73rem;
}

.route-strip a {
  justify-self: end;
  color: var(--ink-900);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 800;
}

.evidence-band {
  display: grid;
  grid-template-columns: 1.15fr repeat(4, minmax(8rem, 1fr));
  border: 1px solid var(--rule-light);
  border-top: 0;
  background: var(--paper-100);
  color: var(--ink-900);
}

.evidence-band__label,
.evidence-anchor {
  min-height: 8rem;
  padding: 1.1rem;
  border-right: 1px solid var(--rule-light);
}

.evidence-band__label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.evidence-band__label strong,
.evidence-band__label span {
  display: block;
}

.evidence-band__label strong {
  font-family: var(--display);
  font-size: 1.15rem;
  text-transform: uppercase;
}

.evidence-band__label span {
  color: var(--ink-700);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.evidence-seal {
  display: grid !important;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid var(--ink-900);
  border-radius: 50%;
  color: var(--ink-900) !important;
  font-size: 0.8rem !important;
  font-weight: 900;
}

.evidence-anchor {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
}

.evidence-anchor:hover {
  background: var(--paper-200);
}

.evidence-anchor strong {
  font-family: var(--mono);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1;
}

.evidence-anchor span {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.evidence-anchor small {
  margin-top: 0.7rem;
  color: var(--ink-700);
  font-family: var(--mono);
  font-size: 0.58rem;
}

.evidence-caveat {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.65rem 1rem;
  background: var(--paper-200);
  color: var(--ink-700);
  font-size: 0.72rem;
  text-align: center;
}

.section-heading {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 3rem);
  align-items: start;
  margin-bottom: clamp(2.5rem, 5vw, 5rem);
}

.section-heading__code {
  display: block;
  padding-top: 0.4rem;
  border-top: 2px solid currentColor;
  font-family: var(--display);
  font-size: 2.25rem;
  line-height: 1;
}

.section-heading h2 {
  max-width: 24ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.82rem, 3.5vw, 3.5rem);
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-transform: uppercase;
}

.section-heading p {
  max-width: 68ch;
  margin: 0.8rem 0 0;
  color: inherit;
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.82;
}

.signals-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.signal-stack,
.cluster-manifest {
  border-top: 1px solid var(--rule-light);
}

.signal-row {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) minmax(9rem, 0.8fr);
  gap: 1rem;
  align-items: center;
  min-height: 7rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule-light);
}

.manifest-code,
.cluster-code {
  color: var(--ink-700);
  font-size: 0.68rem;
}

.signal-row h4,
.cluster-row h4 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.5rem;
  text-transform: uppercase;
}

.signal-row p,
.cluster-row p {
  margin: 0.35rem 0 0;
  color: var(--ink-700);
  font-size: 0.8rem;
}

.signal-row > span:last-child {
  color: var(--ink-700);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.cluster-row {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 1rem;
  min-height: 8.6rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--rule-light);
}

.cluster-row strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
}

.directory-controls {
  display: grid;
  grid-template-columns: minmax(20rem, 1.25fr) minmax(11rem, 0.55fr) minmax(15rem, 0.8fr) auto;
  gap: 0.75rem;
  align-items: end;
  padding: 1rem;
  border: 1px solid var(--rule-dark);
  background: var(--graphite-950);
}

.compact-goals {
  margin: 0;
  padding: 0;
  border: 0;
}

.compact-goals legend,
.field-control > span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--dark-muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.compact-goals > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.compact-goal,
.reset-button,
.field-control input,
.field-control select {
  min-height: 2.8rem;
  border: 1px solid var(--rule-dark);
  border-radius: 0;
  background: var(--graphite-800);
  color: var(--dark-text);
}

.compact-goal {
  padding: 0.5rem 0.65rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.compact-goal:hover {
  background: var(--graphite-700);
}

.compact-goal.is-selected {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--ink-900);
}

.field-control input,
.field-control select {
  width: 100%;
  padding: 0.5rem 0.75rem;
}

.field-control input::placeholder {
  color: var(--dark-muted);
  opacity: 1;
}

.reset-button {
  padding: 0.5rem 1rem;
  border-color: var(--sea-glass);
  color: var(--sea-glass-soft);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.reset-button:hover {
  background: var(--graphite-700);
}

.directory-status {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.25rem;
  color: var(--dark-muted);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.directory-status p {
  margin: 0;
}

.community-columns {
  grid-template-columns: 1.1fr 1.35fr 1.3fr 1.8fr 0.8fr;
  border-bottom: 1px solid var(--rule-dark);
}

.region-group {
  margin-top: 2rem;
}

.region-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.region-heading span {
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--sea-glass);
  color: var(--sea-glass-soft);
  font-family: var(--mono);
  font-size: 0.66rem;
  transform: rotate(-1deg);
}

.region-heading h3 {
  margin: 0;
  color: var(--sea-glass-soft);
  font-family: var(--display);
  font-size: 1.65rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.region-strips {
  display: grid;
  gap: 0.35rem;
}

.community-strip {
  display: grid;
  grid-template-columns: 1.1fr 1.35fr 1.3fr 1.8fr 0.8fr;
  background: var(--paper-100);
  clip-path: polygon(0.55rem 0, calc(100% - 0.55rem) 0, 100% 50%, calc(100% - 0.55rem) 100%, 0.55rem 100%, 0 72%, 0.35rem 50%, 0 28%);
  color: var(--ink-900);
}

.community-strip > * {
  min-width: 0;
  padding: 1rem;
  border-right: 1px solid var(--rule-light);
}

.community-strip > *:last-child {
  border-right: 0;
}

.community-strip header {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.community-strip h4,
.community-strip p {
  margin: 0;
}

.community-strip h4 {
  font-family: var(--display);
  font-size: 1.1rem;
  line-height: 1;
  text-transform: uppercase;
}

.community-strip header p,
.community-field span,
.community-field > p,
.community-source small {
  margin-top: 0.35rem;
  color: var(--ink-700);
  font-size: 0.7rem;
}

.community-field strong,
.community-field span {
  display: block;
}

.community-field strong {
  font-size: 0.78rem;
}

.fit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

.fit-tags li {
  padding: 0.18rem 0.35rem;
  border: 1px solid var(--rule-light);
  color: var(--ink-700);
  font-family: var(--mono);
  font-size: 0.57rem;
  text-transform: uppercase;
}

.fit-tags li.is-active {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--ink-900);
}

.community-field--move > span {
  margin: 0 0 0.35rem;
  color: var(--ink-900);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.community-field--move p {
  font-size: 0.76rem;
}

.community-source {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.verified-mark {
  padding: 0.22rem 0.35rem;
  border: 1px solid var(--ink-700);
  color: var(--ink-700);
  font-family: var(--mono);
  font-size: 0.56rem;
  text-transform: uppercase;
  transform: rotate(-1deg);
}

.community-source a {
  font-size: 0.7rem;
  font-weight: 700;
}

.empty-state {
  border: 1px solid var(--caveat);
  color: var(--dark-text);
}

.empty-state span {
  color: var(--dark-muted);
}

.china-board {
  border: 1px solid var(--rule-light);
}

.china-board__header {
  margin: 0;
  padding: 1.25rem;
  border-bottom: 1px solid var(--rule-light);
  background: var(--graphite-800);
  color: var(--dark-text);
}

.china-board__header p {
  max-width: 78ch;
  margin: 0;
  color: var(--dark-muted);
  font-size: 0.78rem;
}

.china-layers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.china-layer {
  min-height: 21rem;
  padding: clamp(1.2rem, 2.5vw, 2.2rem);
  border-right: 1px solid var(--rule-light);
}

.china-layer:last-child {
  border-right: 0;
}

.china-layer h3 {
  margin: 1.6rem 0 1rem;
  font-family: var(--display);
  font-size: 2rem;
  text-transform: uppercase;
}

.china-layer strong {
  display: block;
  font-size: 0.78rem;
  line-height: 1.7;
}

.china-layer p {
  margin: 1.5rem 0 0;
  color: var(--ink-700);
  font-size: 0.82rem;
}

.engagement-route {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.engagement-route li {
  position: relative;
  min-height: 19rem;
  padding: 1.3rem;
  border: 1px solid var(--rule-dark);
  border-right: 0;
  background: var(--paper-100);
  color: var(--ink-900);
}

.engagement-route li:last-child {
  border-right: 1px solid var(--rule-dark);
}

.engagement-route li:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 2.1rem;
  right: -0.55rem;
  width: 1rem;
  height: 1rem;
  border-top: 2px solid var(--amber);
  border-right: 2px solid var(--amber);
  content: "";
  transform: rotate(45deg);
}

.route-stage__code {
  display: block;
  color: var(--ink-700);
  font-size: 0.7rem;
}

.engagement-route h3 {
  margin: 2.4rem 0 0.9rem;
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.engagement-route p {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.78rem;
}

.engagement-route small {
  display: block;
  margin-top: 1.25rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule-light);
  color: var(--ink-700);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.decision-rule {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
  padding: 1.4rem;
  border: 1px solid var(--sea-glass);
}

.decision-rule strong {
  color: var(--sea-glass-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.decision-rule p {
  max-width: 72ch;
  margin: 0;
  color: var(--dark-muted);
}

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule-light);
}

.methodology-grid details {
  padding: 1.4rem;
  border-right: 1px solid var(--rule-light);
}

.methodology-grid details:last-child {
  border-right: 0;
}

.methodology-grid summary {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
}

.methodology-grid p {
  color: var(--ink-700);
  font-size: 0.82rem;
}

.source-index {
  margin: 3rem 0 0;
  padding: 0;
  border-top: 1px solid var(--rule-light);
  list-style: none;
  counter-reset: sources;
}

.source-index li {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 0.8fr 10rem;
  gap: 1rem;
  align-items: center;
  min-height: 4.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule-light);
  counter-increment: sources;
}

.source-index li::before {
  content: counter(sources, decimal-leading-zero);
  color: var(--ink-700);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.source-index li {
  grid-template-columns: 2.2rem 1.35fr 1.2fr 0.8fr 10rem;
}

.source-id,
.source-index li > span,
.source-index time {
  color: var(--ink-700);
  font-size: 0.68rem;
}

.source-index a {
  font-weight: 750;
}

.closing-strip {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
  padding: 1.25rem;
  background: var(--graphite-800);
  color: var(--dark-text);
}

.closing-strip p {
  max-width: 60ch;
  margin: 0;
  font-size: 0.78rem;
}

.closing-strip p:last-child {
  color: var(--dark-muted);
  text-align: right;
}

.page-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem var(--gutter);
  border-top: 1px solid var(--rule-dark);
  color: var(--dark-muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.page-footer p {
  margin: 0;
}

.page-footer a {
  color: var(--dark-text);
  text-decoration-color: transparent;
  text-underline-offset: 0.22em;
}

.page-footer a:hover {
  color: var(--sea-glass-soft);
  text-decoration-color: currentColor;
}

.page-footer__identity,
.page-footer__related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.page-footer__byline {
  color: var(--dark-muted);
  text-transform: none;
}

.page-footer__related {
  justify-content: flex-end;
}

.noscript-message {
  position: fixed;
  z-index: 99;
  right: 1rem;
  bottom: 1rem;
  max-width: 28rem;
  padding: 1rem;
  border: 1px solid var(--caveat);
  background: var(--graphite-950);
}

@keyframes load-track {
  from { transform: scaleX(0.25); }
  to { transform: scaleX(1); }
}

.subsection-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid currentColor;
}

.subsection-header h3,
.subsection-header p {
  margin: 0;
}

.subsection-header h3 {
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.8vw, 1.75rem);
  letter-spacing: -0.01em;
  line-height: 1.08;
  text-transform: uppercase;
}

.subsection-header p {
  max-width: 60ch;
  color: inherit;
  font-size: 0.78rem;
  opacity: 0.72;
}

.conclusion-board {
  display: grid;
  grid-template-columns: 0.85fr repeat(5, minmax(0, 1fr));
  margin-bottom: clamp(3rem, 6vw, 6rem);
  border: 1px solid var(--rule-light);
}

.board-label,
.conclusion-card {
  min-width: 0;
  min-height: 15rem;
  padding: 1.2rem;
  border-right: 1px solid var(--rule-light);
}

.board-label {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--graphite-800);
  color: var(--dark-text);
}

.board-label span,
.board-label small,
.conclusion-card > span {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.board-label strong {
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1;
  text-transform: uppercase;
}

.board-label small {
  color: var(--sea-glass-soft);
}

.conclusion-card:last-child {
  border-right: 0;
}

.conclusion-card > span {
  color: var(--ink-700);
}

.conclusion-card h3 {
  margin: 2.2rem 0 0;
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.conclusion-card p {
  margin: 0.7rem 0 0;
  color: var(--ink-700);
  font-size: 0.76rem;
}

.insight-block,
.operations-grid,
.market-model,
.cluster-runway,
.regional-playbooks,
.directory-intro,
.influence-section,
.measurement-section,
.operating-section {
  margin-top: clamp(3rem, 6vw, 6rem);
}

.channel-columns,
.playbook-columns,
.segment-columns {
  display: grid;
  padding: 0.55rem 1rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.channel-columns,
.channel-record {
  grid-template-columns: 1fr 1.65fr 1.7fr 0.75fr;
}

.channel-columns {
  border-bottom: 1px solid var(--rule-light);
}

.channel-board {
  border-bottom: 1px solid var(--rule-light);
}

.channel-record {
  display: grid;
  min-height: 8.5rem;
  background: var(--paper-100);
  color: var(--ink-900);
  clip-path: polygon(0.45rem 0, calc(100% - 0.45rem) 0, 100% 50%, calc(100% - 0.45rem) 100%, 0.45rem 100%, 0 65%, 0.25rem 50%, 0 35%);
}

.channel-record > * {
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border-right: 1px solid var(--rule-light);
}

.channel-record header strong,
.channel-record header span,
.channel-record div strong,
.channel-record div span {
  display: block;
}

.channel-record header strong {
  font-family: var(--display);
  font-size: 1.2rem;
  text-transform: uppercase;
}

.channel-record header span,
.channel-record small {
  color: var(--ink-700);
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.channel-record p,
.channel-record div {
  color: var(--ink-700);
  font-size: 0.75rem;
}

.channel-record div strong {
  color: var(--ink-900);
}

.channel-record div span {
  margin-top: 0.45rem;
}

.query-manifest,
.cadence-board,
.database-fields {
  border-top: 1px solid var(--rule-light);
}

.query-row {
  display: grid;
  grid-template-columns: 6.5rem 1.2fr 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule-light);
}

.query-row strong {
  font-family: var(--display);
  text-transform: uppercase;
}

.query-row code,
.query-row p {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.7rem;
}

.query-row code {
  font-family: var(--mono);
}

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

.cadence-row {
  display: grid;
  grid-template-columns: 5rem 1fr 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule-light);
}

.cadence-row strong {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.cadence-row p,
.cadence-row span {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.72rem;
}

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

.database-fields li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.8rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule-light);
}

.database-fields span {
  color: var(--ink-700);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.database-fields p {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.74rem;
}

.market-model {
  border: 1px solid var(--rule-dark);
  background: var(--graphite-950);
}

.market-model__intro {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem;
  border-bottom: 1px solid var(--rule-dark);
}

.market-model__intro h3,
.market-model__intro p {
  margin: 0;
}

.market-model__intro h3 {
  font-family: var(--display);
  font-size: 1.8rem;
  text-transform: uppercase;
}

.market-model__intro p {
  max-width: 76ch;
  margin-top: 0.5rem;
  color: var(--dark-muted);
  font-size: 0.78rem;
}

.dimension-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.dimension-card {
  min-height: 13rem;
  padding: 1.4rem;
  border-right: 1px solid var(--rule-dark);
}

.dimension-card:last-child {
  border-right: 0;
}

.dimension-card > strong {
  color: var(--amber-soft);
  font-family: var(--mono);
  font-size: 2.2rem;
}

.dimension-card h4 {
  margin: 2rem 0 0;
  font-family: var(--display);
  font-size: 1.25rem;
  text-transform: uppercase;
}

.dimension-card p {
  margin: 0.55rem 0 0;
  color: var(--dark-muted);
  font-size: 0.75rem;
}

.cluster-runway .cluster-manifest {
  border-color: var(--rule-dark);
}

.cluster-runway .cluster-row {
  min-height: 0;
  border-color: var(--rule-dark);
}

.cluster-runway .cluster-code,
.cluster-runway .cluster-row p {
  color: var(--dark-muted);
}

.regional-playbook {
  border: 1px solid var(--rule-dark);
  border-bottom: 0;
}

.regional-playbook:last-child {
  border-bottom: 1px solid var(--rule-dark);
}

.regional-playbook summary {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.2rem;
  background: var(--graphite-950);
  color: var(--dark-text);
  cursor: pointer;
}

.regional-playbook summary span,
.regional-playbook summary small {
  color: var(--sea-glass-soft);
  font-family: var(--mono);
  font-size: 0.64rem;
  text-transform: uppercase;
}

.regional-playbook summary strong {
  font-family: var(--display);
  font-size: 1.25rem;
  text-transform: uppercase;
}

.playbook-columns,
.country-playbook {
  grid-template-columns: 1fr 1.45fr 1.5fr 1.1fr;
}

.playbook-columns {
  border-top: 1px solid var(--rule-dark);
  color: var(--dark-muted);
}

.country-playbook {
  display: grid;
  background: var(--paper-100);
  color: var(--ink-900);
}

.country-playbook > * {
  min-width: 0;
  padding: 1rem;
  border-right: 1px solid var(--rule-light);
  border-top: 1px solid var(--rule-light);
}

.country-playbook > *:last-child {
  border-right: 0;
}

.country-playbook h4,
.country-playbook p {
  margin: 0;
}

.country-playbook h4 {
  font-family: var(--display);
  font-size: 1.15rem;
  text-transform: uppercase;
}

.country-playbook header span,
.country-playbook div > span,
.country-playbook small,
.country-playbook p {
  display: block;
  margin-top: 0.45rem;
  color: var(--ink-700);
  font-size: 0.7rem;
}

.country-playbook div > strong {
  display: block;
  font-size: 0.72rem;
}

.playbook-evidence nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.playbook-evidence a {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
}

.directory-intro {
  margin-bottom: 1rem;
}

.segment-board,
.metric-board,
.owner-board {
  border: 1px solid var(--rule-dark);
}

.segment-columns,
.segment-row {
  grid-template-columns: 1fr 1.25fr 1.45fr;
}

.segment-columns {
  color: var(--dark-muted);
}

.segment-row {
  display: grid;
  background: var(--paper-100);
  color: var(--ink-900);
}

.segment-row > * {
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border-top: 1px solid var(--rule-light);
  border-right: 1px solid var(--rule-light);
}

.segment-row > *:last-child {
  border-right: 0;
}

.segment-row h4 {
  font-family: var(--display);
  font-size: 1.1rem;
  text-transform: uppercase;
}

.segment-row p,
.segment-row span {
  color: var(--ink-700);
  font-size: 0.73rem;
}

.metric-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.metric-row {
  min-width: 0;
  padding: 1.2rem;
  border-right: 1px solid var(--rule-dark);
}

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

.metric-row h4 {
  min-height: 3rem;
  margin: 0;
  color: var(--sea-glass-soft);
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1;
  text-transform: uppercase;
}

.metric-row div {
  margin-top: 1.25rem;
}

.metric-row strong {
  color: var(--amber-soft);
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
}

.metric-row p {
  margin: 0.35rem 0 0;
  color: var(--dark-muted);
  font-size: 0.7rem;
}

.owner-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.owner-card {
  min-height: 13rem;
  padding: 1.4rem;
  border-right: 1px solid var(--rule-dark);
}

.owner-card:last-child {
  border-right: 0;
}

.owner-card h4 {
  margin: 1.8rem 0 0;
  font-family: var(--display);
  font-size: 1.25rem;
  text-transform: uppercase;
}

.owner-card p {
  margin: 0.6rem 0 0;
  color: var(--dark-muted);
  font-size: 0.74rem;
}

/* Decision-path refinement */

.route-count {
  margin: 0 0 0.75rem;
  color: var(--sea-glass-soft);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.route-directory-link,
.route-recap__action {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--amber);
  color: var(--amber-soft);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.route-directory-link {
  margin-top: 1rem;
}

.route-directory-link:hover,
.route-recap__action:hover {
  background: var(--amber);
  color: var(--ink-900);
}

.brief-conclusions {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.conclusion-board--brief {
  margin-bottom: 0;
  background: var(--paper-100);
  color: var(--ink-900);
}

.directory-shell {
  padding: clamp(1rem, 2vw, 1.5rem);
  background: var(--graphite-900);
  color: var(--dark-text);
}

.china-inline {
  margin-top: clamp(4rem, 8vw, 8rem);
  padding-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--rule-dark);
  scroll-margin-top: 3rem;
}

.china-inline .section-heading {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.research-primer {
  max-width: 72rem;
}

.research-disclosures,
.operating-disclosures {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--rule-light);
}

.research-dossier,
.operating-disclosure,
.source-ledger {
  border-bottom: 1px solid var(--rule-light);
}

.research-dossier summary,
.operating-disclosure summary,
.source-ledger summary {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 4.5rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
}

.research-dossier summary:hover,
.source-ledger summary:hover {
  background: var(--paper-200);
}

.research-dossier summary span,
.research-dossier summary small,
.operating-disclosure summary span,
.operating-disclosure summary small,
.source-ledger summary span,
.source-ledger summary small {
  color: var(--ink-700);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.research-dossier summary strong,
.operating-disclosure summary strong,
.source-ledger summary strong {
  font-family: var(--display);
  font-size: 1.25rem;
  text-transform: uppercase;
}

.research-dossier__body {
  padding: 1rem 0 2rem;
}

.dossier-intro {
  max-width: 72ch;
  margin: 0 0 1rem;
  color: var(--ink-700);
}

.research-dossier__body.operations-grid {
  margin-top: 0;
}

.operating-playbook {
  margin-top: clamp(3rem, 6vw, 6rem);
}

.operating-disclosures {
  border-color: var(--rule-dark);
}

.operating-disclosure {
  border-color: var(--rule-dark);
}

.operating-disclosure summary:hover {
  background: var(--graphite-800);
}

.operating-disclosure summary span,
.operating-disclosure summary small {
  color: var(--sea-glass-soft);
}

.operating-disclosure summary strong {
  color: var(--dark-text);
}

.operating-disclosure ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  background: var(--rule-dark);
  list-style-position: inside;
}

.operating-disclosure li {
  min-width: 0;
  padding: 1rem;
  background: var(--graphite-950);
  color: var(--dark-muted);
  font-size: 0.875rem;
}

.source-ledger {
  margin-top: 2rem;
  border-top: 1px solid var(--rule-light);
}

.source-ledger .source-index {
  margin-top: 0;
}

.route-recap {
  display: grid;
  grid-template-columns: 1.5fr 0.6fr 1fr;
  gap: 1rem;
  align-items: stretch;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--graphite-900);
  color: var(--dark-text);
}

.route-recap__intro span,
.route-recap__preview > span,
.route-recap__count span {
  color: var(--sea-glass-soft);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.route-recap__intro h3 {
  max-width: 18ch;
  margin: 0.75rem 0 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.route-recap__intro p,
.route-recap__caveat {
  color: var(--dark-muted);
}

.route-recap__count {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--rule-dark);
  padding: 1rem;
}

.route-recap__count strong {
  color: var(--amber);
  font-family: var(--display);
  font-size: 4rem;
  line-height: 0.9;
}

.route-recap__preview {
  padding: 1rem;
  border: 1px solid var(--rule-dark);
}

.route-recap__preview ul {
  display: grid;
  gap: 0.45rem;
  margin: 0.8rem 0 0;
  padding-left: 1rem;
}

.route-recap__preview a {
  color: var(--dark-text);
  font-weight: 750;
}

.route-recap__action {
  align-self: end;
  justify-self: start;
}

.route-recap__caveat {
  grid-column: 2 / -1;
  align-self: end;
  margin: 0;
  font-size: 0.75rem;
}

.route-strip a,
.playbook-evidence a,
.community-source a,
.source-index a,
.route-recap__preview a {
  display: inline-flex;
  min-height: 1.5rem;
  align-items: center;
}

.evidence-anchor small,
.fit-tags li,
.verified-mark,
.playbook-evidence a {
  font-size: 0.75rem;
}

.channel-record p,
.channel-record div > span,
.query-row p,
.cadence-row p,
.cadence-row span,
.country-playbook p,
.country-playbook header span,
.country-playbook div > span,
.country-playbook small,
.community-strip header p,
.community-field span,
.community-field > p,
.community-field--move p,
.community-source a,
.community-source small,
.segment-row p,
.segment-row span,
.metric-row p,
.owner-card p {
  font-size: 0.875rem;
}

@media (max-width: 78rem) {
  :root {
    --rail-width: 7.2rem;
  }

  .rail-brand {
    grid-template-columns: 1fr;
  }

  .rail-brand strong {
    display: none;
  }

  .conclusion-board {
    grid-template-columns: repeat(3, 1fr);
  }

  .board-label {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    min-height: 5rem;
    align-items: center;
  }

  .conclusion-card:nth-child(4) {
    border-right: 0;
  }

  .channel-columns,
  .channel-record {
    grid-template-columns: 0.85fr 1.35fr 1.55fr;
  }

  .channel-columns span:last-child {
    display: none;
  }

  .channel-record small {
    grid-column: 1 / -1;
    border-top: 1px solid var(--rule-light);
    border-right: 0;
  }

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

  .dimension-card:nth-child(2),
  .owner-card:nth-child(2) {
    border-right: 0;
  }

  .dimension-card:nth-child(-n + 2),
  .owner-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--rule-dark);
  }

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

  .metric-row:nth-child(3) {
    border-right: 0;
  }

  .metric-row:nth-child(-n + 3) {
    border-bottom: 1px solid var(--rule-dark);
  }

  .brief-grid {
    grid-template-columns: minmax(17rem, 0.7fr) minmax(32rem, 1.5fr);
  }

  .route-columns,
  .route-strip {
    grid-template-columns: 1.1fr 0.8fr 1.7fr 3.5rem;
  }

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

  .evidence-band__label {
    grid-column: 1 / -1;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--rule-light);
  }

  .directory-controls {
    grid-template-columns: 1fr 0.5fr;
  }

  .field-control--search {
    grid-column: 1 / 2;
  }

  .community-columns {
    display: none;
  }

  .community-strip {
    grid-template-columns: 1fr 1.3fr 1.3fr;
  }

  .community-strip .community-field--move {
    grid-column: 1 / 3;
    border-top: 1px solid var(--rule-light);
  }

  .community-source {
    grid-column: 3;
    border-top: 1px solid var(--rule-light);
  }

  .china-layers,
  .engagement-route {
    grid-template-columns: repeat(2, 1fr);
  }

  .china-layer:nth-child(2) {
    border-right: 0;
  }

  .china-layer:nth-child(-n + 2) {
    border-bottom: 1px solid var(--rule-light);
  }

  .engagement-route li:nth-child(2),
  .engagement-route li:nth-child(4) {
    border-right: 1px solid var(--rule-dark);
  }

  .route-recap {
    grid-template-columns: 1fr 1fr;
  }

  .route-recap__preview,
  .route-recap__caveat {
    grid-column: 1 / -1;
  }
}

@media (max-width: 64rem) {
  .brief-grid {
    grid-template-columns: 1fr;
  }

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

  .playbook-columns {
    display: none;
  }

  .country-playbook {
    grid-template-columns: 1fr 1.3fr;
  }

  .country-playbook > *:nth-child(2) {
    border-right: 0;
  }

  .country-playbook > *:nth-child(n + 3) {
    border-top: 1px solid var(--rule-light);
  }

  .segment-columns,
  .segment-row {
    grid-template-columns: 1fr 1.4fr;
  }

  .segment-columns span:last-child {
    display: none;
  }

  .segment-row > span {
    grid-column: 1 / -1;
    border-top: 1px solid var(--rule-light);
    border-right: 0;
  }

  #brief-title {
    max-width: 12ch;
  }

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

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

  .source-index li {
    grid-template-columns: 2.2rem 1fr 1fr;
  }

  .source-id,
  .source-index time {
    grid-column: auto;
  }

  .source-index li > span:nth-of-type(2) {
    display: none;
  }

  .route-recap {
    grid-template-columns: 1fr;
  }

  .route-recap__preview,
  .route-recap__caveat {
    grid-column: 1;
  }
}

@media (max-width: 45rem) {
  :root {
    --rail-width: 0;
    --gutter: 1rem;
  }

  .app-shell {
    display: block;
  }

  .briefing-rail {
    position: sticky;
    top: 0;
    z-index: 30;
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule-dark);
  }

  .briefing-rail::after {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    display: grid;
    width: 2.75rem;
    height: 3.6rem;
    place-items: center;
    border-left: 1px solid var(--sea-glass);
    background: var(--graphite-950);
    color: var(--sea-glass-soft);
    content: "→";
    font-family: var(--mono);
    pointer-events: none;
  }

  .rail-brand,
  .rail-status {
    display: none;
  }

  .rail-list {
    display: flex;
    padding-right: 2.75rem;
    overflow-x: auto;
    flex-direction: row;
    scrollbar-width: thin;
  }

  .rail-list li {
    flex: 0 0 auto;
    min-height: 0;
  }

  .rail-list a {
    width: 7.4rem;
    min-height: 3.6rem;
    padding: 0.45rem 0.75rem;
    border-right: 1px solid var(--rule-dark);
    border-bottom: 0;
  }

  .rail-list a::after {
    top: auto;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 3px;
  }

  .rail-list a span {
    font-size: 1rem;
  }

  .top-strip {
    position: relative;
    min-height: 3.25rem;
    overflow: visible;
    gap: 0.75rem;
  }

  .top-strip__title {
    font-size: 0.72rem;
    white-space: normal;
  }

  .sheet-download,
  .share-trigger {
    width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.5rem;
  }

  .sheet-download > span,
  .share-trigger > span {
    display: none;
  }

  .share-popover {
    width: min(16rem, calc(100vw - 2rem));
  }

  .subsection-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .conclusion-board {
    grid-template-columns: 1fr;
  }

  .board-label {
    display: flex;
    grid-column: auto;
    min-height: 8rem;
  }

  .conclusion-card,
  .conclusion-card:nth-child(4) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule-light);
  }

  .conclusion-card h3 {
    margin-top: 1.25rem;
  }

  .channel-columns,
  .segment-columns {
    display: none;
  }

  .channel-record,
  .query-row,
  .cadence-row,
  .country-playbook,
  .segment-row {
    grid-template-columns: 1fr;
  }

  .channel-record > *,
  .country-playbook > *,
  .segment-row > * {
    border-right: 0;
    border-bottom: 1px solid var(--rule-light);
  }

  .channel-record small,
  .segment-row > span {
    grid-column: auto;
  }

  .query-row {
    gap: 0.45rem;
  }

  .cadence-row {
    gap: 0.55rem;
  }

  .market-model__intro {
    grid-template-columns: 1fr;
  }

  .dimension-board,
  .metric-board,
  .owner-board {
    grid-template-columns: 1fr;
  }

  .dimension-card,
  .dimension-card:nth-child(2),
  .owner-card,
  .owner-card:nth-child(2),
  .metric-row,
  .metric-row:nth-child(3) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule-dark);
  }

  .regional-playbook summary {
    grid-template-columns: 3.3rem minmax(0, 1fr);
  }

  .regional-playbook summary small {
    grid-column: 2;
  }

  .brief-section {
    min-height: 0;
    padding-top: 4rem;
    padding-bottom: 4rem;
    scroll-margin-top: 3.6rem;
  }

  #brief {
    padding-top: 1rem;
  }

  .brief-grid {
    border: 0;
  }

  .decision-panel,
  .route-board {
    padding: 1.25rem;
  }

  .document-coordinate {
    margin-bottom: 1.75rem;
  }

  #brief-title {
    max-width: 10ch;
    font-size: clamp(2.24rem, 10.5vw, 3.22rem);
  }

  .goal-buttons {
    grid-template-columns: 1fr;
  }

  .route-board__header,
  .china-board__header,
  .closing-strip,
  .directory-status {
    align-items: flex-start;
    flex-direction: column;
  }

  .route-columns {
    display: none;
  }

  .route-strip {
    grid-template-columns: 1fr auto;
    gap: 0.45rem 0.75rem;
    padding: 0.9rem 1.1rem;
  }

  .route-strip > span,
  .route-strip p {
    grid-column: 1 / -1;
  }

  .route-strip a {
    grid-column: 2;
    grid-row: 1;
  }

  .route-directory-link,
  .route-recap__action {
    width: 100%;
    min-height: 3rem;
  }

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

  .evidence-band__label {
    grid-column: 1 / -1;
  }

  .evidence-anchor:nth-of-type(2n) {
    border-right: 0;
  }

  .section-heading {
    grid-template-columns: 3.2rem minmax(0, 1fr);
  }

  .section-heading__code {
    font-size: 1.75rem;
  }

  .section-heading h2 {
    font-size: clamp(1.82rem, 8.4vw, 2.8rem);
  }

  .signal-row {
    grid-template-columns: 2.8rem 1fr;
  }

  .signal-row > span:last-child {
    grid-column: 2;
  }

  .directory-controls {
    grid-template-columns: 1fr;
  }

  .field-control--search {
    grid-column: auto;
  }

  .compact-goals > div {
    grid-template-columns: repeat(2, 1fr);
  }

  .community-strip {
    grid-template-columns: 1fr;
    clip-path: polygon(0.45rem 0, calc(100% - 0.45rem) 0, 100% 1rem, 100% calc(100% - 1rem), calc(100% - 0.45rem) 100%, 0.45rem 100%, 0 calc(100% - 1rem), 0 1rem);
  }

  .community-strip > *,
  .community-strip .community-field--move,
  .community-source {
    grid-column: 1;
    border-right: 0;
    border-bottom: 1px solid var(--rule-light);
  }

  .community-source {
    border-bottom: 0;
  }

  .china-layers,
  .engagement-route,
  .methodology-grid {
    grid-template-columns: 1fr;
  }

  .research-dossier summary,
  .operating-disclosure summary,
  .source-ledger summary {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .research-dossier summary small,
  .operating-disclosure summary small,
  .source-ledger summary small {
    grid-column: 2;
  }

  .operating-disclosure ol {
    grid-template-columns: 1fr;
  }

  .china-layer,
  .china-layer:nth-child(2),
  .china-layer:nth-child(-n + 2),
  .methodology-grid details,
  .methodology-grid details:last-child {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule-light);
  }

  .engagement-route li,
  .engagement-route li:nth-child(2),
  .engagement-route li:nth-child(4),
  .engagement-route li:last-child {
    min-height: 0;
    border-right: 1px solid var(--rule-dark);
    border-bottom: 0;
  }

  .engagement-route li:last-child {
    border-bottom: 1px solid var(--rule-dark);
  }

  .engagement-route li:not(:last-child)::after {
    top: auto;
    right: 1.5rem;
    bottom: -0.55rem;
    transform: rotate(135deg);
  }

  .decision-rule {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .route-strip a,
  .playbook-evidence a,
  .community-source a,
  .source-index a,
  .route-recap__preview a {
    min-height: 2.75rem;
  }

  .source-index li {
    grid-template-columns: 2rem 1fr;
    gap: 0.5rem 0.75rem;
    padding: 1rem 0;
  }

  .source-index li > * {
    grid-column: 2;
  }

  .source-index li > span:nth-of-type(2) {
    display: block;
  }

  .closing-strip p:last-child {
    text-align: left;
  }

  .page-footer {
    flex-direction: column;
  }

  .page-footer__related {
    justify-content: flex-start;
  }
}

@media (max-width: 22rem) {
  .top-strip__title {
    max-width: 13rem;
    font-size: 0.68rem;
  }

  #brief-title {
    max-width: none;
    font-size: 2.1rem;
  }

  .section-heading {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .section-heading h2 {
    font-size: 1.54rem;
  }
}

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

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