/* v15 - ONE LEFT CONTROL PANEL (replaces sward_layout_fix.css) */
:root { --swd-top: 40px; --swd-foot: 18px; --swd-left: 300px; }
body:has(.tab-pane.active .swd-shell) { overflow: hidden !important; }
.swd-shell { --_sidebar-width: var(--swd-left) !important;
  height: calc(100vh - var(--swd-top)) !important; max-height: calc(100vh - var(--swd-top)) !important; min-height: 0 !important; }
.swd-shell > .main { height: 100% !important; min-height: 0 !important; overflow-y: auto !important; overflow-x: hidden !important;
  padding: 0 8px calc(var(--swd-foot) + 6px) !important; }
.swd-shell > .main > .nav-hidden, .swd-shell .nav.nav-hidden { display: none !important; }
#ctx_bar { position: sticky !important; top: 0 !important; z-index: 30; margin: 0 -8px 5px !important; }
.swd-shell > .sidebar { height: 100% !important; max-height: none !important; border-left: 0 !important; border-right: 0 !important;
  box-shadow: 4px 0 14px rgba(16, 32, 48, .14) !important; }
.swd-shell > .sidebar > .sidebar-content { height: 100% !important; overflow-y: auto !important; padding: 6px 7px 0 !important; gap: 4px !important; }
.swd-shell > .collapse-toggle { background: var(--swd-primary, #1F6B45) !important; color: #fff !important;
  border-radius: 0 8px 8px 0 !important; top: 8px !important; }
.swd-steps { display: flex; flex-direction: column; gap: 2px; padding: 4px; margin-bottom: 4px; border-radius: 8px;
  background: var(--swd-navy-2); border: 1px solid rgba(255, 255, 255, .06); }
.swd-steps-head { display: flex; align-items: center; gap: 4px; padding: 1px 4px 3px; font-size: 8px; font-weight: 800;
  letter-spacing: .8px; text-transform: uppercase; color: var(--swd-sb-muted); }
.swd-step { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 16px 22px 1fr;
  align-items: center; gap: 6px; width: 100%; padding: 3px 6px; border-radius: 6px; color: var(--swd-sb-text); position: relative; transition: background .12s; }
.swd-step:hover { background: rgba(255, 255, 255, .06); }
.swd-step.active { background: var(--swd-accent); color: var(--swd-navy); }
.swd-step.active::after { content: ""; position: absolute; right: -9px; top: 50%; transform: translateY(-50%);
  border: 6px solid transparent; border-left-color: var(--swd-accent); }
.swd-step-num { font-size: 8.5px; font-weight: 800; opacity: .7; }
.swd-step-ico { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: rgba(255, 255, 255, .08); font-size: 10px; }
.swd-step.active .swd-step-ico { background: rgba(16, 41, 27, .18); }
.swd-step-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.swd-step-name { font-size: 10px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swd-step-sub { font-size: 7.5px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swd-footnote { display: none !important; }
.swd-shell::after {
  content: "\26A0  SWaRD results are modelled estimates on an ~5 km monthly grid, intended for regional planning and prioritisation. Modelled river water and groundwater do not confirm physical access, abstraction feasibility, water quality or legal rights. Verify locally before site-specific decisions.";
  position: fixed; bottom: 0; z-index: 40; left: var(--swd-left); right: 0; height: var(--swd-foot);
  display: flex; align-items: center; padding: 0 10px; box-sizing: border-box;
  background: #FFF8EC; border-top: 1px solid #F3DFB8; color: #6B5523;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif; font-size: 8.5px; line-height: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.swd-shell.sidebar-collapsed::after { left: 0; }
@media (max-width: 1150px) {
  body:has(.tab-pane.active .swd-shell) { overflow: auto !important; }
  .swd-shell, .swd-shell > .main { height: auto !important; max-height: none !important; overflow: visible !important; }
  .swd-shell::after { left: 0; white-space: normal; height: auto; padding: 3px 10px; } }
