/* ============================================================
   Rogue BJJ Canberra — site stylesheet
   Appearance only. Built to DESIGN-SPEC.md, 9 September 2026.

   Palette tokens live in css/brand.css and are not redefined
   here; the neutrals below are the ones the spec adds.

   Two rules run through everything and are not negotiable:
     · black on mustard for buttons (6.94:1) — never white
     · mustard as text only at large display sizes
   tools/check-site.mjs enforces both against this file.
   ============================================================ */

:root {
  --ground-black: #000000;
  --ground-white: #ffffff;
  --ground-warm:  #fdf8f3;
  --ground-quiet: #f7f7f7;
  --panel:        #161616;
  --ink-dark:     #161616;
  --hair-light:   #f0f0f0;
  --hair-dark:    rgba(255, 255, 255, .12);
  --body-on-dark: rgba(255, 255, 255, .82);
  --mute-on-dark: rgba(255, 255, 255, .60);
  --accent-wash:  rgba(200, 134, 65, .12);
  --accent-edge:  rgba(200, 134, 65, .35);

  /* Oswald sets every heading. It must never set a paragraph. */
  --font-display: "Oswald", "Work Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Black body: the only place it shows is the strip above a hero,
   which sits under the black header and reads as part of it. */
body {
  margin: 0;
  background: var(--ground-black);
  color: var(--ink-dark);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

/* ---- Focus. Never removed, and always visible on its ground. ---- */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--ink-dark);
  outline-offset: 2px;
  border-radius: 3px;
}
.band--dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.table-scroll :focus-visible {
  outline-color: var(--rogue-cream);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--rogue-mustard); color: #000;
  padding: .8rem 1.3rem; font-family: var(--font-display);
  font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
}
.skip-link:focus { left: 0; }

/* ============================================================
   TYPE
   Two heading levels: h1/h2 uppercase display, h3/h4 sentence
   case. An entire page in caps is the failure mode.
   ============================================================ */

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: normal;
  line-height: 1.08;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.8vw, 2.3rem); }

h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: none;
  line-height: 1.25;
  margin: 0 0 .5rem;
}
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1rem; max-width: 68ch; }
ul, ol { max-width: 68ch; }
.lede { font-size: 1.14rem; }

a { color: var(--rogue-earth); text-underline-offset: 3px; }
a:hover { color: var(--ink-dark); }

/* Eyebrow: small uppercase display type with a mustard rule.
   The RULE is mustard; the TEXT is not — mustard text this small
   is 3.02:1 on a light ground and fails. */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .82rem;
  line-height: 1.3;
  color: var(--rogue-earth);
  display: flex; align-items: center; gap: .6rem;
  margin: 0 0 .75rem;
  max-width: none;
}
.eyebrow::before {
  content: ""; flex: none;
  width: 26px; height: 3px;
  background: var(--rogue-mustard);
}

/* A sentence-case heading with a mustard bar, used to break a long
   list into groups. :has() picks out exactly the group headings. */
h2:has(+ details.qa) {
  text-transform: none;
  font-size: 1.4rem;
  border-left: 4px solid var(--rogue-mustard);
  padding-left: .9rem;
  margin: 2.5rem 0 1rem;
}
/* ============================================================
   BANDS — full-bleed, alternating ground. The rhythm is the point.
   ============================================================ */

.band { padding-block: clamp(3rem, 7vw, 5.5rem); }
.band--light { background: var(--ground-white); color: var(--ink-dark); }
.band--warm  { background: var(--ground-warm);  color: var(--ink-dark); }
.band--dark  { background: var(--ground-black); color: var(--body-on-dark); }

.band--dark h1, .band--dark h2, .band--dark h3, .band--dark h4 { color: #fff; }
.band--dark .eyebrow { color: var(--rogue-cream); }
.band--dark .lede { color: var(--body-on-dark); }
.band--dark a { color: var(--rogue-cream); }
.band--dark a:hover { color: #fff; }

.wrap { width: 100%; max-width: 900px; margin-inline: auto; padding-inline: 1.25rem; }
.wrap-narrow { max-width: 760px; }

.crumb {
  font-size: .85rem; color: var(--mute-on-dark);
  padding-top: 1.5rem; margin: 0;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em;
}
.crumb a { color: rgba(255, 255, 255, .85); }

/* ---- Hero ----
   The headline is set as its own lines rather than left to wrap, so
   it breaks at the sentence boundaries at every width instead of
   splitting a phrase. The middle line is mustard: at this size it is
   large display type on black, which is the one place the spec allows
   mustard as text. */
.hero h1 .hl { display: block; }
.hero h1 .hl--accent { color: var(--rogue-mustard); }

.hero__inner { display: grid; gap: 2rem; }
.hero__media img { width: 100%; }
@media (min-width: 56rem) {
  /* Two columns only when there is actually a picture to put in the second
     one. Without :has() a hero whose image is removed leaves its text
     squeezed into the left 1.05fr with an empty column beside it. */
  .hero__inner:has(.hero__media) { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 3rem; }
  /* Text-only hero: hold the measure. A lede running the full 900px is a
     long line to read, and the headline carries the width on its own. */
  .hero__inner:not(:has(.hero__media)) > div { max-width: 46rem; }
}

/* ---- Photographs: objects, with air around them ---- */
.hero__media img,
.media-figure img {
  border-radius: 14px;
  border: 1px solid var(--accent-edge);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .35);
  max-height: 32rem;
  object-fit: cover;
  object-position: center top;
}
.media-figure { margin: 0 0 1.75rem; }
.media-figure img { max-height: 34rem; }
.media-figure figcaption { font-size: .88rem; color: var(--rogue-earth); margin-top: .7rem; }

/* Fine print: the "this is a summary, the signed document governs"
   line at the foot of a legal page. Same treatment as a figure
   caption — smaller and earth-toned, never mustard at this size. */
.fine-print { font-size: .88rem; color: var(--rogue-earth); margin-top: 2rem; }
.band--dark .fine-print { color: var(--mute-on-dark); }
.band--dark .media-figure figcaption { color: var(--mute-on-dark); }

/* ---- Gear gallery: the merch photographs, side by side.
   Portraits and one landscape in the same row, so a fixed
   aspect ratio keeps the row honest rather than ragged. ---- */
.gear-gallery { display: grid; gap: 1.25rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .gear-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 58rem) { .gear-gallery--3 { grid-template-columns: repeat(3, 1fr); } }
.gear-gallery figure { margin: 0; }
.gear-gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  border: 1px solid var(--accent-edge);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .35);
}
.gear-gallery figcaption { font-size: .88rem; color: var(--rogue-earth); margin-top: .7rem; }
.band--dark .gear-gallery figcaption { color: var(--mute-on-dark); }

/* ============================================================
   BUTTONS — mustard ground, BLACK text. 6.94:1.
   White on mustard is 3.02:1 and is never used.
   ============================================================ */

.btn {
  display: inline-block; max-width: 100%;
  font-family: var(--font-display);
  font-weight: 600; font-size: 1rem;
  text-transform: uppercase; letter-spacing: 0.96px;
  line-height: 1.2; text-align: center; text-decoration: none;
  background: var(--rogue-mustard);
  color: #000000;
  border: 0; border-radius: 6px;
  padding: 13.6px 35.2px;
  box-shadow: 0 4px 14px rgba(200, 134, 65, .35);
  cursor: pointer;
}
.btn:hover, .btn:focus-visible {
  background: var(--rogue-caramel);
  color: #000000;
  box-shadow: 0 6px 20px rgba(200, 134, 65, .45);
}

/* A button is a button on every ground.
   These exist because `.band--dark a` (0,1,1) and `.band--dark a:hover`
   (0,2,1) outrank plain `.btn` (0,1,0) and `.btn:hover` (0,2,0), so an
   anchor styled as a button inside a dark band was taking the band's
   link colour: cream on mustard, 2.55:1, and white on caramel on hover,
   2.07:1. Both were live on all fifteen pages. Do not delete these
   without checking tools/check-contrast.mjs still passes. */
.band--dark a.btn,
.band--light a.btn,
.band--warm a.btn,
.site-header a.btn,
.site-footer a.btn { color: #000000; }
.band--dark a.btn:hover,
.band--dark a.btn:focus-visible { color: #000000; }
.btn--ghost {
  background: transparent; box-shadow: none;
  border: 2px solid var(--rogue-mustard);
  color: var(--ink-dark);
  padding: 11.6px 33.2px;
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: var(--rogue-mustard); color: #000000; box-shadow: none;
}
.band--dark .btn--ghost,
.band--dark a.btn--ghost { border-color: #ffffff; color: #ffffff; }
.band--dark .btn--ghost:hover, .band--dark .btn--ghost:focus-visible,
.band--dark a.btn--ghost:hover, .band--dark a.btn--ghost:focus-visible {
  background: #ffffff; color: var(--ink-dark);
}
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; max-width: none; }
@media (max-width: 30rem) {
  .btn { padding: 13.6px 22px; font-size: .95rem; }
  .btn--ghost { padding: 11.6px 20px; }
}

/* ============================================================
   CARDS AND PANELS
   ============================================================ */

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
/* Must come after the 40rem rule above, or it never wins. */
@media (min-width: 52rem) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* Card on light: white, soft shadow, 4px mustard bar across the top. */
.card {
  position: relative;
  background: var(--ground-white);
  border: 1px solid var(--hair-light);
  border-radius: 12px;
  padding: 1.6rem 1.35rem 1.35rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0;
  height: 4px; background: var(--rogue-mustard);
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------
   Member quotes. Real Google reviews, quoted verbatim, first name
   only, with the section heading linking to the public profile so
   anyone can check them against the source.

   NOTE: no Review or AggregateRating structured data anywhere on
   this site. Google's policy treats self-serving review markup on a
   business's own pages as ineligible — it produces no stars and can
   draw a manual action. The stars people see come from the Business
   Profile, from Google's own data, not from us.
   ------------------------------------------------------------------ */
.quotes { display: grid; gap: 1.25rem; margin-top: 1.75rem; }
@media (min-width: 46rem) { .quotes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .quotes--3 { grid-template-columns: repeat(3, 1fr); } }

.quote { margin: 0; display: flex; flex-direction: column; }
.quote blockquote {
  margin: 0 0 .9rem; padding: 0 0 0 1.1rem;
  border-left: 3px solid var(--rogue-mustard);
  font-size: 1.02rem; line-height: 1.6;
}
.quote blockquote p { margin: 0 0 .7rem; max-width: none; }
.quote blockquote p:last-child { margin-bottom: 0; }
.quote figcaption { font-size: .88rem; color: var(--rogue-earth); padding-left: 1.1rem; margin-top: auto; }
.band--dark .quote figcaption { color: var(--mute-on-dark); }
.quote figcaption strong { font-weight: 600; }

.quotes-source { font-size: .88rem; color: var(--rogue-earth); margin-top: 1.5rem; }
.band--dark .quotes-source { color: var(--mute-on-dark); }

/* Panel on dark: #161616 on black, larger radius, mustard dot. */
.band--dark .card {
  background: var(--panel);
  border-color: var(--hair-dark);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  color: var(--body-on-dark);
  box-shadow: none;
}
.band--dark .card::before { display: none; }
.band--dark .card h3 {
  display: flex; align-items: baseline; gap: .55rem;
}
.band--dark .card h3::before {
  content: ""; flex: none;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rogue-mustard);
}

.card__num {
  font-family: var(--font-display); font-weight: 700;
  color: var(--rogue-mustard);
  font-size: 1.6rem; line-height: 1;
  display: block; margin-bottom: .5rem;
}
.card--link { display: block; text-decoration: none; color: inherit; }
.card--link:hover { border-color: var(--rogue-mustard); }
.card--link h3 { color: var(--ink-dark); }
.band--dark .card--link h3 { color: #fff; }
.card__more {
  font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; font-size: .82rem;
  color: var(--rogue-earth);
}
.band--dark .card__more { color: var(--rogue-cream); }

/* ============================================================
   STEP CARDS — an ordered process, on a black band.
   #161616 panels: a small muted label, a mustard arrow in the top
   right, a sentence-case title, and the body. The last card in the
   sequence has no arrow, because nothing follows it.
   ============================================================ */

.grid--steps { display: grid; gap: 1.25rem; }
@media (min-width: 46rem) { .grid--steps { grid-template-columns: repeat(2, 1fr); } }

.grid--steps .card {
  position: relative;
  border-radius: 12px;
  padding: 1.6rem 3.25rem 1.5rem 1.5rem;
}
/* The corner arrow. 24px clears the large-text threshold, which is
   the only size at which mustard may be used as a glyph. */
.grid--steps .card::after {
  content: "\2192";
  position: absolute; top: 1.35rem; right: 1.4rem;
  color: var(--rogue-mustard);
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.5rem; line-height: 1;
}
.grid--steps .card:last-child::after { content: none; }
.grid--steps .card h3::before { display: none; }
.grid--steps .card h3 { display: block; }
.grid--steps .card__num {
  font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .18em;
  font-size: .78rem; line-height: 1;
  color: var(--mute-on-dark);
  margin-bottom: .8rem;
}

/* ============================================================
   NUMBERED CARDS — an unordered set of ideas, on a light band.
   A filled mustard disc with the number in #161616 (6.6:1), never
   white (2.0:1). Then a sentence-case title and the body.
   ============================================================ */

.grid--numbered { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .grid--numbered { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 52rem) { .grid--numbered { grid-template-columns: repeat(3, 1fr); } }

.grid--numbered .card { padding: 1.5rem 1.35rem 1.35rem; }
.grid--numbered .card::before { display: none; }
.grid--numbered .card__num {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--rogue-mustard);
  color: var(--ink-dark);
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; line-height: 1; letter-spacing: 0;
  margin-bottom: 1rem;
}

/* ---- Callout ---- */
.callout {
  border-left: 4px solid var(--rogue-mustard);
  background: var(--ground-white);
  border-radius: 0 10px 10px 0;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}
.band--warm .callout { background: var(--ground-white); }
.band--dark .callout {
  background: var(--panel); color: var(--body-on-dark);
  border-radius: 0 16px 16px 0; box-shadow: none;
}
.callout p:last-child { margin-bottom: 0; }

/* ============================================================
   THE CLASS-INFO PANEL
   A dark panel holding session rows: a mustard bar down the left
   edge of each row, the day in mustard display type beside it.
   No instructor is named — who teaches what is still open.
   ============================================================ */

.table-scroll {
  /* position:relative is load-bearing, not decoration. The free-first-week
     column holds .visually-hidden spans, which are position:absolute. With no
     positioned ancestor their containing block is the page itself, so they
     escape this scroll container and stretch the DOCUMENT instead — /classes
     measured 449px wide in a 375px viewport. The table was never the problem;
     it has always been inside this container. Verified on the deployment. */
  position: relative;
  background: var(--panel);
  border: 1px solid var(--hair-dark);
  border-radius: 16px;
  padding: .25rem 1.25rem 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table.timetable {
  border-collapse: collapse; width: 100%; min-width: 30rem;
  background: transparent; color: var(--body-on-dark);
}
table.timetable caption {
  text-align: left; color: var(--mute-on-dark);
  padding: 1.1rem 0 .9rem; font-size: .9rem;
}
table.timetable th, table.timetable td {
  text-align: left; padding: .85rem .8rem;
  border-bottom: 1px solid var(--hair-dark);
}
table.timetable tr:last-child th, table.timetable tr:last-child td { border-bottom: 0; }
table.timetable thead th {
  background: transparent; color: var(--rogue-cream);
  font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; font-size: .76rem;
  padding-block: .6rem;
}
/* The session row: mustard bar, then the day in mustard display type.
   19.2px at weight 700 is large text, so mustard clears AA here. */
table.timetable tbody th[scope="row"] {
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  font-size: 1.2rem; line-height: 1.1;
  color: var(--rogue-mustard);
  white-space: nowrap;
  border-left: 4px solid var(--rogue-mustard);
  padding-left: 1rem;
}
table.timetable td a { color: var(--rogue-cream); }
table.timetable td a:hover { color: #fff; }

.free-dot {
  display: inline-block; width: .7rem; height: .7rem; border-radius: 50%;
  background: var(--rogue-mustard); vertical-align: middle;
}
.table-legend {
  font-size: .95rem; max-width: 62ch;
  color: var(--rogue-earth);
}
.band--dark .table-legend { color: var(--body-on-dark); }
.table-legend .free-dot { margin-right: .45rem; border: 1px solid var(--rogue-earth); }
.band--dark .table-legend .free-dot { border-color: var(--hair-dark); }

/* ============================================================
   DETAIL ROWS — label left, value right, hairline between.
   Used by the price list and the contact details.
   ============================================================ */

.price-list, .detail-list { list-style: none; margin: 0 0 1.25rem; padding: 0; max-width: 40rem; }

.price-list li {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: baseline; gap: .75rem;
  padding: .95rem 0; border-bottom: 1px solid var(--hair-light);
}
.price-list li > span:first-child {
  font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em; font-size: .86rem;
  color: var(--rogue-earth);
}
.price-list .price {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.2rem; color: var(--ink-dark); white-space: nowrap;
}

.detail-list li {
  display: grid; grid-template-columns: minmax(6rem, 8rem) 1fr; gap: .9rem;
  padding: .95rem 0; border-bottom: 1px solid var(--hair-light);
}
.detail-list strong {
  font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em; font-size: .8rem;
  color: var(--rogue-earth); line-height: 1.6;
}
.band--dark .price-list li, .band--dark .detail-list li { border-bottom-color: var(--hair-dark); }
.band--dark .price-list li > span:first-child,
.band--dark .detail-list strong { color: var(--rogue-cream); }
.band--dark .price-list .price { color: #fff; }

/* ============================================================
   Q&A ROWS — native details/summary. No JavaScript, keyboard
   operable, and the marker is styled rather than replaced.
   ============================================================ */

details.qa {
  background: var(--ground-white);
  border: 1px solid var(--hair-light);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
  margin-bottom: 4px;
  padding: 0 1.15rem;
}
details.qa summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1.25rem;
  padding: 1.05rem 0;
  font-family: var(--font-body); font-weight: 600;
  color: var(--ink-dark);
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after {
  content: "+";
  color: var(--rogue-mustard);
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.6rem; line-height: 1; flex: none;
}
details.qa[open] summary::after { content: "\2212"; }
details.qa .qa__body { padding: 0 0 1rem; }
details.qa .qa__body p:last-child { margin-bottom: 0; }
.band--dark details.qa {
  background: var(--panel); border-color: var(--hair-dark);
  box-shadow: none; color: var(--body-on-dark);
}
.band--dark details.qa summary { color: #fff; }

/* ============================================================
   FORMS
   ============================================================ */

.form {
  background: var(--ground-white);
  border: 1px solid var(--hair-light);
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .06);
  padding: 1.6rem 1.5rem;
  max-width: 34rem;
}
.band--dark .form { background: var(--panel); border-color: var(--hair-dark); box-shadow: none; }
.form .field { margin-bottom: 1.15rem; }
.form label {
  display: block; margin-bottom: .4rem;
  font-family: var(--font-body); font-weight: 600; font-size: .88rem;
  color: var(--ink-dark);
}
.band--dark .form label { color: #fff; }
/* The asterisk must never wrap onto its own line. */
.form .required {
  white-space: nowrap; font-weight: 400; color: var(--rogue-earth);
}
.band--dark .form .required { color: var(--rogue-caramel); }
.form input, .form textarea {
  width: 100%; font: inherit; font-size: 1rem;
  padding: .8rem .85rem;
  border: 1px solid var(--rogue-earth);
  border-radius: 8px;
  background: var(--ground-white); color: var(--ink-dark);
}
.form input::placeholder, .form textarea::placeholder { color: var(--rogue-earth); opacity: .7; }
.form textarea { min-height: 8.5rem; resize: vertical; }
.form .btn { width: 100%; }
.form .hint { font-size: .86rem; color: var(--rogue-earth); margin: .35rem 0 0; }
.form-note { font-size: .9rem; color: var(--rogue-earth); }
.band--dark .form .hint, .band--dark .form-note { color: var(--mute-on-dark); }

/* ============================================================
   HEADER — black band, white logo, one line or a menu button.
   The reference wraps its nav onto two ragged rows. Ours cannot:
   the list never wraps, and below 75rem it collapses.
   ============================================================ */

.site-header {
  background: var(--ground-black);
  border-bottom: 1px solid var(--hair-dark);
  box-shadow: inset 0 -3px 0 var(--rogue-mustard);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap { max-width: 1200px; }
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px;
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand__name {
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  font-size: 1.1rem; line-height: 1; color: #ffffff;
}
.brand__name span {
  display: block; margin-top: .25rem;
  font-family: var(--font-body); font-weight: 400; text-transform: uppercase;
  font-size: .64rem; letter-spacing: .18em; color: var(--mute-on-dark);
}

.nav-toggle {
  display: inline-flex; align-items: center; gap: .55rem;
  background: transparent; border: 2px solid #ffffff; color: #ffffff;
  font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; font-size: .85rem;
  border-radius: 6px; padding: .5rem .8rem; cursor: pointer;
}
.nav-toggle[hidden] { display: none !important; }
.nav-toggle:hover { background: #ffffff; color: var(--ink-dark); }
.nav-toggle__bars { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

/* Visible by default so the menu works with JavaScript off.
   site.js adds data-collapsible, which is what hides it. */
.site-nav { display: block; padding-bottom: 1rem; }
.site-nav[data-collapsible]:not(.is-open) { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; max-width: none; }
.site-nav li { border-top: 1px solid var(--hair-dark); }
.site-nav a {
  display: block; padding: .85rem .25rem; text-decoration: none;
  font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em; font-size: .95rem;
  color: rgba(255, 255, 255, .88); white-space: nowrap;
}
.site-nav a:hover { color: #ffffff; }
.site-nav a[aria-current="page"] { color: #ffffff; box-shadow: inset 4px 0 0 var(--rogue-mustard); padding-left: .9rem; }
.site-nav .nav-cta { border-top: 1px solid var(--hair-dark); padding: .85rem .25rem; }
.site-nav .nav-cta a {
  display: inline-block; background: var(--rogue-mustard); color: #000000;
  border-radius: 6px; padding: .6rem 1.2rem;
}
.site-nav .nav-cta a:hover { background: var(--rogue-caramel); color: #000000; }

@media (min-width: 75rem) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav[data-collapsible]:not(.is-open) { display: block; padding-bottom: 0; }
  .site-nav ul { display: flex; flex-wrap: nowrap; align-items: center; gap: 0; }
  .site-nav li { border-top: 0; }
  .site-nav a { padding: .5rem .55rem; font-size: .8rem; letter-spacing: .05em; }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--rogue-mustard); padding-left: .55rem; }
  .site-nav .nav-cta { border-top: 0; padding: 0 0 0 .6rem; }
  .site-nav .nav-cta a { padding: .55rem 1rem; font-size: .8rem; }
}

/* ============================================================
   FOOTER — dark, the logo, a generated year, the link rows.
   ============================================================ */

.site-footer {
  background: var(--ground-black); color: var(--body-on-dark);
  border-top: 3px solid var(--rogue-mustard);
  padding-block: 3rem 1.75rem;
}
.site-footer .wrap { max-width: 1200px; }
.site-footer__logo { width: 56px; height: 56px; margin-bottom: 1rem; }
.site-footer h2 {
  font-size: .82rem; font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .15em;
  color: var(--rogue-cream); margin-bottom: 1rem;
}
.site-footer a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.site-footer a:hover { color: #ffffff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer__cols { display: grid; gap: 2rem; }
.site-footer__blurb { max-width: 34ch; color: var(--body-on-dark); }
.site-footer__legal {
  margin-top: 2.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--hair-dark);
  font-size: .86rem; color: var(--mute-on-dark);
}
.site-footer__legal p { margin: 0 0 .35rem; max-width: none; }
@media (min-width: 46rem) { .site-footer__cols { grid-template-columns: 1.4fr 1fr 1fr; } }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Reference tables on /chokes-and-safety. A light-band twin of table.timetable,
   deliberately given its own class: the site checker validates .timetable rows
   against BUILD-FACTS, and these are not a timetable. Colours are existing
   tokens only, so contrast is already validated. */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5rem 0; }
table.datatable {
  border-collapse: collapse; width: 100%; min-width: 34rem;
  background: transparent; color: var(--ink);
}
table.datatable th, table.datatable td {
  text-align: left; vertical-align: top; padding: .85rem .8rem;
  border-bottom: 1px solid var(--rogue-caramel);
}
table.datatable tr:last-child th, table.datatable tr:last-child td { border-bottom: 0; }
table.datatable thead th {
  font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; font-size: .76rem;
  color: var(--ink-muted);
}
