/* Night Race: Saturday night under the lights. Track Black page, Electric Blue leads (rules, active states, section
   markers, Facebook), Racing Purple is only ever the Call / contact action, Speed Yellow appears exactly twice: the one
   word in the hero and the win counts. Roboto Condensed throughout: Bold Italic caps for headlines, Bold for UI,
   Regular 16–18px for body. The supplied marks sit transparent on the dark page; their own outline carries them.
   Tokens first; --kit-* feed sitekit's call bar and announcement, --nav-* the phone menu. Everything stacks below
   760px; tables become stacked rows; nothing scrolls sideways. */
:root {
  --bg: #10121A; --bg-2: #141722; --panel: #181C28; --panel-2: #1E2331; --line: #272C3A; --line-2: #3A4152;
  --fg: #ECEEF3; --soft: #D3D7E0; --muted: #AEB4C2; --dim: #8C93A3;
  --blue: #078BEE; --blue-2: #45ADFF; --blue-ink: #0A5FA6;
  --purple: #990C9C; --purple-2: #B318B8; --violet: #5E0B76; --yellow: #E7EF1A; --grey: #535864;
  --display: "Roboto Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --kit-accent: var(--purple); --kit-accent-fg: var(--on-accent); --kit-font: var(--body);
  --nav-bg: var(--bg); --nav-fg: var(--fg); --nav-accent: var(--blue-2); --nav-font: var(--display);
  --lb-accent: var(--blue-2);
  --wrap: 1160px;
  --slashes: url("/img/brand/guide/slashes-dark.svg");
  /* theming: --wash is the page color as an rgb triplet for the photo and slash-field overlays; --strong is the
     brightest text; --on-accent is text on purple/blue; --shadow is the drop-shadow strength under the marks */
  --wash: 16, 18, 26; --strong: #fff; --on-accent: #fff; --shadow: var(--shadow); --row-alt: rgba(255,255,255,.015);
  color-scheme: dark;
}
/* Light mode: the same page in daylight. Paper instead of Track Black, ink for text, the light slash field; the blue
   and purple darken a step so they still carry on white. The toggle in the header switches; the choice is remembered. */
:root[data-theme="light"] {
  --bg: #F4F5F8; --bg-2: #FFFFFF; --panel: #FFFFFF; --panel-2: #EEF0F4; --line: #D5D8DE; --line-2: #B8BDC7;
  --fg: #10121A; --soft: #2A2E3A; --muted: #535864; --dim: #6B7180;
  --blue: #078BEE; --blue-2: #0670C0; --blue-ink: #0A5FA6;
  --purple: #990C9C; --purple-2: #7D0A80; --yellow: #B8BE00;
  --nav-bg: #10121A; --nav-fg: #ECEEF3; --nav-accent: #45ADFF;
  --slashes: url("/img/brand/guide/slashes-light.svg");
  --wash: 244, 245, 248; --strong: #10121A; --on-accent: #fff; --shadow: rgba(0,0,0,.25); --row-alt: rgba(var(--wash),.025);
  color-scheme: light;
}
html { background: var(--bg); scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: var(--blue-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--strong); }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; }
img { display: block; }
h1, h2, h3, .btn, .eyebrow, .card-h, .racer-h, .strip-h, .svc-h, .price-big, .contact-big, .more, .jump a, .tags li, .nav a, .nav-toggle, .hdr-call, .hdr-fb, .row-name, .stat dd, .quote p { font-family: var(--display); font-style: italic; text-transform: uppercase; }
h1 { font-weight: 900; font-size: clamp(38px, 7.5vw, 72px); line-height: .98; margin: 0 0 .4em; letter-spacing: -.005em; overflow-wrap: anywhere; }
h2 { font-weight: 700; font-size: clamp(26px, 4vw, 38px); line-height: 1.02; margin: 0 0 .6em; }
h3 { font-weight: 700; font-size: 23px; line-height: 1.05; margin: 0 0 .3em; }
p { margin: 0 0 1em; }
.sr { position: absolute; left: -9999px; }
.eyebrow { color: var(--blue-2); font-weight: 700; font-size: 15px; letter-spacing: .14em; margin: 0 0 12px; }
.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--soft); max-width: 60ch; line-height: 1.5; }
.dim { color: var(--dim); }
.announce { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; }

/* a label in the board / table / footer style: small, bold, spaced, blue */
.lbl, .board-head span, .price thead th, .foot-h, .stat dt, .card-cat, .svc-meta b, .quote footer { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-2); font-style: normal; }

/* header: the slash field at low opacity behind it, a blue rule under it */
.hdr { position: sticky; top: 0; z-index: 20; background: linear-gradient(rgba(var(--wash),.9), rgba(var(--wash),.9)), var(--bg) var(--slashes) center / cover no-repeat; border-bottom: 2px solid var(--blue); }
.hdr-in { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.mark { display: block; padding: 8px 0; flex-shrink: 0; }
.mark img { display: block; height: 58px; width: auto; filter: drop-shadow(0 2px 4px var(--shadow)); }
.nav-toggle { color: var(--fg); font-weight: 700; font-style: normal; }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--fg); text-decoration: none; font-weight: 700; font-style: normal; font-size: 15px; letter-spacing: .04em; padding: 12px 9px 10px; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--strong); border-color: var(--line-2); }
.nav a[aria-current] { color: var(--blue-2); border-color: var(--blue); }
.hdr-act { display: flex; align-items: center; gap: 10px; }
.hdr-fb, .hdr-call { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; text-decoration: none; font-weight: 700; font-style: normal; font-size: 19px; letter-spacing: .03em; border-radius: 3px; white-space: nowrap; color: var(--strong); }
.hdr-fb svg, .hdr-call svg { width: 20px; height: 20px; flex-shrink: 0; }
.hdr-fb { background: var(--blue); }
.hdr-fb:hover { background: var(--blue-2); color: var(--bg); }
.hdr-call { background: var(--purple); }
.hdr-call:hover { background: var(--purple-2); color: var(--on-accent); }
@media (max-width: 1023px) { .hdr-fb { display: none; } .nav a { padding-inline: 8px; font-size: 15px; } }
@media (max-width: 759px) {
  .hdr-act { display: none; }   /* the call bar carries phone + Facebook on phones */
  .hdr-in { min-height: 64px; gap: 12px; }
  .mark img { height: 44px; }
  body.nav-open [data-nav] > a { font-style: italic; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
}

/* buttons: Racing Purple is Call and every contact action; Electric Blue is Facebook */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 12px 26px; border-radius: 3px; background: var(--purple); color: var(--strong); border: 2px solid var(--purple); font-weight: 700; font-size: 19px; letter-spacing: .04em; text-decoration: none; cursor: pointer; line-height: 1; text-align: center; }
.btn:hover { background: var(--purple-2); border-color: var(--purple-2); color: var(--on-accent); }
.btn-fb { background: var(--blue); border-color: var(--blue); }
.btn-fb:hover { background: var(--blue-2); border-color: var(--blue-2); color: var(--bg); }
.btn-2 { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn-2:hover { background: var(--panel); border-color: var(--fg); color: var(--strong); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
@media (max-width: 559px) { .cta { flex-direction: column; } .cta .btn { width: 100%; } }

/* hero: the photo under the lights, the HR mark transparent over it, the headline's last word in Speed Yellow */
.hero { position: relative; overflow: hidden; background: var(--bg); min-height: min(84vh, 780px); display: flex; align-items: flex-end; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(var(--wash),1) 0%, rgba(var(--wash),.86) 30%, rgba(var(--wash),.3) 70%, rgba(var(--wash),.2) 100%), linear-gradient(to right, rgba(var(--wash),.55) 0%, rgba(var(--wash),0) 60%); }
.hero-in { position: relative; z-index: 1; padding: clamp(96px, 16vw, 170px) 0 clamp(40px, 6vw, 64px); display: grid; gap: 32px 56px; grid-template-columns: minmax(0, 1.3fr) minmax(220px, .7fr); align-items: end; }
.hero-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.hero-dot { width: 10px; height: 10px; background: var(--blue); transform: skewX(-16deg); flex-shrink: 0; }
.hero-h { font-weight: 900; font-size: clamp(44px, 7.8vw, 92px); line-height: .92; margin: 0 0 .35em; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.hero-h .flag { font-style: inherit; color: var(--yellow); }
.hero-tag { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.15; color: var(--fg); margin: 0 0 .5em; max-width: 30ch; }
.hero .lede { color: var(--soft); }
.hero-mark { padding: 0 0 4px; }
.hero-mark img { display: block; width: 100%; height: auto; margin-left: auto; filter: drop-shadow(0 14px 28px var(--shadow)); }
@media (max-width: 859px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 72px; }
  .hero-mark { order: -1; max-width: 240px; }
  .hero::after { background: linear-gradient(to top, rgba(var(--wash),1) 0%, rgba(var(--wash),.9) 45%, rgba(var(--wash),.55) 100%); }
}

/* the thin diagonal divider between the hero and the board: the slash field clipped to a lean band */
.slash-rule { height: 54px; margin: -1px 0 0; background: linear-gradient(rgba(var(--wash),.55), rgba(var(--wash),.55)), var(--bg) var(--slashes) center / cover no-repeat; clip-path: polygon(0 0, 100% 56%, 100% 100%, 0 44%); }

/* sections */
.sec { padding: clamp(40px, 7vw, 84px) 0; }
.sec-alt, .cat-secs > .sec:nth-child(even) { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* a heading with the blue marker in front of it, leaning with the type */
.sec-h { position: relative; padding-left: 22px; }
.sec-h::before { content: ""; position: absolute; left: 2px; top: .04em; width: 8px; height: .92em; background: var(--blue); transform: skewX(-16deg); }
.sec-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.more { font-weight: 700; font-size: 16px; letter-spacing: .06em; color: var(--fg); text-decoration: none; border-bottom: 3px solid var(--blue); padding-bottom: 2px; margin-bottom: 1em; }
.more:hover { color: var(--blue-2); }
.page-h { padding: clamp(40px, 7vw, 80px) 0 clamp(22px, 3vw, 34px); border-bottom: 2px solid var(--blue); background: linear-gradient(rgba(var(--wash),.94), rgba(var(--wash),.94)), var(--bg-2) var(--slashes) center / cover no-repeat; }
.page-h .lede { margin-bottom: 0; }
.page-h .lede + .jump { margin-top: 20px; }

/* the results board: six rows, photo, name, class · track, wins in Speed Yellow clipped to a line */
.board-sec { padding-top: clamp(28px, 4vw, 48px); }
.board { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--blue); }
.board-head, .row { display: grid; grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1.4fr); gap: 0 18px; align-items: center; padding: 0 18px; }
.board-head { min-height: 40px; border-bottom: 1px solid var(--line-2); background: var(--panel-2); }
.board-rows { list-style: none; margin: 0; padding: 0; }
.row { min-height: 76px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row:nth-child(even) { background: var(--row-alt); }
.row-img { width: 56px; height: 56px; overflow: hidden; border: 1px solid var(--line-2); background: var(--bg); }
.row-img img { width: 100%; height: 100%; object-fit: cover; }
.row-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row-name { font-weight: 700; font-size: 21px; line-height: 1.05; color: var(--strong); overflow-wrap: anywhere; }
.row-num { color: var(--blue-2); }
.row-meta { color: var(--muted); font-size: 15px; line-height: 1.3; }
.row-wins { min-width: 0; font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: .02em; color: var(--yellow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-none { color: var(--dim); font-weight: 400; }
@media (max-width: 759px) {
  .board-head { display: none; }
  .row { grid-template-columns: 48px minmax(0, 1fr); gap: 4px 14px; }
  .row-img { width: 48px; height: 48px; grid-row: span 2; }
  .row-wins { grid-column: 2; font-size: 15px; }
}

/* season stats: counts straight from the data, white numbers on a blue-ruled strip */
.stats { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.stat { padding: 26px 22px; border-left: 1px solid var(--line); display: flex; flex-direction: column-reverse; gap: 4px; }
.stat:first-child { border-left: 0; }
.stat dt { margin: 0; }
.stat dd { margin: 0; font-weight: 900; font-size: clamp(38px, 5vw, 56px); line-height: 1; color: var(--strong); }
@media (max-width: 759px) { .stats-in { grid-template-columns: 1fr 1fr; } .stat { padding: 18px 16px; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* motor cards: dark, a blue top rule, the photo */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--blue); color: var(--fg); text-decoration: none; overflow: hidden; }
.card:hover { border-color: var(--line-2); border-top-color: var(--blue-2); }
.card:hover .card-h { color: var(--blue-2); }
.card-img { display: block; aspect-ratio: 4 / 3; background: var(--bg); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.card-h { font-weight: 700; font-size: 26px; line-height: 1; color: var(--strong); }
.card-classes { color: var(--muted); font-size: 15px; }
.card-p { color: var(--soft); line-height: 1.45; }
.card-price { margin-top: auto; padding-top: 10px; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg); border-top: 1px solid var(--line); }
@media (max-width: 559px) { .cards { grid-template-columns: 1fr; } }

/* the price table on the home page: a dark board; stacked rows on phones */
.price { width: 100%; border-collapse: collapse; margin: 8px 0 0; background: var(--panel); border: 1px solid var(--line); }
.price thead th { text-align: left; padding: 12px 18px; border-bottom: 2px solid var(--blue); background: var(--panel-2); }
.price tbody th, .price td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price tbody tr:last-child th, .price tbody tr:last-child td { border-bottom: 0; }
.price tbody th { font-weight: 700; font-size: 18px; color: var(--strong); width: 40%; }
.price td { color: var(--soft); }
.price .price-n { color: var(--strong); font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.price thead th:last-child, .price .price-n { text-align: right; }
@media (max-width: 639px) {
  .price thead { position: absolute; left: -9999px; }
  .price, .price tbody, .price tr, .price th, .price td { display: block; width: auto; }
  .price tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .price tr:last-child { border-bottom: 0; }
  .price tbody th, .price td { padding: 0; border: 0; }
  .price tbody th { margin-bottom: 4px; }
  .price td { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding: 3px 0; }
  .price td::before { content: attr(data-label); font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-2); }
  .price .price-n { text-align: right; white-space: normal; }
}

/* jump links on the motors page: wrap, never scroll */
.jump { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: 3px; color: var(--fg); text-decoration: none; font-weight: 700; font-style: normal; font-size: 16px; letter-spacing: .05em; }
.jump a:hover { border-color: var(--blue-2); color: var(--blue-2); }

/* one motor */
.motor { padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 7vw, 84px); }
.crumbs { font-weight: 700; color: var(--muted); margin-bottom: 20px; font-size: 15px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue-2); }
.motor-grid { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
.motor-img { position: sticky; top: 100px; background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--blue); aspect-ratio: 4 / 3; overflow: hidden; }
.motor-img img { width: 100%; height: 100%; object-fit: cover; }
.motor-info h1 { font-size: clamp(36px, 5.5vw, 58px); }
.tags { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 10px; border: 1.5px solid var(--blue); color: var(--blue-2); border-radius: 3px; font-weight: 700; font-style: normal; font-size: 13px; letter-spacing: .08em; }
.specs { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 16px; border-top: 2px solid var(--blue); }
.specs th, .specs td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.specs th { color: var(--muted); font-weight: 700; width: 40%; padding-right: 14px; }
@media (max-width: 559px) { .specs, .specs tbody, .specs tr, .specs th, .specs td { display: block; width: auto; } .specs tr { padding: 10px 0; border-bottom: 1px solid var(--line); } .specs th, .specs td { padding: 0; border: 0; } .specs th { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-family: var(--display); color: var(--blue-2); } }
.price-big { font-family: var(--display); font-style: italic; text-transform: uppercase; font-weight: 900; font-size: 32px; line-height: 1; margin: 24px 0 0; }
.price-big span { font-size: 15px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.back { margin-top: 24px; font-weight: 700; }
@media (max-width: 859px) { .motor-grid { grid-template-columns: 1fr; } .motor-img { position: static; } }

/* services page */
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--blue); }
.svc { display: grid; gap: 6px 40px; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); padding: 26px 0; border-bottom: 1px solid var(--line); }
.svc-h { font-size: 26px; margin: 0; grid-row: span 2; color: var(--strong); }
.svc-p { margin: 0; color: var(--soft); }
.svc-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; color: var(--fg); font-size: 15px; }
.svc-meta b { margin-right: 6px; }
@media (max-width: 759px) { .svc { grid-template-columns: 1fr; } .svc-h { grid-row: auto; } }

/* racers: dark cards, the wins in Speed Yellow */
.racers { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.racer { position: relative; background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--blue); display: flex; flex-direction: column; overflow: hidden; }
.racer-img { aspect-ratio: 1; background: var(--bg); overflow: hidden; }
.racer-img img { width: 100%; height: 100%; object-fit: cover; }
.racer-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.racer-h { font-size: 26px; margin: 0; line-height: 1; overflow-wrap: anywhere; color: var(--strong); }
.racer-num { color: var(--blue-2); }
.racer-meta { margin: 0; color: var(--muted); font-size: 15px; }
.racer-wins { margin: 0; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .03em; color: var(--yellow); line-height: 1.4; }
.racer-quote { margin: 6px 0 0; padding-left: 14px; border-left: 3px solid var(--blue); }
.racer-quote p { margin: 0; color: var(--soft); font-family: var(--display); font-weight: 700; font-style: italic; }
@media (max-width: 559px) { .racers { grid-template-columns: 1fr; } }

/* testimonials: one stacked column, the quote in Bold Italic */
.quotes { display: grid; gap: 14px; max-width: 820px; }
.quote { margin: 0; padding: 22px 24px 18px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--blue); }
.quote p { margin: 0 0 10px; font-weight: 700; font-size: clamp(19px, 2.4vw, 23px); line-height: 1.3; color: var(--strong); text-transform: none; }
.quote p::before { content: "“"; color: var(--blue-2); }
.quote p::after { content: "”"; color: var(--blue-2); }
.quote footer { color: var(--muted); }

/* the closing strip: a dark board with the blue rules, the two buttons on it */
.strip { position: relative; color: var(--fg); padding: clamp(36px, 6vw, 64px) 0; border-top: 2px solid var(--blue); border-bottom: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.strip-in { position: relative; z-index: 1; display: grid; gap: 24px 48px; grid-template-columns: minmax(0, 3fr) auto; align-items: center; }
.strip-in > div { padding-left: 22px; border-left: 6px solid var(--blue); }
.strip-h { font-weight: 900; font-size: clamp(30px, 5vw, 46px); line-height: .98; margin: 0 0 .3em; color: var(--strong); }
.strip p { margin: 0; max-width: 56ch; color: var(--soft); }
.strip .cta { margin: 0; }
@media (max-width: 859px) { .strip-in { grid-template-columns: 1fr; } }

/* about */
.about-grid { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; }
.about-img { margin: 0; border: 1px solid var(--line); border-top: 4px solid var(--blue); background: var(--panel); }
.about-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.about-img figcaption { padding: 10px 14px; color: var(--muted); font-size: 14px; }
@media (max-width: 859px) { .about-grid { grid-template-columns: 1fr; } }

/* prose: Markdown bodies */
.prose { max-width: 62ch; font-size: 17px; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; color: var(--soft); }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose-sm { font-size: 15px; }
.prose-sm p { color: var(--muted); margin-bottom: .6em; }

/* contact */
.contact-grid { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.contact-info .sec-h { margin-top: 1.4em; }
.contact-info .sec-h:first-child { margin-top: 0; }
.contact-big { font-weight: 900; font-size: clamp(34px, 6.5vw, 52px); line-height: 1; margin: 0; letter-spacing: .02em; }
.contact-big a { color: var(--strong); text-decoration: none; }
.contact-big a:hover { color: var(--blue-2); }
.addr { font-size: 19px; }
.status { font-weight: 700; }
.hours { border-collapse: collapse; width: 100%; max-width: 420px; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 700; color: var(--muted); padding-right: 16px; }
.hours tr.today { color: var(--blue-2); font-weight: 700; }
.form-lead { color: var(--muted); }
.form label { color: var(--fg); font-weight: 700; font-size: 15px; }
.form input, .form textarea, .form select { background: var(--panel); color: var(--fg); border: 1.5px solid var(--line-2); border-radius: 3px; padding: 13px 14px; font-size: 17px; }
.form input:focus, .form textarea:focus { border-color: var(--blue-2); outline: none; box-shadow: 0 0 0 3px rgba(7,139,238,.3); }
.form .btn { justify-self: start; }
.form-note { color: var(--muted); }
@media (max-width: 859px) { .contact-grid { grid-template-columns: 1fr; } }

/* gallery */
.gallery { display: grid; gap: 18px; align-items: start; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gfig { margin: 0; background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--blue); }
.gfig a { display: block; }
.gfig img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gfig figcaption { padding: 10px 12px 12px; font-size: 14px; color: var(--soft); }
.gsec { margin-top: clamp(32px, 5vw, 56px); }
.gsec h2 { margin-bottom: 18px; }

/* footer: the slash field at low opacity behind it */
.foot { background: linear-gradient(rgba(var(--wash),.9), rgba(var(--wash),.9)), var(--bg-2) var(--slashes) center / cover no-repeat; border-top: 2px solid var(--blue); padding: clamp(40px, 6vw, 64px) 0 24px; }
.foot-in { display: grid; gap: 32px; grid-template-columns: 2fr 1fr 1fr 1fr; }
.foot-name { margin: 0 0 12px; line-height: 1; }
.foot-name img { height: 56px; width: auto; display: block; filter: drop-shadow(0 2px 4px var(--shadow)); }
.foot-tag { font-family: var(--display); font-style: italic; font-weight: 700; text-transform: uppercase; color: var(--strong); margin: 0 0 4px; font-size: 18px; }
.foot-sub { color: var(--muted); margin: 0; max-width: 32ch; }
.foot-h { margin: 0 0 10px; }
.foot p { margin: 0 0 6px; }
.foot a { color: var(--fg); }
.foot a:hover { color: var(--blue-2); }
.foot-days { color: var(--muted); }
.foot-muted { color: var(--muted); font-size: 15px; }
.foot-nav { display: flex; flex-direction: column; gap: 0; }
.foot-nav a { text-decoration: none; padding: 5px 0; font-weight: 700; }
.foot-fine { margin: 36px auto 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
@media (max-width: 859px) { .foot-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 559px) { .foot-in { grid-template-columns: 1fr; gap: 26px; } }

@media print { .hdr-act, .strip { display: none; } body { background: #fff; color: #000; } }

/* the header toggle */
.hdr .theme-toggle { color: var(--fg); border-color: var(--line-2); }
.hdr .theme-toggle:hover { color: var(--blue-2); border-color: var(--blue-2); }
@media (max-width: 759px) { .hdr .theme-toggle { width: 36px; height: 36px; } }
/* light mode: the hero photo keeps its dark wash so the white headline reads; the HR mark's own outline carries it */
:root[data-theme="light"] .hero::after { background: linear-gradient(to top, rgba(16,18,26,.92) 0%, rgba(16,18,26,.7) 30%, rgba(16,18,26,.25) 70%, rgba(16,18,26,.15) 100%), linear-gradient(to right, rgba(16,18,26,.5) 0%, rgba(16,18,26,0) 60%); }
:root[data-theme="light"] .hero .lede, :root[data-theme="light"] .hero .hero-tag { color: #E6E8EE; }
:root[data-theme="light"] .hero-kicker { color: #D3D7E0; }
@media (min-width: 760px) and (max-width: 1199px) { .hdr-call span, .hdr-fb span { display: none; } .hdr-call, .hdr-fb { padding: 0 12px; } }
