/* RUNX Seattle — shared header, footer and inner pages (Race Info, FAQ).
   Loads after styles.css and reuses its tokens, pills and waitlist pop-up. */

/* ---------- header (every page) ---------- */
.links .nav__date { font: 500 12px/1 var(--mono); letter-spacing: .02em; color: var(--energy); }
.links a[aria-current="page"] { background-size: 100% 1px; }
.menu-btn {
  display: none; position: relative; width: 40px; height: 40px; margin-left: 10px; padding: 0;
  border: 1px solid rgba(245, 247, 223, .3); border-radius: 50%; background: none; color: var(--paper); cursor: pointer;
}
.menu-btn i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .6s var(--ease-out), top .6s var(--ease-out); }
.menu-btn i:first-child { top: 16px; }
.menu-btn i:last-child { top: 22px; }
.menu-btn[aria-expanded="true"] i:first-child { top: 19px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { top: 19px; transform: rotate(-45deg); }

.menu-panel {
  position: fixed; inset: 0; z-index: 29; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 36px;
  padding: 110px var(--pad) calc(32px + env(safe-area-inset-bottom)); background: var(--ink);
}
.menu-panel__links { list-style: none; margin: 0; padding: 0; display: grid; }
.menu-panel__links a {
  display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 12px; border-top: 2px solid var(--energy);
  font-family: var(--display); font-weight: 500; font-variation-settings: "opsz" 72; font-size: clamp(44px, 13vw, 72px); line-height: .9; letter-spacing: -.03em;
  text-transform: uppercase; text-decoration: none;
}
.menu-panel__links a span { font: 500 12px/1 var(--mono); letter-spacing: 0; color: var(--energy); }
.menu-panel__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; font: 500 12px/1.4 var(--mono); text-transform: uppercase; }
.menu-open { overflow: hidden; }

/* ---------- universal footer ---------- */
.site-foot {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 24px 40px;
  padding-top: 28px; border-top: 1px solid rgba(245, 247, 223, .18);
  font: 500 12px/1.4 var(--mono); text-transform: uppercase;
}
.site-foot__brand { display: grid; gap: 7px; width: 132px; text-decoration: none; }
.site-foot__brand svg { width: 100%; height: auto; fill: var(--paper); }
.site-foot__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-foot__links a, .site-foot .back {
  text-decoration: none; opacity: .7; transition: opacity .8s var(--ease-out);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 3px;
}
.site-foot__links a:hover, .site-foot__links a:focus-visible { opacity: 1; background-size: 100% 1px; transition: opacity .8s var(--ease-out), background-size .9s var(--ease-out); }
.site-foot__social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.site-foot__social a {
  display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(245, 247, 223, .3); border-radius: 50%;
  transition: border-color .8s var(--ease-out), background .8s var(--ease-out);
}
.site-foot__social svg { width: 16px; height: 16px; fill: var(--paper); transition: fill .8s var(--ease-out); }
.site-foot__social a:hover, .site-foot__social a:focus-visible { background: var(--energy); border-color: var(--energy); }
.site-foot__social a:hover svg, .site-foot__social a:focus-visible svg { fill: var(--ink); }
.site-foot__legal { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0; opacity: .5; }

/* home page 2: the footer spans both columns under the slideshow */
.page--city .site-foot { grid-column: 1 / -1; margin-top: clamp(36px, 4vw, 56px); }

/* ---------- inner pages: normal document scroll ---------- */
html:has(body.inner) { height: auto; }
body.inner { height: auto; min-height: 100%; overflow: visible; overflow-x: clip; }
.inner .nav { position: sticky; top: 0; background: linear-gradient(var(--ink) 62%, rgba(0, 0, 0, 0)); }
.inner-main { padding: clamp(28px, 4vw, 56px) var(--pad) 0; }
.inner-foot { padding: clamp(80px, 9vw, 140px) var(--pad) 28px; }

.display {
  margin: 0; font-family: var(--display); font-weight: 500; font-variation-settings: "opsz" 72;
  line-height: .88; letter-spacing: -.035em; text-transform: uppercase;
}
.display--xl { font-size: clamp(64px, 11.5vw, 210px); }
.display--lg { font-size: clamp(44px, 6.4vw, 116px); }
.display--md { font-size: clamp(32px, 3.6vw, 60px); }
.mono { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .02em; }
.accent { color: var(--energy); }
.body-copy { margin: 0; max-width: 46ch; font: 500 clamp(18px, 1.6vw, 24px)/1.35 var(--text); }
.body-copy + .body-copy { margin-top: 1em; }
.rule { border-top: 2px solid var(--energy); }

/* page intro: title left, X-aperture photo right */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .62fr); gap: clamp(32px, 5vw, 96px); align-items: end; }
.intro .eyebrow { margin-bottom: clamp(20px, 2.4vw, 32px); }
.intro__dates { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: clamp(28px, 3.4vw, 52px); }
.intro__x {
  position: relative; aspect-ratio: 458.23 / 457.4; overflow: hidden; background: #0b0b0b;
  -webkit-mask: var(--x-mask) center / contain no-repeat; mask: var(--x-mask) center / contain no-repeat;
}
.intro__x img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* race block: name left, details right */
.block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); margin-top: clamp(80px, 10vw, 160px); padding-top: 18px; }
.block__head { display: grid; align-content: start; gap: 18px; }
.block__body { display: grid; align-content: start; gap: clamp(32px, 3.4vw, 48px); }
.specs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 2.4vw, 40px); }
.specs div { display: grid; gap: 10px; padding: 16px 0 22px; border-top: 1px solid rgba(245, 247, 223, .2); }
.specs dt { font: 500 12px/1 var(--mono); text-transform: uppercase; color: var(--energy); }
.specs dd { margin: 0; font: 500 clamp(17px, 1.4vw, 21px)/1.3 var(--text); }

.benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0 clamp(20px, 2.4vw, 40px); }
.benefits li {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 18px 0 20px;
  border-top: 1px solid rgba(245, 247, 223, .2); font: 500 clamp(18px, 1.5vw, 22px)/1.3 var(--text);
}
.benefits li::before { content: ""; width: 14px; aspect-ratio: 1; background: var(--energy); -webkit-mask: var(--x-mask) center / contain no-repeat; mask: var(--x-mask) center / contain no-repeat; translate: 0 1px; }
.benefits small { display: block; margin-top: 4px; font: 500 12px/1.3 var(--mono); text-transform: uppercase; opacity: .6; }

/* "JOIN THE LIST." data capture */
.capture { margin-top: clamp(80px, 10vw, 160px); padding: clamp(28px, 4vw, 64px); background: var(--energy); color: var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); }
.capture .eyebrow { color: var(--ink); }
.capture .body-copy { margin-top: 22px; }
.capture__fine { margin: 14px 0 0; font: 500 12px/1.4 var(--mono); text-transform: uppercase; }
.capture .waitlist__form { margin-top: 0; align-self: end; }
.capture .field label { opacity: .8; }
.capture .field input { border-color: rgba(0, 0, 0, .35); color: var(--ink); }
.capture .field input:focus { border-color: var(--ink); }
.capture .field input[aria-invalid="true"], .capture .waitlist__error { border-color: #B32A00; color: #B32A00; }
.capture .pill { background: var(--ink); color: var(--paper); }
.capture .pill:hover, .capture .pill:focus-visible { background: #1d1d1d; }
.capture .pill:focus-visible, .capture input:focus-visible { outline-color: var(--ink); }
.capture .waitlist__fine { opacity: .7; }
.capture .waitlist__done { align-self: end; }
.capture .waitlist__mark { fill: var(--ink); }

/* FAQ */
.faq { margin-top: clamp(64px, 8vw, 128px); display: grid; gap: clamp(64px, 8vw, 120px); }
.faq__group { display: grid; grid-template-columns: minmax(0, .5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); }
.faq__group > h2 { position: sticky; top: 110px; align-self: start; padding-top: 18px; }
.faq__list { border-bottom: 1px solid rgba(245, 247, 223, .2); }
.qa { border-top: 2px solid var(--energy); }
.qa + .qa { border-top-width: 1px; border-top-color: rgba(245, 247, 223, .2); }
.qa summary {
  display: grid; grid-template-columns: minmax(0, 1fr) 40px; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none;
  font: 500 clamp(20px, 1.8vw, 28px)/1.2 var(--text);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:focus-visible { outline: 2px solid var(--energy); outline-offset: 4px; }
.qa__icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(245, 247, 223, .3); border-radius: 50%; transition: border-color .8s var(--ease-out), background .8s var(--ease-out); }
.qa__icon svg { width: 12px; fill: var(--paper); rotate: 45deg; transition: rotate .8s var(--ease-out), fill .8s var(--ease-out); }
.qa summary:hover .qa__icon { border-color: var(--energy); }
.qa[open] .qa__icon { background: var(--energy); border-color: var(--energy); }
.qa[open] .qa__icon svg { rotate: 0deg; fill: var(--ink); }
.qa__a { padding: 0 56px 30px 0; display: grid; gap: 1em; font: 500 clamp(16px, 1.25vw, 19px)/1.5 var(--text); color: rgba(245, 247, 223, .82); }
.qa__a p, .qa__a ul { margin: 0; }
.qa__a ul { padding-left: 1.1em; }
.qa__a a { color: var(--energy); }

/* scroll reveal (only when JS + motion are available) */
.can-reveal [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1.4s var(--ease-out), transform 1.4s var(--ease-out); }
.can-reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .links .nav__date, .links a:not(.pill) { display: none; }
  .links .hide-sm { display: none; }
  .menu-btn { display: block; }
  .nav .pill--sm { height: 40px; padding: 0 16px; }

  .site-foot { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .page--city .site-foot { order: 7; }

  .intro, .block, .capture, .faq__group { grid-template-columns: minmax(0, 1fr); }
  .intro__x { width: min(100%, 420px); justify-self: center; order: -1; }
  .specs { grid-template-columns: minmax(0, 1fr); }
  .faq__group > h2 { position: static; }
  .qa__a { padding-right: 0; }
}
@media (min-width: 761px) { .menu-panel { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .can-reveal [data-reveal] { opacity: 1; transform: none; } }

/* privacy policy */
.legal { max-width: 760px; margin-top: clamp(56px, 7vw, 110px); padding-top: clamp(28px, 3vw, 44px); font: 400 16px/1.65 var(--text); color: rgba(245, 247, 223, .86); }
.legal h2 { margin: clamp(48px, 5vw, 72px) 0 18px; font-family: var(--display); font-weight: 500; font-variation-settings: "opsz" 72; font-size: clamp(26px, 2.6vw, 38px); line-height: 1; letter-spacing: -.02em; text-transform: uppercase; color: var(--paper); scroll-margin-top: 110px; }
.legal h3 { margin: 32px 0 10px; font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .02em; color: var(--energy); }
.legal p, .legal ul { margin: 0 0 1em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .6em; }
.legal li::marker { color: var(--energy); }
.legal strong { font-weight: 500; color: var(--paper); }
.legal a { color: var(--energy); overflow-wrap: anywhere; }
.waitlist__fine a { color: inherit; text-underline-offset: 2px; }

/* home page 2: About copy, partner block and list sign-up */
.city__about { display: grid; gap: 1em; justify-items: start; }
.city__about .city__lede { margin-top: clamp(28px, 3vw, 44px); }
.city__copy { margin: 0; max-width: 46ch; font: 500 clamp(16px, 1.25vw, 19px)/1.5 var(--text); opacity: .75; }
.textlink {
  margin-top: 6px; font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .02em; color: var(--energy); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px;
}
.textlink span { display: inline-block; transition: translate .8s var(--ease-out); }
.textlink:hover span, .textlink:focus-visible span { translate: 4px 0; }
.page--city .city__partner, .page--city .capture { grid-column: 1 / -1; }
.page--city .city__partner { margin-top: clamp(64px, 8vw, 128px); }
@media (max-width: 760px) {
  .city__about { order: 4; }
  .page--city .city__partner { order: 8; }
  .page--city .capture { order: 9; }
  .page--city .site-foot { order: 10; }
}
@media (max-width: 359px) {
  .nav .brand { height: 12px; }
  .nav .pill--sm { padding: 0 12px; font-size: 12px; }
  .menu-btn { margin-left: 6px; }
}

/* Let's Do This chat widget: hidden until the cookie banner is answered (see site.js) */
.consent-pending #experience-widget-root { display: none !important; }

/* list confirmation during Insider Registration (site.js applyConfirmation) */
.insider { display: grid; gap: 12px; justify-items: start; max-width: 46ch; margin-top: 18px; }
.insider p { margin: 0; }
.insider__kicker { font-family: var(--display); font-weight: 500; font-variation-settings: "opsz" 72; font-size: clamp(22px, 2.4vw, 30px); line-height: 1; letter-spacing: -.02em; text-transform: uppercase; color: var(--energy); }
.insider__lede { font: 500 16px/1.45 var(--text); }
.insider__actions { margin: 8px 0 6px; }
.insider__fine { font: 500 13px/1.45 var(--text); opacity: .72; }
.insider__meta { font: 500 12px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .02em; }
.waitlist__done.is-insider > .pill { display: none; } /* the pop-up's Close pill — the × still closes it */
.capture .insider__kicker { color: var(--ink); }
/* after signing up in the pop-up, the confirmation replaces the "Join the list" intro */
.waitlist__panel.is-done > .waitlist__eyebrow, .waitlist__panel.is-done > .waitlist__title, .waitlist__panel.is-done > .waitlist__lede { display: none; }
.waitlist__panel.is-done .waitlist__title--done { padding-right: 40px; }
