/* ============================================
   Merged Page Additions
   Styles for /merged that aren't in outcomes.css
   ============================================ */

/* ===== Smooth Scroll & Anchor Offsets ===== */
html {
  scroll-behavior: smooth;
}

#detail,
#reference {
  scroll-margin-top: 4rem;
}

/* ===== Section Dividers ===== */
.section-divider {
  max-width: 1400px;
  margin: 0 auto;
  border: none;
  border-top: 1px solid var(--color-border);
}

/* ===== Prose Width Consistency ===== */
/* Cap text-heavy headers to match hero (900px).
   Visualizations and card grids stay at their wider container. */
.detail-section__header {
  max-width: 900px;
}

/* ===== Orientation Scaffold ===== */
.orientation-scaffold {
  padding: 1.5rem var(--sp-section-x) 2rem;
}

.orientation__lead {
  font-size: var(--wb-p3);
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 1.25rem;
}

.orientation__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.orientation__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}

.orientation__item .legend-dot {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  margin-bottom: 0.25rem;
}

.orientation__name {
  font-family: var(--font-sans-med);
  font-size: var(--wb-p3);
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.orientation__desc {
  font-size: var(--wb-p3);
  color: var(--color-text-secondary);
  line-height: 1.45;
}

@media (max-width: 600px) {
  .orientation__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.5rem;
  }
}

/* ===== Inline Newsletter Capture ===== */
.inline-capture {
  padding: 2.5rem var(--sp-section-x) 2rem;
}

.inline-capture__inner {
  max-width: 640px;
  margin: 0 auto;
}

.inline-capture__provocation {
  font-size: var(--wb-p2);
  color: var(--color-text);
  line-height: 1.6;
  text-align: center;
  margin-bottom: 2rem;
}

.inline-capture__form {
  max-width: 520px;
  margin: 0 auto;
}

/* ===== Detail → Reference Link ===== */
.detail-reference-link {
  text-align: center;
  padding: 1.5rem var(--sp-section-x) 2rem;
}

/* ===== Outcomes Reference Section ===== */
.outcomes-reference-section {
  padding: var(--sp-section) var(--sp-section-x);
}

.outcomes-reference-section .outcomes-section__inner {
  max-width: none;
}

@media (min-width: 1200px) {
  .outcomes-reference-section {
    padding-left: 4vw;
    padding-right: 4vw;
  }
}

.outcomes-reference__header {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

.outcomes-reference__title {
  font-size: var(--h3);
  text-align: center;
  margin-bottom: 0.5em;
}

.outcomes-reference__intro {
  font-size: var(--wb-p2);
  color: var(--color-text);
  line-height: 1.7;
  max-width: 38em;
  margin-left: auto;
  margin-right: auto;
}

.outcomes-reference__intro a {
  color: var(--color-link);
}

.outcomes-reference__uplink {
  white-space: nowrap;
}

/* ===== Post-Reference CTA ===== */
.outcomes-reference__cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ===== Outcome Grid (2×2 cards) ===== */
/* Extracted from framework.css for use on merged page */
.outcomes-reference__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (min-width: 1200px) {
  .outcomes-reference__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.outcome-category {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 2rem 2.25rem;
  border-top: 3px solid var(--color-border);
}

.outcome-category--physical {
  border-top-color: var(--chart-physical);
}

.outcome-category--intellectual {
  border-top-color: var(--chart-intellectual);
}

.outcome-category--social {
  border-top-color: var(--chart-social);
}

.outcome-category--personal {
  border-top-color: var(--chart-personal);
}

.outcome-category__title {
  font-size: var(--h5);
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.outcome-category--physical .outcome-category__title {
  color: var(--chart-physical);
}

.outcome-category--intellectual .outcome-category__title {
  color: var(--chart-intellectual);
}

.outcome-category--social .outcome-category__title {
  color: var(--chart-social);
}

.outcome-category--personal .outcome-category__title {
  color: var(--chart-personal);
}

/* ===== Outcome List ===== */
.outcome-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.outcome-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--fx-base-100);
}

.outcome-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.outcome-item__name {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--wb-p2);
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.outcome-item__desc {
  display: block;
  font-size: var(--wb-p3);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ===== Newsletter Description ===== */
.latest-updates__description {
  font-size: var(--wb-p2);
  color: var(--color-text);
  max-width: 38em;
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* ===== Methodology Toggle ===== */
.methodology-toggle > summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-sans);
  font-size: var(--h5);
  font-weight: 700;
}

.methodology-toggle > summary::-webkit-details-marker {
  display: none;
}

.methodology-toggle > summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 0.4em;
  transition: transform 0.15s ease;
  font-size: 0.8em;
}

.methodology-toggle[open] > summary::before {
  transform: rotate(90deg);
}

.methodology-toggle .methodology__text {
  padding-top: 1rem;
}

/* ===== Why Staff Section ===== */
.why-staff__heading {
  font-family: var(--font-sans);
  font-size: var(--h4);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

.alignment-why-staff .why-staff__text {
  font-size: var(--wb-p2);
  text-align: left;
  max-width: 38em;
}

/* ===== Responsive ===== */
@media (max-width: 1023px) {
  .outcomes-reference__title {
    font-size: var(--h4);
  }
}

@media (max-width: 768px) {
  .outcomes-reference__grid {
    grid-template-columns: 1fr;
  }

  .outcome-category {
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 640px) {
  .outcomes-reference__title {
    font-size: var(--h5);
  }
}
