:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --ink: #1c2430;
  --muted: #667085;
  --panel: #ffffff;
  --line: #d8dee8;
  --soft: #eef4ff;
  --accent: #2457c5;
  --accent-2: #0d7c75;
  --code: #edf0f4;
  --warning: #fff4dc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.58;
}

a { color: var(--accent); font-weight: 650; text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  background: #101827;
  color: #fff;
  padding: 34px min(6vw, 72px);
}

.site-header h1 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.1;
}

.site-header p {
  max-width: 940px;
  margin: 12px 0 0;
  color: #dbe4f0;
  font-size: 1.05rem;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.top-nav a,
.pill {
  border: 1px solid #3a4b66;
  border-radius: 999px;
  background: #253248;
  color: #eef4ff;
  padding: 6px 12px;
  font-size: .92rem;
}

.layout {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1040px);
  gap: 28px;
  padding: 28px min(6vw, 72px) 72px;
}

.side-nav {
  position: sticky;
  top: 16px;
  align-self: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.side-nav strong {
  display: block;
  margin-bottom: 10px;
}

.side-nav a {
  display: block;
  margin: 8px 0;
}

.doc-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  margin-bottom: 20px;
}

h2, h3 { line-height: 1.2; }
h2 { margin: 0 0 12px; font-size: 1.72rem; }
h3 { margin: 22px 0 8px; font-size: 1.15rem; }
p { margin: 10px 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

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

th { background: var(--soft); }

code {
  background: var(--code);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: Consolas, "Courier New", monospace;
  font-size: .95em;
}

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

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

.mini {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcff;
}

.note {
  border-left: 4px solid var(--accent);
  background: var(--soft);
  padding: 12px 14px;
  margin: 14px 0;
}

.warning {
  border-left: 4px solid #c77d00;
  background: var(--warning);
  padding: 12px 14px;
  margin: 14px 0;
}

.success-callout {
  border-left: 4px solid var(--overview-accent);
  background: var(--overview-accent-soft);
  padding: 12px 14px;
  margin: 18px 0 0;
}

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

.setup-tree {
  background: var(--code);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
  padding: 12px 14px;
  white-space: pre;
}

.media {
  margin: 18px 0;
}

.image-slot {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: var(--w);
  aspect-ratio: var(--ratio);
  border: 2px dashed #98a5b8;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(36, 87, 197, .08), rgba(13, 124, 117, .08)),
    #f8fafc;
  color: #42526a;
  text-align: center;
  padding: 18px;
}

.doc-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: var(--w);
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101827;
}

.image-slot strong {
  display: block;
  color: var(--ink);
}

.image-slot span {
  display: block;
  margin-top: 4px;
}

.shot-1440x720 { --w: 1440px; --ratio: 2 / 1; }
.shot-1600x900 { --w: 1600px; --ratio: 16 / 9; }
.shot-1280x720 { --w: 1280px; --ratio: 16 / 9; }
.shot-1280x900 { --w: 1280px; --ratio: 1280 / 900; }
.shot-960x720 { --w: 960px; --ratio: 4 / 3; }
.shot-720x960 { --w: 720px; --ratio: 3 / 4; }

.caption {
  color: var(--muted);
  font-size: .92rem;
  margin-top: 8px;
}

@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; }
  .side-nav { position: static; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* Shared docs presentation system: one shell, four section roles. */
.docs-site {
  --overview-bg: #f3f2ee;
  --overview-paper: #fbfaf7;
  --overview-ink: #1c292b;
  --overview-muted: #647173;
  --overview-line: #d8dcda;
  --overview-accent: #216874;
  --overview-accent-soft: #e5f0ef;
  --overview-feature: #e9eeea;
  --docs-shell-max: 1920px;
  --docs-shell-gutter: min(6vw, 72px);
  background: var(--overview-bg);
  color: var(--overview-ink);
}

.docs-site .site-header {
  padding-inline: max(
    var(--docs-shell-gutter),
    calc((100vw - var(--docs-shell-max)) / 2 + var(--docs-shell-gutter))
  );
}

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

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

.docs-site a:focus-visible,
.docs-site [tabindex="-1"]:focus-visible {
  outline: 3px solid #2f7d89;
  outline-offset: 3px;
}

.docs-site [tabindex="-1"]:focus {
  outline: none;
}

.overview-header {
  background: var(--overview-paper);
  color: var(--overview-ink);
  border-bottom: 1px solid var(--overview-line);
  padding-top: 48px;
  padding-bottom: 24px;
}

.overview-header h1 {
  max-width: 900px;
  color: var(--overview-ink);
  font-size: clamp(2.55rem, 6vw, 4.7rem);
  letter-spacing: -.045em;
}

.overview-header .site-summary {
  max-width: 790px;
  margin-top: 18px;
  color: #526164;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.55;
}

.overview-header .site-eyebrow,
.docs-page-header .site-eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--overview-accent);
  font-size: .76rem;
  font-weight: 780;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.overview-header .site-eyebrow,
.docs-page-header .site-eyebrow {
  max-width: none;
  line-height: 1.3;
}

.docs-page-header {
  border-bottom: 1px solid var(--overview-line);
  background: var(--overview-paper);
  color: var(--overview-ink);
  padding-top: 42px;
  padding-bottom: 24px;
}

.docs-page-header h1 {
  max-width: 880px;
  color: var(--overview-ink);
  font-size: clamp(2.35rem, 5vw, 3.75rem);
  letter-spacing: -.035em;
}

.docs-page-header .site-summary {
  max-width: 780px;
  min-height: 3.16em;
  margin-top: 16px;
  color: #526164;
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
}

.top-nav-more {
  display: none;
}

.top-nav-menu {
  display: none;
  position: relative;
}

.top-nav-menu summary {
  cursor: pointer;
  list-style: none;
}

.top-nav-menu summary::-webkit-details-marker {
  display: none;
}

.top-nav-menu-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: min(82vw, 280px);
  overflow: hidden;
  border: 1px solid var(--overview-line);
  border-radius: 12px;
  background: var(--overview-paper);
  box-shadow: 0 18px 44px rgba(30, 44, 46, .16);
}

.docs-site .top-nav .top-nav-menu-panel a {
  min-height: 44px;
  border: 0;
  border-radius: 0;
  padding: 10px 14px;
}

.docs-site .top-nav .top-nav-menu-panel a + a {
  border-top: 1px solid var(--overview-line);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 8px 17px;
}

.hero-actions .primary-action {
  background: var(--overview-ink);
  color: #fff;
}

.hero-actions .secondary-action {
  border: 1px solid #b9c3c1;
  background: transparent;
  color: var(--overview-ink);
}

.docs-site .top-nav {
  border-top: 1px solid var(--overview-line);
  margin-top: 32px;
  padding-top: 18px;
}

.docs-site .top-nav a {
  border-color: #ccd3d1;
  background: transparent;
  color: #4d5b5e;
}

.docs-site .top-nav a[aria-current="page"] {
  border-color: #91b8b7;
  background: var(--overview-accent-soft);
  color: #174f57;
}

.layout-overview,
.layout-docs {
  grid-template-columns: minmax(176px, 220px) minmax(0, 1fr);
  gap: clamp(28px, 3vw, 64px);
  max-width: var(--docs-shell-max);
  margin: 0 auto;
  padding-top: 42px;
}

.docs-site .side-nav {
  border: 0;
  border-left: 1px solid var(--overview-line);
  border-radius: 0;
  background: transparent;
  padding: 3px 0 3px 18px;
}

.docs-site .side-nav a {
  color: #627073;
  font-size: .9rem;
  font-weight: 590;
  line-height: 1.3;
}

.docs-site .side-nav a:hover {
  color: var(--overview-accent);
}

.overview-content,
.docs-content {
  min-width: 0;
}

.layout-docs .docs-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.layout-docs .doc-section {
  margin: 0;
}

.layout-docs .section-title-row {
  margin-bottom: 22px;
}

.layout-docs .doc-section h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
}

.layout-docs .section-text {
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
  padding-right: 0;
  padding-left: 0;
}

.layout-docs .section-feature {
  border-color: #cdd6d0;
  background: #f6f7f3;
}

.layout-docs .section-outcome {
  border-color: #bfcfcb;
  box-shadow: 0 18px 44px rgba(30, 44, 46, .06);
}

.doc-section {
  border: 1px solid var(--overview-line);
  border-radius: 18px;
  background: var(--overview-paper);
  margin: 34px 0;
  padding: 10px clamp(28px, 4vw, 44px) clamp(28px, 4vw, 44px);
  scroll-margin-top: 24px;
}

.doc-section h2 {
  margin-bottom: 16px;
  color: var(--overview-ink);
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  letter-spacing: -.025em;
}

.doc-section .section-lead {
  max-width: 760px;
  color: #526164;
  font-size: 1.08rem;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(250px, .86fr) minmax(420px, 1.14fr);
  align-items: center;
  gap: clamp(30px, 5vw, 62px);
}

.section-split.split-portrait {
  grid-template-columns: minmax(320px, 1fr) minmax(260px, 360px);
}

.section-split.split-workflow {
  grid-template-columns: minmax(420px, 1.12fr) minmax(300px, .88fr);
}

.section-title-row {
  margin-bottom: clamp(24px, 3vw, 34px);
}

.section-title-row h2 {
  margin-bottom: 0;
}

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

.section-body > :first-child,
.section-copy > :first-child {
  margin-top: 0;
}

.section-body-narrow {
  max-width: 760px;
}

.section-body-split {
  align-items: start;
}

.layout-docs .section-task-media {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  align-items: start;
  column-gap: clamp(30px, 4vw, 48px);
}

.layout-docs .section-task-media > :not(.media) {
  grid-column: 1;
  min-width: 0;
}

.layout-docs .section-task-media > .media {
  grid-column: 2;
  grid-row: 1 / span 20;
  margin: 0;
  min-width: 0;
}

.layout-docs .section-task-media > .implementation-details {
  grid-column: 1 / -1;
  margin-top: 26px;
}

.implementation-details {
  overflow: hidden;
  border: 1px solid var(--overview-line);
  border-radius: 12px;
  background: #f8f9f7;
}

.implementation-details summary {
  cursor: pointer;
  padding: 15px 18px;
  color: var(--overview-ink);
  font-weight: 750;
}

.implementation-details[open] summary {
  border-bottom: 1px solid var(--overview-line);
}

.implementation-details-body {
  padding: 18px;
}

.implementation-details-body > :first-child {
  margin-top: 0;
}

.implementation-details-body > :last-child {
  margin-bottom: 0;
}

.system-intro-grid {
  display: grid;
  grid-template-columns: minmax(340px, 1.05fr) minmax(360px, .95fr);
  align-items: start;
  gap: clamp(28px, 3.5vw, 48px);
}

.section-introduction .section-lead {
  max-width: 720px;
  color: #334548;
  font-size: clamp(1.08rem, 1.7vw, 1.22rem);
  line-height: 1.62;
}

.system-intro-copy > :first-child {
  margin-top: 0;
}

.system-intro-copy > :last-child,
.system-intro-visuals > :last-child {
  margin-bottom: 0;
}

.system-intro-visuals {
  display: grid;
  gap: 20px;
  border-left: 1px solid var(--overview-line);
  padding-left: clamp(24px, 3vw, 38px);
}

.system-intro-visual {
  margin: 0;
}

.system-intro-visual .caption {
  margin-top: 8px;
}

.system-capability-line {
  border-top: 1px solid var(--overview-line);
  margin-top: 20px;
  padding-top: 17px;
}

@media (min-width: 921px) {
  .system-intro-copy .section-lead,
  .system-intro-copy > p:nth-child(2),
  .system-intro-copy > p:nth-child(4) {
    text-align: justify;
    text-justify: inter-word;
    hyphens: none;
  }
}

@media (min-width: 1041px) {
  #add-scene .section-title-row h2 {
    white-space: nowrap;
  }
}

.section-closing-group {
  overflow: hidden;
  border: 1px solid var(--overview-line);
  border-radius: 18px;
  background: var(--overview-paper);
  margin: 34px 0;
}

.section-closing-group .doc-section {
  border: 0;
  border-radius: 0;
  background: transparent;
  margin: 0;
}

.section-closing-group .doc-section + .doc-section {
  border-top: 1px solid var(--overview-line);
}

.section-advanced-group {
  overflow: hidden;
  border: 1px solid var(--overview-line);
  border-radius: 18px;
  background: var(--overview-paper);
  margin: 34px 0;
  scroll-margin-top: 24px;
}

.advanced-group-header {
  padding: clamp(30px, 4vw, 44px);
  border-bottom: 1px solid var(--overview-line);
}

.advanced-group-header h2 {
  margin: 0 0 14px;
  color: var(--overview-ink);
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  letter-spacing: -.025em;
}

.advanced-group-header > :last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: #526164;
  font-size: 1.03rem;
}

.advanced-workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--overview-line);
}

.advanced-workflow-grid .doc-section {
  min-height: 100%;
  border: 0;
  border-radius: 0;
  background: var(--overview-paper);
  margin: 0;
  padding: clamp(26px, 3vw, 36px);
}

.advanced-workflow-grid .doc-section h3 {
  margin: 0;
  color: var(--overview-ink);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  letter-spacing: -.015em;
}

.advanced-workflow-grid .section-title-row {
  margin-bottom: 18px;
}

.advanced-workflow-grid .section-link {
  margin-top: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #cfd7d2;
  border-radius: 12px;
  margin-top: 28px;
  background: #cfd7d2;
}

.feature-item {
  min-height: 138px;
  background: #f8f8f5;
  padding: 23px;
}

.feature-item strong,
.feature-item span {
  display: block;
}

.feature-item strong {
  margin-bottom: 8px;
  color: #243638;
  font-size: 1.04rem;
}

.feature-item span {
  color: #5a686a;
}

.section-visual,
.outcome-visual {
  margin: 0;
}

.section-visual .doc-image,
.outcome-visual .doc-image {
  width: 100%;
  border-color: #cbd2cf;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(30, 44, 46, .09);
}

.outcome-visual {
  margin-top: 26px;
}

.portrait-visual {
  justify-self: center;
  width: min(100%, 340px);
}

.decision-table {
  overflow: hidden;
  border: 1px solid var(--overview-line);
  border-radius: 12px;
  margin-top: 26px;
  background: #fff;
}

.decision-row {
  display: grid;
  grid-template-columns: minmax(150px, .62fr) minmax(280px, 1.25fr) minmax(220px, 1fr);
  border-top: 1px solid var(--overview-line);
}

.decision-row:first-child {
  border-top: 0;
}

.decision-row > * {
  padding: 15px 18px;
}

.decision-row > * + * {
  border-left: 1px solid var(--overview-line);
}

.decision-head {
  background: var(--overview-accent-soft);
  color: #274f54;
  font-size: .85rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.decision-label {
  display: none;
}

.decision-default {
  max-width: 820px;
  margin-top: 18px;
}

.example-route-grid,
.cost-model-grid,
.compatibility-grid,
.reference-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.example-route,
.cost-model-card,
.compatibility-card {
  border: 1px solid var(--overview-line);
  border-radius: 12px;
  background: #f8f9f7;
  padding: 19px;
}

.example-route {
  color: inherit;
  text-decoration: none;
}

.example-route:hover {
  border-color: #91b8b7;
  background: var(--overview-accent-soft);
  text-decoration: none;
}

.example-route p {
  margin: 8px 0 0;
}

.example-route-note {
  color: #5d6d70;
  font-size: .92rem;
}

.example-route strong,
.cost-model-card strong,
.compatibility-card strong,
.cost-model-card span,
.compatibility-card span {
  display: block;
}

.example-route strong,
.cost-model-card strong,
.compatibility-card strong {
  margin-bottom: 8px;
  color: var(--overview-ink);
}

.route-meta,
.cost-model-card dl {
  display: grid;
  grid-template-columns: minmax(92px, .36fr) minmax(0, 1fr);
  gap: 7px 12px;
  margin: 0;
}

.route-meta dt,
.cost-model-card dt {
  color: #597073;
  font-size: .78rem;
  font-weight: 760;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.route-meta dd,
.cost-model-card dd {
  min-width: 0;
  margin: 0;
}

.reference-figure {
  min-width: 0;
  margin: 0;
}

.reference-figure .doc-image {
  width: 100%;
}

.workflow-route {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1080px;
  margin: 22px 0;
}

.workflow-route a {
  border: 1px solid var(--overview-line);
  border-radius: 12px;
  background: #f8f9f7;
  padding: 18px;
  color: inherit;
  text-decoration: none;
}

.workflow-route a:hover {
  border-color: #91b8b7;
  background: var(--overview-accent-soft);
}

.workflow-route strong,
.workflow-route span {
  display: block;
}

.workflow-route span {
  margin-top: 6px;
  color: #5d6d70;
}

.owner-flow-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.owner-flow-item {
  border: 1px solid var(--overview-line);
  border-radius: 10px;
  background: #f8f9f7;
  padding: 15px 16px;
}

.owner-flow-item p {
  margin: 5px 0 0;
  color: #526164;
  font-size: .95rem;
}

.owner-flow-label {
  color: var(--overview-accent);
  font-size: .75rem;
  font-weight: 780;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.owner-strip {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 1px solid var(--overview-line);
  border-radius: 10px;
  margin: 20px 0;
  background: #fff;
}

.owner-strip-item {
  padding: 13px 14px;
}

.owner-strip-item + .owner-strip-item {
  border-top: 1px solid var(--overview-line);
}

.owner-strip-item > * {
  display: block;
}

.owner-strip-item span {
  color: #5b696b;
  font-size: .86rem;
  font-weight: 680;
}

.owner-strip-item code {
  border-radius: 0;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.canvas-workflow-body .section-copy {
  max-width: none;
}

.canvas-workflow-body .owner-flow-list {
  grid-template-columns: 1fr;
}

.canvas-workflow-visual {
  justify-self: end;
  width: min(100%, 420px);
  margin: 0;
}

.choice-table th {
  background: var(--overview-accent-soft);
  color: #274f54;
}

.choice-table tr:nth-child(even) td {
  background: #f8f9f7;
}

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

.steps li {
  position: relative;
  min-height: 34px;
  margin: 12px 0;
  padding-left: 44px;
}

.steps li::before {
  counter-increment: overview-step;
  content: counter(overview-step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #aec2c0;
  border-radius: 50%;
  background: #fff;
  color: var(--overview-accent);
  font-size: .85rem;
  font-weight: 780;
}

.docs-site .note,
.docs-site .warning {
  border-left-width: 3px;
  border-radius: 0 8px 8px 0;
}

.docs-site .note {
  border-left-color: var(--overview-accent);
  background: var(--overview-accent-soft);
}

.docs-site .warning {
  border-left-color: #a66b24;
  background: #f7eddb;
}

.section-link {
  margin-top: 20px;
}

.section-link a {
  color: var(--overview-accent);
}

.plain-list,
.practice-list {
  padding-left: 1.15rem;
}

.docs-site code,
.docs-site .plain-list {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.plain-list li,
.practice-list li {
  margin: 9px 0;
}

.practice-list {
  columns: 2;
  column-gap: 42px;
}

.practice-list li {
  break-inside: avoid;
  padding-right: 16px;
}

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

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

.faq-list summary {
  cursor: pointer;
  color: #263638;
  font-weight: 720;
}

.faq-list details p {
  max-width: 760px;
  margin: 12px 0 0;
  color: #526164;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.map-grid a {
  border: 1px solid var(--overview-line);
  border-radius: 12px;
  background: var(--overview-paper);
  padding: 18px;
  color: var(--overview-ink);
}

.map-grid a:hover {
  border-color: #91b8b7;
  background: var(--overview-accent-soft);
  text-decoration: none;
}

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

.map-grid span {
  margin-top: 4px;
  color: #627073;
  font-size: .92rem;
  font-weight: 500;
}

@media (max-width: 1240px) {
  .section-split,
  .section-split.split-portrait,
  .section-split.split-workflow {
    grid-template-columns: 1fr;
  }

  .section-visual {
    max-width: 760px;
  }

  .portrait-visual {
    justify-self: start;
  }

  .canvas-workflow-visual {
    justify-self: center;
    width: min(100%, 560px);
    margin-top: 28px;
  }

  .layout-docs .section-task-media {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 22px;
  }

  .layout-docs .section-task-media > :not(.media),
  .layout-docs .section-task-media > .media {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 920px) {
  .docs-page-header .site-summary {
    min-height: 0;
  }

  .layout-overview,
  .layout-docs {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 24px;
  }

  .docs-site .side-nav {
    display: flex;
    min-width: 0;
    max-width: 100%;
    gap: 8px;
    overflow-x: auto;
    border: 0;
    padding: 0 0 12px;
    white-space: nowrap;
  }

  .docs-site .side-nav strong,
  .docs-site .side-nav a {
    flex: 0 0 auto;
    border: 1px solid var(--overview-line);
    border-radius: 999px;
    background: var(--overview-paper);
    margin: 0;
    padding: 6px 11px;
  }

  .system-intro-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .system-intro-visuals {
    border-top: 1px solid var(--overview-line);
    border-left: 0;
    padding-top: 22px;
    padding-left: 0;
  }

}

@media (max-width: 680px) {
  .docs-page-header {
    padding-top: 26px;
    padding-bottom: 18px;
  }

  .overview-header {
    padding-top: 26px;
    padding-bottom: 18px;
  }

  .overview-header h1 {
    font-size: 2.1rem;
    line-height: 1.03;
  }

  .overview-header .site-summary {
    font-size: 1rem;
  }

  .docs-site .top-nav {
    position: relative;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
  }

  .docs-site .top-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
  }

  .docs-site .top-nav > a:not([aria-current]) {
    display: none;
  }

  .docs-site .top-nav .top-nav-menu {
    display: block;
    position: static;
  }

  .docs-site .top-nav .top-nav-menu summary {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    border: 1px solid #ccd3d1;
    border-radius: 999px;
    padding: 8px 12px;
    color: #4d5b5e;
    font-size: .92rem;
    font-weight: 650;
  }

  .docs-site .top-nav .top-nav-menu-panel {
    right: 0;
    left: 0;
    width: auto;
    min-width: 0;
    max-height: min(62vh, 420px);
    overflow-y: auto;
  }

  .docs-site .top-nav .top-nav-more {
    display: none;
  }

  .docs-site .side-nav .side-nav-secondary {
    display: none;
  }

  .docs-site .side-nav strong {
    display: none;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions a {
    justify-content: center;
  }

  .doc-section {
    margin-left: 0;
    margin-right: 0;
    padding: 30px 20px;
  }

  .layout-docs .section-text {
    padding-right: 0;
    padding-left: 0;
  }

  .layout-docs table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }

  .layout-docs code {
    overflow-wrap: anywhere;
  }

  .section-closing-group {
    border-radius: 16px;
  }

  .section-advanced-group {
    border-radius: 16px;
  }

  .advanced-group-header {
    padding: 30px 20px;
  }

  .advanced-workflow-grid {
    grid-template-columns: 1fr;
  }

  .advanced-workflow-grid .doc-section {
    padding: 26px 20px;
  }

  .feature-grid,
  .map-grid,
  .example-route-grid,
  .cost-model-grid,
  .compatibility-grid,
  .reference-media-grid {
    grid-template-columns: 1fr;
  }

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

  .route-meta,
  .cost-card dl {
    grid-template-columns: 1fr;
  }

  .decision-row {
    grid-template-columns: 1fr;
  }

  .decision-head {
    display: none;
  }

  .decision-row > * + * {
    border-top: 1px solid var(--overview-line);
    border-left: 0;
  }

  .decision-row > * {
    padding: 13px 15px;
  }

  .decision-label {
    display: block;
    margin-bottom: 4px;
    color: #547074;
    font-size: .68rem;
    font-weight: 780;
    letter-spacing: .075em;
    text-transform: uppercase;
  }

  .owner-flow-list {
    grid-template-columns: 1fr;
  }

  .practice-list {
    columns: 1;
  }
}
