/* V6 public theme alignment: palette only, no operational colors or layout changes. */
:root {
  --nav:var(--sco-nav);--green-1:var(--sco-sidebar);--green-2:var(--sco-sidebar);
  --bg:var(--sco-page);--text:var(--sco-ink);--header-bg:var(--sco-nav);
  --sidebar-left-bg:var(--sco-sidebar);--sidebar-link-border:var(--sco-line);
  --sco-border:var(--sco-line);--sco-surface:var(--sco-card);
  --sco-muted:color-mix(in srgb,var(--sco-ink) 75%,transparent);
}
body:has(.header-banner){background:var(--sco-page);color:var(--sco-ink)}
body:has(.header-banner) .under-bar{background:var(--sco-nav)!important;border-bottom:2px solid var(--sco-accent)}
body:has(.header-banner) .under-bar .tab-link,
body:has(.header-banner) .under-bar .tab-link:visited{color:#fff!important}
body:has(.header-banner) .under-bar .tab-link:hover,
body:has(.header-banner) .under-bar .tab-link:focus-visible{background:color-mix(in srgb,var(--sco-accent) 45%,transparent)!important;color:#fff!important}
body:has(.header-banner) .under-bar .tab-link.active{background:var(--sco-accent)!important;color:#fff!important;border-bottom:2px solid color-mix(in srgb,var(--sco-accent) 60%,#fff)!important}
body:has(.header-banner) :is(.left-sidebar,.right-sidebar){background:var(--sco-sidebar)!important;color:#fff!important}
body:has(.header-banner) :is(.left-sidebar,.right-sidebar) :is(a,h3){color:#fff!important}
body:has(.header-banner) :is(.left-sidebar,.right-sidebar) a{border-color:var(--sco-line)!important;background:rgba(255,255,255,.07)}
body:has(.header-banner) :is(.left-sidebar,.right-sidebar) a:hover{background:rgba(255,255,255,.16)!important}
body:has(.header-banner) .main-content{background:var(--sco-page);color:var(--sco-ink)}
body:has(.header-banner) .main-content :is(.fires-section,.sr-section,.ar-section,.rx-section,.tr-section){background:var(--sco-card);border-color:var(--sco-line)}
body:has(.header-banner) .main-content :is(.fires-table,.sr-table,.ar-table,.rx-table,.tr-table) thead th{background:color-mix(in srgb,var(--sco-nav) 13%,var(--sco-card));color:var(--sco-ink)}
body:has(.header-banner) .main-content .welcome .datetime{color:var(--sco-muted)}
html[data-scofmp-theme="dark"] body:has(.header-banner) .main-content :is(.fires-table,.sr-table,.ar-table,.rx-table,.tr-table) :is(td,th){color:var(--sco-ink)}
/* Leave maps, preparedness levels, fire danger, and status badges unchanged. */

/* Phase 7: Public sidebars follow seasonal navigation instead of independent green. */
body:has(.header-banner) :is(.left-sidebar,.right-sidebar) {
  background:color-mix(in srgb,var(--sco-nav) 78%,#242321)!important;
  color:#f8f2e9!important;
}
body:has(.header-banner) :is(.left-sidebar,.right-sidebar) :is(a,h3){color:#f8f2e9!important}
body:has(.header-banner) :is(.left-sidebar,.right-sidebar) a {
  background:color-mix(in srgb,var(--sco-nav) 70%,#ffffff 12%)!important;
  border-color:color-mix(in srgb,var(--sco-accent) 65%,#ffffff 18%)!important;
}
body:has(.header-banner) :is(.left-sidebar,.right-sidebar) a:hover,
body:has(.header-banner) :is(.left-sidebar,.right-sidebar) a:focus-visible {
  background:color-mix(in srgb,var(--sco-accent) 40%,var(--sco-nav))!important;
}
body:has(.header-banner) :is(.left-sidebar,.right-sidebar) :is(h3,.sidebar-title) {
  border-color:color-mix(in srgb,var(--sco-accent) 70%,transparent)!important;
}
html[data-scofmp-theme="dark"] body:has(.header-banner) :is(.left-sidebar,.right-sidebar) {
  background:color-mix(in srgb,var(--sco-nav) 28%,#1b1b1c)!important;
}
html[data-scofmp-theme="dark"] body:has(.header-banner) :is(.left-sidebar,.right-sidebar) a {
  background:color-mix(in srgb,var(--sco-nav) 34%,#303032)!important;
  border-color:color-mix(in srgb,var(--sco-accent) 52%,#444444)!important;
}

/* Phase 8: subtle, readable sidebar polish. Theme variables remain the source. */
body:has(.header-banner) :is(.left-sidebar,.right-sidebar) :is(h2,h3) {
  font-size:.79rem;
  letter-spacing:.065em;
  line-height:1.35;
  margin-bottom:10px;
  padding-bottom:8px;
}
body:has(.header-banner) :is(.left-sidebar,.right-sidebar) ul {gap:5px}
body:has(.header-banner) :is(.left-sidebar,.right-sidebar) a {
  padding:9px 11px;
  line-height:1.42;
  background:color-mix(in srgb,var(--sco-nav) 86%,#ffffff 5%)!important;
  border-color:color-mix(in srgb,var(--sco-accent) 42%,var(--sco-nav))!important;
}
body:has(.header-banner) :is(.left-sidebar,.right-sidebar) a:hover,
body:has(.header-banner) :is(.left-sidebar,.right-sidebar) a:focus-visible {
  background:color-mix(in srgb,var(--sco-accent) 32%,var(--sco-nav))!important;
  border-color:var(--sco-accent)!important;
}
body:has(.header-banner) :is(.left-sidebar,.right-sidebar) a:focus-visible {
  outline:2px solid var(--sco-accent);outline-offset:2px;
}
html[data-scofmp-theme="dark"] body:has(.header-banner) :is(.left-sidebar,.right-sidebar) a {
  background:color-mix(in srgb,var(--sco-nav) 22%,#282829)!important;
  border-color:color-mix(in srgb,var(--sco-accent) 38%,#343435)!important;
}
html[data-scofmp-theme="dark"] body:has(.header-banner) :is(.left-sidebar,.right-sidebar) a:hover,
html[data-scofmp-theme="dark"] body:has(.header-banner) :is(.left-sidebar,.right-sidebar) a:focus-visible {
  background:color-mix(in srgb,var(--sco-accent) 28%,#282829)!important;
  border-color:var(--sco-accent)!important;
}
