@charset "utf-8";
/* 3D ward map — structure only. Each template restyles it with the
   --wm-* custom properties, so the same component fits four different sites. */

.wardmap {
  --wm-frame: #15140d;
  --wm-surface: #dbded1;
  --wm-text: #15140d;
  --wm-muted: #3a382c;
  --wm-accent: #27347a;

  border: 4px solid var(--wm-frame);
  background: var(--wm-surface);
  color: var(--wm-text);
}

.wardmap__canvas {
  width: 100%;
  line-height: 0;
  background: var(--wm-surface);
  cursor: grab;
  touch-action: pan-y;
}
.wardmap__canvas:active { cursor: grabbing; }
.wardmap__canvas canvas { width: 100% !important; height: auto !important; display: block; }

.wardmap__readout {
  border-top: 4px solid var(--wm-frame);
  padding: .85rem 1rem 1rem;
}
.wardmap__name {
  font-family: "Anek Bangla", sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  margin: 0 0 .5rem;
  color: var(--wm-accent);
}
.wardmap__facts {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .35rem .9rem;
}
@media (min-width: 34rem) {
  .wardmap__facts { grid-template-columns: repeat(4, 1fr); }
}
.wardmap__facts li {
  display: flex; flex-direction: column;
  font-family: "Anek Bangla", sans-serif;
  border-top: 2px solid currentColor;
  padding-top: .3rem;
}
.wardmap__facts span { font-size: .82rem; font-weight: 600; color: var(--wm-muted); }
.wardmap__facts b {
  font-size: 1.15rem; font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.wardmap__hint {
  margin: 0;
  padding: .5rem 1rem .6rem;
  border-top: 2px dashed var(--wm-muted);
  font-family: "Anek Bangla", sans-serif;
  font-size: .85rem;
  color: var(--wm-muted);
  max-width: none;
}

/* the text fallback: hidden when the canvas works, shown when it does not */
.wardmap__list {
  list-style: none;
  margin: 0; padding: .6rem 1rem 1rem;
  border-top: 2px dashed var(--wm-muted);
  font-family: "Anek Bangla", sans-serif;
  font-size: .92rem;
  display: none;
}
.wardmap__list li { padding: .25rem 0; }
.wardmap--nogl .wardmap__canvas,
.wardmap--nogl .wardmap__readout { display: none; }
.wardmap--nogl .wardmap__list { display: block; }

@media (prefers-reduced-motion: reduce) {
  .wardmap__canvas { cursor: default; }
}
