.height-hero {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #16296e;
    color: #fff;
    box-shadow: 0 18px 45px rgba(22, 41, 110, 0.2);
}

.height-hero-copy,
.height-hero-media {
    position: relative;
    z-index: 1;
}

.height-hero-copy {
    padding: clamp(1.4rem, 4vw, 3rem);
}

.height-hero-kicker {
    margin-bottom: 0.55rem;
    color: #cfe3ff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.height-hero .height-hero-title {
    margin: 0 0 1rem;
    color: #fff;
    border: 0;
    font-size: clamp(1.75rem, 3vw, 2.65rem);
    line-height: 1.05;
}

.height-hero-copy p {
    max-width: 39rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
}

.height-hero-media {
    min-height: 280px;
}

.height-hero-media img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

.height-tool {
    margin-top: 2rem;
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid #dce5fa;
    border-radius: 18px;
    background: #f7f9ff;
    box-shadow: 0 12px 35px rgba(22, 41, 110, 0.1);
}

.height-control-panel {
    padding: clamp(1rem, 3vw, 1.75rem);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(22, 41, 110, 0.08);
}

.height-number-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.height-number-label {
    margin: 0;
    color: #16296e;
    font-family: "Ubuntu Condensed", sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
}

.height-number-wrap {
    display: inline-flex;
    align-items: baseline;
    padding: 0.2rem 0.7rem;
    border: 2px solid #16296e;
    border-radius: 12px;
    background: #fff;
}

.height-number-wrap input {
    width: 4.8rem;
    border: 0;
    outline: 0;
    color: #16296e;
    background: transparent;
    font-family: "Ubuntu Condensed", sans-serif;
    font-size: 2.3rem;
    font-weight: 700;
    text-align: right;
}

.height-number-wrap span {
    margin-left: 0.3rem;
    color: #ad2850;
    font-size: 1.05rem;
    font-weight: 700;
}

.height-range {
    width: 100%;
    height: 8px;
    margin: 1.5rem 0 0.6rem;
    border-radius: 999px;
    accent-color: #ad2850;
    cursor: pointer;
}

.height-scale {
    display: flex;
    justify-content: space-between;
    color: #68718a;
    font-size: 0.78rem;
}

.height-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.25rem;
}

.height-preset {
    padding: 0.45rem 0.75rem;
    border: 1px solid #b8c6e8;
    border-radius: 999px;
    color: #16296e;
    background: #fff;
    font-weight: 700;
}

.height-preset:hover,
.height-preset:focus-visible,
.height-preset.is-active {
    border-color: #ad2850;
    color: #fff;
    background: #ad2850;
}

.height-ruler {
    position: relative;
    height: 15px;
    margin-top: 1.25rem;
    overflow: hidden;
    border-radius: 999px;
    background: #dbe2f1;
}

.height-ruler-progress {
    width: 50%;
    height: 100%;
    border-radius: inherit;
    background: #16296e;
    transition: width 220ms ease;
}

.height-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 1.2rem 0;
}

.height-summary-card {
    min-height: 118px;
    padding: 1rem;
    border: 1px solid #dde3ef;
    border-radius: 14px;
    background: #fff;
}

.height-summary-card strong {
    display: block;
    color: #16296e;
    font-family: "Ubuntu Condensed", sans-serif;
    font-size: 1.8rem;
    line-height: 1;
}

.height-summary-card span {
    display: block;
    margin-top: 0.5rem;
    color: #5c6479;
    font-size: 0.9rem;
    line-height: 1.25;
}

.height-result-note {
    padding: 0.9rem 1rem;
    border: 1px solid #d8dfec;
    border-radius: 8px;
    background: #fff;
}

.height-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    margin: 1.6rem 0 1rem;
}

.height-filter-bar label {
    color: #16296e;
    font-weight: 700;
}

.height-filter-bar select {
    min-width: 220px;
}

.height-ride-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.height-ride-card {
    position: relative;
    padding: 1rem 1rem 1rem 1.15rem;
    border: 1px solid #d9dfeb;
    border-radius: 12px;
    background: #fff;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.height-ride-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 20px rgba(22, 41, 110, 0.09);
}

.height-ride-card[hidden] {
    display: none;
}

.height-ride-head {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    justify-content: space-between;
}

.height-ride-card h3 {
    margin: 0;
    color: #16296e;
    font-size: 1.18rem;
    line-height: 1.15;
}

.height-status {
    flex: 0 0 auto;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.is-available .height-status {
    background: #198754;
}

.is-locked .height-status {
    background: #ad2850;
}

.height-ride-meta {
    margin: 0.5rem 0;
    color: #68718a;
    font-size: 0.82rem;
}

.height-ride-card p {
    margin: 0;
    font-size: 0.92rem;
}

.height-threshold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    margin-right: 0.55rem;
    padding: 0.4rem 0.55rem;
    border-radius: 9px;
    color: #fff;
    background: #16296e;
    font-family: "Ubuntu Condensed", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.height-fact-card {
    height: 100%;
    padding: 1rem;
    border: 1px solid #dce3f1;
    border-radius: 12px;
    background: #fff;
}

.height-fact-card h3 {
    color: #16296e;
}

.height-photo-strip img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.height-faq details {
    margin-bottom: 0.65rem;
    border: 1px solid #d8dfec;
    border-radius: 10px;
    background: #fff;
}

.height-faq summary {
    position: relative;
    padding: 1rem 2.7rem 1rem 1rem;
    color: #16296e;
    font-weight: 700;
    cursor: pointer;
}

.height-faq summary::after {
    position: absolute;
    top: 50%;
    right: 1rem;
    color: #ad2850;
    font-size: 1.25rem;
    content: "+";
    transform: translateY(-50%);
}

.height-faq details[open] summary::after {
    content: "−";
}

.height-faq details p {
    margin: 0;
    padding: 0 1rem 1rem;
}

@media (max-width: 767.98px) {
    .height-hero-media,
    .height-hero-media img {
        min-height: 220px;
        max-height: 280px;
    }

    .height-summary-grid,
    .height-ride-grid {
        grid-template-columns: 1fr;
    }

    .height-summary-card {
        min-height: auto;
    }

    .height-filter-bar select {
        width: 100%;
    }

    .height-photo-strip img {
        height: 220px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .height-ruler-progress,
    .height-ride-card {
        transition: none;
    }
}
