/* Busy Meter setup guide. Tokens and fonts match public/index.html. */
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 900; font-display: swap; src: url(/fonts/big-shoulders-display-latin-900-normal.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/fonts/figtree-latin-wght-normal.woff2) format("woff2"); }
:root {
  --bg: #161616; --surface: #1e1e1e; --line: #303030;
  --ink: #f1efe9; --muted: #a09d96; --gold: #f0c850; --red: #ff3b55; --free: #f3ead8;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: var(--body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; min-height: 100svh; display: flex; flex-direction: column; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: -20% -10% auto; height: 60vh; background: radial-gradient(closest-side, rgba(240, 200, 80, 0.07), transparent); pointer-events: none; z-index: -1; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }

a { color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 16px; top: -60px; background: var(--gold); color: #161616; padding: 8px 14px; border-radius: 8px; font-weight: 600; z-index: 10; }
.skip:focus { top: 12px; }

header .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 20px; }
.mark { font-family: var(--display); font-weight: 900; font-size: 24px; letter-spacing: 0.04em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.mark svg { width: 13px; height: 13px; }
.dots { display: inline-flex; gap: 2px; color: var(--gold); }
.tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; text-decoration: none; }
.tag:hover, .tag[aria-current] { color: var(--gold); border-color: var(--gold); }

main { flex: 1; }
.doc { max-width: 780px; padding-block: clamp(16px, 4vw, 40px) 24px; overflow-wrap: break-word; }
.crumb { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; margin: 0; }
.crumb a { color: var(--gold); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

h1, h2, h3, h4 { scroll-margin-top: 16px; text-wrap: balance; }
h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(44px, 7vw, 76px); line-height: 0.95; letter-spacing: 0.01em; margin: 12px 0 24px; }
h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: 0.02em; font-size: clamp(28px, 4vw, 36px); line-height: 1.05; margin: 48px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; margin: 32px 0 8px; }
h4 { font-size: 17px; font-weight: 600; margin: 24px 0 6px; }
.anchor { font-family: var(--mono); font-weight: 500; font-size: 0.6em; color: var(--muted); text-decoration: none; margin-left: 6px; padding: 0 4px; vertical-align: middle; }
h2:hover .anchor, h3:hover .anchor, h4:hover .anchor, .anchor:focus-visible { opacity: 1; color: var(--gold); }

p, ul, ol, blockquote, pre, .table-wrap { margin: 0 0 16px; }
ul, ol { padding-left: 1.4em; }
li { margin: 4px 0; }
li > ul, li > ol { margin: 4px 0 0; }
li > p { margin: 0 0 8px; }
li::marker { color: var(--muted); }
ol > li::marker { font-family: var(--mono); font-size: 0.9em; }
strong { font-weight: 600; color: #fff; }
em { font-style: italic; }

code { font-family: var(--mono); font-size: 0.86em; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; overflow-wrap: anywhere; }
pre { background: #111; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; line-height: 1.5; }
pre code { background: none; border: 0; padding: 0; font-size: 13px; overflow-wrap: normal; white-space: pre; }

blockquote { border-left: 3px solid var(--gold); background: var(--surface); border-radius: 0 10px 10px 0; padding: 12px 16px; color: var(--ink); }
blockquote > :last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; max-width: 100%; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); min-width: 7em; }
th { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--surface); }
tr:last-child td { border-bottom: 0; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 780px; margin: 24px 0 48px; }
.pager a { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; text-decoration: none; color: var(--ink); font-weight: 500; background: var(--surface); }
.pager a:hover { border-color: var(--gold); }
.pager span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pager .next { grid-column: 2; text-align: right; }
@media (max-width: 520px) { .pager { grid-template-columns: 1fr; } .pager .next { grid-column: 1; } }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer .wrap { padding-block: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
