:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #15251d;
  background: #f4f7f4;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.site-header {
  z-index: 1000;
  display: flex;
  gap: 1.5rem;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0.9rem clamp(1rem, 3vw, 2.5rem);
  background: #ffffff;
  border-bottom: 1px solid #d6dfd9;
  box-shadow: 0 2px 12px rgb(21 37 29 / 10%);
}

.site-header__eyebrow {
  margin: 0;
  color: #116149;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header h1 {
  margin: 0.1rem 0 0;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
}

.site-header__subtitle {
  margin: 0.2rem 0 0;
  color: #526158;
  font-size: 0.92rem;
}

.site-header__runtime {
  margin: 0.25rem 0 0;
  color: #78857c;
  font-size: 0.78rem;
}

.site-header__runtime:empty {
  display: none;
}

.site-nav {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.site-nav a {
  padding: 0.4rem 0.7rem;
  color: #2b4a3c;
  background: #eef3ef;
  border: 1px solid #d6dfd9;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  background: #e2ebe4;
}

.site-nav a[aria-current="page"] {
  color: #ffffff;
  background: #116149;
  border-color: #116149;
}

.site-nav a:focus-visible {
  outline: 3px solid #9cd7c5;
  outline-offset: 2px;
}

.view-shell {
  position: relative;
  min-height: 0;
}

.map-view {
  width: 100%;
  height: 100%;
  min-height: 28rem;
}

.map-view[hidden],
.doc-view[hidden] {
  display: none;
}

.doc-view {
  height: 100%;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  overflow-y: auto;
}

.view-message {
  position: absolute;
  z-index: 900;
  top: 1rem;
  left: 50%;
  max-width: min(32rem, calc(100% - 2rem));
  margin: 0;
  padding: 0.7rem 1rem;
  color: #263b30;
  background: rgb(255 255 255 / 95%);
  border: 1px solid #cad6ce;
  border-radius: 0.65rem;
  box-shadow: 0 4px 20px rgb(21 37 29 / 18%);
  transform: translateX(-50%);
}

.view-message[data-kind="error"] {
  color: #7d1f1f;
  border-color: #d7a2a2;
}

.view-message[hidden] {
  display: none;
}

/* Document pages (report, tips) share one centered, readable column. */
.report,
.doc-section {
  max-width: 54rem;
  margin: 0 auto;
}

.doc-section + .doc-section {
  margin-top: 2.5rem;
}

.doc-section__heading {
  margin: 0 0 1rem;
  padding-bottom: 0.4rem;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  border-bottom: 2px solid #d6dfd9;
}

.report__headline {
  margin: 0 0 0.6rem;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
}

.report__summary {
  margin: 0;
  line-height: 1.6;
  font-size: 1.02rem;
  white-space: pre-wrap;
}

.report__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.9rem;
  margin: 1.5rem 0;
}

.report__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e7ece8;
  border: 1px solid #cad6ce;
  border-radius: 0.6rem;
}

.report__actions {
  margin-top: 1.5rem;
}

.weekly__cover {
  display: block;
  width: 100%;
  max-height: 22rem;
  object-fit: cover;
  background: #e7ece8;
  border: 1px solid #cad6ce;
  border-radius: 0.6rem;
  margin-bottom: 0.6rem;
}

.weekly__caption {
  margin: 0 0 1.4rem;
  color: #4a5a50;
  font-size: 0.98rem;
}

.weekly__text {
  margin: 0 0 1.6rem;
  line-height: 1.6;
}

.weekly__heading {
  margin: 1.8rem 0 0.8rem;
  padding-bottom: 0.4rem;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  border-bottom: 2px solid #d6dfd9;
}

.weekly__list {
  margin: 0 0 0.5rem;
  padding-left: 1.2rem;
  line-height: 1.6;
}

.weekly__list li {
  margin-bottom: 0.6rem;
}

.button-link {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  color: #ffffff;
  background: #116149;
  border: 1px solid #116149;
  border-radius: 0.4rem;
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.button-link:focus-visible {
  outline: 3px solid #9cd7c5;
  outline-offset: 2px;
}

.tips {
  display: grid;
  gap: 1rem;
}

.tip {
  padding: 1.1rem 1.25rem;
  background: #ffffff;
  border: 1px solid #d6dfd9;
  border-left: 4px solid #116149;
  border-radius: 0.6rem;
  box-shadow: 0 2px 10px rgb(21 37 29 / 6%);
}

.tip__headline {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
}

.tip__summary {
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.tip .button-link {
  padding: 0.35rem 0.6rem;
  font-size: 0.82rem;
}

.debates {
  display: grid;
  gap: 1.5rem;
}

.debate {
  padding: 1.1rem 1.25rem;
  background: #ffffff;
  border: 1px solid #d6dfd9;
  border-radius: 0.6rem;
  box-shadow: 0 2px 10px rgb(21 37 29 / 6%);
}

.debate__headline {
  margin: 0 0 0.9rem;
  font-size: 1.1rem;
}

.debate__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.debate__column {
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
}

/* Pro is blue (left), contra is red (right) — the same palette as the weekly/breaking markers. */
.debate__column--pro {
  background: #eef5fa;
  border: 1px solid #c3dcec;
}

.debate__column--contra {
  background: #fbeeed;
  border: 1px solid #e8c4c0;
}

.debate__column-heading {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.debate__column--pro .debate__column-heading {
  color: #184f75;
}

.debate__column--contra .debate__column-heading {
  color: #9e2c24;
}

.debate__list {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.5;
}

.debate__list li + li {
  margin-top: 0.4rem;
}

.debate__actions {
  margin-top: 0.9rem;
}

.debate__actions .button-link {
  padding: 0.35rem 0.6rem;
  font-size: 0.82rem;
}

.news-popup {
  width: min(46rem, 90vw);
  color: #15251d;
}

.news-popup__kicker {
  margin: 0 0 0.15rem;
  color: #116149;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-popup h2 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
}

.news-popup__status {
  margin: 0 0 0.65rem;
  color: #526158;
  font-size: 0.82rem;
}

.news-popup__status--breaking {
  color: #9e2c24;
}

.news-popup__status--weekly {
  color: #184f75;
}

.news-popup__summary {
  margin: 0;
  line-height: 1.45;
  white-space: pre-wrap;
  user-select: text;
}

/* The content is always two columns and the image slot always reserved, so paging never reflows the popup. */
.news-popup__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  gap: 0.9rem;
  align-items: start;
  margin-bottom: 0.85rem;
}

.news-popup__image-slot {
  width: 17rem;
  aspect-ratio: 4 / 3;
}

.news-popup__image,
.news-popup__image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f4f7f4;
  border: 1px solid #cad6ce;
  border-radius: 0.5rem;
}

.news-popup__image[hidden],
.news-popup__image-placeholder[hidden] {
  display: none;
}

/* A friendly alpine placeholder keeps the image column intentionally occupied — a visible icon plus a short
   caption — when a news page has no photo, so the empty slot never looks like a failed or pending image load. */
.news-popup__image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  text-align: center;
  background: linear-gradient(160deg, #eef3f7, #e3ebe5);
}

.news-popup__image-placeholder-icon {
  font-size: 2.6rem;
  line-height: 1;
}

.news-popup__image-placeholder-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6c7f74;
}

.news-popup__pagination {
  display: grid;
  grid-template-columns: auto minmax(6rem, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 0.75rem;
}

.news-popup__page-counter {
  color: #526158;
  font-size: 0.8rem;
  text-align: center;
}

.news-popup__pagination button {
  padding: 0.4rem 0.6rem;
  color: #184f75;
  background: #ffffff;
  border: 1px solid #7a9db4;
  border-radius: 0.4rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
}

.news-popup__pagination button:disabled {
  color: #84918a;
  background: #eef1ef;
  border-color: #c9d0cc;
  cursor: not-allowed;
  opacity: 0.72;
}

.news-popup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.news-popup__actions a {
  padding: 0.45rem 0.65rem;
  color: #ffffff;
  background: #116149;
  border: 1px solid #116149;
  border-radius: 0.4rem;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
}

.news-popup__actions a:focus-visible,
.news-popup__pagination button:focus-visible {
  outline: 3px solid #9cd7c5;
  outline-offset: 2px;
}

@media (max-width: 44rem) {
  .site-header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .map-view {
    min-height: 24rem;
  }

  .debate__columns {
    grid-template-columns: 1fr;
  }

  .news-popup {
    width: min(22rem, 82vw);
  }

  /* On a narrow screen the image column cannot be reserved; drop to one column. The placeholder still shows so
     an absent photo reads as intentional and the popup keeps a steady height as you page through updates. */
  .news-popup__content {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-popup__image-slot {
    width: 100%;
  }
}

/* Click-to-enlarge affordance on the two thumbnail kinds (report gallery and popup photo). */
.report__image,
.news-popup__image {
  cursor: zoom-in;
}

.report__image:focus-visible,
.news-popup__image:focus-visible {
  outline: 3px solid #0788df;
  outline-offset: 2px;
}

/* The lightbox is a native modal <dialog> promoted to the top layer; it fills the viewport as a transparent
   flex container that centres one forum image at a readable, viewport-capped size (object-fit contain, so
   nothing is cropped on phone or laptop), with the dark page dimming painted on its ::backdrop. */
body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 1.5rem;
  border: none;
  background: transparent;
  align-items: center;
  justify-content: center;
}

.lightbox[open] {
  display: flex;
}

.lightbox::backdrop {
  background: rgba(8, 18, 12, 0.88);
}

.lightbox__image {
  max-width: min(94vw, 1400px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.6rem;
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.55);
  cursor: default;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  color: #0b140e;
  background: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0.3rem 0.9rem rgba(0, 0, 0, 0.4);
}

.lightbox__close:focus-visible {
  outline: 3px solid #0788df;
  outline-offset: 2px;
}

@media (max-width: 44rem) {
  .lightbox {
    padding: 0.75rem;
  }

  .lightbox__image {
    max-width: 96vw;
    max-height: 86vh;
  }
}
