/* SEO & GEO Blog Poster — article styling.
   Scoped to .sgbp-article so it never touches the rest of your theme.
   Niche-agnostic: works for jewelry, mortgage, sports, food, anything.

   IMPORTANT — sizing is in PX, not rem. Many premium/WooCommerce themes set
   the root font-size to 10px (the "62.5%" trick), which silently shrinks any
   rem-based text to ~10px. Using px (with clamp for fluidity) and !important on
   the core readability declarations guarantees a readable article on every
   theme. Accent + gradient colors still come from the --sgbp-* variables that
   the plugin sets from your Brand color settings.

   Legacy note: selectors also cover .sap-article so posts published with the
   older "Snap Auto Poster" build pick up the improved typography too. */

/* ============================================================================
   READABLE COLUMN + TYPOGRAPHY
   ========================================================================== */
.sgbp-article,
.sap-article{
  max-width:720px;              /* readable measure, in px so the 10px-root trick can't shrink it */
  margin-left:auto;
  margin-right:auto;
  font-size:clamp(17px, 0.6vw + 15px, 20px) !important;
  line-height:1.78 !important;
  color:#23272e !important;
  word-wrap:break-word;
  overflow-wrap:break-word;
}
.sgbp-article p,
.sap-article p{font-size:clamp(17px, 0.6vw + 15px, 20px) !important;line-height:1.78 !important;margin:0 0 1.15em}
.sgbp-article li,
.sap-article li{font-size:clamp(17px, 0.6vw + 15px, 20px) !important;margin:.45em 0}

/* Lead paragraph (the intro) reads a touch larger to pull people in. */
.sgbp-article > p:first-of-type,
.sap-article > p:first-of-type{font-size:clamp(18px, 0.7vw + 16px, 22px) !important;color:#374151 !important}

/* Headings — fluid px sizes, clear hierarchy, generous spacing. */
.sgbp-article h2,
.sap-article h2{
  font-size:clamp(26px, 1.4vw + 20px, 34px) !important;
  line-height:1.22 !important;font-weight:700;letter-spacing:-.01em;
  margin:1.9em 0 .5em;color:#15181d !important}
.sgbp-article h3,
.sap-article h3{
  font-size:clamp(20px, 0.8vw + 16px, 24px) !important;
  line-height:1.3 !important;font-weight:650;margin:1.5em 0 .45em;color:#1b1f26 !important}
.sgbp-article h2:first-child,
.sgbp-article h3:first-child,
.sap-article h2:first-child,
.sap-article h3:first-child{margin-top:0}

.sgbp-article ul,.sgbp-article ol,
.sap-article ul,.sap-article ol{margin:0 0 1.25em;padding-left:1.4em}

.sgbp-article a,
.sap-article a{color:var(--sgbp-accent,#1f6feb);text-underline-offset:2px}
.sgbp-article strong,.sap-article strong{color:#15181d}

.sgbp-article blockquote,
.sap-article blockquote{
  margin:1.5em 0;padding:.4em 1.2em;border-left:4px solid var(--sgbp-accent,#1f6feb);
  background:#f7f9fc;border-radius:0 8px 8px 0;color:#3a414b;font-style:italic}

/* Quick-answer callout (the liftable summary AI / GEO engines quote) */
.sgbp-article .qa,
.sap-article .qa{background:#eef4fb;border:1px solid #cfe0f3;border-left:4px solid var(--sgbp-accent,#1f6feb);
  border-radius:10px;padding:.35em 1.2em;margin:1.4em 0}
.sgbp-article .qa strong,
.sap-article .qa strong{color:var(--sgbp-accent,#1f6feb)}

/* Note / aside callout */
.sgbp-article .sgbp-note,.sgbp-article .note,
.sap-article .sgbp-note,.sap-article .note{background:#fbf6ea;border:1px solid #ecdcb4;border-left:4px solid #c79a3f;
  border-radius:10px;padding:.35em 1.2em;margin:1.4em 0}

/* Key-takeaways box (add <div class="key-takeaways"> in the body for GEO/skim value) */
.sgbp-article .key-takeaways,
.sap-article .key-takeaways{background:#f4f7f4;border:1px solid #dbe5db;border-radius:12px;
  padding:1em 1.4em;margin:1.6em 0}
.sgbp-article .key-takeaways h3,
.sap-article .key-takeaways h3{margin:.2em 0 .5em;font-size:18px !important;text-transform:uppercase;letter-spacing:.06em}

/* Tables — readable and horizontally scrollable on small screens */
.sgbp-article table,
.sap-article table{border-collapse:collapse;width:100%;margin:1.5em 0;font-size:16px !important;display:block;overflow-x:auto}
.sgbp-article th,.sgbp-article td,
.sap-article th,.sap-article td{border:1px solid #e2e4e8;padding:.65em .85em;text-align:left;vertical-align:top}
.sgbp-article thead th,
.sap-article thead th{background:#f3f5f8;font-weight:650}
.sgbp-article tbody tr:nth-child(even),
.sap-article tbody tr:nth-child(even){background:#fafbfc}

/* FAQ */
.sgbp-article .faq,
.sap-article .faq{margin:1.6em 0}
.sgbp-article .faq h3,
.sap-article .faq h3{font-size:clamp(19px,0.7vw+16px,22px) !important;margin:1.2em 0 .35em;color:#15181d;font-weight:650}
.sgbp-article .faq h3::before,
.sap-article .faq h3::before{content:"Q. ";color:var(--sgbp-accent,#1f6feb);font-weight:700}
.sgbp-article .faq p,
.sap-article .faq p{margin:0 0 .9em}

/* Inline images */
.sgbp-article figure,
.sap-article figure{margin:1.7em 0}
.sgbp-article figure img,
.sap-article figure img{max-width:100% !important;max-height:620px !important;width:auto !important;height:auto !important;border-radius:12px;display:block;margin:0 auto}
.sgbp-article figcaption,
.sap-article figcaption{font-size:14px !important;color:#5c6470;margin-top:.55em;text-align:center}

/* Related guides + sources boxes */
.sgbp-related,.sgbp-sources,
.sap-related,.sap-sources{max-width:720px;margin:1.8em auto;border:1px solid #e2e4e8;border-radius:12px;
  padding:.4em 1.4em 1.1em;background:#fbfcfd}
.sgbp-related h3,.sgbp-sources h3,
.sap-related h3,.sap-sources h3{margin:.9em 0 .4em;font-size:15px !important;text-transform:uppercase;letter-spacing:.07em;color:#5c6470}
.sgbp-related ul,.sgbp-sources ul,
.sap-related ul,.sap-sources ul{margin:0;padding-left:1.25em}
.sgbp-related a,.sgbp-sources a,
.sap-related a,.sap-sources a{font-size:16px !important}

/* Trailing disclaimer / signature line */
.sgbp-article em:last-child,
.sap-article em:last-child{display:block;margin-top:1.5em;color:#5c6470;font-size:15px !important}

/* ============================================================================
   HERO HEADER + CTA BANNER (full screen width)
   Colors come from --sgbp-c1 / --sgbp-c2 (your Brand color settings).
   ========================================================================== */
.sgbp-hero,.sgbp-cta,
.sap-hero,.sap-cta{
  position:relative;width:100%;max-width:none;overflow:hidden;box-sizing:border-box}

/* ---- Hero ---- */
.sgbp-hero,.sap-hero{
  background:linear-gradient(105deg,var(--sgbp-c1,#1f6feb) 0%,var(--sgbp-c2,#16c0e9) 100%);
  padding:72px 22px 110px;text-align:center}
.sgbp-hero::before,.sap-hero::before{
  content:"";position:absolute;top:-60px;left:8%;width:320px;height:200px;
  background:radial-gradient(ellipse at center,rgba(255,255,255,.18),rgba(255,255,255,0) 70%);
  pointer-events:none}
.sgbp-hero-inner,.sap-hero-inner{position:relative;z-index:2;max-width:920px;margin:0 auto}
.sgbp-hero-eyebrow,.sap-hero-eyebrow{color:rgba(255,255,255,.88) !important;font-size:15px !important;letter-spacing:.05em;margin:0 0 16px;text-transform:uppercase;font-weight:600}
.sgbp-hero-title,.sap-hero-title{color:#fff !important;font-weight:700;line-height:1.12 !important;margin:0 0 16px;
  font-size:clamp(30px,2.4vw+22px,50px) !important;letter-spacing:-.015em}
.sgbp-hero-sub,.sap-hero-sub{color:rgba(255,255,255,.85) !important;font-size:17px !important;letter-spacing:.03em;margin:0}
.sgbp-hero-wave,.sap-hero-wave{position:absolute;left:0;bottom:-1px;width:100%;height:72px;z-index:1;display:block}

/* ---- CTA banner ---- */
.sgbp-cta,.sap-cta{
  background:linear-gradient(105deg,var(--sgbp-c1,#1f6feb) 0%,var(--sgbp-c2,#16c0e9) 100%);
  padding:100px 22px 70px;margin-top:56px}
.sgbp-cta-wave,.sap-cta-wave{position:absolute;left:0;top:-1px;width:100%;height:72px;display:block;z-index:1}
.sgbp-cta-inner,.sap-cta-inner{position:relative;z-index:2;max-width:1080px;margin:0 auto;
  display:flex;align-items:center;gap:44px}
.sgbp-cta-text,.sap-cta-text{flex:1;min-width:0}
.sgbp-cta-title,.sap-cta-title{color:#fff !important;font-weight:700;line-height:1.14 !important;margin:0 0 16px;
  font-size:clamp(26px,1.8vw+18px,40px) !important}
.sgbp-cta-desc,.sap-cta-desc{color:rgba(255,255,255,.93) !important;font-size:17px !important;line-height:1.6 !important;max-width:46ch;margin:0 0 26px}
.sgbp-cta-btn,.sap-cta-btn{display:inline-flex;align-items:center;gap:9px;background:#fff;color:#13202e !important;
  font-weight:700;text-decoration:none;padding:15px 32px;border-radius:40px;font-size:16px !important;
  box-shadow:0 6px 18px rgba(0,0,0,.18);transition:transform .15s,box-shadow .15s}
.sgbp-cta-btn:hover,.sap-cta-btn:hover{transform:translateY(-1px);box-shadow:0 9px 22px rgba(0,0,0,.26);color:#13202e}
.sgbp-cta-img,.sap-cta-img{flex:0 0 auto;width:330px;max-width:40%}
.sgbp-cta-img img,.sap-cta-img img{width:100%;height:auto;display:block;border-radius:26px}

@media(max-width:760px){
  .sgbp-hero,.sap-hero{padding:52px 18px 80px}
  .sgbp-cta,.sap-cta{padding:78px 18px 50px}
  .sgbp-cta-inner,.sap-cta-inner{flex-direction:column;text-align:center;gap:28px}
  .sgbp-cta-desc,.sap-cta-desc{margin-left:auto;margin-right:auto}
  .sgbp-cta-img,.sap-cta-img{width:100%;max-width:360px;order:2}
  .sgbp-hero-wave,.sap-hero-wave,.sgbp-cta-wave,.sap-cta-wave{height:48px}
}

/* ---- Tag chips (shown above the CTA only when tags are enabled) ---- */
.sgbp-tags,.sap-tags{max-width:720px;margin:32px auto 6px;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.sgbp-tags-label,.sap-tags-label{font-size:13px !important;letter-spacing:.12em;text-transform:uppercase;color:#5c6470;margin-right:4px}
.sgbp-tag,.sap-tag{display:inline-block;background:#eef1f5;color:var(--sgbp-accent,#1f6feb);text-decoration:none;font-size:15px !important;
  padding:5px 13px;border-radius:20px;border:1px solid #dde2e8;transition:background .15s,color .15s}
.sgbp-tag:hover,.sap-tag:hover{background:var(--sgbp-accent,#1f6feb);color:#fff}
