/* Shared styles for the guide pages (same tokens as index.html). */
:root {
  --bg: #040908;
  --fg: #eef5f2;
  --muted: #8fa59e;
  --faint: #70887f;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #34f5b0;
  --accent-ink: #04221a;
  --red: #ff6b6b;
  --ui: #111c19;
  --ui-line: rgba(52, 245, 176, 0.16);
  --glow: rgba(52, 245, 176, 0.18);
  --head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  color-scheme: dark;
}
@media all {
  :root:not([data-theme="dark"]) {
    --bg: #f5f8f6; --fg: #0c1714; --muted: #4c615b; --faint: #55695f;
    --line: rgba(10, 40, 32, 0.1); --accent: #057642; --accent-ink: #fff; --red: #d64545;
    --ui: #ffffff; --ui-line: rgba(5, 118, 66, 0.2); --glow: rgba(5, 118, 66, 0.14);
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.7 var(--body); overflow-x: hidden; }
a { color: var(--accent); }
.wrap { width: min(760px, 100% - 32px); margin: 0 auto; }
h1, h2, h3 { font-family: var(--head); letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.kicker { color: var(--accent); font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 40px var(--glow); }

.nav { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; height: 72px; gap: 20px; width: min(1120px, 100% - 32px); }
.brand { display: flex; align-items: center; gap: 10px; font: 700 19px var(--head); text-decoration: none; color: var(--fg); }
.nav .btn { margin-left: auto; padding: 9px 16px; font-size: 14px; box-shadow: none; }

.nav .tag { color: var(--muted); font-size: 14px; border-left: 1px solid var(--line); padding-left: 16px; }

/* Above the fold: the problem, the fix and a picture of it, in one glance. */
.hero { width: min(1120px, 100% - 32px); margin: 0 auto; padding: 36px 0 20px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(30px, 4.2vw, 46px); margin: 12px 0 0; }
.byline { margin: 10px 0 0; color: var(--faint); font-size: 14px; }
.byline a { color: var(--muted); }
.pf { margin: 24px 0 0; display: grid; gap: 12px; }
.pf div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border-radius: 12px; background: var(--ui); border: 1px solid var(--line); font-size: 16.5px; line-height: 1.5; color: var(--muted); }
.pf strong { color: var(--fg); }
.pf b { font: 700 12px var(--body); letter-spacing: .1em; padding: 4px 0; border-radius: 6px; text-align: center; }
.pf .p b { color: var(--red); background: color-mix(in srgb, var(--red) 14%, transparent); }
.pf .f { border-color: var(--ui-line); }
.pf .f b { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.acts { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin: 24px 0 0; }
.acts .alt { color: var(--muted); font-size: 15px; }
.trust { margin: 14px 0 0; color: var(--faint); font-size: 13.5px; }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--ui-line); box-shadow: 0 20px 80px var(--glow); display: block; }
.shot figcaption { color: var(--faint); font-size: 13px; margin-top: 8px; text-align: center; }
.hero + main article { padding-top: 8px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 22px; padding-top: 20px; }
  .nav .tag { display: none; }
  .pf div { grid-template-columns: 72px 1fr; font-size: 15.5px; padding: 12px 14px; }
}

article { padding: 48px 0 40px; }
article h1 { font-size: clamp(34px, 5.6vw, 54px); margin: 14px 0 0; }
.lead { color: var(--muted); font-size: 19px; margin: 20px 0 0; }
.answer { margin: 34px 0 0; padding: 20px 22px; border: 1px solid var(--ui-line); border-left: 4px solid var(--accent); border-radius: 12px; background: var(--ui); }
.answer b { color: var(--accent); }
article h2 { font-size: clamp(26px, 3.6vw, 34px); margin: 64px 0 0; }
article p, article li { color: var(--muted); }
article p strong, article li strong { color: var(--fg); }
ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 24px 0 0; }
ol.steps > li { counter-increment: s; position: relative; padding: 0 0 26px 54px; }
ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); font: 700 15px var(--head); }
ol.steps h3 { margin: 2px 0 4px; font-size: 19px; color: var(--fg); }
ol.steps p { margin: 0; }
code { font: 0.92em var(--mono); color: var(--fg); background: color-mix(in srgb, var(--accent) 10%, transparent); padding: 1px 6px; border-radius: 5px; }
.url { margin: 12px 0 0; padding: 14px 16px; border-radius: 10px; background: var(--ui); border: 1px solid var(--line); font: 14px/1.6 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.url mark { background: none; color: var(--accent); font-weight: 700; }
.url s { color: var(--red); }
table { width: 100%; border-collapse: collapse; margin: 22px 0 0; font-size: 16px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { font: 600 14px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
td:first-child { color: var(--fg); font-weight: 600; }
ul.notes { padding-left: 20px; }
ul.notes li { margin: 10px 0; }

.cta { margin: 70px 0 0; padding: 34px 30px; border-radius: 18px; background: var(--ui); border: 1px solid var(--ui-line); box-shadow: 0 0 120px var(--glow); }
.cta h2 { margin: 10px 0 0; }
.cta p { margin: 12px 0 0; }
.cta ul { margin: 18px 0 26px; padding: 0; list-style: none; }
.cta li { position: relative; padding-left: 28px; margin: 8px 0; color: var(--fg); }
.cta li::before { content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); rotate: -45deg; }
.cta small { display: block; margin-top: 16px; color: var(--faint); font-size: 14px; }
.cta small a { color: var(--muted); }

details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { margin-top: 18px; }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font: 600 18px var(--head); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; transition: rotate .2s; }
details[open] summary::after { rotate: 45deg; }
details p { margin: 10px 0 0; }

footer { margin-top: 60px; border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--faint); font-size: 13.5px; }
footer .wrap { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer p { flex-basis: 100%; margin: 6px 0 0; }
@media (max-width: 600px) {
  body { font-size: 16px; }
  ol.steps > li { padding-left: 46px; }
  th, td { padding: 10px 8px; }
  table { display: block; overflow-x: auto; }
  .cta { padding: 26px 20px; }
}
/* Answer-first top: one column, the same width as the article text, so the left edges line up. */
.hero--solo { grid-template-columns: 1fr; width: min(760px, 100% - 32px); }
.hero--solo .answer { margin-top: 26px; }

/* Related guides box at the end of each guide */
.related-guides { margin: 64px 0 0; padding: 24px 26px; border: 1px solid var(--line); border-radius: 14px; }
.related-guides h2 { margin: 0 0 8px; font-size: 22px; }
.related-guides ul { margin: 0; padding-left: 20px; }
.related-guides li { margin: 8px 0; }

/* Before / after pictures: wider than the text column, side by side; stacked on phones. */
.ba { width: min(1040px, 100vw - 32px); margin: 22px 0 6px 50%; transform: translateX(-50%); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ba .shot figcaption { font-size: 15px; color: var(--muted); }
.demo-note { color: var(--faint); font-size: 13px; margin: 0 0 8px; }
@media (max-width: 760px) { .ba { grid-template-columns: 1fr; } }

.toolbar { display: flex; align-items: center; gap: 14px; margin: 18px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.toolbar img { border-radius: 9px; flex: none; }
.toolbar p { margin: 0; font-size: 15px; line-height: 1.4; flex: 1; }
.toolbar .btn { padding: 10px 18px; font-size: 14px; white-space: nowrap; box-shadow: none; }
@media (max-width: 560px) { .toolbar { flex-wrap: wrap; } .toolbar .btn { width: 100%; justify-content: center; } }

blockquote.example { margin: 8px 0 12px; padding: 12px 16px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: color-mix(in srgb, var(--accent) 7%, transparent); font-size: 16px; }
blockquote.example span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }

/* Accessibility: visible keyboard focus, skip link, reduced motion (Step 3, 2026-11-21). */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

.toc { margin: 34px 0 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--ui); }
.toc strong { color: var(--fg); font-family: var(--head); }
.toc ul { margin: 8px 0 0; padding-left: 20px; }
.toc li { margin: 4px 0; }
.guide-edge { white-space: nowrap; }
