/* lotteriesapi.com — USA Lottery Results API spotlight
   Layout: a night-draw studio. Ink-navy ground, draw balls as the only bright objects,
   endpoints printed as perforated ticket stubs. One accent (Mega gold), Powerball red for live state. */
:root {
  --ink: #0b1120;
  --ink-2: #111a2e;
  --panel: #151f37;
  --panel-2: #1b2744;
  --line: #26334f;
  --line-2: #33426a;
  --fg: #e9edf7;
  --muted: #95a0bd;
  --faint: #66728f;
  --gold: #f4b740;
  --gold-ink: #241805;
  --red: #e8484f;
  --blue: #6f8dff;
  --green: #4fcf93;
  --ball: #f6f3ea;
  --ball-ink: #141a2b;

  --f-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Instrument Sans", "Inter", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --r-s: 6px; --r-m: 12px; --r-l: 20px;
  --wrap: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--ink); color: var(--fg);
  font: 400 16px/1.6 var(--f-body);
  min-height: 100vh; display: flex; flex-direction: column;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); }
main { flex: 1; }
a { color: var(--fg); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; }
code, pre, kbd { font-family: var(--f-mono); font-size: .88em; }
:not(pre) > code { background: var(--panel-2); border: 1px solid var(--line); padding: .08em .4em; border-radius: 5px; color: #ffd98a; overflow-wrap: anywhere; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: 100%; 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)); }
.prose { max-width: 68ch; display: grid; gap: 14px; color: #cfd6e8; }
.muted { color: var(--muted); }
.eyebrow { font: 600 .74rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--ink) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.08rem/1 var(--f-display); letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand small { font: 500 .68rem/1 var(--f-mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; display: block; margin-top: 4px; }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); font-size: .92rem; padding: 8px 11px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { color: var(--fg); background: var(--panel); }
.nav a[aria-current="page"] { color: var(--fg); background: var(--panel-2); }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; background: var(--panel); border: 1px solid var(--line); color: var(--fg); border-radius: 8px; padding: 8px 12px; font: 600 .85rem var(--f-body); cursor: pointer; }
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--ink-2); border-bottom: 1px solid var(--line); padding: 10px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--fg); font: 600 .95rem/1 var(--f-body); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { border-color: var(--muted); transform: translateY(-1px); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: #ffc85c; border-color: #ffc85c; }
.btn-sm { padding: 7px 12px; font-size: .84rem; }
.btn[disabled] { opacity: .5; cursor: progress; transform: none; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- lottery balls ---------- */
.balls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ball {
  --size: 44px; --c: var(--ball); --t: var(--ball-ink);
  width: var(--size); height: var(--size); border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font: 700 calc(var(--size) * .4)/1 var(--f-display); font-variant-numeric: tabular-nums; color: var(--t);
  background: radial-gradient(circle at 32% 28%, #fff 0 8%, color-mix(in srgb, var(--c) 92%, #fff) 22%, var(--c) 55%, color-mix(in srgb, var(--c) 70%, #000) 100%);
  box-shadow: inset -3px -5px 10px rgba(0,0,0,.28), 0 6px 14px rgba(0,0,0,.35);
}
.ball.red { --c: var(--red); --t: #fff; }
.ball.gold { --c: var(--gold); --t: var(--gold-ink); }
.ball.blue { --c: var(--blue); --t: #fff; }
.ball.sm { --size: 32px; }
.ball.xs { --size: 26px; }
.ball.lg { --size: 58px; }
.balls .plus { color: var(--faint); font: 600 .8rem var(--f-mono); }
@keyframes drop { from { transform: translateY(-14px) rotate(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }
.balls.animate .ball { animation: drop .5s cubic-bezier(.2,.9,.3,1.3) both; }
.balls.animate .ball:nth-child(2) { animation-delay: .07s } .balls.animate .ball:nth-child(3) { animation-delay: .14s }
.balls.animate .ball:nth-child(4) { animation-delay: .21s } .balls.animate .ball:nth-child(5) { animation-delay: .28s }
.balls.animate .ball:nth-child(6) { animation-delay: .35s } .balls.animate .ball:nth-child(7) { animation-delay: .42s }
.balls.animate .ball:nth-child(8) { animation-delay: .49s }

/* ---------- hero ---------- */
.hero { padding-block: 64px 56px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -10% -60% 40%; height: 520px; background: radial-gradient(closest-side, rgba(244,183,64,.12), transparent); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { font-size: 1.18rem; color: #c6cee2; max-width: 52ch; margin-top: 20px; }
.hero .row { margin-top: 30px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; font: 500 .85rem var(--f-mono); color: var(--muted); }
.facts b { color: var(--fg); font-weight: 700; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: minmax(0,1fr); } .hero { padding-block: 40px; } }

.page-head { padding-block: 52px 30px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--ink-2), var(--ink)); }
.page-head .prose { margin-top: 14px; }
.page-head h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-top: 12px; }

/* ---------- draw board (live card) ---------- */
.board { background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2); border-radius: var(--r-l); padding: 22px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); display: grid; gap: 18px; min-width: 0; }
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 600 .75rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 7px; color: var(--fg); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(232,72,79,.2); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(232,72,79,0); } }
.draw { display: grid; gap: 10px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.draw:first-of-type { border-top: 0; padding-top: 0; }
.draw-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.draw-name { font: 700 1.1rem var(--f-display); }
.draw-meta { font: 500 .8rem var(--f-mono); color: var(--muted); }
.jackpot { font: 700 .95rem var(--f-mono); color: var(--gold); }

/* ---------- sections ---------- */
.section { padding-block: 72px; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; margin-bottom: 34px; max-width: 70ch; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: minmax(0,1fr); } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.card p { color: var(--muted); }
.card .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--gold); }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: minmax(0,1fr); } }

/* ---------- ticket (endpoint) ---------- */
.ticket { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); display: grid; grid-template-columns: minmax(0, 1fr) 132px; min-width: 0; scroll-margin-top: 90px; }
.ticket-main { padding: 22px 24px; display: grid; gap: 14px; min-width: 0; }
.ticket-stub { border-left: 2px dashed var(--line-2); padding: 22px 14px; display: grid; align-content: center; justify-items: center; gap: 4px; text-align: center; background: var(--ink-2); border-radius: 0 var(--r-m) var(--r-m) 0; }
.ticket-stub b { font: 700 2rem/1 var(--f-display); color: var(--gold); }
.ticket-stub span { font: 600 .66rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ticket::before, .ticket::after { content: ""; position: absolute; right: 124px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 1px solid var(--line); }
.ticket::before { top: -10px; clip-path: inset(50% 0 0 0); } .ticket::after { bottom: -10px; clip-path: inset(0 0 50% 0); }
@media (max-width: 640px) { .ticket { grid-template-columns: minmax(0,1fr); } .ticket-stub { border-left: 0; border-top: 2px dashed var(--line-2); border-radius: 0 0 var(--r-m) var(--r-m); grid-auto-flow: column; justify-content: start; gap: 10px; padding: 12px 24px; } .ticket-stub b { font-size: 1.3rem; } .ticket::before, .ticket::after { display: none; } }
.ep-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; min-width: 0; }
.method { font: 700 .72rem var(--f-mono); letter-spacing: .06em; padding: 4px 8px; border-radius: 5px; background: rgba(79,207,147,.14); color: var(--green); border: 1px solid rgba(79,207,147,.3); }
.path { font: 600 .95rem var(--f-mono); overflow-wrap: anywhere; min-width: 0; }
.tag { font: 600 .7rem var(--f-mono); padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); letter-spacing: .04em; }
.tag.gold { color: var(--gold); border-color: rgba(244,183,64,.4); }
.tag.red { color: #ff8a8f; border-color: rgba(232,72,79,.45); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 .72rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--ink-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }

/* ---------- code ---------- */
.code { background: #080d19; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; min-width: 0; }
.code-bar { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); padding: 6px 8px; overflow-x: auto; }
.code-bar button { background: none; border: 0; color: var(--muted); font: 600 .78rem var(--f-mono); padding: 6px 10px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.code-bar button[aria-selected="true"] { background: var(--panel-2); color: var(--fg); }
.code-bar .copy { margin-left: auto; }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-size: .84rem; line-height: 1.65; color: #d6dcef; max-height: 520px; }
.tok-k { color: #ffcf7a; } .tok-s { color: #9fe3b8; } .tok-n { color: #8fb3ff; } .tok-b { color: #ff9da1; } .tok-c { color: var(--faint); }

/* ---------- chips, states grid ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 .84rem var(--f-body); padding: 6px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: #cfd6e8; }
button.chip { cursor: pointer; } button.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); font-weight: 600; }

.states { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.state { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px; color: var(--fg); cursor: pointer; display: grid; gap: 6px; font: inherit; transition: border-color .15s, transform .15s; min-width: 0; }
.state:hover { border-color: var(--gold); transform: translateY(-2px); }
.state[aria-pressed="true"] { border-color: var(--gold); background: var(--panel-2); }
.state .code-big { font: 800 1.6rem/1 var(--f-display); letter-spacing: -.02em; }
.state .name { font-weight: 600; font-size: .95rem; }
.state .meta { font: 500 .74rem var(--f-mono); color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- toolbar / forms ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 22px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font: 600 .72rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
input[type=text], input[type=search], input[type=number], input[type=date], select {
  font: 500 .95rem var(--f-body); color: var(--fg); background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; min-width: 0; max-width: 100%;
}
select { padding-right: 32px; }
input:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(244,183,64,.18); }

/* ---------- results board ---------- */
.results { display: grid; gap: 10px; }
.result { display: grid; grid-template-columns: 52px minmax(0, 1.1fr) minmax(0, 1.5fr) auto; gap: 18px; align-items: center; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); }
.logo { width: 52px; height: 52px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; font: 800 .9rem var(--f-display); color: var(--gold); }
.logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; background: #fff; }
.result .t { font: 700 1.02rem var(--f-display); }
.result .s { font: 500 .78rem var(--f-mono); color: var(--muted); margin-top: 3px; }
.result .jackpot { text-align: right; white-space: nowrap; }
@media (max-width: 760px) { .result { grid-template-columns: 44px minmax(0,1fr); } .result .balls, .result .jackpot { grid-column: 1 / -1; text-align: left; } .logo { width: 44px; height: 44px; } }

.days { display: inline-flex; gap: 3px; }
.days i { font: 600 .66rem/1 var(--f-mono); font-style: normal; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 5px; background: var(--ink-2); color: var(--faint); border: 1px solid var(--line); }
.days i.on { background: rgba(244,183,64,.15); color: var(--gold); border-color: rgba(244,183,64,.4); }

/* ---------- panels, notices ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-l); padding: 24px; display: grid; gap: 16px; min-width: 0; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r-m); background: rgba(111,141,255,.08); border: 1px solid rgba(111,141,255,.3); color: #c9d4ff; font-size: .92rem; }
.notice.warn { background: rgba(244,183,64,.08); border-color: rgba(244,183,64,.35); color: #f6dca6; }
.notice.bad { background: rgba(232,72,79,.08); border-color: rgba(232,72,79,.4); color: #ffc2c4; }
.sample-bar { background: var(--gold); color: var(--gold-ink); font: 600 .82rem var(--f-body); text-align: center; padding: 7px 16px; }
.empty { padding: 34px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r-m); }
.skeleton { height: 64px; border-radius: var(--r-m); background: linear-gradient(90deg, var(--panel) 0%, var(--panel-2) 50%, var(--panel) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
.kv { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 6px 18px; font-size: .9rem; }
.kv dt { color: var(--muted); font: 500 .8rem var(--f-mono); padding-top: 2px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }

/* frequency bars */
.freq { display: grid; gap: 7px; }
.freq-row { display: grid; grid-template-columns: 34px minmax(0,1fr) 44px; gap: 10px; align-items: center; font: 500 .8rem var(--f-mono); }
.freq-bar { height: 10px; border-radius: 5px; background: var(--ink-2); overflow: hidden; }
.freq-bar span { display: block; height: 100%; border-radius: 5px; background: var(--gold); }
.freq.cold .freq-bar span { background: var(--blue); }

/* ---------- docs layout ---------- */
.docs { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; align-items: start; }
.toc { position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); display: grid; gap: 2px; font-size: .9rem; }
.toc a { text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 6px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--fg); background: var(--panel); }
.toc .toc-label { font: 600 .7rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 14px 10px 6px; }
.stack { display: grid; gap: 22px; min-width: 0; }
.doc-sec { display: grid; gap: 16px; scroll-margin-top: 90px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.doc-sec:last-child { border-bottom: 0; }
@media (max-width: 900px) { .docs { grid-template-columns: minmax(0,1fr); } .toc { position: static; grid-auto-flow: column; overflow-x: auto; grid-auto-columns: max-content; padding-bottom: 6px; } .toc .toc-label { display: none; } }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .plans { grid-template-columns: minmax(0,1fr); } }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-l); padding: 24px; display: grid; gap: 14px; align-content: start; }
.plan.pick { border-color: var(--gold); background: linear-gradient(180deg, rgba(244,183,64,.08), var(--panel) 40%); }
.plan .price { font: 800 2.4rem/1 var(--f-display); letter-spacing: -.03em; }
.plan .price small { font: 500 .9rem var(--f-body); color: var(--muted); letter-spacing: 0; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .92rem; color: #cfd6e8; }
.plan li { display: flex; gap: 8px; } .plan li::before { content: "●"; color: var(--gold); font-size: .6rem; padding-top: .45em; }
.toggle { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; }
.toggle button { background: none; border: 0; color: var(--muted); font: 600 .88rem var(--f-body); padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font: 600 1.02rem var(--f-display); list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 18px; color: #c6cee2; display: grid; gap: 10px; }

/* ---------- playground ---------- */
.pg { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 900px) { .pg { grid-template-columns: minmax(0,1fr); } }
.ep-list { display: grid; gap: 6px; }
.ep-btn { text-align: left; background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--fg); cursor: pointer; font: inherit; display: grid; gap: 3px; }
.ep-btn:hover { border-color: var(--line-2); }
.ep-btn[aria-pressed="true"] { border-color: var(--gold); background: var(--panel-2); }
.ep-btn .p { font: 600 .8rem var(--f-mono); overflow-wrap: anywhere; }
.ep-btn .d { font-size: .8rem; color: var(--muted); }
.status { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font: 500 .8rem var(--f-mono); color: var(--muted); }
.status .ok { color: var(--green); } .status .err { color: #ff8a8f; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--ink-2); margin-top: 40px; }
.site-foot .wrap { padding-block: 40px 36px; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 30px; font-size: .9rem; }
.site-foot h4 { font: 600 .72rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { text-decoration: none; color: #c6cee2; } .site-foot a:hover { color: var(--gold); }
.site-foot .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; color: var(--faint); font-size: .8rem; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } .site-foot .wrap > :first-child { grid-column: 1 / -1; } }

.cta-band { background: linear-gradient(120deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2); border-radius: var(--r-l); padding: 34px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.cta-band h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }

/* grid containers never let wide children (tables, code) widen the page */
.panel, .stack, .card, .board, .ticket-main, .doc-sec, .plan { grid-template-columns: minmax(0, 1fr); }
.nav a.btn-gold { color: var(--gold-ink); }
.nav a.btn-gold:hover { background: #ffc85c; color: var(--gold-ink); }
@media (max-width: 900px) { .pg .ep-list { max-height: 260px; overflow-y: auto; } }

/* NosyAPI logo lockup */
.brand-logo { height: 30px; width: auto; display: block; flex: none; }
.brand-sub { border-left: 1px solid var(--line-2); padding-left: 12px; font: 700 .95rem/1.1 var(--f-display); color: var(--fg); }
.brand-sub small { margin-top: 3px; }
.site-foot .brand-logo { height: 34px; }
@media (max-width: 440px) { .brand-sub { display: none; } }
