@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@500;600;700;800;900&display=swap');

:root {
  --epc-a: #008054; --epc-b: #19b459; --epc-c: #8dce46; --epc-d: #ffd500;
  --epc-e: #fcaa65; --epc-f: #ef8023; --epc-g: #e9153b;

  --slate-50: #f8fafc; --slate-100: #f1f5f9; --slate-200: #e2e8f0; --slate-300: #cbd5e1;
  --slate-400: #94a3b8; --slate-500: #64748b; --slate-600: #475569; --slate-700: #334155;
  --slate-800: #1e293b; --slate-900: #0f172a;

  --primary: #047857; --primary-light: #10b981; --primary-dark: #022c22;
  --accent: #10b981;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-float: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--slate-50);
  color: var(--slate-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 100px; /* clear floating header */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--slate-900);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 700;
}

a { text-decoration: none; color: var(--primary); transition: color 0.2s ease; }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.bg-white { background: white; }
.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 99px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1rem;
  cursor: pointer; transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); border: none; text-decoration: none;
}
.btn-primary { background: var(--slate-900); color: white; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.btn-primary:hover { background: var(--primary-light); color: white; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3); }
.btn-sm { padding: 8px 20px; font-size: 0.9rem; }

/* Header — Floating Pill */
.site-header { 
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 1000; 
  width: calc(100% - 48px); max-width: 1100px; 
  background: rgba(255, 255, 255, 0.85); 
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); 
  border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 100px; 
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04); 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}
.site-header:hover { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06); background: rgba(255, 255, 255, 0.95); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 24px 0 28px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--slate-900); letter-spacing: -0.03em; white-space: nowrap; flex-shrink: 0; }
.logo-icon-svg { width: 36px; height: 36px; transition: transform 0.2s ease; }
.logo:hover .logo-icon-svg { transform: scale(1.08) rotate(-3deg); }
.logo-text { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--slate-900); letter-spacing: -0.03em; }
.main-nav { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; gap: 6px; }
/* Safari <14.1 flex gap fallback */
.main-nav > * { margin-right: 6px; }
.main-nav > *:last-child { margin-right: 0; }
.main-nav a { color: var(--slate-600); font-weight: 500; font-size: 0.9rem; padding: 8px 16px; border-radius: 100px; transition: all 0.2s ease; white-space: nowrap; }
.main-nav a:hover { color: var(--slate-900); background: rgba(0, 0, 0, 0.05); }
.nav-cta { background: var(--slate-900) !important; color: white !important; padding: 10px 24px !important; font-weight: 700 !important; }
.nav-cta:hover { background: var(--primary) !important; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--slate-900); cursor: pointer; padding: 8px; }

/* Heroes */
.location-hero, .article-header {
  margin-top: -100px; /* Pull under the header */
  padding: 160px 0 80px; 
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--primary-dark) 100%);
  color: white;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.location-hero::before, .article-header::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; 
  background: radial-gradient(circle at 50% -20%, rgba(255,255,255,0.15) 0%, transparent 70%); pointer-events: none;
}
.location-hero h1, .article-header h1 {
  color: white; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 24px;
}
.location-hero p, .article-header p {
  color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 650px; margin: 0 auto 32px;
}
.article-meta-line {
  display: inline-flex; gap: 16px; align-items: center; color: rgba(255,255,255,0.7); font-size: 0.9rem; font-weight: 500;
  background: rgba(255,255,255,0.1); padding: 8px 20px; border-radius: 99px; backdrop-filter: blur(8px);
}
.article-header .updated-date { display: none; } /* Hide old static meta */

/* Breadcrumbs */
.breadcrumb {
  margin-bottom: 32px; font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.6); display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; position: relative; z-index: 10;
}
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: white; }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* In-page Breadcrumb (when not in hero) */
main .breadcrumb, .section > .container > .breadcrumb { justify-content: flex-start; color: var(--slate-500); margin-bottom: 24px; }
main .breadcrumb a, .section > .container > .breadcrumb a { color: var(--slate-600); }
main .breadcrumb a:hover, .section > .container > .breadcrumb a:hover { color: var(--primary); }
main .breadcrumb span, .section > .container > .breadcrumb span { color: var(--slate-300); }

/* --- Search Box (Premium Homepage Style) --- */
.search-box {
  display: flex; background: white; padding: 8px; border-radius: 99px; 
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1); 
  max-width: 640px; margin: 0 auto; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
  position: relative; z-index: 10;
}
.search-box:focus-within { transform: translateY(-2px); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4), 0 0 0 4px rgba(16, 185, 129, 0.3); }
.search-box input {
  flex: 1; border: none; padding: 16px 24px; font-size: 1.125rem; font-family: 'Plus Jakarta Sans', sans-serif; outline: none; background: transparent; color: var(--slate-900); border-radius: 99px 0 0 99px; width: 100%;
}
.search-box input::placeholder { color: var(--slate-400); font-weight: 500; }
.search-box button {
  background: var(--slate-900); color: white; border: none; border-radius: 99px; padding: 0 32px; font-size: 1.05rem; font-weight: 700; cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.search-box button:hover { background: var(--primary-light); }

/* Search Tabs */
.search-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 24px; }
.search-tab { 
  background: transparent; border: none; color: white; font-size: 1rem; font-weight: 600; padding: 12px 24px; border-radius: 99px; cursor: pointer; transition: all 0.2s; opacity: 0.7; font-family: 'Plus Jakarta Sans', sans-serif; 
}
.search-tab.active { background: rgba(255,255,255,0.15); opacity: 1; backdrop-filter: blur(8px); }
.search-tab:hover:not(.active) { opacity: 1; background: rgba(255,255,255,0.05); }

/* Filter Bar */
.filter-bar { background: white; border-bottom: 1px solid var(--slate-200); position: sticky; top: 80px; z-index: 90; padding: 16px 0; box-shadow: var(--shadow-sm); }
.filter-bar-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.filter-group { display: flex; align-items: center; gap: 12px; }
.filter-label { font-size: 0.85rem; font-weight: 600; color: var(--slate-500); text-transform: uppercase; letter-spacing: 0.05em; }
.filter-select { padding: 8px 32px 8px 16px; border-radius: 8px; border: 1px solid var(--slate-200); font-family: 'Inter', sans-serif; font-size: 0.95rem; color: var(--slate-800); background: var(--slate-50) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" stroke="%23475569" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 6l4 4 4-4"/></svg>') no-repeat right 12px center; appearance: none; cursor: pointer; }
.filter-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1); }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip { padding: 6px 16px; border-radius: 99px; border: 1px solid var(--slate-200); background: white; color: var(--slate-600); font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 6px; }
.filter-chip:hover { border-color: var(--slate-300); background: var(--slate-50); }
.filter-chip.active { background: var(--slate-900); color: white; border-color: var(--slate-900); }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; }
.chip-dot.A { background: var(--epc-a); }
.chip-dot.B { background: var(--epc-b); }
.chip-dot.C { background: var(--epc-c); }
.chip-dot.D { background: var(--epc-d); }
.chip-dot.E { background: var(--epc-e); }
.chip-dot.F { background: var(--epc-f); }
.chip-dot.G { background: var(--epc-g); }

/* Guide / Article Layout (Think Medium/Stripe) */
.article-page main.section { padding: 0 0 96px; background: white; } /* top padding comes from .article-layout wrapper */
.article-content { max-width: 720px; margin: 0 auto; font-size: 1.125rem; color: var(--slate-700); }
.article-content h2 { font-size: 2rem; margin: 48px 0 24px; color: var(--slate-900); }
.article-content h3 { font-size: 1.5rem; margin: 32px 0 16px; color: var(--slate-900); }
.article-content p { margin-bottom: 24px; }
.article-content ul, .article-content ol { margin-bottom: 24px; padding-left: 24px; }
.article-content li { margin-bottom: 12px; }
.article-content li::marker { color: var(--primary); font-weight: 700; }
.article-content a:not(.btn) { color: var(--primary); font-weight: 500; border-bottom: 1px solid transparent; }
.article-content a:not(.btn):hover { border-bottom-color: var(--primary); }

.article-content blockquote {
  font-size: 1.25rem; font-weight: 500; font-style: italic; color: var(--slate-900);
  margin: 40px 0; padding: 24px 32px; border-left: 4px solid var(--primary);
  background: linear-gradient(to right, rgba(16,185,129,0.05), transparent); border-radius: 0 16px 16px 0;
}

/* Stylish Callout Boxes */
.cta-box {
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--primary-dark) 100%);
  color: white; padding: 48px; border-radius: 24px; margin: 48px 0; text-align: center;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.2); position: relative; overflow: hidden;
}
.cta-box::before { content:''; position:absolute; top:0; left:0; width:100%; height:100%; background: radial-gradient(circle at 100% 0%, rgba(255,255,255,0.1) 0%, transparent 50%); pointer-events: none; }
.cta-box h3 { color: white; font-size: 1.75rem; margin-bottom: 16px; position: relative; z-index: 2; }
.cta-box p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 32px; position: relative; z-index: 2; }
.cta-box .btn-primary { background: white; color: var(--slate-900); position: relative; z-index: 2; }
.cta-box .btn-primary:hover { background: var(--primary-light); color: white; }

/* Article Layout Grid (Desktop TOC) */
@media (min-width: 1024px) {
  /* Scope grid ONLY to the article-layout div — NOT every .container (that breaks header/hero) */
  .article-page .article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 64px; align-items: start; }
  .article-content { margin: 0; }
  .article-sidebar { display: block; position: sticky; top: 100px; }
}

/* TOC Styling */
.toc { background: var(--slate-50); padding: 24px; border-radius: 16px; border: 1px solid var(--slate-200); }
.toc h4 { font-size: 1.1rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-900); }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: 12px; }
.toc a { display: block; color: var(--slate-600); font-size: 0.95rem; font-weight: 500; transition: all 0.2s; }
.toc a:hover { color: var(--primary); transform: translateX(4px); }

/* Rating Badges */
.rating-badge { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px; font-weight: 800; color: white; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.9rem; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.rating-badge.A { background: var(--epc-a); }
.rating-badge.B { background: var(--epc-b); }
.rating-badge.C { background: var(--epc-c); }
.rating-badge.D { background: var(--epc-d); }
.rating-badge.E { background: var(--epc-e); }
.rating-badge.F { background: var(--epc-f); }
.rating-badge.G { background: var(--epc-g); }

/* FAQ Accordion */
.faq-list { display: flex; flex-direction: column; gap: 16px; margin: 32px 0; }
.faq-item { background: white; border: 1px solid var(--slate-200); border-radius: 16px; overflow: hidden; transition: all 0.3s ease; }
.faq-item:hover { border-color: var(--slate-300); box-shadow: var(--shadow-sm); }
.faq-question { width: 100%; text-align: left; padding: 24px; background: transparent; border: none; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--slate-900); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '+'; font-size: 1.5rem; font-weight: 400; color: var(--slate-400); transition: transform 0.3s ease; }
.faq-question[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.faq-answer-inner { padding: 0 24px 24px; color: var(--slate-600); font-size: 1.05rem; line-height: 1.6; }
/* Pure CSS toggle fallback */
.faq-item:hover .faq-answer, .faq-item:focus-within .faq-answer { max-height: 600px; } 
.faq-item:hover .faq-question::after, .faq-item:focus-within .faq-question::after { transform: rotate(45deg); color: var(--primary); }

/* Council / Location Stats */
.location-stats { display: flex; justify-content: center; gap: 24px; margin-top: 48px; flex-wrap: wrap; position: relative; z-index: 10; }
.location-stat {
  background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 20px; padding: 24px; width: 180px; text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1); transition: transform 0.3s ease;
}
.location-stat:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.15); }
.stat-val { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 2.5rem; font-weight: 800; color: white; line-height: 1; margin-bottom: 8px; }
.stat-lbl { font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.8); text-transform: uppercase; letter-spacing: 0.05em; }

/* EPC Bar Chart — Beautiful animated tangible bars */
.epc-chart { display: flex; flex-direction: column; gap: 10px; margin: 48px 0; background: white; padding: 40px; border-radius: 24px; border: 1px solid var(--slate-200); box-shadow: var(--shadow-md); }
.epc-bar { 
  display: flex; align-items: center; justify-content: space-between; 
  padding: 0 24px; height: 56px; border-radius: 12px; 
  color: white; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.3rem;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.3), inset 0 -4px 6px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative; overflow: hidden;
}
.epc-bar::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%; background: linear-gradient(rgba(255,255,255,0.2), transparent); pointer-events: none; }
.epc-bar:hover { filter: brightness(1.1); transform: scaleX(1.02); transform-origin: left; box-shadow: inset 0 2px 4px rgba(255,255,255,0.4), inset 0 -4px 6px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.1); }
.epc-bar.active { transform: scale(1.03); transform-origin: left; box-shadow: 0 0 0 4px white, 0 0 0 6px var(--slate-900), 0 15px 30px rgba(0,0,0,0.2); z-index: 10; }
.epc-bar.active::before { content: '★ CURRENT'; position: absolute; right: -24px; top: 50%; transform: translateY(-50%); background: var(--slate-900); color: white; font-size: 0.75rem; padding: 6px 32px 6px 12px; border-radius: 99px; letter-spacing: 0.05em; }

.epc-bar[data-rating="A"] { background: var(--epc-a); width: 40%; }
.epc-bar[data-rating="B"] { background: var(--epc-b); width: 50%; }
.epc-bar[data-rating="C"] { background: var(--epc-c); width: 60%; }
.epc-bar[data-rating="D"] { background: var(--epc-d); width: 70%; }
.epc-bar[data-rating="E"] { background: var(--epc-e); width: 80%; }
.epc-bar[data-rating="F"] { background: var(--epc-f); width: 90%; }
.epc-bar[data-rating="G"] { background: var(--epc-g); width: 100%; }
.bar-label { font-size: 1.6rem; text-shadow: 0 2px 4px rgba(0,0,0,0.2); display: flex; align-items: center; gap: 8px; }
.bar-range { font-size: 1rem; font-weight: 600; opacity: 0.9; }

/* Featured Councils Grid */
.featured-councils { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin: 40px 0; }
.featured-council { 
  display: flex; align-items: center; justify-content: space-between; 
  background: white; padding: 24px 32px; border-radius: 20px; 
  text-decoration: none; color: var(--slate-900); font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.25rem;
  border: 1px solid var(--slate-200); box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.featured-council:hover { 
  transform: translateY(-4px); box-shadow: var(--shadow-float); border-color: var(--primary-light); color: var(--primary);
}
.fc-arrow { color: var(--slate-400); transition: transform 0.3s ease; }
.featured-council:hover .fc-arrow { transform: translateX(6px); color: var(--primary); }

/* Blog Grid & Cards */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; margin-top: 48px; }
.blog-card { 
  background: white; border-radius: 24px; padding: 32px; text-decoration: none; color: var(--slate-800); 
  border: 1px solid var(--slate-200); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; flex-direction: column; position: relative; top: 0;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-float); border-color: var(--primary-light); }
.blog-tag { display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--primary-dark); background: rgba(16, 185, 129, 0.15); padding: 6px 12px; border-radius: 99px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; align-self: flex-start; }
.blog-card h3 { font-size: 1.5rem; margin-bottom: 12px; color: var(--slate-900); transition: color 0.2s; }
.blog-card:hover h3 { color: var(--primary); }
.blog-card p { color: var(--slate-600); flex-grow: 1; margin-bottom: 24px; }
.blog-meta { display: flex; gap: 16px; font-size: 0.9rem; color: var(--slate-500); font-weight: 500; border-top: 1px solid var(--slate-100); padding-top: 16px; }

.blog-featured { 
  grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; 
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--primary-dark) 100%); 
  border-radius: 32px; padding: 48px; text-decoration: none; color: white; 
  transition: all 0.3s ease; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.2);
}
.blog-featured:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -15px rgba(0,0,0,0.3); }
.blog-featured h3 { font-size: 2.25rem; color: white; margin-bottom: 16px; }
.blog-featured p { color: rgba(255,255,255,0.85); font-size: 1.15rem; margin-bottom: 32px; }
.blog-featured .blog-tag { background: rgba(255,255,255,0.15); color: white; }
.blog-featured .blog-meta { border-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }

.blog-article h1 { font-size: 3rem; margin-bottom: 24px; }
.blog-meta-top { display: flex; gap: 24px; margin-bottom: 48px; font-weight: 500; color: var(--slate-500); align-items: center; border-bottom: 1px solid var(--slate-200); padding-bottom: 24px; }
.blog-tag-inline { font-weight: 700; color: var(--primary-dark); background: rgba(16, 185, 129, 0.15); padding: 6px 12px; border-radius: 99px; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; }

/* Search Results Styling */
.results-header { margin-bottom: 24px; font-size: 1.1rem; font-weight: 500; color: var(--slate-600); }
.results-count { font-weight: 600; color: var(--slate-900); }
.no-results { text-align: center; padding: 64px 24px; background: white; border-radius: 24px; border: 1px dashed var(--slate-300); color: var(--slate-600); font-size: 1.1rem; box-shadow: var(--shadow-sm); }

/* Property Result Card */
.property-card { display: flex; align-items: center; justify-content: space-between; background: white; padding: 24px; border-radius: 16px; border: 1px solid var(--slate-200); margin-bottom: 16px; transition: all 0.2s; box-shadow: var(--shadow-sm); }
.property-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--slate-300); }
.prop-address { font-weight: 600; font-size: 1.1rem; color: var(--slate-900); margin-bottom: 4px; }
.prop-details { font-size: 0.9rem; color: var(--slate-500); }
.prop-rating { font-size: 1.5rem; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 800; color: white; text-shadow: 0 1px 2px rgba(0,0,0,0.2); } 

/* Additional Details for Blog/Article Layouts */
.change-box { background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 16px; padding: 24px; margin: 32px 0; border-left: 4px solid var(--primary); }
.change-box h4 { margin-bottom: 12px; font-size: 1.2rem; }

/* Network Banner */
.network-banner { background: var(--slate-900); color: white; padding: 48px 0; text-align: center; }
.network-banner h3 { color: white; font-size: 1.25rem; margin-bottom: 24px; opacity: 0.8; }
.network-links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.network-link { background: rgba(255,255,255,0.1); padding: 12px 24px; border-radius: 99px; color: white; font-weight: 600; transition: all 0.2s; border: 1px solid rgba(255,255,255,0.05); text-decoration: none; }
.network-link:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); color: white; }

/* Footer */
.site-footer { background: white; border-top: 1px solid var(--slate-200); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand p { color: var(--slate-500); font-size: 0.95rem; max-width: 300px; margin-top: 16px; }
.footer-col h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.1rem; color: var(--slate-900); margin-bottom: 20px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: var(--slate-600); font-size: 0.95rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }

/* Responsive adjustments */
/* Tighter nav between 1080px–1300px so items don't wrap — use high specificity to beat inline CSS */
@media (min-width: 1081px) and (max-width: 1300px) {
  .header-inner .main-nav a { padding: 6px 10px !important; font-size: 0.82rem !important; }
  .header-inner .nav-cta { padding: 8px 16px !important; font-size: 0.82rem !important; }
}

/* Hide nav links on anything under 1080px — too many items for pill nav */
@media (max-width: 1080px) {
  .nav-links, .main-nav { display: none !important; }
  .nav-toggle, .mobile-menu-btn { display: block !important; }
  
  /* Mobile menu when toggled open */
  .nav-links.active, .main-nav.active, .main-nav.open {
    display: flex !important;
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1100px;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 24px;
    gap: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 99;
  }
  .nav-links.active a, .main-nav.active a, .main-nav.open a {
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 1.05rem;
  }
  .nav-links.active a:hover, .main-nav.active a:hover, .main-nav.open a:hover {
    background: var(--slate-100);
  }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 16px; }
  
  .location-hero h1, .article-header h1 { font-size: 2.25rem; }
  .location-hero, .article-header { padding: 140px 0 60px; }
  
  .blog-featured { grid-template-columns: 1fr; padding: 32px; }
  .blog-featured .epc-chart { display: none; } /* Hide complex graphic on mobile for space */
  .blog-article h1 { font-size: 2.25rem; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  
  .filter-bar-inner { flex-direction: column; align-items: stretch; }
  .filter-group { flex-direction: column; align-items: flex-start; }
  
  .search-box { flex-direction: column; border-radius: 24px; padding: 16px; gap: 12px; }
  .search-box input { border-radius: 12px; background: var(--slate-50); width: 100%; }
  .search-box button { width: 100%; padding: 16px; border-radius: 12px; }
  
  .article-content blockquote { border-radius: 16px; padding: 20px; border-left: none; border-top: 4px solid var(--primary); background: rgba(16,185,129,0.05); }
}


/* GBE Integration Banners */
.gbe-return-banner { background: var(--slate-900); color: white; padding: 16px 0; margin-top: -36px; margin-bottom: 36px; position: relative; z-index: 10; border-radius: 16px; box-shadow: var(--shadow-md); }
.gbe-return-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.gbe-return-left { display: flex; align-items: center; gap: 16px; }
.gbe-return-icon { font-size: 2rem; background: rgba(255,255,255,0.1); width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px; }
.gbe-return-left strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.gbe-return-sub { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.gbe-return-banner .btn-primary { background: white; color: var(--slate-900); white-space: nowrap; }

.return-banner { background: linear-gradient(135deg, var(--epc-a) 0%, var(--primary-dark) 100%); color: white; padding: 24px; border-radius: 16px; margin-bottom: 32px; box-shadow: var(--shadow-md); }
.return-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.return-icon { font-size: 2.5rem; }
.return-content { flex: 1; }
.return-content strong { display: block; font-size: 1.25rem; margin-bottom: 4px; font-family: 'Plus Jakarta Sans', sans-serif; }
.return-content span { color: rgba(255,255,255,0.9); font-size: 1rem; }
.return-banner .btn { background: white; color: var(--slate-900); white-space: nowrap; font-size: 1rem; padding: 12px 24px; }

/* ============================================================
   SEARCH RESULTS — Missing styles (added 2026-02-27)
   Covers: hero, result cards, area stats, skeleton, improve
   ============================================================ */

/* CSS variable aliases for app.js */
:root {
  --clr-accent: #10b981;
  --clr-text-light: var(--slate-500);
  --clr-rating-a: var(--epc-a);
  --clr-rating-b: var(--epc-b);
  --clr-rating-c: var(--epc-c);
  --clr-rating-d: var(--epc-d);
  --clr-rating-e: var(--epc-e);
  --clr-rating-f: var(--epc-f);
  --clr-rating-g: var(--epc-g);
}

/* Search page hero (dark banner with search box) */
.hero {
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--primary-dark) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% -10%, rgba(255,255,255,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: white; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; }
.hero .breadcrumb { color: rgba(255,255,255,0.6); }
.hero .breadcrumb a { color: rgba(255,255,255,0.8); }
.hero .breadcrumb span { color: rgba(255,255,255,0.35); }

/* Skeleton loading */
.skeleton-card {
  display: flex; align-items: center; gap: 20px;
  background: white; padding: 24px; border-radius: 16px;
  border: 1px solid var(--slate-100); margin-bottom: 16px;
}
.skeleton-pulse {
  background: linear-gradient(90deg, var(--slate-100) 25%, var(--slate-200) 50%, var(--slate-100) 75%);
  background-size: 200% 100%;
  animation: pulse 1.5s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-badge { width: 52px; height: 52px; flex-shrink: 0; border-radius: 12px; }
.skeleton-line { height: 14px; border-radius: 8px; margin-bottom: 10px; }
.skeleton-line.w75 { width: 75%; }
.skeleton-line.w50 { width: 50%; }
.skeleton-line.w30 { width: 30%; }
.skeleton-meta { display: flex; gap: 12px; margin-left: auto; }

/* Area stats bar */
.area-stats-bar {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.area-stats-header { margin-bottom: 24px; }
.area-stats-header h3 { font-size: 1.25rem; margin-bottom: 6px; }
.area-stats-header p { color: var(--slate-500); font-size: 0.95rem; }
.rating-breakdown { display: flex; flex-direction: column; gap: 10px; }
.breakdown-row { display: flex; align-items: center; gap: 12px; }
.breakdown-bar-track { flex: 1; height: 20px; background: var(--slate-100); border-radius: 99px; overflow: hidden; }
.breakdown-bar-fill {
  height: 100%; border-radius: 99px; min-width: 4px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.breakdown-bar-fill.A { background: var(--epc-a); }
.breakdown-bar-fill.B { background: var(--epc-b); }
.breakdown-bar-fill.C { background: var(--epc-c); }
.breakdown-bar-fill.D { background: var(--epc-d); }
.breakdown-bar-fill.E { background: var(--epc-e); }
.breakdown-bar-fill.F { background: var(--epc-f); }
.breakdown-bar-fill.G { background: var(--epc-g); }
.breakdown-count { font-size: 0.85rem; font-weight: 600; color: var(--slate-500); min-width: 72px; text-align: right; }
.rating-badge.mini { width: 20px; height: 20px; font-size: 0.65rem; border-radius: 4px; }

/* Area comparison widget */
.area-comparison {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 24px;
}
.area-comparison h3 { font-size: 1.1rem; margin-bottom: 20px; color: var(--slate-900); }
.comparison-bars { display: flex; flex-direction: column; gap: 12px; }
.comparison-row { display: flex; align-items: center; gap: 16px; }
.comparison-label { min-width: 100px; font-size: 0.9rem; font-weight: 600; color: var(--slate-600); }
.comparison-track { flex: 1; height: 28px; background: var(--slate-200); border-radius: 99px; overflow: hidden; }
.comparison-fill {
  height: 100%; border-radius: 99px; display: flex; align-items: center; padding-left: 12px;
  font-size: 0.75rem; font-weight: 800; color: white;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.comparison-value { min-width: 56px; font-size: 0.9rem; font-weight: 700; text-align: right; }

/* Result cards */
.results-list { display: flex; flex-direction: column; gap: 16px; }

.result-wrapper { display: flex; flex-direction: column; gap: 0; }

.result-card-enhanced {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.result-card-enhanced:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--slate-300);
}
.result-card-enhanced.low-rated {
  border-color: #fde68a;
  background: #fffdf0;
}
.result-card-enhanced.low-rated:hover {
  border-color: #fbbf24;
}

.result-card-top {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.result-card-rating { flex-shrink: 0; }
.result-card-rating .rating-badge {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.result-card-body { flex: 1; min-width: 0; }
.result-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.result-card-details { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.detail-item { font-size: 0.85rem; color: var(--slate-500); display: flex; align-items: center; gap: 4px; font-weight: 500; }
.detail-icon { font-size: 0.9rem; }
.result-energy-costs { font-size: 0.9rem; color: var(--slate-700); font-weight: 500; margin-top: 4px; }
.savings-tag {
  display: inline-block;
  background: rgba(16, 185, 129, 0.12);
  color: var(--epc-a);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 99px;
  margin-left: 8px;
}
.result-card-actions { flex-shrink: 0; display: flex; align-items: flex-start; gap: 8px; }
.result-share-btn {
  background: none;
  border: 1px solid var(--slate-200);
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-500);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.result-share-btn:hover { border-color: var(--slate-400); color: var(--slate-700); background: var(--slate-50); }
.result-share-btn.share-copied { border-color: var(--epc-a); color: var(--epc-a); }

/* Rating progress bar */
.rating-visual { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--slate-100); }
.rating-bar-container { display: flex; align-items: center; gap: 12px; }
.rating-bar-labels { font-size: 0.75rem; color: var(--slate-400); font-weight: 600; white-space: nowrap; }
.rating-bar-track {
  flex: 1; height: 12px; border-radius: 99px; background: var(--slate-100);
  position: relative; overflow: visible;
}
.rating-bar-spectrum {
  position: absolute; inset: 0; border-radius: 99px;
  background: linear-gradient(to right, var(--epc-g), var(--epc-f), var(--epc-e), var(--epc-d), var(--epc-c), var(--epc-b), var(--epc-a));
  opacity: 0.35;
}
.rating-bar-marker {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.rating-bar-marker.potential { opacity: 0.6; }
.rating-bar-legend { display: flex; gap: 20px; margin-top: 10px; }
.legend-item { font-size: 0.8rem; color: var(--slate-500); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.potential-dot { opacity: 0.6; }

/* Improve bar (inline CTA below low-rated cards) */
.improve-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-top: none;
  border-radius: 0 0 20px 20px;
  padding: 14px 28px;
  cursor: pointer;
  transition: background 0.2s;
  gap: 16px;
}
.improve-bar:hover { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); }
.improve-bar-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.improve-bar-arrow { font-size: 1rem; font-weight: 800; color: var(--slate-700); letter-spacing: 0.05em; }
.improve-bar-savings { font-size: 0.9rem; color: var(--slate-600); font-weight: 500; }
.improve-bar-savings strong { color: var(--epc-a); }

/* Improve panel */
.improve-panel {
  background: white;
  border: 1px solid var(--slate-200);
  border-top: none;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.improve-panel.open { animation: slideDown 0.25s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.improve-panel-inner { padding: 28px; }
.improve-panel-header { margin-bottom: 24px; }
.improve-panel-header h3 { font-size: 1.25rem; margin-bottom: 8px; }
.improve-panel-header p { color: var(--slate-600); }
.improve-panel-details { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; padding: 20px; background: var(--slate-50); border-radius: 12px; }
.improve-detail { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9rem; color: var(--slate-700); }
.improve-detail-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }

.improve-panel-costs { margin-bottom: 24px; }
.cost-compare {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--slate-50); border-radius: 16px; padding: 20px;
}
.cost-current, .cost-potential, .cost-saving {
  display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; min-width: 80px;
}
.cost-arrow { font-size: 1.5rem; color: var(--slate-400); }
.cost-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-500); }
.cost-value { font-size: 1.3rem; font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; color: var(--slate-900); }
.cost-green { color: var(--epc-a) !important; }
.cost-accent { color: var(--clr-accent) !important; }

.improve-panel-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.inline-lead-form { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--slate-200); }
.inline-lead-form h4 { font-size: 1.1rem; margin-bottom: 16px; }
.lead-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.lead-field { display: flex; flex-direction: column; gap: 6px; }
.lead-field label { font-size: 0.85rem; font-weight: 600; color: var(--slate-700); }
.lead-field input { padding: 10px 16px; border: 1px solid var(--slate-200); border-radius: 10px; font-family: 'Inter', sans-serif; font-size: 0.95rem; color: var(--slate-900); background: var(--slate-50); }
.lead-field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(16,185,129,0.1); background: white; }
.lead-checkboxes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.lead-check { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--slate-700); cursor: pointer; }
.lead-check input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--primary); }
.lead-privacy { font-size: 0.8rem; color: var(--slate-400); margin: 12px 0; }
.btn-accent { background: var(--clr-accent); color: white; }
.btn-accent:hover { background: var(--primary); color: white; transform: translateY(-2px); }
.btn-outline {
  background: none; border: 2px solid var(--slate-300); color: var(--slate-700);
  padding: 10px 22px; border-radius: 99px; font-weight: 700; font-size: 0.9rem;
  cursor: pointer; transition: all 0.2s; font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn-outline:hover { border-color: var(--slate-500); color: var(--slate-900); background: var(--slate-50); }
.lead-success { text-align: center; padding: 32px 16px; }
.lead-success .success-icon { font-size: 3rem; margin-bottom: 16px; }
.lead-success h4 { font-size: 1.3rem; margin-bottom: 8px; }
.lead-success p { color: var(--slate-600); margin-bottom: 8px; }

/* Contextual CTAs */
.contextual-cta {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 28px 32px; border-radius: 20px;
  margin-bottom: 20px; border: 1px solid;
}
.contextual-cta .cta-icon { font-size: 2rem; flex-shrink: 0; }
.contextual-cta .cta-content { flex: 1; }
.contextual-cta h3 { font-size: 1.15rem; margin-bottom: 8px; }
.contextual-cta p { font-size: 0.95rem; color: var(--slate-600); margin-bottom: 16px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-warning { background: #fffbeb; border-color: #fde68a; }
.cta-warning h3 { color: #92400e; }
.cta-landlord { background: #fef2f2; border-color: #fecaca; }
.cta-landlord h3 { color: #991b1b; }
.cta-improve { background: linear-gradient(135deg, var(--slate-900) 0%, var(--primary-dark) 100%); border-color: transparent; color: white; }
.cta-improve h3 { color: white; }
.cta-improve p { color: rgba(255,255,255,0.8); }
.cta-improve .btn-accent { background: white; color: var(--slate-900); }
.cta-improve .btn-accent:hover { background: var(--primary-light); color: white; }

/* GBE auto-return CTA */
.gbe-continue-cta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--primary-dark) 100%);
  color: white; padding: 28px 32px; border-radius: 20px; margin-top: 24px;
  box-shadow: var(--shadow-lg);
}
.gbe-auto-return-icon { font-size: 2.5rem; flex-shrink: 0; }
.gbe-continue-cta .cta-text { flex: 1; }
.gbe-continue-cta .cta-text strong { display: block; font-size: 1.1rem; margin-bottom: 4px; color: white; }
.gbe-continue-cta .cta-text span { color: rgba(255,255,255,0.8); font-size: 0.9rem; }
.gbe-continue-cta .cta-text a { color: var(--clr-accent); }

/* Responsive — search results */
@media (max-width: 640px) {
  .result-card-top { gap: 12px; }
  .result-card-rating .rating-badge { width: 40px; height: 40px; font-size: 1.1rem; }
  .result-card-body h3 { font-size: 0.95rem; }
  .result-card-actions { display: none; }
  .improve-bar { padding: 12px 16px; flex-direction: column; align-items: flex-start; }
  .contextual-cta { flex-direction: column; padding: 20px; }
  .lead-form-grid { grid-template-columns: 1fr; }
  .cost-compare { flex-direction: column; }
  .comparison-label { min-width: 72px; font-size: 0.8rem; }
  .area-comparison { padding: 20px; }
  .area-stats-bar { padding: 20px; }
}

/* Article page extras */
.article-hero { margin-top: -100px; } /* Pull under floating header (like .location-hero) */

/* Scroll progress bar (created by article.js) */
.article-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--primary-light);
  z-index: 9999;
  width: 0;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* TOC active state */
.toc li.toc-active > a,
.toc li.toc-active a {
  color: var(--primary) !important;
  font-weight: 700;
}

/* ============================================================
   Safari / WebKit compatibility fixes
   ============================================================ */

/* Safari sticky sidebar (-webkit-sticky still needed for some versions) */
.article-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 100px;
}

/* Safari flex -webkit- prefixes for older versions */
.search-box,
.filter-bar-inner,
.result-card-top,
.header-inner {
  display: -webkit-flex;
  display: flex;
}

/* Safari: ensure header stays as flex, never overridden to grid */
.site-header .header-inner {
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-align-items: center !important;
  align-items: center !important;
  -webkit-justify-content: space-between !important;
  justify-content: space-between !important;
}
