/*
 * Appalachian Championship Enduro Series (ACES): site layout and components ("Hardwood & route sheet").
 * Colours come from css/theme.css. Recurring enduro motifs: the turn arrow (eyebrows), the check signs
 * (red/white secret check, green/white emergency check) and the route sheet (schedules, quick links).
 * Customer layer: LiveLaps overwrites css/site.css and css/imported.css, never this file.
 */

/* ------------------------------------------------------------------ base */
:root {
  --aces-wrap: 1240px;
  --aces-gutter: 20px;
  --aces-gap: clamp(1rem, 2.4vw, 2rem);
  --aces-section: clamp(3.5rem, 8vw, 6.5rem);
  --aces-line: color-mix(in srgb, var(--foreground) 14%, transparent);
  --aces-red-hover: color-mix(in srgb, var(--primary) 84%, #000);
  --aces-on-dark: #f5f3ec;
  --aces-on-dark-muted: color-mix(in srgb, #f5f3ec 76%, transparent);
  --aces-topo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='400' viewBox='0 0 600 400'%3E%3Cg fill='none' stroke='%23f5f3ec' stroke-width='1.2'%3E%3Cpath d='M-20 330c80-40 130-90 210-80s110 70 190 60 120-90 240-70'/%3E%3Cpath d='M-20 300c70-40 140-100 220-90s100 60 180 50 130-100 240-80'/%3E%3Cpath d='M-20 270c60-40 150-110 230-100s90 50 170 40 140-110 240-90'/%3E%3Cpath d='M-20 240c60-50 160-120 240-110s80 40 160 30 150-120 240-100'/%3E%3Cpath d='M60 210c40-60 120-110 180-100s70 30 140 20 120-80 240-90'/%3E%3Cpath d='M120 170c40-50 90-80 140-70s60 20 110 10 110-60 250-70'/%3E%3Cpath d='M190 120c30-30 70-50 110-40s50 20 90 10 90-40 230-50'/%3E%3Cpath d='M-20 380c90-30 120-70 200-60s120 80 200 70 110-80 240-60'/%3E%3Cpath d='M-20 60c80 20 120-10 190 0s90 40 160 30 110-50 290-40'/%3E%3Cpath d='M-20 30c90 20 120-10 190 0s90 30 160 20 110-50 290-40'/%3E%3C/g%3E%3C/svg%3E");
  --aces-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 16'%3E%3Cg fill='%23000'%3E%3Ccircle cx='2' cy='8' r='1.5'/%3E%3Ccircle cx='6.5' cy='8' r='1.5'/%3E%3Ccircle cx='11' cy='8' r='1.5'/%3E%3Ccircle cx='15.5' cy='8' r='1.5'/%3E%3Crect x='19' y='6.25' width='22' height='3.5'/%3E%3Cpath d='M39 1l13 7-13 7z'/%3E%3C/g%3E%3C/svg%3E");
  --site-header-row-height: 4.25rem;
}
@media (min-width: 48rem) { :root { --aces-gutter: 32px; --site-header-row-height: 4.75rem; } }
html { scroll-padding-top: 6rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font-sans);
  font-size: 1.0625rem; line-height: 1.55; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
@media (min-width: 64rem) { body { font-size: 1.125rem; } }
*:focus-visible { outline: 2px solid var(--foreground); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; height: auto; }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1rem; border-radius: .375rem;
  background: var(--forest); color: var(--paper); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2 * var(--aces-gutter), var(--aces-wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--aces-gutter), 860px); }
.section { padding-block: var(--aces-section); background: var(--background); color: var(--foreground); }
.section--alt { background: var(--surface-alt); }
.section--tight { padding-block: clamp(2.25rem, 5vw, 3.75rem); }
.section--forest, .section--night { position: relative; isolation: isolate; color: var(--aces-on-dark); background: var(--forest); }
.section--night { background: var(--night); }
.dark .section--forest { background: #0f241b; }
.section--forest::before, .section--night::before, .page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--aces-topo) center / 900px auto repeat; opacity: .07; pointer-events: none;
}
.section > .wrap > :first-child { margin-top: 0; }
.section > .wrap > :last-child { margin-bottom: 0; }

/* Type: Barlow Condensed is the display voice (italic, heavy, uppercase like the logo lettering). */
.display, h1, h2, h3, .h3 {
  font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase;
  line-height: .95; letter-spacing: .005em; text-wrap: balance; margin: 0 0 .45em; color: inherit;
}
h1 { font-size: clamp(2.6rem, 8vw, 6rem); overflow-wrap: break-word; }
h2 { font-size: clamp(2.1rem, 5vw, 3.75rem); }
h3, .h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1; }
h4, .h4 { font-family: var(--font-sans); font-style: normal; text-transform: none; font-weight: 700; font-size: 1.15rem; line-height: 1.25; margin: 0 0 .35em; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.45; max-width: 46ch; font-weight: 500; }
.muted { color: var(--muted-foreground); }
.section--forest .muted, .section--night .muted { color: var(--aces-on-dark-muted); }
.copy { max-width: 70ch; }
.copy > :last-child { margin-bottom: 0; }
.copy :is(ul, ol) { padding-left: 1.25em; margin: 0 0 1em; }
.copy ul { list-style: disc; }
.copy ol { list-style: decimal; }
.copy li { margin-bottom: .4em; }
.copy h3 { margin-top: 1.4em; }
.copy h4 { margin-top: 1.2em; }
.small { font-size: .9rem; line-height: 1.45; }
.note { font-size: .95rem; color: var(--muted-foreground); }
.tnum { font-variant-numeric: tabular-nums; }

a { color: inherit; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .2em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--flag-ink); text-decoration-color: currentColor; }
:is(.section--forest, .section--night, .aces-footer, .page-head, .hero) a:hover { color: #ffb3b3; }
.email, a[href^="mailto:"] { overflow-wrap: anywhere; }

/* Eyebrow: a small enduro turn arrow (dotted tail, bar, head) before a label. */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem; margin: 0 0 1rem; color: var(--flag-ink);
  font: 700 .82rem/1.2 var(--font-sans); letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; flex: none; width: 2.75rem; height: .85rem; background-color: currentColor;
  -webkit-mask: var(--aces-arrow) center / contain no-repeat; mask: var(--aces-arrow) center / contain no-repeat;
}
:is(.section--forest, .section--night, .hero, .page-head) .eyebrow { color: #ff8a8a; }
.eyebrow--plain::before { display: none; }

/* Buttons: red means an action. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 2.875rem; padding: .6rem 1.3rem;
  border: 2px solid var(--primary); border-radius: var(--radius); background: var(--primary); color: #fff;
  font: 700 1rem/1.15 var(--font-sans); letter-spacing: .02em; text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--aces-red-hover); border-color: var(--aces-red-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--line { background: transparent; color: var(--foreground); border-color: currentColor; }
.btn--line:hover { background: var(--foreground); border-color: var(--foreground); color: var(--background); }
:is(.section--forest, .section--night, .hero, .page-head) .btn--line { color: var(--aces-on-dark); }
:is(.section--forest, .section--night, .hero, .page-head) .btn--line:hover { background: var(--aces-on-dark); color: var(--forest); border-color: var(--aces-on-dark); }
.btn--lg { min-height: 3.25rem; padding-inline: 1.65rem; font-size: 1.05rem; }
.btn--sm { min-height: 2.3rem; padding: .35rem .85rem; font-size: .92rem; }
.btn::after { content: "→"; font-weight: 700; transition: transform .15s; }
.btn:hover::after { transform: translateX(3px); }
.btn--noarrow::after { content: none; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.textlink { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--primary); padding-bottom: .1em; }
.textlink:hover { color: var(--flag-ink); }
.textlink::after { content: " →"; }

/* Check signs: the enduro checkpoint flags. Red/white is a secret check, green/white an emergency check. */
.check-sign { display: inline-grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; border: 2px solid var(--foreground); border-radius: 3px; font: 800 1.15rem/1 var(--font-display); color: #16191b; background: linear-gradient(135deg, var(--primary) 50%, #fff 50%); }
.check-sign span { background: #fff; padding: 0 .2rem; border-radius: 2px; }
.check-sign--e { background: linear-gradient(135deg, var(--check-green) 50%, #fff 50%); }
.check-sign--r { background: linear-gradient(135deg, #16191b 50%, #fff 50%); }
.check-sign--o { background: linear-gradient(135deg, #c4952f 50%, #fff 50%); }

/* ------------------------------------------------------------------ header */
header[data-site-header] {
  background: #fff !important; color: var(--foreground) !important;
  border-top: 4px solid var(--primary); border-bottom: 1px solid var(--aces-line) !important; transition: background-color .25s, border-color .25s;
}
/* The header stays white in dark mode too: the logo's black lettering needs a light bar. Its own tokens are the light ones. */
.dark header[data-site-header] {
  --background: #ffffff; --foreground: #16191b; --muted: #e8e4d8; --muted-foreground: #5a5246; --accent: #dfe7d4; --accent-foreground: #17382a;
  --border: #d8d1c1; --input: #ffffff; --ring: #17382a; --popover: #ffffff; --popover-foreground: #16191b; color-scheme: light;
}
.subnav a[aria-current="true"] { background: var(--foreground); border-color: var(--foreground); color: var(--background); }
:is(.page-head, .section--forest) .subnav a { background: transparent; color: var(--aces-on-dark); border-color: color-mix(in srgb, #fff 40%, transparent); }
:is(.page-head, .section--forest) .subnav a:hover, :is(.page-head, .section--forest) .subnav a[aria-current="true"] { background: var(--aces-on-dark); color: var(--forest); border-color: var(--aces-on-dark); }
header[data-site-header] [data-header-container] { padding-inline: var(--aces-gutter); max-width: 92rem; margin-inline: auto; }
header[data-site-header] :is([data-nav-item] > a, [data-probe-item] > span, [data-more-item] > button, [data-probe-more] > span) {
  background: transparent; color: inherit; height: 2.5rem; padding: .5rem .7rem; border-radius: .25rem;
  font: 700 1.02rem/1 var(--font-sans); letter-spacing: .01em; text-transform: none;
}
header[data-site-header] [data-nav-item] > a:hover { background: color-mix(in srgb, var(--foreground) 7%, transparent); color: inherit; }
header[data-site-header] [data-nav-item] > a[data-active] { background: transparent; }
header[data-site-header] [data-nav-item] > a[data-active]::after { background: var(--primary); height: 3px; inset-inline: .7rem; bottom: .1rem; border-radius: 2px; opacity: 1; }
header[data-site-header] [data-header-brand] img, header[data-site-header] [data-probe-brand] img { height: 3.1rem; width: auto; max-width: none; }
@media (max-width: 40rem) { header[data-site-header] [data-header-brand] img, header[data-site-header] [data-probe-brand] img { height: 2.5rem; } }
header[data-site-header] :is([data-header-actions] a, [data-probe-actions] > span) {
  height: 2.625rem; padding: 0 1rem; border-radius: var(--radius); font: 700 .98rem/1 var(--font-sans); display: inline-flex; align-items: center; gap: .4rem; text-decoration: none;
}
header[data-site-header] :is([data-header-actions] a.bg-primary, [data-probe-actions] > span.bg-primary) { background: var(--primary) !important; color: #fff !important; border: 2px solid var(--primary); }
header[data-site-header] [data-header-actions] a.bg-primary:hover { background: var(--aces-red-hover) !important; border-color: var(--aces-red-hover); }
header[data-site-header] :is([data-header-actions] a:not(.bg-primary), [data-probe-actions] > span:not(.bg-primary)) { border: 2px solid transparent; color: inherit; }
header[data-site-header] :is([data-header-menu], [data-header-utilities] button) { color: inherit; }
header[data-site-header] [data-header-menu] {
  height: 2.75rem; min-width: 2.75rem; padding: 0 1rem; border: 2px solid currentColor; border-radius: var(--radius); background: transparent;
  font: 700 1rem/1 var(--font-sans); gap: .5rem; align-items: center;
}
header[data-site-header] [data-header-menu]:hover { background: var(--foreground); color: var(--background); }
header[data-site-header][data-layout="stacked"] [data-header-nav] { display: none; }
header[data-site-header][data-layout="stacked"] [data-header-menu] { display: inline-flex; grid-area: menu; }
header[data-site-header][data-layout="stacked"] [data-header-grid] {
  grid-template-columns: minmax(0, 1fr) auto auto auto; grid-template-areas: "brand actions utilities menu"; grid-template-rows: var(--site-header-row-height);
}
@media (max-width: 30rem) { header[data-site-header] [data-header-actions] a:not(.bg-primary) { display: none; } }

/* ------------------------------------------------------------------ home hero */
.hero { position: relative; isolation: isolate; overflow: hidden; color: var(--aces-on-dark); background: var(--night); min-height: min(88vh, 54rem); display: grid; align-items: end; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; animation: hero-settle 1.1s cubic-bezier(.2,.7,.2,1) both; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(13 20 17 / .9) 0%, rgb(13 20 17 / .62) 42%, rgb(13 20 17 / .05) 78%), linear-gradient(0deg, rgb(13 20 17 / .85) 0%, transparent 45%); }
.hero__inner { display: grid; gap: var(--aces-gap); padding-block: clamp(6rem, 14vh, 9rem) clamp(2.5rem, 6vw, 4.5rem); }
@media (min-width: 64rem) { .hero__inner { grid-template-columns: minmax(0, 1.35fr) minmax(19rem, .65fr); align-items: end; } }
.hero__logo { width: clamp(9rem, 18vw, 13rem); height: auto; margin: 0 0 1.25rem -.4rem; filter: drop-shadow(0 6px 16px rgb(0 0 0 / .45)); }
.hero h1 { font-size: clamp(3rem, 9.5vw, 7.25rem); line-height: .86; margin-bottom: .35em; text-shadow: 0 4px 30px rgb(0 0 0 / .35); animation: rise .8s .15s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 em, .accent-word { font-style: italic; color: #ff4d52; }
.hero .lede { color: #e9ece4; max-width: 40ch; animation: rise .8s .3s cubic-bezier(.2,.7,.2,1) both; }
.hero .actions { animation: rise .8s .42s cubic-bezier(.2,.7,.2,1) both; }
@keyframes hero-settle { from { transform: scale(1.07); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero__media img, .hero h1, .hero .lede, .hero .actions, .route-card { animation: none; } }

/* Route card: quick links set like the rows of an enduro route sheet (turn, direction, label, distance). */
.route-card {
  background: var(--paper); color: #16191b; border-radius: var(--radius); box-shadow: 0 24px 48px -16px rgb(0 0 0 / .55);
  padding: 1rem 1.1rem 1.1rem; border-top: 6px solid var(--primary); animation: rise .8s .55s cubic-bezier(.2,.7,.2,1) both;
  background-image: repeating-linear-gradient(0deg, transparent 0 2.95rem, rgb(22 25 27 / .08) 2.95rem 3rem);
}
.route-card__title { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0 0 .5rem; font: 800 italic 1.35rem/1 var(--font-display); text-transform: uppercase; }
.route-card__title span { font: 600 .78rem/1 var(--font-sans); letter-spacing: .12em; color: #5a5246; font-style: normal; }
.route-rows { list-style: none; margin: 0; padding: 0; counter-reset: turn; }
.route-rows li { counter-increment: turn; }
.route-rows a {
  display: grid; grid-template-columns: 2.2rem 1.6rem 1fr auto; align-items: center; gap: .55rem; min-height: 3rem;
  text-decoration: none; color: #16191b; border-bottom: 1px dashed rgb(22 25 27 / .22); font-weight: 700;
}
.route-rows li:last-child a { border-bottom: 0; }
.route-rows a::before { content: counter(turn, decimal-leading-zero); font: 800 1.15rem/1 var(--font-display); color: #b8141b; font-variant-numeric: tabular-nums; }
.route-rows a::after { content: "→"; grid-column: 4; color: #b8141b; transition: transform .15s; }
.route-rows a:hover { color: #b8141b; }
.route-rows a:hover::after { transform: translateX(4px); }
.route-dir { grid-column: 2; grid-row: 1; justify-self: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; display: grid; place-items: center; background: #16191b; color: #fff; font: 800 .8rem/1 var(--font-sans); }
.route-rows a > span:not(.route-dir) { grid-column: 3; }

/* ------------------------------------------------------------------ stats band */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
@media (min-width: 56rem) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats li { padding: 1.4rem 1rem 1.2rem; border-left: 2px dashed color-mix(in srgb, var(--aces-on-dark) 28%, transparent); }
.stats li:nth-child(odd) { border-left-color: transparent; }
@media (min-width: 56rem) { .stats li:nth-child(odd) { border-left-color: color-mix(in srgb, var(--aces-on-dark) 28%, transparent); } .stats li:first-child { border-left-color: transparent; } }
.stat__num { display: block; font: 800 italic clamp(3.4rem, 8vw, 6rem)/.85 var(--font-display); color: #fff; letter-spacing: -.01em; }
.stat__num::after { content: ""; display: block; width: 2.5rem; height: 4px; margin: .6rem 0 .5rem; background: var(--primary); }
.stat__label { display: block; font: 700 1rem/1.25 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--aces-on-dark-muted); }

/* ------------------------------------------------------------------ split blocks and photos */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 60rem) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .split--wide-media { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } .split--reverse > :first-child { order: 2; } }
.photo { border-radius: var(--radius); overflow: hidden; background: var(--muted); box-shadow: var(--shadow-lg); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.photo-pair .photo:last-child { margin-top: 3.5rem; }
.photo-pair .photo { aspect-ratio: 3 / 5; }
.photo--wide { aspect-ratio: 16 / 10; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo-caption { margin: .6rem 0 0; font-size: .9rem; color: var(--muted-foreground); }
.checklist { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: .7rem; }
.checklist li { display: flex; align-items: center; gap: .85rem; font-weight: 700; font-size: 1.1rem; }
.checklist li::before { content: ""; flex: none; width: 1.6rem; height: 1.6rem; border: 2px solid var(--foreground); border-radius: 3px; background: linear-gradient(135deg, var(--primary) 50%, #fff 50%); }

/* ------------------------------------------------------------------ cards */
.cards { display: grid; gap: var(--aces-gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); margin: 0; padding: 0; list-style: none; }
.card {
  position: relative; display: flex; flex-direction: column; gap: .4rem; height: 100%; padding: 1.4rem 1.4rem 1.3rem; border-radius: var(--radius);
  background: var(--card); color: var(--card-foreground); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:has(a.card__link):hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted-foreground); }
.card__link { margin-top: auto; padding-top: .6rem; font-weight: 700; text-decoration: none; color: var(--flag-ink); }
.card__link::after { content: " →"; }
.card__link::before { content: ""; position: absolute; inset: 0; }
.card__kicker { font: 700 .78rem/1.2 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-foreground); }
.card--photo { padding: 0; overflow: hidden; }
.card--photo .card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--muted); }
.card--photo .card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card--photo:hover .card__img img { transform: scale(1.04); }
.card--photo .card__body { display: flex; flex-direction: column; gap: .4rem; padding: 1.2rem 1.3rem 1.3rem; flex: 1; }
.section--forest .card, .section--night .card { background: color-mix(in srgb, #fff 6%, transparent); border-color: color-mix(in srgb, #fff 16%, transparent); color: var(--aces-on-dark); box-shadow: none; }
.section--forest .card p, .section--night .card p, .section--forest .card__kicker { color: var(--aces-on-dark-muted); }
.section--forest .card__link, .section--night .card__link { color: #ff9a9a; }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-head > div { max-width: 46rem; }
.section-head h2 { margin-bottom: .2em; }
.section-head p { margin: 0; }

/* ------------------------------------------------------------------ news teasers */
.news-list { display: grid; gap: var(--aces-gap); list-style: none; margin: 0; padding: 0; }
@media (min-width: 52rem) { .news-list { grid-template-columns: repeat(3, 1fr); } }
.news-teaser time, .news-teaser .card__kicker { color: var(--flag-ink); }

/* ------------------------------------------------------------------ sponsors */
.tier { margin-top: 2.25rem; }
.tier:first-of-type { margin-top: 0; }
.tier__name { display: flex; align-items: center; gap: 1rem; margin: 0 0 1rem; font: 800 italic 1.3rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.tier__name::after { content: ""; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 14px); }
.logo-wall { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); list-style: none; margin: 0; padding: 0; }
.logo-wall--lg { grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.logo-wall--sm { grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr)); }
.logo-wall li { display: block; }
.logo-wall :is(a, span) { display: grid; place-items: center; aspect-ratio: 2 / 1; padding: .75rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); transition: transform .2s, box-shadow .2s; }
.logo-wall a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.logo-wall img { max-height: 100%; width: auto; object-fit: contain; }
.dark .logo-wall :is(a, span) { border-color: transparent; }

/* ------------------------------------------------------------------ quotes */
.quotes { display: grid; gap: var(--aces-gap); list-style: none; margin: 0; padding: 0; }
@media (min-width: 56rem) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { display: flex; flex-direction: column; gap: 1rem; margin: 0; padding: 1.5rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); position: relative; }
.quote::before { content: "“"; position: absolute; top: -.35rem; right: 1rem; font: 800 5rem/1 var(--font-display); color: var(--primary); opacity: .9; }
.quote blockquote { margin: 0; font-size: 1.1rem; line-height: 1.5; }
.quote blockquote p { margin: 0; }
.quote figcaption { display: flex; align-items: center; gap: .8rem; margin-top: auto; font: 800 italic 1.2rem/1 var(--font-display); text-transform: uppercase; }
.quote figcaption img { width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); }

/* ------------------------------------------------------------------ help-grow tiles */
.tiles { display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.tile { position: relative; display: block; min-height: 18rem; border-radius: var(--radius); overflow: hidden; color: #fff; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(13 20 17 / .92) 0%, rgb(13 20 17 / .2) 70%); }
.tile:hover img { transform: scale(1.05); }
.tile__body { position: absolute; inset: auto 0 0 0; padding: 1.25rem 1.3rem; display: grid; gap: .3rem; }
.tile__body .card__kicker { color: #ffb3b3; }
.tile h3 { margin: 0; color: #fff; }
.tile a { color: #fff; font-weight: 700; text-decoration: none; }
.tile a::before { content: ""; position: absolute; inset: 0; }
.tile a::after { content: " →"; }

/* ------------------------------------------------------------------ inner page head */
.page-head { position: relative; isolation: isolate; overflow: hidden; background: var(--forest); color: var(--aces-on-dark); }
.dark .page-head { background: #0f241b; }
.page-head__inner { position: relative; z-index: 1; padding-block: clamp(2.75rem, 7vw, 5.5rem); max-width: 40rem; }
.page-head h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin-bottom: .3em; }
.page-head .lede { color: #e4e9de; }
.page-head .lede p:last-child { margin-bottom: 0; }
.page-head__media { position: relative; height: 13rem; }
.page-head__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-head__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--forest) 0%, transparent 55%); }
.dark .page-head__media::after { background: linear-gradient(0deg, #0f241b 0%, transparent 55%); }
@media (min-width: 56rem) {
  .page-head { min-height: 22rem; display: flex; align-items: center; }
  .page-head__media { position: absolute; inset: 0 0 0 36%; height: auto; z-index: 0; }
  .page-head__media::after { background: linear-gradient(90deg, var(--forest) 0%, color-mix(in srgb, var(--forest) 55%, transparent) 30%, transparent 70%); }
  .dark .page-head__media::after { background: linear-gradient(90deg, #0f241b 0%, color-mix(in srgb, #0f241b 55%, transparent) 30%, transparent 70%); }
  .page-head > .wrap { width: min(100% - 2 * var(--aces-gutter), var(--aces-wrap)); }
}
.page-head--plain { min-height: 0; }
.page-head .actions { margin-top: 1.25rem; }

/* ------------------------------------------------------------------ schedule: the route sheet */
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; font-size: .95rem; color: var(--muted-foreground); }
.route-sheet { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--foreground); }
.round {
  display: grid; gap: .5rem 1.25rem; padding: 1.15rem 0; border-bottom: 1px solid var(--border);
  grid-template-columns: 4.6rem minmax(0, 1fr); align-items: start;
}
@media (min-width: 60rem) { .round { grid-template-columns: 5.2rem minmax(0, 1.4fr) minmax(0, 1fr) auto; align-items: center; } }
.round__date { grid-row: span 3; display: grid; justify-items: center; align-content: center; width: 4.6rem; aspect-ratio: 1; border-radius: var(--radius); background: var(--foreground); color: var(--background); text-align: center; }
@media (min-width: 60rem) { .round__date { grid-row: auto; width: 5.2rem; } }
.round__month { font: 700 .8rem/1 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; }
.round__day { font: 800 italic 2.4rem/.9 var(--font-display); }
.round__title { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.round__club { display: block; margin-top: .3rem; font-weight: 700; }
.round__place { display: block; color: var(--muted-foreground); font-size: .98rem; }
.round__format { margin: 0; font-size: .95rem; color: var(--muted-foreground); }
.round__links { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.round__links a { display: inline-flex; align-items: center; min-height: 2.3rem; padding: .3rem .8rem; border-radius: var(--radius); border: 1.5px solid var(--border); background: var(--card); font-weight: 700; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.round__links a:hover { border-color: var(--primary); color: var(--flag-ink); }
.round__links li:first-child a { background: var(--primary); border-color: var(--primary); color: #fff; }
.round__links li:first-child a:hover { background: var(--aces-red-hover); color: #fff; }
.round--state .round__date { background: var(--primary); color: #fff; }

/* ------------------------------------------------------------------ results by round */
.rounds { display: grid; gap: var(--aces-gap); list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.result-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm); height: 100%; }
.result-card__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--muted); }
.result-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.result-card__body { padding: 1rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.result-card__date { font: 700 .8rem/1.2 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--flag-ink); }
.result-card h3 { margin: 0; font-size: 1.55rem; }
.result-card__club { margin: 0 0 .5rem; color: var(--muted-foreground); font-weight: 600; }
.result-card ul { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: .35rem; }
.result-card ul a { font-weight: 700; text-decoration: none; color: var(--flag-ink); }
.result-card ul a::after { content: " →"; }
.result-card ul span { color: var(--muted-foreground); font-style: italic; }
.standings-band { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.presented { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 0 0 2rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.presented p { margin: 0; font: 700 .85rem/1.2 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-foreground); }
.presented img { height: 3.5rem; width: auto; }

/* ------------------------------------------------------------------ champions and archive */
.champions { display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.champ { display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--border); }
.champ__year { display: flex; justify-content: space-between; align-items: center; padding: .7rem 1rem; background: var(--foreground); color: var(--background); font: 800 italic 1.9rem/1 var(--font-display); }
.champ__year::after { content: ""; width: 1.6rem; height: 1.6rem; background: conic-gradient(#fff 25%, #16191b 0 50%, #fff 0 75%, #16191b 0) 0 0 / .8rem .8rem; border-radius: 2px; opacity: .9; }
.champ dl { margin: 0; padding: .9rem 1rem 1rem; display: grid; gap: .55rem; }
.champ dt { font: 700 .74rem/1.1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-foreground); }
.champ dd { margin: .1rem 0 0; font-weight: 700; font-size: 1.08rem; }
.champ dd:empty::before { content: "—"; color: var(--muted-foreground); }
.champ__photo { aspect-ratio: 3 / 2; overflow: hidden; }
.champ__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.archive { display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.archive-year { display: grid; gap: .75rem 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid var(--border); }
@media (min-width: 48rem) { .archive-year { grid-template-columns: 7rem minmax(0, 1fr); align-items: start; } }
.archive-year h3 { margin: 0; font-size: 2.4rem; color: var(--flag-ink); }
.archive-year ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.archive-year ul a { display: inline-flex; min-height: 2.3rem; align-items: center; padding: .25rem .8rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); font-weight: 600; font-size: .95rem; text-decoration: none; }
.archive-year ul a:hover { border-color: var(--primary); color: var(--flag-ink); }

/* ------------------------------------------------------------------ clubs */
.clubs { display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); }
.club { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; padding: 1.25rem 1rem 1.15rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); height: 100%; }
.club img { width: 9rem; height: 7.2rem; object-fit: contain; background: #fff; border-radius: var(--radius); }
.club h3 { margin: .4rem 0 0; font-size: 1.35rem; }
.club__place { margin: 0; color: var(--muted-foreground); font-weight: 600; }
.club__links { display: flex; gap: .5rem; list-style: none; margin: auto 0 0; padding: .5rem 0 0; flex-wrap: wrap; justify-content: center; }
.club__links a { font-weight: 700; font-size: .92rem; }

/* ------------------------------------------------------------------ rules, classes, points */
.class-grid { display: grid; gap: var(--aces-gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.class-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--foreground); }
.class-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--border); font-weight: 600; }
.class-list li span:last-child { color: var(--muted-foreground); font-weight: 500; text-align: right; }
.fee-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.fee-list li { padding: .85rem 1rem; border-left: 4px solid var(--primary); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; }
.points-table { width: 100%; max-width: 30rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.points-table th, .points-table td { padding: .45rem .8rem; border-bottom: 1px solid var(--border); text-align: left; }
.points-table thead th { border-bottom: 2px solid var(--foreground); font: 700 .8rem/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; }
.points-table td:last-child { font: 800 1.25rem/1 var(--font-display); color: var(--flag-ink); }
.points-scale { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.6rem, 1fr)); gap: .5rem; list-style: none; margin: 1rem 0; padding: 0; }
.points-scale li { display: grid; text-align: center; padding: .55rem .3rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.points-scale li span:first-child { font: 700 .78rem/1.2 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-foreground); }
.points-scale li span:last-child { font: 800 italic 1.9rem/1 var(--font-display); color: var(--flag-ink); }
.rule-block { padding: 1.4rem 0; border-bottom: 1px solid var(--border); }
.rule-block:first-child { padding-top: 0; }
.rule-block h3 { margin-bottom: .5rem; }
.subnav { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.subnav a { display: inline-flex; align-items: center; min-height: 2.4rem; padding: .3rem .9rem; border-radius: 999px; border: 1.5px solid var(--border); background: var(--card); font-weight: 700; font-size: .95rem; text-decoration: none; }
.subnav a:hover { border-color: var(--primary); color: var(--flag-ink); }
.sticky-nav { position: sticky; top: calc(var(--site-header-height, 5rem) + .5rem); }

/* Checks explained: sign + text rows. */
.checks { display: grid; gap: 1rem; list-style: none; margin: 1.25rem 0; padding: 0; }
.checks li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.checks li p { margin: 0; }
.checks li strong { display: block; font: 800 italic 1.25rem/1.1 var(--font-display); text-transform: uppercase; margin-bottom: .2rem; }

/* Steps of a race day. */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1.25rem; }
.steps > li { counter-increment: step; position: relative; padding-left: 3.6rem; }
.steps > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -.15rem; width: 2.7rem; height: 2.7rem; display: grid; place-items: center; border-radius: var(--radius); background: var(--foreground); color: var(--background); font: 800 italic 1.4rem/1 var(--font-display); }
.steps h3 { font-size: 1.45rem; margin-bottom: .35rem; }
.steps p:last-child { margin-bottom: 0; }

.callout { padding: 1.25rem 1.4rem; border-radius: var(--radius); background: var(--accent); color: var(--accent-foreground); border-left: 5px solid var(--moss); }
.callout p:last-child { margin-bottom: 0; }
.callout--red { background: color-mix(in srgb, var(--primary) 9%, var(--card)); color: var(--foreground); border-left-color: var(--primary); }
.route-example { display: inline-grid; grid-auto-flow: column; gap: 1rem; padding: .8rem 1.1rem; border-radius: var(--radius); background: var(--paper); color: #16191b; border: 2px dashed #16191b; font: 800 1.6rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.route-example span:nth-child(2) { color: #b8141b; }

/* FAQ */
.faq { display: grid; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.faq details { border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: var(--foreground); color: var(--background); font: 700 1.3rem/1 var(--font-sans); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq__answer { padding: 0 1.2rem 1.15rem; }
.faq__answer > :last-child { margin-bottom: 0; }
.faq__tag { flex: none; margin-left: auto; padding: .2rem .55rem; border-radius: 999px; font: 700 .72rem/1 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; background: var(--muted); color: var(--muted-foreground); }

/* Sponsorship tiers */
.packages { display: grid; gap: var(--aces-gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); list-style: none; margin: 0; padding: 0; }
.package { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); overflow: hidden; }
.package__head { padding: 1.2rem 1.3rem 1rem; background: var(--foreground); color: var(--background); }
.package__head h3 { margin: 0 0 .3rem; }
.package__price { margin: 0; font-weight: 700; color: color-mix(in srgb, var(--background) 80%, transparent); }
.package--top .package__head { background: var(--primary); color: #fff; }
.package--top .package__price { color: #ffe1e1; }
.package__body { padding: 1.1rem 1.3rem 1.3rem; }
.package__body ol { margin: 0; padding-left: 1.3rem; display: grid; gap: .4rem; }

/* Facts list (banquet, events) */
.facts { display: grid; gap: .9rem; margin: 0; }
.facts > div { display: grid; gap: .15rem; padding-bottom: .9rem; border-bottom: 1px dashed var(--border); }
@media (min-width: 40rem) { .facts > div { grid-template-columns: 11rem 1fr; gap: 1rem; } }
.facts dt { font: 700 .82rem/1.4 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-foreground); }
.facts dd { margin: 0; font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.timeline li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--border); }
.timeline li span:first-child { font: 800 italic 1.3rem/1.1 var(--font-display); color: var(--flag-ink); }

/* History gallery */
.history { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); list-style: none; margin: 0; padding: 0; }
.history li { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: #222; }
.history img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .4s, transform .5s; }
.history li:hover img { filter: grayscale(0); transform: scale(1.03); }

/* Downloads */
.downloads { display: grid; gap: var(--aces-gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); list-style: none; margin: 0; padding: 0; }
.download { display: flex; flex-direction: column; gap: .8rem; padding: 1.25rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.download__img { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: var(--radius); background: repeating-conic-gradient(#e9e6dd 0 25%, #f7f5ef 0 50%) 0 0 / 22px 22px; padding: 1rem; }
.download__img img { max-height: 100%; width: auto; }
.download ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.download ul a { font-weight: 700; }

/* People / officers */
.people { display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.person { padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); border-top: 4px solid var(--primary); }
.person h3 { margin: 0 0 .25rem; font-size: 1.5rem; }
.person p { margin: 0; color: var(--muted-foreground); font-weight: 600; }

/* Contact form (LiveLaps promoter contact, js/contact.js) */
.contact-form { display: grid; gap: 1rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.contact-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-form label { display: block; margin-bottom: .35rem; font-weight: 700; }
.contact-form :is(input, textarea) { width: 100%; min-height: 2.9rem; padding: .65rem .8rem; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--input); color: var(--foreground); font: inherit; }
.contact-form textarea { min-height: 9rem; resize: vertical; }
.contact-form :is(input, textarea):focus { outline: 2px solid var(--ring); outline-offset: 1px; border-color: var(--ring); }
.contact-form [data-contact-status]:not(:empty) { padding: .75rem 1rem; border-radius: var(--radius); background: var(--accent); color: var(--accent-foreground); font-weight: 600; }
.req { color: var(--flag-ink); }

/* Article bodies (rich text) */
.prose-aces { max-width: 70ch; }
.prose-aces :is(h2, h3) { margin-top: 1.5em; }
.prose-aces img { border-radius: var(--radius); margin: 1rem 0; }
.prose-aces :is(ul, ol) { padding-left: 1.25em; }
.prose-aces ul { list-style: disc; }

/* ------------------------------------------------------------------ CTA band */
.cta-band { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 56rem) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band h2 { margin-bottom: .2em; }
.social { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.social a { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .45rem 1rem; border-radius: 999px; border: 2px solid currentColor; font-weight: 700; text-decoration: none; }
.social a:hover { background: var(--aces-on-dark); color: var(--forest); border-color: var(--aces-on-dark); }
.social svg { width: 1.15rem; height: 1.15rem; flex: none; }

/* ------------------------------------------------------------------ footer */
.aces-footer { background: var(--forest); color: var(--aces-on-dark); border-top: 6px solid var(--primary); position: relative; isolation: isolate; overflow: hidden; }
.dark .aces-footer { background: #0a110e; }
.aces-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--aces-topo) center / 900px auto repeat; opacity: .06; }
.aces-footer a { color: inherit; }
.footer-grid { display: grid; gap: 2rem 3rem; padding-block: clamp(2.75rem, 6vw, 4.5rem) 2rem; }
@media (min-width: 52rem) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; } }
.footer-brand img { width: 11rem; height: auto; margin-bottom: 1rem; }
.footer-brand p { color: var(--aces-on-dark-muted); max-width: 32ch; }
.aces-footer h2 { font: 800 italic 1.25rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 1rem; color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-links a { text-decoration: none; color: var(--aces-on-dark-muted); font-weight: 600; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-social { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.footer-social a { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.5rem; padding: .35rem .85rem; border-radius: 999px; border: 1.5px solid color-mix(in srgb, #fff 35%, transparent); text-decoration: none; font-weight: 600; font-size: .95rem; }
.footer-social a:hover { background: #fff; color: var(--forest); }
.footer-social svg { width: 1rem; height: 1rem; }
.footer-bar { border-top: 1px solid color-mix(in srgb, #fff 16%, transparent); }
.footer-bar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.1rem; font-size: .9rem; color: var(--aces-on-dark-muted); }
.footer-bar p { margin: 0; }

/* ------------------------------------------------------------------ small screens and print */
@media (max-width: 40rem) {
  .hero { min-height: 0; }
  .hero::after { background: linear-gradient(0deg, rgb(13 20 17 / .95) 0%, rgb(13 20 17 / .55) 55%, rgb(13 20 17 / .25) 100%); }
  .photo-pair .photo:last-child { margin-top: 2rem; }
  .round__links a { white-space: normal; }
}
@media print {
  header[data-site-header], .aces-footer, .hero__media, .page-head__media, .actions, [data-livelaps], [data-chatwoot-launcher] { display: none !important; }
  .page-head, .section--forest, .section--night { background: none !important; color: #000 !important; }
  .page-head::before, .section--forest::before, .section--night::before { display: none; }
  body { font-size: 11pt; }
  a { text-decoration: none; }
}

/* ------------------------------------------------------------------ fixes after the first visual review */
header[data-site-header] a, .aces-footer .footer-links a, .round__links a, .logo-wall a, .tile a, .card a, .route-rows a { text-decoration: none; }
.route-card__title > span:first-child { font: 800 italic 1.35rem/1 var(--font-display); letter-spacing: .01em; color: #16191b; }
.tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.25rem; }
.tiers .tier { margin: 0; }
@media (min-width: 60rem) {
  .round { grid-template-columns: 5.2rem minmax(0, 1.3fr) minmax(0, 1fr) minmax(15rem, 19rem); }
  .round__links { justify-content: flex-end; }
}
.quotes > li { display: flex; }
.quotes > li > .quote { flex: 1; }
.cards > li, .news-list > li, .rounds > li, .champions > li, .clubs > li, .packages > li, .downloads > li { display: flex; }
.cards > li > *, .news-list > li > *, .rounds > li > *, .champions > li > *, .clubs > li > *, .packages > li > *, .downloads > li > * { flex: 1; }
@media (max-width: 40rem) { .logo-wall, .logo-wall--lg, .logo-wall--sm { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; } }
