/* AstroLoop 20260910-resources-clarity-1. Resources-only presentation.
 * Load after existing tab-readability styles; do not restyle other views.
 */
html body:has(#al-res4-root [data-res4-focus]:checked) .l-shell__pane-inspector {
    display: none !important;
}
html body #al-res4-root {
    container: resources-clarity / inline-size;
    --res-text3: #d6dcdf;
    --res-text4: #d6dcdf;
    font: 14px/1.45 Roboto, Arial, sans-serif;
    color: #f1f3f4;
    padding: 12px;
    min-width: 0;
    overflow-wrap: anywhere;
}
html body #al-res4-root :not(svg, svg *) {
    box-sizing: border-box;
    font-size: 14px !important;
    line-height: 1.45;
    min-width: 0;
}
html body #al-res4-root :is(.al-res4-panel-title, .al-res4-panel-title > span:first-child) {
    font-size: 18px !important;
    line-height: 1.35;
    color: #f1f3f4;
}
html body #al-res4-root .al-res4-card-value {
    font-size: 28px !important;
    font-weight: 650;
    line-height: 1.2;
    white-space: normal !important;
}
html body #al-res4-root .al-res4-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 0 10px;
    min-height: 42px;
}
html body #al-res4-root > .al-res4-header > div.al-res4-header-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 0 !important;
}
html body #al-res4-root .al-res4-focus-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    min-height: 32px;
    flex: 1 1 200px;
    color: #f1f3f4;
}
html body #al-res4-root input[data-res4-focus] {
    appearance: auto;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 0;
    accent-color: #d6dcdf;
}
html body #al-res4-root .al-res4-header #al-res4-refresh {
    position: static !important;
    inset: auto !important;
    width: 104px;
    height: 32px;
    min-height: 32px;
    margin-left: auto;
    flex: 0 0 104px;
}
html body #al-res4-root :is(button, input, summary, a):focus-visible {
    outline: 2px solid #edf3f6 !important;
    outline-offset: 3px;
}
html body #al-res4-root :is(.al-res4-snapshot-notice, .al-res4-provenance-details) {
    padding: 10px 12px;
    margin: 0 0 10px;
    border: 1px solid #505659;
    background: #292c2e;
    color: #d6dcdf;
}
html body #al-res4-root .al-res4-snapshot-notice [data-field] {
    display: block;
    margin: 4px 0;
}
html body #al-res4-root [data-field="snapshotNotice"] {
    color: #f1f3f4;
    font-weight: 600;
}
html body #al-res4-root .al-res4-provenance-details summary {
    cursor: pointer;
    display: list-item;
    list-style: disclosure-closed inside;
    color: #f1f3f4;
    min-height: 24px;
}
html body #al-res4-root .al-res4-provenance-details[open] summary {
    list-style-type: disclosure-open;
    margin-bottom: 8px;
}
html body #al-res4-root .al-res4-provenance-details :is(p, ul) { margin: 6px 0; }
html body #al-res4-root .al-res4-provenance-details ul { padding-left: 22px; }
html body #al-res4-root .al-res4-mission-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    margin-top: 0;
}
html body #al-res4-root .al-res4-meta-value {
    white-space: normal !important;
    overflow: visible;
    overflow-wrap: anywhere;
}
html body #al-res4-root .al-res4-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px;
    padding: 10px;
}
html body #al-res4-root .al-res4-card {
    min-height: 128px;
    padding: 12px;
}
html body #al-res4-root .al-res4-card-main {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
html body #al-res4-root :is(.al-res4-card-foot, .al-res4-panel-note, .al-res4-source-status, .al-res4-basis) {
    color: #d6dcdf;
    white-space: normal;
    overflow-wrap: anywhere;
}
html body #al-res4-root :is(.al-res4-basis, .al-res4-source-status) {
    display: block;
    margin-top: 5px;
    font-weight: 400;
    text-transform: none;
}
html body #al-res4-root .al-res4-executive-review {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 10px;
}
html body #al-res4-root button[data-res4-jump] {
    border: 1px solid #747b7e;
    border-radius: 3px;
    background: #35393b;
    color: #f1f3f4;
    padding: 6px 10px;
    white-space: normal;
    cursor: pointer;
    min-height: 34px;
}
html body #al-res4-root :is([data-severity="CAUTION"], [data-severity="WARNING"], .al-res4-warning) {
    border-left: 3px solid #e9bc71 !important;
    padding-left: 8px;
}
html body #al-res4-root :is([data-severity="CRITICAL"], .al-res4-critical) {
    border-left: 3px solid #ee9991 !important;
    padding-left: 8px;
}
html body #al-res4-root :is(.al-res4-upper-grid, .al-res4-middle-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: start;
    gap: 12px;
}
html body #al-res4-root #al-res4-forecasts { grid-column: 1 / -1; }
html body #al-res4-root .al-res4-middle-grid { grid-template-columns: minmax(0, 1fr) !important; }
html body #al-res4-root .al-res4-panel { min-width: 0; max-width: 100%; }
html body #al-res4-root .al-res4-panel-title { flex-wrap: wrap; gap: 8px; padding: 10px; }
html body #al-res4-root .al-res4-table-wrap { max-width: 100%; overflow-x: auto; }
html body #al-res4-root .al-res4-table {
    min-width: 640px;
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}
html body #al-res4-root #al-res4-coverage .al-res4-table { min-width: 560px; }
html body #al-res4-root :is(th, td) {
    white-space: normal !important;
    overflow-wrap: anywhere;
    vertical-align: top;
    line-height: 1.45;
    padding: 10px;
}
html body #al-res4-root .al-res4-depletion { padding: 12px; }
html body #al-res4-root .al-res4-depletion-row {
    grid-template-columns: minmax(160px, 1fr) minmax(100px, 2fr) minmax(100px, 1fr) !important;
    gap: 8px 12px;
    padding: 10px 0;
}
html body #al-res4-root .al-res4-depletion-row .al-res4-basis { grid-column: 1 / -1; }
html body #al-res4-root .al-res4-depletion-value { max-width: none; }
html body #al-res4-root .al-res4-trend-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px;
}
html body #al-res4-root .al-res4-trend-card { padding: 10px; min-height: 145px; overflow-x: auto; }
html body #al-res4-root .al-res4-chart-scroll { max-width: 100%; overflow-x: auto; }
html body #al-res4-root .al-res4-spark {
    display: block;
    min-width: 380px;
    width: 100%;
    height: auto !important;
    min-height: 175px;
}
html body #al-res4-root .al-res4-spark text { font-size: 14px !important; }
html body #al-res4-root :is(.al-res4-trend-note, .al-res4-time-axis) { color: #d6dcdf; white-space: normal; }
html body #al-res4-root .al-res4-time-axis { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
html body #al-res4-root .al-res4-footer { flex-wrap: wrap; gap: 8px; }
@container resources-clarity (max-width: 1250px) {
    html body #al-res4-root :is(.al-res4-upper-grid, .al-res4-middle-grid) {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    html body #al-res4-root .al-res4-trend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@container resources-clarity (max-width: 900px) {
    html body #al-res4-root .al-res4-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@container resources-clarity (max-width: 520px) {
    html body #al-res4-root :is(.al-res4-summary-grid, .al-res4-mission-strip, .al-res4-trend-grid) {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    html body #al-res4-root .al-res4-depletion-row { grid-template-columns: minmax(0, 1fr) !important; }
}
