/* ================================================================
   Sentinel Chicago — Custom Styles
   Built on Canonical Vanilla Framework (DO NOT EDIT vanilla-framework.min.css)
   ================================================================ */

/* === Brand Variables === */
:root {
    --sentinel-navy: #1a1a2e;
    --sentinel-navy-light: #252545;
    --sentinel-navy-mid: #1e1e3a;
    --sentinel-accent: #a0c4ff;
    --sentinel-accent-hover: #c0d8ff;
    --sentinel-bg: #f8f9fa;
    --sentinel-bg-alt: #e9ecef;
    --sentinel-text: #333333;
    --sentinel-text-secondary: #6c757d;
    --sentinel-text-on-dark: #d0d0e0;
    --sentinel-border: #dee2e6;
    --sentinel-danger: #dc3545;
    --sentinel-warning: #ffc107;
    --sentinel-info: #0d6efd;
    --sentinel-success: #28a745;
}

/* === Leaflet Protection ===
   Vanilla Framework sets global img/table styles that break Leaflet */
.leaflet-container img {
    max-width: none !important;
    max-height: none !important;
}
.leaflet-container {
    font-family: inherit;
    font-size: 14px;
}

/* ================================================================
   APP LAYOUT
   ================================================================ */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.sentinel-app {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
}

.sentinel-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.sentinel-content__row {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

/* ================================================================
   HEADER BAR
   ================================================================ */

.sentinel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 20px;
    background: #fff;
    color: var(--sentinel-text);
    border-bottom: 1px solid var(--sentinel-border);
    flex-shrink: 0;
    z-index: 450;
    gap: 16px;
}

.sentinel-header__context {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.sentinel-header__program-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--sentinel-navy);
    white-space: nowrap;
}

.sentinel-header__divider {
    width: 1px;
    height: 20px;
    background: var(--sentinel-border);
    flex-shrink: 0;
}

.sentinel-header__tagline {
    font-size: 13px;
    color: var(--sentinel-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sentinel-header__actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.sentinel-header__brief-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none !important;
    padding: 10px 22px;
    background: var(--sentinel-success);
    border: none;
    border-radius: 0;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.sentinel-header__brief-link:visited,
.sentinel-header__brief-link:hover,
.sentinel-header__brief-link:active,
.sentinel-header__brief-link:focus {
    color: #fff !important;
    text-decoration: none !important;
}

.sentinel-header__brief-link:hover {
    background: #218838;
}

/* Header inline stats (dashboard/explore modes) */
.sentinel-header__stat {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 0 12px;
    border-left: 1px solid var(--sentinel-border);
    white-space: nowrap;
}

.sentinel-header__stat:first-child {
    border-left: none;
}

.sentinel-header__stat-value {
    font-size: 17px;
    font-weight: 700;
    color: var(--sentinel-navy);
}

.sentinel-header__stat-label {
    font-size: 12px;
    color: var(--sentinel-text-secondary);
}

.sentinel-header__stat-value:only-child {
    font-size: 13px;
    font-weight: 400;
    color: var(--sentinel-text-secondary);
    font-style: italic;
}

/* ================================================================
   NAVIGATION RAIL
   ================================================================ */

.sentinel-rail {
    width: 200px;
    background: var(--sentinel-navy);
    color: var(--sentinel-text-on-dark);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 500;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sentinel-rail__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--sentinel-accent);
    padding: 0 16px;
}

.sentinel-rail__logo-text {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
}

.sentinel-rail__items {
    list-style: none;
    padding: 8px 0;
    margin: 0;
    flex: 1;
}

.sentinel-rail__item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 9px 16px;
    margin: 1px 0;
    cursor: pointer;
    border-left: 3px solid transparent;
    color: var(--sentinel-text-on-dark);
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
    user-select: none;
}

.sentinel-rail__item:hover {
    background: var(--sentinel-navy-light);
    color: #fff;
}

.sentinel-rail__item.is-active {
    background: var(--sentinel-navy-light);
    border-left-color: var(--sentinel-accent);
    color: #fff;
}

.sentinel-rail__label {
    font-size: 13px;
    line-height: 1.3;
    letter-spacing: 0.2px;
    opacity: 0.85;
}

.sentinel-rail__item.is-active .sentinel-rail__label {
    opacity: 1;
    font-weight: 600;
}

.sentinel-rail__item svg {
    flex-shrink: 0;
}

.sentinel-rail__divider {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    padding: 14px 19px 4px;
    list-style: none;
}

.sentinel-rail__footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 0;
}

.sentinel-rail__version {
    display: block;
    text-align: center;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.55);
    padding: 4px 16px 6px;
    letter-spacing: 0.5px;
}

a.sentinel-rail__item,
a.sentinel-rail__item:visited {
    color: var(--sentinel-text-on-dark);
}

a.sentinel-rail__item:hover {
    color: #fff;
}

/* ================================================================
   MOBILE BOTTOM TABS (hidden on desktop)
   ================================================================ */

.sentinel-tabs {
    display: none;
}
/* ================================================================
   CONTEXT SIDEBAR
   ================================================================ */

.sentinel-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--sentinel-bg);
    border-right: 1px solid var(--sentinel-border);
    overflow: hidden;
    z-index: 400;
    display: flex;
    flex-direction: column;
}

.sentinel-sidebar .p-panel {
    display: block;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-y: auto;
}

.sentinel-sidebar__header {
    position: static;
    background: var(--sentinel-bg);
    border-bottom: 1px solid var(--sentinel-border);
    padding: 12px 16px !important;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
}

.sentinel-sidebar__header .p-panel__title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sentinel-navy);
    margin: 0;
    padding: 0;
}

.sentinel-sidebar__handle {
    display: none;
}

.sentinel-sidebar__close {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--sentinel-text-secondary);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.sentinel-sidebar__content {
    padding: 0 !important;
}

/* === Mode Sections === */

.sentinel-mode {
    padding: 0;
}

.sentinel-mode__intro {
    padding: 12px 16px;
    font-size: 12px;
    color: var(--sentinel-text-secondary);
    line-height: 1.5;
    border-bottom: 1px solid var(--sentinel-border);
    margin: 0;
}

.sentinel-mode__note {
    font-size: 12px;
    color: var(--sentinel-text-secondary);
    line-height: 1.4;
    padding: 0;
    margin: 0;
}
.sentinel-mode__note a {
    color: var(--sentinel-accent);
}

/* === Sidebar Sections === */

.sentinel-section {
    padding: 12px 16px;
    border-bottom: 1px solid var(--sentinel-border);
}

.sentinel-section__title {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #495057;
    margin-bottom: 8px !important;
    padding: 0;
}

.sentinel-section--highlight {
    background: #fffbeb;
    border-left: 3px solid var(--sentinel-warning);
}

/* === Collapsible Sections === */

.sentinel-collapsible__header {
    cursor: pointer;
    user-select: none;
}

.sentinel-collapsible__header:hover {
    color: var(--sentinel-navy);
}

.sentinel-collapsible__content {
    display: none;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--sentinel-text);
}

.sentinel-collapsible__content.open {
    display: block;
}

.sentinel-collapsible__content a {
    color: var(--sentinel-info);
}

/* === Stats === */

.sentinel-stat {
    margin-bottom: 10px;
}

.sentinel-stat__number {
    font-size: 20px;
    font-weight: 700;
    color: var(--sentinel-navy);
    display: block;
    line-height: 1.2;
}

.sentinel-stat__label {
    font-size: 11px;
    color: var(--sentinel-text-secondary);
    line-height: 1.3;
}

/* === Active Layer Indicator === */

.sentinel-active-layer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.sentinel-active-layer__label {
    color: var(--sentinel-text-secondary);
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.sentinel-active-layer__value {
    color: var(--sentinel-navy);
    font-weight: 600;
}

/* === Legend === */

#legend-content,
#tox-legend-content,
#zoo-legend-content {
    font-size: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
}

.legend-color {
    width: 20px;
    height: 12px;
    margin-right: 8px;
    border: 1px solid #ccc;
    flex-shrink: 0;
}

.legend-label {
    color: #555;
    font-size: 11px;
}

.legend-description {
    color: #777;
    font-size: 11px;
    margin-top: 6px;
    font-style: italic;
}

/* === Steps List === */

.sentinel-steps .p-list__item {
    font-size: 13px;
    line-height: 1.5;
    padding: 6px 0;
}

.sentinel-steps a {
    color: var(--sentinel-info);
    font-weight: 600;
}

/* === Comparison Table === */

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.comparison-table th,
.comparison-table td {
    padding: 5px 6px;
    border-bottom: 1px solid var(--sentinel-border);
    text-align: left;
}

.comparison-table th {
    background: var(--sentinel-bg-alt);
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.comparison-table tr.highlight-row {
    background: #fff3cd;
    font-weight: 600;
}

/* === Transport Gap Stats === */

.transport-stat {
    margin-bottom: 8px;
}

.transport-stat .sentinel-stat__number {
    font-size: 16px;
}

/* === Attribution === */

.sentinel-attribution {
    padding: 12px 16px;
    font-size: 11px;
    color: var(--sentinel-text-secondary);
    text-align: center;
}

/* === Facility List === */

.sentinel-facility {
    padding: 8px 0;
    border-bottom: 1px solid var(--sentinel-border);
}

.sentinel-facility:last-child {
    border-bottom: none;
}

.sentinel-facility__name {
    font-weight: 600;
    font-size: 13px;
    color: var(--sentinel-text);
}

.sentinel-facility__detail {
    font-size: 11px;
    color: var(--sentinel-text-secondary);
    margin-top: 2px;
}

/* === Vanilla Form Override ===
   Tighten spacing for sidebar radio/checkbox groups */

.sentinel-section .p-radio,
.sentinel-section .p-checkbox {
    padding-top: 2px;
    padding-bottom: 2px;
}

.sentinel-section .p-radio__label,
.sentinel-section .p-checkbox__label {
    font-size: 13px;
}

.sentinel-section .p-form__group {
    margin-bottom: 0;
    padding: 0;
}

/* === Vanilla List Override ===
   Tighten spacing for sidebar lists */

.sentinel-section .p-list--divided .p-list__item {
    padding: 6px 0;
    font-size: 12px;
}

/* ================================================================
   MAIN (MAP AREA)
   ================================================================ */

.sentinel-main {
    flex: 1;
    position: relative;
    min-width: 0;
    overflow: hidden;
}

#map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ================================================================
   DASHBOARD OVERLAY
   ================================================================ */

.sentinel-dashboard-overlay {
    position: absolute;
    top: 4.5rem;
    left: 1rem;
    right: 1rem;
    z-index: 300;
    pointer-events: none;
}

.sentinel-dashboard-overlay[hidden] {
    display: none;
}

.sentinel-dashboard-overlay__grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sentinel-widget {
    flex: 1;
    min-width: 200px;
    max-width: 320px;
    pointer-events: auto;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.93) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    padding: 14px 16px !important;
    margin: 0 !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sentinel-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.sentinel-widget__title {
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--sentinel-navy) !important;
    margin-bottom: 10px !important;
    padding: 0;
}

.sentinel-widget__metrics {
    display: flex;
    gap: 16px;
}

.sentinel-widget__metric {
    flex: 1;
}

.sentinel-widget__number {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--sentinel-navy);
    line-height: 1.1;
}

.sentinel-widget__label {
    display: block;
    font-size: 10px;
    color: var(--sentinel-text-secondary);
    margin-top: 2px;
    line-height: 1.3;
}

/* --- Research & Analysis section --- */

.sentinel-dashboard-overlay__section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin: 8px 0 4px;
    padding: 0;
    pointer-events: none;
}

.sentinel-research-card {
    pointer-events: auto;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px dashed rgba(0, 0, 0, 0.15) !important;
    padding: 14px 16px !important;
    margin: 0 !important;
    text-decoration: none !important;
    color: inherit !important;
    min-width: 200px;
    max-width: 420px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sentinel-research-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    text-decoration: none !important;
    color: inherit !important;
}

.sentinel-research-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sentinel-research-card__title {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--sentinel-navy);
}

.sentinel-research-card__icon {
    flex-shrink: 0;
    color: var(--sentinel-text-secondary);
}

.sentinel-research-card__desc {
    font-size: 12px;
    color: var(--sentinel-text-secondary);
    margin: 6px 0 0 !important;
    line-height: 1.4;
}

/* ================================================================
   DETAIL PANEL
   ================================================================ */

.sentinel-detail {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 400px;
    z-index: 600;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    pointer-events: none;
    background: #fff;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sentinel-detail.is-visible {
    transform: translateX(0);
    pointer-events: auto;
}

.sentinel-detail .p-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 0;
}

.sentinel-detail__header {
    background: var(--sentinel-navy) !important;
    color: var(--sentinel-text-on-dark);
    padding: 14px 16px !important;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sentinel-detail__header .p-panel__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin: 0;
    padding: 0;
}

.sentinel-detail__close {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.8;
    transition: opacity 0.15s ease, color 0.15s ease;
}

.sentinel-detail__close:hover {
    color: #ff6b6b;
    opacity: 1;
}

.sentinel-detail .p-panel__content {
    flex: 1;
    overflow-y: auto;
    padding: 16px !important;
}

/* === Detail Sections === */

.detail-section {
    margin-bottom: 16px;
}

.detail-section h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #495057;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--sentinel-border);
}

.detail-table {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
}

.detail-table td {
    padding: 3px 0;
    vertical-align: top;
}

.detail-table td:first-child {
    color: var(--sentinel-text-secondary);
    padding-right: 12px;
    white-space: nowrap;
}

.detail-table td:last-child {
    font-weight: 600;
    text-align: right;
}

/* === Tier Badges === */

.tier-badge {
    display: inline-block;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 600;
}

.tier-high,
.tier-high-risk {
    background: #f8d7da;
    color: #842029;
}

.tier-elevated {
    background: #fff3cd;
    color: #664d03;
}

.tier-moderate {
    background: #cfe2ff;
    color: #084298;
}

.tier-lower {
    background: #d1e7dd;
    color: #0f5132;
}

/* ================================================================
   LOADING OVERLAY
   ================================================================ */

#loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--sentinel-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#loading-overlay.hidden {
    display: none;
}

.sentinel-loading p {
    font-size: 16px;
    color: var(--sentinel-text-on-dark);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ================================================================
   LEAFLET OVERRIDES
   ================================================================ */

.leaflet-tooltip.community-tooltip {
    background: rgba(26, 26, 46, 0.92);
    color: #fff;
    border: none;
    padding: 6px 10px;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.leaflet-tooltip.community-tooltip::before {
    border: none;
}

/* ================================================================
   TOP RISK AREA LIST
   ================================================================ */

.sentinel-risk-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 12px;
    border-bottom: 1px solid var(--sentinel-border);
}

.sentinel-risk-item:last-child {
    border-bottom: none;
}

.sentinel-risk-item__name {
    color: var(--sentinel-text);
    font-weight: 500;
}

.sentinel-risk-item__score {
    font-weight: 700;
    font-size: 13px;
}

/* ================================================================
   ABOUT / BRIEF PAGE — SHARED STYLES
   (Extracted from about.html inline styles for reuse across pages)
   ================================================================ */

.about-header {
    background: var(--sentinel-navy);
    color: #fff;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-header__logo {
    color: var(--sentinel-accent);
    flex-shrink: 0;
    position: relative;
    top: 4px;
}

.about-header h1 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
    color: #fff;
}

.about-header a {
    color: var(--sentinel-accent);
    text-decoration: none;
    font-size: 13px;
}

.about-header a:hover { text-decoration: underline; }

.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 24px 64px;
    line-height: 1.6;
    font-size: 14px;
    color: var(--sentinel-text);
}

.about-content h2 {
    font-size: 20px;
    margin-top: 36px;
    margin-bottom: 12px;
    color: var(--sentinel-navy);
    border-bottom: 2px solid var(--sentinel-border);
    padding-bottom: 6px;
}

.about-content h3 {
    font-size: 16px;
    margin-top: 24px;
    margin-bottom: 8px;
    color: var(--sentinel-text);
}

.about-content p { margin-bottom: 12px; }

.about-content ul, .about-content ol {
    margin-bottom: 12px;
    padding-left: 24px;
}

.about-content li { margin-bottom: 6px; }

.about-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: 14px;
}

.about-content table th,
.about-content table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--sentinel-border);
    text-align: left;
}

.about-content table th {
    background: var(--sentinel-bg);
    font-weight: 600;
}

.formula {
    background: var(--sentinel-bg);
    border: 1px solid var(--sentinel-border);
    padding: 12px 16px;
    font-family: monospace;
    font-size: 13px;
    margin: 12px 0;
    overflow-x: auto;
}

.back-link {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--sentinel-info);
    text-decoration: none;
}

.back-link:hover { text-decoration: underline; }

.about-footer {
    background: var(--sentinel-navy);
    color: var(--sentinel-text-on-dark);
    padding: 24px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.about-footer__text {
    text-align: center;
    margin: 0;
}

.about-footer a {
    color: var(--sentinel-accent);
    text-decoration: none;
}

/* ================================================================
   UNIT TOGGLE (km / mi)
   ================================================================ */

.sentinel-unit-toggle {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2px;
    cursor: pointer;
    margin: 8px auto;
    width: fit-content;
    user-select: none;
}

.sentinel-unit-toggle__option {
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.15s ease;
    line-height: 1.6;
}

.sentinel-unit-toggle__option.is-active {
    background: var(--sentinel-accent);
    color: #fff;
}

.sentinel-unit-toggle--mobile {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    background: rgba(255, 255, 255, 0.15);
}

/* ================================================================
   MOBILE RESPONSIVE
   ================================================================ */

@media (max-width: 768px) {

    /* Header adjustments for mobile */
    .sentinel-header {
        height: 48px;
        padding: 0 12px;
        gap: 8px;
    }

    .sentinel-header__tagline,
    .sentinel-header__divider {
        display: none;
    }

    .sentinel-header__stat {
        display: none;
    }

    .sentinel-header__brief-link {
        font-size: 12px;
        padding: 5px 10px;
    }

    /* Hide desktop rail */
    .sentinel-rail {
        display: none;
    }

    /* Show mobile bottom tabs */
    .sentinel-tabs {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 52px;
        background: var(--sentinel-navy);
        z-index: 700;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .sentinel-tabs__item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        height: 100%;
        background: none;
        border: none;
        color: var(--sentinel-text-on-dark);
        font-size: 9px;
        cursor: pointer;
        padding: 0;
        border-top: 2px solid transparent;
        transition: background 0.15s ease;
    }

    .sentinel-tabs__item.is-active {
        color: #fff;
        border-top-color: var(--sentinel-accent);
        background: var(--sentinel-navy-light);
    }

    /* Sidebar as bottom drawer */
    .sentinel-sidebar {
        position: fixed;
        bottom: 52px;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 55vh;
        border-right: none;
        border-top: none;
        border-radius: 12px 12px 0 0;
        transform: translateY(calc(100% - 24px));
        transition: transform 0.3s ease;
        z-index: 600;
        overflow: hidden;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
    }

    .sentinel-sidebar.is-open {
        transform: translateY(0);
    }

    .sentinel-sidebar__close {
        display: block;
    }

    /* Grab handle — visible on mobile as peek strip */
    .sentinel-sidebar__handle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        height: 24px;
        cursor: pointer;
        background: var(--sentinel-navy);
        border-radius: 12px 12px 0 0;
        flex-shrink: 0;
    }

    .sentinel-sidebar__handle-pill {
        width: 36px;
        height: 4px;
        border-radius: 2px;
        background: rgba(255, 255, 255, 0.4);
    }

    .sentinel-sidebar__handle:active .sentinel-sidebar__handle-pill {
        background: rgba(255, 255, 255, 0.7);
    }

    /* Detail panel full width */
    .sentinel-detail {
        width: 100%;
    }

    /* Dashboard widgets stack */
    .sentinel-dashboard-overlay {
        top: 4rem;
        left: 0.5rem;
        right: 0.5rem;
    }

    .sentinel-dashboard-overlay__grid {
        flex-direction: column;
    }

    .sentinel-widget {
        max-width: none;
    }

    .sentinel-research-card {
        max-width: none;
    }

    /* Map needs bottom padding for tabs */
    .sentinel-main {
        padding-bottom: 52px;
    }
}

/* ================================================================
   SMALL MOBILE
   ================================================================ */

@media (max-width: 480px) {
    .sentinel-widget__number {
        font-size: 18px;
    }

    .sentinel-widget__metrics {
        gap: 10px;
    }
}
