/* ============================================================
   Esher Surveyors — Blog Article Pages CSS (Redesigned)
   Matches the premium editorial layout shown in design screenshot
   ============================================================ */

/* ============================================================
   HEADER & NAVIGATION OVERRIDES (blog article pages)
   Forces horizontal Flexbox layout on desktop; mobile hamburger
   is handled by style.css @media (max-width: 768px)
   ============================================================ */

/* Reset any list styles that browsers or other rules may apply */
.primary-nav,
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Desktop: single horizontal row, items centred, no wrapping */
@media (min-width: 769px) {
  .primary-nav {
    display: flex !important;        /* override any display:none */
    flex-direction: row !important;  /* horizontal */
    flex-wrap: nowrap;               /* never break to a second line */
    align-items: center;
    gap: 4px;
  }

  /* All nav links sit inline */
  .primary-nav a {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.92); /* ~14:1 on navy — AAA */
    white-space: nowrap;
    border-radius: var(--radius, 8px);
    text-decoration: none;
    transition: color 0.3s ease, background 0.3s ease;
  }
  .primary-nav a:hover,
  .primary-nav a.active {
    color: #f5d778; /* 5.2:1 on dark bg — AA */
    background: rgba(200,169,81,0.12);
  }
  .primary-nav a:focus-visible {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
  }

  /* 'Get a Quote' CTA pushed to the far right with extra left margin */
  .primary-nav .nav-cta {
    margin-left: 16px;
    background: #c8a951;
    color: #1a2744 !important; /* 7.2:1 AAA */
    font-weight: 700;
    padding: 9px 20px;
    border-radius: 8px;
    border: 2px solid #c8a951;
  }
  .primary-nav .nav-cta:hover {
    background: #b89540;
    border-color: #b89540;
    color: #1a2744 !important;
    transform: translateY(-1px);
  }
  .primary-nav .nav-cta:focus-visible {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
  }

  /* Hide the hamburger on desktop */
  .nav-toggle {
    display: none !important;
  }
}

/* ---- Scroll Progress Bar ---- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, #c8a951, #e0c478);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* ---- Back to Top ---- */
#back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #1a2744;
  color: #c8a951;
  border: 2px solid #c8a951;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 500;
}
#back-to-top.visible { opacity: 1; visibility: visible; }
#back-to-top:hover { background: #c8a951; color: #1a2744; transform: translateY(-3px); }
#back-to-top:focus-visible { outline: 3px solid #ffd700; outline-offset: 2px; }

/* ============================================================
   HERO SECTION — Full-width background image, dark overlay,
   content anchored bottom-left (matches screenshot)
   ============================================================ */
.ba-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-top: 72px; /* below fixed header */
  overflow: hidden;
}
.ba-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ba-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}
/* Gradient overlay — light at top, heavier at bottom for legibility */
.ba-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14, 27, 55, 0.30) 0%,
    rgba(14, 27, 55, 0.55) 45%,
    rgba(14, 27, 55, 0.88) 100%
  );
  z-index: 1;
}
.ba-hero-content {
  position: relative;
  z-index: 2;
  padding: 52px 0 48px;
}
.ba-hero-content .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Breadcrumb */
.ba-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.88); /* ~13:1 on dark overlay (AAA) */
  margin-bottom: 14px;
}
.ba-breadcrumb a {
  color: #c8a951;
  text-decoration: none;
  transition: color 0.2s;
}
.ba-breadcrumb a:hover { color: #fff; }
.ba-breadcrumb .sep { color: rgba(255,255,255,0.55); }

/* Category tag pill */
.ba-tag {
  display: inline-block;
  background: #c8a951;
  color: #1a2744;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 30px;
  margin-bottom: 16px;
}

/* Hero H1 */
.ba-hero-content h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.7rem, 3.8vw, 2.9rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.18;
  margin: 0 0 18px;
  max-width: 780px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

/* Meta row: date | read time | author */
.ba-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.88); /* ~13:1 on dark overlay (AAA) */
  font-size: 0.84rem;
}
.ba-meta i {
  color: #c8a951;
  margin-right: 5px;
}
.ba-meta-sep {
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   ARTICLE BODY — two-column layout (content + sidebar)
   ============================================================ */
.ba-body-wrap {
  background: #ffffff;
  padding: 60px 0 80px;
}
.ba-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 60px;
  align-items: start;
}

/* ---- Main Article Content ---- */
.ba-article {
  min-width: 0; /* prevent grid blowout */
}

/* Lead paragraph — gold left border */
.ba-lead {
  font-size: 1.08rem;
  line-height: 1.85;
  color: #333;
  border-left: 4px solid #c8a951;
  padding-left: 22px;
  margin-bottom: 2.4rem;
  font-weight: 400;
}

/* Key Takeaways box */
.ba-key-points {
  background: linear-gradient(135deg, #f4f6fb 0%, #eef0f8 100%);
  border: 1px solid #d6dbe8;
  border-left: 4px solid #1a2744;
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 2.4rem;
}
.ba-key-points h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  color: #1a2744;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ba-key-points h3 i { color: #c8a951; }
.ba-key-points ul {
  list-style: none;
  padding: 0; margin: 0;
}
.ba-key-points li {
  font-size: 0.93rem;
  color: #333;
  line-height: 1.75;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}
.ba-key-points li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #c8a951;
  flex-shrink: 0;
}
.ba-key-points li:last-child { margin-bottom: 0; }

/* Section headings */
.ba-article h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.65rem;
  color: #1a2744;
  margin-top: 2.6rem;
  margin-bottom: 0.9rem;
  padding-top: 1.8rem;
  border-top: 1px solid #eaeaea;
  line-height: 1.25;
}
.ba-article h2:first-of-type {
  margin-top: 1rem;
  border-top: none;
  padding-top: 0;
}
.ba-article h3 {
  font-size: 1.2rem;
  color: #1a2744;
  margin-top: 1.8rem;
  margin-bottom: 0.65rem;
  font-weight: 700;
}
.ba-article h4 {
  font-size: 1rem;
  color: #1a2744;
  margin-top: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

/* Body paragraphs */
.ba-article p {
  font-size: 1rem;
  line-height: 1.88;
  color: #2d3748; /* 12.6:1 on white (AAA) */
  margin-bottom: 1.25rem;
}

/* Lists */
.ba-article ul,
.ba-article ol {
  padding-left: 1.8rem;
  margin-bottom: 1.4rem;
}
.ba-article ul li { list-style: disc; }
.ba-article ol li { list-style: decimal; }
.ba-article li {
  font-size: 1rem;
  line-height: 1.82;
  color: #2d3748; /* 12.6:1 on white (AAA) */
  margin-bottom: 0.5rem;
}
.ba-article strong { color: #1a2744; font-weight: 700; }
.ba-article a { color: #7a5c00; text-decoration: underline; text-underline-offset: 2px; } /* 4.8:1 on white — AA */
.ba-article a:hover { color: #1a2744; }
.ba-article a:focus-visible { outline: 3px solid #0066cc; outline-offset: 2px; }

/* Inline article image */
.ba-article .article-img {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 12px;
  margin: 2rem 0 0.75rem;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}
.ba-article .article-img-caption {
  font-size: 0.82rem;
  color: #5a6474; /* 5.7:1 on white (AA) */
  font-style: italic;
  margin-bottom: 2rem;
  padding-left: 4px;
}

/* Figure element */
.ba-article figure {
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}
.ba-article figure img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}
.ba-article figcaption {
  background: #f7f6f2;
  padding: 12px 18px;
  font-size: 0.82rem;
  color: #4a5568; /* 7.4:1 on #f7f6f2 (AAA) */
  font-style: italic;
  border-top: 1px solid #eaeaea;
}

/* Blockquote */
.ba-article blockquote {
  border-left: 5px solid #c8a951;
  background: #f9f7f2;
  border-radius: 0 10px 10px 0;
  padding: 22px 26px;
  margin: 2rem 0;
  font-size: 1.05rem;
  font-style: italic;
  color: #1a2744;
  line-height: 1.78;
}
.ba-article blockquote cite {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  font-style: normal;
  color: #c8a951;
  font-weight: 600;
}

/* Highlight / callout box */
.ba-callout {
  background: linear-gradient(135deg, #1a2744 0%, #253460 100%);
  border-radius: 14px;
  padding: 28px 32px;
  margin: 2.2rem 0;
  color: #fff;
}
.ba-callout h3,
.ba-callout h4 {
  color: #c8a951;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ba-callout h3 i,
.ba-callout h4 i { color: #c8a951; }
.ba-callout p {
  color: rgba(255,255,255,0.92); /* ~14:1 on dark bg (AAA) */
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.ba-callout p:last-child { margin-bottom: 0; }

/* Article-level callout (old class kept) */
.article-callout {
  background: linear-gradient(135deg, #1a2744 0%, #253460 100%);
  border-radius: 14px;
  padding: 28px 32px;
  margin: 2.2rem 0;
  color: #fff;
}
.article-callout h3 {
  color: #c8a951;
  font-size: 1.05rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-callout h3 i { color: #c8a951; }
.article-callout p {
  color: rgba(255,255,255,0.92); /* ~14:1 on dark bg (AAA) */
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* Comparison / data table */
.ba-table-wrap {
  margin: 1.8rem 0;
  overflow-x: auto;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.ba-table-wrap table,
.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.ba-table-wrap thead,
.comparison-table thead {
  background: #1a2744;
  color: #fff;
}
.ba-table-wrap th,
.comparison-table th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}
.ba-table-wrap td,
.comparison-table td {
  padding: 12px 18px;
  border-bottom: 1px solid #eaeaea;
  color: #2d3748; /* 12.6:1 on white (AAA) */
  vertical-align: top;
}
.ba-table-wrap tr:last-child td,
.comparison-table tr:last-child td { border-bottom: none; }
.ba-table-wrap tr:nth-child(even),
.comparison-table tr:nth-child(even) { background: #f7f6f2; }

/* Decision yes/no boxes */
.decision-framework {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 2rem 0;
}
.decision-item {
  border-radius: 12px;
  padding: 22px;
}
.decision-item h4 {
  font-size: 0.95rem;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid;
  color: inherit;
}
.decision-item ul { padding-left: 1.2rem; margin-bottom: 0; }
.decision-item li { list-style: disc; font-size: 0.9rem; line-height: 1.7; margin-bottom: 6px; color: inherit; }
.decision-item.yes { background: #f0f7f4; border: 1px solid #2e7d32; color: #1b4d20; } /* 7.8:1 on #f0f7f4 (AAA) */
.decision-item.yes h4 { border-color: #2e7d32; }
.decision-item.no  { background: #f7f3ed; border: 1px solid #c8a951; color: #1a2744; }
.decision-item.no h4 { border-color: #c8a951; }

/* FAQ section */
.ba-faq {
  margin: 2.6rem 0;
  border-top: 2px solid #eaeaea;
  padding-top: 2rem;
}
.ba-faq h2 {
  border-top: none !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}
.faq-item {
  border-bottom: 1px solid #eaeaea;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 0;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
  color: #1a2744;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color 0.25s ease;
  line-height: 1.4;
}
.faq-question:hover { color: #c8a951; }
.faq-question:focus-visible { outline: 3px solid #0066cc; outline-offset: 2px; border-radius: 4px; }
.faq-question i { color: #c8a951; flex-shrink: 0; transition: transform 0.3s ease; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}
.faq-answer p {
  padding: 0 0 18px;
  color: #2d3748; /* 12.6:1 on white (AAA) */
  line-height: 1.8;
  font-size: 0.95rem;
  margin: 0;
}
.faq-item.open .faq-answer {
  max-height: 600px;
  opacity: 1;
}

/* Article CTA block (within content) */
.ba-cta-block {
  background: linear-gradient(135deg, #1a2744, #253460);
  border-radius: 16px;
  padding: 36px 40px;
  margin: 2.6rem 0;
  text-align: center;
}
.ba-cta-block h3 {
  color: #c8a951;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  margin-bottom: 10px;
  border: none; padding: 0; margin-top: 0;
}
.ba-cta-block p {
  color: rgba(255,255,255,0.92); /* ~14:1 on dark bg (AAA) */
  margin-bottom: 1.4rem;
  font-size: 0.97rem;
}

/* Article tags */
.ba-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid #eaeaea;
}
.ba-tag-link {
  display: inline-block;
  background: #f4f2ec;
  border: 1px solid #ddd8cc;
  color: #1a2744;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.ba-tag-link:hover {
  background: #c8a951;
  border-color: #c8a951;
  color: #1a2744;
  text-decoration: none;
}

/* Keep old .article-tags class working */
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid #eaeaea; }
.article-tag {
  display: inline-block;
  background: #f4f2ec;
  border: 1px solid #ddd8cc;
  color: #1a2744;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.article-tag:hover { background: #c8a951; border-color: #c8a951; }

/* Related articles row */
.ba-related {
  margin: 2.4rem 0 0;
  border-top: 2px solid #eaeaea;
  padding-top: 2rem;
}
.ba-related h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  color: #1a2744;
  margin-bottom: 1.2rem;
}
.ba-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ba-related-card {
  display: block;
  text-decoration: none;
  background: #f7f6f2;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  padding: 18px;
  transition: all 0.25s ease;
}
.ba-related-card:hover {
  border-color: #c8a951;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.ba-related-card:focus-visible {
  outline: 3px solid #0066cc;
  outline-offset: 2px;
}
.ba-related-cat {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a5c00; /* 4.8:1 on #f7f6f2 (AA) */
  margin-bottom: 7px;
}
.ba-related-card h4 {
  font-size: 0.88rem;
  color: #1a2744;
  line-height: 1.45;
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
}
.ba-related-card:hover h4 { color: #5a4000; } /* dark gold — AA on white */

/* ============================================================
   SIDEBAR — sticky right column
   ============================================================ */
.ba-sidebar {
  position: sticky;
  top: 88px;
}

/* Individual sidebar widget card */
.ba-widget {
  background: #f7f6f2;
  border: 1px solid #e8e4da;
  border-radius: 14px;
  padding: 22px 22px 24px;
  margin-bottom: 22px;
  overflow: hidden;
}

/* Widget heading — gold underline */
.ba-widget h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1a2744;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid #c8a951;
  line-height: 1.3;
}

/* Widget body text */
.ba-widget p {
  font-size: 0.875rem;
  color: #4a5568; /* 7.4:1 on #f7f6f2 (AAA) */
  margin-bottom: 14px;
  line-height: 1.65;
}
.ba-widget p:last-child { margin-bottom: 0; }

/* CTA widget — dark background */
.ba-widget--cta {
  background: linear-gradient(135deg, #1a2744 0%, #253460 100%);
  border-color: transparent;
}
.ba-widget--cta h3 {
  color: #c8a951;
  border-bottom-color: rgba(200,169,81,0.4);
}
.ba-widget--cta p { color: rgba(255,255,255,0.92); } /* ~14:1 on dark bg (AAA) */

/* Sidebar links list */
.ba-sidebar-links {
  list-style: none;
  padding: 0; margin: 0;
}
.ba-sidebar-links li { margin-bottom: 4px; }
.ba-sidebar-links a {
  font-size: 0.875rem;
  color: #1a2744;
  text-decoration: none;
  padding: 7px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #eaeaea;
  transition: color 0.2s ease;
}
.ba-sidebar-links a i { color: #c8a951; font-size: 0.75rem; width: 14px; }
.ba-sidebar-links a:hover { color: #c8a951; }
.ba-sidebar-links a:focus-visible { outline: 3px solid #0066cc; outline-offset: 2px; border-radius: 4px; }
.ba-sidebar-links li:last-child a { border-bottom: none; }

/* Table of Contents widget */
.ba-toc {
  list-style: none;
  padding: 0; margin: 0;
  counter-reset: toc-counter;
}
.ba-toc li { margin-bottom: 2px; }
.ba-toc a {
  font-size: 0.85rem;
  color: #2d3748; /* 12.6:1 on #f7f6f2 (AAA) */
  text-decoration: none;
  padding: 6px 0 6px 4px;
  display: block;
  border-bottom: 1px solid #ede9e0;
  transition: color 0.2s ease, padding-left 0.2s ease;
  line-height: 1.45;
}
.ba-toc a:hover { color: #c8a951; padding-left: 8px; }
.ba-toc a:focus-visible { outline: 3px solid #0066cc; outline-offset: 2px; border-radius: 4px; }
.ba-toc li:last-child a { border-bottom: none; }

/* Sidebar review mini-card */
.ba-sidebar-review {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ede9e0;
}
.ba-sidebar-review:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.ba-sidebar-stars {
  color: #c8a951;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.ba-sidebar-review blockquote {
  font-size: 0.82rem;
  color: #2d3748; /* 12.6:1 on #f7f6f2 (AAA) */
  font-style: italic;
  margin: 0 0 5px;
  padding: 0;
  border: none;
  background: none;
  line-height: 1.55;
}
.ba-sidebar-review cite {
  font-size: 0.75rem;
  color: #4a5568; /* 7.4:1 on #f7f6f2 — was #999 (FAIL) */
  font-style: normal;
  font-weight: 600;
}

/* Buttons (general purpose) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #c8a951;
  color: #1a2744 !important; /* 7.2:1 AAA */
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 8px;
  text-decoration: none !important;
  font-size: 0.92rem;
  transition: all 0.25s ease;
  border: 2px solid #c8a951;
  cursor: pointer;
  gap: 6px;
}
.btn-primary:hover {
  background: #b89540;
  border-color: #b89540;
  color: #1a2744 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,169,81,0.35);
}
.btn-primary:focus-visible {
  outline: 3px solid #ffd700;
  outline-offset: 2px;
}
.btn-primary--full { width: 100%; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fff !important; /* 21:1 on dark bg (AAA) */
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 8px;
  text-decoration: none !important;
  font-size: 0.92rem;
  border: 2px solid rgba(255,255,255,0.75); /* ≥3:1 UI component */
  transition: all 0.25s ease;
  gap: 6px;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}
.btn-secondary:focus-visible {
  outline: 3px solid #ffd700;
  outline-offset: 2px;
}
.btn-sm { padding: 9px 18px; font-size: 0.84rem; }
.btn-full { width: 100%; }

/* ============================================================
   BOTTOM CTA BANNER
   ============================================================ */
.ba-bottom-cta {
  background: linear-gradient(135deg, #1a2744 0%, #253460 100%);
  padding: 72px 0;
  text-align: center;
}
.ba-bottom-cta h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #fff;
  margin-bottom: 14px;
}
.ba-bottom-cta p {
  color: rgba(255,255,255,0.90); /* ~13.5:1 on dark bg (AAA) */
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.ba-bottom-cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER (blog article pages)
   ============================================================ */
#site-footer {
  background: #1a2744;
  color: rgba(255,255,255,0.88); /* ~13:1 on #1a2744 (AAA) */
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.82); /* ~12:1 on #1a2744 (AAA) */
  line-height: 1.75;
  max-width: 280px;
  margin-top: 10px;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-links a {
  color: rgba(255,255,255,0.82); /* ~12:1 on #1a2744 (AAA) */
  text-decoration: none;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: #c8a951; }
.footer-links a i { font-size: 0.72rem; color: #c8a951; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 0;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.72); /* ~9.5:1 on #1a2744 (AA) */
}
.footer-bottom-links {
  display: flex;
  gap: 16px;
}
.footer-bottom-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.72); /* ~9.5:1 on #1a2744 (AA) */
  text-decoration: none;
}
.footer-bottom-links a:hover { color: #c8a951; }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #1a2744;
  color: rgba(255,255,255,0.95); /* ~14.5:1 on #1a2744 (AAA) */
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  z-index: 9990;
  border-top: 1px solid rgba(255,255,255,0.1);
  transform: translateY(0);
  transition: transform 0.3s ease;
}
#cookie-banner.hidden { transform: translateY(100%); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── 1024px — tablet landscape ── */
@media (max-width: 1024px) {
  .ba-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ba-sidebar { position: static; }
  .decision-framework { grid-template-columns: 1fr; }
  .ba-related-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* ── 768px — tablet portrait ── */
@media (max-width: 768px) {
  /* Hero */
  .ba-hero { min-height: 300px; }
  .ba-hero-content { padding: 32px 0 32px; }
  .ba-hero-content .container { padding: 0 20px; }
  .ba-hero-content h1 { font-size: 1.55rem; line-height: 1.25; }
  .ba-breadcrumb { font-size: 0.75rem; }

  /* Body */
  .ba-body-wrap { padding: 32px 0 52px; }
  .ba-grid { padding: 0 20px; gap: 28px; }

  /* Article body */
  .ba-article { font-size: 0.97rem; }
  .ba-article h2 { font-size: 1.35rem; }
  .ba-article h3 { font-size: 1.15rem; }
  .ba-article blockquote { padding: 16px 18px; }
  .ba-article img,
  .ba-article figure img { height: 240px; }

  /* Sidebar */
  .ba-sidebar { width: 100%; }

  /* Related */
  .ba-related-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-desc { max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
  .footer-bottom-links { justify-content: center; }

  /* Bottom CTA */
  .ba-bottom-cta { padding: 48px 20px; }
  .ba-bottom-cta h2 { font-size: 1.5rem; }

  /* Back to top */
  #back-to-top { bottom: 20px; right: 20px; }

  /* Table of contents */
  .ba-toc { font-size: 0.82rem; }

  /* Navigation — inherit from style.css overrides */
  .primary-nav.open a { font-size: 1.05rem; padding: 13px 18px; }
}

/* ── 600px — phones landscape ── */
@media (max-width: 600px) {
  .ba-hero { min-height: 260px; }
  .ba-hero-content { padding: 24px 0 24px; }
  .ba-hero-content h1 { font-size: 1.3rem; }
  .ba-tag { font-size: 0.66rem; padding: 4px 12px; }
  .ba-meta { font-size: 0.76rem; gap: 8px; flex-wrap: wrap; }
  .ba-meta-sep { display: none; }

  .ba-body-wrap { padding: 24px 0 40px; }
  .ba-grid { padding: 0 16px; gap: 24px; }

  /* Article content */
  .ba-article { font-size: 0.95rem; }
  .ba-article h2 { font-size: 1.2rem; margin-top: 1.6rem; }
  .ba-article h3 { font-size: 1.05rem; }
  .ba-article img,
  .ba-article figure img { height: 200px; border-radius: 8px; }
  .ba-article blockquote { padding: 14px 16px; font-size: 0.95rem; }
  .ba-callout,
  .article-callout { padding: 18px 16px; }

  /* Decision framework */
  .decision-framework { grid-template-columns: 1fr; gap: 12px; }

  /* FAQ */
  .faq-question { padding: 12px 14px; font-size: 0.9rem; }
  .faq-answer.open { padding: 12px 14px; }

  /* Buttons */
  .btn-primary, .btn-secondary {
    padding: 12px 20px;
    font-size: 0.88rem;
    min-height: 44px;
  }
  .ba-bottom-cta-btns {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .ba-bottom-cta-btns .btn { width: 100%; max-width: 300px; justify-content: center; }

  /* Sidebar widgets */
  .ba-widget { padding: 18px 16px; }
  .ba-widget h3 { font-size: 0.9rem; }
  .ba-sidebar-review blockquote { font-size: 0.8rem; }

  /* Footer */
  .footer-grid { text-align: center; }
  .footer-links { align-items: center; }
  .ba-bottom-cta h2 { font-size: 1.25rem; }
  .ba-bottom-cta p  { font-size: 0.93rem; }
}

/* ── 480px — small phones portrait ── */
@media (max-width: 480px) {
  .ba-hero { min-height: 240px; margin-top: 60px; }
  .ba-hero-content h1 { font-size: 1.15rem; }
  .ba-breadcrumb { font-size: 0.72rem; gap: 4px; }

  .ba-body-wrap { padding: 20px 0 36px; }
  .ba-grid { padding: 0 12px; }

  /* Meta */
  .ba-meta { gap: 6px; font-size: 0.73rem; }

  /* Article */
  .ba-article { font-size: 0.92rem; line-height: 1.75; }
  .ba-article h2 { font-size: 1.1rem; }
  .ba-article h3 { font-size: 1rem; }
  .ba-article img,
  .ba-article figure img { height: 180px; }

  /* Tables */
  .ba-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .comparison-table { font-size: 0.82rem; }
  .comparison-table th,
  .comparison-table td { padding: 8px 10px; }

  /* Decision */
  .decision-framework { gap: 10px; }
  .decision-item { padding: 16px 14px; }

  /* FAQ */
  .ba-faq { margin-top: 2rem; }
  .faq-question { padding: 11px 12px; font-size: 0.87rem; }

  /* Bottom CTA */
  .ba-bottom-cta { padding: 36px 14px; }
  .ba-bottom-cta h2 { font-size: 1.1rem; }
  .ba-bottom-cta-btns .btn { font-size: 0.85rem; padding: 11px 18px; }

  /* Sidebar */
  .ba-widget { padding: 16px 14px; }

  /* Related */
  .ba-related h2 { font-size: 1.1rem; }
  .ba-related-card { padding: 14px; }
  .ba-related-cat  { font-size: 0.66rem; }
  .ba-related-card h4 { font-size: 0.83rem; }

  /* Cookie banner */
  #cookie-banner { padding: 14px 16px; font-size: 0.82rem; flex-direction: column; align-items: center; gap: 10px; }
  #cookie-banner .btn-sm { width: 100%; max-width: 260px; text-align: center; }
}
