/* Romano Assets: one stylesheet for every page.
   Look: a dark blueprint workshop. Deep navy, a faint 40 px grid like the kit's own snapping grid, electric blue for
   actions, warm amber for the one thing that matters on each screen. Colours match the Asset Store images.
   Change colours here and every page follows. */

:root {
  /* Brand */
  --bg: #0B1220;          /* page background */
  --band: #0E1726;        /* alternate section background */
  --surface: #121D31;     /* cards */
  --surface-2: #17243C;   /* cards on hover, code blocks */
  --line: #24344F;        /* borders */
  --text: #E8EEF8;        /* main text */
  --muted: #A2B2CC;       /* secondary text */
  --faint: #7586A3;       /* captions, labels */
  --blue: #3D8BFF;        /* links and buttons */
  --blue-hover: #6AA6FF;
  --blue-ink: #06101F;    /* text on blue */
  --amber: #FFB547;       /* highlights */
  --grid: rgba(61, 139, 255, 0.07);

  /* One accent per product */
  --c-prefab: #3D8BFF;
  --c-save: #3DD68C;
  --c-interact: #FFB547;
  --c-settings: #B48CFF;
  --c-runtime: #FF7A59;

  /* Type: system faces only (no web fonts, nothing loaded from other companies) */
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.375rem);
  --step-4: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);

  --radius: 10px;
  --wrap: 72rem;

  color-scheme: dark;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--step-0)/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); font-weight: 750; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 650; letter-spacing: -0.01em; }

p { margin: 0; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

code, kbd { font-family: var(--mono); font-size: 0.875em; }
code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 0.05em 0.35em; }
kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.05em 0.45em;
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  text-align: center;
  line-height: 1.5;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 700px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--amber); color: var(--blue-ink); padding: 8px 12px; border-radius: 6px; }

/* Mono labels: the blueprint annotations */
.label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.label-accent { color: var(--amber); }

.lead { font-size: var(--step-1); color: var(--muted); max-width: 40rem; line-height: 1.55; }
.muted { color: var(--muted); }

/* ---------- Header ---------- */

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
}

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(11, 18, 32, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--text); text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em;
}
.brand img { width: 34px; height: 34px; border-radius: 50%; }
.brand:hover { color: var(--text); }
.site-header nav { margin-left: auto; }
.nav { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; align-items: center; }
.nav a {
  display: block; padding: 0.4rem 0.7rem; border-radius: 8px;
  color: var(--muted); text-decoration: none; font-size: 0.9375rem;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface); }
.nav .nav-store a { color: var(--blue-ink); background: var(--blue); font-weight: 650; margin-left: 0.4rem; }
.nav .nav-store a:hover { background: var(--blue-hover); color: var(--blue-ink); }

@media (max-width: 720px) {
  .header-row { gap: 0.25rem 1rem; padding-block: 0.6rem; }
  .site-header nav { margin-left: -0.7rem; width: 100%; }
  .nav a { padding: 0.35rem 0.7rem; font-size: 0.875rem; }
  .nav .nav-store { display: none; }
}

/* ---------- Buttons ---------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border-radius: 8px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--blue-ink);
  font-weight: 650; font-size: 0.9375rem;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: var(--blue-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--faint); color: var(--text); }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-band { background: var(--band); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 0.75rem; margin-bottom: 2.5rem; max-width: 46rem; }
.section-head p { color: var(--muted); }

/* The blueprint grid behind heroes */
.blueprint {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
}

/* ---------- Heroes ---------- */

.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.hero-copy { display: grid; gap: 1.25rem; min-width: 0; justify-items: start; }
.hero-copy h1 em { font-style: normal; color: var(--amber); }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }

/* A screenshot in a frame, with a dimension line above it like a drawing */
.shot { margin: 0; min-width: 0; }
.shot-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
}
.shot-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shot figcaption { margin-top: 0.7rem; font-size: var(--step--1); color: var(--faint); }
.dim {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 0.6rem;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint);
}
.dim::before, .dim::after {
  content: ""; flex: 1; height: 9px;
  background: linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat;
}
.dim::before { border-left: 1px solid var(--faint); }
.dim::after { border-right: 1px solid var(--faint); }

/* The spec strip: facts in mono */
.specs { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; list-style: none; margin: 0; padding: 0; }
.specs li { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 0.5rem; }
.specs li::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--blue); transform: rotate(45deg); }

/* ---------- Status pills ---------- */

.pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  text-decoration: none;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.pill-live { color: #8FF0BE; border-color: rgba(61, 214, 140, 0.4); background: rgba(61, 214, 140, 0.08); }
.pill-live::before { background: var(--c-save); box-shadow: 0 0 0 3px rgba(61, 214, 140, 0.18); }
.pill-dev { color: #FFD48F; border-color: rgba(255, 181, 71, 0.4); background: rgba(255, 181, 71, 0.07); }
.pill-dev::before { background: var(--amber); }

/* ---------- Product cards ---------- */

.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.product {
  --accent: var(--blue);
  display: grid; gap: 0.85rem; align-content: start;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  min-width: 0;
}
.product-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.product-icon svg { width: 24px; height: 24px; }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.product p { color: var(--muted); font-size: 0.9375rem; }
.product-flag {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 2rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface) 60%);
  align-items: center;
}
.product-flag .flag-copy { display: grid; gap: 1rem; align-content: start; justify-items: start; min-width: 0; }
.product-flag h3 { font-size: var(--step-2); }
.product-planned { background: transparent; border-style: dashed; }
a.product-link { color: var(--text); text-decoration: none; transition: border-color 0.15s, background 0.15s; }
a.product-link:hover { border-color: var(--accent); background: var(--surface-2); color: var(--text); }
.product h3 { overflow-wrap: anywhere; }
.spec-table.compat th { width: 32%; }
.compat td.ok, .compat td.no { padding-right: 1rem; white-space: nowrap; }
.compat td.ok { color: var(--c-save); font-weight: 600; }
.compat td.no { color: var(--muted); }
.c-prefab { --accent: var(--c-prefab); }
.c-save { --accent: var(--c-save); }
.c-interact { --accent: var(--c-interact); }
.c-settings { --accent: var(--c-settings); }
.c-runtime { --accent: var(--c-runtime); }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.ticks li { position: relative; padding-left: 1.5rem; color: var(--muted); font-size: 0.9375rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.45em;
  width: 0.6rem; height: 0.32rem;
  border-left: 2px solid var(--accent, var(--blue)); border-bottom: 2px solid var(--accent, var(--blue));
  transform: rotate(-45deg);
}
.ticks strong { color: var(--text); font-weight: 600; }

@media (max-width: 1000px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .product-flag { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .products { grid-template-columns: 1fr; } }

/* ---------- Standards (feature grid) ---------- */

.standards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.5rem; list-style: none; margin: 0; padding: 0; }
.standards li { display: grid; gap: 0.4rem; align-content: start; padding-top: 1rem; border-top: 1px solid var(--line); min-width: 0; }
.standards p { color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 860px) { .standards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .standards { grid-template-columns: 1fr; } }

/* ---------- Help / support tiles ---------- */

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.tile {
  display: grid; gap: 0.5rem; align-content: start;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  min-width: 0;
  transition: border-color 0.15s, background 0.15s;
}
a.tile:hover { border-color: var(--blue); background: var(--surface-2); color: var(--text); }
.tile p { color: var(--muted); font-size: 0.9375rem; }
.tile .label { display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; flex-wrap: wrap; min-height: 1.6rem; }
.tile-soon { background: transparent; border-style: dashed; }
.tile .addr { font-family: var(--mono); font-size: 0.875rem; color: var(--blue); overflow-wrap: anywhere; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .tiles { grid-template-columns: 1fr; } }

/* ---------- About ---------- */

.about { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2.5rem; align-items: start; }
.about-copy { display: grid; gap: 1rem; color: var(--muted); max-width: 42rem; }
.about-copy strong { color: var(--text); }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------- Product page ---------- */

.product-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); }
.title-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid; gap: 0.6rem; align-content: start;
  padding: 1.4rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  min-width: 0;
}
.steps li::before {
  content: counter(step);
  width: 2rem; height: 2rem; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--blue); color: var(--blue-ink);
  font-family: var(--mono); font-weight: 700;
}
.steps p { color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* The seven tabs */
.tabs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tab-card {
  display: grid; gap: 0.75rem; align-content: start;
  padding: 1.4rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  min-width: 0;
}
.tab-card .tab-name { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.tab-card ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.35rem; color: var(--muted); font-size: 0.9375rem; }
.tab-card li::marker { color: var(--blue); }
.tab-card strong { color: var(--text); font-weight: 600; }
.tab-card-wide { grid-column: span 2; }
@media (max-width: 960px) { .tabs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tabs-grid { grid-template-columns: 1fr; } .tab-card-wide { grid-column: span 1; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 1rem; }
.gallery .shot-frame { box-shadow: none; }
@media (max-width: 800px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }

/* Spec table */
.spec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.spec-table th, .spec-table td { text-align: left; padding: 0.7rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { color: var(--faint); font-weight: 500; width: 40%; padding-right: 1rem; }
.notes { display: grid; gap: 0.75rem; }
.notes ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.5rem; color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 800px) { .spec-grid { grid-template-columns: 1fr; } }

/* Call to action band */
.cta-box {
  display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid color-mix(in srgb, var(--blue) 45%, var(--line));
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(61, 139, 255, 0.14), rgba(61, 139, 255, 0.02) 70%);
}
.cta-box > div { display: grid; gap: 0.5rem; min-width: 0; max-width: 38rem; }
.cta-box p { color: var(--muted); }

/* ---------- Docs ---------- */

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

/* Three columns: pages, the page, what's on it */
.docs-shell {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr) 13rem;
  gap: 2.75rem;
  padding-block: 2rem 4rem;
  align-items: start;
  max-width: 88rem;
}
.docs-side {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 80px);
  max-height: calc(100vh - 100px); overflow-y: auto;
  display: grid; gap: 1rem; align-content: start;
  font-size: 0.9375rem;
  padding-right: 0.25rem;
}
.docs-product { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0 0.6rem; }
.docs-product a { color: var(--text); font-weight: 650; text-decoration: none; font-family: var(--font-display); }
.docs-links { display: grid; gap: 0.1rem; }
.docs-group + .docs-group { margin-top: 1.1rem; }
.docs-group .label { margin: 0 0 0.4rem 0.6rem; font-size: 0.6875rem; }
.docs-nav a { display: block; padding: 0.28rem 0.6rem; border-radius: 6px; color: var(--muted); text-decoration: none; line-height: 1.4; }
.docs-nav a:hover { color: var(--text); background: var(--surface); }
.docs-nav a[aria-current="page"] { color: var(--text); background: var(--surface); box-shadow: inset 2px 0 0 var(--blue); }
.docs-nav details { display: none; }

/* Search */
.docs-search { position: relative; }
.docs-search input {
  width: 100%;
  padding: 0.55rem 2.2rem 0.55rem 0.75rem;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--text);
  font: inherit; font-size: 0.9375rem;
}
.docs-search input::placeholder { color: var(--faint); }
.docs-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61, 139, 255, 0.2); }
.docs-search-key { position: absolute; right: 0.55rem; top: 0.5rem; font-size: 0.75rem; color: var(--faint); pointer-events: none; }
.docs-results {
  margin-top: 6px;
  max-height: 55vh; overflow-y: auto;
  padding: 0.35rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface-2);
}
.docs-search input::-webkit-search-cancel-button { display: none; }
.docs-search input:not(:placeholder-shown) + .docs-search-key { display: none; }
.docs-results a { display: grid; gap: 0.15rem; padding: 0.55rem 0.65rem; border-radius: 7px; color: var(--muted); text-decoration: none; font-size: 0.875rem; line-height: 1.45; }
.docs-results a strong { color: var(--text); font-weight: 600; font-size: 0.9rem; }
.docs-results a:hover, .docs-results a.is-active { background: var(--surface); }
.docs-results a.is-active { box-shadow: inset 2px 0 0 var(--blue); }
.docs-results mark { background: rgba(255, 181, 71, 0.22); color: var(--text); border-radius: 2px; padding: 0 1px; }
.docs-noresult { padding: 0.7rem; color: var(--muted); font-size: 0.875rem; }

/* On this page */
.docs-toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 80px); max-height: calc(100vh - 100px); overflow-y: auto; font-size: 0.8125rem; }
.docs-toc .label { margin-bottom: 0.6rem; font-size: 0.6875rem; }
.docs-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; border-left: 1px solid var(--line); }
.docs-toc a { display: block; padding: 0.22rem 0 0.22rem 0.8rem; margin-left: -1px; border-left: 1px solid transparent; color: var(--faint); text-decoration: none; line-height: 1.4; }
.docs-toc .toc-3 a { padding-left: 1.6rem; }
.docs-toc a:hover { color: var(--text); }
.docs-toc a.is-current { color: var(--text); border-left-color: var(--blue); }

@media (max-width: 1180px) {
  .docs-shell { grid-template-columns: 15rem minmax(0, 1fr); }
  .docs-toc { display: none; }
}
@media (max-width: 860px) {
  .docs-shell { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding-top: 1.25rem; }
  .docs-side { position: static; max-height: none; overflow: visible; padding: 0; }
  .docs-nav > .docs-links { display: none; }
  .docs-nav details { display: block; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  .docs-nav summary { padding: 0.65rem 0.9rem; cursor: pointer; font-weight: 600; }
  .docs-nav details > .docs-links { padding: 0 0.4rem 0.6rem; }
}

.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; font-size: 0.8125rem; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* The page itself */
.prose { max-width: 48rem; min-width: 0; color: #D5DEEC; }
.prose > * + * { margin-top: 1rem; }
.prose h1 { font-size: var(--step-3); margin-top: 0.75rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.prose h3 { margin-top: 2rem; }
.prose h4 { margin-top: 1.5rem; font-size: var(--step-0); }
.prose h2, .prose h3, .prose h4 { scroll-margin-top: 90px; }
.prose .anchor { margin-left: 0.3rem; color: var(--faint); text-decoration: none; opacity: 0; font-weight: 400; transition: opacity 0.15s; }
.prose h2:hover .anchor, .prose h3:hover .anchor, .prose .anchor:focus-visible { opacity: 1; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: 0.35rem; }
.prose li > ul, .prose li > ol { margin-top: 0.35rem; }
.prose li::marker { color: var(--faint); }
.prose strong { color: var(--text); }
.prose pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; overflow-x: auto; font-size: 0.875rem; line-height: 1.5; }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface); color: var(--text); font-weight: 600; }
.prose td kbd { white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 0.75rem 1rem; border-left: 3px solid var(--blue); background: var(--surface); border-radius: 0 8px 8px 0; color: var(--muted); }
.prose blockquote > * + * { margin-top: 0.5rem; }
.prose .note-title { display: block; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.2rem; }
.prose .note-tip { border-left-color: var(--c-save); } .prose .note-tip .note-title { color: var(--c-save); }
.prose .note-important, .prose .note-warning { border-left-color: var(--amber); } .prose .note-important .note-title, .prose .note-warning .note-title { color: var(--amber); }
.prose .note-caution { border-left-color: var(--c-runtime); } .prose .note-caution .note-title { color: var(--c-runtime); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2rem; }
.prose .lead { max-width: none; }
.prose .specs { margin-top: 1.25rem; }
.prose .btn-row { margin-top: 1.5rem; }
.prose .callout { margin-top: 2rem; }

.doc-figure { margin: 1.5rem 0 0; }
.doc-figure img { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.doc-figure figcaption { margin-top: 0.6rem; font-size: var(--step--1); color: var(--faint); }

.doc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.doc-card {
  display: grid; gap: 0.3rem; align-content: start;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted); text-decoration: none; font-size: 0.9rem; line-height: 1.5;
  transition: border-color 0.15s, background 0.15s;
  min-width: 0;
}
.doc-card strong { color: var(--text); font-size: 1rem; }
.doc-card:hover { border-color: var(--blue); background: var(--surface-2); color: var(--muted); }
@media (max-width: 600px) { .doc-cards { grid-template-columns: 1fr; } }

.doc-pager { margin-top: 3.5rem !important; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.pager {
  display: grid; gap: 0.2rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); text-decoration: none; font-weight: 600;
}
.pager:hover { border-color: var(--blue); color: var(--text); background: var(--surface); }
.pager.next { text-align: right; }
.doc-report { margin-top: 1.25rem !important; font-size: 0.875rem; color: var(--faint); }

/* Docs hub */
.doc-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; min-width: 0; }
.doc-links a { display: grid; gap: 0.1rem; padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: rgba(11, 18, 32, 0.4); color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.doc-links a strong { color: var(--text); }
.doc-links a:hover { border-color: var(--blue); }
.product h2 { font-size: var(--step-2); }

.callout {
  display: grid; gap: 0.6rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid color-mix(in srgb, var(--blue) 40%, var(--line));
  border-radius: var(--radius);
  background: rgba(61, 139, 255, 0.06);
}
.callout ol { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.4rem; color: var(--muted); }
.callout ol strong { color: var(--text); }
.callout li + li { margin-top: 0; }

/* ---------- Support page ---------- */

.checklist { display: grid; gap: 0.6rem; margin: 0; padding-left: 1.3rem; color: var(--muted); }
.checklist strong { color: var(--text); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.two-col > div { display: grid; gap: 1rem; min-width: 0; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; font-size: 0.9375rem; color: var(--faint); background: var(--band); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer-grid h4 { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 500; margin-bottom: 0.75rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.footer-brand { display: grid; gap: 0.75rem; align-content: start; }
.footer-brand p { max-width: 22rem; }
.footer-base { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.875rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: span 2; } }

/* ---------- 404 ---------- */

.not-found { padding-block: 6rem; display: grid; gap: 1.25rem; justify-items: start; }

/* Key art is 3:2, and gallery pictures open full size */
.shot-cover .shot-frame img { aspect-ratio: 3 / 2; }
a.shot-frame { display: block; transition: border-color 0.15s; }
a.shot-frame:hover { border-color: var(--blue); }

/* Small link row under a product card's buttons: Docs, Support */
.card-links { display: flex; gap: 1.25rem; margin: 0.9rem 0 0; font-size: 0.9375rem; }
.card-links a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; }
.card-links a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.card-links a:hover { color: var(--text); text-decoration: underline; }
