/* Shared race-site refinements adapted from Rode to Hell, with Waterloo color and photography. */
:root{--refresh-forest:#012e2b;--refresh-teal:#268483;--refresh-olive:#bebe53;--refresh-pale:#e7f0e7}
.site-header .brand{flex:0 0 245px}
.site-header .brand img{width:235px;height:122px;max-height:none;object-fit:contain}
@media(max-width:1024px){.site-header .brand{flex:1 1 auto}.nav{background:var(--refresh-forest)}.site-header .menu{background:var(--refresh-teal);color:#fff}}
@media(max-width:700px){.site-header .brand img{width:180px;height:94px}.site-header .menu{margin-top:0}}

/* The Rode page's stronger photo headline, inset, fact bar, and series treatment. */
.home-hero{min-height:clamp(500px,47vw,620px);--hero-position:center 53%}
.home-hero:before{background-image:linear-gradient(90deg,rgba(1,34,31,.93),rgba(1,34,31,.73) 46%,rgba(1,34,31,.08)),var(--hero)}
.home-hero .wrap{width:90%;max-width:none;margin-inline:auto;padding:clamp(54px,5vw,78px) 0}
.home-hero .eyebrow{color:#eff4d0;font:800 clamp(14px,1.5vw,21px)/1.2 Poppins,Arial,sans-serif;letter-spacing:.07em}
.home-hero .hero-date{margin:4px 0 0;color:#d9e4a1;font:800 clamp(22px,3vw,43px)/1.1 Poppins,Arial,sans-serif;letter-spacing:-.035em}
.home-hero h1{max-width:1100px;margin-top:26px;font:700 clamp(67px,8.3vw,138px)/.96 "Roboto Slab",Georgia,serif;letter-spacing:-.062em}
.home-hero h1 span{color:#c7d875}
.home-hero .wrap>p:not(.eyebrow):not(.hero-date){max-width:780px;font-size:clamp(17px,1.55vw,22px);line-height:1.5}
.glance{min-height:0;padding:clamp(38px,4vw,70px) 5vw;background:var(--refresh-forest);border-top:3px solid var(--refresh-olive)}
.glance>div{min-width:0;min-height:140px;padding:clamp(20px,2.1vw,32px) clamp(16px,2.6vw,48px)!important;border-right:1px solid #ffffff42}
.glance span{color:#d9e4a1;font:700 clamp(12px,.95vw,15px)/1.2 Poppins,Arial,sans-serif;letter-spacing:.055em}
.glance strong{margin-top:12px;color:#fff;font:700 clamp(20px,1.75vw,30px)/1.13 Poppins,Arial,sans-serif!important;letter-spacing:-.035em}
.glance strong.event-categories{font-size:clamp(16px,1.2vw,21px)!important;line-height:1.35;letter-spacing:-.025em}
.glance.is-ready>div{opacity:0;transform:translateY(24px)}
.glance.is-ready.is-visible>div{animation:glance-arrive .6s both}
.glance.is-ready.is-visible>div:nth-child(2){animation-delay:.12s}
.glance.is-ready.is-visible>div:nth-child(3){animation-delay:.24s}
.glance.is-ready.is-visible>div:nth-child(4){animation-delay:.36s}
@keyframes glance-arrive{to{opacity:1;transform:none}}
.series-bar{gap:24px;padding:42px 5vw;background:#fff}
.series-bar a{display:flex;align-items:center;gap:22px;min-height:140px;justify-content:center;color:var(--refresh-forest);font:700 clamp(16px,1.3vw,22px)/1.2 Poppins,Arial,sans-serif;transition:transform .2s}
.series-bar a:hover,.series-bar a:focus-visible{transform:translateY(-4px)}
.series-bar .series-logo{position:relative;display:block;flex:0 0 175px;width:175px;height:115px;max-width:none;overflow:hidden}
.series-bar .series-logo img{display:block;width:100%;height:100%;object-fit:contain}
.series-bar .series-logo--grand{height:73px}
.series-bar .series-logo--grand img{position:absolute;inset:0 auto auto 0;width:175px;height:auto;max-width:none}
.series-bar a>span:last-child{max-width:230px}

.ride-choice h2,.ride-benefits h2,.answers-fast h2{font:600 clamp(44px,5vw,82px)/1.08 "Roboto Slab",Georgia,serif;letter-spacing:-.045em;text-wrap:balance}
.ride-choice h2 em{color:var(--refresh-teal)}
.ride-choice h2+p{margin-top:26px}
.distance-tiles{margin-top:38px;gap:24px}
.distance-tiles .tile{min-height:300px;display:flex;flex-direction:column}
.distance-tiles .tile h3{margin:14px 0}
.distance-tiles .tile .text-link{margin-top:auto}
.ride-benefits{padding:clamp(75px,8vw,125px) 0;background:var(--refresh-forest);color:#fff}
.ride-benefits .eyebrow{color:#d9e4a1;font:800 13px/1.2 Poppins,Arial,sans-serif;letter-spacing:.13em}
.benefits-intro{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr);gap:5vw;align-items:center;margin-bottom:70px}
.ride-benefits h2{max-width:800px;margin:0}
.benefits-intro>p{max-width:650px;font:500 clamp(20px,2vw,30px)/1.45 Poppins,Arial,sans-serif}
.benefits-grid{display:grid;grid-template-columns:1fr 1fr;gap:5vw}
.benefits-column h3{margin:0 0 12px;color:#d9e4a1;font:700 clamp(28px,2.8vw,42px)/1.15 "Roboto Slab",Georgia,serif;letter-spacing:-.04em}
.benefits-column>p{min-height:65px;margin:0 0 27px;font:500 clamp(16px,1.3vw,20px)/1.5 Poppins,Arial,sans-serif}
.benefits-column details,.included-list li{border-top:1px solid #ffffff66}
.benefits-column details:last-of-type,.included-list li:last-child{border-bottom:1px solid #ffffff66}
.benefits-column summary{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:82px;cursor:pointer;list-style:none;font:800 clamp(17px,1.4vw,22px)/1.3 Poppins,Arial,sans-serif}
.benefits-column summary::-webkit-details-marker{display:none}
.benefits-column summary:after{content:'+';display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border:1px solid #fff;border-radius:50%;font:400 27px/1 Poppins,Arial,sans-serif}
.benefits-column details[open] summary:after{content:'−'}
.benefits-column details p{margin:0 0 22px;max-width:650px}
.included-list{list-style:none;margin:0;padding:0}
.included-list li{min-height:66px;display:flex;align-items:center;font:700 clamp(17px,1.4vw,22px)/1.3 Poppins,Arial,sans-serif}
.benefits-link{display:inline-block;margin-top:30px;color:#fff;font-weight:800;text-underline-offset:5px}

.answers-fast{position:relative;isolation:isolate;background:var(--refresh-forest);color:#fff}
.answers-fast::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(0,35,32,.8),rgba(0,35,32,.67)),url("assets/hero.jpg") center 48%/cover no-repeat}
.answers-fast h2{max-width:none;margin:0 0 54px;color:#fff}
.answers-fast h2 em{font-style:normal;color:#d9e4a1}
.answers-fast .answers-tiles{grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(14px,1.8vw,26px);margin-top:0}
.answers-fast .path{position:relative;isolation:isolate;min-height:350px;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;padding:26px;border:2px solid var(--refresh-teal);background:#153e39;color:#fff;text-decoration:none;transition:transform .25s,box-shadow .25s}
.answers-fast .path::before{content:"";position:absolute;inset:0;z-index:-2;background-image:var(--card-image);background-size:cover;background-position:var(--card-position,center);transition:transform .4s}
.answers-fast .path::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,rgba(1,46,43,.96) 0%,rgba(22,103,101,.72) 34%,rgba(22,103,101,.08) 74%)}
.answers-fast .path:hover,.answers-fast .path:focus-visible{transform:translateY(-4px);box-shadow:0 12px 30px #0005}
.answers-fast .path:hover::before,.answers-fast .path:focus-visible::before{transform:scale(1.06)}
.answers-fast .path h3{margin:0 0 8px;color:#fff;font:700 clamp(23px,2vw,32px)/1.08 "Roboto Slab",Georgia,serif;letter-spacing:-.035em}
.answers-fast .path p{margin:0;color:#fff;font:500 15px/1.42 Poppins,Arial,sans-serif}
.answers-fast .path-race{--card-image:url("assets/together.jpg");--card-position:center 61%}
.answers-fast .path-routes{--card-image:url("assets/riders.jpg");--card-position:center 48%}
.answers-fast .path-weekend{--card-image:url("assets/peloton.jpg");--card-position:center 50%}
.answers-fast .path-answers{--card-image:url("assets/community.jpg");--card-position:center 38%}

/* Match Rode's compact subpages while retaining Waterloo images and text. */
.subpage-wide main>.section{padding:60px 0 84px}
.subpage-wide main>.section>.wrap{width:90%;max-width:none;margin-inline:auto}
.subpage-wide main>.section h2{font:700 clamp(32px,4vw,52px)/1 Poppins,Arial,sans-serif;letter-spacing:-.05em}
main>.subpage-hero{min-height:390px}
main>.subpage-hero .wrap{padding:32px 0}
main>.subpage-hero h1{font-size:clamp(48px,5.4vw,68px);line-height:1;margin-top:12px}
main>.subpage-hero .eyebrow{margin-top:0}
main>.subpage-hero .wrap>p:not(.eyebrow){margin-top:12px}
main>.subpage-hero .actions{margin-top:18px}
.race-weekend>.weekend-hero{min-height:400px;background-image:linear-gradient(90deg,rgba(245,249,246,.98) 0%,rgba(245,249,246,.91) 43%,rgba(245,249,246,.2) 76%,rgba(245,249,246,0) 100%),var(--hero);background-size:cover,cover;background-position:center,center 42%}
.race-weekend>.weekend-hero:before{content:none}
.race-weekend>.weekend-hero .wrap{padding:32px 0}
.race-weekend>.weekend-hero h1{font-size:clamp(48px,5.4vw,66px);line-height:1;max-width:62%}
.race-weekend>.weekend-hero .wrap>p:not(.weekend-date){max-width:55%;margin-top:14px}
.race-weekend>.weekend-hero .weekend-date{display:block;width:max-content;max-width:100%;margin:0;color:var(--refresh-teal);font:600 clamp(16px,1.65vw,22px)/1.4 "Roboto Slab",Georgia,serif}
.race-weekend>.weekend-hero .actions{margin-top:18px}
.weekend-content{padding-bottom:84px}
.weekend-jump{margin-bottom:38px}
.weekend-jump button[aria-selected=true]{background:var(--refresh-pale);border-color:var(--refresh-teal)}
.mast{min-height:390px;padding:48px 5vw 36px;background-image:linear-gradient(90deg,rgba(1,40,37,.92),rgba(1,40,37,.7) 43%,rgba(1,40,37,.22) 76%,rgba(1,40,37,0)),var(--mast-image);background-size:cover,cover;background-position:center,center 45%;color:#fff}
.mast:before,.mast:after{content:none}
.mast h1{max-width:730px;margin:0 0 14px;color:#fff;font-size:clamp(48px,5.4vw,68px);line-height:1}
.mast .lead{color:#fff}
.faq-wrap{padding-top:60px}
html{scroll-padding-top:200px}
section[id],article[id],main[id]{scroll-margin-top:200px}

@media(max-width:1100px){.series-bar{gap:14px}.series-bar a{flex-direction:column;text-align:center}.answers-fast .answers-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
 .home-hero{min-height:500px;--hero-position:61% center}
 .home-hero:before{background-image:linear-gradient(90deg,rgba(1,34,31,.92),rgba(1,34,31,.63)),var(--hero)}
 .home-hero .wrap{padding:22px 0}
 .home-hero h1{font-size:clamp(45px,11.5vw,72px);margin-top:16px}
 .home-hero .hero-date{font-size:clamp(22px,6vw,32px)}
 .home-hero .eyebrow{font-size:14px!important}
 .glance{padding:18px 0}
 .glance>div{min-height:115px;padding:22px 5vw!important}
 .glance span{font-size:12px}
 .glance strong{font-size:18px!important}
 .glance strong.event-categories{font-size:15px!important}
 .series-bar{grid-template-columns:1fr;gap:0;padding:20px 6vw}
 .series-bar a{flex-direction:row;justify-content:flex-start;text-align:left;min-height:125px;gap:24px;padding:12px 0;border-bottom:1px solid #ddd;font-size:17px}
 .series-bar a:last-child{border-bottom:0}
 .series-bar .series-logo{flex-basis:120px;width:120px;height:90px}
 .series-bar .series-logo--grand{height:55px}
 .series-bar .series-logo--grand img{width:120px}
 .ride-choice h2,.ride-benefits h2,.answers-fast h2{font-size:clamp(40px,9vw,60px)}
 .benefits-intro,.benefits-grid{grid-template-columns:1fr;gap:30px}
 .benefits-intro{margin-bottom:55px}
 .benefits-intro>p{margin:0}
 .benefits-column>p{min-height:0}
 .answers-fast h2{margin-bottom:36px}
 .answers-fast .answers-tiles{grid-template-columns:1fr;gap:14px}
 .answers-fast .path{min-height:280px}
 main>.subpage-hero{min-height:0}
 main>.subpage-hero .wrap{padding:34px 0}
 main>.subpage-hero h1{font-size:clamp(42px,9vw,58px)}
 .subpage-wide main>.section{padding:44px 0 64px}
 .subpage-wide main>.section>.wrap{width:calc(100% - 48px)}
 .race-weekend>.weekend-hero{min-height:350px;background-image:linear-gradient(90deg,rgba(245,249,246,.96),rgba(245,249,246,.7)),var(--hero);background-position:center,center 42%}
 .race-weekend>.weekend-hero .wrap{padding:34px 0}
 .race-weekend>.weekend-hero h1{max-width:100%;font-size:clamp(42px,9vw,58px)}
 .race-weekend>.weekend-hero .wrap>p:not(.weekend-date){max-width:100%}
 .mast{min-height:330px;padding:38px 24px 30px;background-image:linear-gradient(90deg,rgba(1,40,37,.9),rgba(1,40,37,.62)),var(--mast-image);background-position:center,center 45%}
 .mast h1{max-width:100%;font-size:clamp(42px,9vw,58px)}
 html{scroll-padding-top:175px}
 section[id],article[id],main[id]{scroll-margin-top:175px}
}
@media(prefers-reduced-motion:reduce){.glance.is-ready>div{opacity:1;transform:none}.glance.is-ready.is-visible>div{animation:none}.series-bar a,.answers-fast .path,.answers-fast .path::before{transition:none}}

/* Keep the existing Waterloo event photos complete in the About gallery. */
.subpage-wide .photo-band{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}
.subpage-wide .photo-band img{width:100%;aspect-ratio:4/3;height:auto;object-fit:cover;object-position:center 35%;background:#e7f0e7}
.subpage-wide main>.section>.wrap{width:min(1160px,90vw);max-width:none;margin-inline:auto}
.weekend-content,.faq-wrap{box-sizing:border-box;width:min(1160px,90vw);max-width:none;margin-inline:auto;padding-inline:0}
@media(max-width:700px){.subpage-wide .photo-band{grid-template-columns:1fr}.subpage-wide main>.section>.wrap,.weekend-content,.faq-wrap{width:calc(100% - 48px)}}

/* Keep the collapsed navigation readable on the forest-green phone/tablet panel. */
@media(max-width:1024px){.nav a:not(.button),.nav a:not(.button):hover,.nav a:not(.button):focus-visible{color:#fff}}

/* Supplied horizontal Waterloo wordmark in the existing white header. */
.site-header{min-height:126px}
.site-header .brand{flex:0 0 clamp(250px,30vw,360px)}
.site-header .brand img{display:block;width:min(360px,100%);height:auto;max-height:90px;object-fit:contain}
@media(max-width:1024px){.site-header .brand{flex:1 1 auto}}
@media(max-width:700px){.site-header{min-height:92px}.site-header .brand img{width:min(260px,100%);height:auto;max-height:64px}}
@media(max-width:700px){.subpage-wide .feature img.shot{object-position:center 25%}}
