/* SPENIWA V17 — Public refinements; add after V16 CSS. */
/* The hero must fill the initial viewport, plus a scroll lead-in. Its wave and
   statistics are encountered naturally when the visitor scrolls down. */
.home-hero-v10.home-hero-v17 {
    --v17-wave-height: clamp(75px, 8.5vw, 116px);
    --wave-height: var(--v17-wave-height);
    min-height: max(770px, calc(100svh + 190px));
    padding-top: clamp(130px, 15svh, 190px) !important;
    padding-bottom: clamp(185px, 21svh, 260px) !important;
    display: grid;
    align-items: center;
    box-sizing: border-box;
}
.home-hero-v17 .carousel-inner,
.home-hero-v17 .carousel-item { height: 100%; min-height: 0; }
.home-hero-v17 .hero-content { position: relative; z-index: 2; }
.home-hero-v17 .hero-wave-v16 {
    bottom: -1px;
    height: var(--v17-wave-height);
    width: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 3;
}
.home-hero-v17 .hero-wave-fill-v16 { fill: #f8fafc; }
.home-hero-v17 .hero-wave-stroke-v16 {
    fill: none;
    stroke: #b8d1e9;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
    opacity: .88;
}
.home-hero-v17 + .home-overlap-v17 {
    margin-top: -52px;
    margin-bottom: clamp(56px, 7vw, 100px);
    z-index: 5;
}
.home-hero-v17 + .home-overlap-v17 .stats-shell-v5 > .row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 1.4vw, 18px);
    align-items: stretch;
}
.home-hero-v17 + .home-overlap-v17 .stat-inner-v5 {
    height: 100%;
    min-height: 132px;
    transform: none;
}
/* Keep content visible without JS and for visitors requesting reduced motion. */
@media (prefers-reduced-motion: no-preference) {
    .home-overlap-v17.v17-reveal-ready .stat-inner-v5 {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity .52s ease, transform .52s cubic-bezier(.2,.7,.2,1);
    }
    .home-overlap-v17.v17-reveal-ready.v17-revealed .stat-inner-v5 {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Existing news control CSS is reused by the achievements form. */
.achievement-controls-v17 { max-width: 850px; }
.achievement-controls-v17 .search-field-v5 { min-width: 0; }
.achievement-controls-v17 .form-control,
.achievement-controls-v17 .form-select,
.achievement-controls-v17 .btn { min-height: 46px; }
.achievement-controls-v17 .btn { white-space: nowrap; }
@media(max-width:767.98px) {
    .home-hero-v10.home-hero-v17 {
        --v17-wave-height: clamp(72px, 13vw, 95px);
        min-height: max(710px, calc(100svh + 158px));
        padding-top: 122px !important;
        padding-bottom: clamp(185px, 23svh, 230px) !important;
    }
    .home-hero-v17 + .home-overlap-v17 { margin-top: -34px; }
    .home-hero-v17 + .home-overlap-v17 .stats-shell-v5 > .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-hero-v17 + .home-overlap-v17 .stat-inner-v5 { min-height: 112px; }
}
@media(max-width:420px) {
    .achievement-controls-v17 { grid-template-columns: 1fr; }
    .achievement-controls-v17 .btn { width: 100%; }
}
@media(prefers-reduced-motion:reduce){
    .home-overlap-v17 .stat-inner-v5 { transition: none !important; opacity:1!important;transform:none!important; }
}
