/* ==========================================================================
   East Grand Rapids, MI — Community Website
   style.css — Editorial Design System
   Architectural Digest meets Michigan city magazine
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
  /* Primary palette */
  --navy:          #1A2B4A;
  --navy-dark:     #0F1C30;
  --navy-mid:      #243B5F;
  --navy-pale:     #EEF2F7;

  /* Accent palette */
  --green:         #1B5E3B;
  --green-light:   #2A7250;
  --green-pale:    #E8F5EF;

  /* Gold */
  --gold:          #D4A017;
  --gold-light:    #FDF6E3;
  --gold-dark:     #A67C00;

  /* Neutral */
  --dark:          #1C1C1E;
  --text:          #2D3748;
  --text-muted:    #64748B;
  --border:        #E2E8F0;
  --border-dark:   #CBD5E1;
  --bg:            #F8F9FA;
  --bg-alt:        #F0F4F8;
  --white:         #FFFFFF;

  /* Sizing */
  --radius:        6px;
  --radius-lg:     12px;
  --radius-xl:     20px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:        0 4px 16px rgba(26,43,74,0.09);
  --shadow-lg:     0 12px 40px rgba(26,43,74,0.14);
  --max-width:     1280px;
  --nav-height:    72px;
  --transition:    220ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--navy-pale);
  color: var(--navy);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ul, ol {
  list-style: none;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--navy-mid);
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* Focus states — accessible, distinctive */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   4. LAYOUT
   ========================================================================== */

.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background-color: var(--bg-alt);
}

.section-header {
  margin-bottom: 3rem;
}

.section-header .eyebrow {
  margin-bottom: 0.5rem;
}

.section-header__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.025em;
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}

.section-header--light .eyebrow {
  color: var(--gold);
}

.section-header--light .eyebrow::before {
  background-color: var(--gold);
  opacity: 0.6;
}

.section-header--light .section-header__title {
  color: var(--white);
}

.section-header--light .section-subhead {
  color: rgba(255, 255, 255, 0.7);
}

.section-footer {
  margin-top: 2.75rem;
  text-align: center;
}

.section-subhead {
  color: var(--text-muted);
  font-size: 1.0rem;
  line-height: 1.7;
  max-width: 52ch;
  margin-top: 0.5rem;
}

.intro-prose {
  max-width: 72ch;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.5rem 0;
  }
}

/* ==========================================================================
   5. NAVIGATION
   ========================================================================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  /* Thin gold accent rule below the border */
  box-shadow: 0 2px 0 0 var(--gold), var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.site-nav.nav-scrolled {
  box-shadow: 0 2px 0 0 var(--gold), var(--shadow-lg);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1.5rem;
  height: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 40px;
  height: 40px;
  background-color: var(--navy);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  transition: background-color var(--transition);
}

.nav-logo:hover .nav-logo-mark {
  background-color: var(--navy-mid);
}

.nav-logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition);
}

/* Animated underline via ::after */
.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0.875rem;
  right: 0.875rem;
  height: 2px;
  background-color: var(--navy);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--transition);
}

.nav-links > li > a:hover {
  color: var(--navy);
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
  transform: scaleX(1);
}

.nav-links > li > a.active {
  color: var(--navy);
  font-weight: 600;
}

/* Dropdown */
.nav-links li.nav-dropdown {
  position: relative;
}

.dropdown-arrow {
  display: inline-block;
  font-size: 0.6rem;
  margin-left: 2px;
  vertical-align: middle;
  transition: transform var(--transition);
  line-height: 1;
  opacity: 0.6;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 210px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  list-style: none;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1.1rem;
  font-size: 0.855rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition), padding-left var(--transition);
}

.dropdown-menu li a:hover {
  background-color: var(--navy-pale);
  color: var(--navy);
  padding-left: 1.375rem;
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background-color var(--transition);
  background: none;
  border: none;
}

.nav-toggle:hover {
  background-color: var(--navy-pale);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 1.5rem 2rem;
    overflow-y: auto;
    border-top: 3px solid var(--gold);
    z-index: 999;
  }

  .nav-links.nav-open {
    display: flex;
  }

  .nav-links > li {
    width: 100%;
  }

  .nav-links > li > a {
    display: block;
    padding: 0.9rem 0.25rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .nav-links > li > a::after {
    display: none;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: none;
    border-radius: 0;
    padding: 0 0 0 1rem;
    background-color: var(--bg-alt);
  }

  .nav-dropdown:hover .dropdown-menu {
    transform: none;
  }
}

/* ==========================================================================
   5b. NAV SEARCH
   ========================================================================== */

.nav-search {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-search__input {
  border: 1px solid var(--border);
  border-radius: var(--radius) 0 0 var(--radius);
  padding: .35rem .6rem;
  font-size: .85rem;
  width: 130px;
  outline: none;
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition), width var(--transition);
}

.nav-search__input:focus {
  border-color: var(--navy);
  width: 170px;
}

.nav-search__btn {
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .35rem .6rem;
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
  font-size: .85rem;
  display: flex;
  align-items: center;
  transition: background-color var(--transition);
}

.nav-search__btn:hover {
  background: var(--navy-mid);
}

@media (max-width: 768px) {
  .nav-search {
    width: 100%;
  }
  .nav-search__input {
    flex: 1;
    width: auto;
  }
  .nav-search__input:focus {
    width: auto;
  }
}

/* ==========================================================================
   6. FLASH MESSAGES
   ========================================================================== */

.flash {
  position: fixed;
  top: calc(var(--nav-height) + 1rem);
  right: 1.5rem;
  z-index: 9999;
  min-width: 290px;
  max-width: 440px;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  font-weight: 500;
  animation: flashIn 200ms ease forwards;
}

@keyframes flashIn {
  from { opacity: 0; transform: translateX(1rem); }
  to   { opacity: 1; transform: translateX(0); }
}

.flash-success {
  background-color: #d1fae5;
  color: #064e3b;
  border-left: 4px solid #059669;
}

.flash-error {
  background-color: #fee2e2;
  color: #7f1d1d;
  border-left: 4px solid #dc2626;
}

.flash-warning {
  background-color: var(--gold-light);
  color: #78350f;
  border-left: 4px solid var(--gold);
}

.flash-close {
  margin-left: auto;
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.5;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: opacity var(--transition);
  flex-shrink: 0;
}

.flash-close:hover {
  opacity: 1;
}

/* ==========================================================================
   7. BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.375rem;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  letter-spacing: 0.01em;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-primary:hover {
  background-color: var(--navy-mid);
  border-color: var(--navy-mid);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(26,43,74,0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background-color: var(--navy);
  color: var(--white);
}

.btn-white {
  background-color: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-white:hover {
  background-color: var(--navy-pale);
  color: var(--navy);
  border-color: var(--navy-pale);
}

.btn-sm {
  padding: 0.4rem 0.875rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ==========================================================================
   8. PILLS / BADGES
   ========================================================================== */

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.pill--event {
  background-color: var(--green-pale);
  color: var(--green);
}

.pill--news {
  background-color: var(--navy-pale);
  color: var(--navy);
}

.pill--business {
  background-color: var(--gold-light);
  color: var(--gold-dark);
}

.pill--amenity {
  background-color: var(--navy-pale);
  color: var(--navy-mid);
  font-size: 0.68rem;
  padding: 0.175rem 0.5rem;
}

.pill--filter {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.875rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background-color: var(--white);
  color: var(--text);
  cursor: pointer;
  border: 1.5px solid var(--border-dark);
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
}

.pill--filter:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.pill--filter.active {
  background-color: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* New: RSS-sourced news pill */
.pill--rss {
  background-color: rgba(26,43,74,0.08);
  color: var(--navy-mid);
  font-size: 0.68rem;
  border: 1px solid rgba(26,43,74,0.15);
}

/* Neighborhood pill */
.pill--neighborhood {
  background-color: var(--navy-pale);
  color: var(--navy);
}

/* Park pill */
.pill--park {
  background-color: var(--green-pale);
  color: var(--green);
}

/* Tag pill (used in news articles) */
.pill--tag {
  background-color: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--border-dark);
}

/* Active state alias for pill--filter (used with .pill--active class in events) */
.pill--filter.pill--active,
.pill--filter.active {
  background-color: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ==========================================================================
   9. EYEBROW / LABELS
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.5rem;
}

/* Decorative gold line before eyebrow */
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background-color: var(--gold);
  border-radius: 1px;
  flex-shrink: 0;
}

.eyebrow--light {
  color: var(--gold);
}

.eyebrow--light::before {
  background-color: var(--gold);
  opacity: 0.7;
}

/* Eyebrow inside page headers always uses gold — readable on dark photo backgrounds */
.page-header .eyebrow {
  color: var(--gold);
}

.page-header .eyebrow::before {
  background-color: var(--gold);
}

/* ==========================================================================
   10. HERO (HOMEPAGE)
   ========================================================================== */

.hero {
  min-height: 46vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--navy-dark); /* fallback while image loads */
  position: relative;
  overflow: hidden;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,28,48,0.35) 0%, rgba(15,28,48,0.68) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Thin gold bottom accent line — uses ::before so it isn't overridden by the grain ::after below */
.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  pointer-events: none;
  z-index: 3;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  width: 100%;
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 0 auto;
}

/* Eyebrow inside hero always gold — readable on dark photo background */
.hero .eyebrow {
  color: var(--gold);
}
.hero .eyebrow::before {
  background-color: var(--gold);
}

.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

/* Decorative divider above tagline */
.hero-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 54ch;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.015em;
  padding-top: 0.875rem;
  border-top: 1.5px solid rgba(212, 160, 23, 0.45);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Hero ghost button override */
.hero-actions .btn-secondary {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.65);
}

.hero-actions .btn-secondary:hover {
  background-color: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
}

@media (max-width: 768px) {
  .hero {
    min-height: 40vh;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 36vh;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* ==========================================================================
   11. QUICK LINKS BAR
   ========================================================================== */

.quick-links {
  background-color: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.quick-links .container {
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
}

.quick-link-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.375rem 1.25rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition), border-color var(--transition);
  flex: 1;
  min-width: 80px;
  max-width: 140px;
  border-top: 3px solid transparent;
  position: relative;
}

.quick-link-tile:hover {
  background-color: var(--navy-pale);
  border-top-color: var(--navy);
}

.quick-link-icon {
  width: 28px;
  height: 28px;
  color: var(--navy);
  flex-shrink: 0;
  stroke-width: 1.75;
}

.quick-link-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  text-align: center;
  line-height: 1.3;
}

/* ==========================================================================
   12. PAGE HEADERS (INNER PAGES)
   ========================================================================== */

.page-header {
  background-color: var(--navy);
  padding: 3.5rem 0 3rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Subtle diagonal texture overlay */
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -45deg,
      rgba(255,255,255,0.02) 0px,
      rgba(255,255,255,0.02) 1px,
      transparent 1px,
      transparent 18px
    );
  pointer-events: none;
}

/* Gold bottom rule */
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
}

.page-header--businesses,
.page-header--business {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-mid) 100%);
}

.page-header--news {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
}

.page-header--neighborhoods {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
}

.page-header--parks {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--green) 100%);
}

.page-header--living {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-mid) 100%);
}

.page-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.page-header__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.875rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  position: relative;
  letter-spacing: -0.02em;
}

.page-header__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.78);
  max-width: 58ch;
  line-height: 1.65;
  position: relative;
  letter-spacing: 0.01em;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.875rem;
  font-family: 'Inter', sans-serif;
  position: relative;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb ol li {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.breadcrumb ol li + li::before {
  content: '/';
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.7rem;
}

/* Light variant for neighborhood hero (on dark bg) */
.breadcrumb--light a {
  color: rgba(255, 255, 255, 0.65);
}

.breadcrumb--light {
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.3);
  margin: 0 0.1rem;
}

/* ==========================================================================
   13. CARD (GENERIC)
   ========================================================================== */

.card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* ==========================================================================
   14. EVENT CARDS
   ========================================================================== */

.event-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.event-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.event-card__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.event-card__date-badge {
  background-color: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1rem;
  min-width: 68px;
  flex-shrink: 0;
}

.event-card__day {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.event-card__month {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-top: 0.15rem;
}

.event-card__body {
  padding: 1.375rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.event-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  transition: color var(--transition);
}

.event-card__link:hover .event-card__title {
  color: var(--navy);
}

.event-card__time,
.event-card__location {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   15. EVENTS PAGE LAYOUT
   ========================================================================== */

.events-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.25rem;
  align-items: start;
  padding: 3rem 0 4rem;
}

.events-main {
  min-width: 0;
}

.events-sidebar {
  min-width: 0;
}

.events-list-view {
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .events-layout {
    grid-template-columns: 1fr;
  }

  .events-sidebar {
    order: -1;
  }
}

/* ==========================================================================
   16. VIEW TOGGLE BAR
   ========================================================================== */

.view-toggle-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: transparent;
  border: 1.5px solid var(--border-dark);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition);
}

.view-toggle-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.view-toggle-btn.active,
.view-toggle-btn--active {
  background-color: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ==========================================================================
   17. CALENDAR
   ========================================================================== */

.calendar-container {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background-color: var(--navy);
  color: var(--white);
}

.calendar-month-label {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.calendar-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color var(--transition);
}

.calendar-nav-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-grid__header {
  display: contents;
}

.calendar-grid__body {
  display: contents;
}

.calendar-grid__day-name {
  padding: 0.5rem 0.25rem;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg);
}

/* Space between the calendar and the content below it */
.calendar-container { margin-bottom: 2.5rem; }

.calendar-day {
  min-height: 80px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0.4rem 0.4rem;
  position: relative;
  transition: background-color var(--transition);
  /* reset <a> tag defaults when day cell is a link */
  display: block;
  text-decoration: none;
  color: inherit;
}

.calendar-day:nth-child(7n) { border-right: none; }

.calendar-day--has-events { cursor: pointer; }

.calendar-day--has-events:hover,
.calendar-day--has-events:focus-within,
.calendar-day--has-events.cal-open {
  background-color: var(--navy-pale);
  outline: none;
  z-index: 10; /* lift above sibling cells so popover isn't painted over */
  position: relative; /* required for z-index to take effect */
}

.calendar-day--today .calendar-day__number {
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.calendar-day--empty { background-color: var(--bg); cursor: default; }
.calendar-day--empty:hover { background-color: var(--bg); }

.calendar-day__number {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.375rem;
  line-height: 1;
}

/* ── Dot row ──────────────────────────────────────────────────── */
.cal-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  align-items: center;
}

.cal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.cal-dot--community { background: var(--green); }
.cal-dot--arts      { background: #7C3AED; }
.cal-dot--sport     { background: var(--gold-dark); }
.cal-dot--seasonal  { background: #DC2626; }
.cal-dot--default   { background: var(--navy); }

.cal-dot-overflow {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1;
}

/* ── Hover popover ────────────────────────────────────────────── */
.cal-popover {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 200;
  min-width: 220px;
  max-width: 280px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem;
  pointer-events: none; /* prevents accidental hover-close */
}

/* open left when near right edge */
.cal-popover--left {
  left: auto;
  right: 0;
}

/* open upward when in bottom rows — avoids footer overlap */
.cal-popover--above {
  top: auto;
  bottom: calc(100% + 6px);
}

/* combined: left + above */
.cal-popover--left.cal-popover--above {
  left: auto;
  right: 0;
  top: auto;
  bottom: calc(100% + 6px);
}

/* Show on parent hover or focus */
.calendar-day--has-events:hover .cal-popover,
.calendar-day--has-events:focus-within .cal-popover,
.calendar-day--has-events.cal-open .cal-popover {
  display: block;
  pointer-events: auto;
}

.cal-popover__header {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--navy);
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.cal-popover__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.cal-popover__link {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  text-decoration: none;
  padding: 0.3rem 0.375rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.cal-popover__link:hover {
  background: var(--navy-pale);
}

.cal-popover__event-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.cal-popover__time {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1;
}

.cal-popover__link .cal-popover__event-text > span:last-child {
  font-size: 0.8rem;
  color: var(--dark);
  font-weight: 500;
  line-height: 1.3;
  white-space: normal;
}

.event-dot { display: none; } /* legacy — replaced by cal-dot */

/* ==========================================================================
   18. EVENT LIST VIEW
   ========================================================================== */

.event-list {
  display: flex;
  flex-direction: column;
}

.event-list-item {
  display: flex;
  gap: 1rem;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.event-list-item:last-child {
  border-bottom: none;
}

.event-list-item__inner {
  display: flex;
  gap: 1rem;
  flex: 1;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

.event-list-item__date {
  background-color: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 56px;
  text-align: center;
}

.event-list-item__day {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.event-list-item__month {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
  margin-top: 0.1rem;
}

.event-list-item__dow {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  opacity: 0.65;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.1rem;
}

.event-list-item__body {
  flex: 1;
  min-width: 0;
}

.event-list-item__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.0rem;
  color: var(--dark);
  margin-bottom: 0.25rem;
  transition: color var(--transition);
  line-height: 1.3;
}

.event-list-item__inner:hover .event-list-item__title {
  color: var(--navy);
}

.event-list-item__time,
.event-list-item__location {
  font-family: 'Inter', sans-serif;
  font-size: 0.795rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.event-list-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.event-list-item__desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.375rem;
  line-height: 1.55;
}

.event-list-item__arrow {
  color: var(--border-dark);
  font-size: 1rem;
  flex-shrink: 0;
  transition: color var(--transition), transform var(--transition);
  align-self: center;
}

.event-list-item__inner:hover .event-list-item__arrow {
  color: var(--navy);
  transform: translateX(3px);
}

/* ==========================================================================
   19. SIDEBAR WIDGETS
   ========================================================================== */

.sidebar-widget {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.375rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget--submit {
  background-color: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.sidebar-widget--submit .sidebar-widget__title {
  color: rgba(255, 255, 255, 0.75);
}

.sidebar-widget__title {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.875rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-widget--submit .sidebar-widget__title {
  border-bottom-color: rgba(255,255,255,0.15);
}

.sidebar-clear-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color var(--transition);
  background: none;
  border: none;
  padding: 0;
}

.sidebar-clear-link:hover {
  color: var(--navy);
}

.category-filter-list {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.category-filter-pill {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.875rem;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition);
  width: 100%;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
}

.category-filter-pill:hover {
  background-color: var(--navy-pale);
  color: var(--navy);
}

.category-filter-pill.active,
.category-filter-pill.pill--active {
  background-color: var(--navy);
  color: var(--white);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ==========================================================================
   20. BUSINESS DIRECTORY
   ========================================================================== */

.biz-search-bar {
  width: 100%;
}

.biz-search-bar__inner {
  display: flex;
  align-items: center;
  background-color: var(--white);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.biz-search-bar__inner:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,43,74,0.1);
}

.biz-search-bar__icon {
  flex-shrink: 0;
  padding: 0 1rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.biz-search-bar__input {
  flex: 1;
  padding: 0.8rem 0.5rem;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  min-width: 0;
}

.biz-search-bar__input::placeholder {
  color: var(--text-muted);
}

.biz-search-bar__btn {
  flex-shrink: 0;
  padding: 0.8rem 1.375rem;
  background-color: var(--navy);
  color: var(--white);
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.855rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.biz-search-bar__btn:hover {
  background-color: var(--navy-mid);
}

.biz-search-bar__clear {
  flex-shrink: 0;
  padding: 0.5rem;
  margin-right: 0.375rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), background-color var(--transition);
}

.biz-search-bar__clear:hover {
  color: var(--dark);
  background-color: var(--border);
}

.business-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.business-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.business-card__image-link {
  display: block;
  text-decoration: none;
  overflow: hidden;
}

.business-card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

.business-card__image-link:hover .business-card__img {
  transform: scale(1.03);
}

.business-card__img-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-mid) 100%);
  background-image: url('https://images.unsplash.com/photo-1528698827591-e19ccd7bc23d?w=600&h=300&fit=crop&auto=format&q=75');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.business-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.3);
}

.business-card__avatar-letter {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.business-card__icon {
  color: rgba(255, 255, 255, 0.45);
  width: 44px;
  height: 44px;
}

.business-card__body {
  padding: 1.375rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.business-card__name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
}

.business-card__name a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.business-card__name a:hover {
  color: var(--navy);
}

.business-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.845rem;
  color: var(--text-muted);
  line-height: 1.58;
  margin-top: 0.125rem;
}

.business-card__address,
.business-card__phone {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.business-card__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.875rem 1.375rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
  background-color: var(--bg);
}

.business-card__link {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  transition: color var(--transition), gap var(--transition);
}

.business-card__link:hover {
  color: var(--navy-mid);
  gap: 0.35rem;
}

.results-count {
  font-family: 'Inter', sans-serif;
  font-size: 0.855rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-muted);
}

.empty-state h3 {
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   21. NEWS CARDS (editorial — most important)
   ========================================================================== */

.news-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.news-card__image-link {
  display: block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.news-card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

.news-card__image-link:hover .news-card__img {
  transform: scale(1.04);
}

.news-card__img-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-mid) 100%);
  background-image: url('https://images.unsplash.com/photo-1504711434969-e33886168f5c?w=600&h=300&fit=crop&auto=format&q=75');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Category badge: absolute, bottom-left of image */
.news-card__image-link .pill {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background-color: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  z-index: 1;
}

/* Source badge: top-right of image (e.g., "MLive", "Fox 17") */
.news-source-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background-color: rgba(15, 28, 48, 0.72);
  color: rgba(255,255,255,0.9);
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1;
}

.news-card__body {
  padding: 1.375rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.765rem;
  color: var(--text-muted);
}

.news-card__date {
  font-family: 'Inter', sans-serif;
  font-size: 0.765rem;
  color: var(--text-muted);
}

.news-card__author {
  font-family: 'Inter', sans-serif;
  font-size: 0.765rem;
  color: var(--text-muted);
}

.news-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.28;
  transition: color var(--transition);
}

.news-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.news-card__title a:hover,
.news-card:hover .news-card__title {
  color: var(--navy);
}

.news-card__excerpt {
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.62;
  flex: 1;
  /* 2-line clamp */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__read-more {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.375rem;
  transition: color var(--transition), gap var(--transition);
}

.news-card__read-more:hover {
  color: var(--navy-mid);
  gap: 0.45rem;
}

/* ==========================================================================
   22. NEIGHBORHOOD CARDS
   ========================================================================== */

.neighborhood-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.neighborhood-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.neighborhood-card__image-link {
  display: block;
  text-decoration: none;
  overflow: hidden;
}

.neighborhood-card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

.neighborhood-card__image-link:hover .neighborhood-card__img {
  transform: scale(1.04);
}

.neighborhood-card__img-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-mid) 100%);
  background-image: url('https://images.unsplash.com/photo-1570129477492-45c003edd2be?w=600&h=300&fit=crop&auto=format&q=75');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.neighborhood-card__placeholder-initial {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.35);
}

.neighborhood-card__body {
  padding: 1.375rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.neighborhood-card__name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
}

.neighborhood-card__name a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.neighborhood-card__name a:hover {
  color: var(--navy);
}

.neighborhood-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.62;
}

.neighborhood-card__highlights {
  list-style: none;
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.neighborhood-card__highlight {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.neighborhood-card__highlight::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 2px;
  background-color: var(--gold);
  border-radius: 1px;
  flex-shrink: 0;
  margin-top: 0.55rem;
}

.neighborhood-card__cta {
  margin-top: auto;
  padding-top: 0.875rem;
}

.neighborhood-card__link {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color var(--transition), gap var(--transition);
}

.neighborhood-card__link:hover {
  color: var(--navy-mid);
  gap: 0.5rem;
}

/* ==========================================================================
   23. PARK CARDS
   ========================================================================== */

.park-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.park-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.park-card__image-wrap {
  overflow: hidden;
  flex-shrink: 0;
}

.park-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

.park-card:hover .park-card__img {
  transform: scale(1.04);
}

.park-card__img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--green) 100%);
  background-image: url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?w=600&h=400&fit=crop&auto=format&q=75');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.park-card__body {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.park-card__name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
}

.park-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.62;
}

.park-card__address,
.park-card__hours {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.park-card__amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.25rem;
}

.park-card__cta {
  margin-top: auto;
  padding-top: 0.75rem;
}

@media (max-width: 600px) {
  .park-card__img,
  .park-card__img-placeholder {
    height: 180px;
  }
}

/* ==========================================================================
   24. PARKS CTA SECTION
   ========================================================================== */

/* Full-bleed navy background for the parks CTA banner on home page */
.section--parks-cta {
  background-color: var(--navy);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.section--parks-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -45deg,
      rgba(255,255,255,0.02) 0px,
      rgba(255,255,255,0.02) 1px,
      transparent 1px,
      transparent 20px
    );
  pointer-events: none;
}

.section--parks-cta .container {
  position: relative;
}

.parks-cta-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.parks-cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.parks-cta-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.parks-cta-subhead {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.78);
  max-width: 50ch;
  line-height: 1.65;
}

.parks-cta-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
  align-self: stretch;
  max-width: 420px;
  margin: 0 auto;
}

.parks-cta-list li {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.parks-cta-list li a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition);
}

.parks-cta-list li a:hover {
  color: var(--white);
}

.parks-cta-list li::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--gold);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%230F1C30' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ==========================================================================
   25. STATS GRID
   ========================================================================== */

/* Section that holds the stats band — navy background with gold text */
.section--stats {
  background-color: var(--navy);
}

.section--stats .section-header--light .section-header__title {
  color: var(--white);
}

/* On navy background, override muted label colors for visibility */
.section--stats .stat-label {
  color: rgba(255, 255, 255, 0.65);
}

.section--stats .stat-icon {
  color: rgba(255, 255, 255, 0.45);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stats-grid--living {
  background-color: var(--navy);
  border-radius: var(--radius-xl);
  padding: 4rem 2.5rem;
}

.stats-grid--living .stat-value {
  color: var(--gold);
}

.stats-grid--living .stat-label {
  color: rgba(255, 255, 255, 0.65);
}

.stats-grid--living .stat-icon {
  color: rgba(255, 255, 255, 0.4);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.375rem;
}

.stat-icon {
  width: 34px;
  height: 34px;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.45;
  max-width: 14ch;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* ==========================================================================
   26. CTA BAND
   ========================================================================== */

.cta-band {
  background-color: var(--navy);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -45deg,
      rgba(255,255,255,0.02) 0px,
      rgba(255,255,255,0.02) 1px,
      transparent 1px,
      transparent 20px
    );
  pointer-events: none;
}

.cta-band__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.cta-band__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 2.8vw, 2.125rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.cta-band__desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
}

.cta-band__links {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex-shrink: 0;
}

.cta-band__quick-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.cta-band__quick-link:hover {
  background-color: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

@media (max-width: 768px) {
  .cta-band {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }

  .cta-band__links {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.cta-links-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.125rem;
  margin-top: 1.5rem;
}

.cta-link-card {
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 1.625rem 1.25rem;
  text-align: center;
  text-decoration: none;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  transition: background-color var(--transition), transform var(--transition),
              box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
}

.cta-link-card:hover {
  background-color: rgba(255, 255, 255, 0.14);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  color: var(--white);
}

.cta-link-card__icon {
  width: 38px;
  height: 38px;
  color: var(--gold);
  flex-shrink: 0;
}

.cta-link-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  line-height: 1.25;
}

.cta-link-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.cta-link-card__arrow {
  font-size: 1rem;
  color: var(--gold);
  margin-top: auto;
  transition: transform var(--transition);
}

.cta-link-card:hover .cta-link-card__arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   27. LIVING HERE PAGE
   ========================================================================== */

.housing-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.25rem;
  align-items: start;
}

.housing-content {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
}

.housing-stats-panel {
  background-color: var(--navy);
  border-radius: var(--radius-lg);
  padding: 1.875rem;
  color: var(--white);
}

.housing-stats-panel__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  letter-spacing: -0.01em;
}

.housing-stats-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.housing-stats-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.housing-stats-list__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.housing-stats-list__item strong {
  color: var(--white);
  font-weight: 600;
}

@media (max-width: 768px) {
  .housing-grid {
    grid-template-columns: 1fr;
  }
}

.location-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.375rem;
}

.location-highlight-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.location-highlight-item__icon {
  width: 40px;
  height: 40px;
  background-color: var(--navy-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
}

.location-highlight-item__content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.location-highlight-item__content h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
}

.location-highlight-item__content p {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.schools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.375rem;
}

.school-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  border-left: 3px solid transparent;
  transition: box-shadow var(--transition), transform var(--transition);
}

.school-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.school-card--highlight {
  border-left-color: var(--gold);
}

.school-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.school-card__icon {
  width: 34px;
  height: 34px;
  color: var(--navy);
  flex-shrink: 0;
}

.school-card__name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
}

.school-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.school-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.school-card__features li {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.school-card__features li::before {
  content: '\2713';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.72rem;
  margin-top: 2px;
}

.rec-programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.rec-program-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 1.625rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.rec-program-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.rec-program-card__icon {
  width: 42px;
  height: 42px;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.rec-program-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
}

.rec-program-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.community-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.375rem;
}

.community-feature {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.25rem;
  background-color: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.community-feature__title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
}

/* ==========================================================================
   28. ARTICLE / PROSE
   ========================================================================== */

.prose {
  max-width: 72ch;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  font-family: 'Playfair Display', Georgia, serif;
  margin-top: 1.75em;
  margin-bottom: 0.6em;
  line-height: 1.2;
  color: var(--dark);
}

.prose h1:first-child,
.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose p {
  margin-bottom: 1.25em;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(26,43,74,0.35);
  transition: color var(--transition), text-decoration-color var(--transition);
}

.prose a:hover {
  color: var(--navy-mid);
  text-decoration-color: var(--navy-mid);
}

.prose ul,
.prose ol {
  margin: 1em 0 1em 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  line-height: 1.65;
}

.prose blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
  margin: 1.75em 0;
  color: var(--text-muted);
  font-style: italic;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1em;
}

.prose img {
  border-radius: var(--radius);
  margin: 1.5em 0;
  width: 100%;
  height: auto;
}

.prose hr {
  margin: 2.5em 0;
  border: none;
  border-top: 2px solid var(--gold);
  opacity: 0.35;
  width: 60px;
}

.prose code {
  background-color: var(--navy-pale);
  color: var(--navy-mid);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.875em;
  font-family: ui-monospace, 'Cascadia Code', monospace;
}

.prose pre {
  background-color: var(--dark);
  color: #f8f8f2;
  padding: 1.375rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* ==========================================================================
   29. PAGINATION
   ========================================================================== */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.375rem;
  padding: 2.5rem 0;
}

.pagination__list {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  list-style: none;
}

.pagination__item {
  display: flex;
}

.pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.625rem;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  border: 1.5px solid var(--border-dark);
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition);
}

.pagination__link:hover {
  border-color: var(--navy);
  color: var(--navy);
  background-color: var(--navy-pale);
}

.pagination__link--current {
  background-color: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  font-weight: 600;
}

.pagination__link--current:hover {
  background-color: var(--navy-mid);
  border-color: var(--navy-mid);
  color: var(--white);
}

.pagination__link--prev,
.pagination__link--next {
  font-size: 0.8rem;
  padding: 0 0.875rem;
}

.pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 0.875rem;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  border: 1.5px solid var(--border-dark);
  background: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition);
}

.pagination__btn:hover {
  border-color: var(--navy);
  color: var(--navy);
  background-color: var(--navy-pale);
}

.pagination__btn--prev,
.pagination__btn--next {
  gap: 0.35rem;
}

.pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.pagination__info {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.625rem;
}

/* ==========================================================================
   30. FOOTER
   ========================================================================== */

.site-footer {
  background-color: var(--navy-dark);
  color: var(--white);
  padding: 5rem 0 0;
  position: relative;
}

/* Gold rule separating footer from bottom bar */
.site-footer::before {
  content: none; /* gold rule is on footer-bottom instead */
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.footer-logo-mark {
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  transition: background-color var(--transition);
}

.footer-logo:hover .footer-logo-mark {
  background-color: rgba(255,255,255,0.18);
}

.footer-logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 0.975rem;
  color: var(--white);
  line-height: 1.2;
}

.footer-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.65;
  max-width: 28ch;
}

.footer-addr {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition);
}

.footer-social a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.footer-heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-nav a {
  display: block;
  padding: 0.325rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color var(--transition), padding-left var(--transition);
}

.footer-nav a:hover {
  color: var(--white);
  padding-left: 0.25rem;
}

.footer-events {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer-event-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-event-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 400;
  display: block;
  margin-top: 0.1rem;
  line-height: 1.38;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-event-title:hover {
  color: var(--white);
}

/* Newsletter signup in footer */
.footer-newsletter {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 2.5rem 0;
  text-align: center;
}
.footer-newsletter__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.375rem;
}
.footer-newsletter__desc {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.footer-newsletter__form {
  display: flex;
  gap: 0;
  max-width: 440px;
  margin: 0 auto 0.625rem;
}
.footer-newsletter__form input[type="email"] {
  flex: 1;
  padding: 0.625rem 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}
.footer-newsletter__form input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }
.footer-newsletter__form input[type="email"]:focus { border-color: rgba(255,255,255,0.45); }
.footer-newsletter__form .btn {
  border-radius: 0 var(--radius) var(--radius) 0;
  white-space: nowrap;
}
.footer-newsletter__legal {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}
.footer-newsletter__legal a { color: rgba(255,255,255,0.5); text-decoration: underline; }
@media (max-width: 500px) {
  .footer-newsletter__form { flex-direction: column; }
  .footer-newsletter__form input[type="email"] { border-right: 1px solid rgba(255,255,255,0.2); border-bottom: none; border-radius: var(--radius) var(--radius) 0 0; }
  .footer-newsletter__form .btn { border-radius: 0 0 var(--radius) var(--radius); }
}

.footer-bottom {
  border-top: 2px solid var(--gold);
  margin-top: 0;
  padding: 1.375rem 0;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  opacity: 1;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.48);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: rgba(255,255,255,0.8);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .site-footer {
    padding: 3.5rem 0 0;
  }
}

/* ==========================================================================
   31. UTILITIES
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 1.5px solid transparent;
  transition: color var(--transition), border-color var(--transition), gap var(--transition);
  letter-spacing: 0.01em;
}

.link-btn:hover {
  color: var(--navy-mid);
  border-bottom-color: var(--gold);
  gap: 0.55rem;
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2.5rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field-wrap {
  margin-bottom: 1.5rem;
}

.field-wrap label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.375rem;
  font-family: 'Inter', sans-serif;
}

.field-wrap .req {
  color: #dc2626;
  margin-left: 2px;
}

.field-wrap input,
.field-wrap select,
.field-wrap textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.field-wrap input:focus,
.field-wrap select:focus,
.field-wrap textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 43, 74, 0.1);
  background: var(--white);
}

.field-wrap textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.6;
}

.field-wrap small {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* (optional) inside a label stays inline beside the label text */
.field-wrap label small {
  display: inline;
  font-size: 0.75rem;
  font-weight: 400;
  margin-top: 0;
}

.field-wrap--error input,
.field-wrap--error select,
.field-wrap--error textarea {
  border-color: #dc2626;
  background: #fff8f8;
}

.field-error {
  font-size: 0.8rem;
  color: #dc2626;
  margin-top: 0.3rem;
  font-weight: 500;
}

.contact-alert {
  background: #fff5f5;
  border: 1.5px solid #fca5a5;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #991b1b;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .contact-wrap        { grid-template-columns: 1fr; }
  .contact-row         { grid-template-columns: 1fr; }
  .contact-form-card   { padding: 1.75rem; }
}

/* ==========================================================================
   32. VISUALLY HIDDEN ALIAS
   ========================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==========================================================================
   33. EVENT DETAIL PAGE
   ========================================================================== */

.event-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.25rem;
  align-items: start;
  padding: 2.5rem 0 4rem;
}

.event-detail {
  min-width: 0;
}

.event-detail-sidebar {
  min-width: 0;
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
}

.event-detail__image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}

.event-detail__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.event-detail__facts {
  display: flex;
  flex-direction: column;
  gap: 0;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.event-detail__fact {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.125rem 1.375rem;
  border-bottom: 1px solid var(--border);
}

.event-detail__fact:last-child {
  border-bottom: none;
}

.event-detail__fact-icon {
  width: 28px;
  height: 28px;
  color: var(--navy);
  flex-shrink: 0;
  margin-top: 2px;
}

.event-detail__fact-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.event-detail__fact-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.event-detail__fact-text strong {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
}

.event-detail__cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.event-detail__cta-note {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.event-detail__description {
  margin-bottom: 2rem;
}

.event-detail__back {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Add-to-calendar widget */
.add-to-cal-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.add-to-cal-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition), gap var(--transition);
}

.add-to-cal-list li:last-child .add-to-cal-link {
  border-bottom: none;
}

.add-to-cal-link:hover {
  color: var(--navy-mid);
  gap: 0.875rem;
}

/* Share links */
.share-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.share-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.share-links li:last-child .share-link {
  border-bottom: none;
}

.share-link--facebook { color: #1877F2; }
.share-link--facebook:hover { color: #0d5fc9; }
.share-link--twitter { color: var(--dark); }
.share-link--twitter:hover { color: var(--navy); }
.share-link--nextdoor { color: #00b551; }
.share-link--nextdoor:hover { color: #008c3e; }

@media (max-width: 900px) {
  .event-detail-layout {
    grid-template-columns: 1fr;
  }

  .event-detail-sidebar {
    position: static;
    order: -1;
  }
}

/* ==========================================================================
   34. BUSINESS DETAIL PAGE
   ========================================================================== */

.business-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.25rem;
  align-items: start;
  padding: 2.5rem 0 4rem;
}

.business-detail {
  min-width: 0;
}

.business-detail-sidebar {
  min-width: 0;
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
}

.business-detail__image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.business-detail__image {
  width: 100%;
  height: auto;
  max-height: 440px;
  display: block;
  object-fit: cover;
}

.business-detail__description {
  margin-bottom: 2rem;
}

.business-detail__hours {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.business-detail__section-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Hours table */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
}

.hours-table thead th {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.375rem 0.625rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.hours-table__row {
  border-bottom: 1px solid var(--border);
}

.hours-table__row:last-child {
  border-bottom: none;
}

.hours-table__row--today {
  background-color: var(--navy-pale);
}

.hours-table__day,
.hours-table__time {
  padding: 0.5rem 0.625rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--text);
}

.hours-table__day {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hours-table__time--closed {
  color: var(--text-muted);
  font-style: italic;
}

.hours-table__today-badge {
  display: inline-block;
  background-color: var(--navy);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
}

/* Contact list in sidebar */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1rem;
}

.contact-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-list__item:first-child {
  padding-top: 0;
}

.contact-list__item:last-child {
  border-bottom: none;
}

.contact-list__icon {
  width: 22px;
  height: 22px;
  color: var(--navy);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-list__text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--text);
}

.contact-list__text strong {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-list__text a {
  color: var(--navy);
  text-decoration: none;
  word-break: break-all;
}

.contact-list__text a:hover {
  color: var(--navy-mid);
  text-decoration: underline;
}

.contact-list__text address {
  font-style: normal;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .business-detail-layout {
    grid-template-columns: 1fr;
  }

  .business-detail-sidebar {
    position: static;
  }
}

/* ==========================================================================
   35. NEWS ARTICLE PAGE
   ========================================================================== */

.article-layout {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.article {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.article-header {
  padding: 2rem 2.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.article-header__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.article-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.article-meta__author,
.article-meta__date {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.article-image {
  position: relative;
}

.article-image__img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.article-image__caption {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.625rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-style: italic;
}

.article-body {
  padding: 2rem 2.5rem;
  max-width: none;
}

.article-footer {
  padding: 1.5rem 2.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.article-tags__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.article-share {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-wrap: wrap;
}

.article-share__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.article-share .share-link {
  border-bottom: none;
  padding: 0;
  font-size: 0.82rem;
}

@media (max-width: 768px) {
  .article-header,
  .article-body,
  .article-footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* ==========================================================================
   36. NEIGHBORHOOD DETAIL PAGE
   ========================================================================== */

/* Full-bleed hero for neighborhood show page */
.neighborhood-hero {
  min-height: 55vh;
  background-color: var(--navy-dark);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.neighborhood-hero__overlay {
  width: 100%;
  background: linear-gradient(to top, rgba(15,28,48,0.82) 0%, rgba(15,28,48,0.25) 100%);
  padding: 4rem 0 3rem;
}

.neighborhood-hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 0.75rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.neighborhood-hero__tagline {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 0.625rem;
  line-height: 1.55;
}

.neighborhood-detail-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.25rem;
  align-items: start;
  padding: 2.5rem 0 4rem;
}

.neighborhood-detail {
  min-width: 0;
}

.neighborhood-detail-sidebar {
  min-width: 0;
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
}

.neighborhood-detail__section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.neighborhood-detail__section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.neighborhood-detail__section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
}

.neighborhood-detail__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Highlights list */
.highlights-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.highlights-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.55;
}

.highlights-list__icon {
  width: 22px;
  height: 22px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Quick facts grid */
.quick-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.quick-facts-grid__item {
  padding: 1rem 1.375rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.quick-facts-grid__item:last-child {
  border-bottom: none;
}

.quick-facts-grid__item dt {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.quick-facts-grid__item dd {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
}

/* Sidebar nav list */
.sidebar-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-nav-list__item {
  border-bottom: 1px solid var(--border);
}

.sidebar-nav-list__item:last-child {
  border-bottom: none;
}

.sidebar-nav-list__link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.6rem 0.375rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition), padding-left var(--transition);
}

.sidebar-nav-list__link:hover {
  color: var(--navy);
  padding-left: 0.5rem;
}

.sidebar-nav-list__link--current {
  color: var(--navy);
  font-weight: 600;
}

.sidebar-widget__text {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .neighborhood-detail-layout {
    grid-template-columns: 1fr;
  }

  .neighborhood-detail-sidebar {
    position: static;
    order: -1;
  }
}

/* ==========================================================================
   37. SEARCH PAGE
   ========================================================================== */

.search-form {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.search-form__inner {
  display: flex;
  align-items: center;
  background-color: var(--white);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-form__inner:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,43,74,0.1);
}

.search-form__input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text);
  min-width: 0;
}

.search-form__input::placeholder {
  color: var(--text-muted);
}

.search-form__btn {
  flex-shrink: 0;
  border-radius: 0;
  padding: 0.875rem 1.375rem;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.search-results__section {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.search-results__heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.375rem;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
}

.search-results__count {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: auto;
}

.search-results__list {
  display: flex;
  flex-direction: column;
}

.search-result-item {
  padding: 1.125rem 1.375rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: background-color var(--transition);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: var(--navy-pale);
}

.search-result-item__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
  line-height: 1.3;
}

.search-result-item__title:hover {
  color: var(--navy-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.search-result-item__excerpt {
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.58;
  margin: 0;
}

.search-result-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.search-result-item__date,
.search-result-item__location {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.search-result-item__date::before,
.search-result-item__location::before {
  content: '\00B7';
  margin-right: 0.3rem;
}

.search-results__more {
  display: block;
  padding: 0.875rem 1.375rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-top: 1px solid var(--border);
  background-color: var(--bg);
  transition: background-color var(--transition), color var(--transition);
}

.search-results__more:hover {
  background-color: var(--navy-pale);
  color: var(--navy-mid);
}

/* ==========================================================================
   38. ABOUT PAGE COMPONENTS
   ========================================================================== */

.prose--wide {
  max-width: 80ch;
}

.mission-statement {
  border-left: 4px solid var(--gold);
  padding: 1.25rem 1.75rem;
  margin: 0 0 2rem;
  background-color: var(--gold-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.mission-statement p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--dark);
  line-height: 1.65;
  margin: 0;
}

.feature-block {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.feature-block:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.feature-block__icon {
  width: 42px;
  height: 42px;
  background-color: var(--navy-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
}

.feature-block__content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-block__content h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  margin: 0;
}

.feature-block__content p {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.62;
  margin: 0;
}

.cta-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 3px solid var(--navy);
  transition: box-shadow var(--transition), transform var(--transition);
}

.cta-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.cta-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
}

.cta-card__body {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.62;
  flex: 1;
}

/* ==========================================================================
   39. SECTION SPACING OVERRIDES (reduce padding for filter/search sections)
   ========================================================================== */

.section--biz-search,
.section--biz-filters,
.section--news-filters {
  padding: 2rem 0;
}

.section--biz-grid,
.section--biz-map,
.section--parks-grid,
.section--parks-map,
.section--parks-intro,
.section--neighborhoods-intro,
.section--neighborhoods-grid,
.section--living-intro,
.section--schools,
.section--housing,
.section--location,
.section--community,
.section--living-cta,
.section--rec-programs {
  padding: 4rem 0;
}

@media (max-width: 600px) {
  .section--biz-search,
  .section--biz-filters,
  .section--news-filters {
    padding: 1.5rem 0;
  }
}

/* =================================================================
   LIVING HERE PAGE — JUMP NAV + SCROLL HINT
   ================================================================= */

/* Sticky jump navigation */
.living-jumpnav {
  position: sticky;
  top: var(--nav-height);
  z-index: 90;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.living-jumpnav .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: .75rem;
  padding-bottom: .75rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.living-jumpnav .container::-webkit-scrollbar { display: none; }

.living-jumpnav__label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.living-jumpnav__links {
  display: flex;
  gap: .25rem;
  flex-wrap: nowrap;
}

.living-jumpnav__links a {
  font-size: .8rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  padding: .3rem .7rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  border: 1px solid transparent;
}
.living-jumpnav__links a:hover {
  background: var(--navy-pale);
  color: var(--navy);
  border-color: var(--border);
}

/* Scroll hint between stats band and first content section */
.living-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .375rem;
  padding: 1.25rem 0 .75rem;
  background: var(--bg);
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.living-scroll-hint svg {
  animation: bounce-down 1.6s ease-in-out infinite;
  color: var(--navy);
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); opacity: .6; }
  50%       { transform: translateY(5px); opacity: 1; }
}

/* Census verified / estimate badges */
.census-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .75rem;
  font-weight: 600;
  color: #166534;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 999px;
  padding: .25rem .875rem;
  margin-bottom: 1.25rem;
}

.census-estimate-badge {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .75rem;
  font-weight: 600;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 999px;
  padding: .25rem .875rem;
  margin-bottom: 1.25rem;
}
.census-estimate-badge a { color: inherit; text-decoration: underline; }

/* Commute bar chart */
.commute-chart-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow);
  max-width: 720px;
}

.commute-bar-stack {
  display: flex;
  height: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  gap: 2px;
}

.commute-legend {
  display: flex;
  flex-direction: column;
  gap: .875rem;
}

.commute-legend-row {
  display: grid;
  grid-template-columns: 12px 160px 1fr 48px;
  align-items: center;
  gap: .75rem;
}

.commute-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.commute-legend-label {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.commute-legend-bar-track {
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.commute-legend-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 1s ease;
}

.commute-legend-pct {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: right;
}

@media (max-width: 600px) {
  .commute-legend-row { grid-template-columns: 12px 1fr 48px; }
  .commute-legend-bar-track { display: none; }
}

/* Smooth scroll for in-page anchors */
html { scroll-behavior: smooth; }

/* Offset anchors so sticky nav doesn't cover the heading */
[id] {
  scroll-margin-top: calc(var(--nav-height) + 52px);
}

/* ==========================================================================
   VISUAL ENHANCEMENTS — appended
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DISTINCT PHOTO BACKGROUNDS — PAGE HEADER VARIANTS
   -------------------------------------------------------------------------- */

/* Raise the min-height and add fixed-attachment parallax on desktop */
.page-header {
  min-height: 220px;
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .page-header {
    background-attachment: scroll;
  }
}

/* Events page */
.page-header--events {
  background:
    linear-gradient(to right, rgba(15,28,48,0.88) 0%, rgba(15,28,48,0.70) 100%),
    url('https://images.unsplash.com/photo-1533900298318-6b8da08a523e?w=1600&h=500&fit=crop&auto=format&q=75');
  background-size: cover;
  background-position: center 40%;
}

/* Businesses page */
.page-header--businesses,
.page-header--business {
  background:
    linear-gradient(to right, rgba(15,28,48,0.88) 0%, rgba(15,28,48,0.70) 100%),
    url('https://images.unsplash.com/photo-1557418223-39e7931d52af?w=1600&h=500&fit=crop&auto=format&q=75');
  background-size: cover;
  background-position: center;
}

/* News page */
.page-header--news {
  background:
    linear-gradient(to right, rgba(15,28,48,0.88) 0%, rgba(15,28,48,0.70) 100%),
    url('https://images.unsplash.com/photo-1504711434969-e33886168f5c?w=1600&h=500&fit=crop&auto=format&q=75');
  background-size: cover;
  background-position: center;
}

/* Neighborhoods page */
.page-header--neighborhoods {
  background:
    linear-gradient(to right, rgba(15,28,48,0.88) 0%, rgba(15,28,48,0.70) 100%),
    url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1600&h=500&fit=crop&auto=format&q=75');
  background-size: cover;
  background-position: center;
}

/* Parks page */
.page-header--parks {
  background:
    linear-gradient(to right, rgba(15,28,48,0.88) 0%, rgba(15,28,48,0.70) 100%),
    url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?w=1600&h=500&fit=crop&auto=format&q=75');
  background-size: cover;
  background-position: center;
}

/* Living Here page */
.page-header--living {
  background:
    linear-gradient(to right, rgba(15,28,48,0.88) 0%, rgba(15,28,48,0.70) 100%),
    url('https://images.unsplash.com/photo-1570129477492-45c003edd2be?w=1600&h=500&fit=crop&auto=format&q=75');
  background-size: cover;
  background-position: center;
}

/* --------------------------------------------------------------------------
   2. WAVE SVG DIVIDER UTILITY CLASS
   -------------------------------------------------------------------------- */

.wave-divider {
  line-height: 0;
  overflow: hidden;
  position: relative;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 60px;
}

.wave-divider--navy-to-white svg { fill: var(--white); }
.wave-divider--white-to-navy svg { fill: var(--navy); }
.wave-divider--navy-to-alt   svg { fill: var(--bg-alt, #F0F4F8); }
.wave-divider--alt-to-white  svg { fill: var(--white); }

/* --------------------------------------------------------------------------
   3. SUBTLE DOT-GRID PATTERN ON ALTERNATING SECTIONS
   -------------------------------------------------------------------------- */

.section--alt,
.section[style*="background:var(--bg-alt)"],
.section[style*="background-color:var(--bg-alt)"] {
  background-image: radial-gradient(circle, rgba(26,43,74,0.07) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* Keep the living jump-nav clean — no dot grid on the nav strip */
.living-jumpnav {
  background-image: none;
}

/* --------------------------------------------------------------------------
   4. RADIAL GLOW ON STAT CARDS
   -------------------------------------------------------------------------- */

.section--stats .stat-item {
  position: relative;
  overflow: hidden;
}

.section--stats .stat-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(212,160,23,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   5. CARD SCROLL-REVEAL ANIMATION
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay for grid children */
.grid-3 .reveal:nth-child(2) { transition-delay: 0.1s; }
.grid-3 .reveal:nth-child(3) { transition-delay: 0.2s; }
.grid-2 .reveal:nth-child(2) { transition-delay: 0.1s; }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   6. EVENT CARD CATEGORY COLOR ACCENT (4px TOP BORDER)
   -------------------------------------------------------------------------- */

.event-card {
  border-top: 4px solid var(--border);
}

.event-card:has(.pill--event)           { border-top-color: var(--navy); }
.event-card:has(.pill--community)       { border-top-color: var(--green); }
.event-card:has([class*="pill--arts"])  { border-top-color: #7C3AED; }
.event-card:has([class*="pill--sport"]) { border-top-color: var(--gold-dark); }
.event-card:has([class*="pill--season"]){ border-top-color: #DC2626; }

/* --------------------------------------------------------------------------
   7. DECORATIVE GOLD RULE WITH CENTERED ORNAMENT
   -------------------------------------------------------------------------- */

.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 auto 3rem;
  max-width: 480px;
  text-align: center;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.section-divider span {
  color: var(--gold);
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   8. NEIGHBORHOOD CARD IMAGE IMPROVEMENTS
   -------------------------------------------------------------------------- */

.neighborhood-card__img {
  transition: transform 0.5s ease;
}

.neighborhood-card:hover .neighborhood-card__img {
  transform: scale(1.05);
}

.neighborhood-card__img-placeholder {
  transition: filter 0.4s ease;
}

.neighborhood-card:hover .neighborhood-card__img-placeholder {
  filter: brightness(1.1);
}

/* --------------------------------------------------------------------------
   9. HERO GRAIN TEXTURE OVERLAY
   -------------------------------------------------------------------------- */

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  z-index: 2;
}

.hero-inner {
  z-index: 4;
}

/* --------------------------------------------------------------------------
   10. PILL CATEGORY-SPECIFIC COLORS
   -------------------------------------------------------------------------- */

.pill--arts,
.pill--arts-entertainment,
[class*="pill"][class*="arts"]   { background: #EDE9FE; color: #5B21B6; }
[class*="pill"][class*="sport"]  { background: #FEF3C7; color: #92400E; }
[class*="pill"][class*="season"] { background: #FEE2E2; color: #991B1B; }
[class*="pill"][class*="announ"] { background: #DBEAFE; color: #1E40AF; }
.pill--community                 { background: var(--green-pale); color: var(--green); }

/* ==========================================================================
   ACCESSIBILITY ENHANCEMENTS
   ========================================================================== */

/* ── Skip to main content ───────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--navy);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  padding: .625rem 1.25rem;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--gold);
  outline-offset: 0;
}

/* ── Focus styles — global and per-component ────────────────────────────── */

/* Stronger ring on nav links for keyboard users */
.nav-links a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: var(--radius);
}

/* Buttons */
.btn:focus-visible,
.admin-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Calendar day links — make focus ring clearly visible */
.calendar-day--has-events:focus-visible,
a.calendar-day--has-events:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: -3px;
  z-index: 10;
}

/* Cards / article links */
.event-card__link:focus-visible,
.news-card__image-link:focus-visible,
.business-card__link:focus-visible,
.neighborhood-card__link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: var(--radius-lg);
}

/* Remove outline only when mouse is being used (handled via :focus-visible) */
:focus:not(:focus-visible) { outline: none; }

/* ── View toggle — add group role label visibility ──────────────────────── */
.view-toggle-bar {
  /* The [role="group"] label (.sr-only) sits before these buttons */
  position: relative;
}

/* ── Flash messages — screen reader announcement ────────────────────────── */
/* Role and aria-live are set in HTML; these styles reinforce visibility */
.flash[role="alert"] {
  /* Already styled; the role alone triggers announcement */
}

/* ── Table accessibility ────────────────────────────────────────────────── */
/* Ensure th scope is visually consistent — enforcement is via HTML */
.admin-table th[scope="col"] { text-align: left; }
.admin-table th[scope="row"] { font-weight: 600; }

/* ── Form hints — readable contrast ────────────────────────────────────── */
.field-wrap small,
.admin-form-group small,
.form-help {
  color: #5a6475; /* slightly darker than --text-muted for WCAG AA on white */
}

/* ── High contrast mode support ─────────────────────────────────────────── */
@media (forced-colors: active) {
  .btn, .admin-btn, .nav-links a, .pill {
    border: 1px solid ButtonText;
  }
  .cal-dot { border: 1px solid CanvasText; }
  :focus-visible { outline: 3px solid Highlight; }
}
