/* SIGMA MMMX V1.2.5.1 · visual polish only · no operational-model changes */
body.sigma-v1251 .info-grid{align-items:start!important}
body.sigma-v1251 .taf-panel,
body.sigma-v1251 .notam-panel{align-self:start!important;height:auto!important;min-height:0!important}

/* Corridor wording is now consistently an impact metric, not availability percentage. */
body.sigma-v1251 .v124-map-panel .corridor-card{text-align:left}

/* Mobile executive action: action remains primary, review time becomes secondary metadata. */
.v1251-action-meta{display:none}
@media(max-width:700px){
  body.sigma-v1251 .v124-action .v125-action-review{display:none!important}
  body.sigma-v1251 .v124-action h2{font-size:clamp(8px,2.55vw,11px)!important;line-height:1.17!important;margin:4px 0 0!important;font-weight:720!important}
  body.sigma-v1251 .v1251-action-meta{display:flex;align-items:baseline;gap:4px;margin-top:3px;color:#9eb2c5;white-space:nowrap}
  body.sigma-v1251 .v1251-action-meta span{font-size:4.6px;letter-spacing:.12em}
  body.sigma-v1251 .v1251-action-meta b{font-size:6.8px;color:#e9f3fb;font-variant-numeric:tabular-nums}
}

/* Modal/drawer context protection. Background navigation remains visible but inert. */
body.v1251-overlay-open .nav,
body.v1251-overlay-open main,
body.v1251-overlay-open .topbar{pointer-events:none!important}
body.v1251-overlay-open #settingsDrawer,
body.v1251-overlay-open #v124CapacityModal{pointer-events:auto!important}

/* Capacity detail modal: stable viewport, sticky title, internal scroll only. */
body.sigma-v1251 .v124-modal{overscroll-behavior:contain}
body.sigma-v1251 .v124-modal-card{overflow:auto!important;overscroll-behavior:contain!important}
body.sigma-v1251 .v124-modal-head{position:sticky;top:0;z-index:3;background:#0d2034;padding-bottom:10px}

/* Operational settings: desktop remains a drawer; mobile becomes near full-screen. */
body.sigma-v1251 #settingsDrawer{overscroll-behavior:contain}
body.sigma-v1251 #settingsDrawer .drawer-card{overflow-y:auto;overscroll-behavior:contain}
body.sigma-v1251 #settingsDrawer .drawer-head{position:sticky;top:-1px;z-index:4;background:#0a1728;padding-top:2px;padding-bottom:10px;margin-bottom:18px}
body.sigma-v1251 #settingsDrawer #saveSettings{position:sticky;bottom:10px;z-index:4;box-shadow:0 8px 24px rgba(0,0,0,.42)}
@media(max-width:700px){
  body.sigma-v1251 #settingsDrawer{justify-content:center!important;align-items:center!important;padding:8px!important}
  body.sigma-v1251 #settingsDrawer .drawer-card{width:100%!important;max-width:none!important;height:calc(100dvh - 16px)!important;max-height:calc(100dvh - 16px)!important;border:1px solid var(--line)!important;border-radius:18px!important;padding:18px 16px 22px!important;box-shadow:0 24px 70px rgba(0,0,0,.55)!important}
  body.sigma-v1251 #settingsDrawer .drawer-head{margin-left:-2px;margin-right:-2px}
  body.sigma-v1251 #settingsDrawer .drawer-card label{margin-top:15px!important}
  body.sigma-v1251 #settingsDrawer .drawer-card input{height:46px!important}
  body.sigma-v1251 #settingsDrawer #saveSettings{margin-top:22px!important}
  body.sigma-v1251 .v124-modal{padding:8px!important;align-items:center!important}
  body.sigma-v1251 .v124-modal-card{width:100%!important;max-width:none!important;max-height:calc(100dvh - 16px)!important;border-radius:18px!important}
}

/* Raw diagnostics: processed products remain readable; verbose JSON becomes a second-level disclosure. */
body.sigma-v1251 .v1251-json-details{margin-top:14px;border:1px solid rgba(160,193,224,.10);border-radius:12px;background:rgba(255,255,255,.008);overflow:hidden}
body.sigma-v1251 .v1251-json-details>summary{list-style:none;cursor:pointer;padding:10px 12px;color:#77d2f5;font-size:7px;letter-spacing:.12em;font-weight:760}
body.sigma-v1251 .v1251-json-details>summary::-webkit-details-marker{display:none}
body.sigma-v1251 .v1251-json-details>summary:before{content:'▶';font-size:6px;margin-right:7px}
body.sigma-v1251 .v1251-json-details[open]>summary:before{content:'▼'}
body.sigma-v1251 .v1251-json-details>#diagJson{margin:0!important;border-top:1px solid rgba(160,193,224,.08)}

/* Self-Audit methodology is documentation, not a primary live KPI: collapsed by default. */
body.sigma-v1251 .v1251-method-details{margin-top:12px;border-top:1px solid rgba(160,193,224,.08);padding-top:8px}
body.sigma-v1251 .v1251-method-details>summary{list-style:none;cursor:pointer;color:#5bc8f5;font-size:7px;letter-spacing:.12em;font-weight:760;padding:8px 0}
body.sigma-v1251 .v1251-method-details>summary::-webkit-details-marker{display:none}
body.sigma-v1251 .v1251-method-details>summary:before{content:'▶';font-size:6px;margin-right:7px}
body.sigma-v1251 .v1251-method-details[open]>summary:before{content:'▼'}
body.sigma-v1251 .v1251-method-details .v124-audit-method{margin-top:4px!important;border-top:0!important;padding-top:6px!important}

/* Prevent isolated 'h' in the timeline heading and retain compact readability. */
body.sigma-v1251 #forecastSection>.panel-head h2{white-space:normal}
body.sigma-v1251 #forecastSection>.panel-head h2{hyphens:none;word-break:normal}
@media(max-width:700px){
  body.sigma-v1251 #forecastSection>.panel-head h2{font-size:14px!important;letter-spacing:-.015em!important}
}

@media print{
  body.v1251-overlay-open{position:static!important;top:auto!important;width:auto!important}
  body.sigma-v1251 .v1251-json-details:not([open])>#diagJson,
  body.sigma-v1251 .v1251-method-details:not([open])>.v124-audit-method{display:none!important}
}
