/* ==========================================================================
   tuckershively.com: documentation-style site
   Structure and metrics follow the Google Cloud documentation idiom
   (sticky two-row header, book nav, article card, on-this-page rail).
   Palette is the Tucker Shively brand: near-black ink, warm grounds,
   champagne gold used as the single accent.
   ========================================================================== */

:root {
  color-scheme: light;
  --bg: #f7f6f3;
  --paper: #fffefb;
  --paper-soft: #f2f0eb;
  --paper-sunk: #ebe8e1;
  --band: #f3eee1;
  --band-line: #e6dfcc;
  --ink: #1f1d1a;
  --ink-deep: #0a0908;
  --muted: #5d584f;
  --faint: #8a8479;
  --line: #e0dcd3;
  --line-soft: #ebe8e1;
  --accent: #d4af37;
  --accent-deep: #7d5e0c;
  --accent-ink: #5e4608;
  --accent-wash: rgba(212, 175, 55, 0.16);
  --accent-wash-soft: rgba(212, 175, 55, 0.09);
  --focus: #b8953f;
  --btn-bg: #1f1d1a;
  --btn-ink: #fffefb;
  --btn-bg-hover: #0a0908;
  --code-ink: #3b3731;
  --note-bg: #f6efd9;
  --note-ink: #4a3a0c;
  --note-icon: #9c7a17;
  --caution-bg: #fdefe3;
  --caution-ink: #8c3a0b;
  --caution-icon: #c0561a;
  --warning-bg: #fce9e6;
  --warning-ink: #9a2018;
  --warning-icon: #c5372c;
  --success-bg: #e8f2ea;
  --success-ink: #1e5631;
  --success-icon: #2f7d4a;
  --shadow-1: 0 1px 2px rgba(31, 29, 26, 0.08), 0 1px 3px 1px rgba(31, 29, 26, 0.04);
  --shadow-2: 0 2px 6px rgba(31, 29, 26, 0.10), 0 8px 24px rgba(31, 29, 26, 0.08);
  --art-line: rgba(31, 29, 26, 0.62);
  --art-soft: rgba(31, 29, 26, 0.28);

  --disp: "Google Sans", "Helvetica Neue", Arial, sans-serif;
  --body: "Google Sans Text", "Google Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "Google Sans Code", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --nav-w: 268px;
  --toc-w: 208px;
  --card-max: 936px;
  --radius-card: 12px;
  --radius-btn: 4px;
  --radius-field: 8px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0908;
  --paper: #131110;
  --paper-soft: #1c1a17;
  --paper-sunk: #24211d;
  --band: #16140f;
  --band-line: #2c271c;
  --ink: rgba(250, 248, 244, 0.93);
  --ink-deep: #fbf9f4;
  --muted: rgba(250, 248, 244, 0.64);
  --faint: rgba(250, 248, 244, 0.42);
  --line: rgba(250, 248, 244, 0.12);
  --line-soft: rgba(250, 248, 244, 0.07);
  --accent: #d4af37;
  --accent-deep: #e2c264;
  --accent-ink: #edd48a;
  --accent-wash: rgba(212, 175, 55, 0.16);
  --accent-wash-soft: rgba(212, 175, 55, 0.08);
  --focus: #d4af37;
  --btn-bg: #d4af37;
  --btn-ink: #0a0908;
  --btn-bg-hover: #e2c264;
  --code-ink: #e9e3d6;
  --note-bg: rgba(212, 175, 55, 0.10);
  --note-ink: #efdca2;
  --note-icon: #d4af37;
  --caution-bg: rgba(224, 122, 52, 0.12);
  --caution-ink: #f2b88c;
  --caution-icon: #e8894a;
  --warning-bg: rgba(214, 69, 58, 0.14);
  --warning-ink: #f4a39b;
  --warning-icon: #e5584c;
  --success-bg: rgba(82, 170, 110, 0.13);
  --success-ink: #9fd8b0;
  --success-icon: #5fbf80;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-2: 0 4px 12px rgba(0, 0, 0, 0.5), 0 12px 32px rgba(0, 0, 0, 0.4);
  --art-line: rgba(250, 248, 244, 0.55);
  --art-soft: rgba(250, 248, 244, 0.22);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0a0908; --paper: #131110; --paper-soft: #1c1a17; --paper-sunk: #24211d;
    --band: #16140f; --band-line: #2c271c;
    --ink: rgba(250, 248, 244, 0.93); --ink-deep: #fbf9f4;
    --muted: rgba(250, 248, 244, 0.64); --faint: rgba(250, 248, 244, 0.42);
    --line: rgba(250, 248, 244, 0.12); --line-soft: rgba(250, 248, 244, 0.07);
    --accent-deep: #e2c264; --accent-ink: #edd48a; --focus: #d4af37;
    --btn-bg: #d4af37; --btn-ink: #0a0908; --btn-bg-hover: #e2c264; --code-ink: #e9e3d6;
    --note-bg: rgba(212, 175, 55, 0.10); --note-ink: #efdca2; --note-icon: #d4af37;
    --caution-bg: rgba(224, 122, 52, 0.12); --caution-ink: #f2b88c; --caution-icon: #e8894a;
    --warning-bg: rgba(214, 69, 58, 0.14); --warning-ink: #f4a39b; --warning-icon: #e5584c;
    --success-bg: rgba(82, 170, 110, 0.13); --success-ink: #9fd8b0; --success-icon: #5fbf80;
    --art-line: rgba(250, 248, 244, 0.55); --art-soft: rgba(250, 248, 244, 0.22);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 124px; }
/* Header geometry lives on body so the section and scroll modifiers recompute --header-h */
body {
  --topbar-h: 52px;
  --band-title-h: 56px;
  --band-tabs-h: 48px;
  --header-h: calc(var(--topbar-h) + var(--band-title-h) + var(--band-tabs-h));
  margin: 0;
  font: 400 16px/1.625 var(--body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-band { --band-title-h: 0px; --band-tabs-h: 0px; --header-h: var(--topbar-h); }
body.is-scrolled:not(.no-band) { --band-title-h: 0px; --header-h: calc(var(--topbar-h) + var(--band-tabs-h)); }
img, svg { max-width: 100%; }
a { color: var(--accent-deep); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
button { font: inherit; color: inherit; }
kbd {
  font: 500 12px/1 var(--mono); color: var(--muted); background: var(--paper);
  border: 1px solid var(--line); border-radius: 4px; padding: 3px 6px;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--btn-bg); color: var(--btn-ink);
  padding: 10px 16px; border-radius: var(--radius-btn); font: 500 14px/1 var(--disp);
}
.skip:focus { top: 12px; text-decoration: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 20px; border-radius: var(--radius-btn);
  font: 500 14px/1 var(--disp); letter-spacing: 0.01em; white-space: nowrap;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.button:hover { text-decoration: none; border-color: var(--accent); background: var(--accent-wash-soft); }
.button-primary { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }
.button-primary:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); color: var(--btn-ink); box-shadow: var(--shadow-1); }
.button-lg { height: 44px; padding: 0 24px; font-size: 15px; }
.button .arrow { transition: transform .15s; }
.button:hover .arrow { transform: translateX(2px); }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: transparent; color: var(--muted); cursor: pointer; flex: none;
}
.icon-btn:hover { background: var(--paper-soft); color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; background: var(--paper);
  box-shadow: 0 1px 0 var(--line), 0 2px 6px rgba(31, 29, 26, 0.05);
}
.topbar {
  height: var(--topbar-h); display: flex; align-items: center; gap: 8px;
  padding: 0 16px 0 20px;
}
.menu-btn { display: none; margin-left: -8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); margin-right: 28px; flex: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 15px; height: 15px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.brand-name { font: 400 21px/1 var(--disp); letter-spacing: -0.01em; color: var(--ink-deep); }
.brand-name b { font-weight: 500; }
.top-tabs { display: flex; align-self: stretch; gap: 4px; }
.top-tab {
  position: relative; display: inline-flex; align-items: center; padding: 0 12px;
  font: 500 14px/1 var(--disp); color: var(--muted);
}
.top-tab:hover { color: var(--ink); text-decoration: none; }
.top-tab.is-active { color: var(--ink-deep); }
.top-tab.is-active::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px;
  background: var(--accent); border-radius: 3px 3px 0 0;
}
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* Search */
.search { position: relative; }
.search-field {
  display: flex; align-items: center; gap: 10px; height: 38px; width: 260px; padding: 0 8px 0 12px;
  background: var(--paper-soft); border: 1px solid transparent; border-radius: var(--radius-field);
  color: var(--muted); transition: width .2s, background-color .15s, border-color .15s;
}
.search-field svg { width: 20px; height: 20px; flex: none; }
.search-field input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink);
  font: 400 15px/1 var(--body); height: 100%;
}
.search-field input::placeholder { color: var(--muted); }
.search-field input::-webkit-search-cancel-button { display: none; }
.search.is-open .search-field { width: 420px; background: var(--paper); border-color: var(--line); box-shadow: var(--shadow-1); }
.search.is-open kbd { display: none; }
.search-results {
  position: absolute; top: calc(100% + 6px); right: 0; width: 520px; max-height: min(70vh, 560px); overflow-y: auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-field); box-shadow: var(--shadow-2);
  padding: 6px;
}
.search-results a {
  display: block; padding: 10px 12px; border-radius: 6px; color: var(--ink);
}
.search-results a:hover, .search-results a[aria-selected="true"] { background: var(--accent-wash-soft); text-decoration: none; }
.search-results .sr-area { display: block; font: 500 12px/1.3 var(--disp); color: var(--muted); letter-spacing: .02em; }
.search-results .sr-title { display: block; font: 500 15px/1.35 var(--disp); color: var(--ink-deep); margin-top: 2px; }
.search-results .sr-desc { display: block; font: 400 13px/1.45 var(--body); color: var(--muted); margin-top: 2px; }
.search-results mark { background: var(--accent-wash); color: inherit; border-radius: 2px; padding: 0 1px; }
.search-results .sr-empty { padding: 14px 12px; color: var(--muted); font-size: 14px; }
.search-open-btn { display: none; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
.topbar-cta { margin-left: 4px; }

/* Section band */
.band { background: var(--band); border-top: 1px solid var(--band-line); }
.band-title-row {
  height: var(--band-title-h); overflow: hidden; display: flex; align-items: center; gap: 16px;
  padding: 0 20px 0 24px; transition: height .18s ease;
}
.band-title { font: 400 22px/1.2 var(--disp); color: var(--ink-deep); letter-spacing: -0.005em; display: flex; align-items: center; gap: 12px; }
.band-title a { color: inherit; }
.band-title a:hover { text-decoration: none; }
.band-title-row .button { margin-left: auto; }
.band-tabs {
  height: var(--band-tabs-h); display: flex; align-items: stretch; gap: 4px; padding: 0 12px;
  overflow-x: auto; scrollbar-width: none;
}
.band-tabs::-webkit-scrollbar { display: none; }
.band-tab {
  position: relative; display: inline-flex; align-items: center; padding: 0 12px; white-space: nowrap;
  font: 500 14px/1 var(--disp); color: var(--ink);
}
.band-tab:hover { text-decoration: none; color: var(--accent-deep); }
.band-tab.is-active { color: var(--accent-ink); }
.band-tab.is-active::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px;
  background: var(--accent); border-radius: 3px 3px 0 0;
}
body.is-scrolled .band-tabs .band-cta-mini { display: inline-flex; }
.band-cta-mini { display: none; margin: auto 8px auto auto; height: 32px; padding: 0 14px; font-size: 13px; }

/* ---------- Layout ---------- */
.layout {
  display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr) var(--toc-w);
  align-items: start; max-width: 1560px;
}
.layout.no-toc { grid-template-columns: var(--nav-w) minmax(0, 1fr); }
.main { min-width: 0; padding: 24px 24px 40px; }
.card {
  max-width: var(--card-max); background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-card); overflow: hidden;
}
.card-pad { padding: 36px 40px 40px; }
.page-meta { max-width: var(--card-max); padding: 18px 2px 0; font-size: 13px; line-height: 20px; color: var(--muted); }
.page-meta p { margin: 0 0 8px; }

/* Book nav */
.booknav {
  position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h));
  border-right: 1px solid var(--line); background: var(--paper);
  display: flex; flex-direction: column; transition: top .18s ease, height .18s ease;
}
.booknav-head { padding: 16px 16px 12px 20px; border-bottom: 1px solid var(--line-soft); }
.nav-filter {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px;
  background: var(--paper-soft); border-radius: 4px; color: var(--muted);
}
.nav-filter svg { width: 18px; height: 18px; flex: none; }
.nav-filter input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 14px/1 var(--body); color: var(--ink); }
.nav-filter input::placeholder { color: var(--muted); }
.booknav-scroll { flex: 1; overflow-y: auto; padding: 10px 0 32px; scrollbar-width: thin; }
.nav-list, .nav-list ul { list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: block; margin-right: 8px; padding: 5px 12px 5px 20px; border-radius: 0 16px 16px 0;
  font: 400 13.5px/18px var(--body); color: var(--ink);
}
.nav-link:hover { background: var(--paper-soft); text-decoration: none; }
.nav-link[aria-current="page"] { background: var(--accent-wash); color: var(--accent-ink); font-weight: 500; }
:root[data-theme="dark"] .nav-link[aria-current="page"] { color: var(--ink-deep); }
.nav-sub .nav-link { padding-left: 36px; }
.nav-heading {
  padding: 16px 12px 6px 20px; font: 500 13px/16px var(--disp); color: var(--ink-deep); letter-spacing: .01em;
}
.nav-group { border-top: 1px solid var(--line-soft); }
.nav-group:first-child { border-top: 0; }
.nav-group-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 16px 12px 20px; border: 0; background: transparent; cursor: pointer; text-align: left;
  font: 500 13.5px/18px var(--disp); color: var(--ink-deep);
}
.nav-group-toggle:hover { background: var(--paper-soft); }
.nav-group-toggle svg { width: 20px; height: 20px; color: var(--muted); transition: transform .18s; flex: none; }
.nav-group-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-group-body { padding: 0 0 10px; }
.nav-group-body[hidden] { display: none; }
.nav-group-body .nav-heading { padding-top: 10px; font-size: 12px; color: var(--muted); font-weight: 500; }
.booknav .filter-empty { padding: 12px 20px; font-size: 13px; color: var(--muted); }

/* On this page */
.toc {
  position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto; padding: 24px 20px 24px 8px; scrollbar-width: thin; transition: top .18s ease;
}
.toc-title { font: 500 13px/16px var(--disp); color: var(--ink-deep); padding: 0 0 8px 14px; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a {
  display: block; margin-left: -2px; padding: 5px 0 5px 12px; border-left: 2px solid transparent;
  font: 400 13px/17px var(--body); color: var(--muted);
}
.toc li.lvl3 a { padding-left: 24px; }
.toc li a:hover { color: var(--ink); text-decoration: none; }
.toc li a.is-active { color: var(--accent-ink); border-left-color: var(--accent); }
:root[data-theme="dark"] .toc li a.is-active { color: var(--ink-deep); }
.toc-inline { display: none; margin: 0 0 24px; border-left: 2px solid var(--accent); padding: 2px 0 2px 16px; }
.toc-inline summary { cursor: pointer; font: 500 14px/20px var(--disp); color: var(--ink-deep); list-style: none; display: flex; align-items: center; gap: 6px; }
.toc-inline summary::-webkit-details-marker { display: none; }
.toc-inline summary svg { width: 20px; height: 20px; transition: transform .18s; }
.toc-inline[open] summary svg { transform: rotate(180deg); }
.toc-inline ul { list-style: none; margin: 8px 0 0; padding: 0; }
.toc-inline li a { display: block; padding: 5px 0; font-size: 14px; color: var(--ink); }
.toc-inline li.lvl3 a { padding-left: 14px; color: var(--muted); }

/* ---------- Doc chrome ---------- */
.doc-meta-row { display: flex; align-items: center; gap: 16px; justify-content: space-between; margin-bottom: 18px; min-height: 28px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; }
.breadcrumbs li { display: inline-flex; align-items: center; font: 400 14px/20px var(--disp); color: var(--muted); }
.breadcrumbs li + li::before {
  content: ""; width: 18px; height: 18px; margin: 0 4px;
  background: currentColor; opacity: .75;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 6 8.6 7.4 13.2 12l-4.6 4.6L10 18l6-6z'/%3E%3C/svg%3E") center/18px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 6 8.6 7.4 13.2 12l-4.6 4.6L10 18l6-6z'/%3E%3C/svg%3E") center/18px no-repeat;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); }
.helpful { display: flex; align-items: center; gap: 4px; font: 400 14px/20px var(--body); color: var(--ink); white-space: nowrap; }
.helpful .label { margin-right: 6px; }
.helpful .icon-btn { width: 34px; height: 34px; }
.helpful .icon-btn svg { width: 19px; height: 19px; }
.helpful .icon-btn[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent-wash); }
.helpful .thanks { font-size: 13px; color: var(--muted); margin-left: 6px; }

.doc-title-row { display: flex; align-items: flex-start; gap: 16px 20px; flex-wrap: wrap; margin: 0 0 20px; }
.page-title {
  flex: 1 1 420px; margin: 0; font: 400 36px/44px var(--disp); letter-spacing: -0.012em; color: var(--ink-deep);
}
.title-actions { display: flex; align-items: center; gap: 8px; padding-top: 4px; }
.doc-type {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 3px 10px;
  border-radius: 12px; background: var(--paper-soft); font: 500 12px/18px var(--disp); color: var(--muted); letter-spacing: .02em;
}
.doc-type .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.audience { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px;
  border: 1px solid var(--line); font: 500 12.5px/1 var(--disp); color: var(--muted); background: var(--paper);
}
.chip svg { width: 15px; height: 15px; }

/* ---------- Prose ---------- */
.prose { font: 400 16px/1.625 var(--body); color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 16px 0; }
.prose .lead { font-size: 18px; line-height: 1.6; color: var(--ink); margin-top: 0; }
.prose h2 { font: 400 24px/32px var(--disp); color: var(--ink-deep); margin: 48px 0 16px; letter-spacing: -0.005em; }
.prose h3 { font: 400 20px/28px var(--disp); color: var(--ink-deep); margin: 32px 0 12px; }
.prose h4 { font: 500 16px/24px var(--disp); color: var(--ink-deep); margin: 24px 0 8px; }
.prose h2, .prose h3 { position: relative; }
.prose .anchor {
  position: absolute; left: -30px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px;
  display: grid; place-items: center; color: var(--faint); opacity: 0; border-radius: 50%;
}
.prose .anchor svg { width: 18px; height: 18px; }
.prose h2:hover .anchor, .prose h3:hover .anchor, .prose .anchor:focus-visible { opacity: 1; }
.prose .anchor:hover { color: var(--accent-deep); background: var(--paper-soft); text-decoration: none; }
.prose ul, .prose ol { margin: 16px 0; padding-left: 28px; }
.prose li { margin: 8px 0; padding-left: 4px; }
.prose li > ul, .prose li > ol { margin: 6px 0; }
.prose ol > li::marker { font-family: var(--disp); color: var(--muted); }
.prose ul > li::marker { color: var(--faint); }
.prose strong { font-weight: 700; color: var(--ink-deep); }
.prose em { font-style: italic; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose blockquote { margin: 20px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--line); color: var(--muted); }
.prose code {
  font: 500 0.9em/1 var(--mono); color: var(--code-ink); background: var(--paper-soft);
  padding: 2px 5px; border-radius: 4px; word-break: break-word;
}
.prose pre {
  position: relative; margin: 20px 0; padding: 20px 24px; background: var(--paper-soft);
  border-radius: 8px; overflow-x: auto; font: 400 14px/21px var(--mono); color: var(--code-ink);
}
.prose pre.has-copy { padding-top: 44px; }
.prose pre code { font: inherit; background: none; padding: 0; color: inherit; word-break: normal; white-space: pre; }
.code-label {
  position: absolute; left: 16px; top: 12px; font: 500 12px/1 var(--disp); color: var(--muted); letter-spacing: .02em;
}
.copy-btn {
  position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: transparent; color: var(--muted); cursor: pointer;
}
.copy-btn:hover { background: var(--paper-sunk); color: var(--ink); }
.copy-btn svg { width: 18px; height: 18px; }
.copy-btn.is-copied { color: var(--success-icon); }

/* Tables */
.table-wrap { margin: 20px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.prose th {
  text-align: left; font: 500 14px/20px var(--disp); color: var(--ink-deep); background: var(--paper-soft);
  padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.prose td { padding: 12px 16px; border-top: 1px solid var(--line-soft); vertical-align: top; }
.prose tr:first-child td { border-top: 0; }
.prose td code { white-space: nowrap; }

/* Callouts: note, caution, warning, success, field note */
.prose aside, aside.callout {
  position: relative; margin: 20px 0; padding: 14px 20px 14px 56px; border-radius: 0;
  font: 400 15px/1.6 var(--body);
}
.prose aside > :first-child { margin-top: 0; }
.prose aside > :last-child { margin-bottom: 0; }
.prose aside p { margin: 8px 0; }
.prose aside::before {
  content: ""; position: absolute; left: 20px; top: 15px; width: 22px; height: 22px; background: currentColor;
}
.prose aside .callout-label { font-weight: 700; }
aside.note { background: var(--note-bg); color: var(--note-ink); }
aside.note::before { background: var(--note-icon);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 17.3 18.2 21l-1.6-7L22 9.2l-7.2-.6L12 2 9.2 8.6 2 9.2 7.5 14l-1.7 7z'/%3E%3C/svg%3E") center/22px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 17.3 18.2 21l-1.6-7L22 9.2l-7.2-.6L12 2 9.2 8.6 2 9.2 7.5 14l-1.7 7z'/%3E%3C/svg%3E") center/22px no-repeat; }
aside.caution { background: var(--caution-bg); color: var(--caution-ink); }
aside.caution::before { background: var(--caution-icon);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15h-2v-2h2zm0-4h-2V7h2z'/%3E%3C/svg%3E") center/22px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15h-2v-2h2zm0-4h-2V7h2z'/%3E%3C/svg%3E") center/22px no-repeat; }
aside.warning { background: var(--warning-bg); color: var(--warning-ink); }
aside.warning::before { background: var(--warning-icon);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z'/%3E%3C/svg%3E") center/22px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z'/%3E%3C/svg%3E") center/22px no-repeat; }
aside.success { background: var(--success-bg); color: var(--success-ink); }
aside.success::before { background: var(--success-icon);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-2 15-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8z'/%3E%3C/svg%3E") center/22px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-2 15-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8z'/%3E%3C/svg%3E") center/22px no-repeat; }
aside.field-note {
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  padding: 16px 22px 16px 22px; border-radius: 0 8px 8px 0;
}
aside.field-note::before { display: none; }
aside.field-note .fn-label {
  display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 500 12px/1 var(--disp); letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-deep);
}
aside.field-note .fn-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* Steps */
.prose ol.steps { list-style: none; counter-reset: step; padding-left: 0; }
.prose ol.steps > li { counter-increment: step; position: relative; padding-left: 48px; margin: 22px 0; }
.prose ol.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font: 500 14px/1 var(--disp); color: var(--ink-deep);
  background: var(--paper); border: 1px solid var(--line); box-shadow: inset 0 -2px 0 var(--accent-wash);
}
.prose ol.steps > li > strong:first-child { display: block; font: 500 17px/1.4 var(--disp); color: var(--ink-deep); margin-bottom: 2px; }

/* Checklist */
.prose ul.checklist { list-style: none; padding-left: 0; }
.prose ul.checklist > li { position: relative; padding-left: 34px; }
.prose ul.checklist > li::before {
  content: ""; position: absolute; left: 2px; top: 3px; width: 18px; height: 18px; border-radius: 4px;
  border: 1.5px solid var(--faint); background: var(--paper);
}
.prose ul.checklist > li.done::before { background: var(--accent); border-color: var(--accent); }

/* Details */
.prose details.expandable { margin: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prose details.expandable + details.expandable { margin-top: -17px; }
.prose details.expandable summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 4px;
  font: 500 16px/1.4 var(--disp); color: var(--ink-deep);
}
.prose details.expandable summary::-webkit-details-marker { display: none; }
.prose details.expandable summary::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--paper-soft);
  -webkit-mask: none; box-shadow: inset 0 0 0 1px var(--line);
}
.prose details.expandable summary::after {
  content: ""; position: absolute; width: 10px; height: 2px; background: var(--ink); margin-left: 6px; margin-top: 0;
}
.prose details.expandable summary { position: relative; }
.prose details.expandable summary::after { left: 10px; top: 50%; transform: translateY(-50%); }
.prose details.expandable summary > span.plus { position: absolute; left: 14px; top: 50%; width: 2px; height: 10px; background: var(--ink); transform: translateY(-50%); }
.prose details.expandable[open] summary > span.plus { display: none; }
.prose details.expandable .details-body { padding: 0 4px 16px 38px; }

/* Tabs widget */
.tabs { margin: 20px 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper); }
.tabs-bar { display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs-bar::-webkit-scrollbar { display: none; }
.tabs-bar button {
  position: relative; border: 0; background: none; cursor: pointer; padding: 14px 12px; white-space: nowrap;
  font: 500 14px/1 var(--disp); color: var(--muted);
}
.tabs-bar button:hover { color: var(--ink); }
.tabs-bar button[aria-selected="true"] { color: var(--accent-ink); }
:root[data-theme="dark"] .tabs-bar button[aria-selected="true"] { color: var(--ink-deep); }
.tabs-bar button[aria-selected="true"]::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; background: var(--accent); border-radius: 3px 3px 0 0;
}
.tab-panel { padding: 6px 24px 8px; }
.tab-panel[hidden] { display: none; }
.tabs:not(.is-ready) .tab-panel::before { content: attr(data-label); display: block; font: 500 14px/1 var(--disp); padding-top: 16px; color: var(--muted); }

/* Figures and diagrams */
.prose figure { margin: 28px 0; }
.prose figure svg, .prose figure img { display: block; width: 100%; height: auto; }
.prose figcaption { margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.diagram { border: 1px solid var(--line); border-radius: 8px; background: var(--paper); padding: 20px; overflow-x: auto; }
.diagram svg text { font-family: var(--disp); }

/* Flow diagram: numbered stages with arrows, stacks vertically on phones */
.prose ol.flow {
  list-style: none; counter-reset: flow; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 34px; margin: 28px 0; padding: 0;
}
.prose ol.flow > li {
  counter-increment: flow; position: relative; margin: 0; padding: 14px 16px 15px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
  font-size: 14px; line-height: 1.5; color: var(--muted);
}
.prose ol.flow > li::before {
  content: counter(flow); display: grid; place-items: center; width: 24px; height: 24px; margin-bottom: 8px;
  border-radius: 50%; background: var(--accent-wash); color: var(--accent-ink); font: 500 13px/1 var(--disp);
}
:root[data-theme="dark"] .prose ol.flow > li::before { color: var(--accent); }
.prose ol.flow > li > strong { display: block; margin-bottom: 3px; font: 500 15px/1.35 var(--disp); color: var(--ink-deep); }
.prose ol.flow > li:not(:nth-child(3n)):not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -27px; width: 20px; height: 20px; transform: translateY(-50%);
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4 10.6 5.4 16.2 11H4v2h12.2l-5.6 5.6L12 20l8-8z'/%3E%3C/svg%3E") center/20px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4 10.6 5.4 16.2 11H4v2h12.2l-5.6 5.6L12 20l8-8z'/%3E%3C/svg%3E") center/20px no-repeat;
}
.prose ol.flow.flow-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 30px; }
.prose ol.flow.flow-4 > li::after { display: none; }
.prose ol.flow.flow-4 > li:not(:nth-child(4n)):not(:last-child)::after {
  display: block; content: ""; position: absolute; top: 50%; right: -25px; width: 20px; height: 20px; transform: translateY(-50%); background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4 10.6 5.4 16.2 11H4v2h12.2l-5.6 5.6L12 20l8-8z'/%3E%3C/svg%3E") center/20px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4 10.6 5.4 16.2 11H4v2h12.2l-5.6 5.6L12 20l8-8z'/%3E%3C/svg%3E") center/20px no-repeat;
}
.flow-caption { margin: -12px 0 24px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 767px) {
  .prose ol.flow, .prose ol.flow.flow-4 { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .prose ol.flow > li::after, .prose ol.flow.flow-4 > li::after { display: none !important; }
  .prose ol.flow > li:not(:last-child)::after, .prose ol.flow.flow-4 > li:not(:last-child)::after {
    display: block !important; content: ""; position: absolute; top: auto; bottom: -24px; left: 50%; right: auto; width: 20px; height: 20px;
    transform: translateX(-50%) rotate(90deg); background: var(--accent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4 10.6 5.4 16.2 11H4v2h12.2l-5.6 5.6L12 20l8-8z'/%3E%3C/svg%3E") center/20px no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4 10.6 5.4 16.2 11H4v2h12.2l-5.6 5.6L12 20l8-8z'/%3E%3C/svg%3E") center/20px no-repeat;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .prose ol.flow.flow-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prose ol.flow.flow-4 > li:nth-child(2n)::after { display: none !important; }
}

/* Definition grid used inside docs */
.prose .kv { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; border-top: 1px solid var(--line); margin: 20px 0; }
.prose .kv > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.prose .kv > div:nth-child(odd) { font: 500 14.5px/1.5 var(--disp); color: var(--ink-deep); padding-right: 16px; }

/* What's next + page feedback */
.whats-next { margin-top: 48px; }
.whats-next h2 { font: 400 24px/32px var(--disp); color: var(--ink-deep); margin: 0 0 12px; }
.whats-next ul { margin: 0; padding-left: 24px; }
.whats-next li { margin: 10px 0; }
.doc-feedback { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line-soft); display: grid; justify-items: center; gap: 12px; text-align: center; }
.doc-feedback .helpful { justify-content: center; }

/* Sell box used at the end of guides */
.sell {
  margin: 44px 0 0; display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: center;
  padding: 24px 28px; background: var(--band); border: 1px solid var(--band-line); border-radius: 8px;
}
.sell h3 { margin: 0 0 6px; font: 500 18px/1.35 var(--disp); color: var(--ink-deep); }
.sell p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.sell .button { justify-self: end; }

/* ---------- Landing blocks (hub, service, area pages) ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 232px;
  background: var(--band); border-bottom: 1px solid var(--band-line); overflow: hidden;
}
.hero-copy { position: relative; z-index: 1; padding: 40px 0 40px 40px; }
.hero-copy .eyebrow-crumbs { margin-bottom: 14px; }
.hero h1 { margin: 0 0 14px; font: 400 40px/48px var(--disp); letter-spacing: -0.015em; color: var(--ink-deep); }
.hero .hero-sub { margin: 0 0 22px; font-size: 17px; line-height: 1.6; color: var(--ink); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-art { position: relative; min-height: 100%; }
.hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero.hero-plain { grid-template-columns: 1fr; min-height: 0; background: var(--paper); border-bottom: 0; }
.hero.hero-plain .hero-copy { padding-bottom: 8px; }

.section { padding: 36px 40px; }
.section + .section { padding-top: 8px; }
.section.tint { background: var(--paper-soft); padding-top: 36px; }
.section.tint + .section { padding-top: 36px; }
.section-title { margin: 0 0 8px; font: 400 28px/36px var(--disp); letter-spacing: -0.01em; color: var(--ink-deep); }
.section-sub { margin: 0 0 22px; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 70ch; }
.section-sub a { font-weight: 500; }

.promo {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center;
  padding: 26px 40px; background: var(--band); border-top: 1px solid var(--band-line); border-bottom: 1px solid var(--band-line);
}
.promo h2 { margin: 0 0 8px; font: 500 19px/1.35 var(--disp); color: var(--ink-deep); }
.promo ul { margin: 0; padding-left: 18px; font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.promo li { margin: 3px 0; }
.promo li::marker { color: var(--accent-deep); }
.promo .promo-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.promo .promo-note { font-size: 13px; color: var(--muted); }

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

.tile {
  display: flex; flex-direction: column; min-height: 100%; padding: 18px 20px 20px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--paper); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
a.tile:hover { text-decoration: none; border-color: var(--accent); box-shadow: var(--shadow-1); }
.tile-title { margin: 0 0 12px; font: 400 19px/26px var(--disp); color: var(--accent-deep); }
:root[data-theme="dark"] .tile-title { color: var(--accent-deep); }
a.tile:hover .tile-title { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.tile-text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.tile .tile-foot { margin-top: auto; padding-top: 14px; font: 500 13px/1 var(--disp); color: var(--muted); display: flex; gap: 8px; align-items: center; }
.tile-badge {
  align-self: flex-start; margin: 0 0 10px; padding: 3px 9px; border-radius: 4px; font: 500 12px/16px var(--disp);
  background: var(--paper-soft); color: var(--ink); border: 1px solid var(--line-soft);
}
.tile-badge.gold { background: var(--accent-wash); color: var(--accent-ink); border-color: transparent; }
:root[data-theme="dark"] .tile-badge.gold { color: var(--ink-deep); }

.spot { padding: 20px 22px 22px; border-radius: 8px; border: 1px solid var(--band-line); background: var(--band); display: flex; flex-direction: column; }
.spot.alt { background: var(--paper-soft); border-color: var(--line); }
.spot .tile-title { font-size: 21px; line-height: 28px; }
a.spot:hover { text-decoration: none; border-color: var(--accent); }
a.spot:hover .tile-title { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }

.linkcard { padding: 20px 22px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.linkcard .lc-icon {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-wash);
  color: var(--accent-ink); margin-bottom: 14px;
}
:root[data-theme="dark"] .linkcard .lc-icon { color: var(--accent); }
.linkcard .lc-icon svg { width: 22px; height: 22px; }
.linkcard h3 { margin: 0 0 12px; font: 400 21px/28px var(--disp); color: var(--ink-deep); }
.linkcard ul { list-style: none; margin: 0; padding: 0; }
.linkcard li { margin: 0; }
.linkcard li a { display: block; padding: 5px 0; font-size: 15px; line-height: 1.45; }

.chips-row { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.tool {
  display: inline-flex; align-items: center; gap: 12px; padding: 6px 16px 6px 6px; border-radius: 24px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 400 15px/1 var(--disp);
}
.tool .mono {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-soft);
  font: 500 12px/1 var(--disp); color: var(--ink-deep); letter-spacing: .02em;
}
a.tool:hover { text-decoration: none; border-color: var(--accent); }
a.tool:hover .mono { background: var(--accent-wash); }

.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.path {
  position: relative; padding: 24px 24px 22px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper);
  display: flex; flex-direction: column; gap: 10px;
}
.path.primary { border-color: var(--ink-deep); box-shadow: inset 0 3px 0 var(--accent); }
.path .path-kicker { font: 500 12px/1 var(--disp); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.path h3 { margin: 0; font: 400 24px/31px var(--disp); color: var(--ink-deep); letter-spacing: -0.01em; }
.path p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.path ul { margin: 2px 0 6px; padding-left: 18px; font-size: 14.5px; line-height: 1.55; }
.path li { margin: 4px 0; }
.path .button { align-self: flex-start; margin-top: auto; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 18px 20px 18px 0; }
.fact + .fact { padding-left: 20px; border-left: 1px solid var(--line-soft); }
.fact .fact-num { display: block; font: 400 32px/1.1 var(--disp); color: var(--ink-deep); letter-spacing: -0.02em; }
.fact .fact-num .u { font-size: 18px; color: var(--accent-deep); margin-left: 2px; }
.fact .fact-label { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }

/* Service page pieces */
.section .prose { max-width: 74ch; }
.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.split .prose { max-width: none; }
.glance { border: 1px solid var(--line); border-radius: 8px; padding: 20px 22px; background: var(--paper-soft); }
.glance h3 { margin: 0 0 14px; font: 500 12px/1 var(--disp); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.glance dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 12px 18px; font-size: 14.5px; line-height: 1.45; }
.glance dt { color: var(--muted); }
.glance dd { margin: 0; color: var(--ink-deep); font-weight: 500; }
.glance .glance-price { display: block; font: 400 30px/1.1 var(--disp); letter-spacing: -0.02em; color: var(--ink-deep); margin: -2px 0 4px; }
.glance .glance-price small { font-size: 14px; color: var(--muted); letter-spacing: 0; }
.glance .button { width: 100%; margin-top: 18px; }
.glance p { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.feature { padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.feature::before { content: ""; display: block; width: 28px; height: 3px; margin-bottom: 14px; border-radius: 2px; background: var(--accent); }
.feature h3 { margin: 0 0 8px; font: 500 17px/1.35 var(--disp); color: var(--ink-deep); }
.feature p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.section .prose ul.checklist, .section .prose ol.steps { margin-top: 8px; }
.faq-list { max-width: 74ch; }
.faq-list details.expandable:first-child { margin-top: 0; }
.cols-2 { columns: 2; column-gap: 40px; }
.cols-2 li { break-inside: avoid; }

/* Pricing tables */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.price { padding: 22px 20px; background: var(--paper); display: flex; flex-direction: column; gap: 8px; }
.price + .price { border-left: 1px solid var(--line); }
.price.featured { background: var(--band); box-shadow: inset 0 3px 0 var(--accent); }
.price .price-name { font: 500 17px/1.3 var(--disp); color: var(--ink-deep); }
.price .price-amt { font: 400 30px/1.1 var(--disp); color: var(--ink-deep); letter-spacing: -0.02em; }
.price .price-amt small { font-size: 14px; color: var(--muted); letter-spacing: 0; }
.price .price-setup { font-size: 13px; color: var(--muted); }
.price p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.price ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }
.price li { margin: 4px 0; }

/* Forms */
.form { display: grid; gap: 16px; max-width: 640px; }
.form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font: 500 14px/1.3 var(--disp); color: var(--ink-deep); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; font: 400 16px/1.4 var(--body); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 6px; padding: 11px 12px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--focus); box-shadow: 0 0 0 3px var(--accent-wash); }
.field .hint { font-size: 13px; color: var(--muted); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 15px; line-height: 1.55; }
.form-status.error { color: var(--warning-ink); background: var(--warning-bg); padding: 12px 16px; border-radius: 6px; }
.form-success { padding: 24px; border-radius: 8px; background: var(--success-bg); color: var(--success-ink); }
.form-success h3 { margin: 0 0 6px; font: 500 20px/1.3 var(--disp); }
.form-success p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); margin-top: 16px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 40px 32px 28px; max-width: 1240px; }
.footer-cols h2 { margin: 0 0 14px; font: 400 18px/1.3 var(--disp); color: var(--ink-deep); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li a { display: inline-block; padding: 6px 0; font-size: 15px; color: var(--ink); }
.footer-cols li a:hover { color: var(--accent-deep); }
.footer-brandrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin: 0 32px; padding: 22px 0;
  border-top: 1px solid var(--line); max-width: 1176px;
}
.footer-brandrow .brand { margin-right: 8px; }
.footer-brandrow .brand-name { font-size: 19px; }
.footer-brandrow p { margin: 0; font-size: 14px; color: var(--muted); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin: 0 32px; padding: 18px 0 28px; border-top: 1px solid var(--line); max-width: 1176px; font-size: 14px; color: var(--muted);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 4px 0; }
.footer-bottom nav a { color: var(--ink); padding: 2px 0; }
.footer-bottom nav a + a::before { content: "|"; color: var(--faint); margin: 0 10px; }

/* Mobile nav scrim */
.scrim { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
  .layout { grid-template-columns: var(--nav-w) minmax(0, 1fr); }
  .toc { display: none; }
  .toc-inline { display: block; }
  .search-results { width: 460px; }
}
@media (max-width: 1100px) {
  .search-field { width: 200px; }
  .search.is-open .search-field { width: 320px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  body { --band-title-h: 52px; }
  .layout, .layout.no-toc { grid-template-columns: minmax(0, 1fr); }
  .menu-btn { display: inline-grid; }
  .top-tabs { display: none; }
  .brand { margin-right: 8px; }
  .booknav {
    position: fixed; z-index: 60; top: 0; left: 0; bottom: 0; height: 100%; width: min(340px, 88vw);
    transform: translateX(-102%); transition: transform .22s ease; box-shadow: var(--shadow-2); border-right: 0;
  }
  .booknav .booknav-mobile-top { display: flex; }
  body.menu-open .booknav { transform: none; }
  body.menu-open .scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(10, 9, 8, 0.42); }
  body.menu-open { overflow: hidden; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-art { height: 150px; order: -1; min-height: 150px; }
  .hero-copy { padding: 28px 28px 32px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cols-2 { columns: 1; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.booknav-mobile-top { display: none; align-items: center; gap: 8px; height: 56px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--line-soft); }
.booknav-mobile-top .brand { margin-right: auto; }
.booknav-mobile-links { display: none; }
@media (max-width: 1023px) {
  .booknav-mobile-links { display: block; padding: 8px 0 10px; border-bottom: 1px solid var(--line-soft); }
  .booknav-mobile-links a { display: block; padding: 10px 20px; font: 500 15px/1.3 var(--disp); color: var(--ink-deep); }
  .booknav-mobile-links a[aria-current="true"] { color: var(--accent-ink); background: var(--accent-wash-soft); }
}
@media (max-width: 767px) {
  body { --topbar-h: 56px; }
  .search { display: none; }
  .search.is-mobile-open { display: block; position: fixed; inset: 0 0 auto 0; z-index: 70; padding: 8px 12px; background: var(--paper); box-shadow: var(--shadow-2); }
  .search.is-mobile-open .search-field { width: 100%; height: 44px; background: var(--paper-soft); }
  .search.is-mobile-open .search-results { position: static; width: 100%; margin-top: 8px; max-height: calc(100vh - 80px); box-shadow: none; }
  .search-open-btn { display: inline-grid; }
  .topbar-cta { display: none; }
  .band-title-row { padding: 0 16px; }
  .band-title { font-size: 19px; }
  .band-title-row .button { height: 34px; padding: 0 14px; font-size: 13px; }
  .main { padding: 0 0 32px; }
  .card { border-radius: 0; border-left: 0; border-right: 0; }
  .card-pad { padding: 22px 18px 32px; }
  .doc-meta-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .page-title { font-size: 30px; line-height: 38px; flex-basis: 100%; }
  .title-actions { padding-top: 0; }
  .prose .anchor { display: none; }
  .prose pre { margin-left: -18px; margin-right: -18px; border-radius: 0; padding-left: 18px; padding-right: 18px; }
  .table-wrap { margin-left: -18px; margin-right: -18px; border-radius: 0; border-left: 0; border-right: 0; }
  .prose aside { padding: 14px 16px 14px 48px; }
  .prose aside::before { left: 16px; }
  aside.field-note { padding: 14px 16px; }
  .page-meta { padding: 16px 18px 0; }
  .hero h1 { font-size: 32px; line-height: 40px; }
  .hero-copy { padding: 24px 18px 28px; }
  .hero-art { height: 120px; min-height: 120px; }
  .section { padding: 28px 18px; }
  .section.tint { padding-top: 28px; }
  .section-title { font-size: 24px; line-height: 32px; }
  .promo { grid-template-columns: 1fr; padding: 22px 18px; }
  .grid-2, .grid-3, .grid-4, .paths { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .price-grid { grid-template-columns: 1fr; }
  .price + .price { border-left: 0; border-top: 1px solid var(--line); }
  .sell { grid-template-columns: 1fr; padding: 20px 18px; }
  .sell .button { justify-self: start; }
  .form .row-2 { grid-template-columns: 1fr; }
  .prose .kv { grid-template-columns: 1fr; }
  .prose .kv > div:nth-child(odd) { padding-bottom: 0; border-bottom: 0; }
  .footer-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 32px 18px 20px; gap: 20px 16px; }
  .footer-brandrow, .footer-bottom { margin: 0 18px; }
  .helpful .label { margin-right: 2px; }
}
@media (max-width: 380px) {
  .brand-name { font-size: 19px; }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .booknav, .toc, .site-footer, .helpful, .title-actions, .doc-feedback, .sell, .copy-btn { display: none !important; }
  .layout { display: block; }
  .card { border: 0; }
  body { background: #fff; }
}

/* ==========================================================================
   Brand alignment with the homepage (added 2026-09-13 when the v4 homepage
   joined the documentation site). The docs keep their layout; type, header,
   brand mark and primary buttons match the homepage so it reads as one site.
   ========================================================================== */
:root {
  --disp: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --head: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --btn-bg: #d4af37;
  --btn-ink: #0a0908;
  --btn-bg-hover: #e2c055;
  --radius-btn: 999px;
}
body { font-size: 17px; }
.prose { font-size: 17px; line-height: 1.65; }
.prose .lead { font-size: 19px; }
.nav-link { font-size: 14.5px; line-height: 19px; }

/* Headings in the homepage display face */
.page-title, .prose h2, .prose h3, .whats-next h2, .hero h1, .section-title, .linkcard h3, .path h3,
.fact .fact-num, .glance .glance-price, .price .price-amt, .footer-cols h2, .band-title, .sell h3,
.promo h2, .form-success h3, .tile-title {
  font-family: var(--head); font-weight: 600; letter-spacing: -0.02em;
}
.page-title { letter-spacing: -0.025em; }
.hero h1 { font-weight: 600; letter-spacing: -0.03em; }
.tile-title { letter-spacing: -0.01em; }
.band-title { font-size: 21px; }

/* Buttons: pill, gold primary, bold label */
.button { font-weight: 700; font-size: 15px; letter-spacing: 0; }
.button-lg { font-size: 16px; height: 46px; }
.button-primary:hover { box-shadow: none; }

/* Dark top bar, same as the homepage header */
.site-header .topbar { background: #0a0908; border-bottom: 1px solid rgba(250, 248, 244, 0.12); }
.topbar .brand, .topbar .brand-name { color: rgba(250, 248, 244, 0.96); }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--accent); box-shadow: none;
  display: grid; place-items: center; font: 700 13px/1 var(--head); color: #0a0908; letter-spacing: 0;
}
.brand-name { font: 700 19px/1 var(--head); letter-spacing: -0.01em; }
.brand-name b { font-weight: 700; }
.topbar .top-tab { color: rgba(250, 248, 244, 0.66); font-size: 15px; font-weight: 600; }
.topbar .top-tab:hover { color: rgba(250, 248, 244, 0.96); }
.topbar .top-tab.is-active { color: rgba(250, 248, 244, 0.96); }
.topbar .icon-btn { color: rgba(250, 248, 244, 0.7); }
.topbar .icon-btn:hover { background: rgba(250, 248, 244, 0.08); color: #fff; }
.topbar .search-field { background: rgba(250, 248, 244, 0.08); color: rgba(250, 248, 244, 0.6); }
.topbar .search-field input { color: rgba(250, 248, 244, 0.95); }
.topbar .search-field input::placeholder { color: rgba(250, 248, 244, 0.55); }
.topbar .search.is-open .search-field { background: #1d1a16; border-color: rgba(250, 248, 244, 0.18); }
.topbar kbd { background: transparent; color: rgba(250, 248, 244, 0.5); border-color: rgba(250, 248, 244, 0.2); }
.topbar .search-results { color: var(--ink); }
.topbar-cta { height: 38px; padding: 0 18px; }
@media (max-width: 767px) {
  .search.is-mobile-open .search-field { background: var(--paper-soft); color: var(--muted); }
  .search.is-mobile-open .search-field input { color: var(--ink); }
}
/* The top bar carries the gold call to action on desktop, so the band repeats it as an outline */
@media (min-width: 768px) {
  .band .button-primary { background: transparent; border-color: var(--line); color: var(--ink-deep); }
  .band .button-primary:hover { border-color: var(--accent); background: var(--accent-wash-soft); color: var(--ink-deep); }
}
/* Expandable: a chevron inside the circle instead of a minus line (dash shapes read as em dashes) */
.prose details.expandable summary::after {
  left: 11px; top: 50%; width: 7px; height: 7px; margin: 0; background: transparent;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg); transition: transform .15s;
}
.prose details.expandable[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.prose details.expandable summary > span.plus { display: none; }
/* Full-width prose blocks on landing pages (tables, flows, term lists) */
.section .prose.wide { max-width: none; }
.prose .kv > div:nth-child(odd) { font-size: 15.5px; }
/* Phones: the desktop flow arrow rule is more specific, so pin the stacked arrow between cards */
@media (max-width: 767px) {
  .prose ol.flow > li:not(:last-child)::after, .prose ol.flow.flow-4 > li:not(:last-child)::after {
    top: auto !important; right: auto !important; bottom: -24px !important; left: 50% !important;
    transform: translateX(-50%) rotate(90deg) !important;
  }
}
