/*
 * Accessible Index: the site's design (the approved round 2 boards; decision 24's colours).
 *
 * Mobile first: min-width media queries only (the responsive gate fails a max-width query).
 * Fonts are served from our own domain (Atkinson Hyperlegible Next and Mono, SIL Open Font
 * License), so a visitor's browser contacts no one else. No inline styles anywhere: the
 * security policy allows only this file.
 *
 * Contrast (WCAG 2.2 AA, measured): on the warm white page, text 15.4:1, secondary text 6.5:1,
 * teal links 5.0:1, white on teal buttons 5.5:1; in the charcoal header and footer, white 15.6:1,
 * footer text 8.8:1, footer links 12.1:1; in the evergreen hero, white 8.8:1, links 6.9:1;
 * the notice's text 10.5:1 and its links 4.55:1. Band labels: Ready 4.57:1, Almost ready
 * 9.1:1, Behind 9.7:1, Far behind 4.8:1. Focus outlines: teal 5.0:1 on light, mint 10.3:1 on dark.
 */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Atkinson Hyperlegible Mono";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* a refunded invoice's handwritten "Refunded" (decision 120): Caveat, cut to those letters and an
   amount's figures, so it costs 7 KB and only on an invoice that uses it (OFL, fonts/OFL-Caveat.txt) */
@font-face {
  font-family: "Caveat Refunded";
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url("/fonts/caveat-refunded.woff2") format("woff2");
}

:root {
  /* decision 24 */
  --charcoal: #1f2523;
  --evergreen: #145442;
  --mint: #8fe3be;
  --teal: #0f766e;
  --teal-dark: #0b5c56;
  --page: #f6f5f0;
  /* text and quiet surfaces, from the boards */
  --ink: #13201d;
  --ink-2: #2b3533;
  --ink-3: #4f5b57;
  --on-dark: #ffffff;
  --on-dark-2: #a9c9c0;
  --on-dark-link: #d3e7e1;
  --hero-link: #d3e7e1;
  --chip: #eef3f1;
  --notice: #eceae5;
  --rule: #d9d6cf;
  --track: #e4e8e5;
  --wait: #9aa39f;
  --error: #a12a0b;
  /* critical barriers: amber, calm rather than alarming (plan, section 5.7) */
  --warn-bg: #fdf0d5;
  --warn-ink: #7a4b00;
  --warn-row: #fff8ea;
  --warn-bar: #e0a030;
  --quiet-bar: #9cc9bf;
  /* the live scan's provisional score (owner, 3 October): a faded number, and a darker arc of each band's colour */
  --faded: #7d8784;
  --ready-dark: #015f51;
  --almost-ready-dark: #3e9488;
  --behind-dark: #8f6b1e;
  --far-behind-dark: #6e3f10;
  /* the bands (decision 37) */
  --ready: #018571;
  --almost-ready: #80cdc1;
  --behind: #dfc27d;
  --far-behind: #a6611a;
  --muted-band: #eceae5;
  /* type and space */
  --sans: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: 1rem;
  --max: 75rem;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3 {
  line-height: 1.2;
  text-wrap: balance;
  overflow-wrap: anywhere; /* a long site address in a heading wraps on a narrow phone */
}

h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 2rem 0 0.75rem;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}

p {
  margin: 0 0 1rem;
  max-width: 62ch; /* lines a reader can follow: about 75 characters */
}

a {
  color: var(--teal);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--teal-dark);
}

img,
svg {
  max-width: 100%;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* focus that can always be seen (WCAG 2.4.7): teal on light, mint on dark */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

/* dropdowns: one look across the site, with the arrow set in from the edge (owner, 4 October) */
select {
  appearance: none;
  min-height: 2.75rem;
  padding: 0.5rem 2.75rem 0.5rem 0.875rem;
  border: 2px solid var(--ink-3);
  border-radius: 0.5rem;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6' fill='none' stroke='%230f766e' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 1rem;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

select:hover {
  border-color: var(--teal);
}

/* high-contrast modes drop background images, so the system's own arrow comes back */
@media (forced-colors: active) {
  select {
    appearance: auto;
    padding-right: 0.5rem;
  }
}

.site-head :focus-visible,
.site-foot :focus-visible,
.hero :focus-visible,
.dark :focus-visible {
  outline-color: var(--mint);
}

.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 to the content (WCAG 2.4.1): shown when it has focus */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--page);
  color: var(--ink);
  font-weight: 700;
  border-radius: 0.375rem;
}

.skip-link:focus {
  top: 0.5rem;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- the header ---------------------------------------------------------- */

.site-head {
  background: var(--charcoal);
  color: var(--on-dark);
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding-block: 0.625rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--on-dark);
}

.brand__mark {
  display: block;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
}

.brand__words {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--on-dark);
}

.brand__line {
  font-size: 0.75rem;
  color: var(--on-dark-2);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.625rem;
  background: transparent;
  border: 1px solid var(--on-dark-2);
  border-radius: 0.375rem;
  color: var(--on-dark);
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.nav-toggle[hidden] {
  display: none;
}

.site-nav {
  flex-basis: 100%;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.site-nav a {
  display: block;
  padding: 0.625rem 0;
  color: var(--on-dark);
  text-decoration: none;
  font-size: 1.0625rem;
}

.site-nav a:hover {
  color: var(--mint);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--mint);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* with scripts, the phone menu folds behind its button */
.js .site-nav[data-open="false"] {
  display: none;
}

/* ---- the footer ---------------------------------------------------------- */

.site-foot {
  background: var(--charcoal);
  color: var(--on-dark-2);
  font-size: 1rem;
}

.site-foot__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-block: 2rem;
}

.site-foot__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
}

.site-foot__brand .brand__mark {
  width: 1.625rem;
  height: 1.625rem;
}

.site-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-foot a {
  display: inline-block;
  padding-block: 0.375rem;
  color: var(--on-dark-link);
}

.site-foot a:hover {
  color: var(--on-dark);
}

/* ---- the dark band at the top of index pages ------------------------------- */

.hero {
  background: var(--evergreen);
  color: var(--on-dark);
  padding-block: 1.5rem 2rem;
}

.hero h1 {
  color: var(--on-dark);
}

.hero p {
  color: var(--on-dark-link);
}

.hero a {
  color: var(--hero-link);
}

/* ---- breadcrumbs ---------------------------------------------------------- */

.crumbs ol {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  font-size: 1rem;
}

.crumbs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.crumbs li + li::before {
  content: "\203A";
  color: var(--mint);
}

.crumbs a {
  display: inline-block;
  padding-block: 0.25rem;
}

.crumbs [aria-current="page"] {
  color: var(--on-dark);
  font-weight: 700;
}

/* ---- the bands (decision 37) and the score -------------------------------- */

.band {
  display: inline-block;
  padding: 0.125rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--muted-band);
}

.band--ready {
  background: var(--ready);
  color: #ffffff;
}

.band--almost-ready {
  background: var(--almost-ready);
}

.band--behind {
  background: var(--behind);
}

.band--far-behind {
  background: var(--far-behind);
  color: #ffffff;
}

.score {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.ring {
  position: relative;
  flex: none;
  width: 8.5rem;
  height: 8.5rem;
}

.ring svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring__track {
  stroke: var(--track);
}

.ring--ready .ring__value {
  stroke: var(--ready);
}

.ring--almost-ready .ring__value {
  stroke: var(--almost-ready);
}

.ring--behind .ring__value {
  stroke: #c9a04a;
}

.ring--far-behind .ring__value {
  stroke: var(--far-behind);
}

.ring__label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ring__number {
  font-family: var(--mono);
  font-size: 2.75rem;
  font-weight: 600;
}

.ring__of {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--ink-3);
}

.hero .ring__track {
  stroke: rgba(255, 255, 255, 0.18);
}

.hero .ring__of {
  color: var(--on-dark-2);
}

/* ---- the notice under every report (decision 27) -------------------------- */

.notice {
  background: var(--notice);
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.notice__inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-block: 1.25rem;
}

.notice p {
  margin: 0;
}

.notice ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.notice a {
  display: inline-block;
  padding-block: 0.25rem;
}

/* ---- buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--teal);
  border-radius: 0.5rem;
  background: var(--teal);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #ffffff;
}

.btn--quiet {
  background: transparent;
  color: var(--teal);
}

.btn--quiet:hover {
  background: var(--chip);
  color: var(--teal-dark);
}

.section {
  padding-block: 2rem;
}

/* ---- the scanner: the address box, the live scan and the report (round 2 boards) ---- */

.eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mint);
}

.hero .lead {
  font-size: 1.1875rem;
}

.hero--overlap {
  padding-block-end: 5rem;
}

.lift {
  margin-top: -3.5rem;
}

.card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 0.875rem 2.5rem rgba(20, 84, 66, 0.16);
}

.card--flat {
  box-shadow: 0 0 0 1px var(--rule);
}

.card h2,
.card h3 {
  margin-top: 0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stack > * {
  margin: 0;
}

/* the address box: one field joined to its button */
.check label {
  display: block;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.check__row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.check input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.5rem 0.875rem;
  border: 2px solid var(--ink-3);
  border-radius: 0.5rem;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

/* a note straight under a field's label, before the field */
.check label + .hint {
  margin: -0.25rem 0 0.5rem;
}

.check input[aria-invalid="true"] {
  border-color: var(--error);
}

.check .btn {
  min-height: 3.25rem;
}

.hint {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  color: var(--ink-3);
}

.field-error {
  margin: 0.5rem 0 0;
  font-weight: 700;
  color: var(--error);
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.ticks li {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.ticks li::before {
  content: "\2713";
  flex: none;
  font-weight: 800;
  color: var(--teal);
}

.standards {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.standards li,
.chips li,
.tag {
  border-radius: 999px;
  background: var(--chip);
  color: var(--ink-2);
  font-size: 0.875rem;
  padding: 0.0625rem 0.625rem;
}

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.tag {
  display: inline-block;
  border-radius: 0.375rem;
  font-weight: 700;
}

/* the 50-report review's websites, one card each, in line with the page */
.review-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

/* Activity's top lists (decision 94): one column on a phone, two from a tablet up */
.activity-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 48em) {
  .activity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Log Alerts' levels (decision 93): the word says it, the colour only helps; each on one line */
.tag--critical-alert,
.tag--warning-alert,
.alert-area {
  white-space: nowrap;
}

.tag--critical-alert {
  background: #fbe4dd;
  color: var(--error);
}

.tag--warning-alert {
  background: var(--warn-bg);
  color: var(--warn-ink);
}

.tag--critical {
  background: var(--warn-bg);
  color: var(--warn-ink);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* the live pill in the hero */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.pill::before {
  content: "";
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--mint);
}

.pill--live::before {
  width: 0.875rem;
  height: 0.875rem;
  box-sizing: border-box;
  border: 2.5px solid rgba(143, 227, 190, 0.35);
  border-top-color: var(--mint);
  background: none;
  animation: spin 900ms linear infinite;
}

.hero .pill {
  color: #ffffff;
}

.hero .pill--done {
  background: var(--mint);
  color: #0b2a23;
}

.pill--done::before {
  background: #0b2a23;
}

.hero .pill--stopped {
  background: var(--behind);
  color: var(--ink);
}

.pill--stopped::before {
  background: var(--ink);
}

/* "Pause updates" on the live scan stops every movement where it is (WCAG 2.2.2) */
.is-paused *,
.is-paused *::before {
  animation-play-state: paused !important;
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes breathe {
  50% {
    opacity: 0.75;
    transform: scale(1.05);
  }
}

@keyframes stripes {
  to {
    background-position: 18px 0;
  }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

@keyframes settle {
  from {
    stroke-opacity: 0.35;
  }
}

@keyframes settle-text {
  from {
    color: var(--faded);
  }
}

.scan-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: flex-end;
  justify-content: space-between;
}

.scan-head > div {
  min-width: 0;
}

.live-grid {
  display: grid;
  gap: 1.25rem;
}

/* the score card */
.score-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.score-card .ring {
  margin-inline: auto;
}

.score-card p {
  margin: 0;
}

.ring--scanning .ring__value {
  stroke-opacity: 0.35;
}

.ring__sweep {
  stroke: var(--wait);
  transform-origin: 80px 80px;
  animation: spin 1.8s linear infinite;
}

.ring--ready .ring__sweep { stroke: var(--ready-dark); }
.ring--almost-ready .ring__sweep { stroke: var(--almost-ready-dark); }
.ring--behind .ring__sweep { stroke: var(--behind-dark); }
.ring--far-behind .ring__sweep { stroke: var(--far-behind-dark); }

.ring--scanning .ring__number {
  color: var(--faded);
}

.ring__scanning {
  margin-top: 0.375rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #0a4a44;
  animation: breathe 1.8s ease-in-out infinite;
}

/* the moment the scan ends, the ring fills in to its band's full colour */
.ring--settle .ring__value {
  animation: settle 800ms ease-out;
}

.ring--settle .ring__number {
  animation: settle-text 800ms ease-out;
}

.ring--none .ring__value {
  stroke: transparent;
}

.so-far {
  font-weight: 700;
  font-size: 1.125rem;
}

.quiet {
  font-size: 1rem;
  color: var(--ink-3);
}

.fix-line {
  font-weight: 700;
  color: var(--teal);
}

.barriers {
  font-weight: 700;
  color: var(--warn-ink);
}

/* progress */
.progress__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 700;
}

.progress__bar {
  height: 0.625rem;
  border-radius: 0.3125rem;
  background: var(--track);
  overflow: hidden;
}

.progress__bar span {
  display: block;
  height: 100%;
  border-radius: 0.25rem;
  background-color: var(--teal);
  transition: width 250ms linear;
}

.progress__bar--live span {
  background-image: linear-gradient(-45deg, rgba(255, 255, 255, 0.28) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.28) 50%, rgba(255, 255, 255, 0.28) 75%, transparent 75%, transparent);
  background-size: 18px 18px;
  animation: stripes 900ms linear infinite;
}

.progress__sub {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.issue.is-new {
  animation: slide-in 400ms ease-out both;
}

.w-0 { width: 0; }
.w-5 { width: 5%; }
.w-10 { width: 10%; }
.w-15 { width: 15%; }
.w-20 { width: 20%; }
.w-25 { width: 25%; }
.w-30 { width: 30%; }
.w-35 { width: 35%; }
.w-40 { width: 40%; }
.w-45 { width: 45%; }
.w-50 { width: 50%; }
.w-55 { width: 55%; }
.w-60 { width: 60%; }
.w-65 { width: 65%; }
.w-70 { width: 70%; }
.w-75 { width: 75%; }
.w-80 { width: 80%; }
.w-85 { width: 85%; }
.w-90 { width: 90%; }
.w-95 { width: 95%; }
.w-100 { width: 100%; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 1rem;
}

.section-head h2 {
  margin: 0;
}

/* a list of problems: count, words, and where */
.issues {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.issue {
  display: grid;
  grid-template-columns: 3ch minmax(0, 1fr);
  gap: 0.375rem 0.875rem;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: inset 4px 0 0 var(--quiet-bar);
}

.issue--critical {
  background: var(--warn-row);
  box-shadow: inset 4px 0 0 var(--warn-bar);
}

.issue__n {
  font-family: var(--mono);
  font-weight: 600;
  text-align: right;
}

.issue__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.issue__body p {
  margin: 0;
  font-size: 1rem;
}

.issue__where {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--ink-3);
}

.issue__where svg {
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
}

/* the pages, filling in */
.pagelist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.pagelist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.dot {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  border: 2px solid var(--wait);
  background: #ffffff;
  color: var(--teal);
}

.dot--done {
  background: var(--teal);
  border-color: var(--teal);
  color: #ffffff;
}

.dot--now {
  border: 3px solid #cfe3de;
  border-top-color: var(--teal);
  animation: spin 900ms linear infinite;
}

.dot--skip {
  border-color: var(--ink-3);
  color: var(--ink-3);
}

.pagelist__name {
  display: block;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.pagelist__state {
  display: block;
  font-size: 0.875rem;
  color: var(--ink-3);
}

.pagelist .is-now .pagelist__name {
  font-weight: 700;
}

/* the summary under the hero of a report */
.summary {
  display: grid;
  gap: 1.5rem;
}

.summary__part {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.summary__part p {
  margin: 0;
  font-size: 1rem;
}

.summary__score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.summary__band {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.summary__band .band {
  align-self: flex-start;
  font-size: 1.125rem;
}

/* what a score rests on, beside it (parts.js limitsLine) */
.summary__limits {
  font-size: 0.875rem;
  color: var(--ink-3);
}

.big {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.25rem;
}

.big .mono {
  font-size: 2.75rem;
  font-weight: 600;
  line-height: 1;
}

.big--warn .mono {
  color: var(--warn-ink);
}

.scale {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
}

.scale li {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--ink-3);
  text-align: center;
}

.scale li::before {
  content: "";
  height: 0.5rem;
  width: 100%;
  border-radius: 0.25rem;
  background: var(--scale);
}

.scale .far-behind { --scale: var(--far-behind); }
.scale .behind { --scale: var(--behind); }
.scale .almost-ready { --scale: var(--almost-ready); }
.scale .ready { --scale: var(--ready); }

.scale .is-this {
  font-weight: 700;
  color: var(--ink);
}

.scale .is-this::before {
  box-shadow: 0 0 0 2px var(--ink);
}

.counts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.counts li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.counts li + li {
  padding-top: 0.375rem;
  border-top: 1px solid var(--notice);
}

/* notices about the site itself: an overlay, a federal site, a scan cut short */
.callout {
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--chip);
}

.callout p {
  margin: 0;
}

.callout p + p {
  margin-top: 0.5rem;
}

.callout--warn {
  background: var(--warn-row);
}

/* a report's two columns */
.report-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 2.5rem 3.5rem;
}

.report-main {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  min-width: 0;
}

.report-main > section > h2,
.report-side h2 {
  margin-top: 0;
}

.report-grid--teaser > * {
  min-width: 0;
  margin: 0;
}

/* on a phone, a way to the unlock card that stays at the foot of the screen while the report is in view */
.unlock-bar {
  position: sticky;
  bottom: 0;
  padding-block: 0.75rem;
  background: var(--page);
  box-shadow: 0 -0.5rem 1rem rgba(19, 32, 29, 0.08);
}

.unlock-bar .btn {
  width: 100%;
}

.preview-strip {
  margin: 0;
  max-width: none;
  padding: 0.375rem var(--gutter);
  background: var(--behind);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  text-align: center;
}

.strong {
  font-weight: 800;
  margin-bottom: 0.375rem;
}

.report-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* one problem in full */
.sample {
  display: grid;
  gap: 1.5rem;
}

.facts {
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  /* each label on the first line of its answer, even where a link's taller tap area lowers that line */
  align-items: baseline;
  gap: 0.375rem 0.75rem;
  font-size: 1rem;
}

.facts > div {
  display: contents;
}

.facts dt {
  font-weight: 700;
}

.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.facts dd a {
  display: inline-block;
  padding-block: 0.375rem;
}

.evidence {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.evidence img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 0 0 1px var(--rule);
  background: #ffffff;
}

.evidence figcaption {
  font-size: 0.875rem;
  color: var(--ink-3);
}

/* the fix-first order */
.order {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.order details {
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--rule);
}

.order summary {
  display: grid;
  grid-template-columns: 2.5ch minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
  padding: 1rem;
  cursor: pointer;
  list-style: none;
}

.order summary::-webkit-details-marker {
  display: none;
}

.order summary::after {
  content: "+";
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--teal);
}

.order details[open] summary::after {
  content: "\2212";
}

.order__n {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--ink-3);
}

.order__title {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.order__name {
  font-weight: 800;
}

.order__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1rem 1.25rem;
}

.order__body p {
  margin: 0;
}

.where {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 1rem;
}

.where li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}

.where a {
  display: inline-block;
  padding-block: 0.3125rem;
  overflow-wrap: anywhere;
}

.shots {
  display: grid;
  gap: 1rem;
}

.offer {
  background: var(--evergreen);
  color: var(--on-dark);
  border-radius: 1rem;
  padding: 1.5rem;
}

.offer h2 {
  color: var(--on-dark);
}

.offer p {
  color: var(--on-dark-link);
}

.offer a:not(.btn) {
  color: var(--hero-link);
}

.offer .btn {
  background: var(--mint);
  border-color: var(--mint);
  color: #0b2a23;
}

.offer .btn:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #0b2a23;
}

.offer :focus-visible {
  outline-color: var(--mint);
}

.status {
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--chip);
  box-shadow: inset 4px 0 0 var(--teal);
}

.status p {
  margin: 0;
}

/* a refund on the customer's order page (decision 120): set apart from the plain facts above it */
.status--refund {
  background: var(--warn-row);
  box-shadow: inset 4px 0 0 var(--warn-bar);
  font-size: 1.125rem;
}

/* a question before something that can't be undone, such as a refund (decision 120) */
.confirm {
  /* in the middle of the screen: the page's margin reset would otherwise pin it to the corner */
  margin: auto;
  width: min(34rem, calc(100% - 2rem));
  border: 0;
  border-radius: 1rem;
  padding: 1.5rem;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 1.5rem 4rem rgb(19 32 29 / 0.3);
}

.confirm::backdrop {
  background: rgb(19 32 29 / 0.55);
}

.confirm h2 {
  margin: 0 0 0.75rem;
  font-size: 1.375rem;
}

.confirm p {
  margin: 0 0 1.25rem;
}

.preview-note {
  border: 2px dashed var(--ink-3);
  border-radius: 0.75rem;
  padding: 1rem;
  background: #ffffff;
}

.preview-note p {
  margin: 0 0 0.5rem;
}

.lock {
  display: inline-flex;
  gap: 0.375rem;
  align-items: center;
}

/* ---- Check a PDF (decision 46) ------------------------------------------------- */

.band-light {
  background: #ffffff;
  border-block: 1px solid var(--rule);
}

.eyebrow--light {
  color: var(--teal-dark);
}

.pdf-top,
.pdf-two {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.pdf-check h2 {
  margin: 0;
}

.drop {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 2px dashed var(--ink-3);
  border-radius: 0.75rem;
  background: var(--page);
}

/* the back office's corrected-file box: what's out of use stays out of sight, whatever its layout */
.drop [hidden] {
  display: none;
}

/* the results' add box until the page's script shows it, and the results' own address while it restores them */
.drop[hidden],
.stack[hidden] {
  display: none;
}

.drop.is-over {
  border-color: var(--teal);
  background: var(--chip);
}

.drop label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.drop__title {
  font-weight: 800;
  font-size: 1.125rem;
}

.drop .hint {
  margin: 0;
}

.drop input[type="file"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
}

.pdf-top > *,
.pdf-two > * {
  min-width: 0;
}

.drop input[type="file"]::file-selector-button {
  min-height: 2.75rem;
  margin-right: 0.75rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--teal);
  border-radius: 0.5rem;
  background: #ffffff;
  color: var(--teal);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.drop__list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 1rem;
  overflow-wrap: anywhere;
  display: grid;
  gap: 0.5rem;
}

/* each chosen PDF with its Remove button beside it, wrapping under the name when narrow */
.drop__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
}

.price-cards {
  display: grid;
  gap: 1rem;
}

.pdf-callouts {
  display: grid;
  gap: 1rem;
}

/* the add-on, set apart from the two rates it adds to: one column on a phone, two inside it from a tablet up */
.price-card--addon {
  display: grid;
  gap: 1rem;
  border-top: 4px solid var(--teal);
}

.price-card--addon .eyebrow {
  margin: 0;
}

/* batch orders (decision 99): many PDFs at once, set apart like the add-on, with its prices in a table */
.batch-card {
  display: grid;
  gap: 1.5rem;
  border-top: 4px solid var(--evergreen);
  /* reached from the check box's "Check batch ordering": a little room above it */
  scroll-margin-top: 1.5rem;
}

/* a price table may scroll inside its box on a narrow phone, never widen the page */
.price-cards > *,
.batch-card > *,
.report-side {
  min-width: 0;
}

.batch-card .eyebrow {
  margin: 0;
}

.batch-prices {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.batch-prices caption {
  padding-bottom: 0.375rem;
  font-weight: 700;
  text-align: left;
}

.batch-prices th,
.batch-prices td {
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.batch-prices td {
  white-space: nowrap;
}

.batch-prices tbody th {
  font-weight: 400;
}

.price-cards h3,
.callout h3 {
  margin: 0;
}

.price {
  font-size: 1.125rem;
}

.price .mono {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  margin-right: 0.25rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
  align-items: start;
  align-content: start;
}

.steps__n {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--evergreen);
  color: #ffffff;
  font-family: var(--mono);
  font-weight: 600;
}

.steps h3 {
  margin: 0.375rem 0 0;
}

.steps p {
  margin: 0;
}

.ticks--rich li {
  align-items: flex-start;
}

/* "Hear the difference" (/pdf): one row per place on the form; on a phone each row is a card */
.ticks--two {
  gap: 0.75rem 2.5rem;
}

.hear {
  width: 100%;
  border-collapse: collapse;
}

.hear thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.hear tbody {
  display: grid;
  gap: 1rem;
}

.hear tr {
  display: grid;
  gap: 0.75rem;
  padding: 1.125rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--rule);
}

.hear th,
.hear td {
  display: block;
  padding: 0;
  text-align: left;
  font-weight: 400;
}

.hear td::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 0.375rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hear__place {
  display: block;
  font-weight: 800;
  font-size: 1.0625rem;
}

.hear__why {
  display: block;
  font-size: 0.9375rem;
  color: var(--ink-3);
}

.hear__said {
  display: block;
  padding: 0.75rem 0.875rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
}

.hear__said--before {
  background: var(--page);
  box-shadow: inset 0 0 0 1px var(--rule);
  color: var(--ink-2);
}

.hear__said--after {
  background: #f1f8f5;
  box-shadow: inset 0 0 0 1px #cfe7df;
  color: var(--ink);
}

.hear__bad,
.hear__good {
  padding: 0;
  font-weight: 700;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* a highlighter: the colour reaches above and below the words, never over the marks beside them */
.hear__bad {
  background: var(--warn-bg);
  box-shadow: 0 0.125rem 0 var(--warn-bg), 0 -0.125rem 0 var(--warn-bg);
  color: var(--warn-ink);
}

.hear__good {
  background: #d5efe6;
  box-shadow: 0 0.125rem 0 #d5efe6, 0 -0.125rem 0 #d5efe6;
  color: #0b4f48;
}

.pdf-fixhear {
  gap: 3rem;
}

.hear__col {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hear__col::before {
  content: "";
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--warn-bar);
}

.hear__col--after::before {
  background: var(--teal);
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* "Open all" and "Close all" (public/js/site.js), at the top right of a list of questions */
.faq-tools {
  display: flex;
  justify-content: flex-end;
}

.faq details {
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--rule);
}

.faq summary {
  padding: 0.875rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

.faq details p {
  margin: 0;
  padding: 0 1rem 1rem;
}

/* the results */
.flow {
  counter-reset: flow;
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  color: var(--on-dark-link);
  font-size: 1rem;
}

.flow li {
  counter-increment: flow;
}

.flow li::before {
  content: counter(flow) ". ";
  font-family: var(--mono);
}

/* a step already done leads back to it, until the customer pays */
.flow a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.flow [aria-current="step"] {
  color: #ffffff;
  font-weight: 800;
}

.verdict {
  flex: none;
  align-self: flex-start;
  padding: 0.125rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 700;
}

.verdict--readable {
  background: var(--ready);
  color: #ffffff;
}

.verdict--problems {
  background: var(--behind);
  color: var(--ink);
}

.verdict--not-readable {
  background: var(--far-behind);
  color: #ffffff;
}

.verdict--refused {
  background: var(--muted-band);
  color: var(--ink);
}

.pdf-result {
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--rule);
}

.pdf-result summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 1rem;
  cursor: pointer;
}

.pdf-result__name {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.pdf-result__name .quiet {
  font-weight: 400;
}

.pdf-result__body {
  padding: 0 1rem 1.25rem;
}

.findings {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.findings li {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.findings p {
  margin: 0;
}

.heard {
  margin: 0;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.repair fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.repair legend {
  margin-bottom: 0.5rem;
  font-weight: 700;
}

/* a PDF repair order's documents (src/site/order.js) */
.field[hidden] {
  display: none;
}

.order-docs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* on a phone the download goes under the name and its pages; wider, it sits on the right */
.order-docs li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--rule);
}

.order-docs .btn {
  justify-self: start;
}

/* the batch form's "What kind of documents?", under "Something else", and a refund's amount under "Another
   amount": set in a little, so it reads as that choice's */
.batch-other,
.choice-more {
  padding-left: 1rem;
  border-left: 4px solid var(--rule);
}

/* the links box's example: two lines, as they're to be typed; long addresses wrap rather than widen the page */
.batch-links-example {
  margin: 0.25rem 0 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: var(--chip);
  font-size: 0.875rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* a batch's PDFs on its private page (src/site/batch.js): the name, then its count or why not, with Remove beside it */
.batch-files {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.batch-files li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--rule);
}

.batch-files__what {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: 1 1 16rem;
  min-width: 0;
}

.batch-files__name {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.batch-files form {
  margin: 0;
}

/* a batch in the results: the total's rule closes the list, so its last line has none of its own */
.order-docs--batch li:last-child {
  border-bottom: 0;
}

@media (min-width: 30rem) {
  .order-docs li {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .order-docs .btn {
    justify-self: auto;
  }
}

.order-docs__what {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  min-width: 0;
}

.order-docs__name {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.order-docs__note {
  grid-column: 1 / -1;
  margin: 0;
}

/* decision 108: the free optimization, under each PDF repaired */
.order-docs__included {
  color: var(--teal-dark);
}

/* decision 109: the way out before paying, apart from the button that pays */
.order-cancel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

/* a repair's note: its paragraphs and lists, on the customer's order page and the owner's */
.order-docs__note p,
.order-docs__note ul,
.admin-note p,
.admin-note ul {
  margin: 0 0 0.5rem;
}

.order-docs__note ul,
.admin-note ul {
  padding-left: 1.25rem;
}

.admin-note {
  font-size: 0.95rem;
  color: var(--ink-3);
}

/* the invoice, marked paid (decision 45), with its letterhead (owner, 21 October): the symbol and name
   on the left, the invoice's number on the right, over a teal rule; on a white sheet on wider screens
   (a phone keeps the whole width for the table); printed, the same letterhead on plain paper (the
   symbol and the rule print without background graphics) */

.invoice__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 3px solid var(--teal);
}

.invoice__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.invoice__brand .brand__mark {
  width: 3.25rem;
  height: 3.25rem;
}

.invoice__words {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.invoice__name {
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--ink);
}

.invoice__line {
  font-size: 0.875rem;
  color: var(--ink-3);
}

.invoice__title {
  margin: 0;
  font-size: 1.75rem;
}

.invoice__label {
  display: block;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

/* the rule runs the sheet's width; the words keep their measure */
.invoice__foot {
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

@media (min-width: 40em) {
  .invoice__paper {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 0 0 1px var(--rule);
    padding: 2rem 2.5rem;
  }

  .invoice__title {
    text-align: right;
  }
}

.invoice h1 .tag {
  vertical-align: middle;
  font-size: 1rem;
}

/* refunded (decision 120): Paid struck through as by pen, and "Refunded" written under it */
.invoice__stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  vertical-align: top;
  gap: 0.125rem;
  /* room for the tilted handwriting inside the sheet */
  padding-inline: 0.5rem 0;
}

/* on a wider sheet the title is set right, so the stamp lines up on the right */
@media (min-width: 40em) {
  .invoice__stamp {
    align-items: flex-end;
    padding-inline: 0 0.5rem;
  }
}

.invoice__void {
  position: relative;
  color: var(--ink-3);
}

.invoice__void::after {
  content: "";
  position: absolute;
  left: -0.375rem;
  right: -0.375rem;
  top: 50%;
  height: 0.1875rem;
  border-radius: 0.125rem;
  background: var(--error);
  transform: rotate(-12deg);
}

.invoice__refunded {
  font-family: "Caveat Refunded", "Segoe Print", "Bradley Hand", cursive;
  font-weight: 600;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  color: var(--error);
  transform: rotate(-6deg);
}

.invoice__parties {
  display: grid;
  gap: 1rem;
}

.invoice__parties h2 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.invoice__parties p {
  margin: 0;
  overflow-wrap: anywhere;
}

.invoice__lines {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.invoice__lines caption {
  text-align: left;
  font-weight: 700;
  padding-bottom: 0.5rem;
}

.invoice__scroll {
  overflow-x: auto;
}

.invoice__lines th,
.invoice__lines td {
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.invoice__lines thead th {
  white-space: nowrap;
}

.invoice__lines tbody th {
  min-width: 9rem;
}

.invoice__lines td:last-child,
.invoice__lines thead th:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.invoice__lines tfoot th,
.invoice__lines tfoot td {
  font-weight: 800;
  border-bottom: 0;
}

/* words only paper needs: the contact form's address beside its link */
.print-only {
  display: none;
}

/*
 * Printed, or saved as a PDF from the print dialog: the invoice alone, black on white, the two
 * addresses side by side, with none of the site's header, menu, footer or buttons.
 */
@page {
  margin: 16mm;
}

@media print {
  .skip-link,
  .preview-strip,
  .site-head,
  .site-foot,
  .btt,
  .print-hide {
    display: none !important;
  }

  .print-only {
    display: inline;
  }

  body {
    background: #ffffff;
    color: #000000;
    font-size: 11pt;
  }

  .invoice {
    max-width: none;
    padding: 0;
  }

  .invoice__paper {
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }

  .invoice__label {
    color: var(--teal-dark);
  }

  .invoice a {
    color: inherit;
    text-decoration: none;
  }

  .invoice .tag {
    background: none;
    border: 1px solid #000000;
    color: #000000;
  }

  .invoice__void::after,
  .invoice__refunded {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .invoice .quiet {
    color: #000000;
  }

  /* one size for the sheet's running text, as on paper */
  .invoice .quiet,
  .invoice .facts,
  .invoice__lines {
    font-size: 11pt;
  }

  .invoice__parties {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .invoice__scroll {
    overflow: visible;
  }

  .invoice__lines th,
  .invoice__lines td {
    border-bottom-color: #808080;
  }

  .invoice__lines tr {
    break-inside: avoid;
  }
}

.repair__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.repair__list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
}

.repair__list input {
  width: 2rem;
  height: 2rem;
  margin: 0;
  font-size: 1rem;
  accent-color: var(--teal);
}

.repair__list label {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* the add-on under a form made for printing: its own tick and price, under its PDF */
.repair__addon {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.5rem 0.75rem;
  align-items: start;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: var(--chip);
}

.repair__addon input:disabled + label {
  color: var(--ink-3);
}

.repair__name {
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* decision 108: the free optimization under each PDF to repair, and a readable PDF's row, lined up with the ticked ones */
.repair__included {
  color: var(--teal-dark);
  font-weight: 700;
}

.repair__spacer {
  width: 2rem;
}

.repair__what {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.repair__total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding-block: 0.75rem;
  border-block: 1px solid var(--rule);
  font-weight: 800;
  font-size: 1.25rem;
}

.repair__option {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.repair__option > span:first-child {
  display: flex;
  flex-direction: column;
}

/* ---- the public index (decision 55's pages) -------------------------------------- */

.band--none {
  background: var(--muted-band);
  color: var(--ink);
  font-weight: 700;
}

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  color: var(--on-dark-link);
}

.hero-stats .mono {
  color: #ffffff;
  font-weight: 600;
  margin-right: 0.375rem;
}

.own-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-weight: 700;
}

.own-result a {
  display: inline-block;
  padding-block: 0.3125rem;
}

.key,
.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.key li,
.rows li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.25rem 1rem;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

.key li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.key__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
}

.rows a {
  display: inline-block;
  padding-block: 0.25rem;
  overflow-wrap: anywhere;
}

.filters-tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filters-tabs a {
  display: inline-block;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--teal);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.filters-tabs a[aria-current="page"] {
  background: var(--teal);
  color: #ffffff;
}

.waves {
  display: grid;
  gap: 1.5rem;
}

.waves h3 {
  margin: 0;
}

.kb {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.kb li {
  display: flex;
  gap: 0.625rem;
  align-items: baseline;
}

.kb li::before {
  flex: none;
  font-weight: 800;
}

.kb--ok::before {
  content: "\2713";
  color: var(--ready);
}

.kb--no::before {
  content: "\2715";
  color: var(--far-behind);
}

/* a list of governments: on a phone, one compact row each (decision 33), name and result on top */
.atable.gtable tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.125rem 0.75rem;
  align-items: center;
}

.atable.gtable td::before {
  content: none;
}

.atable.gtable .g-name {
  grid-column: 1;
  grid-row: 1;
  font-weight: 700;
}

.atable.gtable .g-result {
  grid-column: 2;
  grid-row: 1;
  justify-content: flex-end;
}

.atable.gtable .g-type,
.atable.gtable .g-deadline {
  grid-row: 2;
  font-size: 0.9375rem;
  color: var(--ink-3);
}

.atable.gtable .g-type {
  grid-column: 1;
}

.atable.gtable .g-deadline {
  grid-column: 2;
  justify-content: flex-end;
}

/* the federal list: the agency takes the whole second line, its department under it */
.atable.gtable--federal .g-type {
  grid-column: 1 / -1;
  flex-direction: column;
  align-items: flex-start;
}

.g-dept {
  display: block;
  font-size: 0.875rem;
  color: var(--ink-3);
}

/* ---- the US page: two ways in, federal and the states (decision 62) ---------- */

.paths {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.path__kicker {
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

.path__stats {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
}

.path__stats .mono {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--evergreen);
}

.path__facts {
  display: grid;
  gap: 0.5rem;
}

.path__facts div {
  display: grid;
  gap: 0.125rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule);
}

.path__facts dt {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink-3);
}

.path__facts dd {
  margin: 0;
}

.path__pick label,
.path__label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 700;
}

.path__label {
  margin-top: 0;
}

.path__pickrow {
  display: flex;
  gap: 0.5rem;
}

.path__pick select {
  flex: 1;
  min-width: 0;
}

/* the buttons sit at the foot of both cards, level with each other */
.path > .path__go {
  margin-top: auto;
  padding-top: 0.5rem;
}

/* where a group stands: a bar of bands, the counts in words beside it */
.bandbar-wrap {
  display: grid;
  gap: 0.5rem;
}

.bandbar {
  height: 0.75rem;
  border-radius: 999px;
  overflow: hidden;
  background: var(--track);
}

.bandbar svg {
  display: block;
  width: 100%;
  height: 100%;
}

.seg--ready { fill: var(--ready); }
.seg--almost-ready { fill: var(--almost-ready); }
.seg--behind { fill: var(--behind); }
.seg--far-behind { fill: var(--far-behind); }
.seg--blocked { fill: var(--wait); }
.seg--not-yet { fill: var(--track); }

.bandkey {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.bandkey li {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.swatch {
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 0.1875rem;
  box-shadow: inset 0 0 0 1px rgba(19, 32, 29, 0.18);
}

.swatch--ready { background: var(--ready); }
.swatch--almost-ready { background: var(--almost-ready); }
.swatch--behind { background: var(--behind); }
.swatch--far-behind { background: var(--far-behind); }
.swatch--blocked { background: var(--wait); }
.swatch--not-yet { background: var(--track); }

@media (min-width: 48rem) {
  .paths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .card.path {
    padding: 2rem;
  }
}

/* ---- a claimed government's page (src/claims/; the board Claimed2) ---- */

.claim-strip {
  background: var(--notice);
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
}

.claim-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.625rem;
}

.claim-strip__inner p {
  margin: 0;
}

.claim-strip__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.claim-strip__links a,
.linklike {
  display: inline-block;
  padding-block: 0.375rem;
}

/* a button that reads as a link: Sign out */
.linklike {
  padding-inline: 0;
  border: 0;
  background: none;
  color: var(--teal);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.linklike:hover {
  color: var(--teal-dark);
}

/* code on the site's own pages (About our scanner): wraps on a phone rather than running off the side */
.doc pre {
  margin: 0;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--rule);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.doc code {
  font-family: var(--mono);
  font-size: 0.9375rem;
}

/* corrections (decision 73): under a result's summary, dated, in the owner's words */
.corrections {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 0.875rem;
  background: #ffffff;
  box-shadow: inset 4px 0 0 var(--teal), 0 0 0 1px var(--rule);
}

.corrections h2 {
  margin: 0;
  font-size: 1.125rem;
}

.corrections ul {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.375rem;
}

/* ---- back to top (owner, 5 October; as on dynamosys.com; made by public/js/site.js) ---- */

.btt {
  position: fixed;
  right: calc(0.85rem + env(safe-area-inset-right, 0px));
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 35;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(31, 37, 35, 0.92);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.45), 0 8px 24px rgba(19, 32, 29, 0.28);
  opacity: 0;
  transform: translateY(8px) scale(0.94);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.btt.is-on,
.btt:focus {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.btt[hidden] {
  display: none;
}

/* a focused link under it: out of the way (WCAG 2.4.11) */
.btt.is-aside {
  opacity: 0;
  pointer-events: none;
}

.btt:hover {
  background: var(--charcoal);
}

/* teal outside a white ring, so focus shows over the light page and the dark footer alike */
.btt:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #ffffff, 0 8px 24px rgba(19, 32, 29, 0.28);
}

.btt__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.btt__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 3;
}

.btt__fill {
  fill: none;
  stroke: var(--mint);
  stroke-width: 3;
  stroke-linecap: round;
}

.btt__arrow {
  position: relative;
  width: 18px;
  height: 18px;
}

/* the label, for a mouse only; the pointer can move onto it (the ::after bridges the gap), Escape closes it (WCAG 1.4.13) */
.btt__tip {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 10px;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: var(--charcoal);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.btt__tip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 12px;
}

.btt:hover .btt__tip,
.btt:focus-visible .btt__tip {
  opacity: 1;
  pointer-events: auto;
}

.btt.no-tip .btt__tip {
  opacity: 0;
  pointer-events: none;
}

@media (hover: none) {
  .btt__tip {
    display: none;
  }
}

@media (min-width: 48rem) {
  .btt {
    width: 48px;
    height: 48px;
    right: calc(1.25rem + env(safe-area-inset-right, 0px));
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }
}

/* focus never parks a link under it: scrolling to a focused item leaves room at the bottom */
html.has-btt {
  scroll-padding-bottom: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .btt,
  .btt.is-on,
  .btt:focus {
    transform: none;
  }
}

@media print {
  .btt {
    display: none;
  }
}

/* ---- statuses (decision 67): beside a government's heading, in the lists, on the claimed page ---- */

.gov-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
}

.gov-hero__main {
  flex: 1 1 30rem;
  min-width: 0;
}

.gov-status {
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.375rem;
}

.gov-status p {
  margin: 0;
}

.gov-status__label {
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mint);
}

.hero .gov-status__label {
  color: var(--mint);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1.125rem 0.5rem 0.75rem;
  border-radius: 999px;
  background: #ffffff;
  font-weight: 800;
  font-size: 1.1875rem;
  line-height: 1.2;
}

.hero .status-pill {
  color: var(--ink);
}

.gov-status__who {
  font-size: 0.9375rem;
}

.hero .gov-status__extra {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--on-dark);
}

.gov-status__claim {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.375rem !important;
  padding-top: 0.625rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9375rem;
}

.hero .gov-status__claim.is-claimed {
  font-weight: 700;
  color: var(--on-dark);
}

.gov-status__claim .sicon {
  stroke: var(--on-dark-2);
}

.gov-status__claim.is-claimed .sicon {
  stroke: var(--mint);
}

.gov-status__more {
  font-size: 0.9375rem;
}

.sicon {
  display: block;
  flex: none;
  stroke: var(--ink-3);
}

.status--reviewing .sicon {
  stroke: #2459a8;
}

.status--in-progress .sicon {
  stroke: #8f5b00;
}

.status--new-website .sicon {
  stroke: #5b3f99;
}

.status--fixes-confirmed .sicon,
.status--no-problems .sicon {
  stroke: var(--ready-dark);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.125rem 0.6875rem 0.125rem 0.5rem;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1.5px #b9c2be;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.5;
  white-space: nowrap;
}

.claimed-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #0b4f48;
  white-space: nowrap;
}

.claimed-tag .sicon,
.claim-title .sicon {
  stroke: var(--teal);
}

.claim-title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.g-status__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.75rem;
}

.atable.gtable .g-status {
  grid-column: 1 / -1;
  grid-row: 3;
}

.atable.gtable .g-status:empty {
  display: none;
}

.month-pick {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.5rem;
}

.month-pick legend {
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.month-pick__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.faq .faq__answer {
  padding: 0 1rem 1rem;
  gap: 0.625rem;
}

.faq .faq__answer p {
  padding: 0;
}

.faq__answer ul {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.375rem;
}

.order__change {
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  background: var(--chip);
}

/* ---- the forms: contact and dispute (src/site/fields.js), and the back office's messages ---- */

.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 40rem;
}

.form > * {
  margin: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.field label {
  font-weight: 700;
}

.field__optional {
  font-weight: 400;
  color: var(--ink-3);
}

.field__hint,
.field__error {
  margin: 0;
  font-size: 0.9375rem;
}

.field__hint {
  color: var(--ink-3);
}

.field__error {
  font-weight: 700;
  color: var(--error);
}

/* boxes to type in; a tick box in a field keeps its own look, so its tick shows */
.field input:not([type="checkbox"], [type="radio"]),
.field textarea {
  appearance: none;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.875rem;
  border: 2px solid var(--ink-3);
  border-radius: 0.5rem;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.field textarea {
  resize: vertical;
}

.field select {
  width: 100%;
}

.field--error input,
.field--error textarea,
.field--error select,
.field--error .choice {
  border-color: var(--error);
}

.form-errors {
  padding: 1rem 1.25rem;
  border: 2px solid var(--error);
  border-radius: 0.75rem;
  background: #ffffff;
}

/* a form's result, focused after sending, shows where the focus is, with room above it */
.form-errors:focus,
.status:focus {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.form-errors,
.status {
  scroll-margin-top: 1.5rem;
}

.form-errors h2 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.form-errors ul {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-errors a {
  color: var(--error);
  font-weight: 700;
}

/* label and value, one pair a row: stacked on a phone, side by side from a tablet */
.kv {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.kv div {
  display: grid;
  gap: 0.125rem;
  min-width: 0;
}

.kv dt {
  font-weight: 700;
}

.kv dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.kv a {
  display: inline-block;
  padding-block: 0.3125rem;
}

@media (min-width: 48rem) {
  .kv div {
    grid-template-columns: 10rem minmax(0, 1fr);
    gap: 0.75rem;
  }
}

.btn--danger {
  background: var(--error);
  border-color: var(--error);
  color: #ffffff;
}

.btn--danger:hover {
  background: #7d1f07;
  border-color: #7d1f07;
}

.delete-box {
  border: 2px solid var(--rule);
}

/* each filter takes its share of the row and wraps, so a long option never widens the page */
.msg-filters > div {
  flex: 1 1 12rem;
  min-width: 0;
}

.msg-filters select,
.msg-filters input {
  width: 100%;
  max-width: 100%;
}

/* a search box with its hint takes a row of its own, so the choices beside it stay in line */
.msg-filters > .filters__wide {
  flex-basis: 100%;
}

.filters__wide input {
  max-width: 40rem;
}

.filters__wide .quiet {
  margin: 0 0 0.25rem;
}

.msg-filters input {
  min-height: 2.75rem;
  padding: 0.375rem 0.75rem;
  border: 2px solid var(--ink-3);
  border-radius: 0.5rem;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.admin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Customers (decision 116): an address never breaks mid-word in the list, and an order's PDFs, one a line */
.cust-title {
  overflow-wrap: anywhere;
}

.customer-docs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.customer-docs li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  border-top: 1px solid var(--rule);
  padding-top: 0.35rem;
}

@media (min-width: 48rem) {
  .cust-email,
  .cust-note {
    white-space: nowrap;
  }
}

.page-tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.page-tabs a {
  display: inline-block;
  min-height: 2.75rem;
  padding: 0.625rem 0 0.5rem;
  border-bottom: 4px solid transparent;
  margin-bottom: -1px;
  color: var(--ink-2);
  font-weight: 700;
  text-decoration: none;
}

.page-tabs a:hover {
  color: var(--teal);
}

.page-tabs a[aria-current="page"] {
  border-bottom-color: var(--teal);
  color: var(--ink);
}

.pick-all .choice {
  display: inline-flex;
}

.tiles--four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.run-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.run-facts li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
}

.run-facts .inline-form {
  margin-left: 0;
}

.pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  cursor: pointer;
}

.pick input {
  width: 2rem;
  height: 2rem;
  font-size: 1rem;
  margin: 0;
  accent-color: var(--teal);
}

.filters input[type="search"] {
  min-height: 2.75rem;
  padding: 0.375rem 0.75rem;
  border: 2px solid var(--ink-3);
  border-radius: 0.5rem;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.tiles--four a {
  display: inline-block;
  padding-block: 0.375rem;
}

.run-bar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: none;
  font-weight: 700;
}

.run-follow .choice {
  display: inline-flex;
}

.run-bar progress {
  appearance: none;
  width: 100%;
  height: 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--chip);
  box-shadow: inset 0 0 0 1px var(--rule);
  color: var(--teal);
  overflow: hidden;
}

.run-bar progress::-webkit-progress-bar {
  border-radius: 999px;
  background: var(--chip);
}

.run-bar progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--teal);
}

.run-bar progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--teal);
}

.admin-actions input[type="text"] {
  min-height: 2.75rem;
  padding: 0.375rem 0.75rem;
  border: 2px solid var(--ink-3);
  border-radius: 0.5rem;
  font: inherit;
  font-size: 1rem;
}
.inline-form {
  display: inline-block;
  margin-left: 0.5rem;
}
.btn--small {
  min-height: 2.75rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.9375rem;
}

.late {
  font-weight: 700;
  color: var(--warn-ink);
}

/* ---- the site's own pages: how we check, the questions, the policies (src/site/info.js) ---- */

.doc {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.doc__main {
  min-width: 0;
  max-width: 46rem;
  gap: 2.25rem;
}

.doc__section {
  gap: 0.75rem;
  scroll-margin-top: 1.5rem;
}

.doc__section h2 {
  margin: 0;
}

.doc__section ul,
.doc__section ol:not(.loop-steps) {
  margin: 0;
  padding-left: 1.375rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.doc__toc {
  padding: 1.125rem 1.25rem;
  border-radius: 0.875rem;
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--rule);
}

.doc__toc h2 {
  margin: 0 0 0.375rem;
  font-size: 1rem;
}

.doc__toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.doc__toc a {
  display: block;
  padding-block: 0.5rem;
  font-weight: 600;
}

.doc__draft {
  margin: 0;
}

.doc__table {
  border-collapse: collapse;
  min-width: 18rem;
}

.doc__table caption {
  padding-bottom: 0.375rem;
  font-weight: 700;
  text-align: left;
}

.doc__table th,
.doc__table td {
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

.doc__table tbody th {
  font-weight: 400;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

/* ---- the home page (src/site/home.js; the boards Home2 and PhoneHome2) ---- */

.hero.hero--home {
  padding-block-end: 5.5rem;
}

.hero--home h1 {
  max-width: 15em;
  text-wrap: balance;
}

.hero--home .lead {
  max-width: 36em;
}

/* "For governments": a pill on the hero leading to the index */
.gov-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.625rem;
  min-height: 2.75rem;
  padding: 0.625rem 1.125rem;
  border-radius: 1.5rem;
  background: #1c5f4d;
  box-shadow: inset 0 0 0 1.5px #62b89c;
  color: #ffffff;
  text-decoration: none;
}

.hero a.gov-pill {
  color: #ffffff;
}

.gov-pill:hover {
  background: #22705b;
}

.gov-pill__who,
.gov-pill__arrow {
  font-weight: 700;
  color: var(--mint);
}

/* the scan card: the box and what it brings, the example scan beside it on a computer */
.home-scan {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  /* reached from a government's page, "Check example.gov now" (decision 115): the card's top, its label with it */
  scroll-margin-top: 1.5rem;
}

/* beside the box for a visitor from a government's index page (decision 115): what the index says of its site */
.home-gov {
  gap: 1.5rem;
}

.home-gov__part + .home-gov__part {
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.home-gov__name {
  font-size: 1.35rem;
  line-height: 1.25;
}

.home-gov__result {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.6rem;
}

.home-gov__score {
  font-size: 2rem;
  line-height: 1;
}

.home-scan__form {
  gap: 1.25rem;
}

.home-scan__standards {
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.ticks--round li::before {
  content: none;
}

.ticks--round li {
  align-items: flex-start;
}

.tick {
  flex: none;
  margin-top: 0.125rem;
}

.tick circle {
  fill: var(--teal);
}

/* the example scan */
.example {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.125rem 1.125rem;
  border-radius: 0.875rem;
  background: #ffffff;
  box-shadow: 0 0 0 1px #eceae5, 0 0.5rem 1.5rem rgba(20, 84, 66, 0.08);
}

.example__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.75rem;
}

.example__cap {
  font-size: 0.8125rem;
  text-transform: uppercase;
  color: var(--ink-3);
}

.example__toggle[hidden] {
  display: none;
}

.example__toggle {
  min-height: 2.75rem;
  padding: 0 0.875rem;
  font-size: 0.9375rem;
}

.example__screen {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.example__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.example__kind {
  min-width: 0;
  overflow: hidden;
  font-size: 1.125rem;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.example__pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  background: var(--chip);
  font-size: 0.875rem;
  font-weight: 700;
}

.example__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ready);
}

.example__pill--live .example__dot {
  background: var(--teal);
  animation: aiBlink 1.2s ease-in-out infinite;
}

@keyframes aiBlink {
  50% { opacity: 0.35; }
}

.example__mid {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.example__ring {
  position: relative;
  flex: none;
  width: 6.5rem;
  height: 6.5rem;
}

.example__ring svg {
  display: block;
  width: 100%;
  height: 100%;
}

.example__track {
  fill: none;
  stroke: var(--track);
  stroke-width: 10;
}

.example__bar {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  stroke: var(--wait);
}

.ex-shade--ready { stroke: var(--ready); }
.ex-shade--almost-ready { stroke: var(--almost-ready-dark); }
.ex-shade--behind { stroke: #c9a04a; }
.ex-shade--far-behind { stroke: var(--far-behind); }
.ex-shade--none { stroke: var(--wait); }
.ex-shade--faded { opacity: 0.55; }

.example__score {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--ink-3);
}

.example__score .mono {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}

.example__status {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.4375rem;
  min-width: 0;
}

.example__headline,
.example__now {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.example__headline {
  font-weight: 700;
}

.example__now {
  font-size: 0.875rem;
  color: var(--ink-3);
}

.example__track-bar {
  height: 0.375rem;
  overflow: hidden;
  border-radius: 0.1875rem;
  background: var(--track);
}

.example__progress {
  width: 100%;
  height: 100%;
  background: var(--teal);
}

.example__bands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.example__crit {
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-size: 0.875rem;
  font-weight: 700;
}

.example__crit[hidden] {
  display: none;
}

.example__issues {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 8.125rem;
}

.example__issue {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.375rem;
  padding: 0 0.75rem;
  border-radius: 0.625rem;
  background: #f7f7f4;
  box-shadow: inset 4px 0 0 var(--quiet-bar);
  font-size: 0.875rem;
}

.example__issue--crit {
  background: var(--warn-row);
  box-shadow: inset 4px 0 0 var(--warn-bar);
}

.example__issue-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.example__tag {
  flex: none;
  padding: 0.0625rem 0.5rem;
  border-radius: 0.375rem;
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-size: 0.75rem;
  font-weight: 700;
}

.example__bottom {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--teal-dark);
}

/* the dark bands: why check, and the public index */
.band-dark {
  background: var(--charcoal);
  color: var(--on-dark);
}

.band-dark h2,
.band-dark h3 {
  color: var(--on-dark);
}

.band-dark p {
  color: var(--on-dark-link);
}

.band-dark a:not(.btn) {
  color: var(--mint);
}

.band-dark :focus-visible {
  outline-color: var(--mint);
}

.home-why {
  margin-top: 4rem;
}

.home-why__inner,
.home-index__inner {
  display: grid;
  gap: 2rem;
  padding-block: 3.5rem;
}

.home-why__list,
.home-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.home-why__list h3,
.home-features h3 {
  margin: 0 0 0.375rem;
  font-size: 1.1875rem;
}

.home-why__list p,
.home-features p {
  margin: 0;
}

.home-why__list li {
  padding-top: 1rem;
  border-top: 2px solid var(--mint);
}

.home-features li {
  padding: 1.25rem;
  border-radius: 0.875rem;
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--rule);
}

.home-intro {
  max-width: 46rem;
  font-size: 1.1875rem;
}

.home-index {
  background: var(--evergreen);
}

.home-index__inner > .stack {
  max-width: 46rem;
}

.home-faq {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.home-faq h2,
.home-faq h3 {
  margin: 0;
}

.home-last {
  padding-block: 3rem;
  background: #ffffff;
  border-top: 1px solid var(--rule);
}

.home-last h2 {
  margin: 0;
}

.home-last .check {
  max-width: 40rem;
}

@media (min-width: 48rem) {
  .home-why__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 48rem) {
  .hero.hero--home {
    padding-block-end: 7rem;
  }
}

@media (min-width: 64rem) {
  .home-scan {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 2.25rem;
  }

  .home-scan .example,
  .home-scan .home-gov {
    padding-left: 2.25rem;
    border-left: 1px solid var(--rule);
    border-radius: 0;
    box-shadow: none;
  }

  .home-why__inner {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 3rem;
  }

  .home-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-faq {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 3rem;
  }
}

/* ---- how it works: the loop (src/site/loop.js; the boards Home2 and PhoneHow) ---- */

.loop {
  display: grid;
  gap: 1.5rem;
}

/* a phone, or a tablet: the steps as a timeline, then where to start */
.loop__visual {
  display: none;
}

.loop-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.loop-steps__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0 0 1.75rem 2.25rem;
}

/* each step's diamond, and the dotted line on to the next */
.loop-steps__item::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0.3125rem;
  top: 0.4375rem;
  width: 0.75rem;
  height: 0.75rem;
  box-sizing: border-box;
  border: 2px solid var(--teal);
  background: var(--page);
  transform: rotate(45deg);
}

.loop-steps__item::after {
  content: "";
  position: absolute;
  left: 0.625rem;
  top: 1.375rem;
  bottom: 0.125rem;
  width: 2px;
  background: repeating-linear-gradient(180deg, #8d9692 0 2px, transparent 2px 8px);
}

.loop-steps__item:last-child {
  padding-bottom: 0;
}

/* on a phone or tablet the steps follow the scroll (public/js/loop.mjs): the step reaching the
   middle of the screen lights up, and the line up to it turns solid */
.loop-steps__item--lit::before,
.loop-steps__item--passed::before {
  background: var(--teal);
}

.loop-steps__item--lit .loop-steps__name {
  color: var(--teal);
}

.loop-steps__item--passed::after {
  background: var(--teal);
}

.loop-steps__item:last-child::after {
  display: none;
}

.loop-steps__name {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  margin: 0;
  font-size: 1.25rem;
}

.loop-steps__num {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-3);
}

.loop-steps__item p {
  margin: 0;
}

.loop-steps__get {
  font-size: 0.9375rem;
  color: var(--ink-3);
}

.loop-steps__get strong {
  color: var(--ink);
}

.loop__start-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.125rem 1.25rem;
  border: 1.5px solid var(--rule);
  border-radius: 0.875rem;
  background: #ffffff;
}

.loop__start-card .btn {
  align-self: flex-start;
}

.loop__kicker {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.loop__call {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.15;
  text-wrap: balance;
}

/* a computer: the loop beside the list */
.loop__diagram {
  position: relative;
  width: 100%;
  max-width: 32rem;
  aspect-ratio: 1;
}

.loop__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.loop__ring {
  fill: none;
  stroke: #b9bfbb;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 0 9;
}

.loop__trail {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.loop__dia {
  fill: #ffffff;
  stroke: var(--rule);
  stroke-width: 1.5;
}

.loop__mover {
  fill: var(--teal);
  opacity: 0;
}

.loop__node {
  position: absolute;
  width: 24%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1875rem;
  text-align: center;
  color: var(--ink);
  transform: translate(-50%, -50%);
}

.loop__node--0 { left: 50%; top: 16%; }
.loop__node--1 { left: 84%; top: 50%; }
.loop__node--2 { left: 50%; top: 84%; }
.loop__node--3 { left: 16%; top: 50%; }

.loop__name {
  font-size: 0.9375rem;
  font-weight: 800;
}

.loop__num {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  opacity: 0.8;
}

/* the centre: a card saying where to start, sized to sit inside the loop clear of the four steps */
.loop__centre {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 38%;
  height: 28%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  box-sizing: border-box;
  border: 1.5px solid var(--rule);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 0.875rem 2rem rgba(20, 84, 66, 0.12);
  transform: translate(-50%, -50%);
}

.loop__centre-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3125rem;
  text-align: center;
}

.loop__centre .loop__call {
  font-size: 1rem;
}

.loop__centre .btn {
  padding-inline: 1rem;
}

.loop__toggle {
  display: none;
  align-self: flex-start;
  min-height: 2.75rem;
  padding: 0 0.875rem;
  border: 2px solid var(--ink-3);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

/* moving: the marker shows, the trail grows behind it, and each step lights while the marker
   stops there. One twelve-second beat; each step's light is offset by a quarter of it */
@keyframes loopTrail {
  0%, 10% { stroke-dashoffset: 100; }
  25%, 35% { stroke-dashoffset: 75; }
  50%, 60% { stroke-dashoffset: 50; }
  75%, 85% { stroke-dashoffset: 25; }
  100% { stroke-dashoffset: 0; }
}

@keyframes loopDia {
  0%, 13% { fill: var(--teal); stroke: var(--teal); }
  16%, 100% { fill: #ffffff; stroke: var(--rule); }
}

@keyframes loopNode {
  0%, 13% { color: #ffffff; }
  16%, 100% { color: var(--ink); }
}

@keyframes loopBullet {
  0%, 13% { background: var(--teal); }
  16%, 100% { background: var(--page); }
}

@keyframes loopHead {
  0%, 13% { color: var(--teal); }
  16%, 100% { color: var(--ink); }
}

.loop--on .loop__mover {
  opacity: 1;
}

.loop--on .loop__trail {
  animation: loopTrail 12s linear infinite;
}

.loop--on .loop__dia,
.loop--on .loop__node {
  animation-duration: 12s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.loop--on .loop__dia { animation-name: loopDia; }
.loop--on .loop__node { animation-name: loopNode; }

.loop--on .loop__dia--1, .loop--on .loop__node--1, .loop--on .loop-steps__item--1::before, .loop--on .loop-steps__item--1 .loop-steps__name { animation-delay: -9s; }
.loop--on .loop__dia--2, .loop--on .loop__node--2, .loop--on .loop-steps__item--2::before, .loop--on .loop-steps__item--2 .loop-steps__name { animation-delay: -6s; }
.loop--on .loop__dia--3, .loop--on .loop__node--3, .loop--on .loop-steps__item--3::before, .loop--on .loop-steps__item--3 .loop-steps__name { animation-delay: -3s; }

.loop--paused .loop__trail,
.loop--paused .loop__dia,
.loop--paused .loop__node,
.loop--paused .loop-steps__item::before,
.loop--paused .loop-steps__name {
  animation-play-state: paused;
}

@media (min-width: 64rem) {
  .loop {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
  }

  .loop__visual {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .loop__start-card {
    display: none;
  }

  /* the pause button under the loop, beside nothing in the list's column: only where the loop
     moves by itself */
  .loop__toggle:not([hidden]) {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    grid-column: 1;
    justify-self: start;
    margin-top: -2rem;
  }

  /* the list lights with the loop, on its beat */
  .loop--on .loop-steps__item::before,
  .loop--on .loop-steps__name {
    animation-duration: 12s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
  }

  .loop--on .loop-steps__item::before { animation-name: loopBullet; }
  .loop--on .loop-steps__name { animation-name: loopHead; }
}

/* a page whose main column holds something wide, such as the loop */
/* a full-width part above a page's sections and their guide (How it works: the loop) */
.doc-intro {
  padding-bottom: 0;
  gap: 1.5rem;
}

.doc--wide .doc__main {
  max-width: none;
}

.doc--wide .doc__section > p,
.doc--wide .doc__section > ul {
  max-width: 46rem;
}

/* our commitments: numbered, one rule between each */
.commits {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--rule);
}

.commits li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--rule);
}

.commits h2 {
  margin: 0;
  font-size: 1.25rem;
}

.commits p {
  margin: 0;
}

.commits__n {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--teal);
}

.doc__aside {
  min-width: 0;
}

.card--dark {
  background: var(--evergreen);
  color: var(--on-dark);
}

.card--dark h2 {
  color: var(--on-dark);
}

.card--dark p {
  color: var(--on-dark-link);
}

.card--dark :focus-visible {
  outline-color: var(--mint);
}

/* an outlined button on a dark band, for a second action beside the page's main one */
.hero .btn--on-dark {
  background: transparent;
  border-color: var(--mint);
  color: var(--on-dark);
}

.hero .btn--on-dark:hover {
  background: var(--mint);
  border-color: var(--mint);
  color: #0b2a23;
}

/* "Already ordered? Find your orders" at the top of the PDF page (owner, 21 October) */
.pdf-orders-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 1rem 0 0;
}

.btn--mint {
  background: var(--mint);
  border-color: var(--mint);
  color: #0b2a23;
}

.btn--mint:hover {
  background: #b6eed6;
  border-color: #b6eed6;
  color: #0b2a23;
}

@media (min-width: 64rem) {
  .doc--contents {
    grid-template-columns: 16rem minmax(0, 1fr);
  }

  .doc--contents .doc__toc {
    position: sticky;
    top: 1.5rem;
  }

  .doc--aside {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  }

  .doc--aside .doc__aside {
    position: sticky;
    top: 1.5rem;
  }
}

/* ---- the maps (the boards USMap2 and Virginia2; on a phone the list stands in, decision 33) ---- */

.mapcard-wrap {
  display: none;
}

.mapcard {
  display: grid;
  gap: 1.5rem;
}

.mapcard h2,
.mapcard h3 {
  margin: 0;
}

/* the way past a map's links: shown when it has focus */
.map-skip {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.map-skip:focus {
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  align-self: flex-start;
  padding: 0.25rem 0.5rem;
  font-weight: 700;
}

.map {
  position: relative;
}

.map svg {
  display: block;
  width: 100%;
  height: auto;
}

.map__place path,
.map__empty {
  stroke: #ffffff;
  stroke-width: 0.8;
  stroke-linejoin: round;
}

.map__town circle {
  stroke: var(--ink);
  stroke-width: 1.3;
}

.map__place:hover path,
.map__place:focus-visible path,
.map__place:hover circle,
.map__place:focus-visible circle {
  stroke: var(--ink);
  stroke-width: 2.5;
}

.map__empty {
  fill: var(--muted-band);
}

.hatch__ground {
  fill: #eceae5;
}

.hatch__line {
  stroke: #b9b5ac;
  stroke-width: 2;
}

/* a place, or a state by its state government, coloured by its result. The same class colours a
   shape (fill) and its swatch in the key (background) */
.band--map-ready { fill: var(--ready); background: var(--ready); }
.band--map-almost-ready { fill: var(--almost-ready); background: var(--almost-ready); }
.band--map-behind { fill: var(--behind); background: var(--behind); }
.band--map-far-behind { fill: var(--far-behind); background: var(--far-behind); }
.band--map-blocked { fill: url(#hatch); background: repeating-linear-gradient(45deg, #eceae5 0 3px, #b9b5ac 3px 5px); }
.band--map-not-yet { fill: var(--track); background: var(--track); }
.band--map-no-site { fill: #ffffff; background: #ffffff; }

/* no website: an empty marker with a dashed outline, so it never reads as white on white */
.map__place.band--map-no-site path,
.map__place.band--map-no-site circle {
  stroke: var(--ink-3);
  stroke-width: 1.3;
  stroke-dasharray: 2 1.5;
}

/* a state with its counties and cities in the index: their lines in white over its colour, never
   thickened with the outline when the state is pointed at (owner, 2 November) */
.map__place .map__lines,
.map__place:hover .map__lines,
.map__place:focus-visible .map__lines {
  fill: none;
  stroke: #ffffff;
  stroke-width: 0.45;
  stroke-opacity: 0.9;
  pointer-events: none;
}

/* on the pale grounds, the lines in a darker grey so they still show */
.map__place.band--map-blocked .map__lines,
.map__place.band--map-not-yet .map__lines {
  stroke: var(--ink-3);
}

.mapkey .swatch--lines {
  flex: none;
  background: var(--almost-ready);
}

.swatch--lines path {
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.5;
}

.mapkey .swatch.band--map-no-site {
  box-shadow: none;
  border: 2px dashed var(--ink-3);
}

.map__tip {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  max-width: 18rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: #ffffff;
  box-shadow: 0 0.375rem 1.25rem rgba(19, 32, 29, 0.18), 0 0 0 1px var(--rule);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.map__tip[hidden] {
  display: none;
}

.map__tip-name {
  font-weight: 800;
}

.mapkey {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: 0.9375rem;
}

.mapkey li {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
}

.mapkey .swatch {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 0.25rem;
  box-shadow: inset 0 0 0 1px #9aa39f;
}

.mapkey__words {
  display: flex;
  flex: 1;
  flex-direction: column;
  line-height: 1.3;
}

.mapkey__words .quiet {
  font-size: 0.8125rem;
}

.mapkey__note {
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--ink-3);
}

.mapkey__own a {
  padding-block: 0.375rem;
}

.mapkey__own {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.375rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  font-weight: 700;
}

@media (min-width: 48rem) {
  .hero.hero--map {
    padding-block-end: 6.5rem;
  }

  .mapcard-wrap {
    display: block;
  }

  .mapcard {
    grid-template-columns: minmax(0, 1fr) 15.625rem;
    align-items: start;
  }
}

/* ---- finding things: the index's search box and a list's tools ---------------- */

.find {
  max-width: 40rem;
}

.find label,
.listtools label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 700;
}

.find__row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.find input,
.listtools input {
  appearance: none;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.875rem;
  border: 2px solid var(--ink-3);
  border-radius: 0.5rem;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.find input {
  min-height: 3rem;
}

.hero .find input {
  border-color: #ffffff;
}

.find .btn {
  min-height: 3rem;
}

.find__hint {
  margin: 0.375rem 0 0;
  font-size: 0.9375rem;
  color: var(--ink-3);
}

.hero .find__hint {
  color: var(--on-dark-2);
}

.listtools {
  display: grid;
  gap: 0.75rem;
  align-items: end;
}

.listtools select {
  width: 100%;
}

.listcount {
  font-weight: 700;
}

/* a row the filter leaves out */
.atable.gtable tr[hidden] {
  display: none;
}

@media (min-width: 48rem) {
  .find__row {
    flex-direction: row;
    gap: 0;
  }

  .find input {
    border-radius: 0.5rem 0 0 0.5rem;
  }

  .find .btn {
    flex: none;
    border-radius: 0 0.5rem 0.5rem 0;
  }

  .listtools {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
  }
}

/* ---- the owner's back office (/admin) ---------------------------------------- */

.choices {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.5rem;
}

.choices legend {
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--rule);
  border-radius: 0.75rem;
  background: #ffffff;
  cursor: pointer;
}

.choice--none {
  cursor: default;
  border-style: dashed;
  color: var(--ink-3);
}

.choice:has(input:checked) {
  border-color: var(--teal);
  background: var(--chip);
}

.choice input {
  flex: none;
  width: 2rem;
  height: 2rem;
  margin: 0;
  font-size: 1rem;
  accent-color: var(--teal);
}

.choice > span {
  display: flex;
  flex-direction: column;
}

/* the back office's trail back up (owner, 21 October): the public breadcrumbs, on the light page */
.admin-crumbs .crumbs ol {
  margin: 0;
}

.admin-crumbs .crumbs li + li::before {
  color: var(--ink-3);
}

.admin-crumbs .crumbs [aria-current="page"] {
  color: var(--ink);
}

.admin-bar {
  background: var(--notice);
  border-bottom: 1px solid var(--rule);
}

.admin-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  padding-block: 0.5rem;
}

.admin-bar p {
  margin: 0;
}

.admin-bar__name {
  font-weight: 800;
}

.admin-bar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
}

.admin-bar a {
  display: inline-block;
  padding-block: 0.5rem;
}

.admin-bar a[aria-current="page"] {
  font-weight: 800;
  color: var(--ink);
}

.admin-bar__who {
  font-size: 0.875rem;
  color: var(--ink-3);
  overflow-wrap: anywhere;
}

.admin h1 {
  margin: 0;
}

.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.tiles li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--rule);
  font-size: 1rem;
}

.tiles .mono {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

/* a table that becomes stacked cards on a phone; its roles keep it a table for screen readers */
.atable {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.atable thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.atable tr {
  display: block;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--rule);
}

.atable td {
  display: flex;
  gap: 0.75rem;
  padding-block: 0.125rem;
  overflow-wrap: anywhere;
}

.atable td::before {
  content: attr(data-label);
  flex: 0 0 6.5rem;
  font-weight: 700;
  color: var(--ink-3);
}

.atable a {
  display: inline-block;
  padding-block: 0.3125rem;
}

.chips--counts a {
  display: inline-block;
  padding: 0.3125rem 0;
  text-decoration: none;
}

.chips--counts a[aria-current="true"] {
  font-weight: 800;
}

.chips--counts li {
  padding: 0 0.75rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
}

/* a filter's part shown only for one choice, such as the Money report's dates for Custom dates */
.filters [hidden] {
  display: none;
}

/* the Money report's period: as wide as its longest choice needs, not the whole row when it's alone */
.msg-filters > .money-period {
  flex: 0 1 20rem;
}

/* its dates and Show belong to Custom dates, shown while it's chosen in the list, before any script
   runs, so nothing appears and vanishes as a page loads (owner, 1 November); the note's line is kept
   for the script to fill, so the page doesn't move when it does */
.money-filters [data-custom-only] {
  display: none;
}

.money-filters:has(option[value="custom"]:checked) [data-custom-only] {
  display: block;
}

.money-filters:has(option[value="custom"]:checked) .btn[data-custom-only] {
  display: inline-flex;
}

.money-filters:has(option[value="custom"]:checked) #m-period-hint {
  display: none;
}

#m-period-hint {
  min-height: 1lh;
}

/* a browser without :has() keeps them all in view */
@supports not selector(:has(*)) {
  .money-filters [data-custom-only] {
    display: revert;
  }
}

/* a note about the filters on a line of its own, under them: the paragraph's reading width would
   otherwise let it fit beside them */
.filters > p.filters__wide {
  flex: 0 0 100%;
  max-width: none;
}

.filters label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.check textarea {
  min-height: 2.75rem;
  padding: 0.375rem 0.75rem;
  border: 2px solid var(--ink-3);
  border-radius: 0.5rem;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.check textarea {
  width: 100%;
  resize: vertical;
}

.filters p {
  margin: 0;
}

/* ---- wider screens --------------------------------------------------------- */

@media (min-width: 48rem) {
  :root {
    --gutter: 2.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .brand__mark {
    width: 2.75rem;
    height: 2.75rem;
  }

  .brand__name {
    font-size: 1.375rem;
  }

  .brand__line {
    font-size: 0.875rem;
  }

  .site-head__inner {
    padding-block: 0.875rem;
  }

  .site-foot__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .notice__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }

  .hero {
    padding-block: 2.5rem 3rem;
  }

  .ring {
    width: 10rem;
    height: 10rem;
  }

  .ring__number {
    font-size: 3.25rem;
  }

  .check__row {
    flex-direction: row;
    gap: 0;
  }

  /* a field and its button joined in one row (the scan box); a button on its own line keeps its corners */
  .check__row input {
    border-radius: 0.5rem 0 0 0.5rem;
  }

  .check__row .btn {
    flex: none;
    border-radius: 0 0.5rem 0.5rem 0;
  }

  .card {
    padding: 2rem;
  }

  .lift {
    margin-top: -4.75rem;
  }

  .hero--overlap {
    padding-block-end: 6.5rem;
  }

  .sample {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .issue {
    grid-template-columns: 3ch minmax(0, 1fr) auto;
  }

  .issue__where {
    grid-column: 3;
    grid-row: 1;
    white-space: nowrap;
  }
}

@media (min-width: 48rem) {
  .tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tiles--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .invoice__parties {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choices--row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .atable thead {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  .atable tr {
    display: table-row;
    padding: 0;
  }

  .atable th,
  .atable td {
    display: table-cell;
    padding: 0.5rem 0.75rem 0.5rem 0;
    border-bottom: 1px solid var(--rule);
    text-align: left;
    vertical-align: top;
  }

  .atable td::before {
    content: none;
  }
}

@media (min-width: 48rem) {
  /* the two rates side by side, and the fillable add-on (once ordering is open) across the row below,
     its name and price beside what it does (owner, 21 October) */
  .price-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-card--addon {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: 2rem;
  }

  .batch-card {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 2rem;
  }

  .pdf-callouts {
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  }

  .hear {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .steps li {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps__n {
    grid-row: auto;
  }
}

@media (min-width: 48rem) {
  /* the states with counties and cities in the index, then the many with their state government only,
     in columns (decision 123) */
  .waves {
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  }

  .waves .rows--columns {
    display: block;
    columns: 3 11rem;
    column-gap: 1.5rem;
  }

  .waves .rows--columns li {
    break-inside: avoid;
  }

  .atable.gtable tr {
    display: table-row;
  }

  .ticks--two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hear-wrap {
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 0 0 1px var(--rule);
    overflow: hidden;
  }

  .hear thead {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  .hear tbody {
    display: table-row-group;
  }

  .hear tr {
    display: table-row;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .hear th,
  .hear td {
    display: table-cell;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--rule);
    vertical-align: top;
  }

  .hear thead th {
    border-top: 0;
    padding-block: 0.875rem;
    font-weight: 700;
    background: var(--notice);
  }

  .hear th[scope="row"] {
    width: 28%;
  }

  .hear td::before {
    content: none;
  }

  .atable.gtable .g-status:empty {
    display: table-cell;
  }

  .atable.gtable .g-type,
  .atable.gtable .g-deadline {
    font-size: 1rem;
    color: var(--ink);
  }
}

@media (min-width: 64rem) {
  .summary__part--wide {
    grid-column: span 2;
  }

  .pdf-top,
  .pdf-two {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 3rem;
  }

  .summary {
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 4fr);
    gap: 2.25rem;
  }

  .summary__part + .summary__part {
    padding-left: 1.75rem;
    border-left: 1px solid var(--notice);
  }

  .live-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 4fr);
    align-items: start;
  }

  .report-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 2.5rem;
    align-items: start;
  }

  .report-side {
    position: sticky;
    top: 1.5rem;
  }

  .report-grid--teaser > * {
    grid-column: 1;
  }

  .report-grid--teaser > .unlock {
    grid-column: 2;
    grid-row: 1 / span 5;
    align-self: start;
    position: sticky;
    top: 1.5rem;
  }

  .unlock-bar {
    display: none;
  }

  .shots {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* the full menu on one line from 64rem; below that it folds behind the Menu button, since six
   items don't fit a tablet's width without wrapping */
@media (min-width: 64rem) {
  .site-head__inner {
    flex-wrap: nowrap;
  }

  .nav-toggle,
  .nav-toggle[hidden] {
    display: none;
  }

  .site-nav,
  .js .site-nav[data-open="false"] {
    display: block;
    flex-basis: auto;
  }

  .site-nav ul {
    flex-direction: row;
    gap: 1rem;
  }

  .site-nav a {
    padding: 0.625rem 0.5rem; /* every link a comfortable target, "FAQ" included */
  }
}

@media (prefers-reduced-motion: reduce) {
  .example__pill--live .example__dot {
    animation: none;
  }

  .ring__sweep {
    display: none;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
