/* ==========================================================================
   CaratAdvice — Design Tokens
   ========================================================================== */

:root {
  --ink:          #17140F;
  --ink-soft:     #2B2620;
  --gold:         #A57C3F;
  --gold-deep:    #8A662F;
  --gold-pale:    #D8BE8C;
  --topbar-bg:    #D8BE8C;
  --ivory:        #FBF8F1;
  --ivory-deep:   #F3EEE2;
  --stone:        #55504A;
  --stone-light:  #8C867B;
  --hairline:     #E4DCC9;
  --emerald:      #1E3B32;
  --white:        #FFFFFF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', -apple-system, sans-serif;

  --container-max: 1320px;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--stone);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

.ca-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

/* -------------------------------------------------- Typography -------- */

.ca-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ca-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.ca-heading {
  font-family: var(--font-display);
  font-weight: 480;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.08;
}
.ca-heading em {
  font-style: italic;
  font-weight: 380;
  color: var(--gold-deep);
}

h1.ca-heading { font-size: clamp(40px, 5.4vw, 74px); }
h2.ca-heading { font-size: clamp(30px, 3.4vw, 46px); }
h3.ca-heading { font-size: clamp(20px, 2vw, 26px); }

.ca-lede {
  font-size: 17px;
  line-height: 1.7;
  color: var(--stone);
  max-width: 46ch;
}

.ca-hairline {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

/* -------------------------------------------------- Buttons ----------- */

.ca-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 6px;
  text-decoration: none;
  transition: all .25s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.ca-btn-gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.ca-btn-gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--white); transform: translateY(-2px); }

.ca-btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.ca-btn-outline:hover { background: var(--ink); color: var(--ivory); transform: translateY(-2px); }

.ca-btn-outline-light {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(251,248,241,0.5);
}
.ca-btn-outline-light:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); transform: translateY(-2px); }

.ca-link-arrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 3px;
  transition: border-color .2s ease, color .2s ease, gap .2s ease;
}
.ca-link-arrow:hover { border-color: var(--gold); color: var(--gold-deep); gap: 12px; }

/* -------------------------------------------------- Top bar ----------- */

.ca-topbar {
  background: var(--topbar-bg);
  color: var(--ink);
  font-size: 12.5px;
}
.ca-topbar .ca-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
}
.ca-topbar-msg { letter-spacing: 0.02em; font-weight: 600; opacity: 0.85; }
.ca-topbar-social { display: flex; gap: 16px; }
.ca-topbar-social a { color: var(--ink); opacity: 0.65; transition: opacity .2s, color .2s; }
.ca-topbar-social a:hover { opacity: 1; color: var(--ivory); }
@media (max-width: 991px) { .ca-topbar { display: none; } }

/* -------------------------------------------------- Header ------------ */

.ca-header {
  background: var(--ink);
  border-bottom: 1px solid rgba(216,190,140,0.15);
  position: sticky;
  top: 0;
  z-index: 900;
}
.ca-header .ca-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 32px;
}
.ca-logo img { height: 40px; width: auto; display: block; }

.ca-nav { display: flex; align-items: center; gap: 4px; height: 100%; }
.ca-nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.ca-nav-link {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ivory);
  text-decoration: none;
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.ca-nav-link:hover, .ca-nav-item:hover .ca-nav-link { color: var(--gold-pale); border-color: var(--gold-pale); }
.ca-nav-link .bi { font-size: 10px; transition: transform .2s ease; }
.ca-nav-item:hover .ca-nav-link .bi { transform: rotate(180deg); }

.ca-header-actions { display: flex; align-items: center; gap: 18px; }
.ca-header-search { color: var(--ivory); font-size: 17px; background: none; border: none; }
.ca-header-actions .ca-btn-outline { color: var(--ivory); border-color: rgba(251,248,241,0.4); }
.ca-header-actions .ca-btn-outline:hover { background: var(--gold-pale); border-color: var(--gold-pale); color: var(--ink); }
.ca-burger { display: none; color: var(--ivory); }

/* Simple dropdown (Rings / Compare) */
.ca-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(23,20,15,0.18);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .2s ease;
  overflow: hidden;
}
.ca-nav-item:hover .ca-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.ca-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 22px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  border-left: 2px solid transparent;
}
.ca-dropdown a .bi { color: var(--gold-deep); font-size: 14px; width: 16px; text-align: center; }
.ca-dropdown a:hover { background: var(--gold-pale); color: var(--ink); border-left-color: var(--gold-deep); }

/* Editorial mega menu */
.ca-mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: min(920px, 90vw);
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(23,20,15,0.22);
  opacity: 0;
  visibility: hidden;
  transition: all .22s ease;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  overflow: hidden;
}
.ca-nav-item:hover .ca-mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.ca-mega-cols {
  padding: 36px 40px;
  columns: 2;
  column-gap: 40px;
}
.ca-mega-cols a {
  display: flex;
  align-items: center;
  gap: 10px;
  break-inside: avoid;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  padding: 7px 0;
  border-bottom: 1px solid var(--ivory-deep);
  transition: color .15s ease, padding-left .15s ease;
}
.ca-mega-cols a .bi { color: var(--gold-deep); font-size: 14px; width: 16px; text-align: center; flex-shrink: 0; }
.ca-mega-cols a:hover { color: var(--gold-deep); background: var(--gold-pale); padding-left: 8px; }

.ca-mega-feature {
  background: var(--ink);
  color: var(--ivory);
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  min-height: 280px;
}
.ca-mega-feature .ca-eyebrow { color: var(--gold-pale); }
.ca-mega-feature .ca-eyebrow::before { background: var(--gold-pale); }
.ca-mega-feature .ca-mega-feature-icon {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--gold-pale); color: var(--gold-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.ca-mega-feature h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 460;
  margin: 10px 0 8px;
  line-height: 1.2;
}
.ca-mega-feature p { font-size: 13.5px; opacity: 0.8; margin-bottom: 14px; }

/* -------------------------------------------------- Hero -------------- */

.ca-hero { position: relative; height: min(78vh, 680px); min-height: 480px; color: var(--ivory); overflow: hidden; }
.ca-hero-slide {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.ca-hero-slide.grad-1 { background: linear-gradient(135deg, #24463C 0%, #17140F 65%); }
.ca-hero-slide.grad-2 { background: linear-gradient(135deg, #4A3520 0%, #17140F 65%); }
.ca-hero-slide.grad-3 { background: linear-gradient(135deg, #17140F 0%, #5C4322 55%, #17140F 100%); }
.ca-hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 90% at 80% 50%, rgba(216,190,140,0.14) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}
.ca-hero-content { position: relative; z-index: 2; max-width: 620px; }
.ca-hero .ca-eyebrow { color: var(--gold-pale); }
.ca-hero .ca-eyebrow::before { background: var(--gold-pale); }
.ca-hero h1 { color: var(--white); margin: 16px 0 20px; }
.ca-hero p.ca-lede { color: rgba(251,248,241,0.85); max-width: 46ch; margin-bottom: 32px; }
.ca-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.ca-hero-dots { position: absolute; z-index: 3; bottom: 32px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.ca-hero-dots button { width: 30px; height: 3px; background: rgba(251,248,241,0.35); border: none; padding: 0; cursor: pointer; transition: background .2s; }
.ca-hero-dots button.active { background: var(--gold-pale); }

/* -------------------------------------------------- Sections ---------- */

section.ca-section { padding: clamp(40px, 5vw, 72px) 0; }
.ca-section-alt { background: var(--ivory-deep); }
.ca-section-ink { background: var(--ink); color: var(--ivory); }
.ca-section-ink .ca-heading { color: var(--ivory); }
.ca-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; }

/* About — no photo, icon/stat panel instead */
.ca-about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 44px; align-items: center; }
.ca-about-panel {
  background: var(--ink); color: var(--ivory);
  padding: 52px 40px; position: relative;
  border: 1px solid var(--gold);
  border-radius: 14px;
  overflow: hidden;
}
.ca-about-panel::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 110px; line-height: 1;
  color: var(--gold-deep); opacity: 0.5;
  position: absolute; top: 12px; left: 28px;
}
.ca-about-stats { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 18px; }
.ca-about-stat .figure { font-family: var(--font-display); font-size: 40px; color: var(--gold-pale); line-height: 1; }
.ca-about-stat .label { font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(251,248,241,0.65); margin-top: 8px; }
.ca-about-grid .ca-lede { text-align: justify; text-justify: inter-word; }

/* Review cards — icon header, no photo */
.ca-review-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
.ca-review-card:hover { box-shadow: 0 24px 48px rgba(23,20,15,0.14); transform: translateY(-6px); border-color: var(--gold); }
.ca-review-icon-head {
  height: 108px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
}
.ca-review-icon-head i { font-size: 34px; color: var(--gold-pale); transition: transform .3s ease; }
.ca-review-card:hover .ca-review-icon-head i { transform: scale(1.15) rotate(-4deg); }
.ca-review-logo-chip {
  position: absolute; bottom: -22px; left: 24px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; color: var(--gold-deep); font-size: 16px;
}
.ca-review-body { padding: 34px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.ca-review-cat { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone-light); margin-bottom: 8px; }
.ca-review-body h3 { margin-bottom: 8px; color: var(--ink); }
.ca-review-body p { font-size: 14px; color: var(--stone); flex: 1; }
.ca-rating { display: flex; align-items: center; gap: 8px; margin: 14px 0; }
.ca-rating .bi-star-fill, .ca-rating .bi-star-half { color: var(--gold); font-size: 13px; }
.ca-rating .bi-star { color: var(--hairline); font-size: 13px; }
.ca-rating span { font-size: 13px; color: var(--stone); font-weight: 600; margin-left: 4px; }

/* Category cards — icon tiles, no photo */
.ca-cat-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 34px 20px;
  text-align: center;
  text-decoration: none;
  height: 100%;
  min-height: 230px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.ca-cat-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(23,20,15,0.12); border-color: var(--gold); background: var(--ink); }
.ca-cat-card-icon {
  width: 64px; height: 64px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 18px;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.ca-cat-card:hover .ca-cat-card-icon { background: var(--gold-pale); color: var(--ink); transform: scale(1.08); }
.ca-cat-card .count { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone-light); margin-bottom: 4px; transition: color .3s ease; }
.ca-cat-card:hover .count { color: var(--gold-pale); }
.ca-cat-card h3 { font-size: 16px; margin: 0; color: var(--ink); transition: color .3s ease; line-height: 1.3; min-height: 2.6em; display: flex; align-items: center; }
.ca-cat-card:hover h3 { color: var(--ivory); }

/* Generic bordered info card — pros/cons boxes, score breakdown, bottom-line
   callouts on detail pages. Deliberately separate from .ca-cat-card, which
   carries homepage-tile-specific min-height/centering that doesn't belong
   on free-height content boxes. */
.ca-info-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 26px;
}
/* Only for cards meant to match a sibling's height in the same row (e.g.
   side-by-side Pros/Cons) — NOT a blanket default, since stacked cards
   (Score Breakdown above Certifications) would otherwise fight over
   100%-of-stretched-column height and leave dead space. */
.ca-info-card-fill { height: 100%; }

/* -------------------------------------------------- Listing Card ------ */
/* Rich retailer card used on category pages (Luxury Brands, Engagement
   Rings, etc.) — one shared template across all 13 review categories.
   Every field here maps to an admin-editable retailer field in the real
   build; nothing is hardcoded to a specific category. */

.ca-listing-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  overflow: hidden;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.ca-listing-card:hover { box-shadow: 0 24px 56px rgba(23,20,15,0.1); border-color: var(--gold); }

/* Decorative corner facet pattern — premium touch, pure CSS/SVG, no stock imagery */
.ca-listing-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 140px; height: 140px;
  background-image:
    linear-gradient(135deg, transparent 48%, rgba(165,124,63,0.07) 48%, rgba(165,124,63,0.07) 52%, transparent 52%),
    linear-gradient(45deg, transparent 48%, rgba(165,124,63,0.05) 48%, rgba(165,124,63,0.05) 52%, transparent 52%);
  pointer-events: none;
}

.ca-listing-seal {
  position: absolute;
  top: 22px; right: 26px;
  display: flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--gold-pale) 0%, var(--gold) 100%);
  color: var(--ink);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 6px 12px 6px 9px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(165,124,63,0.35);
  z-index: 1;
}
.ca-listing-seal i { font-size: 12px; }

.ca-listing-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.ca-listing-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--gold-pale);
  flex-shrink: 0;
}
.ca-listing-titles { flex: 1; min-width: 220px; }
.ca-listing-cat { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone-light); margin-bottom: 4px; }
.ca-listing-titles h3 { font-family: var(--font-display); font-size: 22px; color: var(--ink); margin: 0 0 6px; }
.ca-listing-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--stone-light); }
.ca-listing-overall { display: flex; align-items: center; gap: 8px; margin-top: 38px; }
.ca-listing-overall .num { font-family: var(--font-display); font-size: 26px; color: var(--gold-deep); line-height: 1; }
.ca-listing-overall .of5 { font-size: 12px; color: var(--stone-light); }

.ca-listing-desc { font-size: 14.5px; color: var(--stone); text-align: justify; margin-bottom: 16px; position: relative; z-index: 1; }

.ca-listing-idealfor {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--ivory-deep);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 22px;
}
.ca-listing-idealfor i { color: var(--gold-deep); margin-top: 2px; }
.ca-listing-idealfor strong { font-weight: 700; }

.ca-listing-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.ca-listing-proscons h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.ca-listing-proscons ul { padding-left: 18px; margin: 0; font-size: 13.5px; color: var(--stone); }
.ca-listing-proscons li { margin-bottom: 6px; }

.ca-subscores { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 26px; }
.ca-subscore-item { text-align: center; }
.ca-subscore-item .label { font-size: 10.5px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--stone-light); margin-bottom: 8px; min-height: 2.4em; display: flex; align-items: center; justify-content: center; }
.ca-subscore-ring { position: relative; width: 54px; height: 54px; margin: 0 auto 6px; }
.ca-subscore-ring svg { transform: rotate(-90deg); }
.ca-subscore-ring .track { fill: none; stroke: var(--hairline); stroke-width: 4; }
.ca-subscore-ring .fill { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset .4s ease; }
.ca-subscore-ring .value { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--ink); }

.ca-listing-actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }

@media (max-width: 767px) {
  .ca-subscores { grid-template-columns: repeat(3, 1fr); }
  .ca-listing-proscons { grid-template-columns: 1fr; }
  .ca-listing-seal { position: static; display: inline-flex; margin-bottom: 12px; }
  .ca-listing-overall { margin-top: 0; }
}

/* -------------------------------------------------- Resource Hub ------ */
/* Trend Report / Buying Guide / Style Guide strip on ring-type pages
   (and reusable anywhere a category needs linked-out custom pages). */

.ca-resource-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 30px 26px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.ca-resource-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(23,20,15,0.12); border-color: var(--gold); }
.ca-resource-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: var(--gold-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.ca-resource-card h3 { font-size: 18px; color: var(--ink); margin-bottom: 10px; }
.ca-resource-card p { font-size: 13.5px; color: var(--stone); flex: 1; margin-bottom: 18px; }

/* -------------------------------------------------- Rich Text --------- */
/* Renders admin-authored WYSIWYG content (Key Takeaways, FAQ answers,
   Methodology, etc). Backend note: this HTML must be sanitized server-side
   on save (e.g. an allowlist of <p> <strong> <em> <a> <ul> <ol> <li>) before
   it's stored — it is rendered unescaped here by design. */
.ca-rich-text { font-size: 15px; color: var(--stone); line-height: 1.7; }
.ca-rich-text p { margin-bottom: 14px; }
.ca-rich-text p:last-child { margin-bottom: 0; }
.ca-rich-text strong { color: var(--ink); font-weight: 700; }
.ca-rich-text em { font-style: italic; color: var(--gold-deep); }
.ca-rich-text a { color: var(--gold-deep); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 2px; }
.ca-rich-text a:hover { color: var(--ink); }
.ca-rich-text ul, .ca-rich-text ol { padding-left: 20px; margin-bottom: 14px; }
.ca-rich-text li { margin-bottom: 8px; }
.ca-rich-text blockquote { border-left: 3px solid var(--gold); padding-left: 16px; margin: 16px 0; font-style: italic; color: var(--ink); }

/* Key Takeaways panel — same trust-forward dark treatment as the About stat panel */
.ca-takeaways-panel {
  background: var(--ink); color: var(--ivory);
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 32px 34px;
  position: relative;
  overflow: hidden;
}
.ca-takeaways-panel::before {
  content: "\201C";
  font-family: var(--font-display);
  position: absolute; top: 8px; right: 26px;
  font-size: 110px; line-height: 1;
  color: rgba(216,190,140,0.18);
}
.ca-takeaways-panel .ca-rich-text { color: rgba(251,248,241,0.85); position: relative; z-index: 1; }
.ca-takeaways-panel .ca-rich-text strong { color: var(--gold-pale); }
.ca-takeaways-panel .ca-rich-text a { color: var(--gold-pale); }
.ca-takeaways-panel .ca-rich-text li::marker { color: var(--gold); }

/* Multi-entity feature comparison table */
.ca-feature-table-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: 14px; }
.ca-feature-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.ca-feature-table th, .ca-feature-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--hairline); }
.ca-feature-table thead th { background: var(--ivory-deep); font-weight: 700; color: var(--ink); white-space: nowrap; }
.ca-feature-table thead th:first-child { background: var(--ink); color: var(--gold-pale); }
.ca-feature-table tbody th { font-weight: 600; color: var(--stone-light); white-space: nowrap; background: var(--ivory); }
.ca-feature-table tbody tr:last-child td, .ca-feature-table tbody tr:last-child th { border-bottom: none; }
.ca-feature-table tbody tr:hover td { background: var(--ivory-deep); }

/* Who Should Choose */
.ca-who-card {
  background: var(--white); border: 1px solid var(--hairline); border-radius: 14px;
  padding: 22px 24px; height: 100%;
  display: flex; flex-direction: column; gap: 8px;
}
.ca-who-card .need { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--stone-light); }
.ca-who-card .pick { font-family: var(--font-display); font-size: 19px; color: var(--gold-deep); display: flex; align-items: center; gap: 8px; }
.ca-who-card .reason { font-size: 13.5px; color: var(--stone); }

/* Where to Buy */
.ca-buy-row { display: flex; flex-wrap: wrap; gap: 14px; }
.ca-buy-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--hairline); border-radius: 30px;
  padding: 10px 20px 10px 14px;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.ca-buy-chip:hover { border-color: var(--gold); background: var(--ivory-deep); transform: translateY(-2px); }
.ca-buy-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* -------------------------------------------------- Block System ------ */
/* Advice pages are built from an ordered array of admin-configurable
   blocks (rich_text, stat_strip, guide_grid, callout_list, data_table,
   cta_banner, faq, resource_links). Each Advice page uses a different
   combination/order of these — one template, varied per-page layout. */

.ca-block-title { font-family: var(--font-display); font-size: 24px; color: var(--ink); margin-bottom: 24px; }
.ca-section-ink .ca-block-title { color: var(--ivory); }

/* stat_strip — reuses the About panel's stat treatment as a standalone row */
.ca-stat-strip-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.ca-stat-strip-item .figure { font-family: var(--font-display); font-size: 32px; color: var(--gold-deep); line-height: 1; margin-bottom: 8px; }
.ca-stat-strip-item .label { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--stone-light); }
@media (max-width: 767px) { .ca-stat-strip-row { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; } }

/* cta_banner — reuses newsletter dark-banner treatment for a section-level CTA */
.ca-cta-banner { background: var(--ink); border-radius: 16px; padding: 48px; text-align: center; }
.ca-cta-banner h3 { font-family: var(--font-display); color: var(--ivory); font-size: 26px; margin-bottom: 12px; }
.ca-cta-banner p { color: rgba(251,248,241,0.7); max-width: 52ch; margin: 0 auto 24px; font-size: 14.5px; }

/* -------------------------------------------------- Retailer Search --- */

.ca-search-box {
  position: relative;
  max-width: 480px;
  margin: 0 auto 40px;
}
.ca-search-box input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  border: 1px solid var(--hairline);
  border-radius: 30px;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ca-search-box input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(165,124,63,0.15);
}
.ca-search-box i {
  position: absolute; top: 50%; left: 20px; transform: translateY(-50%);
  color: var(--stone-light); font-size: 16px; pointer-events: none;
}
.ca-search-count { text-align: center; font-size: 13px; color: var(--stone-light); margin-bottom: 32px; }

.ca-az-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  margin-bottom: 48px;
}
.ca-az-nav a, .ca-az-nav span {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 13px; font-weight: 600;
  text-decoration: none;
}
.ca-az-nav a { color: var(--ink); border: 1px solid var(--hairline); transition: background .2s ease, color .2s ease, border-color .2s ease; }
.ca-az-nav a:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.ca-az-nav span { color: var(--hairline); border: 1px solid transparent; }

.ca-az-group { margin-bottom: 8px; }
.ca-az-group-letter {
  font-family: var(--font-display);
  font-size: 28px;
  font-style: italic;
  color: var(--gold);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 10px;
  margin-bottom: 4px;
  scroll-margin-top: 100px;
}

.ca-retailer-row {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
  transition: background .2s ease, padding-left .2s ease;
}
.ca-retailer-row:hover { background: var(--ivory-deep); padding-left: 12px; }
.ca-retailer-row .icon {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: var(--gold-pale);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.ca-retailer-row .info { flex: 1; min-width: 0; }
.ca-retailer-row .name { font-family: var(--font-display); font-size: 17px; color: var(--ink); }
.ca-retailer-row .cat { font-size: 12px; color: var(--stone-light); text-transform: uppercase; letter-spacing: 0.04em; }
.ca-retailer-row .rating { display: flex; align-items: center; gap: 6px; flex-shrink: 0; font-size: 13px; color: var(--stone); }
.ca-retailer-row .rating i { color: var(--gold); }
.ca-retailer-row .chevron { color: var(--stone-light); flex-shrink: 0; }
.ca-retailer-row.ca-hidden-by-search { display: none; }

.ca-search-empty { text-align: center; padding: 60px 20px; color: var(--stone-light); display: none; }
.ca-search-empty.active { display: block; }
.ca-search-empty i { font-size: 32px; color: var(--hairline); margin-bottom: 12px; display: block; }

@media (max-width: 576px) {
  .ca-retailer-row .cat { display: none; }
  .ca-az-nav a, .ca-az-nav span { width: 28px; height: 28px; font-size: 12px; }
}

/* Feature blocks */
.ca-feature { padding: 8px 0; }
.ca-feature .num { font-family: var(--font-display); font-style: italic; font-size: 15px; color: var(--gold); }
.ca-feature-icon { width: 46px; height: 46px; border: 1px solid var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold-deep); font-size: 19px; margin-bottom: 18px; transition: transform .3s ease; }
.ca-feature:hover .ca-feature-icon { transform: translateY(-4px) scale(1.06); }

/* Guide cards — no photo, index + icon treatment */
.ca-guide-card {
  text-decoration: none; display: block; color: inherit;
  background: var(--white); border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 30px 26px; height: 100%;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.ca-guide-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(23,20,15,0.12); border-color: var(--gold); }
.ca-guide-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.ca-guide-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ivory-deep); color: var(--gold-deep);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  transition: background .3s ease, color .3s ease;
}
.ca-guide-card:hover .ca-guide-icon { background: var(--ink); color: var(--gold-pale); }
.ca-guide-index { font-family: var(--font-display); font-style: italic; font-size: 28px; color: var(--hairline); }
.ca-guide-meta { font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 10px; }
.ca-guide-card h3 { font-size: 19px; color: var(--ink); margin-bottom: 10px; line-height: 1.3; }
.ca-guide-foot { font-size: 12.5px; color: var(--stone-light); display: flex; gap: 10px; align-items: center; margin-top: 14px; }

/* Comparison cards — typographic wordmark badges (no scraped brand logos) */
.ca-compare-card {
  background: var(--white); border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 30px 22px; height: 100%;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.ca-compare-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(23,20,15,0.12); border-color: var(--gold); }
.ca-compare-row { display: flex; align-items: center; justify-content: center; gap: 16px; }
.ca-brand-badge {
  flex: 1; min-width: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  height: 74px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--ivory-deep);
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 15px;
  color: var(--ink);
  padding: 8px 10px;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.ca-compare-vs {
  flex-shrink: 0;
  font-family: var(--font-display); font-style: italic; color: var(--gold-deep); font-size: 14px;
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.ca-compare-topic { text-align: center; margin-top: 16px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone-light); }

.ca-compare-swiper { padding: 6px 4px 20px; overflow: hidden; }
.ca-compare-nav { display: flex; gap: 10px; justify-content: flex-end; margin-bottom: -8px; }
.ca-compare-nav button {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--stone-light); background: transparent; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s, color .2s;
}
.ca-compare-nav button:hover { background: var(--ink); border-color: var(--ink); color: var(--gold-pale); }

/* Newsletter */
.ca-newsletter { background: var(--ink); color: var(--ivory); padding: 52px 0; text-align: center; }
.ca-newsletter form { max-width: 480px; margin: 32px auto 0; display: flex; gap: 0; border-bottom: 1px solid rgba(251,248,241,0.35); padding-bottom: 4px; }
.ca-newsletter input { flex: 1; background: transparent; border: none; color: var(--ivory); padding: 12px 8px; font-size: 15px; }
.ca-newsletter input::placeholder { color: rgba(251,248,241,0.5); }
.ca-newsletter input:focus { outline: none; }
.ca-newsletter button { background: none; border: none; color: var(--gold-pale); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; padding: 12px 8px; }

/* FAQ */
.ca-faq-item { border-bottom: 1px solid var(--hairline); }
.ca-faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 22px 0; font-family: var(--font-display); font-size: 18px; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.ca-faq-q .bi { color: var(--gold); transition: transform .25s ease; font-size: 15px; }
.ca-faq-item[open] .ca-faq-q .bi { transform: rotate(45deg); }
.ca-faq-a { padding: 0 0 24px; font-size: 14.5px; color: var(--stone); max-width: 70ch; }

/* -------------------------------------------------- Footer ------------ */

.ca-footer { background: var(--ink); color: var(--ivory-deep); padding: 60px 0 0; }
.ca-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.ca-footer-logo img { height: 34px; margin-bottom: 18px; }
.ca-footer p { font-size: 14px; color: rgba(251,248,241,0.65); line-height: 1.7; max-width: 34ch; }
.ca-footer h5 { font-family: var(--font-body); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-pale); margin-bottom: 20px; }
.ca-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.ca-footer a { color: rgba(251,248,241,0.75); text-decoration: none; font-size: 14px; transition: color .2s; }
.ca-footer a:hover { color: var(--gold-pale); }
.ca-footer-social { display: flex; gap: 14px; margin-top: 20px; }
.ca-footer-social a { width: 34px; height: 34px; border: 1px solid rgba(251,248,241,0.25); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s; }
.ca-footer-social a:hover { background: var(--gold-pale); border-color: var(--gold-pale); color: var(--ink); }
.ca-footer-bottom { border-top: 1px solid rgba(251,248,241,0.12); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: rgba(251,248,241,0.5); flex-wrap: wrap; gap: 10px; }

/* -------------------------------------------------- Mobile ------------ */

@media (max-width: 991px) {
  .ca-nav, .ca-header-search { display: none; }
  .ca-burger { display: flex; align-items: center; font-size: 22px; background: none; border: none; }
  .ca-about-grid { grid-template-columns: 1fr; gap: 36px; }
  .ca-about-panel { padding: 40px 28px; }
  .ca-footer-grid { grid-template-columns: 1fr 1fr; }
  .ca-hero-content { max-width: 100%; }
}
@media (max-width: 576px) {
  .ca-footer-grid { grid-template-columns: 1fr; }
  .ca-header .ca-container { height: 68px; }
  .ca-logo img { height: 30px; }
  .ca-about-stats { grid-template-columns: 1fr 1fr; gap: 20px; }
  .ca-compare-row { flex-direction: column; }
  .ca-compare-vs { transform: rotate(90deg); }
}
