/* Racing Babes, style option 2: "Golden Hour".
   A prairie sunset at the arena: cedar sky, linen paper, terracotta and honey.
   Fonts: Fraunces (headings), Outfit (text), Caveat (hand-written notes). */

@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/caveat-normal-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/fraunces-normal-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/fraunces-italic-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/outfit-normal-latin.woff2) format('woff2');
}

:root {
  --linen: #f8f1e7;
  --paper: #fffaf3;
  --sand: #efe0c9;
  --tint: #f3e9db;
  --line: #e5d4be;
  --cedar: #1c2a2b;
  --cedar-2: #2a3b3a;
  --ink: #2a211d;
  --muted: #6f6058;
  --terracotta: #c4572f;
  --terracotta-d: #a5441e;
  --honey: #e0ac4f;
  --apricot: #f2a65e;
  --wine: #7b2d43;
  --live: #c8452f;
  --upcoming: #2f6f80;
  --completed: #6a5470;
  --cancelled: #988b80;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Outfit', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  --r-lg: 28px;
  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(60, 35, 20, .06), 0 14px 34px -12px rgba(60, 35, 20, .22);
  --shadow-up: 0 2px 4px rgba(60, 35, 20, .06), 0 26px 44px -16px rgba(60, 35, 20, .32);
  --shadow-lg: 0 34px 70px -24px rgba(10, 8, 6, .55);
  --ease: cubic-bezier(.22, 1, .36, 1);
  /* Each page has its own sunset: sun colour and horizon. */
  --sun: #f2a65e;
  --sun-glow: rgba(242, 166, 94, .5);
  --horizon: #7a3f2c;
  --head-h: 19rem;
}
.page-races { --sun: #ebbb5c; --sun-glow: rgba(235, 187, 92, .45); --horizon: #6c5124; }
.page-race { --sun: #ef8f70; --sun-glow: rgba(239, 143, 112, .45); --horizon: #6e2c3a; }
.page-about { --sun: #cdd79e; --sun-glow: rgba(205, 215, 158, .4); --horizon: #46523a; }
.page-contact { --sun: #f2aca3; --sun-glow: rgba(242, 172, 163, .45); --horizon: #69334a; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; font-weight: 400;
  color: var(--ink); background: var(--linen); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
picture { display: block; }
a { color: var(--terracotta-d); text-underline-offset: 3px; }
a:hover { color: var(--wine); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: .8rem; z-index: 100; background: var(--cedar); color: var(--linen); padding: .6rem 1rem; border-radius: 999px; }
.skip:focus { left: 1rem; color: var(--linen); }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.hand { font-family: var(--hand); font-weight: 600; font-size: 1.6rem; line-height: 1; color: var(--terracotta); }
.muted { color: var(--muted); }
.ico { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(248, 241, 231, .88); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.top.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 22px -14px rgba(60, 35, 20, .35); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.4rem; flex-wrap: wrap; padding-block: .5rem; }
.brand-home { position: relative; display: grid; gap: .15rem; padding-left: 3.3rem; }
.brand-home .logo > img { position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
.company-home-btn { display: inline-flex; align-items: center; gap: .35rem; min-height: 32px; padding: .15rem .35rem; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .8rem; white-space: nowrap; }
.company-home-btn img.company-wordmark { width: 120px; height: auto; }
.company-home-btn:hover { background: var(--honey); }
@media (max-width: 1100px) and (min-width: 861px) {
  .top .menu { flex-basis: 100%; justify-content: flex-end; }
}
@media (max-width: 560px) {
  .top .wrap { gap: .5rem; }
  .brand-home { padding-left: 2.6rem; }
  .company-home-btn img.company-wordmark { width: 104px; }
}
.logo { display: flex; align-items: center; gap: .7rem; min-height: 24px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo img { width: 44px; height: 44px; transition: transform .6s var(--ease); }
.logo:hover img { transform: rotate(-12deg) scale(1.05); }
.logo b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1; }
.logo b i { color: var(--terracotta); }
.logo small { display: block; margin-top: .25rem; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.menu { display: flex; align-items: center; gap: .2rem; }
.menu a { position: relative; padding: .6rem .85rem; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.menu a::after {
  content: ''; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 7px;
  background: url(../img/squiggle.svg) left center / auto 100% repeat-x;
  clip-path: inset(0 100% 0 0); transition: clip-path .5s var(--ease);
}
.menu a:hover::after, .menu a[aria-current="page"]::after { clip-path: inset(0 0 0 0); }
.menu a[aria-current="page"] { color: var(--terracotta-d); }
.menu-btn {
  display: none; position: relative; z-index: 2; align-items: center; gap: .55rem;
  min-height: 44px; padding: .5rem .95rem; border: 0; border-radius: 999px;
  background: var(--cedar); color: var(--linen); font: 500 .95rem/1 var(--body); cursor: pointer;
}
.bars { display: grid; gap: 5px; width: 18px; }
.bars span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .4s var(--ease); }
.nav-open .bars span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-open .bars span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .top { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--linen); }
  .menu-btn { display: inline-flex; }
  .nav-open .menu-btn { background: var(--linen); color: var(--cedar); }
  .menu {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: .3rem;
    padding: 6rem 2rem 3rem; background: radial-gradient(40rem 26rem at 100% 100%, rgba(242, 166, 94, .35), transparent 60%), var(--cedar);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .nav-open .menu { opacity: 1; visibility: visible; }
  .menu a {
    font-family: var(--display); font-size: clamp(1.9rem, 8vw, 2.6rem); font-weight: 500; color: var(--linen); padding: .35rem 0;
    opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .5s var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms + 80ms);
  }
  .menu a::after { left: 0; right: 0; bottom: .1rem; }
  .menu a[aria-current="page"] { color: var(--apricot); }
  .nav-open .menu a { opacity: 1; transform: none; }
  .nav-open { overflow: hidden; }
}

/* ---------- Buttons & tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 44px;
  padding: .75rem 1.25rem; border: 0; border-radius: 999px; cursor: pointer;
  background: #b84f29; color: #fff8ef; font: 600 .98rem/1.1 var(--body); text-decoration: none;
  box-shadow: 0 12px 22px -12px rgba(196, 87, 47, .8);
  transition: transform .35s var(--ease), background .3s, box-shadow .3s, color .3s;
}
.btn:hover { background: var(--terracotta-d); color: #fff8ef; transform: translateY(-2px); }
.btn .arr { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.line:hover { color: var(--terracotta-d); box-shadow: inset 0 0 0 1.5px var(--terracotta); }
.btn.light { background: var(--linen); color: var(--cedar); box-shadow: none; }
.btn.light:hover { background: #fff; color: var(--cedar); }
.btn.sm { min-height: 40px; padding: .55rem 1rem; font-size: .9rem; }
.textlink {
  font: inherit; font-weight: 600; color: var(--terracotta-d); background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
  text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: rgba(196, 87, 47, .3); text-underline-offset: 4px;
  transition: text-decoration-color .25s;
}
.textlink:hover { color: var(--terracotta-d); text-decoration-color: currentColor; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; }

.tag {
  display: inline-flex; align-items: center; gap: .45rem; padding: .32rem .75rem; border-radius: 999px; white-space: nowrap;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.tag::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.tag.live { color: #a93622; background: #fbe3da; }
.tag.live::before { animation: breathe 1.8s ease-in-out infinite; }
.tag.upcoming { color: #235a68; background: #dcebed; }
.tag.completed { color: #57425d; background: #ece3ee; }
.tag.cancelled { color: #62574f; background: #ebe4dc; }
.tag.on-dark { background: rgba(248, 241, 231, .14); color: var(--linen); }
.tag.live.on-dark { background: rgba(255, 138, 106, .2); color: #ffc0ae; }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(200, 69, 47, .55); } 50% { box-shadow: 0 0 0 6px rgba(200, 69, 47, 0); } }

/* ---------- Page tops: a sunset sky over rolling hills, the same height on every page ---------- */
.sky {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  min-height: var(--head-h); padding: 3rem 0 5.5rem; color: var(--linen);
  background: linear-gradient(180deg, var(--cedar) 0%, var(--cedar-2) 42%, var(--horizon) 100%);
}
.sky::before {
  content: ''; position: absolute; z-index: -1; right: 9%; bottom: -14rem; width: 30rem; height: 30rem; border-radius: 50%;
  background: radial-gradient(circle, var(--sun) 0 33%, var(--sun-glow) 34%, transparent 68%);
  animation: sunrise 1.8s var(--ease) both;
}
.sky::after {
  content: ''; position: absolute; z-index: -1; left: 0; right: 0; bottom: -1px; height: 72px;
  background: url(../img/hills.svg) center bottom / 100% 100% no-repeat;
}
.sky .eyebrow { font-family: var(--hand); font-weight: 600; font-size: 1.75rem; line-height: 1; color: var(--sun); margin-bottom: .45rem; }
.sky h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); letter-spacing: -.02em; }
.sky h1 em { font-style: italic; font-weight: 400; color: var(--sun); }
.sky .lead { margin-top: .8rem; max-width: 40rem; font-size: 1.12rem; font-weight: 300; color: rgba(248, 241, 231, .9); }
@keyframes sunrise { from { transform: translateY(7rem); opacity: .1; } to { transform: none; opacity: 1; } }

.rise { animation: rise .9s var(--ease) both; }
.rise.d1 { animation-delay: .08s; }
.rise.d2 { animation-delay: .18s; }
.rise.d3 { animation-delay: .28s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Welcome: the map is the stage ---------- */
.stage { padding: 3.2rem 0 6.5rem; min-height: 0; }
.stage::before { right: -4rem; bottom: -10rem; width: 44rem; height: 44rem; }
.stage .wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
.welcome-column { min-width: 0; }
.map-details { border-radius: var(--r-lg); overflow: auto; max-height: min(82vh, 850px); background: var(--linen); color: var(--ink); box-shadow: var(--shadow-lg); }
.map-details[hidden] { display: none; }
.map-details .d-head { padding: 1.8rem 4rem 1.5rem 1.5rem; }
.map-details .d-head h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
.map-details .d-body { padding: 1.5rem; }
.map-details, .map-paper { scroll-margin-top: 5.5rem; }
.back-to-map { display: none; }
.map-intro { margin-top: .6rem; color: var(--muted); font-size: .95rem; }
.management-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .8rem; font-size: .85rem; color: var(--muted); }
.management-legend span { display: inline-flex; gap: .35rem; align-items: center; }
.management-legend b { color: var(--cedar); border: 1px solid var(--line); border-radius: 4px; padding: 0 .25rem; }
.management-badge { display: inline-block; padding: .2rem .6rem; border: 1px solid var(--line); border-radius: 8px; font-size: .8rem; color: var(--cedar); background: var(--paper); }
.management-badge.rb-managed { background: linear-gradient(110deg, #fce4cf, #f5dfa3); border-color: var(--terracotta); color: #71301b; font-weight: 600; }
.management-badge.rb-managed { display: inline-flex; align-items: center; gap: .35rem; }
.sunny-icon { display: inline-block; width: 28px; height: 28px; flex: none; vertical-align: middle; }
.sunny-pin { pointer-events: none; transform-box: fill-box; transform-origin: center bottom; transition: transform .35s var(--ease); }
.ab .pin:hover .sunny-pin, .ab .pin:focus-visible .sunny-pin { transform: translateY(-3px) rotate(-6deg); }
.sunny-intro { display: flex; align-items: center; gap: .85rem; margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.sunny-intro > img { width: 64px; height: 64px; flex: none; }
.what-copy .sunny-intro p { font-size: .9rem; }
.sunny-intro strong { color: var(--cedar); }
.management-legend span:first-child b { background: var(--honey); border-color: var(--terracotta); color: var(--cedar); }
.stage h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.intro-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.2rem; align-items: center; }
img.horse { width: clamp(86px, 11vw, 150px); height: auto; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .35)); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.tallies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-top: 2rem; max-width: 33rem; }
.tally {
  display: grid; gap: .3rem; padding: .85rem 1rem; border-radius: var(--r); color: var(--linen); text-decoration: none;
  background: rgba(248, 241, 231, .08); box-shadow: inset 0 0 0 1px rgba(248, 241, 231, .2);
  transition: background .3s, transform .4s var(--ease), box-shadow .3s;
}
.tally:hover { color: var(--linen); background: rgba(248, 241, 231, .16); transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--sun); }
.tally .n { font-family: var(--display); font-size: 2.1rem; font-weight: 600; line-height: 1; }
.tally .l { display: flex; align-items: center; gap: .45rem; font-size: .92rem; font-weight: 500; white-space: nowrap; }
.tally .l::before { content: ''; width: .55rem; height: .55rem; border-radius: 50%; flex: none; background: var(--dot); }
.tally.current { --dot: #ff8d6e; }
.tally.current .l::before { animation: breathe 1.8s ease-in-out infinite; }
.tally.past { --dot: #cdb6d6; }
.tally.future { --dot: #93d3df; }

.map-paper { position: relative; padding: 1.5rem 1.5rem 1.1rem; border-radius: var(--r-lg); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-lg); }
.map-paper h2 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); margin-top: .2rem; }
.map-paper .seg { margin-top: 1rem; }
.map-box { margin-top: .6rem; }
.map-paper .hint { margin-top: .4rem; color: var(--muted); font-size: .9rem; text-align: center; }

/* Map */
.ab { width: 100%; height: auto; max-height: min(62vh, 600px); margin-inline: auto; overflow: visible; }
.ab .land-fill { fill: url(#abLand); }
.ab .land-line { fill: none; stroke: var(--cedar); stroke-width: 2; stroke-linejoin: round; }
.ab.first .land-fill { animation: fade 1.2s .5s ease both; }
.ab.first .land-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s .1s var(--ease) forwards; }
.ab .lat { stroke: rgba(28, 42, 43, .1); stroke-width: 1; stroke-dasharray: 2 6; }
.ab .name { font-family: var(--display); font-style: italic; font-size: 40px; fill: rgba(196, 87, 47, .24); }
.ab .ref text { font: 500 11px var(--body); fill: var(--muted); }
.ab .ref circle { fill: var(--muted); }
.ab .management-code { font: 700 11px var(--body); fill: var(--cedar); paint-order: stroke; stroke: var(--paper); stroke-width: 3px; pointer-events: none; }
.ab .pin { cursor: pointer; outline: none; }
.ab .pin-drop { animation: drop .7s var(--ease) both; }
.ab .medal { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .35s var(--ease); }
.ab .pin:hover .medal, .ab .pin:focus-visible .medal { transform: scale(1.15); }
.ab .medal circle { stroke: var(--paper); stroke-width: 3; }
.ab .medal .rb-ring { fill: var(--honey); stroke: var(--terracotta); stroke-width: 2; }
.ab .pin:focus-visible .medal circle { stroke: var(--honey); stroke-width: 4; }
.ab .pin[aria-pressed="true"] .medal circle { stroke: var(--terracotta); stroke-width: 4; }
.ab .stem { stroke-width: 2.5; stroke-linecap: round; }
.ab .count { font: 700 12px var(--body); fill: #fff; pointer-events: none; }
.ab .city { font: 600 13px var(--body); fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.ab .halo { fill: var(--live); transform-box: fill-box; transform-origin: center; animation: halo 2.2s ease-out infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drop { 0% { opacity: 0; transform: translateY(-28px); } 60% { opacity: 1; transform: translateY(3px); } 100% { opacity: 1; transform: none; } }
@keyframes halo { from { transform: scale(.6); opacity: .55; } to { transform: scale(2.4); opacity: 0; } }

/* Segmented control with a gliding thumb (map filter, race filter, race tabs) */
.seg {
  position: relative; display: inline-flex; max-width: 100%; padding: 4px; border-radius: 999px;
  background: var(--linen); box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .45rem; min-height: 40px;
  padding: .5rem 1rem; border: 0; border-radius: 999px; background: none; cursor: pointer; white-space: nowrap;
  font: 500 .92rem/1 var(--body); color: var(--muted); transition: color .35s;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { color: var(--linen); }
.seg .thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--cedar); box-shadow: 0 8px 16px -8px rgba(28, 42, 43, .7); }
.seg.ready .thumb { transition: transform .5s var(--ease), width .5s var(--ease); }
.seg .dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--c); }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.tint { background: var(--tint); }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.head .hand { display: block; margin-bottom: .35rem; }
.head h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
.head .sub { margin-top: .5rem; max-width: 38rem; color: var(--muted); }
.card { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); padding: 1.4rem; }
.empty { text-align: center; color: var(--muted); padding: 2.6rem 1.4rem; }

/* Live now */
.onair { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.onair a {
  position: relative; isolation: isolate; overflow: hidden; display: grid; gap: .8rem; padding: 1.5rem;
  border-radius: var(--r); background: var(--cedar); color: var(--linen); text-decoration: none;
  transition: transform .45s var(--ease), box-shadow .45s;
}
.onair a::before {
  content: ''; position: absolute; z-index: -1; right: -5rem; bottom: -7rem; width: 14rem; height: 14rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 166, 94, .55), transparent 65%); transition: transform .6s var(--ease);
}
.onair a:hover { color: var(--linen); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.onair a:hover::before { transform: scale(1.25); }
.onair h3 { font-size: 1.45rem; }
.onair .where { color: rgba(248, 241, 231, .78); font-size: .95rem; }
.onair .row { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.onair .watch { font-weight: 600; color: var(--apricot); }

/* Events by city */
.cities { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.city { padding: 1.2rem 1.3rem 1.3rem; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); border-top: 4px solid var(--c); }
.city h3 { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; font-size: 1.3rem; }
.city h3 small { font: 500 .82rem var(--body); color: var(--muted); white-space: nowrap; }
.city ul { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .6rem; }
.city li { display: flex; justify-content: space-between; align-items: center; gap: .4rem .6rem; flex-wrap: wrap; }

/* ---------- Races ---------- */
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.search { position: relative; flex: 1 1 220px; }
.search .ico { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .input { padding-left: 2.6rem; }
.org { flex: 0 1 250px; min-width: 180px; }
.input {
  width: 100%; min-height: 46px; padding: .7rem 1.1rem; border: 0; border-radius: 999px;
  background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem;
  box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .25s;
}
.input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--terracotta), 0 0 0 4px rgba(224, 172, 79, .25); }
select.input {
  -webkit-appearance: none; appearance: none; padding-right: 2.6rem; cursor: pointer;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f6058' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1rem center / 16px;
}
.count { margin: 0 0 1rem; color: var(--muted); font-size: .92rem; }
.list-block + .list-block { margin-top: 2.6rem; }
.list-title { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin: 0 0 .35rem; }
.list-title small { font: 600 .82rem var(--body); color: var(--muted); margin-left: .4rem; letter-spacing: .02em; }
.empty .btn { margin-top: .9rem; }
.tickets { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.ticket {
  --soft: #dcebed; --deep: #235a68;
  display: grid; grid-template-columns: 5.6rem minmax(0, 1fr) auto; overflow: hidden; cursor: pointer;
  border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.ticket:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.ticket.live { --soft: #fbe3da; --deep: #a93622; }
.ticket.completed { --soft: #ece3ee; --deep: #57425d; }
.ticket.cancelled { --soft: #ebe4dc; --deep: #62574f; }
.stub {
  position: relative; display: grid; place-content: center; text-align: center; padding: 1rem .4rem;
  background: var(--soft); color: var(--deep); border-right: 2px dashed rgba(42, 33, 29, .16);
}
.stub::before, .stub::after { content: ''; position: absolute; right: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--linen); }
.stub::before { top: -8px; }
.stub::after { bottom: -8px; }
.stub .mon { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.stub .day { font-family: var(--display); font-size: 2.15rem; font-weight: 600; line-height: 1; }
.stub .yr { font-size: .8rem; }
.t-body { display: grid; gap: .3rem; align-content: center; min-width: 0; padding: 1.1rem 1.3rem; }
.t-body h3 { font-size: 1.3rem; }
.t-name { font: inherit; color: var(--ink); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.t-name:hover { color: var(--terracotta-d); }
.t-meta { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; color: var(--muted); font-size: .95rem; }
.t-meta > span { display: inline-flex; align-items: center; gap: .4rem; }
.t-meta .ico { color: var(--terracotta); }
.t-meta b { font-weight: 600; color: var(--ink); }
.t-end { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: .7rem; padding: 1rem 1.3rem 1rem 0; }
.t-end .arr { font-size: 1.25rem; color: var(--terracotta); transition: transform .35s var(--ease); }
.ticket:hover .t-end .arr { transform: translateX(5px); }
@media (max-width: 640px) {
  .ticket { grid-template-columns: 4.6rem minmax(0, 1fr); }
  .stub { grid-row: span 2; }
  .stub .day { font-size: 1.75rem; }
  .t-body { padding: 1rem 1rem .4rem; }
  .t-body h3 { font-size: 1.15rem; }
  .t-end { flex-direction: row; justify-content: space-between; align-items: center; padding: .2rem 1rem 1rem; }
}

/* ---------- Race page ---------- */
.kicker { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; margin-bottom: .55rem; }
.kicker .no { font-family: var(--hand); font-weight: 600; font-size: 1.75rem; line-height: 1; color: var(--sun); }
.meta { display: flex; flex-wrap: wrap; gap: .45rem 1.6rem; margin-top: 1rem; color: rgba(248, 241, 231, .9); }
.meta span { display: inline-flex; align-items: center; gap: .45rem; }
.meta .ico { color: var(--sun); }
.back { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1.6rem; font-weight: 600; text-decoration: none; }
.back .arr { transition: transform .35s var(--ease); }
.back:hover .arr { transform: translateX(-4px); }
.panel-note { margin: -.8rem 0 1.4rem; color: var(--muted); }
.board { overflow: hidden; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); }
.runs { width: 100%; border-collapse: collapse; }
.runs th {
  padding: 1rem 1.1rem; text-align: left; background: #fbf3e8; border-bottom: 1px solid var(--line);
  font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.runs td { padding: .85rem 1.1rem; border-bottom: 1px solid #f0e4d4; vertical-align: middle; }
.runs tbody tr:last-child td { border-bottom: 0; }
.runs .num { text-align: right; font-variant-numeric: tabular-nums; }
.runs td.run { width: 4rem; color: var(--muted); }
.runs td.rider { font-weight: 600; }
.runs td.t { white-space: nowrap; }
.runs .time { font-family: var(--display); font-weight: 600; font-size: 1.12rem; font-variant-numeric: tabular-nums; }
.runs tr.sect td { padding: .45rem 1.1rem; background: #f6ecdf; font-family: var(--hand); font-weight: 600; font-size: 1.4rem; color: var(--terracotta-d); }
.runs tr.pending td { color: var(--muted); }
.runs tr.deck td { background: #fdeee8; }
.runs tr.first td { background: #fbf3e3; }
.runs tbody tr:not(.sect) { transition: background .2s; }
.runs tbody tr:not(.sect):not(.deck):not(.first):hover td { background: #fcf6ee; }
.runs td.place { width: 4.2rem; }

.rosette {
  --rc: #2a5bb0; --rc2: #5d86cf; --rt: #fff;
  position: relative; isolation: isolate; display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: radial-gradient(circle, var(--rc) 0 56%, rgba(255, 255, 255, .85) 57% 61%, transparent 62%), repeating-conic-gradient(var(--rc) 0 12deg, var(--rc2) 12deg 24deg);
  color: var(--rt); font: 700 .95rem/1 var(--display);
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .35);
}
.rosette::before, .rosette::after {
  content: ''; position: absolute; z-index: -1; top: 70%; width: .7rem; height: 1.1rem; background: var(--rc);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
}
.rosette::before { left: 25%; transform: rotate(14deg); }
.rosette::after { right: 25%; transform: rotate(-14deg); }
.rosette.p2 { --rc: #c0392b; --rc2: #df6b5e; }
.rosette.p3 { --rc: #e2b33a; --rc2: #f0d07a; --rt: #3b2d0b; }
.rosette.p4 { --rc: #efe9de; --rc2: #d6cdbf; --rt: #3b302a; }
.rosette.p5 { --rc: #e48aa6; --rc2: #f0b3c6; --rt: #3b1d27; }
.rosette.p6 { --rc: #3f8a4f; --rc2: #74b081; }
.rosette.p7 { --rc: #6d4f9c; --rc2: #9a80c2; }
.rosette.p8 { --rc: #8a5a3a; --rc2: #b38563; }
.rosette.p9 { --rc: #7f878e; --rc2: #aeb5bb; }
.rosette.p10 { --rc: #6fb2d8; --rc2: #a6d1ea; --rt: #13303f; }
.rosette.pn { --rc: var(--cedar); --rc2: var(--cedar-2); }
.division { margin-bottom: 1.8rem; }
.division h3 { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .8rem; margin-bottom: .85rem; font-size: 1.4rem; }
.division .dpill { padding: .3rem .75rem; border-radius: 999px; background: var(--cedar); color: var(--linen); font: 700 .85rem/1 var(--body); }
.division .places { font: 500 .9rem var(--body); color: var(--muted); }
.ribbon-note { margin-top: -.6rem; margin-bottom: 1.4rem; color: var(--muted); font-size: .9rem; }

@media (max-width: 620px) {
  .runs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .runs tr { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; column-gap: .75rem; padding: .85rem 1rem; border-bottom: 1px solid #f0e4d4; }
  .runs tbody tr:last-child { border-bottom: 0; }
  .runs td, .runs tbody tr:last-child td { padding: 0; border: 0; background: none !important; }
  .runs td.run, .runs td.place { grid-row: 1 / span 3; width: auto; text-align: left; align-self: center; }
  .runs td.rider, .runs td.horse, .runs td.cat { grid-column: 2; }
  .runs td.horse, .runs td.cat { color: var(--muted); font-size: .92rem; }
  .runs td.t { grid-column: 3; grid-row: 1 / span 3; align-self: center; }
  .runs tr.sect { display: block; padding: .4rem 1rem; background: #f6ecdf; }
  .runs tr.deck { background: #fdeee8; }
  .runs tr.first { background: #fbf3e3; }
  .rosette { width: 2.2rem; height: 2.2rem; font-size: .85rem; }
}

.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .55rem 1.2rem; margin: 0; }
.facts dt { padding-top: .2rem; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.enter { padding: 1.3rem; border-radius: var(--r); background: linear-gradient(135deg, #fbefe2, #f5e1d0); }
.enter h3 { font-size: 1.2rem; }
.enter .who { margin: .3rem 0 .9rem; color: var(--muted); }
.details { display: grid; gap: 1.1rem; max-width: 760px; }
.privacy { display: flex; gap: .8rem; align-items: flex-start; margin-top: 1.8rem; padding: 1rem 1.2rem; border-radius: var(--r); background: #f1e6d7; color: var(--muted); font-size: .92rem; }
.privacy .ico { color: var(--terracotta); margin-top: .15rem; }

/* ---------- Event drawer (side panel on computers, bottom sheet on phones) ---------- */
dialog.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; border: 0;
  width: min(460px, 100%); max-width: 100%; height: 100%; max-height: none;
  background: var(--linen); color: var(--ink); overflow: auto; overscroll-behavior: contain;
  box-shadow: -30px 0 60px -20px rgba(10, 8, 6, .45);
}
dialog.drawer[open] { animation: slideIn .55s var(--ease); }
dialog.drawer.closing { animation: slideOut .3s ease-in forwards; }
dialog.drawer::backdrop { background: rgba(28, 42, 43, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.drawer-inner { min-height: 100%; }
.d-head {
  position: relative; isolation: isolate; overflow: hidden; padding: 2.2rem 4.2rem 1.7rem 1.6rem; color: var(--linen);
  background: linear-gradient(165deg, var(--cedar), var(--cedar-2) 55%, #6e3a2c);
}
.d-head::before {
  content: ''; position: absolute; z-index: -1; right: -4rem; bottom: -8rem; width: 15rem; height: 15rem; border-radius: 50%;
  background: radial-gradient(circle, var(--apricot) 0 30%, rgba(242, 166, 94, .45) 31%, transparent 66%);
}
.d-head h2 { margin-top: .7rem; font-size: 1.8rem; }
.d-head .no { margin-top: .35rem; font-family: var(--hand); font-weight: 600; font-size: 1.45rem; color: var(--apricot); }
.d-close {
  position: absolute; top: 1rem; right: 1rem; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(248, 241, 231, .15); color: var(--linen); font-size: 1.6rem; line-height: 1;
  transition: background .25s, transform .4s var(--ease);
}
.d-close:hover { background: rgba(248, 241, 231, .28); transform: rotate(90deg); }
.d-body { display: grid; gap: 1.2rem; padding: 1.5rem 1.6rem 2rem; }
.d-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.d-list li { display: grid; gap: .65rem; padding: 1rem 1.1rem; border-radius: var(--r-sm); background: var(--paper); box-shadow: var(--shadow); }
.d-list strong { font-family: var(--display); font-weight: 600; font-size: 1.12rem; }
.d-list .row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes slideOut { to { transform: translateX(100%); } }
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetOut { to { transform: translateY(100%); } }
@media (max-width: 640px) {
  dialog.drawer { inset: auto 0 0 0; width: 100%; height: auto; max-height: 88vh; border-radius: 24px 24px 0 0; box-shadow: 0 -20px 50px -20px rgba(10, 8, 6, .5); }
  dialog.drawer[open] { animation-name: sheetIn; }
  dialog.drawer.closing { animation-name: sheetOut; }
  .d-head::after { content: ''; position: absolute; top: .6rem; left: 50%; width: 2.6rem; height: 4px; margin-left: -1.3rem; border-radius: 4px; background: rgba(248, 241, 231, .35); }
  .d-body { padding: 1.3rem 1.2rem 1.6rem; }
}

/* ---------- About ---------- */
.what-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.what-art {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: end; justify-content: center;
  padding: 1.5rem 1rem 0; border-radius: 50% 50% var(--r-lg) var(--r-lg);
  background: radial-gradient(circle at 75% 25%, var(--honey), transparent 55%), var(--sand);
}
.what-art::after {
  content: ''; position: absolute; z-index: -1; bottom: 0; inset-inline: 0; height: 70px;
  background: url(../img/hills.svg) center bottom / 100% 100% no-repeat;
}
.what-art img { width: min(100%, 230px); height: auto; }
.what-copy {
  color: var(--ink);
}
.what-copy h2 { margin: .65rem 0 1.2rem; font-size: clamp(1.9rem, 4vw, 2.75rem); }
.what-copy h2 em { color: var(--terracotta-d); font-weight: 400; }
.what-copy p { max-width: 36rem; font-size: 1.12rem; line-height: 1.6; color: var(--muted); }
.what-copy .promise { margin-top: 1.5rem; padding-left: 1.1rem; border-left: 3px solid var(--honey); font-family: var(--display); font-size: clamp(1.4rem, 2.5vw, 1.8rem); color: var(--cedar); line-height: 1.35; }
.what-copy .what-by { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; margin-top: 1.6rem; font-size: .85rem; }
.what-copy .company-wordmark { width: 230px; }
@media (max-width: 640px) {
  .what-card { grid-template-columns: minmax(0, 1fr); }
  .what-art { width: 230px; max-width: 100%; justify-self: center; }
  .what-art img { width: 160px; }
}
.story { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.story h2 { margin: .2rem 0 .9rem; font-size: clamp(1.9rem, 4vw, 2.75rem); }
.story .big { font-family: var(--display); font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.45; color: var(--muted); }
.film { position: relative; isolation: isolate; }
.film::before { content: ''; position: absolute; z-index: -1; inset: 1.2rem -1.2rem -1.2rem 1.2rem; border-radius: var(--r-lg); background: var(--sand); }
@media (max-width: 640px) { .film::before { inset: .8rem -.5rem -.8rem .8rem; } }
.film video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-lg); background: var(--cedar); box-shadow: var(--shadow-lg); }
.note { margin-top: 2rem; color: var(--muted); font-size: .9rem; }
.prose { max-width: 48rem; font-size: 1.12rem; }
.prose p + p { margin-top: 1rem; }
.features { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); counter-reset: feature; }
.feature { padding: 1.6rem 1.5rem; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); transition: transform .45s var(--ease), box-shadow .45s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-up); }
.feature::before {
  counter-increment: feature; content: counter(feature, decimal-leading-zero); display: block; margin-bottom: .7rem;
  font-family: var(--display); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--terracotta);
}
.feature h3 { margin-bottom: .45rem; font-size: 1.3rem; }
.feature p, .abilities span { color: var(--muted); }
.abilities { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 2.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.abilities li { display: grid; gap: .3rem; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.abilities b { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.goal {
  position: relative; isolation: isolate; overflow: hidden; padding: clamp(2rem, 6vw, 4.5rem); border-radius: var(--r-lg);
  color: var(--linen); background: linear-gradient(180deg, var(--cedar), var(--horizon));
}
.goal::before {
  content: ''; position: absolute; z-index: -1; right: -6rem; bottom: -12rem; width: 28rem; height: 28rem; border-radius: 50%;
  background: radial-gradient(circle, var(--sun) 0 32%, var(--sun-glow) 33%, transparent 68%);
}
.goal h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.goal blockquote { max-width: 44rem; margin: 1.2rem 0; font-family: var(--display); font-style: italic; font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.32; }
.goal p { max-width: 40rem; color: rgba(248, 241, 231, .88); }
.goal .actions { margin-top: 1.6rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: 2rem; align-items: start; }
.form { display: grid; gap: 1.1rem; padding: clamp(1.4rem, 4vw, 2.4rem); }
.form h2 { font-size: 1.9rem; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; font-size: .95rem; font-weight: 500; }
.field .input { border-radius: var(--r-sm); }
textarea.input { min-height: 9rem; resize: vertical; }
.form .small { color: var(--muted); font-size: .9rem; }
.status { min-height: 1.4em; font-weight: 500; color: var(--terracotta-d); }
.card-dark { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 1.2rem; padding: 1.9rem; border-radius: var(--r); background: var(--cedar); color: var(--linen); }
.card-dark::before {
  content: ''; position: absolute; z-index: -1; right: -5rem; bottom: -9rem; width: 18rem; height: 18rem; border-radius: 50%;
  background: radial-gradient(circle, var(--sun) 0 30%, var(--sun-glow) 31%, transparent 66%);
}
.card-dark .hand { font-size: 2rem; color: var(--sun); }
.card-dark .facts dt { color: rgba(248, 241, 231, .62); }
.card-dark a { color: var(--linen); }
.card-dark a:hover { color: var(--sun); }
.card-dark .privacy { margin: 0; background: rgba(248, 241, 231, .1); color: rgba(248, 241, 231, .85); }
.card-dark .privacy .ico { color: var(--sun); }

/* ---------- Footer ---------- */
.foot { position: relative; margin-top: 4rem; padding: 3.5rem 0 1.6rem; background: var(--cedar); color: rgba(248, 241, 231, .78); font-size: .92rem; }
.foot::before { content: ''; position: absolute; left: 0; right: 0; top: -59px; height: 60px; background: url(../img/hills-dark.svg) center bottom / 100% 100% no-repeat; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.foot .hand { font-size: 2.1rem; color: var(--apricot); }
.foot a { display: inline-block; min-height: 24px; color: var(--linen); }
.foot a:hover { color: var(--apricot); }
.foot small { display: block; margin-top: .4rem; font-size: .875rem; color: rgba(248, 241, 231, .78); }
.foot .switch { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(248, 241, 231, .12); justify-content: center; align-items: center; gap: .8rem; font-size: .85rem; }
.foot .switch a { padding: .35rem .85rem; border-radius: 999px; background: rgba(248, 241, 231, .12); text-decoration: none; font-weight: 600; }

/* ---------- Gentle scroll reveal ---------- */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js-reveal [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .stage .wrap, .story, .contact { grid-template-columns: minmax(0, 1fr); }
  .welcome-column { display: contents; }
  #welcome-intro, #welcome-intro[hidden] { display: block; grid-row: 1; }
  .stage .map-paper { grid-row: 2; }
  .map-details { grid-row: 3; max-height: none; }
  .map-details .back-to-map { display: inline-block; min-height: 44px; margin-top: .6rem; color: var(--linen); }
  .map-details .d-close { width: 44px; height: 44px; }
  .stage { padding-top: 2.4rem; }
  .tallies { max-width: none; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 1.75rem); }
  :root { --head-h: 17rem; }
  .sky { padding: 2.4rem 0 5rem; }
  .sky::before { right: -9rem; bottom: -12rem; width: 24rem; height: 24rem; }
  .map-paper { padding: 1.1rem .8rem .9rem; border-radius: 22px; }
  .map-paper header { padding-inline: .4rem; }
  .tally { padding: .7rem .75rem; }
  .tally .n { font-size: 1.7rem; }
  .form .two { grid-template-columns: 1fr; }
  .org { flex: 1 1 100%; }
  .controls .seg { width: 100%; }
  .controls .seg button { flex: 1; justify-content: center; padding-inline: .5rem; }
}
@media (max-width: 420px) {
  .opt { display: none; }
  .logo small { letter-spacing: .12em; }
}

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none !important; opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
}
@media print {
  .top, .foot, .seg, .controls, .actions { display: none !important; }
  .sky { color: var(--ink); background: none; min-height: 0; padding: 1rem 0; }
  .sky::before, .sky::after { display: none; }
}

.demo-notice { padding: .8rem 1.25rem; text-align: center; background: #efe0c9; color: #1c2a2b; font: 400 .9rem/1.5 Outfit, sans-serif; }
