:root {
  --green: #34d399;
}
.watch-page {
  font-size: 1rem;
  line-height: 1.6;
}
.watch-page .kicker {
  margin: 0 0 0.65rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}
.watch-page .note-actions {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1rem;
}
.watch-page .note-box a.btn-primary {
  color: var(--cta-ink);
  text-decoration: none;
}
.watch-page .note-box a.btn-primary:hover {
  color: var(--cta-ink);
}

/* Hero */
.watch-hero {
  background:
    radial-gradient(ellipse at 82% 12%, rgba(226, 58, 47, 0.16), transparent 44%),
    radial-gradient(ellipse at 12% 88%, rgba(242, 177, 21, 0.12), transparent 48%),
    linear-gradient(180deg, #070b12 0%, #0e1624 100%);
  border-bottom: 1px solid var(--line);
  padding: 2.6rem 1.25rem 2.8rem;
}
.watch-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.kicker {
  margin: 0 0 0.65rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}
.watch-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 650;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 48rem;
}
.watch-hero-lead {
  margin: 1rem 0 0;
  font-size: 1.04rem;
  color: #d5dce8;
  max-width: 46rem;
}
.watch-hero-note {
  margin: 0.8rem 0 0;
  font-size: 0.94rem;
  color: var(--muted);
  max-width: 46rem;
}
.watch-hero-note a { color: var(--amber-soft); }

.kpi-grid {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}
.kpi-card {
  background: rgba(21, 32, 51, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem 1rem;
}
.kpi-label {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.kpi-value {
  margin-top: 0.25rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 650;
  color: #fff;
  line-height: 1.2;
}
.kpi-value .accent { color: var(--amber); }
.kpi-sub {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: #c3cede;
}


.watch {
  margin-top: 1.85rem;
}
.watch-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  margin-bottom: 0.95rem;
}
.watch-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 650;
  font-size: 1.45rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.watch-page .signal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.signal-tile {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-height: 100%;
  min-width: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: rgba(21, 32, 51, 0.88);
  border: 1px solid var(--line);
  border-left: 4px solid #64748b;
  border-radius: 16px;
  padding: 0.95rem 1rem 1rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.signal-tile:hover, .signal-tile:focus-visible {
  background: rgba(21, 32, 51, 1);
  outline: none;
}
.signal-tile.is-green { border-left-color: var(--green); }
.signal-tile.is-amber { border-left-color: var(--amber); }
.signal-tile.is-red { border-left-color: var(--alert); }
.signal-tile.is-na { border-left-color: #64748b; }
.signal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem 0.5rem;
  flex-wrap: wrap;
}
.signal-title {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.3;
}

.signal-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  min-width: 0;
}
.signal-geo {
  display: inline-block;
  flex: 0 0 auto;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  border: 1px solid rgba(242, 177, 21, 0.42);
  color: var(--amber-soft);
  background: rgba(242, 177, 21, 0.10);
  line-height: 1.2;
  white-space: nowrap;
}
.signal-level {
  flex: 0 1 auto;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.16rem 0.45rem;
  border-radius: 999px;
  line-height: 1.25;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
}
.is-green .signal-level { background: rgba(52, 211, 153, 0.16); color: var(--green); }
.is-amber .signal-level { background: rgba(242, 177, 21, 0.16); color: var(--amber-soft); }
.is-red .signal-level { background: rgba(226, 58, 47, 0.16); color: #ff8a82; }
.is-na .signal-level { background: rgba(100, 116, 139, 0.2); color: #cbd5e1; }
.signal-value {
  margin-top: 0.2rem;
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 650;
  color: #fff;
  line-height: 1.2;
}
.signal-trend {
  font-size: 0.86rem;
  font-weight: 600;
  color: #d5dce8;
}
.signal-trend.is-up,
.signal-trend.is-down,
.signal-trend.is-flat { color: #d5dce8; }
.signal-detail {
  font-size: 0.82rem;
  color: #c3cede;
  line-height: 1.45;
}
.signal-date {
  margin-top: auto;
  padding-top: 0.45rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.signal-jump {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--amber-soft);
}
.signal-how {
  margin-top: 0.9rem;
  font-size: 0.84rem;
  color: #c3cede;
  line-height: 1.5;
}
.signal-how summary {
  cursor: pointer;
  color: var(--amber-soft);
  font-weight: 600;
  list-style: none;
}
.signal-how summary::-webkit-details-marker { display: none; }
.signal-how summary::before { content: "▸ "; }
.signal-how[open] summary::before { content: "▾ "; }
.signal-how-body { margin-top: 0.55rem; }
.signal-how-item { margin: 0 0 0.55rem; }
.signal-how-item strong { color: #fff; }
.kpi-heading {
  margin: 1.6rem 0 0.7rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.kpi-grid { margin-top: 0; }

/* Main paper section */
.watch-paper {
  background: var(--paper);
  color: var(--paper-ink);
  padding: 2.5rem 1.25rem 3.5rem;
}
.watch-section-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2.2rem;
}

.chart-panel {
  scroll-margin-top: 5.75rem;
  background: var(--navy);
  color: var(--ink);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 46px rgba(7, 11, 18, 0.16);
  padding: 1.5rem;
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.85rem 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  margin: 0.15rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.8vw, 1.8rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #fff;
}
.panel-sub {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 44rem;
}
.updated-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.78rem;
  border-radius: 999px;
  background: rgba(242, 177, 21, 0.13);
  border: 1px solid rgba(242, 177, 21, 0.36);
  color: var(--amber-soft);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.updated-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

/* Controls */
.controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}
.seg-group {
  display: inline-flex;
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem;
  gap: 0.2rem;
}
.seg-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.42rem 0.88rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
  min-height: 36px;
}
.seg-btn:hover { color: #fff; }
.seg-btn[aria-pressed="true"] {
  background: var(--amber);
  color: var(--cta-ink);
}

.preset-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.preset-btn {
  border: 1px solid var(--line);
  background: var(--navy-2);
  color: #d5dce8;
  border-radius: 999px;
  padding: 0.34rem 0.72rem;
  font-size: 0.78rem;
  font-weight: 600;
  min-height: 32px;
}
.preset-btn:hover { border-color: var(--amber); color: var(--amber-soft); }
.preset-btn.is-active {
  border-color: var(--amber);
  background: rgba(242, 177, 21, 0.14);
  color: var(--amber-soft);
}

/* Readout strip (helpful on phones & touch) */
.readout-strip {
  margin-top: 0.95rem;
  padding: 0.72rem 0.9rem;
  border-radius: 12px;
  background: var(--navy-2);
  border: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 1rem;
  font-size: 0.85rem;
}
.readout-date {
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.readout-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  align-items: center;
}
.readout-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #d5dce8;
  font-variant-numeric: tabular-nums;
}
.swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Chart stage */
.chart-stage {
  position: relative;
  margin-top: 0.85rem;
  background: #0a101b;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.65rem 0.5rem;
  user-select: none;
  -webkit-user-select: none;
}
.chart-svg {
  width: 100%;
  height: auto;
  display: block;
  touch-action: pan-y;
}
.axis-text {
  fill: #9aa6b8;
  font-family: var(--font);
  font-size: 11px;
}
.band-label {
  fill: rgba(232, 237, 245, 0.52);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
}
.grid-line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}
.crosshair {
  stroke: rgba(255, 211, 106, 0.7);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
}

/* Floating tooltip on desktop */
.tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 20;
  min-width: 195px;
  max-width: 260px;
  background: rgba(7, 11, 18, 0.96);
  border: 1px solid rgba(242, 177, 21, 0.42);
  border-radius: 12px;
  padding: 0.65rem 0.78rem;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
  font-size: 0.8rem;
  color: #e8edf5;
  opacity: 0;
  transition: opacity 0.1s ease;
}
.tooltip.is-visible { opacity: 1; }
.tooltip-title {
  font-weight: 700;
  color: var(--amber-soft);
  margin-bottom: 0.38rem;
  padding-bottom: 0.28rem;
  border-bottom: 1px solid var(--line);
}
.tooltip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  padding: 0.12rem 0;
  font-variant-numeric: tabular-nums;
}
.tooltip-name {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tooltip-val { font-weight: 700; color: #fff; white-space: nowrap; }

/* Interactive legend chips */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.74rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--navy-2);
  color: #e8edf5;
  font-size: 0.82rem;
  font-weight: 500;
  min-height: 36px;
  transition: opacity 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.chip:hover { border-color: rgba(255, 255, 255, 0.34); }
.chip[aria-pressed="false"] {
  opacity: 0.45;
  background: transparent;
}
.chip-share {
  color: var(--muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
.chip-delta {
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.chip-delta.up { color: #ffd36a; }
.chip-delta.down { color: #8c98ab; }

.cat-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  margin-left: 0.28rem;
}
.cat-very-low { background: rgba(52, 211, 153, 0.18); color: #6ee7b7; }
.cat-low { background: rgba(56, 189, 248, 0.18); color: #7dd3fc; }
.cat-moderate { background: rgba(242, 177, 21, 0.2); color: #ffd36a; }
.cat-high { background: rgba(251, 146, 60, 0.22); color: #fdba74; }
.cat-very-high { background: rgba(226, 58, 47, 0.24); color: #fca5a5; }

.panel-credit {
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.55;
}
.panel-credit a { color: var(--amber-soft); }
.panel-credit strong { color: #e8edf5; }

.note-box {
  background: #fff;
  color: var(--paper-ink);
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
}
.note-box h3 {
  margin: 0 0 0.45rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: #12161e;
}
.note-box p {
  margin: 0.35rem 0 0;
  font-size: 0.94rem;
  color: var(--paper-muted);
}
.note-box a { color: #9a1d16; font-weight: 600; }




.jurisdiction-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--navy-2);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%9aa6b8' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  color: #e8edf5;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 2.1rem 0.42rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 600;
  min-height: 36px;
  max-width: min(100%, 22rem);
}
.jurisdiction-select:focus {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
.lag-note {
  margin-top: 0.95rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: rgba(242, 177, 21, 0.08);
  border: 1px solid rgba(242, 177, 21, 0.28);
  color: var(--amber-soft);
  font-size: 0.86rem;
  line-height: 1.5;
}
.lag-note strong { color: #fff; }
.is-hidden { display: none !important; }
.region-note {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}
.region-note strong { color: #d5dce8; font-weight: 600; }

@media (max-width: 1100px) {
  .kpi-grid, .signal-grid, .watch-page .signal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .watch-hero { padding: 1.85rem 1rem 2rem; }
  .watch-paper { padding: 1.4rem 0.75rem 2.5rem; }
  .chart-panel { padding: 1.05rem 0.9rem; border-radius: 14px; }
  .kpi-grid, .signal-grid { gap: 0.65rem; }
  .kpi-card { padding: 0.8rem 0.85rem; }
  .kpi-value { font-size: 1.15rem; }
  .signal-tile { padding: 0.8rem 0.8rem 0.85rem; border-radius: 14px; }
  .signal-value { font-size: 1.12rem; }
  .signal-level { font-size: 0.62rem; padding: 0.12rem 0.4rem; }
  .watch-head h2 { font-size: 1.25rem; }
  .controls-bar { gap: 0.55rem; }
  .seg-btn { padding: 0.38rem 0.72rem; font-size: 0.8rem; }
  .tooltip { display: none; }
  .chart-stage { padding: 0.55rem 0.35rem 0.35rem; }
}
.scrub-bar {
  margin-top: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
}
.play-btn {
  flex: 0 0 auto;
  min-width: 5.4rem;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--amber);
  color: var(--cta-ink);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.4rem 1rem;
}
.play-btn[aria-pressed="true"] {
  background: #fff;
}
.scrub-input {
  flex: 1 1 auto;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  outline: none;
}
.scrub-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--amber);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25);
  cursor: pointer;
}
.scrub-input::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--amber);
  border: 3px solid #fff;
  cursor: pointer;
}
.scrub-label {
  flex: 0 0 auto;
  min-width: 5.8rem;
  text-align: right;
  font-weight: 700;
  color: #fff;
  font-size: 0.86rem;
  white-space: nowrap;
}
.marker-list-heading {
  margin: 1.25rem 0 0.65rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 650;
  color: #fff;
  letter-spacing: -0.015em;
}
.marker-list {
  margin-top: 0.15rem;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.marker-card {
  display: block;
  text-align: left;
  width: 100%;
  color: inherit;
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  min-height: 44px;
  cursor: pointer;
  font: inherit;
}
.marker-card:hover, .marker-card.is-active, .marker-card:focus-visible {
  border-color: var(--amber);
  outline: none;
}
.marker-card.is-active {
  background: rgba(242, 177, 21, 0.12);
  box-shadow: 0 0 0 2px rgba(242, 177, 21, 0.7);
}
.marker-card .marker-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.marker-num {
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: #f2b115;
  color: #161204;
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.marker-card .marker-when {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-soft);
}
.marker-card .marker-title {
  margin: 0.4rem 0 0;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.3;
  color: #fff;
  font-weight: 650;
}
.marker-card blockquote {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #d5dce8;
  font-weight: 400;
}
.marker-card .marker-link {
  display: inline-block;
  margin: 0.55rem 0 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--amber-soft);
  text-decoration: none;
  min-height: 32px;
  padding-top: 0.15rem;
}
.marker-card .marker-link:hover { color: #fff; }
.legend-pin {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #f2b115;
  color: #161204;
  font-weight: 800;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex: 0 0 auto;
}
.om-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.1rem;
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: #d5dce8;
}
.om-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.om-legend i {
  width: 12px; height: 12px; border-radius: 3px; display: inline-block;
}
.om-legend .label-short { display: none; }
.om-who-note {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}
.om-who-note strong { color: #d5dce8; font-weight: 600; }
.axis-text.right { fill: #9aa6b8; }

@media (max-width: 640px) {
  .marker-list { grid-template-columns: 1fr; }
  .scrub-label { min-width: 4.6rem; font-size: 0.8rem; }
  .om-legend .label-full { display: none; }
  .om-legend .label-short { display: inline; }
  .om-legend { font-size: 0.78rem; gap: 0.45rem 0.85rem; }
}

.ed-empty-box {
  padding: 1.35rem 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  color: #d5dce8;
  font-size: 0.92rem;
  line-height: 1.55;
}
.ed-empty-box strong { color: #fff; }
.ed-empty-box a { color: var(--amber-soft); }
