/* Shared styles for the ZOOT tools, keys and guides pages. */
:root {
  --bg:      #000000;
  --surface: #0d0d0d;
  --line:    #1f1f1f;
  --text:    #f2f2f2;
  --dim:     #9a9a9a;
  --faint:   #6f6f6f;
  --accent:  #EFC12E;
  --radius:  14px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
.wrap { width: 100%; max-width: 620px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
p { margin: 0 0 16px; text-wrap: pretty; }

/* ── Top bar ─────────────────────────────────────── */
.bar { border-bottom: 1px solid var(--line); background: radial-gradient(120% 160% at 50% 0%, #17170f 0%, #000 70%); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.bar img { width: 84px; height: auto; }
.bar nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; font-size: 13px; }
.bar nav a { color: var(--dim); text-decoration: none; letter-spacing: .08em; text-transform: uppercase; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--accent); }

/* ── Page body ───────────────────────────────────── */
main { padding: 40px 0 48px; }
.crumb { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 0 0 14px; }
.crumb a { text-decoration: none; }
h1 { font-size: clamp(30px, 8vw, 42px); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; margin: 0 0 18px; text-wrap: balance; }
h2 { font-size: 22px; line-height: 1.25; margin: 38px 0 12px; text-wrap: balance; }
h3 { font-size: 18px; margin: 0 0 4px; }
.lede { font-size: 19px; color: var(--dim); margin-bottom: 26px; }
main p, main li { color: var(--dim); }
main p b, main li b { color: var(--text); font-weight: 600; }
main ul, main ol { padding-left: 22px; margin: 0 0 16px; }
main li { margin-bottom: 8px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
a.card { display: block; text-decoration: none; color: var(--dim); }
a.card b { display: block; color: var(--text); font-weight: 600; }
a.card:hover { border-color: var(--accent); }

/* ── Forms ───────────────────────────────────────── */
label { display: block; font-size: 14px; color: var(--dim); margin: 0 0 6px; }
input, select {
  width: 100%; font: inherit; font-size: 20px; color: var(--text);
  background: #000; border: 1px solid #333; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.result { font-size: 30px; font-weight: 800; color: var(--accent); line-height: 1.2; font-variant-numeric: tabular-nums; }
.result small { display: block; font-size: 15px; font-weight: 400; color: var(--dim); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── Tables ──────────────────────────────────────── */
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
th { text-align: left; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 700; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); color: var(--dim); vertical-align: top; }
td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
td a { text-decoration: none; }
tr.hit td { background: rgba(239,193,46,.12); }

/* ── Key chips and tiers ─────────────────────────── */
.keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.keys a { text-align: center; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 4px; color: var(--dim); font-size: 13px; }
.keys a b { display: block; color: var(--text); font-size: 19px; }
.keys a:hover { border-color: var(--accent); }
.tier { border-left: 3px solid var(--tc, var(--accent)); padding: 2px 0 2px 14px; margin: 0 0 20px; }
.tier h3 { color: var(--tc, var(--accent)); }
.tier .to { color: var(--text); font-weight: 600; margin: 0 0 4px; }
.tier .to a { text-decoration: none; }
.tier p:last-child { margin-bottom: 0; }
.route { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: .02em; }
.prevnext { display: flex; justify-content: space-between; margin-top: 30px; font-size: 15px; }
.prevnext a { text-decoration: none; }
#wheel { display: block; width: 100%; max-width: 480px; margin: 0 auto 10px; touch-action: manipulation; }
#wheel path { cursor: pointer; stroke: #000; stroke-width: 2; }
#wheel text { pointer-events: none; font-weight: 700; font-size: 15px; text-anchor: middle; dominant-baseline: central; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--dim); margin: 0 0 18px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; }

/* ── Get the app ─────────────────────────────────── */
.getapp { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 48px 0; text-align: center; }
.getapp h2 { font-size: clamp(24px, 6.4vw, 30px); margin: 0 0 12px; }
.getapp p { color: var(--dim); max-width: 26em; margin: 0 auto 24px; }
.cta { display: inline-block; background: var(--accent); color: #000; font-size: 17px; font-weight: 700; text-decoration: none; padding: 15px 30px; border-radius: 999px; }
.cta-note { font-size: 14px; color: var(--dim); margin: 12px 0 0 !important; }

footer { padding: 30px 0 44px; text-align: center; color: var(--dim); font-size: 14px; }
footer a { text-decoration: none; }
footer p { margin: 0 0 8px; }

/* ── Track pages ─────────────────────────────────── */
a.mix { display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
a.mix:first-of-type { border-top: 1px solid var(--line); }
a.mix:last-of-type { margin-bottom: 22px; }
a.mix .sc { flex: 0 0 44px; height: 44px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
a.mix .sc.mid { border-color: #9a9a9a; color: #cfcfcf; }
a.mix .sc.low { border-color: #4a4a4a; color: #8a8a8a; }
a.mix span:last-child { color: var(--dim); font-size: 15px; line-height: 1.35; min-width: 0; }
a.mix b { display: block; color: var(--text); font-weight: 600; font-size: 17px; }
a.mix i { display: block; font-style: normal; font-size: 14px; }
a.mix em { display: block; font-style: normal; font-size: 14px; color: var(--accent); }
a.mix em.mid { color: #cfcfcf; } a.mix em.low { color: #8a8a8a; }
a.mix:hover b { color: var(--accent); }
ul.tl { list-style: none; padding: 0; }
ul.tl li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 16px; margin: 0; }
ul.tl a { text-decoration: none; color: var(--text); font-weight: 600; }
ul.tl a:hover { color: var(--accent); }

/* ── Wheel used as navigation (tracks page) ──────── */
html { scroll-behavior: smooth; }
main h2[id] { scroll-margin-top: 16px; }
#wheel.jump path { fill: #1f1f1f; transition: fill .12s; }
#wheel.jump a:nth-of-type(n+13) path { fill: #161616; }
#wheel.jump text { fill: var(--text); }
#wheel.jump text.wc { font-size: 11px; font-weight: 400; fill: var(--dim); }
#wheel.jump a:hover path, #wheel.jump a:focus path { fill: var(--accent); }
#wheel.jump a:hover text, #wheel.jump a:focus text { fill: #000; }
#wheel.jump a { outline: none; }
#wheel.jump .none path { fill: #0d0d0d; cursor: default; }
#wheel.jump .none text { fill: #444; }

/* ── Numbered steps and screenshots ──────────────── */
.step { display: flex; gap: 16px; margin: 0 0 30px; }
.step .num { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #000; font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.step.opt .num { background: none; border: 1px solid var(--accent); color: var(--accent); }
.step > div { min-width: 0; }
.step h3 { font-size: 20px; line-height: 1.25; margin: 3px 0 2px; }
.step .what { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: 0 0 8px; }
.step p:last-child { margin-bottom: 0; }
.note { border-left: 2px solid var(--accent); padding: 2px 0 2px 16px; margin: 0 0 24px; }
figure.shot { margin: 16px 0 6px; }
figure.shot img { width: min(100%, 300px); border-radius: 22px; border: 1px solid #2a2a2a; }
figure.shot figcaption { font-size: 14px; color: var(--dim); margin-top: 10px; max-width: 34em; }

/* ── Accordion (tracks by key) ───────────────────── */
details.acc { border-bottom: 1px solid var(--line); scroll-margin-top: 12px; }
details.acc:first-of-type { border-top: 1px solid var(--line); margin-top: 26px; }
details.acc summary { display: flex; align-items: baseline; gap: 12px; padding: 15px 0; cursor: pointer; list-style: none; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary b { flex: 0 0 46px; font-size: 20px; color: var(--text); }
details.acc summary span { flex: 1; color: var(--dim); }
details.acc summary i { font-style: normal; font-size: 14px; color: var(--faint); }
details.acc summary::after { content: "+"; color: var(--accent); font-size: 20px; width: 14px; text-align: center; }
details.acc[open] summary::after { content: "–"; }
details.acc[open] summary b, details.acc summary:hover b { color: var(--accent); }
details.acc .acc-link { margin: 0 0 6px; font-size: 15px; }
details.acc .acc-link a { text-decoration: none; }
details.acc ul.tl { margin-bottom: 14px; }
details.acc ul.tl li:last-child { border-bottom: 0; }
