.synergy-home-borough,
.synergy-header-borough,
.synergy-sidebar-borough,
.synergy-footer-borough,
.synergy-bottom-nav--borough {
  --borough-ink: #10201b;
  --borough-paper: #f4f0e5;
  --borough-map: #d9eadc;
  --borough-card: #fffdf7;
  --borough-line: rgba(16, 32, 27, 0.16);
  --borough-green: #1c7c5a;
  --borough-rust: #bd4b28;
  --borough-muted: #65736d;
  font-family: Inter, Arial, Helvetica, sans-serif;
}

.synergy-header-borough {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--borough-line);
  background: rgba(244, 240, 229, 0.95);
  color: var(--borough-ink);
  backdrop-filter: blur(16px);
}

.borough-edition {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--borough-line);
  min-height: 34px;
  align-items: center;
  color: var(--borough-muted);
  font-size: 12px;
  font-weight: 850;
}

.borough-header-main {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 74px;
}

.borough-logo,
.borough-footer-logo,
.borough-drawer-logo {
  display: inline-flex;
  align-items: center;
  color: var(--borough-ink);
  text-decoration: none;
}

.borough-logo-image,
.borough-footer-logo .borough-logo-image,
.borough-drawer-logo .borough-logo-image {
  width: auto;
  max-width: min(270px, 48vw);
  max-height: 50px;
  object-fit: contain;
}

.borough-logo-text,
.borough-footer-logo-text,
.borough-drawer-logo-text {
  color: inherit;
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 1000;
  line-height: 1;
}

.borough-icon-button,
.borough-search-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--borough-line);
  border-radius: 8px;
  background: var(--borough-card);
  color: var(--borough-ink);
  cursor: pointer;
}

.borough-icon-button {
  width: 46px;
}

.borough-icon-button svg {
  width: 21px;
  height: 21px;
}

.borough-search-button {
  padding: 0 16px;
  font-weight: 950;
}

.borough-index {
  --synergy-design-nav-column-gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 12px;
}

.borough-index-link {
  flex: 0 0 auto;
  border: 1px solid var(--borough-line);
  border-radius: 8px;
  background: #fffdf7;
  color: var(--borough-ink);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
}

.synergy-home-borough {
  background:
    linear-gradient(90deg, rgba(28,124,90,0.08) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, var(--borough-map), var(--borough-paper) 520px);
  background-size: 72px 72px, auto;
  color: var(--borough-ink);
}

.borough-page {
  padding-top: 22px;
  padding-bottom: 56px;
}

.borough-local-board {
  display: grid;
  grid-template-columns: 160px minmax(0, 1.4fr) minmax(280px, 0.7fr);
  gap: 18px;
}

.borough-today,
.borough-notice-board,
.borough-card,
.borough-ad-band {
  border: 1px solid var(--borough-line);
  border-radius: 10px;
  background: var(--borough-card);
}

.borough-today {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
}

.borough-today span {
  color: var(--borough-green);
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.borough-today b {
  border-bottom: 1px solid var(--borough-line);
  padding-bottom: 12px;
  font-size: 52px;
  line-height: 0.9;
}

.borough-today a {
  color: var(--borough-ink);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.borough-card {
  overflow: hidden;
}

.borough-card-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  min-height: 430px;
}

.borough-media {
  --synergy-design-media-ratio: 16 / 10;
  background: #d6dfd2;
}

.borough-media-lead {
  height: 100%;
}

.borough-title {
  margin: 0;
  line-height: 1.05;
}

.borough-title a {
  color: inherit;
  text-decoration: none;
}

.borough-title-lead,
.borough-card-lead .borough-excerpt,
.borough-card-lead .borough-meta {
  padding-inline: clamp(18px, 2.8vw, 40px);
}

.borough-title-lead {
  align-self: end;
  margin-top: auto;
  padding-top: 24px;
  font-size: clamp(36px, 4.8vw, 72px);
  font-weight: 1000;
}

.borough-excerpt {
  color: var(--borough-muted);
  font-size: 15px;
  line-height: 1.5;
}

.borough-meta {
  color: var(--borough-green);
  font-size: 12px;
  font-weight: 1000;
}

.borough-notice-board {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
}

.borough-notice-board h2 {
  margin: 0;
  color: var(--borough-rust);
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
}

.borough-card-notice {
  border: 0;
  border-top: 1px solid var(--borough-line);
  border-radius: 0;
  background: transparent;
  padding-top: 12px;
}

.borough-title-notice {
  font-size: clamp(17px, 1.5vw, 23px);
  font-weight: 950;
}

.borough-city-shelf {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.borough-card-city {
  min-height: 100%;
}

.borough-title-city {
  padding: 12px;
  font-size: 18px;
  font-weight: 950;
}

.borough-ad-band {
  margin-top: 22px;
  padding: 12px;
}

.borough-districts,
.borough-latest {
  margin-top: 30px;
}

.borough-districts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.borough-district {
  border-top: 4px solid var(--borough-green);
  background: rgba(255,253,247,0.72);
  padding-top: 12px;
}

.borough-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.borough-section-head h2 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 42px);
  font-weight: 1000;
}

.borough-section-head a {
  color: inherit;
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.borough-district-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 12px;
}

.borough-district-grid .borough-card-local {
  grid-row: span 4;
}

.borough-card-local {
  display: grid;
}

.borough-title-local {
  padding: 12px 12px 0;
  font-size: clamp(18px, 1.7vw, 26px);
  font-weight: 950;
}

.borough-card-local .borough-excerpt,
.borough-card-local .borough-meta {
  padding-inline: 12px;
}

.borough-latest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.synergy-sidebar-borough {
  --synergy-design-drawer-bg: var(--borough-card);
  --synergy-design-drawer-fg: var(--borough-ink);
  --synergy-design-drawer-width: 372px;
}

.borough-drawer,
.briefing-drawer,
.afterdark-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 95;
  height: 100vh;
  overflow-y: auto;
  transform: translateX(-105%);
  transition: transform 180ms ease;
}

.borough-drawer.is-open,
.briefing-drawer.is-open,
.afterdark-drawer.is-open {
  transform: translateX(0);
}

.borough-drawer {
  border-right: 6px solid var(--borough-green);
  background: var(--borough-card);
  color: var(--borough-ink);
  box-shadow: 18px 0 55px rgba(16,32,27,0.24);
}

.borough-drawer-head,
.briefing-drawer-head,
.afterdark-drawer-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  padding: 18px;
}

.borough-drawer-close,
.briefing-drawer-close,
.afterdark-drawer-close {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.borough-drawer-close svg,
.briefing-drawer-close svg,
.afterdark-drawer-close svg {
  width: 20px;
  height: 20px;
}

.borough-drawer-search,
.briefing-drawer-search,
.afterdark-drawer-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 0 18px 18px;
}

.borough-drawer-search input,
.briefing-drawer-search input,
.afterdark-drawer-search input {
  min-width: 0;
  border: 1px solid var(--borough-line);
  background: #fff;
  padding: 11px;
  color: var(--borough-ink);
}

.borough-drawer-search button,
.briefing-drawer-search button,
.afterdark-drawer-search button {
  border: 0;
  background: var(--borough-green);
  color: #fff;
  padding: 0 12px;
  font-weight: 950;
}

.borough-drawer-langs,
.briefing-drawer-langs,
.afterdark-drawer-langs {
  padding: 0 18px 14px;
}

.borough-drawer-langs a,
.briefing-drawer-langs a,
.afterdark-drawer-langs a {
  border: 1px solid var(--borough-line);
  color: inherit;
  padding: 7px 10px;
  text-decoration: none;
}

.borough-drawer-langs a.is-active {
  background: var(--borough-green);
  color: #fff;
}

.borough-drawer-nav,
.briefing-drawer-nav,
.afterdark-drawer-nav {
  display: grid;
  padding: 6px 18px 28px;
}

.borough-drawer-nav a,
.briefing-drawer-nav a,
.afterdark-drawer-nav a {
  border-top: 1px solid var(--borough-line);
  color: inherit;
  padding: 14px 0;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.2;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.borough-drawer-backdrop,
.briefing-drawer-backdrop,
.afterdark-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  border: 0;
  background: rgba(16, 32, 27, 0.44);
}

.synergy-footer-borough {
  background: var(--borough-ink);
  color: var(--borough-paper);
}

.borough-footer-inner {
  display: grid;
  gap: 26px;
  padding-top: 36px;
  padding-bottom: 38px;
}

.borough-footer-map {
  display: grid;
  grid-template-columns: minmax(240px, 0.45fr) minmax(0, 1fr);
  gap: 22px;
}

.borough-footer-logo,
.borough-footer-logo-text,
.borough-footer-nav-link,
.borough-footer-group-link {
  color: var(--borough-paper);
}

.borough-footer-nav-link,
.borough-footer-group-link {
  text-decoration: none;
}

.borough-footer-heading {
  margin: 0 0 10px;
  color: #8fe0bd;
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.borough-footer-bottom {
  color: rgba(244,240,229,0.65);
  font-size: 13px;
}

.synergy-bottom-nav--borough {
  --synergy-bottom-design-bg: rgba(255, 253, 247, 0.96);
  --synergy-bottom-design-fg: #10201b;
  --synergy-bottom-design-border: 1px solid rgba(16,32,27,0.14);
  --synergy-bottom-design-item-radius: 8px;
  --synergy-bottom-design-icon-radius: 8px;
}

.synergy-bottom-nav--borough .synergy-bottom-nav-item.is-active {
  background: var(--borough-green);
  color: #fff;
}

@media (max-width: 1080px) {
  .borough-local-board {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .borough-notice-board {
    grid-column: 1 / -1;
  }

  .borough-city-shelf,
  .borough-latest-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .borough-local-board,
  .borough-card-lead,
  .borough-districts,
  .borough-district-grid,
  .borough-footer-map {
    grid-template-columns: 1fr;
  }

  .borough-today {
    grid-template-columns: auto auto repeat(4, auto);
    overflow-x: auto;
    align-items: center;
  }

  .borough-today b {
    border-bottom: 0;
    padding-bottom: 0;
    font-size: 38px;
  }

  .borough-media-lead {
    height: auto;
  }

  .borough-title-lead {
    font-size: clamp(30px, 10vw, 46px);
  }

  .borough-city-shelf,
  .borough-latest-grid {
    grid-template-columns: 1fr;
  }
}
