/* Article pages under /how-it-works (static HTML, DECISIONS D60). Plain CSS so the pages need no app bundle. */
:root {
  color-scheme: light dark;
  --head: #1f2328;
  --text: #3d444d;
  --dim: #59636e;
  --bg: #ffffff;
  --soft: #f6f8fa;
  --border: #d1d9e0;
  --accent: #1c7ed6;
  --accent-soft: #e7f5ff;
  --accent-text: #ffffff;
  --good: #2b8a3e;
  --bad: #c92a2a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --head: #f0f3f6;
    --text: #c9d1d9;
    --dim: #9198a1;
    --bg: #1a1b1e;
    --soft: #25262b;
    --border: #373a40;
    --accent: #4dabf7;
    --accent-soft: #1c2b3a;
    --accent-text: #0b0d10;
    --good: #69db7c;
    --bad: #ff8787;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 18px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2, h3, strong, th, summary { color: var(--head); }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
h1 { font-size: 40px; line-height: 1.15; letter-spacing: -0.01em; margin: 8px 0 12px; }
h2 { font-size: 26px; line-height: 1.3; margin: 56px 0 12px; scroll-margin-top: 72px; }
h3 { font-size: 20px; line-height: 1.35; margin: 32px 0 6px; }
code { font-size: 0.88em; background: var(--soft); padding: 1px 5px; border-radius: 4px; }
.top, footer { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.top { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.top .brand { font-weight: 700; font-size: 18px; color: var(--head); text-decoration: none; }
.top nav a { font-size: 15px; color: var(--dim); text-decoration: none; margin-left: 20px; }
.label { font-size: 12px; line-height: 1.4; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); margin: 0 0 8px; }
.meta { font-size: 14px; color: var(--dim); margin: 0 0 24px; }
.lede { font-size: 1.15em; color: var(--dim); }
li { margin: 6px 0; }

/* Step pages: article column with a sticky "On this page" rail on wide screens. */
.layout { display: flex; justify-content: center; gap: 56px; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.layout main { width: 100%; max-width: 680px; }
/* Sticky step progress: reminds the reader where they are in the four steps. */
.stepper { display: flex; gap: 6px; list-style: none; padding: 12px 0 10px; margin: 12px 0 16px; font-size: 13px; position: sticky; top: 0; z-index: 10; background: var(--bg); }
.stepper li { flex: 1; margin: 0; }
.stepper a { display: block; padding-top: 8px; border-top: 3px solid var(--border); color: var(--dim); text-decoration: none; line-height: 1.35; }
.stepper span { font-weight: 700; margin-right: 6px; }
.stepper .here a { border-color: var(--accent); color: var(--head); font-weight: 600; }
.toc ol { margin: 0; padding-left: 18px; }
.toc a { color: var(--text); text-decoration: none; }
.toc.rail { width: 220px; flex-shrink: 0; position: sticky; top: 24px; align-self: flex-start; margin-top: 120px; font-size: 14px; }
.toc.rail ol { list-style: none; padding: 0; border-left: 1px solid var(--border); }
.toc.rail li { margin: 0; }
.toc.rail a { display: block; padding: 5px 0 5px 14px; color: var(--dim); }
.toc.inline { display: none; }
@media (max-width: 1100px) {
  .toc.rail { display: none; }
  .toc.inline { display: block; margin: 24px 0; font-size: 16px; }
}

.inshort { border-left: 3px solid var(--accent); background: var(--soft); padding: 16px 20px; margin: 32px 0; border-radius: 0 8px 8px 0; }
.inshort ul { margin: 0; padding-left: 18px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; margin: 20px 0; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; text-align: left; color: var(--dim); }
th, td { border-bottom: 1px solid var(--border); padding: 10px 12px 10px 0; vertical-align: top; }
td:first-child { font-weight: 600; color: var(--head); }
.example { margin: 24px 0; padding: 16px 20px; border: 1px solid var(--border); border-radius: 10px; font-size: 16px; line-height: 1.55; }
.example figcaption { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); margin-bottom: 8px; }
.example p { margin: 6px 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 99px; margin-right: 6px; border: 1px solid currentColor; }
.tag.good { color: var(--good); }
.tag.bad { color: var(--bad); }
.callout { background: var(--accent-soft); border-radius: 10px; padding: 16px 20px; margin: 24px 0; }
.callout p:last-child { margin-bottom: 0; }
.cta { border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; margin: 40px 0; }
.cta p { margin: 0 0 14px; font-size: 16px; }
.cta strong { display: block; font-size: 19px; margin-bottom: 4px; }
.cta.end { background: var(--soft); border: 0; }
.button { display: inline-block; background: var(--accent); color: var(--accent-text); font-weight: 600; font-size: 15px; padding: 10px 18px; border-radius: 8px; text-decoration: none; }
details { border-bottom: 1px solid var(--border); padding: 4px 0; }
summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
details p { margin-top: 0; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 48px 0; }
.pager a { border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; text-decoration: none; font-weight: 600; font-size: 16px; color: var(--head); }
.pager a small { display: block; font-weight: 400; font-size: 13px; color: var(--dim); margin-bottom: 2px; }
.pager .nx { text-align: right; }
footer { border-top: 1px solid var(--border); margin-top: 64px; padding-top: 20px; padding-bottom: 40px; font-size: 14px; }
footer a { color: var(--dim); margin-right: 16px; }

/* Hub page: quick jumps to the four step pages, left of the article on wide screens, above it on narrow ones. */
.steps { padding-left: 22px; }
.steps li { margin: 12px 0; }
.with-side { display: flex; justify-content: center; gap: 56px; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.with-side main { flex: 1; min-width: 0; max-width: 680px; padding-top: 24px; }
.side { width: 200px; flex-shrink: 0; position: sticky; top: 24px; align-self: flex-start; margin-top: 64px; font-size: 15px; }
.side p { margin: 0 0 8px; font-weight: 600; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.side ol { margin: 0; padding-left: 20px; }
.side li { margin: 8px 0; }
.side a { color: var(--text); text-decoration: none; }
@media (max-width: 900px) {
  .with-side { display: block; }
  .side { position: static; width: auto; margin: 16px 0 0; }
}
@media (max-width: 600px) {
  h1 { font-size: 31px; }
  h2 { font-size: 23px; }
  .stepper { font-size: 11px; }
  .stepper span { display: block; }
}
