/* ============================================================
   CondomShot — article subpages (guide, engineering, health,
   use cases, press). Loaded AFTER styles.css; reuses its tokens
   (:root palette/fonts), .nav, .footer, .faq, .btn, .section.
   No Three.js / no reveal script on these pages — they must
   render complete without JavaScript.
   ============================================================ */

/* ---------- page frame ---------- */
.subpage { background: var(--ink); }

/* ---------- article hero (dark) ---------- */
.article-hero {
  position: relative;
  z-index: 3;
  padding: 150px 0 64px;
  background:
    radial-gradient(720px 420px at 82% -10%, rgba(198, 248, 50, 0.10), transparent 66%),
    radial-gradient(560px 380px at 8% 110%, rgba(255, 127, 176, 0.07), transparent 60%),
    var(--ink);
}

.crumbs {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  color: var(--text-mut-light);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.crumbs a { color: var(--text-mut-light); transition: color 0.2s; }
.crumbs a:hover { color: var(--lime); }
.crumbs .sep { color: rgba(245, 243, 236, 0.3); }
.crumbs [aria-current] { color: var(--text-light); }

.article-hero .eyebrow { margin-bottom: 14px; }

.article-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 6.4vw, 3.9rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  max-width: 22ch;
  color: var(--text-light);
}

.article-hero .lead {
  margin-top: 20px;
  max-width: 58ch;
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  color: var(--text-mut-light);
}

.article-meta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-mut-light);
}
.article-meta .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime);
  display: inline-block;
  margin-right: 6px;
  box-shadow: 0 0 12px rgba(198, 248, 50, 0.8);
}

/* ---------- article body (light) ---------- */
.article-body {
  position: relative;
  z-index: 3;
  background: var(--paper);
  color: var(--text-dark);
  border-radius: 34px 34px 0 0;
  padding: 64px 0 88px;
}

.prose { max-width: 760px; }

.prose h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 4.4vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text-dark);
  margin: 2.4em 0 0.55em;
  max-width: 26ch;
}
.prose > h2:first-child { margin-top: 0; }

.prose h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--text-dark);
  margin: 1.8em 0 0.45em;
}

.prose p {
  margin: 0 0 1em;
  color: #3c3c46;
  font-size: 1.02rem;
  max-width: 70ch;
}

.prose a {
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: background 0.2s, text-decoration-color 0.2s;
}
.prose a:hover { background: rgba(198, 248, 50, 0.35); border-radius: 4px; }

.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; color: #3c3c46; }
.prose li { margin-bottom: 0.45em; max-width: 66ch; }
.prose li::marker { color: var(--coral); font-family: var(--font-mono); }

.prose strong { color: var(--text-dark); }

.prose blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  border-left: 4px solid var(--lime);
  background: var(--cream);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-dark);
  font-size: 1.02rem;
}

/* definition-style opener AI engines can lift verbatim */
.prose .keydef {
  font-size: 1.12rem;
  color: var(--text-dark);
  padding: 20px 24px;
  background: var(--cream);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  margin-bottom: 1.6em;
}

/* callout boxes */
.callout {
  margin: 1.6em 0;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  background: #fff;
  font-size: 0.96rem;
  color: #3c3c46;
}
.callout--flag { border-left: 4px solid var(--coral); }
.callout .callout__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral);
  margin-bottom: 6px;
}

/* ---------- spec / fact tables ---------- */
.spec-wrap { overflow-x: auto; margin: 1.4em 0 1.8em; }
.spec {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec th, .spec td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-dark); vertical-align: top; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: none; }
.spec th {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-mut-dark);
  white-space: nowrap;
  width: 34%;
  background: var(--cream);
  font-weight: 700;
}
.spec td { color: #3c3c46; }

/* ---------- numbered stat strip ---------- */
.factrow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 1.6em 0 2em;
}
.factrow .fact {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.factrow .fact__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}
.factrow .fact__num em { font-style: normal; color: var(--coral); }
.factrow .fact p { margin: 4px 0 0; font-size: 0.88rem; color: var(--text-mut-dark); }

/* ---------- sources ---------- */
.sources {
  margin-top: 3em;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
}
.sources h2 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mut-dark);
  margin: 0 0 12px;
}
.sources ol { margin: 0; padding-left: 1.3em; font-size: 0.88rem; color: var(--text-mut-dark); }
.sources li { margin-bottom: 6px; overflow-wrap: anywhere; }
.sources a { color: var(--text-mut-dark); text-decoration: underline; text-underline-offset: 3px; }
.sources a:hover { color: var(--text-dark); }

/* ---------- FAQ on light background (reuses .faq markup) ---------- */
.article-body .faq { margin-top: 24px; }

/* ---------- related reading ---------- */
.related {
  position: relative;
  z-index: 3;
  background: var(--cream);
  color: var(--text-dark);
  padding: 64px 0 78px;
}
.related h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 4.4vw, 2rem);
  letter-spacing: -0.015em;
}
.related__grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.relcard {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.relcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(20, 20, 24, 0.1);
  border-color: rgba(20, 20, 24, 0.24);
}
.relcard .relcard__kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral);
}
.relcard h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  margin: 8px 0 6px;
  color: var(--text-dark);
}
.relcard p { font-size: 0.9rem; color: var(--text-mut-dark); margin: 0; }
.relcard .relcard__go {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dark);
}

/* ---------- bottom CTA band ---------- */
.subcta {
  position: relative;
  z-index: 3;
  background: var(--ink);
  color: var(--text-light);
  text-align: center;
  padding: 84px 0;
}
.subcta h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 5.4vw, 2.9rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 20ch;
  margin-inline: auto;
}
.subcta p {
  margin: 16px auto 26px;
  max-width: 46ch;
  color: var(--text-mut-light);
}

/* ---------- press page extras ---------- */
.asset-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 1.4em 0 2em;
}
.asset {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.asset img { width: 100%; height: 210px; object-fit: cover; background: var(--ink); }
.asset figcaption {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-mut-dark);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}
.asset a { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-dark); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ---------- responsive ---------- */
@media (min-width: 620px) {
  .factrow { grid-template-columns: repeat(2, 1fr); }
  .asset-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .article-hero { padding: 190px 0 84px; }
  .article-body { padding: 84px 0 110px; }
  .related__grid { grid-template-columns: repeat(3, 1fr); }
  .factrow { grid-template-columns: repeat(4, 1fr); }
}
