/* Ward Map layout and map colours. Corporate tokens are in bayis.css. */

:root {
  --inside: #2e6b45;
  --outside: #8a2f2f;
  /* Read by render/map.js */
  --map-ward: #555;
  --map-group-fill: #2e6b45;
  --map-outline: #1f4d31;
  --map-authority: #333;
  --map-highlight: #c77d00;
}

html, body { height: 100%; }
body { display: flex; flex-direction: column; }

#app {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 24rem 1fr;
}

#panel {
  overflow-y: auto;
  padding: 1.25rem;
  border-right: 1px solid var(--border);
  background: var(--flat-bg);
}

#panel h1 {
  font-size: 1.4rem;
  line-height: 1.25;
  margin: 0.25rem 0 1rem;
}

.panel-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
}

#map { min-height: 20rem; }

/* ---- result card ---- */

#result { margin-top: 1rem; }

.result {
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--border);
  background: var(--light-bg);
}

.result--inside { border-left-color: var(--inside); }
.result--outside { border-left-color: var(--outside); }
.result--error { border-left-color: var(--outside); }
.result--busy { opacity: 0.7; }
.result__text { margin: 0; }

.result__verdict {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.result--inside .result__verdict { color: var(--inside); }
.result--outside .result__verdict { color: var(--outside); }

.result__facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.2rem 0.8rem;
  font-size: 0.9rem;
  margin: 0;
}
.result__facts dt { font-weight: normal; color: #777; }
.result__facts dd { margin: 0; overflow-wrap: anywhere; }

.result__notes {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
}
.result__notes li + li { margin-top: 0.3rem; }

/* ---- footer bits ---- */

.vintage-row { margin-top: 1.25rem; }

.source-note {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: #888;
}

/* ---- small screens: map on top, panel below ---- */

@media (max-width: 760px) {
  #app { grid-template-columns: 1fr; grid-template-rows: 55vh auto; }
  #map { order: -1; }
  #panel { border-right: none; border-top: 1px solid var(--border); overflow-y: visible; }
  body { display: block; }
}
