@import url("https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@600;700;800&display=swap");

/* BoulderCAST hourly and 10-day forecast: currentwx.css + forecast.css +
   tenday.css in one file, hosted in /models/forecast/. Built by
   tools/build_forecast_css.py; edit those, not this one, and rebuild. */

/* BoulderCAST current conditions embed.
   Every rule is scoped to .bcwx so the WordPress theme is left alone,
   and common theme styles on buttons, selects and images are reset. */

.bcwx {
  --bcwx-red: #C41E3A;
  --bcwx-red-deep: #A0182F;
  --bcwx-blue: #1B6CA8;
  --bcwx-blue-deep: #134E7A;
  --bcwx-blue-wash: rgba(27, 108, 168, 0.12);
  --bcwx-ink: #16222E;
  --bcwx-muted: #56677A;
  --bcwx-line: #D5DEE7;
  --bcwx-control-line: #B4C1CE;  /* borders of menus and buttons, a step darker so they stand out on white */
  --bcwx-disabled: #7D8C9B;      /* a control that doesn't apply right now */
  --bcwx-track: #EBF0F5;
  --bcwx-surface: #FFFFFF;
  --bcwx-panel: #102030;
  --bcwx-stage: #0A1622;
  --bcwx-panel-text: #E9EFF5;
  --bcwx-panel-muted: #9DB0C2;
  --bcwx-premium: #F9C802;       /* from the BoulderCAST Premium logo */
  --bcwx-premium-deep: #E0B400;

  --bcwx-on-premium: #16222E;    /* text on yellow, same in both modes */
  --bcwx-fav-text: #8F6B00;      /* the Favorites title: logo yellow is too faint as text on white */

  max-width: 1100px;
  margin: 0 auto;
  color: var(--bcwx-ink);
  font-size: 16px;
  line-height: 1.5;
}

/* Dark mode, switched on by the WP Dark Mode plugin's marker on the html element.
   The plugin only darkens the page behind the embed, so the embed
   supplies its own dark colors. */
html[data-wp-dark-mode-active] .bcwx {
  --bcwx-blue: #4C9AD8;
  --bcwx-blue-deep: #8CC4F0;
  --bcwx-blue-wash: rgba(76, 154, 216, 0.18);
  --bcwx-ink: #E9EFF5;
  --bcwx-muted: #A3B3C2;
  --bcwx-line: #34414D;
  --bcwx-control-line: #475663;
  --bcwx-disabled: #687988;
  --bcwx-track: #26313B;
  --bcwx-surface: #1B242C;
  --bcwx-fav-text: #F9C802;
  color-scheme: dark;
}

.bcwx *,
.bcwx *::before,
.bcwx *::after {
  box-sizing: border-box;
}

/* Premium members: a yellow "PREMIUM" pill with a star beside the WordPress
   page title, as on Snowpack. It lives in the theme's heading, outside the
   embed, so it sets its own font and colors (and the script marks it for
   WP Dark Mode to leave alone). */
.bcwx-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-left: 14px;
  padding: 0.38em 1.05em 0.38em 0.85em;
  border-radius: 999px;
  background: #F9C802;
  color: #16222E;
  font-family: "Barlow Semi Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  text-shadow: none;
  text-transform: uppercase;
  vertical-align: 0.3em;
  white-space: nowrap;
}
.bcwx-title-badge svg { width: 1.05em; height: 1.05em; flex: none; fill: currentColor; }

/* WordPress's automatic formatting inserts line-break and paragraph tags into pasted
   HTML. The embed's own markup has no line breaks and gives every paragraph a "bcwx-"
   class, so the inserted ones are hidden or made layout-neutral.
   (Matching on "bcwx-" rather than "no class": WP Dark Mode adds its
   wp-dark-mode-ignore class to every element in the embed.) */
.bcwx br {
  display: none;
}

.bcwx p:not([class*="bcwx-"]) {
  display: contents;
}

/* ---------- Sections ---------- */

/* "~" rather than "+", so an inserted paragraph between sections can't drop the divider */
.bcwx .bcwx-section ~ .bcwx-section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--bcwx-line);
}

.bcwx .bcwx-head {
  margin: 0 0 18px;
}

.bcwx .bcwx-head h2 {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--bcwx-ink);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: none;
}

.bcwx .bcwx-head p {
  margin: 4px 0 0;
  color: var(--bcwx-muted);
  font-size: 0.95rem;
}

/* ---------- Jump bar (top of page) ---------- */

/* Big buttons across a track, the section in view in red: the same look as
   the climate page's tabs (climate.css). Each takes its name's width plus an
   equal share of the spare room, so none is cut off. */
.bcwx .bcwx-jump {
  position: sticky;
  top: var(--bcwx-jump-stick, 0px);
  z-index: 40;
  margin: 0 0 32px;
}

.bcwx .bcwx-jump-track {
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--bcwx-line);
  border-radius: 16px;
  background: var(--bcwx-track);
  box-shadow: 0 4px 14px rgba(10, 22, 34, 0.12);
}

.bcwx .bcwx-jump a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 9px;
  min-width: 0;
  padding: 14px 12px;
  border: 0;
  border-radius: 11px;
  background: none;
  color: var(--bcwx-ink);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.bcwx .bcwx-jump a > span { overflow: hidden; text-overflow: ellipsis; }

.bcwx .bcwx-jump-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}

.bcwx .bcwx-jump a:hover {
  background: var(--bcwx-blue-wash);
  color: var(--bcwx-blue-deep);
}

.bcwx .bcwx-jump a[aria-current="true"] {
  background: var(--bcwx-red);
  color: #fff;
  box-shadow: 0 2px 8px rgba(122, 16, 34, 0.45);
}

/* Short names only on phones */
.bcwx .bcwx-jump-short { display: none; }

/* When the names don't all fit on one line (currentwx.js measures):
   icon over the name */
.bcwx .bcwx-jump.is-stacked a { flex: 1 1 0; flex-direction: column; gap: 5px; padding: 11px 6px; font-size: 0.95rem; white-space: normal; }

/* Pinned under the menu bar: one panel, as on the climate page. The track sits
   inset on the page's surface color, and whichever section's controls are
   pinned join the bottom of the same panel (see below). */
.bcwx .bcwx-jump.is-stuck {
  margin-right: -10px;
  margin-left: -10px;
  padding: 8px 10px;
  border: 1px solid var(--bcwx-line);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: var(--bcwx-surface);
  box-shadow: 0 8px 18px rgba(10, 22, 34, 0.22);
}

.bcwx .bcwx-jump.is-stuck .bcwx-jump-track {
  padding: 4px;
  box-shadow: none;
}

/* With a section's controls pinned below it, the panel's bottom edge and
   shadow move to the controls. The border only turns clear, so the bar's
   height doesn't change. */
.bcwx .bcwx-jump.is-stuck.has-controls {
  border-bottom-color: transparent;
  border-radius: 0;
  box-shadow: none;
}

.bcwx .bcwx-jump.is-stuck a { flex-direction: row; gap: 6px; padding: 8px 8px; font-size: 0.92rem; }
.bcwx .bcwx-jump.is-stuck .bcwx-jump-icon { width: 17px; height: 17px; }

/* Pinned, when the full names don't fit: names only, so they still fit on one line */
.bcwx .bcwx-jump.is-stuck.is-stacked a { flex: 1 1 auto; padding: 8px 6px; white-space: nowrap; }
.bcwx .bcwx-jump.is-stuck.is-stacked .bcwx-jump-icon { display: none; }

@media (max-width: 560px) {
  /* Phones: icon over a short name, all six still in one row */
  .bcwx .bcwx-jump-track { gap: 3px; padding: 4px; border-radius: 13px; }
  .bcwx .bcwx-jump.is-stuck .bcwx-jump-track { padding: 3px; }
  .bcwx .bcwx-jump a,
  .bcwx .bcwx-jump.is-stacked a { flex: 1 1 0; flex-direction: column; gap: 4px; padding: 9px 2px; font-size: 0.74rem; border-radius: 9px; white-space: nowrap; }
  .bcwx .bcwx-jump-icon { width: 20px; height: 20px; }
  .bcwx .bcwx-jump-full { display: none; }
  .bcwx .bcwx-jump-short { display: inline; }
  .bcwx .bcwx-jump.is-stuck a,
  .bcwx .bcwx-jump.is-stuck.is-stacked a { flex: 1 1 0; flex-direction: column; gap: 2px; padding: 5px 2px; font-size: 0.68rem; }
  .bcwx .bcwx-jump.is-stuck .bcwx-jump-icon,
  .bcwx .bcwx-jump.is-stuck.is-stacked .bcwx-jump-icon { display: block; width: 16px; height: 16px; }
}

/* ---------- Section controls that stay in view ---------- */

/* Each section's controls stick just under the pinned jump bar (top is set by
   currentwx.js) while that section scrolls past, as on the climate page */
.bcwx .bcwx-section > .bcwx-controls {
  position: sticky;
  top: var(--bcwx-controls-stick, 0px);
  z-index: 30;
}

/* While pinned: the lower part of the jump bar's panel, same width and color,
   carrying the panel's rounded bottom and shadow */
.bcwx .bcwx-section > .bcwx-controls.is-stuck {
  margin-right: -10px;
  margin-left: -10px;
  padding: 2px 10px 10px;
  border: 1px solid var(--bcwx-line);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: var(--bcwx-surface);
  box-shadow: 0 8px 18px rgba(10, 22, 34, 0.22);
}

/* The labels are hidden but still name the controls for screen readers */
.bcwx .bcwx-controls.is-stuck .bcwx-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 640px) {
  /* Phones: one swipeable row of buttons rather than several wrapped rows */
  .bcwx .bcwx-controls.is-stuck { gap: 6px; }
  .bcwx .bcwx-controls.is-stuck .bcwx-seg,
  .bcwx .bcwx-controls.is-stuck #webcam-groups { flex-wrap: nowrap; overflow-x: auto; }
  .bcwx .bcwx-controls.is-stuck .bcwx-seg button { flex: 0 0 auto; padding: 7px 12px; }
}

/* Room above a heading when jumped to; more when WordPress's admin bar shows */
.bcwx .bcwx-head h2 {
  scroll-margin-top: 20px;
}

body.admin-bar .bcwx .bcwx-head h2 {
  scroll-margin-top: 56px;
}

/* ---------- Controls ---------- */

.bcwx .bcwx-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  margin: 0 0 10px;
}

.bcwx .bcwx-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

/* Keep the second control group (Area) on the right even if WordPress
   inserts extra elements between the groups */
.bcwx .bcwx-controls > .bcwx-field:last-of-type:not(:first-of-type) {
  margin-left: auto;
}

.bcwx .bcwx-label {
  display: block;
  margin: 0;
  color: var(--bcwx-muted);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

/* Reset whatever the theme does to buttons */
.bcwx button {
  -webkit-appearance: none;
  appearance: none;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
  text-shadow: none;
  cursor: pointer;
}

.bcwx button:focus-visible,
.bcwx select:focus-visible,
.bcwx a:focus-visible {
  outline: 2px solid var(--bcwx-blue);
  outline-offset: 2px;
}

/* Segmented control */
.bcwx .bcwx-seg {
  display: inline-flex;
  gap: 2px;
  max-width: 100%;
  padding: 3px;
  overflow-x: auto;
  border-radius: 10px;
  background: var(--bcwx-track);
  scrollbar-width: none;
}

.bcwx .bcwx-seg::-webkit-scrollbar {
  display: none;
}

.bcwx .bcwx-seg button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 7px;
  color: var(--bcwx-ink);
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.bcwx .bcwx-seg button:hover {
  background: var(--bcwx-blue-wash);
  color: var(--bcwx-blue-deep);
}

.bcwx .bcwx-seg button[aria-pressed="true"] {
  background: var(--bcwx-red);
  color: #fff;
  box-shadow: 0 1px 2px rgba(122, 16, 34, 0.35);
}

/* Map picker: previous / dropdown / next */
/* Not overflow: hidden, or the open Map menu would be clipped */
.bcwx .bcwx-stepper {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--bcwx-control-line);
  border-radius: 10px;
  background: var(--bcwx-surface);
}

.bcwx .bcwx-step {
  padding: 0 14px;
  color: var(--bcwx-muted);
  font-size: 1.3rem;
  line-height: 1;
}

/* At the ends of a picker (today, the oldest day). A solid muted color, not
   faded out, so it stays visible on white but reads as inactive. */
.bcwx .bcwx-step:disabled {
  color: var(--bcwx-disabled);
  cursor: default;
}

.bcwx .bcwx-step:disabled:hover {
  background: none;
  color: var(--bcwx-disabled);
}

.bcwx .bcwx-step[data-step="-1"] {
  border-radius: 9px 0 0 9px;
}

.bcwx .bcwx-step[data-step="1"] {
  border-radius: 0 9px 9px 0;
}

.bcwx .bcwx-step:hover {
  background: var(--bcwx-track);
  color: var(--bcwx-blue-deep);
}

.bcwx .bcwx-select-wrap {
  position: relative;
  flex: 1 1 auto;
  border-left: 1px solid var(--bcwx-line);
  border-right: 1px solid var(--bcwx-line);
}

.bcwx .bcwx-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--bcwx-muted);
  border-bottom: 2px solid var(--bcwx-muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.bcwx .bcwx-select-wrap select {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  min-width: 15rem;
  height: auto;
  margin: 0;
  padding: 9px 38px 9px 12px;
  border: 0;
  border-radius: 0;
  background: var(--bcwx-surface);
  box-shadow: none;
  color: var(--bcwx-ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}

/* ---------- Map menu (replaces the select menu once the script runs) ---------- */

.bcwx .bcwx-select-wrap.has-combo select {
  display: none;
}

.bcwx .bcwx-combo {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 15rem;
  height: 100%;
  padding: 9px 38px 9px 12px;
  background: var(--bcwx-surface);
  color: var(--bcwx-ink);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
}

.bcwx .bcwx-combo-value {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.bcwx .bcwx-listbox {
  position: absolute;
  top: calc(100% + 6px);
  left: -1px;
  z-index: 1000;
  min-width: calc(100% + 2px);
  max-height: min(60vh, 440px);
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid var(--bcwx-line);
  border-radius: 10px;
  background: var(--bcwx-surface);
  box-shadow: 0 12px 32px rgba(10, 22, 34, 0.22);
  list-style: none;
  outline: none;
}

.bcwx .bcwx-listbox[hidden] {
  display: none;
}

.bcwx .bcwx-listbox li {
  margin: 0;
  list-style: none;
}

.bcwx .bcwx-listbox li::before {
  content: none;
}

/* Group headings ("Right now", "Past 24 hours"): bold caps over a thin rule.
   They stay pinned at the top while their items scroll; the background is
   the list's own color so they don't look highlighted. */
.bcwx .bcwx-listbox .bcwx-listbox-group {
  position: sticky;
  top: -6px;
  z-index: 1;
  margin: 8px 0 4px;
  padding: 8px 10px 6px;
  border-bottom: 1px solid var(--bcwx-line);
  background: var(--bcwx-surface);
  color: var(--bcwx-ink);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bcwx .bcwx-listbox .bcwx-listbox-group:first-child {
  margin-top: 0;
}

.bcwx .bcwx-listbox [role="option"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--bcwx-ink);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.bcwx .bcwx-listbox [role="option"].is-active {
  background: var(--bcwx-track);
}

.bcwx .bcwx-listbox [role="option"][aria-selected="true"] {
  background: var(--bcwx-blue-wash);
  color: var(--bcwx-blue-deep);
  font-weight: 700;
}

/* Yellow "★ P" pill marking Premium maps, areas and days, matching the one
   on Premium items in the site's menu bar */
.bcwx .bcwx-p {
  display: inline-block;
  flex: none;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--bcwx-premium);
  color: var(--bcwx-on-premium);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  line-height: 18px;
  letter-spacing: normal;
  text-align: center;
  white-space: nowrap;
}

.bcwx .bcwx-p::before {
  content: "\2605\00a0";
}

/* Read by screen readers, not shown */
.bcwx .bcwx-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.bcwx .bcwx-desc {
  max-width: 70ch;
  min-height: 1.5em;
  margin: 0 0 12px;
  color: var(--bcwx-muted);
  font-size: 0.95rem;
}

/* ---------- Image frame ---------- */

.bcwx .bcwx-frame {
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-top: 3px solid var(--bcwx-red);
  border-radius: 12px;
  background: var(--bcwx-panel);
}

.bcwx .bcwx-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0;
  padding: 10px 14px;
  color: var(--bcwx-panel-text);
  font-size: 0.9rem;
  font-style: normal; /* the theme italicizes figcaptions */
  line-height: 1.3;
  text-align: left;
}

.bcwx .bcwx-frame-title {
  margin-right: auto;
  min-width: 0;
}

.bcwx .bcwx-frame-name {
  font-weight: 700;
}

.bcwx .bcwx-frame-place {
  margin-left: 8px;
  color: var(--bcwx-panel-muted);
}

.bcwx .bcwx-frame-time {
  color: var(--bcwx-panel-muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.bcwx .bcwx-bar a,
.bcwx .bcwx-bar > button,
.bcwx .bcwx-pager button {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: var(--bcwx-panel-text);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.bcwx .bcwx-bar a:hover,
.bcwx .bcwx-bar > button:hover,
.bcwx .bcwx-pager button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.bcwx .bcwx-bar > button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.16);
}

/* "View full size" only shows when there's an image to enlarge */
.bcwx .bcwx-bar > button:disabled {
  display: none;
}

.bcwx .bcwx-pager {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bcwx-panel-muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.bcwx .bcwx-pager button {
  padding: 3px 10px 5px;
  font-size: 1.1rem;
  line-height: 1;
}

.bcwx .bcwx-stage {
  position: relative;
  min-height: 240px;
  background: var(--bcwx-stage);
}

/* Map, radar and alert images are all 1.40 : 1 (2916x2083 and 1458x1041).
   Reserving that shape means the frame stays the same size whether it shows
   an image, the lock card, the spinner or an error. Contents are centered;
   on narrow phones the box can still grow if the lock card needs more room. */
.bcwx .bcwx-frame:not(.bcwx-frame-cam) .bcwx-stage {
  display: grid;
  align-content: center;
  min-height: auto; /* lets the box grow rather than clip the lock card */
  aspect-ratio: 2916 / 2083;
}

/* "~" so an inserted paragraph between the two frames can't drop the gap */
.bcwx .bcwx-section > .bcwx-frame ~ .bcwx-frame {
  margin-top: 20px;
}

.bcwx .bcwx-frame:not(.bcwx-frame-cam) .bcwx-lock,
.bcwx .bcwx-frame:not(.bcwx-frame-cam) .bcwx-error {
  padding-top: 24px;
  padding-bottom: 24px;
}

.bcwx .bcwx-stage > a {
  display: block;
  border: 0;
  cursor: zoom-in;
}

.bcwx .bcwx-stage img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition: opacity 0.2s ease;
}

.bcwx .bcwx-stage img:not([src]) {
  display: none;
}

.bcwx .bcwx-frame[data-state="loading"] .bcwx-stage img {
  opacity: 0.45;
}

/* The webcam viewer is one fixed height, whatever shape each camera's image
   is and whether or not the camera responds, so the page doesn't jump.
   Images are fitted inside it; the error message is centered. */
.bcwx .bcwx-frame-cam .bcwx-stage {
  display: grid;
  align-content: center;
  min-height: min(68vh, 640px);
}

.bcwx .bcwx-frame-cam .bcwx-stage img {
  height: min(68vh, 640px);
  object-fit: contain;
}

.bcwx .bcwx-frame-cam .bcwx-error {
  padding-top: 24px;
  padding-bottom: 24px;
}

/* Loading spinner */
.bcwx .bcwx-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  display: none;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: bcwx-spin 0.8s linear infinite;
}

.bcwx .bcwx-frame[data-state="loading"] .bcwx-spinner {
  display: block;
}

@keyframes bcwx-spin {
  to { transform: rotate(360deg); }
}

/* Error message */
.bcwx .bcwx-error {
  display: none;
  max-width: 42ch;
  margin: 0 auto;
  padding: 90px 20px;
  color: var(--bcwx-panel-text);
  text-align: center;
}

.bcwx .bcwx-frame[data-state="error"] .bcwx-error {
  display: block;
}

/* Premium lock */
.bcwx .bcwx-lock {
  display: none;
  max-width: 46ch;
  margin: 0 auto;
  padding: 72px 20px 80px;
  color: var(--bcwx-panel-text);
  text-align: center;
}

.bcwx .bcwx-frame[data-state="locked"] .bcwx-lock {
  display: block;
}

/* Locked with a preview: a free map (or radar) blurred behind the lock as a
   teaser, the lock centered over it on a dark glow so its text stays
   readable. Same blur as the climate page's locked cards. */
.bcwx .bcwx-frame.has-preview[data-state="locked"] .bcwx-stage {
  overflow: hidden;
}

.bcwx .bcwx-frame.has-preview[data-state="locked"] .bcwx-stage > a {
  pointer-events: none;
}

.bcwx .bcwx-frame.has-preview[data-state="locked"] .bcwx-stage img {
  opacity: 0.65;
  filter: blur(5px) saturate(0.9);
  transform: scale(1.03); /* keeps the blur's soft edge outside the frame */
  user-select: none;
}

.bcwx .bcwx-frame.has-preview[data-state="locked"] .bcwx-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: none;
  padding: 20px;
  background: radial-gradient(ellipse 55% 50% at 50% 50%, rgba(10, 22, 34, 0.9), rgba(10, 22, 34, 0.45) 60%, rgba(10, 22, 34, 0) 100%);
}

.bcwx .bcwx-frame.has-preview[data-state="locked"] .bcwx-lock > * {
  max-width: 46ch;
}

.bcwx .bcwx-lock-icon {
  display: block;
  margin: 0 auto 14px;
  color: var(--bcwx-panel-muted);
}

.bcwx .bcwx-lock .bcwx-lock-title {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: normal;
  text-transform: none;
}

.bcwx .bcwx-lock-text {
  margin: 0 0 22px;
  color: var(--bcwx-panel-muted);
  font-size: 0.95rem;
}

.bcwx .bcwx-lock-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.bcwx .bcwx-lock .bcwx-btn {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.bcwx .bcwx-lock .bcwx-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.bcwx .bcwx-lock-icon,
.bcwx .bcwx-premium {
  color: var(--bcwx-premium);
}

/* Italic like the Premium logo */
.bcwx .bcwx-lock .bcwx-premium {
  font-style: italic;
}

/* Dark text: white on this yellow is unreadable */
.bcwx .bcwx-lock .bcwx-btn-premium {
  border-color: var(--bcwx-premium);
  background: var(--bcwx-premium);
  color: var(--bcwx-on-premium);
}

.bcwx .bcwx-lock .bcwx-btn-premium:hover {
  border-color: var(--bcwx-premium-deep);
  background: var(--bcwx-premium-deep);
  color: var(--bcwx-on-premium);
}

/* Pop-up offering Premium (more than 4 favorite webcams), styled like the
   lock panels */
.bcwx .bcwx-dialog {
  width: calc(100% - 32px);
  max-width: 460px;
  margin: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: var(--bcwx-panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  color: var(--bcwx-panel-text);
}

.bcwx .bcwx-dialog::backdrop {
  background: rgba(8, 14, 20, 0.6);
}

.bcwx .bcwx-dialog .bcwx-lock {
  display: block;
  padding: 36px 24px 28px;
}

.bcwx .bcwx-dialog .bcwx-lock-icon {
  fill: currentColor;
}

/* Phones hide the lock panels' explanation to fit the maps; the pop-up has room */
.bcwx .bcwx-dialog .bcwx-lock .bcwx-lock-text {
  display: block;
}

.bcwx .bcwx-dialog-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--bcwx-panel-muted);
  font-size: 1.5rem;
  line-height: 1;
}

.bcwx .bcwx-dialog-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Right now's "Share image" button, in its bar, and the pop-up showing the
   image with Download (and Share on phones) */
.bcwx .bcwx-bar > .bcwx-now-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.bcwx .bcwx-bar > .bcwx-now-share:disabled {
  cursor: default;
  opacity: 0.5;
}

.bcwx .bcwx-share {
  max-width: 520px;
}

.bcwx .bcwx-dialog .bcwx-share-body {
  max-width: none;
  padding: 22px 20px 20px;
}

.bcwx .bcwx-share-title {
  margin: 0 36px 14px 0;
  color: var(--bcwx-panel-text);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: left;
}

.bcwx .bcwx-share-frame {
  position: relative;
  aspect-ratio: 1080 / 1350;
  max-height: 62vh;
  margin: 0 auto 12px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--bcwx-stage);
}

.bcwx .bcwx-share-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bcwx .bcwx-share.is-busy .bcwx-spinner {
  display: block;
}

.bcwx .bcwx-share-status {
  min-height: 1.2em;
  margin: 0 0 10px;
  color: var(--bcwx-panel-muted);
  font-size: 0.9rem;
  text-align: center;
}

.bcwx .bcwx-share-status:empty {
  display: none;
}

.bcwx .bcwx-share [hidden] {
  display: none;
}

.bcwx .bcwx-share .bcwx-lock-actions .bcwx-btn {
  cursor: pointer;
}

/* The login pop-up opened by "Log in" on the lock panels and the favorites
   pop-up, as on the Climate Hub and Snowpack pages: the page's colors in
   each mode, a gold Log in button */
.bcwx .bcwx-login {
  width: calc(100% - 32px);
  max-width: 360px;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--bcwx-surface) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  color: var(--bcwx-ink);
  font-size: 16px;
  line-height: 1.4;
}

.bcwx .bcwx-login::backdrop { background: rgba(10, 16, 24, 0.55); }

.bcwx .bcwx-loginbox {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 24px 22px 20px;
}

.bcwx .bcwx-logintitle {
  margin: 0 28px 2px 0;
  color: var(--bcwx-ink);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.2;
}

.bcwx .bcwx-loginclose {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none !important;
  color: var(--bcwx-muted) !important;
  cursor: pointer;
}

.bcwx .bcwx-loginclose:hover { background: var(--bcwx-track) !important; color: var(--bcwx-ink) !important; }

.bcwx .bcwx-loginclose svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.bcwx .bcwx-loginfield {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  color: var(--bcwx-ink);
  font-size: 0.85rem;
  font-weight: 700;
}

.bcwx .bcwx-loginfield input {
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--bcwx-control-line) !important;
  border-radius: 8px;
  background: var(--bcwx-track) !important;
  box-shadow: none;
  color: var(--bcwx-ink) !important;
  font: inherit;
  font-size: 16px;               /* 16px keeps phones from zooming in */
  font-weight: 400;
}

.bcwx .bcwx-loginfield input:focus {
  border-color: var(--bcwx-blue) !important;
  outline: 2px solid var(--bcwx-blue);
  outline-offset: -1px;
}

.bcwx .bcwx-loginremember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--bcwx-muted);
  font-size: 0.85rem;
  cursor: pointer;
}

.bcwx .bcwx-loginremember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--bcwx-blue);
}

.bcwx .bcwx-loginsubmit {
  width: 100%;
  margin: 4px 0 0;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #FFD83A, #F9C802) !important;
  box-shadow: 0 3px 0 #C9A100;
  color: #16222E !important;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}

.bcwx .bcwx-loginsubmit:hover { filter: brightness(1.04); }
.bcwx .bcwx-loginsubmit:focus-visible { outline: 2px solid var(--bcwx-blue); outline-offset: 3px; }
.bcwx .bcwx-loginsubmit:disabled { cursor: progress; opacity: 0.75; }

.bcwx .bcwx-loginlinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  font-size: 0.8rem;
}

.bcwx .bcwx-loginlinks a {
  color: var(--bcwx-muted) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bcwx .bcwx-loginlinks a:hover { color: var(--bcwx-ink) !important; }

/* What went wrong, above the fields */
.bcwx .bcwx-loginerror {
  margin: 0;
  padding: 10px 12px;
  border-left: 4px solid var(--bcwx-red);
  border-radius: 8px;
  background: rgba(196, 30, 58, 0.1);
  color: var(--bcwx-ink);
  font-size: 0.9rem;
  line-height: 1.4;
}

.bcwx .bcwx-loginerror[hidden] { display: none; }

html[data-wp-dark-mode-active] .bcwx .bcwx-loginerror {
  background: rgba(242, 139, 130, 0.14);
  border-left-color: #F28B82;
}

/* The field the error is about */
.bcwx .bcwx-loginfield input[aria-invalid="true"] {
  border-color: var(--bcwx-red) !important;
}

html[data-wp-dark-mode-active] .bcwx .bcwx-loginfield input[aria-invalid="true"] {
  border-color: #F28B82 !important;
}

/* The password box with its Show / Hide button inside the right end */
.bcwx .bcwx-loginpwd {
  position: relative;
  display: block;
}

.bcwx .bcwx-loginpwd input {
  padding-right: 64px;
}

.bcwx .bcwx-loginshow {
  position: absolute;
  top: 50%;
  right: 6px;
  margin: 0;
  padding: 4px 8px;
  border: 0;
  border-radius: 6px;
  background: none !important;
  color: var(--bcwx-blue) !important;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  transform: translateY(-50%);
  cursor: pointer;
}

.bcwx .bcwx-loginshow:hover { background: var(--bcwx-blue-wash) !important; }

.bcwx .bcwx-logincaps {
  color: var(--bcwx-obh-gust, #B06000);
  font-size: 0.8rem;
  font-weight: 700;
}

html[data-wp-dark-mode-active] .bcwx .bcwx-logincaps { color: #D9B26F; }

.bcwx .bcwx-logincaps[hidden] { display: none; }

/* Logged in, but without Premium: just the message and the links */
.bcwx .bcwx-login.is-nopremium .bcwx-loginfield,
.bcwx .bcwx-login.is-nopremium .bcwx-loginremember,
.bcwx .bcwx-login.is-nopremium .bcwx-loginsubmit,
.bcwx .bcwx-login.is-nopremium .bcwx-loginlinks a:first-child {
  display: none;
}

/* Group headings ("Right now", "Past 24 hours") otherwise fall back to a
   white background in the open list, which hides light dark-mode text */
.bcwx select optgroup {
  background: var(--bcwx-surface);
  color: var(--bcwx-muted);
}

.bcwx select option {
  background: var(--bcwx-surface);
  color: var(--bcwx-ink);
}

/* ---------- Webcam thumbnails ---------- */

.bcwx .bcwx-cams {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.bcwx .bcwx-cams li {
  margin: 0;
  padding: 0;
}

.bcwx .bcwx-cams li::before {
  content: none;
}

/* Location headings in the "All" list */
.bcwx .bcwx-cams .bcwx-cams-head {
  grid-column: 1 / -1;
  margin: 14px 0 0;
  padding: 0 0 4px;
  border-bottom: 1px solid var(--bcwx-line);
  color: var(--bcwx-ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.bcwx .bcwx-cams .bcwx-cams-head:first-child {
  margin-top: 0;
}

/* Many locations: narrower padding so all of them (Favorites included) fit
   on one row at full width, each stretching to fill it evenly; on a
   narrower screen they wrap rather than hide some off the edge */
.bcwx #webcam-groups {
  display: flex;
  flex-wrap: wrap;
}

.bcwx #webcam-groups button {
  flex: 1 1 auto;
  padding: 8px 8px;
}

/* Refresh icon at the end of the webcam viewer's bar, beside "View full
   size". Dimmed (not hidden, unlike that button) while it waits out its
   5 minutes. */
.bcwx .bcwx-bar > .bcwx-refresh {
  display: inline-grid;
  place-items: center;
  align-self: stretch;
  min-height: 28px;
  padding: 0 7px;
}

.bcwx .bcwx-bar > .bcwx-refresh svg {
  display: block;
}

.bcwx .bcwx-bar > .bcwx-refresh:disabled {
  display: inline-grid;
  opacity: 0.4;
  cursor: default;
}

.bcwx .bcwx-bar > .bcwx-refresh:disabled:hover {
  background: none;
}

/* When a location has nothing to show */
.bcwx .bcwx-cams .bcwx-cams-empty {
  grid-column: 1 / -1;
  padding: 18px 0;
  color: var(--bcwx-muted);
  text-align: center;
}

/* Location dropdown, shown instead of the buttons on phones */
.bcwx .bcwx-cam-picker {
  display: none;
}

.bcwx .bcwx-cam-picker .bcwx-select-wrap {
  border: 0;
}

.bcwx .bcwx-cam-picker select {
  border-radius: 9px;
}

.bcwx .bcwx-cams .bcwx-cam-btn {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--bcwx-line);
  border-radius: 8px;
  background: var(--bcwx-surface);
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bcwx .bcwx-cams .bcwx-cam-btn:hover {
  border-color: var(--bcwx-blue);
}

.bcwx .bcwx-cams .bcwx-cam-btn[aria-pressed="true"] {
  border-color: var(--bcwx-red);
  box-shadow: 0 0 0 2px var(--bcwx-red);
}

/* ---------- Favorite webcams ---------- */

/* The star sits over the thumbnail's top-right corner, like the Right now tiles' */
.bcwx .bcwx-cams li {
  position: relative;
}

.bcwx .bcwx-cams .bcwx-cam-fav {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(8, 18, 28, 0.62);
  color: #fff;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.bcwx .bcwx-cams .bcwx-cam-fav svg {
  fill: none;
}

.bcwx .bcwx-cams .bcwx-cam-fav:hover {
  background: rgba(8, 18, 28, 0.85);
  color: var(--bcwx-premium);
}

.bcwx .bcwx-cams .bcwx-cam-fav[aria-pressed="true"] {
  color: var(--bcwx-premium);
}

.bcwx .bcwx-cams .bcwx-cam-fav[aria-pressed="true"] svg {
  fill: currentColor;
}

/* "Edit order" at the right of the Favorites heading: turns the drag grips
   on and off ("Done") */
.bcwx .bcwx-cams .bcwx-fav-edit {
  margin-left: auto;
  padding: 3px 12px;
  border: 1px solid var(--bcwx-control-line);
  border-radius: 999px;
  background: var(--bcwx-surface);
  color: var(--bcwx-ink);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.bcwx .bcwx-cams .bcwx-fav-edit:hover {
  background: var(--bcwx-blue-wash);
  color: var(--bcwx-blue-deep);
}

.bcwx .bcwx-cams .bcwx-fav-edit[aria-pressed="true"] {
  border-color: var(--bcwx-red);
  background: var(--bcwx-red);
  color: #fff;
}

/* Favorites' grip, over the thumbnail's top-left corner, for dragging them
   into order; only while "Edit order" is on. touch-action: none lets a
   finger drag it rather than scroll. */
.bcwx .bcwx-cams:not(.is-reordering) .bcwx-cam-grip {
  display: none;
}

.bcwx .bcwx-cams .bcwx-cam-grip {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(8, 18, 28, 0.62);
  color: #fff;
  cursor: grab;
  touch-action: none;
  transition: background-color 0.15s ease;
}

.bcwx .bcwx-cams .bcwx-cam-grip:hover {
  background: rgba(8, 18, 28, 0.85);
}

/* The tile being dragged rides above the others */
.bcwx .bcwx-cams li.is-dragging {
  z-index: 5;
}

.bcwx .bcwx-cams li.is-dragging .bcwx-cam-btn {
  border-color: var(--bcwx-premium);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.bcwx .bcwx-cams li.is-dragging .bcwx-cam-grip {
  cursor: grabbing;
}

/* The Favorites heading: yellow, with a filled yellow star */
.bcwx .bcwx-cams .bcwx-cams-head.is-favorites {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom-color: var(--bcwx-premium);
  color: var(--bcwx-fav-text);
}

.bcwx .bcwx-cams-head.is-favorites svg,
.bcwx .bcwx-fav-group svg {
  flex: none;
  color: var(--bcwx-premium);
  fill: currentColor;
}

/* Hidden until something is starred */
.bcwx .bcwx-seg button[hidden] {
  display: none;
}

.bcwx .bcwx-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bcwx-stage);
}

.bcwx .bcwx-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
}

.bcwx .is-offline .bcwx-thumb img {
  display: none;
}

/* A picture known to be over 90 minutes old: dimmed, with a label. The
   large viewer says when it was taken in its bar; a thumbnail, on hover. */
.bcwx .bcwx-frame.is-stale .bcwx-stage img,
.bcwx .bcwx-cams li.is-stale .bcwx-thumb img {
  opacity: 0.45;
  filter: grayscale(0.5);
}

.bcwx .bcwx-frame.is-stale .bcwx-frame-time {
  color: #D9B26F;
}

.bcwx .bcwx-frame.is-stale .bcwx-stage::after,
.bcwx .bcwx-cams li.is-stale .bcwx-thumb::before {
  position: absolute;
  z-index: 1;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8, 18, 28, 0.8);
  color: #D9B26F;
  font-weight: 700;
  pointer-events: none;
}

.bcwx .bcwx-frame.is-stale .bcwx-stage::after {
  content: "Not updated in over 90 minutes";
  top: 12px;
  left: 12px;
  font-size: 0.85rem;
}

.bcwx .bcwx-cams li.is-stale .bcwx-thumb::before {
  content: "Over 90 min old";
  left: 6px;
  bottom: 6px;
  padding: 2px 8px;
  font-size: 0.7rem;
}

.bcwx .is-offline .bcwx-thumb::after {
  content: "Not responding";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--bcwx-panel-muted);
  font-size: 0.8rem;
}

.bcwx .bcwx-cam-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px 10px;
}

.bcwx .bcwx-cam-name {
  color: var(--bcwx-ink);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.25;
}

.bcwx .bcwx-cam-elev {
  color: var(--bcwx-muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.bcwx .bcwx-note {
  margin: 32px 0 0;
  color: var(--bcwx-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  .bcwx .bcwx-head h2 {
    font-size: 1.45rem;
  }

  .bcwx .bcwx-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .bcwx .bcwx-controls > .bcwx-field:last-of-type:not(:first-of-type) {
    margin-left: 0;
  }

  .bcwx .bcwx-seg {
    display: flex;
  }

  .bcwx .bcwx-seg button {
    flex: 1 0 auto;
  }

  .bcwx .bcwx-select-wrap select,
  .bcwx .bcwx-combo {
    min-width: 0;
  }

  /* On phones the webcam viewer is a fixed 4:3 box instead */
  .bcwx .bcwx-frame-cam .bcwx-stage {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .bcwx .bcwx-frame-cam .bcwx-stage img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .bcwx .bcwx-stage:has(img[src]) {
    min-height: 0;
  }

  /* Compact lock card so it fits the map's height on a phone */
  .bcwx .bcwx-frame:not(.bcwx-frame-cam) .bcwx-lock {
    padding: 14px 16px;
  }

  .bcwx .bcwx-lock-icon {
    width: 22px;
    height: 22px;
    margin-bottom: 8px;
  }

  .bcwx .bcwx-lock .bcwx-lock-title {
    margin-bottom: 12px;
    font-size: 1.02rem;
  }

  .bcwx .bcwx-lock-text {
    display: none;
  }

  .bcwx .bcwx-lock .bcwx-btn {
    padding: 8px 14px;
    font-size: 0.9rem;
  }

  .bcwx #webcam-groups {
    display: none;
  }

  .bcwx .bcwx-cam-picker {
    display: flex;
  }
  /* Thumbnails: two columns, headings and all, easier to scan than a long
     sideways strip */
  .bcwx .bcwx-cams {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .bcwx .bcwx-cam-text {
    padding: 6px 8px 8px;
  }}

@media (prefers-reduced-motion: reduce) {
  .bcwx *,
  .bcwx *::before,
  .bcwx *::after {
    transition: none !important;
  }

  .bcwx .bcwx-spinner {
    animation-duration: 2.4s;
  }
}

/* ---------- Boulder observations (KBDU chart drawn from the CSV) ---------- */

/* Scoped to .bcwx-obh; the pieces copy the climate page's (climate.css)
   stat cards, data frame and tooltip so the two pages read as one site. */

/* Right now and Daily Weather History sit on the page's own colors rather
   than a dark panel: white cards with dark text in light mode, the page's
   dark surface with light text in dark mode. The panel tokens the shared
   frame uses are redefined here, so the frames, cards, charts and menus in
   these two sections all follow. --bcwx-obh-fg is the text color as bare
   r, g, b, for lines and washes: rgba(var(--bcwx-obh-fg), 0.1). */
.bcwx-obh {
  --bcwx-panel: var(--bcwx-surface);
  --bcwx-panel-text: var(--bcwx-ink);
  --bcwx-panel-muted: var(--bcwx-muted);
  --bcwx-stage: #EEF2F6;
  --bcwx-obh-strong: var(--bcwx-ink);
  --bcwx-obh-fg: 22, 34, 46;
  --bcwx-obh-night: rgba(22, 34, 46, 0.06);
  --bcwx-obh-premium-text: #8F6B00;
  /* Series colors deep enough to read on white */
  --bcwx-obh-temp: #D93025;
  --bcwx-obh-dew: #1E8E3E;
  --bcwx-obh-wind: #1A73E8;
  --bcwx-obh-gust: #B06000;
  --bcwx-obh-dir: #9334E6;
  --bcwx-obh-pres: #5F6B78;
  --bcwx-obh-precip: #1E8E3E;
  --bcwx-obh-cardline: rgba(22, 34, 46, 0.12);
}

html[data-wp-dark-mode-active] .bcwx-obh {
  /* Neutral grays a step up from WP Dark Mode's page (#232323), rather
     than the navy of the other sections' controls */
  --bcwx-panel: #2B2C2D;
  --bcwx-stage: #1F2020;
  --bcwx-obh-fg: 255, 255, 255;
  --bcwx-obh-night: rgba(0, 0, 0, 0.3);
  --bcwx-obh-premium-text: var(--bcwx-premium);
  /* Lighter series colors for the dark background */
  --bcwx-obh-temp: #F28B82;
  --bcwx-obh-dew: #81C995;
  --bcwx-obh-wind: #8AB4F8;
  --bcwx-obh-gust: #D9B26F;
  --bcwx-obh-dir: #D7A6F5;
  --bcwx-obh-pres: #D9E1EA;
  --bcwx-obh-precip: #81C995;
  --bcwx-obh-cardline: rgba(255, 255, 255, 0.1);
}

/* The frames: an outline instead of a dark fill, keeping the red top edge,
   and the card's own color behind the charts and tiles */
.bcwx-obh .bcwx-frame {
  border: 1px solid var(--bcwx-obh-cardline);
  border-top: 3px solid var(--bcwx-red);
}

/* The title bar's buttons (Share image) were drawn for the dark panel:
   outlines and hovers in the text color */
.bcwx-obh .bcwx-bar a,
.bcwx-obh .bcwx-bar > button {
  border-color: rgba(var(--bcwx-obh-fg), 0.22);
}

.bcwx-obh .bcwx-bar a:hover,
.bcwx-obh .bcwx-bar > button:hover {
  background: rgba(var(--bcwx-obh-fg), 0.08);
  color: var(--bcwx-obh-strong);
}

.bcwx-obh .bcwx-frame-data .bcwx-stage {
  background: var(--bcwx-panel);
}

/* The weather icons are drawn for dark backgrounds; a soft edge keeps the
   pale clouds visible on white */
.bcwx-obh .bcwx-obh-card img,
.bcwx-obh .bcwx-now-icon,
.bcwx-obh .bcwx-obh-chart image {
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.3));
}

html[data-wp-dark-mode-active] .bcwx-obh .bcwx-obh-card img,
html[data-wp-dark-mode-active] .bcwx-obh .bcwx-now-icon,
html[data-wp-dark-mode-active] .bcwx-obh .bcwx-obh-chart image {
  filter: none;
}

/* The shared lock panel and spinner were drawn for the dark panel */
.bcwx-obh .bcwx-lock .bcwx-lock-title {
  color: var(--bcwx-obh-strong);
}

.bcwx-obh .bcwx-lock .bcwx-premium {
  color: var(--bcwx-obh-premium-text);
}

.bcwx-obh .bcwx-lock .bcwx-btn:not(.bcwx-btn-premium) {
  border-color: rgba(var(--bcwx-obh-fg), 0.3);
  color: var(--bcwx-obh-strong);
}

.bcwx-obh .bcwx-lock .bcwx-btn:not(.bcwx-btn-premium):hover {
  background: rgba(var(--bcwx-obh-fg), 0.08);
}

.bcwx-obh .bcwx-spinner {
  border-color: rgba(var(--bcwx-obh-fg), 0.2);
  border-top-color: var(--bcwx-obh-strong);
}

/* ---------- Location picker and its "Set favorite" star ---------- */

/* Like the forecast page's: hollow until the station on screen is the
   favorite, then filled in gold */
.bcwx-obh .bcwx-obh-stationrow {
  display: flex;
  gap: 8px;
}

.bcwx-obh .bcwx-obh-stationrow > .bcwx-stepper {
  flex: 1 1 auto;
  min-width: 0;
}

.bcwx-obh .bcwx-obh-fav {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--bcwx-control-line);
  border-radius: 10px;
  background: var(--bcwx-surface);
  color: var(--bcwx-muted);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.bcwx-obh .bcwx-obh-fav:hover {
  background: var(--bcwx-track);
  color: var(--bcwx-blue-deep);
}

.bcwx-obh .bcwx-obh-fav svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.bcwx-obh .bcwx-obh-fav.is-fav {
  color: var(--bcwx-ink);
}

.bcwx-obh .bcwx-obh-fav.is-fav svg {
  fill: #D99A00;
  stroke: #D99A00;
}

/* ---------- Day picker ---------- */

.bcwx-obh .bcwx-obh-dayrow {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.bcwx-obh .bcwx-step {
  min-height: 40px;
}

.bcwx-obh .bcwx-obh-today {
  padding: 0 14px;
  border: 1px solid var(--bcwx-control-line);
  border-radius: 10px;
  background: var(--bcwx-surface);
  color: var(--bcwx-ink);
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.bcwx-obh .bcwx-obh-today:hover:not(:disabled) {
  border-color: var(--bcwx-blue);
  color: var(--bcwx-blue-deep);
}

/* Already showing the newest day: muted, not faded, so it stays readable */
.bcwx-obh .bcwx-obh-today:disabled {
  background: var(--bcwx-track);
  color: var(--bcwx-disabled);
  cursor: default;
}

/* ---------- Data frame ---------- */

/* Not an image, so no fixed shape: the frame grows to fit its cards */
.bcwx-obh .bcwx-frame.bcwx-frame-data .bcwx-stage {
  display: block;
  min-height: 260px;
  aspect-ratio: auto;
}

.bcwx-obh .bcwx-frame-data > .bcwx-bar {
  padding: 14px 16px 12px;
}

.bcwx-obh .bcwx-frame-data .bcwx-frame-name {
  display: block;
  color: var(--bcwx-obh-strong);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.bcwx-obh .bcwx-frame-data .bcwx-frame-place {
  display: block;
  margin: 3px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.bcwx-obh .bcwx-obh-body {
  padding: 4px 16px 18px;
  color: var(--bcwx-panel-text);
  transition: opacity 0.2s ease;
}

.bcwx-obh .bcwx-frame-data[data-state="loading"] .bcwx-obh-body {
  opacity: 0.35;
}

.bcwx-obh .bcwx-frame-data[data-state="error"] .bcwx-obh-body {
  display: none;
}

/* Locked: the card keeps its full size. The body (laid out with a free day's
   data) is hidden, and the lock panel is centered over the space it holds. */
.bcwx-obh .bcwx-frame-data[data-state="locked"] .bcwx-obh-body {
  visibility: hidden;
}

.bcwx-obh .bcwx-frame-data[data-state="locked"] .bcwx-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: none;
  padding-right: 20px;
  padding-left: 20px;
}

.bcwx-obh .bcwx-frame-data[data-state="locked"] .bcwx-lock > * {
  max-width: 46ch;
}

.bcwx-obh .bcwx-frame-data .bcwx-lock,
.bcwx-obh .bcwx-frame-data .bcwx-error {
  padding-top: 56px;
  padding-bottom: 60px;
}

/* Small caps heading over each group */
.bcwx-obh .bcwx-obh-h {
  margin: 18px 0 8px;
  color: var(--bcwx-panel-muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Stat cards ---------- */

.bcwx-obh .bcwx-obh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid var(--bcwx-obh-cardline);
  border-radius: 10px;
  background: var(--bcwx-panel);
}

/* Dividers drawn right and below each card; the grid clips the outer edges */
.bcwx-obh .bcwx-obh-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  margin: 0 -1px -1px 0;
  padding: 12px 14px 13px;
  border-right: 1px solid var(--bcwx-obh-cardline);
  border-bottom: 1px solid var(--bcwx-obh-cardline);
}

/* Latest conditions: the icon beside the numbers */
.bcwx-obh .bcwx-obh-card.is-now {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.bcwx-obh .bcwx-obh-card.is-now > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.bcwx-obh .bcwx-obh-card img {
  flex: none;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.bcwx-obh .bcwx-obh-k {
  color: var(--bcwx-panel-muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bcwx-obh .bcwx-obh-v {
  color: var(--bcwx-obh-strong);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.bcwx-obh .bcwx-obh-v small {
  color: var(--bcwx-panel-muted);
  font-size: 0.55em;
  font-weight: 600;
}

.bcwx-obh .bcwx-obh-v.is-small {
  font-size: 1.15rem;
  line-height: 1.5;
  white-space: normal; /* e.g. sunrise / sunset wraps after the "/" when the card is narrow */
}

.bcwx-obh .bcwx-obh-s {
  min-height: 1.2em;
  overflow: hidden;
  color: var(--bcwx-panel-muted);
  font-size: 0.8rem;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

/* Latest card: the weather type ("Fair and Breezy") wraps instead of being cut off */
.bcwx-obh .bcwx-obh-card.is-now .bcwx-obh-s {
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
}

.bcwx-obh .is-warm { color: var(--bcwx-obh-temp); }
.bcwx-obh .is-cool { color: var(--bcwx-obh-wind); }
.bcwx-obh .is-wet  { color: var(--bcwx-obh-precip); }

/* ---------- Chart ---------- */

.bcwx-obh .bcwx-obh-chartwrap {
  position: relative;
  width: 100%;
}

.bcwx-obh .bcwx-obh-chart {
  display: block;
  overflow: visible;
}

.bcwx-obh .bcwx-obh-chart text {
  fill: var(--bcwx-panel-muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.bcwx-obh .bcwx-obh-chart text.c-xlab,
.bcwx-obh .bcwx-obh-chart text.c-ylab { font-size: 12.5px; }

.bcwx-obh .bcwx-obh-chart text.c-xlab { font-weight: 700; }

/* Each panel's name, in its series color */
.bcwx-obh .bcwx-obh-chart text.c-plab {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Dark outline so labels stay readable where they cross lines */
.bcwx-obh .bcwx-obh-chart text.c-note {
  fill: var(--bcwx-obh-strong);
  font-size: 12px;
  font-weight: 700;
  paint-order: stroke;
  stroke: var(--bcwx-panel);
  stroke-width: 3px;
  stroke-linejoin: round;
}

.bcwx-obh .bcwx-obh-chart text.c-none-sub {
  fill: var(--bcwx-panel-muted);
  font-size: 12px;
}

/* A reading the station doesn't take */
.bcwx-obh .is-na { color: var(--bcwx-panel-muted); }

/* The day's high and low: a dot on the line and a label in its color */
.bcwx-obh .bcwx-obh-chart text.c-note.c-note-warm { fill: var(--bcwx-obh-temp); }
.bcwx-obh .bcwx-obh-chart text.c-note.c-note-cool { fill: var(--bcwx-obh-wind); }
.bcwx-obh .bcwx-obh-chart .c-mark { stroke: var(--bcwx-panel); stroke-width: 2; }
.bcwx-obh .bcwx-obh-chart .c-mark-warm { fill: var(--bcwx-obh-temp); }
.bcwx-obh .bcwx-obh-chart .c-mark-cool { fill: var(--bcwx-obh-wind); }

.bcwx-obh .bcwx-obh-chart text.c-none {
  fill: var(--bcwx-panel-muted);
  font-size: 14px;
  font-weight: 700;
}

.bcwx-obh .bcwx-obh-chart .c-plot { fill: rgba(var(--bcwx-obh-fg), 0.035); }
.bcwx-obh .bcwx-obh-chart .c-night { fill: var(--bcwx-obh-night); }
.bcwx-obh .bcwx-obh-chart .c-frame { fill: none; stroke: rgba(var(--bcwx-obh-fg), 0.16); }
.bcwx-obh .bcwx-obh-chart .c-grid { stroke: rgba(var(--bcwx-obh-fg), 0.08); }
.bcwx-obh .bcwx-obh-chart .c-vgrid { stroke: rgba(var(--bcwx-obh-fg), 0.14); stroke-dasharray: 2 4; }
.bcwx-obh .bcwx-obh-chart .c-tick { stroke: rgba(var(--bcwx-obh-fg), 0.28); }

.bcwx-obh .bcwx-obh-chart path {
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.bcwx-obh .bcwx-obh-chart .c-line-temp { stroke: var(--bcwx-obh-temp); stroke-width: 2.4; }
.bcwx-obh .bcwx-obh-chart .c-line-dew { stroke: var(--bcwx-obh-dew); stroke-width: 2; }
.bcwx-obh .bcwx-obh-chart .c-line-wind { stroke: var(--bcwx-obh-wind); stroke-width: 2; }
.bcwx-obh .bcwx-obh-chart .c-line-pres { stroke: var(--bcwx-obh-pres); stroke-width: 2; }
.bcwx-obh .bcwx-obh-chart .c-line-precip { stroke: var(--bcwx-obh-precip); stroke-width: 2.2; }

.bcwx-obh .bcwx-obh-chart .c-gust { fill: none; stroke: var(--bcwx-obh-gust); stroke-width: 1.8; }
.bcwx-obh .bcwx-obh-chart .c-dir { fill: none; stroke: var(--bcwx-obh-dir); stroke-width: 1.8; }
.bcwx-obh .bcwx-obh-chart .c-bar-precip { fill: var(--bcwx-obh-precip); fill-opacity: 0.4; }

.bcwx-obh .bcwx-obh-chart text.c-temp { fill: var(--bcwx-obh-temp); }
.bcwx-obh .bcwx-obh-chart text.c-dew { fill: var(--bcwx-obh-dew); }
.bcwx-obh .bcwx-obh-chart text.c-wind { fill: var(--bcwx-obh-wind); }
.bcwx-obh .bcwx-obh-chart text.c-gustlab { fill: var(--bcwx-obh-gust); }
.bcwx-obh .bcwx-obh-chart text.c-dirlab { fill: var(--bcwx-obh-dir); }
.bcwx-obh .bcwx-obh-chart text.c-pres { fill: var(--bcwx-obh-pres); }
.bcwx-obh .bcwx-obh-chart text.c-precip { fill: var(--bcwx-obh-precip); }

/* Hover: a dashed guide down every panel, a dot on the temperature */
.bcwx-obh .bcwx-obh-chart .c-hit {
  fill: transparent;
  cursor: crosshair;
}

.bcwx-obh .bcwx-obh-chart .c-guide {
  stroke: rgba(var(--bcwx-obh-fg), 0.55);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.bcwx-obh .bcwx-obh-chart .c-hoverdot {
  fill: var(--bcwx-obh-temp);
  stroke: var(--bcwx-panel);
  stroke-width: 2;
}

/* ---------- Tooltip ---------- */

.bcwx-obh .bcwx-obh-tip {
  position: absolute;
  top: 6px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 190px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 18, 28, 0.94);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  color: var(--bcwx-panel-text);
  font-size: 0.8rem;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
}

.bcwx-obh .bcwx-obh-tip[hidden] {
  display: none;
}

.bcwx-obh .bcwx-obh-tiptitle {
  color: #fff;
  font-weight: 700;
}

.bcwx-obh .bcwx-obh-tipsub {
  margin-bottom: 2px;
  color: var(--bcwx-panel-muted);
}

.bcwx-obh .bcwx-obh-tiprow {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.bcwx-obh .bcwx-obh-tipk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--bcwx-panel-muted);
}

.bcwx-obh .bcwx-obh-tiprow > span:last-child {
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bcwx-obh .bcwx-obh-sw {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

/* ---------- Footer under the frame ---------- */

.bcwx-obh .bcwx-obh-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin: 8px 2px 0;
  color: var(--bcwx-muted);
  font-size: 0.82rem;
}

/* ---------- Small screens ---------- */

@media (max-width: 560px) {
  .bcwx-obh .bcwx-frame-data > .bcwx-bar { padding: 12px 14px 10px; }
  .bcwx-obh .bcwx-frame-data .bcwx-frame-name { font-size: 1.12rem; }
  .bcwx-obh .bcwx-frame-data .bcwx-frame-place { font-size: 0.85rem; }
  .bcwx-obh .bcwx-obh-body { padding: 4px 10px 14px; }
  .bcwx-obh .bcwx-obh-grid { grid-template-columns: 1fr 1fr; }
  .bcwx-obh .bcwx-obh-card.is-now { grid-column: 1 / -1; }
  .bcwx-obh .bcwx-obh-v { font-size: 1.35rem; }
  .bcwx-obh .bcwx-obh-dayrow .bcwx-stepper { flex: 1 1 auto; }
}

/* ---------- Day picker: a calendar in place of the Day menu ---------- */

/* Same look as the climate page's (climate.css) */
.bcwx-obh .bcwx-obh-datewrap::after { content: none; }

.bcwx-obh .bcwx-obh-datewrap.has-picker select { display: none; }

.bcwx-obh .bcwx-obh-datebtn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 11.5rem;
  height: 100%;
  padding: 9px 12px;
  background: var(--bcwx-surface);
  color: var(--bcwx-ink);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.bcwx-obh .bcwx-obh-datebtn svg {
  flex: none;
  color: var(--bcwx-muted);
}

.bcwx-obh .bcwx-obh-datebtn:hover svg {
  color: var(--bcwx-blue-deep);
}

/* The calendar: pinned under the button so no card clips it */
.bcwx-obh .bcwx-obh-datepop {
  position: fixed;
  z-index: 1000;
  width: 300px;
  padding: 10px;
  border: 1px solid rgba(var(--bcwx-obh-fg), 0.16);
  border-radius: 12px;
  background: var(--bcwx-panel);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  color: var(--bcwx-panel-text);
  font-size: 0.9rem;
}

.bcwx-obh .bcwx-obh-dphead {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.bcwx-obh .bcwx-obh-dptitle {
  flex: 1 1 auto;
  color: var(--bcwx-obh-strong);
  font-weight: 700;
  text-align: center;
}

.bcwx-obh .bcwx-obh-dpnav {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  color: var(--bcwx-panel-muted);
  font-size: 1.3rem;
  line-height: 1;
}

.bcwx-obh .bcwx-obh-dpnav:hover:not(:disabled) {
  background: rgba(var(--bcwx-obh-fg), 0.1);
  color: var(--bcwx-obh-strong);
}

/* No data before the first month or after the newest */
.bcwx-obh .bcwx-obh-dpnav:disabled {
  opacity: 0.3;
  cursor: default;
}

.bcwx-obh .bcwx-obh-dpgrid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.bcwx-obh .bcwx-obh-dpwd {
  padding: 2px 0 4px;
  color: var(--bcwx-panel-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.bcwx-obh .bcwx-obh-dpday {
  height: 34px;
  border-radius: 7px;
  color: var(--bcwx-panel-text);
  font-size: 0.88rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.bcwx-obh .bcwx-obh-dpday:hover {
  background: rgba(var(--bcwx-obh-fg), 0.1);
  color: var(--bcwx-obh-strong);
}

/* No observations that day at this station */
.bcwx-obh .bcwx-obh-dpday.is-none,
.bcwx-obh .bcwx-obh-dpday.is-none:hover {
  background: none;
  color: var(--bcwx-panel-muted);
  opacity: 0.35;
  cursor: default;
}

/* Premium-only days, marked for members and non-members alike */
.bcwx-obh .bcwx-obh-dpday.is-premium {
  background: rgba(249, 200, 2, 0.14);
  color: var(--bcwx-obh-premium-text);
}

.bcwx-obh .bcwx-obh-dpday.is-premium:hover {
  background: rgba(249, 200, 2, 0.28);
  color: var(--bcwx-obh-premium-text);
}

.bcwx-obh .bcwx-obh-dpday.is-today {
  box-shadow: inset 0 0 0 1.5px rgba(var(--bcwx-obh-fg), 0.6);
}

.bcwx-obh .bcwx-obh-dpday.is-selected,
.bcwx-obh .bcwx-obh-dpday.is-selected:hover {
  background: var(--bcwx-red);
  color: #fff;
}

.bcwx-obh .bcwx-obh-dpday:focus-visible,
.bcwx-obh .bcwx-obh-dpnav:focus-visible,
.bcwx-obh .bcwx-obh-dptoday:focus-visible {
  outline: 2px solid var(--bcwx-blue);
  outline-offset: 1px;
}

.bcwx-obh .bcwx-obh-dpfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(var(--bcwx-obh-fg), 0.12);
}

.bcwx-obh .bcwx-obh-dpkey {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--bcwx-panel-muted);
  font-size: 0.8rem;
}

.bcwx-obh .bcwx-obh-dpsw {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: rgba(249, 200, 2, 0.35);
  box-shadow: inset 0 0 0 1px var(--bcwx-premium);
}

.bcwx-obh .bcwx-obh-dptoday {
  padding: 5px 12px;
  border: 1px solid rgba(var(--bcwx-obh-fg), 0.22);
  border-radius: 6px;
  color: var(--bcwx-panel-text);
  font-size: 0.85rem;
  font-weight: 700;
}

.bcwx-obh .bcwx-obh-dptoday:hover {
  background: rgba(var(--bcwx-obh-fg), 0.1);
  color: var(--bcwx-obh-strong);
}

@media (max-width: 640px) {
  .bcwx-obh .bcwx-obh-datebtn { min-width: 0; }
}

/* ---------- Right now: a tile per place ---------- */

/* The frame's title bar matches the map, radar and webcam frames, not the
   larger headline of the history card */
.bcwx-obh #now-frame > .bcwx-bar {
  padding: 10px 14px;
}

.bcwx-obh #now-frame .bcwx-frame-name {
  display: inline;
  color: inherit;
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
  letter-spacing: normal;
}

.bcwx-obh .bcwx-now-grid {
  display: grid;
  /* Desktop: 6 columns. The first tile (Boulder, or the visitor's starred
     place) is a large one 3 columns wide and 3 rows tall, with the other 15
     around it: 3 x 3 to its right and a row of 6 below, which NOW_SPOTS'
     order turns into a rough map. Laid out for its 16 places; with another
     count the last row isn't full. */
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 4px 16px 18px;
  list-style: none;
  transition: opacity 0.2s ease;
}

.bcwx-obh .bcwx-frame-data[data-state="loading"] .bcwx-now-grid { opacity: 0.35; }
.bcwx-obh .bcwx-frame-data[data-state="error"] .bcwx-now-grid { display: none; }

.bcwx-obh .bcwx-now-grid li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bcwx-obh .bcwx-now-grid li::before {
  content: none;
}

/* The gear sits over the first tile's picture, top-right, beside (not
   inside) the tile's own buttons; it opens the menu that picks which place
   comes first. Every tile has one, but only the first shows it. */
.bcwx-obh .bcwx-now-grid li {
  position: relative;
}

.bcwx-obh .bcwx-now-gear {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(8, 18, 28, 0.62);
  color: #fff;
  transition: background-color 0.15s ease;
}

.bcwx-obh .bcwx-now-grid li:not(:first-child) .bcwx-now-gear {
  display: none;
}

.bcwx-obh .bcwx-now-gear:hover,
.bcwx-obh .bcwx-now-gear[aria-expanded="true"] {
  background: rgba(8, 18, 28, 0.88);
}

.bcwx-obh .bcwx-now-gear:focus-visible {
  outline: 2px solid var(--bcwx-blue);
  outline-offset: 2px;
}

/* The gear's menu: drops over the top of the tiles, from the left (where
   the first tile is), places in two columns */
.bcwx-obh .bcwx-now-menu {
  position: absolute;
  top: 52px;
  left: 16px;
  z-index: 5;
  width: min(420px, calc(100% - 32px));
  /* Inside the frame, which clips anything past its edge: on a phone the
     list scrolls rather than run off the bottom */
  max-height: calc(100% - 62px);
  overflow-y: auto;
  padding: 10px;
  border: 1px solid rgba(var(--bcwx-obh-fg), 0.16);
  border-radius: 10px;
  background: var(--bcwx-panel);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  color: var(--bcwx-panel-text);
}

.bcwx-obh .bcwx-now-menu[hidden] {
  display: none;
}

.bcwx-obh .bcwx-now-menu-note {
  margin: 2px 4px 8px;
  color: var(--bcwx-panel-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.bcwx-obh .bcwx-now-menu-opts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
}

.bcwx-obh .bcwx-now-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 8px;
  border-radius: 7px;
  color: var(--bcwx-panel-text);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
}

.bcwx-obh .bcwx-now-opt span {
  color: var(--bcwx-panel-muted);
  font-weight: 400;
}

.bcwx-obh .bcwx-now-opt:hover {
  background: rgba(var(--bcwx-obh-fg), 0.08);
}

.bcwx-obh .bcwx-now-opt::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border: 2px solid var(--bcwx-panel-muted);
  border-radius: 50%;
}

.bcwx-obh .bcwx-now-opt[aria-checked="true"] {
  background: rgba(196, 30, 58, 0.22);
  color: var(--bcwx-obh-strong);
}

.bcwx-obh .bcwx-now-opt[aria-checked="true"]::before {
  border-color: var(--bcwx-obh-strong);
  background: radial-gradient(circle, var(--bcwx-obh-strong) 0 3px, transparent 3.5px);
}

.bcwx-obh .bcwx-now-opt:focus-visible {
  outline: 2px solid var(--bcwx-blue);
  outline-offset: -2px;
}

/* A tile is two buttons: its picture opens that camera in the webcam
   section, and its weather opens the station's history */
.bcwx-obh .bcwx-now-tile {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--bcwx-obh-cardline);
  border-radius: 10px;
  background: var(--bcwx-panel);
  color: var(--bcwx-panel-text);
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bcwx-obh .bcwx-now-tile:hover {
  border-color: rgba(var(--bcwx-obh-fg), 0.32);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* A fixed 16:10 box whatever shape each camera's picture is */
.bcwx-obh .bcwx-now-cam {
  position: relative;
  display: block;
  flex: none;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bcwx-stage);
}

/* Inside the tile's rounded clip, so the focus ring is drawn inward */
.bcwx-obh .bcwx-now-cam:focus-visible,
.bcwx-obh .bcwx-now-body:focus-visible {
  outline-offset: -3px;
}

/* "Webcam ›" appears over the picture on hover, like the History link below it */
.bcwx-obh .bcwx-now-camhint {
  position: absolute;
  left: 7px;
  bottom: 7px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(8, 18, 28, 0.78);
  color: #8AB4F8;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.bcwx-obh .bcwx-now-cam:hover .bcwx-now-camhint,
.bcwx-obh .bcwx-now-cam:focus-visible .bcwx-now-camhint {
  opacity: 1;
}

.bcwx-obh .bcwx-now-cam:hover img {
  filter: brightness(1.08);
}

.bcwx-obh .bcwx-now-cam img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
}

.bcwx-obh .bcwx-now-tile.is-offline .bcwx-now-cam img { visibility: hidden; }

.bcwx-obh .bcwx-now-tile.is-offline .bcwx-now-cam::after {
  content: "Camera not responding";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--bcwx-panel-muted);
  font-size: 0.75rem;
}

.bcwx-obh .bcwx-now-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  min-width: 0;
  padding: 10px 12px 11px;
  color: inherit;
  text-align: left;
}

.bcwx-obh .bcwx-now-body:hover {
  background: rgba(var(--bcwx-obh-fg), 0.04);
}

.bcwx-obh .bcwx-now-body:hover .bcwx-now-more {
  text-decoration: underline;
}

.bcwx-obh .bcwx-now-name {
  color: var(--bcwx-obh-strong);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

.bcwx-obh .bcwx-now-main {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0;
}

/* .bcwx-now-main in the selector so the frame's full-width image rule can't stretch it */
.bcwx-obh .bcwx-now-main .bcwx-now-icon {
  flex: none;
  width: 44px;
  height: 44px;
  margin: 0;
  border: 0;
  box-shadow: none;
}

.bcwx-obh .bcwx-now-main .bcwx-now-icon[hidden] { display: none; }

.bcwx-obh .bcwx-now-temp {
  color: var(--bcwx-obh-strong);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.bcwx-obh .bcwx-now-wx,
.bcwx-obh .bcwx-now-meta {
  overflow: hidden;
  color: var(--bcwx-panel-muted);
  font-size: 0.8rem;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.bcwx-obh .bcwx-now-wx {
  color: var(--bcwx-panel-text);
  font-size: 0.85rem;
}

.bcwx-obh .bcwx-now-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--bcwx-panel-muted);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.bcwx-obh .bcwx-now-when {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bcwx-obh .bcwx-now-more {
  flex: none;
  color: var(--bcwx-obh-wind);
  font-weight: 700;
}

/* The large tile's chart and extra readings; hidden on every other tile
   and on tablets and phones */
.bcwx-obh .bcwx-now-extra {
  display: none;
}

/* An old report: say so in the warm color, and dim the numbers */
.bcwx-obh .bcwx-now-tile.is-stale .bcwx-now-when { color: var(--bcwx-obh-gust); }
.bcwx-obh .bcwx-now-tile.is-stale .bcwx-now-temp,
.bcwx-obh .bcwx-now-tile.is-missing .bcwx-now-temp { opacity: 0.6; }

/* ---------- The large first tile (desktop only) ---------- */

@media (min-width: 901px) {
  .bcwx-obh .bcwx-now-grid li:first-child {
    grid-column: span 3;
    grid-row: span 3;
  }

  /* Its picture takes whatever height the three rows leave after the text */
  .bcwx-obh .bcwx-now-grid li:first-child .bcwx-now-cam {
    flex: 1 1 auto;
    min-height: 240px;
    aspect-ratio: auto;
  }

  .bcwx-obh .bcwx-now-grid li:first-child .bcwx-now-body {
    flex: 0 0 auto;
  }

  /* Two columns: the current conditions on the left, today's chart and
     readings on the right, the time and History link across the bottom */
  .bcwx-obh .bcwx-now-grid li:first-child .bcwx-now-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-content: start;
    column-gap: 22px;
  }

  /* Its chart marks the high and low, so the "So far" line isn't needed */
  .bcwx-obh .bcwx-now-grid li:first-child .bcwx-now-hilo {
    display: none;
  }

  .bcwx-obh .bcwx-now-grid li:first-child .bcwx-now-extra {
    display: flex;
    flex-direction: column;
    gap: 12px;
    grid-column: 2;
    grid-row: 1 / span 4;
    min-width: 0;
    padding-left: 20px;
    border-left: 1px solid var(--bcwx-obh-cardline);
  }

  .bcwx-obh .bcwx-now-grid li:first-child .bcwx-now-foot {
    grid-column: 1 / -1;
  }

  .bcwx-obh .bcwx-now-chart {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .bcwx-obh .bcwx-now-plot {
    position: relative;
    display: block;
  }

  .bcwx-obh .bcwx-now-chart svg {
    display: block;
    width: 100%;
    height: 64px;
    overflow: visible;
  }

  /* High and low: a dot on the line, the label above (high) or below (low) */
  .bcwx-obh .bcwx-now-mark {
    position: absolute;
    width: 7px;
    height: 7px;
    margin: -3.5px 0 0 -3.5px;
    border: 1.5px solid var(--bcwx-panel);
    border-radius: 50%;
  }

  .bcwx-obh .bcwx-now-mark > span {
    position: absolute;
    left: 50%;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transform: translateX(-50%);
  }

  .bcwx-obh .bcwx-now-mark.is-hi { background: var(--bcwx-obh-temp); color: var(--bcwx-obh-temp); }
  .bcwx-obh .bcwx-now-mark.is-lo { background: var(--bcwx-obh-wind); color: var(--bcwx-obh-wind); }
  .bcwx-obh .bcwx-now-mark.is-hi > span { bottom: 8px; }
  .bcwx-obh .bcwx-now-mark.is-lo > span { top: 8px; }
  .bcwx-obh .bcwx-now-mark.is-start > span { left: 0; transform: none; }
  .bcwx-obh .bcwx-now-mark.is-end > span { left: auto; right: 0; transform: none; }

  .bcwx-obh .bcwx-now-chart line {
    stroke: rgba(var(--bcwx-obh-fg), 0.12);
    stroke-dasharray: 2 3;
    vector-effect: non-scaling-stroke;
  }

  .bcwx-obh .bcwx-now-chart polygon {
    fill: var(--bcwx-obh-temp);
    opacity: 0.14;
  }

  .bcwx-obh .bcwx-now-chart polyline {
    fill: none;
    stroke: var(--bcwx-obh-temp);
    stroke-width: 2;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
  }

  .bcwx-obh .bcwx-now-axis {
    display: flex;
    justify-content: space-between;
    color: var(--bcwx-panel-muted);
    font-size: 0.7rem;
  }

  .bcwx-obh .bcwx-now-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
  }

  .bcwx-obh .bcwx-now-stat {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
  }

  .bcwx-obh .bcwx-now-k {
    color: var(--bcwx-panel-muted);
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .bcwx-obh .bcwx-now-v {
    color: var(--bcwx-obh-strong);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }

  /* The small tiles keep the temperature, wind and humidity; the
     conditions (the icon shows them) and the high and low are left to the
     large tile and the History section */
  .bcwx-obh .bcwx-now-grid li:not(:first-child) .bcwx-now-wx,
  .bcwx-obh .bcwx-now-grid li:not(:first-child) .bcwx-now-hilo {
    display: none;
  }

  .bcwx-obh .bcwx-now-grid li:not(:first-child) .bcwx-now-body {
    padding: 8px 10px 9px;
  }

  .bcwx-obh .bcwx-now-grid li:not(:first-child) .bcwx-now-name {
    overflow: hidden;
    font-size: 0.95rem;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .bcwx-obh .bcwx-now-grid li:not(:first-child) .bcwx-now-main .bcwx-now-icon {
    width: 34px;
    height: 34px;
  }

  .bcwx-obh .bcwx-now-grid li:not(:first-child) .bcwx-now-temp {
    font-size: 1.7rem;
  }

  .bcwx-obh .bcwx-now-grid li:not(:first-child) .bcwx-now-foot {
    padding-top: 4px;
  }

  /* A bigger gear on the large tile */
  .bcwx-obh .bcwx-now-grid li:first-child .bcwx-now-gear {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .bcwx-obh .bcwx-now-grid li:first-child .bcwx-now-gear svg {
    width: 20px;
    height: 20px;
  }

  .bcwx-obh .bcwx-now-grid li:first-child .bcwx-now-body {
    gap: 4px;
    padding: 16px 20px 16px;
  }

  .bcwx-obh .bcwx-now-grid li:first-child .bcwx-now-name {
    font-size: 1.95rem;
  }

  .bcwx-obh .bcwx-now-grid li:first-child .bcwx-now-main {
    gap: 10px;
    margin: 4px 0 8px;
  }

  .bcwx-obh .bcwx-now-grid li:first-child .bcwx-now-main .bcwx-now-icon {
    width: 88px;
    height: 88px;
  }

  .bcwx-obh .bcwx-now-grid li:first-child .bcwx-now-temp {
    font-size: 4.4rem;
  }

  .bcwx-obh .bcwx-now-grid li:first-child .bcwx-now-wx {
    font-size: 1.3rem;
  }

  .bcwx-obh .bcwx-now-grid li:first-child .bcwx-now-meta {
    font-size: 1.1rem;
  }

  .bcwx-obh .bcwx-now-grid li:first-child .bcwx-now-foot {
    font-size: 0.85rem;
  }
}

/* Tablets: rows of 5 are too narrow and wrapped rows get very tall, so the
   tiles become a swipeable strip showing three at a time */
@media (max-width: 900px) {
  .bcwx-obh .bcwx-now-grid {
    grid-auto-columns: calc((100% - 20px) / 3);
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .bcwx-obh .bcwx-now-grid li { scroll-snap-align: start; }
}

/* Phones: a swipeable strip of tiles, like the webcam thumbnails */
@media (max-width: 640px) {
  .bcwx-obh .bcwx-now-grid {
    grid-auto-columns: 64%;
    grid-auto-flow: column;
    grid-template-columns: none;
    padding: 4px 10px 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .bcwx-obh .bcwx-now-grid li { scroll-snap-align: start; }
}

/* ---------- A card on a member's dashboard (currentwx.js boardMount) ----------
   The section's own spacing goes; its controls sit in a row above the
   picture or chart (inside .bcwx-boardctl, so they don't stick to the
   screen as the page's do). */
.bcwx .bcwx-boardsec { margin: 0; padding: 0; }
.bcwx .bcwx-boardctl .bcwx-controls { margin: 0 0 10px; }
.bcwx .bcwx-boardsec > .bcwx-desc { margin: 0 0 10px; }

/* The saved images' title face (Barlow Semi Condensed, as on the Climate
   Hub). An @import has to come first; the build moves it to the top. */

/* BoulderCAST hourly (48-hour) forecast embed.
   Loads after currentwx.css and builds on it: the page, controls, frame,
   stat cards, chart and tooltip are the current conditions page's
   (.bcwx and .bcwx-obh). This file only adds the forecast's own pieces. */

/* The WP Dark Mode plugin rewrites the colors of every rule it can read, but
   leaves rules inside @container alone (as on the climate page). So the
   forecast is a container, and everything below sits in one query that
   always matches.
   currentwx.css's rules aren't in one, though, and when dark mode is
   switched on with the page open, the plugin adds recolored copies of them
   later in the page. Selectors here start from the id (#bcfc, not the
   class) so they always outrank those copies. */
#bcfc {
  container-type: inline-size;
}

@container (min-width: 0px) {

/* ---------- Colors ---------- */

/* Unlike the other pages' dark panels, the forecast takes on the page's
   look: white with deeper series colors in light mode (below), and the
   page's own dark background with the softer ones in dark mode (next rule).
   The --bcwx-panel names are reused so currentwx.css's pieces follow along. */
#bcfc .bcwx-obh {
  --bcwx-panel: #FFFFFF;          /* card and tile backgrounds */
  --bcwx-stage: transparent;
  --bcwx-panel-text: #1F2D3A;
  --bcwx-panel-muted: #56677A;
  --bcwx-obh-cardline: #DCE3EA;
  --bcfc-strong: #0E1A26;         /* names, times, values */
  --bcfc-halo: #FFFFFF;           /* outline behind chart labels: the background */
  --bcfc-plot: rgba(16, 32, 48, 0.015);
  --bcfc-shade: rgba(16, 32, 48, 0.06);       /* night, in the chart */
  --bcfc-shade-soft: rgba(16, 32, 48, 0.035); /* night cards and tiles */
  --bcfc-frame: #C9D3DD;
  --bcfc-grid: rgba(16, 32, 48, 0.08);
  --bcfc-vgrid: rgba(16, 32, 48, 0.12);
  --bcfc-tick: rgba(16, 32, 48, 0.3);
  --bcfc-strongline: rgba(16, 32, 48, 0.3);
  --bcfc-guide: rgba(16, 32, 48, 0.5);
  --bcfc-band: rgba(16, 32, 48, 0.05);       /* day bar */
  --bcfc-band-alt: rgba(16, 32, 48, 0.1);
  --bcfc-tip-bg: rgba(255, 255, 255, 0.97);
  --bcfc-tip-line: #CBD5DF;
  --bcfc-star: #D99A00;           /* the favorite city's star */
  --bcfc-hover: rgba(31, 111, 209, 0.06);      /* a card or tile that jumps the chart, hovered */
  --bcfc-focus: rgba(31, 111, 209, 0.1);       /* the chart's stretch just jumped to */
  --bcfc-focus-line: rgba(31, 111, 209, 0.55);
  --bcfc-nav-dim: rgba(255, 255, 255, 0.5);   /* the 10-day strip outside the chart's window */

  --bcwx-obh-temp: #D23B2E;
  --bcwx-obh-dew: #17834A;
  --bcwx-obh-wind: #1F6FD1;
  --bcwx-obh-gust: #A86200;
  --bcwx-obh-dir: #8A3FD1;
  --bcwx-obh-precip: #17834A;
  --bcwx-obh-sky: #6B7F93;
  --bcfc-rain: #2E9E5B;
  --bcfc-snow: #1A5FD6;
  --bcfc-rasn: #0E8C80;
  --bcfc-ice: #D23B2E;
  --bcfc-sleet: #C06A00;
  --bcfc-mix: #8A3FD1;
  --bcfc-pop: #8A9DB2;
}

html[data-wp-dark-mode-active] #bcfc .bcwx-obh {
  --bcwx-panel: rgba(255, 255, 255, 0.035);
  --bcwx-stage: transparent;
  --bcwx-panel-text: #E3E9EF;
  --bcwx-panel-muted: #A3B3C2;
  --bcwx-obh-cardline: rgba(255, 255, 255, 0.1);
  --bcfc-strong: #FFFFFF;
  --bcfc-halo: var(--wp-dark-mode-background-color, #232323);
  --bcfc-star: #F2C14E;
  --bcfc-hover: rgba(255, 255, 255, 0.06);
  --bcfc-focus: rgba(138, 180, 248, 0.14);
  --bcfc-focus-line: rgba(138, 180, 248, 0.6);
  --bcfc-nav-dim: rgba(0, 0, 0, 0.45);
  --bcfc-plot: rgba(255, 255, 255, 0.02);
  --bcfc-shade: rgba(0, 0, 0, 0.28);
  --bcfc-shade-soft: rgba(0, 0, 0, 0.18);
  --bcfc-frame: rgba(255, 255, 255, 0.16);
  --bcfc-grid: rgba(255, 255, 255, 0.08);
  --bcfc-vgrid: rgba(255, 255, 255, 0.14);
  --bcfc-tick: rgba(255, 255, 255, 0.28);
  --bcfc-strongline: rgba(255, 255, 255, 0.32);
  --bcfc-guide: rgba(255, 255, 255, 0.55);
  --bcfc-band: rgba(255, 255, 255, 0.05);
  --bcfc-band-alt: rgba(255, 255, 255, 0.1);
  --bcfc-tip-bg: rgba(20, 24, 28, 0.96);
  --bcfc-tip-line: rgba(255, 255, 255, 0.18);

  --bcwx-obh-temp: #F28B82;
  --bcwx-obh-dew: #81C995;
  --bcwx-obh-wind: #8AB4F8;
  --bcwx-obh-gust: #D9B26F;
  --bcwx-obh-dir: #D7A6F5;
  --bcwx-obh-precip: #81C995;
  --bcwx-obh-sky: #B8C7D6;
  --bcfc-rain: #81C995;
  --bcfc-snow: #6EA8FE;
  --bcfc-rasn: #7FD1C7;
  --bcfc-ice: #FF8A80;
  --bcfc-sleet: #E8A65D;
  --bcfc-mix: #D7A6F5;
  --bcfc-pop: #6F9FC8;
}

/* The frame: no panel of its own, just a thin outline under the red top */
#bcfc .bcwx-frame {
  border: 1px solid var(--bcwx-obh-cardline);
  border-top: 3px solid var(--bcwx-red);
  background: transparent;
}

#bcfc .bcwx-bar { color: var(--bcwx-panel-text); }
#bcfc .bcwx-frame-data .bcwx-frame-name { color: var(--bcfc-strong); }
#bcfc .bcwx-frame-data .bcwx-frame-place,
#bcfc .bcwx-frame-time { color: var(--bcwx-panel-muted); }
#bcfc .bcwx-error { color: var(--bcwx-panel-text); }

#bcfc .bcwx-spinner {
  border-color: var(--bcfc-grid);
  border-top-color: var(--bcwx-blue);
}

/* Tooltip */
#bcfc .bcwx-obh-tip {
  border-color: var(--bcfc-tip-line);
  background: var(--bcfc-tip-bg);
  box-shadow: 0 6px 18px rgba(10, 22, 34, 0.18);
  color: var(--bcwx-panel-text);
}

#bcfc .bcwx-obh-tiptitle,
#bcfc .bcwx-obh-tiprow > span:last-child { color: var(--bcfc-strong); }

/* One section, so no divider or extra space above it */
#bcfc .bcwx-section {
  margin-top: 0;
}

/* The City picker stays at the top of the screen while the forecast scrolls
   under it, so the city can be changed from anywhere on the page. This page
   has no jump bar to sit under (as currentwx.css expects), so it pins on its
   own: below the theme's sticky menu and the admin bar, whose height
   forecast.js measures into --bcfc-stick. Once pinned (is-pinned, also set by
   forecast.js) it gets the page's background and a shadow. The padding is
   there all along, so nothing moves when it pins. */
#bcfc .bcwx-section > .bcwx-controls {
  position: sticky;
  top: var(--bcfc-stick, 0px);
  z-index: 30;
  margin-right: -10px;
  margin-left: -10px;
  padding: 8px 10px;
  border-radius: 0 0 12px 12px;
}
#bcfc .bcwx-section > .bcwx-controls.is-pinned {
  background: var(--bcfc-halo);
  box-shadow: 0 6px 14px rgba(10, 22, 34, 0.18);
}

/* Favorite star beside the City picker: hollow until the city on screen is
   the favorite, then filled in gold */
#bcfc .bcfc-cityrow {
  display: flex;
  gap: 8px;
}
#bcfc .bcfc-cityrow > .bcwx-stepper { flex: 1 1 auto; min-width: 0; }
#bcfc .bcfc-fav {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--bcwx-control-line);
  border-radius: 10px;
  background: var(--bcwx-surface);
  color: var(--bcwx-muted);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
#bcfc .bcfc-fav:hover { background: var(--bcwx-track); color: var(--bcwx-blue-deep); }
#bcfc .bcfc-fav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
#bcfc .bcfc-fav.is-fav { color: var(--bcfc-strong); }
#bcfc .bcfc-fav.is-fav svg { fill: var(--bcfc-star); stroke: var(--bcfc-star); }

/* A forecast over 12 hours old: the time turns yellow (the title says why) */
#bcfc .bcwx-frame-time.is-stale {
  color: var(--bcwx-obh-gust);
  font-weight: 700;
}

/* ---------- Day and night cards (Tonight, Saturday, ...) ---------- */

/* Dividers between the cards; the grid clips the outer edges, as with the
   current conditions page's stat cards */
/* Up to four day and night cards: one row of four when there's room, else
   two by two (a column on phones, below) */
#bcfc .bcfc-periods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid var(--bcwx-obh-cardline);
  border-radius: 10px;
  background: var(--bcwx-panel);
}

#bcfc .bcfc-period {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  margin: 0 -1px -1px 0;
  padding: 14px 16px 15px;
  border-right: 1px solid var(--bcwx-obh-cardline);
  border-bottom: 1px solid var(--bcwx-obh-cardline);
  color: var(--bcwx-panel-text);
}

#bcfc .bcfc-period.is-night {
  background: var(--bcfc-shade-soft);
}

#bcfc .bcfc-period-name {
  color: var(--bcfc-strong);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}

#bcfc .bcfc-period-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

#bcfc .bcfc-period-main img {
  flex: none;
  width: 52px;
  height: 52px;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

#bcfc .bcfc-period-temp {
  display: flex;
  flex-direction: column;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

#bcfc .bcfc-period-temp small {
  margin-bottom: 3px;
  color: var(--bcwx-panel-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#bcfc .bcfc-period-temp.is-warm { color: var(--bcwx-obh-temp); }
#bcfc .bcfc-period-temp.is-cool { color: var(--bcwx-obh-wind); }

#bcfc .bcfc-period-text {
  color: var(--bcfc-strong);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

/* The written forecast: sky, precipitation, temperature, then wind */
#bcfc .bcfc-period-desc {
  margin: 4px 0 0;
  color: var(--bcwx-panel-text);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Likely precipitation keeps its type's color, without the bold */
#bcfc .bcfc-period-desc .is-likely {
  font-weight: 600;
}

/* ---------- Every 3 hours ---------- */

/* One row of tiles: all of them on a wide screen, swiped sideways when they
   don't all fit (phones and narrower windows) */
#bcfc .bcfc-blocks {
  display: grid;
  grid-auto-columns: minmax(60px, 1fr);
  grid-auto-flow: column;
  margin: 0;
  padding: 0 0 4px;
  overflow-x: auto;
  border: 1px solid var(--bcwx-obh-cardline);
  border-radius: 10px;
  background: var(--bcwx-panel);
  list-style: none;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--bcfc-tick) transparent;
}

#bcfc .bcfc-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  margin: 0;
  padding: 10px 2px 9px;
  border-left: 1px solid var(--bcwx-obh-cardline);
  color: var(--bcwx-panel-text);
  font-size: 0.8rem;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  scroll-snap-align: start;
  list-style: none;
}

#bcfc .bcfc-block::before {
  content: none;
}

#bcfc .bcfc-block:first-child {
  border-left: 0;
}

#bcfc .bcfc-block.is-night {
  background: var(--bcfc-shade-soft);
}

/* A new day starts: a stronger divider, and its name in red */
#bcfc .bcfc-block.is-newday {
  border-left: 2px solid var(--bcfc-strongline);
}

#bcfc .bcfc-block-day {
  color: var(--bcwx-panel-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#bcfc .bcfc-block.is-newday .bcfc-block-day,
#bcfc .bcfc-block:first-child .bcfc-block-day {
  color: var(--bcfc-strong);
}

#bcfc .bcfc-block-time {
  color: var(--bcfc-strong);
  font-weight: 700;
}

#bcfc .bcfc-block img {
  display: block;
  width: 40px;
  height: 40px;
  margin: 4px 0 2px;
  padding: 0;
  border: 0;
  box-shadow: none;
}

/* On a chip in the temperature's color (the Climate Hub's scale, set by
   forecast.js), with a faint edge so white and pale yellow show on white */
#bcfc .bcfc-block-temp {
  min-width: 46px;
  padding: 2px 6px;
  border-radius: 7px;
  background: var(--bcfc-chip, transparent);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  color: var(--bcfc-chip-text, var(--bcwx-obh-temp));
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.15;
}

#bcfc .bcfc-block-wind {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 4px;
  color: var(--bcwx-obh-wind);
  font-weight: 600;
}

/* Gusts on a line of their own (kept, blank, when there are none, so the
   tiles' rows line up) */
#bcfc .bcfc-block-gust {
  color: var(--bcwx-obh-gust);
  font-size: 0.72rem;
  font-weight: 600;
}

#bcfc .bcfc-block-amt {
  color: var(--bcwx-panel-muted);
  font-size: 0.72rem;
}

#bcfc .bcfc-arrow {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#bcfc .bcfc-block-pop {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--bcwx-panel-muted);
  font-size: 0.76rem;
}

#bcfc .bcfc-block-pop svg {
  fill: currentColor;
}

/* Snow accumulation under a tile's precipitation chance */
#bcfc .bcfc-block-snow {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--bcfc-snow);
  font-size: 0.76rem;
  font-weight: 700;
}

#bcfc .bcfc-block-snow svg { flex: none; }

#bcfc .bcfc-chart text.c-note.c-snowamt { fill: var(--bcfc-snow); }

/* Likely precipitation (30% or more), in its type's color: the tiles and the
   day and night cards */
#bcfc .is-likely {
  color: var(--bcfc-rain);
  font-weight: 700;
}

#bcfc .is-likely.is-snow { color: var(--bcfc-snow); }
#bcfc .is-likely.is-rasn { color: var(--bcfc-rasn); }
#bcfc .is-likely.is-ice { color: var(--bcfc-ice); }
#bcfc .is-likely.is-sleet { color: var(--bcfc-sleet); }
#bcfc .is-likely.is-mix { color: var(--bcfc-mix); }

/* ---------- Chart heading hint and color key ---------- */

#bcfc .bcfc-h-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

#bcfc .bcfc-hint {
  color: var(--bcwx-panel-muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

#bcfc .bcfc-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin: 10px 0 0;
  color: var(--bcwx-panel-muted);
  font-size: 0.8rem;
}

#bcfc .bcfc-legend[hidden] {
  display: none;
}

#bcfc .bcfc-legend-k {
  color: var(--bcwx-obh-precip);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#bcfc .bcfc-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#bcfc .bcfc-sw {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--bcfc-pop);
  opacity: 0.8;
}

#bcfc .bcfc-sw.is-rain { background: var(--bcfc-rain); }
#bcfc .bcfc-sw.is-snow { background: var(--bcfc-snow); }
#bcfc .bcfc-sw.is-rasn { background: var(--bcfc-rasn); }
#bcfc .bcfc-sw.is-ice { background: var(--bcfc-ice); }
#bcfc .bcfc-sw.is-sleet { background: var(--bcfc-sleet); }
#bcfc .bcfc-sw.is-mix { background: var(--bcfc-mix); }

/* ---------- Chart additions ---------- */

#bcfc .bcfc-chart text.c-day {
  fill: var(--bcfc-strong);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Day bar: alternating bands, one per calendar day */
#bcfc .bcfc-chart .c-dayband { fill: var(--bcfc-band); }
#bcfc .bcfc-chart .c-dayband.is-alt { fill: var(--bcfc-band-alt); }

/* The weekday on each day's first hour label */
#bcfc .bcfc-chart text .c-xday {
  fill: var(--bcfc-strong);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#bcfc .bcfc-chart .c-pt {
  fill: var(--bcwx-obh-temp);
  stroke: var(--bcfc-halo);
  stroke-width: 1.5;
}

#bcfc .bcfc-chart .c-arrowline {
  stroke: var(--bcfc-grid);
}

/* The chart pieces currentwx.css draws for a dark panel, in this page's
   colors so they work on light and dark pages */
#bcfc .bcfc-chart text { fill: var(--bcwx-panel-muted); }
#bcfc .bcfc-chart .c-plot { fill: var(--bcfc-plot); }
#bcfc .bcfc-chart .c-night { fill: var(--bcfc-shade); }
#bcfc .bcfc-chart .c-frame { stroke: var(--bcfc-frame); }
#bcfc .bcfc-chart .c-grid { stroke: var(--bcfc-grid); }
#bcfc .bcfc-chart .c-vgrid { stroke: var(--bcfc-vgrid); }
#bcfc .bcfc-chart .c-tick { stroke: var(--bcfc-tick); }
#bcfc .bcfc-chart .c-guide { stroke: var(--bcfc-guide); }
#bcfc .bcfc-chart .c-hoverdot { stroke: var(--bcfc-halo); }
#bcfc .bcfc-chart .c-mark { stroke: var(--bcfc-halo); }

/* currentwx.css's series colors, restated here so the plugin's recolored
   copies of them don't win */
#bcfc .bcfc-chart .c-line-temp { stroke: var(--bcwx-obh-temp); }
#bcfc .bcfc-chart .c-line-dew { stroke: var(--bcwx-obh-dew); }
#bcfc .bcfc-chart .c-line-wind { stroke: var(--bcwx-obh-wind); }
#bcfc .bcfc-chart .c-gust { stroke: var(--bcwx-obh-gust); }
#bcfc .bcfc-chart .c-dir { stroke: var(--bcwx-obh-dir); }
#bcfc .bcfc-chart .c-hoverdot { fill: var(--bcwx-obh-temp); }
#bcfc .bcfc-chart .c-mark-warm { fill: var(--bcwx-obh-temp); }
#bcfc .bcfc-chart .c-mark-cool { fill: var(--bcwx-obh-wind); }

/* Value labels: a halo in the background color keeps them readable over lines */
#bcfc .bcfc-chart text.c-note {
  fill: var(--bcfc-strong);
  stroke: var(--bcfc-halo);
}

/* Panel names and notes keep their series colors over the rule above */
#bcfc .bcfc-chart text.c-temp, #bcfc .bcfc-chart text.c-note.c-note-warm { fill: var(--bcwx-obh-temp); }
#bcfc .bcfc-chart text.c-dew { fill: var(--bcwx-obh-dew); }
#bcfc .bcfc-chart text.c-wind, #bcfc .bcfc-chart text.c-note.c-note-cool { fill: var(--bcwx-obh-wind); }
#bcfc .bcfc-chart text.c-gustlab { fill: var(--bcwx-obh-gust); }
#bcfc .bcfc-chart text.c-precip { fill: var(--bcwx-obh-precip); }
#bcfc .bcfc-chart text.c-none { fill: var(--bcwx-panel-muted); }

/* The snow part of the precipitation total */
#bcfc .bcfc-chart text .c-snowtot { fill: var(--bcfc-snow); }

#bcfc .bcfc-chart .c-arrow path {
  fill: none;
  stroke: var(--bcwx-obh-dir);
  stroke-width: 2;
}

#bcfc .bcfc-chart .c-area-sky {
  fill: var(--bcwx-obh-sky);
  fill-opacity: 0.18;
  stroke: none;
}

#bcfc .bcfc-chart .c-line-sky {
  stroke: var(--bcwx-obh-sky);
  stroke-width: 2;
}

#bcfc .bcfc-chart text.c-skylab { fill: var(--bcwx-obh-sky); }

/* Chance bars, colored by the type of precipitation expected that hour */
#bcfc .bcfc-chart .c-bar-pop { fill: var(--bcfc-pop); fill-opacity: 0.55; }
#bcfc .bcfc-chart .c-pop-rain { fill: var(--bcfc-rain); }
#bcfc .bcfc-chart .c-pop-snow { fill: var(--bcfc-snow); }
#bcfc .bcfc-chart .c-pop-rasn { fill: var(--bcfc-rasn); }
#bcfc .bcfc-chart .c-pop-ice { fill: var(--bcfc-ice); }
#bcfc .bcfc-chart .c-pop-sleet { fill: var(--bcfc-sleet); }
#bcfc .bcfc-chart .c-pop-mix { fill: var(--bcfc-mix); }

#bcfc .bcfc-chart text.c-note.c-amt {
  font-size: 11.5px;
}

/* ---------- Save image ---------- */

/* The section headings with a "Save image" button at the right */
#bcfc .bcfc-h-save {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}

/* Just the download icon; the words stay for screen readers */
#bcfc .bcfc-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: -5px 0 -5px auto;
  padding: 5px 8px;
  border: 1px solid var(--bcwx-control-line);
  border-radius: 999px;
  background: var(--bcwx-surface);
  color: var(--bcwx-panel-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.2;
  text-transform: none;
  cursor: pointer;
}
#bcfc .bcfc-savetext {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
#bcfc .bcfc-save + .bcfc-save { margin-left: 6px; }
#bcfc .bcfc-savelabel { margin-left: 4px; }
#bcfc .bcfc-save:hover { background: var(--bcwx-track); color: var(--bcwx-blue-deep); }
#bcfc .bcfc-save[aria-busy="true"] { opacity: 0.6; cursor: progress; }
#bcfc .bcfc-save.is-failed { border-color: var(--bcwx-obh-temp); color: var(--bcwx-obh-temp); }

/* The image is drawn from this sheet, kept off-screen. It follows the Climate
   Hub's saved images: the page's light or dark colors on a plain backdrop a
   shade off the page's, the logo's blue, gold and red in a band along the
   top, a header row, the section on a card, and one line under it. A fixed
   width that suits social media; it is its own container, so the section
   inside lays out for the sheet's width rather than the screen's. */
#bcfc .bcfc-sheet {
  --bcfc-card: #FFFFFF;
  --bcfc-halo: #FFFFFF;
  --bcfc-title: "Barlow Semi Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  position: fixed;
  top: 0;
  left: -10000px;
  z-index: -1;
  container-type: inline-size;
  box-sizing: border-box;
  width: 1200px;
  padding: 26px 20px 16px;
  background: #F1F4F7;
  color: var(--bcwx-panel-text);
  font-size: 16px;
  line-height: 1.5;
  pointer-events: none;
}
html[data-wp-dark-mode-active] #bcfc .bcfc-sheet {
  --bcfc-card: #2A2B2C;
  --bcfc-halo: #2A2B2C;
  background: #1E1F1F;
}

#bcfc .bcfc-sheet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #0052A3 0 33.34%, #F9C802 33.34% 66.67%, #DA0A0E 66.67% 100%);
}

/* Header row: the section's title with the city under it on the left, the
   dates on the right in the title's size and face, the hours under them */
#bcfc .bcfc-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 0 4px 14px;
}
#bcfc .bcfc-sheet-title,
#bcfc .bcfc-sheet-when {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
#bcfc .bcfc-sheet-when {
  flex: none;
  align-items: flex-end;
  max-width: 45%;
  text-align: right;
}
#bcfc .bcfc-sheet-headline {
  color: var(--bcfc-strong);
  font-family: var(--bcfc-title);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.005em;
}
#bcfc .bcfc-sheet-note {
  color: var(--bcwx-panel-muted);
  font-size: 1rem;
  font-weight: 600;
}

/* The city, after a map pin in the brand red */
#bcfc .bcfc-sheet-city {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  color: var(--bcfc-strong);
  font-family: var(--bcfc-title);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.15;
}
#bcfc .bcfc-sheet-city::before {
  content: "";
  flex: none;
  width: 0.6em;
  height: 0.6em;
  border: 0.17em solid #C41E3A;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg) translate(0.05em, -0.05em);
}

/* The section on a card in the page's own colors; nothing scrolls or hides */
#bcfc .bcfc-sheet-body {
  padding: 18px;
  border: 1px solid var(--bcwx-obh-cardline);
  border-radius: 14px;
  background: var(--bcfc-card);
  box-shadow: 0 2px 10px rgba(22, 34, 46, 0.07);
}
html[data-wp-dark-mode-active] #bcfc .bcfc-sheet-body { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3); }
#bcfc .bcfc-sheet-body > .bcfc-periods { margin-top: 0; }
#bcfc .bcfc-sheet-body > .bcfc-blocks {
  grid-auto-columns: 1fr;
  padding: 0;
  overflow: visible;
}
#bcfc .bcfc-sheet-body .bcwx-obh-chartwrap { overflow: visible; }

/* Everything a size up, to read well in a feed */
#bcfc .bcfc-sheet .bcfc-period { padding: 18px 20px 20px; gap: 6px; }
#bcfc .bcfc-sheet .bcfc-period-name { font-size: 1.25rem; }
#bcfc .bcfc-sheet .bcfc-period-main img { width: 66px; height: 66px; }
#bcfc .bcfc-sheet .bcfc-period-temp { font-size: 2.6rem; }
#bcfc .bcfc-sheet .bcfc-period-text { font-size: 1.15rem; }
#bcfc .bcfc-sheet .bcfc-period-desc { font-size: 1.02rem; }

#bcfc .bcfc-sheet .bcfc-block { gap: 3px; padding: 14px 2px 14px; font-size: 1.02rem; }
#bcfc .bcfc-sheet .bcfc-block-day { font-size: 0.82rem; }
#bcfc .bcfc-sheet .bcfc-block img { width: 54px; height: 54px; }
#bcfc .bcfc-sheet .bcfc-block-temp { min-width: 58px; font-size: 1.45rem; }
#bcfc .bcfc-sheet .bcfc-block-gust,
#bcfc .bcfc-sheet .bcfc-block-amt { font-size: 0.9rem; }
#bcfc .bcfc-sheet .bcfc-block-pop,
#bcfc .bcfc-sheet .bcfc-block-snow { font-size: 0.95rem; }
#bcfc .bcfc-sheet .bcfc-block-pop svg,
#bcfc .bcfc-sheet .bcfc-block-snow svg { width: 15px; height: 15px; }
#bcfc .bcfc-sheet-body .bcfc-legend { margin-top: 8px; }

/* One line under the card: the notes on the left, the wordmark in the
   middle, the link on the right */
#bcfc .bcfc-sheet-foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin: 14px 4px 0;
  color: var(--bcwx-panel-muted);
  font-size: 0.82rem;
}
#bcfc .bcfc-sheet img.bcfc-sheet-logo {
  display: block;
  width: auto;
  height: 32px;
  margin: 0;
  border: 0;
  box-shadow: none;
}
/* The wordmark lifted off the dark backdrop with a soft glow */
html[data-wp-dark-mode-active] #bcfc .bcfc-sheet img.bcfc-sheet-logo {
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.35));
}
/* Stands in for the wordmark if its file can't load */
#bcfc .bcfc-sheet-wordmark {
  color: var(--bcfc-strong);
  font-family: var(--bcfc-title);
  font-size: 1.6rem;
  font-weight: 800;
}
#bcfc .bcfc-sheet-cta {
  justify-self: end;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: right;
}
#bcfc .bcfc-sheet-cta strong { color: var(--bcfc-strong); font-weight: 800; }

/* ---------- The page's split layout (forecast.html, bcfc-split) ----------
   No outer box: the city, hours and update time sit on the page, and each
   part of the forecast is its own soft card with a big title and the city
   over it. (A dashboard card keeps the single box.) */
#bcfc .bcfc-split {
  border: 0;
  background: transparent;
}
#bcfc .bcfc-split > .bcwx-bar {
  align-items: flex-end;
  padding: 6px 2px 4px;
}
#bcfc .bcfc-split .bcwx-frame-name {
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
#bcfc .bcfc-split .bcwx-frame-place { margin-top: 4px; font-size: 0.95rem; }
#bcfc .bcfc-split .bcwx-stage { background: transparent; }
#bcfc .bcfc-split .bcwx-obh-body { padding: 0; }

#bcfc .bcfc-group {
  margin: 16px 0 0;
  padding: 16px 18px 18px;
  border: 1px solid var(--bcwx-obh-cardline);
  border-radius: 14px;
  background: var(--bcfc-group-bg, transparent);
  box-shadow: 0 1px 3px rgba(16, 32, 48, 0.05);
}
html[data-wp-dark-mode-active] #bcfc .bcfc-group {
  --bcfc-group-bg: rgba(255, 255, 255, 0.025);
  box-shadow: none;
}

/* Section titles: the city in small red capitals over a big title, the
   Save image buttons at the right */
#bcfc .bcfc-gh {
  align-items: flex-end;
  margin: 0 0 12px;
}
#bcfc .bcfc-gh-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
#bcfc .bcfc-gh-city {
  color: var(--bcwx-red);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
#bcfc .bcfc-gh-city:empty { display: none; }
html[data-wp-dark-mode-active] #bcfc .bcfc-gh-city { color: #FF7A70; }
#bcfc h2.bcfc-gh-title {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--bcfc-strong);
  font-family: inherit;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-transform: none;
}
#bcfc h2.bcfc-gh-title::before,
#bcfc h2.bcfc-gh-title::after { content: none; }
#bcfc .bcfc-gh .bcfc-hint { margin-top: 3px; font-size: 0.85rem; }
#bcfc .bcfc-gh .bcfc-save { margin-bottom: 0; }

/* The cards inside lose the outer outline they'd double up */
#bcfc .bcfc-group .bctd-card.is-bare .bctd-foot { padding-bottom: 0; }

@container (max-width: 560px) {
  #bcfc .bcfc-split .bcwx-frame-name { font-size: 1.6rem; }
  #bcfc .bcfc-group { margin-top: 12px; padding: 12px 12px 14px; border-radius: 12px; }
  #bcfc h2.bcfc-gh-title { font-size: 1.35rem; }
}

/* ---------- Jump bar, under the Location menu ---------- */
/* One row of buttons to each section, the one in view in red (forecast.js
   marks it), like the current conditions page's jump bar but slimmer, as it
   stays pinned with the menu */
#bcfc .bcwx-section > .bcwx-controls { row-gap: 10px; }
#bcfc .bcfc-jump {
  display: flex;
  flex: 1 1 100%;
  gap: 4px;
  padding: 4px;
  overflow-x: auto;
  border-radius: 12px;
  background: var(--bcwx-track);
  scrollbar-width: none;
}
#bcfc .bcfc-jump::-webkit-scrollbar { display: none; }
#bcfc .bcfc-jump a,
#bcfc .bcfc-jump a:visited {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: none;
  box-shadow: none;
  color: var(--bcwx-ink);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
#bcfc .bcfc-jump a:hover { background: var(--bcwx-blue-wash); color: var(--bcwx-blue-deep); }
#bcfc .bcfc-jump a:focus-visible { outline: 2px solid var(--bcwx-blue); outline-offset: -2px; }
#bcfc .bcfc-jump a[aria-current="true"] {
  background: var(--bcwx-red);
  color: #FFFFFF;
  box-shadow: 0 1px 3px rgba(122, 16, 34, 0.35);
}
#bcfc .bcfc-jump-short { display: none; }

/* When the forecast was made, under the menu */
#bcfc .bcfc-meta {
  margin: 0;
  padding: 0 2px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}
#bcfc .bcfc-meta:empty { display: none; }

/* ---------- Headline: anything notable, a line each ---------- */
#bcfc .bcfc-headline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0 0;
}
#bcfc .bcfc-headline[hidden] { display: none; }
#bcfc .bcfc-hl {
  --bcfc-hl: var(--bcwx-obh-wind);
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--bcwx-obh-cardline);
  border-left: 4px solid var(--bcfc-hl);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bcfc-hl) 8%, transparent);
  box-shadow: none;
  color: var(--bcfc-strong);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.3;
  text-align: left;
  text-transform: none;
  cursor: pointer;
}
#bcfc .bcfc-hl:hover { background: color-mix(in srgb, var(--bcfc-hl) 14%, transparent); }
#bcfc .bcfc-hl:focus-visible { outline: 2px solid var(--bcwx-blue); outline-offset: 2px; }
#bcfc .bcfc-hl.is-snow,
#bcfc .bcfc-hl.is-cold { --bcfc-hl: var(--bcfc-snow); }
#bcfc .bcfc-hl.is-rain { --bcfc-hl: var(--bcfc-rain); }
#bcfc .bcfc-hl.is-ice,
#bcfc .bcfc-hl.is-hot { --bcfc-hl: var(--bcwx-obh-temp); }
#bcfc .bcfc-hl.is-wind { --bcfc-hl: var(--bcwx-obh-gust); }
#bcfc .bcfc-hl.is-fire { --bcfc-hl: var(--bcfc-sleet); }
#bcfc .bcfc-hl-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bcfc-hl);
  color: #FFFFFF;
}
#bcfc .bcfc-hl-icon svg { width: 16px; height: 16px; fill: currentColor; }
#bcfc .bcfc-hl-text { flex: 1 1 auto; min-width: 0; }
#bcfc .bcfc-hl-go {
  flex: none;
  color: var(--bcwx-panel-muted);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Cards and tiles that jump the chart to their hours ---------- */
#bcfc .bcfc-period[data-t0],
#bcfc .bcfc-block[data-t0] {
  cursor: pointer;
  transition: background-color 0.15s ease;
}
#bcfc .bcfc-period[data-t0]:hover,
#bcfc .bcfc-block[data-t0]:hover { background-color: var(--bcfc-hover); }
#bcfc .bcfc-period[data-t0]:focus-visible,
#bcfc .bcfc-block[data-t0]:focus-visible { outline: 2px solid var(--bcwx-blue); outline-offset: -2px; }

/* ---------- The 3-hour tiles through 10 days ---------- */
/* Day buttons over the row, the day at its left edge in red; the row
   scrolls to a day when one is pressed */
#bcfc .bcfc-daychips {
  display: flex;
  margin: 0 0 10px;
}
#bcfc .bcfc-daychips[hidden] { display: none; }
#bcfc .bcfc-daychips button { padding: 6px 11px; font-size: 0.85rem; }
/* A new day: a stronger divider than before, now that the row is long */
#bcfc .bcfc-blocks .bcfc-block.is-newday { border-left: 3px solid var(--bcfc-strongline); }
#bcfc .bcfc-block { position: relative; }
/* Past about day 8 the steps are 6 hours: a small mark over the day name
   (all the tiles get the room for it, so the rows still line up) */
#bcfc .bcfc-blocks.has-six .bcfc-block { padding-top: 17px; }
#bcfc .bcfc-block-step {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 4px;
  border-radius: 4px;
  background: var(--bcfc-band-alt);
  color: var(--bcwx-panel-muted);
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1.5;
}
/* ---------- The chart's zoom buttons and 10-day strip ---------- */
#bcfc .bcfc-zoom { margin: 0 0 12px; }
#bcfc .bcfc-zoom[hidden] { display: none; }
#bcfc .bcfc-zoom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 0 0 8px;
}
#bcfc .bcfc-zoom-seg button { padding: 6px 12px; font-size: 0.88rem; }
#bcfc .bcfc-zoom-seg button:disabled { opacity: 0.4; cursor: default; }
#bcfc .bcfc-zoom-step {
  display: flex;
  align-items: center;
  gap: 8px;
}
#bcfc .bcfc-zoom-step .bcwx-step {
  min-width: 34px;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--bcwx-control-line);
  border-radius: 9px;
  background: var(--bcwx-surface);
  color: var(--bcwx-ink);
  font-size: 1.2rem;
  line-height: 1;
}
#bcfc .bcfc-zoom-step .bcwx-step:disabled { opacity: 0.35; cursor: default; }
#bcfc .bcfc-zoom-range {
  min-width: 15ch;
  color: var(--bcfc-strong);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}
#bcfc .bcfc-nav {
  position: relative;
  height: 48px;
  overflow: hidden;
  border: 1px solid var(--bcwx-obh-cardline);
  border-radius: 10px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
#bcfc .bcfc-nav.is-dragging { cursor: grabbing; }
#bcfc .bcfc-nav:focus-visible { outline: 2px solid var(--bcwx-blue); outline-offset: 2px; }
#bcfc .bcfc-nav svg { display: block; }
#bcfc .bcfc-nav .n-day { fill: var(--bcfc-band); }
#bcfc .bcfc-nav .n-day.is-alt { fill: transparent; }
#bcfc .bcfc-nav .n-lab {
  fill: var(--bcwx-panel-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
#bcfc .bcfc-nav .n-temp { fill: none; stroke: var(--bcwx-obh-temp); stroke-width: 1.6; stroke-linejoin: round; }
#bcfc .bcfc-nav .n-pop { opacity: 0.75; }
#bcfc .bcfc-nav .c-pop-rain { fill: var(--bcfc-rain); }
#bcfc .bcfc-nav .c-pop-snow { fill: var(--bcfc-snow); }
#bcfc .bcfc-nav .c-pop-rasn { fill: var(--bcfc-rasn); }
#bcfc .bcfc-nav .c-pop-ice { fill: var(--bcfc-ice); }
#bcfc .bcfc-nav .c-pop-sleet { fill: var(--bcfc-sleet); }
#bcfc .bcfc-nav .c-pop-mix { fill: var(--bcfc-mix); }
#bcfc .bcfc-nav .n-dim { fill: var(--bcfc-nav-dim); }
#bcfc .bcfc-nav .n-win { fill: none; stroke: var(--bcwx-red); stroke-width: 2; }

/* Past day 2: where the model's 3- and 6-hour steps start */
#bcfc .bcfc-chart .c-coarse { stroke: var(--bcfc-guide); stroke-width: 1; stroke-dasharray: 4 4; opacity: 0.6; }
#bcfc .bcfc-chart .c-coarselab { fill: var(--bcwx-panel-muted); font-size: 11px; font-weight: 700; }
#bcfc .bcfc-tipnote {
  max-width: 220px;
  margin-top: 6px;
  color: var(--bcwx-panel-muted);
  font-size: 0.75rem;
  line-height: 1.3;
}

/* The stretch just jumped to, lit up and then fading */
#bcfc .bcfc-chart .c-focus {
  fill: var(--bcfc-focus);
  stroke: var(--bcfc-focus-line);
  stroke-width: 1.5;
  pointer-events: none;
  animation: bcfc-focus 4s ease-out forwards;
}

@container (max-width: 560px) {
  #bcfc .bcfc-jump a { padding: 7px 4px; font-size: 0.82rem; }
  #bcfc .bcfc-jump-full { display: none; }
  #bcfc .bcfc-jump-short { display: inline; }
  #bcfc .bcfc-hl { font-size: 0.92rem; padding: 9px 12px; }
  #bcfc .bcfc-hl-go { display: none; }
  #bcfc .bcfc-zoom-row { justify-content: center; }
}
/* ---------- Wide and small screens ---------- */

@container (min-width: 861px) {
  #bcfc .bcfc-periods { grid-template-columns: repeat(4, 1fr); }
  /* Fewer cards (the data runs out) still fill the row */
  #bcfc .bcfc-periods[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
  #bcfc .bcfc-periods[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
}

/* Phones: each day or night card becomes a compact row, icon on the left
   and the temperature on the right, so all of them fit on about one screen */
@container (max-width: 560px) {
  #bcfc .bcfc-periods { grid-template-columns: 1fr; }
  #bcfc .bcfc-period {
    display: grid;
    grid-template-areas: "icon name temp" "icon text temp" "desc desc desc";
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 1px 12px;
    padding: 11px 14px 12px;
  }
  #bcfc .bcfc-period-main { display: contents; }
  #bcfc .bcfc-period-main img { grid-area: icon; align-self: start; width: 44px; height: 44px; }
  #bcfc .bcfc-period-name { grid-area: name; }
  #bcfc .bcfc-period-text { grid-area: text; font-size: 0.88rem; }
  #bcfc .bcfc-period-temp { grid-area: temp; align-items: flex-end; font-size: 1.7rem; }
  #bcfc .bcfc-period-desc { grid-area: desc; margin-top: 6px; font-size: 0.86rem; }
}

@media (max-width: 560px) {
  #bcfc .bcfc-blocks { grid-auto-columns: 64px; }
  #bcfc .bcfc-block img { width: 38px; height: 38px; }
  #bcfc .bcfc-block-temp { font-size: 1.1rem; }
}

/* ---------- A card on a member's dashboard (forecast.js boardHTML) ---------- */
/* No page margins; its city menu in a row above the forecast */
#bcfc .bcfc-board { margin: 0; padding: 0; }
#bcfc .bcfc-boardctl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 12px;
}
#bcfc .bcfc-boardctl .bcwx-label { margin: 0; }

}   /* @container */

/* The chart's lit-up stretch fades (outside the query: a keyframes rule has no colors) */
@keyframes bcfc-focus {
  0%, 55% { opacity: 1; }
  100% { opacity: 0; }
}

/* BoulderCAST 10-day forecast (tenday.js builds it). Narrow spots (a
   sidebar, a phone) show the days as rows with the high-low bars running
   across; from 600px wide they're columns with the bars standing up.
   The WP Dark Mode plugin rewrites the colors of every rule it can read but
   leaves rules inside @container alone, so the widget is a container and its
   styles sit in one query that always matches, with its own dark colors
   under html[data-wp-dark-mode-active], as on the hourly forecast page.
   On the hourly page this file is built into forecast-styles.css
   (tools/build_forecast_css.py); elsewhere it's linked on its own. */

/* Out here because @container rules reach only what's inside the box, not
   the box itself (no colors, so nothing for the plugin to change) */
.bctd {
  container: bctd / inline-size;
  position: relative;
  margin: 0 0 1.5em;
}
.bctd[data-bar="off"] { margin: 0; }

@container (min-width: 0px) {

/* ---------- Colors: the hourly forecast page's ---------- */

.bctd .bctd-card {
  --bctd-panel: #FFFFFF;
  --bctd-text: #1F2D3A;
  --bctd-muted: #56677A;
  --bctd-line: #DCE3EA;
  --bctd-strong: #0E1A26;
  --bctd-track: rgba(16, 32, 48, 0.07);
  --bctd-today: rgba(26, 93, 173, 0.06);
  --bctd-link: #1A5DAD;
  --bctd-hover: rgba(16, 32, 48, 0.06);
  --bctd-wind: #1F6FD1;
  --bctd-gust: #A86200;
  --bctd-rain: #2E9E5B;
  --bctd-snow: #1A5FD6;
  --bctd-rasn: #0E8C80;
  --bctd-ice: #D23B2E;
  --bctd-sleet: #C06A00;
  --bctd-mix: #8A3FD1;
  --bctd-pop-bg: #FFFFFF;
  --bctd-solid: #FFFFFF;          /* the panel as a solid color: ring gaps, halos */
  --bctd-on-link: #FFFFFF;        /* text on the toggle's chosen button */
  --bctd-day-title: #1A5DAD;      /* the dials' day names */
  --bctd-s0: #F1F4F7;             /* dials' cloud ring: clear ... */
  --bctd-s1: #CBD4DE;
  --bctd-s2: #A6B3C0;
  --bctd-s3: #85929F;
  --bctd-s4: #5F6B77;             /* ... overcast */
  --bctd-sock: #D8342A;
  --bctd-hot: #D8342A;
  --bctd-hot-edge: #7A1510;
  --bctd-fire: #F26B1D;
  --bctd-fire-edge: #8F2D0A;
  --bctd-bolt: #FFC21A;
  --bctd-bolt-edge: #8A5A00;
  --bctd-icicle: #A9DCF7;
  --bctd-icicle-edge: #2C6FA8;
  --bctd-daylight: #F3C94F;
  --bctd-nightfall: #34476E;
  --bctd-snow-text: #1A5FD6;
  --bctd-now: #D21F2E;
  --bctd-slot-on: rgba(16, 32, 48, 0.16);
}

html[data-wp-dark-mode-active] .bctd .bctd-card {
  --bctd-solid: #2A2B2C;
  --bctd-on-link: #10202E;
  --bctd-day-title: #8AB4F8;
  --bctd-s0: #353B42;
  --bctd-s1: #4A535D;
  --bctd-s2: #66717C;
  --bctd-s3: #87929D;
  --bctd-s4: #AAB4BE;
  --bctd-sock: #FF6B5E;
  --bctd-hot: #FF6B5E;
  --bctd-icicle-edge: #6EA8FE;
  --bctd-daylight: #C9A24A;
  --bctd-nightfall: #4C5F92;
  --bctd-snow-text: #9CC4FF;
  --bctd-now: #E8453C;
  --bctd-slot-on: rgba(255, 255, 255, 0.2);
  --bctd-panel: rgba(255, 255, 255, 0.035);
  --bctd-text: #E3E9EF;
  --bctd-muted: #A3B3C2;
  --bctd-line: rgba(255, 255, 255, 0.1);
  --bctd-strong: #FFFFFF;
  --bctd-track: rgba(255, 255, 255, 0.08);
  --bctd-today: rgba(138, 180, 248, 0.08);
  --bctd-link: #8AB4F8;
  --bctd-hover: rgba(255, 255, 255, 0.08);
  --bctd-wind: #8AB4F8;
  --bctd-gust: #D9B26F;
  --bctd-rain: #81C995;
  --bctd-snow: #6EA8FE;
  --bctd-rasn: #7FD1C7;
  --bctd-ice: #FF8A80;
  --bctd-sleet: #E8A65D;
  --bctd-mix: #D7A6F5;
  --bctd-pop-bg: #2A2F35;
}

/* ---------- Frame, bar and foot ---------- */

.bctd .bctd-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
  border: 1px solid var(--bctd-line);
  border-radius: 10px;
  background: var(--bctd-panel);
  color: var(--bctd-text);
  font-family: inherit;
  line-height: 1.3;
}

/* On the hourly page: no frame of its own, inside the page's */
.bctd .bctd-card.is-bare {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.bctd .bctd-bar-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--bctd-line);
}

.bctd .bctd-cityname {
  min-width: 0;
  overflow: hidden;
  color: var(--bctd-strong);
  font-size: 1rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bctd .bctd-sub {
  color: var(--bctd-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bctd .bctd-more {
  margin-left: auto;
  color: var(--bctd-link);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.bctd .bctd-more:hover { text-decoration: underline; }

.bctd .bctd-gear {
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--bctd-muted);
  cursor: pointer;
}
.bctd .bctd-gear svg { width: 17px; height: 17px; }
.bctd .bctd-gear:hover,
.bctd .bctd-gear[aria-expanded="true"] { background: var(--bctd-hover); color: var(--bctd-strong); }
.bctd button:focus-visible,
.bctd a:focus-visible,
.bctd select:focus-visible {
  outline: 2px solid var(--bctd-link);
  outline-offset: 2px;
}

/* The city picker drops down under the bar */
.bctd .bctd-panel {
  position: absolute;
  top: 40px;
  left: 8px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 250px;
  max-width: calc(100% - 16px);
  box-sizing: border-box;
  padding: 10px 12px 12px;
  border: 1px solid var(--bctd-line);
  border-radius: 10px;
  background: var(--bctd-pop-bg);
  box-shadow: 0 8px 24px rgba(10, 22, 34, 0.25);
}
.bctd .bctd-panel[hidden] { display: none; }
.bctd .bctd-panel-k {
  color: var(--bctd-muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.bctd .bctd-panel select {
  width: 100%;
  margin: 0;
  padding: 7px 8px;
  border: 1px solid var(--bctd-line);
  border-radius: 8px;
  background: var(--bctd-pop-bg);
  color: var(--bctd-strong);
  font: 600 0.95rem/1.2 inherit;
}

.bctd .bctd-body { flex: 1 0 auto; }

.bctd .bctd-msg {
  margin: 0;
  padding: 40px 16px;
  color: var(--bctd-muted);
  font-size: 0.9rem;
  text-align: center;
}

/* data-show's button under the first few days: all of them, or fewer
   (with data-more="link", a link to the forecast page that looks the same) */
.bctd .bctd-seeall,
.bctd .bctd-expand {
  box-sizing: border-box;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  margin: 0;
  padding: 7px 12px;
  border: 0;
  border-top: 1px solid var(--bctd-line);
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--bctd-link);
  font: 700 0.8rem/1.2 inherit;
  text-transform: none;
  cursor: pointer;
}
.bctd .bctd-seeall:hover,
.bctd .bctd-expand:hover { background: var(--bctd-hover); color: var(--bctd-link); text-decoration: none; }
.bctd .bctd-seeall:focus-visible,
.bctd .bctd-expand:focus-visible { outline: 2px solid var(--bctd-link); outline-offset: -2px; }
.bctd .bctd-seeall svg,
.bctd .bctd-expand svg { flex: none; transition: transform 0.15s; }
.bctd .bctd-seeall svg { transform: rotate(-90deg); }
.bctd .bctd-expand[aria-expanded="true"] svg { transform: rotate(180deg); }

.bctd .bctd-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  padding: 7px 12px 8px;
  border-top: 1px solid var(--bctd-line);
  color: var(--bctd-muted);
  font-size: 0.72rem;
  line-height: 1.35;
}
.bctd .bctd-card.is-bare .bctd-foot { padding: 8px 0 0; }
.bctd .bctd-upd:empty { display: none; }
.bctd .bctd-upd { align-self: center; margin-left: auto; }
.bctd .bctd-note { flex: 1 1 100%; }
.bctd .bctd-note:empty { display: none; }

/* Bars / Dials */
.bctd .bctd-views {
  display: inline-flex;
  flex: none;
  overflow: hidden;
  border: 1px solid var(--bctd-line);
  border-radius: 999px;
}
.bctd .bctd-views button {
  margin: 0;
  padding: 3px 11px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--bctd-muted);
  font: 700 0.74rem/1.3 inherit;
  letter-spacing: 0.02em;
  text-transform: none;
  cursor: pointer;
}
.bctd .bctd-views button + button { border-left: 1px solid var(--bctd-line); }
.bctd .bctd-views button:hover { background: var(--bctd-hover); color: var(--bctd-strong); }
.bctd .bctd-views button[aria-pressed="true"] { background: var(--bctd-link); color: var(--bctd-on-link); }

/* ---------- The days: rows (narrow spots) ---------- */

.bctd .bctd-days {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bctd .bctd-days > .bctd-day {
  display: grid;
  grid-template-columns: 46px 34px 48px 32px minmax(40px, 1fr) 32px;
  grid-template-areas:
    "name icon pop lo track hi"
    "date icon amt lo track hi";
  align-items: center;
  column-gap: 8px;
  margin: 0;
  padding: 6px 12px;
  border-top: 1px solid var(--bctd-line);
  font-variant-numeric: tabular-nums;
  list-style: none;
}
.bctd .bctd-days > .bctd-day::before { content: none; }
.bctd .bctd-days > .bctd-day:first-child { border-top: 0; }
.bctd .bctd-days > .bctd-day.is-today { background: var(--bctd-today); }
.bctd .bctd-card.is-bare .bctd-days > .bctd-day { padding-left: 4px; padding-right: 4px; }

.bctd .bctd-name {
  grid-area: name;
  align-self: end;
  color: var(--bctd-strong);
  font-size: 0.9rem;
  font-weight: 800;
}
.bctd .is-today .bctd-name { color: var(--bctd-link); }

.bctd .bctd-date {
  grid-area: date;
  align-self: start;
  color: var(--bctd-muted);
  font-size: 0.7rem;
  white-space: nowrap;
}

.bctd .bctd-days img.bctd-icon {
  grid-area: icon;
  display: block;
  width: 34px;
  max-width: none;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.bctd .bctd-wx,
.bctd .bctd-wind,
.bctd .bctd-bar-hi,
.bctd .bctd-bar-lo { display: none; }

.bctd .bctd-pop {
  grid-area: pop;
  display: inline-flex;
  align-self: end;
  align-items: center;
  gap: 3px;
  color: var(--bctd-muted);
  font-size: 0.78rem;
  white-space: nowrap;
}
.bctd .bctd-pop svg { flex: none; fill: currentColor; }
.bctd .bctd-pop.is-dry { visibility: hidden; }

.bctd .bctd-amt {
  grid-area: amt;
  display: inline-flex;
  align-self: start;
  align-items: center;
  gap: 2px;
  color: var(--bctd-muted);
  font-size: 0.72rem;
  white-space: nowrap;
}
.bctd .bctd-amt svg { flex: none; }

.bctd .bctd-lo,
.bctd .bctd-hi {
  font-size: 0.95rem;
  white-space: nowrap;
}
.bctd .bctd-lo {
  grid-area: lo;
  color: var(--bctd-muted);
  font-weight: 600;
  text-align: right;
}
.bctd .bctd-hi {
  grid-area: hi;
  color: var(--bctd-strong);
  font-weight: 800;
}

/* The high-low bar: every day on the same temperature scale. --bctd-a and
   --bctd-b are where the low and high sit on it (0 to 1), --bctd-ca and
   --bctd-cb their colors (set by the JS) */
.bctd .bctd-track {
  grid-area: track;
  position: relative;
  height: 8px;
  border-radius: 4px;
  background: var(--bctd-track);
}
.bctd .bctd-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--bctd-a) * 100%);
  right: calc((1 - var(--bctd-b)) * 100%);
  min-width: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--bctd-ca), var(--bctd-cb));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* Likely precipitation (30% or more), in its type's color */
.bctd .is-likely { color: var(--bctd-rain); font-weight: 700; }
.bctd .is-likely.is-snow { color: var(--bctd-snow); }
.bctd .is-likely.is-rasn { color: var(--bctd-rasn); }
.bctd .is-likely.is-ice { color: var(--bctd-ice); }
.bctd .is-likely.is-sleet { color: var(--bctd-sleet); }
.bctd .is-likely.is-mix { color: var(--bctd-mix); }

/* The narrowest spots: no room for the notes */
@container bctd (max-width: 380px) {
  .bctd .bctd-note { display: none; }
  .bctd .bctd-days > .bctd-day {
    grid-template-columns: 40px 30px 44px 28px minmax(30px, 1fr) 28px;
    column-gap: 6px;
    padding: 6px 10px;
  }
  .bctd .bctd-days img.bctd-icon { width: 30px; height: 30px; }
  .bctd .bctd-sub { display: none; }
}

/* ---------- The days: columns (600px and wider) ---------- */

@container bctd (min-width: 600px) {
  .bctd .bctd-days {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
  }

  .bctd .bctd-days > .bctd-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px 2px 12px;
    border-top: 0;
    border-left: 1px solid var(--bctd-line);
    text-align: center;
  }
  .bctd .bctd-days > .bctd-day > * { align-self: center; }   /* not the rows' */
  .bctd .bctd-days > .bctd-day:first-child { border-left: 0; }
  .bctd .bctd-card:not(.is-bare) .bctd-days > .bctd-day:first-child { border-radius: 0 0 0 10px; }
  .bctd .bctd-card.is-bare .bctd-days > .bctd-day { padding-left: 2px; padding-right: 2px; }

  .bctd .bctd-name {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .bctd .bctd-date { font-size: 0.72rem; }

  .bctd .bctd-days img.bctd-icon {
    width: 40px;
    height: 40px;
    margin: 4px 0 2px;
  }

  /* The bars stand up, the high above and the low below each one */
  .bctd .bctd-lo,
  .bctd .bctd-hi { display: none; }
  .bctd .bctd-bar-hi,
  .bctd .bctd-bar-lo {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    line-height: 1;
    white-space: nowrap;
  }
  .bctd .bctd-bar-hi {
    bottom: 100%;
    margin-bottom: 5px;
    color: var(--bctd-strong);
    font-size: 1.05rem;
    font-weight: 800;
  }
  .bctd .bctd-bar-lo {
    top: 100%;
    margin-top: 5px;
    color: var(--bctd-muted);
    font-size: 0.92rem;
    font-weight: 600;
  }
  .bctd .bctd-track {
    flex: none;
    width: 10px;
    height: 120px;
    margin: 26px 0 24px;
    border-radius: 5px;
  }
  .bctd .bctd-bar {
    top: calc((1 - var(--bctd-b)) * 100%);
    bottom: calc(var(--bctd-a) * 100%);
    left: 0;
    right: 0;
    min-width: 0;
    min-height: 8px;
    border-radius: 5px;
    background: linear-gradient(0deg, var(--bctd-ca), var(--bctd-cb));
  }

  .bctd .bctd-pop { font-size: 0.8rem; }
  .bctd .bctd-pop.is-dry { visibility: visible; opacity: 0.6; }
  .bctd .bctd-amt { min-height: 1.3em; font-size: 0.76rem; }

  .bctd .bctd-wind {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0 3px;
    margin-top: 2px;
    color: var(--bctd-wind);
    font-size: 0.74rem;
    font-weight: 600;
    white-space: nowrap;
  }
  .bctd .bctd-arrow {
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .bctd .bctd-gust { color: var(--bctd-gust); }
}

/* Room for the words under each icon */
@container bctd (min-width: 760px) {
  .bctd .bctd-wx {
    display: -webkit-box;
    min-height: 2.5em;
    padding: 0 3px;
    overflow: hidden;
    color: var(--bctd-text);
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

/* Wide: everything a size up */
@container bctd (min-width: 960px) {
  .bctd .bctd-name { font-size: 0.8rem; }
  .bctd .bctd-date { font-size: 0.78rem; }
  .bctd .bctd-days img.bctd-icon { width: 48px; height: 48px; }
  .bctd .bctd-wx { font-size: 0.8rem; }
  .bctd .bctd-track { height: 140px; }
  .bctd .bctd-bar-hi { font-size: 1.2rem; }
  .bctd .bctd-bar-lo { font-size: 1rem; }
  .bctd .bctd-pop { font-size: 0.86rem; }
  .bctd .bctd-amt { font-size: 0.8rem; }
}

/* ---------- Dials: each day as a 24-hour clock face ----------
   Midnight at the top, noon at the bottom. Outer ring: clouds (the s0 to
   s4 shades); inner ring: precipitation chance in its type's color, more
   solid the likelier (opacity set by the JS). All colors from classes, as
   the dark mode plugin rewrites SVG color attributes. */

.bctd .bctd-dials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));   /* two across a 300px sidebar */
  gap: 16px 8px;
  margin: 0;
  padding: 14px 12px 10px;
  list-style: none;
}
.bctd .bctd-card.is-bare .bctd-dials { padding: 10px 0 6px; }

.bctd .bctd-dials > .bctd-dialday {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
.bctd .bctd-dials > .bctd-dialday::before { content: none; }

.bctd .bctd-dname {
  max-width: 100%;
  overflow: hidden;
  color: var(--bctd-day-title);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.bctd .bctd-ddate {
  color: var(--bctd-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.bctd .bctd-dial {
  container: bctd-dial / inline-size;
  position: relative;
  width: 100%;
  max-width: 230px;
  aspect-ratio: 1;
  margin-top: 2px;
}
.bctd .bctd-dial svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.bctd .bctd-sky.s0 { fill: var(--bctd-s0); }
.bctd .bctd-sky.s1 { fill: var(--bctd-s1); }
.bctd .bctd-sky.s2 { fill: var(--bctd-s2); }
.bctd .bctd-sky.s3 { fill: var(--bctd-s3); }
.bctd .bctd-sky.s4 { fill: var(--bctd-s4); }
.bctd .bctd-ptrack { fill: var(--bctd-track); }
.bctd .bctd-p { fill: var(--bctd-rain); }
.bctd .bctd-p.is-snow { fill: var(--bctd-snow); }
.bctd .bctd-p.is-rasn { fill: var(--bctd-rasn); }
.bctd .bctd-p.is-ice { fill: var(--bctd-ice); }
.bctd .bctd-p.is-sleet { fill: var(--bctd-sleet); }
.bctd .bctd-p.is-mix { fill: var(--bctd-mix); }
.bctd .bctd-dial .is-past { opacity: 0.3 !important; }

.bctd .bctd-sep {
  fill: none;
  stroke: var(--bctd-solid);
  stroke-width: 1;
}
.bctd .bctd-sep.is-major { stroke-width: 2; }

.bctd .bctd-hr {
  fill: var(--bctd-muted);
  font-size: 13px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
}

.bctd .bctd-pct {
  fill: var(--bctd-strong);
  stroke: var(--bctd-solid);
  stroke-width: 3.5px;
  stroke-linejoin: round;
  paint-order: stroke;
  font-size: 13px;
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: central;
}

/* Snowfall in a slot, on the cloud ring */
.bctd .bctd-samt {
  fill: var(--bctd-snow-text);
  stroke: var(--bctd-solid);
  stroke-width: 3px;
  stroke-linejoin: round;
  paint-order: stroke;
  font-size: 11.5px;
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: central;
}

/* Each slot can be hovered or tapped for its details */
.bctd .bctd-hit { fill: transparent; cursor: pointer; }
.bctd .bctd-hit.is-on { fill: var(--bctd-slot-on); }
.bctd .bctd-tip {
  position: absolute;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: max-content;
  max-width: 210px;
  padding: 7px 10px;
  border: 1px solid var(--bctd-line);
  border-radius: 8px;
  background: var(--bctd-pop-bg);
  box-shadow: 0 4px 14px rgba(16, 32, 48, 0.18);
  color: var(--bctd-text);
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: left;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 4px));
}
.bctd .bctd-tip[data-v="below"] { transform: translate(-50%, 4px); }
.bctd .bctd-tip[data-h="right"] { transform: translate(-12%, calc(-100% - 4px)); }
.bctd .bctd-tip[data-h="right"][data-v="below"] { transform: translate(-12%, 4px); }
.bctd .bctd-tip[data-h="left"] { transform: translate(-88%, calc(-100% - 4px)); }
.bctd .bctd-tip[data-h="left"][data-v="below"] { transform: translate(-88%, 4px); }
.bctd .bctd-tip strong { color: var(--bctd-strong); font-size: 0.82rem; }
.bctd .bctd-tip .bctd-tip-go { margin-top: 3px; font-style: normal; font-weight: 700; color: var(--bctd-strong); opacity: 0.75; }

/* Day and night, the thin ring inside the others */
.bctd .bctd-day-arc { fill: var(--bctd-daylight); }
.bctd .bctd-night { fill: var(--bctd-nightfall); }

/* Today's hand at the time now */
.bctd .bctd-now {
  fill: none;
  stroke: var(--bctd-now);
  stroke-width: 3.2;
  stroke-linecap: round;
}
.bctd .bctd-now-halo {
  fill: none;
  stroke: var(--bctd-solid);
  stroke-width: 6.4;
  stroke-linecap: round;
}
.bctd .bctd-now-tag {
  fill: var(--bctd-now);
  stroke: var(--bctd-solid);
  stroke-width: 1.5;
}
.bctd .bctd-now-text {
  fill: #FFFFFF;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-anchor: middle;
  dominant-baseline: central;
}

/* The icons around the dials (and in the key under them): fire, lightning,
   windsock, thermometer, icicles. A thin edge in a darker shade of each */
.bctd .bctd-ico path {
  stroke-width: 1;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.bctd .bctd-ico.is-fire .i1 { fill: var(--bctd-fire); stroke: var(--bctd-fire-edge); }
.bctd .bctd-ico.is-fire .i2 { fill: var(--bctd-bolt); stroke: none; }
.bctd .bctd-ico.is-bolt .i1 { fill: var(--bctd-bolt); stroke: var(--bctd-bolt-edge); }
.bctd .bctd-ico.is-wind .i1 { fill: var(--bctd-sock); stroke: var(--bctd-hot-edge); }
.bctd .bctd-ico.is-wind .i2 { fill: #FFFFFF; stroke: none; }
.bctd .bctd-ico.is-wind .i3 { fill: none; stroke: var(--bctd-muted); stroke-width: 1.6; }
.bctd .bctd-ico.is-hot .i1 { fill: var(--bctd-hot); stroke: var(--bctd-hot-edge); }
.bctd .bctd-ico.is-hot .i2 { fill: none; stroke: #FFFFFF; stroke-width: 1.4; }
.bctd .bctd-ico.is-cold .i1 { fill: var(--bctd-icicle); stroke: var(--bctd-icicle-edge); }

/* The key's cloud shades, clear to overcast, as on the ring */
.bctd .bctd-skykey { white-space: nowrap; }
.bctd .bctd-skykey i {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin: 0 0 -1px;
  border: 1px solid var(--bctd-line);
  vertical-align: baseline;
}
.bctd .bctd-skykey i:first-of-type { margin-left: 4px; border-radius: 3px 0 0 3px; }
.bctd .bctd-skykey i:last-of-type { margin-right: 4px; border-radius: 0 3px 3px 0; }
.bctd .bctd-skykey i + i { border-left: 0; }
.bctd .bctd-skykey .s0 { background: var(--bctd-s0); }
.bctd .bctd-skykey .s1 { background: var(--bctd-s1); }
.bctd .bctd-skykey .s2 { background: var(--bctd-s2); }
.bctd .bctd-skykey .s3 { background: var(--bctd-s3); }
.bctd .bctd-skykey .s4 { background: var(--bctd-s4); }

/* The key under the dials: each icon on a dial, with what it means */
.bctd .bctd-key {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 8px;
  white-space: nowrap;
}
.bctd .bctd-key svg {
  width: 1.35em;
  height: 1.35em;
  flex: none;
}

/* The middle: icon, high/low, the day's chance. Sized to the dial (cqi) */
.bctd .bctd-dcenter {
  position: absolute;
  inset: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  line-height: 1;
  pointer-events: none;   /* its corners reach over the rings; the rings take the pointer */
}
.bctd .bctd-dcenter > * { pointer-events: auto; }
.bctd .bctd-dcenter img {
  display: block;
  width: 16cqi;
  max-width: none;
  height: 16cqi;
  margin: 0 0 0.5cqi;
  padding: 0;
  border: 0;
  box-shadow: none;
}
.bctd .bctd-dtemp {
  color: var(--bctd-strong);
  font-size: 12cqi;
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.bctd .bctd-dlo { color: var(--bctd-muted); font-weight: 700; }
.bctd .bctd-dpop {
  display: inline-flex;
  align-items: center;
  gap: 1cqi;
  margin-top: 0.5cqi;
  padding: 0.4cqi 2cqi;
  border-radius: 99px;
  background: var(--bctd-solid);   /* a solid pill, so the day/night ring behind it doesn't show through */
  color: var(--bctd-text);
  font-size: 5.6cqi;
  font-weight: 700;
  white-space: nowrap;
}
.bctd .bctd-dpop svg { width: 5.6cqi; height: 5.6cqi; fill: currentColor; }
.bctd .bctd-dpop.is-dry { visibility: hidden; }

/* Small dials (a phone, a sidebar, five across at 760px): the drawing
   shrinks with the dial, so its writing is made bigger in the drawing's
   own units, and the least needed is left out to make room: only 12am, 6am,
   12pm and 6pm around the edge, no snow inches on the cloud ring (the
   middle has the day's total, a tap each slot's). The icons and the NOW tag
   grow too. Each of these is a group the CSS can scale on its own. */
@container bctd-dial (max-width: 185px) {
  .bctd .bctd-hr.is-minor { display: none; }
  .bctd .bctd-hr { font-size: 18px; font-weight: 800; }
  .bctd .bctd-pct { font-size: 16.5px; stroke-width: 4px; }
  .bctd .bctd-samt { display: none; }
  .bctd .bctd-ico { transform: scale(1.7); }
  .bctd .bctd-now-g { transform: scale(1.6); }
  .bctd .bctd-dpop { font-size: 7cqi; }
  .bctd .bctd-dpop svg { width: 7cqi; height: 7cqi; }
}

/* A row of five on wide spots */
@container bctd (min-width: 760px) {
  .bctd .bctd-dials { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
/* On the hourly page (data-follow): a day jumps the page's chart to its
   hours. The bars' whole row; a dial's name, date and middle (its rings keep
   their own details). */
.bctd .bctd-day[data-jump] { cursor: pointer; }
.bctd .bctd-day[data-jump]:hover { background: var(--bctd-hover); }
.bctd .bctd-dialday[data-jump] .bctd-dname,
.bctd .bctd-dialday[data-jump] .bctd-ddate,
.bctd .bctd-dialday[data-jump] .bctd-dcenter > * { cursor: pointer; }
.bctd .bctd-dialday[data-jump]:hover .bctd-dname { text-decoration: underline; text-underline-offset: 3px; }
.bctd [data-jump]:focus-visible { outline: 2px solid var(--bctd-link); outline-offset: 2px; border-radius: 8px; }
/* data-dials="1": one dial per row */
.bctd[data-dials="1"] .bctd-dials { grid-template-columns: minmax(0, 1fr); gap: 18px; }

/* The hourly page's saved 3-day image: three big dials in a row */
.bctd .bctd-card.is-three { border: 0; background: none; }
.bctd .bctd-card.is-three .bctd-dials {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 28px;
  padding: 4px 0 6px;
}
.bctd .is-three .bctd-dial { max-width: 350px; }
.bctd .is-three .bctd-dname { font-size: 2.1rem; }
.bctd .is-three .bctd-ddate { font-size: 1.05rem; }
.bctd .is-three .bctd-foot { justify-content: center; }
.bctd .is-three .bctd-note { font-size: 0.9rem; text-align: center; }

}   /* @container */

/* ---------- Dashboard cards: the narrow-screen rules at a narrow card ----------
   Written by tools/build_forecast_css.py from the @media rules above: a card on a
   member's dashboard can be narrow on a wide screen. */
@container (max-width: 640px) {
  .bcwx[data-bcdash] .bcwx-controls.is-stuck { gap: 6px; }
  .bcwx[data-bcdash] .bcwx-controls.is-stuck .bcwx-seg,
  .bcwx[data-bcdash] .bcwx-controls.is-stuck #webcam-groups { flex-wrap: nowrap; overflow-x: auto; }
  .bcwx[data-bcdash] .bcwx-controls.is-stuck .bcwx-seg button { flex: 0 0 auto; padding: 7px 12px; }
  .bcwx[data-bcdash] .bcwx-head h2 { font-size: 1.45rem; }
  .bcwx[data-bcdash] .bcwx-controls { flex-direction: column; align-items: stretch; }
  .bcwx[data-bcdash] .bcwx-controls > .bcwx-field:last-of-type:not(:first-of-type) { margin-left: 0; }
  .bcwx[data-bcdash] .bcwx-seg { display: flex; }
  .bcwx[data-bcdash] .bcwx-seg button { flex: 1 0 auto; }
  .bcwx[data-bcdash] .bcwx-select-wrap select,
  .bcwx[data-bcdash] .bcwx-combo { min-width: 0; }
  .bcwx[data-bcdash] .bcwx-frame-cam .bcwx-stage { min-height: 0; aspect-ratio: 4 / 3; }
  .bcwx[data-bcdash] .bcwx-frame-cam .bcwx-stage img { height: auto; aspect-ratio: 4 / 3; }
  .bcwx[data-bcdash] .bcwx-stage:has(img[src]) { min-height: 0; }
  .bcwx[data-bcdash] .bcwx-frame:not(.bcwx-frame-cam) .bcwx-lock { padding: 14px 16px; }
  .bcwx[data-bcdash] .bcwx-lock-icon { width: 22px; height: 22px; margin-bottom: 8px; }
  .bcwx[data-bcdash] .bcwx-lock .bcwx-lock-title { margin-bottom: 12px; font-size: 1.02rem; }
  .bcwx[data-bcdash] .bcwx-lock-text { display: none; }
  .bcwx[data-bcdash] .bcwx-lock .bcwx-btn { padding: 8px 14px; font-size: 0.9rem; }
  .bcwx[data-bcdash] #webcam-groups { display: none; }
  .bcwx[data-bcdash] .bcwx-cam-picker { display: flex; }
  .bcwx[data-bcdash] .bcwx-cams { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bcwx[data-bcdash] .bcwx-cam-text { padding: 6px 8px 8px; }
  [data-bcdash] .bcwx-obh .bcwx-obh-datebtn { min-width: 0; }
  [data-bcdash] .bcwx-obh .bcwx-now-grid { grid-auto-columns: 64%; grid-auto-flow: column; grid-template-columns: none; padding: 4px 10px 14px; overflow-x: auto; scroll-snap-type: x mandatory; }
  [data-bcdash] .bcwx-obh .bcwx-now-grid li { scroll-snap-align: start; }
}
@container (max-width: 560px) {
  .bcwx[data-bcdash] .bcwx-jump-track { gap: 3px; padding: 4px; border-radius: 13px; }
  .bcwx[data-bcdash] .bcwx-jump.is-stuck .bcwx-jump-track { padding: 3px; }
  .bcwx[data-bcdash] .bcwx-jump a,
  .bcwx[data-bcdash] .bcwx-jump.is-stacked a { flex: 1 1 0; flex-direction: column; gap: 4px; padding: 9px 2px; font-size: 0.74rem; border-radius: 9px; white-space: nowrap; }
  .bcwx[data-bcdash] .bcwx-jump-icon { width: 20px; height: 20px; }
  .bcwx[data-bcdash] .bcwx-jump-full { display: none; }
  .bcwx[data-bcdash] .bcwx-jump-short { display: inline; }
  .bcwx[data-bcdash] .bcwx-jump.is-stuck a,
  .bcwx[data-bcdash] .bcwx-jump.is-stuck.is-stacked a { flex: 1 1 0; flex-direction: column; gap: 2px; padding: 5px 2px; font-size: 0.68rem; }
  .bcwx[data-bcdash] .bcwx-jump.is-stuck .bcwx-jump-icon,
  .bcwx[data-bcdash] .bcwx-jump.is-stuck.is-stacked .bcwx-jump-icon { display: block; width: 16px; height: 16px; }
  [data-bcdash] .bcwx-obh .bcwx-frame-data > .bcwx-bar { padding: 12px 14px 10px; }
  [data-bcdash] .bcwx-obh .bcwx-frame-data .bcwx-frame-name { font-size: 1.12rem; }
  [data-bcdash] .bcwx-obh .bcwx-frame-data .bcwx-frame-place { font-size: 0.85rem; }
  [data-bcdash] .bcwx-obh .bcwx-obh-body { padding: 4px 10px 14px; }
  [data-bcdash] .bcwx-obh .bcwx-obh-grid { grid-template-columns: 1fr 1fr; }
  [data-bcdash] .bcwx-obh .bcwx-obh-card.is-now { grid-column: 1 / -1; }
  [data-bcdash] .bcwx-obh .bcwx-obh-v { font-size: 1.35rem; }
  [data-bcdash] .bcwx-obh .bcwx-obh-dayrow .bcwx-stepper { flex: 1 1 auto; }
  #bcfc[data-bcdash] .bcfc-blocks { grid-auto-columns: 64px; }
  #bcfc[data-bcdash] .bcfc-block img { width: 38px; height: 38px; }
  #bcfc[data-bcdash] .bcfc-block-temp { font-size: 1.1rem; }
}
