/* ==================================================================
   BCB — Conditions hub · Tongue tie / Lip tie page CSS
   ------------------------------------------------------------------
   The NEW page CSS for the locked tongue-tie / lip-tie content. Defines
   every .tt-* component plus the page's reading primitives (.sec, .inner,
   .eyebrow, .h-title, .body-lg) — all scoped to body.page-tongue-tie so
   nothing bleeds into other pages.

   System: the educational body sits on ONE warm-white "article sheet"
   floating on the sitewide v4 gradient (kept maximally legible for a long
   read), with the gradient framing it through the hero, the sheet margins,
   and the navy CTA/FAQ base. Featured treatments (the short-answer card,
   the path cards, the wrap-around timeline, the safety note, the story
   video, the FAQ accordion) give the long read rhythm.

   Load order:  colors_and_type.css  →  bcb-chrome.css  →  tongue-tie.css
   ================================================================== */

body.page-tongue-tie {
  font-family: var(--font-sans);
  color: var(--navy-600);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body.page-tongue-tie img { max-width: 100%; display: block; }

/* Anchor targets clear the fixed nav + hub-subnav strip. */
body.page-tongue-tie [id] { scroll-margin-top: 150px; }

/* ─── Reading primitives (page-scoped) ─────────────────────────── */
body.page-tongue-tie .sec { padding: var(--sec-pad-y) 24px; background: transparent; }
body.page-tongue-tie .sec--sm { padding: var(--sec-pad-y-sm) 24px; }
body.page-tongue-tie .inner { max-width: 1180px; margin: 0 auto; }
body.page-tongue-tie .inner--prose { max-width: 760px; margin: 0 auto; }

body.page-tongue-tie .eyebrow {
  font-family: var(--font-accent);
  font-weight: 700; font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--pink-600);
  margin: 0 0 14px;
}
body.page-tongue-tie .h-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12; letter-spacing: -0.02em;
  color: var(--navy-700);
  margin: 0 0 18px;
  text-wrap: balance;
}
body.page-tongue-tie .h-title em { font-style: normal; color: var(--pink-600); }
body.page-tongue-tie .body-lg {
  font-size: clamp(16px, 1.05vw, 17.5px);
  line-height: 1.72;
  color: var(--navy-600);
  margin: 0;
  text-wrap: pretty;
}
body.page-tongue-tie .body-lg + .body-lg { margin-top: 1.1em; }

/* ══════════════════════════════════════════════════════════════
   HERO — soft: text + a framed photo beside it (default)
   --editorial modifier: centered text, no photo
   ══════════════════════════════════════════════════════════════ */
.tt-hero {
  background: transparent;
  padding: clamp(22px, 3.4vw, 44px) 24px clamp(14px, 2.2vw, 24px);
}
.tt-hero__inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}
@media (min-width: 900px) {
  .tt-hero__inner { grid-template-columns: 1.1fr 0.9fr; }
}
@media (max-width: 899.98px) {
  /* Mobile spoke-hero format: centered single column, eyebrow -> H1 -> lede ->
     photo -> chips. display:contents flattens the text wrapper so the chip row
     drops below the photo (matches feeding-lactation-care). */
  .tt-hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; }
  .tt-hero__text { display: contents; }
  .tt-hero__eyebrow { margin-bottom: 10px; }
  .tt-hero__h1 { margin-bottom: 12px; }
  .tt-hero__lede { margin-bottom: 18px; }
  .tt-hero__media { width: 100%; }
  .tt-hero__toc { order: 1; justify-content: center; margin-top: clamp(14px, 3vw, 18px); }
  .tt-toc__label { width: 100%; text-align: center; margin: 0 0 2px; }
}
.tt-hero__eyebrow {
  font-family: var(--font-accent);
  font-weight: 700; font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--pink-600);
  margin: 0 0 16px;
}
.tt-hero__h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.07; letter-spacing: -0.023em;
  color: var(--pink-500);
  margin: 0;
  text-wrap: balance;
}
.tt-hero__lede {
  font-weight: 500;
  font-size: clamp(16.5px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--navy-600);
  margin: clamp(18px, 2vw, 26px) 0 0;
  max-width: 36em;
  text-wrap: pretty;
}
.tt-hero__media { position: relative; }
.tt-hero__photo {
  width: 100%;
  height: clamp(220px, 30vw, 340px);
  object-fit: cover;
  object-position: 50% 38%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-photo);
}
/* soft inset vignette to match the homepage hero framing */
.tt-hero__media::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius-xl);
  box-shadow: inset 0 0 70px rgba(31,45,64,.16);
  pointer-events: none;
}

/* Editorial variant ------------------------------------------------ */
.tt-hero--editorial .tt-hero__inner {
  grid-template-columns: 1fr;
  max-width: 860px; text-align: center;
}
.tt-hero--editorial .tt-hero__media { display: none; }
.tt-hero--editorial .tt-hero__h1 { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.04; }
.tt-hero--editorial .tt-hero__lede { margin-left: auto; margin-right: auto; }

/* ══════════════════════════════════════════════════════════════
   ON-THIS-PAGE — anchor chips, living inside the hero
   ══════════════════════════════════════════════════════════════ */
.tt-hero__toc {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 9px;
  margin-top: clamp(16px, 2vw, 22px);
}
.tt-hero--editorial .tt-hero__toc { justify-content: center; }
.tt-toc__label {
  font-family: var(--font-accent);
  font-weight: 700; font-size: 11.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy-400);
  flex-basis: 100%; margin: 0 0 8px;
}
.tt-toc__chip {
  font-family: var(--font-sans);
  font-weight: 600; font-size: 13.5px;
  color: var(--navy-600);
  text-decoration: none;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(62, 80, 104, 0.14);
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.tt-toc__chip:hover {
  background: #fff;
  color: var(--pink-600);
  border-color: var(--pink-200);
}

/* ══════════════════════════════════════════════════════════════
   ARTICLE SHEET — the warm-white reading surface for blocks 2–10
   ══════════════════════════════════════════════════════════════ */
.tt-sheet {
  max-width: 884px;
  margin: clamp(8px, 1.5vw, 18px) auto clamp(40px, 6vw, 72px);
  padding: clamp(28px, 4vw, 52px) clamp(22px, 4vw, 60px);
  background: rgba(255, 253, 251, 0.93);
  -webkit-backdrop-filter: blur(10px) saturate(112%);
  backdrop-filter: blur(10px) saturate(112%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-2xl);
  box-shadow: 0 1px 3px rgba(31,45,64,.05), 0 22px 60px -20px rgba(31,45,64,.22);
}
.tt-sheet__inner { display: block; }

/* Section rhythm inside the sheet: vertical padding + hairline rules,
   instead of the full-bleed .sec padding the bare snippet ships with. */
.tt-sheet .sec,
.tt-sheet .sec--sm,
.tt-sheet .tt-quickanswer {
  padding: clamp(26px, 3.4vw, 40px) 0;
  background: transparent;
}
.tt-sheet .inner,
.tt-sheet .inner--prose { max-width: none; margin: 0; padding: 0; }
.tt-sheet__inner > section + section { border-top: 1px solid rgba(62, 80, 104, 0.12); }
.tt-sheet__inner > section:first-child { padding-top: 0; }
.tt-sheet__inner > section:last-child { padding-bottom: 0; }

/* ── Lead intro (the longer opening moved down from the hero) ─── */
.tt-intro { padding-bottom: clamp(18px, 2.4vw, 26px) !important; }
.tt-lead {
  margin: 0;
  font-weight: 500;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--navy-600);
  max-width: 62ch;
  text-wrap: pretty;
}
/* the short-answer card follows the intro with spacing only, no rule */
#tt-look { border-top: 0 !important; }

/* ── Short-answer feature (block 1A) — tinted lead card ───────── */
.tt-quickanswer .tt-quickanswer__inner {
  background: var(--pink-50);
  border: 1px solid var(--pink-100);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 38px);
}
.tt-quickanswer .eyebrow { color: var(--pink-600); }

/* ── Labeled-illustration placeholder (block 1A) ─────────────── */
/* Hide the figure while it only holds the "to be added" placeholder. Scoped to
   :has(.tt-figure__placeholder) so it AUTO-REVEALS once a real illustration
   replaces the placeholder div (no CSS change needed then). Added 2026-06-14. */
.tt-figure:has(.tt-figure__placeholder) { display: none; }
.tt-figure { margin: clamp(20px, 2.4vw, 28px) 0 0; }
.tt-figure__placeholder {
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-lg);
  border: 1.5px dashed var(--pink-300);
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.9) 0, rgba(255,255,255,0.9) 13px,
      rgba(233,182,201,0.28) 13px, rgba(233,182,201,0.28) 26px);
  display: grid; place-items: center;
  padding: 24px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.02em; line-height: 1.5;
  color: var(--pink-700);
}
.tt-figure__caption {
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-size: 12.5px; line-height: 1.5;
  color: var(--navy-400);
  text-align: center;
}

/* ── Lists ─────────────────────────────────────────────────────
   Default .tt-list = branded diamond-bullet list.
   --paths  = numbered choice cards (block 7A).
   --steps  = numbered vertical timeline (block 8).             */
.tt-list__intro {
  font-weight: 600;
  font-size: clamp(16px, 1.05vw, 17.5px);
  color: var(--navy-700);
  margin: clamp(18px, 2vw, 24px) 0 4px;
}
.tt-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.tt-list li {
  position: relative;
  padding-left: 28px;
  font-size: clamp(15.5px, 1.05vw, 17px);
  line-height: 1.6;
  color: var(--navy-600);
}
.tt-list li::before {
  content: "";
  position: absolute;
  left: 5px; top: 0.6em;
  width: 8px; height: 8px;
  background: var(--pink-400);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* paths — conservative → middle → direct (block 7A) */
.tt-list--paths {
  counter-reset: ttpath;
  gap: 14px;
  margin-top: 20px;
}
.tt-list--paths li {
  counter-increment: ttpath;
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2vw, 24px) clamp(16px, 2vw, 22px) 64px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(62, 80, 104, 0.12);
  border-left: 3px solid var(--pink-500);
  border-radius: var(--radius-lg);
}
.tt-list--paths li::before {
  content: counter(ttpath);
  position: absolute;
  left: 16px; top: clamp(16px, 2vw, 22px);
  width: 32px; height: 32px;
  background: var(--pink-500);
  border-radius: var(--radius-pill);
  transform: none;
  display: grid; place-items: center;
  font-family: var(--font-accent);
  font-weight: 800; font-size: 15px;
  color: #fff;
}

/* steps — wrap-around support (block 8) */
.tt-list--steps {
  counter-reset: ttstep;
  gap: 0;
  margin: 22px 0 0;
  padding-left: 6px;
}
.tt-list--steps li {
  counter-increment: ttstep;
  padding: 0 0 22px 42px;
  margin-left: 14px;
  border-left: 2px solid var(--pink-100);
}
.tt-list--steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.tt-list--steps li::before {
  content: counter(ttstep);
  position: absolute;
  left: -16px; top: -3px;
  width: 30px; height: 30px;
  background: var(--pink-500);
  border-radius: var(--radius-pill);
  transform: none;
  display: grid; place-items: center;
  font-family: var(--font-accent);
  font-weight: 800; font-size: 14px;
  color: #fff;
  box-shadow: 0 0 0 5px rgba(255, 253, 251, 0.93);
}

/* ── Safety note (block 9) — sanctioned terracotta callout ───── */
#tt-redflags { border-top: 0 !important; }
#tt-redflags + section { border-top: 0 !important; }
#tt-redflags .inner--prose {
  background: var(--note-bg);
  border: 1px solid var(--note-border);
  border-left: 4px solid var(--note-accent);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px);
}
#tt-redflags .eyebrow {
  color: var(--note-accent);
  display: flex; align-items: center; gap: 9px;
}
#tt-redflags .eyebrow::before {
  content: "";
  width: 16px; height: 16px;
  border-radius: var(--radius-pill);
  background: var(--note-accent);
  -webkit-mask: no-repeat center / 11px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='12' y1='8' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
          mask: no-repeat center / 11px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='12' y1='8' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
}

/* ══════════════════════════════════════════════════════════════
   FAMILY STORY (block 10) — video facade, pull-quote, disclaimer
   ══════════════════════════════════════════════════════════════ */
.tt-video {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: clamp(18px, 2.4vw, 28px) 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 78% 14%, rgba(142,204,230,.30), transparent 55%),
    linear-gradient(140deg, var(--pink-400) 0%, var(--navy-600) 78%);
  box-shadow: 0 1px 3px rgba(31,45,64,.06), 0 16px 40px -16px rgba(31,45,64,.34);
}
.tt-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tt-video__play {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: transparent; border: 0; cursor: pointer;
}
.tt-video__play svg {
  width: 84px; height: 60px;
  filter: drop-shadow(0 6px 16px rgba(16, 21, 31, 0.4));
  transition: transform var(--dur-base) var(--ease-out);
}
.tt-video__play:hover svg { transform: scale(1.07); }
.tt-video__play-bg { fill: var(--navy-800); fill-opacity: 0.78; }
.tt-video__play:hover .tt-video__play-bg { fill: var(--pink-600); fill-opacity: 0.92; }
.tt-video__badge {
  position: absolute; top: 16px; left: 18px;
  font-family: var(--font-accent);
  font-weight: 700; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: rgba(16, 21, 31, 0.34);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

.tt-pullquote {
  margin: clamp(22px, 2.6vw, 30px) 0 0;
  padding: 2px 0 2px 24px;
  border-left: 3px solid var(--pink-300);
}
.tt-pullquote p {
  margin: 0;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.4;
  color: var(--navy-700);
  text-wrap: pretty;
}
.tt-disclaimer { margin-top: 18px; }
.tt-disclaimer p {
  margin: 0;
  font-size: 13.5px; line-height: 1.55; font-style: italic;
  color: var(--navy-400);
}

/* ── Closing general-information disclaimer (terracotta finenote) ──
   Bottom note linking the sitewide Medical Disclaimer. This page is NOT in
   the footer-ombré allowlist, so it sits on the page tail before the footer. */
.tt-finenote {
  max-width: 820px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  padding: clamp(16px,2vw,20px) clamp(20px,2.6vw,30px);
  background: var(--note-bg);
  border: 1px solid var(--note-border);
  border-left: 4px solid var(--note-accent);
  border-radius: var(--radius-lg);
}
.tt-finenote p {
  margin: 0; font-size: 14px; line-height: 1.55; font-style: italic;
  color: var(--navy-500); text-align: center;
}
.tt-finenote a {
  color: var(--pink-600); font-style: normal; font-weight: 600;
  text-decoration: none; border-bottom: 1px solid rgba(194, 99, 138, 0.4);
}
.tt-finenote a:hover { color: var(--pink-700); border-color: var(--pink-500); }
.tt-video__caption {
  margin: 16px 0 0;
  font-size: 14px; line-height: 1.5;
  color: var(--navy-500);
}
.tt-story__more { margin: 14px 0 0; }
.tt-story__more a,
.tt-quickanswer a, .sec a:not(.btn) {
  color: var(--pink-600);
  text-decoration: none;
  border-bottom: 1px solid rgba(194, 99, 138, 0.3);
  padding-bottom: 1px;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.tt-story__more a:hover,
.tt-quickanswer a:hover, .sec a:not(.btn):hover {
  color: var(--pink-700);
  border-color: var(--pink-500);
}

/* ══════════════════════════════════════════════════════════════
   CONVERSION (block 11) — floating card on the navy gradient base
   ══════════════════════════════════════════════════════════════ */
.tt-cta { padding: clamp(16px, 2vw, 28px) 24px clamp(44px, 6vw, 72px); }
.tt-cta__inner {
  max-width: 660px; margin: 0 auto;
  text-align: center;
  background: var(--card-lift-bg);
  backdrop-filter: var(--card-lift-blur);
  -webkit-backdrop-filter: var(--card-lift-blur);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-xl);
  padding: clamp(30px, 4vw, 52px) clamp(24px, 4vw, 48px);
  box-shadow: 0 18px 50px -28px rgba(41,52,72,0.35);
}
.footer-ombre-blend { display: block; }  /* enable Case-A fade on tongue-tie */
.tt-cta .eyebrow { color: var(--pink-600); }
.tt-cta .h-title { margin-bottom: 14px; }
.tt-cta .body-lg { margin: 0 auto; max-width: 46ch; }
.tt-cta__buttons {
  display: flex; flex-direction: column; gap: 10px;
  align-items: stretch;
  max-width: 380px; margin: clamp(22px, 2.6vw, 28px) auto 0;
}
.tt-cta__buttons .btn { width: 100%; }

/* ══════════════════════════════════════════════════════════════
   FAQ (block 12) — accordion on a light panel over the navy base
   ══════════════════════════════════════════════════════════════ */
.tt-faq { padding: clamp(8px, 2vw, 20px) 24px clamp(48px, 7vw, 88px); }
.tt-faq__inner {
  max-width: 820px; margin: 0 auto;
  background: rgba(255, 253, 251, 0.95);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-2xl);
  padding: clamp(26px, 4vw, 48px) clamp(22px, 4vw, 48px);
  box-shadow: 0 1px 3px rgba(31,45,64,.05), 0 22px 60px -20px rgba(31,45,64,.28);
}
.tt-faq .eyebrow { color: var(--pink-600); margin-bottom: 10px; }
.tt-faq__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.12; letter-spacing: -0.02em;
  color: var(--pink-500);
  margin: 0 0 clamp(10px, 1.5vw, 18px);
  text-wrap: balance;
}
.tt-faq__item { border-top: 1px solid rgba(62, 80, 104, 0.13); }
.tt-faq__item:first-of-type { border-top: 0; }
.tt-faq__q {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  padding: clamp(16px, 1.8vw, 20px) 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16.5px, 1.4vw, 20px);
  line-height: 1.32;
  color: var(--navy-700);
  text-wrap: balance;
}
.tt-faq__q::-webkit-details-marker { display: none; }
.tt-faq__q::after {
  content: "+";
  flex: none;
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  background: var(--navy-500);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-sans); font-weight: 400; font-size: 21px; line-height: 1;
  transition: background var(--dur-fast) var(--ease-out);
}
.tt-faq__item[open] .tt-faq__q { color: var(--pink-700); }
.tt-faq__item[open] .tt-faq__q::after { content: "\2013"; background: var(--pink-500); }
.tt-faq__q:hover::after { background: var(--navy-600); }
.tt-faq__a { padding: 0 0 clamp(18px, 2vw, 24px); }
.tt-faq__a p {
  margin: 0;
  max-width: 64ch;
  font-size: clamp(15.5px, 1.05vw, 17px);
  line-height: 1.66;
  color: var(--navy-600);
}

/* ─── Mobile refinements ───────────────────────────────────────── */
@media (max-width: 700px) {
  .tt-quickanswer .tt-quickanswer__inner { padding: 20px; }
  .tt-list--paths li { padding-left: 56px; }
  .tt-toc__label { width: 100%; margin-bottom: 2px; }
}
