/* Copyright 2021 The Martian Mono Project Authors (https://github.com/evilmartians/mono)

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded, 
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
 */
@font-face{font-family:"Martian Mono";font-style:normal;font-weight:400 700;font-stretch:87.5%;font-display:swap;src:url(/fonts/martian-mono.ttf) format("truetype");}

:root{--paper:#fbf8f4;--paper-2:#f6f1ea;--paper-3:#ede5d9;--wash:#fbe4c8;--ink:#241b13;--ink-2:#4e3f33;--muted:#6a5747;
--rule:#dcd3c8;--rule-2:#c1b1a2;--input:#8c7662;--accent:#feb263;--accent-ink:#160a02;--accent-text:#9b4900;--focus:#a54c00;
--danger:#ac3225;--ok:#206b38;--danger-wash:#f8e3df;--ok-wash:#e2efe5;color-scheme:light;--night:#0a0603;--night-2:#120c07;--night-rule:#523e2c;--night-line:#846950;--on-night:#f4e9db;--on-night-2:#d8c0a5;--on-night-3:#aa8c6f;--add:#89d298;--del:#ef806f;--font:"Martian Mono",ui-monospace,SFMono-Regular,Consolas,monospace;--page:1240px}
/* Shared by every public page: reset, type, the header, buttons, form
   messages and the footer. Tokens are injected above this file by
   build-site.mjs from the console palette (design.md): one orange over warm
   neutrals, Martian Mono, square corners, 1px rules, no shadows. The --night
   tokens are the dark palette, used for panels that stay dark in the light
   theme (the review, command samples, the footer). */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink-2); font-family: var(--font); font-size: 0.9063rem; line-height: 1.7; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, pre { margin: 0; }
h1, h2 { font-weight: 700; color: var(--ink); letter-spacing: -0.045em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.04; }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.9rem); line-height: 1.04; }
h3 { font-weight: 600; font-size: 1.0625rem; line-height: 1.35; letter-spacing: -0.02em; color: var(--ink); }
h4 { font-weight: 600; font-size: 0.875rem; color: var(--ink); }
p { text-wrap: pretty; }
strong { font-weight: 600; color: var(--ink); }
a { color: var(--accent-text); text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
code, pre { font-family: var(--font); font-size: 0.8125rem; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 20; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: calc(var(--page) + 32px); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.hop { background: var(--accent); color: var(--accent-ink); padding: 0 0.14em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.tag { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tag::before { content: '# '; color: var(--accent-text); }
.muted { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 48px; padding: 0.4rem 1.2rem; border: 1px solid var(--ink); border-radius: 0; font: 600 0.8125rem/1.2 var(--font); text-align: center; text-decoration: none; cursor: pointer; transition: background-color 120ms ease, color 120ms ease, transform 100ms ease; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { cursor: progress; opacity: 1; }
.btn-key { background: var(--accent); color: var(--accent-ink); }
.btn-key:hover { background: var(--ink); color: var(--paper); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-small { min-height: 40px; padding: 0.3rem 0.9rem; }
.link-button { padding: 0; border: 0; background: none; color: var(--accent-text); font: inherit; text-decoration: underline; text-underline-offset: 0.25em; cursor: pointer; min-height: 24px; }
.link-button:hover { color: var(--ink); }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: var(--paper); border-bottom: 1px solid var(--ink); }
.top-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.5rem; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.04em; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand b { display: grid; place-items: center; width: 34px; height: 34px; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--ink); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0; }
.nav { display: flex; }
.nav a { display: flex; align-items: center; min-height: 44px; padding: 0 0.75rem; font-size: 0.75rem; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--paper-3); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent-text); }
.top-tools { margin-left: auto; display: flex; align-items: center; gap: 1rem; font-size: 0.75rem; }
.top-tools > a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.top-tools > a:not(.btn):hover { color: var(--ink); text-decoration: underline; }
.lang { display: inline-flex; align-items: center; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 44px; padding: 0 0.4rem; font-size: 0.75rem; color: var(--ink-2); text-decoration: none; }
.lang a:hover { color: var(--ink); text-decoration: underline; }
.lang a[aria-current="true"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent-text); }
.seg { display: inline-flex; border: 1px solid var(--night-line); }
.seg button { min-height: 32px; min-width: 44px; padding: 0 0.6rem; border: 0; background: none; color: var(--on-night-2); font: 500 0.6875rem/1 var(--font); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--night-line); }
.seg button:hover { color: var(--on-night); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* Form messages: every state is a sentence, never a color alone. */
.form-msg { font-size: 0.75rem; line-height: 1.6; }
.form-msg[data-state="error"]::before { content: '! '; font-weight: 700; }
.form-msg[data-state="ok"]::before { content: '\2713  '; }

/* Footer: dark in both themes. */
.foot { margin-top: clamp(52px, 7vw, 104px); border-top: 1px solid var(--ink); background: var(--night); color: var(--on-night-2); overflow: hidden; }
.foot-inner { padding-block: clamp(32px, 4vw, 52px) 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; align-items: end; font-size: 0.75rem; }
.foot-inner > div { display: grid; gap: 0.4rem; justify-items: start; }
.foot .brand { color: var(--on-night); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; max-width: 46rem; }
.foot nav a { display: inline-flex; align-items: center; min-height: 32px; min-width: 24px; color: var(--on-night); text-decoration: none; }
.foot nav a:hover { color: var(--accent); text-decoration: underline; }
.foot :focus-visible { outline-color: var(--accent); }
.foot-meta { padding-bottom: 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1.5rem; font-size: 0.6875rem; }
.foot-art { margin: 0; padding: 0.5rem 0 1.4rem; text-align: center; color: var(--accent); font-size: clamp(0.5rem, 2.05vw, 1.9rem); font-weight: 700; line-height: 1.15; white-space: pre; user-select: none; overflow: hidden; }
.gh-icon { display: inline-block; flex: none; margin-right: 6px; fill: currentColor; }

@media (max-width: 1080px) {
  .top-tools > a:not(.btn) { display: none; }
  .nav { display: none; }
  /* Pages other than the home keep their navigation, as a second row. */
  .nav-pages { display: flex; order: 3; flex-basis: 100%; margin-inline: -0.75rem; overflow-x: auto; border-top: 1px solid var(--rule); }
}
@media (max-width: 640px) {
  .top-tools .btn { display: none; }
  .top-row { min-height: 58px; }
  html { scroll-padding-top: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Home page. The page is a pull request under review: the hero carries the
   rabbit printed in code glyphs, the next section walks one example diff
   through the five stages, and the sections after it are ruled like review
   threads. This page is light only; base.css supplies the shared pieces. */
ul, ol { padding: 0; list-style: none; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(32px, 5vw, 72px) clamp(36px, 5vw, 72px); }
.hero-copy { display: grid; gap: 1.4rem; justify-items: start; }
.hero-lead { font-size: 0.9688rem; line-height: 1.75; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hero-note { font-size: 0.75rem; color: var(--muted); }

/* The rabbit, printed in code glyphs. */
.rabbit { position: relative; margin: 0; width: 100%; max-width: 500px; justify-self: center; background: var(--night); border: 1px solid var(--ink); display: grid; }
.rabbit canvas { width: 100%; aspect-ratio: 1; display: block; }
.rabbit noscript svg { position: absolute; inset: 12% 12% auto; width: 76%; height: auto; }
.rabbit figcaption { padding: 0.6rem 0.9rem; border-top: 1px solid var(--night-rule); font-size: 0.6563rem; color: var(--on-night-2); }

/* The review: a diff, the reviewer's findings, and the five stages that decide them. */
.watch { padding-block: 0 clamp(40px, 6vw, 80px); }
.review { background: var(--night); color: var(--on-night-2); border: 1px solid var(--ink); min-width: 0; }
.review-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; min-height: 50px; padding: 0.5rem 1rem; border-bottom: 1px solid var(--night-rule); font-size: 0.6875rem; }
.review-bar b { color: var(--on-night); font-weight: 500; }
.review-toggle { min-height: 34px; min-width: 6.5em; padding: 0 0.8rem; border: 1px solid var(--night-line); border-radius: 0; background: transparent; color: var(--on-night); font: 500 0.6875rem var(--font); cursor: pointer; }
.review-toggle:hover { border-color: var(--accent); color: var(--accent); }
.stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--night-rule); }
.stages button { display: grid; gap: 0.15rem; justify-items: start; min-height: 44px; padding: 0.6rem 0.8rem; border: 0; border-right: 1px solid var(--night-rule); border-radius: 0; background: transparent; color: var(--on-night-2); font: 400 0.625rem/1.35 var(--font); text-align: left; cursor: pointer; }
.stages button:last-child { border-right: 0; }
.stages button:disabled { cursor: default; }
.stages button b { font-weight: 600; font-size: 0.6875rem; color: inherit; }
.stages button[data-done] b::after { content: ' \2713'; color: var(--add); }
.stages button[aria-selected='true'] { background: var(--accent); color: var(--accent-ink); }
.stages button:hover:not([aria-selected='true']):not(:disabled) { background: var(--night-2); color: var(--on-night); }
.review :focus-visible { outline-color: var(--accent); outline-offset: -3px; }
.stages button[aria-selected='true']:focus-visible { outline-color: var(--accent-ink); }
.diff { padding: 0.9rem 0; font-size: clamp(0.6563rem, 0.95vw, 0.75rem); line-height: 1.75; overflow-x: auto; }
.diff p { padding: 0 1rem; white-space: pre; color: var(--on-night); }
.diff .d-meta { color: var(--on-night-2); }
.diff .d-del { background: rgb(239 128 111 / 0.12); color: var(--del); }
.diff .d-add { background: rgb(137 210 152 / 0.12); color: var(--add); }
.thread { margin: 0.5rem 1rem; padding: 0.7rem 0.9rem; border: 1px solid var(--night-rule); background: var(--night-2); display: grid; gap: 0.35rem; font-size: 0.6875rem; line-height: 1.6; white-space: normal; max-width: 62rem; }
.diff .thread p { padding: 0; white-space: normal; overflow-wrap: anywhere; color: inherit; }
.thread code { font-size: inherit; color: var(--on-night); }
.thread strong { color: var(--on-night); font-weight: 600; }
.thread-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem 1rem; }
.verdict { padding: 0 0.5rem; border: 1px solid var(--on-night-2); color: var(--on-night); white-space: nowrap; }
.thread[data-state='kept'] .verdict { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
/* A discarded finding is struck through and muted once the critic has run
   (stages 4 and 5). The muted tone still meets 4.5:1 on the panel, so no
   opacity is used. */
.review:is([data-stage='4'], [data-stage='5']) .thread[data-state='dropped'],
.review:is([data-stage='4'], [data-stage='5']) .thread[data-state='dropped'] :is(strong, code) { color: var(--on-night-3); }
.review:is([data-stage='4'], [data-stage='5']) .thread[data-state='dropped'] .thread-text { text-decoration: line-through; }
.review:is([data-stage='4'], [data-stage='5']) .thread[data-state='dropped'] .verdict { border-color: var(--on-night-3); color: var(--on-night-2); }
.review-foot { min-height: 3.6em; padding: 0.65rem 1rem; border-top: 1px solid var(--night-rule); font-size: 0.6563rem; }
/* What each stage has made visible so far. Hidden lines keep their place,
   so the page below the panel does not move while the stages play. */
.review[data-stage='1'] .thread, .review[data-stage='2'] .thread, .review[data-stage='1'] .d-add, .review[data-stage='2'] .d-add, .review[data-stage='3'] .d-add, .review[data-stage='4'] .d-add { visibility: hidden; }
.review[data-stage='3'] .verdict { visibility: hidden; }
.review:not([data-stage='5']) .handoff { visibility: hidden; }
.diff .handoff { color: var(--add); }

/* Agents: a static, wrapping list unless the script starts the strip. */
.agents { border-block: 1px solid var(--ink); background: var(--paper-2); overflow: hidden; }
.agents-track { display: flex; flex-wrap: wrap; }
.agents ul { display: flex; flex-wrap: wrap; flex: 1 1 auto; padding-inline: 16px; font-weight: 700; font-size: clamp(1rem, 1.8vw, 1.45rem); letter-spacing: -0.04em; color: var(--ink); }
.agents ul[aria-hidden] { display: none; }
.agents li { display: flex; align-items: center; padding: 0.8rem 0; white-space: nowrap; }
.agents li::after { content: '\00b7'; margin-inline: 1.2rem; color: var(--accent-text); }
.agents[data-moving] .agents-track { flex-wrap: nowrap; width: max-content; animation: slide 50s linear infinite; }
.agents[data-moving] ul { flex-wrap: nowrap; flex: none; padding-inline: 0; }
.agents[data-moving] ul[aria-hidden] { display: flex; }
.agents[data-moving]:hover .agents-track, .agents[data-moving][data-paused] .agents-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.agents-note { padding-block: 0.7rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 1.5rem; font-size: 0.75rem; color: var(--muted); }

/* Sections */
.section { padding-block: clamp(52px, 7vw, 104px) 0; }
.intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1rem 3rem; align-items: end; margin-bottom: clamp(24px, 3vw, 44px); }
.intro > div { display: grid; gap: 0.8rem; }

/* The five stages */
.path { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--ink); background: var(--paper); }
.path li { display: grid; gap: 0.6rem; align-content: start; padding: 1.2rem 1.1rem 1.4rem; border-right: 1px solid var(--rule-2); transition: background-color 140ms ease; }
.path li:last-child { border-right: 0; }
.path li:hover { background: var(--accent); }
.path li:hover p, .path li:hover b, .path li:hover h3 { color: var(--accent-ink); }
.path b { font-size: 2.2rem; font-weight: 700; line-height: 1; letter-spacing: -0.05em; color: var(--accent-text); }
.path p { font-size: 0.8125rem; line-height: 1.6; }

/* Radar */
.radar { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border: 1px solid var(--ink); }
.radar-chart { padding: clamp(16px, 2.4vw, 32px); border-right: 1px solid var(--ink); background: var(--paper-2); display: grid; gap: 0.8rem; align-content: center; }
.radar-chart svg { width: 100%; height: auto; max-width: 420px; margin-inline: auto; display: block; overflow: visible; }
.radar-grid { fill: none; stroke: var(--rule-2); stroke-width: 1; }
.radar-axis { stroke: var(--rule-2); stroke-width: 1; }
.radar-shape { fill: rgb(254 178 99 / 0.55); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.radar-label { fill: var(--ink); font-family: var(--font); font-size: 9.5px; font-weight: 500; }
.radar-chart p { font-size: 0.6875rem; color: var(--muted); text-align: center; }
.radar-side { display: grid; }
.grade { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.2rem; align-items: center; padding: clamp(16px, 2.4vw, 30px); border-bottom: 1px solid var(--ink); }
.grade > div { display: grid; gap: 0.4rem; }
.grade b { display: grid; place-items: center; width: clamp(84px, 11vw, 128px); aspect-ratio: 1; background: var(--accent); border: 1px solid var(--ink); color: var(--accent-ink); font-size: clamp(3rem, 6vw, 5rem); font-weight: 700; line-height: 1; }
.cmds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cmds > div { padding: 1.2rem 1.1rem 1.3rem; border-right: 1px solid var(--rule-2); display: grid; gap: 0.55rem; align-content: start; min-width: 0; }
.cmds > div:last-child { border-right: 0; }
.cmds p { font-size: 0.8125rem; line-height: 1.6; }
.cmd { display: block; padding: 0.55rem 0.7rem; background: var(--night); color: var(--on-night); overflow-x: auto; white-space: pre; }
.cmd::before { content: '$ '; color: var(--accent); }

/* Work audit */
.audit { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border: 1px solid var(--ink); }
.table-scroll { overflow-x: auto; min-width: 0; border-right: 1px solid var(--ink); background: var(--paper); }
.audit-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; min-width: 30rem; }
.audit-table caption { caption-side: top; text-align: left; padding: 0.8rem 1.1rem; font-size: 0.6875rem; color: var(--muted); border-bottom: 1px solid var(--rule-2); }
.audit-table th, .audit-table td { padding: 0.75rem 1.1rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: baseline; }
.audit-table tr:last-child > * { border-bottom: 0; }
.audit-table thead th { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--ink); }
.audit-table tbody th { font-weight: 500; color: var(--ink-2); }
.audit-table td { color: var(--ink); font-weight: 600; }
.audit-side { display: grid; gap: 1rem; align-content: start; padding: 1.3rem; background: var(--paper-2); min-width: 0; }
.audit-rules { display: grid; gap: 0.7rem; font-size: 0.8125rem; line-height: 1.6; }
.audit-rules li { padding-left: 1.2rem; position: relative; }
.audit-rules li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; background: var(--accent); border: 1px solid var(--ink); }
.audit-rules b { color: var(--ink); font-weight: 600; }
.audit-note { font-size: 0.75rem; color: var(--muted); }
.audit-note code { font-size: inherit; overflow-wrap: anywhere; }

/* Three ways to run */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--ink); }
.way { display: grid; gap: 0.7rem; align-content: start; padding: 1.4rem 1.3rem 1.5rem; border-right: 1px solid var(--ink); min-width: 0; }
.way:last-child { border-right: 0; }
.way-key { background: var(--night); color: var(--on-night-2); }
.way-key h3 { color: var(--on-night); }
.way-key .tag { color: var(--on-night-2); }
.way-key .tag::before { color: var(--accent); }
.way-key .cmd { border: 1px solid var(--night-rule); }
.way-key a { color: var(--accent); }
.way-key a:hover { color: var(--on-night); }
.way-key :focus-visible { outline-color: var(--accent); }
.way p { font-size: 0.8125rem; line-height: 1.65; }
.chips { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.chips li { padding: 0.1rem 0.5rem; border: 1px solid var(--rule-2); font-size: 0.6875rem; color: var(--ink); background: var(--paper); }

/* Connect */
.connect { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; border: 1px solid var(--ink); }
.connect pre { padding: 1.3rem 1.3rem; background: var(--night); color: var(--on-night); line-height: 1.9; overflow-x: auto; }
.connect pre i { font-style: normal; color: var(--accent); }
.connect dl { display: grid; }
.connect dl > div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--rule-2); align-items: start; }
.connect dl > div:last-child { border-bottom: 0; }
.connect dt { font-size: 0.6875rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding-top: 0.2rem; }

/* Questions */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1.5rem 3rem; align-items: start; }
.faq details { border-top: 1px solid var(--ink); }
.faq details:last-of-type { border-bottom: 1px solid var(--ink); }
.faq summary { padding: 1rem 0; min-height: 44px; font-weight: 600; color: var(--ink); cursor: pointer; }
.faq details p { padding-bottom: 1.1rem; max-width: 72ch; font-size: 0.8438rem; }
.faq-more { padding-top: 1rem; font-size: 0.8125rem; }

/* Closing: the invitation request. */
.closing { background: var(--accent); border: 1px solid var(--ink); padding: clamp(28px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.5rem 3rem; align-items: end; color: var(--accent-ink); }
.closing > div:first-child { display: grid; gap: 1rem; }
.closing h2 { color: var(--accent-ink); font-size: clamp(1.9rem, 4.6vw, 3.75rem); }
.closing p { color: var(--accent-ink); }
.closing a { color: var(--accent-ink); }
.invite-form { display: grid; gap: 0.6rem; min-width: 0; }
.closing form { display: grid; gap: 0.6rem; }
.closing label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.closing input { width: 100%; min-height: 48px; padding: 0.4rem 0.8rem; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); font: inherit; }
.closing input::placeholder { color: var(--muted); opacity: 1; }
.closing input[aria-invalid="true"] { border-width: 2px; }
.closing .btn { background: var(--ink); color: var(--paper); }
.closing .btn:hover { background: var(--paper); color: var(--ink); }
.closing :focus-visible { outline-color: var(--ink); }
.closing .form-msg { padding: 0.6rem 0.8rem; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font-weight: 500; }
.invite-next { padding: 0.6rem 0.8rem; border: 1px solid var(--ink); font-size: 0.75rem; }
.invite-note { font-size: 0.6875rem; }

@media (max-width: 1080px) {
  .hero, .intro, .radar, .audit, .connect, .faq-grid, .closing { grid-template-columns: minmax(0, 1fr); }
  .table-scroll { border-right: 0; border-bottom: 1px solid var(--ink); }
  .radar-chart { border-right: 0; border-bottom: 1px solid var(--ink); }
  .path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path li { border-bottom: 1px solid var(--rule-2); }
  .ways { grid-template-columns: minmax(0, 1fr); }
  .way { border-right: 0; border-bottom: 1px solid var(--ink); }
  .way:last-child { border-bottom: 0; }
}
@media (max-width: 640px) {
  .path, .cmds { grid-template-columns: minmax(0, 1fr); }
  .path li { border-right: 0; }
  .path li:last-child { border-bottom: 0; }
  .cmds > div { border-right: 0; border-bottom: 1px solid var(--rule-2); }
  .cmds > div:last-child { border-bottom: 0; }
  .stages button { justify-items: center; padding-inline: 0.2rem; }
  /* Stage names stay in the accessible name when only the numbers fit. */
  .stages button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .connect dl > div { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .grade { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .path li { transition: none; }
}
