/* Understand-the-risk explainer. Inherits tokens from landing.css; the page's
   own accent is the amber the alert badge uses, so "risk" reads consistently. */

.risk-page { max-width: 880px; }
.risk-eyebrow {
  margin: 1.6rem 0 0.35rem;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.risk-page h1 { margin: 0 0 0.6rem; font-family: var(--serif); font-weight: 400; }
.risk-section { margin-top: 2.6rem; }
.risk-section h2 { margin: 0 0 0.4rem; font-family: var(--serif); font-size: 1.45rem; font-weight: 400; }
.risk-section-lede { max-width: 640px; margin: 0 0 1.1rem; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.6; }
.risk-fineprint { margin: 1rem 0 0; color: var(--ink-faint); font-size: 0.78rem; line-height: 1.55; max-width: 640px; }

/* ---- signal stat cards ---- */

.risk-stat-panel { margin-top: 0.85rem; }
.risk-stat {
  padding: 1.3rem 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.risk-stat[hidden] { display: none; }
.risk-stat-eyebrow {
  margin: 0 0 0.3rem;
  color: var(--ink-faint);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.risk-stat-headline { margin: 0; font-family: var(--serif); font-size: 2rem; line-height: 1.15; }
.risk-stat-sub { margin: 0.4rem 0 0; max-width: 560px; color: var(--ink-soft); font-size: 0.88rem; line-height: 1.55; }

.spark { width: 100%; max-width: 420px; height: 72px; margin-top: 0.8rem; }
.spark-line { fill: none; stroke: var(--amber); stroke-width: 2; stroke-linejoin: round; }
.spark-area { fill: rgba(189, 124, 18, 0.12); stroke: none; }
.spark-dot { fill: var(--amber); }

.mix { margin-top: 0.7rem; }
.mix-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; }
.mix-seg { display: block; height: 100%; }
.mix-state { background: var(--teal); }
.mix-local { background: var(--slate); }
.mix-federal { background: var(--amber); }
.mix-legend { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; margin-top: 0.45rem; }
.mix-key { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--ink-soft); font-size: 0.76rem; }
.mix-dot { width: 9px; height: 9px; border-radius: 50%; }

/* ---- attendance lab ---- */

.ada-lab {
  padding: 1.4rem 1.5rem 1.2rem;
  border: 1px solid rgba(189, 124, 18, 0.35);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(189, 124, 18, 0.07), rgba(189, 124, 18, 0.02));
}
.ada-readout { min-height: 4.6rem; text-align: center; }
.ada-big { font-family: var(--serif); font-size: clamp(2rem, 6vw, 2.9rem); line-height: 1.1; color: var(--teal); }
.ada-big.ada-negative { color: var(--coral); }
.ada-caption { margin-top: 0.15rem; color: var(--ink-soft); font-size: 0.86rem; }
/* Styled by hand rather than with accent-color: the native track is too thin to
   read as a draggable control at this size, and thickness needs the vendor
   pseudo-elements anyway. */
.ada-lab input[type="range"] {
  width: 100%;
  margin: 0.9rem 0 0.45rem;
  height: 22px;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
/* --ada-fill is set from JS so the filled portion still reads as progress
   without accent-color doing it for us. */
.ada-lab input[type="range"]::-webkit-slider-runnable-track {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--amber) 0 var(--ada-fill, 14%),
    rgba(189, 124, 18, 0.2) var(--ada-fill, 14%) 100%
  );
}
.ada-lab input[type="range"]::-moz-range-track {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--amber) 0 var(--ada-fill, 14%),
    rgba(189, 124, 18, 0.2) var(--ada-fill, 14%) 100%
  );
}
.ada-lab input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -4px; /* centres the thumb on the 14px track */
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.ada-lab input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.ada-lab input[type="range"]:focus-visible { outline: none; }
.ada-lab input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(189, 124, 18, 0.45); }
.ada-lab input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px rgba(189, 124, 18, 0.45); }
.ada-scale { display: flex; justify-content: space-between; color: var(--ink-faint); font-size: 0.76rem; }
.ada-scale #ada-current { color: var(--ink); font-weight: 700; }

/* ---- funding & idea cards ---- */

.funding-group { margin-top: 1.4rem; }
.funding-group-head { display: flex; align-items: baseline; gap: 0.7rem; margin-bottom: 0.6rem; }
.funding-group-head h3 { margin: 0; font-size: 0.98rem; }
.funding-speed {
  padding: 0.14rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.risk-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
@media (max-width: 640px) { .risk-card-grid { grid-template-columns: 1fr; } }
.risk-idea {
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.risk-idea h4 { margin: 0 0 0.3rem; font-size: 0.92rem; }
.risk-idea p { margin: 0; color: var(--ink-soft); font-size: 0.84rem; line-height: 1.55; }

/* ---- cuts stepper ---- */

.phase-stepper { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.phase-step {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.phase-step:hover { border-color: var(--amber); }
.phase-step.on { border-color: var(--amber); background: rgba(189, 124, 18, 0.1); color: var(--ink); }
.phase-num {
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(189, 124, 18, 0.16);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
}
.phase-panel {
  margin-top: 0.85rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(189, 124, 18, 0.3);
  border-radius: var(--radius);
  background: #fff;
}
.phase-panel h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.phase-panel p { margin: 0; color: var(--ink-soft); font-size: 0.88rem; line-height: 1.65; }

/* ---- budget timeline ---- */

.budget-timeline { position: relative; margin-top: 0.4rem; padding-left: 1.1rem; }
.budget-timeline::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: 5px;
  width: 2px;
  background: var(--line);
}
.timeline-stop { position: relative; display: flex; gap: 0.9rem; padding: 0.55rem 0; }
.timeline-marker { position: absolute; left: -1.1rem; top: 0.85rem; }
.timeline-dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--ink-faint);
  background: var(--paper);
}
.timeline-stop.now .timeline-dot { border-color: var(--amber); background: var(--amber); box-shadow: 0 0 0 5px rgba(189, 124, 18, 0.18); }
.timeline-body strong { display: block; font-size: 0.92rem; }
.timeline-stop.now .timeline-body strong { color: var(--amber); }
.timeline-month {
  display: inline-block;
  margin-bottom: 0.1rem;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.timeline-body p { margin: 0.15rem 0 0; max-width: 560px; color: var(--ink-soft); font-size: 0.82rem; line-height: 1.55; }
