.hero-carousel { isolation: isolate; background: #183e45; }
.hero-carousel .portal-hero-image { opacity: 0; transition: opacity 900ms ease; animation: none; pointer-events: none; }
.hero-carousel .portal-hero-image.is-active { opacity: 1; }
.hero-carousel::after { background: linear-gradient(180deg, #0c283b4d, #0c283b91 58%, #123a46b3); }
.hero-carousel .portal-hero-inner { padding-top: 38px; }
.hero-carousel .portal-hero-copy { min-height: 116px; }
.hero-carousel .portal-hero-copy h1 { color: #fff; text-wrap: balance; text-shadow: 0 2px 20px #08233055; }
.hero-carousel .portal-hero-copy p { text-wrap: balance; }
.hero-carousel .portal-search { margin-top: 18px; }
.hero-slider-controls { display: flex; align-items: center; justify-content: center; gap: 4px; width: fit-content; max-width: 100%; margin: 12px auto 0; color: #fff; }
.hero-slider-controls button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 10px; color: inherit; border: 1px solid #ffffff38; border-radius: 50%; background: #0d2c3c36; backdrop-filter: blur(8px); transition: background 180ms ease, border-color 180ms ease; }
.hero-slider-controls button:hover { background: #ffffff24; border-color: #ffffffa8; }
.hero-slider-controls button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hero-slider-controls button svg { width: 19px; height: 19px; stroke-width: 1.8; }
.hero-slider-dots { display: flex; align-items: center; }
.hero-slider-dots button { padding: 10px 7px; border: 0; background: transparent; backdrop-filter: none; }
.hero-slider-dots button>span { display: block; width: 7px; height: 7px; border-radius: 5px; background: #ffffff70; transition: width 300ms ease, background 300ms ease; }
.hero-slider-dots button[aria-pressed="true"]>span { width: 26px; background: #fff; }
.hero-slider-controls [data-hero-play] { margin-left: 7px; }
.hero-slider-controls [data-hero-play][data-playing="false"] svg { fill: currentColor; stroke-linejoin: round; }
.hero-carousel-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 760px) {
    .hero-carousel { display: grid; grid-template-columns: minmax(0, 1fr); background: #faeee5; }
    .hero-carousel .portal-hero-inner { display: contents; }
    .hero-carousel>.portal-hero-image, .hero-carousel::after { grid-column: 1 / 2; grid-row: 1 / 2; position: absolute; inset: 0; width: 100%; height: 100%; }
    .hero-carousel>.portal-hero-image { object-position: center; }
    .hero-carousel>.portal-hero-image:first-of-type { object-position: 75% center; }
    .hero-carousel::after { background: linear-gradient(180deg, #0c283b78, #0e3547a6 62%, #183e45e6); }
    .hero-carousel .portal-hero-copy { grid-column: 1; grid-row: 1; align-self: stretch; justify-self: center; position: relative; z-index: 1; width: calc(100% - 40px); max-width: 540px; min-height: 250px; padding: 29px 0 33px; color: #fff; text-align: center; }
    .hero-carousel .portal-hero-copy .hero-kicker { color: #f9e4c4; font-size: 9px; letter-spacing: 2.3px; }
    .hero-carousel .portal-hero-copy h1 { min-height: 2.4em; max-width: 480px; font-size: clamp(28px, 6.3vw, 36px); line-height: 1.2; margin: 13px auto 11px; }
    .hero-carousel .portal-hero-copy p { max-width: 390px; min-height: 3.4em; margin: 0 auto; color: #eff5f3; font-size: 13px; line-height: 1.7; }
    .hero-carousel .hero-slider-controls { grid-column: 1; grid-row: 4; justify-self: center; position: relative; z-index: 2; margin: 0 auto 20px; color: #183e45; }
    .hero-carousel .hero-slider-controls button { border-color: #183e4533; background: #ffffff70; backdrop-filter: none; }
    .hero-carousel .hero-slider-controls button:hover { border-color: #183e4580; background: #fff; }
    .hero-carousel .hero-slider-controls button:focus-visible { outline-color: #183e45; }
    .hero-carousel .hero-slider-dots button { background: transparent; }
    .hero-carousel .hero-slider-dots button>span { background: #183e4566; }
    .hero-carousel .hero-slider-dots button[aria-pressed="true"]>span { background: #183e45; }
    .hero-carousel .portal-search { grid-column: 1; grid-row: 2; position: relative; z-index: 1; width: calc(100% - 36px); min-width: 0; max-width: 1080px; margin: 24px auto 0; }
    .hero-carousel .hero-caption { grid-column: 1; grid-row: 3; position: relative; z-index: 1; width: calc(100% - 36px); min-width: 0; margin: 16px auto 20px; color: #62767a; font-size: 10px; line-height: 1.6; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-carousel .portal-hero-image, .hero-slider-controls button, .hero-slider-dots button>span { transition: none; }
}
