/* ── CHAPTER ACCENT ── */
:root {
  --chapter-accent: var(--accent-terracotta);
  --chapter-accent-fill: var(--accent-terracotta-fill);
}

/* ── PAGE WATERMARKS ── */
header::before {
  content: "When Why How";
}

.reminder-box::before {
  content: "Purposeful";
}

/* ─────────────────────────────────────────
         PURPOSES — TWO TIER LAYOUT
      ───────────────────────────────────────── */
.purposes-tier {
  margin-bottom: var(--space-6);
}
.tier-label {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}
.tier-label .tl-badge {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.tier-diagnostic {
  margin-bottom: var(--space-5);
}
.tier-management {
  margin-bottom: var(--space-12);
}

.tier-diagnostic .tl-badge,
.tier-management .tl-badge {
  background: var(--background);
  color: var(--dark-blue);
  font-weight: 500;
}

.tier-label .tl-desc {
  font-size: var(--fs-xs);
  color: var(--primary);
  letter-spacing: var(--ls-wider);
}
.purposes-grid {
  display: grid;
  gap: var(--space-3);
}
.tier-diagnostic .purposes-grid {
  grid-template-columns: 1fr 1fr;
}
.tier-management .purposes-grid {
  grid-template-columns: 1fr 1fr 1fr;
}

.purpose-card {
  box-shadow: var(--bs-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.purpose-card-head {
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.tier-diagnostic .purpose-card-head {
  background: var(--surface);
}
.tier-management .purpose-card-head {
  background: var(--surface);
}

.purpose-num {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
}
.tier-diagnostic .purpose-num {
  color: var(--primary);
}
.tier-management .purpose-num {
  color: var(--primary);
}

.purpose-card-head h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--primary);
  font-size: var(--fs-base);
  line-height: 1.2;
}
.purpose-card-body {
  background: var(--paper);
  padding: var(--space-4) var(--space-4);
  font-size: var(--fs-sm);
  color: var(--primary);
  line-height: 1.65;
}
.purpose-card-body strong {
  color: var(--primary);
}
.purpose-example {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px dashed var(--border);
  font-size: var(--fs-xs);
  color: var(--primary);
}
.purpose-example .pe-tag {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: var(--space-1);
}
@media (max-width: 700px) {
  .tier-diagnostic .purposes-grid,
  .tier-management .purposes-grid {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────────
         HYPOTHESIS vs EXPLORATORY — SIDE BY SIDE
      ───────────────────────────────────────── */
.test-approach-block {
  box-shadow: var(--bs-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-12);
}
.tab-head {
  background: var(--surface);
  padding: var(--space-5) var(--space-7);
}
.tab-head .th-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-1);
}
.tab-head h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-md);
}
.tab-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
}
.tab-col {
  padding: var(--space-6) var(--space-7);
}
.tab-col .tc-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px dashed var(--border);
  display: block;
}
.tab-col:first-child .tc-label {
  color: var(--primary);
}
.tab-col:last-child .tc-label {
  color: var(--text-primary);
}
.tab-col h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-base);
  margin-bottom: var(--space-2);
}
.tab-col:first-child h4 {
  color: var(--primary);
}
.tab-col:last-child h4 {
  color: var(--text-primary);
}
.tab-col p {
  font-size: var(--fs-sm);
  color: var(--primary);
  line-height: 1.7;
  margin-bottom: var(--space-3);
}
.tab-col p strong {
  color: var(--primary);
}
.tab-example {
  background: var(--background);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-sm);
  color: var(--primary);
  line-height: 1.6;
}
.tab-example .te-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: var(--space-1);
}
.tab-example strong {
  color: var(--primary);
}

/* ─────────────────────────────────────────
         UNEXPECTED RESULT BLOCK
      ───────────────────────────────────────── */
.unexpected-block {
  background: var(--background);
  box-shadow: var(--bs-medium);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-8);
  margin-bottom: var(--space-12);
}
.unexpected-block .ub-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-huge);
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}
.unexpected-block h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-md);
  color: var(--primary);
  margin-bottom: var(--space-3);
}
.unexpected-block > p {
  font-size: var(--fs-sm);
  color: var(--primary);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}
.unexpected-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.ustep {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--primary);
}
.ustep-num {
  width: 1.6rem;
  height: 1.6rem;
  background: var(--text-primary);
  color: var(--background);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.ustep strong {
  color: var(--primary);
}

/* ─────────────────────────────────────────
         UNIFIED PRE-ORDER CHECKLIST
      ───────────────────────────────────────── */
.checklist-block {
  background: var(--background);
  border-radius: var(--radius-lg);
  padding: var(--space-9) var(--space-10);
  margin-bottom: var(--space-12);
  color: var(--primary);
  position: relative;
  overflow: hidden;
  box-shadow: var(--bs-medium);
}
.checklist-block::before {
  content: "";
  position: absolute;
  right: 1.5rem;
  bottom: -1rem;
  font-family: var(--font-display);
  font-size: var(--fs-xxl);
  font-weight: 600;
  color: rgba(var(--gold-rgb), 0.05);
  pointer-events: none;
  line-height: 1;
}
html[data-theme="dark"] .checklist-block::before {
  color: rgba(var(--gold-rgb), 0.045);
}
.checklist-block .cb-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-huge);
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}
.checklist-block h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-md);
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
}
.cl-card {
  background: var(--surface-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.cl-card .cl-num {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.cl-card h4 {
  font-size: var(--fs-base);
  font-weight: 500;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}
.cl-card p {
  font-size: var(--fs-xs);
  color: var(--text-primary);
  line-height: 1.6;
}

/* ─────────────────────────────────────────
         THRESHOLD BAR (test / treatment threshold model)
      ───────────────────────────────────────── */
.threshold-bar-block {
  margin-bottom: var(--space-12);
}
.threshold-bar-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-3);
}
.threshold-bar {
  display: flex;
  align-items: stretch;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--bs-medium);
}
.threshold-zone {
  flex: 1;
  padding: var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  text-align: center;
  color: var(--text-on-dark);
}
.threshold-zone.zone-none {
  flex: 0.8;
  background: var(--border);
  color: var(--primary);
}
.threshold-zone.zone-test {
  flex: 1.2;
  background: var(--accent-navy);
}
.threshold-zone.zone-treat {
  flex: 0.8;
  background: var(--accent-terracotta);
}
.tz-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-base);
}
.tz-desc {
  font-size: var(--fs-xs);
  opacity: 0.85;
}
.threshold-bar-axis {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-2);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wider);
  color: var(--primary);
}
.threshold-bar-axis .tba-arrow {
  flex: 1;
  text-align: center;
  color: var(--border);
}
@media (max-width: 700px) {
  .threshold-bar {
    flex-direction: column;
  }
  .threshold-zone.zone-none,
  .threshold-zone.zone-test,
  .threshold-zone.zone-treat {
    flex: 1;
  }
  .threshold-bar-block {
    margin-bottom: var(--space-7);
  }
}

/* ─────────────────────────────────────────
         SEQUENCE FLOW
      ───────────────────────────────────────── */
.sequence-block {
  margin-bottom: var(--space-12);
}
.sequence-flow {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--background);
  box-shadow: var(--bs-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-wrap: wrap;
}
.seq-step {
  flex: 1;
  padding: var(--space-4) var(--space-4);
  text-align: center;

  min-width: 100px;
  position: relative;
}
.seq-step:last-child {
  border-right: none;
}
.seq-step .ss-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: var(--space-1);
}
.seq-step h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-base);
}

.seq-step.highlighted {
  background: var(--ink-panel);
}
.seq-step.highlighted .ss-label {
  color: var(--text-on-dark);
}
.seq-step.highlighted h4 {
  color: var(--text-on-dark);
}

@media (max-width: 700px) {
  .sequence-flow {
    flex-direction: column;
    align-items: stretch;
  }

  .seq-step {
    width: 100%;
    min-width: auto;
  }
}

@media (max-width: 700px) {
  .tier-diagnostic .purposes-grid,
  .tier-management .purposes-grid,
  .tab-compare {
    grid-template-columns: 1fr;
  }
  .checklist-grid {
    grid-template-columns: 1fr 1fr;
  }
  /* MOBILE SPACING TIGHTEN — trim this page's generous desktop-sized
     block gaps/padding so a long page scrolls less on a phone. */
  .tier-management,
  .test-approach-block,
  .unexpected-block,
  .checklist-block,
  .sequence-block {
    margin-bottom: var(--space-7);
  }
  .checklist-block {
    padding: var(--space-6) var(--space-6);
  }
}
@media (max-width: 480px) {
  .checklist-grid {
    grid-template-columns: 1fr;
  }
}
