:root {
  --bg: #f7f8f4;
  --panel: #ffffff;
  --panel-2: #f1f6f0;
  --text: #151515;
  --muted: #5d6a63;
  --line: rgba(0, 143, 88, 0.22);
  --green: #008f58;
  --white: #ffffff;
  --sky: #59c3ec;
  --yellow: #fdc715;
  --amaranth: #e62f58;
  --violet: #6e61a7;
  --dark-green: #013f2a;
  --soft-green: #dcece5;
  --red: var(--amaranth);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Roboto", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}

.broadcast {
  height: 100vh;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 92px minmax(0, 1fr) 66px;
  background:
    linear-gradient(90deg, rgba(229, 56, 59, 0.16), transparent 28%),
    linear-gradient(270deg, rgba(39, 174, 96, 0.14), transparent 30%),
    var(--bg);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 6px solid var(--green);
  background: var(--white);
}

.brand,
.signal {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  width: 218px;
  height: auto;
  display: block;
  object-fit: contain;
}

.brand h1 {
  margin-top: 2px;
}

.kicker,
.signal p,
.score span,
.panel-heading span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  font-family: "Raleway", "Roboto", sans-serif;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-family: "Roboto Slab", "Roboto", serif;
  font-size: 36px;
  line-height: 1;
}

h2 {
  font-family: "Roboto Slab", "Roboto", serif;
  font-size: 19px;
}

.signal {
  min-width: 176px;
  justify-content: flex-end;
}

.signal strong {
  display: block;
  font-size: 32px;
  line-height: 1;
}

.live-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 8px rgba(229, 56, 59, 0.18);
  animation: pulse 1.4s ease-in-out infinite;
}

.hero-grid {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 18px;
  padding: 18px;
}

.map-panel,
.control-panel,
.score,
.alerts,
.departments {
  border: 1px solid var(--line);
  background: rgba(24, 29, 36, 0.92);
}

.map-panel {
  min-height: 0;
  position: relative;
  overflow: hidden;
}

#map {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(32, 199, 217, 0.08), transparent 40%),
    linear-gradient(315deg, rgba(229, 56, 59, 0.12), transparent 45%),
    #151a21;
}

.map-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 16px;
  background: rgba(16, 19, 24, 0.88);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.problem-map {
  overflow: hidden;
}

.problem-map .political-map,
.problem-map .map-title,
.problem-map .zoom-summary,
.problem-map .map-insight,
.problem-map .blockade-days {
  transform-origin: 50% 50%;
  will-change: opacity, transform;
}

.problem-map.is-zooming-in .political-map {
  animation: mapZoomIn 720ms cubic-bezier(0.2, 0.8, 0.18, 1) both;
}

.problem-map.is-zooming-in .blockade-pin,
.problem-map.is-zooming-in .zoom-summary,
.problem-map.is-zooming-in .map-title {
  animation: mapFadeInUp 620ms ease both;
}

.problem-map.is-zooming-out .political-map {
  animation: mapZoomOut 720ms cubic-bezier(0.2, 0.8, 0.18, 1) both;
}

.problem-map.is-zooming-out .map-title,
.problem-map.is-zooming-out .map-insight,
.problem-map.is-zooming-out .blockade-days {
  animation: mapFadeInUp 620ms ease both;
}

.problem-map.is-zoom-switching .political-map {
  animation: mapZoomSwitch 520ms ease both;
}

.problem-map.is-zoom-switching .blockade-pin,
.problem-map.is-zoom-switching .zoom-summary {
  animation: mapFadeInUp 460ms ease both;
}

.map-title {
  position: absolute;
  top: 24px;
  left: 28px;
  z-index: 4;
  display: grid;
  gap: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.map-title span,
.map-title small,
.map-title em {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.map-title span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}

.map-title span::before {
  content: "";
  width: 34px;
  height: 23px;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: linear-gradient(to bottom, #d52b1e 0 33.33%, #f9e300 33.33% 66.66%, #007934 66.66% 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.map-title strong {
  color: var(--text);
  font-size: 92px;
  line-height: 0.9;
}

.map-title small {
  font-size: 15px;
}

.map-title em {
  margin-top: 8px;
  color: var(--green);
  font-size: 14px;
  font-style: normal;
}

.country-shape {
  position: absolute;
  inset: 64px 14% 52px 13%;
  opacity: 0.24;
  background:
    linear-gradient(155deg, rgba(246, 200, 76, 0.7), rgba(39, 174, 96, 0.55)),
    #263446;
  clip-path: polygon(31% 0, 48% 8%, 54% 19%, 70% 17%, 83% 30%, 77% 44%, 88% 58%, 72% 72%, 61% 71%, 54% 92%, 40% 100%, 28% 83%, 20% 66%, 8% 56%, 19% 42%, 12% 26%);
  filter: drop-shadow(0 0 40px rgba(246, 200, 76, 0.22));
}

.country-shape::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  clip-path: inherit;
}

.map-nodes {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.map-node {
  position: absolute;
  display: grid;
  place-items: center;
  align-content: center;
  transform: translate(-50%, -50%);
  border: 3px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  color: #fff;
  font: inherit;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.44);
  transition: transform 180ms ease, border-color 180ms ease, filter 180ms ease;
}

.map-node:hover,
.map-node.is-active {
  transform: translate(-50%, -50%) scale(1.08);
  border-color: var(--yellow);
  filter: brightness(1.12);
  z-index: 4;
}

.map-node.level-danger {
  background: radial-gradient(circle at 35% 30%, #ff6b6d, var(--red) 58%, #8d1219);
}

.map-node.level-warning {
  background: radial-gradient(circle at 35% 30%, #ffe187, var(--orange) 58%, #9d5600);
}

.map-node.level-quiet {
  background: radial-gradient(circle at 35% 30%, #4fe08c, var(--green) 58%, #126233);
}

.map-node span,
.map-node small {
  font-weight: 900;
  text-transform: uppercase;
}

.map-node span {
  max-width: 78%;
  overflow: hidden;
  font-size: 15px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-node strong {
  font-size: 48px;
  line-height: 0.95;
}

.map-node small {
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
}

.map-legend {
  position: absolute;
  right: 28px;
  bottom: 92px;
  z-index: 4;
  display: grid;
  gap: 9px;
  padding: 14px 16px;
  background: rgba(16, 19, 24, 0.82);
  border: 1px solid var(--line);
}

.map-legend span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.legend-dot {
  width: 13px;
  height: 13px;
  display: inline-block;
  border-radius: 50%;
}

.legend-dot.danger {
  background: var(--red);
}

.legend-dot.warning {
  background: var(--yellow);
}

.map-overlay span,
.map-overlay strong {
  font-size: 15px;
}

.control-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto 112px 270px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  background: rgba(16, 19, 24, 0.82);
}

.selected-area {
  min-height: 94px;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(0, 143, 88, 0.32);
  background: linear-gradient(90deg, var(--dark-green), #07140f);
  color: #fff;
}

.selected-area span,
.selected-area strong {
  display: block;
  min-width: 0;
}

.selected-area span {
  color: var(--yellow);
  font-family: "Raleway", "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.selected-area strong {
  margin-top: 6px;
  overflow: hidden;
  font-family: "Roboto Slab", "Roboto", serif;
  font-size: 34px;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.selected-flag {
  position: relative;
  width: 104px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.32);
}

.selected-flag::before,
.selected-flag::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.flag-bolivia {
  background: linear-gradient(to bottom, #d52b1e 0 33.33%, #f9e300 33.33% 66.66%, #007934 66.66% 100%);
}

.flag-la-paz {
  background: linear-gradient(to bottom, #b5162f 0 50%, #007a3d 50% 100%);
}

.flag-cochabamba {
  background: #9fd8f3;
}

.flag-santa-cruz {
  background: linear-gradient(to bottom, #07863f 0 33.33%, #fff 33.33% 66.66%, #07863f 66.66% 100%);
}

.flag-oruro {
  background: #9d1b35;
}

.flag-chuquisaca {
  background: #fff;
}

.flag-chuquisaca::before,
.flag-chuquisaca::after {
  top: 50%;
  left: -12%;
  right: -12%;
  height: 18px;
  background: #b5162f;
  transform-origin: center;
}

.flag-chuquisaca::before {
  transform: translateY(-50%) rotate(32deg);
}

.flag-chuquisaca::after {
  transform: translateY(-50%) rotate(-32deg);
}

.flag-beni {
  background: #007a3d;
}

.flag-potosi {
  background: conic-gradient(from 90deg, #b5162f 0 25%, #fff 25% 50%, #b5162f 50% 75%, #fff 75% 100%);
}

.flag-tarija {
  background: linear-gradient(to bottom, #b5162f 0 50%, #fff 50% 100%);
}

.flag-pando {
  background: linear-gradient(to bottom, #fff 0 50%, #07863f 50% 100%);
}

.scoreboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.score {
  min-height: 104px;
  padding: 14px;
  display: grid;
  align-content: space-between;
}

.score strong {
  font-size: 46px;
  line-height: 1;
}

.score.danger {
  border-color: rgba(229, 56, 59, 0.62);
}

.score.conflict {
  border-color: rgba(143, 92, 255, 0.58);
}

.score.warning {
  border-color: rgba(246, 200, 76, 0.58);
}

.score.route {
  border-color: rgba(32, 199, 217, 0.58);
}

.history-panel {
  min-height: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}

.history-panel .panel-heading {
  padding-bottom: 8px;
}

.history-panel h2 {
  font-size: 16px;
}

.history-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.history-compare {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 4px;
}

.history-day,
.history-trend {
  min-width: 0;
  padding: 8px 7px;
  background: #fff;
  border: 1px solid rgba(1, 63, 42, 0.16);
}

.history-day span,
.history-day small,
.history-trend span,
.history-trend small {
  display: block;
  color: var(--dark-green);
  font-family: "Raleway", "Roboto", sans-serif;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.history-day strong,
.history-trend strong {
  display: block;
  margin: 3px 0;
  color: #111;
  font-family: "Roboto Slab", "Roboto", serif;
  font-size: 26px;
  line-height: 0.95;
}

.history-trend {
  text-align: center;
  color: #fff;
}

.history-trend span,
.history-trend small,
.history-trend strong {
  color: inherit;
}

.trend-up .history-trend {
  background: var(--amaranth);
  border-color: var(--amaranth);
}

.trend-down .history-trend {
  background: var(--green);
  border-color: var(--green);
}

.trend-flat .history-trend {
  background: #33483f;
  border-color: #33483f;
}

.trend-missing .history-trend {
  background: #6a756f;
  border-color: #6a756f;
}

.history-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  min-height: 18px;
}

.history-row span,
.history-row strong,
.history-empty {
  color: #111;
  font-family: "Raleway", "Roboto", sans-serif;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.history-row strong {
  text-align: right;
}

.history-bar {
  height: 8px;
  overflow: hidden;
  background: #dcece5;
}

.history-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--amaranth));
}

.alerts,
.departments {
  min-height: 0;
  padding: 14px;
  overflow: hidden;
}

.panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.department-nav {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.dept-button {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.dept-button:hover,
.dept-button.is-active {
  border-color: rgba(246, 200, 76, 0.88);
  background: rgba(246, 200, 76, 0.12);
}

.dept-button strong,
.dept-button span {
  display: block;
  min-width: 0;
}

.dept-button strong {
  overflow: hidden;
  color: #edf2f7;
  font-size: 12px;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.dept-button span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.dept-count {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #232b36;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.dept-button.has-critical .dept-count {
  background: var(--red);
}

.point-list {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  max-height: calc(100% - 44px);
  overflow: auto;
  scrollbar-width: thin;
}

.point-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 11px;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.point-item:hover,
.point-item.is-active {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.reason-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.point-copy {
  min-width: 0;
}

.point-copy strong,
.point-copy span,
.point-copy small {
  display: block;
}

.point-copy strong {
  font-size: 17px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.point-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.point-copy small {
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  padding: 4px 7px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.department-bars {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.dept-row {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--yellow), var(--red));
}

.ticker {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  border-top: 1px solid var(--line);
  background: #0b0e12;
}

.ticker-label {
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.ticker-window {
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-block;
  padding-left: 100%;
  color: var(--text);
  font-size: 26px;
  font-weight: 800;
  animation: ticker 150s linear infinite;
}

.empty {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

.fallback-map {
  position: absolute;
  inset: 146px 48px 86px 310px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.fallback-dept {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 2px solid rgba(0, 143, 88, 0.24);
  background: #fff;
  color: var(--dark-green);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.fallback-dept.has-conflict {
  border-color: var(--amaranth);
  box-shadow: 0 10px 24px rgba(230, 47, 88, 0.16);
}

.fallback-dept span {
  overflow: hidden;
  font-family: "Raleway", "Roboto", sans-serif;
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.fallback-dept strong {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--dark-green);
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

.fallback-dept.has-conflict strong {
  background: var(--amaranth);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.82);
  }
}

@keyframes markerPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.18);
  }
}

@keyframes activeDepartmentPulse {
  0%,
  100% {
    opacity: 1;
    stroke-width: 4.4;
  }
  50% {
    opacity: 0.82;
    stroke-width: 6;
  }
}

@keyframes mapZoomIn {
  from {
    opacity: 0;
    transform: scale(0.62);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes mapZoomOut {
  from {
    opacity: 0;
    transform: scale(1.22);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes mapZoomSwitch {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes mapFadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* Estilo editorial inspirado en EL DEBER: claro, fuerte y con acento rojo. */
.broadcast {
  background:
    linear-gradient(90deg, rgba(0, 143, 88, 0.1), transparent 26%),
    linear-gradient(270deg, rgba(89, 195, 236, 0.1), transparent 30%),
    var(--bg);
}

.map-panel,
.control-panel,
.score,
.alerts,
.departments {
  background: var(--panel);
}

#map {
  background:
    linear-gradient(135deg, rgba(0, 143, 88, 0.08), transparent 42%),
    linear-gradient(315deg, rgba(253, 199, 21, 0.07), transparent 40%),
    #fbfcf9;
}

.map-overlay {
  background: #111;
  color: #fff;
}

.map-overlay {
  align-items: center;
}

.map-overlay span {
  color: #dbeee6;
  font-family: "Raleway", "Roboto", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

.map-title span,
.map-title small {
  color: var(--green);
}

.map-title em {
  color: var(--green);
}

.political-map {
  position: absolute;
  inset: 32px 126px 46px 218px;
  z-index: 3;
  width: calc(100% - 344px);
  height: calc(100% - 78px);
  overflow: visible;
}

.political-map.is-zoomed {
  inset: 26px 96px 48px 128px;
  width: calc(100% - 224px);
  height: calc(100% - 74px);
}

.map-title-compact {
  max-width: 310px;
}

.map-title-compact strong {
  margin-top: 4px;
  font-size: 44px;
  line-height: 0.95;
}

.map-title-compact small {
  color: var(--amaranth);
}

.department-shape {
  fill: #dcece5;
  stroke: #083d2a;
  stroke-width: 2.2;
  cursor: pointer;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.16));
  transition: filter 160ms ease, opacity 160ms ease, stroke-width 160ms ease;
}

.department-shape.level-danger {
  fill: #9ac9b6;
}

.department-shape.level-warning {
  fill: #cfe6dc;
}

.department-shape.level-quiet {
  fill: #edf5f1;
}

.department-shape:hover,
.department-shape.is-active {
  fill: var(--yellow);
  filter: drop-shadow(0 18px 22px rgba(253, 199, 21, 0.38));
  stroke: var(--green);
  stroke-width: 4.4;
}

.department-shape.is-active {
  animation: activeDepartmentPulse 1.8s ease-in-out infinite;
}

.department-shape.is-zoom-shape {
  fill: #f5df55;
  stroke: var(--dark-green);
  stroke-width: 4.8;
}

.blockade-pin-layer {
  pointer-events: none;
}

.blockade-pin {
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.38));
}

.blockade-pin path {
  fill: var(--amaranth);
  stroke: #fff;
  stroke-width: 4;
}

.blockade-pin circle {
  fill: var(--dark-green);
  stroke: var(--yellow);
  stroke-width: 3;
}

.blockade-pin text {
  fill: #fff;
  font-family: "Roboto Slab", "Roboto", serif;
  font-size: 13px;
  font-weight: 900;
  pointer-events: none;
  text-anchor: middle;
}

.department-name {
  fill: #073d2b;
  font-size: 21px;
  font-weight: 900;
  paint-order: stroke;
  pointer-events: none;
  stroke: #fff;
  stroke-width: 5px;
  text-anchor: middle;
  text-transform: uppercase;
}

.department-badge {
  cursor: pointer;
}

.department-badge circle {
  fill: var(--dark-green);
  stroke: #fff;
  stroke-width: 4;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.28));
}

.department-badge.is-active circle {
  fill: var(--green);
  stroke: var(--yellow);
  stroke-width: 5;
}

.department-badge text {
  fill: #fff;
  font-weight: 900;
  pointer-events: none;
  text-anchor: middle;
  text-transform: uppercase;
}

.badge-total {
  font-size: 30px;
}

.badge-critical {
  display: none;
}

.problem-summary {
  position: absolute;
  right: 34px;
  bottom: 92px;
  z-index: 4;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 6px 10px;
  width: 212px;
  padding: 12px 14px;
  background: var(--dark-green);
  border: 1px solid var(--line);
  color: #fff;
}

.blockade-days {
  position: absolute;
  top: 172px;
  left: 32px;
  z-index: 4;
  width: 220px;
  padding: 18px;
  background: var(--green);
  color: #fff;
  box-shadow: 0 14px 28px rgba(0, 143, 88, 0.24);
}

.map-insight {
  position: absolute;
  top: 32px;
  right: 34px;
  z-index: 4;
  width: 212px;
  padding: 20px 18px;
  background: #fff;
  border-left: 8px solid var(--amaranth);
  box-shadow: 0 14px 28px rgba(1, 63, 42, 0.12);
}

.zoom-summary {
  position: absolute;
  right: 34px;
  top: 32px;
  z-index: 4;
  width: 224px;
  padding: 20px 18px;
  background: #fff;
  border-left: 8px solid var(--amaranth);
  box-shadow: 0 14px 28px rgba(1, 63, 42, 0.12);
}

.zoom-summary span,
.zoom-summary small {
  display: block;
  color: var(--dark-green);
  font-family: "Raleway", "Roboto", sans-serif;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.zoom-summary span {
  font-size: 13px;
}

.zoom-summary strong {
  display: block;
  margin: 4px 0;
  color: var(--amaranth);
  font-family: "Roboto Slab", "Roboto", serif;
  font-size: 70px;
  line-height: 0.95;
}

.zoom-summary small {
  font-size: 12px;
}

.map-insight span,
.map-insight small {
  display: block;
  color: var(--dark-green);
  font-family: "Raleway", "Roboto", sans-serif;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.map-insight strong {
  display: block;
  margin: 4px 0;
  color: var(--amaranth);
  font-family: "Roboto Slab", "Roboto", serif;
  font-size: 64px;
  line-height: 0.95;
}

.map-insight span {
  font-size: 13px;
}

.map-insight small {
  font-size: 12px;
}

.blockade-days span,
.blockade-days small,
.blockade-days b {
  display: block;
  font-family: "Raleway", "Roboto", sans-serif;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.blockade-days span {
  font-size: 15px;
}

.blockade-days strong {
  display: block;
  margin: 4px 0;
  color: var(--yellow);
  font-family: "Roboto Slab", "Roboto", serif;
  font-size: 82px;
  line-height: 0.95;
}

.blockade-days small {
  max-width: 160px;
  font-size: 13px;
  line-height: 1.1;
}

.blockade-days b {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  color: var(--yellow);
  font-size: 16px;
  line-height: 1.05;
}

.problem-summary strong {
  color: var(--yellow);
  font-size: 28px;
  line-height: 1;
}

.problem-summary span {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.control-panel {
  background: #fff;
}

.alerts {
  overflow-y: auto;
  scrollbar-color: var(--red) #e9e6df;
  scrollbar-width: thin;
}

.dept-button {
  background: var(--panel-2);
  border-color: rgba(0, 0, 0, 0.14);
}

.dept-button:hover,
.dept-button.is-active {
  background: #fff;
  border-color: var(--green);
}

.dept-button strong {
  color: #151515;
}

.dept-button span,
.point-copy span {
  color: #151515;
}

.dept-button > span > span {
  color: #111;
}

.dept-count {
  width: 42px;
  height: 42px;
  display: inline-grid;
  background: var(--amaranth);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  align-items: center;
  justify-items: center;
  place-content: center;
  border-radius: 50%;
  text-align: center;
  justify-self: center;
  align-self: center;
  font-family: "Roboto", sans-serif;
}

.dept-button .dept-count {
  display: inline-grid;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  align-items: center;
  justify-items: center;
  place-content: center;
}

.dept-button.has-critical .dept-count {
  background: var(--amaranth);
  color: #fff;
}

.point-list {
  max-height: none;
  overflow: visible;
}

.point-item {
  background: #f8fbf8;
  border-color: rgba(0, 0, 0, 0.1);
}

.point-copy strong {
  color: #050505;
}

.point-copy span {
  color: #111;
}

.point-item:hover,
.point-item.is-active {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.28);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.ticker {
  background: var(--dark-green);
}

.ticker-track {
  color: #fff;
}

.ticker-label {
  background: var(--green);
}

@media (max-width: 1100px) {
  body {
    overflow: auto;
  }

  .broadcast {
    height: auto;
    grid-template-rows: auto minmax(0, 1fr) 58px;
  }

  .topbar {
    padding: 14px;
    align-items: flex-start;
    gap: 10px;
    overflow: hidden;
  }

  .brand {
    gap: 12px;
    min-width: 0;
  }

  .brand-logo {
    width: 220px;
    max-width: 38vw;
  }

  h1 {
    font-size: 25px;
    line-height: 1.05;
  }

  .kicker {
    font-size: 11px;
    line-height: 1.15;
  }

  .signal {
    min-width: 96px;
  }

  .signal strong {
    font-size: 28px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 560px auto;
    gap: 14px;
    padding: 14px;
  }

  .map-title {
    top: 22px;
    left: 26px;
  }

  .map-title span {
    font-size: 15px;
  }

  .map-title span::before {
    width: 28px;
    height: 19px;
  }

  .map-title strong {
    font-size: 72px;
  }

  .map-title small {
    font-size: 12px;
  }

  .map-title em {
    font-size: 11px;
  }

  .political-map {
    inset: 112px 142px 84px 116px;
    width: calc(100% - 258px);
    height: calc(100% - 196px);
  }

  .department-name {
    font-size: 20px;
  }

  .badge-total {
    font-size: 26px;
  }

  .badge-critical {
    font-size: 10px;
  }

  .problem-summary {
    left: auto;
    right: 18px;
    top: auto;
    bottom: 86px;
    width: 178px;
    grid-template-columns: auto 1fr;
    gap: 3px 8px;
    padding: 10px;
  }

  .blockade-days {
    top: 154px;
    left: 26px;
    width: 136px;
    padding: 12px;
  }

  .blockade-days span {
    font-size: 12px;
  }

  .blockade-days strong {
    font-size: 44px;
  }

  .blockade-days small {
    font-size: 10px;
    max-width: none;
  }

  .blockade-days b {
    margin-top: 8px;
    padding-top: 8px;
    font-size: 10px;
  }

  .map-insight {
    top: 32px;
    right: 18px;
    width: 160px;
    padding: 12px;
  }

  .map-insight span {
    font-size: 10px;
  }

  .map-insight strong {
    font-size: 42px;
  }

  .map-insight small {
    font-size: 9px;
  }

  .problem-summary strong {
    font-size: 22px;
  }

  .problem-summary span {
    font-size: 9px;
  }

  .map-overlay {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .control-panel {
    grid-template-rows: auto auto auto auto auto;
  }

  .department-nav {
    grid-template-columns: 1fr 1fr;
  }

  .point-list {
    max-height: 420px;
  }
}
