:root {
  --territory-bg: #f3f0e9;
  --territory-card: #ffffff;
  --territory-text: #181818;
  --territory-muted: #68645d;
  --territory-line: #d8d3ca;
  --territory-red: #b72025;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--territory-bg);
  color: var(--territory-text);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
}

.territory-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 80px;
}

.territory-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  font-size: 14px;
  color: var(--territory-muted);
}

.territory-breadcrumb a {
  text-decoration: none;
}

.territory-breadcrumb a:hover {
  text-decoration: underline;
}

.territory-hero {
  max-width: 850px;
  padding-bottom: 40px;
}

.territory-eyebrow,
.territory-section-kicker {
  margin: 0 0 10px;
  color: var(--territory-red);
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
}

.territory-hero h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 76px);
  line-height: .98;
  letter-spacing: -.045em;
}

.territory-intro {
  max-width: 720px;
  margin: 24px 0 0;
  color: #403d38;
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.5;
}

.territory-count {
  margin: 18px 0 0;
  color: var(--territory-muted);
}

.territory-links-section,
.territory-events-section {
  padding: 40px 0;
  border-top: 1px solid var(--territory-line);
}

.territory-links-section h2,
.territory-section-heading h2 {
  margin: 0;
  font-size: clamp(27px, 4vw, 42px);
  letter-spacing: -.025em;
}

.territory-links {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.territory-link {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 18px;
  border: 1px solid var(--territory-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .55);
  text-decoration: none;
}

.territory-link:hover {
  background: #fff;
}

.territory-link span {
  font-weight: 700;
}

.territory-link small {
  white-space: nowrap;
  color: var(--territory-muted);
}

.territory-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.territory-section-heading a {
  color: var(--territory-red);
  font-weight: 700;
  text-decoration: none;
}

.territory-event-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(245px, 1fr));
  gap: 22px;
}

.territory-event-card {
  overflow: hidden;
  border: 1px solid var(--territory-line);
  border-radius: 18px;
  background: var(--territory-card);
}

.territory-event-image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8e4dc;
}

.territory-event-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.territory-event-body {
  padding: 19px;
}

.territory-event-body h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.15;
}

.territory-event-body h3 a {
  text-decoration: none;
}

.territory-event-body h3 a:hover {
  text-decoration: underline;
}

.territory-event-type {
  margin: 0 0 8px;
  color: var(--territory-red);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.territory-event-date {
  margin: 13px 0 0;
  font-weight: 650;
}

.territory-event-place {
  margin: 7px 0 0;
  color: var(--territory-muted);
}

.territory-history {
  padding-bottom: 0;
}

.territory-history-grid .territory-event-card {
  opacity: .88;
}

.territory-empty {
  padding: 28px;
  border: 1px dashed var(--territory-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .45);
}

.territory-empty h3 {
  margin: 0 0 7px;
}

.territory-empty p {
  margin: 0;
  color: var(--territory-muted);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .territory-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 22px;
  }

  .territory-breadcrumb {
    margin-bottom: 26px;
  }

  .territory-hero {
    padding-bottom: 32px;
  }

  .territory-section-heading {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .territory-event-grid {
    grid-template-columns: 1fr;
  }
}
