/* TelltaleDNS project site — one stylesheet, light/dark via tokens (ADR-012). */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --ink: #0e1a2b;
  --ink-2: #4a5568;
  --line: #d9dee6;
  --brand: #0b3a5b;        /* deep sea */
  --on-brand: #ffffff;
  --brand-fill: #0b3a5b;   /* diagram boxes with light text: dark in both themes */
  --accent: #e4572e;       /* telltale yarn */
  --accent-text: #b8401d;  /* the yarn color as small text: 5.2:1 on --bg (AA) */
  --ok: #1f9d55;
  --warn: #c27c0e;
  --bad: #c0392b;
  --plan: #6b7280;
  --code-bg: #0e1a2b;
  --code-ink: #e6edf3;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(14 26 43 / 6%), 0 8px 24px rgb(14 26 43 / 6%);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1320; --surface: #111c2d; --surface-2: #16243a; --ink: #e8eef6; --ink-2: #a3b1c2;
    --line: #23344d; --brand: #7cc4ff; --on-brand: #06101c; --brand-fill: #1d4f78; --accent: #ff7a52; --accent-text: #ff7a52; --ok: #3ccf7f; --warn: #f0b23c; --bad: #ff6b6b; --plan: #8b95a5;
    --code-bg: #060c16; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1320; --surface: #111c2d; --surface-2: #16243a; --ink: #e8eef6; --ink-2: #a3b1c2;
  --line: #23344d; --brand: #7cc4ff; --on-brand: #06101c; --brand-fill: #1d4f78; --accent: #ff7a52; --accent-text: #ff7a52; --ok: #3ccf7f; --warn: #f0b23c; --bad: #ff6b6b; --plan: #8b95a5;
  --code-bg: #060c16; --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; } /* clear the sticky header on #jumps */
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
a { color: var(--brand); text-underline-offset: 3px; }
img, svg { max-width: 100%; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 10px; min-height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 750; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; margin-right: auto; white-space: nowrap; }
.logo svg { width: 30px; height: 30px; }
/* T6.10, ADR-122 — the nav: Get started + Features, Guides, and Reference menus; ☰ on phones
   (built on <details>). */
.menu > summary { display: none; }
.menu > summary::-webkit-details-marker, .sub > summary::-webkit-details-marker { display: none; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a, .sub > summary { color: var(--ink-2); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 15px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"], .sub > summary:hover, .sub.current > summary { color: var(--ink); background: var(--surface-2); }
.sub { position: relative; }
.sub > summary { list-style: none; cursor: pointer; }
.sub > summary::after { content: " ▾"; font-size: 11px; }
.sub-list { position: absolute; left: 0; top: calc(100% + 6px); min-width: 220px; display: grid; gap: 2px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 28px rgb(14 26 43 / 14%); z-index: 20; }
.icon-link, .theme { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; font: inherit; font-size: 16px; flex: none; }
.icon-link:hover, .theme:hover { color: var(--ink); background: var(--surface-2); }
.icon-link svg { width: 18px; height: 18px; }
.theme[hidden] { display: none; }
/* T9.25 — wide enough for every main link; below it, ☰ (site.js matches the same width). The
   last menu opens leftward so it stays on screen. */
.sub:last-child .sub-list { left: auto; right: 0; }
@media (max-width: 760px) {
  .menu { order: 3; }
  .menu > summary { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line);
    border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; list-style: none; font-size: 18px; }
  .menu[open] > .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 16px 14px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgb(14 26 43 / 10%); }
  .sub-list { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; background: none; min-width: 0; }
  .top .wrap { position: relative; }
}

/* Type */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .4em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 46ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--accent-text); }
.muted { color: var(--ink-2); }
section { padding-block: 56px; }
section + section { border-top: 1px solid var(--line); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-block: 64px 48px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.btn { display: inline-block; padding: 11px 18px; border-radius: 10px; font-weight: 650; text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }

/* Cards & grids */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card p { margin: .3em 0 0; color: var(--ink-2); font-size: 15.5px; }
.icon { width: 38px; height: 38px; flex: none; }
.figure svg { display: block; width: 100%; height: auto; }
.figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); overflow-x: auto; }
.figure figcaption { font-size: 14px; color: var(--ink-2); margin-top: 10px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

/* SVG theming helpers */
.svg-ink { stroke: var(--ink); fill: none; }
.svg-line { stroke: var(--line); }
.svg-text { fill: var(--ink); font: 600 13px var(--sans); }
.svg-sub { fill: var(--ink-2); font: 12px var(--sans); }
.svg-mono { fill: var(--ink); font: 12px var(--mono); }
.svg-box { fill: var(--surface-2); stroke: var(--line); }
.svg-brand { fill: var(--brand-fill); }
.svg-accent { fill: var(--accent); }
.svg-ok { fill: var(--ok); }
.svg-warn { fill: var(--warn); }
.svg-bad { fill: var(--bad); }
.svg-stroke-brand { stroke: var(--brand); fill: none; }
.svg-stroke-accent { stroke: var(--accent); fill: none; }
.svg-stroke-ok { stroke: var(--ok); fill: none; }

/* Comparison */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15.5px; }
.compare th, .compare td { padding: 11px 12px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font-size: 14px; color: var(--ink-2); }
.compare thead th.us { color: var(--brand); }
.compare td.us { background: color-mix(in srgb, var(--brand) 7%, transparent); font-weight: 650; }
.y { color: var(--ok); font-weight: 800; } .n { color: var(--plan); } .p { color: var(--warn); font-weight: 700; }
.table-wrap { overflow-x: auto; }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 16px; list-style: none; padding-left: 0; }
.step { position: relative; padding-left: 54px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px;
  border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font-weight: 800; }

/* Code */
pre { background: var(--code-bg); color: var(--code-ink); border-radius: 12px; padding: 14px 16px; overflow-x: auto; font: 14px/1.55 var(--mono); }
code { font-family: var(--mono); font-size: .92em; }
p code, li code, td code { background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
pre code { background: none; padding: 0; border-radius: 0; }
/* Helm values: column 3 is the meaning (on the config page it's the default). */
.cfg.helm td:nth-child(3) { white-space: normal; }
.cfg.helm td pre { margin: 6px 0 0; font-size: 13px; }

/* Tabs (work without JS: all panels show stacked) */
.tabs [role="tablist"] { display: none; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.tabs.js [role="tablist"] { display: flex; }
.tabs [role="tab"] { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); padding: 7px 12px; border-radius: 9px; cursor: pointer; font: inherit; font-size: 15px; }
.tabs [role="tab"][aria-selected="true"] { color: var(--on-brand); background: var(--brand); border-color: var(--brand); }
.tabs .panel h3 { margin-top: 12px; }
.tabs.js .panel h3 { display: none; }

/* Standards */
.std { width: 100%; border-collapse: collapse; font-size: 15px; }
.std th, .std td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.std th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.pill { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.pill.supported { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.pill.partial { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.pill.planned { background: color-mix(in srgb, var(--plan) 18%, transparent); color: var(--plan); }
.req { font: 12.5px var(--mono); color: var(--ink-2); }
.rfc-cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.rfc-cards .card svg { display: block; margin: 12px auto 4px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--ink-2); font-size: 14px; }
footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--surface); padding: 8px 12px; }
@media (prefers-reduced-motion: no-preference) {
  .yarn { transform-origin: 0 0; animation: flutter 3.2s ease-in-out infinite; }
  @keyframes flutter { 0%,100% { transform: skewY(0deg) scaleX(1); } 50% { transform: skewY(-4deg) scaleX(.96); } }
}
/* T4.6: install guides and the configuration reference */
.toc { columns: 2; gap: 28px; }
.guide > li { margin: .7em 0; }
.guide pre { margin: .5em 0; }
.faq dt { font-weight: 700; margin-top: 1em; }
.faq dd { margin: .3em 0 0; color: var(--ink-2); }
.table-wrap { overflow-x: auto; }
.cfg table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cfg th, .cfg td { text-align: left; vertical-align: top; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.cfg td:nth-child(2), .cfg td:nth-child(3) { white-space: nowrap; }
.cfg h3 code { font-size: 1.05em; }
.cfg { margin: 28px 0; }
@media (max-width: 700px) { .toc { columns: 1; } .cfg td:nth-child(2), .cfg td:nth-child(3) { white-space: normal; } }
/* T4.7: performance table and screenshots */
.bench table { width: 100%; border-collapse: collapse; font-size: 15px; }
.bench th, .bench td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.bench .num { text-align: right; font-variant-numeric: tabular-nums; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.shots figcaption { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
/* T3.11: glossary */
.terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.term h3 { flex-wrap: wrap; }
.term p { margin: .4em 0 0; }

/* T6.10 — For nerds: the architecture map, crate details, the pipeline stepper. */
.arch-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.arch-wrap:has(.arch-panel:not([hidden])) { grid-template-columns: minmax(0, 2.1fr) minmax(300px, 1fr); }
@media (max-width: 960px) { .arch-wrap:has(.arch-panel:not([hidden])) { grid-template-columns: minmax(0, 1fr); } }
.arch { min-width: 640px; }
.arch-layer { fill: var(--ink-2); font: 700 13px var(--sans); letter-spacing: .1em; text-transform: uppercase;
  paint-order: stroke; stroke: var(--surface); stroke-width: 6px; stroke-linejoin: round; }
.arch-node rect { fill: var(--surface-2); stroke: var(--line); stroke-width: 1.5; transition: fill .15s, stroke .15s; }
.arch-node.layer-data rect { fill: color-mix(in srgb, var(--brand) 10%, var(--surface)); }
.arch-node.layer-edge rect { fill: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.arch-node.layer-obs rect { fill: color-mix(in srgb, var(--ok) 10%, var(--surface)); }
.arch-node.layer-control rect { fill: color-mix(in srgb, var(--warn) 10%, var(--surface)); }
.arch-node.layer-bin rect { fill: var(--brand-fill); }
.arch-node.layer-bin .arch-name, .arch-node.layer-bin .arch-meta { fill: #e8eef6; }
.arch-name { fill: var(--ink); font: 650 18px var(--mono); }
.arch-meta { fill: var(--ink-2); font: 14px var(--sans); }
.arch-node { cursor: pointer; outline: none; }
.arch-node:hover rect, .arch-node:focus-visible rect { stroke: var(--brand); stroke-width: 2.5; }
.arch-node:focus-visible rect { stroke-dasharray: 5 3; }
.arch-edge { fill: none; stroke: var(--ink-2); stroke-width: 1.4; opacity: .45; transition: opacity .15s, stroke .15s; }
.arch-arrowhead { fill: var(--ink-2); }
svg.has-hov .arch-edge, svg.has-sel .arch-edge { opacity: .12; }
svg .arch-edge.hov, svg .arch-edge.sel { opacity: 1; stroke: var(--accent); stroke-width: 2.2; }
svg.has-hov .arch-node:not(.hov-node):not(.hov-linked):not(.sel-node):not(.sel-linked) rect,
svg.has-sel .arch-node:not(.hov-node):not(.hov-linked):not(.sel-node):not(.sel-linked) rect { opacity: .45; }
.arch-node.sel-node rect { stroke: var(--accent); stroke-width: 3; }
.arch-panel { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; }
.arch-close { float: right; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px;
  width: 32px; height: 32px; font-size: 18px; cursor: pointer; }
.arch-details { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.arch-detail h3, .arch-panel h3 { flex-wrap: wrap; }
.arch-detail dl, .arch-panel dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; margin: 12px 0 0; font-size: 14.5px; }
.arch-detail dt, .arch-panel dt { color: var(--ink-2); font-weight: 600; }
.arch-detail dd, .arch-panel dd { margin: 0; overflow-wrap: anywhere; }
.pill.layer { background: var(--surface-2); color: var(--ink-2); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px !important; }
.chip { font: 600 12px var(--mono); padding: 2px 8px; border-radius: 999px; text-decoration: none; }
.chip.adr { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.chip.req { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ink); }
.pipe { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; counter-reset: none; }
.pipe details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.pipe summary { cursor: pointer; font-weight: 650; display: flex; align-items: center; gap: 10px; }
.compare th[scope=row] { text-align: left; font-weight: 500; }
.pipe summary .small { font: 12px var(--mono); margin-left: auto; }
.pipe details[open] summary { margin-bottom: 6px; }
.pipe p { margin: .3em 0 0; color: var(--ink-2); }
.step-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-fill); color: #e8eef6; font-size: 13px; flex: none; }
.stack-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); align-items: start; }
.stack-card h3 { margin: 0 0 6px; }
.stack-list { list-style: none; margin: 0; padding: 0; display: grid; }
.stack-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.stack-list li:first-child { border-top: 0; padding-top: 4px; }
.stack-list b { font-size: 15.5px; color: var(--ink); }
.stack-list p { margin: .2em 0 0 !important; }
.stack-list .used { font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 6px !important; }
.chip.crate { background: var(--surface-2); color: var(--ink-2); font-weight: 500; }
.small { font-size: 13px; }

/* Agents page (DOC-006): example conversations as chat transcripts. */
.chat-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
.chat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: grid; gap: 8px; }
.chat h3 { margin: 0 0 6px; font-size: 1.05rem; }
.chat p { margin: 0; font-size: 15px; line-height: 1.5; }
.msg { padding: 10px 14px; border-radius: 12px; max-width: 92%; }
.msg.user { justify-self: end; background: var(--brand-fill); color: #e8eef6; border-bottom-right-radius: 4px; }
.msg.agent { justify-self: start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.call { font: 13px/1.5 var(--mono); color: var(--ink-2); padding-left: 12px; border-left: 3px solid var(--accent); overflow-wrap: anywhere; }
.call span { color: var(--accent-text); font-weight: 700; margin-right: 6px; }
.result { font-size: 13.5px !important; color: var(--ink-2); padding-left: 15px; overflow-wrap: anywhere; }
.result::before { content: "↳ "; color: var(--ok); font-weight: 700; }
/* Grid items with code blocks: let <pre> scroll instead of widening the page. */
.steps > *, .chat-grid > *, .two > * { min-width: 0; }
/* Long inline paths and commands wrap on phones (code blocks scroll instead). */
:not(pre) > code { overflow-wrap: anywhere; }

/* REQ: DOC-006 — the decisions explorer. */
.pill.accepted { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.pill.proposed { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.pill.superseded, .pill.deprecated { background: color-mix(in srgb, var(--plan) 18%, transparent); color: var(--plan); }
.adr-legend { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.adr-tools { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; margin-bottom: 14px; }
.adr-tools label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); }
.adr-tools input, .adr-tools select, .adr-tools button { font: inherit; font-size: 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; }
.adr-search { flex: 1 1 260px; }
.adr-search input { width: 100%; }
.adr-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.adr-filter button { cursor: pointer; color: var(--ink-2); }
.adr-filter button[aria-pressed="true"] { color: var(--on-brand); background: var(--brand); border-color: var(--brand); }
.adr-toggle { cursor: pointer; }
.adr-count { flex-basis: 100%; margin: 0; }
.adr-list { display: flex; flex-direction: column; gap: 10px; }
details.adr { padding: 0; }
details.adr > summary { cursor: pointer; list-style: none; position: relative; padding: 14px 18px 14px 34px; display: flex; flex-direction: column; gap: 6px; }
details.adr > summary::-webkit-details-marker { display: none; }
details.adr > summary::before { content: "▸"; position: absolute; left: 14px; top: 14px; color: var(--ink-2); }
details.adr[open] > summary::before { content: "▾"; }
details.adr > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: var(--radius); }
.adr-head { font-weight: 700; overflow-wrap: anywhere; }
.adr-id { font: 700 14px var(--mono); color: var(--brand); margin-right: 4px; }
.adr-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.adr-gist { font-size: 14.5px; }
.adr-body { padding: 0 18px 16px 34px; border-top: 1px solid var(--line); }
.adr-body h3 { font-size: 15px; margin: 16px 0 6px; }
.adr-body p, .adr-body li { overflow-wrap: anywhere; }
.adr-body ul, .adr-body ol { padding-left: 20px; }
.chip.area { background: var(--surface-2); color: var(--ink-2); }
.adr-links { margin-top: 14px; }

details.adr { scroll-margin-top: 84px; }
/* ADR-136 — the index's rows, and the links between the decision pages. */
.adr-row { padding: 12px 18px; display: flex; flex-direction: column; gap: 6px; scroll-margin-top: 84px; }
.adr-row .adr-head { color: var(--ink); text-decoration: none; }
.adr-row .adr-head:hover .adr-title { text-decoration: underline; }
.adr-parts { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; font-size: 14.5px; }
.adr-parts a[aria-current="page"] { font-weight: 700; color: var(--ink); text-decoration: none; }
details.adr[open] .adr-gist { display: none; }

/* ADR-122 — Guides: link cards, callouts, an "on this page" list, and tables that wrap. */
a.card { display: block; text-decoration: none; color: var(--ink); transition: border-color .15s; }
a.card:hover { border-color: var(--brand); }
a.card .more { display: inline-block; margin-top: 10px; font-size: 14.5px; font-weight: 650; color: var(--brand); }
.card.soon { box-shadow: none; background: transparent; }
.callout { border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; padding: 12px 16px; margin: 16px 0; background: var(--surface); font-size: 15.5px; }
.callout.warn { border-left-color: var(--warn); }
.callout p { margin: .2em 0; }
.onpage { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; margin: 14px 0 0; list-style: none; font-size: 15px; }
.std.wrap td, .std.wrap th { white-space: normal; }
.std td code { white-space: nowrap; }
.guide-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sub-head { padding: 8px 10px 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
@media (min-width: 761px) { .sub-list { max-height: calc(100vh - 84px); overflow-y: auto; } }
