
/* cashwerk: the site's own tokens (nx-cashwerk-site globals.css), light and dark */
:root {
  --bg: #ffffff; --bg-2: #f8fafc; --bg-3: #f1f5f9; --card: #ffffff;
  --line: rgba(0, 0, 0, 0.08); --line-2: rgba(0, 0, 0, 0.15);
  --text: #1e293b; --sub: #475569; --muted: #64748b; --head: #0f172a;
  --accent: #0d9488; --accent-2: #0f766e; --accent-dim: rgba(13, 148, 136, 0.08); --accent-glow: rgba(13, 148, 136, 0.15);
  --on-accent: #ffffff; --header-bg: rgba(255, 255, 255, 0.88);
  --hero-bg: #ffffff; --hero-text: #0f172a; --hero-sub: #475569; --hero-dot: rgba(13, 148, 136, 0.22); --hero-shade: rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08); --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
  --code: #f1f5f9;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-card: 20px; --r-pill: 999px; --page: 76rem;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #09090b; --bg-2: #0e0e11; --bg-3: #060608; --card: rgba(18, 18, 22, 0.72);
  --line: rgba(255, 255, 255, 0.07); --line-2: rgba(255, 255, 255, 0.14);
  --text: #e2e8f0; --sub: #94a3b8; --muted: #7d8a9e; --head: #ffffff;
  --accent: #5fc7c0; --accent-2: #39fff2; --accent-dim: rgba(95, 199, 192, 0.1); --accent-glow: rgba(95, 199, 192, 0.25);
  --on-accent: #06201e; --header-bg: rgba(6, 6, 8, 0.92);
  --hero-bg: #09090b; --hero-text: #ffffff; --hero-sub: #94a3b8; --hero-dot: rgba(148, 163, 184, 0.28); --hero-shade: rgba(0, 0, 0, 0.45);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.5); --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --code: #16161b; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #09090b; --bg-2: #0e0e11; --bg-3: #060608; --card: rgba(18, 18, 22, 0.72);
  --line: rgba(255, 255, 255, 0.07); --line-2: rgba(255, 255, 255, 0.14);
  --text: #e2e8f0; --sub: #94a3b8; --muted: #7d8a9e; --head: #ffffff;
  --accent: #5fc7c0; --accent-2: #39fff2; --accent-dim: rgba(95, 199, 192, 0.1); --accent-glow: rgba(95, 199, 192, 0.25);
  --on-accent: #06201e; --header-bg: rgba(6, 6, 8, 0.92);
  --hero-bg: #09090b; --hero-text: #ffffff; --hero-sub: #94a3b8; --hero-dot: rgba(148, 163, 184, 0.28); --hero-shade: rgba(0, 0, 0, 0.45);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.5); --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --code: #16161b; color-scheme: dark }

/* openHandwerk NEXT: navy and silver, light only, as on openhandwerk.io */
body.b-oh {
  --bg: #ffffff; --bg-2: #f4f6f8; --bg-3: #e6eaef; --card: #ffffff;
  --line: #d5d9df; --line-2: #b8bfc8;
  --text: rgba(0, 0, 0, 0.88); --sub: rgba(0, 0, 0, 0.62); --muted: #6b7785; --head: #000000;
  --accent: #445f77; --accent-2: #2f4359; --accent-dim: rgba(68, 95, 119, 0.08); --accent-glow: rgba(68, 95, 119, 0.18);
  --on-accent: #ffffff; --header-bg: #16222e;
  --hero-bg: #445f77; --hero-text: #ffffff; --hero-sub: rgba(255, 255, 255, 0.78); --hero-dot: transparent;
  --shadow: 0 4px 16px rgba(15, 26, 36, 0.08); --shadow-lg: 0 12px 40px rgba(15, 26, 36, 0.14);
  --code: #f3f5f8; --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body { min-height: 100vh; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
::selection { background: var(--accent-glow); }

/* openHandwerk NEXT in the dark: the site's navy scale turned around */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.b-oh {
  --bg: #0c141c; --bg-2: #121d28; --bg-3: #0a1118; --card: #142130;
  --line: rgba(205, 213, 221, 0.12); --line-2: rgba(205, 213, 221, 0.22);
  --text: #e6eaef; --sub: #a3b3c3; --muted: #8296aa; --head: #ffffff;
  --accent: #a3b3c3; --accent-2: #cdd5dd; --accent-dim: rgba(163, 179, 195, 0.12); --accent-glow: rgba(163, 179, 195, 0.22);
  --on-accent: #0f1a24; --header-bg: #0f1a24; --hero-bg: #16222e; --code: #0f1a24;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.45); --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55); color-scheme: dark } }
:root[data-theme="dark"] body.b-oh {
  --bg: #0c141c; --bg-2: #121d28; --bg-3: #0a1118; --card: #142130;
  --line: rgba(205, 213, 221, 0.12); --line-2: rgba(205, 213, 221, 0.22);
  --text: #e6eaef; --sub: #a3b3c3; --muted: #8296aa; --head: #ffffff;
  --accent: #a3b3c3; --accent-2: #cdd5dd; --accent-dim: rgba(163, 179, 195, 0.12); --accent-glow: rgba(163, 179, 195, 0.22);
  --on-accent: #0f1a24; --header-bg: #0f1a24; --hero-bg: #16222e; --code: #0f1a24;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.45); --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55); color-scheme: dark }

/* Which picture of a light/dark pair shows follows the page's theme, toggle included */
:root { --show-light: block; --show-dark: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --show-light: none; --show-dark: block; } }
:root[data-theme="dark"] { --show-light: none; --show-dark: block; }
img.lt { display: var(--show-light); } img.dk { display: var(--show-dark); }

body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--header-bg); }
.wrap { max-width: 84rem; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
.b-oh .display { letter-spacing: -0.035em; }
h1, h2, h3, .prose h2 { font-feature-settings: 'ss01', 'cv11'; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.b-oh .kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ── Header: brand bar, then the help centre's own tabs ───────────────── */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--header-bg) 92%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.b-oh .top { border-bottom-color: rgba(255, 255, 255, 0.1); color: #fff; }
.bar { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo img { display: block; height: 28px; width: auto; }
.b-oh .logo img { height: 22px; }
.logo .next { font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.6); }
.logo .sect { margin-left: 4px; padding-left: 12px; border-left: 1px solid var(--line-2); font-size: 14px; font-weight: 600; color: var(--sub); }
.b-oh .logo .sect { border-left-color: rgba(255, 255, 255, 0.25); color: rgba(255, 255, 255, 0.8); }
.kbar { flex: 1; max-width: 26rem; margin: 0 auto; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--muted); cursor: pointer; text-align: left; font-size: 14px; transition: border-color .15s; }
.kbar:hover { border-color: var(--accent); }
.b-oh .top .kbar { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.7); }
.kbar span { flex: 1; }
kbd { font: 600 11.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--card); color: var(--sub); }
.b-oh .top kbd { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.8); }
.acts { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--sub); }
.iconbtn:hover { color: var(--head); border-color: var(--line-2); }
.b-oh .top .iconbtn { color: rgba(255, 255, 255, 0.8); border-color: rgba(255, 255, 255, 0.18); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font: 600 14px/1.2 var(--font-body); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-ghost { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.btn-ghost:hover { box-shadow: 0 0 24px var(--accent-glow); }
.btn-solid { background: var(--accent); color: var(--on-accent); }
.btn-solid:hover { box-shadow: 0 6px 24px var(--accent-glow); }
.btn-quiet { border-color: var(--line-2); color: var(--text); background: var(--card); }
.btn-quiet:hover { border-color: var(--accent); color: var(--accent); }
.b-oh .top .btn-ghost { background: #fff; color: #0f1a24; border-color: #fff; }
.b-oh .btn-solid { background: #16222e; color: #fff; }
:root[data-theme="dark"] .b-oh .btn-solid { background: #cdd5dd; color: #0f1a24; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .b-oh .btn-solid { background: #cdd5dd; color: #0f1a24; } }
.ask { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--accent-dim); color: var(--accent); font-weight: 600; font-size: 14px; cursor: pointer; }
.b-oh .top .ask { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.tabs { display: flex; gap: 2px; height: 46px; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; font-size: 14px; font-weight: 500; color: var(--sub); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--head); }
.tabs a[aria-current] { color: var(--head); border-bottom-color: var(--accent); }
.b-oh .top .tabs a { color: rgba(255, 255, 255, 0.68); }
.b-oh .top .tabs a:hover, .b-oh .top .tabs a[aria-current] { color: #fff; border-bottom-color: #cdd5dd; }
.tabs .sep { width: 1px; margin: 12px 8px; background: var(--line-2); }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); color: var(--hero-text); }
.b-cw .hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(800px 380px at 50% -8%, var(--accent-glow), transparent 65%), radial-gradient(500px 260px at 90% 30%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    /* a veil over the dots so they stay behind the heading and the search */
    radial-gradient(ellipse 60% 70% at 50% 48%, color-mix(in srgb, var(--hero-bg) 82%, transparent), color-mix(in srgb, var(--hero-bg) 45%, transparent) 60%, transparent 100%),
    linear-gradient(180deg, transparent 0%, var(--hero-shade) 100%),
    radial-gradient(circle at 1px 1px, var(--hero-dot) 1px, transparent 1.6px) 0 0 / 22px 22px;
  -webkit-mask: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%); mask: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%); }
.b-oh .hero { background: radial-gradient(1200px 600px at 85% -10%, rgba(125, 146, 167, 0.35), transparent 60%), linear-gradient(180deg, #445f77 0%, #2f4359 100%); color: #fff; }
:root[data-theme="dark"] .b-oh .hero { background: radial-gradient(1200px 600px at 85% -10%, rgba(93, 118, 144, 0.3), transparent 60%), linear-gradient(180deg, #1e2e3d 0%, #0f1a24 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .b-oh .hero { background: radial-gradient(1200px 600px at 85% -10%, rgba(93, 118, 144, 0.3), transparent 60%), linear-gradient(180deg, #1e2e3d 0%, #0f1a24 100%); } }
.hero .wrap { position: relative; padding-block: 80px 72px; }
.b-cw .hero .wrap { text-align: center; }
.b-oh .hero .wrap { padding-block: 76px 128px; }
.hero h1 { margin: 18px 0 16px; font-size: clamp(2.4rem, 5.6vw, 4.4rem); line-height: 1.02; font-weight: 800; }
.b-oh .hero h1 { font-weight: 700; }
.hero h1 .lit { display: block; color: var(--accent); }
.b-oh .hero h1 .lit { color: #cdd5dd; }
.b-oh .hero .kicker { color: rgba(255, 255, 255, 0.8); }
.hero .lede { margin: 0 auto 32px; max-width: 40rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--hero-sub); }
.b-oh .hero .lede { margin-left: 0; color: rgba(255, 255, 255, 0.8); }
.bigsearch { position: relative; max-width: 44rem; display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 22px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); cursor: text; color: var(--muted); }
.b-cw .bigsearch { margin: 0 auto; background: color-mix(in srgb, var(--bg-2) 84%, transparent); backdrop-filter: blur(20px); }
.b-oh .bigsearch { border: 3px solid rgba(255, 255, 255, 0.92); }
.bigsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 400 17px/1.4 var(--font-body); padding: 12px 0; }
.bigsearch input::placeholder { color: var(--muted); }
.bigsearch .btn { padding: 14px 22px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; font-size: 14px; color: var(--hero-sub); }
.b-cw .chips { justify-content: center; }
.b-oh .chips { color: rgba(255, 255, 255, 0.75); }
.chips button { font: 500 14px/1 var(--font-body); padding: 9px 15px; border-radius: 999px; cursor: pointer; color: var(--hero-text); background: transparent; border: 1px solid var(--line-2); transition: border-color .15s, background .15s; }
.chips button:hover { border-color: var(--accent); background: var(--accent-dim); }
.b-oh .chips button { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.b-oh .chips button:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.chips .ai { border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent); }
.b-oh .chips .ai { color: #fff; background: rgba(255, 255, 255, 0.14); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: 14px; color: var(--hero-sub); }
.b-cw .facts { justify-content: center; }
.b-oh .facts { color: rgba(255, 255, 255, 0.75); }
.facts span { display: inline-flex; align-items: center; gap: 7px; }
.facts svg { color: var(--accent); }
.b-oh .facts svg { color: #cdd5dd; }

.sheet { position: relative; background: var(--bg); }
.b-oh .hero + .sheet, .b-oh .pagehead + .sheet { margin-top: -56px; border-radius: clamp(1.5rem, 3.6vw, 3.25rem) clamp(1.5rem, 3.6vw, 3.25rem) 0 0; }
section.block { padding-block: 72px 8px; }
.block-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.block-head h2 { margin: 10px 0 0; font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.08; font-weight: 700; color: var(--head); }
.b-oh .block-head h2 { font-weight: 700; }
.block-head p { margin: 0; max-width: 32rem; color: var(--sub); }

/* ── Guided start ─────────────────────────────────────────────────── */
.path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; position: relative; }
.path a { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); text-decoration: none; min-width: 0; transition: border-color .2s, transform .2s, box-shadow .2s; }
.path a:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow); }
.path .n { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.path .n b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 14px; }
.path .n::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.path strong { font-size: 18px; line-height: 1.3; color: var(--head); }
.path p { margin: 0; font-size: 14.5px; color: var(--sub); }
.path .go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent); }

/* ── Slider: scroll-snap, buttons, dots ────────────────────────────── */
.slider { position: relative; container-type: inline-size; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100cqi - 18px) / 2); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; margin: 0; border-radius: 20px; border: 1px solid var(--line); background: var(--card); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.slide .pic { aspect-ratio: 16 / 10; background: var(--bg-2); overflow: hidden; border-bottom: 1px solid var(--line); }
.slide .pic img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .5s; }
.slide:hover .pic img { transform: scale(1.03); }
.slide figcaption { padding: 16px 18px 18px; font-size: 14.5px; line-height: 1.5; color: var(--sub); }
.slide figcaption b { display: block; margin-bottom: 4px; font-size: 13px; letter-spacing: .04em; color: var(--accent); }
.sl-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.dots { display: flex; gap: 6px; flex-wrap: wrap; }
.dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: var(--line-2); cursor: pointer; transition: width .25s, background .25s; }
.dots button.on { width: 26px; background: var(--accent); }
.arrows { display: flex; gap: 8px; }
.arrows button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.arrows button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.arrows button:disabled { opacity: .35; cursor: default; }
.gallery .track { grid-auto-columns: 100cqi; }
.gallery .slide { border-radius: 16px; }
.gallery .slide .pic { aspect-ratio: auto; }
.gallery .slide .pic img { height: auto; object-fit: contain; }

/* ── Topics ───────────────────────────────────────────────────────── */
.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.topic { display: flex; flex-direction: column; padding: 24px 24px 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s, transform .2s; min-width: 0; }
.topic:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); transform: translateY(-2px); }
.topic .thumb { display: block; margin: -24px -24px 18px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 20px 20px 0 0; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.topic .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .4s; }
.topic:hover .thumb img { transform: scale(1.03); }
.topic .ic { color: var(--accent); margin-bottom: 14px; }
.topic h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.25; font-weight: 600; color: var(--head); }
.topic h3 a { text-decoration: none; }
.topic .desc { margin: 0 0 14px; font-size: 14.5px; color: var(--sub); }
.topic ul { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--line); }
.topic li a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--text); text-decoration: none; transition: color .15s, padding .15s; }
.topic li a:hover { color: var(--accent); padding-left: 4px; }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }

/* ── Developer band and code windows ───────────────────────────────── */
.dev { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: 28px; background: var(--bg-3); border: 1px solid var(--line); }
.b-oh .dev { background: #0f1a24; color: #e6eaef; border: 0; --head: #fff; --sub: #a3b3c3; --line: rgba(255, 255, 255, 0.1); --line-2: rgba(255, 255, 255, 0.2); --accent: #cdd5dd; --card: #16222e; --accent-dim: rgba(205, 213, 221, 0.1); }
.dev h2 { margin: 10px 0 12px; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.1; font-weight: 700; color: var(--head); }
.b-oh .dev h2 { font-weight: 700; }
.dev p { margin: 0 0 20px; color: var(--sub); }
.devlinks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.devlinks a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); text-decoration: none; min-width: 0; }
.devlinks a:hover { border-color: var(--accent); }
.devlinks b { display: flex; align-items: center; gap: 8px; color: var(--head); font-size: 15px; }
.devlinks span { font-size: 13px; color: var(--sub); }
.code { border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); background: #0b0f14; color: #d6dde6; box-shadow: var(--shadow-lg); min-width: 0; }
.code .ch { display: flex; align-items: center; gap: 4px; padding: 8px 8px 0 12px; background: #11161d; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.code .ch .dotz { display: flex; gap: 6px; margin-right: 10px; } .code .ch .dotz i { width: 10px; height: 10px; border-radius: 50%; background: #2a313b; }
.code .ch button { padding: 8px 12px; border: 0; background: transparent; color: #8a96a6; font: 600 12.5px/1 var(--font-body); cursor: pointer; border-bottom: 2px solid transparent; }
.code .ch button.on { color: #fff; border-bottom-color: var(--accent); }
.code .ch .cp { margin-left: auto; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px; padding: 6px 10px; margin-bottom: 6px; color: #c7d0db; }
.code pre { margin: 0; padding: 18px 20px; overflow-x: auto; font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; }
.code .k { color: #7dd3c8; } .code .s { color: #f0c27b; } .code .c { color: #6b7686; } .code .m { color: #c7a6ff; }
.b-oh .code .k { color: #a3c4e0; }

/* ── Assistant teaser and contact paths ────────────────────────────── */
.paths3 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.paths3 button { text-align: left; display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); cursor: pointer; min-width: 0; transition: border-color .2s, transform .2s; }
.paths3 button:hover { border-color: var(--accent); transform: translateY(-2px); }
.paths3 .ic { color: var(--accent); }
.paths3 b { font-size: 16px; color: var(--head); }
.paths3 span { font-size: 14px; color: var(--sub); }

/* ── Docs layout: sidebar, content, table of contents ──────────────── */
.pagehead { position: relative; overflow: hidden; background: var(--hero-bg); color: var(--hero-text); border-bottom: 1px solid var(--line); }
.b-cw .pagehead::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 260px at 15% -40%, var(--accent-glow), transparent 70%); pointer-events: none; }
.b-oh .pagehead { background: linear-gradient(180deg, #445f77 0%, #34495e 100%); color: #fff; border: 0; }
:root[data-theme="dark"] .b-oh .pagehead { background: linear-gradient(180deg, #1e2e3d 0%, #16222e 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .b-oh .pagehead { background: linear-gradient(180deg, #1e2e3d 0%, #16222e 100%); } }
.pagehead .wrap { position: relative; padding-block: 28px 40px; }
.b-oh .pagehead .wrap { padding-bottom: 92px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--hero-sub); }
.b-oh .crumbs { color: rgba(255, 255, 255, 0.75); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--hero-text); }
.crumbs svg { opacity: .6; }
.pagehead h1 { margin: 22px 0 10px; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.06; font-weight: 700; max-width: 52rem; }
.b-oh .pagehead h1 { font-weight: 700; }
.pagehead .lede { margin: 0; max-width: 46rem; color: var(--hero-sub); font-size: 1.08rem; }
.b-oh .pagehead .lede { color: rgba(255, 255, 255, 0.8); }
.metabar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 20px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 13.5px; border: 1px solid var(--line-2); color: var(--hero-sub); background: transparent; }
.b-oh .pagehead .pill { border-color: rgba(255, 255, 255, 0.28); color: rgba(255, 255, 255, 0.85); }
button.pill { cursor: pointer; } button.pill:hover { border-color: var(--accent); color: var(--accent); }
.b-oh .pagehead button.pill:hover { border-color: #fff; color: #fff; }

.docs { display: grid; grid-template-columns: 260px minmax(0, 1fr) 232px; gap: 44px; padding-block: 44px 24px; }
.docs.two { grid-template-columns: 260px minmax(0, 1fr); }
.side { position: sticky; top: 128px; align-self: start; max-height: calc(100vh - 150px); overflow: auto; font-size: 14.5px; padding-right: 6px; scrollbar-width: thin; }
.side details { margin-bottom: 6px; }
.side summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-weight: 600; color: var(--head); }
.side summary::-webkit-details-marker { display: none; }
.side summary:hover { background: var(--bg-2); }
.side summary svg { transition: transform .2s; color: var(--muted); }
.side details[open] > summary svg { transform: rotate(90deg); }
.side .items { margin: 2px 0 8px 10px; padding-left: 10px; border-left: 1px solid var(--line); }
.side a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--sub); text-decoration: none; line-height: 1.4; }
.side a:hover { color: var(--head); background: var(--bg-2); }
.side a[aria-current] { color: var(--accent); background: var(--accent-dim); font-weight: 600; }
.side h4 { margin: 18px 10px 6px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.method { display: inline-block; min-width: 50px; padding: 2px 6px; border-radius: 6px; font: 700 10.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; letter-spacing: .04em; }
.m-get { background: rgba(34, 197, 94, 0.14); color: #16a34a; } .m-post { background: rgba(59, 130, 246, 0.14); color: #2563eb; }
.m-patch, .m-put { background: rgba(245, 158, 11, 0.16); color: #b45309; } .m-delete { background: rgba(239, 68, 68, 0.14); color: #dc2626; }
:root[data-theme="dark"] .m-get { color: #4ade80; } :root[data-theme="dark"] .m-post { color: #60a5fa; } :root[data-theme="dark"] .m-patch, :root[data-theme="dark"] .m-put { color: #fbbf24; } :root[data-theme="dark"] .m-delete { color: #f87171; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .m-get { color: #4ade80; } :root:not([data-theme="light"]) .m-post { color: #60a5fa; } :root:not([data-theme="light"]) .m-patch, :root:not([data-theme="light"]) .m-put { color: #fbbf24; } :root:not([data-theme="light"]) .m-delete { color: #f87171; } }

article.doc { min-width: 0; max-width: 48rem; }
.tldr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 18px 20px; margin-bottom: 32px; border-radius: 16px; background: var(--accent-dim); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); }
.tldr .ic { color: var(--accent); margin-top: 2px; }
.tldr b { display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.tldr p { margin: 0; color: var(--text); font-size: 15.5px; line-height: 1.6; }
.prose { font-size: 16.5px; line-height: 1.75; color: var(--text); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.1em 0 .6em; font: 600 1.5rem/1.25 var(--font-display); letter-spacing: -0.02em; color: var(--head); scroll-margin-top: 130px; display: flex; align-items: center; gap: 10px; }
.b-oh .prose h2 { font-family: var(--font-body); font-weight: 700; }
.prose h2 .anchor { opacity: 0; color: var(--muted); text-decoration: none; font-size: 1rem; }
.prose h2:hover .anchor { opacity: 1; }
.prose h3 { margin: 1.8em 0 .4em; font-size: 1.12rem; color: var(--head); scroll-margin-top: 130px; }
.prose p { margin: 0 0 1.05em; }
.prose ul { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin: .35em 0; padding-left: .2em; }
.prose ul li::marker { color: var(--accent); }
.prose ol { list-style: none; counter-reset: st; margin: 0 0 1.4em; padding: 0; }
.prose ol > li { position: relative; counter-increment: st; margin: 0; padding: 0 0 18px 52px; }
.prose ol > li::before { content: counter(st); position: absolute; left: 0; top: -1px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 700 14px/1 var(--font-body); background: var(--card); color: var(--accent); border: 1.5px solid color-mix(in srgb, var(--accent) 55%, var(--line)); }
.prose ol > li:not(:last-child)::after { content: ""; position: absolute; left: 15.5px; top: 34px; bottom: 2px; width: 1px; background: var(--line-2); }
.prose b { color: var(--head); font-weight: 650; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose code { font: .86em/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--code); border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; }
.prose .code { margin: 0 0 1.4em; }
.prose .code code { background: none; border: 0; padding: 0; font: inherit; color: inherit; }
.tablewrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-2); color: var(--head); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.callout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; margin: 0 0 1.4em; padding: 16px 18px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); }
.callout .ic { color: var(--accent); }
.callout p:last-child { margin: 0; }
.fig { position: relative; margin: 1.6em 0 1.8em; }
.fig picture, .fig .frame { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); box-shadow: var(--shadow); }
.fig img { width: 100%; height: auto; }
.fig img, .slide .pic img { cursor: zoom-in; }
.fig img:focus-visible, .slide .pic img:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.viewer { width: min(1640px, 96vw); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: var(--r-card); background: var(--bg-2); box-shadow: var(--shadow-lg); overflow: auto; }
.viewer::backdrop { background: rgba(6, 6, 8, 0.82); backdrop-filter: blur(4px); }
.viewer img { display: block; width: 100%; height: auto; }
.viewer-close { position: sticky; top: 12px; float: right; margin: 12px 12px -56px 0; z-index: 1; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.fig figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.play { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(15, 23, 42, 0.78); color: #fff; font: 600 12.5px/1 var(--font-body); backdrop-filter: blur(6px); }

.toc { position: sticky; top: 128px; align-self: start; font-size: 13.5px; }
.toc h4 { margin: 0 0 12px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.toc nav a { display: block; padding: 5px 0 5px 14px; border-left: 2px solid var(--line); color: var(--sub); text-decoration: none; line-height: 1.4; }
.toc nav a:hover, .toc nav a.on { color: var(--accent); border-left-color: var(--accent); }
.progress { height: 3px; border-radius: 3px; background: var(--line); margin: 0 0 18px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .1s; }
.toc .box { margin-top: 24px; padding: 18px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.b-oh .toc .box.dark { background: linear-gradient(160deg, #1e2e3d 0%, #2f4359 100%); border: 0; color: #fff; }
.toc .box b { display: block; color: var(--head); font-size: 14.5px; line-height: 1.35; margin-bottom: 6px; }
.b-oh .toc .box.dark b { color: #fff; }
.toc .box p { margin: 0 0 12px; color: var(--sub); font-size: 13px; line-height: 1.5; }
.b-oh .toc .box.dark p { color: rgba(255, 255, 255, 0.75); }
.toc .box .btn { padding: 8px 14px; font-size: 13px; }
.b-oh .toc .box.dark .btn-solid { background: #fff; color: #0f1a24; }

.helpful { margin-top: 44px; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.helpful b { color: var(--head); }
.helpful .btns { display: flex; gap: 8px; }
.helpful button { font: 600 14px/1 var(--font-body); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.helpful button:hover { border-color: var(--accent); color: var(--accent); }
.helpful .thanks { color: var(--accent); font-weight: 600; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.pager a { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); text-decoration: none; min-width: 0; }
.pager a:hover { border-color: var(--accent); }
.pager small { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.pager b { color: var(--head); font-weight: 600; font-size: 15px; }
.pager .next { text-align: right; grid-column: 2; }
.related { margin-top: 52px; }
.related h2 { margin: 0 0 16px; font-size: 1.3rem; color: var(--head); }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cards3 a { display: block; padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-decoration: none; min-width: 0; }
.cards3 a:hover { border-color: var(--accent); }
.cards3 small { font-size: 12.5px; color: var(--accent); font-weight: 600; letter-spacing: .04em; }
.cards3 b { display: block; margin-top: 6px; color: var(--head); font-weight: 600; line-height: 1.35; }
.cards3 span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--sub); }

/* ── API reference ─────────────────────────────────────────────────── */
.endpoints { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.ep { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--card); cursor: pointer; text-align: left; border-left: 0; border-right: 0; border-top: 0; width: 100%; }
.ep:last-child { border-bottom: 0; }
.ep:hover, .ep.on { background: var(--accent-dim); }
.ep code { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--head); overflow-wrap: anywhere; }
.ep span { display: block; font-size: 13.5px; color: var(--sub); }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 0 0 1.4em; font-size: 14.5px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; color: var(--head); overflow-wrap: anywhere; }
.kv code { font-size: 13px; }
.flow { width: 100%; height: auto; display: block; }
.flow text { font-family: var(--font-body); }

/* ── Command palette ───────────────────────────────────────────────── */
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(5, 8, 12, 0.55); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: flex-start; padding: max(10vh, env(safe-area-inset-top, 0px)) 16px 16px; }
.palette { width: min(640px, 100%); border-radius: 18px; background: var(--card); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); overflow: hidden; color: var(--text); }
.b-cw .palette { background: var(--bg-2); }
.palette .in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.palette input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--head); font: 400 17px/1.4 var(--font-body); }
.palette .res { max-height: min(60vh, 460px); overflow: auto; padding: 8px; }
.palette .grp { padding: 10px 10px 4px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.palette a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--text); }
.palette a .ic { color: var(--muted); margin-top: 2px; flex-shrink: 0; }
.palette a b { display: block; color: var(--head); font-weight: 600; }
.palette a span { display: block; font-size: 13px; color: var(--muted); }
.palette a.on, .palette a:hover { background: var(--accent-dim); }
.palette a.on .ic { color: var(--accent); }
.palette mark { background: none; color: var(--accent); font-weight: 700; }
.palette .foot { display: flex; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* ── Admin panel and the closed help centre ────────────────────────── */
.admin { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; padding-block: 36px 24px; }
.anav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--sub); text-decoration: none; font-size: 14.5px; }
.anav a.on { background: var(--accent-dim); color: var(--accent); font-weight: 600; }
.panel { border-radius: 20px; border: 1px solid var(--line); background: var(--card); padding: clamp(20px, 3vw, 28px); margin-bottom: 18px; min-width: 0; }
.panel h3 { margin: 0 0 4px; font-size: 18px; color: var(--head); }
.panel > p { margin: 0 0 18px; color: var(--sub); font-size: 14.5px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seg button { text-align: left; padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg); cursor: pointer; min-width: 0; }
.seg button b { display: block; color: var(--head); font-size: 14.5px; margin-bottom: 2px; }
.seg button span { font-size: 13px; color: var(--sub); }
.seg button.on { border-color: var(--accent); background: var(--accent-dim); box-shadow: 0 0 0 1px var(--accent) inset; }
.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; }
.row .t b { display: block; color: var(--head); font-size: 14.5px; } .row .t span { font-size: 13px; color: var(--sub); }
.switch { position: relative; width: 44px; height: 26px; border-radius: 99px; border: 0; background: var(--line-2); cursor: pointer; flex-shrink: 0; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }
.pw { display: flex; gap: 8px; flex-wrap: wrap; }
.pw input { flex: 1; min-width: 12rem; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--head); font: 500 14px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--bg-2); color: var(--sub); border: 1px solid var(--line); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; }
.status.live i { background: #22c55e; } .status.off i { background: #94a3b8; }
.gate { min-height: calc(100vh - 110px); display: grid; place-items: center; padding: 40px 16px; background: var(--hero-bg); }
.b-oh .gate { background: linear-gradient(180deg, #445f77 0%, #2f4359 100%); }
.gatebox { width: min(420px, 100%); padding: 32px; border-radius: 24px; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); text-align: center; }
.gatebox h1 { margin: 14px 0 8px; font-size: 1.6rem; color: var(--head); }
.gatebox p { margin: 0 0 20px; color: var(--sub); font-size: 15px; }
.gatebox .pw { margin-bottom: 12px; }
.gatebox .btn { width: 100%; justify-content: center; }

/* ── Footer and the approval switch ────────────────────────────────── */
footer { margin-top: 88px; border-top: 1px solid var(--line); background: var(--bg-3); }
.b-oh footer { background: #0f1a24; color: rgba(255, 255, 255, 0.72); border: 0; border-radius: clamp(1.5rem, 3.6vw, 3.25rem) clamp(1.5rem, 3.6vw, 3.25rem) 0 0; }
footer .wrap { padding-block: 52px 36px; }
.fgrid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 28px; }
.fgrid p { margin: 14px 0 0; font-size: 14.5px; color: var(--sub); max-width: 20rem; }
.b-oh .fgrid p { color: rgba(255, 255, 255, 0.66); }
.fgrid h5 { margin: 0 0 12px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--head); font-weight: 600; }
.b-oh .fgrid h5 { color: #fff; }
.fgrid a { display: block; padding: 4px 0; font-size: 14px; color: var(--sub); text-decoration: none; }
.b-oh .fgrid a { color: rgba(255, 255, 255, 0.66); }
.fgrid a:hover { color: var(--accent); } .b-oh .fgrid a:hover { color: #fff; }
.fbottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.b-oh .fbottom { border-top-color: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.5); }
.draft { position: fixed; z-index: 75; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: #111827; color: #e5e7eb; font: 500 12.5px/1 'Inter', system-ui, sans-serif; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); max-width: calc(100vw - 32px); overflow-x: auto; scrollbar-width: none; }
.draft b { color: #fbbf24; font-weight: 600; white-space: nowrap; padding-left: 8px; }
.draft button, .draft a { font: 600 12.5px/1 'Inter', system-ui, sans-serif; padding: 8px 11px; border-radius: 999px; border: 0; cursor: pointer; background: transparent; color: #cbd5e1; white-space: nowrap; text-decoration: none; }
.draft [aria-pressed="true"] { background: #fff; color: #111827; }

@media (max-width: 1200px) {
  .docs { grid-template-columns: 240px minmax(0, 1fr); }
  .docs .toc { display: none; }
  .bar .ask .lbl, .bar .cta { display: none; }
}
@media (max-width: 960px) {
  .topics, .cards3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path { grid-template-columns: minmax(0, 1fr); }
  .track { grid-auto-columns: 85cqi; }
  .dev { grid-template-columns: minmax(0, 1fr); }
  .paths3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs, .docs.two, .admin { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .side { position: static; max-height: none; display: none; }
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fgrid > :first-child { grid-column: 1 / -1; }
  .seg { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .bar { height: 58px; gap: 10px; }
  .logo img { height: 22px; } .b-oh .logo img { height: 17px; } .logo .next { font-size: 11px; } .logo .sect { display: none; }
  .kbar { flex: 0 0 40px; width: 40px; padding: 0; justify-content: center; margin: 0 0 0 auto; }
  .kbar span, .kbar kbd { display: none; }
  .hero .wrap { padding-block: 52px 48px; } .b-oh .hero .wrap { padding-block: 52px 104px; }
  .bigsearch { padding-left: 16px; } .bigsearch .btn { padding: 12px 14px; } .bigsearch .btn .lbl { display: none; }
  .topics, .cards3, .paths3, .devlinks { grid-template-columns: minmax(0, 1fr); }
  .pager { grid-template-columns: minmax(0, 1fr); } .pager .next { grid-column: 1; }
  .prose { font-size: 16px; }
  .launcher .lbl { display: none; } .launcher { padding: 10px; }
  .draft .what { display: none; }
  .draft { bottom: auto; top: calc(66px + env(safe-area-inset-top, 0px)); }
}

/* ── Server pages: forms instead of buttons where the page works without script ── */
.sr:focus { position: fixed; z-index: 100; left: 16px; top: 16px; width: auto; height: auto; clip: auto; padding: 10px 14px; border-radius: 10px; background: var(--card); color: var(--head); }
.kbar input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: inherit; font: inherit; }
.kbar input::placeholder { color: inherit; opacity: .85; }
.chips .chip { font: 500 14px/1 var(--font-body); padding: 9px 15px; border-radius: 999px; color: var(--hero-text); text-decoration: none; border: 1px solid var(--line-2); transition: border-color .15s, background .15s; }
.chips .chip:hover { border-color: var(--accent); background: var(--accent-dim); }
.b-oh .chips .chip { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.b-oh .chips .chip:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.contact-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: 32rem; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--head); }
.contact-line span { flex: 1; min-width: 0; overflow-wrap: anywhere; user-select: all; }
.copy { font: 600 13px/1 var(--font-body); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; }
.copy:hover { border-color: var(--accent); color: var(--accent); }
.opd { border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
.opd > summary { list-style: none; border: 0; }
.opd > summary::-webkit-details-marker { display: none; }
.opd[open] > summary { background: var(--accent-dim); }
.opd > .prose { padding: 0 16px 16px !important; }
.fig video { display: block; width: 100%; height: auto; background: #000; }
.palette .grp + a { margin-top: 2px; }
