/* ==========================================================================
   SHREE IVF CARE – GLOBAL TYPOGRAPHY & CONTENT DESIGN SYSTEM
   One scale for every page. Loaded last, so it overrides page-level one-offs.
   Tokens ------------------------------------------------------------------ */
:root{
  --ty-head:'Manrope',system-ui,sans-serif;
  --ty-font-body:'DM Sans',system-ui,sans-serif;
  --ty-ink:#142433;          /* headings on light  */
  --ty-ink-on-dark:#f2f5f5;  /* headings on dark   */

  --ty-h1:clamp(40px,5.7vw,72px);       /* page titles                */
  --ty-h2:clamp(32px,4.4vw,56px);       /* section titles             */
  --ty-h2s:clamp(26px,2.5vw,34px);      /* sub-section headings       */
  --ty-h3:clamp(19px,1.7vw,22px);       /* card / item titles         */
  --ty-body:16.5px;                     /* paragraphs and lists       */
  --ty-small:14.5px;                    /* notes, captions, credits   */
  --ty-label:12px;                      /* eyebrows and labels        */
  --ty-btn:14px;                        /* buttons                    */

  --ty-lh-body:1.85;
  --ty-gap-p:1.1em;                     /* paragraph spacing          */
  --ty-gap-h:.55em;                     /* space under a heading      */
  --ty-section-y:clamp(64px,8vw,104px); /* vertical rhythm of sections*/
}

/* Page titles (H1) – the home hero keeps its signature artwork --------- */
html body main h1:not(.hero-content > h1),
html body .pg-hero h1,html body .x-hero h1,html body .x-book-l h1{
  font-family:var(--ty-head)!important;font-size:var(--ty-h1)!important;font-weight:500!important;
  line-height:1.04!important;letter-spacing:-.035em!important;text-align:start;margin:0 0 .4em!important;text-wrap:balance}

/* Section titles (H2) ----------------------------------------------------- */
html body main h2,html body .pg-band h2,html body .fx-band h2{
  font-family:var(--ty-head)!important;font-size:var(--ty-h2)!important;font-weight:500!important;
  line-height:1.08!important;letter-spacing:-.035em!important;margin-top:0;margin-bottom:var(--ty-gap-h)!important;text-wrap:balance}
html body main h2 em,html body .fx-band h2 em{font-weight:inherit}

/* Sub-section headings inside articles, bands and groups ---------------- */
html body .pg-prose h2,html body .pg-band h2,html body .fx-band h2,html body main h3.m-sgroup,html body main h3.m-panel,
html body main h3[class*="sgroup"],html body main h3[class*="panel"]{
  font-size:var(--ty-h2s)!important;font-weight:600!important;line-height:1.2!important;letter-spacing:-.025em!important}
html body .pg-prose h2{margin:1.9em 0 .6em!important}
html body .pg-prose h2:first-child{margin-top:0!important}

/* Card / item titles (H3 and card-level H2) ----------------------------- */
html body main h3,html body main h2.x-formcard,html body main .x-formcard h2,html body main h2.hero-need{
  font-family:var(--ty-head)!important;font-size:var(--ty-h3)!important;font-weight:600!important;
  line-height:1.3!important;letter-spacing:-.015em!important;margin-top:0;margin-bottom:.45em}
html body .pg-prose h3{margin:1.6em 0 .5em!important}
/* big statement lines on the home page follow the section scale */
html body main h3.puzzle-copy{font-size:var(--ty-h2)!important;font-weight:500!important;line-height:1.08!important;letter-spacing:-.035em!important}
html body main h3.m-sgroup,html body main h3.m-panel{font-size:var(--ty-h2s)!important;font-weight:600!important}

/* Body copy ---------------------------------------------------------------- */
html body main :is(p,li):not([class*="note"]):not([class*="credit"]):not([class*="caption"]):not(.fq-tag):not(.fx-note){
  font-family:var(--ty-font-body);font-size:var(--ty-body);font-weight:400;line-height:var(--ty-lh-body)}
html body main :is(.pg-prose,.x-sec,.pg-hero,.x-hero) p{margin-top:0;margin-bottom:var(--ty-gap-p)}
html body main :is(.pg-prose,.x-sec) :is(ul,ol){margin:0 0 1.2em}
html body main :is(.pg-prose,.x-sec) li{margin-bottom:.45em}
html body main :is(figcaption,.pg-note,.fq-tag,[class*="credit"],[class*="caption"]){font-size:var(--ty-small)!important;line-height:1.6!important}
html body .pg-prose p,html body .pg-prose li,html body .pg-hero p,html body .x-hero p,html body .pg-band p,
html body .fq-a p,html body .faq-row p{font-size:var(--ty-body)!important;line-height:var(--ty-lh-body)!important;font-weight:400!important}

/* Eyebrows and labels ------------------------------------------------------- */
html body .eyebrow,html body .x-eyebrow,html body .fq-eye,html body .dark-eyebrow,html body .pg-eyebrow,html body .fx-h{
  font-family:var(--ty-head)!important;font-size:var(--ty-label)!important;font-weight:700!important;
  letter-spacing:.16em!important;text-transform:uppercase!important;line-height:1.3!important}

/* Buttons --------------------------------------------------------------------- */
html body :is(.button,.button-light,.button-line,a.call-btn,.fx-btns a,.hx-cta,.cta-book,.hero-actions a.button){
  font-family:var(--ty-font-body)!important;font-size:var(--ty-btn)!important;font-weight:700!important;letter-spacing:.01em!important;
  text-transform:none!important;min-height:52px;line-height:1.2}
html body :is(.button,.button-light,.button-line,a.call-btn,.fx-btns a){border-radius:999px}

/* Rhythm: consistent vertical spacing for page sections -------------------- */
html body :is(.x-sec,.pg-body){padding-top:var(--ty-section-y);padding-bottom:var(--ty-section-y)}
html body .pg-band{padding-top:calc(var(--ty-section-y) * .8);padding-bottom:calc(var(--ty-section-y) * .8)}

@media(max-width:768px){
  :root{--ty-body:16.5px;--ty-lh-body:1.8;--ty-section-y:clamp(52px,12vw,72px)}
}

/* Specific roles that must win over the generic card-title rule above ------ */
html body main h3.m-sgroup,html body main h3.m-panel,html body main h3[class*="sgroup"],html body main h3[class*="panel"]{
  font-size:var(--ty-h2s)!important;font-weight:600!important;line-height:1.2!important;letter-spacing:-.025em!important}
html body main h3.puzzle-copy{font-size:var(--ty-h2)!important;font-weight:500!important;line-height:1.08!important;letter-spacing:-.035em!important}
html body main .hero-need h2,html body main h2.hero-need{font-size:var(--ty-h3)!important;font-weight:600!important;line-height:1.3!important;letter-spacing:-.015em!important}
html body main .doctor-splitmerge-info h3{font-weight:500!important}
html body main .google-review-card h3{font-size:16px!important}

html body :is(.x-sec,.m-card,.m-scan,.m-post,.m-gcard,.x-card,.x-glass,.x-vcard,.x-role-card) :is(p,li){font-size:var(--ty-body)!important;line-height:var(--ty-lh-body)!important}
html body :is(h1,h2,h3){overflow-wrap:break-word;hyphens:manual}
@media(max-width:420px){:root{--ty-h1:clamp(32px,9.4vw,40px);--ty-h2:clamp(28px,8.4vw,34px)}}
html body main h1:not(.hero-content > h1),html body .pg-hero h1,html body .x-hero h1,html body .x-book-l h1{margin-top:.38em!important}
html body :is(.x-grid,.x-book,.pg-body,.m-split)>*{min-width:0}
