.jo-air-section {
    --jo-air-ink: #18364a;
    --jo-air-muted: #607789;
    --jo-air-blue: #176c8b;
    --jo-air-line: #dce8ef;
    --jo-air-card: #fff;
    padding: clamp(2.6rem, 5vw, 4.3rem) 0;
    color: var(--jo-air-ink);
    background:
        radial-gradient(ellipse at 92% 4%, rgba(111, 184, 211, .17), transparent 31rem),
        linear-gradient(180deg, #f5f9fb 0%, #edf5f8 100%);
    border-top: 1px solid #e2edf2;
    overflow-x: hidden;
}

.jo-air-section *,
.jo-air-section *::before,
.jo-air-section *::after {
    box-sizing: border-box;
}

.jo-air-container {
    max-width: 1180px;
}

.jo-air-heading {
    max-width: 680px;
    margin: 0 auto 1.5rem;
    text-align: center;
}

.jo-air-section .jo-air-eyebrow {
    margin: 0 0 .45rem;
    color: var(--jo-air-blue);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.jo-air-heading h1,
.jo-air-heading h2 {
    margin: 0;
    color: var(--jo-air-ink);
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    font-weight: 800;
    line-height: 1.25;
}

.jo-air-heading > p:last-child {
    margin: .5rem 0 0;
    color: var(--jo-air-muted);
    font-size: 1rem;
}

.jo-air-layout {
    display: grid;
    grid-template-columns: minmax(260px, .86fr) minmax(0, 1.14fr);
    gap: 1rem;
    align-items: stretch;
}

.jo-air-card {
    min-width: 0;
    padding: clamp(1rem, 2vw, 1.45rem);
    background: var(--jo-air-card);
    border: 1px solid var(--jo-air-line);
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(34, 70, 91, .07);
}

.jo-air-reading-card,
.jo-air-map-card {
    animation: jo-air-enter .42s ease-out both;
}

.jo-air-map-card {
    animation-delay: .06s;
}

@keyframes jo-air-enter {
    from { opacity: .78; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.jo-air-card-top {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.jo-air-card-top h3,
.jo-air-chart-heading h3 {
    margin: 0;
    color: var(--jo-air-ink);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.jo-air-card-top .jo-air-eyebrow {
    margin-bottom: .3rem;
}

.jo-air-sensor-type {
    margin: .25rem 0 0;
    color: var(--jo-air-muted);
    font-size: .88rem;
}

.jo-air-live-indicator,
.jo-air-map-count,
.jo-air-chart-period {
    flex: 0 0 auto;
    padding: .34rem .62rem;
    color: #355b70;
    background: #edf5f8;
    border: 1px solid #d8e8ef;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 750;
    line-height: 1.3;
}

.jo-air-live-indicator[data-kind="stale"] {
    color: #714d1c;
    background: #fff6e6;
    border-color: #f0dfbd;
}

.jo-air-live-indicator[data-kind="error"] {
    color: #8b3535;
    background: #fff0ef;
    border-color: #f0d3d0;
}

.jo-air-value-wrap {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    min-height: 88px;
    margin: .8rem 0 .35rem;
}

.jo-air-value {
    color: #164f6a;
    font-size: clamp(2.55rem, 5vw, 3.6rem);
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1;
}

.jo-air-value-unit {
    color: #49677a;
    font-size: .95rem;
    font-weight: 700;
}

.jo-air-value-unit span {
    display: block;
    margin-top: .15rem;
    color: var(--jo-air-muted);
    font-size: .75rem;
    font-weight: 650;
    letter-spacing: .05em;
}

.jo-air-field-label {
    display: block;
    margin: .7rem 0 .35rem;
    color: #315164;
    font-size: .84rem;
    font-weight: 750;
}

.jo-air-region-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
}

.jo-air-region-button {
    min-height: 44px;
    padding: .55rem .45rem;
    color: #315164;
    background: #f6fafc;
    border: 1px solid #b9ceda;
    border-radius: 10px;
    font: inherit;
    font-size: .78rem;
    font-weight: 750;
    line-height: 1.25;
    cursor: pointer;
    transition: color .15s ease, background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.jo-air-region-button:hover {
    border-color: #19789a;
    transform: translateY(-1px);
}

.jo-air-region-button:focus-visible {
    outline: 3px solid rgba(25, 120, 154, .24);
    outline-offset: 2px;
}

.jo-air-region-button.is-active {
    color: #fff;
    background: #176f8e;
    border-color: #176f8e;
    box-shadow: 0 5px 12px rgba(23, 111, 142, .2);
}

.jo-air-select {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: .6rem 2.1rem .6rem .75rem;
    color: #18364a;
    background: #fff;
    border: 1px solid #b9ceda;
    border-radius: 11px;
    font: inherit;
    font-size: .93rem;
}

.jo-air-select:disabled {
    color: #647b8a;
    background: #f5f8f9;
}

.jo-air-aqi-panel {
    margin: .75rem 0 .9rem;
    padding: .8rem .9rem;
    background: #f4f7f8;
    border: 1px solid #d7e2e7;
    border-left: 5px solid #78909c;
    border-radius: 11px;
}

.jo-air-aqi-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .55rem;
    margin-bottom: .45rem;
}

.jo-air-aqi-heading strong { color: #18364a; }

.jo-air-aqi-heading span {
    padding: .2rem .55rem;
    color: #fff;
    background: #607d8b;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 800;
}

.jo-air-aqi-panel p {
    margin: .28rem 0 0;
    color: #365464;
    font-size: .78rem;
    line-height: 1.55;
}

.jo-air-aqi-panel[data-level="very-good"] { border-left-color: #3b82c4; background: #eef7ff; }
.jo-air-aqi-panel[data-level="very-good"] .jo-air-aqi-heading span { background: #2574a9; }
.jo-air-aqi-panel[data-level="good"] { border-left-color: #39a852; background: #effaf2; }
.jo-air-aqi-panel[data-level="good"] .jo-air-aqi-heading span { background: #27863d; }
.jo-air-aqi-panel[data-level="moderate"] { border-left-color: #e1b900; background: #fffbea; }
.jo-air-aqi-panel[data-level="moderate"] .jo-air-aqi-heading span { color: #332900; background: #f0c800; }
.jo-air-aqi-panel[data-level="unhealthy"] { border-left-color: #ef8a22; background: #fff5e9; }
.jo-air-aqi-panel[data-level="unhealthy"] .jo-air-aqi-heading span { background: #d96b0b; }
.jo-air-aqi-panel[data-level="dangerous"] { border-left-color: #d83a3a; background: #fff0f0; }
.jo-air-aqi-panel[data-level="dangerous"] .jo-air-aqi-heading span { background: #bd2424; }

.jo-air-trend {
    margin: -.35rem 0 .8rem;
    padding: .55rem .7rem;
    color: #264b60;
    background: #eef5f8;
    border-radius: 9px;
    font-size: .82rem;
    font-weight: 700;
}

.jo-air-exercise {
    --exercise-accent: #607d8b;
    --exercise-soft: #edf3f5;
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    align-items: center;
    gap: .85rem;
    margin: .85rem 0 1rem;
    padding: .85rem;
    position: relative;
    background: linear-gradient(135deg, var(--exercise-soft), #fff 72%);
    border: 1px solid color-mix(in srgb, var(--exercise-accent) 32%, #dce8ed);
    border-radius: 16px;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--exercise-accent) 12%, transparent);
    overflow: hidden;
}

.jo-air-exercise[data-level="go"] { --exercise-accent: #229447; --exercise-soft: #e8f8ed; }
.jo-air-exercise[data-level="caution"] { --exercise-accent: #d2a000; --exercise-soft: #fff8d9; }
.jo-air-exercise[data-level="indoor"] { --exercise-accent: #e57312; --exercise-soft: #fff0df; }
.jo-air-exercise[data-level="stop"] { --exercise-accent: #cf3338; --exercise-soft: #ffe8e9; }

.jo-air-exercise-visual {
    display: grid;
    min-height: 108px;
    place-items: center;
    position: relative;
    background: color-mix(in srgb, var(--exercise-accent) 10%, #fff);
    border-radius: 14px;
    isolation: isolate;
}

.jo-air-exercise-visual svg {
    --runner-speed: .66s;
    --runner-half-cycle: -.33s;
    width: 112px;
    height: 104px;
    z-index: 2;
    overflow: visible;
    animation: jo-air-runner-bob var(--runner-speed) linear infinite;
}

.jo-air-runner-shadow {
    fill: rgba(24, 54, 74, .14);
    transform-origin: 65px 108px;
    animation: jo-air-runner-shadow var(--runner-speed) ease-in-out infinite;
}

.jo-air-runner-shirt { fill: var(--exercise-accent); }
.jo-air-runner-shorts { fill: #174a61; }
.jo-air-runner-face { fill: #f2b58c; }
.jo-air-runner-hair { fill: #18364a; }

.jo-air-runner-neck,
.jo-air-runner-arm > path,
.jo-air-runner-forearm > path,
.jo-air-runner-leg > path,
.jo-air-runner-calf > path {
    fill: none;
    stroke: #f2b58c;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jo-air-runner-arm > .jo-air-runner-sleeve {
    stroke: var(--exercise-accent);
    stroke-width: 10;
}

.jo-air-runner-leg > .jo-air-runner-thigh {
    stroke: #174a61;
    stroke-width: 11;
}

.jo-air-runner-calf > .jo-air-runner-shoe {
    stroke: #fff;
    stroke-width: 9;
}

.jo-air-runner-hand { fill: #f2b58c; }

.jo-air-runner-face-detail {
    fill: none;
    stroke: #18364a;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.jo-air-runner-avatar g {
    transform-box: view-box;
}

.jo-air-runner-arm-front {
    transform-origin: 71px 38px;
    animation: jo-air-runner-arm var(--runner-speed) ease-in-out infinite;
}

.jo-air-runner-arm-back {
    transform-origin: 58px 38px;
    opacity: .72;
    animation: jo-air-runner-arm var(--runner-speed) ease-in-out var(--runner-half-cycle) infinite;
}

.jo-air-runner-forearm-front {
    transform-origin: 87px 51px;
    animation: jo-air-runner-forearm var(--runner-speed) ease-in-out infinite;
}

.jo-air-runner-forearm-back {
    transform-origin: 46px 51px;
    animation: jo-air-runner-forearm var(--runner-speed) ease-in-out var(--runner-half-cycle) infinite;
}

.jo-air-runner-leg-front {
    transform-origin: 69px 68px;
    animation: jo-air-runner-thigh var(--runner-speed) ease-in-out infinite;
}

.jo-air-runner-leg-back {
    transform-origin: 61px 65px;
    opacity: .72;
    animation: jo-air-runner-thigh var(--runner-speed) ease-in-out var(--runner-half-cycle) infinite;
}

.jo-air-runner-calf-front {
    transform-origin: 83px 85px;
    animation: jo-air-runner-calf var(--runner-speed) ease-in-out infinite;
}

.jo-air-runner-calf-back {
    transform-origin: 48px 84px;
    animation: jo-air-runner-calf var(--runner-speed) ease-in-out var(--runner-half-cycle) infinite;
}

.jo-air-runner-track {
    width: 95px;
    height: 4px;
    position: absolute;
    left: 10px;
    bottom: 12px;
    z-index: 1;
    overflow: hidden;
    opacity: .3;
}

.jo-air-runner-track i {
    width: 28px;
    height: 3px;
    position: absolute;
    left: 100%;
    background: var(--exercise-accent);
    border-radius: 99px;
    animation: jo-air-runner-ground .72s linear infinite;
}

.jo-air-runner-track i:nth-child(2) { animation-delay: -.24s; }
.jo-air-runner-track i:nth-child(3) { animation-delay: -.48s; }

.jo-air-exercise-sun {
    width: 28px;
    height: 28px;
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffd44a;
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(255, 212, 74, .18);
    animation: jo-air-pulse 1.8s ease-in-out infinite;
}

.jo-air-exercise-symbol {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    position: absolute;
    right: 6px;
    bottom: 6px;
    z-index: 3;
    color: #fff;
    background: var(--exercise-accent);
    border: 3px solid #fff;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 900;
}

.jo-air-exercise-copy h4 {
    margin: 0 0 .3rem;
    color: var(--exercise-accent);
    font-size: 1.08rem;
    font-weight: 850;
    line-height: 1.3;
}

.jo-air-exercise-copy > p:not(.jo-air-eyebrow) {
    margin: 0 0 .35rem;
    color: #365464;
    font-size: .82rem;
    line-height: 1.5;
}

.jo-air-exercise-copy > strong {
    display: block;
    color: #29495b;
    font-size: .76rem;
    line-height: 1.45;
}

.jo-air-exercise[data-level="stop"] .jo-air-exercise-visual svg,
.jo-air-exercise[data-level="indoor"] .jo-air-exercise-visual svg {
    animation-name: jo-air-warning-shake;
    animation-duration: 1.8s;
}

.jo-air-exercise[data-level="caution"] .jo-air-runner-avatar {
    --runner-speed: .86s;
    --runner-half-cycle: -.43s;
}

.jo-air-exercise[data-level="indoor"] .jo-air-runner-avatar g,
.jo-air-exercise[data-level="stop"] .jo-air-runner-avatar g,
.jo-air-exercise[data-level="indoor"] .jo-air-runner-track i,
.jo-air-exercise[data-level="stop"] .jo-air-runner-track i {
    animation-play-state: paused;
}

@keyframes jo-air-runner-bob {
    0%, 100% { transform: translateY(1px) rotate(-1deg); }
    25%, 75% { transform: translateY(-3px) rotate(1deg); }
    50% { transform: translateY(0) rotate(-1deg); }
}

@keyframes jo-air-runner-shadow {
    0%, 50%, 100% { transform: scaleX(1); opacity: .16; }
    25%, 75% { transform: scaleX(.72); opacity: .09; }
}

@keyframes jo-air-runner-arm {
    0%, 100% { transform: rotate(-28deg); }
    50% { transform: rotate(34deg); }
}

@keyframes jo-air-runner-forearm {
    0%, 100% { transform: rotate(8deg); }
    50% { transform: rotate(-38deg); }
}

@keyframes jo-air-runner-thigh {
    0%, 100% { transform: rotate(-30deg); }
    50% { transform: rotate(32deg); }
}

@keyframes jo-air-runner-calf {
    0%, 100% { transform: rotate(12deg); }
    25% { transform: rotate(-18deg); }
    50% { transform: rotate(48deg); }
    75% { transform: rotate(72deg); }
}

@keyframes jo-air-runner-ground {
    from { transform: translateX(0); }
    to { transform: translateX(-130px); }
}

@keyframes jo-air-pulse {
    50% { transform: scale(1.12); box-shadow: 0 0 0 12px rgba(255, 212, 74, .1); }
}

@keyframes jo-air-warning-shake {
    0%, 90%, 100% { transform: translateX(0); }
    93% { transform: translateX(-3px); }
    96% { transform: translateX(3px); }
}

@media (max-width: 520px) {
    .jo-air-exercise { grid-template-columns: 90px minmax(0, 1fr); }
    .jo-air-exercise-visual { min-height: 96px; }
    .jo-air-exercise-visual svg { width: 82px; height: 76px; }
}

@media (prefers-reduced-motion: reduce) {
    .jo-air-exercise-visual svg,
    .jo-air-exercise-sun,
    .jo-air-runner-avatar g,
    .jo-air-runner-track i { animation: none !important; }
}

.jo-air-history-controls {
    display: grid;
    justify-items: end;
    gap: .35rem;
}

.jo-air-history-label {
    color: var(--jo-air-muted);
    font-size: .75rem;
    font-weight: 750;
}

.jo-air-history-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .35rem;
}

.jo-air-history-button {
    min-height: 38px;
    padding: .4rem .7rem;
    color: #315164;
    background: #f6fafc;
    border: 1px solid #b9ceda;
    border-radius: 9px;
    font: inherit;
    font-size: .78rem;
    font-weight: 750;
    cursor: pointer;
}

.jo-air-history-button:hover { border-color: #19789a; }

.jo-air-history-button:focus-visible {
    outline: 3px solid rgba(25, 120, 154, .24);
    outline-offset: 2px;
}

.jo-air-history-button.is-active {
    color: #fff;
    background: #176f8e;
    border-color: #176f8e;
    box-shadow: 0 4px 10px rgba(23, 111, 142, .18);
}

.jo-air-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: .8rem;
    margin: .95rem 0 0;
    padding: .8rem 0;
    border-top: 1px solid #e8eff3;
    border-bottom: 1px solid #e8eff3;
}

.jo-air-meta > div {
    min-width: 0;
}

.jo-air-meta dt {
    color: var(--jo-air-muted);
    font-size: .73rem;
    font-weight: 700;
}

.jo-air-meta dd {
    margin: .2rem 0 0;
    color: #28485c;
    font-size: .83rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.jo-air-summary {
    margin: .8rem 0 .25rem;
    color: #274b61;
    font-size: .9rem;
    font-weight: 750;
    line-height: 1.5;
}

.jo-air-measurement-note,
.jo-air-details p,
.jo-air-map-help,
.jo-air-chart-note,
.jo-air-map-credit,
.jo-air-refresh-note {
    color: var(--jo-air-muted);
    font-size: .8rem;
    line-height: 1.55;
}

.jo-air-measurement-note {
    margin: .25rem 0 .7rem;
}

.jo-air-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem .8rem;
    margin-top: .5rem;
}

.jo-air-refresh {
    min-height: 44px;
    padding: .62rem .95rem;
    color: #fff;
    background: #176c8b;
    border: 1px solid #176c8b;
    border-radius: 11px;
    font: inherit;
    font-size: .87rem;
    font-weight: 750;
    cursor: pointer;
}

.jo-air-refresh:hover {
    background: #105571;
    border-color: #105571;
}

.jo-air-refresh:disabled {
    cursor: wait;
    opacity: .72;
}

.jo-air-actions > span {
    color: var(--jo-air-muted);
    font-size: .74rem;
    line-height: 1.4;
}

.jo-air-details {
    margin-top: .8rem;
    padding-top: .65rem;
    border-top: 1px solid #e8eff3;
}

.jo-air-details summary {
    width: fit-content;
    min-height: 36px;
    color: #315d74;
    font-size: .82rem;
    font-weight: 750;
    cursor: pointer;
}

.jo-air-details p {
    margin: .35rem 0 0;
}

.jo-air-map-heading {
    align-items: center;
}

.jo-air-map-help {
    margin: .45rem 0 .65rem;
}

.jo-air-map {
    width: 100%;
    height: clamp(300px, 34vw, 390px);
    min-width: 0;
    background:
        linear-gradient(135deg, rgba(194, 222, 232, .58), rgba(233, 242, 245, .9)),
        #e7f0f3;
    border: 1px solid #d9e7ed;
    border-radius: 15px;
    overflow: hidden;
}

.jo-air-map .leaflet-container {
    width: 100%;
    height: 100%;
    color: #263f4f;
    font: inherit;
    background: #e8f0f3;
}

.jo-air-map .leaflet-control-attribution {
    max-width: calc(100% - 12px);
    padding: 2px 5px;
    color: #344e5c;
    background: rgba(255, 255, 255, .92);
    font-size: 10px;
}

.jo-air-map .leaflet-control-attribution a {
    color: #155f7d;
}

.jo-air-map .leaflet-marker-icon:focus-visible,
.jo-air-map .leaflet-control a:focus-visible {
    outline: 3px solid #135f7e;
    outline-offset: 2px;
}

.jo-air-map-marker {
    background: transparent;
    border: 0;
}

.jo-air-map-marker span {
    display: block;
    width: 19px;
    height: 19px;
    background: #2586a3;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(33, 121, 151, .28), 0 2px 7px rgba(18, 57, 74, .3);
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.jo-air-map-marker.is-selected span {
    box-shadow: 0 0 0 6px rgba(31, 111, 142, .22), 0 2px 7px rgba(18, 57, 74, .3);
    transform: scale(1.08);
}

.jo-air-map-marker.level-very-good span { background: #2574a9; }
.jo-air-map-marker.level-good span { background: #27863d; }
.jo-air-map-marker.level-moderate span { background: #e1b900; }
.jo-air-map-marker.level-unhealthy span { background: #d96b0b; }
.jo-air-map-marker.level-dangerous span { background: #bd2424; }
.jo-air-map-marker.level-unknown span { background: #607d8b; }

.jo-air-pm-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem .8rem;
    margin: .55rem 0 .75rem;
    color: #3d5969;
    font-size: .76rem;
}

.jo-air-pm-legend span,
.jo-air-distribution-item {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.jo-air-pm-legend i,
.jo-air-distribution-item i {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    border-radius: 50%;
}

[data-band="very-good"] { background: #2789df; }
[data-band="good"] { background: #3ca24d; }
[data-band="moderate"] { background: #f3c623; }
[data-band="unhealthy"] { background: #ef8100; }
[data-band="dangerous"] { background: #df3034; }

.jo-air-distribution {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: .85rem;
    background: #f7fafb;
    border: 1px solid #dce7eb;
    border-radius: 12px;
}

.jo-air-distribution h4 {
    margin: 0 0 .55rem;
    color: #18364a;
    font-size: .94rem;
}

.jo-air-donut {
    display: grid;
    width: 110px;
    height: 110px;
    place-items: center;
    position: relative;
    border-radius: 50%;
    background: #d9e1e5;
}

.jo-air-donut::after {
    width: 62px;
    height: 62px;
    position: absolute;
    content: "";
    background: #fff;
    border-radius: 50%;
}

.jo-air-donut span {
    z-index: 1;
    color: #18364a;
    font-size: 1.05rem;
    font-weight: 850;
    text-align: center;
}

.jo-air-donut small { display: block; font-size: .65rem; font-weight: 650; }

.jo-air-distribution-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .35rem .75rem;
}

.jo-air-distribution-item {
    color: #3d5969;
    font-size: .75rem;
}

.jo-air-distribution-item strong { margin-left: auto; color: #18364a; }

@media (max-width: 540px) {
    .jo-air-distribution { grid-template-columns: 1fr; justify-items: center; }
    .jo-air-distribution > div:last-child { width: 100%; }
}

.jo-air-map-error {
    margin: .45rem 0 0;
    color: #82501a;
    font-size: .8rem;
}

.jo-air-map-credit {
    margin: .5rem 0 0;
    font-size: .72rem;
}

.jo-air-map-credit a,
.jo-air-source a {
    color: #155f7d;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.jo-air-chart-card {
    margin-top: 1rem;
    animation: jo-air-enter .42s ease-out .1s both;
}

.jo-air-chart-heading {
    align-items: center;
}

.jo-air-chart-note {
    margin: .35rem 0 .2rem;
}

.jo-air-chart {
    width: 100%;
    min-width: 0;
    min-height: 220px;
    margin-top: .4rem;
}

.jo-air-chart svg {
    display: block;
    width: 100%;
    height: auto;
    min-height: 190px;
    overflow: visible;
}

.jo-air-chart-empty {
    display: grid;
    min-height: 190px;
    margin: 0;
    place-items: center;
    color: var(--jo-air-muted);
    font-size: .9rem;
    text-align: center;
}

.jo-air-chart-grid {
    stroke: #e5edf1;
    stroke-width: 1;
}

.jo-air-chart-axis {
    fill: #617988;
    font-family: inherit;
    font-size: 11px;
}

.jo-air-chart-path {
    fill: none;
    stroke: #19728f;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
}

.jo-air-chart-point {
    fill: #fff;
    stroke: #176c8b;
    stroke-width: 2;
}

.jo-air-comparison-list {
    display: grid;
    gap: .7rem;
    max-width: 900px;
    margin: .45rem 0 0;
    padding: 0;
    list-style: none;
}

.jo-air-comparison-row {
    display: grid;
    grid-template-columns: minmax(11rem, .95fr) minmax(5rem, 1.8fr) auto;
    align-items: center;
    gap: .8rem;
    min-width: 0;
    padding: .55rem .65rem;
    border: 1px solid #e4edf1;
    border-radius: 12px;
    background: #fbfdfe;
}

.jo-air-comparison-label {
    display: grid;
    gap: .1rem;
    min-width: 0;
}

.jo-air-comparison-label strong,
.jo-air-comparison-value {
    color: var(--jo-air-ink);
    font-size: .86rem;
    font-variant-numeric: tabular-nums;
}

.jo-air-comparison-label span {
    color: var(--jo-air-muted);
    font-size: .74rem;
    line-height: 1.35;
}

.jo-air-comparison-track {
    display: block;
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5eff4;
}

.jo-air-comparison-bar {
    display: block;
    height: 100%;
    min-width: 2px;
    border-radius: inherit;
    background: #6aa7c0;
    transition: width .3s ease;
}

.jo-air-comparison-bar.is-selected {
    background: #176c8b;
}

.jo-air-source {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .35rem .5rem;
    margin: 1rem auto 0;
    color: #586f7e;
    font-size: .78rem;
    line-height: 1.55;
    text-align: center;
}

.jo-air-seo-content {
    margin-top: 1rem;
    color: #365464;
}

.jo-air-eye-guide {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    margin: -1rem 0 1.15rem;
    padding: 1rem 1.15rem;
    color: #365464;
    background: linear-gradient(135deg, #eaf7f4, #fff 72%);
    border: 1px solid #b9ddd3;
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(28, 111, 91, .08);
}

.jo-air-eye-guide-icon {
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    color: #238567;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 5px 16px rgba(35, 133, 103, .14);
}

.jo-air-eye-guide-icon svg {
    width: 47px;
    height: 47px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
}

.jo-air-eye-guide h2 {
    margin: .12rem 0 .3rem;
    color: #174b3d;
    font-size: 1.12rem;
}

.jo-air-eye-guide p:last-child {
    margin: 0;
    font-size: .86rem;
    line-height: 1.65;
}

.jo-air-seo-content h2,
.jo-air-seo-content h3 {
    color: var(--jo-air-ink);
}

.jo-air-seo-content h2 {
    margin: .15rem 0 .65rem;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.jo-air-seo-content h3 {
    margin: 1.1rem 0 .55rem;
    font-size: 1.05rem;
}

.jo-air-seo-content p,
.jo-air-seo-content li {
    font-size: .9rem;
    line-height: 1.75;
}

.jo-air-seo-content ol {
    margin: .4rem 0 1rem;
    padding-left: 1.4rem;
}

.jo-air-seo-content ul {
    margin: .4rem 0 1rem;
    padding-left: 1.4rem;
}

.jo-air-seo-content details {
    margin-top: .55rem;
    padding: .75rem .85rem;
    background: #f7fafb;
    border: 1px solid #dce7eb;
    border-radius: 10px;
}

.jo-air-seo-content summary {
    color: #244a60;
    font-weight: 800;
    cursor: pointer;
}

.jo-air-seo-content details p {
    margin: .55rem 0 0;
}

.jo-air-seo-link a {
    color: #155f7d;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.jo-air-health-sources {
    margin-top: 1rem;
    padding: .8rem .9rem;
    color: #456474;
    background: #f3f8fa;
    border-left: 4px solid #2a819e;
    border-radius: 8px;
    font-size: .78rem;
    line-height: 1.65;
}

.jo-air-health-sources a {
    color: #155f7d;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.jo-air-seo-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .7rem 1rem;
    margin-top: 1rem;
}

.jo-air-seo-link-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: .55rem .9rem;
    color: #fff;
    background: #176f8e;
    border-radius: 9px;
    font-size: .84rem;
    font-weight: 800;
    text-decoration: none;
}

.jo-air-seo-actions span {
    color: #71501e;
    font-size: .78rem;
    font-weight: 700;
}

.jo-air-source-note {
    flex-basis: 100%;
    color: #687d89;
    font-size: .74rem;
}

.jo-air-noscript {
    margin: .75rem 0 0;
    padding: .75rem;
    color: #344f5e;
    background: #fff;
    border: 1px solid var(--jo-air-line);
    border-radius: 10px;
    font-size: .85rem;
    text-align: center;
}

.jo-air-sr-only,
.jo-air-chart-accessible {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.jo-air-section button:focus-visible,
.jo-air-section select:focus-visible,
.jo-air-section summary:focus-visible,
.jo-air-section a:focus-visible {
    outline: 3px solid #125f7e;
    outline-offset: 3px;
}

html[data-jo-theme="dark"] .jo-air-section {
    --jo-air-ink: #eef6fa;
    --jo-air-muted: #b6c9d4;
    --jo-air-line: #354c5b;
    --jo-air-card: #1d2c37;
    background: linear-gradient(180deg, #17242d 0%, #1a2a35 100%);
    border-top-color: #314754;
}

html[data-jo-theme="dark"] .jo-air-live-indicator,
html[data-jo-theme="dark"] .jo-air-map-count,
html[data-jo-theme="dark"] .jo-air-chart-period {
    color: #e5f2f7;
    background: #243a46;
    border-color: #4a6371;
}

html[data-jo-theme="dark"] .jo-air-live-indicator[data-kind="stale"] {
    color: #ffdda0;
    background: #49391f;
    border-color: #705b35;
}

html[data-jo-theme="dark"] .jo-air-live-indicator[data-kind="error"] {
    color: #ffd0cc;
    background: #492b2b;
    border-color: #744747;
}

html[data-jo-theme="dark"] .jo-air-value,
html[data-jo-theme="dark"] .jo-air-meta dd,
html[data-jo-theme="dark"] .jo-air-summary,
html[data-jo-theme="dark"] .jo-air-field-label {
    color: #e3f2f8;
}

html[data-jo-theme="dark"] .jo-air-select {
    color: #edf5f8;
    background: #14232d;
    border-color: #536e7e;
}

html[data-jo-theme="dark"] .jo-air-region-button {
    color: #dcecf3;
    background: #14232d;
    border-color: #536e7e;
}

html[data-jo-theme="dark"] .jo-air-region-button.is-active {
    color: #fff;
    background: #167d9f;
    border-color: #43b4d7;
}

html[data-jo-theme="dark"] .jo-air-history-button {
    color: #dcecf3;
    background: #14232d;
    border-color: #536e7e;
}

html[data-jo-theme="dark"] .jo-air-history-button.is-active {
    color: #fff;
    background: #167d9f;
    border-color: #43b4d7;
}

html[data-jo-theme="dark"] .jo-air-eye-guide,
html[data-jo-theme="dark"] .jo-air-seo-content details,
html[data-jo-theme="dark"] .jo-air-health-sources {
    color: #c7d9e1;
    background: #182b35;
    border-color: #3c5a67;
}

html[data-jo-theme="dark"] .jo-air-eye-guide h2,
html[data-jo-theme="dark"] .jo-air-seo-content summary {
    color: #e2f3f8;
}

html[data-jo-theme="dark"] .jo-air-meta,
html[data-jo-theme="dark"] .jo-air-details {
    border-color: #354b59;
}

html[data-jo-theme="dark"] .jo-air-chart-grid {
    stroke: #384d59;
}

html[data-jo-theme="dark"] .jo-air-chart-axis {
    fill: #bdccd4;
}

html[data-jo-theme="dark"] .jo-air-comparison-row {
    background: #1c2c36;
    border-color: #3a515f;
}

html[data-jo-theme="dark"] .jo-air-comparison-track {
    background: #344b58;
}

html[data-jo-theme="dark"] .jo-air-comparison-bar {
    background: #83bad0;
}

html[data-jo-theme="dark"] .jo-air-comparison-bar.is-selected {
    background: #b1e4f7;
}

html[data-jo-theme="dark"] .jo-air-source {
    color: #b6c9d4;
}

html[data-jo-theme="dark"] .jo-air-source a {
    color: #9bdef5;
}

html[data-jo-theme="dark"] .jo-air-section button:focus-visible,
html[data-jo-theme="dark"] .jo-air-section select:focus-visible,
html[data-jo-theme="dark"] .jo-air-section summary:focus-visible,
html[data-jo-theme="dark"] .jo-air-section a:focus-visible {
    outline-color: #9bdef5;
}

html[data-jo-theme="contrast"] .jo-air-section {
    --jo-air-ink: #101010;
    --jo-air-muted: #282828;
    --jo-air-line: #555;
    --jo-air-card: #fff;
    color: #101010;
    background: #fff;
}

html[data-jo-theme="contrast"] .jo-air-value,
html[data-jo-theme="contrast"] .jo-air-summary,
html[data-jo-theme="contrast"] .jo-air-meta dd {
    color: #111;
}

html[data-jo-theme="contrast"] .jo-air-comparison-row {
    background: #fff;
    border-color: #111;
}

html[data-jo-theme="contrast"] .jo-air-comparison-track {
    background: #ddd;
}

html[data-jo-theme="contrast"] .jo-air-comparison-bar,
html[data-jo-theme="contrast"] .jo-air-comparison-bar.is-selected {
    background: #111;
}

@media (max-width: 991.98px) {
    .jo-air-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .jo-air-map {
        height: 340px;
    }
}

@media (max-width: 575.98px) {
    .jo-air-section {
        padding: 2.2rem 0;
    }

    .jo-air-heading {
        margin-bottom: 1.1rem;
        text-align: left;
    }

    .jo-air-layout {
        gap: .8rem;
    }

    .jo-air-card {
        padding: 1rem;
        border-radius: 16px;
    }

    .jo-air-eye-guide {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: .7rem;
        margin-top: -.35rem;
        padding: .85rem;
    }

    .jo-air-eye-guide-icon {
        width: 50px;
        height: 50px;
    }

    .jo-air-eye-guide-icon svg {
        width: 36px;
        height: 36px;
    }

    .jo-air-eye-guide h2 {
        font-size: .98rem;
    }

    .jo-air-card-top {
        gap: .45rem;
    }

    .jo-air-chart-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .jo-air-history-controls {
        width: 100%;
        justify-items: start;
    }

    .jo-air-history-buttons {
        width: 100%;
        justify-content: flex-start;
    }

    .jo-air-history-button {
        flex: 1 1 auto;
    }

    .jo-air-card-top h3,
    .jo-air-chart-heading h3 {
        font-size: 1rem;
    }

    .jo-air-live-indicator,
    .jo-air-map-count,
    .jo-air-chart-period {
        max-width: 45%;
        white-space: normal;
        text-align: center;
    }

    .jo-air-value-wrap {
        min-height: 74px;
    }

    .jo-air-value {
        font-size: 2.8rem;
    }

    .jo-air-meta {
        gap: .55rem;
    }

    .jo-air-map {
        height: 290px;
    }

    .jo-air-chart {
        min-height: 190px;
    }

    .jo-air-comparison-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: .4rem .65rem;
    }

    .jo-air-comparison-label {
        grid-column: 1;
        grid-row: 1;
    }

    .jo-air-comparison-track {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .jo-air-comparison-value {
        grid-column: 2;
        grid-row: 1;
    }

    .jo-air-source {
        justify-content: flex-start;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jo-air-reading-card,
    .jo-air-map-card,
    .jo-air-chart-card {
        animation: none;
    }

    .jo-air-map-marker span {
        transition: none;
    }

    .jo-air-comparison-bar {
        transition: none;
    }
}
