/* SpeedDex legal site: plain, fast, no external fonts or scripts. */
:root {
  --ink: #0b0c0f;
  --surface: #14161b;
  --raised: #1b1e24;
  --line: #2b2f38;
  --text: #eceef2;
  --muted: #a7adb8;
  --faint: #7c8390;
  --gold: #d9b970;
  --red: #e5484d;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #f0d79c; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--gold); color: var(--ink); padding: 8px 12px; border-radius: 6px; z-index: 10; }

header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 12, 15, 0.92);
  position: sticky; top: 0; z-index: 5;
  backdrop-filter: blur(8px);
}
.bar { max-width: 1040px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: 0.04em; }
.brand img { display: block; height: 42px; width: auto; }
nav.links { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 14px; }
nav.links a { color: var(--muted); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
nav.links a:hover, nav.links a[aria-current="page"] { color: var(--text); border-bottom-color: var(--gold); }

main { max-width: 820px; margin: 0 auto; padding: 40px 20px 72px; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; font-weight: 700; margin: 0 0 8px; }
h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
.updated { color: var(--faint); font-size: 14px; margin: 0 0 28px; }
.lead { font-size: 18px; color: var(--muted); }
h2 { font-size: 22px; margin: 44px 0 10px; padding-top: 8px; scroll-margin-top: 80px; }
h3 { font-size: 17px; margin: 26px 0 6px; color: var(--text); }
p, li { color: #d3d7de; }
ul, ol { padding-left: 22px; }
li + li { margin-top: 6px; }
strong { color: var(--text); }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: 8px 0 8px; }
.toc p { margin: 0 0 6px; font-weight: 700; color: var(--text); }
.toc ol { margin: 0; columns: 2; column-gap: 28px; font-size: 15px; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

.note { border-left: 3px solid var(--gold); background: var(--surface); padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 18px 0; }
.note p { margin: 0; }

.table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--raised); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
tr:last-child td { border-bottom: 0; }
td p { margin: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 26px 0; }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-decoration: none; color: var(--text); transition: border-color 0.15s, transform 0.15s; }
.card:hover { border-color: var(--gold); transform: translateY(-1px); color: var(--text); }
.card h2 { font-size: 18px; margin: 0 0 6px; padding: 0; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.hero { padding: 24px 0 8px; }
.hero h1 { font-size: clamp(34px, 6vw, 52px); }

footer.site { border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
footer.site .bar { justify-content: space-between; }
footer.site a { color: var(--muted); }

@media print {
  header.site, footer.site, .toc { display: none; }
  body { background: #fff; color: #000; }
  p, li, td { color: #000; }
}

.note-inline { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
