/* Board theme — opt-in via ?theme=board
   Every rule is scoped under html[data-theme="board"] so it
   cannot affect visitors who have not opted in. */

html[data-theme="board"] {
  --bg: #171c27;
  --panel: #1f2633;
  --panel2: #252f3e;
  --panel3: #252f3e;
  --line: #2c3648;
  --line2: #2c3648;
  --text: #c5cede;
  --dim: #a9b6cc;
  --faint: #8794ab;
  --accent: #2b63c9;
  --link: #8db4ff;  /* the accent is too dark to read as link text */
  --snow: #5b9bff;
  --warm: #e0b36a;
  --rain: #7fb8a3;
  --rain-deep: #4a7d6a;
  --bar: #35588f;
  --radius: 0;
  --radius-sm: 0;
  --shadow: none;
  --serif: "IBM Plex Mono", "Courier New", monospace;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
}

/* Remove wave/topo pattern from body */
html[data-theme="board"] body {
  background-image: none;
}

/* Top nav: dark panel with 3px blue top rule, edge to edge at every width.
   The nav lives inside <main> (capped width), so the band is painted with a
   border-image outset that bleeds 100vw past each side. Outset paint is
   ink overflow: it never creates a horizontal scrollbar, unlike 100vw
   widths or negative margins. Nav content stays aligned to the column. */
html[data-theme="board"] .topnav {
  border-top: 3px solid;
  border-bottom: 2px solid;
  border-image: linear-gradient(var(--accent) 0 3px, var(--panel) 0 calc(100% - 2px), var(--line) 0) fill 0 / 0 / 0 100vw;
  margin: -2.5rem 0 1.6rem;
  padding: 0.7rem 0;
}

@media (max-width: 700px) {
  html[data-theme="board"] .topnav {
    margin: -1.25rem 0 1.2rem;
    padding: 0.55rem 0;
  }
}

/* Taglines: 44ch is sized for the serif; in mono it wraps a one-liner
   ("...scored against real / gauges.") into a phone-width block on desktop. */
html[data-theme="board"] .tag {
  max-width: 62ch;
  text-wrap: pretty;
}

html[data-theme="board"] .brand {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: white;
}

html[data-theme="board"] .brand::after {
  content: none;
}

html[data-theme="board"] .topnav-links {
  font-family: var(--mono);
  font-size: 0.875rem;
}
/* phone: all five links fit on one line (mono is wide; "about" used to fall off the edge) */
@media (max-width: 700px) {
  html[data-theme="board"] .topnav-links {
    font-size: 0.75rem;
    gap: 0.75rem;
    width: 100%;
    justify-content: space-between;
    overflow-x: visible;
  }
}

html[data-theme="board"] .topnav-links a[aria-current="page"] {
  color: white;
  border-bottom-width: 3px;
  padding-bottom: 0.1rem;
}

/* Page headings use mono */
html[data-theme="board"] h1 {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0;
  font-size: 1.7rem;
}

@media (min-width: 701px) {
  html[data-theme="board"] h1 {
    font-size: 2rem;
  }
}

html[data-theme="board"] .rhero h1,
html[data-theme="board"] .rhero h2 {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0;
}

/* Mobile name in card list */
html[data-theme="board"] .mname {
  font-family: var(--mono);
}

/* Filter buttons / sort pills */
html[data-theme="board"] button.sort,
html[data-theme="board"] button.pfilter {
  font-family: var(--mono);
  font-size: 0.8rem;
  min-height: 2.5rem;
  border: 1px solid var(--line);
  padding: 0.3rem 0.5rem;
  border-bottom-width: 1px;
}

html[data-theme="board"] button.sort.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  border-bottom-color: var(--accent);
}

html[data-theme="board"] button.pfilter.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Pass badges keep their per-pass colors (style.css): Epic blue, Ikon
   orange, Indy red. That's how you read the table by pass at a glance. */
html[data-theme="board"] .pbadge {
  font-family: var(--mono);
  background: var(--panel2);
}

/* Width: fill the screen instead of a 64rem column. Prose keeps its own
   ch-based max-widths, so only tables, charts and grids get wider. */
html[data-theme="board"] main { max-width: none; }
@media (min-width: 701px) {
  html[data-theme="board"] body {
    padding-left: clamp(1.25rem, 3vw, 3rem);
    padding-right: clamp(1.25rem, 3vw, 3rem);
  }
}

/* 7-day snow bar strip */
html[data-theme="board"] .ss-bar-bot { background: #5b9bff; }
html[data-theme="board"] .ss-bar-top { border-color: rgba(91, 155, 255, 0.45); }
html[data-theme="board"] .ss-zeroline { background: #2f3a4e; }
html[data-theme="board"] .ss-sw.solid { background: #5b9bff; }
html[data-theme="board"] .ss-sw.light { border-color: rgba(91, 155, 255, 0.6); }

/* Day and temp labels */
html[data-theme="board"] .ss-day { color: var(--faint); }
html[data-theme="board"] .ss-temps { color: var(--faint); }

/* HRRR hourly bars */
html[data-theme="board"] .hbar.snow { background: var(--snow); }
html[data-theme="board"] .hk.snow { background: var(--snow); }

/* Panels: solid borders instead of dashed */
html[data-theme="board"] .card {
  border-style: solid;
  border-width: 2px;
  border-color: var(--line);
}

html[data-theme="board"] .rpanel {
  border-style: solid;
  border-width: 2px;
  border-color: var(--line);
}

html[data-theme="board"] .afd {
  border-style: solid;
  border-width: 1px;
  border-color: var(--line);
}

/* Remove corner tick marks */
html[data-theme="board"] .card::before,
html[data-theme="board"] .card::after,
html[data-theme="board"] .rpanel::before,
html[data-theme="board"] .rpanel::after,
html[data-theme="board"] .afd::before,
html[data-theme="board"] .afd::after {
  display: none;
}

/* Table panel */
html[data-theme="board"] .tablewrap {
  border-width: 2px;
}

/* Footer */
html[data-theme="board"] .sitefoot {
  border-top-style: solid;
  border-top-width: 2px;
}

/* alerts threshold picker: Board's accent is a mid blue, so the picked one gets white text */
html[data-theme="board"] .ar-amt button[aria-checked="true"] { color: #fff; }
