/* ============================================================
 * Store-guide widgets — TrendiesFind theme alignment.
 *
 * Re-uses the same purple brand (--sg-brand #602d6c) + amber
 * accent (--sg-accent #f59e0b) as the rest of the site (blog.css
 * --sh-* tokens). Differences vs the previous SH design:
 *   • Pills (999px) for every CTA — matches .bh-subscribe-btn /
 *     .ba-cat-pill / .ba-share-pill which are the canonical
 *     button shapes used site-wide.
 *   • Brand-gradient CTAs (140deg) — same gradient direction the
 *     theme's hero / featured cards use.
 *   • Softer shadows — lighter than v1, matches the elevated-but-
 *     not-floating feel of .ba-side-card.
 *   • Coupon code chip styled like a real ticket (dashed border).
 *   • Listicle uses bigger numbered counters, lighter card.
 *   • Tip box uses brand purple band instead of green — feels like
 *     part of the site, not a "warning" callout.
 *   • Pull quote gets a giant decorative "—" mark.
 * ============================================================ */

/* Top breathing-room when the article has no featured-image hero.
   Lives here (not in blog.css) because blog.css is bundled into
   minify.min.css which doesn't rebuild on demand — store-guide.css is
   loaded fresh per article render, so changes pick up instantly. */
.article-body.no-hero { margin-top: 32px; }

.sg-article {
  --sg-brand:       #602d6c;
  --sg-brand-dark:  #4b2354;
  --sg-brand-soft:  rgba(96, 45, 108, 0.08);
  --sg-accent:      #f59e0b;
  --sg-accent-dark: #d97706;
  --sg-ink:         #0f172a;
  --sg-ink-2:       #1f2937;
  --sg-muted:       #6b7280;
  --sg-line:        #e5e7eb;
  --sg-soft:        #f8fafc;
  --sg-font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --sg-font-body:    "Lora", "Source Serif Pro", Cambria, "PT Serif", Georgia, serif;
  --sg-font-ui:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --sg-shadow:       0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.06);
  --sg-shadow-h:     0 4px 12px rgba(15, 23, 42, 0.08), 0 16px 32px rgba(15, 23, 42, 0.10);
  /* Mobile safety — prevents long URLs, codes, brand-names from
     punching through their containers and forcing the whole article
     to scroll horizontally on narrow screens. */
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.sg-article * { min-width: 0; }
.sg-article img { max-width: 100%; height: auto; }
.sg-article a { overflow-wrap: anywhere; word-break: break-word; }
.sg-article code,
.sg-article pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ─── Coupon card — compact horizontal layout ───────────────────
 * [discount block]  [brand + title + desc + meta]  [CTA button]
 *      left              middle (flex grows)            right
 * Stacks vertically on screens narrower than 640px.
 * --------------------------------------------------------------- */
.sg-article .sg-coupons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 1.8em 0;
  padding: 0;
  list-style: none;
}
.sg-article .sg-coupon {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--sg-line);
  border-radius: 12px;
  /* Padding bumped 16/18 → 22/22 so the card has more breathing room
     vertically (matches the slightly taller feel of the single-store
     coupon list cards). */
  padding: 22px 22px;
  /* Vertical breathing room when a standalone [sg_coupon] sits between
     paragraph blocks. The multi-coupon wrapper (.sg-coupons) zeroes
     this out below since the grid's `gap` handles spacing there. */
  margin: 1.4em 0;
  font-family: var(--sg-font-ui);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(96, 45, 108, 0.06);
  transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
  list-style: none;
}
.sg-article .sg-coupons .sg-coupon {
  /* Inside the multi-coupon grid, gap handles spacing — kill the
     per-card margin so the cards line up flush with the grid lines. */
  margin: 0;
}
.sg-article .sg-coupon:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 45, 108, 0.25);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06), 0 12px 28px rgba(96, 45, 108, 0.12);
}

/* Left — store logo (replaces old discount badge). Same footprint as
   single-store coupon-list logo for visual consistency across site. */
.sg-article .sg-c-logo {
  flex: 0 0 auto;
  min-width: 80px;
  width: 80px;
  height: 80px;
  align-self: center;
  background: #fff;
  border: 1px solid var(--sg-line);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 8px;
}
.sg-article .sg-c-logo img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; display: block;
}
.sg-article .sg-c-logo.sg-c-logo-fallback {
  background: linear-gradient(135deg, var(--sg-brand) 0%, var(--sg-brand-dark) 100%);
  color: #fff;
  font-family: var(--sg-font-display);
  font-weight: 900;
  font-size: 34px;
  border: 0;
  box-shadow: 0 2px 8px rgba(96, 45, 108, 0.22);
}

/* Middle — info column */
.sg-article .sg-c-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex; flex-direction: column; justify-content: center;
  gap: 4px;
}

/* Brand line — clickable to store coupons page */
.sg-article .sg-c-brand {
  font-family: var(--sg-font-display);
  font-weight: 800;
  font-size: 10.5px;
  color: var(--sg-brand);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 2px;
}
.sg-article .sg-c-brand-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}
.sg-article .sg-c-brand-link:hover {
  color: var(--sg-brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Title — clickable, opens the popup (same JS handler as the CTA
   button). Looks like editorial heading text, not a button. */
.sg-article .sg-c-title,
.sg-article button.sg-c-title {
  font-family: var(--sg-font-display);
  font-weight: 800;
  font-size: 17.5px;
  color: var(--sg-ink);
  line-height: 1.3;
  margin: 0;
  /* Strip the button-look — looks/feels like a normal heading */
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--sg-font-display);
  width: 100%;
  display: block;
}
.sg-article button.sg-c-title:hover {
  color: var(--sg-brand);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(96, 45, 108, 0.4);
  word-break: break-word;
  letter-spacing: -0.015em;
}
.sg-article .sg-c-desc {
  font-size: 13px;
  color: var(--sg-muted);
  line-height: 1.5;
  margin: 8px 0 0;
}
.sg-article .sg-c-meta-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--sg-muted);
  font-family: var(--sg-font-ui);
}
.sg-article .sg-c-meta-item {
  display: inline-flex; align-items: center; gap: 3px;
  white-space: nowrap;
}
/* Badges in the footer row — smaller, neutral by default; type/verified
   keep their accents. Visually grouped with meta items, not the title. */
.sg-article .sg-c-meta-row .sg-c-badge {
  font-size: 9.5px;
  padding: 3px 8px;
  letter-spacing: 0.12em;
}

/* Right — CTA action column */
.sg-article .sg-c-action {
  flex: 0 0 auto;
  min-width: 160px;
  display: flex; align-items: center; justify-content: center;
}

/* CODE reveal button */
.sg-article .sg-coupon details.sg-c-reveal { margin: 0; width: 100%; }
.sg-article .sg-coupon details summary {
  list-style: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--sg-brand) 0%, var(--sg-brand-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 12.5px;
  user-select: none;
  display: block;
  font-family: var(--sg-font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 0;
  transition: transform 0.16s, box-shadow 0.16s;
  box-shadow: 0 4px 10px rgba(96, 45, 108, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}
.sg-article .sg-coupon details summary::before {
  content: "";
  position: absolute;
  top: 0; left: -100%; height: 100%; width: 50%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.22) 50%, transparent 100%);
  transition: left 0.6s;
}
.sg-article .sg-coupon details summary:hover::before { left: 200%; }
.sg-article .sg-coupon details summary::-webkit-details-marker { display: none; }
.sg-article .sg-coupon details summary::marker { display: none; content: ""; }
.sg-article .sg-coupon details summary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(96, 45, 108, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.sg-article .sg-coupon details[open] summary { display: none; }
.sg-article .sg-coupon .sg-code-row {
  display: flex;
  align-items: stretch;
  border: 2px dashed var(--sg-brand);
  border-radius: 8px;
  overflow: hidden;
  background: var(--sg-brand-soft);
  animation: sg-c-reveal-pop 0.22s ease-out;
}
@keyframes sg-c-reveal-pop {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
.sg-article .sg-coupon .sg-code-row code {
  flex: 1;
  padding: 10px 8px;
  font-size: 14px;
  font-weight: 900;
  color: var(--sg-brand);
  letter-spacing: 0.06em;
  text-align: center;
  font-family: "SF Mono", Consolas, monospace;
  background: transparent;
  min-width: 0;
  word-break: break-all;
}
.sg-article .sg-coupon .sg-copy-link {
  background: var(--sg-ink);
  color: #fff !important;
  border: 0;
  padding: 0 12px;
  display: flex; align-items: center;
  font-weight: 800;
  cursor: pointer;
  font-size: 10.5px;
  font-family: var(--sg-font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}
.sg-article .sg-coupon .sg-copy-link:hover { background: var(--sg-ink-2); color: #fff; }

/* DEAL CTA (no code) + SHOW COUPON CODE button — same look. The
   `.sg-show-coupon-btn` is the new code-reveal trigger (mirrors
   single-store's `.pccopybtn` flow). ClipboardJS picks it up via
   data-clipboard-text + data-id and opens the popup in a new tab. */
.sg-article .sg-coupon .sg-deal-cta,
.sg-article .sg-coupon .sg-show-coupon-btn {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--sg-brand) 0%, var(--sg-brand-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 14px 22px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  font-size: 13px;
  font-family: var(--sg-font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.16s, box-shadow 0.16s;
  box-shadow: 0 4px 10px rgba(96, 45, 108, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: 0;
  cursor: pointer;
  font-family: var(--sg-font-display);
}
.sg-article .sg-coupon .sg-deal-cta:hover,
.sg-article .sg-coupon .sg-show-coupon-btn:hover {
  transform: translateY(-1px);
  color: #fff;
  box-shadow: 0 6px 14px rgba(96, 45, 108, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Responsive — stack vertically below 640px */
@media (max-width: 639px) {
  .sg-article .sg-coupon {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px;
  }
  /* Logo stays in the top-left, body to its right, action goes full
     width below — same single-store coupon-list mobile layout. */
  .sg-article .sg-c-logo {
    width: 60px; height: 60px; min-width: 60px;
    padding: 6px;
  }
  .sg-article .sg-c-logo.sg-c-logo-fallback {
    font-size: 24px;
  }
  .sg-article .sg-c-body { text-align: left; flex: 1 1 auto; }
  .sg-article .sg-c-action {
    flex: 1 0 100%;
    min-width: 0;
    width: 100%;
  }
  .sg-article button.sg-c-title { font-size: 15.5px; }
  .sg-article .sg-coupon details.sg-c-reveal { width: 100%; }
}

/* ─── Inline coupon callout ──────────────────────────────────── */
.sg-article .sg-callout {
  margin: 1.8em 0;
  padding: 24px;
  background: linear-gradient(135deg, rgba(96, 45, 108, 0.05) 0%, rgba(245, 158, 11, 0.04) 100%);
  border: 1px solid var(--sg-line);
  border-radius: 16px;
}
.sg-article .sg-callout .sg-callout-ctx {
  margin: 0 0 16px;
  color: var(--sg-ink-2);
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.55;
  font-family: var(--sg-font-body);
}
.sg-article .sg-callout .sg-coupon { margin: 0; max-width: none; box-shadow: none; border-radius: 12px; }

/* ─── Comparison table ───────────────────────────────────────── */
.sg-article .sg-cmp-wrap { margin: 1.8em 0; overflow-x: auto; }
.sg-article .sg-cmp {
  width: 100%;
  max-width: 100%;
  /* Force normal table layout — guards against any earlier rule
     (e.g. the legacy bundle's `.article-body table{display:block}`)
     making the comparison table shrink-wrap to content width. */
  display: table;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14.5px;
  background: #fff;
  border: 1px solid var(--sg-line);
  border-radius: 14px;
  overflow: hidden;
  font-family: var(--sg-font-ui);
  box-shadow: var(--sg-shadow);
}
.sg-article .sg-cmp thead th {
  background: linear-gradient(140deg, var(--sg-brand) 0%, var(--sg-brand-dark) 100%);
  color: #fff;
  text-align: left;
  padding: 16px 18px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--sg-font-display);
  font-weight: 700;
  border: 0;
}
.sg-article .sg-cmp td {
  padding: 16px 18px;
  border-top: 1px solid var(--sg-line);
  vertical-align: top;
  color: var(--sg-ink-2);
  background: #fff;
  font-size: 14.5px;
  line-height: 1.55;
}
.sg-article .sg-cmp tbody tr:nth-child(even) td { background: var(--sg-soft); }
.sg-article .sg-cmp code {
  background: var(--sg-brand-soft);
  color: var(--sg-brand);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12.5px;
  font-family: "SF Mono", Consolas, monospace;
  letter-spacing: 0.04em;
}
/* Comparison-table action button — real /go/<id> click when a DB
   coupon exists, /out/<slug> fallback otherwise. */
.sg-article .sg-cmp .sg-cmp-apply {
  display: inline-block;
  padding: 8px 16px;
  background: var(--sg-accent);
  color: #1f1300 !important;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  font-family: var(--sg-font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none !important;
  white-space: nowrap;
  border: 0;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.22);
}
.sg-article .sg-cmp .sg-cmp-apply:hover {
  background: var(--sg-accent-dark);
  color: #1f1300 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.30);
}
/* "Soft" variant for the /out/ fallback path — visually distinguished
   from the strong /go/ CTA so admins can spot which rows are real-coupon
   versus brand-redirect at a glance. */
.sg-article .sg-cmp .sg-cmp-apply-soft {
  background: #fff;
  color: var(--sg-brand) !important;
  border: 1.5px solid var(--sg-brand);
  box-shadow: none;
}
.sg-article .sg-cmp .sg-cmp-apply-soft:hover {
  background: var(--sg-brand-soft);
  color: var(--sg-brand-dark) !important;
  box-shadow: 0 2px 6px rgba(96, 45, 108, 0.15);
}
.sg-article .sg-cmp .sg-cmp-code-hint {
  margin-top: 6px;
  font-size: 11px;
  color: var(--sg-muted);
  font-family: "SF Mono", Consolas, monospace;
}
.sg-article .sg-cmp .sg-cmp-code-hint code {
  font-size: 11px;
  padding: 2px 8px;
  background: var(--sg-soft);
  color: var(--sg-ink-2);
  letter-spacing: 0.06em;
}

/* ─── Listicle (numbered cards) ──────────────────────────────── */
.sg-article ol.sg-listicle {
  counter-reset: sg-li;
  list-style: none !important;
  padding: 0 !important;
  margin: 1.8em 0;
  font-family: var(--sg-font-ui);
}
.sg-article ol.sg-listicle > li {
  counter-increment: sg-li;
  position: relative;
  padding: 22px 24px 22px 84px;
  margin: 0 0 16px;
  background: #fff;
  border: 1px solid var(--sg-line);
  border-radius: 14px;
  box-shadow: var(--sg-shadow);
  list-style: none;
}
.sg-article ol.sg-listicle > li::marker { content: ""; }
.sg-article ol.sg-listicle > li::before {
  content: counter(sg-li);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(140deg, var(--sg-brand) 0%, var(--sg-brand-dark) 100%);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-family: var(--sg-font-display);
}
.sg-article ol.sg-listicle .sg-li-h {
  font-weight: 700;
  font-size: 17px;
  color: var(--sg-ink);
  margin: 0 0 8px;
  font-family: var(--sg-font-display);
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.sg-article ol.sg-listicle .sg-li-b {
  font-size: 15px;
  color: var(--sg-ink-2);
  line-height: 1.7;
}

/* ─── Tip box (brand purple band) ────────────────────────────── */
.sg-article .sg-tip {
  margin: 1.8em 0;
  background: var(--sg-brand-soft);
  border-left: 4px solid var(--sg-brand);
  padding: 18px 24px;
  border-radius: 0 14px 14px 0;
  font-family: var(--sg-font-ui);
}
.sg-article .sg-tip .sg-tip-h {
  font-weight: 800;
  color: var(--sg-brand-dark);
  margin: 0 0 8px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--sg-font-display);
}
.sg-article .sg-tip .sg-tip-b {
  color: var(--sg-ink-2);
  font-size: 15.5px;
  line-height: 1.65;
}

/* ─── Pull quote + scenario ──────────────────────────────────── */
.sg-article blockquote.sg-quote {
  margin: 2em 0;
  padding: 26px 32px 26px 60px;
  border: 0;
  font-size: 22px;
  font-style: italic;
  color: var(--sg-ink);
  background: var(--sg-soft);
  line-height: 1.5;
  border-radius: 16px;
  font-family: var(--sg-font-body);
  position: relative;
}
.sg-article blockquote.sg-quote::before {
  content: "\201C";
  position: absolute;
  left: 22px;
  top: 8px;
  font-size: 60px;
  line-height: 1;
  color: var(--sg-brand);
  font-family: var(--sg-font-body);
  font-style: normal;
}
.sg-article .sg-scenario {
  margin: 1.8em 0;
  padding: 22px 26px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, rgba(245, 158, 11, 0.02) 100%);
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  font-family: var(--sg-font-body);
}
.sg-article .sg-scenario p {
  margin: 0;
  color: var(--sg-ink-2);
  font-size: 16px;
  line-height: 1.75;
}

/* ─── View-all CTA (inline button, no banner) ────────────────── */
.sg-article .sg-viewall-wrap {
  margin: 1.6em 0;
  text-align: center;
}
.sg-article .sg-viewall-btn {
  display: inline-block;
  padding: 12px 26px;
  background: linear-gradient(140deg, var(--sg-brand) 0%, var(--sg-brand-dark) 100%);
  color: #fff !important;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--sg-font-display);
  letter-spacing: 0.03em;
  border: 0;
  box-shadow: 0 4px 12px rgba(96, 45, 108, 0.22);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.sg-article .sg-viewall-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 16px rgba(96, 45, 108, 0.32);
  transform: translateY(-1px);
  color: #fff !important;
  text-decoration: none;
}
/* Backwards-compat: legacy .sg-vac rendered articles still look right
   if the new button class hasn't replaced them yet. Same styling as
   the new button, no banner. */
.sg-article .sg-vac {
  margin: 1.6em 0;
  text-align: center;
  background: transparent;
  padding: 0;
  display: block;
  box-shadow: none;
}
.sg-article .sg-vac .sg-vac-t { display: none; }
.sg-article .sg-vac .sg-vac-b {
  display: inline-block;
  padding: 12px 26px;
  background: linear-gradient(140deg, var(--sg-brand) 0%, var(--sg-brand-dark) 100%);
  color: #fff !important;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--sg-font-display);
  letter-spacing: 0.03em;
  border: 0;
  box-shadow: 0 4px 12px rgba(96, 45, 108, 0.22);
}
.sg-article .sg-vac .sg-vac-b:hover {
  filter: brightness(1.08);
  color: #fff !important;
  transform: translateY(-1px);
}

/* ─── Brand auto-link (inline competitor mentions) ───────────── */
.sg-article a.sg-brand-link {
  color: var(--sg-brand);
  text-decoration: underline;
  text-decoration-color: rgba(96, 45, 108, 0.4);
  text-underline-offset: 3px;
  font-weight: 600;
  transition: text-decoration-color 0.15s;
}
.sg-article a.sg-brand-link:hover {
  color: var(--sg-brand-dark);
  text-decoration-color: var(--sg-brand);
}

/* ─── Inline figure ──────────────────────────────────────────── */
.sg-article figure.sg-figure {
  margin: 2em 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--sg-soft);
  box-shadow: var(--sg-shadow);
}
.sg-article figure.sg-figure img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 480px;
  object-fit: cover;
}
.sg-article figure.sg-figure figcaption {
  padding: 13px 20px;
  font-size: 13.5px;
  color: var(--sg-muted);
  background: #fff;
  font-style: italic;
  border-top: 1px solid var(--sg-line);
  font-family: var(--sg-font-ui);
}

/* ─── FAQ (accordion) ────────────────────────────────────────── */
.sg-article .sg-faq {
  margin: 2.4em 0;
  padding: 28px 28px 24px;
  background: linear-gradient(180deg, #fafafd 0%, #fff 100%);
  border: 1px solid var(--sg-line);
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.sg-article .sg-faq-heading {
  margin: 0 0 18px !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--sg-ink) !important;
  font-family: var(--sg-font-display);
  line-height: 1.25;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 12px;
}
.sg-article .sg-faq-heading::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0; left: 0;
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--sg-brand) 0%, var(--sg-accent) 100%);
  border-radius: 2px;
}
.sg-article .sg-faq-list { display: block; }
.sg-article .sg-faq-item {
  background: #fff;
  border: 1px solid var(--sg-line);
  border-radius: 12px;
  margin: 0 0 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sg-article .sg-faq-item[open] {
  border-color: var(--sg-brand);
  box-shadow: 0 4px 12px rgba(96, 45, 108, 0.10);
}
.sg-article .sg-faq-item summary.sg-faq-q {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  font-family: var(--sg-font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--sg-ink);
  line-height: 1.4;
  user-select: none;
}
.sg-article .sg-faq-item summary.sg-faq-q::-webkit-details-marker { display: none; }
.sg-article .sg-faq-item summary.sg-faq-q::marker { display: none; content: ''; }
.sg-article .sg-faq-item summary.sg-faq-q:hover { background: var(--sg-soft); }
.sg-article .sg-faq-q-text { flex: 1; }
.sg-article .sg-faq-q-icon {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  position: relative;
  transition: transform 0.25s;
}
.sg-article .sg-faq-q-icon::before,
.sg-article .sg-faq-q-icon::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  background: var(--sg-brand);
  border-radius: 1px;
  transform: translate(-50%, -50%);
}
.sg-article .sg-faq-q-icon::before { width: 12px; height: 2px; }
.sg-article .sg-faq-q-icon::after  { width: 2px;  height: 12px; transition: transform 0.25s; }
.sg-article .sg-faq-item[open] .sg-faq-q-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.sg-article .sg-faq-a {
  padding: 0 20px 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--sg-ink-2);
}
.sg-article .sg-faq-a a {
  color: var(--sg-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 640px) {
  .sg-article .sg-faq { padding: 22px 18px 18px; border-radius: 14px; }
  .sg-article .sg-faq-heading { font-size: 19px !important; }
  .sg-article .sg-faq-item summary.sg-faq-q { font-size: 15px; padding: 14px 16px; }
  .sg-article .sg-faq-a { padding: 0 16px 16px; font-size: 14.5px; }
}

/* ─── Final brand CTA (closing band) ─────────────────────────── */
.sg-article .sg-final-cta {
  margin: 2.5em 0 0;
  padding: 36px 32px;
  text-align: center;
  background: linear-gradient(140deg, var(--sg-brand) 0%, var(--sg-brand-dark) 100%);
  border-radius: 16px;
  box-shadow: var(--sg-shadow);
}
.sg-article .sg-final-cta a {
  display: inline-block;
  background: var(--sg-accent);
  color: #1f1300 !important;
  text-decoration: none;
  padding: 14px 42px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14.5px;
  font-family: var(--sg-font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 0;
  transition: transform 0.15s, background 0.15s;
}
.sg-article .sg-final-cta a:hover {
  background: var(--sg-accent-dark);
  color: #1f1300;
  transform: translateY(-1px);
}

/* ─── Mobile tweaks ──────────────────────────────────────────── */
@media (max-width: 575px) {
  .sg-article .sg-coupons { grid-template-columns: 1fr; gap: 14px; }
  .sg-article .sg-coupon { padding: 20px; }
  .sg-article ol.sg-listicle > li { padding: 20px 20px 20px 72px; }
  .sg-article ol.sg-listicle > li::before { width: 38px; height: 38px; font-size: 15px; left: 16px; top: 18px; }
  .sg-article .sg-viewall-btn,
  .sg-article .sg-vac .sg-vac-b { width: auto; padding: 11px 22px; font-size: 13.5px; }
  .sg-article blockquote.sg-quote { padding: 22px 22px 22px 54px; font-size: 18px; }
  .sg-article blockquote.sg-quote::before { font-size: 48px; left: 18px; top: 6px; }
  .sg-article .sg-final-cta { padding: 28px 22px; }
}

/* ─── Comparison table — stacked-card layout on narrow screens ──
   The horizontal-scroll fallback worked but felt cramped + users
   missed the right-edge columns. Below 640px each row reflows into
   a vertical card with field labels — pure CSS via data-label-less
   trick: we set ::before pseudos using each th's text via JS would
   be cleaner, but here we hardcode the 4 known headers since the
   shortcode renders a fixed schema (Brand / Best For / Highlight /
   Promo Code). */
@media (max-width: 639px) {
  .sg-article .sg-cmp-wrap { overflow-x: visible; margin: 1.4em 0; }
  .sg-article .sg-cmp,
  .sg-article .sg-cmp thead,
  .sg-article .sg-cmp tbody,
  .sg-article .sg-cmp tr,
  .sg-article .sg-cmp td { display: block; width: 100%; }
  .sg-article .sg-cmp { border: 0; box-shadow: none; background: transparent; }
  .sg-article .sg-cmp thead { display: none; }
  .sg-article .sg-cmp tbody tr {
    background: #fff;
    border: 1px solid var(--sg-line);
    border-radius: 12px;
    padding: 4px 14px;
    margin: 0 0 12px;
    box-shadow: var(--sg-shadow);
  }
  .sg-article .sg-cmp tbody tr:nth-child(even) td { background: transparent; }
  .sg-article .sg-cmp td {
    padding: 10px 0;
    border-top: 1px solid var(--sg-line);
    border-bottom: 0;
    font-size: 14px;
    position: relative;
    padding-left: 110px;
    min-height: 22px;
  }
  .sg-article .sg-cmp td:first-child {
    border-top: 0;
    padding-left: 0;
    font-size: 16px;
    font-weight: 700;
    padding-top: 12px;
    padding-bottom: 10px;
  }
  /* Field labels using ::before — order matches the rendered cells:
     1 = Brand (no label, it's the heading), 2 = Best For,
     3 = Highlight, 4 = Promo Code */
  .sg-article .sg-cmp td:nth-child(2)::before { content: 'Best for:'; }
  .sg-article .sg-cmp td:nth-child(3)::before { content: 'Highlight:'; }
  .sg-article .sg-cmp td:nth-child(4)::before { content: 'Code:'; }
  .sg-article .sg-cmp td:nth-child(n+2)::before {
    position: absolute; left: 0; top: 10px; width: 100px;
    font-size: 11px; font-weight: 700; color: var(--sg-muted);
    text-transform: uppercase; letter-spacing: 0.05em;
  }
  /* Apply Discount button — center it within its mobile row */
  .sg-article .sg-cmp .sg-cmp-apply {
    display: block; width: 100%;
    text-align: center; padding: 10px 14px;
  }
}
