/* Guide pages: same tokens and header as the home page, with a reading column. */
html { color-scheme: light; }
:root {
  --bg: #f2f5f8; --surface: #ffffff; --ink: #0d1a2b; --muted: #55657a; --line: #d6dee8;
  --accent: #1f46d1; --accent-ink: #ffffff; --tag: #f4c430; --tag-ink: #2a2200; --good: #11865a; --bed: #e3e9f0;
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1320; --surface: #121c2c; --ink: #e6edf6; --muted: #9aabc0; --line: #243246;
    --accent: #7f9bff; --accent-ink: #0b1320; --bed: #172335; --good: #4fd19a; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--accent); }
.wrap { max-width: 1140px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

header.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 900; font-stretch: 80%; font-size: 1.45rem; text-transform: uppercase; }
.brand img { width: 34px; height: 34px; }
nav.links { display: flex; align-items: center; gap: 20px; font-weight: 600; font-size: .95rem; }
nav.links a { text-decoration: none; color: var(--muted); white-space: nowrap; }
nav.links a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 8px; font-weight: 700; font-size: 1rem; text-decoration: none; }
.btn-primary, nav.links a.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-sm { padding: 8px 14px; font-size: .92rem; }
@media (max-width: 720px) { nav.links .hide-sm { display: none; } }

.crumbs { font-family: var(--mono); font-size: .78rem; color: var(--muted); padding-top: 28px; }
.crumbs a { color: var(--muted); }
article { max-width: 44rem; padding-block: 18px 64px; }
article h1 { font-family: var(--display); font-weight: 900; font-stretch: 75%; text-transform: uppercase; font-size: clamp(2.2rem, 5.6vw, 3.6rem); line-height: 1.02; margin: 8px 0 18px; text-wrap: balance; }
article h2 { font-family: var(--display); font-weight: 850; font-stretch: 80%; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.1; margin: 44px 0 12px; text-wrap: balance; }
article h3 { font-family: var(--display); font-weight: 750; font-stretch: 90%; font-size: 1.2rem; margin: 28px 0 8px; }
article p, article li { color: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
article .lede { font-size: 1.2rem; color: var(--muted); }
article .meta { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
article ul, article ol { padding-left: 1.3em; }
article li { margin-bottom: 6px; }
.title-ex { font-family: var(--mono); font-size: .92rem; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 12px 14px; overflow-wrap: anywhere; margin: 14px 0; }
.title-ex small { display: block; color: var(--muted); font-size: .75rem; margin-top: 4px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 14px 0; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }
.cta-box { margin-top: 44px; background: var(--accent); color: var(--accent-ink); border-radius: 14px; padding: 24px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.cta-box p { color: inherit; margin: 0; font-weight: 600; max-width: 30em; }
.cta-box .btn { background: var(--tag); color: var(--tag-ink); }
.cards-list { display: grid; gap: 14px; padding: 0; list-style: none; }
.cards-list a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; text-decoration: none; color: var(--ink); }
.cards-list a b { font-family: var(--display); font-stretch: 85%; font-size: 1.25rem; display: block; }
.cards-list a span { color: var(--muted); font-size: .97rem; }
footer { color: var(--muted); font-size: .88rem; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px 40px; }
footer a { color: var(--muted); }
