/* Guide pages. Same tokens as index.html, so the two read as one site. */
:root {
  --bg: #000; --bg-2: #0d0d0f; --card: #151517; --line: rgba(255,255,255,.1);
  --text: #f5f5f7; --soft: #a1a1a8; --pill: #fff; --pill-text: #000;
  --lit: #9b82ff; --lit-ink: #b9a8ff; --lit-on: #0b0718;
}
[data-theme="light"] {
  --bg: #fafaf8; --bg-2: #f1f1ee; --card: #fff; --line: rgba(0,0,0,.1);
  --text: #111113; --soft: #5e5e66; --pill: #111113; --pill-text: #fff;
  --lit: #7c5cff; --lit-ink: #5b3fd9; --lit-on: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 Geist, -apple-system, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--lit); outline-offset: 2px; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="light"] .only-dark, :root:not([data-theme="light"]) .only-light { display: none !important; }

.nav-wrap { position: sticky; z-index: 20; top: 14px; display: flex; justify-content: center; padding: 0 12px; margin-top: 14px; }
.nav { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--card) 78%, transparent);
       backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px var(--line); }
.logo img { width: 26px; height: 26px; border-radius: 7px; }
.nav-links { display: flex; }
.nav-links a { padding: 6px 12px; color: var(--soft); font-size: 14px; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.theme { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--soft); cursor: pointer; }
.theme:hover { color: var(--text); }
.nav-cta { padding: 8px 16px; border-radius: 999px; background: var(--lit); color: var(--lit-on); font-size: 14px; font-weight: 600; }

.guide { width: min(740px, 100%); margin: 0 auto; padding: 72px 20px 72px; }
.crumbs { color: var(--soft); font-size: 14px; }
.crumbs a:hover { color: var(--text); }
.guide h1 { margin: 14px 0 0; font-size: clamp(2.1rem, 5vw, 3.1rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.07; }
.byline { margin-top: 14px; color: var(--soft); font-size: 15px; }
.guide h2 { margin: 44px 0 0; font-size: 1.45rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.guide h3 { margin: 26px 0 0; font-size: 1.08rem; font-weight: 600; }
.guide p, .guide ul, .guide ol { margin: 12px 0 0; }
.guide h3 + p { margin-top: 6px; }
.guide ul, .guide ol { display: grid; gap: 8px; padding-left: 22px; }
.guide li::marker { color: var(--soft); }
.guide p a, .guide li a, .guide td a, .guide figcaption a { color: var(--lit-ink); text-decoration: underline; text-underline-offset: 3px; }
.guide code { padding: 1px 6px; border-radius: 6px; background: var(--bg-2); font: 500 .88em ui-monospace, SFMono-Regular, Menlo, monospace; }
.guide pre { margin: 16px 0 0; padding: 14px 16px; overflow-x: auto; border-radius: 12px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.guide pre code { padding: 0; background: none; }
.guide strong { font-weight: 600; }
.lede { font-size: 1.12rem; }
.note { margin-top: 16px; padding: 14px 18px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--soft); font-size: 15px; }
.note p:first-child { margin-top: 0; }
.fine { margin-top: 10px; color: var(--soft); font-size: 14px; }

.guide figure { margin: 28px 0 0; }
.guide figure img { border-radius: 16px; box-shadow: 0 0 0 1px var(--line); margin-inline: auto; }
.guide figcaption { margin-top: 10px; color: var(--soft); font-size: 14px; text-align: center; }

.table-wrap { margin-top: 20px; overflow-x: auto; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.4; font-weight: 400; }
thead th { font-weight: 600; } tbody th { color: var(--text); } td { color: var(--soft); }
th.us, td.us { background: color-mix(in srgb, var(--lit) 8%, transparent); }
td.us { color: var(--lit-ink); font-weight: 600; }
tr:last-child th, tr:last-child td { border-bottom: 0; }

.cta { margin-top: 52px; padding: 26px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.cta h2 { margin-top: 0; }
.cta p { color: var(--soft); }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; margin-top: 18px; padding: 8px 8px 8px 22px; border-radius: 999px; background: var(--pill); color: var(--pill-text); font-weight: 600; transition: transform .15s; }
.pill:hover { transform: translateY(-2px); }
.pill .dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--pill-text); color: var(--pill); }

.hub h2 { margin-top: 48px; }
.hub ul { list-style: none; padding: 0; gap: 18px; margin-top: 16px; }
.hub li a { font-weight: 600; color: var(--text); text-decoration: none; }
.hub li a:hover { color: var(--lit-ink); }
.hub li span { display: block; color: var(--soft); font-size: 15px; }

.foot { padding: 40px 20px 36px; border-top: 1px solid var(--line); color: var(--soft); font-size: 14px; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; width: min(1080px, 100%); margin: 0 auto; }
.foot h2 { margin: 0 0 10px; color: var(--text); font-size: 14px; font-weight: 600; }
.foot nav { display: grid; gap: 7px; align-content: start; }
.foot a:hover { color: var(--text); }
.foot-base { width: min(1080px, 100%); margin: 32px auto 0; }

@media (max-width: 640px) {
  .nav-links a:not(.keep) { display: none; }
  .guide { padding-top: 48px; }
  th, td { padding: 11px 12px; }
}
