/* =============================================================================
   DANTE LABS — CONDITION PAGE TEMPLATE STYLES  v2
   Page-specific styles for condition.html
   Requires: base.css + home.css (loaded first)

   STATIC SECTIONS (using home.css classes — no extra styles needed here):
   · Section 3 Why WGS    → .distinction* / .how-it-works* from home.css
   · Section 4 Proof Band → .proof-band* from home.css
   · Section 5 Who We Help → .who-we-help* from home.css
   · Section 6 CTA Block  → .cta-block* from home.css
   ============================================================================= */


/* ─── CONDITION HERO ─────────────────────────────────────────────────────────── */
.cond-hero {
  background: var(--color-dark);
  position: relative;
  overflow: hidden; /* clips backdrop-filter on trust strip — matches .hero in home.css */
  padding-top: clamp(140px, 16vw, 200px);
  padding-bottom: 0; /* trust strip sits flush at bottom */
}

.cond-hero .eyebrow {
  color: rgba(255, 255, 255, 0.5);
}

.cond-hero .h1 {
  color: #ffffff;
  /* H2 scale — hero headline is long emotional copy, not a title */
  font-size: var(--font-h2-size);
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 900px; /* wider at smaller font */
  margin-bottom: 0;
}

.cond-hero .body-copy {
  color: rgba(255, 255, 255, 0.75);
  max-width: 640px;
}

/* Breadcrumb */
.cond-breadcrumb {
  margin-top: 32px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.cond-breadcrumb ol {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.cond-breadcrumb li {
  font-size: var(--font-small-size);
  color: rgba(255, 255, 255, 0.45);
}

.cond-breadcrumb li + li::before {
  content: '/';
  margin: 0 8px;
  opacity: 0.4;
}

.cond-breadcrumb a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.15);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.cond-breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

.cond-breadcrumb li:last-child {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400; /* same weight as other items, just brighter */
}

/* Trust strip — on condition pages the strip flows in-DOM after the breadcrumb.
   backdrop-filter: blur() cannot be clipped by overflow:hidden in the browser's
   compositing model — it bleeds white from the next section even with overflow:hidden.
   Fix: remove blur and use a direct solid tint on the dark hero background. */
.cond-hero .hero-trust-strip {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  max-width: none;
  margin: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(10, 14, 23, 0.55); /* solid dark tint — no compositing bleed */
}


/* ─── SECTION 2 — ABOUT THIS CONDITION ──────────────────────────────────────── */

.cond-section-header {
  max-width: 880px;
  margin-bottom: 40px;
}

.cond-section-header .h2 {
  margin-top: 8px;
}

/* FAQ link below the About body text */
.cond-about-footer {
  margin-top: 32px;
}

/* CMS rich text body — 3-paragraph editorial block */
.cond-content {
  max-width: 720px;
}

.cond-content p {
  font-size: var(--font-body-size);
  line-height: 1.68;
  color: var(--color-text);
  margin-bottom: 20px;
}

.cond-content p:last-child {
  margin-bottom: 0;
}

/* Subtype callout — only rendered when condition has distinct subtypes */
.cond-subtype-callout {
  margin-top: 32px;
  padding: 20px 24px;
  background: rgba(10, 14, 23, 0.03);
  border-left: 3px solid rgba(10, 14, 23, 0.15);
  border-radius: 0 var(--card-radius) var(--card-radius) 0;
  max-width: 720px;
}

.cond-subtype-callout p {
  font-size: var(--font-body-size);
  line-height: 1.65;
  color: var(--color-text);
  font-style: italic;
  margin: 0;
}


/* ─── SECTION 3 — WHY WGS — EDITORIAL LAYOUT (Cards 01–02) ─────────────────── */
/* Cards 01–02 are condition-specific CMS content. They sit as borderless editorial
   prose directly on the off-white section background — no card border, no bg fill.
   A thin vertical divider separates the two columns. */

.distinction-intro {
  margin-bottom: 48px;
}

/* Two-column editorial container */
.distinction-editorial {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  column-gap: 0;
  margin-bottom: 72px;
}

/* Contextual eyebrow label above the 3 locked WGS education cards */
.distinction-cards-label {
  margin-bottom: 20px;
}

.distinction-cards-label .eyebrow {
  color: rgba(10, 14, 23, 0.4);
}

.distinction-editorial-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 48px 0 0;
}

.distinction-editorial-col:last-child {
  padding: 0 0 0 48px;
}

/* Thin vertical divider between the two editorial columns */
.distinction-editorial-divider {
  width: 1px;
  background: rgba(10, 14, 23, 0.1);
  align-self: stretch;
}

.distinction-editorial-col .distinction-number {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.distinction-editorial-col h3 {
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-ink);
  margin: 0;
}

.distinction-editorial-col p {
  font-size: var(--font-body-size);
  line-height: 1.7;
  color: var(--color-muted);
  margin: 0;
}

/* ─── SECTION 3 — WHY WGS — STANDARD CARDS (03–05) ─────────────────────────── */
/* Cards 03–05 are LOCKED — identical across every condition page.
   They are presented as a compact 3-column white card grid below the editorial. */

.distinction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 20px;
  row-gap: 24px;
}

.distinction-card {
  background: #ffffff;
  border: 1px solid rgba(10, 14, 23, 0.08);
  border-radius: var(--card-radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.distinction-card .distinction-number {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(10, 14, 23, 0.3);
}

.distinction-card h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-ink);
  margin: 0;
}

.distinction-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--color-muted);
  margin: 0;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .distinction-editorial {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .distinction-editorial-col {
    padding: 32px 0;
    border-bottom: 1px solid rgba(10, 14, 23, 0.1);
  }

  .distinction-editorial-col:first-child {
    padding-top: 0;
  }

  .distinction-editorial-col:last-child {
    padding: 32px 0 0;
    border-bottom: none;
  }

  /* Hide the vertical divider on mobile — border-bottom on cols takes over */
  .distinction-editorial-divider {
    display: none;
  }

  .distinction-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* WHO WE HELP — 2-col at tablet (overrides home.css 1-col at 768px) */
  .who-we-help .cards-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .who-we-help .upgrade-strip {
    margin-top: 16px;
  }
}

@media (max-width: 600px) {
  .distinction-grid {
    grid-template-columns: 1fr;
  }

  /* WHO WE HELP — 1-col on small mobile */
  .who-we-help .cards-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  /* WGS eyebrow — reduce letter-spacing so long text fits comfortably */
  .cond-wgs-section .eyebrow {
    letter-spacing: 0.06em;
    word-break: break-word;
  }

  /* Routing cards — less height needed on single column */
  .who-we-help .routing-card {
    min-height: 200px;
  }
}

/* ─── SECTION 3 — WHY WGS — FOOTER CTA ─────────────────────────────────────── */

.cond-wgs-footer {
  margin-top: 40px;
}


/* ─── SECTION 6 — CTA BLOCK — FAQ SECONDARY LINK ────────────────────────────── */

/* Wrapper paragraph — space above the secondary FAQ link in the CTA block */
.cond-cta-faq {
  margin-top: 16px;
  margin-bottom: 0;
}

/* Muted text-link variant — secondary hierarchy, no arrow, softer color */
.btn-text--muted {
  color: var(--color-muted);
  text-decoration: underline;
  text-decoration-color: rgba(10, 14, 23, 0.18);
  text-underline-offset: 3px;
  font-size: 14px;
  font-weight: 400;
  background: transparent;
  padding: 0;
}

.btn-text--muted:hover {
  color: var(--color-ink);
  text-decoration-color: rgba(10, 14, 23, 0.5);
}


/* ─── RESPONSIVE: 768px ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .cond-section-header .h2 {
    text-wrap: balance;
  }

  .cond-content p {
    text-wrap: pretty;
  }
}


/* ─── FAQ ACCORDION ─────────────────────────────────────────────────────────── */

.cond-faq-header {
  margin-bottom: 48px;
}

.cond-faq-header .eyebrow {
  margin-bottom: 12px;
}

.faq-list {
  max-width: 800px;
  list-style: none;
  padding: 0;
  margin: 0;
}

details.faq-item {
  border-top: 1px solid rgba(10, 14, 23, 0.1);
}

details.faq-item:last-child {
  border-bottom: 1px solid rgba(10, 14, 23, 0.1);
}

summary.faq-question {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  padding: 22px 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-ink);
  user-select: none;
}

summary.faq-question::-webkit-details-marker {
  display: none;
}

summary.faq-question::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--color-muted);
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

details.faq-item[open] > summary.faq-question::after {
  content: '−';
}

.faq-answer {
  padding-bottom: 24px;
  color: var(--color-muted);
  font-size: var(--font-body-size);
  line-height: 1.7;
}

.faq-answer p {
  margin: 0;
}

.cond-faq-footer {
  margin-top: 40px;
}



/* ─── RESPONSIVE: 480px ──────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .cond-hero .h1 {
    text-wrap: balance;
    font-size: clamp(24px, 7vw, 36px); /* H2-scale on small screens */
  }

  .cond-breadcrumb ol {
    flex-wrap: wrap;
  }
}
