/* Air Quality — Splitv Zone (wide short).
 * 4 equal-width columns: header / gauge / bars / sparkline.
 * 2.5% gaps between columns.
 */

.aq-splitv {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--aq-color, #00E400) 35%, #ffffff) 0%, #ffffff 100%);
}

.aq-splitv-card {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5%;
    color: #202124;
    padding: 2cqh 2cqw;
    width: 80%;
    height: 80%;
    box-sizing: border-box;
    background: transparent;
    border: none;
    box-shadow: none;
}

.aq-splitv-col {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    min-width: 0;
    min-height: 0;
}

/* ── 1: Header column ────────────────────────────────────── */
.aq-splitv-col-header {
    align-items: center;
    text-align: center;
    gap: 1.5cqh;
    padding: 2cqh 1cqh;
}
.aq-splitv-city {
    font-size: 9cqh !important;
    font-weight: 500 !important;
    font-family: 'Roboto', sans-serif;
    color: #5F6368;
    line-height: 1 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.aq-splitv-category {
    --shadow: color-mix(in srgb, var(--aq-color, #00E400), #000 60%);
    font-size: 14cqh !important;
    font-weight: 700 !important;
    font-family: 'Montserrat', sans-serif;
    color: var(--aq-color, #00E400);
    line-height: 1.1 !important;
    text-shadow:
        -0.15cqh 0 var(--shadow),
        0 0.15cqh var(--shadow),
        0.15cqh 0 var(--shadow),
        0 -0.15cqh var(--shadow),
        -1.2cqh 1.2cqh var(--shadow),
        -1.05cqh 1.05cqh var(--shadow),
        -0.9cqh 0.9cqh var(--shadow),
        -0.75cqh 0.75cqh var(--shadow),
        -0.6cqh 0.6cqh var(--shadow),
        -0.45cqh 0.45cqh var(--shadow),
        -0.3cqh 0.3cqh var(--shadow),
        -0.15cqh 0.15cqh var(--shadow);
}
.aq-splitv-advice {
    font-size: 7cqh !important;
    font-weight: 400 !important;
    font-family: 'Roboto', sans-serif;
    color: #202124;
    line-height: 1.3 !important;
    max-width: 95%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* ── Shared box styling (cols 2-4) ───────────────────────── */
.aq-splitv-box {
    flex: 1 1 auto;
    height: 100%;
    gap: 1cqh;
    padding: 5% 1.5cqw;
    background-color: color-mix(in srgb, var(--aq-color, #00E400), #000 80%);
    color: #e5dede;
    border: 0.5cqh solid var(--aq-color, #00E400);
    border-radius: 1.5cqh;
    box-shadow: 0.6cqh 0.6cqh 0.15cqh #000000;
}
.aq-splitv-chart-title {
    font-size: 6cqh !important;
    font-weight: 600 !important;
    font-family: 'Roboto', sans-serif;
    color: #B8B8B8;
    text-align: start;
    letter-spacing: 0.05em !important;
    line-height: 1 !important;
    text-transform: uppercase;
    flex: 0 0 auto;
}

/* ── 2: Gauge ────────────────────────────────────────────── */
.aq-splitv-gauge-wrap {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
}
.aq-splitv-gauge {
    width: 100%;
    height: 100%;
}
.aq-splitv-gauge svg {
    width: 100% !important;
    height: 100% !important;
    display: block;
}
.aq-splitv-gauge-value {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}
.aq-splitv-aqi {
    font-size: 12cqh !important;
    font-weight: 700 !important;
    font-family: 'Montserrat', sans-serif;
    color: var(--aq-color, #00E400);
    line-height: 1 !important;
    -webkit-text-stroke: 0.3cqh #000000;
    text-shadow: 0 0 1.5cqh color-mix(in srgb, var(--aq-color, #00E400), transparent 50%);
}
.aq-splitv-aqi-label {
    font-size: 2.5cqh !important;
    font-weight: 600 !important;
    font-family: 'Roboto', sans-serif;
    color: #B8B8B8;
    letter-spacing: 0.15em !important;
    margin-top: 0.4cqh;
}

/* ── 3: Bars ─────────────────────────────────────────────── */
.aq-splitv-bars {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 2cqh;
}
.aq-splitv-bar-row {
    display: grid;
    grid-template-columns: 14cqh 1fr 7cqh;
    align-items: center;
    column-gap: 8%;
}
.aq-splitv-bar-label {
    font-size: 4.5cqh !important;
    font-weight: 600 !important;
    font-family: 'Roboto', sans-serif;
    color: #B8B8B8;
    line-height: 1;
}
.aq-splitv-bar-track {
    background: rgba(255, 255, 255, 0.1);
    height: 9cqh;
    border-radius: 1cqh;
    overflow: hidden;
}
.aq-splitv-bar-fill {
    height: 100%;
    border-radius: 1cqh;
    transition: width 0.5s ease;
}
.aq-splitv-bar-value {
    font-size: 4cqh !important;
    font-weight: 600 !important;
    font-family: 'Roboto', sans-serif;
    color: #E5DEDE;
    line-height: 1;
    margin-inline-start: 1cqh;
}

/* ── 4: Sparkline ────────────────────────────────────────── */
.aq-splitv-sparkline {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
}
.aq-splitv-sparkline svg {
    width: 100% !important;
    height: 100% !important;
    display: block;
}
