/* Shared styles for educational / prose content pages */

.page-hero {
  padding: var(--space-6) 0 var(--space-4);
  background: var(--white);
  border-bottom: 1.5px solid var(--line);
}

.page-hero__inner {
  max-width: var(--measure);
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin-bottom: var(--space-3);
}

.page-hero__lead {
  font-size: 1.12rem;
  max-width: 40rem;
  color: var(--ink-soft);
}

.page-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--space-3);
}

.prose-page {
  padding: var(--space-6) 0 var(--space-5);
}

.prose-page .wrap--narrow > * + * {
  /* spacing handled per-block */
}

.prose {
  max-width: var(--measure);
}

.prose > p,
.prose > ul,
.prose > ol,
.prose > table {
  margin-bottom: var(--space-4);
}

.prose section {
  margin-bottom: var(--space-6);
}

.prose .section-index {
  margin-bottom: var(--space-1);
}

.stack-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-4) 0;
  max-width: var(--measure);
}

.stack-card > :last-child {
  margin-bottom: 0;
}

.page-illust {
  margin: var(--space-4) 0 var(--space-5);
  max-width: 28rem;
}

.page-illust img,
.page-illust svg {
  width: 100%;
  height: auto;
  padding: var(--space-4);
  color: var(--blue);
}

.odds-table-wrap {
  overflow-x: auto;
  margin: var(--space-4) 0;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.odds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 28rem;
}

.odds-table th,
.odds-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.odds-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-soft);
  font-weight: 600;
}

.odds-table tr:last-child td {
  border-bottom: 0;
}

.odds-table td:nth-child(2),
.odds-table td:nth-child(3),
.odds-table th:nth-child(2),
.odds-table th:nth-child(3) {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.myth-block {
  margin: var(--space-4) 0;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  max-width: var(--measure);
}

.myth-block__myth,
.myth-block__fact {
  padding: var(--space-4);
}

.myth-block__myth {
  background: var(--magenta-soft);
  border-bottom: 1.5px solid var(--line);
}

.myth-block__fact {
  background: linear-gradient(180deg, var(--white), var(--blue-soft));
}

.myth-block__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.myth-block__myth .myth-block__label {
  color: var(--magenta);
}

.myth-block__fact .myth-block__label {
  color: var(--blue);
}

.myth-block p:last-child {
  margin-bottom: 0;
}

.checklist-panel {
  background: var(--white);
  border: 1.5px solid var(--blue);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-4) 0;
  max-width: var(--measure);
  box-shadow: 8px 8px 0 var(--blue-soft);
}

.checklist-panel h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.checklist {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding: 0.55rem 0 0.55rem 2rem;
  border-bottom: 1px solid var(--line);
  max-width: none;
}

.checklist li:last-child {
  border-bottom: 0;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 1.05rem;
  height: 1.05rem;
  border: 1.5px solid var(--blue);
  border-radius: 3px;
  background: var(--white);
}

.faq-block {
  max-width: var(--measure);
}

.faq-group {
  margin-bottom: var(--space-5);
}

.faq-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  align-items: start;
}

.faq-item__num {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--blue);
  line-height: 1;
  opacity: 0.45;
}

.faq-item h3 {
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: var(--space-2);
}

.disclaimer-box {
  max-width: var(--measure);
  margin: var(--space-5) 0 0;
  padding: var(--space-4);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.disclaimer-box p:last-child {
  margin-bottom: 0;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

@media (max-width: 860px) {
  .faq-item {
    grid-template-columns: 2.5rem 1fr;
  }

  .checklist-panel {
    box-shadow: 4px 4px 0 var(--blue-soft);
  }
}
