/* Honed Signal theme kit — shared toggle styling + color-scheme.
   Page themes themselves live in each page's own CSS variable blocks
   (see THEME-KIT.md). This file only styles the System/Light/Dark
   segmented control and pins color-scheme to the resolved theme.
   The control is a fixed navy pill in both themes (same treatment as
   the reports' .hs-util bar): #F5F5F5 on #161C28, selected button
   #F5F5F5 background with #0B0E14 text — AA in both themes by
   construction, independent of the page theme. */

html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }

.hs-theme-switch {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.hs-theme-seg {
  display: inline-flex;
  background: #161c28;
  border: 1px solid #3a4356;
  border-radius: 999px;
  overflow: hidden;
}
.hs-theme-seg button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #c7cdd8;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  min-height: 40px;
  padding: 8px 13px;
}
.hs-theme-seg button + button { border-left: 1px solid #3a4356; }
.hs-theme-seg button:hover { color: #ffffff; }
.hs-theme-seg button[aria-pressed="true"] { background: #f5f5f5; color: #0b0e14; }
.hs-theme-seg button:focus-visible {
  outline: 3px solid #2ec4b6;
  outline-offset: 2px;
  border-radius: 999px;
}

@media print {
  .hs-theme-switch { display: none !important; }
  html[data-theme="dark"], html[data-theme="light"] { color-scheme: light; }
}
