/* ============================================================
   QuickSit Blog — light editorial style (TheFork-inspired)
   Loaded after style.css. Scoped to body.blog-page so it does
   NOT affect the dark landing pages.
   Navbar and footer stay dark — only the body content goes light.
   ============================================================ */

body.blog-page {
  /* Light editorial palette */
  --b-bg: #faf8f3;
  --b-surface: #ffffff;
  --b-surface-2: #f5f2ea;
  --b-border: #e8e4d8;
  --b-border-strong: #d8d2c0;
  --b-text: #14161b;
  --b-text-muted: #555a66;
  --b-text-dim: #8a8f9a;
  --b-accent: #b8944a; /* darker gold for legibility on light */
  --b-accent-strong: #9a7a3a;
  --b-accent-soft: rgba(217, 179, 100, 0.12);
  --b-shadow-card: 0 1px 2px rgba(20, 22, 27, 0.04), 0 4px 16px rgba(20, 22, 27, 0.04);
  --b-shadow-hover: 0 4px 8px rgba(20, 22, 27, 0.06), 0 16px 40px rgba(20, 22, 27, 0.08);

  background-color: var(--b-bg);
  color: var(--b-text);
}

body.blog-page main {
  background: var(--b-bg);
}

/* Override generic .l-container for editorial widths */
body.blog-page .l-container {
  max-width: 1240px;
}

/* Force navbar always-solid-dark on blog pages — without this, the white
   logo and white nav text are invisible against the cream body bg at
   the top of the page (the original navbar is transparent until scroll). */
body.blog-page .l-navbar {
  background-color: var(--g-color-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* Restore navbar text/links to light colors on the dark navbar — they
   were inheriting the dark body color and becoming invisible. */
body.blog-page .l-navbar,
body.blog-page .l-navbar__link,
body.blog-page .l-navbar__login,
body.blog-page .l-mobile-menu__link {
  color: var(--g-color-text);
}

body.blog-page .l-navbar__link:hover {
  color: var(--qs-gold);
}

/* Footer text on blog pages — same problem as the navbar: inherits the
   dark body color from `body.blog-page` and disappears against the dark
   footer bg. Restore to the original light text. */
body.blog-page .l-footer {
  color: var(--g-color-text);
}

body.blog-page .l-footer p,
body.blog-page .l-footer a,
body.blog-page .l-footer h3,
body.blog-page .l-footer .l-footer__heading,
body.blog-page .l-footer .l-footer__attribution {
  color: inherit;
}

body.blog-page .l-footer a:hover {
  color: var(--qs-gold);
}

/* Side-card thumb visuals (the "vs" / "€" / "?" placeholders in the hero).
   Replace inline styles in HTML with proper classes. */
.b-side-card__thumb-glyph {
  font-family: var(--g-font-head);
  color: var(--b-accent);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.b-side-card__thumb-glyph--italic {
  font-style: italic;
  font-weight: 400;
}

/* Note: link colors are scoped specifically to .b-post-body, NOT globally,
   to avoid bleeding gold color onto navbar links, card wrappers, buttons,
   etc. that have their own colors. */

/* ============================================================
   Listing — featured + grid
   ============================================================ */

.b-listing-hero {
  padding: var(--g-space-12) 0 var(--g-space-10);
}

@media (min-width: 900px) {
  .b-listing-hero {
    padding: var(--g-space-16) 0 var(--g-space-12);
  }
}

.b-listing-hero__eyebrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--g-space-6);
  margin-bottom: var(--g-space-6);
  padding-bottom: var(--g-space-4);
  border-bottom: 1px solid var(--b-border);
}

.b-listing-hero__title-eyebrow {
  font-family: var(--g-font-head);
  font-size: var(--g-text-2xl);
  font-weight: 700;
  color: var(--b-text);
  margin: 0;
  line-height: 1;
}

.b-listing-hero__date {
  font-size: var(--g-text-sm);
  color: var(--b-text-dim);
}

/* Hero grid: 1 big featured left + 2 stacked right (desktop) */
.b-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--g-space-6);
}

@media (min-width: 900px) {
  .b-hero-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: var(--g-space-8);
  }
}

/* Featured card (left) */
.b-featured {
  display: flex;
  flex-direction: column;
  background: var(--b-surface);
  border: 1px solid var(--b-border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    box-shadow 250ms ease,
    transform 250ms ease;
}

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

.b-featured__image-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--b-surface-2);
}

.b-featured__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.b-featured__badge {
  position: absolute;
  top: var(--g-space-4);
  left: var(--g-space-4);
}

.b-featured__body {
  padding: var(--g-space-6) var(--g-space-6) var(--g-space-8);
}

@media (min-width: 900px) {
  .b-featured__body {
    padding: var(--g-space-8);
  }
}

.b-featured__title {
  font-family: var(--g-font-head);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--b-text);
  margin-bottom: var(--g-space-4);
}

.b-featured__excerpt {
  font-size: var(--g-text-base);
  line-height: 1.65;
  color: var(--b-text-muted);
  margin-bottom: var(--g-space-5);
}

.b-featured__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--g-space-3);
  font-size: var(--g-text-sm);
  color: var(--b-text-dim);
}

.b-featured__meta-dot {
  width: 3px;
  height: 3px;
  background: var(--b-text-dim);
  border-radius: 50%;
}

/* Side cards (right column on desktop) */
.b-hero-side {
  display: flex;
  flex-direction: column;
  gap: var(--g-space-5);
}

.b-side-card {
  display: flex;
  gap: var(--g-space-4);
  padding: var(--g-space-4);
  background: var(--b-surface);
  border: 1px solid var(--b-border);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 200ms ease,
    transform 200ms ease;
  flex: 1;
  align-items: stretch;
}

.b-side-card:hover {
  border-color: var(--b-accent);
  transform: translateX(2px);
}

.b-side-card__thumb {
  flex-shrink: 0;
  width: 120px;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: var(--b-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.b-side-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.b-side-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--g-space-2);
}

.b-side-card__category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--b-accent);
}

.b-side-card__title {
  font-family: var(--g-font-head);
  font-size: var(--g-text-base);
  font-weight: 700;
  line-height: 1.3;
  color: var(--b-text);
  margin: 0;
}

.b-side-card__meta {
  font-size: var(--g-text-xs);
  color: var(--b-text-dim);
}

/* ============================================================
   Section title + discovery row
   ============================================================ */

.b-section {
  padding: var(--g-space-10) 0;
}

@media (min-width: 900px) {
  .b-section {
    padding: var(--g-space-12) 0;
  }
}

.b-section--alt {
  background: var(--b-surface-2);
  border-top: 1px solid var(--b-border);
  border-bottom: 1px solid var(--b-border);
}

.b-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--g-space-4);
  margin-bottom: var(--g-space-8);
  padding-bottom: var(--g-space-4);
  border-bottom: 1px solid var(--b-border);
}

.b-section__title {
  font-family: var(--g-font-head);
  font-size: var(--g-text-3xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--b-text);
  margin: 0;
}

.b-section__view-all {
  font-size: var(--g-text-sm);
  color: var(--b-accent);
  text-decoration: none;
  font-weight: 600;
}

.b-section__view-all:hover {
  color: var(--b-accent-strong);
  text-decoration: underline;
}

/* Discovery row: search + chips */
.b-discovery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--g-space-5);
  margin-bottom: var(--g-space-8);
  padding: var(--g-space-6);
  background: var(--b-surface);
  border: 1px solid var(--b-border);
  border-radius: 10px;
}

@media (min-width: 720px) {
  .b-discovery {
    grid-template-columns: 1fr 320px;
    align-items: center;
  }
}

.b-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--g-space-2);
}

.b-chip {
  padding: 8px 14px;
  font-size: var(--g-text-sm);
  font-weight: 500;
  color: var(--b-text-muted);
  background: transparent;
  border: 1px solid var(--b-border-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: all 180ms ease;
  font-family: inherit;
}

.b-chip:hover {
  color: var(--b-text);
  border-color: var(--b-accent);
}

.b-chip--active {
  color: var(--b-surface);
  background: var(--b-text);
  border-color: var(--b-text);
}

.b-search {
  position: relative;
}

.b-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--b-text-dim);
  pointer-events: none;
}

.b-search__input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  font-size: var(--g-text-sm);
  font-family: inherit;
  color: var(--b-text);
  background: var(--b-bg);
  border: 1px solid var(--b-border-strong);
  border-radius: 999px;
  transition: border-color 180ms ease;
}

.b-search__input:focus {
  outline: none;
  border-color: var(--b-accent);
  background: var(--b-surface);
}

.b-search__input::placeholder {
  color: var(--b-text-dim);
}

/* ============================================================
   Card grid + cards
   ============================================================ */

.b-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--g-space-6);
}

@media (min-width: 640px) {
  .b-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.b-card {
  display: flex;
  flex-direction: column;
  background: var(--b-surface);
  border: 1px solid var(--b-border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    box-shadow 250ms ease,
    transform 250ms ease,
    border-color 250ms ease;
  position: relative;
}

.b-card:hover {
  box-shadow: var(--b-shadow-hover);
  transform: translateY(-3px);
  border-color: var(--b-border-strong);
}

.b-card__image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--b-surface-2);
}

.b-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.b-card:hover .b-card__image {
  transform: scale(1.04);
}

.b-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
}

.b-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--g-space-5) var(--g-space-5) var(--g-space-6);
}

.b-card__title {
  font-family: var(--g-font-head);
  font-size: var(--g-text-xl);
  font-weight: 700;
  line-height: 1.3;
  color: var(--b-text);
  margin-bottom: var(--g-space-3);
}

.b-card__excerpt {
  font-size: var(--g-text-sm);
  line-height: 1.6;
  color: var(--b-text-muted);
  margin-bottom: var(--g-space-4);
  flex: 1;
}

.b-card__meta {
  display: flex;
  align-items: center;
  gap: var(--g-space-2);
  font-size: var(--g-text-xs);
  color: var(--b-text-dim);
  margin-top: auto;
}

.b-card__meta time {
  font-variant-numeric: tabular-nums;
}

/* Coming-soon variant — branded category placeholder, no SVG-clock cliché */
.b-card--soon {
  pointer-events: none;
}

.b-card--soon .b-card__title {
  color: var(--b-text);
}

.b-card--soon .b-card__image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, #f5f1e6, #ebe5d2);
  border-bottom: 1px solid var(--b-border);
}

/* Per-category placeholder background pattern */
.b-card--soon[data-category='comparativas'] .b-card__image-wrap {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(184, 148, 74, 0.05) 0,
      rgba(184, 148, 74, 0.05) 10px,
      transparent 10px,
      transparent 20px
    ),
    linear-gradient(135deg, #f5f1e6, #ebe5d2);
}

.b-card--soon[data-category='guias'] .b-card__image-wrap {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(184, 148, 74, 0.06) 0,
      rgba(184, 148, 74, 0.06) 1px,
      transparent 1px,
      transparent 14px
    ),
    linear-gradient(180deg, #f8f5ec, #ebe5d2);
}

.b-card--soon[data-category='casos'] .b-card__image-wrap {
  background:
    radial-gradient(circle at 30% 30%, rgba(184, 148, 74, 0.08) 0, transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(184, 148, 74, 0.08) 0, transparent 40%),
    linear-gradient(135deg, #f5f1e6, #ebe5d2);
}

.b-card--soon[data-category='tendencias'] .b-card__image-wrap {
  background:
    linear-gradient(
      45deg,
      rgba(184, 148, 74, 0.08) 25%,
      transparent 25%,
      transparent 75%,
      rgba(184, 148, 74, 0.08) 75%
    ),
    linear-gradient(
      45deg,
      rgba(184, 148, 74, 0.08) 25%,
      transparent 25%,
      transparent 75%,
      rgba(184, 148, 74, 0.08) 75%
    ),
    linear-gradient(135deg, #f5f1e6, #ebe5d2);
  background-size: 24px 24px;
  background-position:
    0 0,
    12px 12px;
}

.b-card--soon .b-card__placeholder {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 var(--g-space-6);
}

.b-card--soon .b-card__placeholder-cat {
  font-family: var(--g-font-head);
  font-style: italic;
  font-size: var(--g-text-2xl);
  color: var(--b-accent);
  display: block;
  line-height: 1;
}

.b-card--soon .b-card__placeholder-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--b-text-dim);
  margin-top: var(--g-space-3);
}

.b-card--soon .b-card__meta {
  color: var(--b-text-dim);
  font-style: italic;
}

/* ============================================================
   Badges / category pills
   ============================================================ */

.b-badge {
  display: inline-block;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--b-text);
  background: var(--b-surface);
  border: 1px solid var(--b-border-strong);
  border-radius: 999px;
}

.b-badge--accent {
  color: var(--b-accent);
  background: var(--b-accent-soft);
  border-color: rgba(184, 148, 74, 0.35);
}

.b-badge--solid {
  color: var(--b-surface);
  background: var(--b-text);
  border-color: var(--b-text);
}

/* ============================================================
   Inline CTA block (between sections)
   ============================================================ */

.b-inline-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--g-space-6);
  padding: var(--g-space-8);
  background: var(--b-text);
  color: #f5f0e3;
  border-radius: 12px;
  margin: var(--g-space-12) 0;
}

@media (min-width: 720px) {
  .b-inline-cta {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: var(--g-space-10);
  }
}

.b-inline-cta__heading {
  font-family: var(--g-font-head);
  font-size: var(--g-text-2xl);
  font-weight: 700;
  color: #fffaee;
  margin-bottom: var(--g-space-2);
  line-height: 1.25;
}

.b-inline-cta__text {
  color: rgba(245, 240, 227, 0.75);
  font-size: var(--g-text-base);
  line-height: 1.55;
  max-width: 560px;
}

.b-inline-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--g-space-3);
}

.b-inline-cta .btn--gradient {
  background: var(--qs-gold-gradient);
  color: #14161b;
  font-weight: 700;
}

.b-inline-cta__secondary {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  font-size: var(--g-text-sm);
  font-weight: 600;
  color: rgba(245, 240, 227, 0.85);
  border: 1px solid rgba(245, 240, 227, 0.2);
  border-radius: 999px;
  text-decoration: none;
  transition: all 200ms ease;
}

.b-inline-cta__secondary:hover {
  color: #fffaee;
  border-color: rgba(245, 240, 227, 0.4);
}

/* ============================================================
   Newsletter capture
   ============================================================ */

.b-newsletter {
  padding: var(--g-space-12) 0;
  text-align: center;
}

.b-newsletter__title {
  font-family: var(--g-font-head);
  font-size: var(--g-text-3xl);
  font-weight: 700;
  margin-bottom: var(--g-space-3);
  color: var(--b-text);
}

.b-newsletter__text {
  font-size: var(--g-text-base);
  color: var(--b-text-muted);
  max-width: 540px;
  margin: 0 auto var(--g-space-6);
  line-height: 1.6;
}

.b-newsletter__form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--g-space-3);
  max-width: 520px;
  margin: 0 auto;
}

.b-newsletter__input {
  flex: 1;
  min-width: 240px;
  padding: 12px 16px;
  font-size: var(--g-text-base);
  font-family: inherit;
  color: var(--b-text);
  background: var(--b-surface);
  border: 1px solid var(--b-border-strong);
  border-radius: 999px;
  transition: border-color 180ms ease;
}

.b-newsletter__input:focus {
  outline: none;
  border-color: var(--b-accent);
}

.b-newsletter__button {
  padding: 12px 22px;
  font-size: var(--g-text-base);
  font-weight: 600;
  color: var(--b-surface);
  background: var(--b-text);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 180ms ease;
  font-family: inherit;
}

.b-newsletter__button:hover {
  background: #2a2e3a;
}

.b-newsletter__legal {
  font-size: var(--g-text-xs);
  color: var(--b-text-dim);
  margin-top: var(--g-space-4);
}

.b-newsletter__success {
  display: none;
  max-width: 520px;
  margin: 0 auto;
  padding: var(--g-space-4) var(--g-space-5);
  background: rgba(110, 196, 139, 0.12);
  border: 1px solid rgba(110, 196, 139, 0.3);
  border-radius: 10px;
  color: #1f6e44;
  font-size: var(--g-text-base);
}

/* Show success state when redirected with ?subscribed=1 */
body.blog-page[data-subscribed='1'] .b-newsletter__form,
body.blog-page[data-subscribed='1'] .b-newsletter__legal {
  display: none;
}

body.blog-page[data-subscribed='1'] .b-newsletter__success {
  display: block;
}

/* Honeypot — hidden from users, visible to bots */
.u-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Article (single post) — light editorial
   ============================================================ */

.b-breadcrumb {
  padding: var(--g-space-6) 0 var(--g-space-2);
  font-size: var(--g-text-sm);
  color: var(--b-text-dim);
}

.b-breadcrumb a {
  color: var(--b-text-muted);
  text-decoration: none;
}

.b-breadcrumb a:hover {
  color: var(--b-accent);
  text-decoration: underline;
}

.b-breadcrumb__sep {
  margin: 0 var(--g-space-2);
}

.b-post-header {
  padding: var(--g-space-6) 0 var(--g-space-8);
  max-width: 880px;
}

.b-post-header__badge {
  margin-bottom: var(--g-space-4);
}

.b-post-header__title {
  font-family: var(--g-font-head);
  font-size: clamp(1.875rem, 1.4rem + 2vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--b-text);
  margin-bottom: var(--g-space-5);
}

.b-post-header__excerpt {
  font-size: var(--g-text-xl);
  line-height: 1.5;
  color: var(--b-text-muted);
  margin-bottom: var(--g-space-6);
  max-width: 760px;
}

.b-post-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--g-space-3);
  font-size: var(--g-text-sm);
  color: var(--b-text-dim);
  padding: var(--g-space-3) 0;
  border-top: 1px solid var(--b-border);
  border-bottom: 1px solid var(--b-border);
}

.b-post-header__meta-dot {
  width: 3px;
  height: 3px;
  background: var(--b-text-dim);
  border-radius: 50%;
}

.b-post-header__share {
  margin-left: auto;
  display: flex;
  gap: var(--g-space-2);
}

.b-post-header__share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--b-text-muted);
  transition: all 180ms ease;
  border: 1px solid var(--b-border);
}

.b-post-header__share a:hover {
  color: var(--b-accent);
  border-color: var(--b-accent);
}

.b-post-header__share svg {
  width: 14px;
  height: 14px;
}

.b-post-hero {
  margin-bottom: var(--g-space-3);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--b-surface-2);
}

.b-post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.b-post-caption {
  font-size: var(--g-text-sm);
  font-style: italic;
  color: var(--b-text-dim);
  text-align: center;
  margin-bottom: var(--g-space-10);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Two-column layout: article + sidebar */
.b-post-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--g-space-10);
  padding-bottom: var(--g-space-12);
}

@media (min-width: 1024px) {
  .b-post-layout {
    grid-template-columns: minmax(0, 720px) 280px;
    gap: var(--g-space-12);
    justify-content: center;
  }
}

.b-post-body {
  font-size: 18px;
  line-height: 1.75;
  color: var(--b-text);
  max-width: 720px;
}

.b-post-body > * + * {
  margin-top: var(--g-space-5);
}

.b-post-body h2 {
  font-family: var(--g-font-head);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: var(--g-space-12);
  margin-bottom: var(--g-space-3);
  color: var(--b-text);
  scroll-margin-top: 120px;
}

.b-post-body h3 {
  font-family: var(--g-font-head);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.3;
  margin-top: var(--g-space-8);
  margin-bottom: var(--g-space-2);
  color: var(--b-text);
  scroll-margin-top: 120px;
}

/* Inline links in article body — scoped here, NOT globally, so they don't
   bleed onto navbar, cards, or buttons. CTA buttons inside the body
   re-establish their own color via higher-specificity rules below. */
.b-post-body > p a,
.b-post-body > h2 a,
.b-post-body > h3 a,
.b-post-body > ul a,
.b-post-body > ol a,
.b-post-body > blockquote a,
.b-method a,
.b-callout a,
.b-faq__answer a {
  color: var(--b-accent);
  text-decoration: underline;
  text-decoration-color: rgba(184, 148, 74, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 200ms ease;
}

.b-post-body > p a:hover,
.b-post-body > h2 a:hover,
.b-post-body > h3 a:hover,
.b-post-body > ul a:hover,
.b-post-body > ol a:hover,
.b-post-body > blockquote a:hover,
.b-method a:hover,
.b-callout a:hover,
.b-faq__answer a:hover {
  text-decoration-color: var(--b-accent);
}

.b-post-body strong {
  color: var(--b-text);
  font-weight: 700;
}

.b-post-body ul,
.b-post-body ol {
  padding-left: var(--g-space-6);
}

.b-post-body li + li {
  margin-top: var(--g-space-2);
}

.b-post-body blockquote {
  border-left: 3px solid var(--b-accent);
  padding: var(--g-space-2) var(--g-space-6);
  margin: var(--g-space-8) 0;
  font-family: var(--g-font-head);
  font-size: var(--g-text-2xl);
  font-style: italic;
  line-height: 1.4;
  color: var(--b-text);
}

/* Methodology box */
.b-method {
  margin: var(--g-space-8) 0;
  padding: var(--g-space-5) var(--g-space-6);
  background: var(--b-surface-2);
  border-left: 3px solid var(--b-accent);
  border-radius: 0 8px 8px 0;
  font-size: var(--g-text-base);
  line-height: 1.65;
}

.b-method__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--b-accent);
  margin-bottom: var(--g-space-2);
}

.b-method__title {
  font-family: var(--g-font-head);
  font-size: var(--g-text-lg);
  font-weight: 700;
  margin-bottom: var(--g-space-2);
  color: var(--b-text);
}

/* Comparison table */
.b-table-wrap {
  overflow-x: auto;
  margin: var(--g-space-8) 0;
  border: 1px solid var(--b-border);
  border-radius: 10px;
}

.b-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--g-text-base);
  background: var(--b-surface);
  min-width: 560px;
}

.b-table th,
.b-table td {
  padding: var(--g-space-4) var(--g-space-5);
  text-align: left;
  border-bottom: 1px solid var(--b-border);
}

.b-table thead th {
  background: var(--b-surface-2);
  color: var(--b-text);
  font-size: var(--g-text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.b-table tbody tr:last-child td {
  border-bottom: none;
}

.b-table tbody tr:hover {
  background: var(--b-surface-2);
}

.b-table__cell--good {
  color: #2c7a4f;
  font-weight: 600;
}

.b-table__cell--bad {
  color: #b94a3c;
  font-weight: 600;
}

.b-table__note {
  font-size: var(--g-text-sm);
  color: var(--b-text-dim);
  margin-top: var(--g-space-2);
  font-style: italic;
}

/* Mid-article CTA — editorial light variant.
   Soft cream surface with gold accent border-left. Integrates into the
   article reading flow instead of breaking it like a dark ad banner. */
.b-cta-card {
  margin: var(--g-space-10) 0;
  padding: var(--g-space-6) var(--g-space-8);
  background: var(--b-surface-2);
  border-left: 3px solid var(--b-accent);
  border-radius: 0 8px 8px 0;
}

.b-post-body .b-cta-card__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--b-accent);
  margin-bottom: var(--g-space-2);
}

.b-post-body .b-cta-card__heading {
  font-family: var(--g-font-head);
  font-size: var(--g-text-xl);
  color: var(--b-text);
  margin-bottom: var(--g-space-2);
  line-height: 1.3;
}

.b-post-body .b-cta-card__text {
  color: var(--b-text-muted);
  margin-bottom: var(--g-space-4);
  font-size: var(--g-text-base);
  line-height: 1.6;
}

.b-post-body a.b-cta-card__button,
a.b-cta-card__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: transparent;
  color: var(--b-text);
  font-weight: 600;
  border: 1px solid var(--b-text);
  border-radius: 999px;
  text-decoration: none;
  font-size: var(--g-text-sm);
  transition: all 200ms ease;
}

.b-post-body a.b-cta-card__button:hover,
a.b-cta-card__button:hover {
  background: var(--b-text);
  color: var(--b-surface);
  text-decoration: none;
}

/* Callouts */
.b-callout {
  margin: var(--g-space-6) 0;
  padding: var(--g-space-5) var(--g-space-6);
  background: var(--b-accent-soft);
  border-left: 3px solid var(--b-accent);
  border-radius: 0 8px 8px 0;
}

.b-callout__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--b-accent);
  margin-bottom: var(--g-space-2);
}

/* FAQ */
.b-faq {
  margin: var(--g-space-10) 0;
}

.b-faq__item {
  border-top: 1px solid var(--b-border);
}

.b-faq__item:last-child {
  border-bottom: 1px solid var(--b-border);
}

.b-faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--g-space-5) 0;
  font-family: var(--g-font-head);
  font-size: var(--g-text-lg);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--g-space-4);
  color: var(--b-text);
  transition: color 180ms ease;
}

.b-faq__item summary::-webkit-details-marker {
  display: none;
}

.b-faq__item summary::after {
  content: '+';
  font-family: var(--g-font-ui);
  font-size: 28px;
  font-weight: 200;
  color: var(--b-accent);
  transition: transform 200ms ease;
  flex-shrink: 0;
}

.b-faq__item[open] summary::after {
  transform: rotate(45deg);
}

.b-faq__item summary:hover {
  color: var(--b-accent-strong);
}

.b-faq__answer {
  padding: 0 0 var(--g-space-5);
  color: var(--b-text-muted);
  line-height: 1.75;
  font-size: var(--g-text-base);
}

/* ============================================================
   Sidebar (sticky TOC + compact CTA)
   ============================================================ */

.b-sidebar {
  display: none;
}

@media (min-width: 1024px) {
  .b-sidebar {
    display: block;
  }
}

.b-sidebar__inner {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: var(--g-space-6);
}

.b-toc {
  padding: var(--g-space-5);
  background: var(--b-surface);
  border: 1px solid var(--b-border);
  border-radius: 10px;
}

.b-toc__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--b-text-dim);
  margin-bottom: var(--g-space-3);
}

.b-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.b-toc__list li {
  border-left: 2px solid var(--b-border);
}

.b-toc__list a {
  display: block;
  padding: 8px 12px;
  font-size: var(--g-text-sm);
  line-height: 1.4;
  color: var(--b-text-muted);
  text-decoration: none;
  transition: all 180ms ease;
  margin-left: -2px;
  border-left: 2px solid transparent;
}

.b-toc__list a:hover {
  color: var(--b-accent-strong);
}

.b-toc__list a.is-active {
  color: var(--b-text);
  font-weight: 600;
  border-left-color: var(--b-accent);
}

/* Compact sidebar CTA */
.b-side-cta {
  padding: var(--g-space-5);
  background: var(--b-text);
  color: #f5f0e3;
  border-radius: 10px;
}

.b-side-cta__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--qs-gold);
  margin-bottom: var(--g-space-2);
}

.b-side-cta__title {
  font-family: var(--g-font-head);
  font-size: var(--g-text-lg);
  font-weight: 700;
  color: #fffaee;
  margin-bottom: var(--g-space-3);
  line-height: 1.3;
}

.b-side-cta__text {
  font-size: var(--g-text-sm);
  color: rgba(245, 240, 227, 0.7);
  margin-bottom: var(--g-space-4);
  line-height: 1.55;
}

a.b-side-cta__button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  text-align: center;
  background: var(--qs-gold-gradient);
  color: #14161b;
  font-weight: 700;
  font-size: var(--g-text-sm);
  border-radius: 999px;
  text-decoration: none;
  margin-bottom: var(--g-space-2);
}

a.b-side-cta__button:hover {
  color: #14161b;
  text-decoration: none;
}

a.b-side-cta__link {
  display: block;
  text-align: center;
  font-size: var(--g-text-xs);
  color: rgba(245, 240, 227, 0.6);
  text-decoration: none;
}

a.b-side-cta__link:hover {
  color: rgba(245, 240, 227, 0.9);
}

/* ============================================================
   Conclusion + final CTA
   ============================================================ */

.b-final-cta {
  margin: var(--g-space-12) 0;
  padding: var(--g-space-10) var(--g-space-8);
  background: linear-gradient(135deg, #fbf5e6, #f3eedc);
  border: 1px solid var(--b-border-strong);
  border-radius: 12px;
  text-align: center;
}

.b-final-cta__heading {
  font-family: var(--g-font-head);
  font-size: var(--g-text-3xl);
  margin-bottom: var(--g-space-3);
  color: var(--b-text);
}

.b-final-cta__text {
  font-size: var(--g-text-lg);
  color: var(--b-text-muted);
  max-width: 540px;
  margin: 0 auto var(--g-space-6);
  line-height: 1.55;
}

.b-final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--g-space-3);
}

/* ============================================================
   Related posts at bottom
   ============================================================ */

.b-related {
  border-top: 1px solid var(--b-border);
  padding: var(--g-space-12) 0 var(--g-space-16);
}

.b-related__heading {
  font-family: var(--g-font-head);
  font-size: var(--g-text-2xl);
  margin-bottom: var(--g-space-8);
  color: var(--b-text);
}

/* ============================================================
   Author bio
   ============================================================ */

.b-author {
  display: flex;
  gap: var(--g-space-4);
  align-items: center;
  padding: var(--g-space-5);
  background: var(--b-surface-2);
  border-radius: 10px;
  margin: var(--g-space-10) 0;
}

.b-author__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--qs-gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--b-text);
  font-family: var(--g-font-head);
  font-weight: 700;
  font-size: var(--g-text-lg);
  flex-shrink: 0;
}

.b-author__info {
  font-size: var(--g-text-sm);
}

.b-post-body .b-author__name {
  font-weight: 700;
  color: var(--b-text);
  margin-bottom: 2px;
}

.b-post-body .b-author__role {
  color: var(--b-text-muted);
  line-height: 1.5;
}

/* Final CTA in post — light gradient bg, dark text */
.b-post-body .b-final-cta__heading {
  color: var(--b-text);
}

.b-post-body .b-final-cta__text {
  color: var(--b-text-muted);
}
