/* Huruf disimpan sendiri di /f/, bukan dari server pihak ketiga: satu asal, tanpa
   pelacakan, dan tetap terbaca sebelum huruf selesai dimuat berkat font-display: swap.
   Fraunces dipakai untuk judul karena bentuknya punya karakter dan hangat;
   Plus Jakarta Sans untuk teks, huruf buatan perancang Indonesia. */
@font-face {
  font-family: 'Fraunces';
  src: url('/f/fraunces.woff2') format('woff2');
  font-weight: 600 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jakarta';
  src: url('/f/jakarta.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* Duit Jelas — satu berkas, tanpa dependensi eksternal.
   Nada: ruang belajar yang hangat. Krem, kuning lembut, sudut membulat secukupnya.
   Bukan terminal keuangan, bukan aplikasi anak-anak. */

:root {
  --paper: #fffaf0;          /* krem hangat */
  --paper-2: #fffdf8;        /* kartu */
  --band: #fdf3e2;           /* pita seksi */
  --ink: #2b2724;            /* charcoal gelap */
  --ink-2: #6d6459;
  --line: #ece0cb;

  --yellow: #f7c94b;         /* warna utama, lembut */
  --yellow-deep: #8e6211;    /* teks kuning tua: sudah diuji lolos 4.5:1 di semua latar terang */
  --yellow-soft: #fdf2d5;

  --green: #3b7554;
  --green-soft: #e9f3ec;
  --blue: #3a6a94;
  --blue-soft: #eaf1f7;
  --red: #a4494a;            /* peringatan lembut, bukan merah agresif */
  --red-soft: #fceeea;

  /* Pita gelap dikunci warnanya, tidak ikut membalik saat mode gelap, supaya
     kontras teks dan aksennya tetap terjaga di kedua mode. */
  --ink-band: #2b2724;
  --ink-band-fg: #fffaf0;

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --text: 'Jakarta', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(80, 60, 30, .05), 0 10px 26px -16px rgba(80, 60, 30, .28);
  --wrap: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #23201c;        /* charcoal hangat, sengaja bukan hitam */
    --paper-2: #2c2823;
    --band: #302b25;
    --ink: #f6efe4;
    --ink-2: #c3b7a6;
    --line: #453d34;
    --yellow: #f0c256;
    --yellow-deep: #f3d288;
    --yellow-soft: #3a3122;
    --green: #92cfa9;
    --green-soft: #23302a;
    --blue: #a3c6e6;
    --blue-soft: #232d38;
    --red: #eda69c;
    --red-soft: #37261f;
    --ink-band: #171411;
    --ink-band-fg: #f6efe4;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 26px -16px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;      /* 18px, di atas minimum 17px */
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.15rem; }
.narrow { max-width: 44rem; }
img, svg { max-width: 100%; height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .45em; text-wrap: balance; font-variation-settings: 'opsz' 60; }
h1 { font-size: clamp(2.3rem, 8vw, 3.7rem); font-weight: 800; font-variation-settings: 'opsz' 120; }
h2 { font-size: clamp(1.6rem, 5.2vw, 2.4rem); }
h3, .cardh { font-size: 1.22rem; line-height: 1.2; }
.cardh { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; margin: 0 0 .55em; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
a { color: var(--yellow-deep); text-underline-offset: .18em; text-decoration-thickness: .08em; }
.muted { color: var(--ink-2); }
.small { font-size: .95rem; }
.eyebrow { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow-deep); font-weight: 700; margin-bottom: .4em; }
.lede { font-size: clamp(1.12rem, 3.2vw, 1.35rem); color: var(--ink-2); max-width: 42ch; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--ink); color: var(--paper); padding: .7rem 1rem; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--yellow-deep); outline-offset: 3px; border-radius: 8px; }

/* ilustrasi */
.ill { width: 100%; height: 100%; display: block; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 4.1rem; gap: .8rem; }
.brand { display: flex; align-items: center; min-height: 44px; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: .42rem; border-radius: 12px; background: var(--yellow); color: #4a3608; flex: 0 0 auto; }
.brand-name { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; line-height: 1.02; font-size: 1.25rem; display: flex; flex-direction: column; }
.brand-sub { font-weight: 600; font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }
.topbar-right { display: flex; align-items: center; gap: .5rem; }
.iconlink { display: grid; place-items: center; width: 44px; height: 44px; padding: .62rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); background: var(--paper-2); }
.iconlink:hover { border-color: var(--yellow); }

.menu-btn { display: flex; align-items: center; gap: .5rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: .5rem .9rem; color: var(--ink); font: inherit; font-size: .95rem; cursor: pointer; min-height: 44px; }
.menu-btn .bars { display: grid; gap: 4px; }
.menu-btn .bars span { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
.menu-btn em { font-style: normal; font-weight: 700; }
.menu { display: none; border-top: 1px solid var(--line); padding: .4rem 0 1rem; }
.menu.open { display: block; }
.menu .wrap { display: flex; flex-direction: column; }
.menu a { display: block; padding: .85rem .2rem; text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.menu a[aria-current] { color: var(--yellow-deep); }
.menu a.menu-cta { margin-top: .9rem; min-height: 52px; display: flex; align-items: center; justify-content: center; border: 0; background: var(--yellow); color: #3d2c06; text-align: center; border-radius: 999px; font-weight: 800; }
.hide-sm, .btn.hide-sm { display: none; }

@media (min-width: 860px) {
  .menu-btn, .show-sm { display: none; }
  .menu a.show-sm { display: none; }
  .btn.hide-sm { display: inline-flex; }
  .top { display: flex; flex-direction: column; }
  .menu { display: block; border-top: 0; padding: 0; }
  .menu .wrap { flex-direction: row; gap: 1.5rem; padding-bottom: .75rem; flex-wrap: wrap; }
  .menu a { border: 0; padding: .2rem 0; font-size: .98rem; }
  .menu a:hover { color: var(--yellow-deep); }
}

/* ---------- tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: .85rem 1.5rem; border-radius: 999px; font-weight: 800; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; font-size: 1rem; }
.btn.primary { background: var(--yellow); color: #3d2c06; }
.btn.primary:hover { background: #f0bb2f; }
.btn.ghost { border-color: var(--line); color: var(--ink); background: var(--paper-2); }
.btn.ghost:hover { border-color: var(--yellow); }
.btn.small { min-height: 44px; padding: .5rem 1.05rem; font-size: .95rem; }
.as-span { pointer-events: none; }

.section { padding: 2.8rem 0; }

/* Pita: latar berpindah warna antar seksi supaya halaman tidak terasa satu bidang
   panjang. Salah satunya gelap, sebagai jeda visual. */
.band { background: var(--band); }
.band-ink { background: var(--ink-band); color: var(--ink-band-fg); }
.band-ink h2, .band-ink h3, .band-ink b { color: var(--ink-band-fg); }
.band-ink .muted { color: color-mix(in srgb, var(--ink-band-fg) 74%, var(--ink-band)); }
.band-ink .eyebrow, .band-ink a { color: #f7c94b; }
.band-ink .card { background: color-mix(in srgb, var(--ink-band-fg) 7%, transparent); border: 0; border-left: 5px solid #f7c94b; border-radius: 4px 16px 16px 4px; box-shadow: none; }
.band-ink .tag { background: color-mix(in srgb, #f7c94b 20%, transparent); color: #f7c94b; }
.band-ink .myth-q { color: var(--ink-band-fg); }
.band-ink .myth-a { color: color-mix(in srgb, var(--ink-band-fg) 82%, var(--ink-band)); }
.band + .section, .band-ink + .section { padding-top: 3rem; }
.pagehead { padding: 2.4rem 0 .5rem; }
.ask { margin-bottom: .2em; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(60rem 30rem at 12% -18%, var(--yellow-soft), transparent 70%),
  radial-gradient(46rem 26rem at 92% 6%, var(--green-soft), transparent 68%),
  var(--paper);
  padding: 2.6rem 0 1.6rem; border-bottom: 1px solid var(--line); }
.hero h1 { font-variation-settings: 'opsz' 144; }
.hero-inner { display: grid; gap: 2rem; }
.hero h1 { margin-bottom: .3em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.05fr .95fr; align-items: center; } .hero { padding: 3.4rem 0 2.4rem; } }

.journey { display: grid; gap: .55rem; margin: 0; grid-template-columns: 1fr auto 1fr; align-items: stretch; }
.jstep { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .95rem .8rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.jstep .jicon { width: 3.1rem; height: 3.1rem; color: var(--yellow-deep); }
.jstep:nth-child(3) .jicon { color: var(--green); }
.jstep b { font-family: var(--display); letter-spacing: -.015em; }
.jstep b { font-size: 1rem; line-height: 1.25; }
.jstep em { font-style: normal; font-size: .88rem; color: var(--ink-2); line-height: 1.35; }
.jstep.warn { background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 35%, var(--line)); }
.jstep.warn .jicon { color: var(--red); }
.jarrow { display: grid; place-items: center; color: var(--ink-2); font-size: 1.2rem; }
.journey figcaption { grid-column: 1 / -1; margin-top: .5rem; }
@media (min-width: 560px) { .journey { grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; } }

/* ---------- banner internal ---------- */
.house { display: grid; gap: 1.2rem; border-radius: var(--radius-lg); padding: 1.7rem 1.4rem; text-decoration: none; color: var(--ink); margin: 1.4rem 0; }
.house h2 { margin-bottom: .35em; }
.house p { color: var(--ink-2); }
.house .btn { margin-top: .6rem; }
.path-banner { background: var(--yellow-soft); border: 1px solid color-mix(in srgb, var(--yellow) 45%, var(--line)); }
.path-banner:hover { border-color: var(--yellow); }
.check-banner { background: var(--red-soft); border: 1px solid color-mix(in srgb, var(--red) 28%, var(--line)); }
.check-banner:hover { border-color: var(--red); }
.news-banner { background: var(--blue-soft); border: 1px solid color-mix(in srgb, var(--blue) 28%, var(--line)); }
.house-ill { width: 5.5rem; height: 5.5rem; color: var(--red); justify-self: start; }
.seven { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; align-self: center; }
.seven li span { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--paper-2); border: 2px solid color-mix(in srgb, var(--yellow) 55%, var(--line)); font-weight: 800; color: var(--yellow-deep); }
.five { margin: .4rem 0 0; padding-left: 1.3rem; }
.five li { margin-bottom: .35rem; color: var(--ink-2); }
@media (min-width: 780px) {
  .house { grid-template-columns: 1fr auto; align-items: center; padding: 2rem 1.9rem; gap: 2rem; }
  .seven { max-width: 12rem; }
}

/* ---------- kartu pertanyaan ---------- */
.qgrid { display: grid; gap: .9rem; margin-top: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .qgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .qgrid { grid-template-columns: repeat(3, 1fr); } }
.qcard { display: flex; flex-direction: column; gap: .7rem; padding: 1.4rem 1.3rem 1.2rem; background: var(--paper-2); border: 0; border-bottom: 5px solid var(--yellow); border-radius: 14px 14px 4px 4px; text-decoration: none; color: var(--ink); box-shadow: none; transition: transform .16s ease, background .16s ease; }
.qcard:nth-child(3n+2) { border-bottom-color: var(--green); }
.qcard:nth-child(3n+3) { border-bottom-color: var(--blue); }
.qcard:hover { transform: translateY(-4px); background: var(--yellow-soft); }
.qill { width: 3.2rem; height: 3.2rem; color: var(--yellow-deep); transform: rotate(-4deg); }
.qcard:nth-child(3n+2) .qill { color: var(--green); transform: rotate(3deg); }
.qcard:nth-child(3n+3) .qill { color: var(--blue); transform: rotate(-2deg); }
.qtext { font-size: 1.18rem; font-weight: 700; line-height: 1.32; }
.meta { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; margin-top: auto; font-size: .86rem; color: var(--ink-2); }
.meta.big { margin: 0 0 1.2rem; font-size: .92rem; }
.dotsep { color: var(--ink-2); }
.lv { font-weight: 800; font-size: .74rem; letter-spacing: .07em; padding: .22rem .55rem; border-radius: 999px; }
.lv.easy { background: var(--green-soft); color: var(--green); }
.lv.full { background: var(--blue-soft); color: var(--blue); }
.lv.tech { background: var(--band); color: var(--ink-2); }

/* ---------- kartu ---------- */
.card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; margin: 1.5rem 0; box-shadow: none; }
.card > :last-child { margin-bottom: 0; }
.tag { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .65rem; border-radius: 999px; margin-bottom: .7rem; background: var(--yellow-soft); color: var(--yellow-deep); }
.tag.warn { background: var(--red-soft); color: var(--red); }

.analogy { border: 0; border-left: 5px solid var(--yellow); border-radius: 4px 16px 16px 4px; background: var(--yellow-soft); }
.analogy figcaption { font-family: var(--display); letter-spacing: -.015em; }
.analogy figcaption { font-weight: 800; font-size: 1.1rem; margin-bottom: .5rem; }
.analogy .tag { background: color-mix(in srgb, var(--yellow) 30%, var(--paper-2)); display: block; width: max-content; }
.remember { border: 0; border-left: 5px solid var(--green); border-radius: 4px 16px 16px 4px; background: var(--green-soft); }
.remember .tag { background: color-mix(in srgb, var(--green) 11%, var(--paper-2)); color: var(--green); }
.danger { border: 0; border-left: 5px solid var(--red); border-radius: 4px 16px 16px 4px; background: var(--red-soft); }
.danger .tag { background: color-mix(in srgb, var(--red) 14%, var(--paper-2)); color: var(--red); }
.danger ul { margin: 0; padding-left: 1.1rem; }
.danger li { margin-bottom: .45rem; }
.note-card { background: var(--blue-soft); border-color: color-mix(in srgb, var(--blue) 30%, var(--line)); }
.summary { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 32%, var(--line)); }
.summary ol { margin: 0; padding-left: 1.2rem; }
.summary li { margin-bottom: .5rem; font-weight: 600; }
.asksec .asklist { margin: 0; padding: 0; list-style: none; }
.asksec .asklist li { position: relative; padding: .75rem 0 .75rem 2.1rem; border-bottom: 1px dashed var(--line); }
.asksec .asklist li:last-child { border-bottom: 0; padding-bottom: 0; }
.asksec .asklist li::before { content: "?"; position: absolute; left: 0; top: .7rem; width: 1.5rem; height: 1.5rem; display: grid; place-items: center; border-radius: 50%; background: var(--yellow-soft); color: var(--yellow-deep); font-weight: 800; font-size: .9rem; }

.steps ol { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li { counter-increment: s; display: flex; gap: .85rem; padding: .75rem 0; border-bottom: 1px dashed var(--line); }
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps .dot { flex: 0 0 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--yellow); color: #3d2c06; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
.steps .dot::before { content: counter(s); }
.listcard ul { margin: 0; padding-left: 1.2rem; }
.listcard li { margin-bottom: .5rem; }

/* tabel angka -> di ponsel jadi baris bertumpuk, tidak pernah menggeser layar */
.numbers table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.numbers th { text-align: left; font-weight: 500; color: var(--ink-2); padding: .6rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.numbers td { text-align: right; font-weight: 700; padding: .6rem 0 .6rem .8rem; border-bottom: 1px solid var(--line); }
.numbers tr.last th, .numbers tr.last td { border-bottom: 0; color: var(--yellow-deep); font-weight: 800; }
.numbers .note, .risksec .note, .calc .note { font-size: .95rem; color: var(--ink-2); margin: .9rem 0 0; }
@media (max-width: 520px) {
  .numbers table, .numbers tbody, .numbers tr, .numbers th, .numbers td { display: block; width: 100%; }
  .numbers tr { padding: .6rem 0; border-bottom: 1px solid var(--line); }
  .numbers tr.last { border-bottom: 0; }
  .numbers th, .numbers td { border: 0; padding: 0; text-align: left; }
  .numbers td { font-size: 1.15rem; margin-top: .1rem; }
}

/* ---------- daftar pelajaran ---------- */
.lgrid { display: grid; gap: .9rem; grid-template-columns: 1fr; margin-top: 1.3rem; }
@media (min-width: 700px) { .lgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .lgrid { grid-template-columns: repeat(3, 1fr); } }
.lcard { display: flex; gap: .95rem; padding: 1.2rem 1.2rem 1.2rem 1.1rem; background: var(--paper-2); border: 0; border-left: 4px solid var(--line); border-radius: 4px 14px 14px 4px; text-decoration: none; color: var(--ink); box-shadow: none; transition: border-color .16s ease, transform .16s ease; }
.lcard:hover { transform: translateX(3px); border-left-color: var(--yellow); }
.lcard-ill { flex: 0 0 2.6rem; height: 2.6rem; color: var(--yellow-deep); }
.lcard-body { display: flex; flex-direction: column; gap: .4rem; }
.lcard h3 { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.lcard p { color: var(--ink-2); font-size: .97rem; margin: 0; }
.pill { display: inline-block; font-size: .78rem; font-weight: 800; color: var(--green); background: var(--green-soft); padding: .2rem .6rem; border-radius: 999px; width: max-content; }
.h2ill { display: inline-block; width: 1.6rem; height: 1.6rem; vertical-align: -.25rem; margin-right: .5rem; color: var(--yellow-deep); }

/* ---------- pencarian & chip ---------- */
.searchbox { display: flex; gap: .6rem; margin: 1.3rem 0 .9rem; flex-wrap: wrap; }
.field { display: flex; align-items: center; gap: .5rem; background: var(--paper-2); border: 2px solid var(--line); border-radius: 999px; padding: 0 1.1rem; min-height: 52px; flex: 1 1 16rem; }
.field:focus-within { border-color: var(--yellow); }
.field svg { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; color: var(--ink-2); }
.field input, .field select { border: 0; background: none; font: inherit; color: var(--ink); width: 100%; min-height: 48px; outline: none; }
.field em { font-style: normal; font-weight: 700; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1rem; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .97rem; }
.chip:hover { border-color: var(--yellow); color: var(--yellow-deep); }

.slist { display: grid; gap: .6rem; }
.sitem { display: block; padding: 1rem 1.2rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.sitem:hover { border-color: var(--yellow); }
.sitem .kind { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow-deep); display: block; }
.sitem b { display: block; }
.sitem em { font-style: normal; color: var(--ink-2); font-size: .95rem; }

/* ---------- kamus ---------- */
.glist { display: grid; gap: .8rem; }
.gterm { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; scroll-margin-top: 6rem; }
.gterm h2 { font-size: 1.35rem; margin-bottom: .2em; }
.gshort { color: var(--ink-2); margin-bottom: .9rem; }
.glabel { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow-deep); margin: 0 0 .25rem; }
.glayer { padding: .9rem 1rem; border-radius: 12px; background: var(--band); margin-bottom: .6rem; }
.glayer p:last-child { margin: 0; }
.glayer[data-glayer="example"] { background: var(--yellow-soft); }
.glayer[data-glayer="long"] { background: var(--blue-soft); }
.gbtns { display: flex; gap: .5rem; flex-wrap: wrap; }
.gbtns button { min-height: 44px; padding: .5rem 1.05rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: .95rem; font-weight: 700; cursor: pointer; }
.gbtns button:hover { border-color: var(--yellow); color: var(--yellow-deep); }
.gbtns button[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: #3d2c06; }

.revealgrid { display: grid; gap: .6rem; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 640px) { .revealgrid { grid-template-columns: 1fr 1fr; } }
.reveal { background: var(--band); border: 1px solid var(--line); border-radius: 12px; padding: .2rem 1rem; }
.reveal summary { cursor: pointer; font-weight: 700; padding: .85rem 0; list-style: none; min-height: 44px; display: flex; flex-direction: column; }
.reveal summary::-webkit-details-marker { display: none; }
.reveal summary::after { content: "Ketuk untuk lihat arti"; font-weight: 500; font-size: .85rem; color: var(--yellow-deep); }
.reveal[open] summary::after { content: "Tutup"; }
.reveal p { margin: 0 0 .8rem; color: var(--ink-2); font-size: .97rem; }

/* ---------- salah paham ---------- */
.mythgrid { display: grid; gap: .9rem; grid-template-columns: 1fr; margin-top: 1.3rem; }
@media (min-width: 760px) { .mythgrid { grid-template-columns: 1fr 1fr; } }
.myth { margin: 0; }
.myth-q { font-size: 1.1rem; font-weight: 700; line-height: 1.35; }
.myth-q .tag { display: block; width: max-content; }
.myth-a { color: var(--ink-2); font-size: .99rem; }
.myth > a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* ---------- kalkulator ---------- */
.calc { border-color: color-mix(in srgb, var(--yellow) 40%, var(--line)); }
.calc-grid { display: grid; gap: .8rem; margin: 1.2rem 0; }
@media (min-width: 700px) { .calc-grid { grid-template-columns: 1.2fr .8fr 1fr; } }
.calc-grid label { display: flex; flex-direction: column; gap: .4rem; font-weight: 700; font-size: .97rem; }
.calc-out { background: var(--band); border-radius: 12px; padding: 1.1rem 1.2rem; }
.calc-out > :last-child { margin-bottom: 0; }
.calc-out .big-num { font-size: 1.5rem; font-weight: 800; color: var(--yellow-deep); font-variant-numeric: tabular-nums; }
.calc-out ul { margin: .4rem 0 1rem; padding-left: 1.2rem; }
.calc-out li { margin-bottom: .35rem; color: var(--ink-2); }
.calc-out h3 { margin: 1.1rem 0 .35rem; font-size: 1.02rem; }

/* ---------- jalur belajar ---------- */
.progress .bar { height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 1.3rem 0 .6rem; }
.progress .bar span { display: block; height: 100%; width: 0; background: var(--green); border-radius: 999px; transition: width .45s ease; }
.continue { margin: .9rem 0 0; }
.pathlist { list-style: none; margin: 1.2rem 0 1.4rem; padding: 0; display: grid; gap: .6rem; }
.pathlist a { display: flex; align-items: center; gap: 1.1rem; padding: 1.1rem 1.2rem; background: var(--paper-2); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; text-decoration: none; color: var(--ink); transition: background .16s ease, padding-left .16s ease; }
.pathlist a:hover { background: var(--yellow-soft); padding-left: 1.6rem; }
.pathlist { gap: 0; border-top: 1px solid var(--line); }
.pathlist .ptext b { font-family: var(--display); font-size: 1.12rem; letter-spacing: -.015em; }
.step { flex: 0 0 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--yellow); color: #3d2c06; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.ptext { display: block; }
.ptext b { display: block; line-height: 1.3; }
.ptext em { display: block; font-style: normal; font-size: .95rem; color: var(--ink-2); }
.check { flex: 0 0 1.7rem; height: 1.7rem; border-radius: 50%; border: 2px solid var(--line); margin-left: auto; position: relative; }
.pathlist li.done .check { background: var(--green); border-color: var(--green); }
.pathlist li.done .check::after { content: ""; position: absolute; left: .47rem; top: .2rem; width: .34rem; height: .72rem; border: solid var(--paper-2); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.pathlist li.done .step { background: var(--green-soft); color: var(--green); }

/* daftar periksa */
.checklist { list-style: none; margin: 1.4rem 0; padding: 0; display: grid; gap: .8rem; }
.checklist li { display: flex; gap: 1rem; padding: 1.2rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); }
.checklist b { display: block; margin-bottom: .3rem; font-size: 1.08rem; }
.checklist p { margin: 0; color: var(--ink-2); font-size: .99rem; }

/* ---------- pelajaran ---------- */
.crumbs { font-size: .92rem; color: var(--ink-2); padding-top: 1.4rem; }
.crumbs a { color: var(--ink-2); }
.lessonhead { padding-bottom: .5rem; }
.answer { display: flex; gap: 1.1rem; align-items: flex-start; background: var(--yellow-soft); border: 0; border-left: 6px solid var(--yellow); border-radius: 4px 18px 18px 4px; padding: 1.3rem 1.4rem; margin-bottom: .6rem; }
.answer .ill { flex: 0 0 2.8rem; width: 2.8rem; height: 2.8rem; color: var(--yellow-deep); }
.answer-text { font-family: var(--display); font-size: clamp(1.2rem, 3.6vw, 1.45rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.28; margin: 0; }
.answer .glabel { margin-bottom: .2rem; }

.levelbar-wrap { position: sticky; top: 4.1rem; z-index: 30; padding-top: .8rem; padding-bottom: .5rem; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); }
.levelbar { display: flex; gap: .3rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: .3rem; overflow-x: auto; scrollbar-width: none; }
.levelbar::-webkit-scrollbar { display: none; }
.levelbar button { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 46px; padding: .5rem .95rem; border: 0; border-radius: 999px; background: none; font: inherit; font-weight: 700; font-size: .97rem; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.levelbar button[aria-selected="true"] { background: var(--yellow); color: #3d2c06; }
.lvdot { width: .7rem; height: .7rem; border-radius: 50%; }
.lvdot.easy { background: var(--green); } .lvdot.full { background: var(--blue); } .lvdot.tech { background: var(--ink-2); }
.levelbar button[aria-selected="true"] .lvdot { background: #3d2c06; }
.levelhint { margin: .55rem 0 0; }

.prose { max-width: 44rem; margin-inline: auto; }
.prose > section > p:first-child { font-size: 1.14rem; }
.prose h2 { margin-top: 1.8rem; }
.risksec { margin-top: 2.2rem; }

.donebox { margin: 2.2rem 0; padding: 1.4rem; border: 2px dashed var(--line); border-radius: var(--radius); text-align: center; }
.donebox .btn { margin-bottom: .6rem; }
.donebox p { margin: 0; }
.donebox.done .btn { background: var(--green); color: #fff; }

.pager { display: grid; gap: .8rem; grid-template-columns: 1fr; margin: 2rem 0; }
@media (min-width: 640px) { .pager { grid-template-columns: 1fr 1fr; } }
.pg { display: block; padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); text-decoration: none; color: var(--ink); }
.pg:hover { border-color: var(--yellow); }
.pg em { display: block; font-style: normal; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow-deep); font-weight: 800; margin-bottom: .2rem; }
.pg.next { text-align: right; }

/* bar lengket hanya di halaman pelajaran */
.stickybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: color-mix(in srgb, var(--paper-2) 96%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: .6rem 0 calc(.6rem + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform .25s ease; }
.stickybar.show { transform: none; }
.stickybar .wrap { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.stickybar span { font-size: .92rem; color: var(--ink-2); }
.lesson .foot { padding-bottom: 6rem; }
@media (min-width: 700px) { .stickybar span { font-size: 1rem; } }

/* ---------- footer ---------- */
.foot { margin-top: 3rem; border-top: 1px solid var(--line); background: var(--band); padding: 2.6rem 0 3rem; font-size: 1rem; }
.foot-grid { display: grid; gap: 1.8rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.foot a { display: flex; align-items: center; min-height: 44px; padding: .35rem 0; color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--yellow-deep); text-decoration: underline; }
.foot-brand { font-weight: 800; margin-bottom: .3rem; font-size: 1.1rem; }
.foot-about p { font-size: .97rem; }
.foot-h { font-weight: 800; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: .5rem; }
.disclaimer { margin: 2rem 0 1rem; padding: 1.1rem 1.2rem; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--line); font-size: .95rem; color: var(--ink-2); }

/* ---------- kabar ---------- */
.roles { margin: 1.2rem 0; padding: 0; display: grid; gap: .5rem; }
.roles > div { display: grid; gap: .15rem; padding: .95rem 1.1rem; background: var(--band); border-radius: 12px; }
.roles dt { font-weight: 800; color: var(--yellow-deep); }
.roles dd { margin: 0; color: var(--ink-2); font-size: .99rem; }
@media (min-width: 620px) { .roles > div { grid-template-columns: 11rem 1fr; gap: .8rem; align-items: baseline; } }
.sources { background: var(--band); }
.sources h2 { font-size: 1.2rem; margin-bottom: .5rem; }
.sources ul { margin: 0 0 .9rem; padding-left: 1.2rem; }
.sources li { margin-bottom: .3rem; }
.sources li a { display: inline-flex; align-items: center; min-height: 44px; }
.sources a { word-break: break-word; }
.ctacard { text-align: center; }
.ctatext { font-size: 1.15rem; font-weight: 700; margin-bottom: .9rem; }
.prose time { font-variant-numeric: tabular-nums; }

/* tautan kabar terkait di halaman pelajaran */
.kabarlink { display: block; text-decoration: none; color: var(--ink); background: var(--blue-soft); border-color: color-mix(in srgb, var(--blue) 30%, var(--line)); }
.kabarlink:hover { border-color: var(--blue); }
.kabarlink .tag { background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); }
.kabarlink b { display: block; font-size: 1.1rem; line-height: 1.3; }
.kabarlink em { font-style: normal; font-size: .92rem; color: var(--ink-2); }
.catintro { padding-top: 1.2rem; padding-bottom: 0; }
.catintro p:first-child { font-size: 1.14rem; }

/* ---------- alat hitung ---------- */
.tool { border-color: color-mix(in srgb, var(--yellow) 42%, var(--line)); }
.tool-fields { display: grid; gap: .9rem; margin: 1.2rem 0; }
@media (min-width: 640px) { .tool-fields { grid-template-columns: 1fr 1fr; } }
.tool-field { display: flex; flex-direction: column; gap: .45rem; }
/* .field dipakai juga di kotak pencarian yang arahnya baris, di sana flex-basis 16rem
   mengatur lebar. Di dalam .tool-field arahnya kolom, sehingga basis yang sama justru
   mengatur TINGGI dan membuat isian menjulang 256px. Karena itu dikunci di sini. */
.tool-field > .field { flex: 0 0 auto; width: 100%; }
.tool-label { font-weight: 700; font-size: .97rem; }
.tool-label b { color: var(--yellow-deep); }
.tool-field input[type="range"] { width: 100%; height: 44px; accent-color: var(--yellow-deep); background: none; cursor: pointer; }
.tool-out { background: var(--band); border-radius: 14px; padding: 1.2rem; }
.tool-out > :last-child { margin-bottom: 0; }
.tool-out .big-num { font-family: var(--display); font-size: clamp(2rem, 7vw, 2.9rem); font-weight: 800; letter-spacing: -.02em; color: var(--yellow-deep); font-variant-numeric: tabular-nums; margin: .1rem 0 .3rem; line-height: 1.05; }
.chartbox { margin: 1.2rem 0 .6rem; }
.chart { width: 100%; height: 150px; display: block; overflow: visible; }
.chart .bar { fill: var(--yellow); }
.chart .bar.ok { fill: var(--green); }
.chart .bar.warn { fill: var(--red); }
.chart-labels { display: flex; margin-top: .4rem; }
.chart-labels > div { flex: 1 1 0; text-align: center; padding: 0 .15rem; min-width: 0; }
.chart-labels b { display: block; font-size: .82rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.chart-labels em { display: block; font-style: normal; font-size: .78rem; color: var(--ink-2); }
.toolrows { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin: 1rem 0 0; }
.toolrows th { text-align: left; font-weight: 500; color: var(--ink-2); padding: .55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.toolrows td { text-align: right; font-weight: 700; padding: .55rem 0 .55rem .8rem; border-bottom: 1px solid var(--line); }
.toolrows tr.last th, .toolrows tr.last td { border-bottom: 0; color: var(--yellow-deep); font-weight: 800; }
.cerita { margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed var(--line); color: var(--ink-2); }
@media (max-width: 520px) {
  .toolrows table, .toolrows tbody, .toolrows tr, .toolrows th, .toolrows td { display: block; width: 100%; }
  .toolrows tr { padding: .5rem 0; border-bottom: 1px solid var(--line); }
  .toolrows tr.last { border-bottom: 0; }
  .toolrows th, .toolrows td { border: 0; padding: 0; text-align: left; }
  .toolrows td { font-size: 1.12rem; }
  .chart-labels b { font-size: .72rem; }
}

/* ---------- alat hitung sebagai hero: jawaban dulu ---------- */
.hero-alat { padding-top: .9rem; padding-bottom: 1.6rem; }
.hero-alat .hero-inner { gap: 1rem; }
.hero-alat h1 { font-size: clamp(1.72rem, 6.4vw, 3rem); line-height: 1.06; margin-bottom: .35rem; }
.hero-alat .eyebrow { margin-bottom: .3em; }
.hide-sm-block, .hide-sm-flex { display: none; }
@media (min-width: 900px) {
  .hero-alat { padding-top: 2.8rem; }
  .hero-alat .hero-inner { grid-template-columns: 1fr 1.05fr; align-items: center; }
  .hide-sm-block { display: block; }
  .hide-sm-flex { display: flex; }
}

/* Kartu hero: hasil di atas, isian di bawahnya. */
.tool-hero { margin: 0; background: var(--paper-2); border: 0; border-top: 6px solid var(--yellow);
  border-radius: 6px 6px 18px 18px; padding: 0 0 .9rem; overflow: hidden;
  box-shadow: 0 18px 40px -28px rgba(80, 60, 30, .45); }
.tool-hero .tool-out { background: var(--yellow-soft); border-radius: 0; padding: 1rem 1.1rem 1.1rem; }
.tool-hero .tool-out .glabel { margin-bottom: .05rem; }
.tool-hero .tool-out .big-num { font-size: clamp(2.2rem, 9vw, 3rem); margin: 0 0 .2rem; }
.tool-hero .tool-out .muted { font-size: .95rem; margin: 0; }
/* Di layar kecil hero hanya menampilkan jawaban utamanya. Grafik, tabel, dan
   ceritanya ada di halaman alatnya sendiri supaya lipatan tidak kepenuhan. */
.tool-hero .chartbox, .tool-hero .toolrows, .tool-hero .cerita, .tool-hero .tool-out h3, .tool-hero .tool-out ul { display: none; }

.tool-nudge { display: flex; align-items: center; gap: .4rem; margin: .65rem 1.1rem .45rem; font-size: .9rem; font-weight: 700; color: var(--yellow-deep); }
.tool-hero .tool-fields { gap: .6rem .6rem; margin: 0 1.1rem; grid-template-columns: 1fr 1fr; }
.tool-hero .tool-fields > :first-child { grid-column: 1 / -1; }
.tool-hero .tool-label { font-size: .86rem; }
.tool-hero .field { min-height: 46px; }
.tool-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin: .9rem 1.1rem 0; font-size: .86rem; }
.tool-foot .tag { margin: 0; font-size: .68rem; }
.tool-foot a { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }

.janji { padding-top: 2.2rem; }
.janji h2 { font-size: clamp(1.7rem, 5.4vw, 2.4rem); }

/* ---------- visual pembanding di hero ---------- */
.compare { display: flex; align-items: flex-end; justify-content: center; gap: .7rem; height: clamp(118px, 20vh, 160px); margin: .7rem 0 0; }
.cbar { position: relative; flex: 1 1 0; max-width: 8.5rem; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.cbar b { font-family: var(--display); font-size: .92rem; font-weight: 800; font-variant-numeric: tabular-nums; margin-bottom: .3rem; white-space: nowrap; }
.cbar em { font-style: normal; font-size: .82rem; color: var(--ink-2); margin-top: .35rem; text-align: center; line-height: 1.15; }
.cbar-fill { display: block; width: 100%; border-radius: 8px 8px 3px 3px; transition: height .5s cubic-bezier(.22,.8,.3,1); }
.cbar.now .cbar-fill { background: var(--yellow); }
.cbar.later .cbar-fill { background: repeating-linear-gradient(135deg, var(--red) 0 7px, color-mix(in srgb, var(--red) 78%, transparent) 7px 14px); }
.cbar.later b { color: var(--red); }
.cbar-arrow { align-self: center; color: var(--ink-2); font-size: 1.3rem; padding-bottom: 1.6rem; }
@media (prefers-reduced-motion: reduce) { .cbar-fill { transition: none; } }

.tool-hero .tool-out .big-num { font-size: clamp(1.95rem, 8.6vw, 3rem); font-weight: 800; letter-spacing: -.03em;
  color: var(--ink); white-space: nowrap; }
.tool-hero .tool-out { padding: .85rem 1.1rem 1rem; }
.hero-note { font-size: 1rem; color: var(--ink-2); margin: .2rem 0 0; max-width: 34ch; }

/* ---------- rel alat di hero ---------- */
/* Kartu berikutnya sengaja terpotong di tepi kanan. Potongan itulah yang memberi
   tahu bahwa masih ada alat lain, tanpa perlu tulisan atau deretan tab. */
.rail-wrap { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.rail { display: flex; gap: .7rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  margin: 0 -1.15rem; padding: 0 1.15rem .3rem; }
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline: 3px solid var(--yellow-deep); outline-offset: 4px; border-radius: 18px; }
.rail-item { flex: 0 0 87%; scroll-snap-align: start; min-width: 0; display: flex; }
.rail-item > * { width: 100%; }
@media (min-width: 560px) { .rail-item { flex-basis: 74%; } }
@media (min-width: 900px) { .rail { margin: 0; padding: 0 0 .3rem; } .rail-item { flex-basis: 100%; scroll-snap-align: center; } }

/* Kartu yang belum terpilih diredupkan sedikit, jadi mata tahu mana yang aktif
   dan tahu bahwa yang di sebelah adalah kartu lain, bukan bagian dari kartu ini. */
.rail-item > * { transition: opacity .25s ease; }
.rail-item:not(.aktif) > * { opacity: .55; }
@media (prefers-reduced-motion: reduce) { .rail-item > * { transition: none; } .rail { scroll-behavior: auto; } }

.rail-foot { display: flex; align-items: center; justify-content: center; gap: .5rem; }
.rail-dots { display: flex; align-items: center; gap: .1rem; }
.rail-dot { width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center; }
.rail-dot::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--line);
  transition: width .2s ease, background .2s ease; }
.rail-dot[aria-current="true"]::before { width: 22px; background: var(--yellow-deep); }
.rail-arrow { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper-2); color: var(--ink); font-size: 1rem; cursor: pointer; }
.rail-arrow:disabled { opacity: .3; cursor: default; }
.rail-arrow:not(:disabled):hover { border-color: var(--yellow); }
@media (max-width: 559px) { .rail-arrow { display: none; } }

.tool-title { display: flex; align-items: center; gap: .45rem; font-family: var(--display); font-weight: 700;
  font-size: 1rem; letter-spacing: -.01em; margin: 0; padding: .75rem 1.1rem .15rem; color: var(--ink-2); }
.tool-title-ill { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; color: var(--yellow-deep); }

/* kartu penutup rel */
.rail-end .endcard { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; height: 100%;
  padding: 1.4rem 1.2rem; background: var(--band); border: 0; border-top: 6px solid var(--green);
  border-radius: 6px 6px 18px 18px; text-decoration: none; color: var(--ink); }
.endcard-ill { width: 3rem; height: 3rem; color: var(--green); }
.endcard b { font-family: var(--display); font-size: 1.25rem; line-height: 1.15; }
.endcard em { font-style: normal; color: var(--ink-2); font-size: .95rem; }
.endcard .btn { margin-top: auto; }

/* Judul hero berganti mengikuti kartu aktif. Perpindahannya samar saja. */
.hero-alat h1 { transition: opacity .13s ease; min-height: 2.1em; }
.hero-alat h1.tukar { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .hero-alat h1 { transition: none; } }

/* ---------- formulir buletin ---------- */
.newsform { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 .9rem; }
.newsform .field { flex: 1 1 15rem; }
.newsform .formnote { flex: 1 0 100%; margin: 0; min-height: 1.4em; }
.newsform.sukses .formnote { color: var(--green); font-weight: 700; }
.newsform.gagal .formnote { color: var(--red); font-weight: 700; }
.newsform.gagal .field { border-color: var(--red); }

/* Tombol simpan kartu hasil. Sengaja tenang: ia baru berguna setelah pembaca
   mengubah angkanya sendiri, jadi tidak boleh bersaing dengan hasil di atasnya. */
.aksi-wrap { margin: .9rem 0 0; display: grid; gap: .5rem; }
.aksi-wrap .btn { width: 100%; justify-content: center; font-size: .92rem; padding: .62rem 1rem; }
.tool-hero .aksi-wrap { margin-top: .7rem; }

/* Terjemahan ke barang. Ini yang dulu hanya ada di kartu; sekarang halaman yang
   membukanya, supaya menekan tombol memberi sesuatu yang belum terlihat. */
.barang { margin: .85rem 0 0; padding: .8rem .9rem .7rem; border-radius: 14px;
  background: color-mix(in srgb, var(--yellow) 16%, var(--paper-2)); }
.barang-judul { margin: 0 0 .55rem; font-size: .82rem; font-weight: 700;
  color: var(--yellow-deep); letter-spacing: .01em; }
.barang-baris { display: grid; grid-template-columns: 1fr auto; gap: .1rem .6rem;
  align-items: baseline; margin-bottom: .5rem; }
.barang-baris em { grid-column: 1; font-style: normal; font-size: .78rem; color: var(--ink-2); }
.barang-baris b { grid-column: 2; grid-row: 1 / span 2; font-size: 1.05rem; white-space: nowrap; }
.barang-bar { grid-column: 1; height: .5rem; border-radius: .25rem; background: var(--yellow);
  min-width: .5rem; }
.barang-bar.nanti { background: var(--yellow-deep); }
.barang-beda { font-size: .82rem; font-weight: 700; color: var(--red); }
.barang-beda.naik { color: var(--yellow-deep); }
.barang-kaki { display: flex; justify-content: space-between; align-items: center;
  gap: .6rem; margin: .1rem 0 0; }
.barang-kaki small { font-size: .68rem; color: var(--ink-2); line-height: 1.3; }
.barang-ganti { flex: 0 0 auto; border: 1px solid var(--line); background: var(--paper);
  color: var(--ink); border-radius: 999px; padding: .28rem .7rem; font: inherit;
  font-size: .76rem; cursor: pointer; }
.barang-ganti:hover { border-color: var(--yellow); }

/* Isian yang tidak ditampilkan di susunan hero. Nilainya tetap ikut dihitung,
   tapi kotaknya tidak boleh menyisakan ruang di dalam grid isian. */
.tool-field[hidden] { display: none; }

/* Kotak persetujuan pelacakan. Muncul hanya di domain produksi dan hanya sampai
   pembaca memilih. Izinkan dan Tolak sengaja sama ukuran. */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--paper); border-top: 2px solid var(--yellow);
  box-shadow: 0 -8px 28px rgba(43, 39, 36, .14); padding: .9rem 0 1.1rem; }
.consent-in { display: grid; gap: .8rem; }
.consent-h { margin: 0 0 .3rem; font-weight: 700; font-size: 1rem; }
.consent-p { margin: 0; font-size: .86rem; color: var(--ink-2); line-height: 1.5; }
.consent-aksi { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.consent-aksi .btn { flex: 1 1 8rem; justify-content: center; font-size: .92rem; }
.consent-belajar { flex: 0 0 auto; font-size: .84rem; }
@media (min-width: 44rem) {
  .consent-in { grid-template-columns: 1fr auto; align-items: center; }
  .consent-aksi .btn { flex: 0 0 auto; min-width: 7.5rem; }
}
body.ada-consent { padding-bottom: 9rem; }

/* Kepala dan kaki halaman iklan: dipangkas supaya di layar pertama hanya ada
   isian kalkulator, bukan navigasi. */
.top-telanjang .topbar { justify-content: space-between; }
.tautan-polos { font-size: .9rem; color: var(--ink-2); }
.tautan-polos:hover { color: var(--ink); }
.foot-telanjang { padding: 1.6rem 0 2rem; }
.wrap-sempit { max-width: 34rem; }
.coba-label { margin: .7rem 0 .5rem; letter-spacing: .04em; text-transform: uppercase; }
.coba-judul { font-size: clamp(1.3rem, 5.4vw, 2rem); line-height: 1.14; margin: 0 0 .4rem; }
.coba-sub { margin: 0 0 .8rem; color: var(--ink-2); font-size: .93rem; }
.coba-disclaimer { margin-top: 1.2rem; }
.coba-jelas { margin-top: 1.6rem; }
.mikro { margin: .1rem 0 0; text-align: center; }

/* Strip bukti di bawah hero. Angkanya dihitung saat build, jadi selalu benar.
   Ditaruh sebelum ajakan apa pun: pengunjung dari iklan perlu tahu situs ini
   berdiri di atas apa sebelum diminta mempercayai isinya. */
.bukti { padding: 1.1rem 0 .2rem; }
.bukti-angka { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem;
  list-style: none; margin: 0 0 .75rem; padding: 0; text-align: center; }
.bukti-angka li { border-left: 2px solid var(--yellow); padding: .1rem 0 .1rem .55rem;
  text-align: left; }
.bukti-angka b { display: block; font-family: var(--display);
  font-size: clamp(1.25rem, 5vw, 1.7rem); line-height: 1.1; color: var(--ink); }
.bukti-angka em { font-style: normal; font-size: .72rem; color: var(--ink-2);
  line-height: 1.25; display: block; }
.bukti-janji { margin: 0; font-size: .84rem; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 30rem) {
  .bukti-angka { grid-template-columns: repeat(2, 1fr); gap: .55rem .4rem; }
}
