.site-main--frontpage {
  background: #fff;
}

.front-hero {
  align-items: flex-end;
  background: #0b2e13 center / cover no-repeat;
  color: #fff;
  display: flex;
  min-height: min(720px, 78vh);
  position: relative;
}

.front-hero::before {
  background: linear-gradient(90deg, rgba(5, 26, 13, 0.86), rgba(5, 26, 13, 0.58) 42%, rgba(5, 26, 13, 0.18));
  content: "";
  inset: 0;
  position: absolute;
}

.front-hero__inner {
  margin-inline: auto;
  padding: 6rem 1rem 4.5rem;
  position: relative;
  width: min(100%, var(--maxw));
  z-index: 1;
}

.front-hero__eyebrow,
.front-section-head__label {
  color: #b8d9c0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 0.65rem;
  text-transform: uppercase;
}

.front-hero h1 {
  color: #fff;
  font-size: clamp(2.55rem, 5vw, 5.6rem);
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
  max-width: 860px;
}

.front-hero__lead {
  color: #eef6ef;
  font-size: clamp(1.08rem, 1.2vw, 1.35rem);
  line-height: 1.5;
  margin: 1.3rem 0 0;
  max-width: 680px;
}

.front-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.btn--light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn--light:hover {
  background: #fff;
  color: var(--fg);
  text-decoration: none;
}

.front-intro {
  border-bottom: 1px solid #d8e2dc;
}

.front-intro__grid {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
}

.front-intro__content {
  color: #26362c;
  font-size: 1.08rem;
  max-width: 790px;
}

.front-intro__content > :last-child {
  margin-bottom: 0;
}

.front-intro__panel {
  border-left: 4px solid var(--acc);
  display: grid;
}

.front-intro__panel a {
  border-bottom: 1px solid #d8e2dc;
  color: var(--fg);
  display: grid;
  gap: 0.1rem;
  padding: 0.9rem 0 0.9rem 1rem;
  text-decoration: none;
}

.front-intro__panel a:last-child {
  border-bottom: 0;
}

.front-intro__panel span {
  color: var(--acc);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.front-section-head {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.front-section-head h2 {
  margin: 0;
  max-width: 720px;
}

.front-section-head__label {
  color: var(--acc);
}

.front-section-head__link {
  border-bottom: 2px solid currentColor;
  color: var(--fg);
  flex: 0 0 auto;
  font-weight: 700;
  text-decoration: none;
}

.front-map__layout {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
}

.front-map__map-shell {
  position: relative;
  min-width: 0;
}

.front-map__canvas {
  border: 1px solid #cbd8ce;
  height: 580px;
  margin: 0;
  min-height: 420px;
  width: 100%;
}

.front-map__legend {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(25, 55, 37, 0.18);
  bottom: 1rem;
  box-shadow: 0 12px 30px rgba(7, 28, 16, 0.16);
  display: grid;
  gap: 0.45rem;
  left: 1rem;
  max-width: min(360px, calc(100% - 2rem));
  padding: 0.85rem;
  position: absolute;
  z-index: 500;
}

.front-map__legend-item {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  line-height: 1.25;
  position: relative;
}

.front-map__legend-item span:nth-child(3) {
  overflow-wrap: anywhere;
}

.front-map__legend-item:has(.map-category-toggle:not(:checked)) {
  opacity: 0.48;
}

.front-map__legend-item:has(.map-category-toggle:focus-visible) .front-map__legend-dot {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
}

.map-category-toggle {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.front-map__legend-dot,
.custom-marker__dot {
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(11, 46, 19, 0.32), 0 2px 8px rgba(0, 0, 0, 0.22);
  display: block;
  height: 16px;
  width: 16px;
}

.custom-marker__dot {
  border-radius: 999px;
  height: 18px;
  width: 18px;
}

.front-map__legend strong {
  color: var(--fg);
}

.front-map__story {
  align-self: stretch;
  background: #fff;
  border-left: 4px solid #23633a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 0 1.5rem 1.25rem;
}

.front-map__story h3 {
  font-size: clamp(1.35rem, 1.1vw + 1rem, 1.9rem);
  line-height: 1.18;
  margin: 0 0 0.85rem;
}

.front-map__story p:not(.front-section-head__label) {
  color: #33443a;
  font-size: 1rem;
  line-height: 1.58;
  margin-bottom: 1.1rem;
}

.front-map__story .btn {
  align-self: flex-start;
}

.front-updates__grid {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.front-section-head--compact {
  margin-bottom: 1rem;
}

.front-section-head--compact h2 {
  font-size: clamp(1.4rem, 1.2vw + 1rem, 1.9rem);
}

.front-card-list,
.front-publication-list {
  display: grid;
  gap: 1rem;
}

.front-news-card,
.front-publication {
  border: 1px solid #d8e2dc;
  background: #fff;
}

.front-news-card a {
  color: inherit;
  display: grid;
  gap: 1rem;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 128px;
  text-decoration: none;
}

.front-news-card__media {
  background: #eef3ef;
  min-height: 128px;
  overflow: hidden;
}

.front-news-card__media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.front-news-card__body {
  display: grid;
  gap: 0.28rem;
  padding: 0.95rem 1rem 0.95rem 0;
}

.front-news-card time,
.front-publication__meta {
  color: var(--acc);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.front-news-card__title,
.front-publication__title {
  color: var(--fg);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}

.front-news-card__excerpt,
.front-publication__text {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.front-publication a {
  color: inherit;
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  text-decoration: none;
}

.leaflet-popup-content {
  line-height: 1.45;
}

.leaflet-popup-content p {
  margin: 0.4rem 0 0.55rem;
}

.map-popup__category {
  color: var(--acc);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 0.2rem;
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .front-intro__grid,
  .front-map__layout,
  .front-updates__grid {
    grid-template-columns: 1fr;
  }

  .front-map__story {
    border-left: 0;
    border-top: 4px solid #23633a;
    padding: 1.25rem 0 0;
  }
}

@media (max-width: 680px) {
  .front-hero {
    min-height: 620px;
  }

  .front-hero__inner {
    padding-bottom: 3rem;
  }

  .front-section-head {
    align-items: start;
    display: grid;
  }

  .front-map__canvas {
    height: 430px;
  }

  .front-map__legend {
    bottom: 0.75rem;
    left: 0.75rem;
    max-height: 45%;
    overflow: auto;
    padding: 0.7rem;
  }

  .front-news-card a {
    grid-template-columns: 1fr;
  }

  .front-news-card__body {
    padding: 0 1rem 1rem;
  }
}
