/* "How it's made" page (/how-its-made/). Everything is scoped to .how so it does not touch the rest of the site. */
.how {
  --bg: #0d0d10; --fg: #e8e8ec; --muted: #9a9aa5; --card: #18181d; --line: #26262d;
  --accent: #ffb84d;          /* the site's amber: HDR highlights */
  --sdr: #8d8d99;             /* SDR range, grey as in the review tool's nits map */
  --native: #ffd66b; --upscaled: #3b6cff; --generated: #9b3bff;   /* the site's origin badges */
  --upscaled-ink: #8fa9ff; --generated-ink: #c79bff;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-data: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  max-width: 820px; margin: 0 auto; padding-block: 24px 48px; font-size: 17px; line-height: 1.6;
}
.how a { color: var(--accent); }
.how .prose { max-width: 680px; }
.how h1 { font-size: clamp(34px, 6vw, 48px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.02em; text-wrap: balance; }
.how h2 { font-size: 27px; line-height: 1.2; margin: 64px 0 12px; text-wrap: balance; letter-spacing: -0.01em; }
.how h3 { font-size: 19px; margin: 32px 0 6px; text-wrap: balance; }
.how p { margin: 0 0 14px; }
.how .lede { font-size: 20px; color: #cfcfd6; max-width: 640px; }
.how .lede p { margin: 0 0 14px; }
.how .eyebrow { font: 600 12px/1 var(--font-data); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.how .step { font: 600 13px/1 var(--font-data); color: var(--muted); letter-spacing: .08em; display: block; margin-bottom: 8px; }
.how .term { font-weight: 600; color: var(--fg); }
.how dl.terms { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 20px 0; }
.how dl.terms dt { font: 600 14px/1.6 var(--font-data); color: var(--accent); }
.how dl.terms dd { margin: 0; color: #cfcfd6; font-size: 16px; }
@media (max-width: 560px) { .how dl.terms { grid-template-columns: 1fr; gap: 2px; } .how dl.terms dd { margin-bottom: 10px; } }
.how figure { margin: 28px 0 32px; }
.how figure .frame { background: var(--card); border-radius: 12px; padding: 16px; overflow-x: auto; }
.how figure svg { display: block; width: 100%; height: auto; }
.how figure .wide svg { min-width: 720px; }
.how figcaption { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 10px; max-width: 680px; }
.how .badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px; vertical-align: 2px; }
.how .badge.native { color: #000; background: var(--native); }
.how .badge.upscaled { color: #fff; background: var(--upscaled); }
.how .badge.generated { color: #fff; background: var(--generated); }
.how .sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 20px 0; }
.how .source { background: var(--card); border-radius: 12px; padding: 16px; min-width: 0; }
.how .source h3 { margin: 10px 0 6px; font-size: 17px; }
.how .source p { font-size: 15px; color: #cfcfd6; margin: 0; }
.how table { border-collapse: collapse; width: 100%; font-size: 15px; }
.how .table-wrap { overflow-x: auto; margin: 18px 0; }
.how th, .how td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.how th { color: var(--muted); font-weight: 600; font-size: 13px; }
.how td code, .how p code { font-family: var(--font-data); font-size: 0.88em; color: #d8d8e0; }
.how .num { font-family: var(--font-data); font-variant-numeric: tabular-nums; }
.how .note { border-left: 3px solid var(--line); padding: 2px 0 2px 14px; color: var(--muted); font-size: 15px; }
.how .votes { display: grid; gap: 8px; margin: 18px 0 6px; }
.how .vote { display: grid; grid-template-columns: minmax(0, 15em) 1fr 2.2em; gap: 12px; align-items: center; font-size: 14px; }
.how .vote .bar { height: 14px; border-radius: 3px; background: var(--accent); }
.how .vote.muted .bar { background: var(--sdr); }
.how .vote .label { color: #cfcfd6; min-width: 0; }
.how .vote .n { font-family: var(--font-data); text-align: right; }
@media (max-width: 560px) { .how .vote { grid-template-columns: 1fr 2em; } .how .vote .bar { grid-column: 1 / -1; grid-row: 2; } }
.how .donate { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; background: var(--card); border-radius: 12px; padding: 18px; margin: 20px 0; }
.how .donate p { margin: 0; flex: 1 1 260px; min-width: 0; }
.how .button { display: inline-block; padding: 10px 20px; border-radius: 6px; background: var(--accent); color: #000; text-decoration: none; font-weight: 600; }
.how .button:focus-visible, .how a:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.how .credits { margin-top: 64px; border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); font-size: 14px; }
/* SVG text and strokes, from the tokens */
.how svg text { font-family: var(--font-body); fill: var(--fg); }
.how svg .t-muted { fill: var(--muted); }
.how svg .t-data { font-family: var(--font-data); }
.how svg .grid { stroke: var(--line); stroke-width: 1; }
.how svg .axis { stroke: #4a4a55; stroke-width: 1; }
.how .badge { text-transform: none; }  /* the site's .badge is uppercase on a dark pill */
