@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/big-shoulders-display-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/big-shoulders-display-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/big-shoulders-display-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 900; font-display: swap; src: url(/fonts/big-shoulders-display-latin-900-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/public-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/public-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/public-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/public-sans-latin-700-normal.woff2) format("woff2"); }

/* SponsorTee — kit cobalt, race-bib yellow, cool paper. */
:root {
  --paper: #F4F6F9;
  --card: #FFFFFF;
  --ink: #161B26;
  --slate: #5B6578;
  --line: #D8DEE8;
  --cobalt: #2147D6;
  --cobalt-dark: #1836A8;
  --bib: #FFD43B;
  --bib-soft: #FFF3C4;
  --ok: #17803D;
  --warn: #B4540A;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-s: 6px;
  --radius-m: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--body); }
img, svg { max-width: 100%; display: block; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-dark); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); line-height: 0.95; margin: 0 0 0.4em; letter-spacing: 0.005em; }
h1 { font-size: clamp(3.2rem, 9vw, 7rem); font-weight: 900; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 800; }
h3 { font-size: 1.6rem; font-weight: 800; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: 1.2rem; color: var(--slate); max-width: 52ch; }
.muted { color: var(--slate); }
.small { font-size: 0.9rem; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 40px); margin-inline: auto; }
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }

/* header */
.site-head { border-bottom: 1px solid var(--line); background: var(--card); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.wordmark { font: 900 1.9rem/1 var(--display); color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.wordmark .tag { display: inline-block; width: 18px; height: 22px; background: var(--bib); border: 2px solid var(--ink); border-radius: 3px; position: relative; }
.wordmark .tag::after { content: ""; position: absolute; top: 3px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ink); }
.site-head nav { display: flex; gap: 22px; font-weight: 600; font-size: 0.95rem; }
.site-head nav a { color: var(--ink); text-decoration: none; }
.site-head nav a:hover { color: var(--cobalt); }

.site-foot { padding: 40px 0 56px; color: var(--slate); font-size: 0.9rem; border-top: 1px solid var(--line); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-foot a { color: var(--slate); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 700 1rem/1 var(--body); border: 2px solid var(--ink); background: var(--ink); color: #fff; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover { background: var(--ink); color: #fff; }
.btn.bib { background: var(--bib); color: var(--ink); }
.btn.bib:hover { background: var(--ink); color: var(--bib); border-color: var(--ink); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 0.9rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--cobalt); text-decoration: underline; cursor: pointer; }

/* forms */
form .field { margin-bottom: 18px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
.hint { font-weight: 400; color: var(--slate); font-size: 0.9rem; }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=date], input[type=password], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-s);
  font: inherit; color: var(--ink); background: #fff; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--cobalt); outline: none; box-shadow: 0 0 0 3px rgba(33, 71, 214, 0.18); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--cobalt); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.error { background: #FDECEC; color: #8E1B1B; border-radius: var(--radius-s); padding: 12px 14px; margin: 0 0 16px; }
.notice { background: var(--bib-soft); border-left: 4px solid var(--bib); padding: 12px 16px; border-radius: 0 var(--radius-s) var(--radius-s) 0; margin: 0 0 20px; }
.demo-bar { background: var(--ink); color: #fff; font-size: 0.9rem; text-align: center; padding: 8px 16px; }
.demo-bar strong { color: var(--bib); }

/* shirt */
.shirt-svg { width: 100%; height: auto; overflow: visible; }
.shirt-svg .slot { cursor: default; }
.shirt-svg .slot.open { cursor: pointer; }
.shirt-svg .slot.open rect.box { fill: var(--bib); fill-opacity: 0.55; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 4 3; }
.shirt-svg .slot.open:hover rect.box, .shirt-svg .slot.open:focus rect.box { fill-opacity: 1; }
.shirt-svg .slot.open:focus { outline: none; }
.shirt-svg .slot.open:focus rect.box { stroke: var(--cobalt); stroke-width: 2.5; stroke-dasharray: none; }
.shirt-svg .slot.selected rect.box { fill: var(--bib); fill-opacity: 1; stroke: var(--cobalt); stroke-width: 2.5; stroke-dasharray: none; }
.shirt-svg .slot.held rect.box { fill: #9AA3B5; fill-opacity: 0.25; stroke: #9AA3B5; stroke-dasharray: 2 3; }
.shirt-svg .slot-label { font: 700 9px var(--body); fill: var(--ink); pointer-events: none; }
.shirt-svg .slot-price { font: 500 7.5px var(--body); fill: var(--ink); pointer-events: none; }
.side-toggle { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.side-toggle button { font: 700 0.95rem var(--body); padding: 8px 20px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.side-toggle button[aria-pressed=true] { background: var(--ink); color: #fff; }

/* campaign hero */
.ride-hero { padding: 56px 0 64px; }
.ride-hero .wrap { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.ride-hero .rider { font-weight: 600; color: var(--slate); margin: 0 0 8px; }
.route { margin-top: 28px; max-width: 640px; }
.route-line { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.route-line .dot { width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--ink); background: var(--paper); }
.route-line .dot.end { background: var(--ink); }
.route-line .track { height: 4px; background: repeating-linear-gradient(90deg, var(--ink) 0 18px, transparent 18px 26px); }
.route-names { display: flex; justify-content: space-between; gap: 20px; margin-top: 10px; font-weight: 600; }
.route-names span:last-child { text-align: right; }
.route-meta { color: var(--slate); margin-top: 6px; }

/* race bib */
.bib-card { width: 250px; background: #fff; border: 2px solid var(--ink); border-radius: 8px; padding: 26px 22px 20px; position: relative; transform: rotate(2deg);
  box-shadow: 6px 6px 0 var(--ink); }
.bib-card::before, .bib-card::after { content: ""; position: absolute; top: 10px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); }
.bib-card::before { left: 10px; } .bib-card::after { right: 10px; }
.bib-card .pins-bottom::before, .bib-card .pins-bottom::after { content: ""; position: absolute; bottom: 10px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); }
.bib-card .pins-bottom::before { left: 10px; } .bib-card .pins-bottom::after { right: 10px; }
.bib-card .num { font: 900 5.2rem/0.85 var(--display); text-align: center; }
.bib-card .num small { font-size: 2rem; color: var(--slate); }
.bib-card .cap { text-align: center; font-weight: 600; margin: 8px 0 14px; }
.bib-card .pledged { border-top: 2px solid var(--ink); padding-top: 10px; text-align: center; font-size: 0.95rem; }
.bib-card .pledged b { font: 900 1.7rem/1 var(--display); display: block; }

/* shirt section */
.shirt-layout { display: grid; grid-template-columns: minmax(300px, 520px) 1fr; gap: 56px; align-items: start; }
.shirt-stage { position: sticky; top: 24px; }
.shirt-stage .side-toggle { margin-bottom: 16px; }
.tier-list { list-style: none; padding: 0; margin: 0; }
.tier-list li { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.tier-list li:first-child { border-top: 1px solid var(--line); }
.tier-list .name { font: 800 1.7rem/1 var(--display); }
.tier-list .cost { font-weight: 600; }
.tier-list .cost .don { color: var(--ok); }
.tier-list .blurb { color: var(--slate); font-size: 0.95rem; margin: 0; }
.tier-list .left { font-size: 0.9rem; color: var(--slate); }
.tier-list .act { grid-row: 1 / span 3; grid-column: 2; }

.charities { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 20px; }
.charity { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px; }
.charity h3 { margin-bottom: 12px; }

.wall { columns: 2; column-gap: 40px; list-style: none; padding: 0; margin: 20px 0 0; }
.wall li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.wall .tier { color: var(--slate); font-size: 0.9rem; }

/* split / money */
.money-split { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--ink); border-radius: var(--radius-m); overflow: hidden; margin: 8px 0 20px; }
.money-split > div { padding: 16px 18px; }
.money-split > div + div { border-left: 2px solid var(--ink); background: var(--bib-soft); }
.money-split .amt { font: 900 2.2rem/1 var(--display); }
.money-split .what { font-size: 0.92rem; color: var(--slate); margin-top: 4px; }

.two-col { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 56px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 28px; }

/* landing */
.home-hero { padding: 64px 0 40px; }
.home-hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.home-hero h1 { font-size: clamp(3.4rem, 8vw, 6.4rem); }
.home-hero .lede { margin-bottom: 28px; }
.hero-shirt { position: relative; }
.hero-shirt .caption { text-align: center; color: var(--slate); font-size: 0.9rem; margin-top: 8px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps li { counter-increment: s; border-top: 4px solid var(--ink); padding-top: 14px; }
.steps li::before { content: counter(s); font: 900 3rem/1 var(--display); color: var(--cobalt); display: block; margin-bottom: 8px; }
.steps h3 { font-size: 1.4rem; }
.steps p { color: var(--slate); font-size: 0.97rem; }

/* dashboard */
table.data { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.data th, table.data td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data th { font-weight: 700; color: var(--slate); font-size: 0.85rem; }
table.data td.logo img { width: 72px; height: 40px; object-fit: contain; background: #F0F2F6; border-radius: 4px; }
.table-scroll { overflow-x: auto; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; background: #EEF1F6; color: var(--slate); white-space: nowrap; }
.pill.ok { background: #DDF3E4; color: var(--ok); }
.pill.warn { background: #FCE9D6; color: var(--warn); }
.pill.bad { background: #FDECEC; color: #8E1B1B; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; margin: 0; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--ok); }
.art-previews { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.art-previews figure { margin: 0; background: repeating-conic-gradient(#E7EAF0 0% 25%, #fff 0% 50%) 50% / 20px 20px; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px; }
.art-previews figcaption { font-size: 0.85rem; color: var(--slate); margin-top: 6px; }
.stat-row { display: flex; flex-wrap: wrap; gap: 36px; margin: 8px 0 0; }
.stat-row div b { display: block; font: 900 2.4rem/1 var(--display); }
.stat-row div span { color: var(--slate); font-size: 0.9rem; }

@media (max-width: 900px) {
  .shirt-layout, .two-col, .home-hero .wrap { grid-template-columns: 1fr; }
  .shirt-stage { position: static; max-width: 460px; }
  .ride-hero .wrap { grid-template-columns: 1fr; }
  .bib-card { transform: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .wall { columns: 1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 52px 0; }
  .grid-2, .money-split, .art-previews, .steps { grid-template-columns: 1fr; }
  .money-split > div + div { border-left: 0; border-top: 2px solid var(--ink); }
  .site-head nav { gap: 14px; font-size: 0.88rem; }
  .tier-list li { grid-template-columns: 1fr; }
  .tier-list .act { grid-row: auto; grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Legal pages: plain prose with readable headings */
.legal h2 { font-size: 2.2rem; margin-top: 1.6em; }
.legal ul, .legal ol { padding-left: 1.3em; margin: 0 0 1em; max-width: 68ch; }
.legal li { margin-bottom: 0.4em; }

/* Live challenges list */
.challenge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 32px; }
.challenge-card { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 24px; color: var(--ink); text-decoration: none; }
.challenge-card:hover { border-color: var(--ink); }
.challenge-card h3 { margin: 8px 0 0; }
.challenge-card p { margin: 0; }
.challenge-stat { font-weight: 600; margin-top: 8px !important; }
.challenge-go { margin-top: auto; padding-top: 12px; color: var(--cobalt); font-weight: 600; }

/* Phone layout: header links sit on their own row, and controls are at least 44px to tap */
@media (max-width: 640px) {
  .site-head .wrap { flex-wrap: wrap; height: auto; padding: 12px 0; row-gap: 8px; }
  .site-head nav { width: 100%; flex-wrap: wrap; gap: 6px 18px; font-size: 0.95rem; }
  .site-head nav a { white-space: nowrap; padding: 6px 0; }
}
.wordmark { min-height: 44px; }
.check { min-height: 44px; padding: 6px 0; }
.btn.small { min-height: 44px; }
.side-toggle button { min-height: 44px; min-width: 44px; }
input[type="file"] { min-height: 44px; }

/* Fundraising page question on the start page */
.page-help { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px 20px; margin: 0 0 24px; }
.page-help legend { font-weight: 700; padding: 0 6px; }
.page-help .page-panel { margin-top: 12px; }
.page-sites { padding-left: 1.2em; margin: 8px 0 0; }
