.hcff-water-dashboard{--g900:#123f2a;--g700:#1f6b3a;--g100:#eaf3ec;--border:#d9e2da;--text:#233129;--muted:#66736b;--shadow:0 12px 32px rgba(18,63,42,.1);width:min(1320px,100%);margin:0 auto;color:var(--text);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.hcff-water-dashboard *{box-sizing:border-box}.hcff-water-hero{padding:clamp(26px,4vw,52px);border-radius:18px;background:linear-gradient(125deg,rgba(18,63,42,.96),rgba(31,107,58,.88));color:#fff;box-shadow:var(--shadow)}.hcff-water-hero h2{margin:2px 0 10px;color:#fff;font-size:clamp(2rem,5vw,3.7rem);line-height:1.04}.hcff-water-hero p{max-width:780px;margin:0;font-size:clamp(1rem,1.8vw,1.2rem)}.hcff-water-eyebrow{margin:0!important;font-size:.82rem!important;font-weight:800;letter-spacing:.14em;text-transform:uppercase;opacity:.82}.hcff-water-controls{max-width:760px;margin:-22px auto 24px;padding:18px;position:relative;z-index:2;border:1px solid var(--border);border-radius:14px;background:#fff;box-shadow:var(--shadow)}.hcff-water-controls label{display:block;margin-bottom:7px;color:var(--g900);font-weight:800}.hcff-water-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.hcff-water-search{width:100%;min-height:48px;padding:10px 14px;border:1px solid #aebdb2;border-radius:9px;background:#fff;font-size:16px}.hcff-water-search:focus{outline:3px solid rgba(61,139,84,.2);border-color:#3d8b54}.hcff-water-clear{min-height:48px;padding:10px 18px;border:0;border-radius:9px;background:var(--g700);color:#fff;font-weight:800;cursor:pointer}.hcff-water-count{min-height:20px;margin-top:7px;color:var(--muted);font-size:.9rem}.hcff-water-main{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(340px,.8fr);gap:22px}.hcff-water-map-card,.hcff-water-station-card,.hcff-water-directory{overflow:hidden;border:1px solid var(--border);border-radius:16px;background:#fff;box-shadow:var(--shadow)}.hcff-water-map-heading,.hcff-water-directory-heading{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:18px 20px;border-bottom:1px solid var(--border)}.hcff-water-map-heading h3,.hcff-water-directory-heading h3{margin:0 0 3px;color:var(--g900)}.hcff-water-map-heading p,.hcff-water-directory-heading p{margin:0;color:var(--muted);font-size:.92rem}.hcff-water-legend{display:flex;flex-wrap:wrap;gap:10px 13px;color:var(--muted);font-size:.8rem;white-space:nowrap}.hcff-water-legend span{display:inline-flex;gap:5px;align-items:center}.hcff-water-legend i{width:10px;height:10px;border-radius:50%}.hcff-water-legend .is-good{background:#2e7d32}.hcff-water-legend .is-caution{background:#e67e22}.hcff-water-legend .is-hot{background:#c00}.hcff-water-map{width:100%;height:var(--hcff-map-height,560px);min-height:320px;background:#e9efe9}.hcff-water-station-card{min-height:420px;padding:20px}.hcff-water-station-placeholder{display:grid;min-height:100%;place-content:center;text-align:center}.hcff-water-station-placeholder h3{margin:8px 0;color:var(--g900)}.hcff-water-station-placeholder p{max-width:330px;margin:0 auto;color:var(--muted)}.hcff-water-river-icon{display:grid;width:68px;height:68px;margin:0 auto;place-content:center;border-radius:50%;background:var(--g100);color:var(--g700);font-size:3rem}.hcff-water-station-summary .hcff-usgs-wrap{max-width:none!important;text-align:left!important}.hcff-water-station-summary .hcff-usgs-table{width:100%!important;max-width:none!important;margin-top:14px!important;font-size:.95rem!important}.hcff-water-results{margin-top:22px}.hcff-water-chart>.hcff-usgs-temp-chart,.hcff-water-report>.hcff-usgs-24h-report{max-width:none!important}.hcff-water-loading,.hcff-water-error{display:flex;justify-content:center;gap:10px;align-items:center;margin:18px 0;padding:14px;border-radius:10px}.hcff-water-loading{background:var(--g100);color:var(--g900);font-weight:700}.hcff-water-error{background:#fff0f0;color:#8b0000}.hcff-water-loading[hidden],.hcff-water-error[hidden]{display:none!important}.hcff-water-spinner{width:18px;height:18px;border:3px solid rgba(31,107,58,.25);border-top-color:var(--g700);border-radius:50%;animation:hcff-spin .75s linear infinite}@keyframes hcff-spin{to{transform:rotate(360deg)}}.hcff-water-directory{margin-top:22px}.hcff-water-station-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--border)}.hcff-water-station-button{min-height:78px;padding:13px 15px;border:0;background:#fff;text-align:left;cursor:pointer}.hcff-water-station-button:hover,.hcff-water-station-button:focus,.hcff-water-station-button.is-selected{background:var(--g100);outline:none}.hcff-water-station-button.is-selected{box-shadow:inset 4px 0 var(--g700)}.hcff-water-station-name,.hcff-water-station-number{display:block}.hcff-water-station-name{color:var(--g900);font-weight:800;line-height:1.25}.hcff-water-station-number{margin-top:5px;color:var(--muted);font-size:.8rem}.hcff-water-empty{padding:32px 20px;color:var(--muted);text-align:center}.hcff-map-pin-wrap{background:transparent;border:0}.hcff-map-pin{display:block;position:relative;width:24px;height:24px;border:3px solid #fff;border-radius:50% 50% 50% 0;background:#2773a7;box-shadow:0 3px 8px rgba(0,0,0,.34);transform:rotate(-45deg)}.hcff-map-pin:after{content:"";position:absolute;width:7px;height:7px;top:6px;left:6px;border-radius:50%;background:#fff}.hcff-map-pin--good{background:#2e7d32}.hcff-map-pin--caution{background:#e67e22}.hcff-map-pin--hot{background:#c00}.hcff-water-dashboard .leaflet-tooltip{max-width:260px;padding:7px 9px;color:var(--g900);font-weight:700;white-space:normal}@media(max-width:980px){.hcff-water-main{grid-template-columns:1fr}.hcff-water-station-card{min-height:0}.hcff-water-station-list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:767px){.hcff-water-hero{border-radius:12px}.hcff-water-controls{margin:14px 0 18px}.hcff-water-search-row{grid-template-columns:1fr}.hcff-water-clear{width:100%}.hcff-water-map-heading,.hcff-water-directory-heading{align-items:flex-start;flex-direction:column}.hcff-water-map{height:340px;min-height:340px}.hcff-water-station-card{padding:14px}.hcff-water-station-summary .hcff-usgs-table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}.hcff-water-station-list{grid-template-columns:1fr}.hcff-water-chart .hcff-usgs-temp-chart{padding:10px!important}}@media(max-width:430px){.hcff-water-hero{padding:24px 18px}.hcff-water-controls{padding:14px}.hcff-water-map{height:310px;min-height:310px}.hcff-water-map-heading{padding:14px}.hcff-water-station-button{min-height:68px}}@media(prefers-reduced-motion:reduce){.hcff-water-spinner{animation:none}}


.hcff-water-control-grid {
    display: grid;
    grid-template-columns: minmax(180px, .42fr) minmax(0, 1fr);
    gap: 14px;
    align-items: end;
}

.hcff-water-control {
    min-width: 0;
}

.hcff-water-state {
    width: 100%;
    min-height: 48px;
    padding: 10px 40px 10px 14px;
    border: 1px solid #aebdb2;
    border-radius: 9px;
    background-color: #fff;
    color: var(--text);
    font-size: 16px;
}

.hcff-water-state:focus {
    outline: 3px solid rgba(61, 139, 84, .2);
    border-color: #3d8b54;
}

@media (max-width: 767px) {
    .hcff-water-control-grid {
        grid-template-columns: 1fr;
    }
}


.hcff-water-selection-prompt {
    display: grid;
    min-height: 300px;
    margin-top: 22px;
    padding: 30px;
    place-content: center;
    border: 1px solid var(--hcff-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--hcff-shadow);
    text-align: center;
}

.hcff-water-selection-prompt h3 {
    margin: 12px 0 8px;
    color: var(--hcff-green-900);
}

.hcff-water-selection-prompt p {
    max-width: 560px;
    margin: 0 auto;
    color: var(--hcff-muted);
}

.hcff-water-content[hidden],
.hcff-water-selection-prompt[hidden] {
    display: none !important;
}

@media (max-width: 767px) {
    .hcff-water-selection-prompt {
        min-height: 240px;
        padding: 24px 18px;
    }
}


/* Version 2.3.4: direct and drainage-related station grouping */
.hcff-water-station-list {
    display: block;
    background: #fff;
}

.hcff-water-station-group + .hcff-water-station-group {
    border-top: 1px solid var(--hcff-border);
}

.hcff-water-station-group-title {
    margin: 0;
    padding: 13px 16px;
    background: var(--hcff-green-100);
    color: var(--hcff-green-900);
    font-size: 1rem;
    font-weight: 800;
}

.hcff-water-station-group.is-related .hcff-water-station-group-title {
    background: var(--hcff-sand);
}

.hcff-water-station-group-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--hcff-border);
}

.hcff-water-station-huc {
    display: block;
    margin-top: 3px;
    color: var(--hcff-muted);
    font-size: .72rem;
}

@media (max-width: 980px) {
    .hcff-water-station-group-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .hcff-water-station-group-grid {
        grid-template-columns: 1fr;
    }
}


/* Version 2.4.0: statewide 24-hour temperature pin colors */
.hcff-map-pin,
.hcff-map-pin-wrap {
    transition: transform .18s ease, filter .18s ease;
}

.hcff-map-pin.is-selected {
    width: 34px;
    height: 34px;
    border-width: 4px;
    filter: drop-shadow(0 5px 7px rgba(0, 0, 0, .38));
}

.hcff-map-pin.is-selected::after {
    width: 10px;
    height: 10px;
    top: 8px;
    left: 8px;
}

.hcff-map-pin-wrap.is-selected {
    z-index: 1000 !important;
}

.hcff-water-legend::after {
    content: "Colors use the highest water temperature reported in the last 24 hours.";
    flex-basis: 100%;
    color: var(--hcff-muted);
    font-size: .72rem;
    line-height: 1.25;
    text-align: right;
}

@media (max-width: 767px) {
    .hcff-water-legend::after {
        text-align: left;
    }
}


/* Version 2.5.0: current conditions card and meaningful-change history */
.hcff-visually-hidden {
    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;
}

.hcff-usgs-notice {
    max-width: 900px;
    margin: 12px auto;
    padding: 12px 14px;
    border-left: 4px solid #cc0000;
    border-radius: 8px;
    background: #fff3f3;
    color: #333;
}

.hcff-current-card {
    overflow: hidden;
    width: 100%;
    border: 1px solid var(--border, #d9e2da);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow, 0 12px 32px rgba(18,63,42,.1));
}

.hcff-current-card__header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding: 20px;
    background: linear-gradient(135deg, #123f2a, #1f6b3a);
    color: #fff;
}

.hcff-current-card__eyebrow {
    margin: 0 0 5px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .82;
}

.hcff-current-card__title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.2rem, 2.6vw, 1.7rem);
    line-height: 1.2;
}

.hcff-current-card__station {
    margin: 6px 0 0;
    font-size: .88rem;
    opacity: .88;
}

.hcff-current-badge,
.hcff-history-current-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eaf3ec;
    color: #123f2a;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.hcff-current-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--border, #d9e2da);
}

.hcff-current-metric {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 108px;
    padding: 16px;
    background: #fff;
}

.hcff-current-metric__icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-content: center;
    border-radius: 50%;
    background: #eaf3ec;
    color: #1f6b3a;
    font-size: 1.45rem;
    font-weight: 800;
}

.hcff-current-metric__label {
    color: var(--muted, #66736b);
    font-size: .82rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.hcff-current-metric__reading {
    display: flex;
    gap: 6px;
    align-items: baseline;
    margin-top: 3px;
}

.hcff-current-metric__reading strong {
    color: #123f2a;
    font-size: clamp(1.5rem, 4vw, 2.15rem);
    line-height: 1;
}

.hcff-current-metric__reading span,
.hcff-current-metric__secondary,
.hcff-current-metric__updated {
    color: var(--muted, #66736b);
}

.hcff-current-metric--good .hcff-current-metric__icon {
    background: #eaf3ec;
    color: #2e7d32;
}

.hcff-current-metric--caution .hcff-current-metric__icon {
    background: #fff4e8;
    color: #e67e22;
}

.hcff-current-metric--hot .hcff-current-metric__icon {
    background: #fff0f0;
    color: #cc0000;
}

.hcff-current-metric--hot .hcff-current-metric__reading strong {
    color: #cc0000;
}

.hcff-current-metric--caution .hcff-current-metric__reading strong {
    color: #b85a00;
}

.hcff-current-card__footer {
    padding: 13px 18px;
    border-top: 1px solid var(--border, #d9e2da);
    text-align: center;
}

.hcff-current-card__footer a {
    color: #1f6b3a;
    font-weight: 750;
}

.hcff-history {
    overflow: hidden;
    width: 100%;
    margin: 18px auto 0;
    border: 1px solid var(--border, #d9e2da);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow, 0 12px 32px rgba(18,63,42,.1));
}

.hcff-history__toggle {
    display: flex;
    width: 100%;
    min-height: 54px;
    gap: 10px;
    align-items: center;
    padding: 13px 16px;
    border: 0;
    background: #fff;
    color: #123f2a;
    font: inherit;
    font-weight: 850;
    text-align: left;
    cursor: pointer;
}

.hcff-history__toggle:hover,
.hcff-history__toggle:focus {
    background: #f5f8f5;
    outline: none;
}

.hcff-history__toggle-symbol {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-content: center;
    border-radius: 50%;
    background: #eaf3ec;
    color: #1f6b3a;
    font-size: 1.2rem;
    line-height: 1;
}

.hcff-history__body {
    padding: 0 18px 18px;
    border-top: 1px solid var(--border, #d9e2da);
}

.hcff-history__header {
    padding: 18px 0 14px;
    text-align: center;
}

.hcff-history__header h3 {
    margin: 4px 0 6px;
    color: #123f2a;
}

.hcff-history__header p {
    max-width: 720px;
    margin: 0 auto;
    color: var(--muted, #66736b);
}

.hcff-history__eyebrow {
    margin: 0 !important;
    color: #1f6b3a !important;
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hcff-history__timeline {
    position: relative;
    padding-left: 20px;
}

.hcff-history__timeline::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 7px;
    width: 2px;
    background: #d9e2da;
}

.hcff-history-entry {
    display: grid;
    position: relative;
    grid-template-columns: 1fr;
    padding: 0 0 18px 20px;
}

.hcff-history-entry:last-child {
    padding-bottom: 0;
}

.hcff-history-entry__marker {
    position: absolute;
    top: 8px;
    left: -19px;
    width: 14px;
    height: 14px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #66736b;
    box-shadow: 0 0 0 2px #d9e2da;
}

.hcff-history-entry--good .hcff-history-entry__marker {
    background: #2e7d32;
}

.hcff-history-entry--caution .hcff-history-entry__marker {
    background: #e67e22;
}

.hcff-history-entry--hot .hcff-history-entry__marker {
    background: #cc0000;
}

.hcff-history-entry.is-current .hcff-history-entry__marker {
    width: 18px;
    height: 18px;
    top: 5px;
    left: -21px;
    box-shadow: 0 0 0 3px #bcd7c2;
}

.hcff-history-entry__content {
    padding: 14px;
    border: 1px solid var(--border, #d9e2da);
    border-radius: 12px;
    background: #fff;
}

.hcff-history-entry.is-current .hcff-history-entry__content {
    border-color: #8fbd99;
    background: #f6fbf7;
}

.hcff-history-entry__topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.hcff-history-entry__topline time {
    color: #123f2a;
    font-weight: 850;
}

.hcff-history-entry__reason {
    margin-top: 4px;
    color: var(--muted, #66736b);
    font-size: .85rem;
}

.hcff-history-entry__metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.hcff-history-entry__metrics > div {
    padding: 10px 12px;
    border-radius: 9px;
    background: #f5f7f5;
}

.hcff-history-entry__metrics span,
.hcff-history-entry__metrics strong {
    display: block;
}

.hcff-history-entry__metrics span {
    color: var(--muted, #66736b);
    font-size: .76rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.hcff-history-entry__metrics strong {
    margin-top: 3px;
    color: #123f2a;
}

.hcff-history-entry--hot .hcff-history-entry__metrics div:last-child strong {
    color: #cc0000;
}

.hcff-history-entry--caution .hcff-history-entry__metrics div:last-child strong {
    color: #b85a00;
}

.hcff-history__no-changes {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 9px;
    background: #f5f7f5;
    color: var(--muted, #66736b);
    text-align: center;
    font-style: italic;
}

@media (max-width: 767px) {
    .hcff-current-card__header {
        flex-direction: column;
    }

    .hcff-current-metrics {
        grid-template-columns: 1fr;
    }

    .hcff-current-metric {
        min-height: 88px;
    }

    .hcff-history__body {
        padding-right: 12px;
        padding-left: 12px;
    }

    .hcff-history-entry__metrics {
        grid-template-columns: 1fr;
    }

    .hcff-history-entry__topline {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Version 2.5.1: compact 24-hour history table */
.hcff-history-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border, #d9e2da);
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
}

.hcff-history-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: .92rem;
}

.hcff-history-table th,
.hcff-history-table td {
    padding: 9px 11px;
    border-bottom: 1px solid var(--border, #d9e2da);
    text-align: left;
    vertical-align: middle;
}

.hcff-history-table th {
    background: #f2f6f2;
    color: #123f2a;
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .035em;
    text-transform: uppercase;
    white-space: nowrap;
}

.hcff-history-table tbody tr:last-child td {
    border-bottom: 0;
}

.hcff-history-table__row:nth-child(even) {
    background: #fafbfa;
}

.hcff-history-table__row.is-current {
    background: #f1f8f2;
    box-shadow: inset 4px 0 #4f9b61;
}

.hcff-history-table__row--good td:nth-child(3) {
    color: #2e7d32;
    font-weight: 750;
}

.hcff-history-table__row--caution td:nth-child(3) {
    color: #b85a00;
    font-weight: 750;
}

.hcff-history-table__row--hot td:nth-child(3) {
    color: #cc0000;
    font-weight: 750;
}

.hcff-history-table td:last-child {
    white-space: nowrap;
    color: var(--muted, #66736b);
    font-size: .82rem;
    font-weight: 750;
}

@media (max-width: 650px) {
    .hcff-history-table thead {
        display: none;
    }

    .hcff-history-table,
    .hcff-history-table tbody,
    .hcff-history-table tr,
    .hcff-history-table td {
        display: block;
        width: 100%;
    }

    .hcff-history-table__row {
        padding: 8px 10px;
        border-bottom: 1px solid var(--border, #d9e2da);
    }

    .hcff-history-table th,
    .hcff-history-table td {
        padding: 5px 0;
        border: 0;
    }

    .hcff-history-table td {
        display: grid;
        grid-template-columns: 128px minmax(0, 1fr);
        gap: 10px;
        align-items: baseline;
    }

    .hcff-history-table td::before {
        content: attr(data-label);
        color: var(--muted, #66736b);
        font-size: .72rem;
        font-weight: 800;
        letter-spacing: .03em;
        text-transform: uppercase;
    }

    .hcff-history-table__row.is-current {
        box-shadow: inset 4px 0 #4f9b61;
    }
}


/* Version 2.5.2: simplified compact three-column station history */
.hcff-history__header {
    padding-top: 14px;
    padding-bottom: 10px;
}

.hcff-history__header h3 {
    margin-top: 0;
}

.hcff-history-table th,
.hcff-history-table td {
    padding: 7px 10px;
}

.hcff-history-table th:nth-child(2),
.hcff-history-table th:nth-child(3),
.hcff-history-table td:nth-child(2),
.hcff-history-table td:nth-child(3) {
    text-align: right;
}

.hcff-history-table__row:nth-child(even) {
    background: #f7f9f7;
}

.hcff-history-table__row.is-current {
    background: #f4faf5;
    box-shadow: inset 3px 0 #6ba779;
}

.hcff-history-table__datetime {
    display: flex;
    gap: 9px;
    align-items: center;
    justify-content: space-between;
}

.hcff-history-current-badge {
    min-height: 24px;
    padding: 3px 8px;
    font-size: .66rem;
}

.hcff-history-table td:last-child {
    white-space: normal;
    font-size: .92rem;
    font-weight: 750;
}

@media (max-width: 650px) {
    .hcff-history-table__datetime {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .hcff-history-table td {
        grid-template-columns: 116px minmax(0, 1fr);
    }

    .hcff-history-table td:nth-child(2),
    .hcff-history-table td:nth-child(3) {
        text-align: left;
    }
}


/* Version 2.5.3: simplified history, directory conditions, weather link */
.hcff-history-table {
    table-layout: fixed;
}

.hcff-history-table th:nth-child(1),
.hcff-history-table td:nth-child(1) {
    width: 42%;
    text-align: left;
}

.hcff-history-table th:nth-child(2),
.hcff-history-table td:nth-child(2) {
    width: 24%;
    text-align: right;
}

.hcff-history-table th:nth-child(3),
.hcff-history-table td:nth-child(3) {
    width: 34%;
    text-align: right;
}

.hcff-history-table__row.is-current {
    background: #f4faf5;
    box-shadow: inset 3px 0 #6ba779;
}

.hcff-history-table__datetime,
.hcff-history-current-badge {
    /* Legacy selectors retained harmlessly for cached markup. */
}

.hcff-water-station-huc {
    display: none !important;
}

.hcff-water-station-conditions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin-top: 7px;
    color: var(--muted, #66736b);
    font-size: .78rem;
    font-weight: 700;
}

.hcff-water-station-flow,
.hcff-water-station-temp {
    display: inline-block;
}

.hcff-water-station-temp--good {
    color: #2e7d32;
}

.hcff-water-station-temp--caution {
    color: #b85a00;
}

.hcff-water-station-temp--hot {
    color: #cc0000;
}

.hcff-water-station-temp--unknown {
    color: var(--muted, #66736b);
}

.hcff-water-weather-link {
    margin: 18px 0;
    text-align: center;
}

.hcff-water-weather-link[hidden] {
    display: none !important;
}

.hcff-water-weather-button {
    display: block;
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #8fbd99;
    border-radius: 12px;
    background: #f4faf5;
    color: #123f2a;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(18, 63, 42, .08);
}

.hcff-water-weather-button:hover,
.hcff-water-weather-button:focus {
    background: #eaf3ec;
    color: #123f2a;
    text-decoration: underline;
}

@media (max-width: 650px) {
    .hcff-history-table th:nth-child(1),
    .hcff-history-table td:nth-child(1),
    .hcff-history-table th:nth-child(2),
    .hcff-history-table td:nth-child(2),
    .hcff-history-table th:nth-child(3),
    .hcff-history-table td:nth-child(3) {
        width: 100%;
        text-align: left;
    }

    .hcff-water-station-conditions {
        flex-direction: column;
        gap: 2px;
    }

    .hcff-water-weather-button {
        padding: 13px 14px;
    }
}


/* Version 2.5.4: reliable dynamic history toggle and explicit forecast row */
.hcff-water-weather-link {
    display: block;
    width: 100%;
    margin: 18px 0;
}

.hcff-water-weather-link[hidden] {
    display: none !important;
}

.hcff-water-weather-button {
    display: block;
    width: 100%;
    padding: 15px 18px;
    border: 1px solid #6ba779;
    border-radius: 12px;
    background: #eaf3ec;
    color: #123f2a !important;
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.3;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 6px 16px rgba(18, 63, 42, .08);
}

.hcff-water-weather-button::before {
    content: "☀ ";
}

.hcff-water-weather-button:hover,
.hcff-water-weather-button:focus {
    background: #dcebdd;
    color: #123f2a !important;
    text-decoration: underline !important;
}

.hcff-history__toggle {
    cursor: pointer;
}


/* Version 2.5.5: better-balanced station history columns */
.hcff-history-table th:nth-child(1),
.hcff-history-table td:nth-child(1) {
    width: 40%;
    text-align: left;
}

.hcff-history-table th:nth-child(2),
.hcff-history-table td:nth-child(2) {
    width: 30%;
    text-align: center;
}

.hcff-history-table th:nth-child(3),
.hcff-history-table td:nth-child(3) {
    width: 30%;
    text-align: center;
}

@media (max-width: 650px) {
    .hcff-history-table th:nth-child(1),
    .hcff-history-table td:nth-child(1),
    .hcff-history-table th:nth-child(2),
    .hcff-history-table td:nth-child(2),
    .hcff-history-table th:nth-child(3),
    .hcff-history-table td:nth-child(3) {
        width: 100%;
        text-align: left;
    }
}


/* Version 2.5.7: Station History current summary */
.hcff-history__current-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
    margin: 6px 0 8px !important;
    color: #123f2a !important;
    font-size: .96rem;
}

.hcff-history__current-separator {
    color: var(--muted, #66736b);
}

@media (max-width: 650px) {
    .hcff-history__current-summary {
        align-items: center;
        flex-direction: column;
        gap: 2px;
    }

    .hcff-history__current-separator {
        display: none;
    }
}


/* Version 2.5.8: station/current conditions in Station History toggle */
.hcff-history__toggle {
    align-items: flex-start;
}

.hcff-history__toggle-content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 4px;
}

.hcff-history__toggle-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 16px;
    align-items: baseline;
    color: #123f2a;
}

.hcff-history__toggle-station {
    font-size: 1rem;
}

.hcff-history__toggle-current {
    color: var(--muted, #66736b);
    font-size: .9rem;
    font-weight: 750;
}

.hcff-history__toggle-title {
    color: #123f2a;
    font-size: .88rem;
    font-weight: 800;
}

.hcff-history__header {
    padding-top: 12px;
}

@media (max-width: 650px) {
    .hcff-history__toggle-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .hcff-history__toggle-current {
        font-size: .84rem;
    }
}


/* Version 2.5.11: USGS station details link in expanded 24-hour history */
.hcff-history__usgs-link {
    margin-top: 16px;
    text-align: center;
    font-size: .9em;
}

.hcff-history__usgs-link a {
    color: #1f6b3a;
    font-weight: 750;
}


/* Version 2.5.14: historic daily streamflow statistics */
.hcff-history-stats {
    margin: 0 0 16px;
    padding: 13px 15px;
    border: 1px solid var(--border, #d9e2da);
    border-radius: 10px;
    background: #f7faf7;
}
.hcff-history-stats h4 {
    margin: 0 0 7px;
    color: #1f6b3a;
    font-size: .95rem;
    font-weight: 850;
}
.hcff-history-stats p {
    margin: 0;
    color: #4e5d53;
    font-size: .9rem;
    line-height: 1.55;
}
