/*
 * Editorial Suite Pro – Main Stylesheet
 * All colours reference CSS custom properties injected dynamically from settings.
 * Zero hardcoded hex values here (except the base defaults if vars are missing).
 *
 * Structure:
 *  01. CSS Variables (fallbacks only — real values come from PHP)
 *  02. Floating Island Header
 *  03. Two-Tone Logo
 *  04. Navigation & Search Trigger
 *  05. Mobile Header (≤980px)
 *  06. Search Modal
 *  07. Breadcrumbs
 *  08. Deal Announcement Bar
 *  09. FTC Disclosure
 *  10. E-E-A-T Byline Card
 *  11. Floating TOC Rail
 *  12. Ad Slots (overflow & collapse)
 *  13. Content Components (Scorecard, Verdict, Pros/Cons, Specs, Star Rating)
 *  14. Deal / Sticky Buy Bar
 *  15. Smart Header Animations
 *  16. Utility & Responsive
 */

/* ═══════════════════════════════════════════════════════════════════
   01. CSS Variables (fallback values — real values injected by PHP)
   ═══════════════════════════════════════════════════════════════════ */
:root {
  --es-primary:       #0f3d2e;
  --es-primary-hover: #165b45;
  --es-accent:        #f97316;
  --es-cta:           #ea580c;
  --es-cta-hover:     #c2410c;
  --es-bg:            #f8fafc;
  --es-font-heading:  'Outfit', sans-serif;
  --es-font-body:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --es-radius-sm:     8px;
  --es-radius-md:     14px;
  --es-radius-lg:     9999px;
  --es-shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --es-shadow-md:     0 4px 16px -2px rgba(0,0,0,.12), 0 2px 4px -1px rgba(0,0,0,.06);
  --es-shadow-xl:     0 20px 48px -12px rgba(0,0,0,.25);
  --es-transition:    0.22s cubic-bezier(0.16,1,0.3,1);
  /* Derived tints — resolve against the runtime --es-primary injected by PHP */
  --es-primary-light:  color-mix(in srgb, var(--es-primary) 8%, #ffffff);
  --es-primary-subtle: color-mix(in srgb, var(--es-primary) 20%, #ffffff);
  /* Deal announcement bar (reference parity; overridable per site) */
  --es-deal-from:      #0f3d2e;
  --es-deal-to:        #155e45;
  --es-deal-badge-bg:  #f59e0b;
  --es-deal-badge-fg:  #000000;
  --es-deal-code:      #fef08a;
  --es-deal-btn-bg:    #dc2626;
  --es-deal-btn-hover: #b91c1c;
}

/* ═══════════════════════════════════════════════════════════════════
   02. Floating Island Capsule Header
   ═══════════════════════════════════════════════════════════════════ */
.site-header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 14px !important;
  z-index: 9000 !important;
  max-width: 1340px !important;
  margin: 12px auto 16px auto !important;
  border-radius: 9999px !important;
  background: rgba(255,255,255,0.98) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(226,232,240,0.9) !important;
  box-shadow: 0 4px 20px -2px rgba(15,23,42,0.08), 0 2px 6px -1px rgba(15,23,42,0.04) !important;
  padding: 2px 14px !important;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.25s ease, box-shadow 0.25s ease !important;
  will-change: transform, opacity;
}
.admin-bar .site-header { top: 44px !important; }

/* ═══════════════════════════════════════════════════════════════════
   03. Two-Tone Typographic Logo
   ═══════════════════════════════════════════════════════════════════ */
.es-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1;
}

.es-logo-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none !important;
  line-height: 1.1;
  white-space: nowrap;
}

.es-logo-prefix {
  font-family: var(--es-font-heading);
  font-size: 21px;
  font-weight: 800;
  color: var(--es-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.es-logo-suffix {
  font-family: var(--es-font-heading);
  font-size: 21px;
  font-weight: 800;
  color: var(--es-accent);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.es-logo-tagline {
  display: block;
  font-family: var(--es-font-heading);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  margin-top: 2px;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .es-logo-tagline { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   03b. Image Logo Constraint (sites using Customizer logo image)
   ───────────────────────────────────────────────────────────────────
   WHY: some sites use a large logo IMAGE (e.g. 1200×630 OG-size) instead
   of the text logo. Without a cap, `height:auto` renders it at full size,
   blowing the header to ~900px, pushing the nav off-screen (horizontal
   overflow) and shifting every fixed element below it. The Customizer's
   logo-width setting is per-site and unreliable — this cap is universal.
   ═══════════════════════════════════════════════════════════════════ */
.site-header .site-logo img,
.site-header img.header-image,
.site-header img.is-logo-image,
.site-header img.custom-logo {
  width: auto !important;
  max-width: 220px !important;
  max-height: 60px !important;
  height: auto !important;
  object-fit: contain !important;
}
@media (max-width: 980px) {
  .site-header .site-logo img,
  .site-header img.header-image,
  .site-header img.is-logo-image,
  .site-header img.custom-logo {
    max-width: 160px !important;
    max-height: 40px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   04. Search Trigger (Desktop)
   ═══════════════════════════════════════════════════════════════════ */
@media (min-width: 981px) {
  .es-search-trigger {
    all: unset;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    background: rgba(15,61,46,0.07);
    border: 1px solid rgba(15,61,46,0.16);
    border-radius: var(--es-radius-lg);
    color: var(--es-primary);
    font-family: var(--es-font-heading);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--es-transition);
    box-sizing: border-box;
  }
  .es-search-trigger:hover {
    background: var(--es-primary);
    color: #fff;
    border-color: var(--es-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15,61,46,0.22);
  }
}

/* ═══════════════════════════════════════════════════════════════════
   05. Mobile Header (≤980px) — single row, 48px height
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 980px) {
  .site-header {
    margin: 6px 10px 0 !important;
    padding: 2px 14px !important;
    border-radius: 9999px !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
  }

  .header-widget,
  .inside-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
    height: 48px !important;
  }

  .es-logo-prefix,
  .es-logo-suffix { font-size: 16px; }

  /* Search trigger on mobile — compact circular icon */
  .es-search-trigger {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: var(--es-primary);
    cursor: pointer;
    transition: all .15s ease;
    box-sizing: border-box;
    flex-shrink: 0;
  }
  .es-search-trigger:hover { background: #e2e8f0; }
  .es-search-trigger-text { display: none !important; }

  /* Hide search trigger inside mobile drawer */
  #site-navigation .es-search-trigger,
  #site-navigation .menu-bar-items { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   06. Accessible Search Modal
   ═══════════════════════════════════════════════════════════════════ */
.es-search-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px;
  box-sizing: border-box;
}

.es-search-modal:not(.is-open) { display: none !important; }
.es-search-modal.is-open       { display: flex !important; }

.es-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: esFadeIn .2s ease-out;
}

.es-search-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 620px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--es-shadow-xl);
  border: 1px solid rgba(226,232,240,0.8);
  padding: 24px 28px;
  animation: esPopIn .25s cubic-bezier(0.16,1,0.3,1);
  box-sizing: border-box;
}

@keyframes esFadeIn { from { opacity:0 } to { opacity:1 } }
@keyframes esPopIn  { from { opacity:0; transform:scale(.95) translateY(-10px) } to { opacity:1; transform:scale(1) translateY(0) } }

.es-search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.es-search-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--es-font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--es-primary);
}

.es-search-close {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  transition: all .15s ease;
}
.es-search-close:hover { background: #e2e8f0; color: #0f172a; }

.es-search-input-wrap { position: relative; display: flex; align-items: center; }

.es-search-field {
  width: 100%;
  height: 52px;
  padding: 12px 110px 12px 20px;
  font-family: var(--es-font-body);
  font-size: 16px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  color: #0f172a;
  box-sizing: border-box;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.es-search-field:focus { background: #fff; border-color: var(--es-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--es-primary) 18%, transparent); }

.es-search-submit {
  all: unset;
  position: absolute;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 18px;
  background: var(--es-primary);
  color: #fff;
  font-family: var(--es-font-heading);
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s ease;
}
.es-search-submit:hover { background: var(--es-primary-hover); }

.es-search-tags      { margin-top: 18px; padding-top: 14px; border-top: 1px dashed #e2e8f0; }
.es-search-tags-label{ font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; display: block; margin-bottom: 8px; }
.es-search-tag-list  { display: flex; flex-wrap: wrap; gap: 8px; }
.es-search-tag-list a{
  display: inline-flex; padding: 5px 12px; border-radius: var(--es-radius-lg);
  background: #f1f5f9; color: #334155; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: all .15s ease;
}
.es-search-tag-list a:hover { background: var(--es-primary); color: #fff; }

/* ═══════════════════════════════════════════════════════════════════
   07. Breadcrumbs (reference parity — Home icon + chevron separators)
   ═══════════════════════════════════════════════════════════════════ */
.es-breadcrumbs {
  font-family: var(--es-font-body);
  font-size: 14.5px;
  line-height: 1.5;
  color: #64748b;
  box-sizing: border-box;
}
.es-breadcrumbs--entry_header { margin: 0 0 16px; padding: 0; }
.es-breadcrumbs--top {
  width: 100%;
  max-width: 1360px;
  margin: 14px auto 10px;
  padding: 0 16px;
  box-sizing: border-box;
}
.page-header .es-breadcrumbs--entry_header,
.archive .page-header .es-breadcrumbs,
.blog .page-header .es-breadcrumbs { margin: 0 0 14px; padding: 0; }

.es-breadcrumbs-inner { display: flex; align-items: center; width: 100%; }
.es-breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.es-breadcrumbs li { display: inline-flex; align-items: center; margin: 0; padding: 0; }
.es-breadcrumbs a {
  color: #64748b;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  transition: color 0.15s ease;
}
.es-breadcrumbs a:hover { color: #0f172a; text-decoration: underline; }
.es-crumb-home-icon { width: 16px; height: 16px; color: #64748b; flex-shrink: 0; display: inline-block; vertical-align: middle; stroke: currentColor; transition: color 0.15s ease; }
.es-breadcrumbs a:hover .es-crumb-home-icon { color: #0f172a; }
.es-crumb-sep { display: inline-flex; align-items: center; color: #94a3b8; user-select: none; }
.es-crumb-sep-icon { width: 13px; height: 13px; stroke: #94a3b8; display: inline-block; vertical-align: middle; }
.es-crumb-active span {
  color: #0f172a;
  font-weight: 500;
  max-width: 480px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: middle;
}
@media (max-width: 768px) {
  .es-breadcrumbs--top { margin: 10px auto 8px; padding: 0 14px; }
  .es-breadcrumbs ol { gap: 8px; }
  .es-crumb-active span { max-width: 220px; }
}

/* ═══════════════════════════════════════════════════════════════════
   08. Deal Announcement Bar
   ═══════════════════════════════════════════════════════════════════ */
/* Full-bleed strip; content centered within a 1280px container (parity with reference). */
.es-deal-bar {
  width: 100%;
  background: linear-gradient(90deg, var(--es-deal-from) 0%, var(--es-deal-to) 100%);
  color: #fff;
  padding: 8px 16px;
  font-family: var(--es-font-heading);
  font-size: 13.5px;
  position: relative;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
}
.es-deal-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
}
.es-deal-bar-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.es-deal-bar .es-deal-badge {
  background: var(--es-deal-badge-bg);
  color: var(--es-deal-badge-fg);
  font-weight: 800;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.es-deal-bar .es-deal-text { font-weight: 600; color: #fff; }
.es-deal-bar .es-deal-coupon {
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}
.es-deal-bar .es-deal-coupon code {
  color: var(--es-deal-code);
  font-weight: 800;
  background: transparent;
  padding: 0;
}
.es-deal-bar .es-deal-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: var(--es-deal-btn-bg);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.es-deal-bar .es-deal-btn:hover {
  background: var(--es-deal-btn-hover);
  color: #fff !important;
  transform: translateY(-1px);
}
/* In-post placement keeps a rounded card look inside the content column. */
.es-deal-bar--post { margin: 0 0 18px; border-radius: 12px; }

/* ═══════════════════════════════════════════════════════════════════
   09. FTC Disclosure
   ═══════════════════════════════════════════════════════════════════ */
.es-ftc-disclosure {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  background: #fafaf8;
  border-left: 3px solid #e2e8f0;
  border-radius: 0 8px 8px 0;
  margin: 12px 0 16px;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.6;
}
.es-ftc-icon { flex-shrink: 0; font-size: 14px; margin-top: 1px; }

/* ═══════════════════════════════════════════════════════════════════
   10. E-E-A-T Byline Card
   ═══════════════════════════════════════════════════════════════════ */
.es-eeat-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--es-radius-md);
  margin: 12px 0 20px;
}
.es-eeat-avatar-link { flex-shrink: 0; }
.es-eeat-avatar-img  { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.es-eeat-meta        { flex: 1; min-width: 0; }
.es-eeat-meta-top    { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.es-eeat-author-name { font-family: var(--es-font-heading); font-weight: 700; font-size: 14px; color: var(--es-primary); text-decoration: none; }
.es-eeat-author-name:hover { text-decoration: underline; }
.es-eeat-badge       { background: var(--es-primary); color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: var(--es-radius-lg); }
.es-eeat-speciality  { font-size: 12.5px; color: #64748b; margin-top: 3px; }
.es-eeat-stats       { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #94a3b8; margin-top: 5px; }
.es-eeat-sep         { color: #cbd5e1; }

/* ═══════════════════════════════════════════════════════════════════
   11. Floating TOC Rail
   ═══════════════════════════════════════════════════════════════════ */
/* Two-mode TOC, mirroring the reference design:
   ≥1340px on single posts  → left sticky column (first flex child of
   .site-content), panel always visible, dock button hidden.
   <1340px (or non-single) → compact dock at bottom-left, panel opens above. */
@media (min-width: 1340px) {
  /* 3-column shell: rail | content | sidebar, 20px gutters, shared baseline.
     max-width frees the row from the 1280px container so all three fit.
     NOTE: on many GP setups `.site` itself is the grid container — it is
     widened separately below, otherwise it caps .site-content and the
     gutters collapse to zero. */
  .single .site.grid-container {
    max-width: 1540px;
  }
  .single .site-content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    max-width: 1540px;
    margin: 0 auto;
    padding-top: 16px;
    padding-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }

  /* 1. Left column: sticky TOC rail */
  .single .es-floating-toc-rail {
    width: 210px;
    min-width: 210px;
    flex: 0 0 210px;
    order: -1;
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    max-height: calc(100vh - 120px);
    overflow: visible;
    z-index: 30;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
  }
  .single .es-toc-dock-btn { display: none; }
  .single .es-toc-close-btn { display: none; }
  .single .es-toc-inner {
    display: flex;
    flex-direction: column;
    position: static;
    width: 100%;
    max-height: calc(100vh - 120px);
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    box-sizing: border-box;
    overflow: hidden;
  }

  /* 2. Middle column: fluid content, capped for readability + ad safety */
  .single #primary {
    width: auto;
    min-width: 0;
    max-width: 980px;
    flex: 1 1 920px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  .single .site-main,
  .single .site-main > article,
  .single article.post {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
  }
  body.single:not(.es-no-article-card) .site-content .inside-article {
    margin: 0;
    padding: 24px 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .single .entry-content {
    max-width: 100%;
    overflow-x: visible;
    box-sizing: border-box;
  }

  /* 3. Right column: 320px sidebar (fits 300px ad units + padding) */
  .single #right-sidebar {
    width: 320px;
    min-width: 320px;
    max-width: 324px;
    flex: 0 0 320px;
    margin: 0;
    padding: 0;
    position: static;
    box-sizing: border-box;
  }
  .single #right-sidebar .inside-right-sidebar {
    margin: 0;
    padding: 0;
  }
  .single #right-sidebar .widget:first-child {
    margin-top: 0;
  }
}
@media (max-width: 1339px) {
  /* NOTE: ID selectors are used deliberately — the generic `.es-toc-inner`
     base rule lower in this file would otherwise win on source-order and
     pin the dock panel off-screen (the mobile "TOC won't open" bug). */
  #es-floating-toc-rail {
    position: fixed;
    left: 24px;
    right: auto;
    bottom: 24px;
    top: auto;
    width: auto;
    z-index: 8000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  #es-floating-toc-rail .es-toc-inner {
    display: none;
    position: fixed;
    left: 24px;
    right: auto;
    bottom: 76px;
    top: auto;
    width: 320px;
    max-width: calc(100vw - 48px);
    max-height: 70vh;
    overflow: hidden;
  }
  #es-floating-toc-rail .es-toc-inner.is-open { display: flex; }
}
@media (max-width: 767px) {
  #es-floating-toc-rail { left: 16px; bottom: 16px; }
  #es-floating-toc-rail .es-toc-inner { left: 16px; bottom: 68px; width: 300px; }
}

.es-toc-dock-btn {
  all: unset;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--es-primary);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--es-radius-lg);
  cursor: pointer;
  font-family: var(--es-font-heading);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--es-shadow-md);
  transition: all var(--es-transition);
}
.es-toc-dock-btn:hover { background: var(--es-primary-hover); transform: translateX(-2px); }

.es-toc-counter {
  background: #fff;
  color: var(--es-primary);
  font-size: 11px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.es-toc-inner {
  display: none;
  flex-direction: column;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 280px;
  max-height: 70vh;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--es-radius-md);
  box-shadow: var(--es-shadow-xl);
  overflow: hidden;
  animation: esPopIn .2s cubic-bezier(0.16,1,0.3,1);
}
.es-toc-inner.is-open { display: flex; }

.es-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-family: var(--es-font-heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--es-primary);
}
.es-toc-heading { display: inline-flex; align-items: center; gap: 6px; }
.es-toc-heading-icon { font-size: 14px; line-height: 1; }
.es-toc-dock-text { font-weight: 700; }
.es-toc-close-btn { all: unset; cursor: pointer; color: #94a3b8; font-size: 16px; line-height: 1; }
.es-toc-close-btn:hover { color: #0f172a; }

.es-toc-list       { list-style: none; margin: 0; padding: 8px 0; overflow-y: auto; }
.es-toc-list li    { margin: 0; }
.es-toc-list a     { display: block; padding: 6px 16px; font-size: 13px; color: #475569; text-decoration: none; transition: all .15s ease; border-left: 2px solid transparent; }
.es-toc-list a:hover       { background: #f8fafc; color: var(--es-primary); border-left-color: var(--es-primary); }
.es-toc-list a.is-active   { color: var(--es-primary); font-weight: 600; border-left-color: var(--es-primary); background: rgba(15,61,46,0.05); }
.es-toc-list a.es-toc-sub  { padding-left: 28px; font-size: 12px; color: #64748b; }

/* ═══════════════════════════════════════════════════════════════════
   12. Ad Slots (overflow & min-height)
   ═══════════════════════════════════════════════════════════════════ */
.es-ad-slot {
  overflow: visible !important;
  text-align: center;
  margin: 16px auto;
  clear: both;
}
.es-ad-slot ins.adsbygoogle { overflow: visible !important; }

/* ═══════════════════════════════════════════════════════════════════
   13. Content Components
   ═══════════════════════════════════════════════════════════════════ */

/* Scorecard */
.es-scorecard {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  background: #f8fafc;
  border: 2px solid var(--es-primary);
  border-radius: var(--es-radius-md);
  margin: 24px 0;
}
.es-scorecard-score  { flex-shrink: 0; position: relative; width: 72px; height: 72px; }
.es-score-ring       { width: 72px; height: 72px; transform: rotate(-90deg); }
.es-score-text       { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--es-font-heading); font-weight: 800; font-size: 13px; color: var(--es-primary); }
.es-scorecard-label  { font-family: var(--es-font-heading); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #94a3b8; margin-bottom: 6px; }
.es-scorecard-text   { margin: 0; font-size: 15px; line-height: 1.7; color: #334155; }

/* Verdict Box */
.es-verdict-box      { border: 2px solid var(--es-primary); border-radius: var(--es-radius-md); overflow: hidden; margin: 24px 0; }
.es-verdict-header   { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; background: var(--es-primary); }
.es-verdict-label    { font-family: var(--es-font-heading); font-weight: 700; font-size: 14px; color: #fff; }
.es-verdict-score    { background: rgba(255,255,255,.2); color: #fff; padding: 3px 12px; border-radius: var(--es-radius-lg); font-weight: 700; font-size: 14px; }
.es-verdict-body     { padding: 16px 20px; font-size: 15px; line-height: 1.7; color: #334155; }

/* Pros / Cons */
.es-pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
@media (max-width: 640px) { .es-pros-cons-grid { grid-template-columns: 1fr; } }
.es-pros-col, .es-cons-col { padding: 16px 20px; border-radius: var(--es-radius-md); }
.es-pros-col { background: #f0fdf4; border: 1px solid #bbf7d0; }
.es-cons-col { background: #fff5f5; border: 1px solid #fecaca; }
.es-pros-title, .es-cons-title { margin: 0 0 10px; font-family: var(--es-font-heading); font-size: 14px; font-weight: 700; }
.es-pros-title { color: #166534; }
.es-cons-title { color: #991b1b; }
.es-pros-list, .es-cons-list { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.8; }

/* Specs Card */
.es-specs-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: var(--es-radius-md); padding: 16px 20px; margin: 20px 0; }
.es-specs-title{ font-family: var(--es-font-heading); font-size: 14px; font-weight: 700; color: var(--es-primary); margin: 0 0 12px; }
.es-specs-list { margin: 0; }
.es-spec-row   { display: flex; border-bottom: 1px solid #f1f5f9; padding: 7px 0; }
.es-spec-row:last-child { border-bottom: 0; }
.es-spec-row dt { font-weight: 600; color: #374151; flex: 0 0 40%; font-size: 13px; }
.es-spec-row dd { margin: 0; color: #64748b; font-size: 13px; flex: 1; }

/* Star Rating */
.es-star-rating  { display: inline-flex; align-items: center; gap: 4px; }
.es-star         { font-size: 18px; line-height: 1; }
.es-star-full    { color: #fbbf24; }
.es-star-half    { color: #fbbf24; }
.es-star-empty   { color: #e2e8f0; }
.es-star-value   { font-weight: 700; font-size: 14px; color: #0f172a; }
.es-star-label   { font-size: 12px; color: #64748b; }

/* Deal Box (shortcode) */
.es-deal-box {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 20px; background: #fffbeb; border: 2px solid #fde68a;
  border-radius: var(--es-radius-md); margin: 20px 0;
}
.es-deal-box .es-deal-badge { background: var(--es-accent); color: #fff; padding: 2px 10px; border-radius: var(--es-radius-lg); font-size: 12px; font-weight: 700; }
.es-deal-box .es-deal-title { font-weight: 600; color: #0f172a; }
.es-deal-box .es-deal-price { font-weight: 700; color: var(--es-primary); font-size: 16px; }
.es-deal-box .es-deal-btn   {
  margin-left: auto; display: inline-flex; padding: 8px 20px;
  background: var(--es-cta); color: #fff; border-radius: var(--es-radius-lg);
  font-family: var(--es-font-heading); font-weight: 700; font-size: 14px;
  text-decoration: none; transition: all var(--es-transition);
}
.es-deal-box .es-deal-btn:hover { background: var(--es-cta-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(234,88,12,0.3); }

/* ═══════════════════════════════════════════════════════════════════
   14. Mobile Sticky Buy Bar
   ═══════════════════════════════════════════════════════════════════ */
.es-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  border-top: 1px solid #e2e8f0;
  backdrop-filter: blur(12px);
  padding: 12px 16px;
  z-index: 9000;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
}
@media (max-width: 767px) { .es-sticky-bar { display: block; } }

.es-sticky-bar-inner { display: flex; align-items: center; gap: 10px; }
.es-sticky-product   { font-weight: 600; font-size: 13px; color: #0f172a; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-sticky-price     { font-weight: 700; font-size: 15px; color: var(--es-primary); flex-shrink: 0; }
.es-sticky-btn       {
  flex-shrink: 0; padding: 10px 18px;
  background: var(--es-cta); color: #fff;
  border-radius: var(--es-radius-lg); font-weight: 700; font-size: 14px;
  text-decoration: none; transition: all var(--es-transition);
}
.es-sticky-btn:hover { background: var(--es-cta-hover); }

/* ═══════════════════════════════════════════════════════════════════
   15. Smart Header Animations
   ═══════════════════════════════════════════════════════════════════ */
.es-header-scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.08) !important;
  background: rgba(255,255,255,0.98) !important;
}
.es-header-hidden {
  transform: translateY(-120%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.es-header-visible {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

/* ═══════════════════════════════════════════════════════════════════
   16. Utility & Global Responsive Hardening
   ═══════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
img, video, iframe, table { max-width: 100%; }

/* Prevent any overflow from hiding ads */
.entry-content, .site-content, .content-area {
  overflow: visible !important;
}

/* ═══════════════════════════════════════════════════════════════════
   17. Portability Hardening (no IDs, no theme classes)
   ═══════════════════════════════════════════════════════════════════ */

/* ── 17.1 YouTube facade ─────────────────────────────────────────── */
.es-yt-facade {
  position: relative;
  width: 100%;
  max-width: 100%;
  background: #000;
  overflow: hidden;
  border-radius: 10px;
  margin: 24px 0;
}
.es-yt-facade-btn {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; padding: 0; margin: 0;
  cursor: pointer; background: transparent;
}
.es-yt-facade-btn img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; opacity: .85;
}
.es-yt-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 68px; height: 48px; border-radius: 12px;
  background: #ff0000;
  display: flex; align-items: center; justify-content: center;
}
.es-yt-triangle {
  width: 0; height: 0; margin-left: 5px;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid #fff;
}
.es-yt-frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}

/* ── 17.2 Sticky sidebar ad (works with any ad manager) ────────────
   `position: sticky` only travels inside its containing block. Sidebar
   columns that are exactly as tall as their own contents give it zero
   travel, so the ad can never appear to stick. Stretching the column to
   the full row height restores the scroll room.

   Targets whatever the ad manager marked sticky (Ad Inserter adds
   `.ai-sticky-widget`; other managers get the opt-in `.es-sticky-widget`
   class) — never a widget ID, so renames and reorders are safe. */
@media (min-width: 1024px) {
  #right-sidebar, #left-sidebar,
  .widget-area.sidebar, aside.sidebar {
    align-self: stretch;
  }
  #right-sidebar .inside-right-sidebar, #left-sidebar .inside-left-sidebar,
  .widget-area.sidebar > :first-child {
    height: 100%;
    min-height: 100%;
  }
  .ai-sticky-widget, .es-sticky-widget,
  .ai-sticky-widget > *, .es-sticky-widget > * {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
    z-index: 25;
    align-self: start;
  }
}
@media (max-width: 1023px) {
  .ai-sticky-widget, .es-sticky-widget,
  .ai-sticky-widget > *, .es-sticky-widget > * {
    position: static;
  }
}

/* ── 17.3 Metric-matched font fallback (kills webfont-swap CLS) ────
   Cloudflare/proxied Inter ships font-display:swap, so every text block
   reflows when it lands. This alias carries Inter's own metrics, so the
   fallback occupies identical boxes and the swap moves nothing. It only
   takes effect in stacks that name Inter; other body fonts are unaffected. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107.40%;
  ascent-override: 96.88%;
  descent-override: 24.18%;
  line-gap-override: 0%;
}

/* ── 17.4 Ad containers: contain, never clip ───────────────────────
   Generic by role (any manager's wrapper, bare units, runtime-injected
   network containers). No slot IDs, no block numbers. max-width only —
   this file never sets an ad's size; the ad manager owns sizing. */
.es-ad-slot,
.code-block, div[class*="code-block"],
.ai-block, div[class*="ai-block"], div[class*="ai-viewport"],
ins.adsbygoogle {
  max-width: 100%;
  box-sizing: border-box;
}
ins.adsbygoogle > div, ins.adsbygoogle > iframe, ins.adsbygoogle iframe,
div[id^="aswift_"], iframe[id^="aswift_"],
div[id^="container-"], div[id^="container-"] iframe {
  max-width: 100%;
  box-sizing: border-box;
}
ins.adsbygoogle[data-ad-status="unfilled"] { display: none; }

/* ── 18.5 Universal container scaling (reference §25 parity) ───────
   The reference widens the outer grid container in three steps so an
   AdSense leaderboard (728/970px) never gets squeezed. Applied to every
   page type; more specific archive/single shells below still win where
   they set their own row width. Matches baking exactly: 1480/1540/1580. */
@media (min-width: 1200px) {
  body .grid-container,
  body #page.grid-container,
  body .site.grid-container {
    max-width: 1480px;
  }
}
@media (min-width: 1340px) {
  body .grid-container,
  body #page.grid-container,
  body .site.grid-container {
    max-width: 1540px;
  }
}
@media (min-width: 1440px) {
  body .grid-container,
  body #page.grid-container,
  body .site.grid-container {
    max-width: 1580px;
  }
}

/* ── 18.6 Homepage / static page: editorial canvas (reference §26 parity) ──
   The reference constrains the front page (and every static page) to a
   1240px centred canvas with a transparent, borderless article — otherwise
   the page spans the full 1580px container and looks "much wider" than the
   reference. Match baking exactly. Gated by the article-card toggle so a
   user who wants raw theme layout can opt out via es-no-article-card. */
.home .site-content,
.page-template-default.page:not(.single) .site-content {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 16px 20px 32px 20px !important;
  display: block !important;
}
.home #primary,
.page-template-default.page:not(.single) #primary {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  flex: none !important;
}
body:not(.es-no-article-card).home .inside-article,
body:not(.es-no-article-card).page-template-default.page:not(.single) .inside-article {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.home #right-sidebar,
.page-template-default.page:not(.single) #right-sidebar {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════
   19. Archive / Blog / Search Card Grid (auto-applied, no setup)
   ───────────────────────────────────────────────────────────────────
   Transforms the theme's default archive loop into a card grid using
   only structural selectors (article, .inside-article, .post-image…),
   so it works with zero manual block configuration. Toggle with the
   `enable_archive_cards` setting (adds body.es-no-archive-cards).
   ═══════════════════════════════════════════════════════════════════ */
body:not(.es-no-archive-cards).blog #main,
body:not(.es-no-archive-cards).archive #main,
body:not(.es-no-archive-cards).search #main {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 22px;
  width: 100%;
  margin: 0 0 44px 0;
  padding: 0;
  box-sizing: border-box;
}
/* Reference uses exactly 2 columns on desktop; auto-fill would squeeze 3+ */
@media (min-width: 1024px) {
  body:not(.es-no-archive-cards).blog #main,
  body:not(.es-no-archive-cards).archive #main,
  body:not(.es-no-archive-cards).search #main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  body:not(.es-no-archive-cards).blog #main,
  body:not(.es-no-archive-cards).archive #main,
  body:not(.es-no-archive-cards).search #main {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
/* Widescreen archive shell: free the row from the 1280px container so two
   cards + the 324px sidebar fit with gutters (reference: 1052px grid). */
@media (min-width: 1340px) {
  body:not(.es-no-archive-cards).blog .site.grid-container,
  body:not(.es-no-archive-cards).archive .site.grid-container,
  body:not(.es-no-archive-cards).search .site.grid-container {
    max-width: 1480px;
  }
  body:not(.es-no-archive-cards).blog .site-content,
  body:not(.es-no-archive-cards).archive .site-content,
  body:not(.es-no-archive-cards).search .site-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    max-width: 1480px;
    margin: 0 auto;
    padding: 16px 20px 40px 20px;
    box-sizing: border-box;
  }
  body:not(.es-no-archive-cards).blog #primary,
  body:not(.es-no-archive-cards).archive #primary,
  body:not(.es-no-archive-cards).search #primary {
    flex: 1 1 0;
    min-width: 0;
    max-width: calc(100% - 348px);
    width: auto;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body:not(.es-no-archive-cards).blog #right-sidebar,
  body:not(.es-no-archive-cards).archive #right-sidebar,
  body:not(.es-no-archive-cards).search #right-sidebar {
    width: 324px;
    min-width: 324px;
    max-width: 324px;
    flex: 0 0 324px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
}
body:not(.es-no-archive-cards).blog .page-header,
body:not(.es-no-archive-cards).archive .page-header,
body:not(.es-no-archive-cards).search .page-header,
body:not(.es-no-archive-cards).blog .paging-navigation,
body:not(.es-no-archive-cards).archive .paging-navigation,
body:not(.es-no-archive-cards).search .paging-navigation,
body:not(.es-no-archive-cards).blog .navigation.pagination,
body:not(.es-no-archive-cards).archive .navigation.pagination,
body:not(.es-no-archive-cards).search .navigation.pagination {
  grid-column: 1 / -1;
  width: 100%;
}
body:not(.es-no-archive-cards).blog .page-header,
body:not(.es-no-archive-cards).archive .page-header {
  background: transparent;
  border: none;
  padding: 16px 0 24px;
  margin-bottom: 16px;
  box-shadow: none;
}
body:not(.es-no-archive-cards).blog .page-header .page-title,
body:not(.es-no-archive-cards).archive .page-header .page-title {
  font-family: var(--es-font-heading);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
body:not(.es-no-archive-cards).blog article.type-post,
body:not(.es-no-archive-cards).archive article.type-post,
body:not(.es-no-archive-cards).search article.type-post {
  background: #fff;
  border: 1px solid var(--es-border, #e2e8f0);
  border-radius: 16px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s ease, border-color 0.25s ease;
  height: 100%;
  box-sizing: border-box;
}
body:not(.es-no-archive-cards).blog article.type-post:hover,
body:not(.es-no-archive-cards).archive article.type-post:hover,
body:not(.es-no-archive-cards).search article.type-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -4px rgba(15,23,42,0.1);
  border-color: #cbd5e1;
}
body:not(.es-no-archive-cards).blog .site-content .inside-article,
body:not(.es-no-archive-cards).archive .site-content .inside-article,
body:not(.es-no-archive-cards).search .site-content .inside-article {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  background: transparent;
  border: none;
  border-radius: 0;
}
body:not(.es-no-archive-cards).blog .post-image,
body:not(.es-no-archive-cards).archive .post-image,
body:not(.es-no-archive-cards).search .post-image {
  order: 1;
  margin: 0;
  padding: 0;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #f8fafc;
  display: block;
}
body:not(.es-no-archive-cards).blog .post-image a,
body:not(.es-no-archive-cards).archive .post-image a,
body:not(.es-no-archive-cards).search .post-image a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
body:not(.es-no-archive-cards).blog .post-image img,
body:not(.es-no-archive-cards).archive .post-image img,
body:not(.es-no-archive-cards).search .post-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
  padding: 0 !important;
  margin: 0 !important;
  transition: transform 0.35s ease;
}
body:not(.es-no-archive-cards).blog article.type-post:hover .post-image img,
body:not(.es-no-archive-cards).archive article.type-post:hover .post-image img,
body:not(.es-no-archive-cards).search article.type-post:hover .post-image img {
  transform: scale(1.05);
}
/* Category badge injected onto the card image */
.es-card-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15,23,42,0.88);
  color: #fff;
  font-family: var(--es-font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  z-index: 2;
  pointer-events: none;
}
body:not(.es-no-archive-cards).blog .entry-header,
body:not(.es-no-archive-cards).archive .entry-header,
body:not(.es-no-archive-cards).search .entry-header {
  order: 2;
  padding: 16px 18px 0 18px;
  margin: 0;
  display: flex;
  flex-direction: column;
}
body:not(.es-no-archive-cards).blog .entry-meta,
body:not(.es-no-archive-cards).archive .entry-meta,
body:not(.es-no-archive-cards).search .entry-meta {
  order: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
  margin: 0 0 6px 0;
  padding: 0;
}
.es-meta-date, .es-meta-reading-time, .es-meta-author {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}
.es-meta-sep { color: #cbd5e1; }
body:not(.es-no-archive-cards).blog .entry-title,
body:not(.es-no-archive-cards).archive .entry-title,
body:not(.es-no-archive-cards).search .entry-title {
  order: 2;
  font-family: var(--es-font-heading);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.35;
  margin: 2px 0 8px 0;
  padding: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body:not(.es-no-archive-cards).blog .entry-title a,
body:not(.es-no-archive-cards).archive .entry-title a,
body:not(.es-no-archive-cards).search .entry-title a {
  color: inherit;
  text-decoration: none;
}
body:not(.es-no-archive-cards).blog .entry-title a:hover,
body:not(.es-no-archive-cards).archive .entry-title a:hover,
body:not(.es-no-archive-cards).search .entry-title a:hover {
  color: var(--es-primary);
}
body:not(.es-no-archive-cards).blog .entry-summary,
body:not(.es-no-archive-cards).archive .entry-summary,
body:not(.es-no-archive-cards).search .entry-summary {
  order: 3;
  padding: 0 18px 12px 18px;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #64748b;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body:not(.es-no-archive-cards).blog .entry-summary p,
body:not(.es-no-archive-cards).archive .entry-summary p,
body:not(.es-no-archive-cards).search .entry-summary p {
  margin: 0;
}
body:not(.es-no-archive-cards).blog .entry-summary a.read-more,
body:not(.es-no-archive-cards).archive .entry-summary a.read-more,
body:not(.es-no-archive-cards).search .entry-summary a.read-more {
  display: none;
}
/* Bottom CTA injected below each card */
.es-archive-read-more {
  order: 4;
  padding: 0 18px 18px 18px;
  margin-top: auto;
  display: block;
}
.es-read-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--es-font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--es-primary);
  text-decoration: none;
  transition: gap 0.2s ease;
}
.es-read-guide-link:hover { gap: 9px; color: var(--es-cta); }

/* ═══════════════════════════════════════════════════════════════════
   19b. Sidebar Widget Cards (auto-applied, content-aware)
   ───────────────────────────────────────────────────────────────────
   Every plain widget becomes a white card. Widgets that CONTAIN an ad
   (AdSense unit, Ad Inserter wrapper, network container) are excluded via
   :has() and styled by §17.4 instead — so ad units keep full width and
   zero card chrome. No widget IDs anywhere.
   ═══════════════════════════════════════════════════════════════════ */
#right-sidebar .widget:not(:has(ins.adsbygoogle)):not(:has([class*="code-block"])):not(:has([class*="ai-"])):not(:has([id^="container-"])),
#left-sidebar .widget:not(:has(ins.adsbygoogle)):not(:has([class*="code-block"])):not(:has([class*="ai-"])):not(:has([id^="container-"])) {
  background: #ffffff;
  border: 1px solid var(--es-border, #e2e8f0);
  border-radius: 14px;
  padding: 14px 10px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}
#right-sidebar .widget-title, #left-sidebar .widget-title,
#right-sidebar .widget .wp-block-heading, #left-sidebar .widget .wp-block-heading {
  font-family: var(--es-font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px 0;
}
#right-sidebar .widget ul, #left-sidebar .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#right-sidebar .widget ul li, #left-sidebar .widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  line-height: 1.5;
}
#right-sidebar .widget ul li:last-child, #left-sidebar .widget ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
#right-sidebar .widget ul li a, #left-sidebar .widget ul li a {
  text-decoration: none;
  transition: padding-left 0.15s ease;
}
#right-sidebar .widget ul li a:hover, #left-sidebar .widget ul li a:hover {
  color: var(--es-primary);
  padding-left: 3px;
}
#right-sidebar .widget p, #left-sidebar .widget p {
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 8px;
}

/* ═══════════════════════════════════════════════════════════════════
   20. Listicle "Top Picks" Showcase (ranked rows + CTA)
   ───────────────────────────────────────────────────────────────────
   Rendered by the [es_top_picks] shortcode. Brand colours come from
   settings vars; highlight row uses the accent tint.
   ═══════════════════════════════════════════════════════════════════ */
.es-top-picks-showcase {
  background: #ffffff;
  border: 2px solid var(--es-accent);
  border-radius: 14px;
  padding: 28px;
  margin: 36px 0;
  box-shadow: 0 10px 32px -8px rgba(0,0,0,0.12);
}
.es-showcase-header { margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid #f1f5f9; }
.es-showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--es-bg);
  color: var(--es-primary);
  font-family: var(--es-font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid var(--es-accent);
  margin-bottom: 10px;
}
.es-showcase-title {
  font-family: var(--es-font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.7rem);
  font-weight: 800;
  margin: 0 0 6px 0;
}
.es-showcase-sub { font-size: 14.5px; color: #64748b; margin: 0; }
.es-showcase-list { display: flex; flex-direction: column; gap: 12px; }
.es-pick-row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  transition: all 0.2s cubic-bezier(0.16,1,0.3,1);
}
.es-pick-row:hover {
  border-color: var(--es-accent);
  box-shadow: 0 4px 16px -2px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
.es-pick-highlight { background: #fffbf7; border: 1.5px solid var(--es-accent); }
.es-pick-rank { display: flex; align-items: center; justify-content: center; }
.es-rank-num {
  width: 38px; height: 38px; border-radius: 50%;
  background: #f1f5f9; color: #334155;
  font-family: var(--es-font-heading);
  font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.es-pick-highlight .es-rank-num { background: var(--es-cta); color: #fff; }
.es-pick-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.es-pick-badge {
  display: inline-block; align-self: flex-start;
  font-family: var(--es-font-heading);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--es-primary); background: var(--es-bg);
  padding: 2px 10px; border-radius: 9999px;
}
.es-pick-title { font-size: 16px; font-weight: 700; margin: 0; line-height: 1.35; }
.es-pick-title a { color: inherit; text-decoration: none; }
.es-pick-title a:hover { color: var(--es-primary); }
.es-pick-desc { font-size: 13.5px; line-height: 1.5; color: #64748b; margin: 0; }
.es-btn-cta {
  background: var(--es-cta); color: #fff;
  font-family: var(--es-font-heading);
  font-size: 13px; font-weight: 700;
  padding: 10px 18px; border-radius: 9999px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap; transition: all 0.2s cubic-bezier(0.16,1,0.3,1);
}
.es-btn-cta:hover { background: var(--es-cta-hover); color: #fff; transform: translateY(-2px); }
@media (max-width: 680px) {
  .es-pick-row { grid-template-columns: 36px 1fr; grid-template-rows: auto auto; padding: 14px 16px; }
  .es-pick-cta-wrap { grid-column: 1 / -1; margin-top: 8px; }
  .es-btn-cta { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════════
   21. Comparison Table (add class `es-compare` to any Table block)
   ───────────────────────────────────────────────────────────────────
   No shortcode needed: in the editor, select the table → Advanced →
   Additional CSS class → `es-compare`. Zebra rows, sticky header,
   rating pill, mobile horizontal scroll.
   ═══════════════════════════════════════════════════════════════════ */
.es-compare {
  margin: 36px 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.es-compare table, table.es-compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  font-size: 14px;
}
.es-compare th, .es-compare td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  text-align: left;
}
.es-compare thead th {
  background: #f8fafc;
  font-family: var(--es-font-heading);
  font-weight: 700;
  font-size: 13.5px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
}
.es-compare tbody tr:nth-child(even) td { background: #fcfbf9; }
.es-compare tbody td:first-child { font-weight: 600; }
.es-rating-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fef3c7; color: #92400e;
  font-family: var(--es-font-heading);
  font-weight: 700; font-size: 12px;
  padding: 3px 8px; border-radius: 9999px; white-space: nowrap;
}
@media (max-width: 680px) {
  .es-compare th, .es-compare td { padding: 10px 12px; font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════════════════
   21b. Content Lists, At-a-Glance & Pro/Con Callouts
   ───────────────────────────────────────────────────────────────────
   Gated by the Content Enhancer toggle (body.es-no-content-styles).
   ── Bullets: dot markers in brand colour ────────────────────────── */
body:not(.es-no-content-styles) .entry-content ul:not(.es-pros-list):not(.es-cons-list):not(.wp-block-categories-list) {
  list-style: none;
  padding-left: 0;
  margin: 24px 0 28px 0;
}
body:not(.es-no-content-styles) .entry-content ul:not(.es-pros-list):not(.es-cons-list):not(.wp-block-categories-list) > li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  line-height: 1.75;
}
body:not(.es-no-content-styles) .entry-content ul:not(.es-pros-list):not(.es-cons-list):not(.wp-block-categories-list) > li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--es-primary);
}
/* ── Numbered criteria cards ─────────────────────────────────────── */
body:not(.es-no-content-styles) .entry-content ol:not(.es-showcase-list) {
  list-style: none;
  counter-reset: es-counter;
  padding-left: 0;
  margin: 28px 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
body:not(.es-no-content-styles) .entry-content ol:not(.es-showcase-list) > li {
  counter-increment: es-counter;
  position: relative;
  padding: 16px 20px 16px 58px;
  background: #ffffff;
  border: 1px solid var(--es-border, #e2e8f0);
  border-radius: 10px;
  line-height: 1.7;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
body:not(.es-no-content-styles) .entry-content ol:not(.es-showcase-list) > li:hover {
  border-color: var(--es-accent);
  transform: translateX(3px);
}
body:not(.es-no-content-styles) .entry-content ol:not(.es-showcase-list) > li::before {
  content: counter(es-counter);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--es-bg);
  color: var(--es-primary);
  border: 1.5px solid var(--es-accent);
  font-family: var(--es-font-heading);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* ── At-a-glance box ([es_glance]) ────────────────────────────────── */
.es-glance-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 24px;
  margin: 24px 0 32px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
}
.es-glance-title {
  font-family: var(--es-font-heading);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}
.es-glance-list { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.es-glance-item { font-size: 14.5px; line-height: 1.6; margin: 0; }
.es-glance-label { font-family: var(--es-font-heading); font-weight: 700; }
/* ── Pro / Con individual callouts ([es_callout]) ─────────────────── */
.es-callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 12px;
  margin: 16px 0;
  box-sizing: border-box;
}
.es-callout-pro { background: #f0fdf4; border: 1px solid #bbf7d0; }
.es-callout-con { background: #fff5f5; border: 1px solid #fecaca; }
.es-callout-icon { flex-shrink: 0; font-size: 18px; line-height: 1.4; }
.es-callout-body { font-size: 14.5px; line-height: 1.65; }
.es-callout-body p { margin: 0; }
.es-callout-body p + p { margin-top: 8px; }

/* ═══════════════════════════════════════════════════════════════════
   22. Pagination Pills + Visibility Cleanup (all settings-controlled)
   ───────────────────────────────────────────────────────────────────
   Every rule below is gated by a body class that the plugin adds from
   Settings → Editorial Suite → Features. Uncheck a toggle and the
   corresponding native element comes back — no code edits.
   ═══════════════════════════════════════════════════════════════════ */
body:not(.es-no-pagination-pills) .paging-navigation,
body:not(.es-no-pagination-pills) .pagination {
  margin: 18px 0 10px 0;
  text-align: center;
  /* Kill the theme's default white padded box around the pagination */
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}
/* Editorial style uses the numbered pill only; drop the duplicate
   "Older/Newer posts" links the theme adds alongside it. */
body:not(.es-no-pagination-pills) .paging-navigation .nav-previous,
body:not(.es-no-pagination-pills) .paging-navigation .nav-next {
  display: none !important;
}
body:not(.es-no-pagination-pills) .paging-navigation .nav-links,
body:not(.es-no-pagination-pills) .pagination .nav-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1px solid var(--es-border, #e2e8f0);
}
body:not(.es-no-pagination-pills) .paging-navigation .page-numbers,
body:not(.es-no-pagination-pills) .pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  font-family: var(--es-font-heading);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 9999px;
  transition: all 0.2s ease;
  background: transparent;
  border: 1px solid transparent;
  box-sizing: border-box;
}
body:not(.es-no-pagination-pills) .paging-navigation a.page-numbers:hover,
body:not(.es-no-pagination-pills) .pagination a.page-numbers:hover {
  background: var(--es-bg);
  color: var(--es-primary);
  transform: translateY(-1px);
}
body:not(.es-no-pagination-pills) .paging-navigation .page-numbers.current,
body:not(.es-no-pagination-pills) .pagination .page-numbers.current {
  background: var(--es-primary);
  color: #ffffff;
  font-weight: 700;
}
body:not(.es-no-pagination-pills) .paging-navigation .page-numbers.dots,
body:not(.es-no-pagination-pills) .pagination .page-numbers.dots {
  min-width: 24px;
  padding: 0;
  cursor: default;
}

/* Suppress category links site-wide */
body:not(.es-keep-cat-links) .cat-links,
body:not(.es-keep-cat-links) .entry-meta .cat-links,
body:not(.es-keep-cat-links) .entry-header .cat-links,
body:not(.es-keep-cat-links) footer.entry-meta .cat-links {
  display: none;
}

/* Suppress comments area */
body:not(.es-keep-comments) .comments-area,
body:not(.es-keep-comments) #comments {
  display: none;
}

/* Suppress single post navigation (prev/next) */
body:not(.es-keep-post-nav).single .post-navigation,
body:not(.es-keep-post-nav).single nav.post-navigation {
  display: none;
}

/* Suppress single post footer entry-meta */
body:not(.es-keep-footer-meta).single footer.entry-meta,
body:not(.es-keep-footer-meta) footer.entry-meta[aria-label="Entry meta"] {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════
   22b. Dark Mega-Footer (toggle: enable_mega_footer)
   ───────────────────────────────────────────────────────────────────
   Styles whatever footer widgets the site already has — no widget setup
   needed. Background comes from Settings → Brand & Colors.
   ═══════════════════════════════════════════════════════════════════ */
body:not(.es-no-mega-footer) .site-footer,
body:not(.es-no-mega-footer) #footer-widgets,
body:not(.es-no-mega-footer) .footer-widgets-container {
  background: var(--es-footer-bg, #161614);
  background-color: var(--es-footer-bg, #161614);
  color: #d6d3d1;
}
body:not(.es-no-mega-footer) .footer-widgets .widget-title,
body:not(.es-no-mega-footer) .footer-widgets .wp-block-heading {
  color: #ffffff;
  font-family: var(--es-font-heading);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}
body:not(.es-no-mega-footer) .footer-widgets,
body:not(.es-no-mega-footer) .footer-widgets p,
body:not(.es-no-mega-footer) .footer-widgets li {
  color: #d6d3d1;
  font-size: 14px;
}
body:not(.es-no-mega-footer) .footer-widgets a {
  color: #d6d3d1;
  text-decoration: none;
}
body:not(.es-no-mega-footer) .footer-widgets a:hover {
  color: #ffffff;
  text-decoration: underline;
}
body:not(.es-no-mega-footer) .footer-widgets ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
body:not(.es-no-mega-footer) .footer-widgets ul li {
  padding: 5px 0;
}

/* ═══════════════════════════════════════════════════════════════════
   22c. Third-Party Plugin Styling (applies only if installed)
   ─────────────────────────────────────────────────────────────────── */
/* YARPP related posts → cards */
.yarpp-related {
  background: #ffffff;
  border: 1px solid var(--es-border, #e2e8f0);
  border-radius: 14px;
  padding: 28px 30px;
  margin: 40px 0;
}
.yarpp-related h3 {
  font-family: var(--es-font-heading);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.yarpp-related ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.yarpp-related ol li {
  background: #fafaf9;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  padding: 12px 16px;
  transition: all 0.2s ease;
}
.yarpp-related ol li:hover {
  background: #ffffff;
  border-color: var(--es-accent);
  transform: translateY(-2px);
}
.yarpp-related ol li a {
  text-decoration: none;
  font-family: var(--es-font-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  display: block;
}
.yarpp-related ol li a:hover { color: var(--es-primary); }
/* LuckyWP TOC → card */
.lwptoc {
  background: #ffffff;
  border: 1px solid var(--es-border, #e2e8f0);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 32px 0;
  font-family: inherit;
}
.lwptoc .lwptoc_header {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 10px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lwptoc .lwptoc_title {
  font-family: var(--es-font-heading);
  font-weight: 700;
  font-size: 15px;
}
.lwptoc .lwptoc_toggle_label {
  color: var(--es-primary);
  font-weight: 600;
  font-size: 13px;
}
.lwptoc_items a {
  text-decoration: none;
  font-size: 14px;
  line-height: 1.6;
}
.lwptoc_items a:hover {
  color: var(--es-primary);
  padding-left: 3px;
}

/* ═══════════════════════════════════════════════════════════════════
   22d. Mobile Ad Spacing (zero-CLS, non-intrusive)
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .es-ad-slot,
  .code-block, div[class*="code-block"],
  .ai-block, div[class*="ai-block"], div[class*="ai-viewport"],
  ins.adsbygoogle {
    margin-top: 24px;
    margin-bottom: 24px;
    max-width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   23. Homepage Hero + Publication Grid ([es_hero] / [es_posts])
   ═══════════════════════════════════════════════════════════════════ */
/* 23.1 Hero */
.es-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  max-width: 100%;
  margin: 0 auto 12px auto;
  padding: 64px 24px 58px;
  border-radius: 28px;
  background:
    radial-gradient(1100px 340px at 50% -18%, color-mix(in srgb, var(--es-primary) 16%, transparent), transparent 72%),
    linear-gradient(180deg, #f1f6f3 0%, #ffffff 72%);
  border: 1px solid color-mix(in srgb, var(--es-primary) 12%, #ffffff);
}
.es-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--es-primary) 22%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(720px 300px at 50% 0%, #000 0%, transparent 76%);
  mask-image: radial-gradient(720px 300px at 50% 0%, #000 0%, transparent 76%);
  opacity: 0.5;
  pointer-events: none;
}
.es-hero-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.es-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--es-font-heading);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--es-primary);
  background: rgba(255,255,255,0.82);
  border: 1px solid color-mix(in srgb, var(--es-primary) 20%, #ffffff);
  padding: 7px 16px;
  border-radius: 9999px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.05);
}
.es-hero-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--es-cta);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--es-cta) 22%, transparent);
}
.es-hero-title {
  font-family: var(--es-font-heading);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 16px 0;
  color: var(--es-primary);
}
.es-hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: #475569;
  max-width: 620px;
  margin: 0 auto 28px auto;
}
.es-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.es-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg, var(--es-cta), var(--es-cta-hover));
  color: #fff;
  font-family: var(--es-font-heading);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 30px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--es-cta) 68%, transparent);
  transition: transform 0.2s cubic-bezier(0.16,1,0.3,1), box-shadow 0.2s ease, background 0.2s ease;
}
.es-hero-cta:hover {
  background: linear-gradient(135deg, var(--es-cta-hover), var(--es-cta-hover));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -12px color-mix(in srgb, var(--es-cta) 78%, transparent);
}
.es-hero-cta--ghost {
  background: #fff;
  color: var(--es-primary);
  border: 1px solid color-mix(in srgb, var(--es-primary) 16%, #ffffff);
  box-shadow: 0 1px 2px rgba(15,23,42,0.05);
}
.es-hero-cta--ghost:hover {
  background: #f1f6f3;
  color: var(--es-primary);
  border-color: color-mix(in srgb, var(--es-primary) 26%, #ffffff);
}

/* 23.2 Section header (heading="" on [es_posts]) */
.es-home-section { margin: 0 0 40px 0; }
.es-home-section:last-child { margin-bottom: 8px; }
.es-home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 20px 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--es-border, #e2e8f0);
}
.es-home-section-titles { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.es-home-section-title {
  position: relative;
  font-family: var(--es-font-heading);
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
  padding-left: 16px;
  color: var(--es-primary);
}
.es-home-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.16em;
  bottom: 0.16em;
  width: 5px;
  border-radius: 9999px;
  background: linear-gradient(180deg, var(--es-accent), var(--es-cta));
}
.es-home-section-sub { margin: 0; padding-left: 16px; font-size: 14px; line-height: 1.5; color: #64748b; }
.es-home-section-more {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--es-font-heading);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--es-primary);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, gap 0.18s ease;
}
.es-home-section-more svg { width: 14px; height: 14px; }
.es-home-section-more:hover { color: var(--es-cta); gap: 10px; }

/* 23.3 Publication grid + cards */
.es-publication-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
  margin: 0 0 8px 0;
}

@media (max-width: 1100px) {
  .es-publication-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .es-publication-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .es-publication-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.es-grid-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--es-border, #e6ebf2);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.es-grid-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--es-primary) 18%, #ffffff);
  box-shadow: 0 18px 40px -12px rgba(15,23,42,0.22);
}
.es-card-media {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f8fafc;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}
.es-card-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.es-card-media::after {
  display: none !important;
}
.es-grid-card:hover .es-card-media img { transform: scale(1.05); }
.es-grid-card .es-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  right: auto;
  bottom: auto;
  z-index: 2;
  background: rgba(255,255,255,0.94);
  color: var(--es-primary);
  font-family: var(--es-font-heading);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(15,23,42,0.18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.es-card-body { padding: 18px 20px 20px 20px; display: flex; flex-direction: column; flex-grow: 1; }
.es-card-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-family: var(--es-font-heading);
  font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: #94a3b8; margin-bottom: 10px;
}
.es-card-title {
  font-family: var(--es-font-heading);
  font-size: 17.5px; font-weight: 750;
  line-height: 1.32; letter-spacing: -0.01em;
  margin: 0 0 9px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.es-card-title a { color: var(--es-primary); text-decoration: none; transition: color 0.18s ease; }
.es-card-title a:hover { color: var(--es-cta); }
.es-card-excerpt {
  font-size: 14px; line-height: 1.6; color: #64748b;
  margin: 0 0 16px 0; flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.es-card-cta {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--es-font-heading); font-size: 13px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--es-primary); text-decoration: none; margin-top: auto;
  transition: color 0.18s ease;
}
.es-card-cta svg { transition: transform 0.18s ease; }
.es-card-cta:hover { color: var(--es-cta); }
.es-grid-card:hover .es-card-cta { color: var(--es-cta); }
.es-grid-card:hover .es-card-cta svg { transform: translateX(3px); }
.es-pagination-nav { margin: 18px 0 10px 0; text-align: center; }

/* 23.4 Responsive */
@media (max-width: 640px) {
  .es-hero { padding: 42px 18px 38px; border-radius: 22px; }
  .es-hero-sub { font-size: 15.5px; }
  .es-home-section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .es-publication-grid { grid-template-columns: 1fr; gap: 16px; }
  .es-home-section { margin-bottom: 32px; }
}

/* Suppress featured image on singles (plugin renders its own media) */
body:not(.es-keep-featured).single .featured-image {
  display: none;
}

/* Suppress redundant default copyright line */
body:not(.es-keep-site-info) .site-info {
  display: none;
}

/* Hide duplicate TOC widgets that themes/plugins inject into sidebars */
body:not(.es-keep-side-toc) .sidebar .widget_lpwtoc_widget,
body:not(.es-keep-side-toc) .sidebar .lwptoc,
body:not(.es-keep-side-toc) .sidebar [class*="lwptoc"],
body:not(.es-keep-side-toc) .sidebar [class*="lpwtoc"] {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════
   18. Reference Design Mirror (same-to-same duplicate)
   ───────────────────────────────────────────────────────────────────
   Mirrors the reference site's reading experience. Everything is driven
   by plugin settings / CSS vars — edit values in one place only.
   Disable pieces per site via the Features toggles:
     body.es-no-site-typography  → skip §18.1
     body.es-no-article-card     → skip §18.2
   ═══════════════════════════════════════════════════════════════════ */

/* ── 18.1 Site typography: Inter body / Outfit headings ──────────── */
body:not(.es-no-site-typography) {
  font-family: var(--es-font-body), 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.76;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body:not(.es-no-site-typography) h1, body:not(.es-no-site-typography) h2,
body:not(.es-no-site-typography) h3, body:not(.es-no-site-typography) h4,
body:not(.es-no-site-typography) h5, body:not(.es-no-site-typography) h6,
body:not(.es-no-site-typography) .main-title,
body:not(.es-no-site-typography) .entry-title {
  font-family: var(--es-font-heading), 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.28;
}
body:not(.es-no-site-typography) .entry-title {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 18px;
}

/* ── 18.2 Article card (white card on tinted canvas) ─────────────── */
body:not(.es-no-article-card).single.separate-containers .site-content .inside-article {
  background: #ffffff;
  border: 1px solid var(--es-border, #e2e8f0);
  border-radius: 14px;
  padding: 24px 20px;
}
/* Reference hides the raw theme entry-meta after the title when the
   E-E-A-T byline card is rendered. Keep it only when explicitly opted in. */
body:not(.es-keep-header-meta).single .entry-header .entry-meta { display: none !important; }
@media (max-width: 768px) {
  body:not(.es-no-article-card).single.separate-containers .site-content .inside-article {
    padding: 24px 20px;
  }
}

/* ── 18.3 In-content links ───────────────────────────────────────── */
.entry-content p a:not(.es-deal-btn):not(.wp-block-button__link):not(.button),
.entry-content li a:not(.wp-block-button__link),
.entry-content td a {
  color: var(--es-link, #DC2626);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-content p a:not(.es-deal-btn):not(.wp-block-button__link):not(.button):hover,
.entry-content li a:not(.wp-block-button__link):hover {
  color: var(--es-link-hover, #991B1B);
}

/* ── 18.3b WordPress block buttons → theme colours ───────────────────
   GeneratePress renders block buttons in its neutral grey (#55555e) unless
   the site styles them. The reference themes hero CTAs: solid primary pill
   and outlined secondary pill. We style the block buttons directly (no
   editor classes required) so "same writing pattern" renders identically,
   AND honour the reference's es-rich-hero-btn-* classes when present. */
.entry-content .wp-block-button__link,
.home .wp-block-button__link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: var(--es-primary, #0f3d2e) !important;
  color: #ffffff !important;
  font-family: var(--es-font-heading);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  border-radius: 999px;
  padding: 12px 28px;
  border: 1.5px solid transparent;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(15, 61, 46, 0.22);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.entry-content .wp-block-button__link:hover,
.home .wp-block-button__link:hover {
  background: var(--es-primary-hover, #165b45) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 61, 46, 0.3);
}
/* Outlined / secondary style (WP "Outline" button style, or hero-secondary) */
.entry-content .wp-block-button.is-style-outline .wp-block-button__link,
.entry-content .wp-block-button[class*="is-style-outline"] .wp-block-button__link,
.home .wp-block-button.is-style-outline .wp-block-button__link,
.home .wp-block-button[class*="is-style-outline"] .wp-block-button__link,
.es-rich-hero-btn-secondary .wp-block-button__link,
.es-rich-hero-btn-secondary.is-style-outline .wp-block-button__link {
  background: #ffffff !important;
  color: var(--es-primary, #0f3d2e) !important;
  border: 1.5px solid var(--es-primary, #0f3d2e);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}
.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover,
.entry-content .wp-block-button[class*="is-style-outline"] .wp-block-button__link:hover,
.home .wp-block-button.is-style-outline .wp-block-button__link:hover,
.home .wp-block-button[class*="is-style-outline"] .wp-block-button__link:hover,
.es-rich-hero-btn-secondary .wp-block-button__link:hover {
  background: var(--es-primary, #0f3d2e) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}
/* Reset the reference hero wrapper so no double border/padding appears */
.wp-block-button.es-rich-hero-btn-primary,
.wp-block-button.es-rich-hero-btn-secondary,
.wp-block-button[class*="es-rich-hero-btn-"] {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
}
.wp-block-button.es-rich-hero-btn-primary .wp-block-button__link { background: var(--es-primary) !important; color: #fff !important; }
.wp-block-button.es-rich-hero-btn-primary .wp-block-button__link:hover { background: var(--es-primary-hover) !important; }

/* ── 18.4 Sidebar width 320px (fits 300px ad units + padding) ──────
   Scoped to sidebar layouts only — never touches no-sidebar pages.
   (≥1340px singles use the §22 three-column shell instead.) */
@media (min-width: 1024px) and (max-width: 1339px) {
  body.right-sidebar #right-sidebar, body.left-sidebar #left-sidebar {
    width: 320px;
    min-width: 0;
    max-width: 100%;
    flex: 0 0 320px;
    box-sizing: border-box;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   23b. Curated Sidebar Blocks (opt-in via widget CSS classes)
   ───────────────────────────────────────────────────────────────────
   No IDs, no auto-hiding: in Appearance → Widgets, open any Custom HTML /
   List widget → Advanced → Additional CSS class(es) and add:
     es-sidebar-curated-widget   → white card container
     es-sidebar-widget-title     → card heading
     es-sidebar-guide-list       → divided link list (ul)
     es-sidebar-pillar-tags      → pill tag cloud (links wrapper)
   ═══════════════════════════════════════════════════════════════════ */
.es-sidebar-curated-widget {
  background: #ffffff;
  border: 1px solid var(--es-border, #e2e8f0);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 24px;
}
.es-sidebar-widget-title {
  font-family: var(--es-font-heading);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}
.es-sidebar-guide-list { list-style: none; padding: 0; margin: 0; }
.es-sidebar-guide-list li {
  padding: 8px 0;
  border-bottom: 1px dashed #f1f5f9;
  font-size: 13.5px;
  line-height: 1.45;
}
.es-sidebar-guide-list li:last-child { border-bottom: none; padding-bottom: 0; }
.es-sidebar-guide-list a { text-decoration: none; font-weight: 500; }
.es-sidebar-guide-list a:hover { color: var(--es-primary); }
.es-sidebar-pillar-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.es-sidebar-pillar-tags a {
  background: #f1f5f9;
  font-family: var(--es-font-heading);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 9999px;
  text-decoration: none;
}
.es-sidebar-pillar-tags a:hover { background: var(--es-bg); color: var(--es-primary); }

/* Legacy scroll-hint leftovers: content migrated from older themes sometimes
   carries a `table-hint` div. Never render it as a visible block. */
.es-table-hint, .es-rich-table-hint,
div.es-table-hint, div.es-rich-table-hint {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════
   24. AAWP Product Design (applies ONLY when AAWP is installed)
   ───────────────────────────────────────────────────────────────────
   Every selector below targets AAWP's own markup (.aawp-*). If the AAWP
   plugin is not installed, these rules match nothing and do nothing —
   no toggle needed, no conflicts possible. Manage AAWP itself in
   Plugins; manage your other ads in Ad Inserter.
   ═══════════════════════════════════════════════════════════════════ */
========================================================================== */
.aawp {
  margin: 28px 0 !important;
  clear: both;
}

/* 3-Column Grid Container */
.aawp-grid,
.aawp-grid.aawp-grid--col-3 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
  margin: 24px 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 920px) {
  .aawp-grid,
  .aawp-grid.aawp-grid--col-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}

@media (max-width: 580px) {
  .aawp-grid,
  .aawp-grid.aawp-grid--col-3 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

.aawp-grid__item {
  width: 100% !important;
  display: flex !important;
  box-sizing: border-box !important;
}

/* Product Card Body */
.aawp .aawp-product:not(.aawp-product--horizontal),
.aawp-grid__item .aawp-product {
  position: relative !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
  padding: 18px 16px 20px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease !important;
  overflow: visible !important;
}

.aawp .aawp-product:hover,
.aawp-grid__item .aawp-product:hover {
  transform: translateY(-3px) !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

/* Bestseller Ribbon: Top Left Orange Badge */
.aawp-product__ribbon,
.aawp-product__ribbon--bestseller {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  background: #ea580c !important;
  color: #ffffff !important;
  font-family: var(--es-font-heading) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  line-height: 1.2 !important;
  z-index: 3 !important;
  box-shadow: none !important;
}

/* Discount / Sale Ribbon: Top Right Green Badge */
.aawp-product__ribbon--sale {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
  background: #16a34a !important;
  color: #ffffff !important;
  font-family: var(--es-font-heading) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  line-height: 1.2 !important;
  z-index: 3 !important;
}

/* Product Media & Image - Auto-Responsive & Respects Plugin Settings (Large & High Quality) */
.aawp-product__image-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 10px auto !important;
  text-align: center !important;
  text-decoration: none !important;
  background: transparent !important;
}

.aawp-product__image {
  max-height: 340px !important;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  transition: transform 0.25s ease !important;
  display: block !important;
  margin: 0 auto !important;
}

.aawp-product:hover .aawp-product__image {
  transform: scale(1.03) !important;
}

/* Large Image Setting Modifier (When Image Size is set to Large in AAWP) */
.aawp-product--css-adjust-image-large .aawp-product__image-link,
.aawp-product[class*="image-large"] .aawp-product__image-link {
  min-height: 0 !important;
  height: auto !important;
}

.aawp-product--css-adjust-image-large .aawp-product__image,
.aawp-product[class*="image-large"] .aawp-product__image {
  max-height: 380px !important;
  max-width: 100% !important;
}

/* Horizontal Template - Preserves 2-Column Split on Desktop, Responsive on Mobile */
.aawp .aawp-product--horizontal {
  display: block !important;
  padding: 24px !important;
}

.aawp .aawp-product--horizontal .aawp-product__thumb {
  float: left !important;
  width: 260px !important;
  max-width: 260px !important;
}

.aawp .aawp-product--horizontal.aawp-product--css-adjust-image-large .aawp-product__thumb {
  width: 290px !important;
  max-width: 290px !important;
}

.aawp .aawp-product--horizontal .aawp-product__image {
  max-height: 280px !important;
  max-width: 100% !important;
}

.aawp .aawp-product--horizontal .aawp-product__content,
.aawp .aawp-product--horizontal .aawp-product__footer {
  margin-left: 280px !important;
  padding-left: 24px !important;
  align-items: flex-start !important;
  text-align: left !important;
}

@media (max-width: 768px) {
  .aawp .aawp-product--horizontal .aawp-product__thumb {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 16px !important;
  }
  .aawp .aawp-product--horizontal .aawp-product__content,
  .aawp .aawp-product--horizontal .aawp-product__footer {
    margin-left: 0 !important;
    padding-left: 0 !important;
    align-items: center !important;
    text-align: center !important;
  }
}

/* 3-Column Grid Template: Auto-Responsive Proportional Image Scale */
.aawp-grid .aawp-product .aawp-product__image-link,
.aawp-grid__item .aawp-product .aawp-product__image-link {
  min-height: 0 !important;
  max-height: none !important;
  height: auto !important;
  margin: 8px auto !important;
}

.aawp-grid .aawp-product .aawp-product__image,
.aawp-grid__item .aawp-product .aawp-product__image {
  max-height: 240px !important;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Product Content & Typography - Auto-Responsive, Tight & Professional */
.aawp-product__content {
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 0 !important;
  align-items: center !important;
  text-align: center !important;
  padding: 0 4px !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.aawp-product__title {
  font-family: var(--es-font-heading) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  line-height: 1.38 !important;
  color: #0f172a !important;
  text-decoration: none !important;
  text-align: center !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: auto !important; /* Remove awkward artificial height */
  margin: 6px 0 8px 0 !important;
  padding: 0 !important;
}

.aawp-product__title:hover {
  color: #dc2626 !important;
}

/* Star Ratings & Reviews (Zero Blank Space if Empty) */
.aawp-product__meta:empty,
.aawp-product__pricing:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.aawp-product__meta,
.aawp-star-rating {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  margin: 2px auto 6px auto !important;
}

/* Product Footer & Buy Button (Organic Auto-Spacing) */
.aawp-product__footer {
  margin-top: 6px !important;
  padding: 0 !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

.aawp-product .aawp-button,
.aawp-product a.aawp-button {
  margin: 8px auto 4px auto !important;
}

/* AAWP Buttons: ALWAYS CENTERED AT MIDDLE & HIGH-CONVERTING VIBRANT RED PILL */
.aawp-button,
.aawp-button--buy,
.aawp-button--red,
a[class*="aawp-button"],
.aawp .aawp-button,
a.aawp-button {
  display: flex !important;
  width: fit-content !important;
  max-width: 250px !important;
  min-width: 170px !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  margin: 18px auto 20px auto !important;
  background: linear-gradient(135deg, #c92a2a 0%, #a91d1d 100%) !important;
  color: #ffffff !important;
  font-family: var(--es-font-heading) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 11px 24px !important;
  border-radius: 9999px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(201, 42, 42, 0.35) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border: none !important;
  cursor: pointer !important;
  line-height: 1.25 !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.entry-content a.aawp-button,
.entry-content .aawp-button,
p:has(> a.aawp-button) {
  display: flex !important;
  justify-content: center !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  clear: both !important;
}

.aawp-button:hover,
.aawp-button--buy:hover,
.aawp-button--red:hover,
a[class*="aawp-button"]:hover,
.aawp .aawp-button:hover,
a.aawp-button:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(201, 42, 42, 0.48) !important;
}

/* (in-content link color lives in §18.3 — not duplicated here) */

/* ═══════════════════════════════════════════════════════════════════
   §29. RESPONSIVE SAFETY NET
   Guarantees the layout never breaks or overflows horizontally on any
   viewport. All rules are additive guards — they do not touch desktop.
   ═══════════════════════════════════════════════════════════════════ */

/* 29.1 Global overflow guards
   NOTE: `overflow-x: clip` (NOT `hidden`). `hidden` makes the body a scroll
   container, which silently breaks `position: sticky` on the header (the header
   then scrolls away instead of sticking). `clip` clips overflow identically but
   does NOT create a scroll container, so the sticky header keeps working. */
html, body { max-width: 100%; overflow-x: clip; }
.entry-content { overflow-wrap: break-word; word-wrap: break-word; }
.entry-content pre,
.entry-content code,
.entry-content blockquote,
.entry-content .wp-block-embed,
.es-specs-card,
.es-verdict-box,
.es-pros-cons {
  max-width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
}
/* NOTE: `<table>` and `.wp-block-table` are intentionally NOT given
   overflow-x here. Horizontal scroll belongs to the wrapper divs
   (.es-rich-table-scroll / .wp-block-table wrapper) — never the table,
   which would clip its own columns. See §29.7 and §33. */
.entry-content iframe,
.entry-content video,
.entry-content embed,
.entry-content object,
.entry-content img,
.entry-content .wp-block-image img {
  max-width: 100%;
  height: auto;
}
/* Long unbroken strings / URLs must never push the layout wide */
.es-card-title, .es-card-excerpt, .entry-title { overflow-wrap: break-word; }

/* 29.2 Ads: never wider than their column */
.es-ad-slot, .es-ad-slot ins.adsbygoogle { max-width: 100% !important; box-sizing: border-box; }

/* 29.3a Container gutter — GeneratePress "separate-containers" can leave the
   page wrapper with zero side padding, so on resize the article card touches
   the screen edge. Re-add a consistent gutter below the 3-col breakpoint. */
@media (max-width: 1339px) {
  body .site.grid-container,
  body #page.grid-container {
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }
}

/* 29.3 Tablet / small-desktop: fully dissolve the fixed 3-column single shell.
   GeneratePress keeps `#primary` at a fixed px width (e.g. 630px) with the
   sidebar floated beside it. Once we stack, that leftover width orphaned the
   sidebar as a floating block and left a blank column on the right — so reset
   width/float/clear explicitly, not just `display:block`. */
@media (max-width: 1339px) {
  body.single .site-content { display: block; }
  body.single #primary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
  }
  body.single #right-sidebar {
    position: static;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both;
    margin: 28px 0 0;
    padding: 0;
  }
  body.single #right-sidebar .inside-right-sidebar { margin: 0; padding: 0; }
  body.single:not(.es-no-article-card) .site-content .inside-article {
    padding: 24px 20px;
  }
}

/* 29.4 Mobile (≤768px): stack everything, generous tap targets */
@media (max-width: 768px) {
  body .site.grid-container,
  body #page.grid-container { padding-left: 16px; padding-right: 16px; }
  body.single:not(.es-no-article-card) .site-content .inside-article {
    padding: 20px 16px;
    border-radius: 12px;
  }
  .entry-title, body:not(.es-no-site-typography) .entry-title {
    font-size: clamp(1.6rem, 7vw, 2rem);
    line-height: 1.18;
  }
  .es-eeat-byline { flex-wrap: wrap; }
  /* Archive cards: full-width rows with comfortable spacing */
  body:not(.es-no-archive-cards).blog #main,
  body:not(.es-no-archive-cards).archive #main,
  body:not(.es-no-archive-cards).search #main { grid-template-columns: 1fr !important; gap: 18px; }
  /* Sticky buy bar clears the TOC dock */
  .es-sticky-bar { left: 12px; right: 12px; border-radius: 12px; }
}

/* 29.5 Small phones (≤480px) */
@media (max-width: 480px) {
  .es-card-body { padding: 14px 14px 16px; }
  .es-card-title { font-size: 16px; }
  .es-eeat-avatar-img { width: 40px; height: 40px; }
  .es-toc-inner { width: calc(100vw - 32px); max-width: calc(100vw - 32px); }
  .entry-content ul, .entry-content ol { padding-left: 1.15rem; }
}

/* 29.6 Coarse pointers: enlarge interactive targets */
@media (hover: none) {
  .es-toc-dock-btn { padding: 12px 16px; }
  .es-card-cta, .es-read-guide-link { min-height: 40px; }
}

/* 29.7 Tables: never overflow the content column on narrow screens.
   NEVER set display:block on a <table> — it destroys table layout and
   breaks text into fragments. Scrolling is owned by the wrapper divs
   (.es-rich-comparison-table-wrapper / .es-rich-table-scroll / .wp-block-table),
   never by the table element itself. */
.entry-content .wp-block-table {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.entry-content .wp-block-table table {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
/* Never allow word-break inside ANY table cell — cells keep normal wrapping
   so text never fragments mid-word; the wrapper scrolls instead. */
.entry-content table th,
.entry-content table td {
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

/* ═══════════════════════════════════════════════════════════════════
   §30. HEADER & NAVIGATION PARITY  (reference-benchmark match)
   Ports the bakingbakewaresets.com capsule header, primary nav, dropdown
   menus, smart sticky classes, and mobile drawer into the plugin so any
   niche site gets byte-for-byte the same chrome.
   ═══════════════════════════════════════════════════════════════════ */

/* 30.1 Capsule shell (desktop base already in §02 — add smart-sticky) */
.admin-bar .site-header { top: 44px !important; }
.site-header.es-header-hidden {
  transform: translateY(-135%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.site-header.es-header-visible {
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  box-shadow: 0 12px 32px -4px rgba(15,61,46,0.14), 0 4px 12px rgba(0,0,0,0.04) !important;
}

/* 30.2 Inside header reset — remove GP's 20px/40px block that inflates
   the bar to ~106px; reference measures 58px inside / 64px total. */
.site-header .inside-header {
  padding: 8px 18px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 16px !important;
}

/* 30.3 Two-tone typographic logo (align with reference .main-title a) */
.site-header .site-branding-container { display: flex; align-items: center; gap: 12px; flex-shrink: 0 !important; }
.site-header .main-title { margin: 0 !important; line-height: 1 !important; display: flex !important; flex-direction: column !important; }
.site-header .main-title a {
  font-family: var(--es-font-heading) !important;
  font-weight: 800 !important;
  font-size: 21px !important;
  text-decoration: none !important;
  letter-spacing: -0.02em !important;
  display: inline-flex !important;
  align-items: baseline !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

/* 30.4 Primary navigation (desktop ≥981px) */
@media (min-width: 981px) {
  .main-navigation { background: transparent !important; flex-shrink: 1 !important; display: block !important; }
  .main-navigation .main-nav > ul {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .main-navigation .menu-bar-items { display: flex !important; align-items: center !important; margin-left: 10px !important; }
}

.main-navigation .main-nav > ul > li { position: relative !important; list-style: none !important; margin: 0 !important; }
.main-navigation .main-nav > ul > li > a {
  font-family: var(--es-font-heading) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  color: #334155 !important;
  padding: 8px 13px !important;
  border-radius: 9999px !important;
  transition: all 0.18s cubic-bezier(0.16,1,0.3,1) !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  line-height: 1.2 !important;
}
.main-navigation .main-nav > ul > li:hover > a,
.main-navigation .main-nav > ul > li.current-menu-item > a,
.main-navigation .main-nav > ul > li.current-menu-ancestor > a {
  color: var(--es-primary) !important;
  background: var(--es-primary-light) !important;
}

/* 30.5 Dropdown submenus (desktop) */
.main-navigation .main-nav ul li.menu-item-has-children { position: relative !important; }
.main-navigation .main-nav ul li.menu-item-has-children > a { padding-right: 12px !important; }
.main-navigation .main-nav ul li.menu-item-has-children > a::after {
  content: '' !important;
  display: inline-block !important;
  width: 6px !important;
  height: 6px !important;
  border-right: 1.5px solid currentColor !important;
  border-bottom: 1.5px solid currentColor !important;
  transform: rotate(45deg) translateY(-2px) !important;
  margin-left: 5px !important;
  transition: transform 0.2s ease !important;
}
.main-navigation .main-nav ul li.menu-item-has-children:hover > a::after { transform: rotate(-135deg) translateY(-2px) !important; }

/* 30.5b Single arrow only — never double.
   Most themes (GeneratePress, Astra, Kadence, Blocksy, Neve …) render their own
   dropdown toggle/arrow *inside* the parent link. That sits next to the chevron
   defined above, producing TWO arrows (the bug). Split by breakpoint:
   • Desktop (>=769px): submenus open on hover/focus, so the theme toggle is
     redundant — hide it and keep the suite chevron (reference-design parity).
   • Mobile (<=768px): the theme toggle is the tap target that expands submenus —
     keep it functional and drop the suite chevron instead.
   `:has()` is supported in all current browsers and degrades gracefully. */
@media (min-width: 769px) {
  .main-navigation .main-nav ul li.menu-item-has-children > a .dropdown-menu-toggle,
  .main-navigation .main-nav ul li.menu-item-has-children > a .ast-menu-toggle,
  .main-navigation .main-nav ul li.menu-item-has-children > a .dropdown-nav-toggle,
  .main-navigation .main-nav ul li.menu-item-has-children > a .sub-menu-toggle {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .main-navigation .main-nav ul li.menu-item-has-children > a:has(.dropdown-menu-toggle)::after,
  .main-navigation .main-nav ul li.menu-item-has-children > a:has(.gp-icon)::after,
  .main-navigation .main-nav ul li.menu-item-has-children > a:has(.ast-menu-toggle)::after,
  .main-navigation .main-nav ul li.menu-item-has-children > a:has(.dropdown-nav-toggle)::after,
  .main-navigation .main-nav ul li.menu-item-has-children > a:has(.sub-menu-toggle)::after {
    display: none !important;
  }
}

.main-navigation .main-nav ul .sub-menu {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  min-width: 220px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 8px 6px !important;
  box-shadow: 0 16px 36px -4px rgba(15,61,46,0.16), 0 4px 12px rgba(0,0,0,0.05) !important;
  list-style: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  margin: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(8px) !important;
  transition: all 0.22s cubic-bezier(0.16,1,0.3,1) !important;
  z-index: 1100 !important;
}
.main-navigation .main-nav ul li.menu-item-has-children:hover > .sub-menu,
.main-navigation .main-nav ul li.menu-item-has-children:focus-within > .sub-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}
.main-navigation .main-nav ul .sub-menu li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.main-navigation .main-nav ul .sub-menu li a {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 9px 12px !important;
  border-radius: 10px !important;
  font-family: var(--es-font-heading) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  white-space: nowrap !important;
  transition: all 0.15s ease !important;
  text-decoration: none !important;
  background: transparent !important;
}
.main-navigation .main-nav ul .sub-menu li a:hover,
.main-navigation .main-nav ul .sub-menu li.current-menu-item a {
  background: var(--es-primary-light) !important;
  color: var(--es-primary) !important;
  transform: translateX(3px) !important;
}

/* 30.6 Mobile toggle: hidden on desktop, styled pill on mobile */
@media (min-width: 981px) {
  .menu-toggle, .site-header .menu-toggle, .mobile-menu-control-wrapper,
  .site-header.has-inline-mobile-toggle .menu-toggle { display: none !important; }
}

/* 30.7 Mobile header shell (≤980px) — single 48px row */
@media (max-width: 980px) {
  .site-header {
    margin: 6px auto 10px auto !important;
    max-width: calc(100% - 20px) !important;
    width: calc(100% - 20px) !important;
    border-radius: 9999px !important;
    top: 6px !important;
    padding: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }
  .site-header .inside-header {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 4px 14px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    box-sizing: border-box !important;
    gap: 8px !important;
    width: 100% !important;
    position: relative !important;
  }
  .mobile-menu-control-wrapper { display: flex !important; align-items: center !important; flex: 0 0 auto !important; margin: 0 !important; padding: 0 !important; }
  .mobile-menu-control-wrapper .menu-toggle {
    background: var(--es-primary-light) !important;
    color: var(--es-primary) !important;
    border: 1px solid var(--es-primary-subtle) !important;
    border-radius: 9999px !important;
    padding: 7px 12px !important;
    font-family: var(--es-font-heading) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    line-height: 1 !important;
    min-height: 34px !important;
  }
  .site-header .menu-toggle svg { width: 16px !important; height: 16px !important; fill: currentColor !important; }
  /* Hide duplicate toggle injected inside the drawer */
  #site-navigation .menu-toggle, #site-navigation button.menu-toggle { display: none !important; }

  /* 30.8 Mobile drawer */
  #site-navigation:not(.toggled) { display: none !important; }
  #site-navigation.toggled {
    display: block !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 12px 10px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px !important;
    box-shadow: 0 16px 36px -6px rgba(15,23,42,0.16), 0 4px 12px rgba(15,23,42,0.08) !important;
    z-index: 99999 !important;
    box-sizing: border-box !important;
    animation: esMobileMenuFadeIn 0.22s cubic-bezier(0.16,1,0.3,1) !important;
  }
  @keyframes esMobileMenuFadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
  #site-navigation.toggled .inside-navigation { width: 100% !important; max-width: 100% !important; padding: 0 !important; margin: 0 !important; display: block !important; }
  #site-navigation.toggled .main-nav { display: block !important; width: 100% !important; }
  #site-navigation.toggled .main-nav > ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }
  #site-navigation.toggled .main-nav > ul > li { display: block !important; width: 100% !important; margin: 0 !important; }
  #site-navigation.toggled .main-nav > ul > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    padding: 11px 16px !important;
    border-radius: 10px !important;
    font-family: var(--es-font-heading) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: all 0.15s ease !important;
  }
  #site-navigation.toggled .main-nav > ul > li:hover > a,
  #site-navigation.toggled .main-nav > ul > li.current-menu-item > a {
    background: var(--es-primary-light) !important;
    color: var(--es-primary) !important;
    font-weight: 700 !important;
  }
  #site-navigation.toggled .menu-bar-items,
  #site-navigation.toggled .es-search-trigger { display: none !important; }
  #site-navigation.toggled .main-nav ul .sub-menu {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    border-left: 2px solid var(--es-primary-subtle) !important;
    border-radius: 0 !important;
    padding: 4px 0 4px 14px !important;
    margin: 4px 0 4px 10px !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
}

@media (max-width: 600px) {
  .site-header {
    margin: 5px auto 8px auto !important;
    max-width: calc(100% - 16px) !important;
    width: calc(100% - 16px) !important;
    border-radius: 9999px !important;
    top: 5px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   §31. TOC NUMBERING & HIERARCHY  (reference-benchmark match)
   The rail/dock shell lives in §11. These rules style the numbered
   hierarchical list generated by the TOC script (es-toc-num etc.).
   ═══════════════════════════════════════════════════════════════════ */
.es-toc-list { padding: 8px 0 12px; }
.es-toc-item { margin: 0; list-style: none; }
.es-toc-link {
  display: flex !important;
  align-items: flex-start !important;
  gap: 9px !important;
  padding: 7px 18px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  color: #475569 !important;
  text-decoration: none !important;
  border-left: 2px solid transparent !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box;
}
.es-toc-link:hover { background: #f8fafc !important; color: var(--es-primary) !important; border-left-color: var(--es-primary) !important; }
.es-toc-link.is-active { color: var(--es-primary) !important; font-weight: 600 !important; border-left-color: var(--es-primary) !important; background: color-mix(in srgb, var(--es-primary) 5%, transparent) !important; }
.es-toc-num {
  flex: 0 0 auto;
  min-width: 22px;
  font-family: var(--es-font-heading);
  font-weight: 800;
  font-size: 11px;
  color: var(--es-primary);
  opacity: 0.55;
  padding-top: 1px;
}
.es-toc-link.is-active .es-toc-num { opacity: 1; }
.es-toc-text { flex: 1 1 auto; min-width: 0; }
.es-toc-subnum {
  flex: 0 0 auto;
  min-width: 30px;
  font-family: var(--es-font-heading);
  font-weight: 700;
  font-size: 10.5px;
  color: #94a3b8;
  padding-top: 1px;
}
.es-toc-sublist { list-style: none; margin: 0; padding: 0; }
.es-toc-link--h3 { padding-left: 30px !important; font-size: 12px !important; color: #64748b !important; }
.es-toc-item--h3 .es-toc-link.is-active { color: var(--es-primary) !important; }
.es-toc-link--h2 .es-toc-text { font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════
   §40. REFERENCE CONTENT DESIGN SYSTEM (baking-parity, universal)
   Ports every content-block class the editorial HTML uses (es-rich-*).
   Drop the same HTML into any site + activate this plugin → identical
   design. Tokens remapped to conflict-free --es-* names; all colours
   follow the brand --es-primary so re-branding per niche still works.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --es-surface:        #ffffff;
  --es-surface-alt:    #f1f5f9;
  --es-border:         #e2e8f0;
  --es-border-subtle:  #f1f5f9;
  --es-text-head:      #0f172a;
  --es-text-body:      #334155;
  --es-text-muted:     #64748b;
  --es-text-light:     #94a3b8;
  --es-primary-dark:   #0a291e;
  --es-accent-hover:   #c2410c;
  --es-accent-light:   #fff7ed;
  --es-accent-gold:    #d97706;
  --es-accent-warm:    #ea580c;
  --es-cta-gradient:        linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --es-cta-gradient-hover:  linear-gradient(135deg, #fb923c 0%, #c2410c 100%);
  --es-r-sm:           6px;
  --es-r-md:           10px;
  --es-r-lg:           14px;
  --es-r-pill:         9999px;
  --es-pros-bg:        #f0fdf4;
  --es-pros-border:    #bbf7d0;
  --es-pros-text:      #14532d;
  --es-pros-accent:    #059669;
  --es-cons-bg:        #fef2f2;
  --es-cons-border:    #fecaca;
  --es-cons-text:      #7f1d1d;
  --es-cons-accent:    #dc2626;
  --es-sh-sm:  0 1px 3px 0 rgba(15,23,42,0.04), 0 1px 2px -1px rgba(15,23,42,0.04);
  --es-sh-md:  0 4px 14px -2px rgba(15,23,42,0.06), 0 2px 6px -2px rgba(15,23,42,0.04);
  --es-sh-lg:  0 12px 30px -4px rgba(15,23,42,0.08), 0 4px 12px -4px rgba(15,23,42,0.03);
  --es-sh-cta: 0 4px 14px 0 rgba(234,88,12,0.35);
  --es-sh-cta-hover: 0 6px 20px 0 rgba(234,88,12,0.45);
}

.es-rich-trust-pill {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 13px !important;
  color: #d6d3d1 !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}
.es-rich-trust-pill svg {
  color: #10b981 !important;
  flex-shrink: 0 !important;
}
.es-rich-meta-date,
.es-rich-meta-reading-time,
.es-rich-meta-author {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-weight: 500 !important;
}
.es-rich-meta-sep {
  color: #cbd5e1 !important;
}
/* ==========================================================================
   7. Wirecutter-Grade "Top Picks At A Glance" Showcase
   ========================================================================== */
.es-rich-top-picks-showcase {
  background: #ffffff;
  border: 2px solid #fed7aa;
  border-radius: var(--es-r-lg);
  padding: 28px;
  margin: 36px 0;
  box-shadow: 0 10px 32px -8px rgba(234, 88, 12, 0.12);
}
.es-rich-showcase-header {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--es-border-subtle);
}
.es-rich-showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--es-primary-light);
  color: var(--es-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: var(--es-r-pill);
  border: 1px solid #fed7aa;
  margin-bottom: 10px;
}
.es-rich-showcase-title {
  font-size: clamp(1.4rem, 2.5vw, 1.7rem);
  font-weight: 800;
  color: var(--es-text-head);
  margin: 0 0 6px 0;
}
.es-rich-showcase-sub {
  font-size: 14.5px;
  color: var(--es-text-muted);
  margin: 0;
}
.es-rich-showcase-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.es-rich-pick-row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--es-border);
  border-radius: var(--es-r-md);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.es-rich-pick-row:hover {
  border-color: #fdba74;
  box-shadow: var(--es-sh-md);
  transform: translateY(-1px);
}
.es-rich-pick-highlight {
  background: #fffbf7;
  border: 1.5px solid #fdba74;
  box-shadow: 0 4px 16px -2px rgba(234, 88, 12, 0.08);
}
.es-rich-pick-rank {
  display: flex;
  align-items: center;
  justify-content: center;
}
.es-rich-rank-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #334155;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.es-rich-pick-highlight .es-rich-rank-num {
  background: var(--es-cta-gradient);
  color: #ffffff;
  box-shadow: var(--es-sh-cta);
}
.es-rich-pick-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.es-rich-pick-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--es-primary);
  background: var(--es-primary-light);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #fed7aa;
}
.es-rich-pick-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
}
.es-rich-pick-title a {
  color: var(--es-text-head);
  text-decoration: none;
  transition: color 0.15s ease;
}
.es-rich-pick-title a:hover {
  color: var(--es-primary);
}
.es-rich-pick-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--es-text-muted);
  margin: 0;
}
/* High-Converting CTA Button */
.es-rich-btn-cta {
  background: var(--es-cta-gradient);
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--es-r-pill);
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: var(--es-sh-cta);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.es-rich-btn-cta:hover {
  background: var(--es-cta-gradient-hover);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(234, 88, 12, 0.45);
}
@media (max-width: 680px) {
.es-rich-pick-row {
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto;
    padding: 14px 16px;
  }
.es-rich-pick-cta-wrap {
    grid-column: 1 / -1;
    margin-top: 8px;
  }
.es-rich-btn-cta {
    width: 100%;
    justify-content: center;
  }
}
/* ==========================================================================
   8. Responsive Matrix Comparison Table with Sticky Header & CTAs
   ========================================================================== */
.es-rich-comparison-table-wrapper {
  margin: 36px 0;
  background: #ffffff;
  border: 1px solid var(--es-border);
  border-radius: var(--es-r-lg);
  box-shadow: var(--es-sh-sm);
  /* Scroll must live on the wrapper so mobile gets horizontal swipe.
     overflow:hidden would clip the scroller — use auto + isolation so the
     rounded corners still clip visually without killing scroll. */
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  isolation: isolate;
}
.es-rich-table-scroll {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.es-rich-comparison-table-wrapper table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  font-size: 14px;
}
.es-rich-comparison-table-wrapper th,
.es-rich-comparison-table-wrapper td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--es-border-subtle);
  border-right: 1px solid var(--es-border-subtle);
  vertical-align: middle;
  text-align: left;
}
.es-rich-comparison-table-wrapper th {
  background: #f8fafc;
  color: var(--es-text-head);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
}
.es-rich-comparison-table-wrapper tr:nth-child(even) td {
  background: #fcfbf9;
}
.es-rich-comparison-table-wrapper th:first-child,
.es-rich-comparison-table-wrapper td:first-child {
  font-weight: 600;
}
.es-rich-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef3c7;
  color: #92400e;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: var(--es-r-pill);
}
.es-rich-category-pill {
  display: inline-block;
  background: var(--es-primary-light);
  color: var(--es-primary);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
}
/* Table Header Column Titles: Clean editorial headings (NEVER buttons) */
.es-rich-comparison-table-wrapper th a,
.es-rich-comparison-table-wrapper thead th a {
  background: none !important;
  color: inherit !important;
  font-family: inherit !important;
  font-weight: 700 !important;
  font-size: inherit !important;
  line-height: 1.35 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: inline !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  text-decoration-color: rgba(15, 61, 46, 0.35) !important;
  white-space: normal !important;
  transform: none !important;
  transition: color 0.15s ease, text-decoration-color 0.15s ease !important;
}
.es-rich-comparison-table-wrapper th a:hover,
.es-rich-comparison-table-wrapper thead th a:hover {
  background: none !important;
  color: var(--es-primary, #0f3d2e) !important;
  text-decoration-color: var(--es-primary, #0f3d2e) !important;
  box-shadow: none !important;
  transform: none !important;
}
.es-rich-comparison-table-wrapper td a[href*="amazon.com"],
.es-rich-table-cta {
  background: var(--es-cta-gradient);
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  padding: 7px 14px;
  border-radius: var(--es-r-pill);
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
  transition: all 0.2s ease;
}
.es-rich-comparison-table-wrapper td a[href*="amazon.com"]:hover,
.es-rich-table-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.45);
}
.es-rich-comparison-table-wrapper td a:not([href*="amazon.com"]) {
  color: var(--es-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.es-rich-table-hint {
  padding: 8px 16px;
  background: #f8fafc;
  border-top: 1px solid var(--es-border-subtle);
  font-size: 11.5px;
  color: var(--es-text-muted);
  text-align: center;
}
/* ==========================================================================
   9. Key Laboratory Specifications & Pros/Cons Dual-Column Cards
   ========================================================================== */
.es-rich-specs-card {
  background: #ffffff;
  border: 1px solid var(--es-border);
  border-radius: var(--es-r-md);
  padding: 20px;
  margin: 24px 0;
  box-shadow: var(--es-sh-sm);
}
.es-rich-specs-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--es-text-head);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--es-border-subtle);
}
.es-rich-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
@media (max-width: 640px) {
  .es-rich-specs-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
.es-rich-spec-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: var(--es-r-sm);
  border: 1px solid #edf2f7;
}
.es-rich-spec-label,
.es-rich-spec-val {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.es-rich-spec-label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--es-text-muted);
}
.es-rich-spec-val {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--es-text-head);
  margin-top: 2px;
}
/* Pros and Cons Dual-Column Cards */
.es-rich-pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}
@media (max-width: 640px) {
.es-rich-pros-cons-grid {
    grid-template-columns: 1fr;
  }
}
.es-rich-pros-card, .es-rich-cons-card {
  border-radius: var(--es-r-md);
  padding: 20px 22px;
}
.es-rich-pros-card {
  background: var(--es-pros-bg);
  border: 1px solid var(--es-pros-border);
}
.es-rich-cons-card {
  background: var(--es-cons-bg);
  border: 1px solid var(--es-cons-border);
}
.es-rich-pros-header, .es-rich-cons-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}
.es-rich-pros-header {
  color: var(--es-pros-text);
}
.es-rich-cons-header {
  color: var(--es-cons-text);
}
.es-rich-pros-list, .es-rich-cons-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.es-rich-pros-list li, .es-rich-cons-list li {
  font-size: 14px !important;
  line-height: 1.55 !important;
  position: relative !important;
  padding-left: 20px !important;
  margin: 0 !important;
}
.es-rich-pros-list li::before {
  content: "✓" !important;
  position: absolute !important;
  left: 0 !important;
  color: var(--es-pros-accent) !important;
  font-weight: 800 !important;
}
.es-rich-cons-list li::before {
  content: "✕" !important;
  position: absolute !important;
  left: 0 !important;
  color: var(--es-cons-accent) !important;
  font-weight: 800 !important;
}
/* ==========================================================================
   10. E-E-A-T Culinary Trust, Subtle FTC Disclosure & Author Credentials
   ========================================================================== */
.es-rich-ftc-disclosure {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: transparent !important;
  border: none !important;
  border-left: 2px solid var(--es-primary-subtle) !important;
  border-radius: 0 !important;
  padding: 4px 0 4px 10px !important;
  margin: 6px 0 16px 0 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  color: var(--es-text-muted) !important;
  font-style: italic !important;
}
.es-rich-ftc-disclosure .es-rich-ftc-icon {
  font-size: 13px !important;
  font-style: normal !important;
  line-height: 1 !important;
}
.es-rich-ftc-disclosure .es-rich-ftc-text {
  font-size: 13px !important;
  color: var(--es-text-muted) !important;
}
.es-rich-author-testing-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #ffffff;
  border: 1px solid var(--es-border);
  border-radius: var(--es-r-lg);
  padding: 28px;
  margin: 40px 0;
  box-shadow: var(--es-sh-sm);
}
.es-rich-author-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--es-primary-light);
  color: var(--es-primary);
  border: 1px solid #fed7aa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.es-rich-author-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.es-rich-author-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--es-primary);
}
.es-rich-author-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--es-text-head);
  margin: 0;
}
.es-rich-author-bio {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--es-text-body);
  margin: 0;
}
.es-rich-article-eeat-meta {
  margin: 16px 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.es-rich-eeat-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--es-text-muted);
  text-transform: uppercase;
}
.es-rich-eeat-date-pill svg {
  color: var(--es-primary);
}
.es-rich-eeat-author-card {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 14px 18px !important;
  background: #ffffff !important;
  border: 1px solid var(--es-border, #e2e8f0) !important;
  border-radius: var(--es-r-md, 12px) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02) !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.es-rich-eeat-avatar {
  flex-shrink: 0;
}
.es-rich-eeat-avatar img,
.es-rich-eeat-avatar-img {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  box-shadow: 0 0 0 2px var(--es-primary-subtle) !important;
}
.es-rich-eeat-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.es-rich-eeat-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.es-rich-eeat-author-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--es-text-head) !important;
  text-decoration: none !important;
  transition: color 0.15s ease;
}
.es-rich-eeat-author-link:hover {
  color: var(--es-primary) !important;
}
.es-rich-eeat-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--es-primary-light);
  color: var(--es-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--es-r-pill);
}
.es-rich-eeat-credentials {
  font-size: 12px;
  color: var(--es-text-muted);
  line-height: 1.4;
  white-space: normal;
}
/* Dynamic Deal Banner [es_deal] Styling */
.es-rich-dynamic-deal-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%) !important;
  border: 1.5px solid #86efac !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  margin: 20px auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  box-shadow: var(--es-sh-sm) !important;
}
.es-rich-deal-info {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}
.es-rich-deal-badge {
  background: #16a34a !important;
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  padding: 4px 9px !important;
  border-radius: 6px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}
.es-rich-deal-title {
  font-family: 'Outfit', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #14532d !important;
}
.es-rich-deal-coupon code {
  background: #ffffff !important;
  border: 1px dashed #16a34a !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #15803d !important;
}
.es-rich-deal-btn {
  background: var(--es-accent-warm) !important;
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 9px 18px !important;
  border-radius: 20px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3) !important;
  transition: all 0.2s ease !important;
}
.es-rich-deal-btn:hover {
  background: #c2410c !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.4) !important;
  color: #ffffff !important;
}
/* ==========================================================================
   Elevated Editorial E-E-A-T Author Bio Section (.es-rich-author-bio-section)
   Google Helpful Content & Quality Guidelines Compliant
   ========================================================================== */
.es-rich-author-bio-section {
  margin-top: 52px !important;
  margin-bottom: 36px !important;
  padding: 36px 32px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-top: 4px solid var(--es-primary, #0f3d2e) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 30px -8px rgba(15, 61, 46, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.02) !important;
  position: relative !important;
  box-sizing: border-box !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.es-rich-author-bio-section:hover {
  box-shadow: 0 16px 36px -8px rgba(15, 61, 46, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.03) !important;
}
.es-rich-author-bio-section .wp-block-columns {
  display: flex !important;
  align-items: center !important;
  gap: 28px !important;
  margin: 0 !important;
}
.es-rich-author-avatar {
  margin: 0 !important;
  position: relative !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}
.es-rich-author-avatar img {
  border-radius: 50% !important;
  width: 104px !important;
  height: 104px !important;
  min-width: 104px !important;
  object-fit: cover !important;
  border: 3px solid #ffffff !important;
  box-shadow: 0 0 0 3px var(--es-primary, #0f3d2e), 0 8px 16px -4px rgba(15, 61, 46, 0.25) !important;
  display: block !important;
  transition: transform 0.25s ease !important;
}
.es-rich-author-avatar:hover img {
  transform: scale(1.03) !important;
}
.es-rich-author-bio-section h3,
.es-rich-author-bio-section .wp-block-heading {
  font-family: 'Outfit', sans-serif !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
  margin: 2px 0 10px 0 !important;
  letter-spacing: -0.02em !important;
}
.es-rich-author-bio-section p {
  font-size: 14.5px !important;
  line-height: 1.7 !important;
  color: #475569 !important;
  margin-bottom: 12px !important;
}
/* Subtle E-E-A-T credentials row attached to the author bio */
.es-rich-author-bio-section .wp-block-column:last-child::after {
  content: "✓ 35+ Yrs Baking & Science Experience  •  ✓ Hands-on Lab Benchmarking  •  ✓ Zero Sponsored Rankings";
  display: inline-flex !important;
  align-items: center !important;
  margin-top: 8px !important;
  padding: 8px 14px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  letter-spacing: 0.02em !important;
  white-space: normal !important;
  word-break: break-word !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  line-height: 1.5 !important;
}
@media (max-width: 680px) {
.es-rich-author-bio-section {
    padding: 24px 18px !important;
    margin-top: 36px !important;
  }
.es-rich-author-bio-section .wp-block-columns {
    flex-direction: column !important;
    text-align: center !important;
    gap: 16px !important;
  }
.es-rich-author-avatar {
    margin-bottom: 4px !important;
  }
.es-rich-author-bio-section .wp-block-column:last-child::after {
    display: block !important;
    font-size: 11px !important;
    text-align: center !important;
    line-height: 1.5 !important;
    width: 100% !important;
  }
}
/* ==========================================================================
   Universal Responsive Hardening (All Pages & Device Widths)
   ========================================================================== */
.entry-content .wp-block-table,
.wp-block-table,
.es-rich-table-scroll,
.es-rich-comparison-table-wrapper {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.es-rich-faq-section {
  margin-top: 44px !important;
  padding: 32px 26px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
}
/* ==========================================================================
   31. Hide es-rich-table-hint Completely Across the Website
   ========================================================================== */
.es-rich-table-hint,
div.es-rich-table-hint {
  display: none !important;
}
/* ==========================================================================
   32. Editorial Review Scorecard, At A Glance & Pro/Con Cards
   ========================================================================== */
/* Verdict Scorecard */
.es-rich-editorial-verdict-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%) !important;
  border: 1px solid #a7f3d0 !important;
  border-left: 5px solid #059669 !important;
  border-radius: 14px !important;
  padding: 22px 24px !important;
  margin: 24px 0 28px 0 !important;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.08) !important;
}
.es-rich-verdict-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px dashed rgba(5, 150, 105, 0.25) !important;
}
.es-rich-verdict-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  color: #065f46 !important;
  text-transform: uppercase !important;
}
.es-rich-verdict-badge svg {
  color: #059669 !important;
}
.es-rich-verdict-score {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #059669 !important;
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  padding: 4px 14px !important;
  border-radius: 9999px !important;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.28) !important;
}
.es-rich-verdict-text {
  font-size: 15.5px !important;
  line-height: 1.65 !important;
  color: #1e293b !important;
  margin: 0 !important;
}
/* At A Glance Box */
.es-rich-at-a-glance-box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 22px 24px !important;
  margin: 24px 0 32px 0 !important;
  box-shadow: var(--es-sh-sm) !important;
}
.es-rich-glance-header {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 14px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}
.es-rich-glance-header svg {
  color: var(--es-primary, #0f3d2e) !important;
}
.es-rich-glance-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}
.es-rich-glance-item {
  font-size: 14.5px !important;
  line-height: 1.6 !important;
  color: #334155 !important;
}
.es-rich-glance-label {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}
/* Pro & Con Individual Callout Cards */
.es-rich-pro-callout,
.es-rich-con-callout {
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
  padding: 16px 20px !important;
  border-radius: 12px !important;
  margin: 16px 0 !important;
  box-sizing: border-box !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
  overflow: hidden !important;
  contain: content !important;
  position: relative !important;
}
/* AdSense Policy Protection: Strictly suppress ads inside compact callouts & UI modules.
   Uses :has() so any wrapper class Ad Inserter uses is covered automatically. */
.es-rich-pro-callout:has(ins.adsbygoogle),
.es-rich-con-callout:has(ins.adsbygoogle),
.es-rich-pro-callout:has([id^="container-"]),
.es-rich-con-callout:has([id^="container-"]),
.es-rich-top-picks-showcase:has(ins.adsbygoogle),
.es-rich-editorial-verdict-box:has(ins.adsbygoogle),
.es-rich-at-a-glance-box:has(ins.adsbygoogle),
.es-rich-specs-card:has(ins.adsbygoogle),
.es-rich-pros-cons-grid:has(ins.adsbygoogle),
.es-rich-comparison-table-wrapper:has(ins.adsbygoogle),
.es-rich-eeat-author-card:has(ins.adsbygoogle),
.es-rich-pro-callout ins.adsbygoogle,
.es-rich-con-callout ins.adsbygoogle,
.es-rich-pro-callout iframe,
.es-rich-con-callout iframe {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}
.es-rich-pro-callout {
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  border-left: 4px solid #16a34a !important;
}
.es-rich-con-callout {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  border-left: 4px solid #dc2626 !important;
}
.es-rich-pro-badge,
.es-rich-con-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  margin-top: 2px !important;
}
.es-rich-pro-badge {
  background: #dcfce7 !important;
  color: #16a34a !important;
}
.es-rich-con-badge {
  background: #fee2e2 !important;
  color: #dc2626 !important;
}
.es-rich-pro-body,
.es-rich-con-body {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.es-rich-pro-title,
.es-rich-con-title {
  font-family: 'Outfit', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: 0 0 6px 0 !important;
}
.es-rich-pro-title {
  color: #14532d !important;
}
.es-rich-con-title {
  color: #7f1d1d !important;
}
.es-rich-pro-text,
.es-rich-con-text {
  font-size: 14.5px !important;
  line-height: 1.65 !important;
  color: #334155 !important;
  margin: 0 !important;
}

/* ═══════════════════════════════════════════════════════════════════
   40b. Editorial Mega Footer (reference parity)
   ───────────────────────────────────────────────────────────────────
   Rendered by includes/mega-footer.php in place of GeneratePress'
   footer. Dark 5-column grid: brand column + up to four widget columns.
   Column widgets appear straight from Appearance → Widgets (footer-1…5).
   ═══════════════════════════════════════════════════════════════════ */
body:not(.es-no-mega-footer) .site-footer {
  background: var(--es-footer-bg, #161614) !important;
  background-color: var(--es-footer-bg, #161614) !important;
  color: #d6d3d1 !important;
  border-top: 1px solid #2a2a28 !important;
  margin-top: 36px !important;
  padding: 0 !important;
}
.es-seo-mega-footer {
  background: var(--es-footer-bg, #161614);
  color: #d6d3d1;
  padding: 56px 24px 32px;
  font-size: 14px;
  font-family: var(--es-font-body);
}
.es-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}
.es-footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 36px;
  margin-bottom: 40px;
}
.es-footer-col { flex: 1 1 170px; min-width: 150px; }
.es-seo-mega-footer .es-col-brand { flex: 1.6 1 260px; display: flex; flex-direction: column; gap: 14px; }
.es-footer-logo { text-decoration: none; display: inline-flex; align-items: baseline; }
.es-footer-logo .es-logo-text { font-family: var(--es-font-heading); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.es-footer-logo .es-logo-dark { color: #ffffff; }
.es-footer-logo .es-logo-accent { color: var(--es-accent, #ea580c); }
.es-footer-mission { font-size: 13.5px; line-height: 1.65; color: #a8a29e; margin: 0; max-width: 320px; }
.es-footer-trust-pills { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.es-trust-pill { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #d6d3d1; font-weight: 500; line-height: 1.4; }
.es-trust-pill svg { color: #10b981; flex-shrink: 0; }
.es-footer-col-title,
.es-seo-mega-footer .widget-title,
.es-seo-mega-footer .widget_block h4,
.es-seo-mega-footer .widget_block .wp-block-heading {
  font-family: var(--es-font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a8a29e;
  margin: 0 0 16px 0;
}
.es-seo-mega-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.es-seo-mega-footer ul li { margin: 0; padding: 0; line-height: 1.45; }
.es-seo-mega-footer ul li a { color: #d6d3d1; text-decoration: none; font-size: 13.5px; line-height: 1.45; transition: color .15s ease, transform .15s ease; display: inline-block; }
.es-seo-mega-footer ul li a:hover { color: var(--es-accent, #ea580c); transform: translateX(2px); }
.es-seo-mega-footer ul li a.es-link-highlight,
.es-seo-mega-footer a.es-link-highlight,
.es-seo-mega-footer a[href*="category/"] { color: #fdba74 !important; font-weight: 600; }
.es-seo-mega-footer ul li a.es-link-highlight:hover,
.es-seo-mega-footer a.es-link-highlight:hover,
.es-seo-mega-footer a[href*="category/"]:hover { color: #ffffff !important; }
.es-seo-mega-footer .widget,
.es-seo-mega-footer .widget_block { background: transparent; padding: 0; margin: 0; border: none; box-shadow: none; }
.es-seo-mega-footer .widget_block p { margin: 0 0 10px 0; font-size: 13.5px; line-height: 1.65; color: #a8a29e; }
.es-seo-mega-footer .wp-block-social-links a { color: #d6d3d1; }
.es-sub-footer {
  border-top: 1px solid #2a2a28;
  padding-top: 24px;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.es-sub-footer-left { max-width: 880px; }
.es-footer-copy { font-size: 13px; color: #a8a29e; margin: 0 0 6px 0; font-weight: 500; }
.es-footer-disclaimer { font-size: 12px; line-height: 1.6; color: #78716c; margin: 0; }
.es-footer-disclaimer strong { color: #a8a29e; }
.es-back-to-top {
  background: #27272a; color: #f4f4f5; border: 1px solid #3f3f46; border-radius: 8px;
  padding: 8px 16px; font-family: var(--es-font-body); font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap;
  transition: all .2s ease;
}
.es-back-to-top:hover { background: #3f3f46; color: #fff; border-color: #52525b; transform: translateY(-1px); }
@media (max-width: 1024px) { .es-footer-grid { gap: 28px; } .es-footer-col { flex-basis: 30%; } }
@media (max-width: 700px)  { .es-col-brand { flex-basis: 100%; } .es-footer-col { flex-basis: 44%; } .es-sub-footer { flex-direction: column; } }
@media (max-width: 480px)  { .es-footer-col { flex-basis: 100%; } }

/* ── Homepage / static page featured-image + page-header parity ─────── */
.home .featured-image,
.page:not(.single) .featured-image { display: none !important; }
.blog .page-header,
.archive .page-header {
  background: transparent !important;
  border: none !important;
  padding: 16px 0 24px !important;
  margin-bottom: 16px !important;
  box-shadow: none !important;
}

/* ═══════════════════════════════════════════════════════════════════
   33. Rich Comparison Tables — definitive responsive behaviour (v1.1.15)
   Desktop: full table, normal wrapping. Mobile (≤768px): wrapper scrolls
   horizontally, table keeps a min-width so columns never crush, cells wrap
   normally (no mid-word breaks). Single source of truth — no other block
   in this file may set display/overflow on these selectors.
   ═══════════════════════════════════════════════════════════════════ */
.es-rich-comparison-table-wrapper,
.es-rich-table-scroll {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  box-sizing: border-box !important;
}
.es-rich-comparison-table-wrapper > .es-rich-table-scroll {
  /* Nested scroller inherits outer scroll — keep it passive, never wider. */
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
}
.es-rich-comparison-table-wrapper table,
.es-rich-table-scroll table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  table-layout: auto !important;
}
.es-rich-comparison-table-wrapper th,
.es-rich-comparison-table-wrapper td,
.es-rich-table-scroll th,
.es-rich-table-scroll td {
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
  line-height: 1.55 !important;
}
@media (max-width: 768px) {
  .es-rich-comparison-table-wrapper table,
  .es-rich-table-scroll table {
    /* Wider than a 360-390px phone so swipe is required instead of crush. */
    min-width: 640px !important;
    max-width: none !important;
    width: max-content !important;
  }
  .es-rich-comparison-table-wrapper th,
  .es-rich-comparison-table-wrapper td,
  .es-rich-table-scroll th,
  .es-rich-table-scroll td {
    min-width: 120px !important;
    padding: 10px 12px !important;
    font-size: 13.5px !important;
    white-space: normal !important;
    vertical-align: top !important;
  }
  .es-rich-comparison-table-wrapper th:first-child,
  .es-rich-comparison-table-wrapper td:first-child,
  .es-rich-table-scroll th:first-child,
  .es-rich-table-scroll td:first-child {
    min-width: 140px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   34. Mobile table scroll affordance (v1.1.16)
   Problem: on a ~390px phone a 4-column table shows roughly two columns
   and readers assume it is truncated — not that it scrolls.
   Solution (progressive, zero-JS, no markup required for the cue to be
   reachable by AT):
     a. Outer wrapper clips for rounded corners; the INNER div is the only
        horizontal scroller (single source of truth — no double scrollbars).
     b. CSS scroll-shadow: a soft edge shade that fades out exactly when the
        reader reaches the end (background-attachment local/scroll trick),
        i.e. a live "there is more to the right" signal.
     c. A visible caption under the table on touch/narrow screens:
        "Swipe to see all columns →".
   ═══════════════════════════════════════════════════════════════════ */
.es-rich-comparison-table-wrapper {
  /* Wrapper is chrome only. Clipping here is SAFE now because the inner
     .es-rich-table-scroll is the scroller (an overflow:hidden wrapper no
     longer swallows the scroll). */
  overflow: hidden !important;
}
.es-rich-table-scroll,
.wp-block-table {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-x: contain !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 61, 46, 0.38) transparent;
  background:
    linear-gradient(to right, #ffffff 30%, rgba(255, 255, 255, 0)) left center / 28px 100% no-repeat local,
    linear-gradient(to left,  #ffffff 30%, rgba(255, 255, 255, 0)) right center / 28px 100% no-repeat local,
    radial-gradient(farthest-side at 0% 50%,   rgba(15, 61, 46, 0.16), rgba(15, 61, 46, 0)) left center / 18px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(15, 61, 46, 0.16), rgba(15, 61, 46, 0)) right center / 18px 100% no-repeat scroll;
  background-attachment: local, local, scroll, scroll;
}
.es-rich-table-scroll::-webkit-scrollbar,
.wp-block-table::-webkit-scrollbar { height: 8px; }
.es-rich-table-scroll::-webkit-scrollbar-track,
.wp-block-table::-webkit-scrollbar-track { background: transparent; }
.es-rich-table-scroll::-webkit-scrollbar-thumb,
.wp-block-table::-webkit-scrollbar-thumb {
  background: rgba(15, 61, 46, 0.38);
  border-radius: 99px;
}

/* The caption itself. Hidden by default; revealed where overflow can happen. */
.es-table-scroll-cue {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 8px 2px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: var(--es-text-muted, #64748b);
  text-align: center;
}
.es-table-scroll-cue .es-cue-arrow {
  display: inline-block;
  font-size: 14px;
  animation: es-cue-nudge 1.6s ease-in-out infinite;
}
@keyframes es-cue-nudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(5px); }
}
@media (max-width: 900px) {
  .es-table-scroll-cue { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .es-table-scroll-cue .es-cue-arrow { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   35. Ad-safe layout scaffolding (AdSense Auto Ads + Ezoic + AdInserter)
   The plugin NEVER places ads — AdInserter does. These rules only make
   any ad container behave so it cannot widen, overflow, or collapse the
   layout, and reserved space keeps CLS low. Balance of RPM and UX.
   ═══════════════════════════════════════════════════════════════════ */
/* 35.1 Normalise EVERY known ad wrapper: full-width, centred, clipped. */
ins.adsbygoogle,
.adsbygoogle,
.google-auto-placed,
iframe[id^="aswift"],
iframe[id^="google_ads"],
iframe[src*="googlesyndication.com"],
iframe[src*="doubleclick.net"],
iframe[src*="ezoic"],
[class*="ezoic-"],
[id^="ezoic-pub-ad-placeholder-"],
[id^="div-gpt-ad"],
[id^="google_ads_iframe"],
[class*="ai-viewport"],
[class^="code-block"],
[class*="ai-insert"],
.es-ad-slot,
.es-ad {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  text-align: center !important;
}
/* 35.2 Breathing room so Auto Ads never butt against a heading or image. */
.entry-content ins.adsbygoogle,
.entry-content .google-auto-placed,
.entry-content [class^="code-block"] {
  margin-top: 1.5em !important;
  margin-bottom: 1.5em !important;
}
/* 35.3 Reserve height ONLY for networks that reliably fill (Google/Ezoic).
   When Google reports an unfilled slot we drop the reservation so no blank
   gap is left behind. AdInserter generic blocks are intentionally NOT
   height-forced (adblock users would otherwise see dead space). */
ins.adsbygoogle,
.google-auto-placed { min-height: 250px; }
[id^="ezoic-pub-ad-placeholder-"],
.ezoic-ad { min-height: 250px; }
@media (max-width: 900px) {
  ins.adsbygoogle,
  .google-auto-placed,
  [id^="ezoic-pub-ad-placeholder-"],
  .ezoic-ad { min-height: 100px; }
}
ins.adsbygoogle[data-ad-status="unfilled"],
.google-auto-placed:empty { min-height: 0 !important; }

/* 35.4 Keep affiliate CTAs clickable above any anchor/overlay ad layer. */
.entry-content a[href*="amazon."] { position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════════════════════════════════
   36. CONTRAST / LEGIBILITY FIXES (WCAG 2.2 AA)
   Lighthouse flagged low-contrast text on several chrome elements. All fixes
   are scoped to the exact failing selectors so the brand look is preserved
   while every text colour now clears ≥ 4.5:1 (4.6:1 for the auto ink).
   ═══════════════════════════════════════════════════════════════════════════ */

/* 36.1 Logo suffix "Xplorer" — brand accent (#f97316 = 2.80:1 on white) was
   the failing <span class="es-logo-suffix">. Use the auto-darkened accent ink
   (computed server-side to pass on white); still unmistakably on-brand. */
.es-logo-suffix { color: var(--es-accent-ink, #c2410c) !important; }

/* 36.2 E-E-A-T byline meta. #94a3b8 / #cbd5e1 / #64748b were 2.4–4.4:1 on the
   #f8fafc card. Slate-600 / slate-500 clear AA comfortably. */
.es-eeat-speciality { color: #475569 !important; }
.es-eeat-stats      { color: #475569 !important; }
.es-eeat-sep        { color: #475569 !important; }

/* 36.3 Verdict score pill "8.4 / 10". White on emerald-600 (#059669) is only
   3.77:1 at 15px/800 — below the 4.5:1 normal-text threshold. Emerald-700
   (#047857) lifts it to ~5.6:1 with a near-identical hue. */
.es-rich-verdict-score {
  background: #047857 !important;
  box-shadow: 0 2px 8px rgba(4,120,87,0.28) !important;
}

/* 36.4 Footer small print on the near-black footer (#161614). Stone-500
   (#78716c) was 3.76:1 — unreadable. Stone-300/400 clears 7–8:1. */
.es-footer-disclaimer        { color: #b8b3ae !important; }
.es-footer-disclaimer strong { color: #d6d3d1 !important; }
.es-footer-mission           { color: #b8b3ae !important; }

/* 36.5 Belt-and-braces: never let a configured accent render as small text on
   a light surface. Any element that opts in via .es-accent-text gets the ink. */
.es-accent-text { color: var(--es-accent-ink, #c2410c) !important; }

/* 36.6 Keep heading levels visually identical after the h4 → h3 semantic fix
   (pro/con callout titles) — styling is class-driven, this just kills any
   element-default font-size/margin the h3 tag might inherit. */
.es-rich-pro-title,
.es-rich-con-title { font-size: 16px !important; margin: 0 0 6px 0 !important; }

/* ==========================================================================
   37. NEW AI-SEO COMPONENTS
   Author Bio Card, "It Depends" Box, "As Of" Date, Testimonial
   ========================================================================== */

/* ── 37.0 Screen-reader only utility ──────────────────────────────────────── */
.es-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── 37.1 Author Bio Card (end of article) ────────────────────────────────── */
.es-author-bio-card {
  margin: 2.5rem 0 1.5rem;
  border: 1px solid var(--es-border, #e5e7eb);
  border-radius: 12px;
  background: var(--es-surface, #f9fafb);
  overflow: hidden;
}

.es-author-bio-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
}

.es-author-bio-avatar-wrap {
  flex-shrink: 0;
}

.es-author-bio-avatar-link {
  display: block;
  text-decoration: none;
}

.es-author-bio-avatar-img {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--es-accent, #f97316);
}

.es-author-bio-content {
  flex: 1;
  min-width: 0;
}

.es-author-bio-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.es-author-bio-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.es-author-bio-heading {
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: var(--es-muted, #6b7280) !important;
  margin: 0 0 0.2rem !important;
}

.es-author-bio-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--es-text, #111827);
  text-decoration: none;
  line-height: 1.3;
}

.es-author-bio-name:hover {
  color: var(--es-accent, #f97316);
}

.es-author-bio-speciality {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--es-accent-ink, #c2410c);
}

.es-author-bio-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  background: var(--es-accent, #f97316);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}

.es-author-bio-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--es-text-muted, #374151);
  margin-bottom: 0.75rem;
}

.es-author-bio-text p { margin: 0 0 0.5rem; }
.es-author-bio-text p:last-child { margin-bottom: 0; }

.es-author-bio-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.es-author-bio-posts-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--es-accent-ink, #c2410c);
  text-decoration: none;
}

.es-author-bio-posts-link:hover { text-decoration: underline; }

.es-author-bio-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.es-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--es-border, #e5e7eb);
  color: var(--es-text, #374151);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.es-social-link:hover {
  transform: translateY(-2px);
}

.es-social-twitter:hover  { background: #000; color: #fff; }
.es-social-linkedin:hover { background: #0077b5; color: #fff; }
.es-social-website:hover  { background: var(--es-accent, #f97316); color: #fff; }

@media (max-width: 600px) {
  .es-author-bio-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .es-author-bio-header {
    flex-direction: column;
    align-items: center;
  }
  .es-author-bio-footer {
    justify-content: center;
  }
  .es-author-bio-social { margin-left: 0; }
}

/* ── 37.2 "It Depends" Answer Box ─────────────────────────────────────────── */
.es-it-depends {
  margin: 1.5rem 0;
  border: 1.5px solid #dbeafe;
  border-left: 4px solid #3b82f6;
  border-radius: 0 10px 10px 0;
  background: #eff6ff;
  padding: 1rem 1.25rem;
}

.es-it-depends-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  color: #1d4ed8;
}

.es-it-depends-title {
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: #1d4ed8 !important;
  margin: 0 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

.es-it-depends-intro {
  font-size: 0.9rem;
  color: #374151;
  margin: 0 0 0.65rem;
}

.es-it-depends-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.es-it-depends-item {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #1e293b;
  padding: 0.4rem 0.6rem;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #bfdbfe;
}

.es-it-depends-choose {
  color: #6b7280;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.es-it-depends-product {
  color: #1d4ed8;
}

.es-it-depends-if {
  color: #6b7280;
  font-size: 0.8rem;
}

.es-it-depends-reason {
  color: #1e293b;
}

/* ── 37.3 "As Of" Date Inline Badge ──────────────────────────────────────── */
.es-as-of {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--es-muted, #6b7280);
  background: var(--es-surface, #f3f4f6);
  border: 1px solid var(--es-border, #e5e7eb);
  border-radius: 99px;
  padding: 0.2rem 0.6rem;
  vertical-align: middle;
  white-space: nowrap;
}

.es-as-of-label { font-weight: 500; }
.es-as-of-date  { font-weight: 600; color: var(--es-text, #374151); }

/* ── 37.4 Testimonial Block ───────────────────────────────────────────────── */
.es-testimonial {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--es-border, #e5e7eb);
  border-left: 4px solid var(--es-accent, #f97316);
  border-radius: 0 10px 10px 0;
  background: var(--es-surface, #fffbf5);
  quotes: none;
}

.es-testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.es-testimonial-stars {
  display: inline-flex;
  gap: 1px;
}

.es-testimonial-star {
  font-size: 1rem;
  color: #d1d5db;
}

.es-testimonial-star.es-star-filled {
  color: #f59e0b;
}

.es-testimonial-source {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--es-muted, #6b7280);
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--es-border, #e5e7eb);
  border-radius: 4px;
}

.es-testimonial-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--es-text, #1f2937);
  margin: 0 0 0.75rem;
  font-style: italic;
}

.es-testimonial-footer {
  font-size: 0.82rem;
  color: var(--es-muted, #6b7280);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.es-testimonial-author strong {
  color: var(--es-text, #374151);
  font-style: normal;
}

.es-testimonial-role { color: var(--es-muted, #6b7280); }

.es-testimonial-date {
  color: var(--es-muted, #9ca3af);
}

/* ── 37.5 E-E-A-T Byline: semantic time element (already styled, add focus) ─ */
.es-eeat-stats time {
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════════════════
   38. Raw HTML / Zero-JS Native Components
   ═══════════════════════════════════════════════════════════════════ */

/* ── 38.1 Native HTML5 Semantic FAQ Accordion ───────────────────── */
.es-faq-section {
  margin: 32px 0;
  border: 1px solid var(--es-border, #e2e8f0);
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.es-faq-title {
  margin: 0 !important;
  padding: 16px 20px !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  background: var(--es-bg, #f8fafc);
  border-bottom: 1px solid var(--es-border, #e2e8f0);
  color: var(--es-primary, #0f3d2e) !important;
}

.es-faq-items {
  padding: 6px 16px;
}

.es-faq-item {
  border-bottom: 1px solid var(--es-border, #e2e8f0);
  padding: 14px 6px;
  transition: background-color 0.15s ease;
}

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

.es-faq-question {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--contrast, #0f172a);
  cursor: pointer;
  list-style: none !important;
  user-select: none;
}

.es-faq-question::-webkit-details-marker {
  display: none !important;
}

.es-faq-question:hover {
  color: var(--es-primary, #0f3d2e);
}

.es-faq-icon {
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: #64748b;
}

details[open] .es-faq-icon {
  transform: rotate(180deg);
  color: var(--es-primary, #0f3d2e);
}

.es-faq-answer {
  padding-top: 10px;
  color: #334155;
  line-height: 1.7;
  font-size: 0.975rem;
}

.es-faq-answer p {
  margin: 0 0 10px 0;
}

.es-faq-answer p:last-child {
  margin-bottom: 0;
}

/* ── 38.2 Semantic Zero-JS Score Breakdown Cards ────────────────── */
.es-scores-card {
  margin: 28px 0;
  background: #ffffff;
  border: 1px solid var(--es-border, #e2e8f0);
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.es-scores-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--es-border, #e2e8f0);
}

.es-scores-title {
  margin: 0 !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--contrast, #0f172a);
}

.es-scores-overall-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 700;
}

.es-scores-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.es-score-row-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1e293b;
}

.es-score-val {
  color: var(--es-primary, #0f3d2e);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.es-score-track {
  width: 100%;
  height: 9px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}

.es-score-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--es-primary, #0f3d2e), var(--es-primary-hover, #165b45));
  border-radius: 6px;
  transition: width 0.3s ease;
}

/* ── 38.3 Static In-Content Table of Contents ──────────────────── */
.es-inline-toc {
  margin: 28px 0;
  background: var(--es-bg, #f8fafc);
  border: 1px solid var(--es-border, #e2e8f0);
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.es-inline-toc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--es-border, #e2e8f0);
}

.es-inline-toc-icon {
  font-size: 1.2rem;
}

.es-inline-toc-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--contrast, #0f172a);
  flex-grow: 1;
}

.es-inline-toc-count {
  font-size: 0.82rem;
  color: #64748b;
  background: #ffffff;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid var(--es-border, #e2e8f0);
}

.es-inline-toc-list {
  margin: 0 !important;
  padding-left: 20px !important;
  list-style: decimal;
}

.es-inline-toc-item {
  margin-bottom: 8px;
  line-height: 1.5;
  font-size: 0.95rem;
}

.es-inline-toc-item a {
  color: var(--contrast, #0f172a);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.es-inline-toc-item a:hover {
  color: var(--es-primary, #0f3d2e);
  text-decoration: underline;
}

.es-inline-toc-item--h3 {
  list-style-type: circle;
  margin-left: 18px;
  font-size: 0.9rem;
  opacity: 0.9;
}
