/*
 * Info24RG Weather Under Brand v2
 * Stable marker: --i24-weather-topbar-height
 * This file never targets the radio player.
 */

/*
 * i24-weather-under-brand-layout-v1
 *
 * The header remains sticky. Weather is centered below identity/search,
 * and the navigation receives the measured header height as its top offset.
 */
.i24-site-header.has-i24-weather-header {
    padding: 9px 16px 8px;
    box-shadow: 0 7px 20px rgba(8, 26, 75, .12);
}

.i24-site-header.has-i24-weather-header .i24-header-inner {
    min-height: 58px;
}

.i24-site-header.has-i24-weather-header .i24-logo-img {
    max-width: 76px !important;
    max-height: 76px !important;
}

.i24-top-weather-host {
    width: min(100%, 1080px);
    margin: 7px auto 0;
    padding: 0;
    box-sizing: border-box;
}

.i24-top-weather-host:empty {
    display: none;
}

.i24-site-header.has-i24-weather-header + .i24-section-nav {
    top: var(--i24-header-sticky-offset, 126px) !important;
    z-index: 90;
}

/*
 * i24-weather-two-edge-css-v1
 */
.i24-sticky-weather {
    --i24-weather-topbar-height: 44px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    max-width: 1080px;
    min-width: 0;
    margin-inline: auto;
    height: var(--i24-weather-topbar-height);
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 11px;
    background:
        radial-gradient(circle at 14% 10%, rgba(41,98,255,.34), transparent 32%),
        radial-gradient(circle at 84% 90%, rgba(30,136,229,.22), transparent 30%),
        linear-gradient(100deg, #a70b2c 0%, #d00812 47%, #081d7a 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 4px 12px rgba(0,0,0,.14);
    color: #fff;
}

.i24-sticky-weather__fx {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .52;
    background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.06) 45%, transparent 64%);
    transform: translateX(-35%);
    animation: i24WeatherTopbarSheen 12s ease-in-out infinite;
}

.i24-sticky-weather__segment {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 5px 13px;
}

.i24-sticky-weather__weather-cluster {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    min-width: 0;
}

.i24-sticky-weather__weather-cluster .i24-sticky-weather__segment + .i24-sticky-weather__segment {
    border-left: 1px solid rgba(255,255,255,.15);
}

.i24-sticky-weather__condition {
    gap: 8px;
}

.i24-sticky-weather__clock-line {
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 7px;
    margin-left: auto;
    border-left: 1px solid rgba(255,255,255,.18);
    white-space: nowrap;
}

.i24-sticky-weather__time {
    flex: 0 0 auto;
    font-size: 20px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.6px;
}

.i24-sticky-weather__condition-copy {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 5px;
}

.i24-sticky-weather__inline-separator {
    color: rgba(255,255,255,.48);
    font-size: 12px;
    font-weight: 900;
}

.i24-sticky-weather__date,
.i24-sticky-weather__city,
.i24-sticky-weather__description {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.i24-sticky-weather__date {
    font-size: 10px;
    line-height: 1;
    font-weight: 850;
    text-transform: capitalize;
}

.i24-sticky-weather__city {
    color: rgba(255,255,255,.82);
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
}

.i24-sticky-weather__description {
    color: rgba(255,255,255,.68);
    font-size: 8px;
    line-height: 1;
    font-weight: 750;
    white-space: nowrap;
}

.i24-sticky-weather__icon {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 9px;
    background: rgba(0,23,129,.28);
    font-size: 20px;
    line-height: 1;
}

.i24-sticky-weather__temperature {
    font-size: 16px;
    line-height: 1;
    font-weight: 900;
}

.i24-sticky-weather__details {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    padding-left: 12px;
    padding-right: 12px;
}

.i24-sticky-weather__metric {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    white-space: nowrap;
}

.i24-sticky-weather__metric-icon {
    font-size: 11px;
}

.i24-sticky-weather__metric-value {
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
}

.i24-sticky-weather__metric-label {
    color: rgba(255,255,255,.62);
    font-size: 7px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
}

.i24-sticky-weather.is-error {
    filter: saturate(.82);
}

@keyframes i24WeatherTopbarSheen {
    0%, 100% { transform: translateX(-38%); opacity: .20; }
    50% { transform: translateX(38%); opacity: .55; }
}

@media (max-width: 760px) {
    .i24-site-header.has-i24-weather-header {
        padding: 8px 10px 7px;
    }

    .i24-site-header.has-i24-weather-header .i24-header-inner {
        min-height: 44px;
    }

    .i24-site-header.has-i24-weather-header .i24-logo-img {
        max-width: 44px !important;
        max-height: 44px !important;
    }

    .i24-top-weather-host {
        width: 100%;
        margin-top: 6px;
        padding: 0;
    }

    .i24-site-header.has-i24-weather-header + .i24-section-nav {
        top: var(--i24-header-sticky-offset, 96px) !important;
    }

    .i24-sticky-weather {
        --i24-weather-topbar-height: 38px;
        border-radius: 9px;
    }

    .i24-sticky-weather__segment {
        padding: 4px 7px;
    }

    .i24-sticky-weather__condition {
        gap: 5px;
    }

    .i24-sticky-weather__clock-line {
        gap: 4px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .i24-sticky-weather__time {
        font-size: 15px;
    }

    .i24-sticky-weather__date,
    .i24-sticky-weather__city {
        font-size: 8px;
    }

    .i24-sticky-weather__inline-separator {
        font-size: 9px;
    }

    .i24-sticky-weather__description {
        font-size: 7px;
    }

    .i24-sticky-weather__icon {
        width: 25px;
        height: 25px;
        flex-basis: 25px;
        font-size: 17px;
    }

    .i24-sticky-weather__temperature {
        font-size: 13px;
    }

    .i24-sticky-weather__details {
        gap: 7px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .i24-sticky-weather__metric-icon {
        font-size: 9px;
    }

    .i24-sticky-weather__metric-value {
        font-size: 9px;
    }

    .i24-sticky-weather__metric-label {
        display: none;
    }
}

@media (max-width: 560px) {
    .i24-sticky-weather__description {
        display: none;
    }

    .i24-sticky-weather__details {
        gap: 5px;
    }

    .i24-sticky-weather__clock-line {
        gap: 3px;
    }
}

@media (max-width: 440px) {
    .i24-sticky-weather__metric-icon {
        display: none;
    }

    .i24-sticky-weather__details {
        gap: 4px;
        padding-left: 6px;
        padding-right: 6px;
    }

    .i24-sticky-weather__clock-line {
        padding-left: 6px;
        padding-right: 6px;
    }

    .i24-sticky-weather__date,
    .i24-sticky-weather__city {
        font-size: 7px;
    }
}

@media (max-width: 350px) {
    .i24-sticky-weather__details .i24-sticky-weather__metric:nth-child(n+3) {
        display: none;
    }

    .i24-sticky-weather__city {
        max-width: 68px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (prefers-reduced-motion: reduce) {
    .i24-sticky-weather__fx { animation: none !important; }
}
