@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,700;12..96,800&family=Inter:wght@400;500;600;700&display=swap");

/* ============================================================================
   content.jetskibay.com — the developer platform.

   Jetski Bay's visual language: a white page lit by one soft teal wash, deep
   teal type set in Bricolage Grotesque, hairline teal-grey rules instead of
   boxes, and throttle orange fired exactly once per page — the single most
   important action, or the single result. Never as decoration.

   THE TOKENS BELOW ARE A COPY. The single source of truth is
       apps/status/public/brand/tokens.css
   served in production from https://status.jetskibay.com/brand/tokens.css.
   The Content-Security-Policy on this site forbids external stylesheets other
   than Google Fonts, so the values are inlined here rather than @imported.
   If these ever disagree with tokens.css, this file is wrong — fix it here.
   ========================================================================== */

:root {
  /* ---- Colour — sampled from the jet ski logo (source: tokens.css) ---- */
  --teal: #0ea8aa;          /* the craft — primary brand                 */
  --teal-deep: #08808a;     /* pressed / deeper teal, links              */
  --teal-ink: #063b40;      /* darkest teal — headlines, dark surfaces   */
  --orange: #ed6c23;        /* the spray — warm accent                   */
  --throttle: #e64e25;      /* hottest — primary action / one result     */
  --throttle-deep: #c93c18;
  --cream: #fdf5e7;         /* soft wash, sparing                        */

  --white: #ffffff;
  --ink: #0b2e31;           /* headlines, strong                         */
  --body: #2c4244;          /* long-form prose                           */
  --muted: #5e7a7c;         /* secondary text / captions                 */
  --line: #e4ecea;          /* hairlines / borders                       */
  --line-strong: #b7c9c6;   /* emphasised rules                          */

  /* ---- Semantic aliases (source: tokens.css) ---- */
  --bg: var(--white);
  --surface: var(--white);
  --text: var(--ink);
  --text-muted: var(--muted);
  --border: var(--line);
  --accent: var(--teal);
  --result: var(--throttle);

  /* ---- Type: two families, clear jobs (source: tokens.css) ---- */
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui,
    -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Helvetica, Arial, sans-serif;
  /* Not in tokens.css — the brand has no mono face, so this is a plain stack. */
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  /* ---- Scale (source: tokens.css) ---- */
  --t-h1: clamp(2.25rem, 5vw, 3.75rem);
  --t-h2: clamp(1.6rem, 3.2vw, 2.5rem);
  --t-h3: 1.25rem;
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-micro: 0.75rem;

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 30px;

  --shadow-sm: 0 1px 2px rgba(8, 128, 138, 0.1);
  --shadow-md: 0 10px 30px -10px rgba(8, 128, 138, 0.28);
  --shadow-lg: 0 28px 70px -20px rgba(6, 59, 64, 0.3);
  --glow: 0 0 0 4px rgba(14, 168, 170, 0.2);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --fast: 0.16s;
  --med: 0.28s;

  /* ---- Local layout constants (this site only) ---- */
  --page: 1120px;
  --measure: 66ch;
  --rule: 1px solid var(--line);
  --bar-h: 64px;
  --code-bg: #052b30;
  --code-fg: #d7ebe8;
  --code-dim: rgba(215, 235, 232, 0.5);
  --code-line: rgba(215, 235, 232, 0.14);
}

/* ── reset ──────────────────────────────────────────────────────────────── */

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* The only atmosphere layer: one soft teal wash from the top of the page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    120% 80% at 50% -10%,
    rgba(14, 168, 170, 0.09),
    transparent 58%
  );
}

body > * {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
figure {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--teal-ink);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: var(--t-h1);
  letter-spacing: -0.035em;
  font-weight: 800;
}

h2 {
  font-size: var(--t-h2);
}

h3 {
  font-size: var(--t-h3);
  letter-spacing: -0.015em;
}

h4 {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

em.hot {
  font-style: italic;
  font-weight: 700;
  color: var(--throttle);
}

a {
  color: var(--teal-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(8, 128, 138, 0.35);
  transition: color var(--fast) var(--ease),
    text-decoration-color var(--fast) var(--ease);
}

a:hover {
  color: var(--teal-ink);
  text-decoration-color: currentColor;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

code,
kbd,
samp,
pre {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

::selection {
  background: rgba(14, 168, 170, 0.22);
  color: var(--teal-ink);
}

:focus-visible {
  outline: 2px solid var(--throttle);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 90;
  background: var(--teal-ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: top var(--fast) var(--ease);
}

.skip-link:focus-visible {
  top: 12px;
  color: var(--white);
}

/* ── shell primitives ───────────────────────────────────────────────────── */

.wrap {
  width: min(100% - 48px, var(--page));
  margin-inline: auto;
}

section {
  padding-block: clamp(56px, 8vw, 96px);
}

.section-head {
  max-width: var(--measure);
  margin-bottom: var(--s-7);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--throttle);
  margin: 0 0 var(--s-3);
}

.eyebrow-teal {
  color: var(--teal-deep);
}

.lede {
  font-size: 1.125rem;
  color: var(--body);
  max-width: var(--measure);
  margin-top: var(--s-4);
}

.note {
  font-size: var(--t-small);
  color: var(--muted);
  max-width: var(--measure);
}

.rule {
  border: 0;
  border-top: var(--rule);
  margin: 0;
}

.tag {
  display: inline-block;
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(14, 168, 170, 0.12);
  color: var(--teal-deep);
  border-radius: var(--r-sm);
  padding: 3px 8px;
  font-family: var(--font-body);
}

/* ── top bar ────────────────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: var(--bar-h);
  padding: 10px clamp(20px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--med) var(--ease),
    box-shadow var(--med) var(--ease);
}

.topbar[data-scrolled="true"] {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(8, 128, 138, 0.04);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal-ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand:hover {
  color: var(--teal-deep);
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 7px;
}

.brand span {
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0;
}

.topnav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  font-size: var(--t-small);
}

.topnav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
}

.topnav a:hover {
  color: var(--teal-ink);
}

.topnav a[aria-current="page"] {
  color: var(--teal-ink);
  border-bottom-color: var(--teal);
}

.topnav .btn {
  border-bottom: 0;
}

/* ── buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--font-body);
  font-size: var(--t-small);
  font-weight: 600;
  line-height: 1.2;
  color: var(--teal-ink);
  background: var(--white);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--fast) var(--ease),
    border-color var(--fast) var(--ease), color var(--fast) var(--ease),
    transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.btn:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}

.btn:active {
  transform: translateY(1px);
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-solid {
  background: var(--teal-ink);
  border-color: var(--teal-ink);
  color: var(--white);
}

.btn-solid:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  color: var(--white);
}

/* Throttle orange. One per page — the single most important action. */
.btn-throttle {
  background: var(--throttle);
  border-color: var(--throttle);
  color: var(--white);
  box-shadow: 0 6px 18px -8px rgba(230, 78, 37, 0.65);
}

.btn-throttle:hover {
  background: var(--throttle-deep);
  border-color: var(--throttle-deep);
  color: var(--white);
}

.btn-lg {
  padding: 13px 26px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ── hero ───────────────────────────────────────────────────────────────── */

.hero {
  padding-block: clamp(56px, 9vw, 112px) clamp(40px, 6vw, 72px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.hero h1 {
  max-width: 15ch;
}

.hero .lede {
  margin-top: var(--s-5);
  font-size: 1.1875rem;
  color: var(--body);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

.hero-meta {
  margin-top: var(--s-5);
  font-size: var(--t-small);
  color: var(--muted);
}

.hero-aside {
  min-width: 0;
}

/* ── code blocks ────────────────────────────────────────────────────────── */

.code {
  background: var(--code-bg);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: var(--s-5) 0;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 8px 8px 8px 16px;
  border-bottom: 1px solid var(--code-line);
  min-height: 44px;
}

.code-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--code-dim);
}

.tabs {
  display: flex;
  gap: 2px;
}

.tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: var(--r-sm);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--code-dim);
  cursor: pointer;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}

.tab:hover {
  color: var(--code-fg);
}

.tab[aria-selected="true"] {
  background: rgba(14, 168, 170, 0.2);
  color: #7fe3dd;
}

.copy-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--code-line);
  border-radius: var(--r-sm);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--code-dim);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease),
    border-color var(--fast) var(--ease);
}

.copy-btn:hover {
  color: var(--code-fg);
  border-color: rgba(215, 235, 232, 0.4);
}

.code pre {
  margin: 0;
  padding: 18px 20px 22px;
  overflow-x: auto;
  color: var(--code-fg);
  font-size: 0.8125rem;
  line-height: 1.75;
  tab-size: 2;
  -webkit-overflow-scrolling: touch;
}

.code pre .c { color: rgba(215, 235, 232, 0.45); font-style: italic; }
.code pre .s { color: #ffb38a; }
.code pre .k { color: #6fd8d2; }
.code pre .n { color: #f2d99a; }

/* ── variant cards ──────────────────────────────────────────────────────── */

.variants {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: var(--s-5);
}

.variant {
  background: var(--white);
  border: var(--rule);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: transform var(--med) var(--ease),
    box-shadow var(--med) var(--ease), border-color var(--med) var(--ease);
}

.variant:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 168, 170, 0.4);
  box-shadow: var(--shadow-md);
}

.variant h3 {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.variant p {
  font-size: var(--t-small);
  color: var(--body);
}

.variant dl {
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: var(--rule);
  display: grid;
  gap: 2px;
  font-size: var(--t-small);
}

.variant dt {
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.variant dd {
  margin: 0 0 var(--s-3);
  color: var(--teal-ink);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  word-break: break-word;
}

.variant dd:last-child {
  margin-bottom: 0;
}

/* ── numbered steps ─────────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line);
  border: var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
}

.step {
  background: var(--white);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.step .num {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  color: var(--teal);
  margin: 0;
}

.step p:last-child {
  font-size: var(--t-small);
  color: var(--body);
  margin: 0;
}

/* ── fact strip ─────────────────────────────────────────────────────────── */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
  border: var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
}

.fact {
  background: var(--white);
  padding: var(--s-5) var(--s-5) var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.fact b {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--teal-ink);
}

.fact span {
  font-size: var(--t-small);
  color: var(--muted);
  line-height: 1.45;
}

/* ── key box + forms ────────────────────────────────────────────────────── */

.keybox {
  background: var(--cream);
  border: 1px solid rgba(237, 108, 35, 0.22);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 44px);
}

.keyform {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-5);
  max-width: 520px;
}

.keyform input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
}

.keyform input::placeholder {
  color: var(--muted);
}

.keyform input:focus-visible {
  outline: none;
  border-color: var(--teal);
  box-shadow: var(--glow);
}

.status {
  margin-top: var(--s-4);
  font-size: var(--t-small);
  min-height: 1.5em;
  color: var(--muted);
}

.status[data-tone="ok"] { color: var(--teal-deep); font-weight: 600; }
.status[data-tone="error"] { color: var(--throttle-deep); font-weight: 600; }
.status[data-tone="busy"] { color: var(--muted); }

/* ── docs layout ────────────────────────────────────────────────────────── */

.docs {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding-block: var(--s-7) var(--s-9);
}

.docnav {
  position: sticky;
  top: calc(var(--bar-h) + 24px);
  max-height: calc(100vh - var(--bar-h) - 48px);
  overflow-y: auto;
  font-size: var(--t-small);
  padding-right: var(--s-3);
  border-right: var(--rule);
}

.docnav .group {
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: var(--s-5) 0 var(--s-2);
}

.docnav .group:first-child {
  margin-top: 0;
}

.docnav a {
  display: block;
  padding: 5px 0 5px 12px;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid var(--line);
  transition: color var(--fast) var(--ease),
    border-color var(--fast) var(--ease);
}

.docnav a:hover {
  color: var(--teal-ink);
  border-left-color: var(--line-strong);
}

.docnav a.active {
  color: var(--teal-ink);
  font-weight: 600;
  border-left-color: var(--teal);
}

.doc {
  min-width: 0;
  max-width: 780px;
}

.doc > h2 {
  margin-top: var(--s-9);
  padding-top: var(--s-5);
  border-top: var(--rule);
  scroll-margin-top: calc(var(--bar-h) + 24px);
}

.doc > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.doc > h3 {
  margin-top: var(--s-7);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  scroll-margin-top: calc(var(--bar-h) + 24px);
}

.doc > h4 {
  margin-top: var(--s-6);
}

.doc p {
  margin-top: var(--s-4);
  max-width: var(--measure);
}

.doc ul,
.doc ol {
  margin-top: var(--s-4);
  padding-left: 1.25em;
  max-width: var(--measure);
}

.doc li {
  margin-bottom: var(--s-2);
}

.doc code {
  background: rgba(14, 168, 170, 0.1);
  color: var(--teal-ink);
  border-radius: 5px;
  padding: 0.1em 0.4em;
}

.doc .code code {
  background: none;
  padding: 0;
  color: inherit;
}

.method {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 5px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--muted);
}

.method.get { background: var(--teal-deep); }
.method.post { background: var(--teal-ink); }
.method.delete { background: #8a5a4a; }

.doc h3 code {
  background: none;
  padding: 0;
  font-size: 1rem;
  color: var(--teal-ink);
}

.callout {
  margin: var(--s-6) 0;
  padding: var(--s-5) var(--s-6);
  background: rgba(14, 168, 170, 0.06);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: var(--t-small);
  max-width: var(--measure);
}

.callout strong {
  color: var(--teal-ink);
}

.callout.warm {
  background: rgba(237, 108, 35, 0.07);
  border-left-color: var(--orange);
}

.callout p + p {
  margin-top: var(--s-3);
}

/* ── tables ─────────────────────────────────────────────────────────────── */

.table-scroll {
  overflow-x: auto;
  margin: var(--s-5) 0;
  border: var(--rule);
  border-radius: var(--r-md);
  -webkit-overflow-scrolling: touch;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: var(--t-small);
}

thead th {
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(14, 168, 170, 0.04);
  white-space: nowrap;
}

tbody td {
  padding: 12px 16px;
  border-bottom: var(--rule);
  vertical-align: top;
  color: var(--body);
}

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

tbody td code {
  white-space: nowrap;
}

/* ── playground ─────────────────────────────────────────────────────────── */

.play {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 48px);
  align-items: start;
  padding-block: var(--s-7) var(--s-9);
}

.play-form {
  position: sticky;
  top: calc(var(--bar-h) + 24px);
}

.panel {
  background: var(--white);
  border: var(--rule);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow-sm);
}

.panel + .panel {
  margin-top: var(--s-5);
}

.panel > h2 {
  font-size: 1.375rem;
}

.panel > h2 + p {
  margin-top: var(--s-3);
}

.field {
  margin-top: var(--s-5);
}

.field > label,
.field > .label {
  display: block;
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-2);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--ink);
  font-size: var(--t-small);
}

.field textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.6;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--teal);
  box-shadow: var(--glow);
}

.field .hint {
  display: block;
  margin-top: var(--s-2);
  font-size: var(--t-micro);
  color: var(--muted);
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--s-3);
}

.field-row .field {
  margin-top: 0;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-2);
}

.check {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-small);
  color: var(--body);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
  margin: 0;
}

.run-row {
  margin-top: var(--s-6);
}

/* the wire */

.wire {
  background: var(--code-bg);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.wire-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 8px 8px 8px 16px;
  border-bottom: 1px solid var(--code-line);
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--code-dim);
}

.wire-log {
  margin: 0;
  padding: 16px 20px;
  max-height: 380px;
  overflow: auto;
  color: var(--code-fg);
  font-size: 0.78125rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  -webkit-overflow-scrolling: touch;
}

.wire-log .req { color: #6fd8d2; }
.wire-log .res { color: var(--code-fg); }
.wire-log .err { color: #ff9f7d; }
.wire-log .dim { color: var(--code-dim); }

.progress-list {
  list-style: none;
  padding: 0;
  margin: var(--s-4) 0 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: var(--rule);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.progress-list li {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 10px 14px;
  font-size: var(--t-small);
}

.progress-list li span {
  color: var(--body);
}

.progress-list li em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.progress-list li[data-done="true"] em {
  color: var(--teal-deep);
}

/* the single result — the one throttle-orange moment on this page */
.result-card {
  border: 1px solid rgba(230, 78, 37, 0.35);
  border-radius: var(--r-lg);
  background: var(--white);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: 0 12px 34px -18px rgba(230, 78, 37, 0.45);
}

.result-card .eyebrow {
  color: var(--throttle);
}

.result-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-5);
  font-family: var(--font-mono);
  font-size: var(--t-small);
  word-break: break-all;
}

.result-meta {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: var(--rule);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--s-4);
  font-size: var(--t-small);
}

.result-meta dt {
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.result-meta dd {
  margin: 2px 0 0;
  color: var(--teal-ink);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  word-break: break-word;
}

/* ── footer ─────────────────────────────────────────────────────────────── */

footer {
  border-top: var(--rule);
  padding-block: var(--s-7);
  background: var(--white);
}

.footrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  font-size: var(--t-small);
  color: var(--muted);
}

.footrow nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
}

.footrow a {
  color: var(--muted);
  text-decoration: none;
}

.footrow a:hover {
  color: var(--teal-ink);
  text-decoration: underline;
}

/* ── responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .docs,
  .play {
    grid-template-columns: minmax(0, 1fr);
  }

  .docnav {
    position: static;
    max-height: none;
    overflow: visible;
    border-right: 0;
    border-bottom: var(--rule);
    padding: 0 0 var(--s-5);
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2) var(--s-4);
    align-items: baseline;
  }

  .docnav .group {
    margin: 0;
    width: 100%;
  }

  .docnav a {
    border-left: 0;
    border-bottom: 2px solid var(--line);
    padding: 2px 0;
  }

  .docnav a.active,
  .docnav a:hover {
    border-left: 0;
    border-bottom-color: var(--teal);
  }

  .play-form {
    position: static;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(100% - 32px, var(--page));
  }

  .hide-sm {
    display: none;
  }

  .brand span {
    display: none;
  }

  .topbar {
    padding-inline: 16px;
  }

  .topnav {
    gap: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .variant:hover {
    transform: none;
  }
}

/* Utility: `hidden` must win over the display rules above, because the
   playground toggles variant-specific fields with el.hidden. */
[hidden] {
  display: none !important;
}

[data-result] .result-card {
  margin-top: var(--s-5);
}

/* A scrollable code panel is a focusable region so it can be reached and
   scrolled with the keyboard alone. */
.code pre[tabindex] {
  outline-offset: -2px;
}
