/*
 * Smile Gallery — Vogue V5 Blog Stylesheet
 * Version: 5.7.0
 * Source: Option G hero + archive sidebar + responsive breakpoints
 * Last updated: 2026-05-27
 */

/* ═══════════════════════════════════════════════════════
   SMILE GALLERY — V5 VOGUE BLOG TEMPLATE
   Mobile-First Responsive Edition
   Palette: Navy #1a2332, Gold #c9a84c, Cream #faf8f5
   Breakpoints: 768px (tablet) · 480px (phone) · 375px (small phone)
   ═══════════════════════════════════════════════════════ */

/* ─── HIDE DENTICARE PARENT HERO ON VOGUE POSTS ─── */
body:has(.sg-blog-hero) .btPageHeadline { display: none !important; }

:root {
  --navy: #1a2332;
  --gold: #c9a84c;
  --cream: #faf8f5;
  --warm: #f5f0e8;
  --body: #2d3436;
  --body-light: #3d4f51;
  --muted: #636e72;
  --caption: #7f8c8d;
  --accent: #0984e3;
  --success: #00b894;
  --border: #dfe6e9;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 12px;
  --c-heading: #1a2332;
  --c-body: #2d3436;
  --c-story: #34495e;
  --c-dialogue: #8e6b3e;
  --c-number: #1a2332;
  --c-label: #c9a84c;
  --c-term: #0984e3;
  --c-callout: #0F4F50;
  --c-faq-answer: #636e72;
  --c-highlight-bg: rgba(201, 168, 76, 0.10);
  --c-highlight-border: rgba(201, 168, 76, 0.35);
  --c-section-opener: #1a2332;
}

/* ═══ BLOG BODY BASE ═══ */
.sg-blog-body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--c-body);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.sg-blog-body img, .sg-blog-body video, .sg-blog-body iframe { max-width: 100%; height: auto; display: block; }
.sg-container { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ═══ HERO — Option G (Single Post) ═══ */
.sg-hero {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 1920 / 420 !important;
  min-height: 280px !important;
  overflow: hidden !important;
  isolation: isolate !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif !important;
  color: #fff !important;
  background: #0a2020 !important;
  margin-bottom: 48px !important;
  display: block !important;
  padding: 0 !important;
  border: none !important;
}
.sg-hero__image {
  position: absolute !important;
  inset: 0 !important;
  background-size: cover !important;
  background-position: center !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 100% !important;
}
.sg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,28,28,0) 0%, rgba(8,28,28,0.18) 100%);
  z-index: 1;
  pointer-events: none;
}
.sg-hero__blur {
  position: absolute !important;
  left: 0 !important; right: 0 !important; bottom: 0 !important;
  height: 76% !important;
  max-height: 320px !important;
  z-index: 2 !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 40%, rgba(0,0,0,1) 90%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 40%, rgba(0,0,0,1) 90%);
  pointer-events: none !important;
  width: auto !important;
}
.sg-hero__wash {
  position: absolute !important;
  left: 0 !important; right: 0 !important; bottom: 0 !important;
  height: 76% !important;
  max-height: 320px !important;
  z-index: 3 !important;
  background: linear-gradient(180deg,
    rgba(15,52,52,0) 0%,
    rgba(15,52,52,0.18) 30%,
    rgba(15,52,52,0.50) 60%,
    rgba(12,38,38,0.82) 90%,
    rgba(10,32,32,0.92) 100%) !important;
  pointer-events: none !important;
  width: auto !important;
}
.sg-hero__content {
  position: absolute !important;
  left: 0 !important; right: 0 !important; bottom: 0 !important;
  height: 50% !important;
  max-height: 210px !important;
  z-index: 4 !important;
  padding: clamp(20px, 3vw, 34px) clamp(20px, 4.2vw, 80px) clamp(18px, 2.5vw, 30px) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  width: auto !important;
  background: none !important;
}
.sg-hero__row {
  display: flex;
  align-items: flex-end;
  gap: clamp(20px, 3vw, 48px);
  justify-content: space-between;
}
.sg-hero__left  { flex: 1 1 auto; min-width: 0; }
.sg-hero__right { flex: 0 0 clamp(220px, 25vw, 380px); text-align: right; }
.sg-hero__crumb {
  font-size: clamp(11px, 0.9vw, 13px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  margin: 0 0 12px;
}
.sg-hero__crumb a { color: rgba(255,255,255,0.85); text-decoration: none; }
.sg-hero__crumb a:hover { color: #fff; }
.sg-hero__title {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 3.2vw, 56px);
  line-height: 1.06;
  font-weight: 500;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.sg-hero__sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(13px, 1vw, 17px);
  line-height: 1.5;
  font-style: italic;
  color: rgba(255,255,255,0.92);
  margin: 0 0 8px;
  font-weight: 400;
}
.sg-hero__meta {
  font-size: clamp(11px, 0.85vw, 13px);
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.78);
  font-weight: 400;
}

/* ═══ QUICK ANSWER ═══ */
.sg-quick-answer {
  background: var(--warm); border-left: 4px solid var(--gold);
  padding: 24px 28px; margin-bottom: 24px; border-radius: 0 var(--radius) var(--radius) 0;
}
.sg-quick-answer strong {
  color: var(--c-label); font-size: 12px; text-transform: uppercase;
  letter-spacing: 1.2px; display: block; margin-bottom: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.sg-quick-answer p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15.5px; line-height: 1.7; color: var(--c-body); margin: 0; text-align: left;
}

/* ═══ REVIEW + DISCLAIMER ═══ */
.sg-medical-review {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px; color: var(--caption); margin-bottom: 16px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.sg-disclaimer {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px; color: var(--caption); background: #f9f9f9;
  border: 1px solid var(--border); border-radius: 6px;
  padding: 14px 18px; margin-bottom: 20px; line-height: 1.6;
}

/* ═══ TABLE OF CONTENTS ═══ */
.sg-toc {
  background: var(--cream); border-radius: var(--radius);
  padding: 20px 28px; margin-bottom: 36px;
}
.sg-toc-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--gold); margin-bottom: 12px;
}
.sg-toc ol {
  padding-left: 20px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
}
.sg-toc ol li { margin-bottom: 6px; line-height: 1.5; }
.sg-toc ol li a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--border); }
.sg-toc ol li a:hover { color: var(--accent); }

/* ═══ DROP CAP ═══ */
.sg-drop-cap::first-letter {
  float: left; font-size: 72px; line-height: 0.78;
  padding: 4px 12px 0 0; font-weight: 400; color: var(--navy);
}
.sg-drop-cap { margin-bottom: 28px; font-size: 18px; }

/* ═══ BODY TEXT ═══ */
.sg-blog-body p { margin-bottom: 20px; font-size: 17px; text-align: left; color: var(--c-body); }
.sg-blog-body a { color: var(--c-term); text-decoration: none; }
.sg-blog-body a:hover { text-decoration: underline; }

/* ── FONT COLOR PLAY CLASSES ── */
.sg-opener {
  font-variant: small-caps; font-size: 1.05em; letter-spacing: 0.04em;
  color: var(--c-section-opener); font-weight: 600;
}
.sg-highlight {
  background: var(--c-highlight-bg); border-bottom: 2px solid var(--c-highlight-border);
  padding: 1px 4px; border-radius: 2px;
}
.sg-num {
  font-weight: 700; color: var(--c-number);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.sg-term { color: var(--c-term); font-style: italic; }
.sg-dialogue { color: var(--c-dialogue); font-style: italic; }

/* ═══ HEADINGS ═══ */
.sg-blog-body h2 {
  font-size: 28px; font-weight: 400; color: var(--c-heading);
  margin: 48px 0 20px; letter-spacing: -0.3px; text-align: left;
}

/* ═══ BULLETS ═══ */
.sg-blog-body ul, .sg-blog-body ol { padding-left: 22px; margin: 14px 0 24px; }
.sg-blog-body li {
  font-size: 15.5px; margin-bottom: 10px; line-height: 1.7;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--body-light); text-align: left;
}
.sg-blog-body li strong { color: var(--c-heading); }

/* ═══ STAT CARDS ═══ */
.sg-stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 48px 0; }
.sg-stat-card {
  background: var(--cream); border-radius: var(--radius); padding: 28px 20px;
  text-align: center; border: 1px solid var(--border); transition: transform 0.2s, box-shadow 0.2s;
}
.sg-stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.sg-stat-card .sg-stat-number {
  font-size: 38px; font-weight: 700; color: var(--c-number); display: block; margin-bottom: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.sg-stat-card .sg-stat-label {
  font-size: 13px; color: var(--muted); line-height: 1.5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.sg-stat-card .sg-stat-label a { color: var(--c-callout); font-weight: 500; }

/* ═══ IN-BODY IMAGE ═══ */
.sg-blog-inbody-img { margin: 40px -40px; border-radius: var(--radius); overflow: hidden; }
.sg-img-placeholder {
  background: linear-gradient(135deg, #e8e4df 0%, #d4cec5 100%); height: 320px;
  display: flex; align-items: center; justify-content: center; color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 14px;
}
.sg-blog-inbody-img figcaption {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px; color: var(--caption); padding: 12px 40px; font-style: italic;
}

/* ═══ GEO HIGHLIGHT ═══ */
.sg-geo-highlight {
  border-left: 3px solid var(--gold); padding: 14px 22px; margin: 28px 0;
  background: var(--c-highlight-bg); border-radius: 0 6px 6px 0;
}
.sg-geo-highlight p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px; color: var(--c-body); margin: 0; text-align: left; line-height: 1.7;
}
.sg-geo-attr { color: var(--c-heading); font-weight: 700; font-size: 13px; }

/* ═══ PULL QUOTE ═══ */
.sg-pull-quote {
  padding: 40px 48px; margin: 48px 0; position: relative;
  background: var(--navy); color: #fff; border-radius: var(--radius);
}
.sg-pull-quote::before {
  content: '\201C'; font-size: 80px; position: absolute; top: -10px; left: 20px;
  color: var(--gold); font-family: Georgia, serif; line-height: 1;
  width: auto; height: auto; background: none; border: none;
}
/* Kill Denticare parent theme blockquote decorations */
.sg-pull-quote::after,
.sg-pull-quote p::before,
.sg-pull-quote p::after {
  content: none !important;
  display: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
}
.sg-pull-quote p {
  font-size: 20px; font-style: italic; line-height: 1.6; margin-bottom: 16px;
  color: #ecf0f1; text-align: left;
}
.sg-pull-quote cite {
  font-size: 14px; color: var(--gold); font-style: normal;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ═══ CALLOUT ═══ */
.sg-callout {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 32px; margin: 40px 0; box-shadow: var(--shadow);
}
.sg-callout .sg-callout-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--c-heading); margin-bottom: 12px;
}
.sg-callout .sg-callout-intro {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px; color: var(--c-body); margin-bottom: 14px; line-height: 1.7;
}
.sg-callout ol { padding-left: 20px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 15px; }
.sg-callout ol li { margin-bottom: 8px; line-height: 1.6; color: var(--body-light); }
.sg-callout ol li strong { color: var(--c-callout); }

/* ═══ RELATED ═══ */
.sg-related { background: var(--cream); border-radius: var(--radius); padding: 32px 36px; margin: 48px 0; }
.sg-related .sg-related-header {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
  color: var(--muted); margin-bottom: 20px;
}
.sg-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sg-related-card {
  background: #fff; border-radius: 8px; padding: 20px; border: 1px solid var(--border);
  text-decoration: none; color: var(--c-body); transition: box-shadow 0.2s; display: block;
}
.sg-related-card:hover { box-shadow: var(--shadow); text-decoration: none; }
.sg-related-card h4 { font-size: 15px; font-weight: 600; color: var(--c-heading); margin-bottom: 8px; line-height: 1.4; }
.sg-related-card p {
  font-size: 13px; color: var(--caption); margin: 0; text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ═══ PATIENT STORY ═══ */
.sg-patient-story {
  background: var(--warm); border-radius: var(--radius);
  padding: 36px 40px; margin: 48px 0; position: relative;
}
.sg-patient-story::before {
  content: 'Patient Story'; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
  color: var(--gold); position: absolute; top: -8px; left: 36px;
  background: var(--warm); padding: 0 8px;
}
.sg-patient-story-note {
  display: block; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 11px; color: var(--caption); font-style: italic; margin-bottom: 20px;
}
.sg-ps-sketch {
  float: right; width: 400px; margin: 0 0 24px 32px;
}
.sg-ps-sketch-img {
  width: 100%; border-radius: 8px; border: 1px solid #e8e4df; overflow: hidden;
}
.sg-ps-sketch-img img {
  width: 100%; height: 460px; object-fit: cover; display: block; border-radius: 8px;
}
.sg-sketch-caption {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 11px; color: var(--caption); font-style: italic; line-height: 1.45;
  margin-top: 10px; text-align: center; border-top: 1px solid #e8e4df; padding-top: 10px;
}
.sg-ps-text p {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 16.5px; line-height: 1.78; color: var(--c-story);
  margin-bottom: 16px; text-align: left;
}
.sg-ps-content::after { content: ''; display: table; clear: both; }
.sg-ps-signoff {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px; color: var(--muted); margin-top: 22px;
  text-transform: uppercase; letter-spacing: 0.05em; clear: both; line-height: 1.6;
}
.sg-ps-signoff span { font-size: 11px; text-transform: none; letter-spacing: 0; }

/* ═══ OUTCOME TABLE — scrollable on mobile ═══ */
.sg-outcome { border: 2px solid var(--success); border-radius: var(--radius); overflow: hidden; margin: 40px 0; }
.sg-outcome-header {
  background: var(--success); color: #fff; padding: 12px 24px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}
.sg-outcome-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sg-outcome table { width: 100%; min-width: 400px; border-collapse: collapse; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 15px; }
.sg-outcome td { padding: 14px 24px; border-bottom: 1px solid var(--border); text-align: left; color: var(--c-body); }
.sg-outcome tr:last-child td { border-bottom: none; }
.sg-outcome td:first-child { font-weight: 600; color: var(--c-heading); width: 40%; }

/* ═══ FAQ ═══ */
.sg-faq { margin: 48px 0; }
.sg-faq h2 { font-size: 28px; font-weight: 400; color: var(--c-heading); margin-bottom: 20px; text-align: left; }
.sg-faq h3 {
  font-size: 17px; font-weight: 600; color: var(--c-heading);
  margin-bottom: 8px; padding: 16px 0 0; border-top: 1px solid var(--border); text-align: left;
}
.sg-faq h3:first-of-type { border-top: none; padding-top: 0; }
.sg-faq p {
  font-size: 15px; color: var(--c-faq-answer); margin-bottom: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; text-align: left;
}

/* ═══ AUTHOR BIO ═══ */
.sg-author-bio {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 32px 0; border-top: 2px solid var(--navy); margin-top: 48px;
}
.sg-author-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), #3d5a80);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 24px; font-weight: 700; flex-shrink: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-width: 72px;
}
.sg-author-info h4 { font-size: 16px; color: var(--c-heading); margin-bottom: 4px; }
.sg-author-info h4 a { color: var(--c-heading); text-decoration: none; border-bottom: 1px solid var(--border); }
.sg-author-info h4 a:hover { color: var(--accent); }
.sg-author-info p {
  font-size: 14px; color: var(--muted); margin-bottom: 4px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; text-align: left;
}
.sg-author-info .sg-dci {
  font-size: 12px; color: var(--accent); font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ═══ CTA ═══ */
.sg-cta {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 40px; text-align: center; margin: 48px 0;
}
.sg-cta h3 { color: #fff; font-size: 24px; font-weight: 400; margin-bottom: 12px; text-align: center; }
.sg-cta p {
  color: rgba(255,255,255,0.7); font-size: 15px; margin-bottom: 24px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; text-align: center;
}
.sg-cta a {
  display: inline-block; background: var(--gold); color: var(--navy);
  padding: 14px 36px; border-radius: 6px; text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700; font-size: 15px; letter-spacing: 0.5px;
  min-height: 48px; line-height: 1.4;
}

/* ═══ FOOTER TRANSITION ═══ */
.sg-footer-transition {
  height: 80px;
  background: linear-gradient(180deg, var(--warm) 0%, #2a9d8f 100%);
  margin-top: -1px;
}

/* ═══════════════════════════════════════
   RESPONSIVE — 768px (Tablets & large phones)
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  .sg-container { padding: 0 20px; }
  /* Hero Option G — tablet */
  .sg-hero { aspect-ratio: 16 / 7 !important; min-height: 260px !important; margin-bottom: 36px !important; }
  .sg-hero__row { gap: clamp(16px, 2vw, 32px) !important; }
  .sg-hero__title { font-size: clamp(24px, 3vw, 40px) !important; }
  .sg-hero__right { flex: 0 0 clamp(180px, 22vw, 300px) !important; }
  .sg-drop-cap::first-letter { font-size: 56px; }
  .sg-drop-cap { font-size: 17px; }
  .sg-blog-body p { font-size: 16px; }
  .sg-blog-body h2 { font-size: 24px; margin: 36px 0 16px; }
  .sg-stat-cards { grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 36px 0; }
  .sg-stat-card { padding: 20px 12px; }
  .sg-stat-card .sg-stat-number { font-size: 28px; }
  .sg-stat-card .sg-stat-label { font-size: 12px; }
  .sg-related-grid { grid-template-columns: 1fr; gap: 12px; }
  .sg-related { padding: 24px 20px; }
  .sg-pull-quote { padding: 36px 28px; margin: 36px 0; }
  .sg-pull-quote p { font-size: 18px; }
  .sg-blog-inbody-img { margin: 28px 0; }
  .sg-blog-inbody-img figcaption { padding: 10px 0; }
  .sg-patient-story { padding: 28px 20px; margin: 36px 0; }
  .sg-ps-sketch { float: none; width: 100%; max-width: 400px; margin: 0 auto 24px; }
  .sg-callout { padding: 24px 20px; margin: 32px 0; }
  .sg-outcome td { padding: 12px 16px; font-size: 14px; }
  .sg-cta { padding: 32px 24px; margin: 36px 0; }
  .sg-cta h3 { font-size: 20px; }
  .sg-cta a { display: block; text-align: center; }
  .sg-toc { padding: 18px 20px; }
  .sg-geo-highlight { padding: 12px 16px; }
}

/* ═══════════════════════════════════════
   RESPONSIVE — 480px (Standard phones)
   ═══════════════════════════════════════ */
@media (max-width: 480px) {
  .sg-container { padding: 0 16px; }
  /* Hero Option G — phone */
  .sg-hero { aspect-ratio: 4 / 3 !important; min-height: 320px !important; margin-bottom: 28px !important; }
  .sg-hero__row { flex-direction: column !important; align-items: flex-start !important; gap: 10px !important; }
  .sg-hero__right { flex: 1 1 auto !important; text-align: left !important; }
  .sg-hero__title { font-size: 24px !important; line-height: 1.12 !important; }
  .sg-hero__sub { font-size: 13px !important; }
  .sg-hero__blur, .sg-hero__wash { height: 85% !important; max-height: none !important; }
  .sg-hero__content { height: 65% !important; max-height: none !important; }
  .sg-drop-cap::first-letter { font-size: 48px; padding: 4px 8px 0 0; }
  .sg-blog-body p { font-size: 15.5px; line-height: 1.75; }
  .sg-blog-body h2 { font-size: 22px; margin: 32px 0 14px; }
  .sg-blog-body li { font-size: 15px; }

  /* Stat cards: 3-column on phones is too tight — switch to 1-column */
  .sg-stat-cards { grid-template-columns: 1fr; gap: 12px; margin: 28px 0; }
  .sg-stat-card { padding: 18px 20px; display: flex; align-items: center; gap: 16px; text-align: left; }
  .sg-stat-card .sg-stat-number { font-size: 32px; margin-bottom: 0; flex-shrink: 0; }
  .sg-stat-card .sg-stat-label { font-size: 13px; }

  /* Pull quote */
  .sg-pull-quote { padding: 28px 20px 28px 28px; margin: 28px 0; border-radius: 8px; }
  .sg-pull-quote::before { font-size: 60px; top: -8px; left: 12px; }
  .sg-pull-quote p { font-size: 16px; line-height: 1.6; }
  .sg-pull-quote cite { font-size: 13px; }

  /* Callout */
  .sg-callout { padding: 20px 16px; margin: 24px 0; border-radius: 8px; }
  .sg-callout .sg-callout-title { font-size: 13px; }
  .sg-callout ol li { font-size: 14.5px; }

  /* GEO highlight */
  .sg-geo-highlight { padding: 12px 14px; margin: 20px 0; }
  .sg-geo-highlight p { font-size: 14px; }

  /* Patient story */
  .sg-patient-story { padding: 24px 16px; margin: 28px 0; border-radius: 8px; }
  .sg-patient-story::before { left: 20px; }
  .sg-ps-sketch { max-width: 100%; }
  .sg-ps-sketch-img img { height: 340px; }
  .sg-ps-text p { font-size: 15.5px; line-height: 1.72; }

  /* Outcome table */
  .sg-outcome { margin: 28px 0; border-radius: 8px; }
  .sg-outcome-header { padding: 10px 16px; font-size: 12px; }
  .sg-outcome td { padding: 10px 14px; font-size: 13.5px; }
  .sg-outcome td:first-child { width: 45%; }

  /* Author bio */
  .sg-author-bio { gap: 14px; padding: 24px 0; }
  .sg-author-avatar { width: 56px; height: 56px; min-width: 56px; font-size: 20px; }
  .sg-author-info h4 { font-size: 15px; }
  .sg-author-info p { font-size: 13px; }

  /* CTA */
  .sg-cta { padding: 28px 16px; margin: 28px 0; border-radius: 8px; }
  .sg-cta h3 { font-size: 19px; }
  .sg-cta p { font-size: 14px; }
  .sg-cta a { padding: 14px 24px; font-size: 14px; }

  /* TOC */
  .sg-toc { padding: 16px; border-radius: 8px; }
  .sg-toc ol { font-size: 13.5px; }

  /* Related */
  .sg-related { padding: 20px 16px; border-radius: 8px; margin: 28px 0; }
  .sg-related-card { padding: 16px; }
  .sg-related-card h4 { font-size: 14px; }

  /* Quick answer */
  .sg-quick-answer { padding: 18px 16px; }
  .sg-quick-answer p { font-size: 15px; }

  /* FAQ */
  .sg-faq h3 { font-size: 16px; }
  .sg-faq p { font-size: 14px; }

  /* Disclaimer */
  .sg-disclaimer { padding: 12px 14px; }

  /* Mobile image overflow fix */
  .sg-blog-body .sg-container img { margin-left: 0; margin-right: 0; max-width: 100%; }

  /* Mobile table fix */
  .sg-outcome table { min-width: unset; width: 100%; }
  .sg-outcome th, .sg-outcome td { padding: 8px 10px; font-size: 13px; }
}

/* ═══════════════════════════════════════
   RESPONSIVE — 375px (iPhone SE, small Android)
   ═══════════════════════════════════════ */
@media (max-width: 375px) {
  .sg-container { padding: 0 14px; }
  .sg-hero__title { font-size: 21px !important; }
  .sg-blog-body p { font-size: 15px; }
  .sg-blog-body h2 { font-size: 20px; }
  .sg-pull-quote p { font-size: 15px; }
  .sg-ps-text p { font-size: 15px; }
  .sg-outcome td { font-size: 13px; padding: 9px 12px; }
  .sg-stat-card .sg-stat-number { font-size: 28px; }

  /* 375px image fix */
  .sg-blog-body img { margin: 20px 0; }
}


/* ═══════════════════════════════════════════════════════
   BLOG ARCHIVE — OPTION G HERO CARDS
   Renders each post on /blog/ as a mini Option G hero
   with gradient overlay, blur wash, title + author byline.
   ═══════════════════════════════════════════════════════ */

/* ─── HIDE DENTICARE PARENT BLOG HEADER ─── */
body.blog .btPageHeadline,
body:has(.sg-blog-archive) .btPageHeadline {
  display: none !important;
}
/* Force full-width layout — kill sidebar + fix Denticare flex overflow */
body:has(.sg-blog-archive) .btSidebar {
  display: none !important;
}
body:has(.sg-blog-archive) .btContentWrap {
  max-width: 100% !important;
  width: 100% !important;
  overflow: hidden !important;
}
body:has(.sg-blog-archive) .btContentHolder {
  display: block !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
}
body:has(.sg-blog-archive) .btContent {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  padding: 0 !important;
}

/* ─── ARCHIVE WRAPPER ─── */
.sg-blog-archive {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* ─── ARCHIVE HEADER ─── */
.sg-blog-archive__header {
  margin-bottom: 40px;
  max-width: 680px;
}

.sg-blog-archive__crumb {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted, #636e72);
  margin: 0 0 12px;
}
.sg-blog-archive__crumb a {
  color: var(--muted, #636e72);
  text-decoration: none;
}
.sg-blog-archive__crumb a:hover {
  color: var(--navy, #1a2332);
}

.sg-blog-archive__heading {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  color: var(--navy, #1a2332);
  margin: 0 0 8px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.sg-blog-archive__intro {
  font-size: 15px;
  color: var(--body-light, #3d4f51);
  line-height: 1.6;
  margin: 0;
}

/* ─── CARD GRID ─── */
.sg-blog-archive__grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ─── SINGLE CARD (Option G hero) ─── */
.sg-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1920 / 480;
  min-height: 220px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 6px;
  color: #fff;
  background: #0a2020;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sg-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}

/* Image layer */
.sg-card__image {
  position: absolute;
  inset: 0;
  background-image: var(--sg-card-image);
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform 0.5s ease;
}
.sg-card:hover .sg-card__image {
  transform: scale(1.04);
}

/* Soft full-image tint */
.sg-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,28,28,0) 0%, rgba(8,28,28,0.18) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Masked blur layer */
.sg-card__blur {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 76%;
  max-height: 320px;
  z-index: 2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 40%, rgba(0,0,0,1) 90%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 40%, rgba(0,0,0,1) 90%);
  pointer-events: none;
}

/* Gradual teal color wash */
.sg-card__wash {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 76%;
  max-height: 320px;
  z-index: 3;
  background: linear-gradient(180deg,
    rgba(15,52,52,0) 0%,
    rgba(15,52,52,0.18) 30%,
    rgba(15,52,52,0.50) 60%,
    rgba(12,38,38,0.82) 90%,
    rgba(10,32,32,0.92) 100%);
  pointer-events: none;
}

/* Content band */
.sg-card__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  max-height: 240px;
  z-index: 4;
  padding: clamp(16px, 2.5vw, 30px) clamp(20px, 3.5vw, 60px) clamp(16px, 2vw, 26px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.sg-card__row {
  display: flex;
  align-items: flex-end;
  gap: clamp(16px, 2.5vw, 40px);
  justify-content: space-between;
}

.sg-card__left  { flex: 1 1 auto; min-width: 0; }
.sg-card__right { flex: 0 0 clamp(200px, 24vw, 360px); text-align: right; }

.sg-card__crumb {
  font-size: clamp(10px, 0.8vw, 12px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255,255,255,0.80);
  margin: 0 0 10px;
}

.sg-card__title {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 2.6vw, 44px);
  line-height: 1.08;
  font-weight: 500;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.sg-card__sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(11px, 0.85vw, 15px);
  line-height: 1.45;
  font-style: italic;
  color: rgba(255,255,255,0.90);
  margin: 0 0 6px;
  font-weight: 400;
}

.sg-card__meta {
  font-size: clamp(10px, 0.75vw, 12px);
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.72);
  font-weight: 400;
}

/* ─── PAGINATION ─── */
.sg-blog-archive__pagination {
  margin-top: 48px;
  text-align: center;
}
.sg-blog-archive__pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sg-blog-archive__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy, #1a2332);
  background: var(--warm, #f5f0e8);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.sg-blog-archive__pagination .page-numbers:hover {
  background: var(--navy, #1a2332);
  color: #fff;
}
.sg-blog-archive__pagination .page-numbers.current {
  background: var(--navy, #1a2332);
  color: #fff;
}

.sg-blog-archive__empty {
  text-align: center;
  font-size: 16px;
  color: var(--muted, #636e72);
  padding: 80px 20px;
}

/* ═══ ARCHIVE TWO-COLUMN LAYOUT ═══ */
.sg-blog-archive__layout {
  display: grid !important;
  grid-template-columns: 1fr 300px !important;
  gap: 40px !important;
  align-items: start !important;
}

/* ═══ SIDEBAR ═══ */
.sg-blog-sidebar {
  position: sticky;
  top: 24px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.sg-sidebar-section {
  margin-bottom: 28px;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(26, 35, 50, 0.06), 0 0 0 1px rgba(26, 35, 50, 0.04);
}

/* ── Sidebar Search ── */
.sg-sidebar-search {
  display: flex;
  border: 2px solid var(--border, #dfe6e9);
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream, #faf8f5);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.sg-sidebar-search:focus-within {
  border-color: var(--navy, #1a2332);
  box-shadow: 0 0 0 3px rgba(26, 35, 50, 0.08);
}
.sg-sidebar-search__input {
  flex: 1;
  border: none;
  padding: 13px 16px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--c-body, #2d3436);
  background: transparent;
  outline: none;
}
.sg-sidebar-search__input::placeholder {
  color: var(--caption, #7f8c8d);
}
.sg-sidebar-search__btn {
  flex-shrink: 0;
  border: none;
  background: var(--navy, #1a2332);
  color: #fff;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s;
}
.sg-sidebar-search__btn:hover {
  background: #2d3e50;
}
/* Search section — no card padding (search bar IS the card) */
.sg-sidebar-section:first-child {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

/* ── Sidebar Titles ── */
.sg-sidebar-title {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--navy, #1a2332);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: none;
  position: relative;
}
.sg-sidebar-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  background: var(--gold, #c9a84c);
  border-radius: 2px;
}

/* ── Sidebar Topic List ── */
.sg-sidebar-topics {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sg-sidebar-topics li {
  margin: 0;
}
.sg-sidebar-topic {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  margin: 0 -12px;
  border-radius: 8px;
  border-bottom: none;
  color: var(--body-light, #3d4f51);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.sg-sidebar-topic:hover {
  background: var(--cream, #faf8f5);
  color: var(--navy, #1a2332);
  transform: translateX(2px);
}
.sg-sidebar-topic__count {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--navy, #1a2332);
  border-radius: 12px;
  padding: 3px 9px;
  min-width: 26px;
  text-align: center;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.sg-sidebar-topic:hover .sg-sidebar-topic__count {
  background: var(--gold, #c9a84c);
  color: var(--navy, #1a2332);
}

/* ── Featured Topics (Popular Treatments) ── */
.sg-sidebar-topics--featured .sg-sidebar-topic {
  justify-content: flex-start;
  padding-left: 16px;
  position: relative;
}
.sg-sidebar-topics--featured .sg-sidebar-topic::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: var(--gold, #c9a84c);
  border-radius: 2px;
  opacity: 0.5;
  transition: opacity 0.2s, height 0.2s;
}
.sg-sidebar-topics--featured .sg-sidebar-topic:hover::before {
  opacity: 1;
  height: 24px;
}

/* ─── SIDEBAR RESPONSIVE — 900px ─── */
@media (max-width: 900px) {
  .sg-blog-archive__layout {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .sg-blog-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
  }
  .sg-sidebar-section {
    margin-bottom: 0;
  }
  .sg-sidebar-section:first-child {
    background: #fff;
    box-shadow: 0 2px 12px rgba(26, 35, 50, 0.06), 0 0 0 1px rgba(26, 35, 50, 0.04);
    padding: 24px;
    border-radius: 12px;
  }
}

/* ─── CARD RESPONSIVE — 720px ─── */
@media (max-width: 720px) {
  .sg-card {
    aspect-ratio: 4 / 3;
    min-height: 300px;
  }
  .sg-card__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .sg-card__right {
    text-align: left;
    flex: 1 1 auto;
  }
  .sg-card__blur,
  .sg-card__wash {
    height: 85%;
    max-height: none;
  }
  .sg-card__content {
    height: 65%;
    max-height: none;
  }
  .sg-blog-archive {
    padding: 24px 16px 60px;
  }
  .sg-blog-archive__header {
    margin-bottom: 28px;
  }
}

/* ─── CARD RESPONSIVE — 480px ─── */
@media (max-width: 480px) {
  .sg-card {
    aspect-ratio: 3 / 4;
    min-height: 360px;
  }
  .sg-card__title {
    font-size: 22px;
  }
  .sg-card__sub {
    font-size: 12px;
  }
  .sg-card__content {
    height: 70%;
  }
}
