.slha-auto-home {
    width: min(100% - 32px, 1320px);
    margin: 56px auto;
}

.sls-now .slha-auto-home {
    width: 100%;
    margin: 28px 0 22px;
}

.slha-hydro {
    --slha-navy: #092f4b;
    --slha-blue: #0876a5;
    --slha-cyan: #3ab8e9;
    --slha-muted: #607989;
    color: var(--slha-navy);
    font-family: inherit;
}

.slha-hydro *,
.slha-hydro *::before,
.slha-hydro *::after {
    box-sizing: border-box;
}

.slha-hydro__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 22px;
}

.slha-eyebrow {
    margin: 0 0 8px;
    color: var(--slha-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.slha-hydro__head h3 {
    margin: 0;
    color: var(--slha-navy);
    font-size: clamp(29px, 3.8vw, 46px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.slha-hydro__intro {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--slha-muted);
    font-size: 15px;
    line-height: 1.55;
}

.slha-history {
    flex: 0 0 auto;
    padding: 10px 0 4px;
    color: var(--slha-blue);
    font-weight: 800;
    text-decoration: none;
}

.slha-history:hover,
.slha-history:focus-visible { text-decoration: underline; }

.slha-reservoir {
    display: grid;
    grid-template-columns: minmax(210px, 1.15fr) minmax(190px, 1fr) minmax(255px, 1.35fr) minmax(150px, .75fr) auto;
    align-items: center;
    gap: 24px;
    margin: 0 0 26px;
    padding: 22px 26px;
    border: 1px solid #cfe7f1;
    border-radius: 18px;
    background: linear-gradient(110deg, #f1faff, #eaf6fb 70%, #f5fbfd);
    box-shadow: 0 8px 24px rgba(8, 63, 91, .055);
}

.slha-reservoir__identity { display: flex; align-items: center; gap: 13px; }
.slha-reservoir__icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border: 1px solid #c5e4f0;
    border-radius: 50%;
    background: #fff;
    color: var(--slha-blue);
    font-size: 27px;
    font-weight: 700;
}
.slha-reservoir__eyebrow,
.slha-reservoir__level > span,
.slha-reservoir__flow span,
.slha-reservoir__change > span {
    display: block;
    color: var(--slha-muted);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.slha-reservoir__identity h4 {
    margin: 3px 0 0;
    color: var(--slha-navy);
    font-size: 20px;
    line-height: 1.15;
}
.slha-reservoir__level { padding-left: 22px; border-left: 1px solid #d5e8ef; }
.slha-reservoir__level > strong {
    display: block;
    margin-top: 5px;
    color: var(--slha-navy);
    font-size: clamp(25px, 2.4vw, 34px);
    line-height: 1;
    letter-spacing: -.04em;
    white-space: nowrap;
}
.slha-reservoir__level small { margin-left: 6px; color: var(--slha-muted); font-size: 12px; font-weight: 700; letter-spacing: 0; }
.slha-reservoir__flow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-left: 22px; border-left: 1px solid #d5e8ef; }
.slha-reservoir__flow div { min-width: 0; }
.slha-reservoir__flow strong,
.slha-reservoir__change strong { display: block; margin-top: 6px; color: var(--slha-navy); font-size: 17px; font-weight: 800; white-space: nowrap; }
.slha-reservoir__divider { color: #a4bbc7 !important; font-size: 18px !important; }
.slha-reservoir__change { padding-left: 22px; border-left: 1px solid #d5e8ef; }
.slha-reservoir__source { align-self: end; color: #607989; font-size: 11px; line-height: 1.4; white-space: nowrap; }

.slha-map-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 0 2px 12px;
}
.slha-map-heading__eyebrow { color: var(--slha-blue); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.slha-map-heading h4 { margin: 3px 0 0; color: var(--slha-navy); font-size: 23px; line-height: 1.2; }
.slha-map-heading p { max-width: 430px; margin: 0; color: var(--slha-muted); font-size: 13px; text-align: right; }

.slha-river-visual {
    position: relative;
    overflow: hidden;
    height: clamp(310px, 31vw, 410px);
    border: 1px solid #d1e8e5;
    border-radius: 20px;
    background:
        radial-gradient(ellipse at 18% 82%, rgba(193, 230, 216, .65), transparent 34%),
        radial-gradient(ellipse at 76% 18%, rgba(190, 228, 223, .65), transparent 35%),
        linear-gradient(135deg, #eef8f3, #eaf5f2 54%, #f5faf5);
    box-shadow: 0 18px 48px rgba(9, 47, 75, .075);
    isolation: isolate;
}
.slha-river-visual__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.slha-river-visual__bank-shadow,
.slha-river-visual__water,
.slha-river-visual__shine,
.slha-river-visual__current { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.slha-river-visual__bank-shadow { stroke: rgba(91, 157, 145, .25); stroke-width: 133px; filter: drop-shadow(0 10px 9px rgba(15, 83, 106, .14)); }
.slha-river-visual__water { stroke-width: 108px; }
.slha-river-visual__shine { stroke-width: 52px; opacity: .46; }
.slha-river-visual__current { stroke: rgba(255, 255, 255, .9); stroke-width: 4px; stroke-dasharray: 1px 28px; animation: slha-current 13s linear infinite; }
.slha-river-visual__bank-label { position: absolute; z-index: 2; top: 20px; color: #718b88; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.slha-river-visual__bank-label--start { left: 22px; }
.slha-river-visual__bank-label--end { right: 22px; }
.slha-river-visual__direction { position: absolute; z-index: 2; right: 20px; bottom: 17px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.82); border-radius: 999px; background: rgba(255,255,255,.76); color: #42636f; font-size: 10px; font-weight: 750; backdrop-filter: blur(7px); }
.slha-river-visual__direction span { color: #0876a5; font-size: 18px; line-height: .8; animation: slha-direction 1.8s ease-in-out infinite; }
.slha-river-marker { position: absolute; z-index: 3; left: var(--slha-marker-x); top: var(--slha-marker-y); display: grid; width: 42px; height: 42px; padding: 0; transform: translate(-50%, -50%); place-items: center; border: 3px solid #fff; border-radius: 50%; background: #075f89; box-shadow: 0 4px 14px rgba(3, 54, 80, .3); color: #fff; cursor: pointer; font: inherit; font-size: 10px; font-weight: 850; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.slha-river-marker::after { position: absolute; top: calc(100% + 9px); left: 50%; max-width: 170px; padding: 5px 8px; transform: translateX(-50%); border: 1px solid rgba(214, 231, 229, .9); border-radius: 7px; background: rgba(255,255,255,.9); box-shadow: 0 3px 8px rgba(20,66,79,.08); color: #163d55; content: attr(data-slha-label); font-size: 10px; font-weight: 800; line-height: 1.2; text-align: center; white-space: nowrap; }
.slha-river-marker:hover,
.slha-river-marker:focus-visible,
.slha-river-marker--selected { z-index: 5; transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 0 0 7px rgba(255,255,255,.54), 0 5px 18px rgba(3,54,80,.34); outline: none; }
.slha-river-marker--fresh { background: #087548; }
.slha-river-marker--stale { background: #7b8d95; }
.slha-map__hint { display: flex; align-items: flex-start; gap: 9px; margin: 11px 2px 17px; color: #607989; font-size: 11px; line-height: 1.5; }
.slha-map__hint-dot { width: 9px; height: 9px; flex: 0 0 9px; margin-top: 3px; border-radius: 50%; background: #168ab6; box-shadow: 0 0 0 4px rgba(22,138,182,.12); }

.slha-station-table-wrap { overflow-x: auto; border: 1px solid #dce8ed; border-radius: 14px; background: #fff; }
.slha-station-table { width: 100%; border-collapse: collapse; color: var(--slha-navy); font-size: 13px; }
.slha-station-table thead { background: #f3f9fc; }
.slha-station-table thead th { padding: 13px 15px; color: #587182; font-size: 10px; font-weight: 800; letter-spacing: .065em; text-align: left; text-transform: uppercase; }
.slha-station-row { border-top: 1px solid #edf2f4; }
.slha-station-row > th,
.slha-station-row > td { padding: 13px 15px; text-align: left; vertical-align: middle; }
.slha-station-row__name { display: flex; align-items: center; gap: 11px; }
.slha-station-row__number { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 50%; background: #eaf5fa; color: #075f89; font-size: 10px; font-weight: 850; }
.slha-station-row__name strong { display: block; color: var(--slha-navy); font-size: 14px; }
.slha-station-row__name small { display: block; margin-top: 3px; color: #718692; font-size: 10px; font-weight: 500; }
.slha-station-row__metric { white-space: nowrap; }
.slha-station-row__metric > span { display: none; }
.slha-station-row__metric strong { display: inline-block; color: var(--slha-navy); font-size: 17px; letter-spacing: -.02em; }
.slha-station-row__metric small { margin-left: 4px; color: #536f7f; font-size: 11px; font-weight: 700; }
.slha-station-row__metric time { display: block; margin-top: 3px; color: #718692; font-size: 10px; }
.slha-station-row__status span { color: #087548; font-size: 11px; font-weight: 750; }
.slha-station-row--stale .slha-station-row__status span { color: #9c5e17; }
.slha-station-row--selected { background: #eff9fc; box-shadow: inset 4px 0 #0876a5; }
.slha-tomaszow-note { display: flex; align-items: flex-start; gap: 11px; margin: 17px 2px 0; padding: 13px 15px; border: 1px solid #e0e9ed; border-radius: 12px; background: #fbfdfe; color: #526e7f; }
.slha-tomaszow-note__icon { display: grid; width: 20px; height: 20px; flex: 0 0 20px; place-items: center; border-radius: 50%; background: #e7f4f9; color: #0876a5; font-size: 12px; font-weight: 900; }
.slha-tomaszow-note p { margin: 0; font-size: 12px; line-height: 1.55; }
.slha-tomaszow-note strong { color: var(--slha-navy); }

.slha-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 13px 2px 0; color: #637b88; font-size: 11px; line-height: 1.5; }
.slha-meta > p { max-width: 610px; margin: 0; }
.slha-meta__sources { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px 15px; }
.slha-meta a { color: #08719e; font-weight: 750; }

@keyframes slha-current { to { stroke-dashoffset: -145px; } }
@keyframes slha-direction { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

@media (max-width: 1100px) {
    .slha-reservoir { grid-template-columns: 1fr 1fr 1.2fr 1fr; gap: 16px; }
    .slha-reservoir__source { grid-column: 1 / -1; align-self: auto; }
    .slha-river-visual { height: 360px; }
}

@media (max-width: 900px) {
    .slha-river-visual { height: 340px; }
}

@media (max-width: 700px) {
    .slha-auto-home { width: min(100% - 22px, 1320px); margin-block: 36px; }
    .sls-now .slha-auto-home { width: 100%; margin-block: 22px 18px; }
    .slha-hydro__head { align-items: flex-start; flex-direction: column; gap: 10px; }
    .slha-hydro__intro { font-size: 14px; }
    .slha-reservoir { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px 12px; padding: 18px; }
    .slha-reservoir__identity { grid-column: 1 / -1; }
    .slha-reservoir__level { padding-left: 0; border-left: 0; }
    .slha-reservoir__flow { padding-left: 14px; }
    .slha-reservoir__change { padding: 0; border-left: 0; }
    .slha-reservoir__source { grid-column: 1 / -1; }
    .slha-map-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
    .slha-map-heading p { text-align: left; }
    .slha-river-visual { height: 280px; border-radius: 15px; }
    .slha-river-marker { width: 35px; height: 35px; font-size: 9px; }
    .slha-river-marker::after { display: none; }
    .slha-river-visual__bank-label { top: 13px; font-size: 8px; }
    .slha-river-visual__bank-label--start { left: 13px; }
    .slha-river-visual__bank-label--end { right: 13px; }
    .slha-river-visual__direction { right: 10px; bottom: 10px; font-size: 9px; }
    .slha-station-table-wrap { overflow: visible; border: 0; background: transparent; }
    .slha-station-table,
    .slha-station-table tbody { display: block; width: 100%; }
    .slha-station-table thead { display: none; }
    .slha-station-table tbody { display: grid; grid-template-columns: 1fr; gap: 9px; }
    .slha-station-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; padding: 13px; border: 1px solid #dce8ed; border-radius: 13px; background: #fff; box-shadow: 0 5px 15px rgba(9,47,75,.045); }
    .slha-station-row > th,
    .slha-station-row > td { min-width: 0; padding: 0; }
    .slha-station-row__name,
    .slha-station-row__status { grid-column: 1 / -1; }
    .slha-station-row__metric > span { display: block; margin-bottom: 3px; color: #718692; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
    .slha-station-row__metric time { white-space: normal; }
    .slha-station-row__status { padding-top: 2px !important; }
    .slha-meta { flex-direction: column; gap: 8px; }
    .slha-meta__sources { justify-content: flex-start; }
}

@media (max-width: 420px) {
    .slha-reservoir { grid-template-columns: 1fr; }
    .slha-reservoir__identity,
    .slha-reservoir__source { grid-column: auto; }
    .slha-reservoir__flow { padding: 0; border-left: 0; }
    .slha-reservoir__change { padding-top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
    .slha-river-visual__current,
    .slha-river-visual__direction span { animation: none; }
}
