/* Page-specific artwork stays whole; only desktop shares its empty left with copy. */
.page-banner { display: grid; isolation: isolate; background: #153e43; color: #f4faf9; border-bottom: 3px solid var(--rmsdc-teal); }
.page-banner__image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: contain; object-position: right center; }
.page-banner__content { min-width: 0; padding-block: 1.5rem 2rem; align-self: center; }
.page-banner__copy { min-width: 0; overflow-wrap: anywhere; }
.page-banner .page-banner__copy h1 { font-size: 2rem; line-height: 1.15; letter-spacing: 0; color: #f4faf9; }
.page-banner .page-banner__copy .lead { font-size: 1.0625rem; line-height: 1.6; color: #f4faf9; margin-bottom: 0; }
.page-banner .eyebrow { color: #bafcff; letter-spacing: 0; }
.page-banner .btn { min-height: 2.75rem; max-width: 100%; white-space: normal; }
.page-banner .page-hero__actions, .page-banner .mentorship-actions { margin-top: 1.25rem; }
.membership-season-facts { margin-top: 0; margin-bottom: 2rem; }
.membership-season-facts .page-hero__stat strong { font-size: 1rem; line-height: 1.4; color: var(--rmsdc-ink); }
.membership-season-facts .page-hero__stat { font-size: .875rem; color: var(--rmsdc-ink); }
.mentorship-program-photo { display: block; width: 100%; height: auto; border-radius: 8px; }
@media (min-width: 992px) {
  .page-banner__image, .page-banner__content { grid-area: 1 / 1; }
  .page-banner__image { max-width: 84rem; align-self: center; justify-self: end; mask-image: linear-gradient(90deg, transparent, #000 25%); }
  .page-banner::before { content: ""; grid-area: 1 / 1; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(21, 62, 67, .96), rgba(21, 62, 67, .92) 48%, rgba(21, 62, 67, .85) 55%, transparent 66%); }
  .page-banner__content { position: relative; z-index: 2; padding-block: 2rem; }
}

/* Shared illustration framing; mobile keeps the full artwork above readable copy. */
.public-page .public-header.trail-banner,
.member-page.member-heading.trail-banner {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #153e43;
  color: #f4faf9;
}
.trail-banner__image { display: block; width: 100%; height: auto; }
.trail-banner__content { position: relative; padding-block: 1.5rem 2rem; }
.trail-banner__copy { max-width: 36rem; }
.trail-banner .trail-banner__copy :is(h1, .lead) { color: #f4faf9; }
.trail-banner .trail-banner__copy .eyebrow { color: #bafcff; }
.trail-banner .public-section-nav { gap: .3rem 1.2rem; margin-top: 1rem; }
.trail-banner .public-section-nav a { color: #bafcff; }
.club-story-photo { display: block; width: 100%; height: auto; border-radius: 8px; }
.club-disciplines { border-top: 1px solid var(--rmsdc-border); padding-top: 1.75rem; }
.club-discipline img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 6px; background: var(--rmsdc-surface-strong); }
.club-discipline figcaption { padding-top: 1rem; }
.club-discipline figcaption p { margin: 0; font-size: .9375rem; }
.mentorship-training-photo { max-width: 25rem; margin: 0 auto 2rem; }
.mentorship-training-photo img { display: block; width: 100%; height: auto; border-radius: 8px; }
.mentorship-training-photo figcaption { padding-top: .75rem; color: var(--rmsdc-muted); font-size: .875rem; }

/* The season poster anchors the masthead; the live race browser stays separate. */
.public-page .event-season-header { position: relative; isolation: isolate; overflow: hidden; padding-block: 2rem; background: #153e43; }
.event-season-header__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; z-index: -2; }
.event-season-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(21, 62, 67, .98), rgba(21, 62, 67, .85) 35%, rgba(21, 62, 67, .28)); }
.event-season-header__copy { max-width: 33rem; }
.event-season-header .public-section-nav { column-gap: 1.5rem; }
.season-poster--featured { max-width: 100%; width: fit-content; }
.season-poster--featured > .season-poster__image-link { width: fit-content; max-width: 100%; margin-inline: auto; box-shadow: 0 12px 32px rgba(5, 25, 28, .35); }
.season-poster--featured img { width: auto; height: auto; max-width: 100%; max-height: 22rem; }
.season-poster--featured figcaption { padding-top: .85rem; font-size: .9375rem; }
.season-poster--featured figcaption a { display: inline-block; padding: .4rem .65rem; background: #153e43; border-radius: 4px; color: var(--rmsdc-aqua); text-underline-offset: .25em; }
.season-poster--featured a:focus-visible { outline: 3px solid var(--rmsdc-aqua); outline-offset: 5px; }
.season-poster--featured figcaption a:hover { color: #fff; }
@media (min-width: 768px) {
  .season-poster--featured img { max-height: 30rem; }
}
@media (min-width: 992px) {
  .public-page .event-season-header { padding-block: 1.5rem; min-height: 25rem; }
  .event-season-header__content { position: relative; }
  .event-season-header::before { background: linear-gradient(90deg, rgba(21, 62, 67, .95), rgba(21, 62, 67, .82) 40%, rgba(21, 62, 67, .08) 80%); }
  .season-poster--featured img { max-height: min(34rem, calc(100svh - 12rem)); }
  .event-season-header:not(.event-season-header--poster) { display: flex; align-items: center; }
  .trail-banner__image { height: 25rem; object-fit: cover; object-position: center 75%; }
  .trail-banner__content { padding-block: 2rem; }
  .trail-banner__image + .trail-banner__content { position: absolute; inset: 0; }
  .trail-banner__copy { max-width: min(36rem, 48%); }
  .trail-banner--community .trail-banner__image { height: 17rem; }
  .trail-banner--community .trail-banner__copy { padding-block: 1rem; }
}
