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

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

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

.situation-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .45fr);
  min-height: 272px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(128deg, #0f3339 0%, #184c5a 64%, #236478 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: 36px 42px 34px;
}

.situation-intro__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  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: 19ch;
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 3.5vw, 52px);
  line-height: 1.04;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.situation-intro__copy>p:not(.situation-intro__source) {
  max-width: 68ch;
  margin: 17px 0 0;
  color: rgba(255, 255, 255, .71);
  font-size: 13px;
  line-height: 1.65;
}

.situation-intro__source {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 22px 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: 17px;
  padding: 30px;
  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: 132px;
  height: 132px;
  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: 103px;
  height: 103px;
  border-radius: 50%;
  background: #194750;
}

.reporting-ring__inner strong {
  color: #fff;
  font-size: 26px;
  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: 21px;
}

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

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

.national-metric {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 138px;
  padding: 18px 20px 16px;
  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: #184c5a;
}

.national-metric::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 16px 16px 0 0;
}

.national-metric:nth-child(1)::before { background: #10b981; }
.national-metric:nth-child(2)::before { background: #f59e0b; }
.national-metric:nth-child(3)::before { background: #3b82f6; }
.national-metric:nth-child(4)::before { background: #8b5cf6; }

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

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

.national-metric__dots {
  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: #184c5a;
  transform: scale(1.3);
}

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

.national-metric__slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.national-metric__slide.is-active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.national-metric__value {
  color: #184c5a;
  font-size: clamp(25px, 2.2vw, 34px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.03em;
}

.national-metric__note {
  color: #687f84;
  font-size: 11.5px;
  line-height: 1.35;
}

.national-metric__delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 750;
  color: #15803d;
  background: #e7f7ec;
  padding: 2px 8px;
  border-radius: 999px;
  align-self: flex-start;
}

.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 8px 26px rgba(22, 54, 59, .055);
}

.national-lens__head {
  align-items: center;
}

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

.national-lens__controls>span {
  margin-right: 4px;
  color: #748286;
  font-size: 8px;
}

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

.national-lens__tab {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid #d7dfdc;
  border-radius: 999px;
  color: #66777b;
  font-size: 9.5px;
  font-weight: 750;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.national-lens__tab.is-active {
  border-color: #236478;
  background: #236478;
  color: #fff;
}

.national-lens__controls>button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  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;
}

.national-lens__track {
  display: flex;
  align-items: stretch;
  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: 390px;
  --lens-accent: #2a8063;
}

.lens-lead {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 30px 30px 28px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--lens-accent) 45%, #184c5a), #0f3339);
  color: #fff;
}

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

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

.lens-lead h3 {
  position: relative;
  z-index: 1;
  max-width: 19ch;
  margin: 13px 0 21px;
  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, .65);
  font-size: 11px;
}

.lens-lead p {
  position: relative;
  z-index: 1;
  margin: 17px 0 22px;
  color: rgba(255, 255, 255, .62);
  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;
  color: #ead98f;
  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: #fff;
}

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

.lens-panel>header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid #e8ebe9;
}

.lens-panel>header h4 {
  margin: 5px 0 0;
  color: #274d55;
  font-size: 16px;
}

.lens-panel__body {
  display: grid;
  align-content: center;
  flex: 1 1 auto;
  min-height: 0;
  padding: 20px;
}

.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: 24px;
  font-size: 9px;
}

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

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

.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: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1ef;
}

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

.lens-ranked-row__value {
  color: #236478;
  font-size: 11px;
  text-align: right;
}

.lens-split-story {
  display: grid;
  gap: 22px;
}

.lens-split-story__stat {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid #e5e9e6;
}

.lens-split-story__stat span {
  color: #697b7f;
  font-size: 9px;
}

.lens-split-story__stat strong {
  color: #236478;
  font-size: 27px;
}

.lens-panel .split-bar__track {
  height: 22px;
  border-radius: 6px;
}

.lens-panel .split-bar__legend {
  gap: 11px;
  margin-top: 14px;
}

.lens-panel .split-bar__legend span {
  font-size: 9px;
}

.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: #c6a246;
}

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

@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-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 {
  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, #184c5a, #236478);
  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__value {
  color: #236478;
  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__body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(390px, .75fr);
  min-height: 360px;
}

.heartbeat-matrix {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 9px;
  align-content: center;
  padding: 25px;
  border-right: 1px solid #e2e7e4;
  background: #f7f8f4;
}

.heartbeat-county {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 48px;
  padding: 8px 9px;
  overflow: hidden;
  border: 1px solid rgba(31, 94, 74, .12);
  border-radius: 8px;
  background: color-mix(in srgb, #2d765f calc(var(--intensity) * 1%), #e3ece7);
}

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

.heartbeat-county strong {
  overflow: hidden;
  color: #183f3d;
  font-size: 10.5px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.heartbeat-county span {
  margin-top: 4px;
  color: #5f7574;
  font-size: 8.5px;
}

.heartbeat-county.is-strong strong,
.heartbeat-county.is-strong span {
  color: #fff;
}

.county-leaders {
  min-width: 0;
  background: #fff;
}

.county-leaders>header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid #e4e8e5;
}

.county-leaders h3 {
  margin: 0;
  color: #294e56;
  font-size: 14px;
}

.county-leaders header span {
  color: #7b898c;
  font-size: 9px;
}

.county-leaders .tablescroll {
  max-height: 275px;
}

.county-leaders .ltable {
  font-size: 10px;
}

.county-leaders .ltable th {
  font-size: 7px;
}

.county-leaders .ltable td {
  padding-block: 7px;
}

.county-leaders__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  border-top: 1px solid #e5e9e6;
  color: #23745b;
  font-size: 9px;
  font-weight: 750;
}

.county-leaders__link svg {
  width: 11px;
  height: 11px;
}

.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;
}

/* --- Map Layer Switcher Bar --- */
.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: #184c5a;
  border-color: #184c5a;
}

.map-layer-btn.is-active {
  background: #184c5a;
  color: #fff;
  border-color: #184c5a;
  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 Telemetry Ticker --- */
.live-ticker {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  padding: 12px 20px;
  border: 1px solid #cce0d8;
  border-radius: 12px;
  background: linear-gradient(90deg, #0f3339 0%, #184c5a 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(15, 51, 57, .12);
}

.live-ticker__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .12);
  color: #fde047;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.live-ticker__track {
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
}

.live-ticker__content {
  display: inline-flex;
  gap: 28px;
  animation: ticker-slide 35s linear infinite;
}

.live-ticker__content:hover {
  animation-play-state: paused;
}

.live-ticker__content span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, .9);
}

.live-ticker__content b {
  color: #67e8f9;
}

@keyframes ticker-slide {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* --- 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,
body.is-war-room-mode .county-leaders {
  background: #0b2227;
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}

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,
body.is-war-room-mode .county-leaders h3 {
  color: #f1f5f9;
}

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: #081a1e;
  border-right-color: rgba(255, 255, 255, .1);
}

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

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

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

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;
  }

  .county-command__body {
    grid-template-columns: 1fr;
  }

  .heartbeat-matrix {
    border-right: 0;
    border-bottom: 1px solid #e2e7e4;
  }

  .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;
  }
}

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

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

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

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

  .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(4, minmax(0, 1fr));
    padding: 16px;
    gap: 7px;
  }

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

  .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;
  }
}

@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(3, minmax(0, 1fr));
  }

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

@media (prefers-reduced-motion: reduce) {
  .national-lens__track {
    transition: none;
  }

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