@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&display=swap');

/* ============================================
   Design Tokens
   ============================================ */
:root {
  --primary: #C8102E;
  --primary-hover: #A30D25;
  --primary-light: #FEF2F2;
  --primary-foreground: #FFFFFF;

  --background: #FFFFFF;
  --background-alt: #F9FAFB;
  --foreground: #0F0F11;
  --foreground-secondary: #49494F;
  --muted: #49494F;
  --muted-light: #9CA3AF;

  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --card-accent: #ececef;

  --card-bg: #FFFFFF;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.04);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --font-sans: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container-width: 1200px;
  --container-padding: 24px;

  --transition: 200ms ease;
  --transition-slow: 350ms ease;
}

/* Editorial and directory components reuse the site's existing palette and spacing. */
.breadcrumbs { padding-top: 18px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; color: var(--text-muted); font-size: .875rem; }
.breadcrumbs li { display: flex; gap: 8px; }
.breadcrumbs a, .editorial-notes a, .business-profile a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.editorial-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; color: var(--text-muted); font-size: .875rem; }
.editorial-notes, .business-profile { margin: 36px 0; padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.business-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 24px 0; }
.business-card { overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.business-card > img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.business-card-body { padding: 22px; }
.business-card dl div, .business-profile dl div { display: grid; grid-template-columns: minmax(90px, .35fr) 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.business-card dt, .business-profile dt { font-weight: 700; }
.faq-item summary { cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
figure figcaption { margin-top: 8px; color: var(--text-muted); font-size: .8125rem; }
@media (max-width: 768px) { .business-grid { grid-template-columns: 1fr; } }

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

input, select {
  font: inherit;
}

ul, ol {
  list-style: none;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.125rem;
}

p {
  color: var(--foreground-secondary);
}

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

.section {
  padding: 80px 0;
}

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

/* ============================================
   Header
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.logo-img {
  height: 48px;
  width: auto;
}

.footer-brand .logo-img {
  height: 40px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition);
}

.btn-submit:hover {
  background: var(--primary-hover);
}

.btn-submit svg {
  width: 16px;
  height: 16px;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
}

.nav a:hover {
  color: var(--foreground);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--muted);
  transition: all var(--transition);
}

.search-btn:hover {
  background: var(--background-alt);
  color: var(--foreground);
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--foreground);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 80px 0 60px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--foreground-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-form-note {
  font-size: 0.875rem;
  color: var(--foreground-secondary);
  margin-top: 12px;
}

.hero-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
}

.hero-form input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  background: var(--background);
  color: var(--foreground);
  transition: border-color var(--transition);
}

.hero-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.hero-featured {
  position: relative;
}

.featured-card {
  position: relative;
}

.featured-card-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 8 / 5;
  background: var(--card);
}

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

.featured-card-info {
  padding: 16px 0 0;
}

.featured-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 4px;
}

.featured-card-title svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.featured-card-desc {
  font-size: 0.875rem;
  color: var(--foreground-secondary);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--transition);
  white-space: nowrap;
  gap: 8px;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--foreground);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--foreground);
  background: var(--background-alt);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* ============================================
   Explore Cards
   ============================================ */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.explore-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid #d8d8dc;
  background: var(--card-accent);
  font-weight: 500;
  font-size: 1rem;
  color: var(--foreground);
  transition: all var(--transition);
}

.explore-card:hover {
  border-color: #b8b8bc;
}

.explore-card-label {
  display: flex;
  align-items: center;
  gap: 0;
}

.explore-card .arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--card-accent);
  color: var(--foreground);
  transition: all var(--transition);
  flex-shrink: 0;
}

.explore-card .arrow svg {
  width: 16px;
  height: 16px;
}

.explore-card:hover .arrow {
  border-color: #b8b8bc;
}

/* ============================================
   Card Grid
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  transition: all var(--transition-slow);
}

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

.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-image img {
  transform: scale(1.03);
}

.card-body {
  padding: 16px 0 0;
  flex: 1;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-title .card-arrow {
  flex-shrink: 0;
  color: var(--foreground);
}

.card-title .card-arrow svg {
  width: 16px;
  height: 16px;
}

.card-description {
  font-size: 0.875rem;
  color: var(--foreground-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   Badges
   ============================================ */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--background);
  color: var(--foreground);
  border: 1px solid var(--card-accent);
}

.badge-new {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
}

.badge-category {
  background: var(--primary-light);
  color: var(--primary);
  border-color: transparent;
}

/* ============================================
   Filters
   ============================================ */
.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-select {
  padding: 10px 16px;
  padding-right: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--card-accent);
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2349494F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--foreground);
}

.filter-search {
  padding: 10px 16px;
  padding-left: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--card-accent);
  color: var(--foreground);
  font-size: 0.875rem;
  width: 220px;
  flex: none;
  transition: border-color var(--transition);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2349494F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-size: 16px;
}

.filter-search:focus {
  outline: none;
  border-color: var(--foreground);
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-tab {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: all var(--transition);
  cursor: pointer;
  background: transparent;
}

.filter-tab:hover {
  color: var(--foreground);
  background: var(--card-accent);
}

.filter-tab.active {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

/* ============================================
   Section Header
   ============================================ */
.section-header {
  margin-bottom: 40px;
}

.section-header h2 {
  margin-bottom: 8px;
}

.section-header p {
  color: var(--foreground-secondary);
  font-size: 1.0625rem;
}

/* ============================================
   Load More
   ============================================ */
.load-more {
  text-align: center;
  margin-top: 48px;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card-accent);
  color: var(--foreground);
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-load-more:hover {
  background: #e2e2e5;
}

/* ============================================
   Breadcrumbs
   ============================================ */
.post-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 40px;
  margin-bottom: 32px;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.post-back:hover {
  background: var(--card-accent);
  border-color: var(--card-accent);
}

.post-type-badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  padding: 6px 14px;
  background: var(--primary-light);
  border-radius: var(--radius-full);
}

.post-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 40px;
}

/* ============================================
   Post Page
   ============================================ */
.post-header {
  margin-bottom: 32px;
}

.post-header-text h1 {
  margin-bottom: 12px;
}

.post-description {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.6;
}

.post-hero-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 48px;
  aspect-ratio: 8 / 5;
  background: var(--card);
}

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

.post-content {
  max-width: 780px;
  margin-bottom: 48px;
}

.post-content h2 {
  margin: 40px 0 16px;
  font-size: 1.5rem;
}

.post-content h3 {
  margin: 32px 0 12px;
  font-size: 1.25rem;
}

.post-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.post-content ul,
.post-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.post-content li {
  margin-bottom: 8px;
  color: var(--foreground-secondary);
  line-height: 1.7;
}

.post-content ul {
  list-style: disc;
}

.post-content ol {
  list-style: decimal;
}

.post-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-content a:hover {
  color: var(--primary-hover);
}

/* Research library */
.research-heading { max-width: 780px; }
.research-heading h1 { margin: 16px 0 12px; }
.research-heading > p { font-size: 1.125rem; line-height: 1.7; }
.research-grid, .dataset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.research-card, .dataset-card, .research-empty { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 28px; }
.research-card h2 { font-size: 1.35rem; margin: 8px 0 12px; }
.research-card h2 a:hover, .research-card-link { color: var(--primary); }
.research-card p { color: var(--foreground-secondary); line-height: 1.7; }
.research-card-meta, .section-sources { color: var(--muted); font-size: .875rem; }
.research-card-link { display: inline-block; margin-top: 16px; font-weight: 600; }
.research-report { padding-bottom: 48px; }
.research-report-header { max-width: 860px; }
.research-findings, .dataset-section, .research-sources { margin: 40px 0; max-width: 960px; }
.research-findings > h2, .dataset-section > h2, .research-sources > h2 { margin-bottom: 20px; }
.finding-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.finding-card { padding: 22px; border-radius: var(--radius-lg); background: var(--primary-light); }
.finding-card strong { display: block; color: var(--primary); font-size: 2rem; line-height: 1.1; margin-bottom: 8px; }
.finding-card span { display: block; font-weight: 600; }
.finding-card p { margin-top: 8px; color: var(--foreground-secondary); font-size: .9rem; }
.answer-capsule { border-left: 4px solid var(--primary); padding: 14px 18px; background: var(--primary-light); font-weight: 500; }
.research-table-wrap { overflow-x: auto; margin: 22px 0; }
.research-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.research-table th, .research-table td { padding: 12px 14px; border: 1px solid var(--border); text-align: left; }
.research-table th { background: var(--card-accent); }
.dataset-card h3 { margin-bottom: 10px; }
.dataset-card p { color: var(--foreground-secondary); line-height: 1.7; }
.dataset-card dl { margin: 18px 0; }
.dataset-card dl div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; margin: 7px 0; }
.dataset-card dt { color: var(--muted); }
.research-sources ol, .methodology-block ol { padding-left: 22px; list-style: decimal; }
.research-sources li, .methodology-block li { margin-bottom: 10px; line-height: 1.65; }
.research-sources a, .related-section a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.related-research { max-width: 900px; }
.related-research h2 { margin-bottom: 10px; }
.related-research li + li { margin-top: 14px; }
.related-research li span { display: block; margin-top: 3px; color: var(--foreground-secondary); line-height: 1.6; }

@media (max-width: 760px) {
  .research-grid, .dataset-grid, .finding-grid { grid-template-columns: 1fr; }
  .research-card, .dataset-card { padding: 22px; }
}

/* ============================================
   Neighbourhood Page
   ============================================ */
.neighbourhood-hero {
  padding: 48px 0 0;
}

.neighbourhood-intro {
  max-width: 780px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.neighbourhood-intro p {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.7;
}

.neighbourhood-map-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.neighbourhood-map {
  min-height: 380px;
  background: var(--background-alt);
}

.neighbourhood-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.neighbourhood-map-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.neighbourhood-map-info h2 {
  font-size: 1.375rem;
  font-weight: 700;
}

.neighbourhood-map-desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
}

.neighbourhood-attributes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.neighbourhood-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--foreground);
}

.neighbourhood-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.neighbourhood-highlight {
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
}

.neighbourhood-highlight:nth-child(odd) {
  border-right: 1px solid var(--border);
}

.neighbourhood-highlight-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.neighbourhood-highlight-header svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.neighbourhood-highlight-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--foreground);
}

.neighbourhood-highlight-text {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

.neighbourhood-boundaries {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.boundary-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px;
  border-right: 1px solid var(--border);
}

.boundary-item:last-child {
  border-right: none;
}

.boundary-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.boundary-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
}

/* Nearby Neighbourhoods */
.nearby-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.nearby-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  text-decoration: none;
  color: var(--foreground);
  font-weight: 600;
  font-size: 0.9375rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nearby-item:nth-child(3n) {
  border-right: none;
}

.nearby-item:nth-last-child(-n+3) {
  border-bottom: none;
}

.nearby-arrow {
  color: var(--muted-light);
  transition: color var(--transition);
}

.nearby-item:hover {
  background: var(--background-alt);
}

.nearby-item:hover .nearby-arrow {
  color: var(--primary);
}

/* ============================================
   Related Posts
   ============================================ */
.related-section {
  margin-bottom: 80px;
}

.related-section h2 {
  margin-bottom: 32px;
}

/* ============================================
   Newsletter
   ============================================ */
.newsletter {
  padding: 80px 0;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
}

.newsletter-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.newsletter-content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.newsletter-content h2 {
  font-size: 1.5rem;
  line-height: 1.3;
}

.newsletter-form {
  display: flex;
  gap: 12px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  background: var(--background);
  color: var(--foreground);
  transition: border-color var(--transition);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.newsletter-note {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ============================================
   Footer
   ============================================ */
.footer-map-section {
  padding: 48px 0;
  margin-bottom: 0;
}

.footer-map-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.footer-map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  display: block;
  border: none;
}

.footer-map-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  background: var(--card-accent);
}

.footer-map-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.footer-map-item:first-child {
  padding-top: 0;
}

.footer-map-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.footer-map-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 4px;
}

.footer-map-value {
  font-size: 0.9375rem;
  color: var(--foreground-secondary);
}

.footer-map-actions {
  padding: 32px 0 0;
}

.footer-map-actions .btn {
  gap: 8px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--foreground);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all var(--transition);
}

.social-link:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.weather-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  background: var(--card-accent);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  color: var(--foreground);
}

.weather-widget:empty {
  display: none;
}

.weather-widget svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.weather-temp {
  font-weight: 700;
}

.weather-label {
  color: var(--muted);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ============================================
   FAQ
   ============================================ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
}

.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  background: none;
  border: none;
  padding: 2px 0;
  font-family: var(--font-sans);
  transition: color var(--transition);
}

.faq-question h3 {
  min-width: 0;
  font: inherit;
  color: inherit;
}

.faq-question::after {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--foreground-secondary);
  background: var(--background);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
  transition: color var(--transition), border-color var(--transition), background-color var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question:focus-visible {
  outline: 3px solid rgba(200, 16, 46, 0.22);
  outline-offset: 6px;
  border-radius: 2px;
}

.faq-question svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--foreground-secondary);
  transition: transform var(--transition);
}

.faq-item[open] .faq-question svg {
  transform: rotate(45deg);
}

.faq-item[open] .faq-question {
  color: var(--primary);
}

.faq-item[open] .faq-question::after {
  content: '−';
  color: var(--primary-foreground);
  border-color: var(--primary);
  background: var(--primary);
}

.faq-answer {
  display: none;
  padding: 12px 44px 0 0;
  font-size: 0.9375rem;
  color: var(--foreground-secondary);
  line-height: 1.7;
}

.faq-item[open] .faq-answer {
  display: block;
}

/* ============================================
   Directory Grid
   ============================================ */
.section-directory {
  padding-top: 40px;
  padding-bottom: 24px;
}

.directory-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 0;
  justify-content: flex-start;
}

.directory-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 12px;
  width: calc(100% / 8);
  text-align: center;
  color: var(--foreground);
}

.directory-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.directory-icon svg {
  width: 32px;
  height: 32px;
}

.directory-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.3;
}

/* Trust Grid (homepage) */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  color: var(--foreground);
}

.trust-item:hover {
  background: var(--card-accent);
  border-color: var(--card-accent);
}

.trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.trust-icon svg {
  width: 20px;
  height: 20px;
}

.trust-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trust-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
}

.trust-desc {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================
   Category Hero
   ============================================ */
.category-hero {
  padding: 60px 0 40px;
}

.category-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.category-hero h1 {
  margin-bottom: 16px;
}

.category-copy .post-content,
.category-research .related-research {
  margin-bottom: 0;
}

.category-research .related-research {
  margin-top: 0;
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  color: var(--muted);
}

/* ============================================
   Mobile Nav
   ============================================ */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--background);
  z-index: 99;
  padding: 24px;
  flex-direction: column;
  gap: 4px;
}

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

.mobile-nav a {
  display: block;
  padding: 16px;
  font-size: 1.125rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.mobile-nav a:hover {
  background: var(--background-alt);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .hero-inner,
  .category-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-featured {
    order: -1;
  }

  .featured-card-image {
    aspect-ratio: 16 / 10;
  }

  .footer-map-card,
  .neighbourhood-map-card {
    grid-template-columns: 1fr;
  }

  .neighbourhood-highlights {
    grid-template-columns: 1fr;
  }

  .neighbourhood-highlight:nth-child(odd) {
    border-right: none;
  }

  .neighbourhood-boundaries {
    grid-template-columns: repeat(2, 1fr);
  }

  .boundary-item:nth-child(2) {
    border-right: none;
  }

  .nearby-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nearby-item:nth-child(3n) {
    border-right: 1px solid var(--border);
  }

  .nearby-item:nth-child(2n) {
    border-right: none;
  }

  .nearby-item:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .directory-item {
    width: calc(100% / 4);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .newsletter-inner {
    grid-template-columns: 1fr;
  }

  .newsletter-image {
    display: none;
  }

}

@media (max-width: 768px) {
  :root {
    --container-padding: 16px;
  }

  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    padding: 40px 0 32px;
  }

  .section {
    padding: 48px 0;
  }

  .explore-grid {
    grid-template-columns: 1fr;
  }

  .directory-item {
    width: calc(100% / 3);
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .neighbourhood-map-info {
    padding: 24px;
  }

  .neighbourhood-boundaries {
    grid-template-columns: 1fr;
  }

  .boundary-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

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

  .nearby-grid {
    grid-template-columns: 1fr;
  }

  .nearby-item {
    border-right: none !important;
  }

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

  .card-grid,
  .card-grid-2 {
    grid-template-columns: 1fr;
  }

  .post-hero-image {
    aspect-ratio: 16 / 10;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .filters {
    flex-direction: column;
  }

  .filter-search {
    width: 100%;
  }

  .hero-form {
    flex-direction: column;
    max-width: 100%;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-content {
    padding: 32px 24px;
  }

  .newsletter {
    padding: 48px 0;
  }


  .filter-tabs {
    gap: 6px;
  }

  .filter-tab {
    padding: 6px 14px;
    font-size: 0.8125rem;
  }
}
