/* CED cross-module data explorer 20260928m */

.ced-explore-page {
    max-width: 1500px;
    margin: 0 auto;
    padding: 36px 20px 20px;
    color: #26384d;
}

.ced-explore-page section {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.explore-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 36px;
    padding: 10px 4px 28px;
    border-bottom: 1px solid #dce3e7;
}

.explore-heading > div {
    max-width: 900px;
}

.explore-heading h1 {
    margin: 0;
    color: #26384d;
    text-align: left;
    font-size: clamp(2rem, 3.4vw, 3.2rem);
    line-height: 1.08;
    font-weight: 500;
}

.explore-heading p:not(.explore-kicker) {
    margin: 14px 0 0;
    color: #5d6b78;
    font-size: 1.05rem;
    line-height: 1.6;
}

.explore-kicker {
    margin: 0 0 7px;
    color: #5a7968;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.explore-back {
    margin-top: 7px;
    white-space: nowrap;
    font-weight: 700;
}

.explore-filter-panel {
    margin-top: 24px !important;
    padding: 20px 22px 22px;
    border: 1px solid #d5dee4;
    border-radius: 8px;
    background: #f7f9fa;
}

.explore-panel-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.explore-panel-title-row h2,
.explore-chart-heading h2 {
    margin: 0;
    color: #26384d;
    text-align: left;
    font-size: 1.35rem;
    font-weight: 600;
}

.explore-panel-title-row p {
    margin: 3px 0 0;
    color: #6d7883;
}

.explore-reset {
    padding: 8px 12px;
    border: 1px solid #aebbc5;
    border-radius: 4px;
    background: #fff;
    color: #31475d;
    font-weight: 700;
    cursor: pointer;
}

.explore-reset:hover,
.explore-reset:focus {
    background: #edf1f3;
}

.explore-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.explore-filter-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    color: #32485d;
    font-weight: 700;
}

.explore-filter-grid select {
    width: 100%;
    height: 42px;
    padding: 7px 10px;
    border: 1px solid #b8c4cd;
    border-radius: 4px;
    background: #fff;
    color: #26384d;
}

.explore-status {
    min-height: 22px;
    margin: 12px 3px 0;
    color: #6b7782;
    font-size: 0.88rem;
}

.explore-status.is-error {
    color: #8b3c2f;
    font-weight: 700;
}

.explore-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 10px !important;
}

.explore-summary article {
    min-height: 115px;
    padding: 18px 20px;
    border: 1px solid #d9e1e6;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(40, 59, 77, 0.05);
}

.summary-value {
    display: block;
    color: #2c4d3c;
    font-size: clamp(1.65rem, 2.6vw, 2.35rem);
    line-height: 1.05;
    font-weight: 600;
}

.summary-label {
    display: block;
    margin-top: 7px;
    color: #5f6e7b;
    line-height: 1.3;
}

.explore-chart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
    gap: 16px;
    margin-top: 16px !important;
}

.explore-chart-grid-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.explore-chart-card {
    min-width: 0;
    padding: 21px 22px 24px;
    border: 1px solid #d8e1e6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(38, 56, 77, 0.055);
}

.explore-chart-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.explore-chart-hint,
.subactivity-selection {
    color: #73808b;
    font-size: 0.82rem;
}

.subactivity-selection {
    min-height: 22px;
    margin: -8px 0 11px;
    font-weight: 700;
}

.interactive-bar-chart {
    display: grid;
    gap: 9px;
}

.chart-row {
    display: grid;
    grid-template-columns: minmax(145px, 0.42fr) minmax(170px, 1fr) minmax(90px, auto);
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.chart-row-button {
    width: 100%;
    padding: 6px 5px;
    border: 0;
    background: transparent;
    color: #2f4357;
    text-align: left;
    line-height: 1.25;
    cursor: pointer;
    border-radius: 3px;
}

.chart-row-button:hover,
.chart-row-button:focus,
.chart-row.is-selected .chart-row-button {
    background: #edf4ef;
    color: #234d37;
    outline: none;
}

.chart-track {
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5ebe8;
}

.chart-bar {
    display: block;
    min-width: 3px;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #407a59, #6aaa79);
}

.chart-row.is-selected .chart-bar {
    background: #285c3f;
}

.chart-value {
    color: #405365;
    text-align: right;
    white-space: nowrap;
    font-size: 0.86rem;
    font-variant-numeric: tabular-nums;
}

.chart-empty {
    padding: 24px 16px;
    border: 1px dashed #cad4da;
    border-radius: 5px;
    color: #73808a;
    text-align: center;
}

.year-chart {
    display: flex;
    align-items: stretch;
    min-height: 260px;
    overflow-x: auto;
    padding: 8px 4px 2px;
}

.year-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    min-width: 100%;
    height: 240px;
    padding-top: 12px;
    border-bottom: 1px solid #cbd5db;
}

.year-bar-item {
    display: flex;
    flex: 1 0 24px;
    min-width: 24px;
    height: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
}

.year-bar-column {
    min-height: 3px;
    border-radius: 3px 3px 0 0;
    background: #56886a;
}

.year-bar-label {
    margin-top: 7px;
    color: #687782;
    font-size: 0.65rem;
    text-align: center;
    transform: rotate(-45deg);
    transform-origin: top center;
    white-space: nowrap;
}

.explore-methodology {
    margin: 18px 0 8px;
    padding: 14px 18px;
    border: 1px solid #d9e0e5;
    border-radius: 7px;
    background: #f8fafb;
}

.explore-methodology summary {
    color: #344b61;
    font-weight: 700;
    cursor: pointer;
}

.explore-methodology p {
    margin: 12px 0 0;
    color: #5e6c78;
    line-height: 1.55;
}

@media (max-width: 1050px) {
    .explore-filter-grid,
    .explore-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .explore-chart-grid,
    .explore-chart-grid-secondary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .ced-explore-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .explore-heading,
    .explore-panel-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .explore-filter-grid,
    .explore-summary {
        grid-template-columns: 1fr;
    }

    .chart-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding-bottom: 6px;
        border-bottom: 1px solid #edf1f3;
    }

    .chart-value {
        text-align: left;
    }
}

/* 20260928m: expanded metric coverage (acres, miles, counts). */
.explore-summary {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.explore-metric-overview {
    margin-top: 28px !important;
    padding-top: 24px;
    border-top: 1px solid #dce3e7;
}

.metric-overview-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 0 4px;
}

.metric-overview-heading h2 {
    margin: 0;
    color: #26384d;
    font-size: 1.55rem;
    font-weight: 600;
    text-align: left;
}

.metric-overview-heading > span {
    color: #73808b;
    font-size: 0.84rem;
    white-space: nowrap;
}

.explore-metric-overview .explore-chart-grid-secondary {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.year-bar-value {
    margin-bottom: 5px;
    color: #405365;
    font-size: 0.62rem;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 1200px) {
    .explore-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1050px) {
    .explore-metric-overview .explore-chart-grid-secondary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .metric-overview-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .metric-overview-heading > span {
        white-space: normal;
    }
}
