/* Homepage framing: reserve space for navigation, content and the fixed rail. */
.home-first-view {
  --home-gutter: clamp(28px, 4vw, 72px);
  --home-rail-space: 124px;
  --home-header-height: 96px;
}

.home-first-view .home-event-notice { display: contents; }
.home-first-view .home-event-desktop { display: none; }

@media (min-width: 1051px) {
  .home-first-view .global-site-header-inner {
    width: min(1680px, calc(100% - 64px));
    min-height: var(--home-header-height) !important;
    padding-block: 8px;
    justify-content: space-between !important;
    gap: clamp(18px, 1.6vw, 28px);
  }
  .home-first-view .global-site-brand {
    position: static;
    flex: 0 0 auto;
    min-width: 0;
  }
  .home-first-view .global-site-brand img {
    width: auto;
    max-width: 220px;
    max-height: 80px;
    object-fit: contain;
  }
  .home-first-view .global-site-brand-note { display: none; }
  .home-first-view .global-site-menu {
    position: static;
    flex: 0 1 auto;
    justify-content: flex-end;
    gap: clamp(10px, 1.15vw, 20px);
    font-size: clamp(15px, 1.15vw, 18px);
  }
  .home-first-view .global-site-menu > li:last-child { position: static; }
  .home-first-view .global-site-menu .global-site-call { padding-inline: 18px; }
  .home-first-view .season-alert {
    top: calc(var(--home-header-height) + 14px);
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    min-width: 0;
    max-width: calc(100% - 260px);
    padding: 9px 20px;
    font-size: 14px;
    line-height: 1.5;
  }
  .home-first-view .season-alert.home-event-alert { display: none; }
  .home-first-view .home-event-desktop {
    display: flex;
    align-items: center;
    position: absolute;
    top: var(--site-sticky-height, calc(var(--home-header-height) + 1px));
    left: 50%;
    transform: translateX(-50%);
    width: min(1680px, calc(100% - 64px));
    max-width: none;
    min-height: 56px;
    padding: 4px 20px;
    gap: 28px;
    z-index: 50;
    border: 1px solid rgba(209, 235, 225, .3);
    border-radius: 14px;
    background: transparent;
    backdrop-filter: none;
    color: #eff8f4;
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
  }
  .home-first-view .home-event-label {
    flex: 0 0 auto;
    padding: 5px 12px;
    border-radius: 999px;
    background: transparent;
    color: #cce8df;
    font-size: 13px;
    font-weight: 700;
  }
  .home-first-view .home-event-list {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 8px 32px;
  }
  .home-first-view .home-event-list li {
    flex: 0 1 auto;
    min-width: 0;
  }
  .home-first-view .home-event-list a {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 14px;
    min-height: 44px;
    padding: 8px 4px;
    overflow-wrap: anywhere;
  }
  .home-first-view .home-event-name { font-weight: 650; }
  .home-first-view .home-event-list time,
  .home-first-view .home-event-period {
    font-size: 13px;
    color: #c4d6cd;
    white-space: nowrap;
  }
  .home-first-view .home-event-all {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 44px;
    gap: 8px;
    margin-left: auto;
    color: #d4e4dc;
    font-size: 13px;
    font-weight: 650;
  }
  .home-first-view .home-event-desktop a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  .home-first-view .home-event-desktop a:focus-visible {
    outline: 2px solid #b9eee7;
    outline-offset: -2px;
  }
  .home-first-view .season-alert span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
  }
}

@media (min-width: 1740px) {
  .home-first-view .global-site-brand-note { display: grid; }
}

@media (min-width: 761px) {
  .home-first-view .hero { min-height: 100svh; }
  .home-first-view .hero .hero-grid {
    width: min(1280px, calc(100% - 2 * var(--home-gutter) - var(--home-rail-space)));
    max-width: 1280px;
    min-height: 100svh;
    margin-left: max(var(--home-gutter), calc((100% - var(--home-rail-space) - 1280px) / 2));
    margin-right: auto;
    padding-top: calc(var(--home-header-height) + clamp(76px, 10svh, 108px));
    padding-bottom: clamp(42px, 8svh, 90px);
    align-items: center;
  }
  .home-first-view .hero .hero-copy {
    width: min(760px, 100%);
    min-width: 0;
  }
  .home-first-view .hero .eyebrow { margin-bottom: 0; }
  .home-first-view .hero h1 {
    max-width: 720px;
    margin: 18px 0 0;
    font-size: clamp(44px, 4.6vw, 72px);
    line-height: 1.14;
    letter-spacing: -.045em;
  }
  .home-first-view .hero .hero-lead {
    margin: 24px 0 0;
    font-size: clamp(17px, 1.35vw, 20px);
    line-height: 1.8;
  }
  .home-first-view .hero-actions.homepage-actions { margin-top: 26px; }
  .home-first-view .hero-visual-one { background-position: 56% center; }
  .home-first-view .hero-visual-two { background-position: 60% center; }
}

@media (min-width: 761px) and (max-width: 1050px) {
  .home-first-view { --home-header-height: 76px; }
  .home-first-view .global-site-header-inner { min-height: 76px !important; }
  .home-first-view .global-site-brand img {
    width: auto;
    max-width: 174px;
    max-height: 62px;
    object-fit: contain;
  }
  .home-first-view .global-mobile-section-nav { top: 76px; }
  .home-first-view .hero .hero-grid { padding-top: 206px; }
}

@media (min-width: 761px) and (max-height: 700px) {
  .home-first-view .hero h1 {
    margin-top: 14px;
    font-size: clamp(42px, 8.6svh, 60px);
  }
  .home-first-view .hero .hero-lead {
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.7;
  }
  .home-first-view .hero .hero-grid { padding-bottom: 28px; }
  .home-first-view .hero-actions.homepage-actions { margin-top: 22px; }
  .home-first-view .hero-actions.homepage-actions .btn { min-height: 52px; }
  .home-first-view .side-floating {
    top: max(106px, calc(50% - 160px));
    transform: none;
  }
  .home-first-view .side-floating a {
    min-height: 64px;
    padding: 8px 6px;
    gap: 4px;
    font-size: 12px;
  }
  .home-first-view .side-floating-mark {
    width: 26px;
    height: 26px;
    border-radius: 9px;
    font-size: 11px;
  }
}

@media (min-width: 1051px) and (max-height: 700px) {
  .home-first-view { --home-header-height: 88px; }
  .home-first-view .global-site-brand img { max-height: 72px; }
  .home-first-view .season-alert { padding-block: 7px; font-size: 13px; }
  .home-first-view .hero .hero-grid { padding-top: 150px; }
}

@media (min-width: 761px) and (max-width: 1050px) and (max-height: 700px) {
  .home-first-view .hero .hero-grid { padding-top: 202px; }
  .home-first-view .season-alert { font-size: 13px; padding-block: 7px; }
  .home-first-view .side-floating { top: max(132px, calc(50% - 160px)); }
}

@media (min-width: 761px) and (max-width: 880px) {
  .home-first-view { --home-rail-space: 0px; }
}
