/* Active Authority site.
   Type: Overpass, an open cut of the US highway sign alphabet.
   Colour: guide-sign green, lane white, asphalt, caution amber, stop red. */

@font-face {
  font-family: "Overpass";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/overpass-latin.woff2") format("woff2");
}

:root {
  --sign: #00593f;
  --sign-deep: #00432f;
  --lane: #ffffff;
  --asphalt: #22272a;
  --gravel: #5b6367;
  --shoulder: #edf0ee;
  --line: #d3d9d6;
  --caution: #f6b800;
  --caution-ink: #3d2e00;
  --stop: #a8231b;
  --measure: 62ch;
  --edge: clamp(20px, 5vw, 64px);
  --wide: 1120px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--lane);
  color: var(--asphalt);
  font: 400 1.0625rem/1.6 "Overpass", "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--sign); text-underline-offset: 0.18em; }
a:hover { color: var(--sign-deep); }
:focus-visible { outline: 3px solid var(--caution); outline-offset: 3px; border-radius: 4px; }

h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; line-height: 1.3; font-weight: 750; }

/* ---------- masthead ---------- */

.masthead {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: calc(var(--wide) + 2 * var(--edge)); margin: 0 auto; padding: 18px var(--edge);
}
.wordmark { font-weight: 850; font-size: 1.1875rem; letter-spacing: -0.01em; color: var(--asphalt); text-decoration: none; }
.masthead nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); font-size: 0.9375rem; }
.masthead nav a { color: var(--asphalt); text-decoration: none; font-weight: 600; }
.masthead nav a:hover { text-decoration: underline; }
.masthead .nav-action { border: 2px solid var(--asphalt); border-radius: 8px; padding: 6px 12px 4px; }

/* ---------- the sign ---------- */

.sign { padding: 0 var(--edge); }
.sign-face {
  max-width: var(--wide); margin: 0 auto;
  background: var(--sign); color: var(--lane);
  border-radius: 22px;
  /* A guide sign's white border sits just inside its edge. */
  box-shadow: inset 0 0 0 7px var(--sign), inset 0 0 0 11px var(--lane);
  padding: clamp(40px, 7vw, 88px) clamp(28px, 6vw, 80px) clamp(96px, 12vw, 150px);
}
.sign h1 {
  font-size: clamp(2.125rem, 1.1rem + 4.6vw, 4.5rem);
  line-height: 1.02; font-weight: 800; letter-spacing: -0.015em;
  max-width: 17ch; text-wrap: balance;
}
.sign-sub { margin-top: 24px; max-width: 58ch; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); line-height: 1.5; }
.sign-note { margin-top: 16px; font-size: 0.9375rem; opacity: 0.86; max-width: 58ch; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 32px; }
.button {
  display: inline-block; text-decoration: none; font-weight: 750; font-size: 1.0625rem; line-height: 1.2;
  padding: 15px 22px 12px; border-radius: 10px; border: 2px solid transparent;
}
.button-light { background: var(--lane); color: var(--sign-deep); }
.button-light:hover { background: var(--shoulder); color: var(--sign-deep); }
.button-outline { border-color: var(--lane); color: var(--lane); }
.button-outline:hover { background: var(--sign-deep); color: var(--lane); }
.button-solid { background: var(--sign); color: var(--lane); }
.button-solid:hover { background: var(--sign-deep); color: var(--lane); }
.text-link { font-weight: 650; }

/* ---------- the board ---------- */

.board-wrap { padding: 0 var(--edge); margin-top: calc(-1 * clamp(64px, 8vw, 104px)); }
.board {
  max-width: calc(var(--wide) - clamp(0px, 8vw, 128px)); margin: 0 auto;
  background: var(--lane); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px -22px rgba(0, 40, 28, 0.45);
  overflow: hidden;
}
.board-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; padding: 20px 24px 14px; }
.board-head h2 { font-size: 1.1875rem; letter-spacing: 0; }
.board-head p { color: var(--gravel); font-size: 0.875rem; }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.4; }
thead th { text-align: left; font-weight: 650; font-size: 0.8125rem; color: var(--gravel); padding: 8px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--shoulder); }
tbody th, tbody td { text-align: left; vertical-align: top; padding: 14px 24px 12px; border-bottom: 1px solid var(--line); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 700; white-space: nowrap; }
tbody th span { display: block; font-weight: 400; color: var(--gravel); font-size: 0.8125rem; }
tbody td:last-child { color: var(--gravel); }
.quiet th, .quiet td { color: var(--gravel); font-weight: 500; }

.plate { display: inline-block; white-space: nowrap; font-weight: 750; font-size: 0.8125rem; line-height: 1; padding: 7px 9px 4px; border-radius: 5px; }
.plate-go { background: var(--sign); color: var(--lane); }
.plate-warn { background: var(--caution); color: var(--caution-ink); }
.plate-stop { background: var(--stop); color: var(--lane); }

/* ---------- sections ---------- */

.band, .plain, .closing {
  padding-block: clamp(56px, 8vw, 104px);
  /* Side padding grows on wide screens so content keeps one left edge. */
  padding-inline: max(var(--edge), calc((100% - var(--wide)) / 2));
}
.band { background: var(--shoulder); margin-top: clamp(56px, 8vw, 104px); }
.plain + .plain { padding-top: 0; }

.prose p { max-width: var(--measure); margin-top: 16px; }
.prose h2 { max-width: 22ch; text-wrap: balance; }

.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 44px; border-top: 3px solid var(--asphalt); }
.figures div { padding: 18px 20px 0 0; }
.figures dt { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.625rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.figures dd { margin-top: 6px; color: var(--gravel); font-size: 0.9375rem; line-height: 1.4; max-width: 24ch; }
.source { margin-top: 28px; color: var(--gravel); font-size: 0.875rem; }

.defs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(32px, 6vw, 88px); margin-top: 32px; }
.defs p { margin-top: 6px; max-width: 46ch; color: var(--gravel); }
.after-defs { margin-top: 36px; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 56px); margin-top: 32px; }
.steps li { counter-increment: step; border-top: 3px solid var(--sign); padding-top: 14px; }
.steps li::before { content: counter(step); display: block; font-weight: 800; font-size: 1.5rem; line-height: 1; color: var(--sign); margin-bottom: 10px; }
.steps p { margin-top: 6px; color: var(--gravel); }

.band-quiet { margin-top: 0; }
.limits { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px clamp(32px, 6vw, 88px); }
.limits li { max-width: 50ch; padding-left: 18px; border-left: 3px solid var(--line); }
.limits strong { display: block; }

.closing p { max-width: var(--measure); margin-top: 14px; }

.footer {
  border-top: 1px solid var(--line); padding: 28px var(--edge) 44px; color: var(--gravel); font-size: 0.875rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px;
  max-width: calc(var(--wide) + 2 * var(--edge)); margin: 0 auto;
}
.footer a { color: var(--gravel); margin-right: 18px; }
.footer p:last-child a:last-child { margin-right: 0; }

/* ---------- privacy page ---------- */

.page { padding: clamp(32px, 6vw, 72px) var(--edge) clamp(56px, 8vw, 104px); }
.page { padding-inline: max(var(--edge), calc((100% - var(--wide)) / 2)); }
.page > * { max-width: var(--measure); }
.page h1 { font-size: clamp(1.875rem, 1.3rem + 2.4vw, 2.75rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.01em; }
.page h2 { font-size: 1.25rem; margin-top: 36px; letter-spacing: 0; }
.page p { margin-top: 12px; }

/* ---------- small screens ---------- */

@media (max-width: 860px) {
  .figures { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .steps { grid-template-columns: 1fr; }
  .defs, .limits { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  /* The board becomes a stack: one carrier per block. */
  table { min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody tr { display: block; padding: 14px 0 12px; border-bottom: 1px solid var(--line); }
  tbody tr:last-child { border-bottom: 0; }
  tbody th, tbody td { display: block; border: 0; padding-top: 0; padding-bottom: 6px; white-space: normal; }
  tbody td:empty { display: none; }
  tbody td:last-child::before { content: "Fix: "; font-weight: 650; }
}
@media (max-width: 520px) {
  .masthead nav a:not(.nav-action) { display: none; }
  .sign-face { border-radius: 16px; }
  .button { width: 100%; text-align: center; }
  .board-head, thead th, tbody th, tbody td { padding-left: 16px; padding-right: 16px; }
}

@media print {
  .sign-face { box-shadow: none; border: 2px solid var(--asphalt); color: var(--asphalt); background: none; }
}
