/* ===== Gaya tenang: mudah dibaca, dewasa, tidak ramai ===== */
:root { --krem: #fbf5e6; --r: 12px; --bayang: none; }
body { font-size: 17px; line-height: 1.6; background: var(--krem); }
h1, h2, h3, .judul { font-family: 'Lora', Georgia, serif; font-weight: 600; letter-spacing: 0; }
h1 { font-size: 30px; line-height: 1.25; margin: 0 0 6px; }
h2 { font-size: 22px; }
.kecil { font-size: 14px; }
.kartu { box-shadow: none; border: 1px solid var(--garis); border-radius: var(--r); }
.pad { padding: 18px 20px; }

/* tombol */
.tbl { border-radius: 10px; box-shadow: none; background: var(--hijau); color: #fff; font-weight: 700; padding: 12px 20px; font-size: 15.5px; transition: background .15s; }
.tbl:hover { background: var(--hijau-2); }
.tbl:active { transform: none; box-shadow: none; }
.tbl.hijau { background: var(--hijau); color: #fff; box-shadow: none; }
.tbl.garis { background: transparent; color: var(--hijau); box-shadow: inset 0 0 0 1.5px var(--hijau); }
.tbl.garis:hover { background: #eef4ef; }
.tbl.putih-garis { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.75); background: transparent; color: #fff; }
.akhir .tbl:not(.putih-garis) { background: #fff; color: var(--hijau); }
.tbl.kecil-tbl { padding: 8px 14px; font-size: 14px; }

/* menu samping / bawah: sederhana */
;
@media (min-width: 861px) { .shell { grid-template-columns: 220px 1fr; } }
.side { background: #fff; color: var(--teks); border-right: 1px solid var(--garis); padding: 24px 14px; gap: 2px; }
.brand b { font-family: 'Lora', serif; color: var(--hijau); font-size: 19px; }
.brand b span { color: var(--hijau-3); }
.nav { color: #46574e; border-radius: 10px; font-weight: 700; font-size: 16px; padding: 11px 12px; }
.nav:hover { background: #f4f0e4; }
.nav.on { background: #e6f0ea; color: var(--hijau); box-shadow: none; }
.main { padding: 36px 44px 80px; }
.wrap { max-width: 1040px; }
.kembali { margin-bottom: 14px; }

/* thumbnail: foto orang sungguhan */
.thumb { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #e6dfcd; padding: 0; display: block; color: #fff; }
.thumb .sampul { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.4)); }
.thumb .main-ik { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--hijau); display: grid; place-items: center; font-size: 15px; padding-left: 3px; z-index: 3; box-shadow: 0 2px 8px rgba(0,0,0,.25); opacity: 1; }
.thumb .dur { position: absolute; right: 8px; bottom: 9px; z-index: 3; background: rgba(0,0,0,.62); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.thumb .ikon { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; z-index: 3; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; }
.thumb .ikon.ok { background: #fff; color: #1f8a56; box-shadow: 0 1px 6px rgba(0,0,0,.3); }
.thumb .ikon.kunci { background: rgba(0,0,0,.55); }
.thumb.terkunci .sampul { filter: grayscale(.6) brightness(.8); }
.thumb::after { display: none; }
.thumb.terkunci::after { display: block; content: ''; position: absolute; inset: 0; background: rgba(10,30,22,.25); z-index: 2; }
.thumb .tbar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.45); z-index: 4; overflow: hidden; }
.thumb .tbar i { display: block; height: 100%; background: #e5231b; }
.thumb .t-judul { position: absolute; left: 22px; right: 22px; bottom: 26px; z-index: 3; font-family: 'Lora', serif; font-weight: 600; font-size: 28px; line-height: 1.2; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.player .thumb { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; padding: 0; }
.lesson-kartu:hover .thumb { transform: none; box-shadow: none; }
.lesson-kartu .meta { font-size: 13px; margin: 8px 2px 2px; }
.lesson-kartu .nm { font-size: 15.5px; font-weight: 700; line-height: 1.35; }
.lesson-kartu .gratis { color: var(--benar); }
.lesson-kartu .lanjut-di { color: #9a6b00; }
.grid-lesson { gap: 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.player { border-radius: 12px; }

/* beranda */
.salam h1 { font-size: 32px; }
.salam p { margin: 0 0 4px; color: var(--redup); font-size: 18px; }
.lanjut-k { display: grid; grid-template-columns: minmax(0, 280px) 1fr; gap: 22px; align-items: center; background: #fff; border: 1px solid var(--garis); border-radius: 14px; padding: 14px; margin: 22px 0 16px; }
.lanjut-teks small { display: block; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--hijau-3); margin-bottom: 4px; }
.lanjut-teks b { display: block; font-family: 'Lora', serif; font-size: 22px; line-height: 1.3; color: var(--hijau); font-weight: 600; }
.lanjut-teks > span:not(.tbl) { display: block; color: var(--redup); margin: 4px 0 14px; }
.tugas { display: flex; gap: 16px; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--garis); border-left: 4px solid var(--kuning); border-radius: 12px; padding: 14px 18px; margin-bottom: 8px; }
.tugas small { display: block; font-size: 13px; font-weight: 800; color: #9a6b00; letter-spacing: .04em; text-transform: uppercase; }
.tugas b { font-weight: 700; font-size: 17px; }
.tugas.ok { border-left-color: var(--benar); }
.tugas .tbl { flex: none; }
.masalah { margin: 34px 0 10px; }
.masalah h2, .kelas-ringkas h2, .sub-h { font-size: 22px; margin: 0 0 14px; }
.sub-h { margin-top: 28px; }
.cari-b { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid #e1d3b6; border-radius: 12px; padding: 4px 6px 4px 14px; margin-bottom: 14px; }
.cari-b:focus-within { border-color: var(--hijau-3); box-shadow: 0 0 0 3px rgba(47,158,102,.15); }
.cari-b input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 600 16.5px 'Nunito', sans-serif; color: var(--teks); padding: 11px 0; -webkit-appearance: none; appearance: none; }
.cari-b input::-webkit-search-cancel-button { display: none; }
.cari-b .tbl { padding: 9px 18px; }
.cari-b > span { color: var(--redup); }
.cari-b > button:not(.tbl) { border: 0; background: #f1ece0; color: #6b5b3a; width: 30px; height: 30px; border-radius: 50%; font-size: 14px; flex: none; }
.chips-masalah { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-m { background: #fff; border: 1.5px solid var(--garis); border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 16px; color: var(--hijau); transition: border-color .15s, background .15s; }
.chip-m:hover { border-color: var(--hijau-3); background: #f2f8f4; }
.kelas-ringkas { margin-top: 36px; }
.kelas-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.k-baris { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--garis); border-radius: 12px; padding: 10px; }
.k-baris:hover, .k-kartu:hover { border-color: #cdbf9c; }
.k-baris img { width: 104px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; flex: none; }
.k-baris b { display: block; font-size: 16px; line-height: 1.3; }
.k-baris span { display: block; font-size: 14px; color: var(--redup); }
i.bar { display: block; height: 6px; margin-top: 6px; background: #efe7d2; border-radius: 99px; overflow: hidden; }
i.bar u { display: block; height: 100%; background: var(--benar); text-decoration: none; border-radius: 99px; }

/* daftar kelas & detail */
.kelas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.k-kartu { background: #fff; border: 1px solid var(--garis); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.k-kartu img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.k-kartu .isi { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.k-kartu h3 { font-family: 'Lora', serif; font-size: 19px; line-height: 1.3; color: var(--hijau); }
.k-kartu p { margin: 0; font-size: 15px; color: #4d5e55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kepala-kelas { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 24px; }
.kepala-kelas img { width: 240px; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; box-shadow: none; flex: none; }
.kepala-kelas p { margin: 10px 0 14px; max-width: 560px; }
details.modul-d { background: #fff; border: 1px solid var(--garis); border-radius: 12px; margin: 0 0 12px; padding: 0; }
details.modul-d summary { display: flex; gap: 14px; align-items: center; padding: 14px 16px; cursor: pointer; list-style: none; }
details.modul-d summary::-webkit-details-marker { display: none; }
details.modul-d summary::after { content: '▾'; margin-left: auto; color: var(--redup); font-size: 18px; transition: transform .2s; }
details.modul-d[open] summary::after { transform: rotate(180deg); }
.m-no { width: 36px; height: 36px; border-radius: 50%; background: #e6f0ea; color: var(--hijau); display: grid; place-items: center; font-weight: 800; flex: none; }
.m-j b { display: block; font-size: 17px; line-height: 1.3; }
.m-j small { color: var(--redup); font-size: 14px; }
.m-desk { margin: 0; padding: 0 16px 12px; color: var(--redup); font-size: 15px; }
details.modul-d .grid-lesson { padding: 0 16px 16px; }
.kuis-modul { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: #faf7ee; border: 1px dashed #d8cba8; border-radius: 10px; margin: 0 16px 16px; box-shadow: none; }
.kuis-modul .tengah { flex: 1; display: grid; gap: 2px; }
.kuis-modul .tengah b { font-size: 16px; }
.kembali + h1 { margin-top: 4px; }

/* masalah & hasil cari */
.mv-list { display: flex; flex-direction: column; gap: 10px; }
.mv { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--garis); border-radius: 12px; padding: 10px 12px; }
.mv:hover { border-color: #cdbf9c; }
.mv .no { width: 28px; height: 28px; border-radius: 50%; background: #e6f0ea; color: var(--hijau); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.mv-foto { width: 150px; flex: none; }
.mv-teks b { display: block; font-size: 16.5px; line-height: 1.35; }
.mv-teks span { font-size: 14px; color: var(--redup); }

/* akun */
.blok-akun { margin: 16px 0; max-width: 720px; }
.blok-akun h2 { font-size: 20px; }
.form-profil { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.form-profil label { font-weight: 700; font-size: 14px; display: grid; gap: 6px; }
.form-profil input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--garis); border-radius: 10px; font: inherit; background: #fff; }
.form-profil .tbl { grid-column: 1 / -1; justify-self: start; }
.status-paket { font-weight: 700; margin: 6px 0 12px; }
.pk-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pk { border: 1px solid var(--garis); border-radius: 10px; padding: 14px; }
.pk.unggul { border-color: var(--hijau-3); }
.pk b { font-size: 17px; }
.pk ul { margin: 8px 0 10px; padding-left: 18px; font-size: 15px; }
.aksi-akun { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

/* nonton & latihan */
.item.on { background: #e6f0ea; }
.judul-lesson h1 { font-size: 26px; }
.daftar-modul { box-shadow: none; }
.umpan .emo { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 800 15px 'Nunito'; background: rgba(255,255,255,.7); flex: none; font-size: 15px; }
.soal .q { font-size: 21px; }
.hasil { padding: 30px 24px; }
.hasil .aksi { margin-top: 18px; }
.akhir-lbl { color: #cfe2d8; }

/* bacaan: foto sampul, tanpa emoji */
.b-kartu { box-shadow: none; border: 1px solid var(--garis); border-radius: 12px; }
.b-kartu:hover { transform: none; box-shadow: none; border-color: #cdbf9c; }
.b-atas { height: 150px; background-size: cover; background-position: center; display: block; position: relative; }
.b-atas::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.3)); }
.b-atas .b-e { display: none; }
.b-atas .b-rub, .b-atas .b-bintang { z-index: 1; }
.b-isi b { font-family: 'Lora', serif; }
.ar-foto { height: 240px; border-radius: 12px; background-size: cover; background-position: center; margin: 0 0 18px; }
.artikel { box-shadow: none; border: 1px solid var(--garis); border-radius: 12px; }

/* HP */
@media (max-width: 860px) {
  html, body { overflow-x: clip; max-width: 100%; }
  img, svg, video { max-width: 100%; }
  .main { padding: 20px 16px 96px; max-width: 100%; min-width: 0; }
  h1 { font-size: 26px; }
  .salam h1 { font-size: 27px; }
  .topbar { background: #fff; color: var(--hijau); border-bottom: 1px solid var(--garis); padding: 12px 16px; }
  .topbar b { font-family: 'Lora', serif; font-size: 18px; color: var(--hijau); }
  .topbar b span { color: var(--hijau-3); }
  .side { background: #fff; border-top: 1px solid var(--garis); border-right: 0; box-shadow: 0 -2px 12px rgba(0,0,0,.05); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .side .brand { display: none; }
  .nav { flex: 1; justify-content: center; font-size: 12px; padding: 7px 4px; color: #5b6b62; }
  .nav.on { background: none; color: var(--hijau); }
  .nav.on svg { stroke-width: 2.6; }
  .lanjut-k { grid-template-columns: 1fr; gap: 12px; }
  .tugas { flex-direction: column; align-items: stretch; gap: 10px; }
  .kepala-kelas { flex-direction: column; }
  .kepala-kelas img { width: 100%; }
  .mv-foto { width: 112px; }
  .form-profil, .pk-list { grid-template-columns: 1fr; }
  .kelas-list { grid-template-columns: 1fr; }
  .thumb .t-judul { font-size: 20px; left: 14px; right: 14px; bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.lesson-kartu:hover .thumb .sampul { transform: none; filter: none; }
.lesson-kartu:hover .main-ik, .lanjut-k:hover .main-ik { transform: translate(-50%, -50%); opacity: 1; }

/* menimpa sisa gaya lama */
.kepala-kelas { background: none; padding: 0; border-radius: 0; border: 0; gap: 22px; overflow: visible; }
.kepala-kelas::after { display: none; }
.kepala-kelas img, .kepala-kelas img:hover { width: 240px; border-radius: 12px; transform: none; }
.kepala-kelas h1 { font-size: 30px; }
.kembali { box-shadow: none; padding: 4px 0; border-radius: 0; font-size: 15px; font-weight: 700; color: var(--hijau-3); margin-bottom: 10px; background: none; }
.kembali:hover { text-decoration: underline; }
.salam { display: block; }
@media (max-width: 860px) {
  .kepala-kelas { flex-direction: column; padding: 0; }
  .kepala-kelas img, .kepala-kelas img:hover { width: 100%; }
  .kepala-kelas h1 { font-size: 26px; }
}

/* ===== kalkulator gizi: tenang ===== */
.gz-hero { background: none; color: var(--teks); border-radius: 0; padding: 0; display: block; margin-bottom: 8px; }
.gz-hero::after { display: none; }
.gz-hero h1 { color: var(--hijau); font-size: 30px; margin: 0 0 6px; }
.gz-hero p { color: var(--redup); font-size: 17px; max-width: 640px; }
.gz-chip { border: 1.5px solid var(--garis); border-radius: 12px; padding: 9px 14px; }
.gz-chip:hover { transform: none; }
.gz-chip span { width: 28px; height: 28px; border-radius: 50%; background: #e6f0ea; color: var(--hijau); display: grid; place-items: center; font: 800 14px 'Nunito'; }
.gz-chip.on span { background: rgba(255,255,255,.2); color: #fff; }
.gz-kartu { border-radius: 12px; box-shadow: none; border: 1px solid var(--garis); padding: 20px 22px; }
.gz-kartu input:not([type=radio]):not([type=checkbox]), .gz-kartu select { border: 1.5px solid var(--garis); border-radius: 10px; }
.gz-pilih label { border: 1.5px solid var(--garis); border-radius: 10px; }
.gz-avatar { width: 44px; height: 44px; border-radius: 50%; background: #e6f0ea; color: var(--hijau); display: grid; place-items: center; font: 800 18px 'Nunito'; flex: none; }
.gz-ringkas { border: 1px solid var(--garis); border-left: 6px solid #9bd3b4; background: #fff; border-radius: 12px; padding: 20px 22px; animation: none; margin-top: 18px; }
.gz-ringkas.hijau { background: #f2f8f4; border-color: var(--garis); border-left-color: #2f9e66; }
.gz-ringkas.kuning { background: #fffaf0; border-color: var(--garis); border-left-color: #e8c31f; }
.gz-ringkas.oranye { background: #fff7ee; border-color: var(--garis); border-left-color: #ee9b2b; }
.gz-ringkas.merah { background: #fff5f3; border-color: var(--garis); border-left-color: #e0564b; }
.gz-ringkas h2 { font-size: 22px; line-height: 1.3; }
.gz-ringkas p { margin: 6px 0 0; font-size: 16.5px; }
.gz-ringkas-list { margin-top: 14px; background: #fff; border: 1px solid var(--garis); border-radius: 12px; overflow: hidden; }
.gz-baris { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid #f0e9d6; }
.gz-baris:last-child { border-bottom: 0; }
.gz-titik { width: 10px; height: 10px; border-radius: 50%; background: #8a968f; flex: none; }
.gz-baris.hijau .gz-titik { background: #2f9e66; } .gz-baris.kuning .gz-titik { background: #e8c31f; } .gz-baris.oranye .gz-titik { background: #ee9b2b; } .gz-baris.merah .gz-titik { background: #e0564b; } .gz-baris.biru .gz-titik { background: #3f8fd4; }
.gz-b-nama { flex: 1; } .gz-b-nama b { display: block; font-size: 16px; } .gz-b-nama small { color: var(--redup); font-size: 14px; }
.gz-d { border-radius: 12px; box-shadow: none; border: 1px solid var(--garis); margin-top: 12px; }
.gz-cetak-baris { margin-top: 16px; }
.gz-grid-ind { margin-top: 0; }
@media (max-width: 860px) { .gz-baris { flex-wrap: wrap; } .gz-hero h1 { font-size: 26px; } }
