/* Document pages — the guide and anything else that is read rather than played.
   Loaded after style.css, whose tokens and components it reuses. */

html, body {
  height: auto;
  min-height: 100%;
  overflow: visible auto;
  touch-action: auto;
}

body {
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(80, 30, 140, .34), transparent 62%),
    radial-gradient(90% 60% at 90% 30%, rgba(0, 140, 220, .18), transparent 60%),
    var(--ink);
  background-attachment: fixed;
  padding: 0 20px max(56px, env(safe-area-inset-bottom));
  line-height: 1.65;
  color: #cfe2f5;
}

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding-top: clamp(40px, 8vh, 88px);
}

.doc header { text-align: center; margin-bottom: clamp(32px, 6vh, 56px); }

.doc .logo {
  font-size: clamp(38px, 10vw, 68px);
  letter-spacing: clamp(4px, 1.2vw, 12px);
}

.doc .kicker {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(11px, 2.4vw, 13px);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(170, 205, 245, .6);
}

.doc h2 {
  font-family: var(--font-display);
  font-size: clamp(19px, 4.2vw, 26px);
  font-weight: 700;
  letter-spacing: .06em;
  color: #eaf6ff;
  margin: clamp(38px, 6vh, 58px) 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(120, 190, 255, .18);
  scroll-margin-top: 20px;
}

.doc h3 {
  font-family: var(--font-display);
  font-size: clamp(14px, 3vw, 17px);
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--cyan);
  margin: 26px 0 8px;
}

.doc p { margin: 0 0 14px; font-size: clamp(15px, 2.6vw, 16.5px); }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 7px; font-size: clamp(15px, 2.6vw, 16.5px); }
.doc strong { color: #f0f8ff; font-weight: 600; }
.doc em { color: var(--amber); font-style: normal; }

.doc a { color: var(--cyan); text-decoration: none; border-bottom: 1px solid rgba(34, 224, 255, .35); }
.doc a:hover { color: #fff; border-bottom-color: #fff; }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: clamp(13.5px, 2.4vw, 15px);
}
.doc th, .doc td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(120, 190, 255, .12);
}
.doc th {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(160, 200, 245, .72);
}
.doc td:first-child { color: #eaf6ff; }
.doc tbody tr:hover { background: rgba(120, 190, 255, .05); }

.doc .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.callout {
  padding: 16px 20px;
  margin: 0 0 20px;
  border-radius: 14px;
  border: 1px solid rgba(120, 190, 255, .2);
  border-left: 3px solid var(--cyan);
  background: rgba(60, 180, 255, .07);
}
.callout p:last-child { margin-bottom: 0; }

.play-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: clamp(38px, 7vh, 60px) 0 8px;
}
.play-strip .cta { text-decoration: none; border-bottom: 0; }
.play-strip .cta:hover { color: #041018; }
.play-strip .cta.ghost:hover { color: #fff; }

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(120, 190, 255, .16);
  background: rgba(10, 14, 32, .5);
}
.toc a {
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom: 0;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(120, 190, 255, .09);
}
.toc a:hover { background: rgba(120, 190, 255, .22); }

.doc footer {
  margin-top: clamp(44px, 8vh, 72px);
  padding-top: 22px;
  border-top: 1px solid rgba(120, 190, 255, .14);
  text-align: center;
  font-size: 13.5px;
  color: rgba(150, 190, 230, .6);
}

kbd { vertical-align: middle; }

/* ── generated article and hub pages ───────────────────────────────── */

.doc h1 {
  font-family: var(--font-display);
  font-size: clamp(25px, 5.4vw, 38px);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 12px;
}

.doc .lede {
  font-size: clamp(16px, 3vw, 18.5px);
  color: rgba(190, 220, 250, .82);
  margin-bottom: 22px;
}

.crumbs {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(150, 195, 240, .5);
  margin-bottom: 14px;
}
.crumbs a { border-bottom: 0; }
.crumbs span { margin: 0 6px; opacity: .5; }

.count {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(150, 195, 240, .5);
  margin-bottom: 20px;
}

.cards {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.cards li { margin: 0; }
.cards a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 100%;
  padding: 14px 17px;
  border: 1px solid rgba(120, 190, 255, .16);
  border-radius: 14px;
  background: rgba(120, 190, 255, .045);
  border-bottom: 1px solid rgba(120, 190, 255, .16);
  transition: border-color .16s, background .16s, transform .12s;
}
.cards a:hover {
  border-color: rgba(120, 220, 255, .55);
  background: rgba(120, 190, 255, .1);
  transform: translateY(-2px);
}
.cards b {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #eaf6ff;
}
.cards span {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(165, 200, 240, .68);
}

.doc hr {
  border: 0;
  border-top: 1px solid rgba(120, 190, 255, .16);
  margin: 30px 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: center;
  margin-bottom: 16px;
}
.site-nav a {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-bottom: 0;
  color: rgba(160, 200, 245, .72);
}
.site-nav a:hover { color: #fff; }

.fineprint {
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(140, 180, 220, .5);
  max-width: 60ch;
  margin: 0 auto;
}
