/* TenX whitepaper + guide — same black / white / Poppins as the home screen, built for long reading. */
:root { --bg: #000; --fg: #fff; --muted: rgba(255,255,255,.66); --faint: rgba(255,255,255,.4); --line: rgba(255,255,255,.14); --good: #8affc1; --warn: #ffd36b; color-scheme: dark; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: #000; }
body { background: #000; color: var(--fg); font-family: 'Poppins', system-ui, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.7; font-size: 16px; }
a { color: #fff; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }
a:hover { text-decoration-color: #fff; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; padding: 16px clamp(16px, 5vw, 64px); background: rgba(0,0,0,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 17px; font-weight: 400; letter-spacing: .02em; }
.brand svg { width: 26px; height: 26px; }
.brand b { font-weight: 700; }
.top nav { margin-left: auto; display: flex; gap: 18px; font-size: 13px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover, .top nav a[aria-current] { color: #fff; }
.wrap { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: clamp(28px, 5vw, 72px); justify-content: center; padding: clamp(36px, 7vh, 72px) clamp(16px, 5vw, 64px) 96px; }
.toc { position: sticky; top: 84px; align-self: start; font-size: 13px; }
.toc p { color: var(--faint); letter-spacing: .14em; text-transform: uppercase; font-size: 11px; margin-bottom: 12px; }
.toc ol { list-style: none; display: grid; gap: 8px; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { color: var(--muted); text-decoration: none; display: flex; gap: 10px; }
.toc a::before { content: counter(t, decimal-leading-zero); color: var(--faint); font-variant-numeric: tabular-nums; }
.toc a:hover { color: #fff; }
article h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.05; font-weight: 300; letter-spacing: -.02em; }
article h1 strong { font-weight: 700; }
.lede { margin-top: 18px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 40em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; color: var(--muted); }
.chip.warn { color: var(--warn); border-color: rgba(255,211,107,.5); }
.chip.good { color: var(--good); border-color: rgba(138,255,193,.45); }
section { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
section h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; letter-spacing: -.01em; margin-bottom: 14px; }
section h3 { font-size: 16px; font-weight: 600; margin: 22px 0 6px; }
section p + p, section p + ul, section ul + p, section ol + p, section p + ol { margin-top: 12px; }
section ul, section ol { padding-left: 20px; display: grid; gap: 6px; }
section li::marker { color: var(--faint); }
.muted { color: var(--muted); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin-top: 14px; font-size: 14px; }
.kv dt { color: var(--faint); }
.kv dd { overflow-wrap: anywhere; }
code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .88em; background: rgba(255,255,255,.07); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.box { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: rgba(255,255,255,.03); }
.box.warn { border-color: rgba(255,211,107,.4); }
.box b { font-weight: 600; }
.steps { counter-reset: s; list-style: none; padding-left: 0 !important; gap: 14px !important; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
footer { padding: 28px clamp(16px, 5vw, 64px) 40px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
@media (max-width: 860px) {
  .wrap { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol { grid-template-columns: 1fr 1fr; }
  .top nav { gap: 14px; }
}
@media (max-width: 420px) { .top nav a.opt { display: none; } .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 8px; } }
