/* ===== Tahap pages — shared components =====
   Loaded by the six Tahap pages after assets/site.css. Every Tahap page
   follows the same order of blocks, so a reader learns the layout once:

     1. .rute        route bar, six stations (partials/rute.html, @rute marker)
     2. .tiket       summary ticket in the hero: time, cost, what to prepare, result
     3. core visual  page-specific, inside a .th-section
     4. interactive  "what to do / choose" (.th-pick tabs, .th-check checklist)
     5. special cases (.th-fork), FAQ (.th-faq), sources, next station (.th-lanjut)

   Motion: transform and opacity only, started once by assets/tahap.js
   (IntersectionObserver adds .is-in, the route bar gets .is-go). Without
   JS, or with prefers-reduced-motion, every block shows its final state. */

:root { --rute-top: 67px; --rute-h: 45px; }  /* sticky header and phone route bar heights, measured by tahap.js */

/* Components here set their own display; `hidden` must still win. */
.th-page [hidden]:not([hidden="until-found"]) { display: none !important; }

.th-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Anchored sections land below the sticky header (and the route bar on phones). */
.th-page [id] { scroll-margin-top: calc(var(--rute-top) + var(--hd-posisi-h) + 20px); }

/* ===== 1. Route bar ===== */
.rute { background: #FFFFFF; border-bottom: 1px solid var(--line-color); }
.rute-inner { max-width: 1240px; margin: 0 auto; padding: 14px var(--gutter) 12px; }
.rute-now { display: none; }
.rute-rail { position: relative; }

.rute-track {
  position: absolute;
  top: 10px;
  left: calc(100% / 12);
  right: calc(100% / 12);
  height: 6px;
  border-radius: 3px;
  background: var(--line-color);
  overflow: hidden;
}

.rute-fill {
  position: absolute;
  inset: 0;
  background: var(--indigo);
  transform-origin: left center;
  transform: scaleX(calc((var(--n) - 1) / 5));
}

.rute-line {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.rute-stop { position: relative; display: flex; justify-content: center; min-width: 0; }

.rute-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 0 4px 2px;
  text-align: center;
  color: var(--muted-text);
  border-radius: 10px;
}

.rute-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 4px solid var(--indigo);
  background: #FFFFFF;
  color: var(--indigo);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  line-height: 1;
  transition: transform 150ms ease;
}

.rute-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.rute-link:hover .rute-name { color: var(--ink); }
.rute-link:hover .rute-dot { transform: scale(1.12); }

.is-past .rute-dot { background: var(--indigo); color: #FFFFFF; }

.is-here .rute-dot {
  width: 34px;
  height: 34px;
  margin-block: -4px;
  background: var(--sun);
  font-size: 13px;
}

.is-here .rute-name { color: var(--ink); font-weight: 800; }

/* Arrival: a marker travels from the previous station to this one while
   the track fills, then the station lights up once. It spans the whole
   column, so translateX(-100%) is exactly one station back. */
.is-here::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 34px;
  z-index: 2;
  background: radial-gradient(circle closest-side, var(--sun) 0 13px, var(--indigo) 13.5px 17px, transparent 17.5px) center / 34px 34px no-repeat;
  opacity: 0;
  pointer-events: none;
}

.is-here .rute-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 3px solid var(--sun);
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .rute.is-go .rute-fill { animation: ruteFill 700ms cubic-bezier(.65, 0, .35, 1) 150ms both; }
  .rute.is-go .is-here::before { animation: ruteTrain 820ms cubic-bezier(.65, 0, .35, 1) 150ms both; }
  .rute.is-go .is-here .rute-dot { animation: ruteDot 160ms ease 800ms both; }
  .rute.is-go .is-here .rute-dot::after { animation: ruteGlow 800ms ease-out 900ms both; }
}

@keyframes ruteFill {
  from { transform: scaleX(max(0, calc((var(--n) - 2) / 5))); }
  to { transform: scaleX(calc((var(--n) - 1) / 5)); }
}

@keyframes ruteTrain {
  0% { opacity: 1; transform: translateX(calc(-100% * min(1, calc(var(--n) - 1)))); }
  85% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}

@keyframes ruteDot { from { opacity: 0; } to { opacity: 1; } }
@keyframes ruteGlow { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }

/* Phones: a compact bar that sticks under the header. The station names
   move to the label on the left (only the current one is shown); the dots
   stay links. Tablets keep the full line, which fits from 700px. */
@media (max-width: 699.98px) {
  .rute { position: sticky; top: var(--rute-top); z-index: 1000; }
  .th-page [id] { scroll-margin-top: calc(var(--rute-top) + var(--rute-h) + 20px); }
  .rute-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 7px var(--gutter); }
  .rute-now {
    display: block;
    min-width: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 15px;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: var(--ink);
  }
  .rute-now-num { display: none; }
  .rute-rail { flex: none; width: 156px; }
  .rute-track { top: 14px; height: 4px; }
  .rute-link { justify-content: center; width: 100%; height: 30px; padding: 0; gap: 0; }
  .rute-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .rute-dot { width: 14px; height: 14px; border-width: 3px; font-size: 0; }
  .is-here .rute-dot { width: 24px; height: 24px; margin-block: -5px; font-size: 11px; }
  .is-here::before {
    top: 3px;
    height: 24px;
    background: radial-gradient(circle closest-side, var(--sun) 0 9px, var(--indigo) 9.5px 12px, transparent 12.5px) center / 24px 24px no-repeat;
  }
}

/* ===== 2. Hero + summary ticket ===== */
.th-hero { align-items: center; }
.th-hero h1 { max-width: 16ch; }
/* Bricolage's "0" narrows as the size grows (optical-size axis), so a ch width
   is written in em only where the heading has stopped growing: 16ch at 62px. */
@media screen and (min-width: 1240px) { .th-hero h1 { max-width: 10.0091em; } }
.th-hero-actions { display: flex; align-items: center; gap: 16px 22px; flex-wrap: wrap; margin-top: 28px; }

.tiket-loket {
  background-color: var(--indigo);
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  border-radius: 24px;
  padding: 34px 30px;
  display: flex;
  justify-content: center;
}

.tiket {
  width: 100%;
  max-width: 420px;
  color: var(--ink);
  transform: rotate(1.5deg);
  filter: drop-shadow(0 24px 32px rgba(0, 0, 0, .35));
}

.tiket-top { background: #FFFFFF; border-radius: 20px 20px 0 0; padding: 20px 24px 14px; }
.tiket-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tiket-label { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--muted-text); }
.tiket-badge { flex: none; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 4px 12px; background: var(--teal-soft); color: var(--teal-text); }
.tiket-title { margin-top: 10px; font-family: var(--font-display); font-weight: 800; font-size: 27px; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }

.tiket-perf {
  position: relative;
  height: 22px;
  padding: 0 20px;
  /* Dashes clipped to the content box; the white fill (last layer) covers
     the whole strip so the notches below read as round cut-outs. */
  background: linear-gradient(90deg, #D9DAE6 50%, transparent 50%) 0 50% / 10px 2px repeat-x content-box, #FFFFFF;
}

.tiket-perf::before,
.tiket-perf::after { content: ""; position: absolute; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--indigo); }
.tiket-perf::before { left: -11px; }
.tiket-perf::after { right: -11px; }

.tiket-facts {
  margin: 0;
  background: #FFFFFF;
  border-radius: 0 0 20px 20px;
  padding: 12px 24px 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.tiket-facts dt { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-text); }
.tiket-facts dd { margin: 3px 0 0; font-family: var(--font-display); font-size: 19px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
.tiket-facts dd.tiket-sub { margin-top: 3px; font-family: var(--font-sans); font-size: 12.5px; font-weight: 500; line-height: 1.45; letter-spacing: 0; color: var(--muted-text); }

@media (max-width: 600px) {
  .tiket-loket { padding: 24px 16px; border-radius: 20px; }
  .tiket { transform: rotate(1deg); }
  .tiket-top { padding: 18px 18px 12px; }
  .tiket-facts { padding: 10px 18px 20px; gap: 14px 14px; }
  .tiket-facts dd { font-size: 17px; }
}

/* ===== Section shell ===== */
.th-shell { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.th-section { padding: 64px 0; border-top: 1px solid var(--line-color); }

.th-h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin: 10px 0 0;
  max-width: 26ch;
}
/* Bricolage's "0" narrows as the size grows (optical-size axis), so a ch width
   is written in em only where the heading has stopped growing: 26ch at 40px. */
@media screen and (min-width: 1177px) { .th-h2 { max-width: 16.79593em; } }

.th-lead { margin-top: 14px; font-size: 16.5px; line-height: 1.65; color: var(--body-text); max-width: 45.384em; } /* 62ch of Plus Jakarta Sans 400 */

.th-ilustrasi {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-text);
  background: var(--mist);
  border-radius: 999px;
  padding: 2px 8px;
}

@media (max-width: 600px) {
  .th-section { padding: 48px 0; }
}

/* ===== 4. Picker: "which one are you?" (WAI-ARIA tabs, tahap.js) ===== */
.th-pick { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 24px; align-items: start; }

.th-pick-list { display: grid; gap: 10px; }

.th-pick-opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  width: 100%;
  min-height: 64px;
  padding: 14px 18px;
  text-align: left;
  border: 2px solid var(--line-color);
  border-radius: 16px;
  background: #FFFFFF;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.th-pick-opt:hover { border-color: var(--indigo); }
.th-pick-opt[aria-selected="true"] { background: var(--indigo); border-color: var(--indigo); color: #FFFFFF; }
.th-pick-name { font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.2; }
.th-pick-hint { font-size: 13px; line-height: 1.4; color: var(--muted-text); }
.th-pick-opt[aria-selected="true"] .th-pick-hint { color: var(--text-on-navy-muted); }

.th-pick-panel {
  background: #FFFFFF;
  border: 2px solid var(--indigo);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 8px 8px 0 var(--indigo);
}

.th-pick-panel:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; }
.th-pick-panel h3 { font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.th-pick-who { margin-top: 8px; font-size: 15px; line-height: 1.65; color: var(--body-text); }
.th-pick-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.th-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--sun-soft);
  color: var(--ink);
}

.th-chip--teal { background: var(--teal-soft); color: var(--teal-text); }

.th-pick-note { margin-top: 16px; font-size: 13.5px; line-height: 1.6; color: var(--muted-text); }
.th-pick-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 22px; }

@media (prefers-reduced-motion: no-preference) {
  .th-pick-panel.is-shown { animation: thPanelIn 260ms ease-out both; }
}

@keyframes thPanelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .th-pick { grid-template-columns: 1fr; gap: 18px; }
  .th-pick-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .th-pick-opt { min-height: 0; padding: 12px 14px; border-radius: 14px; }
  .th-pick-name { font-size: 15.5px; }
  .th-pick-hint { font-size: 12.5px; }
  .th-pick-panel { padding: 22px 20px; box-shadow: 6px 6px 0 var(--indigo); }
  .th-pick-panel h3 { font-size: 21px; }
}

/* ===== Checklist with a live "x of y ready" counter (tahap.js) ===== */
.th-check { margin-top: 20px; border-top: 1px dashed #D9DAE6; }
.th-check-title { margin-top: 18px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sun-text); }
.th-check ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }

.th-check label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--paper);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  cursor: pointer;
}

.th-check input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 2px solid var(--indigo);
  border-radius: 7px;
  background: #FFFFFF;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.th-check input::after {
  content: "";
  width: 11px;
  height: 6px;
  border-left: 3px solid #FFFFFF;
  border-bottom: 3px solid #FFFFFF;
  transform: translateY(-2px) rotate(-45deg) scale(0);
  transition: transform 150ms ease;
}

.th-check input:checked { background: var(--teal); border-color: var(--teal); }
.th-check input:checked::after { transform: translateY(-2px) rotate(-45deg) scale(1); }
.th-check input:checked + span { color: var(--muted-text); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.th-check-count { margin-top: 12px; font-size: 13.5px; font-weight: 700; color: var(--muted-text); }
.th-check-count.is-done { color: var(--teal-text); }

@media (prefers-reduced-motion: reduce) {
  .th-check input::after { transition: none; }
}

/* ===== 5a. Special case: a question that forks into two paths ===== */
.th-fork { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }

.th-fork-q {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 560px;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--indigo);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

/* The connector: a stem down from the question, a bar across, and a drop
   into each branch. Drawn with borders on a decorative row. */
.th-fork-lines { grid-column: 1 / -1; position: relative; height: 44px; }
.th-fork-lines::before { content: ""; position: absolute; left: 50%; top: 0; height: 22px; border-left: 3px solid var(--indigo); }
.th-fork-lines::after { content: ""; position: absolute; left: 25%; right: 25%; top: 22px; height: 22px; border: 3px solid var(--indigo); border-bottom: 0; border-radius: 12px 12px 0 0; }

.th-fork-path { border: 2px solid var(--line-color); border-radius: 18px; padding: 20px 22px; background: #FFFFFF; }
.th-fork-path--stop { border-color: var(--sun); background: var(--sun-soft); }
.th-fork-path--go { border-color: var(--teal); background: var(--teal-soft); }
.th-fork-tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.th-fork-path h3 { margin-top: 6px; font-family: var(--font-display); font-size: 19px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.th-fork-path p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--body-text); }
.th-fork-path a:not(.btn) { color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--sun); }
.th-fork-path--stop a:not(.btn) { border-bottom-color: var(--indigo); }

@media (max-width: 640px) {
  .th-fork { grid-template-columns: 1fr; gap: 0; }
  .th-fork-q { font-size: 17px; }
  .th-fork-lines { height: 22px; }
  .th-fork-lines::after { display: none; }
  .th-fork-path + .th-fork-path { margin-top: 12px; }
}

/* ===== 5b. FAQ accordion (buttons + aria-expanded, tahap.js) ===== */
.th-faq-list { margin-top: 24px; max-width: 840px; border-top: 1px solid var(--line-color); }
.th-faq-item { border-bottom: 1px solid var(--line-color); }
.th-faq-item h3 { margin: 0; }

.th-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--ink);
}

.th-faq-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--indigo);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  color: var(--indigo);
  transition: transform 150ms ease, background-color 150ms ease;
}

.th-faq-q[aria-expanded="true"] .th-faq-icon { transform: rotate(45deg); background: var(--sun); }
.th-faq-a { overflow: hidden; max-height: 0; }
.th-faq-a p { padding: 0 4px 20px; font-size: 15px; line-height: 1.65; color: var(--muted-text); max-width: 68ch; }
.th-faq-more { display: inline-block; margin-top: 20px; font-size: 14.5px; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--sun); padding-bottom: 2px; }
.th-faq-more:hover { color: var(--gold); }

@media (prefers-reduced-motion: no-preference) {
  .th-faq-a { transition: max-height 250ms ease; }
}

@media (prefers-reduced-motion: reduce) {
  .th-faq-icon { transition: none; }
}

/* ===== 5d. Next station ===== */
.th-lanjut {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px var(--gutter) 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
}

.th-lanjut-prev { font-size: 14.5px; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--sun); padding-bottom: 2px; }
.th-lanjut-prev:hover { color: var(--gold); }

.th-lanjut-next {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  padding: 16px 22px 16px 16px;
  border: 2px solid var(--indigo);
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 6px 6px 0 var(--indigo);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.th-lanjut-next:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--indigo); }

.th-lanjut-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 5px solid var(--indigo);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--indigo);
}

.th-lanjut-text { display: flex; flex-direction: column; min-width: 0; }
.th-lanjut-k { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sun-text); }
.th-lanjut-title { font-family: var(--font-display); font-size: 19px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
.th-lanjut-desc { font-size: 13.5px; line-height: 1.45; color: var(--muted-text); }
.th-lanjut-arrow { flex: none; margin-left: auto; font-size: 20px; font-weight: 800; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .th-lanjut-next, .th-lanjut-next:hover { transition: none; transform: none; }
}

@media (max-width: 600px) {
  .th-lanjut { flex-direction: column-reverse; align-items: stretch; }
  .th-lanjut-prev { align-self: flex-start; }
}

/* Text links that sit next to a pill button: .btn-ghost alone (not with
   .btn, whose min-height pushes the underline away from the text). On the
   turmeric .final band the underline switches to indigo to stay visible. */
.th-page .final .btn-ghost { border-bottom-color: var(--indigo); }
.th-page .final .btn-ghost:hover { color: var(--indigo); opacity: .8; }

/* ===== Ticket next to a tool (Tahap 02): sticks while the tool scrolls ===== */
@media (min-width: 961px) {
  .tiket-loket--samping { position: sticky; top: calc(var(--rute-top) + var(--hd-posisi-h) + 24px); }
}

/* ===== Steps along a short line (a process or a path) ===== */
.th-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 0; }

.th-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 0 0 18px;
}

.th-steps li:last-child { padding-bottom: 0; }

/* The line between markers. */
.th-steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 15.5px;
  top: 30px;
  bottom: 0;
  width: 3px;
  background: var(--indigo);
}

.th-steps-no {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--indigo);
  background: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--indigo);
}

.th-steps-body { padding-top: 5px; font-size: 15px; line-height: 1.6; color: var(--body-text); }
.th-steps-body b { color: var(--ink); }
.th-steps li.is-goal .th-steps-no { background: var(--teal); border-color: var(--teal); color: #FFFFFF; }
.th-steps li.is-stop .th-steps-no { background: var(--sun); }

/* ===== Warning chips ("what goes wrong") ===== */
.th-warn { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }

.th-warn li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 12px;
  background: var(--sun-soft);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

.th-warn li::before { content: "!"; flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--sun); font-size: 12px; font-weight: 800; }

/* ===== Big moving number (tahap.js counts it once on reveal) ===== */
.th-countup { font-variant-numeric: tabular-nums; }

/* ===== FAQ filter chips ===== */
.th-faq-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.th-faq-chip {
  min-height: 40px;
  padding: 0 16px;
  border: 2px solid var(--line-color);
  border-radius: 999px;
  background: #FFFFFF;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.th-faq-chip:hover { border-color: var(--indigo); }
.th-faq-chip[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: #FFFFFF; }
.th-faq-count { margin-top: 12px; font-size: 13.5px; color: var(--muted-text); }

/* ===== Questions answered on a Belajar page (FAQ moved to a link) ===== */
.th-more { margin-top: 28px; max-width: 840px; padding: 20px 22px; border-radius: 18px; background: var(--paper); }
.th-more h3 { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sun-text); }
.th-more ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }

.th-more a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-color);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

.th-more li:last-child a { border-bottom: 0; }
.th-more a::after { content: "→"; flex: none; color: var(--sun-text); font-weight: 800; }
.th-more a:hover { color: var(--gold); }

/* ===== Number cards ===== */
.th-stats { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.th-stat { padding: 16px 18px; border-radius: 16px; background: var(--indigo); color: var(--text-on-navy-muted); }
.th-stat b { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; color: #FFFFFF; }
.th-stat span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; }
.th-stats-note { margin-top: 8px; font-size: 13px; color: var(--muted-text); }

@media (max-width: 600px) {
  .th-stats { grid-template-columns: 1fr 1fr; }
  .th-stat b { font-size: 26px; }
}

/* FAQ group headings inside one list (shown under "Semua", hidden with the
   rest of their group when a chip filters). */
.th-faq-group {
  padding: 22px 4px 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sun-text);
  border-bottom: 1px solid var(--line-color);
}

/* Without JavaScript the picker buttons do nothing: show every panel (each starts with its own h3), one column. */
@media (scripting: none) {
  .th-pick { grid-template-columns: minmax(0, 1fr); }
  .th-pick-list { display: none; }
  .th-page .th-pick .th-pick-panel[hidden] { display: block !important; } /* beats .th-page [hidden] { display: none !important } */
  .th-pick-panel + .th-pick-panel { margin-top: 16px; }
}
