/* =========================================
   BaseCPT Design System — Custom CSS
   Built on GeneratePress
   ========================================= */

/* --- Google Fonts Import --- */
/* Space Grotesk: display headings (h1, h2, hero titles) */
/* Inter: body text, nav, buttons, UI labels */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700;800;900&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #10B981;
  --color-primary-dark: #059669;
  --color-primary-light: #34D399;
  --color-primary-wash: #ECFDF5;
  --color-accent: #FF5C72;
  --color-accent-dark: #E63E56;
  --color-accent-wash: #FFF1F2;
  --color-text: #1C1917;
  --color-text-secondary: #57534E;
  --color-text-tertiary: #A8A29E;
  --color-border: #E7E5E4;
  --color-bg: #FFFFFF;
  --color-surface: #FAFAF9;
  --color-success: #16A34A;
  --color-warning: #D97706;
  --color-error: #DC2626;
  --color-info: #2563EB;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-8: 48px; --space-10: 64px; --space-12: 80px;
  --radius-sm: 6px; --radius-md: 8px; --radius-lg: 12px; --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
  --max-content: 1200px;
  --max-article: 680px;
}

/* --- Base Reset & Typography --- */
html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-text);
  line-height: 1.2;
}

/* Display headings: Space Grotesk for h1/h2 — distinctive, modern grotesque */
h1, .display-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4rem);  /* 40px → 64px */
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);  /* 28px → 36px */
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.35;
}

p {
  max-width: var(--max-article);
  margin-bottom: 1.25em;
}

a {
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* --- Overline / Category Labels --- */
.overline, .category-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  display: block;
}

.overline--mint {
  color: var(--color-primary);
}

/* --- Header / Navigation --- */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.main-navigation {
  max-width: var(--max-content);
  margin: 0 auto;
}

.main-navigation a {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-text);
  padding: 0.875rem 1rem;  /* 14px top/bottom = ~44px total touch target */
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  min-height: 44px;  /* WCAG 2.5.8 minimum touch target */
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: var(--color-text);
}

.main-navigation .current-menu-item a {
  border-bottom: 2px solid var(--color-text);
}

/* Logo: Base(dark) + CPT(mint) */
.site-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

/* --- Join Button (black, matching mockups) --- */
.btn-join, .menu-item-join a {
  background: var(--color-text) !important;
  color: white !important;
  border-radius: var(--radius-md);
  padding: 0.5rem 1.25rem !important;
  font-weight: 600 !important;
  font-size: 0.8125rem !important;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: background 0.2s ease;
}

.btn-join:hover, .menu-item-join a:hover {
  background: var(--color-text-secondary) !important;
  color: white !important;
}

/* --- Buttons --- */
.btn, .wp-block-button__link {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary, .wp-block-button__link {
  background: var(--color-text);
  color: white;
}

.btn-primary:hover, .wp-block-button__link:hover {
  background: var(--color-text-secondary);
  color: white;
}

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

.btn-accent:hover {
  background: var(--color-accent-dark);
  color: white;
}

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

.btn-outline:hover {
  background: var(--color-text);
  color: white;
}

/* Outline buttons on dark backgrounds (hero, dark sections) */
.hero .btn-outline,
.bcpt-hub__hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.hero .btn-outline:hover,
.bcpt-hub__hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}

/* --- Cards --- */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

/* Featured card: no left border (that's AI-slop territory).
   Differentiate with an image badge overlay instead — add .card__badge inside .card__image wrapper */
.card--featured {
  /* No special styling — use .card__badge on the image instead */
}

/* Badge overlay for featured/top-pick cards — sits on top of the card image */
.card__image-wrap {
  position: relative;
  overflow: hidden;
}

.card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-accent);
  color: white;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  z-index: 1;
}

.card__badge--mint {
  background: var(--color-primary);
}

.card__image {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card__overline {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-2);
}

.card__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.card__body {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.card__price {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--color-text);
}

/* --- Rating Badge --- */
.rating-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.875rem;
  color: white;
  background: var(--color-text);
}

.rating-badge--high { background: var(--color-primary); }
.rating-badge--mid { background: var(--color-text-secondary); }
.rating-badge--low { background: var(--color-warning); }

/* --- Rating Badge Large (for featured reviews) --- */
.rating-badge--lg {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  background: var(--color-accent);
}

/* --- Tags & Badges --- */
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--color-primary-wash);
  color: var(--color-primary);
}

.tag--accent {
  background: var(--color-accent);
  color: white;
}

.badge-essential, .badge-editors-choice {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--color-accent);
  color: white;
}

/* --- Hero Sections --- */
.hero {
  /* Full-bleed: breaks out of any parent container with max-width */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  max-width: none;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 88px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--space-5);
  width: 100%;
  /* Base white colour — inherited by all hero text elements */
  color: #fff;
}

/* White text for hero — !important to override GeneratePress heading colour rules */
.hero h1,
.hero .hero-overline,
.page-home .hero h1 {
  color: #fff !important;
}

.hero-overline {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  margin-bottom: 16px;
  display: block;
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: var(--space-6);
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.hero-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-trust-item {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary-light);
  flex-shrink: 0;
}

.hero__overline {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}

.hero__title .accent {
  color: var(--color-text-tertiary);
}

.hero__subtitle {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
  max-width: 480px;
}

/* --- Section Styling --- */
.section {
  /* Width is handled by .container inside — section itself fills full width for backgrounds */
  padding: var(--space-10) 0;
  width: 100%;
}

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

/* Section typography shared across homepage sections */
.section-overline {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: 40px;
}

.section__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-6);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
}

.section__link {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}

.section__link:hover {
  color: var(--color-text);
}

/* --- Grid Layouts --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

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

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

/* --- Neighbourhood Cards (with overlay text) --- */
.neighbourhood-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.neighbourhood-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.neighbourhood-card:hover img {
  transform: scale(1.05);
  filter: brightness(0.6);
}

.neighbourhood-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-5);
  color: white;
}

.neighbourhood-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  margin-bottom: var(--space-1);
}

.neighbourhood-card__desc {
  font-size: 0.875rem;
  opacity: 0.85;
}

/* --- Feature Block (split layout) --- */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
  padding: var(--space-10) 0;
}

@media (max-width: 768px) {
  .feature-block { grid-template-columns: 1fr; gap: var(--space-6); }
}

.feature-block__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.feature-block__title .accent {
  color: var(--color-accent);
}

/* --- Checklist Items --- */
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.checklist-item__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.checklist-item__title {
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 2px;
}

.checklist-item__desc {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

/* --- Numbered List (Quiet Zones style) --- */
.numbered-item {
  display: flex;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.numbered-item__number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1;
  color: var(--color-border);
}

.numbered-item__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-2);
}

.numbered-item__desc {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* --- Footer --- */
.site-footer, footer.site-info {
  background: var(--color-text) !important;
  color: white;
  padding: var(--space-10) 0 var(--space-6);
}

.site-footer a, footer.site-info a {
  color: var(--color-text-tertiary);
  transition: color 0.2s ease;
}

.site-footer a:hover, footer.site-info a:hover {
  color: white;
}

.footer__logo {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.25rem;
  color: white;
  margin-bottom: var(--space-3);
}

.footer__tagline {
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
  max-width: 280px;
  line-height: 1.5;
  margin-bottom: var(--space-4);
}

.footer__built {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.footer__heading {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-4);
}

.footer__links {
  list-style: none;
  padding: 0;
}

.footer__links li {
  margin-bottom: var(--space-3);
}

.footer__links a {
  font-size: 0.875rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
}

/* --- Photo Treatment (warm grade) --- */
.warm-grade {
  filter: saturate(1.05) brightness(1.03) sepia(0.08);
}

/* --- GeneratePress Overrides --- */
.grid-container {
  max-width: var(--max-content);
}

.site-content {
  padding: 0;
}

.entry-content {
  max-width: 100%;
}

/* Remove default GP padding on pages */
.page .inside-article {
  padding: 0;
}

/* Clean up GP header */
.inside-header {
  padding: 0.75rem 2rem;
}

/* Full-width page template */
.page-template-default .site-main {
  max-width: 100%;
}

/* --- Utility Classes --- */
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-tertiary); }
.text-secondary { color: var(--color-text-secondary); }
.bg-surface { background: var(--color-surface); }
.bg-dark { background: var(--color-text); color: white; }
.container { max-width: var(--max-content); margin: 0 auto; padding: 0 var(--space-5); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* --- Skip to Content (accessibility) --- */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: var(--space-5);
  background: var(--color-text);
  color: white;
  padding: 8px 16px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 999;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-to-content:focus {
  top: 0;
}

/* --- Focus Styles (visible, high-contrast) --- */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Remove default outline only when :focus-visible is supported */
:focus:not(:focus-visible) {
  outline: none;
}

/* --- Site Navigation --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  height: 64px;
  display: flex;
  align-items: center;
}
.nav-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;           /* 'base' stays medium weight */
  color: var(--color-text);
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}
/* CPT — heavier weight + green makes the city code pop */
.nav-logo span {
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  flex: 1;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--color-text); }
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a,
.nav-links .current-menu-ancestor > a {
  color: var(--color-text);
  border-bottom: 2px solid var(--color-text);
  padding-bottom: 2px;
}
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-nav {
  background: var(--color-text);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
}
.btn-nav:hover { background: var(--color-text-secondary); color: white; }

/* --- Mobile Navigation --- */
/* Hamburger button — visible on mobile only */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
}
.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: all 0.2s;
}
/* Keep legacy .nav-hamburger alias */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 200;
  position: relative;
}

.nav-hamburger__line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

/* Hamburger → X animation when overlay is open */
.nav-hamburger[aria-expanded="true"] .nav-hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] .nav-hamburger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger[aria-expanded="true"] .nav-hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Full-screen mobile nav overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-text);
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-10) var(--space-8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-overlay .mobile-nav__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-overlay .mobile-nav__links li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-overlay .mobile-nav__links a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 700;
  color: white;
  text-decoration: none;
  padding: var(--space-4) 0;
  letter-spacing: -0.02em;
  transition: color 0.15s ease;
}

.mobile-nav-overlay .mobile-nav__links a:hover {
  color: var(--color-primary-light);
}

.mobile-nav-overlay .mobile-nav__footer {
  margin-top: var(--space-8);
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
}
.mobile-nav__social {
  display: flex;
  gap: 16px;
  margin-top: var(--space-8);
  padding-top: var(--space-5);
}
.mobile-nav__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.7);
  transition: all 180ms ease;
}
.mobile-nav__social a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .mobile-menu-toggle,
  .nav-hamburger { display: flex; }
  .site-nav .nav-links { display: none; }  /* Hide desktop nav, hamburger takes over */
}

/* --- Scroll-Reveal Animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
}

.reveal.in-view {
  animation: fadeUp 0.45s ease forwards;
}

/* Stagger delays for grid children */
.reveal-grid > *:nth-child(1) { animation-delay: 0ms; }
.reveal-grid > *:nth-child(2) { animation-delay: 80ms; }
.reveal-grid > *:nth-child(3) { animation-delay: 160ms; }
.reveal-grid > *:nth-child(4) { animation-delay: 240ms; }
.reveal-grid > *:nth-child(5) { animation-delay: 320ms; }
.reveal-grid > *:nth-child(6) { animation-delay: 400ms; }

/* --- Skeleton Loaders --- */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-surface) 25%,
    var(--color-border) 50%,
    var(--color-surface) 75%
  );
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: var(--radius-sm);
}

.skeleton-card {
  height: 280px;
  border-radius: var(--radius-md);
}

.skeleton-text {
  height: 1em;
  margin-bottom: 0.5em;
}

.skeleton-text--short { width: 60%; }
.skeleton-text--long { width: 90%; }

/* --- Accessibility: Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; }
  .skeleton { animation: none; background: var(--color-surface); }
}

/* =========================================
   HOMEPAGE — Additional Layout CSS
   front-page.php specific components
   ========================================= */

/* ── PILLAR GRID ── */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pillar-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.pillar-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--color-primary);
}

.pillar-icon {
  font-size: 2rem;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}

.pillar-label {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
  display: block;
}

.pillar-desc {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  flex: 1;
  margin: 0;
}

.pillar-arrow {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  display: block;
  margin-top: 8px;
}

/* ── FEATURED CONTENT GRID ── */
.featured-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-link {
  font-size: 0.875rem;
  color: var(--color-primary-dark);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.section-link:hover { text-decoration: underline; }

.featured-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}
.featured-card--hero {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}
.featured-card--hero:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.featured-card--hero .featured-card__image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-surface);
}
.featured-card--hero .featured-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.featured-card--hero:hover .featured-card__image img { transform: scale(1.04); }
.featured-card--hero .featured-card__image--placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #e8e4df, #d0cbc4);
}
.featured-card--hero .featured-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.featured-card--hero .featured-card__title {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}
.featured-card--hero .featured-card__excerpt {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  flex: 1;
  margin: 0;
}
.featured-card--hero .featured-card__meta {
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
  margin-top: 4px;
}

.featured-card--secondary {
  display: flex;
  gap: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  padding: 16px;
  transition: box-shadow 0.2s, transform 0.2s;
  align-items: flex-start;
}
.featured-card--secondary:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.featured-card--secondary .featured-card__image {
  width: 88px;
  height: 66px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #e8e4df, #d0cbc4);
}
.featured-card--secondary .featured-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-card--secondary .featured-card__image--placeholder {
  width: 88px;
  height: 66px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #e8e4df, #d0cbc4);
  flex-shrink: 0;
}
.featured-card--secondary .featured-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.featured-card--secondary .featured-card__title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}
.featured-card--secondary .featured-card__meta {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
}
.card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-accent);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 1;
}

/* ── NEIGHBOURHOOD GRID ── */
.neighbourhood-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.neighbourhood-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: var(--color-surface);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.3s ease;
}
.neighbourhood-card:hover { transform: scale(1.02); }
.neighbourhood-card--placeholder { background: linear-gradient(160deg, #c8c0b0, #a09080); }
.neighbourhood-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,16,14,0.85) 0%, rgba(20,16,14,0) 60%);
}
.neighbourhood-card__body {
  position: relative;
  z-index: 1;
  padding: 20px;
}
.neighbourhood-card__tag {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.neighbourhood-card__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin: 0 0 4px;
}
.neighbourhood-card__score {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

/* ── KIT GRID ── */
.kit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.kit-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.kit-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.kit-card__image {
  aspect-ratio: 1;
  background: var(--color-surface);
  overflow: hidden;
}
.kit-card__image img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.kit-card__body { padding: 16px; }
.kit-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.kit-card__name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}
.kit-card__name a { color: inherit; text-decoration: none; }
.kit-card__name a:hover { color: var(--color-primary-dark); }
.kit-card__price { font-size: 0.875rem; color: var(--color-text-secondary); margin-bottom: 12px; }
.kit-card__cta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  text-decoration: none;
}
.kit-card__cta:hover { text-decoration: underline; }

/* ── NEWSLETTER SECTION ── */
.newsletter-section {
  background: var(--color-text);
  color: white;
  padding: 72px 0;
  text-align: center;
}
.newsletter-section .section-overline { color: var(--color-primary-light); }
.newsletter-section .section-title { color: white; }
.newsletter-section .section-subtitle { color: rgba(255,255,255,0.7); }
.newsletter-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}
.newsletter-form__input {
  padding: 13px 18px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.1);
  color: white;
  font-family: var(--font-sans);
  font-size: 1rem;
  width: 320px;
  outline: none;
  transition: border-color 0.15s;
}
.newsletter-form__input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form__input:focus { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.15); }
.newsletter-form__submit {
  padding: 13px 28px;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.newsletter-form__submit:hover:not(:disabled) { background: var(--color-accent-dark); }
.newsletter-form__submit:disabled {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.4);
  cursor: not-allowed;
}
.newsletter-form__note {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  margin-top: 14px;
}

/* ── FOOTER ── */
footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.6);
  padding: 56px 24px 32px;
}
.footer-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: white;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.footer-logo span {
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}
.footer-brand p { margin-top: 12px; font-size: 0.875rem; line-height: 1.6; }
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  transition: all 180ms ease;
}
.footer-social__link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}
.footer-col h4 {
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; }
.footer-col a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.875rem; }
.footer-col a:hover { color: white; }
.footer-bottom {
  max-width: var(--max-content);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
}

/* ── TOAST ── */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 500;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow-lg);
  max-width: 400px;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast--success, .toast--info { background: var(--color-text); color: white; }
.toast--success .toast__icon { color: var(--color-primary-light); }
.toast--error { background: #1C0A0A; color: white; }
.toast--error .toast__icon { color: #FCA5A5; }
.toast__icon { font-size: 1rem; flex-shrink: 0; }
.toast__message { flex: 1; line-height: 1.4; }
.toast__dismiss {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  display: flex;
  flex-shrink: 0;
}
.toast__dismiss:hover { color: white; }

/* ── HOMEPAGE RESPONSIVE ── */
@media (max-width: 1023px) {
  .featured-content-grid { grid-template-columns: 1fr; }
  .featured-card--hero { grid-row: auto; }
  .neighbourhood-grid { grid-template-columns: repeat(2, 1fr); }
  .kit-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .neighbourhood-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .kit-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-form { flex-direction: column; align-items: stretch; padding: 0 8px; }
  .newsletter-form__input { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .pillar-grid { grid-template-columns: 1fr; }
}

/* ── SIDEBAR: PILLAR NAVIGATION ─────────────────────────────── */
.pillar-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pillar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm, 6px);
  text-decoration: none;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.pillar-nav-item:hover {
  background: var(--color-surface);
  color: var(--color-text);
}
.pillar-nav-item--active {
  background: var(--color-primary-wash, #ECFDF5);
  color: var(--color-primary-dark);
  font-weight: 600;
}
.pillar-nav-item--active .pillar-nav-item__count {
  color: var(--color-primary-dark);
}

.pillar-nav-item__icon {
  font-size: 1rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}
.pillar-nav-item__label { flex: 1; }
.pillar-nav-item__count {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  font-weight: 400;
}

/* ── SIDEBAR: TAG CLOUD ─────────────────────────────────────── */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-cloud__tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  line-height: 1.4;
}
.tag-cloud__tag:hover {
  background: var(--color-primary-wash, #ECFDF5);
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}
/* Tags with more posts appear slightly bolder */
.tag-cloud__tag[data-count="2"],
.tag-cloud__tag[data-count="3"] { font-weight: 500; }
.tag-cloud__tag[data-count="4"],
.tag-cloud__tag[data-count="5"],
.tag-cloud__tag[data-count="6"],
.tag-cloud__tag[data-count="7"],
.tag-cloud__tag[data-count="8"],
.tag-cloud__tag[data-count="9"] { font-weight: 600; }


/* =========================================
   SINGLE POST — Full layout CSS
   Handles: post header, hero image, article
   grid (content + sidebar), author bio,
   reading progress, related posts.
   ========================================= */

/* ── READING PROGRESS BAR ─────────────────── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--color-primary);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── POST HEADER ──────────────────────────── */
.post-header {
  border-bottom: 1px solid var(--color-border);
  padding: 40px 0 48px;
  background: var(--color-bg);
}

.post-header__content {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px;
}

.post-header__breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
  margin-bottom: 20px;
}
.post-header__breadcrumb a {
  color: var(--color-text-secondary);
  text-decoration: none;
}
.post-header__breadcrumb a:hover { color: var(--color-primary-dark); text-decoration: underline; }
.post-header__breadcrumb span[aria-hidden] { color: var(--color-text-tertiary); }

.post-header__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

/* Tag pills — category (pillar) and topic (tag) */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: opacity 0.15s;
}
.tag:hover { opacity: 0.8; }
.tag--category {
  background: var(--color-primary-wash, #ECFDF5);
  color: var(--color-primary-dark);
}
.tag--topic {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.post-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.625rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 20px;
}

.post-header__standfirst {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin-bottom: 28px;
  max-width: 640px;
  /* Hide auto-generated "Read more" links from the excerpt */
}
.post-header__standfirst a.more-link { display: none; }

.post-header__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.post-author {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.post-author__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.post-author__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  line-height: 1.2;
}
.post-author__role {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  margin: 0;
}

.post-header__meta-divider {
  width: 1px;
  height: 20px;
  background: var(--color-border);
  flex-shrink: 0;
}

.post-header__meta-item {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}
.post-header__meta-item strong { color: var(--color-text); }

.post-header__share {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  color: var(--color-text);
}
.share-btn:hover {
  background: var(--color-surface);
  border-color: var(--color-text);
}

/* ── POST HERO IMAGE ──────────────────────── */
.post-hero-image {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}
.post-hero-image figure { margin: 0; }
.post-hero-image img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg, 12px);
  display: block;
  margin: 32px 0 0;
}
.post-hero-image figcaption {
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* ── ARTICLE LAYOUT GRID ──────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  max-width: var(--max-content, 1200px);
  margin: 48px auto 80px;
  padding: 0 24px;
  align-items: start;
}

/* ── ARTICLE BODY ─────────────────────────── */
.article-body {
  min-width: 0; /* prevent grid blowout */
}

/* Article typography */
.article-body p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 1.4em;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 2.25em 0 0.6em;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 1.75em 0 0.5em;
  line-height: 1.25;
}
.article-body h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.5em 0 0.4em;
}
.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.4em;
}
.article-body li {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 0.35em;
  color: var(--color-text);
}
.article-body blockquote {
  border-left: 3px solid var(--color-primary);
  margin: 2em 0;
  padding: 12px 24px;
  background: var(--color-primary-wash, #ECFDF5);
  border-radius: 0 var(--radius-sm, 6px) var(--radius-sm, 6px) 0;
}
.article-body blockquote p {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--color-text);
  margin: 0;
}
.article-body a {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body a:hover { color: var(--color-primary); }
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md, 8px);
  display: block;
  margin: 1.5em 0;
}
.article-body hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5em 0;
}
/* Suppress duplicate excerpt at top of content */
.article-body > p:first-child .more-link { display: none; }

/* Post tags — below article */
.post-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}
.post-tags__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 4px;
}

/* Author bio */
.author-bio {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  padding: 24px;
  background: var(--color-surface);
  border-radius: var(--radius-lg, 12px);
  border: 1px solid var(--color-border);
}
.author-bio__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-bio__content { flex: 1; }
.author-bio__name {
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 2px;
}
.author-bio__role {
  font-size: 0.8125rem;
  color: var(--color-primary-dark);
  font-weight: 600;
  margin: 0 0 8px;
}
.author-bio__content p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ── SIDEBAR ──────────────────────────────── */
.post-sidebar {
  min-width: 0;
}
.sidebar-sticky {
  position: sticky;
  top: 88px; /* below nav */
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-box {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  background: var(--color-bg);
}
.sidebar-box__header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}
.sidebar-box__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-tertiary);
  margin: 0;
}
.sidebar-box__body {
  padding: 16px 18px;
}

/* TOC */
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  counter-reset: toc-counter;
}
.toc-list li a {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 4px 0;
  line-height: 1.4;
  transition: color 0.15s;
}
.toc-list li a:hover { color: var(--color-primary-dark); }
.toc-list li.is-active a {
  color: var(--color-primary-dark);
  font-weight: 600;
}

/* Related list */
.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.related-list-item a {
  display: flex;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.related-list-item a:hover .related-title { color: var(--color-primary-dark); }
.related-thumb {
  width: 64px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-surface);
}
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
  margin: 0 0 4px;
  transition: color 0.15s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-meta {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  margin: 0;
}

/* Sidebar newsletter */
.newsletter-sidebar {
  background: var(--color-text);
  color: white;
  border-radius: var(--radius-lg, 12px);
  padding: 24px 20px;
}
.newsletter-sidebar h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin: 0 0 6px;
}
.newsletter-sidebar p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  margin: 0 0 16px;
}
.newsletter-sidebar input[type="email"] {
  width: 100%;
  padding: 9px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 0.875rem;
  margin-bottom: 8px;
  box-sizing: border-box;
}
.newsletter-sidebar input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-sidebar input[type="email"]:focus {
  outline: 2px solid var(--color-primary);
  border-color: transparent;
}
.newsletter-sidebar .btn-submit {
  width: 100%;
  padding: 10px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.15s;
}
.newsletter-sidebar .btn-submit:hover:not(:disabled) { background: var(--color-primary-dark); }
.newsletter-sidebar .btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── RELATED POSTS (bottom section) ──────── */
.related-posts-section {
  background: var(--color-surface);
  padding: 64px 0;
  border-top: 1px solid var(--color-border);
}
.related-posts-inner {
  max-width: var(--max-content, 1200px);
  margin: 0 auto;
  padding: 0 24px;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0;
}
.section-header a {
  font-size: 0.875rem;
  color: var(--color-primary-dark);
  text-decoration: none;
  font-weight: 500;
}
.section-header a:hover { text-decoration: underline; }

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  transition: box-shadow 0.2s, transform 0.2s;
}
.post-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.post-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-surface);
}
.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.post-card:hover .post-card__image img { transform: scale(1.04); }
.post-card__body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.post-card__category {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-primary-dark);
  margin: 0;
}
.post-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
  margin: 0;
  flex: 1;
}
.post-card__meta {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  margin: 4px 0 0;
}

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 740px;
  }
  .post-sidebar { display: none; } /* sidebar collapses — show in future mobile drawer */
  .related-posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .post-header__content { padding: 0 16px; }
  .post-header { padding: 28px 0 36px; }
  .article-layout { padding: 0 16px; margin-top: 32px; }
  .post-hero-image { padding: 0 16px; }
  .post-hero-image img { border-radius: 8px; max-height: 280px; }
  .related-posts-grid { grid-template-columns: 1fr; }
  .post-header__meta { gap: 10px; }
  .post-header__meta-divider { display: none; }
  .post-header__share { margin-left: 0; }
  .related-posts-inner { padding: 0 16px; }
}


/* ── POST HERO (article/blog) ─────────────────────────────────
   Mirrors the coworking review-hero pattern.
   Falls back gracefully when no featured image is set.
   ─────────────────────────────────────────────────────────── */
.post-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  background: var(--color-text, #1C1917);
}

.post-hero--no-image {
  min-height: 280px;
  background: var(--color-text, #1C1917);
}

.post-hero__image {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.post-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  display: block;
}

.post-hero__overlay {
  position: relative;
  width: 100%;
  background: linear-gradient(
    to top,
    rgba(10,8,6,0.92) 0%,
    rgba(10,8,6,0.55) 50%,
    transparent 100%
  );
}

/* No image: use a flat dark background */
.post-hero--no-image .post-hero__overlay {
  background: none;
}

.post-hero__content {
  max-width: var(--max-content, 1200px);
  margin: 0 auto;
  padding: 40px 24px 44px;
}

/* Breadcrumb on hero */
.post-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.post-hero__breadcrumb a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.15s;
}
.post-hero__breadcrumb a:hover { color: white; }
.post-hero--no-image .post-hero__breadcrumb,
.post-hero--no-image .post-hero__breadcrumb a { color: rgba(255,255,255,0.55); }

/* Pill tags on hero */
.post-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.post-hero__tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}
.post-hero__tag:hover { opacity: 0.85; }
.post-hero__tag--pillar {
  background: var(--color-primary, #10B981);
  color: white;
}
.post-hero__tag--topic {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.2);
}

/* Title */
.post-hero h1 {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: white !important;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  max-width: 820px;
}

/* Standfirst on hero */
.post-hero__standfirst {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  max-width: 680px;
  margin: 0;
}

/* ── BYLINE BAR ───────────────────────────────────────────── */
.post-byline {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 14px 0;
}
.post-byline__inner {
  max-width: var(--max-content, 1200px);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.post-byline .post-author {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}
.post-byline .post-author__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.post-byline .post-author__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}
.post-byline__divider {
  width: 1px;
  height: 16px;
  background: var(--color-border);
  flex-shrink: 0;
}
.post-byline__item {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}
.post-byline__share {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .post-hero { min-height: 320px; }
  .post-hero--no-image { min-height: 220px; }
  .post-hero__content { padding: 28px 16px 36px; }
  .post-byline__inner { padding: 0 16px; gap: 10px; }
  .post-byline__divider { display: none; }
  .post-byline__share { margin-left: 0; }
}

/* =========================================
   Cape Town Vitals — status board v2
   Single horizontal row of operating-conditions
   columns, like a flight-info display.
   Editorial dark band. Status dots + clean values.
   ========================================= */
.bcpt-vitals {
  --vitals-bg: #0E0F12;
  --vitals-text: #F5F5F4;
  --vitals-text-dim: #9CA3AF;
  --vitals-border: rgba(255, 255, 255, 0.06);
  --vitals-divider: rgba(255, 255, 255, 0.07);
  --vitals-good:    var(--color-primary);
  --vitals-caution: #EAB308;
  --vitals-warn:    #F97316;
  --vitals-alert:   var(--color-accent);
  --vitals-neutral: #6B7280;

  position: relative;
  display: block;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 18px 28px 20px;
  background: var(--vitals-bg);
  color: var(--vitals-text);
  border: 1px solid var(--vitals-border);
  border-radius: 14px;
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.55);
  font-family: var(--font-sans);
}

/* Homepage: overlap the hero so it reads as one composition */
.bcpt-vitals--home {
  margin-top: -56px;
  z-index: 5;
}

/* Guide: tighter band sitting above article body */
.bcpt-vitals--guide {
  max-width: var(--max-article);
  margin: 24px auto 36px;
  padding: 14px 22px 16px;
}

/* ── Header strip ────────────────────────────────────────── */
.bcpt-vitals__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.bcpt-vitals__title {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.bcpt-vitals__overline {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.bcpt-vitals__hed {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--vitals-text);
  letter-spacing: -0.005em;
  line-height: 1;
}

.bcpt-vitals__updated {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--vitals-text-dim);
  white-space: nowrap;
}

.bcpt-vitals__updated time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--vitals-border);
  border-radius: 999px;
}

.bcpt-vitals__updated time::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vitals-good);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45);
  animation: bcpt-vitals-pulse 2.4s ease-in-out infinite;
}

@keyframes bcpt-vitals-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
  50%      { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

/* ── Status row ──────────────────────────────────────────── */
.bcpt-vitals__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: stretch;
}

.bcpt-vitals__pill {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--vitals-divider);
  border-radius: 0;
  transition: background 220ms ease;
}

.bcpt-vitals__pill:first-child { border-left: 0; padding-left: 4px; }
.bcpt-vitals__pill:last-child  { padding-right: 4px; }

.bcpt-vitals__pill:hover {
  background: rgba(255, 255, 255, 0.025);
}

/* Hide legacy nodes — single status-dot system replaces them */
.bcpt-vitals__icon,
.bcpt-vitals__note {
  display: none;
}

.bcpt-vitals__label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vitals-text-dim);
  line-height: 1;
}

.bcpt-vitals__value {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: var(--vitals-text);
}

/* Status dot in front of every value */
.bcpt-vitals__value::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vitals-neutral);
  flex-shrink: 0;
}

.bcpt-vitals__pill--good    .bcpt-vitals__value::before { background: var(--vitals-good); }
.bcpt-vitals__pill--caution .bcpt-vitals__value::before { background: var(--vitals-caution); }
.bcpt-vitals__pill--warn    .bcpt-vitals__value::before { background: var(--vitals-warn); }
.bcpt-vitals__pill--alert   .bcpt-vitals__value::before { background: var(--vitals-alert); }
.bcpt-vitals__pill--neutral .bcpt-vitals__value::before { display: none; }

/* Neutral pills (weather, FX) get no dot — they're informational */

/* ── Responsive: collapse to a horizontal scroll strip ───── */
@media (max-width: 1100px) {
  .bcpt-vitals__grid {
    grid-template-columns: repeat(7, minmax(150px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.18) transparent;
  }
  .bcpt-vitals__pill {
    scroll-snap-align: start;
  }
  .bcpt-vitals__grid::-webkit-scrollbar { height: 4px; }
  .bcpt-vitals__grid::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.18);
    border-radius: 2px;
  }
}

@media (max-width: 768px) {
  .bcpt-vitals--home {
    margin-top: -32px;
    margin-left: 16px;
    margin-right: 16px;
    padding: 14px 18px 16px;
    border-radius: 12px;
  }
  .bcpt-vitals--guide {
    margin-left: 16px;
    margin-right: 16px;
    padding: 12px 18px 14px;
    border-radius: 10px;
  }
  .bcpt-vitals__header {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-bottom: 12px;
  }
  .bcpt-vitals__hed {
    font-size: 13px;
  }
  .bcpt-vitals__updated {
    font-size: 10px;
  }
  .bcpt-vitals__pill {
    padding: 6px 14px;
  }
  .bcpt-vitals__value {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .bcpt-vitals__title {
    gap: 8px;
  }
  .bcpt-vitals__overline {
    font-size: 9px;
  }
  .bcpt-vitals__updated time {
    padding: 4px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bcpt-vitals__updated time::before { animation: none; }
  .bcpt-vitals__pill { transition: none; }
}


/* ══════════════════════════════════════════════════════════════════
   JUMP-TO TABLE OF CONTENTS (bcpt-toc)
   Auto-injected on posts/guides ≥1500 words.
   Desktop: sticky sidebar-ish block. Mobile: collapsible details.
   ══════════════════════════════════════════════════════════════════ */

.bcpt-toc {
  margin: 24px 0 40px;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  clear: both;
}

.bcpt-toc__details {
  background: #FAFAF9;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-left: 3px solid var(--color-primary, #10B981);
  border-radius: 8px;
  padding: 14px 20px;
  transition: box-shadow 220ms ease;
}

.bcpt-toc__details[open] {
  box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 4px 14px rgba(0,0,0,0.04);
}

.bcpt-toc__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  padding: 2px 0;
  user-select: none;
}

.bcpt-toc__summary::-webkit-details-marker { display: none; }
.bcpt-toc__summary::marker { display: none; content: ""; }

.bcpt-toc__overline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent, #FF5C72);
}

.bcpt-toc__caret {
  font-size: 14px;
  color: rgba(17, 17, 17, 0.5);
  transition: transform 220ms ease;
}

.bcpt-toc__details[open] .bcpt-toc__caret {
  transform: rotate(180deg);
}

.bcpt-toc__nav {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(17, 17, 17, 0.06);
}

.bcpt-toc__list,
.bcpt-toc__sublist {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: bcpt-toc;
}

.bcpt-toc__sublist {
  margin-left: 18px;
  padding-left: 12px;
  border-left: 1px solid rgba(17, 17, 17, 0.08);
}

.bcpt-toc__item {
  position: relative;
  padding: 6px 0;
  line-height: 1.4;
}

.bcpt-toc__item--h2 {
  counter-increment: bcpt-toc;
}

.bcpt-toc__item--h2 > .bcpt-toc__link::before {
  content: counter(bcpt-toc, decimal-leading-zero);
  display: inline-block;
  width: 28px;
  margin-right: 8px;
  font-family: var(--font-display, "Space Grotesk"), sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--color-accent, #FF5C72);
  letter-spacing: 0;
}

.bcpt-toc__item--h3 > .bcpt-toc__link {
  font-size: 14px;
  color: rgba(17, 17, 17, 0.7);
}

.bcpt-toc__link {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-ink, #111);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.bcpt-toc__link:hover,
.bcpt-toc__link:focus-visible {
  color: var(--color-accent, #FF5C72);
  border-bottom-color: currentColor;
}

/* Smooth scroll + anchor offset so sticky headers don't hide the target */
html {
  scroll-behavior: smooth;
}

:where(.single-post, .single-guide) h2[id],
:where(.single-post, .single-guide) h3[id] {
  scroll-margin-top: 96px;
}

@media (max-width: 768px) {
  .bcpt-toc {
    margin: 20px 0 32px;
  }
  .bcpt-toc__details {
    padding: 12px 16px;
  }
  .bcpt-toc__link {
    font-size: 14px;
  }
  .bcpt-toc__item--h3 > .bcpt-toc__link {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bcpt-toc__details,
  .bcpt-toc__caret,
  .bcpt-toc__link { transition: none; }
}


/* ══════════════════════════════════════════════════════════════════
   AUTO-INTERNAL-LINKS (bcpt-autolink)
   Programmatic internal linking injected by inc/autolink.php.
   Styled to match the editorial feel — subtle underline, coral on hover.
   ══════════════════════════════════════════════════════════════════ */

.entry-content a.bcpt-autolink,
article a.bcpt-autolink {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(
    transparent 65%,
    rgba(16, 185, 129, 0.22) 65%,
    rgba(16, 185, 129, 0.22) 100%
  );
  background-size: 100% 100%;
  padding: 0 2px;
  border-bottom: 1px solid rgba(16, 185, 129, 0.5);
  transition: background-image 180ms ease, border-color 180ms ease, color 180ms ease;
}

.entry-content a.bcpt-autolink:hover,
.entry-content a.bcpt-autolink:focus-visible,
article a.bcpt-autolink:hover,
article a.bcpt-autolink:focus-visible {
  color: var(--color-accent, #FF5C72);
  border-bottom-color: currentColor;
  background-image: linear-gradient(
    transparent 65%,
    rgba(255, 92, 114, 0.18) 65%,
    rgba(255, 92, 114, 0.18) 100%
  );
}


/* ══════════════════════════════════════════════════════════════════
   AFFILIATE STACK (bcpt-aff-stack)
   Auto-injected "Tools we trust" block at the bottom of guides.
   Editorial card grid with clear sponsored labelling.
   ══════════════════════════════════════════════════════════════════ */

.bcpt-aff-stack {
  margin: 56px 0 32px;
  padding: 32px 28px 28px;
  background: linear-gradient(180deg, #0E0F12 0%, #161A1F 100%);
  border-radius: 16px;
  color: #F7F7F5;
  font-family: var(--font-sans);
  position: relative;
  overflow: hidden;
}

/* Override .article-body h2/h3/p colour rules inside the dark affiliate stack */
.bcpt-aff-stack h2,
.bcpt-aff-stack h3,
.bcpt-aff-stack p,
.bcpt-aff-stack span {
  color: inherit;
}

.bcpt-aff-stack::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    var(--color-primary, #10B981) 0%,
    var(--color-accent, #FF5C72) 100%);
}

.bcpt-aff-stack__head {
  margin-bottom: 22px;
}

.bcpt-aff-stack__overline {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent, #FF5C72);
  margin-bottom: 8px;
}

.bcpt-aff-stack__title {
  font-family: var(--font-display, "Space Grotesk"), sans-serif;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #FFFFFF;
  margin: 0 0 6px;
}

.bcpt-aff-stack__sub {
  font-size: 14px;
  color: rgba(247, 247, 245, 0.7);
  margin: 0;
  max-width: 56ch;
}

.bcpt-aff-stack__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 4px;
}

.bcpt-aff-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.bcpt-aff-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.bcpt-aff-card__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.bcpt-aff-card__icon {
  flex-shrink: 0;
  font-size: 24px;
  line-height: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.bcpt-aff-card__meta {
  flex: 1;
  min-width: 0;
}

.bcpt-aff-card__name {
  font-family: var(--font-display, "Space Grotesk"), sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 4px;
  color: #FFFFFF;
}

.bcpt-aff-card__tag {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(247, 247, 245, 0.7);
  margin: 0;
}

.bcpt-aff-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-primary, #10B981);
  background: transparent;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 8px;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.bcpt-aff-card__cta:hover,
.bcpt-aff-card__cta:focus-visible {
  background: var(--color-primary, #10B981);
  color: #0E0F12;
  border-color: var(--color-primary, #10B981);
}

.bcpt-aff-stack__disclosure {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  line-height: 1.5;
  color: rgba(247, 247, 245, 0.55);
}

@media (max-width: 640px) {
  .bcpt-aff-stack {
    margin: 40px 0 24px;
    padding: 24px 20px 20px;
    border-radius: 12px;
  }
  .bcpt-aff-stack__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .bcpt-aff-card {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bcpt-aff-card { transition: none; }
  .bcpt-aff-card:hover { transform: none; }
}


/* ══════════════════════════════════════════════════════════════════
   CANONICAL HUBS (bcpt-hub)
   /this-week/  /load-shedding-today/  /weekend-nomad/
   ══════════════════════════════════════════════════════════════════ */

/* Let the GP site wrapper go full-width on hub pages so children can bleed.
   Target #page specifically to avoid hitting .inside-header.grid-container
   and .inside-navigation.grid-container in the header. */
.page-hub #page.site.grid-container {
  max-width: none;
  padding: 0;
  overflow-x: hidden;
}

.bcpt-hub {
  padding: 0 0 80px;
  font-family: var(--font-sans);
  color: var(--color-ink, #111);
}

.bcpt-hub__hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, #0E0F12 0%, #1A1F26 100%);
  color: #FFFFFF;
  margin-bottom: 0;
}

/* Vitals widget on hub pages — overlap the hero like the homepage */
.bcpt-vitals-wrap--hub {
  position: relative;
  z-index: 5;
  margin-top: -36px;
  margin-bottom: 16px;
}

.bcpt-hub__overline {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent, #FF5C72);
  margin-bottom: 14px;
}

.bcpt-hub__headline {
  font-family: var(--font-display, "Space Grotesk"), sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 18px;
  max-width: 22ch;
  color: #FFFFFF;
}

.bcpt-hub__sub {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  max-width: 56ch;
}

.bcpt-hub__body {
  padding-top: 56px;
}

.bcpt-hub__section {
  margin: 0 0 56px;
}

.bcpt-hub__h2 {
  font-family: var(--font-display, "Space Grotesk"), sans-serif;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--color-ink, #111);
}

/* Card grid (this-week + weekend-nomad) */
.bcpt-hub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.bcpt-hub__card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.bcpt-hub__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  border-color: rgba(17, 17, 17, 0.14);
}

.bcpt-hub__card-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #F5F5F3;
}

.bcpt-hub__card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bcpt-hub__card-body {
  padding: 18px 20px 22px;
}

.bcpt-hub__card-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.5);
  margin: 0 0 10px;
}

.bcpt-hub__card-title {
  font-family: var(--font-display, "Space Grotesk"), sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.bcpt-hub__card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

.bcpt-hub__card-title a:hover {
  color: var(--color-accent, #FF5C72);
}

.bcpt-hub__card-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(17, 17, 17, 0.68);
  margin: 0;
}

/* Load-shedding status section */
.bcpt-hub__section--status {
  margin-bottom: 40px;
}

.bcpt-hub__status-pill {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 32px 28px;
  background: #F7F7F5;
  border-radius: 14px;
  border-left: 6px solid var(--vitals-good, #10B981);
}

.bcpt-hub__status-pill--stage-1,
.bcpt-hub__status-pill--stage-2 {
  border-left-color: var(--vitals-caution, #FBBF24);
  background: #FFFBEB;
}

.bcpt-hub__status-pill--stage-3,
.bcpt-hub__status-pill--stage-4 {
  border-left-color: var(--vitals-warn, #F59E0B);
  background: #FEF3E7;
}

.bcpt-hub__status-pill--stage-5,
.bcpt-hub__status-pill--stage-6,
.bcpt-hub__status-pill--stage-7,
.bcpt-hub__status-pill--stage-8 {
  border-left-color: var(--vitals-alert, #EF4444);
  background: #FEF2F2;
}

.bcpt-hub__status-label {
  font-family: var(--font-display, "Space Grotesk"), sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--color-ink, #111);
}

.bcpt-hub__status-sub {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(17, 17, 17, 0.72);
  max-width: 50ch;
}

.bcpt-hub__status-note {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(17, 17, 17, 0.62);
  padding: 14px 18px;
  background: #F7F7F5;
  border-radius: 8px;
}

.bcpt-hub__status-note strong {
  color: var(--color-ink, #111);
}

.bcpt-hub__checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.bcpt-hub__checklist li {
  position: relative;
  padding: 14px 18px 14px 44px;
  background: #FFFFFF;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.55;
}

.bcpt-hub__checklist li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 13px;
  width: 22px;
  height: 22px;
  background: var(--color-primary, #10B981);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}

.bcpt-hub__link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.bcpt-hub__link-list li a {
  display: block;
  padding: 12px 16px;
  background: #FFFFFF;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
  color: var(--color-ink, #111);
  text-decoration: none;
  font-weight: 500;
  transition: background 180ms ease, border-color 180ms ease;
}

.bcpt-hub__link-list li a:hover {
  background: #F7F7F5;
  border-color: var(--color-primary, #10B981);
}

@media (max-width: 768px) {
  .bcpt-hub__hero {
    padding: 48px 0 40px;
  }
  .bcpt-hub__body {
    padding-top: 40px;
  }
  .bcpt-hub__section {
    margin-bottom: 40px;
  }
  .bcpt-hub__status-pill {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bcpt-hub__card,
  .bcpt-hub__card-title a,
  .bcpt-hub__link-list li a { transition: none; }
  .bcpt-hub__card:hover { transform: none; }
}


/* ══════════════════════════════════════════════════════════════════
   FAQ BLOCK (bcpt-faq)
   Shortcode-driven FAQ accordion with inline FAQPage JSON-LD.
   ══════════════════════════════════════════════════════════════════ */

.bcpt-faq {
  margin: 56px 0 32px;
  padding: 0;
  font-family: var(--font-sans);
}

.bcpt-faq__head {
  margin-bottom: 24px;
}

.bcpt-faq__overline {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent, #FF5C72);
  margin-bottom: 10px;
}

.bcpt-faq__title {
  font-family: var(--font-display, "Space Grotesk"), sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 8px;
  color: var(--color-ink, #111);
}

.bcpt-faq__sub {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(17, 17, 17, 0.65);
  margin: 0;
  max-width: 56ch;
}

.bcpt-faq__list {
  list-style: none;
  counter-reset: bcpt-faq;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.bcpt-faq__item {
  counter-increment: bcpt-faq;
}

.bcpt-faq__details {
  background: #FFFFFF;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.bcpt-faq__details[open] {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}

.bcpt-faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-family: var(--font-display, "Space Grotesk"), sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.35;
  color: var(--color-ink, #111);
}

.bcpt-faq__q::-webkit-details-marker { display: none; }
.bcpt-faq__q::marker { display: none; content: ""; }

.bcpt-faq__q-text {
  flex: 1;
}

.bcpt-faq__q-text::before {
  content: counter(bcpt-faq, decimal-leading-zero);
  display: inline-block;
  min-width: 28px;
  margin-right: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent, #FF5C72);
  letter-spacing: 0;
  vertical-align: 2px;
}

.bcpt-faq__caret {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-primary, #10B981);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  transition: transform 220ms ease, background 220ms ease;
}

.bcpt-faq__details[open] .bcpt-faq__caret {
  transform: rotate(45deg);
  background: var(--color-primary, #10B981);
  color: #FFFFFF;
}

.bcpt-faq__a {
  padding: 0 22px 20px 60px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(17, 17, 17, 0.78);
}

.bcpt-faq__a p:first-child { margin-top: 0; }
.bcpt-faq__a p:last-child { margin-bottom: 0; }

.bcpt-faq__a a {
  color: var(--color-primary, #10B981);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.bcpt-faq__a a:hover {
  color: var(--color-accent, #FF5C72);
}

@media (max-width: 640px) {
  .bcpt-faq {
    margin: 40px 0 24px;
  }
  .bcpt-faq__q {
    padding: 16px 18px;
    font-size: 15px;
  }
  .bcpt-faq__a {
    padding: 0 18px 18px 46px;
    font-size: 14px;
  }
  .bcpt-faq__q-text::before {
    min-width: 24px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bcpt-faq__details,
  .bcpt-faq__caret { transition: none; }
}

/* ── ADSENSE UNFILLED COLLAPSE ─────────────────────────────────
   When Google AdSense does not return an ad for a slot, it sets
   data-ad-status="unfilled" on the <ins> element. Collapse the
   wrapper so the 2-3rem margin does not leave a visible gap.
   Also covers adblocker / network failure via the .basecpt-ad--empty
   fallback class set by the JS runner in the footer.              */
.basecpt-ad {
  margin: 2rem 0;
  text-align: center;
  min-height: 0;
}
.basecpt-ad--after-content { margin: 3rem 0 1rem; }

ins.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
}

.basecpt-ad:has(ins.adsbygoogle[data-ad-status="unfilled"]),
.basecpt-ad--empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
}

/* ── COOKIE CONSENT ──────────��──────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-surface, #1a1a1a);
  border-top: 1px solid var(--color-border, #2a2a2a);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner__text {
  flex: 1;
  min-width: 200px;
  font-size: 0.875rem;
  color: var(--color-text-secondary, #999);
  line-height: 1.5;
}
.cookie-banner__text a {
  color: var(--color-text, #e8e2da);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.cookie-banner__accept {
  padding: 8px 20px;
  background: var(--color-text, #e8e2da);
  color: var(--color-bg, #14100e);
  border: none;
  border-radius: var(--radius-sm, 4px);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-banner__accept:hover { opacity: 0.9; }
.cookie-banner__decline {
  padding: 8px 16px;
  background: transparent;
  color: var(--color-text-secondary, #999);
  border: 1px solid var(--color-border, #2a2a2a);
  border-radius: var(--radius-sm, 4px);
  font-size: 0.875rem;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-banner__decline:hover { color: var(--color-text, #e8e2da); border-color: var(--color-text-secondary, #999); }
@media (max-width: 480px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__accept, .cookie-banner__decline { flex: 1; text-align: center; }
}
