:root {
  --bc-blue: #003366;
  --bc-blue-dark: #002855;
  --bc-blue-soft: #e8f0f7;
  --bc-yellow: #f7c600;
  --bc-green: #2e7d32;
  --bc-red: #b3261e;
  --bc-ink: #1f2933;
  --bc-muted: #52606d;
  --bc-border: #d9e2ec;
  --bc-surface: #ffffff;
  --bc-page: #f4f7f9;
  --bc-shadow: 0 2px 8px rgba(0, 51, 102, 0.12);
}
html[data-theme="dark"] {
  --bc-ink: #e6edf6;
  --bc-muted: rgba(230, 237, 246, .74);
  --bc-border: rgba(255, 255, 255, .16);
  --bc-surface: #0f1a2b;
  --bc-page: #0b1220;
  --bc-blue-soft: #172a40;
  --bc-shadow: 0 2px 8px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
body { width: 100%; max-width: 100%; min-width: 0; margin: 0; overflow-x: hidden; background: var(--bc-page); color: var(--bc-ink); font-family: Arial, Helvetica, sans-serif; line-height: 1.45; }
a { color: var(--bc-blue); }
html[data-theme="dark"] a { color: #cfe3ff; }
.site-header { background: #013366; color: #fff; border-bottom: 3px solid #f8ba47; }
.header-inner, main { width: 100%; max-width: 1280px; min-width: 0; margin: 0 auto; }
.site-header .header-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; min-height: 76px; padding: 0 24px; }
.portal-brand { display: inline-flex; flex: 0 0 auto; align-items: center; color: #fff; text-decoration: none; }
.portal-brand img { display: block; width: auto; height: 72px; max-width: 132px; object-fit: contain; }
.portal-title { flex: 1 1 auto; min-width: 0; margin: 0; font-size: clamp(1.2rem, 2.4vw, 1.65rem); font-weight: 400; white-space: nowrap; }
h1 { margin: 0 0 4px; font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.15; }
h2 { margin: 0 0 10px; color: var(--bc-blue); font-size: 1.25rem; }
.subtitle { color: #d9e7f2; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.staff-portal { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.55); padding: 7px 10px; border-radius: 3px; font-size: .92rem; }
.staff-portal:hover, .staff-portal:focus-visible { color: var(--bc-blue); background: #fff; }
.site-nav { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: flex-start; gap: 0; width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.site-nav a { flex: 0 0 auto; max-width: 100%; color: var(--bc-blue); text-decoration: none; border: 1px solid var(--bc-blue); border-top: 0; padding: 10px 8px 9px; border-radius: 0 0 3px 3px; background: var(--bc-surface); font-size: .92rem; box-shadow: 0 2px 3px rgba(0, 51, 102, .14); }
.site-nav a + a { margin-left: -1px; border-left-color: var(--bc-border); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; background: var(--bc-blue); }
.site-nav a:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
.theme-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.55); border-radius: 3px; background: transparent; color: #fff; font: inherit; cursor: pointer; }
.theme-toggle:hover, .theme-toggle:focus-visible { color: var(--bc-blue); background: #fff; }
main { padding: 24px; }
.card, .view-pane { background: var(--bc-surface); border: 1px solid var(--bc-border); box-shadow: var(--bc-shadow); }
.card { min-width: 0; padding: 20px; margin-bottom: 18px; overflow: hidden; }
.controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.dashboard-page .tab-row + .controls { display: block; }
.filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.filter-row > label:not(.toggle) { display: inline-flex; flex-direction: column; gap: 4px; color: var(--bc-muted); font-size: .85rem; }
.filter-row > label:not(.toggle) select { min-width: 150px; padding: 6px 5px; border: 1px solid var(--bc-border); border-radius: 3px; background: var(--bc-surface); color: var(--bc-ink); font: inherit; font-size: .85rem; }
.toggle { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; color: var(--bc-ink); border: 1px solid var(--bc-border); background: #fff; border-radius: 3px; cursor: pointer; }
html[data-theme="dark"] .toggle, html[data-theme="dark"] .details-button { background: #0c1524; color: var(--bc-ink); }
.toggle:hover { border-color: var(--bc-blue); background: var(--bc-blue-soft); }
.toggle input { accent-color: var(--bc-blue); }
.subtle, .subtle-inline, .loading { color: var(--bc-muted); }
.subtle-inline { font-size: .9rem; }
.data-source-notice { padding: 10px 12px; margin-top: 12px; color: var(--bc-blue); background: var(--bc-blue-soft); border-left: 4px solid var(--bc-blue); }
.tab-row { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 3px solid var(--bc-blue); margin: -20px -20px 20px; }
.tab-button { flex: 1 1 180px; padding: 12px 14px; border: 0; background: #eef3f7; color: var(--bc-blue); font-weight: 700; cursor: pointer; }
.tab-button:hover, .tab-button.active { color: #fff; background: var(--bc-blue); }
.view-pane { display: none; padding: 0; background: transparent; border: 0; box-shadow: none; }
.view-pane.active { display: block; }
.hero-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 8px 0; }
.metric { padding: 10px 12px; border-left: 4px solid var(--bc-yellow); background: #f7fafc; }
.metric .label { color: var(--bc-muted); font-size: .86rem; }
.metric .value { color: var(--bc-blue); font-size: 1.45rem; font-weight: 700; }
.status-list { display: grid; gap: 4px; }
.status-list[hidden] { display: none !important; }
.status-item { border: 1px solid var(--bc-border); }
.status-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 3px 10px; cursor: pointer; }
.status-row:hover { background: var(--bc-blue-soft); }
.status-groups-toggle { margin-top: 10px; padding: 7px 10px; border: 1px solid var(--bc-blue); border-radius: 4px; background: transparent; color: var(--bc-blue); font: inherit; font-size: .86rem; font-weight: 400; cursor: pointer; }
.status-groups-toggle::after { display: inline-block; margin-left: 8px; content: '\25BC'; font-size: .72em; }
.status-groups-toggle[aria-expanded="true"]::after { content: '\25B2'; }
.status-groups-toggle:hover, .status-groups-toggle:focus-visible { background: var(--bc-blue-dark); border-color: var(--bc-blue-dark); color: #fff; }
.overview-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.overview-actions .status-groups-toggle { margin-top: 0; }
.status-title { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.details { display: none; padding: 4px 10px 6px; border-top: 1px solid var(--bc-border); }
.details.show { display: block; }
.details-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.details-list li { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 12px; padding: 3px 0; border-bottom: 1px solid var(--bc-border); font-size: .88rem; }
.details-list li:last-child { border-bottom: 0; }
.details-list time { color: var(--bc-muted); text-align: right; }
.park-map-link { display: inline-flex; width: 1.25rem; height: 1.25rem; margin-left: 6px; color: var(--bc-blue); vertical-align: -.25em; }
.park-map-link svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.park-map-link:hover, .park-map-link:focus-visible { color: var(--bc-blue-dark); }
.park-map-link:focus-visible { outline: 2px solid var(--bc-yellow); outline-offset: 2px; border-radius: 2px; }
html[data-theme="dark"] .park-map-link { color: #cfe3ff; }
html[data-theme="dark"] .park-map-link:hover, html[data-theme="dark"] .park-map-link:focus-visible { color: #fff; }
.pill { display: inline-flex; padding: 3px 8px; border-radius: 3px; font-size: .82rem; font-weight: 700; white-space: nowrap; border: 1px solid currentColor; }
.park-table .status-cell .pill { display: inline-block; box-sizing: border-box; width: 100%; max-width: 100%; white-space: normal; overflow-wrap: normal; line-height: 1.25; }
.summary-table td:first-child .pill { display: inline-block; box-sizing: border-box; width: fit-content; max-width: 100%; white-space: normal; overflow-wrap: normal; text-align: center; vertical-align: top; }
.pill.open { color: var(--bc-green); background: #eaf5ea; }
.pill.closure { color: var(--bc-red); background: #fbeceb; }
.pill.warn { color: #805b00; background: #fff5cc; }
.pill.api-red { color: var(--bc-red); background: #fbeceb; }
.pill.api-yellow { color: #805b00; background: #fff5cc; }
.pill.api-blue { color: #005ea8; background: #e8f0f7; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--bc-border); }
html[data-theme="dark"] table { background: #0f1a2b; }
th, td { padding: 3px 10px; border-bottom: 1px solid var(--bc-border); text-align: left; vertical-align: top; font-size: .9rem; }
th { color: #fff; background: var(--bc-blue); font-size: .78rem; white-space: normal; }
tbody tr:hover { background: #f1f6fa; }
.table-scroll { position: relative; width: 100%; max-width: 100%; min-width: 0; max-height: calc(100vh - 300px); overflow: auto; overscroll-behavior: contain; }
.data-table-controls { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-bottom: 4px; }
.data-table-controls label { display: inline-flex; align-items: center; gap: 8px; color: var(--bc-muted); font-size: .88rem; }
.data-table-search { width: 220px; padding: 7px 9px; border: 1px solid var(--bc-border); border-radius: 3px; background: var(--bc-surface); color: var(--bc-ink); font: inherit; }
.data-table-export { padding: 4px 8px; border: 1px solid var(--bc-blue); border-radius: 4px; background: transparent; color: var(--bc-blue); font: inherit; font-size: .875rem; font-weight: 400; cursor: pointer; }
.data-table-export:hover { background: var(--bc-blue-soft); }
.data-table-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; color: var(--bc-muted); font-size: .88rem; }
.global-filter-summary { margin-top: -2px; }
.view-pane.active#combinedView > .card { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: start; }
.view-pane.active#combinedView > .card > h2 { grid-column: 1 / -1; }
.view-pane.active#combinedView > .card > #combinedSummary { grid-column: 1; grid-row: 2; }
.view-pane.active#combinedView > .card > #combinedFilterSummary { grid-column: 1 / -1; grid-row: 3; }
.view-pane.active#combinedView > .card > #combinedTableWrap { display: contents; }
.view-pane.active#combinedView > .card > #combinedTableWrap > .data-table-controls { grid-column: 2; grid-row: 2; }
.view-pane.active#combinedView > .card > #combinedTableWrap > table { grid-column: 1 / -1; grid-row: 4; }
.data-table-enhanced { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 12px; margin-top: 8px; }
.data-table-enhanced .data-table-controls { grid-column: 2; grid-row: 1; }
.data-table-enhanced .data-table-summary { grid-column: 1; grid-row: 1; min-width: 0; align-self: end; }
.data-table-enhanced > .table-scroll { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
.data-table-result-count { color: var(--bc-ink); font-weight: 700; }
.data-table-active-filters { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.advisories-page .controls { justify-content: flex-start; }
.advisories-page .advisory-resource-filter { flex-basis: 100%; }
.advisories-page .data-table-active-filters { margin-top: 4px; }
.data-table-filter-pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 8px; border: 1px solid var(--bc-blue); border-radius: 999px; background: var(--bc-blue); color: #fff; font: inherit; font-size: .82rem; cursor: pointer; }
.data-table-filter-pill:hover { background: var(--bc-blue-dark, #063b69); }
.data-table-clear { padding: 0; border: 0; background: transparent; color: var(--bc-blue); font: inherit; text-decoration: underline; cursor: pointer; }
.data-table-header-button { display: inline-flex; align-items: center; justify-content: space-between; width: 100%; gap: 5px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: inherit; text-align: left; cursor: pointer; }
.data-table-header-button:focus-visible { outline: 2px solid var(--bc-yellow); outline-offset: 2px; }
.data-table-sort-indicator { opacity: .7; }
[hidden] { display: none !important; }
.data-table-filter-row th { padding: 7px 6px; background: var(--bc-surface); }
.data-table-column-filter { box-sizing: border-box; width: 100%; min-width: 0; padding: 6px 5px; border: 1px solid var(--bc-border); border-radius: 3px; background: var(--bc-surface); color: var(--bc-ink); font: inherit; font-size: .8rem; font-weight: 400; }
.data-table-column-filter:focus-visible { outline: 2px solid var(--bc-yellow); outline-offset: 1px; }
.regional-filter-row { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.regional-filter-row label { display: inline-flex; flex-direction: column; gap: 4px; color: var(--bc-muted); font-size: .85rem; }
.regional-filter-row select { min-width: 150px; padding: 6px 5px; border: 1px solid var(--bc-border); border-radius: 3px; background: var(--bc-surface); color: var(--bc-ink); font: inherit; font-size: .85rem; }
.regional-filter-row select:focus-visible { outline: 2px solid var(--bc-yellow); outline-offset: 1px; }
.filter-row > .global-filter-summary { flex-basis: 100%; margin-top: 0; }
.table-scroll table { width: max-content; min-width: 100%; }
.table-scroll thead { position: sticky; top: 0; z-index: 3; }
.table-scroll th { position: static; }
.table-scroll .advisory-table { width: 1120px; min-width: 1120px; max-width: 1120px; table-layout: fixed; }
.table-scroll .rst-table { width: 1120px; min-width: 1120px; max-width: 1120px; table-layout: fixed; }
.table-scroll th { overflow-wrap: normal; word-break: normal; hyphens: none; }
.rst-table td { overflow-wrap: normal; }
.rst-resource-map-group { display: inline-flex; align-items: center; max-width: 100%; white-space: normal; }
.rst-resource-map-group > a:first-child { min-width: 0; overflow-wrap: normal; word-break: normal; hyphens: none; }
.rst-resource-map-group .park-map-link { flex: 0 0 auto; }
.rst-table th:nth-child(1), .rst-table td:nth-child(1) { width: 105px; padding-right: 14px; font-size: .75rem; white-space: nowrap; }
.rst-table th:nth-child(2), .rst-table td:nth-child(2) { width: 150px; }
.rst-table th:nth-child(3), .rst-table td:nth-child(3) { width: 110px; }
.rst-table th:nth-child(4), .rst-table td:nth-child(4) { width: 90px; }
.rst-table th:nth-child(5), .rst-table td:nth-child(5) { width: 100px; }
.rst-table th:nth-child(6), .rst-table td:nth-child(6) { width: 75px; }
.rst-table th:nth-child(7), .rst-table td:nth-child(7) { width: 70px; }
.rst-table th:nth-child(8), .rst-table td:nth-child(8) { width: 60px; }
.rst-table th:nth-child(9), .rst-table td:nth-child(9) { width: 100px; }
.rst-table th:nth-child(10), .rst-table td:nth-child(10) { width: 170px; }
.rst-table th:nth-child(11), .rst-table td:nth-child(11) { width: 115px; }
.rst-table td, .park-table td, .advisory-table td { font-size: .75rem; }
.advisory-table .status-cell .pill { display: inline-block; max-width: 100%; white-space: normal; overflow-wrap: normal; font-size: .75rem; font-weight: 400; line-height: 1.25; }
.advisory-table .urgency-cell { position: relative; width: 62px; min-width: 58px; max-width: 70px; padding: 0 10px; overflow: hidden; }
.advisory-table .urgency-column { position: absolute; top: 0; bottom: 0; left: 0; width: 8px; }
.advisory-table .urgency-value { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.advisory-table .urgency-header { width: 62px; min-width: 58px; max-width: 70px; padding: 3px 6px; text-align: center; }
.advisory-table .urgency-header .data-table-header-button { justify-content: space-between; }
.advisory-table .urgency-header svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5; }
.advisory-table .urgency-header-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.advisory-table td { overflow-wrap: normal; }
.advisory-table .urgency-high .urgency-column { background: rgb(206, 62, 57); }
.advisory-table .urgency-medium .urgency-column { background: rgb(248, 187, 71); }
.advisory-table .urgency-low .urgency-column { background: rgb(5, 54, 98); }
.advisory-table .urgency-unknown .urgency-column { background: var(--bc-border); }
.rst-table .status-cell .pill { display: inline-block; max-width: 100%; white-space: normal; overflow-wrap: normal; font-size: .75rem; font-weight: 400; line-height: 1.25; }
.park-table .status-cell .pill, .rst-table .status-cell .pill { font-weight: 400; }
.rst-table .details-button { display: block; width: 100%; max-width: 100%; white-space: normal; }
.table-scroll .park-table { width: 1120px; min-width: 1120px; max-width: 1120px; table-layout: fixed; }
.park-table th:nth-child(1), .park-table td:nth-child(1) { width: 62px; min-width: 55px; max-width: 70px; }
.park-table th:nth-child(2), .park-table td:nth-child(2) { width: 250px; min-width: 220px; max-width: 270px; }
.park-table th:nth-child(3), .park-table td:nth-child(3) { width: 220px; min-width: 200px; max-width: 240px; }
.park-table th:nth-child(4), .park-table td:nth-child(4) { width: 145px; min-width: 130px; max-width: 165px; }
.park-table th:nth-child(5), .park-table td:nth-child(5) { width: 240px; min-width: 210px; max-width: 270px; }
.park-table th:nth-child(6), .park-table td:nth-child(6) { width: 150px; min-width: 140px; max-width: 170px; white-space: nowrap; }
.park-table th:nth-child(7), .park-table td:nth-child(7) { width: 105px; min-width: 95px; max-width: 120px; }
.park-table .regional-hierarchy, .rst-table .regional-hierarchy { font-size: .75rem; line-height: 1.45; }
.park-table .status-cell .pill { padding: 3px 6px; font-size: .75rem; }
.park-table .park-name-link { color: var(--bc-blue); text-decoration: underline; text-decoration-color: var(--bc-blue); text-underline-offset: 2px; }
.park-name-map-group { display: inline-flex; align-items: center; max-width: 100%; white-space: normal; }
.park-name-map-group > a:first-child { min-width: 0; overflow-wrap: normal; word-break: normal; hyphens: none; }
.park-name-map-group .park-map-link { flex: 0 0 auto; }
html[data-theme="dark"] .park-table .park-name-link { color: #cfe3ff; text-decoration-color: #cfe3ff; }
.summary-table { width: 760px; max-width: 100%; table-layout: fixed; }
.summary-table th, .summary-table td { padding: 3px 8px; }
.summary-table th:first-child, .summary-table td:first-child { width: 58%; text-align: right; }
.summary-table th:not(:first-child), .summary-table td:not(:first-child) { width: 21%; text-align: center; }
.summary-table .emphasis-row td, .summary-table .total-row td { font-weight: 700; }
.summary-table .total-row td { border-top: 2px solid var(--bc-blue); }
.summary-footnote { max-width: 760px; margin-top: 6px; color: var(--bc-muted); font-size: .82rem; }
#combinedTableWrap .data-table-controls { margin-bottom: 4px; }
.summary-tooltip { border-bottom: 1px dotted currentColor; cursor: help; }
.advisory-table td.advisory-title { width: 190px; min-width: 170px; max-width: 220px; font-size: .75rem; font-weight: 700; white-space: normal; overflow-wrap: normal; }
.advisory-parks { width: 175px; min-width: 155px; max-width: 225px; white-space: normal; }
.advisory-table th:nth-child(1), .advisory-table td:nth-child(1) { width: 62px; min-width: 58px; max-width: 70px; }
.advisory-table th:nth-child(2), .advisory-table td:nth-child(2) { width: 82px; min-width: 76px; max-width: 95px; white-space: nowrap; }
.advisory-table th:nth-child(3), .advisory-table td:nth-child(3) { width: 82px; min-width: 76px; max-width: 95px; white-space: nowrap; }
.advisory-table th:nth-child(4), .advisory-table td:nth-child(4) { width: 171px; min-width: 150px; max-width: 210px; }
.advisory-table th:nth-child(5), .advisory-table td:nth-child(5) { width: 150px; min-width: 140px; max-width: 165px; }
.advisory-table th:nth-child(6), .advisory-table td:nth-child(6) { width: 90px; min-width: 75px; max-width: 110px; }
.advisory-table th:nth-child(7), .advisory-table td:nth-child(7) { width: 157px; min-width: 140px; max-width: 205px; }
.advisory-table th:nth-child(8), .advisory-table td:nth-child(8) { width: 97px; min-width: 85px; max-width: 125px; }
.advisory-detail-row > td { min-width: 0; width: 100%; }
.advisory-detail { min-width: 0; max-width: 100%; overflow-wrap: normal; word-break: normal; }
.advisory-detail a { overflow-wrap: normal; word-break: normal; }
.advisory-detail-links { margin-top: 10px; overflow-wrap: normal; word-break: normal; }
.advisory-detail-links a { color: var(--bc-blue); }
.park-list { margin: 0; padding-left: 16px; }
.park-list li { margin: 0 0 3px; }
.details-button { padding: 7px 10px; border: 1px solid var(--bc-blue); border-radius: 3px; background: #fff; color: var(--bc-blue); font: inherit; font-weight: 400; cursor: pointer; white-space: nowrap; }
.details-button:hover, .details-button:focus-visible { color: #fff; background: var(--bc-blue); }
.advisory-detail-row[hidden] { display: none !important; }
.advisory-detail { padding: 12px 14px; border-left: 4px solid var(--bc-yellow); background: #f7fafc; white-space: normal; }
.advisory-detail p { margin: 6px 0 0; color: var(--bc-muted); white-space: pre-wrap; overflow-wrap: normal; word-break: normal; }
.advisory-standard-messages { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--bc-border); }
.advisory-standard-messages p { margin-top: 4px; }
.rst-detail p { margin-top: 6px; }
html[data-theme="dark"] .metric, html[data-theme="dark"] .advisory-detail { background: #142238; }
html[data-theme="dark"] th { background: #013366; }
html[data-theme="dark"] tbody tr:hover { background: #172a40; }
html[data-theme="dark"] h2 { color: #f2f6ff; }
html[data-theme="dark"] .data-source-notice { color: #cfe3ff; border-left-color: #4fa3ff; }
html[data-theme="dark"] .metric .value { color: #cfe3ff; }
html[data-theme="dark"] .data-table-export, html[data-theme="dark"] .data-table-clear { color: #8ec5ff; border-color: #8ec5ff; }
html[data-theme="dark"] .status-groups-toggle { color: #8ec5ff; border-color: #8ec5ff; }
html[data-theme="dark"] .status-groups-toggle:hover, html[data-theme="dark"] .status-groups-toggle:focus-visible { color: #fff; border-color: var(--bc-blue-dark); }
html[data-theme="dark"] .data-table-clear { border-color: transparent; }
html[data-theme="dark"] .tab-row { border-bottom-color: #4fa3ff; }
html[data-theme="dark"] .tab-button:not(.active) { background: #172a40; color: #cfe3ff; }
html[data-theme="dark"] .details-button { border-color: #8ec5ff; }
html[data-theme="dark"] .details-button:hover, html[data-theme="dark"] .details-button:focus-visible { color: #fff; background: var(--bc-blue); border-color: var(--bc-blue); }
html[data-theme="dark"] .pill.open { color: #fff; background: #2e7d32; border-color: #2e7d32; }
html[data-theme="dark"] .pill.closure { color: #fff; background: #b3261e; border-color: #b3261e; }
html[data-theme="dark"] .pill.warn { color: #fff; background: #a66b00; border-color: #a66b00; }
html[data-theme="dark"] .pill.api-red { color: #fff; background: #b3261e; border-color: #b3261e; }
html[data-theme="dark"] .pill.api-yellow { color: #fff; background: #a66b00; border-color: #a66b00; }
html[data-theme="dark"] .pill.api-blue { color: #fff; background: #1769aa; border-color: #1769aa; }
.loading, .error { padding: 14px 0; }
.loading-spinner { display: inline-block; width: .9em; height: .9em; margin-right: 8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -.12em; animation: bcparks-spin .75s linear infinite; }
@keyframes bcparks-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loading-spinner { animation-duration: 1.5s; } }
.error { color: var(--bc-red); }

/* Internal tools portal homepage */
html.portal-home {
  --bcp-bg: #fff;
  --bcp-surface: #fff;
  --bcp-border: rgba(0, 0, 0, .12);
  --bcp-text: #212529;
  --bcp-muted: rgba(33, 37, 41, .7);
  --bcp-hero-top: rgba(0, 51, 102, .08);
  --bcp-hero-bottom: rgba(0, 51, 102, 0);
  --bcp-badge-bg: rgba(0, 51, 102, .1);
  --bcp-badge-text: #003366;
  --bcp-badge-border: rgba(0, 51, 102, .18);
}
html.portal-home[data-theme="dark"] {
  --bcp-bg: #0b1624;
  --bcp-surface: #0f2033;
  --bcp-border: rgba(255, 255, 255, .14);
  --bcp-text: rgba(255, 255, 255, .92);
  --bcp-muted: rgba(255, 255, 255, .7);
  --bcp-hero-top: rgba(255, 255, 255, .06);
  --bcp-hero-bottom: rgba(255, 255, 255, 0);
  --bcp-badge-bg: rgba(255, 255, 255, .12);
  --bcp-badge-text: rgba(255, 255, 255, .92);
  --bcp-badge-border: rgba(255, 255, 255, .18);
}
html.portal-home body { background: var(--bcp-bg); color: var(--bcp-text); }
html.portal-home main { max-width: none; padding: 0; }
html.portal-home .bcp-hero { background: linear-gradient(180deg, var(--bcp-hero-top), var(--bcp-hero-bottom)); }
html.portal-home .tool-card:hover { transform: translateY(-2px); transition: transform 120ms ease-in-out; }
html.portal-home .tool-meta { color: var(--bcp-muted) !important; font-size: .9rem; opacity: .85; }
html.portal-home .text-body-secondary { color: var(--bcp-muted) !important; }
html.portal-home .card { background: var(--bcp-surface); border-color: var(--bcp-border); }
html.portal-home .badge-soft { background: var(--bcp-badge-bg); color: var(--bcp-badge-text); border: 1px solid var(--bcp-badge-border); }
html.portal-home .form-control,
html.portal-home .form-select { background-color: var(--bcp-surface); color: var(--bcp-text); border-color: var(--bcp-border); }
html.portal-home .form-control::placeholder { color: rgba(33, 37, 41, .45); }
html.portal-home .form-control:focus,
html.portal-home .form-select:focus { background-color: var(--bcp-surface); color: var(--bcp-text); border-color: rgba(13, 110, 253, .55); box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25); }
html.portal-home h1,
html.portal-home h2,
html.portal-home h3,
html.portal-home h4,
html.portal-home h5,
html.portal-home h6 { font-weight: 400; }
html.portal-home h1 { font-weight: 400 !important; }
html.portal-home[data-theme="dark"] .alert { background-color: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .9); }
html.portal-home[data-theme="dark"] code { color: rgba(255, 255, 255, .92); }
html.portal-home[data-theme="dark"] .bcp-hero { border-bottom-color: rgba(255, 255, 255, .12) !important; }
html.portal-home[data-theme="dark"] .card h3,
html.portal-home[data-theme="dark"] .card .h5 { color: #f2f6ff !important; }
html.portal-home[data-theme="dark"] .card a,
html.portal-home[data-theme="dark"] .card a:visited { color: #cfe3ff; }
html.portal-home[data-theme="dark"] .tool-meta { color: rgba(230, 237, 246, .78) !important; }
html.portal-home[data-theme="dark"] .form-control,
html.portal-home[data-theme="dark"] .form-select { background: #0c1524; border-color: rgba(255, 255, 255, .18); color: #e6edf6; }
html.portal-home[data-theme="dark"] .form-control::placeholder { color: rgba(230, 237, 246, .55); }
html.portal-home[data-theme="dark"] .badge-soft { background: rgba(255, 255, 255, .08); color: #e6edf6; border-color: rgba(255, 255, 255, .18); }
html.portal-home[data-theme="dark"] #tagFilter { color: #e6edf6; }
html.portal-home[data-theme="dark"] #tagFilter option { color: #0b1220; }

.api-search-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--bc-page); color: var(--bc-ink); }
.api-search-page .api-search-main { width: 100%; max-width: 1280px; margin: 0 auto; padding: 24px; flex: 1 0 auto; }
.api-search-page > .site-header { position: static; padding: 0; }
.api-search-page .api-search-intro { margin-bottom: 16px; }
.api-search-page .api-search-intro h1 { margin: 0 0 4px; color: var(--bc-blue); font-size: 1.65rem; font-weight: 400; }
.api-search-page .api-search-intro p { margin: 0; color: var(--bc-muted); }
.api-search-page .wrap { padding: 0; }
.api-search-page .panel { border: 1px solid var(--bc-border); border-radius: 0; padding: 16px; background: var(--bc-surface); box-shadow: var(--bc-shadow); margin-bottom: 16px; }
.api-search-page .controls { color: var(--bc-ink); }
.api-search-page input[type="text"], .api-search-page button, .api-search-page .env-btn, .api-search-page .tab-btn { border-radius: 3px; border-color: var(--bc-border); background: var(--bc-surface); color: var(--bc-ink); }
.api-search-page input[type="text"] { min-width: 320px; }
.api-search-page button:hover, .api-search-page .env-btn:hover, .api-search-page .tab-btn:hover { background: var(--bc-blue-soft); }
.api-search-page button.primary, .api-search-page .env-btn.active { background: var(--bc-blue); border-color: var(--bc-blue); color: #fff; }
.api-search-page .meta, .api-search-page .env-label, .api-search-page .loading-msg, .api-search-page .cmp-toolbar label { color: var(--bc-muted); }
.api-search-page .tabs { border-bottom: 3px solid var(--bc-blue); }
.api-search-page .tab-btn { border-bottom: 1px solid var(--bc-border); }
.api-search-page .tab-btn.active { background: var(--bc-blue); color: #fff; }
.api-search-page .cmp-wrap { border-color: var(--bc-border); border-radius: 0; }
.api-search-page .cmp-table { background: var(--bc-surface); color: var(--bc-ink); }
.api-search-page .cmp-table th { background: var(--bc-blue); color: #fff; }
.api-search-page .cmp-table td { border-color: var(--bc-border); }
.api-search-page .cmp-table tr:hover td { background: var(--bc-blue-soft); }
.api-search-page .endpoint-link { color: var(--bc-blue); }
.api-search-page .empty-endpoints { color: var(--bc-ink); background: var(--bc-blue-soft); border-color: var(--bc-border); }
.api-search-page .footer { flex: 0 0 auto; }
.footer { margin-top: 24px; background: #013366; color: #fff; border-top: 3px solid #f8ba47; }
.dashboard-page { min-height: 100vh; display: flex; flex-direction: column; }
.dashboard-page > main { flex: 1 0 auto; }
.footer .navbar { padding: 10px 0; }
.footer .container { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; max-width: 1280px; padding: 0 24px; }
.footer .navbar-nav { display: flex; flex-direction: row; justify-content: center; gap: 4px 14px; margin: 0; padding: 0; list-style: none; }
.footer .nav-link, .footer .navbar-text { color: #fff; font-size: .82rem; }
.footer .nav-link { padding: 2px 0; text-decoration: none; }
.footer .nav-link:hover, .footer .nav-link:focus-visible { text-decoration: underline; text-underline-offset: 2px; }
.footer .nav-link:hover, .footer .nav-link:focus-visible { color: #f8ba47; }
.dashboard-intro { margin-bottom: 18px; }
.dashboard-intro h1 { color: var(--bc-blue); font-size: 1.8rem; font-weight: 400; }
html[data-theme="dark"] .dashboard-intro h1 { color: var(--bc-ink); }
.dashboard-intro p { margin: 0; color: var(--bc-muted); }
.history-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; }
.history-controls label { display: flex; flex-direction: column; gap: 4px; color: var(--bc-muted); font-size: .86rem; }
.history-controls select { min-width: 220px; padding: 8px 9px; border: 1px solid var(--bc-border); border-radius: 3px; background: var(--bc-surface); color: var(--bc-ink); font: inherit; }
.history-status-filter { flex: 1 1 100%; min-width: 0; margin: 0; padding: 0; border: 0; }
.history-status-filter legend { margin-bottom: 4px; color: var(--bc-muted); font-size: .86rem; }
.history-status-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px 10px; max-width: 100%; }
.history-controls .history-status-option { display: flex; flex-direction: row; align-items: center; min-width: 0; gap: 6px; padding: 6px 8px; border: 1px solid var(--bc-border); border-radius: 3px; color: var(--bc-ink); font-size: .86rem; line-height: 1.25; }
.history-controls .history-status-option.history-status-group { border-color: var(--bc-blue); background: var(--bc-blue-soft); font-weight: 700; }
.status-filter-kind { display: inline-block; margin-right: 5px; color: var(--bc-blue); font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.history-status-option input { flex: 0 0 auto; margin: 0; }
.status-filter-swatch { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; }
.history-status-option input { accent-color: var(--bc-blue); }
.history-note { margin: 14px 0 0; color: var(--bc-muted); font-size: .86rem; }
.history-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0; }
.history-metric { padding: 12px; border-left: 4px solid var(--bc-yellow); background: var(--bc-blue-soft); }
.history-metric span { display: block; color: var(--bc-muted); font-size: .82rem; }
.history-metric strong { display: block; margin-top: 2px; color: var(--bc-blue); font-size: 1.35rem; }
.chart-wrap { width: 100%; overflow-x: auto; }
.chart-wrap .chart-export { display: block; margin: 0 0 8px auto; }
#parkChart, #rstChart { display: block; width: 100%; min-width: 680px; height: auto; }
#parkChart text, #rstChart text { fill: var(--bc-muted); font: 10px Arial, Helvetica, sans-serif; }
#parkChart .axis-label, #rstChart .axis-label { fill: var(--bc-ink); font-size: 11px; font-weight: 700; }
#parkChart .grid-line, #rstChart .grid-line { stroke: var(--bc-border); stroke-width: 1; }
#parkChart .grid-line.major, #rstChart .grid-line.major { stroke-width: 1.5; }
#parkChart .series-line, #rstChart .series-line { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
#parkChart .series-point, #rstChart .series-point { stroke: var(--bc-surface); stroke-width: 2; }
.history-chart-tooltip { position: fixed; z-index: 20; max-width: 280px; padding: 7px 9px; border: 1px solid var(--bc-border); border-radius: 3px; background: var(--bc-surface); color: var(--bc-ink); box-shadow: 0 3px 10px rgb(0 0 0 / 18%); font-size: .82rem; pointer-events: none; }
.history-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; color: var(--bc-muted); font-size: .86rem; }
.history-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch { width: 12px; height: 12px; border-radius: 50%; }
.history-table-wrap { overflow-x: auto; }
.history-table { min-width: 560px; }
.history-table th:first-child, .history-table td:first-child { min-width: 92px; white-space: nowrap; }
#parkChart text, #rstChart text { white-space: nowrap; }
.history-tabs { margin-bottom: 18px; }
@media (max-width: 700px) { .footer .container { align-items: center; flex-direction: column; padding: 10px 12px; gap: 8px; } .footer .navbar-nav { flex-wrap: wrap; justify-content: center; } }
html[data-theme="dark"] .api-search-page .api-search-intro h1 { color: #f2f6ff; }
html[data-theme="dark"] .api-search-page .endpoint-link { color: #cfe3ff; }

@media (max-width: 700px) { main { padding: 16px 12px; } .site-header .header-inner { min-height: 64px; padding: 0 12px; gap: 9px; } .portal-brand img { height: 58px; max-width: 108px; } .portal-title { font-size: 1rem; white-space: normal; } .header-actions { margin-left: auto; } .staff-portal { font-size: .84rem; } .site-nav { padding-inline: 12px; } .theme-toggle { flex: 0 1 auto; text-align: center; } .card, .view-pane { padding: 14px; } .tab-row { margin: -14px -14px 14px; } th, td { padding: 3px 8px; font-size: .86rem; } .data-table-enhanced { display: block; } .data-table-enhanced .data-table-controls, .data-table-enhanced .data-table-summary { margin-bottom: 8px; } .view-pane.active#combinedView > .card { display: block; } .view-pane.active#combinedView > .card > #combinedTableWrap { display: block; } .history-metrics { grid-template-columns: 1fr; } .history-controls select { min-width: 0; width: 100%; } .history-controls label { flex: 1 1 180px; } }
@media print { body { background: #fff; color: #111; } .site-header { color: #111; background: #fff; border-top: 0; border-bottom: 1px solid #777; } .subtitle { color: #444; } .site-nav, .filter-row, .tab-row { display: none; } main { padding: 12pt 0; max-width: none; } .card, .view-pane { border: 0; box-shadow: none; padding: 0; } .view-pane:not(.active) { display: none; } th { color: #111; background: #e5e9ee; } .pill { background: #fff !important; } }
