/* Public homepage refinement: clearer reading rhythm, consistent cards, and
   explicit light/dark surfaces without changing admin-managed page content. */
.home-sections-layout{background:var(--page-bg,#fff);color:var(--ink,#17263b)}
.home-sections-layout{overflow-x:clip}
.home-hero>.mx-auto{padding-block:clamp(3.25rem,7vw,6rem);gap:clamp(2rem,5vw,4.5rem)}
.home-hero-copy{max-width:46rem}
.home-hero h1{max-width:16ch;font-size:clamp(2.25rem,4.6vw,4.25rem);line-height:1.2;text-wrap:balance}
.home-hero-lead{max-width:58ch;font-size:clamp(1.05rem,1.45vw,1.2rem);line-height:1.9}
.home-hero-actions{gap:.7rem}
.home-hero-actions .button{min-height:3rem;padding-inline:1.1rem}
.home-hero-visual{overflow:hidden;border-radius:1.4rem}
.home-hero-visual .hero-photo,.home-hero-visual .hero-art{min-height:clamp(20rem,36vw,32rem);max-height:34rem;border:0;border-radius:inherit}
.home-sections-layout>.section>.mx-auto{padding-block:clamp(2.5rem,5vw,4rem)}
.home-sections-layout .card,.home-sections-layout .sport-card,.home-sections-layout .home-news-card,.home-sections-layout .home-event-card,.home-sections-layout .club-document-card,.home-sections-layout .home-steps-grid li{border-radius:1rem}
.home-sections-layout :is(.card,.sport-card,.home-news-card,.home-event-card,.club-document-card,.home-steps-grid li){overflow-wrap:anywhere}
.home-sections-layout :is(#about,#sports,#events,#schedule,#club-documents,.home-steps){scroll-margin-block-start:6.5rem}
.home-sections-layout :is(#about,#sports,#events,#schedule,#club-documents,.home-steps)>.mx-auto,
.home-steps>.mx-auto{max-width:80rem}
.home-sections-layout :is(#about,#sports,#events,#schedule,#club-documents,.home-steps) h2,
.home-steps h2{max-width:28ch;margin-block:.45rem 0;color:#142944;font-size:clamp(1.8rem,3vw,2.6rem);line-height:1.3;text-wrap:balance}
.home-sections-layout :is(#about,#sports,#events,#schedule,#club-documents,.home-steps)>.mx-auto>.eyebrow,
.home-steps>.mx-auto>.eyebrow{margin:0;color:#315b83;font-size:.9rem;font-weight:850}
.home-about-summary{max-width:68ch;margin-block:.9rem 0;color:#43536a;font-size:1.08rem;line-height:1.95}
#about .grid{gap:1rem}
#about .grid>.card{height:100%;border-block-start-width:3px}
#about .grid>.card p{margin-block-end:0;color:#43536a;line-height:1.85}
#sports .home-section-lead,#schedule .home-section-lead,#club-documents .home-section-lead,.home-steps .home-section-lead{max-width:68ch;margin-block:.75rem 0;color:#43536a;font-size:1rem;line-height:1.85}
#sports .sport-card{height:100%;min-width:0}
#sports .sport-card p{max-width:55ch}
.home-section-nav{position:relative;z-index:4;border-block:1px solid #dce4ed;background:rgb(255 255 255 / 96%);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.home-section-nav>div{align-items:center;max-width:80rem;min-width:0;padding-block:.65rem}
.home-section-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:2.8rem;padding:.5rem .8rem;border-radius:.65rem;color:#263b56!important;font-weight:750;white-space:nowrap}
.home-section-nav a:hover{border-color:#dce4ed;background:#f1f5f9;color:#10213d!important}
.home-news-grid{align-items:stretch;margin-block-start:1.5rem}
.home-news-card{display:flex;flex-direction:column;min-width:0;min-height:15rem}
.home-news-card h3{margin-block:.65rem .4rem;color:#142944;line-height:1.5}
.home-news-card>p:not(.eyebrow){color:#43536a;line-height:1.8}
.home-news-read-more{display:inline-flex;align-items:center;gap:.45rem;align-self:flex-start;margin-block-start:auto;padding-block-start:.7rem;color:#174a80;font-weight:800}
.home-event-grid{align-items:stretch}
.home-event-card{min-width:0}
.home-event-content h3{margin-block:0 .35rem;color:#142944;line-height:1.5}
.home-event-content p{color:#43536a;line-height:1.75}
.home-event-content .home-event-meta{font-weight:750}
.season-awards{position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 100% 0%,#d4af3720,transparent 35%),linear-gradient(145deg,#101e34,#172c46)}
.season-awards>.mx-auto>h2{color:#fff}
.season-winner-card{height:100%;padding:clamp(1.1rem,2.2vw,1.5rem);border-radius:1rem}
.club-public-documents{background:linear-gradient(180deg,#f1f5f9,#fff)}
.club-document-grid{align-items:stretch}
.club-document-card{min-width:0;transition:transform .16s ease,box-shadow .16s ease}
.club-document-card:hover{transform:translateY(-2px);box-shadow:0 15px 32px rgb(16 33 61 / 10%)}
.club-document-copy{min-width:0}
.club-document-copy h3{margin-block:0 .35rem;color:#142944;font-size:1.05rem;line-height:1.5;overflow-wrap:anywhere}
.club-document-copy p{color:#43536a;line-height:1.7}
.home-event-date{font-variant-numeric:tabular-nums}
.home-support-callout{padding-block:clamp(1.5rem,4vw,3rem)}
.home-support-panel{box-shadow:0 18px 42px rgb(16 33 61 / 13%)}
.home-steps{background:#f6f8fb}
.home-steps-grid{align-items:stretch}
.home-steps-grid li{height:100%;min-width:0}
.home-steps-grid li p{line-height:1.8}
.home-steps>.mx-auto>.button{min-height:3rem}
.home-join-panel{gap:clamp(1.25rem,4vw,3rem)}
.home-join-panel h2{max-width:26ch;text-wrap:balance}
.home-join-actions .button{min-height:3rem}
.home-videos-section{padding-block:clamp(1.5rem,4vw,2.75rem)}
.home-videos-heading h2{color:#142944;font-weight:850;line-height:1.35;text-wrap:balance}
.home-video-player{border-radius:1rem}
.home-video-frame{min-width:0}
.home-video-meta h3{min-width:0;line-height:1.5;overflow-wrap:anywhere}
.home-video-list{overscroll-behavior-inline:contain;scroll-snap-type:inline proximity}
.home-video-list li{scroll-snap-align:start}
.home-video-list button{min-height:2.8rem}
.home-photo-slider-section{padding-block:clamp(1rem,3vw,2rem)}
.home-slider-track{min-height:clamp(15rem,35vw,26rem)}
.home-slider-actions button,.home-slider-dots button{min-width:2.75rem;min-height:2.75rem}
.home-slider-dots button{min-width:2rem;min-height:2rem}
.home-empty-state{padding:clamp(1.1rem,3vw,1.6rem);border-radius:1rem}

:root[data-theme="dark"] .home-sections-layout{background:var(--page-bg);color:var(--ink)}
:root[data-theme="dark"] .home-sections-layout :is(#about,#sports,#events,#schedule,#club-documents,.home-steps){background:var(--page-bg)}
:root[data-theme="dark"] .home-sections-layout :is(#about,#sports,#events,#schedule,#club-documents,.home-steps) h2,
:root[data-theme="dark"] .home-sections-layout :is(.home-news-card h3,.home-event-content h3,.club-document-copy h3,.home-videos-heading h2){color:var(--ink)}
:root[data-theme="dark"] .home-sections-layout :is(.home-about-summary,.home-section-lead,.home-news-card>p:not(.eyebrow),.home-event-content p,.club-document-copy p){color:var(--ui-text-muted)}
:root[data-theme="dark"] #about.section,:root[data-theme="dark"] #events.section,
:root[data-theme="dark"] #sports.section-soft,:root[data-theme="dark"] #schedule.section-soft,
:root[data-theme="dark"] #club-documents.club-public-documents,:root[data-theme="dark"] .home-steps{background:var(--page-bg)}
:root[data-theme="dark"] .home-section-nav{border-color:var(--ui-border);background:rgb(17 28 46 / 96%)}
:root[data-theme="dark"] .home-section-nav a{color:var(--ink)!important}
:root[data-theme="dark"] .home-section-nav a:hover{border-color:var(--ui-border);background:#26364a;color:#fff!important}
:root[data-theme="dark"] .home-news-card,:root[data-theme="dark"] .home-event-card,
:root[data-theme="dark"] .club-document-card,:root[data-theme="dark"] #about .grid>.card,
:root[data-theme="dark"] #sports .sport-card,:root[data-theme="dark"] .home-empty-state{
  border-color:var(--ui-border);background:var(--surface-bg);color:var(--ink)
}
:root[data-theme="dark"] .home-news-card .eyebrow{background:#26364a;color:#d6e2ef}
:root[data-theme="dark"] .home-news-read-more{color:var(--ui-link)}
:root[data-theme="dark"] #about .grid>.card :is(h3,p),
:root[data-theme="dark"] #sports .sport-card :is(h3,p),
:root[data-theme="dark"] .home-event-content :is(h3,p),
:root[data-theme="dark"] .club-document-copy :is(h3,p,small){color:var(--ink)}
:root[data-theme="dark"] #sports .sport-card p,
:root[data-theme="dark"] .home-event-content p,
:root[data-theme="dark"] .club-document-copy p,
:root[data-theme="dark"] .club-document-copy small{color:var(--ui-text-muted)}
:root[data-theme="dark"] #sports .sport-icon{border-color:#6c5b2b;background:#3c321a;color:#ffe08a}
:root[data-theme="dark"] .home-event-date{background:#243a55}
:root[data-theme="dark"] .club-public-documents{background:var(--page-bg)}
:root[data-theme="dark"] .home-steps-grid li{border-color:var(--ui-border);background:var(--surface-bg);color:var(--ink)}
:root[data-theme="dark"] .home-steps-grid h3{color:var(--ink)}
:root[data-theme="dark"] .home-steps-grid p{color:var(--ui-text-muted)}
:root[data-theme="dark"] .home-videos-section{background:var(--page-bg);color:var(--ink)}
:root[data-theme="dark"] .home-videos-heading>p{color:var(--ui-text-muted)}
:root[data-theme="dark"] .season-winner-card{border-color:#8a7334;background:linear-gradient(145deg,#202c39,#17212d);color:#edf3fa}
:root[data-theme="dark"] .season-winner-card .eyebrow,:root[data-theme="dark"] .season-winner-card>strong{color:#ffe08a}
:root[data-theme="dark"] .home-empty-state p{color:var(--ui-text-muted)}

@media(max-width:760px){
  .home-hero>.mx-auto{grid-template-columns:minmax(0,1fr);gap:1.75rem;padding-block:2.75rem}
  .home-hero-copy{max-width:42rem}
  .home-hero h1{max-width:18ch;font-size:clamp(2rem,8vw,3.1rem)}
  .home-hero-visual .hero-photo,.home-hero-visual .hero-art{min-height:clamp(15rem,62vw,25rem);max-height:28rem}
  .home-hero-values{grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));gap:.8rem}
  .home-hero-actions .button{flex:1 1 12rem;justify-content:center}
  .home-sections-layout>.section>.mx-auto{padding-block:2.5rem}
  .home-section-nav>div{padding-block:.45rem}
  .home-section-nav a{min-height:2.75rem}
  .home-photo-slider-section{padding-inline:.75rem}
  .home-slider-track{min-height:18rem;aspect-ratio:4/3}
  .home-slider-caption p{font-size:clamp(1.1rem,5vw,1.5rem)}
  .club-document-card{grid-template-columns:3rem minmax(0,1fr);gap:.75rem;padding:1rem}
  .club-document-card>.button{grid-column:1/-1;width:100%}
  .home-video-player{grid-template-columns:minmax(0,1fr)}
  .home-video-frame{grid-row:auto}
}
@media(max-width:480px){
  .home-hero>.mx-auto{padding-inline:.95rem}
  .home-hero h1{font-size:clamp(1.9rem,9vw,2.6rem)}
  .home-hero-actions{display:grid;grid-template-columns:minmax(0,1fr)}
  .home-hero-actions .button{width:100%}
  .home-hero-values{grid-template-columns:minmax(0,1fr)}
  .home-hero-values li{padding-block:.2rem}
  .home-visual-caption{inset-inline:.65rem;inset-block-end:.65rem;padding:.7rem .8rem}
  .home-join-actions{display:grid;grid-template-columns:minmax(0,1fr)}
  .home-join-actions .button{width:100%}
  .home-sections-layout :is(#about,#sports,#events,#schedule,#club-documents,.home-steps)>.mx-auto{padding-inline:.9rem}
  .home-section-nav>div{margin-inline:0;padding-inline:.75rem}
  .home-section-nav a{padding-inline:.68rem;font-size:.86rem}
  .home-slider-track{min-height:16rem}
  .home-slider-caption{padding:3.6rem .9rem 4.4rem}
  .home-slider-caption span{font-size:.88rem}
  .home-event-card{grid-template-columns:3.25rem minmax(0,1fr)}
  .home-event-card,.home-news-card{padding:.95rem}
  .home-support-panel{padding:1.1rem}
  .home-join-panel{padding:1.15rem}
}
@media(prefers-reduced-motion:reduce){
  .club-document-card,.home-section-nav a{transition:none!important}
  .club-document-card:hover{transform:none}
}

/* Image-led news and event cards use full-bleed, consistent editorial imagery. */
.home-news-card{padding:0 0 1.15rem!important;border:1px solid #dce5ed;border-radius:1rem;background:var(--surface-bg,#fff);box-shadow:0 10px 28px rgb(16 33 61 / 7%)}
.home-news-card>.eyebrow,.home-news-card>h3,.home-news-card>p:not(.eyebrow),.home-news-card>.home-news-read-more{margin-inline:1.1rem}
.home-news-card>.eyebrow{margin-block-start:.9rem}
.home-news-card-image,.home-event-card-image{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;background:#e8edf2}
.home-news-card-image{margin-block-end:.15rem}
.home-event-card{display:block;overflow:hidden;padding:0 0 1rem;border:1px solid #dce5ed;border-radius:1rem;background:var(--surface-bg,#fff);box-shadow:0 10px 28px rgb(16 33 61 / 7%)}
.home-event-card-image{margin-block-end:1rem}
.home-event-card>.home-event-date,.home-event-card>.home-event-content{margin-inline:1rem}
.home-event-card>.home-event-date{position:relative;display:flex;width:max-content;min-width:4.1rem;min-height:3rem;align-items:center;justify-content:center;gap:.3rem;margin-block-start:-2.45rem;padding:.4rem .65rem;border:2px solid #fff;border-radius:.75rem;background:#173b5b;color:#fff;box-shadow:0 5px 18px #07132630}
.home-event-card>.home-event-date span{font-size:.9rem;font-weight:850}
.public-news-image{display:block;width:100%;max-height:36rem;aspect-ratio:16/8;object-fit:cover;margin:1.25rem 0 1.75rem;border-radius:1.2rem;background:#e8edf2;box-shadow:0 18px 44px #10213d18}
.content-image-preview{display:block;width:min(100%,28rem);max-height:16rem;aspect-ratio:16/9;object-fit:cover;margin-block:.55rem;border:1px solid #dbe3ec;border-radius:.8rem;background:#f3f6f9}
.content-image-admin-thumb{display:block;width:6rem;aspect-ratio:16/9;object-fit:cover;margin-block-end:.4rem;border-radius:.5rem;background:#e8edf2}
@media(max-width:700px){.home-news-card,.home-event-card{border-radius:.85rem}.public-news-image{aspect-ratio:4/3;border-radius:.85rem}}
[data-theme="dark"] .home-news-card,[data-theme="dark"] .home-event-card{border-color:var(--ui-border,#3a4857);background:var(--surface-bg,#202b37);color:var(--ink,#f3f6fa)}
[data-theme="dark"] .home-news-card h3,[data-theme="dark"] .home-event-content h3{color:var(--ink,#f3f6fa)}


/* Keep homepage media cards fluid even when later visual themes are loaded. */
.home-photo-slider-section,.home-videos-section{min-width:0;width:100%;overflow:hidden}
.home-video-player{min-width:0;grid-template-columns:minmax(0,1.75fr) minmax(0,.75fr);grid-template-areas:"media meta" "media controls" "media list" "media note";grid-auto-rows:minmax(0,auto)}
.home-video-frame{grid-area:media;grid-row:auto;position:relative;min-width:0;min-height:0;width:100%;aspect-ratio:16/9}
.home-video-media{position:absolute!important;inset:0;display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:none;aspect-ratio:auto;border:0;background:#080e16}
.home-video-frame video{object-fit:contain}
.home-video-meta{grid-area:meta;min-width:0}
.home-video-controls{grid-area:controls}
.home-video-list{grid-area:list;min-width:0}
.home-video-note{grid-area:note;margin:0;color:#5d6d80;font-size:.88rem;line-height:1.6}
.home-video-list button{display:flex;align-items:center;gap:.5rem;max-width:min(19rem,58vw)}
@media(max-width:900px){.home-video-player{grid-template-columns:minmax(0,1fr);grid-template-areas:"media" "meta" "controls" "list" "note"}.home-video-frame{grid-row:auto}}
@media(max-width:700px){.home-slider-track{min-height:0;aspect-ratio:4/3;max-height:none}.home-video-frame{grid-row:auto;aspect-ratio:16/9}.home-video-list{max-width:100%;margin-inline:-.2rem}.home-video-list button{max-width:min(74vw,20rem);white-space:normal;text-align:start}}
