/* National Agricultural Situation Room — flagship public home prototype */

.home-situation {
  padding-top: 12px;
  padding-bottom: 24px;
  background:
    radial-gradient(circle at 9% 2%, rgba(198, 162, 70, .05), transparent 24%),
    var(--bg);
}

.home-situation .stack {
  gap: 12px;
}

.home-situation .stack > .dashboard-hero.reveal {
  order: -1;
}

.situation-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .45fr);
  min-height: 224px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(128deg, var(--brand-primary-deep) 0%, var(--brand-primary) 64%, #247f9e 100%);
  color: #fff;
  box-shadow: 0 15px 42px rgba(15, 51, 57, .16);
}

.situation-intro::before,
.situation-intro::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  pointer-events: none;
}

.situation-intro::before {
  width: 380px;
  height: 380px;
  right: -126px;
  bottom: -250px;
  box-shadow: 0 0 0 34px rgba(255, 255, 255, .018);
}

.situation-intro::after {
  width: 170px;
  height: 170px;
  left: 50%;
  top: -120px;
}

.situation-intro__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 34px 23px;
}

.situation-intro__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: #ead98f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.situation-intro__eyebrow>span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.situation-intro__eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #49bb7b;
  box-shadow: 0 0 0 5px rgba(73, 187, 123, .12);
}

.situation-intro__demo {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: rgba(255, 255, 255, .62);
  font-size: 9px;
  letter-spacing: .09em;
}

.situation-intro h1 {
  max-width: none;
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.situation-headline__stat {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .18em .22em;
  margin-bottom: .08em;
}

.situation-headline__value {
  color: #f1d46a;
  font-size: clamp(46px, 5.4vw, 74px);
  font-weight: 820;
  line-height: .92;
  letter-spacing: -.06em;
}

.situation-headline__unit {
  color: rgba(255, 255, 255, .94);
  font-size: clamp(22px, 2.35vw, 34px);
  font-weight: 650;
  letter-spacing: -.03em;
}

.situation-headline__text {
  display: block;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(19px, 1.85vw, 27px);
  font-weight: 560;
  line-height: 1.14;
  letter-spacing: -.028em;
}

.situation-intro h1>span:not([class]) { display: block; }

@media (min-width: 861px) {
  .situation-intro h1>span:not([class]) { white-space: nowrap; }
}

.situation-intro__copy>p:not(.situation-intro__source) {
  max-width: 76ch;
  margin: 11px 0 0;
  color: rgba(255, 255, 255, .71);
  font-size: 12px;
  line-height: 1.48;
}

.situation-intro__source {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .46);
  font-size: 10px;
}

.situation-intro__source svg {
  width: 12px;
  height: 12px;
}

.reporting-command {
  position: relative;
  z-index: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 18px 24px;
  border-left: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .08);
  text-align: center;
}

.reporting-ring {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: conic-gradient(#d5b652 calc(var(--coverage) * 1%), rgba(255, 255, 255, .13) 0);
  transition: --coverage .7s ease;
}

.reporting-ring__inner {
  display: grid;
  place-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #194750;
}

.reporting-ring__inner strong {
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.reporting-ring__inner span {
  margin-top: 5px;
  color: rgba(255, 255, 255, .55);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.reporting-command__copy {
  display: grid;
  gap: 4px;
}

.reporting-command__copy>span {
  color: #e5ce74;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.reporting-command__copy strong {
  font-size: 18px;
}

.reporting-command__copy small {
  color: rgba(255, 255, 255, .55);
  font-size: 10px;
}

.national-metrics__hero-dots {
  display: none;
}

.national-metrics__hero-dots button {
  width: 22px;
  height: 3px;
  border-radius: 3px;
  border: 0;
  padding: 0;
  background: rgba(28, 106, 132, 0.22);
  cursor: pointer;
  transition: 0.25s;
}

.national-metrics__hero-dots button.is-on {
  background: #c6a246;
  width: 32px;
}

.national-metrics__hero-dots button:hover {
  background: rgba(28, 106, 132, 0.42);
}

.national-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.national-metrics__cards {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.national-metric {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 112px;
  padding: 15px 17px 13px;
  border: 1px solid #d4dfda;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(15, 51, 57, .05);
  overflow: hidden;
  cursor: pointer;
  transition: all .2s ease;
}

.national-metric:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 51, 57, .12);
  border-color: var(--brand-primary);
}

.national-metric::before {
  display: none;
}

.national-metric__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.national-metric__identity {
  display: flex;
  align-items: center;
  min-width: 0;
}

.national-metric__icon {
  position: absolute;
  right: 15px;
  bottom: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #d9e6e0;
  border-radius: 13px;
  background: #eef6f2;
  color: #24715a;
  box-shadow: 0 5px 14px rgba(26, 78, 66, .08);
}

.national-metric:nth-child(2) .national-metric__icon { background: #fbf5e7; border-color: #eadfbd; color: #98761f; }
.national-metric:nth-child(3) .national-metric__icon { background: #f8eee9; border-color: #ead8cf; color: #985238; }
.national-metric:nth-child(4) .national-metric__icon { background: #edf4f7; border-color: #d7e4e9; color: #2b6d84; }
.national-metric__icon svg { width: 21px; height: 21px; }

.national-metric__label {
  color: #5c7479;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.national-metric--synced {
  cursor: default;
}

.national-metric--synced:hover {
  transform: none;
  box-shadow: 0 4px 18px rgba(15, 51, 57, .05);
  border-color: #d4dfda;
}

.national-metric--synced .national-metric__flipper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 4.5rem;
  margin-top: 2px;
}

.national-metric--synced .national-metric__slide.is-active {
  flex: 1;
  min-height: 100%;
  gap: 0;
}

.national-metric--synced .national-metric__slide.is-active:has(.national-metric__delta--caption) {
  gap: 3px;
  justify-content: flex-start;
}

.national-metric--synced .national-metric__slide.is-active:has(.national-metric__delta--caption) .national-metric__note {
  margin-top: 0;
}

.national-metric--synced .national-metric__value {
  flex: none;
  padding-bottom: 6px;
}

.national-metric--synced .national-metric__slide.is-active:has(.national-metric__delta--caption) .national-metric__value {
  padding-bottom: 0;
}

.national-metric--synced .national-metric__note {
  margin-top: auto;
  align-self: flex-start;
  max-width: calc(100% - 52px);
  padding-right: 4px;
  padding-bottom: 1px;
  line-height: 1.32;
  text-wrap: balance;
  font-size: 12px;
  font-weight: 750;
  color: #2f4f57;
}

.national-metric--synced .national-metric__delta--caption {
  margin-top: 2px;
  font-size: 9px;
  font-weight: 650;
  color: #687f84;
  background: transparent;
  padding: 0;
  border-radius: 0;
  align-self: flex-start;
}

.national-metric__dots--sections button {
  display: block;
  width: 5px;
  height: 5px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.national-metric__dots--sections button.is-on {
  background: var(--brand-primary);
  transform: scale(1.35);
}

.national-metric__dots--sections button:hover {
  background: #94a3b8;
}

.national-metric--synced .national-metric__header {
  align-items: center;
}

.national-metric--synced .national-metric__value {
  font-size: clamp(22px, 2.2vw, 28px);
  white-space: nowrap;
}

.national-metric--synced[data-card="3"] .national-metric__value {
  font-size: clamp(24px, 2.35vw, 30px);
}

.national-metric__dots {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4px;
}

.national-metric__dots i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: all .2s ease;
}

.national-metric__dots i.is-active {
  background: var(--brand-primary);
  transform: scale(1.3);
}

.national-metric__flipper {
  position: relative;
  min-height: 65px;
}

.national-metric__slide {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.national-metric__slide.is-active {
  display: flex;
  pointer-events: auto;
  animation: metric-card-in .28s ease both;
}

@keyframes metric-card-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.national-metric__value {
  color: var(--brand-primary);
  font-size: clamp(24px, 2vw, 31px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.03em;
}

.national-metric__note {
  max-width: calc(100% - 58px);
  color: #687f84;
  font-size: 10.5px;
  line-height: 1.35;
}

.national-metric__delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 750;
  color: #15803d;
  background: #e7f7ec;
  padding: 2px 8px;
  border-radius: 999px;
  align-self: flex-start;
  max-width: calc(100% - 58px);
}

.national-metric__delta.is-attention {
  color: #b45309;
  background: #fef3c7;
}

/* Auto-rotating national programme briefing. */
.national-lens {
  position: relative;
  overflow: hidden;
  border: 1px solid #d7dfdc;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(22, 54, 59, .075);
  --lens-card-copy: 11px;
  --lens-card-weight: 700;
}

.national-lens__head {
  align-items: center;
  padding: 18px 22px;
  background: linear-gradient(90deg, #fff 0%, #fffdf7 100%);
}

.national-lens__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.national-lens__controls>span {
  margin-right: 4px;
  color: #617478;
  font-size: 9px;
  font-weight: 620;
}

.national-lens__tabs {
  display: flex;
  gap: 5px;
}

.national-lens__tab {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #d7dfdc;
  border-radius: 999px;
  color: #4e6469;
  font-size: 10px;
  font-weight: 750;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.national-lens__tab.is-active {
  border-color: var(--tab-accent, var(--brand-primary));
  background: var(--tab-accent, var(--brand-primary));
  color: #fff;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--tab-accent, var(--brand-primary)) 24%, transparent);
}

.national-lens__controls>button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #d7dfdc;
  border-radius: 50%;
  background: #fff;
  color: #315a63;
}

.national-lens__controls>button:hover {
  background: #f0f5f2;
}

.national-lens__controls svg {
  width: 12px;
  height: 12px;
}

.national-lens__viewport {
  overflow: hidden;
  transition: height .5s cubic-bezier(.2, .75, .25, 1);
}

.national-lens__track {
  display: flex;
  /* Each slide keeps its own height so the viewport can size to the active one
     instead of every brief inheriting the tallest brief's height. */
  align-items: flex-start;
  transition: transform .55s cubic-bezier(.2, .75, .25, 1);
}

.national-lens__slide {
  display: grid;
  grid-template-columns: minmax(285px, .72fr) repeat(2, minmax(0, 1fr));
  flex: 0 0 100%;
  min-width: 0;
  min-height: 420px;
  --lens-accent: #2a8063;
}

.lens-lead {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  padding: 30px 30px 28px;
  border-right: 1px solid color-mix(in srgb, var(--lens-accent) 42%, #193f47);
  background:
    radial-gradient(circle at 88% 15%, rgba(255, 255, 255, .08) 0 76px, transparent 77px),
    linear-gradient(145deg, color-mix(in srgb, var(--lens-accent) 72%, #193f47), color-mix(in srgb, var(--lens-accent) 26%, #102f36) 78%);
  color: #fff;
}

.lens-lead::after {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -72px;
  width: 175px;
  height: 175px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(255, 255, 255, .025);
}

.lens-lead__icon {
  position: absolute;
  top: 26px;
  right: 25px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 16px;
  background: rgba(255, 255, 255, .11);
  color: #fff;
}

.lens-lead__icon svg {
  width: 28px;
  height: 28px;
}

.lens-lead__index,
.lens-panel__eyebrow {
  color: var(--lens-accent);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.lens-lead__index {
  color: color-mix(in srgb, var(--lens-accent) 34%, #fff);
}

.lens-lead h3 {
  position: relative;
  z-index: 1;
  max-width: 18ch;
  margin: 50px 0 22px;
  color: #fff;
  font-size: clamp(21px, 1.9vw, 29px);
  line-height: 1.16;
  letter-spacing: -.035em;
}

.lens-lead__value {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: clamp(42px, 4vw, 62px);
  line-height: .92;
  letter-spacing: -.05em;
}

.lens-lead__unit {
  position: relative;
  z-index: 1;
  margin-top: 7px;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
}

.lens-lead p {
  position: relative;
  z-index: 1;
  margin: 17px 0 22px;
  color: rgba(255, 255, 255, .72);
  font-size: 11.5px;
  line-height: 1.55;
}

.lens-lead a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  color: #fff;
  font-size: 10px;
  font-weight: 750;
}

.lens-lead a svg {
  width: 11px;
  height: 11px;
}

.lens-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid #e1e6e3;
  background: color-mix(in srgb, var(--lens-accent) 2.5%, #fff);
}

.lens-panel:last-child {
  border-right: 0;
}

.lens-panel>header {
  padding: 21px 24px 18px;
  border-bottom: 1px solid #e8ebe9;
  background: linear-gradient(180deg, color-mix(in srgb, var(--lens-accent) 5%, #fff), #fff);
}

.lens-panel>header h4 {
  margin: 5px 0 0;
  color: #274d55;
  font-size: 17px;
  letter-spacing: -.015em;
}

.lens-panel__body {
  display: grid;
  align-content: stretch;
  flex: 1 1 auto;
  min-height: 0;
  padding: 24px;
  background:
    radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--lens-accent) 6%, transparent) 0 88px, transparent 89px),
    color-mix(in srgb, var(--lens-accent) 1.5%, #fff);
}

.lens-panel__body--split {
  padding: 22px 24px 24px;
  align-content: start;
}

.lens-panel__body--donut {
  grid-template-columns: 158px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
}

.lens-panel__donut {
  min-height: 158px;
  display: grid;
  place-items: center;
}

.lens-panel__legend {
  display: grid;
  gap: 8px;
}

.lens-panel__legend .legend__row {
  min-height: 26px;
  font-size: var(--lens-card-copy, 11px);
  font-weight: var(--lens-card-weight, 700);
}

.lens-panel__bars {
  min-height: 245px;
  display: grid;
  align-content: center;
}

/* Stacked panel — a chart above, a supporting list below. */
.lens-panel__body--stack {
  align-content: start;
  gap: 22px;
  grid-template-rows: auto 1fr;
}

.lens-panel__body--stack .split-bar {
  display: grid;
  align-content: start;
}

.lens-panel__body--stack .split-bar::before {
  content: attr(data-chart-label);
  margin-bottom: 10px;
  color: #496168;
  font-size: 9.5px;
  font-weight: 780;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lens-services {
  display: grid;
  align-content: start;
  gap: 10px;
}

.lens-services__title {
  color: #496168;
  font-size: 9.5px;
  font-weight: 780;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lens-services ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lens-service {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid #e0e6e3;
  border-radius: 10px;
  background: rgba(255, 255, 255, .88);
  color: #2f4f57;
  font-size: 11px;
  font-weight: 640;
}

.lens-service__tick {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--lens-accent) 16%, #fff);
}

.lens-service__tick::after {
  position: absolute;
  top: 3px;
  left: 5.5px;
  width: 4px;
  height: 8px;
  border: solid var(--lens-accent);
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(42deg);
}

.lens-panel__footnote {
  margin: 12px 0 0;
  color: #7d9098;
  font-size: 10px;
  font-weight: 620;
  text-align: center;
}

/* Vertical columns — used where the x axis is time or a short comparison. */
.lens-columns {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  min-height: 215px;
  padding: 6px 2px 0;
}

.lens-columns--grouped {
  gap: 20px;
}

.lens-group {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 100%;
}

.lens-group__bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

.lens-group__bar {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 42px;
  height: 100%;
}

.lens-group__bar .lens-column__value {
  font-size: 10px;
}

.lens-group__bar.is-empty .lens-column__value {
  color: #9aa8ae;
}

.lens-group__bar.is-empty .lens-column__track {
  background: repeating-linear-gradient(135deg, #f1f4f2 0 4px, #e7ece9 4px 8px);
}

.lens-column {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 100%;
}

.lens-column__value {
  color: #234c56;
  font-size: 11.5px;
  font-weight: 760;
  white-space: nowrap;
}

.lens-column__track {
  display: flex;
  align-items: flex-end;
  width: 100%;
  max-width: 68px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px 8px 4px 4px;
  background: #edf1ef;
}

.lens-column__track i {
  display: block;
  width: 100%;
  border-radius: inherit;
  transition: height .6s cubic-bezier(.2, .75, .25, 1);
}

.lens-column__label {
  color: #385b62;
  font-size: 10.5px;
  font-weight: 680;
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lens-ranked-bars {
  gap: 15px;
}

.lens-ranked-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 56px;
  gap: 10px;
  align-items: center;
}

.lens-ranked-row__label {
  overflow: hidden;
  color: #385b62;
  font-size: 10.5px;
  font-weight: 680;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lens-ranked-row__track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1ef;
}

.lens-ranked-row__track i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.lens-ranked-row__value {
  color: #234c56;
  font-size: 11.5px;
  font-weight: 760;
  text-align: right;
}

.lens-split-story {
  display: grid;
  grid-template-rows: auto minmax(150px, 1fr) auto;
  gap: 18px;
  height: 100%;
}

.lens-split-story--trend {
  grid-template-rows: minmax(190px, 1fr) auto;
  gap: 16px;
}

/* Donut + reading: two rows only (avoids empty 1fr row gap). */
.lens-split-story--compact {
  grid-template-rows: auto auto;
  gap: 12px;
  height: auto;
  min-height: 0;
  align-self: start;
  width: 100%;
}

.lens-split-story--compact .lens-panel__body--donut {
  padding: 0;
  min-height: 0;
  flex: none;
  align-content: center;
}

.lens-split-story--compact .lens-split-story__reading {
  align-self: start;
}

.lens-panel__body--split .lens-split-story.lens-split-story--compact {
  height: auto;
  grid-template-rows: auto auto;
}

.lens-panel__body--trend {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
}

.lens-panel__body--trend .lens-trend {
  min-height: 190px;
}

.lens-panel__body--trend .line-chart,
.lens-panel__body--trend .line-chart svg {
  width: 100%;
  min-height: 168px;
  display: block;
}

/* Seeds brief: vertically center panel content like other programme stories. */
#lens-story-seeds .lens-panel {
  display: flex;
  flex-direction: column;
}

#lens-story-seeds .lens-panel > header {
  flex: 0 0 auto;
}

#lens-story-seeds .lens-panel__body {
  flex: 1 1 auto;
  display: grid;
  align-content: center;
  justify-content: stretch;
  padding: 20px 24px 22px;
}

#lens-story-seeds .lens-panel__body--split {
  align-content: center;
}

#lens-story-seeds .lens-panel__body--donut {
  min-height: 158px;
  grid-template-columns: 158px minmax(0, 1fr);
}

#lens-story-seeds .lens-panel__donut {
  min-height: 158px;
  min-width: 158px;
}

#lens-story-seeds .lens-panel__donut svg {
  display: block;
  width: 158px;
  height: 158px;
  max-width: 100%;
}

#lens-story-seeds .lens-panel__body--trend {
  align-content: center;
  gap: 6px;
  padding-top: 10px;
}

#lens-story-seeds .lens-panel__body--trend .lens-trend {
  min-height: 168px;
  gap: 4px;
}

#lens-story-seeds .lens-panel__body--trend .lens-trend__head {
  margin-top: -4px;
  padding-bottom: 2px;
}

#lens-story-seeds .lens-panel__footnote {
  margin: 8px 0 0;
}

/* Vaccination brief: trend + species/county stack (aligned with seeds layout). */
#lens-story-livestock .lens-panel {
  display: flex;
  flex-direction: column;
}

#lens-story-livestock .lens-panel > header {
  flex: 0 0 auto;
}

#lens-story-livestock .lens-panel__body {
  flex: 1 1 auto;
  display: grid;
  align-content: center;
  justify-content: stretch;
  padding: 20px 24px 22px;
}

#lens-story-livestock .lens-panel__body--trend {
  align-content: center;
  gap: 6px;
  padding-top: 10px;
}

#lens-story-livestock .lens-panel__body--trend .lens-trend {
  min-height: 168px;
  gap: 4px;
}

#lens-story-livestock .lens-panel__body--trend .lens-trend__head {
  margin-top: -4px;
  padding-bottom: 2px;
}

#lens-story-livestock .lens-panel__body--vacc {
  align-content: start;
  gap: 16px;
  /* Stack panels use auto 1fr (chart + fill); vacc has bar, chips, counties — no 1fr row */
  grid-template-rows: none;
}

#lens-story-livestock .lens-vacc-county-block {
  display: grid;
  gap: 0;
  min-width: 0;
  margin-top: 2px;
}

#lens-story-livestock .lens-vacc-county-block .lens-coop-section {
  margin: 0 0 8px;
}

#lens-story-livestock .lens-vacc-chip-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  align-items: start;
  min-width: 0;
}

#lens-story-livestock #lens-vacc-species-chips {
  margin-top: 13px;
}

#lens-story-livestock .lens-vacc-county-block .lens-vacc-chip-row {
  margin-top: 0;
}

#lens-story-livestock .lens-coop-chip {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 5px;
  min-width: 0;
  min-height: 54px;
  box-sizing: border-box;
  padding: 9px 10px;
  border: 1px solid #e0e6e3;
  border-radius: 10px;
  background: rgba(255, 255, 255, .88);
}

#lens-story-livestock .lens-coop-chip__head {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

#lens-story-livestock .lens-coop-chip__dot {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(24, 63, 71, .05);
}

#lens-story-livestock .lens-coop-chip__name {
  color: #2f4f57;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
}

#lens-story-livestock .lens-coop-chip__value {
  padding-left: 17px;
  color: #173f49;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
}

#lens-story-cooperatives .lens-panel {
  display: flex;
  flex-direction: column;
}

#lens-story-cooperatives .lens-panel > header {
  flex: 0 0 auto;
  min-height: 86px;
  box-sizing: border-box;
}

#lens-story-cooperatives .lens-panel__body {
  flex: 1 1 auto;
  display: grid;
  align-content: start;
  padding: 22px 24px 24px;
}

#lens-story-cooperatives .lens-panel__body--coop,
#lens-story-cooperatives .lens-panel__body--coop-benefits {
  align-content: start;
  gap: 14px;
}

#lens-story-cooperatives .lens-coop-story {
  grid-template-rows: none;
  gap: 13px;
  height: auto;
  width: 100%;
  min-width: 0;
  align-self: start;
}

#lens-story-cooperatives .lens-coop-chip-band {
  display: grid;
  gap: 9px;
}

#lens-story-cooperatives .lens-coop-hero-stat {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 20px;
  text-align: center;
  justify-items: center;
}

#lens-story-cooperatives .lens-coop-hero-stat span {
  width: 100%;
  color: color-mix(in srgb, var(--lens-accent) 72%, #334f56);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

#lens-story-cooperatives .lens-coop-hero-stat strong {
  width: 100%;
  text-align: center;
}

#lens-story-cooperatives .lens-coop-section {
  margin: 0;
  min-height: 2.5em;
  color: #496168;
  font-size: 9.5px;
  font-weight: 780;
  letter-spacing: .08em;
  line-height: 1.25;
  text-transform: uppercase;
}

#lens-story-cooperatives .lens-coop-chip-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  align-items: stretch;
}

#lens-story-cooperatives .lens-coop-chip {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 54px;
  box-sizing: border-box;
  padding: 9px 10px;
  border: 1px solid #e0e6e3;
  border-radius: 10px;
  background: rgba(255, 255, 255, .88);
}

#lens-story-cooperatives .lens-coop-chip__head {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

#lens-story-cooperatives .lens-coop-chip__dot {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(24, 63, 71, .05);
}

#lens-story-cooperatives .lens-coop-chip--sacco .lens-coop-chip__dot {
  background: #0284c7;
}

#lens-story-cooperatives .lens-coop-chip--fpo .lens-coop-chip__dot {
  background: #f59e0b;
}

#lens-story-cooperatives .lens-coop-chip__name {
  color: #2f4f57;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
}

#lens-story-cooperatives .lens-coop-chip__value {
  padding-left: 17px;
  color: #173f49;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
}

#lens-story-cooperatives .lens-coop-services {
  width: 100%;
}

#lens-story-cooperatives .lens-coop-programme-note {
  margin: 0;
  color: #5a7279;
  font-size: 11px;
  line-height: 1.45;
}

.lens-trend {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
}

.lens-trend__head {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  justify-content: space-between;
}

.lens-trend__title {
  color: #496168;
  font-size: 9.5px;
  font-weight: 780;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lens-trend__note {
  color: #7d9098;
  font-size: 8.5px;
  font-weight: 640;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.lens-trend__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.lens-trend__legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #486168;
  font-size: 9.5px;
  font-weight: 680;
}

.lens-trend__legend i {
  width: 13px;
  height: 3px;
  border-radius: 2px;
}

.lens-trend .line-chart {
  width: 100%;
  overflow: visible;
}

.lens-trend .line-chart--interactive {
  position: relative;
  cursor: crosshair;
  touch-action: pan-y;
}

.lens-trend .line-chart__tooltip {
  position: absolute;
  z-index: 2;
  min-width: 112px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #8f6810;
  color: #fff;
  box-shadow: 0 8px 24px rgba(143, 104, 16, .22);
  pointer-events: none;
  white-space: nowrap;
  display: grid;
  gap: 2px;
}

.lens-trend .line-chart__tooltip strong {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}

.lens-trend .line-chart__tooltip span {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.lens-trend .line-chart__crosshair {
  stroke: rgba(143, 104, 16, .28);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  pointer-events: none;
}

.lens-trend .line-chart--interactive .series-dot.is-active,
.lens-trend .line-chart--interactive .series-dot-halo.is-active {
  filter: drop-shadow(0 2px 6px rgba(143, 104, 16, .28));
}

.lens-split-story__stat {
  display: grid;
  gap: 6px;
  padding: 17px 18px 16px;
  border: 1px solid color-mix(in srgb, var(--lens-accent) 18%, #dce4e1);
  border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--lens-accent) 9%, #fff), #fff 74%);
}

.lens-split-story__stat span {
  color: color-mix(in srgb, var(--lens-accent) 72%, #334f56);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lens-split-story__stat strong {
  color: var(--lens-accent);
  font-size: clamp(30px, 2.4vw, 42px);
  line-height: 1;
  letter-spacing: -.04em;
}

.lens-split-story .split-bar {
  display: grid;
  align-content: center;
}

.lens-split-story .split-bar::before {
  content: attr(data-chart-label);
  margin-bottom: 10px;
  color: #496168;
  font-size: 9.5px;
  font-weight: 780;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lens-panel .split-bar__track {
  height: 29px;
  border: 1px solid rgba(24, 63, 71, .11);
  border-radius: 8px;
  box-shadow: inset 0 1px 2px rgba(17, 50, 56, .08);
}

.lens-panel .split-bar__seg {
  filter: saturate(1.12) contrast(1.04);
  box-shadow: inset -2px 0 rgba(255, 255, 255, .58);
}

.lens-panel .split-bar__legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 9px;
  margin-top: 13px;
}

.lens-panel .split-bar__legend span {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 3px 7px;
  align-items: center;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e0e6e3;
  border-radius: 10px;
  background: rgba(255, 255, 255, .88);
  color: #2f4f57;
  font-size: 9px;
}

.lens-panel .split-bar__legend em {
  color: #2f4f57;
  font-size: 9px;
  line-height: 1.2;
  white-space: normal;
}

.lens-panel .split-bar__legend b {
  grid-column: 2;
  color: #173f49;
  font-size: 10.5px;
}

.lens-panel .split-bar__swatch {
  grid-row: 1 / 3;
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 3px rgba(24, 63, 71, .05);
}

.lens-split-story__reading {
  display: grid;
  gap: 4px;
  padding: 13px 15px;
  border-left: 4px solid var(--lens-accent);
  border-radius: 0 10px 10px 0;
  background: color-mix(in srgb, var(--lens-accent) 7%, #fff);
}

.lens-split-story__reading span {
  color: var(--lens-accent);
  font-size: 8.5px;
  font-weight: 820;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lens-split-story__reading strong {
  display: block;
  color: #244a53;
  font-size: 11px;
  line-height: 1.4;
}

/* Programme lens panels — bold labels/values at one size (legends, bars, chips). */
#programme-lens .lens-panel__legend .legend__label,
#programme-lens .lens-panel__legend .legend__value {
  font-size: inherit;
  font-weight: inherit;
}

#programme-lens .lens-panel__legend .legend__label {
  color: #2f4f57;
}

#programme-lens .lens-panel__legend .legend__value {
  color: #173f49;
}

#programme-lens .lens-ranked-row__label,
#programme-lens .lens-ranked-row__value {
  font-size: var(--lens-card-copy);
  font-weight: var(--lens-card-weight);
  color: #2f4f57;
}

#programme-lens .lens-ranked-row__value {
  color: #173f49;
}

#programme-lens .lens-column__label,
#programme-lens .lens-column__value,
#programme-lens .lens-group__bar .lens-column__value {
  font-size: var(--lens-card-copy);
  font-weight: var(--lens-card-weight);
}

#programme-lens .lens-service {
  font-size: var(--lens-card-copy);
  font-weight: var(--lens-card-weight);
}

#programme-lens .lens-panel .split-bar__legend span,
#programme-lens .lens-panel .split-bar__legend em,
#programme-lens .lens-panel .split-bar__legend b {
  font-size: var(--lens-card-copy);
  font-weight: var(--lens-card-weight);
  color: #2f4f57;
}

#programme-lens .lens-panel .split-bar__legend b {
  color: #173f49;
}

#programme-lens .lens-coop-chip__name,
#programme-lens .lens-coop-chip__value {
  font-size: var(--lens-card-copy);
  font-weight: var(--lens-card-weight);
}

#programme-lens .lens-coop-chip__value {
  color: #173f49;
}

#programme-lens .lens-split-story__reading strong {
  font-size: var(--lens-card-copy);
  font-weight: var(--lens-card-weight);
}

#programme-lens .lens-trend__legend span {
  font-size: var(--lens-card-copy);
  font-weight: var(--lens-card-weight);
}

.national-lens__progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(35, 100, 120, .1);
}

.national-lens__progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--lens-accent, #c6a246);
}

.national-lens__progress i.is-running {
  animation: lens-progress 10s linear forwards;
}

.national-lens--hero-sync .national-lens__progress i.is-running {
  animation-duration: 10s;
}

body.dashboard-carousel-paused .national-lens__progress i.is-running,
#programme-lens.is-paused .national-lens__progress i.is-running {
  animation-play-state: paused;
}

.lens-panel__placeholder {
  margin: 0;
  color: #4a6570;
  font-size: 12px;
  line-height: 1.55;
}

@keyframes lens-progress {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

.situation-control {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(330px, .52fr);
  gap: 16px;
  align-items: stretch;
}

.situation-map-panel,
.county-command,
.programme-command {
  overflow: hidden;
  border: 1px solid #dbe2df;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(22, 54, 59, .04);
}

.situation-map-panel {
  display: flex;
  flex-direction: column;
}

.situation-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  min-height: 69px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid #e2e7e4;
  background: #fff;
}

.situation-panel-head p,
.season-pulse header p {
  margin: 0 0 4px;
  color: #23745b;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.situation-panel-head h2,
.season-pulse header h2 {
  margin: 0;
  color: #22474f;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -.018em;
}

.situation-panel-head>span,
.season-pulse header>span {
  color: #7a888b;
  font-size: 10px;
  white-space: nowrap;
}

.situation-map-wrap {
  flex: 1 1 auto;
  min-height: 510px;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(31, 116, 84, .07), transparent 44%),
    #f7f8f4;
}

.situation-reading {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
}

.national-reading {
  position: relative;
  overflow: hidden;
  border-radius: 17px;
  padding: 25px 25px 0;
  background: linear-gradient(148deg, var(--brand-primary), var(--brand-primary-dark));
  color: #fff;
  box-shadow: 0 8px 26px rgba(24, 76, 90, .12);
}

.national-reading::after {
  content: "";
  position: absolute;
  right: -55px;
  top: 42px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
}

.national-reading__eyebrow {
  margin: 0 0 11px;
  color: #e1c965;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.national-reading>h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: clamp(20px, 1.65vw, 26px);
  line-height: 1.18;
  letter-spacing: -.032em;
  text-wrap: balance;
}

.national-reading>p:not(.national-reading__eyebrow) {
  position: relative;
  z-index: 1;
  margin: 13px 0 20px;
  color: rgba(255, 255, 255, .65);
  font-size: 12px;
  line-height: 1.55;
}

.national-reading__facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 -25px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .09);
}

.national-reading__fact {
  display: grid;
  gap: 5px;
  padding: 15px 13px 17px;
  border-right: 1px solid rgba(255, 255, 255, .1);
}

.national-reading__fact:last-child {
  border-right: 0;
}

.national-reading__fact span {
  color: rgba(255, 255, 255, .48);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.national-reading__fact strong {
  font-size: 18px;
  line-height: 1;
}

.national-reading__fact small {
  color: rgba(255, 255, 255, .52);
  font-size: 8.5px;
  line-height: 1.35;
}

.season-pulse {
  overflow: hidden;
  border: 1px solid #dbe2df;
  border-radius: 17px;
  background: #fff;
}

.season-pulse header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 19px 13px;
  border-bottom: 1px solid #e5e9e6;
}

.season-pulse__rows {
  padding: 10px 19px 14px;
}

.season-pulse__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 12px;
  padding: 8px 0;
}

.season-pulse__row+.season-pulse__row {
  border-top: 1px solid #eef0ee;
}

.season-pulse__label {
  color: #486168;
  font-size: 11.5px;
  font-weight: 650;
}

.season-pulse__row--has-tip {
  cursor: help;
}

.season-pulse__value {
  color: var(--brand-primary);
  font-size: 11.5px;
  font-weight: 800;
}

.season-pulse__track {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eeeb;
}

.season-pulse__track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #287b67, #b7a245);
}

.season-pulse__row.is-attention .season-pulse__track i {
  background: #c88432;
}

.situation-panel-head--plain {
  min-height: 76px;
}

.heartbeat-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 13px;
  color: #748286;
  font-size: 9.5px;
}

.heartbeat-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.heartbeat-legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}

.heartbeat-legend .is-strong {
  background: #286b5d;
}

.heartbeat-legend .is-active {
  background: #9cbcad;
}

.heartbeat-legend .is-gap {
  background: #d5d8d5;
}

.county-command {
  position: relative;
  background:
    radial-gradient(ellipse 42% 38% at 102% 108%, rgba(46, 122, 90, .08), transparent 70%),
    radial-gradient(ellipse 36% 28% at -4% -8%, rgba(46, 122, 90, .07), transparent 62%),
    linear-gradient(180deg, #fcfefc 0%, #f5f9f6 100%);
}

.county-command::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -28px;
  width: 160px;
  height: 120px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(46, 122, 90, .16) 0 28%, transparent 29%),
    radial-gradient(ellipse at 62% 48%, rgba(61, 140, 104, .14) 0 22%, transparent 23%),
    radial-gradient(ellipse at 78% 78%, rgba(39, 102, 78, .12) 0 18%, transparent 19%);
}

.county-command__head {
  position: relative;
  z-index: 1;
  align-items: center;
  min-height: 88px;
  background: transparent;
  border-bottom-color: rgba(219, 226, 223, .7);
}

.county-command__title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.county-command__badge {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  margin-top: 1px;
  border-radius: 50%;
  background: linear-gradient(160deg, #2f8a6a, #1f5f4e);
  color: #fff;
  box-shadow: 0 8px 18px rgba(31, 95, 78, .18);
}

.county-command__badge svg {
  display: block;
  width: 20px;
  height: 20px;
}

.county-command__title h2 {
  letter-spacing: -.02em;
}

.county-command__title small {
  display: block;
  margin-top: 5px;
  color: #6b7c7f;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.county-command__body {
  position: relative;
  z-index: 1;
  min-height: 0;
}

.heartbeat-matrix {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
  padding: 8px 20px 6px;
}

.heartbeat-county {
  --share-width: 0%;
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 8px;
  min-height: 78px;
  padding: 11px 11px 10px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(31, 94, 74, .1);
  border-radius: 14px;
  background: color-mix(in srgb, #2d765f calc(var(--intensity) * .42%), #eef6f1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.heartbeat-county:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 94, 74, .22);
  box-shadow: 0 8px 18px rgba(22, 54, 59, .08);
}

.heartbeat-county.is-gap {
  border-color: #d5d8d4;
  background: repeating-linear-gradient(-45deg, #eceeea, #eceeea 5px, #e4e6e3 5px, #e4e6e3 6px);
}

.heartbeat-county.is-strong {
  background: linear-gradient(165deg, #2f7a64 0%, #1f5a4b 100%);
  border-color: rgba(17, 64, 54, .18);
  box-shadow: 0 8px 16px rgba(24, 76, 64, .14);
}

.heartbeat-county.is-strong:hover {
  box-shadow: 0 12px 22px rgba(24, 76, 64, .2);
}

.heartbeat-county__mark {
  grid-row: 1;
  display: grid;
  place-items: center;
  align-self: start;
  width: 30px;
  height: 30px;
  color: #2a6b58;
}

.heartbeat-county__shape {
  display: block;
  width: 26px;
  height: 26px;
  overflow: visible;
}

.heartbeat-county__shape path {
  fill: currentColor;
}

.heartbeat-county__copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 3px;
}

.heartbeat-county strong {
  overflow: hidden;
  color: #173f44;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.heartbeat-county em {
  color: #4d6a6c;
  font-size: 10px;
  font-style: normal;
  font-weight: 550;
  letter-spacing: -.01em;
}

.heartbeat-county__meter {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.heartbeat-county__meter i {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(31, 94, 74, .12);
}

.heartbeat-county__meter i::after {
  content: "";
  display: block;
  width: var(--share-width);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2a7a62, #1f5a4b);
}

.heartbeat-county__meter b {
  color: #3f6163;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: -.02em;
}

.heartbeat-county.is-gap .heartbeat-county__mark {
  color: #9aa3a0;
}

.heartbeat-county.is-gap strong,
.heartbeat-county.is-gap em,
.heartbeat-county.is-gap .heartbeat-county__meter b {
  color: #6d7876;
}

.heartbeat-county.is-gap .heartbeat-county__meter i {
  background: rgba(120, 128, 124, .16);
}

.heartbeat-county.is-gap .heartbeat-county__meter i::after {
  background: #b7bdb9;
}

.heartbeat-county.is-strong .heartbeat-county__mark,
.heartbeat-county.is-strong strong,
.heartbeat-county.is-strong em,
.heartbeat-county.is-strong .heartbeat-county__meter b {
  color: #fff;
}

.heartbeat-county.is-strong .heartbeat-county__meter i {
  background: rgba(255, 255, 255, .22);
}

.heartbeat-county.is-strong .heartbeat-county__meter i::after {
  background: #fff;
}

.heartbeat-county.is-selected {
  border-color: #0B5668;
  box-shadow: 0 0 0 2px rgba(11, 86, 104, .18);
}

.heartbeat-county.is-strong.is-selected {
  border-color: #c8e6d8;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .45), 0 8px 16px rgba(24, 76, 64, .14);
}

.county-command__foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 8px 22px 14px;
  color: #5f7370;
  font-size: 11.5px;
}

.county-command__foot p {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
}

.county-command__sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b7c4bf;
}

.county-command__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #23745b;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.county-command__link svg {
  width: 12px;
  height: 12px;
}

.programme-briefs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #e2e7e4;
  gap: 1px;
}

.programme-brief {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 112px;
  padding: 19px 20px;
  background: #fff;
  transition: background .18s ease, color .18s ease;
}

.programme-brief:hover {
  background: #f1f6f3;
}

.programme-brief__index {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #cfdad4;
  border-radius: 50%;
  color: #287158;
  font-size: 8px;
  font-weight: 800;
}

.programme-brief__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.programme-brief__copy span {
  color: #718084;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.programme-brief__copy strong {
  color: #244c54;
  font-size: 23px;
  line-height: 1;
}

.programme-brief__copy small {
  overflow: hidden;
  color: #7b888b;
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.programme-brief>svg {
  width: 14px;
  height: 14px;
  color: #2b765d;
}

.national-map__hint {
  display: block;
  margin-top: 4px;
  color: #718084;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

/* --- Map Layer Switcher Bar (legacy — home uses unified county tooltip) --- */
.map-layer-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.map-layer-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.map-layer-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #d0dad5;
  border-radius: 999px;
  background: #f4f8f6;
  color: #4b6b6f;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
}

.map-layer-btn svg {
  width: 12px;
  height: 12px;
  opacity: .75;
}

.map-layer-btn:hover {
  background: #e2ede8;
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.map-layer-btn.is-active {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
  box-shadow: 0 2px 8px rgba(24, 76, 90, .25);
}

.map-layer-btn.is-active svg {
  opacity: 1;
  color: #5eead4;
}



.map-layer-progress-bar {
  width: 100%;
  height: 3px;
  background: #e2ede8;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 2px;
}

.map-layer-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981, #3b82f6);
  border-radius: inherit;
}

.map-layer-progress-fill.is-running {
  animation: map-progress 8s linear forwards;
}

@keyframes map-progress {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

/* --- Live national programme signals --- */
.live-ticker-slot {
  min-height: 72px;
}

.live-ticker {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  width: 100%;
  overflow: hidden;
  min-height: 72px;
  align-items: stretch;
  border: 1px solid #1d515d;
  border-radius: 16px;
  background: linear-gradient(90deg, #123943, #1c5260);
  color: #fff;
  box-shadow: 0 9px 26px rgba(21, 55, 61, .08);
  transition: opacity .28s ease, visibility .28s ease;
}

.live-ticker.is-ticker-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.live-ticker.is-docked {
  position: fixed;
  right: auto;
  bottom: 12px;
  left: var(--live-ticker-left, 0);
  z-index: 55;
  width: var(--live-ticker-width, 100%);
  border-radius: 16px;
  box-shadow: 0 -8px 28px rgba(12, 40, 47, .22);
}

.live-ticker__tag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #12343c;
  color: #fff;
}

.live-ticker__tag>span:last-child {
  display: grid;
  gap: 4px;
}

.live-ticker__tag b {
  color: #f1d46a;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.live-ticker__tag small {
  color: rgba(255, 255, 255, .68);
  font-size: 9.5px;
  line-height: 1.35;
}

.live-ticker__track {
  overflow-x: auto;
  overflow-y: hidden;
  min-width: 0;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.live-ticker__track::-webkit-scrollbar {
  display: none;
}

.live-ticker__track:focus-visible {
  outline: 2px solid rgba(241, 212, 106, .85);
  outline-offset: -2px;
}

.live-ticker__track.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.live-ticker__track.is-dragging a.live-ticker__signal {
  pointer-events: none;
}

.live-ticker__content {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
}

.live-ticker__group {
  display: flex;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: stretch;
}

a.live-ticker__signal {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.live-ticker__signal:hover {
  background: rgba(255, 255, 255, .06);
}

.live-ticker__signal {
  --signal: #277b5e;
  display: grid;
  grid-template-columns: 34px minmax(12rem, max-content);
  align-items: start;
  gap: 10px;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: max-content;
  max-width: min(36rem, 92vw);
  padding: 10px 16px;
  border-right: 1px solid rgba(255, 255, 255, .11);
  text-decoration: none;
  color: inherit;
}

.live-ticker__signal:last-child {
  border-right: 0;
}

.live-ticker__signal--gold { --signal: #f0cf5c; }
.live-ticker__signal--green { --signal: #70d1a5; }
.live-ticker__signal--blue { --signal: #78c5e8; }
.live-ticker__signal--clay { --signal: #ef9a73; }
.live-ticker__signal--twitter { --signal: #1d9bf0; }
.live-ticker__signal--whatsapp { --signal: #25d366; }
.live-ticker__signal--youtube { --signal: #ff4444; }

.live-ticker__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .1);
  color: var(--signal);
}

.live-ticker__icon svg {
  width: 18px;
  height: 18px;
}

.live-ticker__signal>span:last-child {
  display: grid;
  gap: 2px;
  max-width: min(34rem, 88vw);
}

.live-ticker__signal small {
  color: var(--signal);
  font-size: 8.5px;
  font-weight: 820;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.live-ticker__signal b {
  overflow: visible;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-overflow: clip;
  white-space: normal;
  word-wrap: break-word;
}

.live-ticker__signal em {
  overflow: visible;
  color: rgba(255, 255, 255, .66);
  font-size: 9.5px;
  line-height: 1.45;
  font-style: normal;
  text-overflow: clip;
  white-space: normal;
  word-wrap: break-word;
}

/* --- Fullscreen / Presidential War Room Mode --- */
body.is-war-room-mode {
  background: #07191d !important;
  color: #e2e8f0;
}

body.is-war-room-mode .topbar {
  background: #0b2227;
  border-bottom-color: rgba(255, 255, 255, .1);
}

body.is-war-room-mode .topbar .nav__link {
  color: rgba(255, 255, 255, .8);
}

body.is-war-room-mode .topbar .nav__link:hover,
body.is-war-room-mode .topbar .nav__link.is-active {
  color: #38bdf8;
  background: rgba(56, 189, 248, .1);
}

body.is-war-room-mode .home-situation {
  background: radial-gradient(circle at 10% 10%, rgba(16, 185, 129, .06), transparent 30%), #07191d;
}

body.is-war-room-mode .situation-intro {
  background: linear-gradient(135deg, #051417 0%, #0d2c33 60%, #13444f 100%);
  border: 1px solid rgba(212, 175, 55, .3);
  box-shadow: 0 0 35px rgba(0, 0, 0, .5);
}

body.is-war-room-mode .national-metrics {
  background: #0b2227;
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}

body.is-war-room-mode .national-metric {
  border-right-color: rgba(255, 255, 255, .08);
}

body.is-war-room-mode .national-metric__label {
  color: #94a3b8;
}

body.is-war-room-mode .national-metric__value {
  color: #38bdf8;
  text-shadow: 0 0 20px rgba(56, 189, 248, .3);
}

body.is-war-room-mode .national-metric__note {
  color: #cbd5e1;
}

body.is-war-room-mode .national-lens,
body.is-war-room-mode .situation-map-panel,
body.is-war-room-mode .county-command,
body.is-war-room-mode .programme-command,
body.is-war-room-mode .season-pulse {
  background: #0b2227;
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}

body.is-war-room-mode .county-command {
  background:
    radial-gradient(ellipse 42% 38% at 102% 108%, rgba(16, 185, 129, .12), transparent 70%),
    linear-gradient(180deg, #0d282f 0%, #081a1e 100%);
}

body.is-war-room-mode .situation-panel-head {
  background: #0d282f;
  border-bottom-color: rgba(255, 255, 255, .1);
}

body.is-war-room-mode .situation-panel-head h2,
body.is-war-room-mode .season-pulse header h2 {
  color: #f1f5f9;
}

body.is-war-room-mode .county-command__title small,
body.is-war-room-mode .county-command__foot {
  color: #94a3b8;
}

body.is-war-room-mode .county-command__link {
  color: #34d399;
}

body.is-war-room-mode .situation-panel-head p,
body.is-war-room-mode .season-pulse header p {
  color: #34d399;
}

body.is-war-room-mode .situation-map-wrap {
  background: radial-gradient(circle at 50% 45%, rgba(16, 185, 129, .1), transparent 44%), #081a1e;
}

body.is-war-room-mode .heartbeat-matrix {
  background: transparent;
}

body.is-war-room-mode .heartbeat-county {
  background: color-mix(in srgb, #10b981 calc(var(--intensity) * .55%), #0f3339);
  border-color: rgba(52, 211, 153, .25);
  color: #f1f5f9;
}

body.is-war-room-mode .heartbeat-county strong,
body.is-war-room-mode .heartbeat-county__mark {
  color: #f1f5f9;
}

body.is-war-room-mode .heartbeat-county em,
body.is-war-room-mode .heartbeat-county__meter b {
  color: #94a3b8;
}

body.is-war-room-mode .heartbeat-county.is-strong {
  background: linear-gradient(165deg, #0f766e 0%, #064e3b 100%);
}

body.is-war-room-mode .heartbeat-county.is-gap {
  background: repeating-linear-gradient(-45deg, #0f3339, #0f3339 5px, #0c2a2f 5px, #0c2a2f 6px);
}

body.is-war-room-mode .programme-brief {
  background: #0b2227;
  border-color: rgba(255, 255, 255, .08);
}

body.is-war-room-mode .programme-brief:hover {
  background: #102e35;
}

body.is-war-room-mode .programme-brief__copy strong {
  color: #38bdf8;
}

body.is-war-room-mode .programme-brief__copy span {
  color: #94a3b8;
}

body.is-war-room-mode .programme-brief__copy small {
  color: #cbd5e1;
}

body.is-war-room-mode .ltable th {
  color: #94a3b8;
  border-bottom-color: rgba(255, 255, 255, .1);
}

body.is-war-room-mode .ltable td {
  color: #e2e8f0;
  border-bottom-color: rgba(255, 255, 255, .06);
}

body.is-war-room-mode .ltable tr:hover td {
  background: rgba(56, 189, 248, .08);
}

body.is-war-room-mode .map-layer-btn {
  background: #0f3339;
  border-color: rgba(255, 255, 255, .15);
  color: #cbd5e1;
}

body.is-war-room-mode .map-layer-btn.is-active {
  background: #10b981;
  color: #06191d;
  border-color: #34d399;
}

@media (max-width: 1100px) {
  .situation-intro {
    grid-template-columns: minmax(0, 1.25fr) minmax(245px, .55fr);
  }

  .situation-control {
    grid-template-columns: 1fr;
  }

  .situation-reading {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .heartbeat-matrix {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .national-lens__slide {
    grid-template-columns: minmax(250px, .68fr) minmax(0, 1fr);
  }

  .national-lens__slide>.lens-panel:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid #e1e6e3;
  }

  .live-ticker {
    grid-template-columns: 170px minmax(0, 1fr);
  }

}

@media (max-width: 920px) {
  .heartbeat-matrix {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-situation {
    padding-top: 4px;
  }

  .situation-intro {
    grid-template-columns: 1fr;
  }

  .situation-intro__copy {
    padding: 28px 23px 24px;
  }

  .situation-intro h1 {
    font-size: 31px;
  }

  .situation-headline__value {
    font-size: 42px;
  }

  .situation-headline__unit {
    font-size: 21px;
  }

  .situation-headline__text {
    font-size: 18px;
  }

  .reporting-command {
    grid-template-columns: auto 1fr;
    justify-items: start;
    padding: 22px 24px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    border-left: 0;
    text-align: left;
  }

  .reporting-ring {
    width: 92px;
    height: 92px;
  }

  .reporting-ring__inner {
    width: 71px;
    height: 71px;
  }

  .reporting-ring__inner strong {
    font-size: 19px;
  }

  .national-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .national-metric {
    min-height: 108px;
    padding: 18px;
    border-bottom: 1px solid #e5e9e6;
  }

  .national-metric:nth-child(2n) {
    border-right: 0;
  }

  .national-metric:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .national-metric__delta {
    position: static;
  }

  .situation-reading {
    grid-template-columns: 1fr;
  }

  .situation-map-wrap {
    min-height: 390px;
  }

  .situation-panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .map-layer-bar {
    width: 100%;
  }

  .heartbeat-matrix {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 8px 14px 4px;
    gap: 8px;
  }

  .county-command__body {
    min-height: 0;
  }

  .county-command__foot {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: 16px;
  }

  .programme-briefs {
    grid-template-columns: 1fr;
  }

  .heartbeat-legend {
    justify-content: flex-start;
  }

  .national-lens__head {
    align-items: flex-start;
  }

  .national-lens__controls {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .national-lens__controls>span {
    display: none;
  }

  .national-lens__tabs {
    order: 2;
    width: 100%;
    overflow-x: auto;
  }

  .national-lens__tab {
    flex: none;
  }

  .national-lens__slide {
    display: block;
  }

  .lens-lead {
    min-height: 330px;
  }

  .lens-panel {
    min-height: 350px;
    border-right: 0;
    border-top: 1px solid #e1e6e3;
  }

  .lens-panel__body--donut {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .lens-ranked-row {
    grid-template-columns: 78px minmax(0, 1fr) 50px;
    gap: 8px;
  }

  .live-ticker {
    grid-template-columns: 145px minmax(0, 1fr);
  }

  .live-ticker__tag {
    min-height: 0;
    padding: 12px 14px;
  }

  .live-ticker__tag small { display: none; }

  .live-ticker__signal {
    max-width: min(28rem, 92vw);
  }
}

@media (max-width: 430px) {
  .situation-intro__eyebrow {
    align-items: flex-start;
    flex-direction: column;
  }

  .national-reading__facts {
    grid-template-columns: 1fr;
  }

  .national-reading__fact {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

  .national-reading__fact:last-child {
    border-bottom: 0;
  }

  .heartbeat-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lens-panel__body--donut {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .live-ticker { grid-template-columns: 126px minmax(0, 1fr); }
}

@media print {
  .live-ticker-slot { display: none; }
  .home-situation { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {

  .national-lens__track,
  .national-lens__viewport {
    transition: none;
  }

  .national-lens__progress i.is-running {
    animation: none;
    width: 100%;
  }

}


/* ======================================================================
   Home presentability pass (2026-09): legible from across a room.
   ====================================================================== */

/* ---- hero: the headline figure fills the space it is given ---- */
.dashboard-hero__main { padding: 14px 26px 12px; min-height: 196px; }
.dashboard-hero__stat { gap: 8px; }
.dashboard-hero__headnum {
  font-size: clamp(54px, 5.4vw, 86px);
  line-height: .98;
  letter-spacing: -.035em;
  white-space: normal;
  max-width: 100%;
}
.dashboard-hero__main { min-width: 0; overflow: hidden; }
.dashboard-hero__headnum em {
  display: inline-block;
  font-size: clamp(28px, 2.6vw, 42px);
  font-weight: 650;
  margin-left: 0;
  white-space: nowrap;
}
.dashboard-hero__headline {
  font-size: clamp(15px, 1.25vw, 18px);
  color: rgba(240, 248, 250, .9);
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.dashboard-hero__eyebrow { font-size: 13px; margin: 2px 0 6px; }
.dashboard-hero__pending { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 14px; }
.dashboard-hero__pending span {
  font-size: 15px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--v6-gold); border: 1.5px solid rgba(232, 185, 60, .55); border-radius: 999px; padding: 5px 14px;
}
.dashboard-hero__pending em { font-style: normal; font-size: clamp(26px, 2.4vw, 38px); font-weight: 650; color: #fff; }

/* ---- hero: labelled, clickable slide indicators with previous / next ---- */
.dashboard-hero__foot { padding-top: 8px; }
.dashboard-hero__nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dashboard-hero__nav[hidden] { display: none; }
.dashboard-hero__arrow {
  width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .38); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.dashboard-hero__arrow svg { width: 14px; height: 14px; }
.dashboard-hero__arrow:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .7); }
.dashboard-hero__dots { display: flex; gap: 6px; flex-wrap: wrap; }
.dashboard-hero__dots button {
  position: relative; overflow: hidden; width: auto; height: 28px; padding: 0 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .86); font: inherit; font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  cursor: pointer; transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.dashboard-hero__dots button span { position: relative; z-index: 1; }
.dashboard-hero__dots button:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .6); }
.dashboard-hero__dots button.is-on { width: auto; background: var(--v6-gold); border-color: var(--v6-gold); color: #10323a; }
/* the active pill fills while its slide is on screen, so the rotation is visible */
.dashboard-hero__dots button.is-on::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: rgba(16, 50, 58, .45); transform-origin: left; animation: heroPillRun 10s linear forwards;
}
body.dashboard-carousel-paused .dashboard-hero__dots button.is-on::after { animation-play-state: paused; }
@keyframes heroPillRun { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .dashboard-hero__dots button.is-on::after { animation: none; } }

/* bars chart: the selected county stands out from its neighbours */
.viz-bars--focus .viz-bar .fl { background: rgba(255, 255, 255, .45); }
.viz-bars--focus .viz-bar.is-focus .fl { background: var(--v6-gold); }
.viz-bars--focus .viz-bar.is-focus span:first-child, .viz-bars--focus .viz-bar.is-focus b { color: var(--v6-gold); font-weight: 800; }
.viz-bar span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- four headline cards: readable labels and notes ---- */
.national-metric__label { color: #1f3d43; font-size: 11.5px; letter-spacing: .07em; }
.national-metric__note,
.national-metric--synced .national-metric__note {
  color: #22363a; font-size: 13px; font-weight: 500; line-height: 1.38;
}
.national-metric__delta { font-size: 11px; }
.national-metric__dots--sections { gap: 5px; }
.national-metric__dots--sections button { width: 8px; height: 8px; background: #b6c4c8; }
.national-metric__dots--sections button.is-on { transform: scale(1.2); }

/* ---- Glance section: charts shown as national context in a county view ---- */
.lens-panel header { position: relative; }
.lens-panel__scope {
  display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 999px;
  background: #f3efe2; border: 1px solid #e3d9b8; color: #7a5d12;
  font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.national-lens__tab[hidden] { display: none; }

@media (max-width: 1100px) {
  .dashboard-hero__headnum { font-size: clamp(44px, 7vw, 64px); white-space: normal; }
}
