/* Homepage B: the shared starfield and site navigation remain unchanged. */
.page-home .home-shell { padding-top: 16px; padding-bottom: 2.5rem; }
.club-cover { position: relative; isolation: isolate; min-height: 530px; display: flex; align-items: flex-end; background: rgba(16, 11, 31, .22); }
.club-photos { position: absolute; inset: 0; overflow: hidden; z-index: -2; }
.club-photo { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.club-photo.is-current { opacity: 1; visibility: visible; }
.club-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.club-photo figcaption { position: absolute; top: 16px; right: 18px; max-width: calc(100% - 36px); padding: .3rem .6rem; background: rgba(9, 7, 18, .72); color: #fff; font-size: .7rem; letter-spacing: .035em; backdrop-filter: blur(8px); }
.club-cover::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(0deg, rgba(10, 7, 22, .97), rgba(10, 7, 22, .78) 13%, rgba(10, 7, 22, .2) 48%, transparent 76%), linear-gradient(90deg, rgba(10, 7, 22, .55), transparent 72%); }
.club-cover-copy { padding: 0 38px 76px; max-width: 730px; }
.club-cover h1 { font-size: clamp(2rem, 3.35vw, 2.75rem); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.club-cover h1 span { color: var(--pink); }
.club-tagline { margin: 1rem 0 .35rem; font-size: 1rem; }
.club-tagline strong { color: var(--pink); font-weight: 600; }
.club-cover-description { margin-bottom: 0; color: #efeaf8; font-size: 1rem; }
.club-cover-actions { margin-top: 1.2rem; gap: .75rem; }
.club-cover-actions .button { border-radius: 3px; font-size: .9rem; min-height: 46px; padding: .65rem 1.25rem; }
.club-join { background: linear-gradient(110deg, #f09ad0, #e79de3); border-color: transparent; color: #190d24; }
.club-join span { margin-left: .85rem; font-size: 1.4rem; line-height: 1; font-weight: 400; }
.club-join:hover { background: #f7b4e1; box-shadow: 0 3px 24px rgba(240, 154, 208, .2); }
.club-courses { background: rgba(9, 7, 20, .6); border-color: var(--violet); color: #dccaff; }
.club-courses:hover { background: rgba(105, 61, 176, .3); color: #fff; }
.club-next-event { position: absolute; right: 0; bottom: 0; min-height: 124px; width: 307px; display: flex; align-items: center; justify-content: center; gap: .9rem; padding: 1rem 1.3rem 1rem 3rem; color: #fff; background: linear-gradient(125deg, #6940bc, #5635a8 65%, #684ac0); clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); text-decoration: none; text-align: center; transition: background .2s; }
.club-next-event:hover { background: linear-gradient(125deg, #7b50ce, #6441b9 65%, #785acf); }
.club-next-event:focus-visible { clip-path: none; outline-offset: -4px; }
.club-next-event > svg { display: none; width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; flex-shrink: 0; }
.club-event-label, .club-event-link, .club-next-event strong { display: block; }
.club-event-label { font-size: .8rem; }
.club-next-event strong { font: 700 1.25rem/1.35 var(--display); margin: .12rem 0 .25rem; white-space: nowrap; }
.club-event-link { font-size: .8rem; }
.club-event-link > span { margin-left: .45rem; }
.club-photo-controls { position: absolute; left: 28px; bottom: 8px; display: flex; align-items: center; gap: .6rem; }
.club-photo-controls[hidden] { display: none; }
.club-photo-choices { display: flex; align-items: center; }
.club-photo-choice, .club-photo-toggle { appearance: none; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: #e0d7ec; height: 44px; cursor: pointer; }
.club-photo-choice { width: 37px; padding: 0 5px; }
.club-photo-choice > span { width: 100%; height: 4px; border-radius: 4px; background: #85808e; transition: background .2s; }
.club-photo-choice[aria-pressed="true"] > span, .club-photo-choice:hover > span { background: var(--pink); }
.club-photo-toggle { width: 44px; flex-shrink: 0; }
.club-pause-icon { width: 11px; height: 13px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.club-photo-toggle.is-paused .club-pause-icon { width: 0; height: 0; border: 7px solid transparent; border-left: 11px solid currentColor; border-right: 0; }
.club-photo-count { font-size: .7rem; letter-spacing: .08em; color: #c6bacf; white-space: nowrap; }
.club-ribbon { --ribbon-color: #f09ad0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); color: #190d24; background: linear-gradient(110deg, #f09ad0, #eaa0d9 65%, #dca1e3); }
.club-ribbon > a { display: grid; grid-template-columns: 38px minmax(0, 1fr) 22px; align-items: center; gap: 1rem; padding: 1.4rem 1.7rem; position: relative; text-decoration: none; transition: background .2s; }
.club-ribbon > a + a::before { content: ''; position: absolute; left: 0; top: 22px; bottom: 22px; border-left: 1px solid rgba(46, 17, 56, .25); }
.club-ribbon > a:hover { background: rgba(255, 255, 255, .2); }
.club-ribbon > a:focus-visible { outline: 3px solid #30204c; outline-offset: -5px; }
.club-ribbon svg { width: 38px; height: 38px; fill: currentColor; }
.club-ribbon strong { display: block; font: 700 1.25rem/1.15 var(--display); letter-spacing: -.025em; }
.club-ribbon small { display: block; margin-top: .35rem; font-size: .8rem; line-height: 1.4; }
.club-ribbon-arrow { font-size: 1.65rem; font-weight: 400; }
.club-story { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; padding: 2.5rem 1.5rem 1rem; }
.club-story h2 { margin: 0 0 1.15rem; font-size: clamp(1.6rem, 2.6vw, 2.15rem); line-height: 1.12; letter-spacing: -.035em; }
.club-story h2 .club-violet { color: var(--violet); }
.club-story-copy > p { margin-bottom: 1rem; font-size: .95rem; }
.club-story-copy > .club-story-detail { font-size: .85rem; color: var(--muted); }
.club-story-links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.club-story-links a { display: inline-flex; gap: .5rem; align-items: center; padding: .4rem 0; font-size: .85rem; font-weight: 700; text-decoration: none; text-underline-offset: .25rem; }
.club-story-links a span { color: var(--pink); }
.club-story-links a:hover { text-decoration: underline; }
.club-story-photo { margin: 0; }
.club-story-photo img { display: block; width: 100%; height: auto; border-radius: 3px; }
.club-story-photo figcaption { padding-top: .65rem; color: var(--muted); font-size: .78rem; }
@media (min-width: 761px) and (max-width: 1000px) {
    .club-cover { min-height: 510px; }
    .club-cover-copy { padding-left: 26px; padding-right: 24px; }
    .club-cover h1 { font-size: 2.3rem; }
    .club-next-event { width: 240px; padding-left: 2rem; }
    .club-next-event strong { font-size: 1.1rem; }
    .club-photo-controls { left: 16px; }
    .club-ribbon > a { gap: .7rem; padding: 1.2rem 1rem; grid-template-columns: 30px minmax(0, 1fr) 16px; }
    .club-ribbon svg { width: 30px; height: 30px; }
    .club-ribbon strong { font-size: 1.05rem; }
    .club-ribbon small { font-size: .73rem; }
    .club-story { gap: 2rem; padding-inline: .5rem; }
}
@media (max-width: 760px) {
    .page-home .home-shell { padding-top: 8px; padding-bottom: 1.5rem; }
    .page-home .footer-top { grid-template-columns: minmax(0, 1fr); }
    .page-home .footer-top > div { min-width: 0; }
    .page-home .footer-brand { flex-wrap: wrap; gap: .75rem; }
    .page-home .footer-brand img { width: 190px; }
    .club-cover { display: flex; flex-direction: column; align-items: stretch; min-height: 0; background: linear-gradient(140deg, rgba(39, 21, 61, .32), rgba(9, 12, 27, .18)); }
    .club-cover::before { display: none; }
    .club-photos { position: relative; aspect-ratio: 1920 / 1056; flex: none; z-index: 0; }
    .club-photo img { object-fit: contain; object-position: center; }
    .club-photo figcaption { top: auto; bottom: 6px; right: 8px; max-width: calc(100% - 16px); padding: .15rem .4rem; font-size: .6rem; }
    .club-cover-copy { padding: 1.2rem 1.2rem 1rem; max-width: none; }
    .club-cover h1 { font-size: clamp(1.65rem, 6.25vw, 2.3rem); line-height: 1.1; }
    .club-tagline { font-size: .88rem; margin-top: .75rem; }
    .club-cover-description { font-size: .88rem; }
    .club-cover-actions { flex-direction: column; gap: .55rem; margin-top: 1rem; }
    .club-cover-actions .button { width: 100%; min-height: 44px; font-size: .88rem; padding: .6rem 1rem; }
    .club-next-event { position: static; width: auto; margin: 0 1.2rem; padding: .8rem 1rem; min-height: 0; clip-path: none; border-radius: 3px; text-align: left; }
    .club-next-event > svg { display: block; }
    .club-next-event strong { font-size: 1.12rem; }
    .club-event-label, .club-event-link { font-size: .75rem; }
    .club-photo-controls { position: static; margin: .2rem .65rem; min-height: 44px; }
    .club-photo-choice { width: 34px; }
    .club-photo-count { margin-left: auto; margin-right: .6rem; }
    .club-ribbon { grid-template-columns: 1fr; }
    .club-ribbon > a { grid-template-columns: 30px minmax(0, 1fr) 22px; gap: .9rem; padding: 1rem 1.2rem; }
    .club-ribbon > a + a::before { left: 1.2rem; right: 1.2rem; top: 0; bottom: auto; border-left: 0; border-top: 1px solid rgba(46, 17, 56, .23); }
    .club-ribbon svg { width: 30px; height: 30px; }
    .club-ribbon strong { font-size: 1.05rem; }
    .club-ribbon small { font-size: .75rem; margin-top: .2rem; }
    .club-story { grid-template-columns: 1fr; gap: 1.4rem; padding: 1.8rem .35rem .5rem; }
    .club-story h2 { font-size: 1.55rem; line-height: 1.25; margin-bottom: .9rem; }
    .club-story h2 br { display: none; }
    .club-story h2 span::before { content: ' '; }
    .club-story-copy > p { font-size: .9rem; }
    .club-story-photo figcaption { font-size: .73rem; }
}
@media (max-width: 360px) {
    .page-home .header-main .brand img { width: 190px; max-width: 100%; }
    .page-home .header-main .brand strong, .page-home .header-main .brand em { font-size: .62rem; }
    .club-cover-copy { padding-inline: 1rem; }
    .club-next-event { margin-inline: 1rem; }
    .club-ribbon > a { gap: .7rem; padding-inline: 1rem; }
    .club-photo-controls { gap: .3rem; }
    .club-photo-choice { width: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    .club-photo, .club-photo-choice > span, .club-ribbon > a, .club-next-event { transition: none; }
    .club-cover-actions .button { transition: none; }
    .club-cover-actions .button:hover { transform: none; }
}
