/* ==============================================================
   site.css — global custom styles for drbhavukgarg.com
   One place for site-wide overrides on top of the compiled build
   CSS (/build/*.css). Linked LAST in <head> so these win.
   ============================================================== */

/* 1 ── Typography: Apple system font (San Francisco) ─────────── */
:root {
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --font-serif:   -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-sans:    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}
body { font-family: var(--font-sans); }

/* 2 ── Dark "short answer" sections (fix white-on-white) ─────── */
.block.block--dark { background: linear-gradient(150deg, #0f2231, #16354c); }

/* 3 ── Blog banner images: natural ratio, no 16:7 crop ───────── */
.postx-banner img { width: 100%; height: auto; border-radius: 14px; display: block; }

/* 4 ── WhatsApp floating button (brand green) ───────────────── */
.wa-fab { background: #25D366 !important; border-color: #25D366 !important; box-shadow: 0 8px 22px rgba(37,211,102,.45) !important; }
.wa-fab:hover { background: #1fb857 !important; }
.wa-fab .wa-fab-icon { color: #fff !important; fill: #fff !important; }

/* 5 ── Internal-page hero banners: fill the container width ──── */
.pban-text  { max-width: none !important; }
.pban-title { max-width: none !important; }
.pban-intro { max-width: none !important; }

/* 6 ── Body content: use the full screen width ──────────────── */
:root { --maxw: 108rem; }
.clin-body > .clin-main { max-width: none !important; }
.postx-shell { max-width: 108rem !important; }
.postx-body  { max-width: none !important; }

/* 7 ── Give article text more room beside the sidebar (desktop) */
@media (min-width: 64rem) {
  .clin-main   { grid-template-columns: minmax(0, 1fr) 285px !important; column-gap: 2rem !important; }
  .postx-shell { grid-template-columns: minmax(0, 1fr) 300px !important; }
}

/* 8 ── Body figure images: cap size so they don't dominate ──────
   Condition-page figures (.cond-figure) were set to 100% width,
   so a square image filled the whole column (~820px, taller than
   the viewport). Cap to a sensible figure size, centered. */
.cond-figure { max-width: 30rem !important; margin-inline: auto !important; }
