/* Windstorm Pit Stop explainer, scoped under .pitstop (built from Pit Stop's pitstop-explained.html). */
.pitstop {
  --bg: #07070C; --surface: #0C0B14; --fg: #ECEAF6; --muted: #A09BB8; --line: rgba(139, 120, 255, 0.22);
  --accent: #F08A4B; --good: #4CC08D; --tint: #3a2418; --goodtint: #173328;
  --display: "Fraunces", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  background: var(--bg); color: var(--fg); font: 16px/1.6 var(--body);
}
.pitstop .ps-wrap { max-width: 760px; margin: 0 auto; padding-block: 40px 64px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: grid; gap: 56px; }
.pitstop h1, .pitstop h2 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: .005em; text-wrap: balance; margin: 0; }
.pitstop h1 { font-size: clamp(42px, 9vw, 72px); text-transform: uppercase; }
.pitstop h2 { font-size: clamp(30px, 6vw, 42px); text-transform: uppercase; }
.pitstop p { margin: 0; max-width: 65ch; }
.pitstop .lap { display: grid; gap: 14px; }
.pitstop .flag { font: 600 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.pitstop .ps-lede { font-size: 19px; }
.pitstop .muted { color: var(--muted); }
.pitstop .small { font-size: 14px; }
.pitstop .big { font-family: var(--display); font-weight: 800; font-size: clamp(54px, 13vw, 96px); line-height: .9; color: var(--good); }
.pitstop .ps-hero { display: grid; gap: 18px; }
.pitstop .ps-hero .stat { display: grid; gap: 6px; padding: 18px 0 0; border-top: 3px solid var(--fg); }
.pitstop .chart { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 16px; overflow-x: auto; }
.pitstop .chart svg { display: block; width: 100%; height: auto; min-width: 320px; }
.pitstop .axis { font: 12px var(--mono); fill: var(--muted); }
.pitstop .lbl { font: 600 13px var(--mono); fill: var(--fg); }
.pitstop .models { display: flex; flex-wrap: wrap; gap: 8px; }
.pitstop .models button { font: 600 15px var(--body); padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--fg); cursor: pointer; }
.pitstop .models button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pitstop .models button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pitstop table { width: 100%; border-collapse: collapse; font: 15px var(--body); font-variant-numeric: tabular-nums; }
.pitstop th, .pitstop td { text-align: right; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pitstop th:first-child, .pitstop td:first-child { text-align: left; }
.pitstop th { font: 600 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pitstop tr.pick td { background: var(--goodtint); font-weight: 600; }
.pitstop tr.high td { color: var(--accent); }
.pitstop .tablebox { overflow-x: auto; }
.pitstop .two { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pitstop .two > div { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 16px; display: grid; gap: 8px; align-content: start; }
.pitstop .two h3 { font: 700 22px/1.1 var(--display); text-transform: uppercase; margin: 0; }
.pitstop pre { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; overflow-x: auto;
  font: 14px/1.7 var(--mono); }
.pitstop .note { border-left: 3px solid var(--line); padding-left: 14px; }
.pitstop a { color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.pitstop a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pitstop .links { font-size: 15px; }
.pitstop .facts { margin: 0; padding-left: 20px; display: grid; gap: 10px; max-width: 65ch; }
.pitstop #cmd0 { white-space: normal; overflow-wrap: anywhere; }
.pitstop .steps { margin: 0; padding-left: 22px; display: grid; gap: 18px; }
.pitstop .steps li { display: grid; gap: 8px; }
.pitstop .steps li::marker { font: 700 18px var(--display); color: var(--accent); }
.pitstop .cmd { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 10px 10px 10px 14px; min-width: 0; }
.pitstop .cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font: 14px/1.6 var(--mono); }
.pitstop .copy { flex: none; font: 600 14px var(--body); padding: 7px 14px; border-radius: 4px; border: 1.5px solid var(--fg); background: var(--fg); color: var(--bg); cursor: pointer; }
.pitstop .copy:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
.pitstop .models button { transition: background .15s, color .15s; }
}
.pitstop .ps-wrap { padding-top: clamp(96px, 14vw, 128px); }
.pitstop a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.pitstop .crumbs { font: 500 14px var(--body); color: var(--muted); margin-bottom: -32px; }
