.bk-peace {
  --bk-bg: 0 0% 100%;
  --bk-fg: 30 10% 18%;
  --bk-muted: 30 8% 42%;
  --bk-accent: 349 80% 51%;
  --bk-card: 0 0% 100%;
  --bk-border: 214 32% 91%;
  --bk-sand: 36 30% 90%;
  --bk-display: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 100%;
  padding: clamp(3.5rem, 8vw, 8rem) 0;
  color: hsl(var(--bk-fg));
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  box-sizing: border-box;
  overflow-x: clip;
}

.bk-peace *,
.bk-peace *::before,
.bk-peace *::after {
  box-sizing: border-box;
}

.bk-peace__grain {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.025;
  background-image: url("https://bkafrica.org/wp-content/uploads/2026/08/page-grain.png");
  background-repeat: repeat;
}

.bk-peace__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.bk-peace__intro {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.bk-peace__eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: hsl(var(--bk-accent));
  margin: 0 0 1rem;
}

.bk-peace__title {
  font-family: var(--bk-display) !important;
  font-size: clamp(1.75rem, 5.5vw, 2.75rem) !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  text-wrap: balance;
  overflow-wrap: break-word;
  margin: 0;
  max-width: 16em;
  color: hsl(var(--bk-fg)) !important;
}

.bk-peace__lead {
  margin: 1.25rem 0 0;
  font-size: 1rem;
  line-height: 1.7;
  color: hsl(var(--bk-muted));
}

.bk-peace__lead-mark {
  color: inherit;
}

.bk-peace__filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  width: 100%;
  min-width: 0;
}

.bk-peace__select,
.bk-peace__search,
.bk-peace__search input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.bk-peace__select,
.bk-peace__search input {
  border-radius: 9999px;
  border: 1px solid hsl(var(--bk-border));
  background: hsl(var(--bk-card));
  padding: 0.875rem 1.25rem;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  color: hsl(var(--bk-fg));
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.bk-peace__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b635c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.bk-peace__search input {
  font-weight: 400;
  padding-left: 2.75rem;
  cursor: text;
}

.bk-peace__select:focus,
.bk-peace__search input:focus {
  border-color: hsl(var(--bk-accent));
}

.bk-peace__search {
  position: relative;
}

.bk-peace__search svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: hsl(var(--bk-muted));
  pointer-events: none;
}

.bk-peace__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
  min-width: 0;
}

.bk-peace__map-col,
.bk-peace__list-col {
  min-width: 0;
  max-width: 100%;
}

.bk-peace__map-wrap {
  width: 100%;
  max-width: 100%;
  height: min(58vw, 280px);
  min-height: 220px;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--bk-border));
  background: hsl(var(--bk-sand));
}

.bk-peace__map {
  height: 100%;
  width: 100%;
  max-width: 100%;
}

.bk-peace .leaflet-container {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  background: hsl(var(--bk-sand));
  font-family: inherit;
}

.bk-peace .leaflet-tile-pane {
  filter: grayscale(1) contrast(0.92) brightness(1.06);
}

.bk-peace .leaflet-pane,
.bk-peace .leaflet-tile,
.bk-peace .leaflet-marker-icon,
.bk-peace .leaflet-marker-shadow,
.bk-peace .leaflet-image-layer,
.bk-peace .leaflet-overlay-pane svg,
.bk-peace .leaflet-container img {
  max-width: none !important;
  max-height: none !important;
}

.bk-peace .leaflet-control-attribution {
  font-size: 9px;
  line-height: 1.3;
  max-width: calc(100% - 8px);
  white-space: normal;
}

.bk-peace .leaflet-control-zoom a {
  width: 30px !important;
  height: 30px !important;
  line-height: 30px !important;
}

.bk-peace__hint {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: hsl(var(--bk-muted));
}

.bk-peace__list {
  max-height: none;
  overflow: visible;
  padding-right: 0;
  display: grid;
  gap: 0.5rem;
}

.bk-peace__country {
  width: 100%;
  max-width: 100%;
  text-align: left;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--bk-border));
  background: hsl(var(--bk-card));
  padding: 0.9rem 1.05rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  color: hsl(var(--bk-fg)) !important;
  -webkit-text-fill-color: hsl(var(--bk-fg));
}

.bk-peace__country:hover,
.bk-peace__country:focus,
.bk-peace__country:focus-visible,
.bk-peace__country:active,
.bk-peace__country.is-active {
  border-color: hsl(var(--bk-accent) / 0.4);
  background: hsl(var(--bk-card)) !important;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
  color: hsl(var(--bk-fg)) !important;
  -webkit-text-fill-color: hsl(var(--bk-fg));
}

.bk-peace__country-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.bk-peace__country-row svg {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--bk-accent));
  flex-shrink: 0;
}

.bk-peace__country-row span {
  font-size: 0.875rem;
  font-weight: 500;
  overflow-wrap: anywhere;
  color: hsl(var(--bk-fg)) !important;
  -webkit-text-fill-color: hsl(var(--bk-fg));
}

.bk-peace__country:hover .bk-peace__country-row span,
.bk-peace__country:focus .bk-peace__country-row span,
.bk-peace__country:active .bk-peace__country-row span,
.bk-peace__country.is-active .bk-peace__country-row span {
  color: hsl(var(--bk-fg)) !important;
  -webkit-text-fill-color: hsl(var(--bk-fg));
}

.bk-peace__country-meta {
  margin: 0.4rem 0 0 1.5rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: hsl(var(--bk-muted));
  overflow-wrap: anywhere;
}

.bk-peace__empty {
  font-size: 0.875rem;
  color: hsl(var(--bk-muted));
  padding: 1rem 0;
}

.bk-peace__cta {
  margin-top: 2.25rem;
}

.bk-peace__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 9999px;
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  text-decoration: none;
  background: hsl(var(--bk-accent));
  color: #fff !important;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
  transition: all 0.3s ease;
}

.bk-peace__btn:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  filter: brightness(0.95);
  color: #fff !important;
}

.bk-peace-marker span {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgb(230 30 66 / 0.55);
  border: 2px solid #E61E42;
}

@media (min-width: 640px) {
  .bk-peace__inner {
    padding: 0 2rem;
  }

  .bk-peace__intro {
    margin-bottom: 2.5rem;
  }

  .bk-peace__lead {
    margin-top: 1.5rem;
    font-size: 1.0625rem;
  }

  .bk-peace__map-wrap {
    height: 380px;
    min-height: 0;
    border-radius: 1rem;
  }

  .bk-peace__btn {
    width: auto;
  }

  .bk-peace__select,
  .bk-peace__search input {
    font-size: 0.875rem;
  }
}

@media (min-width: 768px) {
  .bk-peace__filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 16rem);
    align-items: start;
    gap: 1rem;
    margin-bottom: 2rem;
  }
}

@media (min-width: 1024px) {
  .bk-peace__layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 2rem;
  }

  .bk-peace__map-wrap {
    height: 460px;
  }

  .bk-peace__list {
    max-height: 410px;
    overflow-y: auto;
    padding-right: 0.25rem;
  }

  .bk-peace__cta {
    margin-top: 3rem;
  }
}

/* /countries/ — same left edge as the header logo; slightly narrower than full bleed. */
body.bk-paa-countries-index {
  --bk-logo-inset: 1.25rem;
}

body.bk-paa-countries-index .site-main {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding-inline: 0 !important;
  box-sizing: border-box;
}

body.bk-paa-countries-index .page-header,
body.bk-paa-countries-index .entry-header,
body.bk-paa-countries-index .page-header .entry-title,
body.bk-paa-countries-index h1.entry-title,
body.bk-paa-countries-index .elementor-page-title,
body.bk-paa-countries-index .elementor-widget-theme-page-title {
  display: none !important;
}

body.bk-paa-countries-index .page-header,
body.bk-paa-countries-index .bk-peace__inner {
  max-width: 80rem;
  width: calc(100% - (var(--bk-logo-inset) * 2));
  margin-left: var(--bk-logo-inset) !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box;
}

body.bk-paa-countries-index .bk-peace__intro {
  max-width: 46rem;
}

@media (min-width: 768px) {
  body.bk-paa-countries-index {
    --bk-logo-inset: 2.5rem;
  }
}

@media (min-width: 1025px) {
  body.bk-paa-countries-index {
    --bk-logo-inset: 121px;
  }
}
