/* ============================================================
   BASE + SECTION COMPONENTS
   Linked ONLY by the inner pages built against it: certification,
   how review works, why this exists. Deliberately kept out of
   site.css so it cannot leak into index.html, the directory, or
   the policy pages, each of which carries its own complete styles.
   ============================================================ */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 62rem; margin: 0 auto; padding-inline: var(--pad); }

h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 1rem; }
h3 { font-size: 1.1875rem; line-height: 1.3; margin: 0 0 0.5rem; }
p  { margin: 0 0 1.15rem; max-width: 34rem; }
p:last-child { margin-bottom: 0; }
a  { color: var(--red); text-underline-offset: 0.2em; }

.eyebrow {
  font-family: var(--font-ui); font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin: 0 0 1rem;
}
.lede { font-size: 1.1875rem; color: var(--ink-soft); }

.band { padding-block: clamp(3rem, 7vw, 5rem); border-bottom: 1px solid var(--rule); }
.band--tint { background: var(--ground-2); }
.section-head { margin-bottom: 2.5rem; }

.morelink { font-family: var(--font-ui); font-size: 0.875rem; margin: 1.75rem 0 0; max-width: none; }

/* ---- certification schedule ---- */
.class-group { margin-top: 2.5rem; }
.class-group + .class-group { margin-top: 3rem; }
.class-head { display: flex; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--ink); padding-bottom: 0.6rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.class-title { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; margin: 0; }
.class-note { font-family: var(--font-ui); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0; max-width: none; }
.schedule { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; }
.tier { border: 1px solid var(--rule); background: var(--ground); padding: 1.75rem 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.band--tint .tier { background: var(--ground-2); }
.tier--sponsor { border-style: dashed; }
.tier-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin: 0; }
.tier-desc { font-size: 0.9375rem; color: var(--muted); margin: 0; max-width: none; }
.tier-mark { font-family: var(--font-ui); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; padding: 0.3rem 0.6rem; align-self: flex-start; border: 1px solid currentColor; }
.mark--descendant { color: var(--red); }
.mark--sponsor    { color: var(--muted); }
.tier-list { font-family: var(--font-ui); font-size: 0.875rem; color: var(--muted); margin: 0; padding-left: 1.1rem; }
.tier-list li { margin-bottom: 0.4rem; }
.prereq { font-family: var(--font-ui); font-size: 0.8125rem; color: var(--muted); margin: 1.25rem 0 0; max-width: 44rem; padding-left: 1rem; border-left: 2px solid var(--pewter); }

/* ---- process ---- */
.steps { margin-top: 2.5rem; display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1.25rem; padding-block: 1.5rem; border-top: 1px solid var(--rule); }
.step:last-child { border-bottom: 1px solid var(--rule); }
.step-num { font-family: var(--font-ui); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; color: var(--red); padding-top: 0.35rem; }
.step p { margin: 0 0 0.6rem; font-size: 0.9688rem; color: var(--muted); max-width: 44rem; }
.step p:last-child { margin-bottom: 0; }

.pledge { margin-top: 2.5rem; border-left: 3px solid var(--red); padding: 0.25rem 0 0.25rem 1.5rem; }
.pledge p { font-size: 1.0625rem; font-style: italic; max-width: 44rem; }

.reviewer { margin-top: 2.5rem; border-top: 2px solid var(--ink); padding-top: 1.25rem; max-width: 44rem; }
.reviewer .role { font-family: var(--font-ui); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.75rem; max-width: none; }
.reviewer p.bio { margin: 0; max-width: none; color: var(--ink-soft); }
.reviewer .bio strong { color: var(--ink); font-weight: 600; }

/* ---- pillars ---- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem 2.5rem; margin-top: 2.5rem; }
.pillar { border-top: 2px solid var(--ink); padding-top: 1rem; }
.pillar p { font-size: 0.9688rem; color: var(--muted); margin: 0; max-width: none; }

/* ---- the disparity figure ---- */
.gap-figure { margin: 2rem 0 1.25rem; display: flex; flex-direction: column; gap: 1.5rem; max-width: 44rem; }
.bar-row { display: flex; flex-direction: column; gap: 0.5rem; }
.bar-label { font-family: var(--font-ui); font-size: 0.8125rem; letter-spacing: 0.03em; color: var(--muted); display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.bar-value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.bar-track { height: 2.25rem; border: 1px solid var(--rule); position: relative; }
.bar-fill { height: 100%; }
.bar-fill--pop  { width: 93.3%; background: var(--ink); }
.bar-fill--firm { width: 26%;   background: var(--red); }
.axis { display: flex; justify-content: space-between; font-family: var(--font-ui); font-size: 0.6875rem; letter-spacing: 0.06em; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 0.4rem; max-width: 44rem; }
.gap-note { font-family: var(--font-ui); font-size: 0.875rem; color: var(--muted); margin-top: 1.5rem; max-width: 44rem; }
.gap-note strong { color: var(--red); font-weight: 600; }

/* ---- call to action at the foot of an inner page ---- */
.endcta { text-align: center; padding-block: clamp(2.5rem, 6vw, 4rem); }
.endcta h2 { margin-bottom: 0.75rem; }
.endcta p { margin: 0 auto 1.75rem; color: var(--ink-soft); }
.endcta a.action {
  display: inline-block; font-family: var(--font-ui); font-size: 0.8125rem;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.85rem 1.75rem; background: var(--ink); color: var(--ground);
  border: 1px solid var(--ink); text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.endcta a.action:hover { background: var(--red); border-color: var(--red); color: #fff; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
