:root {
  /* Color primitives */
  --ink: #202428;
  --ink-soft: #3d4349;
  --muted: #5f6670;
  --muted-soft: #7b838c;
  --canvas: #ffffff;
  --surface: #f6f8fa;
  --surface-raised: #fbfcfd;
  --surface-active: #eaf2f8;
  --surface-code: #f0f2f4;
  --line: #dde2e7;
  --line-strong: #c5cbd2;
  --evidence: #255f99;
  --evidence-strong: #174a78;
  --review: #8b5a00;
  --review-soft: #fff7e8;
  --stable: #2d6a4f;
  --stable-soft: #edf7f1;
  --danger: #9c4238;
  --danger-soft: #fff1ef;
  --overlay: rgb(32 36 40 / 38%);
  --topbar-surface: rgb(255 255 255 / 96%);

  /* Semantic color aliases */
  --text: var(--ink);
  --text-secondary: var(--ink-soft);
  --link: var(--evidence);
  --link-hover: var(--evidence-strong);

  /* Layout */
  --topbar: 3.25rem;
  --reading-width: 43.5rem;
  --article-width: 58rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --radius-small: 0.2rem;
  --radius-medium: 0.4rem;
  --shadow-dialog: 0 1rem 3rem rgb(32 36 40 / 14%);

  /* Typography: Pretendard is the single design-system family */
  --font-body: "Pretendard Variable", Pretendard, sans-serif;
  --font-data: "Pretendard Variable", Pretendard, sans-serif;
  --type-caption: 0.8125rem;
  --type-label: 0.875rem;
  --type-body: 1.0625rem;
  --type-table: 0.9375rem;
  --type-takeaway: 1.1875rem;
  --type-h3: 1.1875rem;
  --type-h2: 1.5rem;
  --type-h1: clamp(2rem, 2.2vw + 1rem, 2.5rem);
  --leading-body: 1.7;
  --tracking-tight: -0.018em;
  color: var(--text);
  background: var(--canvas);
  font-family: var(--font-body);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--type-body);
  line-height: var(--leading-body);
  overflow-wrap: anywhere;
  word-break: keep-all;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: var(--link);
  text-underline-offset: 0.16em;
}

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

button,
input {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.5rem;
  left: 0.5rem;
  transform: translateY(-150%);
  border-radius: var(--radius-small);
  padding: 0.55rem 0.75rem;
  background: var(--text);
  color: var(--canvas);
}

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

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  min-height: var(--topbar);
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 1rem;
  background: var(--topbar-surface);
}

.brand {
  color: var(--text);
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand strong {
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.search-trigger,
.nav-trigger,
.sidebar-head button {
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  min-height: 2.1rem;
  padding: 0.35rem 0.6rem;
  background: var(--canvas);
  color: var(--muted);
  cursor: pointer;
  font-size: var(--type-caption);
}

.search-trigger {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.search-trigger:hover,
.nav-trigger:hover,
.sidebar-head button:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.search-trigger kbd {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted-soft);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.app-shell {
  min-height: calc(100vh - var(--topbar));
}

.sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  width: min(19rem, 88vw);
  height: 100vh;
  overflow-y: auto;
  transform: translateX(-102%);
  border-right: 1px solid var(--line);
  background: var(--surface-raised);
  scrollbar-gutter: stable;
  transition: transform 160ms ease;
}

.sidebar.is-open {
  transform: translateX(0);
}

.sidebar-head {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  min-height: var(--topbar);
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 0.9rem;
  background: var(--surface-raised);
}

.sidebar-head strong {
  font-size: var(--type-label);
}

.sidebar nav {
  padding-bottom: 0.75rem;
}

.nav-group {
  margin: 0;
  padding: 0.85rem 0.65rem 0;
}

.nav-group h2,
.nav-disclosure > summary {
  margin: 0;
  padding: 0 0.4rem 0.28rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.nav-group ul,
.source-list,
.backlink-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-group li + li {
  margin-top: 0.08rem;
}

.nav-subgroup {
  margin-top: 0.55rem;
  border-top: 1px solid var(--line);
  padding-top: 0.45rem;
}

.nav-subgroup > details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 0.5rem;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 650;
  list-style: none;
}

.nav-subgroup > details > summary::before,
.nav-disclosure > summary::before {
  width: 0.38rem;
  height: 0.38rem;
  flex: 0 0 auto;
  margin-right: 0.48rem;
  transform: rotate(-45deg);
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transition: transform 120ms ease;
}

.nav-subgroup > details[open] > summary::before,
.nav-disclosure[open] > summary::before {
  transform: rotate(45deg);
}

.nav-subgroup > details > summary span:first-child,
.nav-disclosure > summary span:first-child {
  margin-right: auto;
}

.nav-subgroup > details > summary::-webkit-details-marker {
  display: none;
}

.nav-subgroup > details > summary span:last-child {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.nav-subgroup > details > ul {
  margin-top: 0.1rem;
}

.nav-subgroup > details > ul a {
  padding-left: 0.8rem;
  font-size: var(--type-caption);
}

.nav-group li > a {
  display: block;
  border-radius: var(--radius-small);
  padding: 0.42rem 0.5rem;
  color: var(--text-secondary);
  font-size: var(--type-label);
  line-height: 1.45;
  text-decoration: none;
}

.nav-group li > a:hover {
  background: var(--surface);
  color: var(--text);
}

.nav-group li > a.is-current {
  background: var(--surface-active);
  color: var(--evidence-strong);
  font-weight: 650;
}

.nav-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
}

.nav-disclosure > summary::-webkit-details-marker {
  display: none;
}

.nav-disclosure > summary span:last-child {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.nav-disclosure[open] > summary {
  margin-bottom: 0.25rem;
}

.log-link {
  display: block;
  margin: 0.9rem 1rem 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
  color: var(--muted);
  font-size: var(--type-caption);
}

.nav-backdrop {
  position: fixed;
  z-index: 45;
  inset: 0;
  display: none;
  border: 0;
  background: var(--overlay);
}

body.nav-open .nav-backdrop {
  display: block;
}

.article {
  width: 100%;
  max-width: var(--article-width);
  margin: 0 auto;
  padding: var(--space-7) var(--space-5) 5rem;
}

.article-header,
.key-takeaway,
.document-tools,
.prose > :where(p, ul, ol, blockquote, pre, h2, h3, h4, details, figure, .table-scroll),
.article-footer {
  max-width: var(--reading-width);
  margin-right: auto;
  margin-left: auto;
}

.article-header {
  margin-bottom: var(--space-5);
  border-left: 3px solid var(--line-strong);
  padding-left: var(--space-4);
}

body[data-document-status="seed"] .article-header {
  border-left-color: var(--review);
}

body[data-document-status="reviewed"] .article-header {
  border-left-color: var(--evidence);
}

body[data-document-status="stable"] .article-header {
  border-left-color: var(--stable);
}

body[data-document-status="stale"] .article-header {
  border-left-color: var(--danger);
}

.page--home .article-header {
  margin-bottom: var(--space-5);
  border-left: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--space-5);
  padding-left: 0;
}

.page-type--hub .article-header h1 {
  font-size: clamp(2.125rem, 2.4vw + 1rem, 2.75rem);
}

.business-model-section {
  width: 100%;
  max-width: var(--reading-width);
  margin: var(--space-6) auto var(--space-7);
}

.business-model-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-2);
}

.business-model-heading h2 {
  margin: 0.12rem 0 0;
  font-size: var(--type-h2);
  letter-spacing: var(--tracking-tight);
  line-height: 1.3;
}

.business-model-stage {
  margin: 0;
  color: var(--evidence-strong);
  font-size: var(--type-caption);
  font-weight: 700;
}

.business-model-caption {
  max-width: var(--reading-width);
  margin: 0 0 var(--space-4);
  color: var(--muted);
  font-size: var(--type-label);
  line-height: 1.55;
}

.business-model-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2);
}

.business-model-canvas {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-medium);
  background: var(--line-strong);
}

.business-model-block {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: var(--space-4);
  background: var(--canvas);
}

.business-model-block--partners {
  grid-column: 5 / 7;
  grid-row: 3;
}

.business-model-block--activities {
  grid-column: 1 / 3;
  grid-row: 3;
}

.business-model-block--resources {
  grid-column: 3 / 5;
  grid-row: 3;
}

.business-model-block--value {
  grid-column: 1 / 7;
  grid-row: 1;
  background: var(--surface-active);
}

.business-model-block--relationships {
  grid-column: 3 / 5;
  grid-row: 2;
}

.business-model-block--channels {
  grid-column: 5 / 7;
  grid-row: 2;
}

.business-model-block--segments {
  grid-column: 1 / 3;
  grid-row: 2;
}

.business-model-block--costs {
  grid-column: 1 / 4;
  grid-row: 4;
  background: var(--surface);
}

.business-model-block--revenue {
  grid-column: 4 / 7;
  grid-row: 4;
  background: var(--surface);
}

.business-model-block-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--space-2);
}

.business-model-block-head p {
  margin: 0 0 0.1rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.business-model-block h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.business-model-state {
  display: inline-flex;
  min-height: 1.45rem;
  flex: 0 0 auto;
  align-items: center;
  border-radius: 999px;
  padding: 0.16rem 0.46rem;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.business-model-state--partial {
  background: var(--surface-active);
  color: var(--evidence-strong);
}

.business-model-state--hypothesis {
  background: var(--review-soft);
  color: var(--review);
}

.business-model-state--unknown {
  background: var(--surface-code);
  color: var(--muted);
}

.business-model-block > ul {
  margin: var(--space-3) 0 var(--space-4);
  padding-left: 1rem;
  color: var(--text-secondary);
  font-size: var(--type-label);
  line-height: 1.55;
}

.business-model-block > ul li {
  margin: 0.28rem 0;
}

.business-model-block > ul li::marker {
  color: var(--muted-soft);
}

.business-model-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.65rem;
  margin-top: auto;
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
}

.business-model-links a {
  color: var(--evidence-strong);
  font-size: var(--type-caption);
  font-weight: 650;
  text-decoration: none;
}

.business-model-links a:hover {
  text-decoration: underline;
}

.competitor-map {
  width: 100%;
  max-width: var(--reading-width);
  margin: var(--space-6) auto var(--space-7);
  border-top: 2px solid var(--evidence);
  border-bottom: 1px solid var(--line-strong);
  padding: var(--space-5) 0 var(--space-4);
}

.competitor-map-header {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-6);
  align-items: end;
}

.competitor-map-eyebrow,
.competitor-map-header h2,
.competitor-map-header > p,
.competitor-map-step,
.competitor-map-summary,
.competitor-map-footer p {
  margin: 0;
}

.competitor-map-eyebrow {
  color: var(--evidence);
  font-size: var(--type-caption);
  font-weight: 750;
}

.competitor-map-header h2 {
  margin-top: 0.18rem;
  color: var(--text);
  font-size: var(--type-h2);
  letter-spacing: var(--tracking-tight);
  line-height: 1.3;
}

.competitor-map-header > p {
  color: var(--muted);
  font-size: var(--type-label);
  line-height: 1.55;
}

.competitor-map-phases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.4rem;
  margin: var(--space-6) 0;
  padding: 0;
  list-style: none;
}

.competitor-map-phase {
  position: relative;
  min-width: 0;
  border-top: 3px solid var(--line-strong);
  padding-top: var(--space-3);
}

.competitor-map-phase:not(:last-child)::after {
  position: absolute;
  top: -0.38rem;
  right: -1.42rem;
  width: 0.55rem;
  height: 0.55rem;
  transform: rotate(45deg);
  border-top: 2px solid var(--evidence);
  border-right: 2px solid var(--evidence);
  content: "";
}

.competitor-map-step {
  color: var(--evidence);
  font-size: var(--type-caption);
  font-weight: 750;
}

.competitor-map-phase h3 {
  margin: 0.15rem 0 var(--space-2);
  color: var(--text);
  font-size: var(--type-h3);
  letter-spacing: -0.012em;
  line-height: 1.35;
}

.competitor-map-summary {
  min-height: 4.5em;
  color: var(--text-secondary);
  font-size: var(--type-label);
  line-height: 1.5;
}

.competitor-map-examples {
  margin-top: var(--space-3);
  border-top: 1px solid var(--line);
  padding-top: var(--space-2);
}

.competitor-map-examples > span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
}

.competitor-map-examples ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.55rem;
  margin: 0.25rem 0 0;
  padding: 0;
  color: var(--text-secondary);
  font-size: var(--type-caption);
  line-height: 1.45;
  list-style: none;
}

.competitor-map-examples li:not(:last-child)::after {
  margin-left: 0.55rem;
  color: var(--line-strong);
  content: "/";
}

.competitor-map-hypothesis {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  border: 1px solid var(--line-strong);
  background: var(--surface-active);
}

.competitor-map-hypothesis > p {
  display: flex;
  align-items: center;
  margin: 0;
  border-right: 1px solid var(--line-strong);
  padding: var(--space-3);
  color: var(--evidence-strong);
  font-size: var(--type-caption);
  font-weight: 750;
  line-height: 1.4;
}

.competitor-map-hypothesis ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.competitor-map-hypothesis li {
  position: relative;
  min-width: 0;
  padding: var(--space-3);
}

.competitor-map-hypothesis li + li {
  border-left: 1px solid var(--line-strong);
}

.competitor-map-hypothesis strong,
.competitor-map-hypothesis span {
  display: block;
}

.competitor-map-hypothesis strong {
  color: var(--text);
  font-size: var(--type-label);
  line-height: 1.4;
}

.competitor-map-hypothesis span {
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.competitor-map-footer {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: var(--type-caption);
  line-height: 1.5;
}

.competitor-map-footer a {
  flex: 0 0 auto;
  font-weight: 650;
  white-space: nowrap;
}

.native-diagram {
  width: 100%;
  max-width: var(--reading-width);
  margin: var(--space-6) auto var(--space-7);
  border-top: 2px solid var(--evidence);
  border-bottom: 1px solid var(--line-strong);
  padding: var(--space-5) 0 var(--space-4);
}

.native-diagram-header {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-6);
  align-items: end;
}

.native-diagram-header p,
.native-diagram-header h2,
.native-diagram-footer p,
.native-diagram h3,
.native-diagram ol,
.native-diagram ul {
  margin: 0;
}

.native-diagram ol,
.native-diagram ul {
  padding: 0;
  list-style: none;
}

.native-diagram-header > div > p {
  color: var(--evidence);
  font-size: var(--type-caption);
  font-weight: 750;
}

.native-diagram-header h2 {
  margin-top: 0.18rem;
  color: var(--text);
  font-size: var(--type-h2);
  letter-spacing: var(--tracking-tight);
  line-height: 1.3;
}

.native-diagram-header > p {
  color: var(--muted);
  font-size: var(--type-label);
  line-height: 1.55;
}

.native-diagram-body {
  margin: var(--space-6) 0;
}

.native-diagram-footer {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  color: var(--muted);
  font-size: var(--type-caption);
  line-height: 1.5;
}

.native-diagram-footer a {
  flex: 0 0 auto;
  font-weight: 650;
  white-space: nowrap;
}

.native-loop-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.native-loop-items li {
  position: relative;
  min-width: 0;
  border-top: 3px solid var(--line-strong);
  padding-top: var(--space-3);
}

.native-loop-items li:nth-child(3) {
  border-top-color: var(--evidence);
  background: var(--surface-active);
  padding-right: var(--space-2);
  padding-left: var(--space-2);
}

.native-loop-items li:not(:last-child)::after,
.native-flow li:not(:last-child)::after {
  position: absolute;
  top: -0.38rem;
  right: -0.72rem;
  width: 0.5rem;
  height: 0.5rem;
  transform: rotate(45deg);
  border-top: 2px solid var(--evidence);
  border-right: 2px solid var(--evidence);
  content: "";
}

.native-diagram-index,
.native-loop-items li > span {
  color: var(--evidence);
  font-size: var(--type-caption);
  font-weight: 700;
}

.native-loop-items h3 {
  margin-top: 0.12rem;
  color: var(--text);
  font-size: var(--type-h3);
  line-height: 1.35;
}

.native-loop-items li > p:not(.native-diagram-index) {
  margin: var(--space-2) 0 var(--space-3);
  color: var(--text-secondary);
  font-size: var(--type-label);
  line-height: 1.5;
}

.native-loop-items li > span {
  display: block;
  border-top: 1px solid var(--line);
  padding-top: var(--space-2);
  color: var(--muted);
  font-weight: 600;
}

.native-value-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 11rem;
  gap: var(--space-5);
  align-items: stretch;
}

.native-value-tiers {
  display: grid;
  gap: var(--space-2);
}

.native-value-tiers li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0 var(--space-3);
  min-width: 0;
  border-left: 4px solid var(--line-strong);
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
}

.native-value-tiers li:nth-child(1) {
  margin-left: 16%;
}

.native-value-tiers li:nth-child(2) {
  margin-left: 8%;
  border-left-color: var(--evidence);
  background: var(--surface-active);
}

.native-value-tiers li:nth-child(3) {
  border-left-color: var(--stable);
  background: var(--stable-soft);
}

.native-value-tiers span {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--muted);
  font-size: var(--type-caption);
  font-weight: 700;
}

.native-value-tiers strong {
  color: var(--text);
  font-size: var(--type-label);
  line-height: 1.4;
}

.native-value-tiers p {
  margin: 0.18rem 0 0;
  color: var(--text-secondary);
  font-size: var(--type-caption);
  line-height: 1.45;
}

.native-value-checks {
  border: 1px solid var(--line-strong);
  padding: var(--space-3);
}

.native-value-checks h3,
.native-flow-metrics > strong,
.native-sample-dimensions h3 {
  color: var(--text);
  font-size: var(--type-label);
  line-height: 1.4;
}

.native-value-checks ul {
  margin-top: var(--space-2);
}

.native-value-checks li {
  border-top: 1px solid var(--line);
  padding: 0.35rem 0;
  color: var(--text-secondary);
  font-size: var(--type-caption);
  line-height: 1.4;
}

.native-paired-flows {
  display: grid;
  gap: var(--space-4);
}

.native-flow {
  border: 1px solid var(--line-strong);
  padding: var(--space-3);
}

.native-flow--positive {
  border-left: 4px solid var(--stable);
  background: var(--stable-soft);
}

.native-flow--danger {
  border-left: 4px solid var(--danger);
  background: var(--danger-soft);
}

.native-flow > h3 {
  color: var(--text);
  font-size: var(--type-label);
  line-height: 1.4;
}

.native-flow ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-3);
}

.native-flow li {
  position: relative;
  min-width: 0;
  border-top: 2px solid var(--line-strong);
  padding-top: var(--space-2);
}

.native-flow li strong,
.native-flow li span {
  display: block;
}

.native-flow li strong {
  color: var(--text);
  font-size: var(--type-label);
  line-height: 1.4;
}

.native-flow li span {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: var(--type-caption);
  line-height: 1.4;
}

.native-flow-metrics {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  margin-top: var(--space-4);
  border-top: 1px solid var(--line);
  padding-top: var(--space-3);
}

.native-flow-metrics ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.native-flow-metrics li,
.native-sample-dimensions li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  background: var(--canvas);
  color: var(--text-secondary);
  font-size: var(--type-caption);
  line-height: 1.4;
}

.native-layers-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10rem;
  gap: var(--space-4);
}

.native-layers li {
  display: grid;
  grid-template-columns: 2rem 5.5rem minmax(0, 1fr) 6rem;
  gap: var(--space-3);
  align-items: center;
  border-top: 1px solid var(--line);
  padding: var(--space-3) 0;
}

.native-layers li:first-child {
  border-top: 2px solid var(--line-strong);
}

.native-layer-index {
  color: var(--evidence);
  font-size: var(--type-caption);
  font-weight: 750;
}

.native-layers li strong {
  color: var(--text);
  font-size: var(--type-label);
  line-height: 1.4;
}

.native-layers li p {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--type-caption);
  line-height: 1.45;
}

.native-layer-outcome {
  color: var(--stable);
  font-size: var(--type-caption);
  font-weight: 700;
  text-align: right;
}

.native-layers-aside {
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--review);
  padding: var(--space-3);
  background: var(--review-soft);
}

.native-layers-aside strong {
  color: var(--text);
  font-size: var(--type-label);
  line-height: 1.45;
}

.native-layers-aside p {
  margin: var(--space-2) 0 0;
  color: var(--text-secondary);
  font-size: var(--type-caption);
  line-height: 1.45;
}

.native-matrix {
  position: relative;
}

.native-matrix-x-axis {
  display: flex;
  justify-content: space-between;
  margin: 0 0 var(--space-2) 5.5rem;
  color: var(--muted);
  font-size: var(--type-caption);
  font-weight: 650;
}

.native-matrix-x-axis::before {
  position: absolute;
  top: 1.6rem;
  right: 0;
  left: 5.5rem;
  border-top: 1px solid var(--line-strong);
  content: "";
}

.native-matrix-y-axis {
  position: absolute;
  top: 3.25rem;
  bottom: 5.5rem;
  left: 0;
  display: flex;
  width: 4.5rem;
  flex-direction: column;
  justify-content: space-between;
  color: var(--muted);
  font-size: var(--type-caption);
  font-weight: 650;
  line-height: 1.35;
}

.native-matrix-cells {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-left: 5.5rem;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.native-matrix-cell {
  min-width: 0;
  min-height: 8rem;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: var(--space-4);
  background: var(--surface);
}

.native-matrix-cell--priority {
  background: var(--surface-active);
}

.native-matrix-cell-axis {
  display: none;
}

.native-matrix-priority {
  display: inline-block;
  margin-bottom: var(--space-2);
  color: var(--evidence);
  font-size: var(--type-caption);
  font-weight: 750;
}

.native-matrix-cell h3,
.native-matrix-comparison h3 {
  color: var(--text);
  font-size: var(--type-label);
  line-height: 1.4;
}

.native-matrix-cell > p:last-child,
.native-matrix-comparison p {
  margin: var(--space-2) 0 0;
  color: var(--text-secondary);
  font-size: var(--type-caption);
  line-height: 1.45;
}

.native-matrix-comparison {
  margin: var(--space-3) 0 0 5.5rem;
  border-left: 4px solid var(--review);
  padding: var(--space-3) var(--space-4);
  background: var(--review-soft);
}

.native-sample-heading {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.native-sample-heading strong {
  color: var(--evidence-strong);
  font-size: var(--type-h2);
  line-height: 1.2;
}

.native-sample-heading span {
  color: var(--muted);
  font-size: var(--type-caption);
}

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

.native-sample-groups > li {
  min-width: 0;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: var(--space-4);
}

.native-sample-groups > li > p {
  margin: 0;
  color: var(--evidence);
  font-size: var(--type-caption);
  font-weight: 750;
}

.native-sample-groups h3 {
  margin-top: 0.1rem;
  color: var(--text);
  font-size: var(--type-h3);
  line-height: 1.4;
}

.native-sample-detail {
  display: block;
  min-height: 4.4em;
  margin-top: var(--space-2);
  color: var(--text-secondary);
  font-size: var(--type-caption);
  line-height: 1.45;
}

.native-sample-dots {
  display: flex;
  gap: 0.3rem;
  margin: var(--space-3) 0 var(--space-2);
}

.native-sample-dots span {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-active);
  color: var(--evidence-strong);
  font-size: 0.68rem;
  font-weight: 700;
}

.native-sample-groups > li > strong {
  color: var(--text);
  font-size: var(--type-caption);
}

.native-sample-dimensions {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: var(--space-3);
  align-items: center;
  margin-top: var(--space-4);
}

.native-sample-dimensions ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.key-takeaway {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
  margin-bottom: var(--space-6);
  border-top: 2px solid var(--evidence);
  border-bottom: 1px solid var(--line);
  padding: var(--space-4) 0 var(--space-5);
}

.key-takeaway-label {
  margin: 0;
  color: var(--evidence);
  font-size: var(--type-caption);
  font-weight: 750;
  letter-spacing: 0.015em;
}

.key-takeaway-copy {
  color: var(--text);
  font-size: var(--type-takeaway);
  font-weight: 600;
  line-height: 1.58;
}

.key-takeaway-copy > :first-child {
  margin-top: 0;
}

.key-takeaway-copy > :last-child {
  margin-bottom: 0;
}

.key-takeaway-copy p,
.key-takeaway-copy ul,
.key-takeaway-copy ol,
.key-takeaway-copy blockquote {
  margin-top: 0.45rem;
  margin-bottom: 0.65rem;
}

.key-takeaway-copy ul,
.key-takeaway-copy ol {
  padding-left: 1.25rem;
}

.article-kicker {
  margin: 0 0 var(--space-2);
  color: var(--evidence);
  font-size: var(--type-caption);
  font-weight: 700;
  letter-spacing: 0.015em;
}

.article-header h1 {
  margin: 0;
  color: var(--text);
  font-size: var(--type-h1);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: 1.32;
}

.lede {
  max-width: var(--reading-width);
  margin: var(--space-2) 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.64;
}

.document-state {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin: var(--space-4) 0 0;
  padding: 0;
}

.document-state > div {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.document-state dt,
.document-state dd {
  margin: 0;
  font-size: var(--type-caption);
  line-height: 1.4;
}

.document-state dt {
  color: var(--muted-soft);
}

.document-state dd {
  color: var(--text-secondary);
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: var(--type-caption);
  font-weight: 700;
  white-space: nowrap;
}

.status-badge > span[aria-hidden="true"] {
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

.status-badge--seed {
  color: var(--review);
}

.status-badge--reviewed {
  color: var(--evidence);
}

.status-badge--stable {
  color: var(--stable);
}

.status-badge--stale {
  color: var(--danger);
}

.confidence--low {
  color: var(--review) !important;
}

.confidence--high {
  color: var(--stable) !important;
}

.document-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.4rem;
  margin-bottom: var(--space-6);
}

.document-panel,
.document-action {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: var(--type-caption);
}

.document-panel > summary,
.document-action {
  display: block;
  padding: 0.25rem 0.1rem;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.22em;
}

.document-panel + .document-panel,
.document-panel + .document-action,
.document-action + .document-panel {
  margin-left: 0.55rem;
}

.document-panel[open] {
  width: 100%;
  flex-basis: 100%;
  margin-left: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--surface);
}

.document-panel[open] > summary {
  padding: 0.55rem 0.7rem;
  text-decoration: none;
  font-weight: 650;
}

.document-panel-body {
  max-height: min(32rem, 62vh);
  overflow: auto;
  border-top: 1px solid var(--line);
  padding: 0.8rem;
  background: var(--canvas);
}

.document-metadata {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
}

.document-metadata div {
  min-width: 0;
}

.document-metadata dt {
  color: var(--muted);
  font-size: 0.75rem;
}

.document-metadata dd {
  margin: 0.08rem 0 0;
  color: var(--text);
  font-size: var(--type-label);
  font-variant-numeric: tabular-nums;
}

.document-info-section {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
}

.document-info-section h2 {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 0 0 0.55rem;
  font-size: var(--type-label);
}

.document-info-section h2 span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}

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

.toc li + li {
  margin-top: 0.08rem;
}

.toc a {
  display: block;
  border-left: 2px solid transparent;
  padding: 0.25rem 0.4rem;
  color: var(--muted);
  font-size: var(--type-label);
  line-height: 1.45;
  text-decoration: none;
}

.toc a:hover,
.toc a.is-active {
  border-left-color: var(--link);
  color: var(--text);
}

.toc-level-3 a {
  padding-left: 1rem;
}

.toc-level-4 a {
  padding-left: 1.55rem;
}

.source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1rem;
}

.source-list a,
.source-list > li {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.28rem 0;
  color: var(--text);
  line-height: 1.38;
  text-decoration: none;
}

.source-list a:hover strong {
  color: var(--link);
  text-decoration: underline;
}

.source-number {
  width: 1.6rem;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.source-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.source-copy strong,
.source-list > li > strong {
  font-size: var(--type-caption);
  font-weight: 600;
}

.source-copy > span {
  margin-top: 0.08rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.backlink-list li + li {
  margin-top: 0.25rem;
}

.backlink-list a {
  font-size: var(--type-caption);
}

.evidence-empty,
.rail-empty {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-caption);
}

.evidence-empty {
  display: flex;
  flex-direction: column;
}

.visual-gallery {
  width: 100%;
  max-width: var(--reading-width);
  margin: 0 auto 2.4rem;
}

.visual-reference {
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--space-3) 0;
}

.visual-image-link {
  display: block;
  background: var(--surface);
}

.visual-scroll {
  max-width: 100%;
  overflow-x: auto;
  background: var(--surface);
  scrollbar-gutter: stable;
}

.visual-scroll:focus-visible {
  outline-offset: 4px;
}

.visual-scroll-hint {
  position: sticky;
  left: 0;
  display: block;
  width: max-content;
  padding: 0.4rem 0.55rem;
  color: var(--muted);
  background: var(--surface);
  font-size: var(--type-caption);
  line-height: 1.35;
}

.visual-reference--diagram .visual-image-link,
.visual-reference--chart .visual-image-link,
.visual-reference--document .visual-image-link,
.visual-reference--screenshot .visual-image-link {
  min-width: 46rem;
}

.visual-image-link:focus-visible {
  outline-offset: 4px;
}

.visual-reference img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  background: var(--surface);
}

.visual-reference figcaption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: baseline;
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: var(--type-caption);
  line-height: 1.5;
}

.visual-reference figcaption > span:nth-child(2) {
  color: var(--text-secondary);
}

.visual-reference figcaption a {
  white-space: nowrap;
}

.visual-actions {
  display: inline-flex;
  gap: 0.7rem;
  white-space: nowrap;
}

.visual-kind {
  border-left: 2px solid currentColor;
  padding-left: 0.45rem;
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.visual-reference--chart .visual-image-link,
.visual-reference--chart img {
  background: var(--canvas);
}

.visual-reference--chart .visual-kind,
.visual-reference--diagram .visual-kind,
.visual-reference--document .visual-kind,
.visual-reference--screenshot .visual-kind {
  color: var(--evidence);
}

.visual-reference--concept .visual-kind {
  color: var(--review);
}

.prose {
  max-width: 100%;
  color: var(--text-secondary);
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

.page--home .prose > ul:first-of-type {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4) var(--space-5);
  padding: 0;
  list-style: none;
}

.page--home .prose > ul:first-of-type li {
  margin: 0;
  border-top: 1px solid var(--line-strong);
  padding: var(--space-3) 0 var(--space-2);
  color: var(--muted);
}

.page--home .prose > ul:first-of-type a {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.page--home .prose > ul:first-of-type a:hover {
  color: var(--link);
  text-decoration: underline;
}

.page-type--plan .prose > ol:first-of-type > li::marker {
  color: var(--evidence);
  font-weight: 750;
}

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

.prose h2,
.prose h3,
.prose h4 {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.42;
  scroll-margin-top: calc(var(--topbar) + 1rem);
}

.prose h2 {
  margin-top: 2.8rem;
  margin-bottom: 0.75rem;
  font-size: var(--type-h2);
}

.prose h3 {
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  font-size: var(--type-h3);
}

.prose h4 {
  margin-top: 1.7rem;
  margin-bottom: 0.5rem;
  font-size: var(--type-body);
}

.heading-anchor {
  margin-left: 0.35rem;
  color: var(--line-strong);
  font-size: 0.58em;
  font-weight: 500;
  opacity: 0;
  text-decoration: none;
}

.prose h2:hover .heading-anchor,
.prose h3:hover .heading-anchor,
.prose h4:hover .heading-anchor,
.heading-anchor:focus {
  opacity: 1;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose pre {
  margin-top: 0.8rem;
  margin-bottom: 1rem;
}

.prose strong {
  color: var(--text);
  font-weight: 700;
}

.prose ul,
.prose ol {
  padding-left: 1.4rem;
}

.prose li {
  margin: 0.3rem 0;
  padding-left: 0.1rem;
}

.prose li::marker {
  color: var(--muted);
}

.prose blockquote {
  border-left: 2px solid var(--evidence);
  padding: var(--space-2) 0 var(--space-2) var(--space-4);
  color: var(--text-secondary);
}

.prose blockquote p {
  margin: 0;
}

.prose code {
  border-radius: var(--radius-small);
  padding: 0.08rem 0.22rem;
  background: var(--surface-code);
  font-family: var(--font-data);
  font-size: 0.88em;
  font-variant-numeric: tabular-nums;
}

.citation {
  margin-left: 0.08em;
  font-size: 0.72em;
  font-weight: 600;
  line-height: 0;
  vertical-align: super;
}

.citation a {
  color: var(--link);
  text-decoration: none;
}

.citation a:hover {
  text-decoration: underline;
}

.prose pre {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  padding: 1rem;
  background: var(--surface);
  line-height: 1.6;
}

.prose pre code {
  padding: 0;
  background: transparent;
}

.table-scroll {
  width: 100%;
  max-width: var(--reading-width);
  margin-top: 1rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  scrollbar-gutter: stable;
}

.table-scroll-hint {
  display: none;
  border-bottom: 1px solid var(--line);
  padding: 0.45rem 0.7rem;
  color: var(--muted);
  font-size: var(--type-caption);
  line-height: 1.4;
}

.table-scroll:focus-visible {
  outline-offset: 4px;
}

.prose table {
  display: table;
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: auto;
  color: var(--text-secondary);
  font-size: var(--type-table);
  font-variant-numeric: tabular-nums;
  line-height: 1.58;
  overflow-wrap: normal;
}

.prose th,
.prose td {
  min-width: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.prose tbody tr:last-child > td {
  border-bottom: 0;
}

.table-scroll--wide th,
.table-scroll--wide td {
  min-width: 7rem;
}

.table-scroll--wide th:first-child,
.table-scroll--wide td:first-child {
  color: var(--text);
  font-weight: 600;
}

.table-scroll:not(.table-scroll--wide) th:first-child,
.table-scroll:not(.table-scroll--wide) td:first-child {
  width: 1%;
  white-space: nowrap;
}

.prose th {
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  vertical-align: bottom;
}

.broken-link {
  border-bottom: 1px dotted var(--danger);
  color: var(--danger);
}

.search-dialog {
  width: min(42rem, calc(100vw - 2rem));
  max-height: min(44rem, calc(100vh - 2rem));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-medium);
  padding: 0;
  background: var(--canvas);
  box-shadow: var(--shadow-dialog);
  color: var(--text);
}

.search-dialog::backdrop {
  background: var(--overlay);
}

.search-panel {
  padding: 1rem;
}

.search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.search-head label {
  font-size: var(--type-body);
  font-weight: 700;
}

.search-head button {
  border: 0;
  padding: 0.3rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: var(--type-caption);
}

#wiki-search {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  padding: 0.7rem 0.8rem;
  background: var(--canvas);
}

.search-hint {
  margin: 0.42rem 0 0.85rem;
  color: var(--muted);
  font-size: var(--type-caption);
}

.search-results {
  max-height: 28rem;
  overflow-y: auto;
  border-top: 1px solid var(--line);
}

.search-result {
  display: grid;
  grid-template-columns: 5.3rem 1fr;
  gap: 0.75rem;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0.25rem;
  color: var(--text);
  text-decoration: none;
}

.search-result:hover {
  background: var(--surface);
  color: var(--text);
}

.search-result-meta {
  display: flex;
  flex-direction: column;
  color: var(--muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

.search-result strong {
  display: block;
  font-size: var(--type-label);
}

.search-result p {
  margin: 0.16rem 0 0;
  color: var(--muted);
  font-size: var(--type-caption);
  line-height: 1.5;
}

.search-empty {
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: var(--type-label);
  text-align: center;
}

.not-found {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem;
}

.not-found main {
  max-width: 38rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  padding: 2rem;
}

.not-found h1 {
  margin: 0.4rem 0;
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: var(--tracking-tight);
  line-height: 1.3;
}

.button-link {
  display: inline-block;
  margin-top: 1rem;
  border-radius: var(--radius-small);
  padding: 0.55rem 0.75rem;
  background: var(--text);
  color: var(--canvas);
  text-decoration: none;
}

@media (max-width: 52rem) {
  .business-model-canvas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-model-block {
    grid-column: auto;
    grid-row: auto;
  }

  .business-model-block--value {
    grid-column: 1 / -1;
  }
}

@media (max-width: 40rem) {
  :root {
    --type-body: 1rem;
    --type-h1: 1.75rem;
    --type-h2: 1.3125rem;
  }

  .topbar {
    padding: 0 0.7rem;
  }

  .search-trigger kbd {
    display: none;
  }

  .article {
    padding: 1.8rem 1rem 4rem;
  }

  .key-takeaway {
    grid-template-columns: 1fr;
    gap: var(--space-2);
    padding-top: var(--space-3);
  }

  .key-takeaway-copy {
    font-size: 1.0625rem;
  }

  .page--home .prose > ul:first-of-type {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .business-model-heading {
    align-items: start;
    flex-direction: column;
  }

  .business-model-legend {
    justify-content: flex-start;
  }

  .business-model-canvas {
    grid-template-columns: 1fr;
  }

  .business-model-block,
  .business-model-block--value {
    grid-column: 1;
  }

  .competitor-map-header {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .competitor-map-phases {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    margin: var(--space-5) 0;
  }

  .competitor-map-phase {
    border-top: 0;
    border-left: 3px solid var(--line-strong);
    padding: 0 0 0 var(--space-4);
  }

  .competitor-map-phase:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -1.12rem;
    left: -0.44rem;
    transform: rotate(135deg);
  }

  .competitor-map-summary {
    min-height: 0;
  }

  .competitor-map-hypothesis {
    grid-template-columns: 1fr;
  }

  .competitor-map-hypothesis > p {
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .competitor-map-hypothesis ol {
    grid-template-columns: 1fr;
  }

  .competitor-map-hypothesis li + li {
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  .competitor-map-footer {
    align-items: start;
    flex-direction: column;
    gap: var(--space-2);
  }

  .native-diagram-header {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .native-diagram-body {
    margin: var(--space-5) 0;
  }

  .native-diagram-footer {
    align-items: start;
    flex-direction: column;
    gap: var(--space-2);
  }

  .native-loop-items {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .native-loop-items li,
  .native-loop-items li:nth-child(3) {
    border-top: 0;
    border-left: 3px solid var(--line-strong);
    padding: 0 0 0 var(--space-4);
    background: transparent;
  }

  .native-loop-items li:nth-child(3) {
    border-left-color: var(--evidence);
  }

  .native-loop-items li:not(:last-child)::after,
  .native-flow li:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -0.9rem;
    left: -0.42rem;
    transform: rotate(135deg);
  }

  .native-value-layout,
  .native-layers-layout,
  .native-sample-dimensions {
    grid-template-columns: 1fr;
  }

  .native-value-tiers li,
  .native-value-tiers li:nth-child(1),
  .native-value-tiers li:nth-child(2) {
    grid-template-columns: 5.2rem minmax(0, 1fr);
    margin-left: 0;
    padding: var(--space-3);
  }

  .native-value-checks ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 var(--space-3);
  }

  .native-flow ol {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .native-flow li {
    border-top: 0;
    border-left: 2px solid var(--line-strong);
    padding: 0 0 0 var(--space-3);
  }

  .native-flow-metrics {
    align-items: start;
    flex-direction: column;
    gap: var(--space-2);
  }

  .native-layers li {
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: var(--space-2) var(--space-3);
  }

  .native-layers li strong {
    align-self: center;
  }

  .native-layers li p,
  .native-layer-outcome {
    grid-column: 2;
  }

  .native-layer-outcome {
    text-align: left;
  }

  .native-matrix-x-axis,
  .native-matrix-y-axis {
    display: none;
  }

  .native-matrix-cells {
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .native-matrix-cell {
    min-height: 0;
  }

  .native-matrix-cell-axis {
    display: block;
    margin: 0 0 var(--space-2);
    color: var(--muted);
    font-size: var(--type-caption);
    font-weight: 650;
    line-height: 1.4;
  }

  .native-matrix-comparison {
    margin-left: 0;
  }

  .native-sample-groups {
    grid-template-columns: 1fr;
  }

  .native-sample-detail {
    min-height: 0;
  }

  .lede {
    font-size: 0.9375rem;
  }

  .document-metadata,
  .source-list {
    grid-template-columns: 1fr;
  }

  .document-panel + .document-panel,
  .document-panel + .document-action,
  .document-action + .document-panel {
    margin-left: 0.35rem;
  }

  .visual-reference figcaption {
    grid-template-columns: 1fr auto;
  }

  .visual-reference figcaption > span:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .table-scroll--wide .table-scroll-hint {
    display: block;
  }

  .search-result {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .search-result-meta {
    flex-direction: row;
    gap: 0.5rem;
  }
}

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

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

@media print {
  .topbar,
  .sidebar,
  .nav-backdrop,
  .document-tools,
  .search-dialog {
    display: none !important;
  }

  .article {
    max-width: none;
    padding: 0;
  }
}
