:root {
  --ink: #102b36;
  --ink-soft: #31505a;
  --navy: #082f3d;
  --paper: #fbf7ef;
  --surface: #fffdf8;
  --line: #d8d0c4;
  --coral: #d1495b;
  --teal: #00798c;
  --gold: #c98216;
  --green: #2f855a;
  --violet: #6656a6;
  --shadow: 0 16px 42px rgba(16, 43, 54, .11);
  --max: 1180px;
  --reading: 70ch;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background-image: linear-gradient(rgba(16, 43, 54, .035) 1px, transparent 1px);
  background-size: 100% 36px;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, select { font: inherit; }
:focus-visible { outline: 3px solid #f3a712; outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1rem;
  color: white;
  background: var(--navy);
  border-radius: 6px;
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 200;
  top: 0;
  background: rgba(251, 247, 239, .96);
  border-bottom: 1px solid rgba(16, 43, 54, .14);
  backdrop-filter: blur(14px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(100% - 2rem, var(--max));
  min-height: 68px;
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-width: 44px;
  min-height: 44px;
  margin-right: auto;
  text-decoration: none;
}
.route-badge { flex: 0 0 40px; width: 40px; height: 40px; overflow: visible; }
.brand-copy, .brand-copy strong, .brand-copy > span { display: block; line-height: 1.15; }
.brand-copy { white-space: nowrap; }
.brand strong { font-size: .95rem; }
.brand-copy > span { color: var(--ink-soft); font-size: .72rem; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: .15rem; }
.site-nav a, .print-control, .menu-control {
  min-height: 44px;
  padding: .65rem .72rem;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: .79rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="true"] { color: var(--ink); background: white; border-color: var(--line); }
.print-control { color: white; background: var(--navy); border-color: var(--navy); cursor: pointer; }
.menu-control { display: none; color: white; background: var(--navy); border-color: var(--navy); cursor: pointer; }

main { position: relative; z-index: 1; }
.section-inner { width: min(100% - 2rem, var(--max)); margin: 0 auto; }
.section {
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
  scroll-margin-top: 70px;
}
.section + .section { border-top: 1px solid rgba(16, 43, 54, .1); }
.eyebrow {
  margin: 0 0 .55rem;
  color: var(--coral);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}
h1, h2, h3, h4 { margin: 0; line-height: 1; letter-spacing: 0; text-wrap: balance; }
h1 { font-size: clamp(3.3rem, 8vw, 7.7rem); }
h2 { font-size: clamp(2.4rem, 5.2vw, 5.2rem); }
h3 { font-size: clamp(1.8rem, 3vw, 3.2rem); }
h4 { font-size: clamp(1.12rem, 1.6vw, 1.4rem); }
p { max-width: var(--reading); }
.lede { color: var(--ink-soft); font-size: clamp(1.08rem, 1.8vw, 1.35rem); }
.section-heading { margin-bottom: clamp(2rem, 5vw, 4rem); }
.section-heading p { color: var(--ink-soft); font-size: 1.12rem; }

.hero {
  position: relative;
  display: grid;
  min-height: min(78svh, 780px);
  overflow: hidden;
  color: white;
  background: var(--navy);
}
.hero picture, .hero-media, .hero::after { position: absolute; inset: 0; }
.hero picture { z-index: 0; }
.hero-media { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.hero::after {
  content: "";
  z-index: 1;
  background: linear-gradient(90deg, rgba(4, 27, 36, .94) 0%, rgba(4, 27, 36, .82) 42%, rgba(4, 27, 36, .25) 76%, rgba(4, 27, 36, .1) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  align-self: end;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding-block: clamp(5rem, 11vw, 8rem) clamp(3rem, 7vw, 5rem);
}
.hero .eyebrow { color: #ffd166; }
.hero h1 { max-width: 9ch; }
.hero-route { margin: .8rem 0 0; font-size: clamp(1.35rem, 3vw, 2.2rem); font-weight: 800; }
.hero-copy { max-width: 58ch; margin-top: 1.15rem; font-size: clamp(1rem, 1.5vw, 1.2rem); }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .72rem 1rem;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
}
.button-primary { color: var(--navy); background: white; border-color: white; }
.button-secondary { color: white; background: transparent; }
.button-dark { color: white; background: var(--navy); border-color: var(--navy); }

.results { padding-block: clamp(3rem, 6vw, 5rem); background: var(--surface); }
.stats-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; }
.stat {
  position: relative;
  min-height: 138px;
  padding: 1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(16, 43, 54, .07);
}
.stat strong { display: block; font-size: clamp(1.55rem, 2.35vw, 2.4rem); line-height: 1; }
.stat span { display: block; margin-top: .7rem; color: var(--ink-soft); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.stat-feature::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  left: -1px;
  height: 7px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, #d1495b, #c98216, #2f855a, #00798c, #6656a6);
}
.goal-note { margin: 1.2rem 0 0; color: var(--ink-soft); font-weight: 800; text-align: center; }

.closing-grid, .interest-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.impact-feature {
  position: relative;
  min-height: clamp(640px, 64vw, 760px);
  padding-block: 0;
  overflow: hidden;
  color: white;
  background: var(--navy);
}
.impact-feature::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 27, 36, .98) 0%, rgba(4, 27, 36, .91) 35%, rgba(4, 27, 36, .48) 64%, rgba(4, 27, 36, .18) 100%);
}
.impact-media { position: absolute; z-index: 0; inset: 0; overflow: hidden; }
.impact-photo {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10%;
  width: 110%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}
.impact-content { position: relative; z-index: 2; display: flex; align-items: center; min-height: inherit; padding-block: clamp(4rem, 8vw, 7rem); }
.impact-panel { width: min(40%, 32rem); padding: clamp(1.25rem, 2.5vw, 2rem); background: rgba(4, 31, 41, .92); border-left: 4px solid #ffd166; border-radius: 6px; }
.impact-panel h2 { font-size: clamp(2.4rem, 4.4vw, 4.6rem); }
.impact-panel .eyebrow { color: #ffd166; }
.impact-panel .lede, .impact-panel .context-note { color: #edf4f4; }
.closing-photo { width: 100%; border-radius: 8px; box-shadow: var(--shadow); }
.impact-list { display: flex; flex-wrap: wrap; gap: .55rem; padding: 0; margin: 1.5rem 0 0; list-style: none; }
.impact-list li { padding: .5rem .65rem; color: white; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .38); border-radius: 5px; font-size: .9rem; font-weight: 800; }
.context-note { margin-top: 1.4rem; padding-left: 1rem; border-left: 3px solid #ffd166; color: var(--ink-soft); font-size: .9rem; }

.route-section { background: #f5efe5; }
.route-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); gap: 1.5rem; align-items: start; }
.map-tool, .profile-tool {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.map-shell { position: relative; min-height: 520px; background: #eee8de; }
.map-shell-small { min-height: 360px; }
.map-fallback, .leaflet-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-fallback { object-fit: cover; }
.leaflet-map { z-index: 2; }
.leaflet-control-zoom a { width: 44px !important; height: 44px !important; line-height: 44px !important; }
.map-shell.is-live .map-fallback { opacity: 0; }
.route-controls { display: grid; gap: .5rem; }
.route-filter, .day-tab {
  min-height: 46px;
  padding: .65rem .75rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}
.route-filter { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .65rem; border-left: 4px solid var(--route-color, var(--navy)); }
.route-filter-label strong, .route-filter-label span { display: block; }
.route-filter-label span { color: var(--ink-soft); font-size: .72rem; font-weight: 700; line-height: 1.25; }
.route-swatch { width: .9rem; height: .9rem; background: var(--route-color, var(--navy)); border: 2px solid white; border-radius: 50%; box-shadow: 0 0 0 1px rgba(16, 43, 54, .25); }
.route-swatch-all { background: conic-gradient(#d1495b 0 20%, #c98216 20% 40%, #2f855a 40% 60%, #00798c 60% 80%, #6656a6 80%); }
.route-selected { display: none; width: 1.35rem; height: 1.35rem; place-items: center; color: var(--navy); background: white; border-radius: 50%; font-size: .8rem; }
.route-filter[aria-pressed="true"], .day-tab[aria-selected="true"] { color: white; background: var(--navy); border-color: var(--navy); }
.route-filter[aria-pressed="true"] .route-filter-label span { color: #dce8e9; }
.route-filter[aria-pressed="true"] .route-selected { display: grid; }
.route-summary { margin-top: 1.5rem; color: var(--ink-soft); }

.days-section { padding-top: clamp(3rem, 6vw, 5rem); }
.day-selector-wrap {
  position: sticky;
  z-index: 90;
  top: 68px;
  padding-block: .7rem;
  background: rgba(251, 247, 239, .96);
  border-block: 1px solid rgba(16, 43, 54, .12);
  backdrop-filter: blur(12px);
}
.day-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.day-tab { text-align: center; }
.day-tab span { display: block; color: inherit; font-size: .72rem; opacity: .75; }
.mobile-day-select { display: none; width: 100%; min-height: 46px; padding: .65rem; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 6px; }
.day-panes { padding-top: 2.5rem; }
.js .day-pane[hidden] { display: none; }
.day-pane { scroll-margin-top: 142px; content-visibility: auto; contain-intrinsic-size: auto 1800px; }
.print-preparing .day-pane[hidden] { display: block !important; }
.day-pane + .day-pane { margin-top: 6rem; padding-top: 5rem; border-top: 1px solid var(--line); }
.js .day-pane + .day-pane { margin-top: 0; padding-top: 0; border-top: 0; }
.day-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: end; margin-bottom: 2rem; }
.day-date { color: var(--ink-soft); font-weight: 800; }
.day-stats { display: grid; grid-template-columns: repeat(4, minmax(105px, 1fr)); gap: .5rem; }
.day-stat { padding: .75rem; background: white; border: 1px solid var(--line); border-radius: 6px; }
.day-stat strong, .day-stat span { display: block; }
.day-stat strong { font-size: 1.25rem; line-height: 1.1; }
.day-stat span { margin-top: .3rem; color: var(--ink-soft); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.day-body { display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(320px, .93fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.story { max-width: var(--reading); }
.story p { margin: 0 0 1.15rem; font-size: clamp(1.03rem, 1.35vw, 1.17rem); }
.pull-quote { margin: 2rem 0; padding: 1.2rem 0 1.2rem 1.25rem; border-left: 6px solid var(--coral); color: var(--navy); font-size: clamp(1.5rem, 2.7vw, 2.5rem); font-weight: 900; line-height: 1.12; }
.day-rail { position: sticky; top: 150px; display: grid; gap: 1rem; }
.tool-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.tool-heading span { color: var(--ink-soft); font-size: .8rem; }
.profile-fallback { width: 100%; height: auto; }
.profile-live { position: relative; min-height: 220px; }
.profile-live svg { display: block; width: 100%; height: auto; }
.profile-tooltip { position: absolute; z-index: 5; display: none; padding: .4rem .55rem; color: white; background: var(--navy); border-radius: 4px; font-size: .75rem; pointer-events: none; }
.profile-live:hover .profile-tooltip { display: block; }
.ride-details { background: white; border: 1px solid var(--line); border-radius: 8px; }
.ride-details summary { min-height: 44px; padding: .7rem .9rem; font-weight: 850; cursor: pointer; }
.details-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; padding: 0 .9rem .9rem; }
.details-grid span { padding-top: .5rem; color: var(--ink-soft); border-top: 1px solid var(--line); font-size: .84rem; }
.strava-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--teal); font-weight: 850; }

.gallery { margin-top: clamp(3rem, 6vw, 5rem); }
.gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.gallery-heading p { margin: 0; color: var(--ink-soft); }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: .75rem; }
.gallery-item { grid-column: span 4; margin: 0; min-width: 0; }
.gallery-item.gallery-wide { grid-column: span 8; }
.gallery-button { display: block; width: 100%; padding: 0; overflow: hidden; background: var(--navy); border: 0; border-radius: 8px; cursor: zoom-in; }
.gallery-button picture { display: block; aspect-ratio: var(--photo-aspect); }
.gallery-button img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery-button:hover img { transform: scale(1.025); }
.gallery-item figcaption { min-height: 3.5em; margin-top: .45rem; color: var(--ink-soft); font-size: .82rem; line-height: 1.35; }
.day-navigation { display: flex; justify-content: space-between; gap: .75rem; margin-top: 2rem; }
.day-nav-button { min-height: 44px; padding: .65rem .8rem; color: var(--navy); background: white; border: 1px solid var(--line); border-radius: 6px; font-weight: 850; cursor: pointer; }

.closing { color: white; background: var(--navy); }
.closing .eyebrow { color: #ffd166; }
.closing .lede, .closing p { color: #dce8e9; }
.closing-figure { margin: 0; }
.closing-photo { height: auto; object-fit: contain; box-shadow: 0 20px 50px rgba(0, 0, 0, .24); }
.closing-figure figcaption { margin-top: .65rem; color: #dce8e9; font-size: .85rem; }
.thank-you { margin-top: 1.4rem; font-weight: 850; }
.interest { background: #f5efe5; }
.interest-layout { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); }
.interest-actions { display: grid; gap: .75rem; }
.sponsor { padding-block: clamp(2.25rem, 4vw, 3.25rem); background: var(--surface); }
.sponsor-compact { display: flex; align-items: center; justify-content: space-between; gap: clamp(1.5rem, 5vw, 4rem); }
.sponsor-compact h2 { font-size: clamp(1.65rem, 3vw, 2.75rem); }
.sponsor-compact p:not(.eyebrow) { margin-bottom: 0; color: var(--ink-soft); }
.sponsor-button { flex: 0 0 auto; color: var(--navy); background: transparent; }

.site-footer { padding: 2.5rem 1rem; color: #d8e4e6; background: #041f29; text-align: center; }
.site-footer a { color: white; }

.lightbox {
  width: min(96vw, 1200px);
  max-width: none;
  padding: 0;
  color: white;
  background: #041f29;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
}
.lightbox::backdrop { background: rgba(2, 16, 22, .88); }
.lightbox-stage { position: relative; display: grid; place-items: center; min-height: min(78vh, 760px); padding: 3.4rem 4.4rem 4.8rem; }
.lightbox-image { max-width: 100%; max-height: min(70vh, 680px); object-fit: contain; }
.lightbox-caption { position: absolute; right: 4.4rem; bottom: 1.1rem; left: 4.4rem; margin: 0; text-align: center; }
.lightbox-control { position: absolute; z-index: 3; display: grid; place-items: center; width: 46px; height: 46px; color: white; background: rgba(8, 47, 61, .92); border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%; cursor: pointer; }
.lightbox-close { top: .8rem; right: .8rem; font-size: 1.8rem; }
.lightbox-prev { top: 50%; left: .8rem; font-size: 1.6rem; }
.lightbox-next { top: 50%; right: .8rem; font-size: 1.6rem; }

.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 1080px) {
  .site-nav a { display: none; }
  .menu-control { display: inline-flex; align-items: center; }
  .site-nav.is-open {
    position: absolute;
    top: 68px;
    right: 1rem;
    display: grid;
    width: min(320px, calc(100vw - 2rem));
    padding: .65rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open a { display: flex; align-items: center; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .route-layout { grid-template-columns: 1fr; }
  .route-controls { grid-template-columns: repeat(3, 1fr); }
  .day-heading { grid-template-columns: 1fr; }
  .day-body { grid-template-columns: minmax(0, 1fr) minmax(290px, .72fr); }
  .impact-feature { display: flex; flex-direction: column; min-height: 0; color: var(--ink); background: var(--paper); }
  .impact-feature::after { display: none; }
  .impact-media { position: relative; order: 1; display: block; aspect-ratio: 1.45; }
  .impact-photo { position: static; width: 100%; height: 100%; object-position: center 54%; }
  .impact-content { order: 2; display: block; min-height: 0; padding-block: 3.5rem 4.5rem; }
  .impact-panel { width: 100%; padding: 0; color: var(--ink); background: transparent; border: 0; }
  .impact-panel h2 { font-size: clamp(2.4rem, 5.2vw, 5.2rem); }
  .impact-panel .eyebrow { color: var(--coral); }
  .impact-panel .lede, .impact-panel .context-note { color: var(--ink-soft); }
  .impact-list li { color: var(--ink); background: white; border-color: var(--line); }
}

@media (min-width: 821px) {
  .day-even .story { order: 2; }
  .day-even .day-rail { order: 1; }
}

@media (max-width: 820px) {
  .hero { min-height: 720px; }
  .hero::after { background: linear-gradient(0deg, rgba(4, 27, 36, .96) 0%, rgba(4, 27, 36, .75) 55%, rgba(4, 27, 36, .18) 100%); }
  .hero-media { object-position: 45% center; }
  .closing-grid, .interest-layout, .day-body { grid-template-columns: 1fr; }
  .day-rail { position: static; grid-template-columns: repeat(2, 1fr); }
  .day-rail .ride-details { grid-column: 1 / -1; }
  .gallery-item { grid-column: span 6; }
  .gallery-item.gallery-wide { grid-column: 1 / -1; }
  .sponsor-compact { align-items: flex-start; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 70px; }
  .header-inner { width: min(100% - 1rem, var(--max)); gap: .45rem; }
  .brand-copy > span { display: none; }
  .section-inner { width: min(100% - 1.25rem, var(--max)); }
  .section { padding-block: 4rem; }
  .hero { min-height: 760px; }
  .hero picture { height: 42%; bottom: auto; }
  .hero-media { height: 100%; object-position: center 45%; }
  .hero::after { background: linear-gradient(0deg, #041b24 0%, #041b24 61%, rgba(4, 27, 36, .72) 68%, transparent 76%); }
  .hero-content { width: calc(100% - 1.25rem); padding-bottom: 2.8rem; }
  .hero h1 { font-size: clamp(3.2rem, 18vw, 5.3rem); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { min-height: 125px; }
  .route-controls { grid-template-columns: repeat(2, 1fr); }
  .map-shell { min-height: 420px; }
  .map-shell-small { min-height: 300px; }
  .day-tabs { display: none; }
  .mobile-day-select { display: block; }
  .day-heading { gap: 1rem; }
  .day-stats { grid-template-columns: repeat(2, 1fr); }
  .day-rail { grid-template-columns: 1fr; }
  .gallery-grid { gap: .55rem; }
  .gallery-item, .gallery-item.gallery-wide { grid-column: 1 / -1; }
  .gallery-item figcaption { min-height: 0; }
  .sponsor-compact { display: grid; }
  .sponsor-button { justify-self: start; }
  .lightbox-stage { min-height: 70vh; padding: 3.6rem .8rem 5.2rem; }
  .lightbox-caption { right: 1rem; bottom: 4.25rem; left: 1rem; }
  .lightbox-prev { top: auto; bottom: .7rem; left: .8rem; }
  .lightbox-next { top: auto; right: .8rem; bottom: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  @page { size: Letter portrait; margin: .5in; }

  html { scroll-behavior: auto; }
  body { color: #111; background: white; font-size: 10.25pt; line-height: 1.46; }
  body::before, .site-header, .skip-link, .button-row, .route-controls, .day-selector-wrap, .day-navigation, .lightbox, .profile-live, .leaflet-map, .gallery-heading p { display: none !important; }
  main { position: static; }
  p, li { orphans: 3; widows: 3; }
  h1, h2, h3, h4, .eyebrow, .tool-heading, .gallery-heading { break-after: avoid; }
  figure, .stat, .map-tool, .profile-tool, .ride-details, .closing-grid, .interest-layout, .sponsor-compact { break-inside: avoid; }
  .section, .results { padding-block: .22in; border: 0 !important; }
  .section-inner { width: 100%; }
  .eyebrow { margin-bottom: .08in; font-size: 8.5pt; }
  h1 { font-size: 30pt; }
  h2 { font-size: 20pt; }
  h3 { font-size: 17pt; }
  h4 { font-size: 12pt; }
  .lede, .section-heading p, .story p { font-size: 10.25pt; }
  .section-heading { margin-bottom: .2in; }
  .button { min-height: 0; padding: .08in .12in; }

  .hero { display: flex; flex-direction: column; min-height: 0; color: #111; background: white; border-bottom: 2px solid #111; break-after: page; }
  .hero::after { display: none; }
  .hero-content { order: 1; width: 100%; padding: 0 0 .2in; }
  .hero picture { position: static; order: 2; display: block; width: 100%; height: auto; margin-bottom: .15in; }
  .hero-media { position: static; width: 100%; height: 3.65in; object-fit: cover; object-position: center 48%; }
  .hero h1 { max-width: none; }
  .hero-route { margin-top: .08in; font-size: 17pt; }
  .hero-copy { margin: .12in 0 .18in; font-size: 10.5pt; }

  .results { background: white; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: .08in; }
  .stat { min-height: .85in; padding: .12in; box-shadow: none; }
  .stat strong { font-size: 16pt; }
  .stat span { margin-top: .05in; font-size: 7.5pt; }
  .goal-note { margin-top: .1in; }

  .impact-feature { display: block; min-height: 0; height: auto; overflow: visible; color: #111; background: white; }
  .impact-feature::after { display: none; }
  .impact-media { position: static; display: block; width: 100%; height: auto; margin-top: .12in; overflow: visible; aspect-ratio: auto; }
  .impact-photo { position: static; width: 100%; height: 2.65in; object-fit: contain; object-position: center; }
  .impact-content { display: block; min-height: 0; padding: 0; }
  .impact-panel { width: 100%; padding: 0; color: #111; background: white; border: 0; }
  .impact-panel h2 { font-size: 20pt; }
  .impact-panel .eyebrow { color: #8f2937; }
  .impact-panel .lede, .impact-panel .context-note { color: #222; }
  .impact-list { gap: .06in; margin-top: .12in; }
  .impact-list li { padding: .04in .08in; color: #111; background: white; border-color: #777; font-size: 8.5pt; }
  .context-note { margin-top: .1in; padding-left: .1in; font-size: 8.75pt; }

  .route-section { color: #111; background: white; break-before: page; }
  .route-layout { display: block; }
  .route-summary { color: #222; }
  .map-tool, .profile-tool { overflow: visible; background: white; box-shadow: none; }
  .map-shell, .map-shell-small { min-height: 0; background: white; }
  .map-fallback { position: static; display: block !important; width: 100%; height: auto; max-height: 4.25in; opacity: 1 !important; object-fit: contain; }
  .tool-heading { padding: .08in .1in; }

  .days-section { padding-top: .12in; }
  .days-section > .section-heading { display: none; }
  .day-panes { padding-top: 0; }
  .day-pane, .js .day-pane[hidden], .print-preparing .day-pane[hidden] { display: block !important; content-visibility: visible; contain: none; break-before: page; }
  .day-pane + .day-pane, .js .day-pane + .day-pane { margin-top: 0; padding-top: 0; border: 0; }
  .day-heading { grid-template-columns: 1fr; gap: .12in; margin-bottom: .18in; }
  .day-stats { grid-template-columns: repeat(4, 1fr); gap: .06in; }
  .day-stat { padding: .08in; }
  .day-stat strong { font-size: 12pt; }
  .day-body { display: block; }
  .story { max-width: none; }
  .story p { margin-bottom: .1in; }
  .pull-quote { margin: .15in 0; padding: .1in 0 .1in .14in; font-size: 14pt; break-inside: avoid; }
  .strava-link { min-height: 0; }
  .day-rail { position: static; display: block; margin-top: .18in; }
  .day-rail > * + * { margin-top: .16in; }
  .profile-fallback { display: block !important; width: 100%; height: auto; max-height: 3.6in; object-fit: contain; }
  .ride-details { display: block !important; background: white; }
  .ride-details summary { min-height: 0; padding: .08in .1in; list-style: none; }
  .ride-details summary::-webkit-details-marker { display: none; }
  .ride-details > .details-grid { display: grid !important; grid-template-columns: repeat(3, 1fr); padding: 0 .1in .1in; }

  .gallery { margin-top: .25in; }
  .gallery-heading { margin-bottom: .12in; }
  .gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .18in; align-items: start; }
  .gallery-item, .gallery-item.gallery-wide { grid-column: span 1; margin: 0; break-inside: avoid; }
  .gallery-button { overflow: visible; background: white; border-radius: 0; }
  .gallery-button picture { display: block; height: auto; aspect-ratio: auto; }
  .gallery-button img { width: 100%; height: auto; max-height: 2.6in; object-fit: contain; }
  .gallery-item figcaption { min-height: 0; margin-top: .04in; color: #222; font-size: 8.5pt; line-height: 1.3; }

  .closing { color: #111; background: white; break-before: page; }
  .closing-grid { grid-template-columns: 1fr 1fr; gap: .3in; align-items: start; }
  .closing .eyebrow { color: #8f2937; }
  .closing .lede, .closing p, .closing-figure figcaption { color: #222; }
  .closing-photo { width: 100%; height: auto; max-height: 5.8in; object-fit: contain; border-radius: 0; box-shadow: none; }
  .closing-figure figcaption { font-size: 8.5pt; }

  .interest { color: #111; background: white; }
  .interest-layout { grid-template-columns: minmax(0, 1.3fr) minmax(2.25in, .7fr); gap: .3in; align-items: start; }
  .interest-actions { gap: .1in; }
  .sponsor { padding-block: .18in; background: white; }
  .sponsor-compact { align-items: start; padding-top: .18in; border-top: 1px solid #888; }
  .sponsor-compact h2 { font-size: 15pt; }
  .sponsor-button { flex: 0 0 auto; }

  .site-footer { padding: .18in 0 0; color: #222; background: white; border-top: 1px solid #888; font-size: 8.5pt; }
  .site-footer a { color: #111; }
  a[href]::after { content: none; }
}
