/* ============================================================
   KAUFMAN COUNTY LIVING — Main Stylesheet
   Style: Modern clean + Texas rustic + Newspaper
   ============================================================ */

/* ---- CSS Custom Properties -------------------------------- */
:root {
  --color-navy:       #1a3a5c;
  --color-navy-dark:  #0f2338;
  --color-navy-light: #2a5080;
  --color-orange:     #c85a1a;
  --color-orange-light: #e07b3a;
  --color-orange-dark:#9e4212;
  --color-gold:       #d4943a;
  --color-white:      #ffffff;
  --color-off-white:  #f8f5f0;
  --color-light-gray: #f0ece6;
  --color-mid-gray:   #c8bfb3;
  --color-text:       #2d2318;
  --color-text-light: #6b5a4a;
  --color-text-muted: #8a7a6a;
  --color-border:     #ddd5cb;
  --color-success:    #2a7a3a;
  --color-warning:    #b8860b;
  --color-error:      #9a2020;

  --font-headline: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:     'Source Sans 3', system-ui, -apple-system, sans-serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-sm:  0 1px 3px rgba(26,58,92,0.10);
  --shadow-md:  0 4px 12px rgba(26,58,92,0.12);
  --shadow-lg:  0 8px 24px rgba(26,58,92,0.16);
  --shadow-xl:  0 16px 40px rgba(26,58,92,0.20);

  --container-max: 1200px;
  --container-pad: 1.25rem;
  --nav-height:    64px;
}

/* ---- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--color-navy); text-decoration: underline; transition: color 0.2s; }
a:hover { color: var(--color-orange); }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.3rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
details > summary { cursor: pointer; }

/* ---- Layout ----------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.content-sidebar-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}
.content-main { min-width: 0; }
.content-sidebar { min-width: 0; }

.col-2-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.page-container { padding-top: 2.5rem; padding-bottom: 3rem; }

/* ---- Typography ------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; }

.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.text-white { color: var(--color-white) !important; }
.text-white-muted { color: rgba(255,255,255,0.82) !important; }
.text-center { text-align: center; }

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.375rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}
.btn--primary:hover {
  background: var(--color-navy-dark);
  border-color: var(--color-navy-dark);
  color: var(--color-white);
}
.btn--secondary {
  background: var(--color-off-white);
  color: var(--color-navy);
  border-color: var(--color-border);
}
.btn--secondary:hover {
  background: var(--color-light-gray);
  color: var(--color-navy);
}
.btn--outline {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}
.btn--outline:hover {
  background: var(--color-navy);
  color: var(--color-white);
}
.btn--orange {
  background: var(--color-orange);
  color: var(--color-white);
  border-color: var(--color-orange);
}
.btn--orange:hover {
  background: var(--color-orange-dark);
  border-color: var(--color-orange-dark);
  color: var(--color-white);
}
.btn--lg { padding: 0.875rem 2rem; font-size: 1.05rem; }
.btn--sm { padding: 0.375rem 0.875rem; font-size: 0.875rem; }
.btn--full { width: 100%; margin-bottom: 0.5rem; }

/* ---- Header / Navigation ---------------------------------- */
.header-topbar {
  background: var(--color-navy-dark);
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  padding: 0.35rem 0;
}
.header-topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.header-topbar a { color: var(--color-gold); text-decoration: none; }
.header-topbar a:hover { color: var(--color-white); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(26,58,92,0.12);
}

.navbar { border-top: 3px solid var(--color-orange); }
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--nav-height);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar__logo-icon { color: var(--color-orange); }
.navbar__logo-name {
  display: block;
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.1;
}
.navbar__logo-tagline {
  display: block;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1px;
}
.navbar__logo:hover .navbar__logo-name { color: var(--color-orange); }

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.navbar__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: all 0.2s;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-menu__link {
  display: block;
  padding: 0.5rem 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  white-space: nowrap;
}
.nav-menu__link:hover { color: var(--color-orange); background: var(--color-off-white); }
.nav-menu__link--active { color: var(--color-orange) !important; }
.nav-menu__link--highlight {
  background: var(--color-navy);
  color: var(--color-white) !important;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
}
.nav-menu__link--highlight:hover { background: var(--color-orange); color: var(--color-white) !important; }

/* ---- Hero ------------------------------------------------- */
.hero {
  position: relative;
  /* Fallback gradient shown until image loads */
  background-color: var(--color-navy-dark);
  background-image: url('/assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  padding: 5rem 0 4rem;
  overflow: hidden;
}
/* Dark overlay: preserves readability over any photo */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 25, 44, 0.82) 0%,
    rgba(15, 35, 60, 0.72) 50%,
    rgba(10, 25, 44, 0.55) 100%
  );
  z-index: 1;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, rgba(10,25,44,0.45) 0%, transparent 70%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.hero__badge {
  display: inline-block;
  background: rgba(200,90,26,0.9);
  color: white;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
}
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 1rem;
  line-height: 1.15;
}
.hero__title--accent { color: var(--color-gold); }
.hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 2rem;
  max-width: 580px;
  line-height: 1.6;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- Stats Bar -------------------------------------------- */
.stats-bar {
  background: var(--color-orange);
  padding: 1rem 0;
}
.stats-bar__grid {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  flex-wrap: wrap;
}
.stats-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: white;
}
.stats-bar__number {
  font-family: var(--font-headline);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}
.stats-bar__label {
  font-size: 0.75rem;
  opacity: 0.88;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Page Heroes ------------------------------------------ */
.page-hero {
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 100%);
  padding: 2.5rem 0 2rem;
  border-bottom: 3px solid var(--color-orange);
}
.page-hero--news { background: linear-gradient(135deg, #1a2a3a 0%, #1a3a5c 100%); }
.page-hero--neighborhoods { background: linear-gradient(135deg, #1a3a2a 0%, #1a3a5c 100%); }
.page-hero--schools { background: linear-gradient(135deg, #2a1a3a 0%, #1a3a5c 100%); }
.page-hero--real-estate { background: linear-gradient(135deg, #3a2a1a 0%, #1a3a5c 100%); }
.page-hero--cost { background: linear-gradient(135deg, #1a3a3a 0%, #1a3a5c 100%); }
.page-hero--things-to-do { background: linear-gradient(135deg, #2a3a1a 0%, #1a3a5c 100%); }
.page-hero--commute { background: linear-gradient(135deg, #1a2a3a 0%, #2a3a5c 100%); }
.page-hero--faq { background: linear-gradient(135deg, #1a3a5c 0%, #0f2338 100%); }

.breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.75rem;
}
.breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-gold); }
.page-title {
  color: var(--color-white);
  margin-bottom: 0.5rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.page-subtitle { color: rgba(255,255,255,0.82); font-size: 1.05rem; }

/* ---- Sections --------------------------------------------- */
.section { padding: 3.5rem 0; }
.section--cta { padding: 3rem 0; }
.bg-light { background: var(--color-off-white); }
.bg-navy { background: var(--color-navy); }
.bg-orange { background: var(--color-orange); }
.bg-light-pad { background: var(--color-off-white); padding: 2rem; border-radius: var(--radius-md); margin: 1.5rem 0; }

.section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.section__header--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section__title { margin-bottom: 0.25rem; }
.section__subtitle { color: var(--color-text-light); font-size: 1rem; }
.section__link {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--color-orange);
  text-decoration: none;
}
.section__link:hover { text-decoration: underline; color: var(--color-orange-dark); }
.section__footer { margin-top: 2rem; text-align: center; }

/* ---- News Cards ------------------------------------------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.news-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: relative;
  border-top: 3px solid var(--color-border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.news-card--category-schools { border-top-color: #2a7a3a; }
.news-card--category-real-estate { border-top-color: var(--color-orange); }
.news-card--category-public-safety { border-top-color: #9a2020; }
.news-card--category-infrastructure { border-top-color: var(--color-navy); }
.news-card--category-business { border-top-color: var(--color-gold); }
.news-card--category-events { border-top-color: #7a2a7a; }

.news-card__category-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}
.news-card__title {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.news-card__title a { color: var(--color-navy); text-decoration: none; }
.news-card__title a:hover { color: var(--color-orange); }
.news-card__summary { font-size: 0.875rem; color: var(--color-text-light); margin-bottom: 0.75rem; }
.news-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

/* News list (news page) */
.news-meta-bar {
  margin-top: 0.75rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.news-meta-bar__item { color: rgba(255,255,255,0.75); font-size: 0.85rem; }

.news-feature {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-orange);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.news-feature__category-tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--color-orange);
  margin-bottom: 0.5rem;
}
.news-feature__title {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}
.news-feature__title a { color: var(--color-navy); text-decoration: none; }
.news-feature__title a:hover { color: var(--color-orange); }
.news-feature__summary { color: var(--color-text-light); margin-bottom: 1rem; }
.news-feature__meta {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
  align-items: center;
}
.news-readmore { color: var(--color-orange); font-weight: 600; text-decoration: none; }
.news-readmore:hover { text-decoration: underline; }

.news-list { display: flex; flex-direction: column; gap: 0; }
.news-list-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}
.news-list-item__content { flex: 1; min-width: 0; }
.news-list-item__category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-orange);
  margin-bottom: 0.25rem;
}
.news-list-item__title {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.news-list-item__title a { color: var(--color-navy); text-decoration: none; }
.news-list-item__title a:hover { color: var(--color-orange); }
.news-list-item__summary { font-size: 0.85rem; color: var(--color-text-light); margin-bottom: 0.35rem; }
.news-list-item__meta { font-size: 0.75rem; color: var(--color-text-muted); display: flex; gap: 0.75rem; }
.news-list-item__action { flex-shrink: 0; padding-top: 0.25rem; }

.category-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-border);
}
.category-tab {
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-white);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-body);
}
.category-tab:hover, .category-tab.active {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: white;
}

/* ---- Neighborhood Cards ----------------------------------- */
.neighborhood-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.neighborhood-card {
  display: block;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.neighborhood-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-orange);
}
.neighborhood-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); color: var(--color-text); }
.neighborhood-card__vibe-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}
.neighborhood-card__name {
  font-family: var(--font-headline);
  font-size: 1.3rem;
  color: var(--color-navy);
  margin-bottom: 0.25rem;
}
.neighborhood-card__price {
  font-size: 0.9rem;
  color: var(--color-orange);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.neighborhood-card__details {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.neighborhood-card__highlights {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}
.neighborhood-card__highlights li {
  font-size: 0.82rem;
  color: var(--color-text-light);
  padding: 0.2rem 0;
  border-bottom: 1px dashed var(--color-border);
  margin-bottom: 0;
}
.neighborhood-card__highlights li::before { content: '→ '; color: var(--color-orange); }
.neighborhood-card__cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-orange);
}

/* Neighborhood profiles (full page) */
.neighborhood-profile {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 2.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.neighborhood-profile__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  background: var(--color-navy);
  color: white;
  padding: 1.75rem 2rem;
}
.neighborhood-profile__vibe {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  margin-bottom: 0.4rem;
}
.neighborhood-profile__name {
  font-size: 2rem;
  color: white;
  margin-bottom: 0.25rem;
}
.neighborhood-profile__tagline { color: rgba(255,255,255,0.8); font-size: 1rem; }
.price-badge {
  text-align: right;
  flex-shrink: 0;
}
.price-badge__range {
  display: block;
  font-family: var(--font-headline);
  font-size: 1.3rem;
  color: var(--color-gold);
  font-weight: 700;
}
.price-badge__label { display: block; font-size: 0.75rem; color: rgba(255,255,255,0.65); }
.neighborhood-profile__body {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 0;
}
.neighborhood-profile__main { padding: 2rem; border-right: 1px solid var(--color-border); }
.neighborhood-profile__stats {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--color-off-white);
}
.stat-card { }
.stat-card__label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); }
.stat-card__value { font-weight: 700; font-size: 1rem; color: var(--color-navy); }
.stat-card__value--small { font-size: 0.875rem; }
.stat-card--wide { }

/* ---- Why Grid --------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.why-card {
  padding: 1.75rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.why-card__icon { font-size: 2rem; margin-bottom: 0.75rem; }
.why-card__title {
  font-size: 1.15rem;
  font-family: var(--font-headline);
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}
.why-card__text { font-size: 0.9rem; color: var(--color-text-light); line-height: 1.6; }

/* ---- Activity / Things to do ------------------------------ */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.activity-card {
  padding: 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  text-align: center;
}
.activity-card__icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.activity-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.activity-card p { font-size: 0.875rem; color: var(--color-text-light); }

.activity-category-nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1rem 0;
  border-bottom: 2px solid var(--color-border);
}
.activity-cat-btn {
  padding: 0.5rem 1rem;
  background: var(--color-off-white);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-navy);
  transition: all 0.15s;
}
.activity-cat-btn:hover { background: var(--color-navy); color: white; border-color: var(--color-navy); }

.activity-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.activity-detail-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.activity-detail-card__header { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.75rem; }
.activity-detail-card h3 { font-size: 1.1rem; margin-bottom: 0; }
.activity-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  background: var(--color-light-gray);
  color: var(--color-text-muted);
  white-space: nowrap;
}
.activity-tag--top { background: var(--color-orange); color: white; }
.activity-details-list {
  list-style: none;
  padding: 0;
  margin-top: 0.75rem;
}
.activity-details-list li { font-size: 0.85rem; color: var(--color-text-light); padding: 0.15rem 0; margin-bottom: 0; }

/* ---- Tables ----------------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.comparison-table th {
  background: var(--color-navy);
  color: white;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.comparison-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.comparison-table tr:nth-child(even) td { background: var(--color-off-white); }
.comparison-table tr:hover td { background: #ede8e0; }
.comparison-table--dark th { background: var(--color-navy-dark); }
.comparison-table .highlight, .col-highlight { color: var(--color-orange); font-weight: 700; }
.comparison-table .col-good { color: var(--color-success); font-weight: 600; }
.comparison-table .col-warn { color: var(--color-warning); font-weight: 600; }
.comparison-table .col-bad { color: var(--color-error); font-weight: 600; }
.comparison-table .col-neutral { color: var(--color-text); }
.source-note { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 0.5rem; }
.table-link { color: var(--color-orange); font-weight: 600; text-decoration: none; }
.table-link:hover { text-decoration: underline; }
.year-tag {
  font-size: 0.75rem;
  background: var(--color-light-gray);
  color: var(--color-text-muted);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  vertical-align: middle;
}

/* ---- Callouts & Notices ----------------------------------- */
.callout {
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid transparent;
  font-size: 0.95rem;
}
.callout--highlight {
  background: #fff8f0;
  border-left-color: var(--color-orange);
}
.callout--tip { background: #f0f8ff; border-left-color: var(--color-navy); }
.callout--warning { background: #fffbf0; border-left-color: var(--color-gold); }
.notice {
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}
.notice--info { background: #f0f8ff; border: 1px solid #bee3f8; }
.notice--important { background: #fff8f0; border: 1px solid #fcd5a8; }

/* ---- FAQ -------------------------------------------------- */
.faq-section { margin-bottom: 2.5rem; }
.faq-section__title {
  font-family: var(--font-headline);
  font-size: 1.3rem;
  color: var(--color-navy);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-orange);
  margin-bottom: 1rem;
}
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-item--open { border-color: var(--color-orange); }
.faq-item__question {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-navy);
  background: var(--color-white);
  transition: background 0.15s;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item__question::-webkit-details-marker { display: none; }
.faq-item__question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--color-orange);
  flex-shrink: 0;
  transition: transform 0.2s;
}
details[open] .faq-item__question::after { transform: rotate(45deg); }
.faq-item__question:hover { background: var(--color-off-white); cursor: pointer; }
.faq-item__answer {
  padding: 1rem 1.25rem 1.25rem;
  background: var(--color-off-white);
  border-top: 1px solid var(--color-border);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-item__answer ul { padding-left: 1.5rem; margin: 0.5rem 0; }
.faq-item__answer li { margin-bottom: 0.4rem; }
.faq-preview .faq-item { background: white; }

/* ---- Sidebar widgets -------------------------------------- */
.sidebar-widget {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget--cta { background: var(--color-off-white); }
.sidebar-widget__title {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-orange);
}
.sidebar-widget__text { font-size: 0.875rem; color: var(--color-text-light); margin-bottom: 0.75rem; }
.sidebar-list, .sidebar-nav-list, .source-list, .category-link-list {
  list-style: none;
  padding: 0;
}
.sidebar-nav-list li, .source-list li, .category-link-list li {
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
}
.sidebar-nav-list a, .source-list a, .category-link-list a {
  display: block;
  padding: 0.45rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-navy);
}
.sidebar-nav-list a:hover, .source-list a:hover, .category-link-list a:hover { color: var(--color-orange); }
.sidebar-list li { font-size: 0.875rem; padding: 0.3rem 0; border-bottom: 1px dashed var(--color-border); }

/* ---- School / District cards ------------------------------ */
.district-rating-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.district-rating-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.district-rating-card__score {
  min-width: 60px;
  text-align: center;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--color-light-gray);
}
.score-number { display: block; font-size: 1.8rem; font-weight: 800; font-family: var(--font-headline); line-height: 1; }
.score-out-of { font-size: 0.7rem; color: var(--color-text-muted); }
.district-rating-card__info h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.district-rating-card__info p { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 0.5rem; }
.rating-color--10 .score-number, .rating-color--9 .score-number { color: var(--color-success); }
.rating-color--8 .score-number, .rating-color--7 .score-number { color: #2a6a4a; }
.rating-color--6 .score-number { color: var(--color-gold); }
.rating-color--5 .score-number, .rating-color--4 .score-number { color: var(--color-error); }

.growth-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-weight: 700;
}
.growth-badge--rapidly-growing { background: #fff0d0; color: #b87800; }
.growth-badge--stable { background: #e0f0ff; color: var(--color-navy); }
.growth-badge--moderate-growth-returning { background: #e8f8e8; color: var(--color-success); }
.growth-badge--steadily-growing { background: #e8f0ff; color: #2a5090; }

.district-profile {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.district-profile__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.district-profile__name { font-size: 1.5rem; margin-bottom: 0; }
.district-profile__badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.badge {
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: 12px;
  font-weight: 600;
}
.badge--rating { background: #fff0d0; color: #b87800; }
.badge--enrollment { background: #e0f0ff; color: var(--color-navy); }
.badge--ratio { background: var(--color-light-gray); color: var(--color-text-muted); }
.district-profile__body { display: grid; grid-template-columns: 1fr 200px; gap: 1.5rem; }
.district-profile__main { }
.district-profile__stats { display: flex; flex-direction: column; gap: 0.75rem; }
.district-stat { }
.district-stat__label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); }
.district-stat__value { font-weight: 700; color: var(--color-navy); font-size: 0.95rem; }
.program-list { font-size: 0.875rem; margin: 0.5rem 0; }
.district-website-btn { margin-top: 0.5rem; }

/* ---- Real Estate Cards ------------------------------------ */
.market-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.market-stat-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}
.market-stat-card__icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.market-stat-card__value { font-family: var(--font-headline); font-size: 1.8rem; font-weight: 800; color: var(--color-navy); line-height: 1; }
.market-stat-card__label { font-size: 0.78rem; color: var(--color-text-muted); margin-top: 0.3rem; }
.market-stat-card__change { font-size: 0.82rem; font-weight: 700; margin-top: 0.25rem; }
.change--down { color: var(--color-error); }
.change--up { color: var(--color-success); }
.market-note { font-size: 0.9rem; color: var(--color-text-muted); font-style: italic; margin-top: 0.75rem; }

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.community-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.community-card__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.5rem; }
.community-card__name { font-family: var(--font-headline); font-size: 1.1rem; margin-bottom: 0; }
.community-card__city { font-size: 0.75rem; background: var(--color-light-gray); padding: 0.2rem 0.5rem; border-radius: 12px; color: var(--color-text-muted); white-space: nowrap; }
.community-card__price { font-weight: 700; color: var(--color-orange); font-size: 1rem; margin-bottom: 0.5rem; }
.community-card__builders { font-size: 0.82rem; color: var(--color-text-light); margin-bottom: 0.5rem; }
.community-card__size { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 0.5rem; }
.community-card__amenities { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.75rem; }
.amenity-tag { font-size: 0.7rem; background: var(--color-off-white); border: 1px solid var(--color-border); padding: 0.15rem 0.5rem; border-radius: 12px; color: var(--color-text-muted); }
.community-card__status { font-size: 0.78rem; font-weight: 700; color: var(--color-navy); }

.builder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.builder-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.builder-card__name { font-family: var(--font-headline); font-size: 1.1rem; margin-bottom: 0.25rem; }
.builder-card__price { font-size: 0.9rem; color: var(--color-orange); font-weight: 600; margin-bottom: 0.5rem; }
.builder-card__description { font-size: 0.85rem; color: var(--color-text-light); }

/* ---- Cost of Living --------------------------------------- */
.tax-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1rem 0;
}
.tax-card {
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--color-border);
}
.tax-card--good { background: #f0fff4; border-left: 4px solid var(--color-success); }
.tax-card--neutral { background: #fffbf0; border-left: 4px solid var(--color-gold); }
.tax-card__icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.tax-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.tax-card p { font-size: 0.875rem; color: var(--color-text-light); }
.verdict-box {
  background: var(--color-off-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}
.verdict-box h3 { font-size: 1.1rem; margin: 1rem 0 0.5rem; font-family: var(--font-body); }
.verdict-box h3:first-child { margin-top: 0; }
.verdict-box ul { font-size: 0.9rem; }
.tax-calculator { display: flex; flex-direction: column; gap: 0.5rem; }
.tax-input { border: 1px solid var(--color-border); padding: 0.375rem 0.5rem; border-radius: var(--radius-sm); font-size: 0.875rem; font-family: var(--font-body); width: 100%; margin-top: 0.2rem; display: block; }
.tax-result { background: var(--color-navy); color: white; padding: 0.75rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9rem; margin-top: 0.25rem; }

/* ---- Commute ---------------------------------------------- */
.route-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.route-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.25rem; }
.route-card--primary { border-left: 4px solid var(--color-orange); }
.route-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.route-card ul { font-size: 0.85rem; color: var(--color-text-light); }

.employer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.employer-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.25rem; }
.employer-card h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.employer-type { display: inline-block; font-size: 0.72rem; font-weight: 700; background: var(--color-light-gray); padding: 0.15rem 0.5rem; border-radius: 12px; color: var(--color-text-muted); margin-bottom: 0.5rem; }
.employer-card p { font-size: 0.875rem; color: var(--color-text-light); }

.wfh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; margin: 1rem 0; }
.wfh-card { border-radius: var(--radius-md); padding: 1.25rem; border: 1px solid var(--color-border); }
.wfh-card--good { background: #f0fff4; border-left: 4px solid var(--color-success); }
.wfh-card--neutral { background: #fffbf0; border-left: 4px solid var(--color-gold); }
.wfh-card h3 { font-size: 0.95rem; margin-bottom: 0.4rem; font-family: var(--font-body); font-weight: 700; }
.wfh-card p { font-size: 0.875rem; color: var(--color-text-light); }

/* ---- Things To Do ---------------------------------------- */
.events-list { display: flex; flex-direction: column; gap: 0.75rem; }
.event-card { display: flex; gap: 1rem; align-items: flex-start; background: white; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.25rem; }
.event-card__month { min-width: 80px; text-align: center; background: var(--color-navy); color: white; border-radius: var(--radius-sm); padding: 0.5rem; font-size: 0.8rem; font-weight: 700; }
.event-card__content h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.event-card__content p { font-size: 0.875rem; color: var(--color-text-light); }
.daytrip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.daytrip-card { background: white; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.25rem; }
.daytrip-card__distance { font-size: 0.8rem; font-weight: 700; color: var(--color-orange); margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.05em; }
.daytrip-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.daytrip-card p { font-size: 0.85rem; color: var(--color-text-light); }

/* ---- Real Estate / School stats -------------------------- */
.re-stats-row { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; margin: 1.5rem 0; }
.re-stat { text-align: center; padding: 1.5rem 2rem; background: var(--color-off-white); border-radius: var(--radius-md); border: 1px solid var(--color-border); }
.re-stat__value { font-family: var(--font-headline); font-size: 2.5rem; font-weight: 800; color: var(--color-navy); line-height: 1; }
.re-stat__label { font-size: 0.82rem; color: var(--color-text-muted); margin-top: 0.3rem; text-transform: uppercase; letter-spacing: 0.05em; }

.school-snapshot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.school-snapshot-card { background: white; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.25rem; }
.school-snapshot-card__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.5rem; }
.school-snapshot-card h3 { font-size: 1rem; margin-bottom: 0; }
.school-snapshot-card p { font-size: 0.85rem; color: var(--color-text-light); margin-bottom: 0.5rem; }
.school-snapshot-card__stats { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.8rem; color: var(--color-text-muted); }
.rating-badge { font-weight: 800; font-size: 0.9rem; color: var(--color-gold); white-space: nowrap; }

/* ---- Tips ------------------------------------------------- */
.tips-list { display: flex; flex-direction: column; gap: 1rem; }
.tip-card { display: flex; gap: 1rem; align-items: flex-start; }
.tip-card__number {
  min-width: 2rem;
  height: 2rem;
  background: var(--color-orange);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.tip-card__content { font-size: 0.925rem; line-height: 1.6; padding-top: 0.2rem; }

/* ---- Resources grid --------------------------------------- */
.resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; margin: 1rem 0; }
.resource-card {
  display: block;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.2s;
}
.resource-card:hover { box-shadow: var(--shadow-md); border-color: var(--color-orange); color: var(--color-text); }
.resource-card h3 { font-size: 1rem; color: var(--color-navy); margin-bottom: 0.4rem; }
.resource-card p { font-size: 0.82rem; color: var(--color-text-light); margin-bottom: 0.5rem; }
.resource-card__cta { font-size: 0.82rem; font-weight: 700; color: var(--color-orange); }

/* ---- CTA section ----------------------------------------- */
.cta-badges { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.cta-badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
}
.cta-section .section__title { margin-bottom: 0.5rem; }

/* ---- Ad Units --------------------------------------------- */
.ad-unit {
  background: var(--color-light-gray);
  border: 1px dashed var(--color-mid-gray);
  border-radius: var(--radius-sm);
  text-align: center;
  overflow: hidden;
}
.ad-unit__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  padding: 0.35rem;
  background: var(--color-off-white);
  border-bottom: 1px dashed var(--color-mid-gray);
}
.ad-unit--leaderboard { min-height: 90px; }
.ad-unit--rectangle { min-height: 250px; max-width: 336px; }
.ad-unit--sidebar { min-height: 250px; }
.ad-container { margin: 2rem auto; max-width: var(--container-max); padding: 0 var(--container-pad); }

/* ---- Tags ------------------------------------------------- */
.tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0; }
.tag {
  font-size: 0.75rem;
  background: var(--color-off-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.2rem 0.6rem;
  color: var(--color-text-muted);
}
.tag--community { background: #e8f4ff; border-color: #bee3f8; color: var(--color-navy); }

/* ---- Misc ------------------------------------------------- */
.highlight-list { list-style: none; padding: 0; margin: 0.5rem 0; }
.highlight-list li { padding: 0.35rem 0; border-bottom: 1px dashed var(--color-border); font-size: 0.9rem; margin-bottom: 0; }
.highlight-list--schools li { color: var(--color-navy); }
.subsection { margin-top: 1.25rem; }
.subsection h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 0.5rem; }
.compare-section { margin-bottom: 2.5rem; }
.content-section { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--color-border); }
.content-section:last-child { border-bottom: none; }
.neighborhood-profiles { }

.cta-section { background: var(--color-off-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 2.5rem; text-align: center; margin: 2rem 0; }
.cta-section__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.trend-badge { font-size: 0.75rem; padding: 0.2rem 0.5rem; border-radius: 12px; font-weight: 600; background: var(--color-light-gray); color: var(--color-text-muted); }

.rating-dot { font-size: 0.85rem; font-weight: 700; color: var(--color-gold); }
.rating-dot--9, .rating-dot--10 { color: var(--color-success); }
.rating-dot--7, .rating-dot--8 { color: #2a6a4a; }
.rating-dot--5, .rating-dot--4 { color: var(--color-error); }

/* ---- Footer ----------------------------------------------- */
.site-footer { background: var(--color-navy-dark); color: rgba(255,255,255,0.8); }
.footer__top { padding: 3rem 0 2rem; }
.footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.footer__heading { font-family: var(--font-headline); font-size: 1rem; color: white; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.15); }
.footer__subheading { font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.7); margin: 1rem 0 0.5rem; }
.footer__text { font-size: 0.85rem; color: rgba(255,255,255,0.65); line-height: 1.6; margin-bottom: 0.75rem; }
.footer__disclaimer { font-size: 0.78rem; font-style: italic; color: rgba(255,255,255,0.45); }
.footer__nav { list-style: none; padding: 0; }
.footer__nav li { margin-bottom: 0.3rem; }
.footer__nav a { font-size: 0.875rem; color: rgba(255,255,255,0.65); text-decoration: none; }
.footer__nav a:hover { color: var(--color-gold); }
.footer__update-info { background: rgba(255,255,255,0.05); border-radius: var(--radius-sm); padding: 0.75rem; margin-bottom: 1rem; }
.footer__update-info p { font-size: 0.82rem; color: rgba(255,255,255,0.7); margin-bottom: 0.5rem; }
.footer__update-info p:last-child { margin-bottom: 0; }
.footer__build-date { font-size: 0.75rem !important; color: rgba(255,255,255,0.45) !important; }
.footer__bottom { background: rgba(0,0,0,0.2); padding: 1rem 0; border-top: 1px solid rgba(255,255,255,0.1); }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer__copyright { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-bottom: 0; }
.footer__credits { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-bottom: 0; text-align: right; }

/* ---- School quick profile -------------------------------- */
.school-snapshot-card__stats span { display: flex; gap: 0.5rem; }

/* ---- Compare table in dark bg ---------------------------- */
.bg-navy .comparison-table--dark td { color: white; }
.bg-navy .comparison-table--dark tr:nth-child(even) td { background: rgba(255,255,255,0.05); }
.bg-navy .comparison-table--dark tr:hover td { background: rgba(255,255,255,0.1); }
.bg-navy .comparison-table--dark .highlight { color: var(--color-gold); }

/* ---- Responsive ------------------------------------------ */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .content-sidebar-layout { grid-template-columns: 1fr; }
  .content-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .neighborhood-profile__body { grid-template-columns: 1fr; }
  .neighborhood-profile__stats { flex-direction: row; flex-wrap: wrap; }
  .stat-card { min-width: 120px; }
  .district-profile__body { grid-template-columns: 1fr; }
  .col-2-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --container-pad: 1rem; }
  .navbar__toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 2px solid var(--color-orange);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: 0.5rem;
    gap: 0;
    z-index: 200;
  }
  .nav-menu--open { display: flex; }
  .nav-menu__item { width: 100%; }
  .nav-menu__link { padding: 0.75rem 1rem; border-radius: 0; border-bottom: 1px solid var(--color-border); width: 100%; }
  .nav-menu__link--highlight { border-radius: var(--radius-sm); margin: 0.25rem; }
  .navbar { position: relative; }

  .hero { padding: 3rem 0 2.5rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .stats-bar__grid { justify-content: center; gap: 1rem 2rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .content-sidebar { grid-template-columns: 1fr; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
  .footer__credits { text-align: center; }

  .neighborhood-profile__header { flex-direction: column; }
  .price-badge { text-align: left; }
  .section__header { flex-direction: column; align-items: flex-start; }
  .re-stats-row { gap: 1rem; }
  .re-stat { padding: 1rem 1.5rem; }
  .re-stat__value { font-size: 2rem; }

  .header-topbar__right { display: none; }
  .district-rating-grid { grid-template-columns: 1fr; }
  .market-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  .neighborhood-preview-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .activity-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .market-stats-grid { grid-template-columns: 1fr; }
  .builder-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .cta-section { padding: 1.5rem; }
  .cta-section__actions { flex-direction: column; }
}
