/* MySyara — Article page styles
   Shares the page chrome (.pp-header, .pp-footer, .pp-faq) from
   payment-plans.css; this file styles the article-specific surfaces:
   hero, takeaways card, body typography, CTA, footnote strip. */

.article-page *, .article-page *::before, .article-page *::after {
  box-sizing: border-box;
}

.article-page {
  --brand:        #EC008C;
  --brand-dark:   #AD0067;
  --brand-deep:   #7D004E;
  --brand-mid:    #FF4DB8;
  --brand-pale:   #FFF0F8;
  --brand-light:  #FFE0F2;
  --brand-border: #FFB3DF;
  --white:        #FFFFFF;
  --bg:           #F8FAFC;
  --bg-alt:       #FFF5FA;
  --text:         #1F2937;
  --text-mid:     #4B5563;
  --text-muted:   #9CA3AF;
  --border:       #E6E9EF;
  --border-mid:   #D1D5DB;
  --ink-rule:     #F0D8E8;

  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  max-width: 1080px;
  margin: 0 auto;
  scroll-behavior: smooth;
}

.article-page h1,
.article-page h2,
.article-page h3,
.article-page h4 {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.5px;
  color: #1F2937;
}

/* ── HERO ─────────────────────────────────────────────────── */
/* Hero accent: a brand-pink road/tyre-track line-art graphic, anchored as a
   band on the right edge (sized by height, not stretched to cover) so the
   artwork keeps its proportions and stays clear of the left-aligned text.
   The graphic fades to white on its left, so the small overlap with the
   text column reads as a faint trace rather than clutter. */
.article-page .article-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 60px 52px;
  border-bottom: 1px solid var(--border);
  background:
    url("../images/article-hero-bg.883748458cc4.webp") no-repeat right center / auto 112%,
    #fff;
}

/* Left-aligned so the text holds the left half and the artwork the right —
   the two no longer fight for the centre. */
.article-page .article-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0;
}

.article-page .article-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand-pale);
  border: 1px solid var(--brand-border);
  border-radius: 100px;
  padding: 5px 14px 5px 10px;
  margin-bottom: 20px;
}
.article-page .article-eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 6px var(--brand-mid);
}
.article-page .article-eyebrow-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand);
}

/* H1: pulled in from 44 → 40px to breathe better at 680px max-width */
.article-page .article-h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -1.1px;
  color: #1F2937;
  margin: 0 0 16px;
}

.article-page .article-lead {
  font-size: 17.5px;
  color: #4B5563;
  line-height: 1.65;
  margin: 0 0 24px;
  max-width: 620px;
  font-weight: 400;
}
.article-page .article-lead strong { color: #1F2937; font-weight: 600; }

.article-page .article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.article-page .article-meta strong { color: var(--text-mid); font-weight: 600; }
.article-page .article-meta-sep {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--border-mid);
  display: inline-block;
}

/* ── MAIN COLUMN ──────────────────────────────────────────── */
/* Two-column grid: sticky "On this page" TOC on the left, article body
   on the right. The hero stays centered above; when the TOC is present
   the body necessarily shifts right of the hero centerline — that's the
   same pattern the OS blog uses and reads cleanly. */
.article-page .article-main {
  /* Top padding gives both the TOC sidebar and the content column breathing
     room below the hero's bottom rule — without it, the "On this page" label
     would sit flush against the divider. */
  padding: 44px 60px 64px;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.article-page .article-content {
  /* Required for `minmax(0, 1fr)` to actually contain its children
     (tables, pre, long words) instead of overflowing the grid track. */
  min-width: 0;
}

/* ── TOC SIDEBAR ──────────────────────────────────────────── */
.article-page .article-toc {
  position: sticky;
  top: 32px;
  align-self: start;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  padding-right: 8px;
  /* Drop straight scrollbar styling; modest scrollbar in WebKit. */
  scrollbar-width: thin;
}
.article-page .article-toc__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 14px;
}
/* Leading hyphen mark — same treatment as the Key Takeaways label. */
.article-page .article-toc__label::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.article-page .article-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: article-toc;
}
.article-page .article-toc__list li {
  margin: 0;
  counter-increment: article-toc;
}
.article-page .article-toc__link {
  display: block;
  padding: 7px 12px 7px 14px;
  border-left: 2px solid transparent;
  color: var(--text-mid);
  font-size: 13.5px;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.12s ease, border-color 0.12s ease;
}
.article-page .article-toc__link::before {
  content: counter(article-toc) ".";
  color: var(--brand);
  font-weight: 700;
  margin-right: 7px;
}
.article-page .article-toc__link:hover {
  color: var(--text);
  border-left-color: var(--brand-border);
}
.article-page .article-toc__link.is-active {
  color: var(--brand-dark);
  border-left-color: var(--brand);
  font-weight: 600;
}
.article-page .article-toc__link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── HERO IMAGE ───────────────────────────────────────────── */
/* Optional editorial hero, rendered above .article-takeaways when the
   article has a committed hero file. Intentionally unstyled beyond layout —
   no aspect-ratio, no crop — the source's intrinsic ratio decides the band
   shape. Width/height attrs (Tier 2) will come from the publisher to kill CLS. */
.article-page .article-hero-image {
  margin: 0 0 40px;
}
.article-page .article-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ── KEY TAKEAWAYS ────────────────────────────────────────── */
.article-page .article-takeaways {
  position: relative;
  /* No top margin — .article-main provides the gap below the hero rule. */
  margin: 0 0 56px;
  padding: 32px 36px 32px 44px;
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(236, 0, 140, 0.08);
  overflow: hidden;
}
/* Gradient left rail — runs the full height. */
.article-page .article-takeaways::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
}
/* Decorative pink-tinted halo in the top-right corner. */
.article-page .article-takeaways::after {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 0, 140, 0.10) 0%, transparent 70%);
  pointer-events: none;
}
.article-page .article-takeaways-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.article-page .article-takeaways-label::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.article-page .article-takeaways-h {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 22px;
  color: #1F2937;
  letter-spacing: -0.4px;
  position: relative;
  z-index: 1;
}

/* 2-column tick-bulleted grid on desktop. */
.article-page .article-takeaways-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  position: relative;
  z-index: 1;
}
.article-page .article-takeaways-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 0;
}
/* Checkmark in a brand-pink filled circle. */
.article-page .article-takeaways-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--brand);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2.5 6.2 L4.8 8.4 L9.4 3.6' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  box-shadow: 0 2px 6px rgba(236, 0, 140, 0.25);
}

/* ── BODY TYPOGRAPHY ──────────────────────────────────────── */
.article-page .article-body {
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--text);
}
.article-page .article-body > *:first-child { margin-top: 0; }
.article-page .article-body > *:last-child  { margin-bottom: 0; }

.article-page .article-body p {
  margin: 0 0 1.15em;
}

.article-page .article-body a {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.12s ease;
}
.article-page .article-body a:hover {
  color: var(--brand);
  text-decoration-thickness: 2px;
}
.article-page .article-body a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── SECTION H2 with numbered counter labels ─────────────── */
/* Counter resets on .article-body, increments on each h2 */
.article-page .article-body {
  counter-reset: article-section;
}
.article-page .article-body h2 {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.22;
  margin: 2.4em 0 0.7em;
  padding-top: 0;
  counter-increment: article-section;
  /* Breathing room when click-jumped to via the TOC. */
  scroll-margin-top: 24px;
}
/* Numbered pill chip: white-on-brand, sits as its own block above the H2. */
.article-page .article-body h2::before {
  content: counter(article-section, decimal-leading-zero);
  display: block;
  width: fit-content;
  background: var(--brand);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 5px 13px 4px;
  border-radius: 100px;
  margin-bottom: 14px;
  line-height: 1.2;
  box-shadow: 0 3px 10px rgba(236, 0, 140, 0.22);
}
.article-page .article-body h3 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  margin: 1.9em 0 0.55em;
  color: #1F2937;
}
.article-page .article-body h4 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin: 1.6em 0 0.5em;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-page .article-body ul,
.article-page .article-body ol {
  margin: 0 0 1.2em;
  padding-left: 28px;
}
.article-page .article-body ul li,
.article-page .article-body ol li {
  margin-bottom: 0.5em;
}
.article-page .article-body ul li::marker { color: var(--brand); }
.article-page .article-body ol li::marker {
  color: var(--brand);
  font-weight: 700;
}

.article-page .article-body blockquote {
  margin: 1.6em 0;
  padding: 18px 24px;
  border-left: 4px solid var(--brand);
  background: var(--brand-pale);
  border-radius: 0 12px 12px 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  font-style: italic;
}
.article-page .article-body blockquote p { margin: 0 0 0.5em; }
.article-page .article-body blockquote p:last-child { margin: 0; }

/* ── TABLE ────────────────────────────────────────────────── */
.article-page .article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 15px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.article-page .article-body thead { background: var(--brand-pale); }
.article-page .article-body th,
.article-page .article-body td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.article-page .article-body th {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--brand-dark);
}
.article-page .article-body tbody tr:last-child td { border-bottom: 0; }
.article-page .article-body tbody tr:nth-child(even) { background: #FAFBFD; }
/* Subtle row hover for scannability */
.article-page .article-body tbody tr:hover { background: var(--brand-pale); }

.article-page .article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.8em auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
.article-page .article-body .article-caption,
.article-page .article-body figcaption {
  display: block;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
  margin: -1em auto 1.8em;
  max-width: 600px;
}

.article-page .article-body code {
  background: #F5F5F7;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.article-page .article-body pre {
  background: #1F2937;
  color: #F8FAFC;
  padding: 18px 22px;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.55;
  margin: 1.4em 0;
}
.article-page .article-body pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
}

.article-page .article-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.4em 0;
}

/* ── INLINE CTA / END-OF-ARTICLE CTA ──────────────────────── */
.article-page .article-cta-section {
  margin: 56px 0 0;
  padding: 40px 44px;
  border-radius: 20px;
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 60%, var(--brand-deep) 100%);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 16px 48px rgba(236,0,140,0.24);
}
.article-page .article-cta-text {
  flex: 1 1 320px;
  min-width: 0;
}
.article-page .article-cta-h {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 6px;
  color: #fff;
  letter-spacing: -0.3px;
}
.article-page .article-cta-sub {
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0;
  color: rgba(255,255,255,0.92);
}
.article-page .article-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--brand-dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 4px 16px rgba(125,0,78,0.20);
}
.article-page .article-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(125,0,78,0.30);
  background: var(--brand-pale);
}
.article-page .article-cta-button:focus-visible {
  outline: 3px solid rgba(255,255,255,0.8);
  outline-offset: 2px;
}
.article-page .article-cta-button svg {
  width: 16px; height: 16px;
  fill: currentColor;
  transition: transform 0.15s ease;
}
.article-page .article-cta-button:hover svg {
  transform: translateX(3px);
}

/* ── CUSTOMER REVIEWS (social proof) ──────────────────────── */
/* Static 3-up card grid of verbatim Google reviews, sitting just above the
   end CTA. No carousel: every quote is in the DOM (crawlable), zero JS, zero
   CLS. Cards collapse to 2-up then 1-up as the column narrows via auto-fit. */
.article-page .article-reviews {
  margin: 56px 0 0;
}
.article-page .article-reviews-h {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.4px;
  margin: 0 0 22px;
  color: var(--text);
}
.article-page .article-reviews-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.article-page .article-review {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 18px;
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(236, 0, 140, 0.06);
}
/* Five filled stars in brand pink. */
.article-page .article-review__stars {
  color: var(--brand);
  font-size: 15px;
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 12px;
}
.article-page .article-review__quote {
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
}
.article-page .article-review__by {
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
}
.article-page .article-review__src {
  font-weight: 500;
  color: var(--text-muted);
}

/* ── FAQ ──────────────────────────────────────────────────── */
/* Reuses the .pp-faq markup from payment-plans but with a calmer skin: the
   section sits as a quiet continuation of the article, not a separate
   promotional block. No tinted background, no eyebrow pill, no lift-on-
   hover — just a hairline divider, a normal H2, and accordion cards that
   shift to brand pink only as a question opens. */
.article-page .pp-faq {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 48px 60px 56px;
}
/* Match the article-body reading column so the FAQ doesn't visually
   broaden out from the article above it. */
.article-page .pp-faq__inner {
  max-width: 720px;
  margin: 0 auto;
}

.article-page .pp-faq__h {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 0 0 22px;
  line-height: 1.25;
  text-align: center;
}
/* Flanking hyphen marks — sized to balance the heading, same brand pink. */
.article-page .pp-faq__h::before,
.article-page .pp-faq__h::after {
  content: '';
  display: block;
  flex: 0 0 auto;
  width: 32px; height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.article-page .pp-faq__list { gap: 10px; }

/* Card: hairline border, no shadow at rest, brand-pink border once open. */
.article-page .pp-faq__item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: none;
  transition: border-color 0.15s ease;
}
.article-page .pp-faq__item:hover {
  border-color: var(--brand-border);
}
.article-page .pp-faq__item[open] {
  border-color: var(--brand-border);
}

.article-page .pp-faq__item summary {
  padding: 16px 44px 16px 18px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0;
  line-height: 1.45;
  transition: color 0.15s ease;
}
.article-page .pp-faq__item:hover summary,
.article-page .pp-faq__item[open] summary {
  color: var(--brand-dark);
}

/* Plain chevron (no circle background) — flips on open. */
.article-page .pp-faq__item summary::after {
  content: '';
  width: 14px;
  height: 14px;
  right: 18px;
  border-radius: 0;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 6 L8 11 L13 6' stroke='%239CA3AF' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>")
    center / 14px 14px no-repeat;
  border: 0;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}
.article-page .pp-faq__item[open] summary::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 6 L8 11 L13 6' stroke='%23EC008C' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  transform: translateY(-50%) rotate(180deg);
}

.article-page .pp-faq__a {
  padding: 0 18px 18px;
  font-size: 15px;
  line-height: 1.62;
  color: var(--text-mid);
}
.article-page .pp-faq__a p { margin: 0; }
.article-page .pp-faq__a p + p { margin-top: 0.7em; }
.article-page .pp-faq__a a {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-page .pp-faq__a a:hover { color: var(--brand); }

/* Mobile tuning: edge-aligned with the article body padding. */
@media (max-width: 880px) {
  .article-page .pp-faq { padding: 36px 22px 44px; }
  .article-page .pp-faq__h { font-size: 21px; margin-bottom: 18px; }
  .article-page .pp-faq__item summary {
    padding: 14px 40px 14px 16px;
    font-size: 14.5px;
  }
  .article-page .pp-faq__a {
    padding: 0 16px 16px;
    font-size: 14px;
  }
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
/* Below 1024 the TOC crowds the body — revert to a single column and
   hide the sidebar entirely. Desktop everything else still applies. */
@media (max-width: 1024px) {
  .article-page .article-main {
    display: block;
  }
  .article-page .article-toc { display: none; }
}

@media (max-width: 880px) {
  /* Hero narrows toward portrait here; a wide right-anchored crop would push
     the road's busy centre behind the headline. Anchor the art to the bottom
     and fade it down with a top→bottom white veil so text sits on near-white. */
  .article-page .article-hero {
    padding: 36px 22px 32px;
    background:
      linear-gradient(to bottom,
        rgba(255,255,255,0.92) 0%,
        rgba(255,255,255,0.55) 50%,
        rgba(255,255,255,0.15) 100%),
      url("../images/article-hero-bg.883748458cc4.webp") no-repeat right bottom / cover,
      #fff;
  }
  .article-page .article-h1 { font-size: 28px; letter-spacing: -0.75px; }
  .article-page .article-lead { font-size: 16px; }
  /* Collapse to a single column and hide the TOC — at this width the
     sidebar would crowd the body. Above 880 the grid still applies. */
  .article-page .article-main {
    padding: 0 22px 48px;
    display: block;
  }
  .article-page .article-toc { display: none; }

  .article-page .article-takeaways {
    margin: 28px 0 36px;
    padding: 24px 22px 24px 28px;
    border-radius: 14px;
  }
  .article-page .article-takeaways::after { width: 160px; height: 160px; right: -60px; top: -60px; }
  .article-page .article-takeaways-h { font-size: 20px; margin-bottom: 16px; }
  /* Single column on mobile */
  .article-page .article-takeaways-list {
    grid-template-columns: 1fr;
    font-size: 14.5px;
    gap: 12px;
  }
  .article-page .article-takeaways-list li { padding-left: 30px; }
  .article-page .article-takeaways-list li::before {
    width: 18px; height: 18px; top: 1px; background-size: 11px 11px;
  }

  .article-page .article-body { font-size: 15.5px; line-height: 1.68; }
  .article-page .article-body h2 { font-size: 21px; margin-top: 2em; }
  .article-page .article-body h2::before {
    font-size: 11px; padding: 4px 11px 3px; margin-bottom: 12px;
  }
  .article-page .article-body h3 { font-size: 18px; }

  .article-page .article-cta-section {
    padding: 28px 22px;
    border-radius: 14px;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .article-page .article-cta-button { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .article-page .article-h1 { font-size: 24px; letter-spacing: -0.5px; }
  .article-page .article-hero { padding: 28px 18px 28px; }
  .article-page .article-main { padding: 0 18px 40px; }
}

/* ──────────────────────────────────────────────────────────────────────────
   Floating contact widget — WhatsApp + Call pills, bottom-right, fixed.
   Always-on booking path for every article; the per-article CTA card is
   optional and renders above this in the article flow if frontmatter sets it.
   ────────────────────────────────────────────────────────────────────────── */
.article-page ~ .article-floating-cta,
.article-floating-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 50;
  pointer-events: none; /* let buttons take pointer events, not the wrapper */
}

.article-floating-cta__btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.article-floating-cta__btn img {
  width: 22px;
  height: 22px;
  display: block;
}

.article-floating-cta__btn--wa {
  background-color: #276327;
}
.article-floating-cta__btn--call {
  background-color: var(--brand-dark, #AD0067);
}

.article-floating-cta__btn:hover,
.article-floating-cta__btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  filter: brightness(1.05);
  text-decoration: none;
}

.article-floating-cta__btn:focus-visible {
  outline: 2px solid var(--brand, #EC008C);
  outline-offset: 3px;
}

/* On smaller screens, keep the widget compact: icon-only pills, side-by-side. */
@media (max-width: 640px) {
  .article-floating-cta {
    right: 16px;
    bottom: 16px;
    flex-direction: row;
    gap: 8px;
  }
  .article-floating-cta__btn {
    padding: 12px;
    gap: 0;
  }
  .article-floating-cta__btn span {
    /* Visually hidden, still announced */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .article-floating-cta__btn img {
    width: 24px;
    height: 24px;
  }
}

@media print {
  .pp-header, .pp-footer, .article-cta-section, .article-toc, .article-floating-cta { display: none !important; }
  .article-page {
    max-width: 100%;
  }
  .article-page .article-hero { padding: 0 0 16px; border-bottom: 1px solid #ccc; background: #fff; }
  .article-page .article-main { padding: 16px 0 0; display: block; }
  .article-page .article-takeaways { box-shadow: none; }
  .article-page .article-body h2::before { color: #666; }
}
