/* Lembar kerja per topik kurikulum (LU.lembarTopik). Dipasang SESUDAH hub.css; memakai .ws-page dari hub.css. */
.lt-doc { display: grid; gap: 20px; justify-items: center; }
.lt-page { width: min(210mm, 100%); min-height: 297mm; box-sizing: border-box; padding: 11mm 12mm 8mm; display: flex; flex-direction: column;
  color: #111; font-family: var(--body, Nunito, Arial, sans-serif); font-size: 14px; line-height: 1.35; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.lt-page * { box-sizing: border-box; }
.lt-page[hidden] { display: none !important; } /* mis. halaman kunci disembunyikan lewat atribut hidden */

/* ---------- kepala ---------- */
.lt-head { display: flex; align-items: center; gap: 12px; border-bottom: 3px dashed var(--potentia, #3868c8); padding-bottom: 8px; }
.lt-brand { display: grid; gap: 4px; justify-items: start; }
.lt-logo { height: 26px; display: block; }
.lt-chip { display: inline-block; background: var(--potentia, #3868c8); color: #fff; font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .02em; border-radius: 999px; padding: 2px 10px; box-shadow: 0 2px 0 var(--ink, #1d2a5b); }
.lt-chip.k { background: var(--orange, #f89048); }
.lt-title { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.lt-title img { width: 50px; height: 50px; object-fit: contain; flex: 0 0 auto; }
.lt-title b { display: block; font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1.15; color: var(--ink, #1d2a5b); }
.lt-title small { display: block; color: #555; font-weight: 700; font-size: 12.5px; }
.lt-title small.lt-el { font-weight: 600; color: #777; font-size: 11.5px; }
.lt-code { flex: 0 0 auto; align-self: flex-start; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; font-weight: 700; border: 1.5px solid var(--ink, #1d2a5b); border-radius: 8px; padding: 2px 7px; color: var(--ink, #1d2a5b); background: #fff; }
.lt-head.mini .lt-title b { font-size: 17px; }
.lt-head.mini .lt-title img { width: 38px; height: 38px; }
.lt-fields { margin: 10px 0 4px; }
.lt-fields em { font-style: normal; font-weight: 800; padding-left: 4px; }

/* ---------- bagian ---------- */
.lt-sec { margin-top: 10px; }
.lt-sec h3 { margin: 0 0 7px; font-size: 13.5px; font-weight: 800; color: #333; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lt-tag { font-family: var(--display); font-weight: 600; font-size: 15px; color: #fff; background: var(--green, #3cc47c); border-radius: 10px; padding: 2px 11px; box-shadow: 0 2px 0 var(--ink, #1d2a5b); }
.lt-latihan .lt-tag { background: var(--potentia, #3868c8); }
.lt-tag.t { background: var(--orange, #f89048); }
.lt-tag.r { background: var(--purple, #7a4fd6); }

.lt-contoh-body { display: grid; grid-template-columns: 62px 1fr; gap: 10px; align-items: start; background: #f2fbf6; border: 2px dashed #9fdcbc; border-radius: 14px; padding: 8px 12px; }
.lt-guide { width: 62px; height: auto; display: block; }
.lt-soal { margin: 0 0 4px; font-weight: 800; }
.lt-langkah { margin: 0 0 4px; padding-left: 20px; }
.lt-langkah li { margin: 1px 0; }
.lt-jwb { margin: 0; background: #fff; border-radius: 8px; padding: 3px 8px; display: inline-block; border: 1.5px solid #9fdcbc; }

/* ---------- butir soal ---------- */
.lt-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.lt-it { position: relative; border: 1.5px solid #c9d1e6; border-radius: 12px; padding: 7px 10px 8px 36px; break-inside: avoid; page-break-inside: avoid; background: #fff; }
.lt-it.wide { grid-column: 1 / -1; }
.lt-it::before { content: attr(data-no); position: absolute; left: 8px; top: 7px; width: 21px; height: 21px; border-radius: 50%; background: var(--potentia, #3868c8); color: #fff; font-size: 11.5px; font-weight: 800; display: grid; place-items: center; }
.lt-tantangan .lt-it::before { background: var(--orange, #f89048); }
.lt-q { font-weight: 700; margin-bottom: 5px; overflow-wrap: anywhere; }
.lt-opts { display: flex; flex-wrap: wrap; gap: 5px 14px; }
.lt-opts span { display: inline-flex; align-items: center; gap: 5px; }
.lt-opts i { font-style: normal; font-weight: 800; width: 21px; height: 21px; border: 1.5px solid #333; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; flex: 0 0 auto; }
.lt-urut { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.lt-urut span { display: inline-flex; align-items: center; gap: 5px; border: 1.5px dashed #bbb; border-radius: 8px; padding: 2px 8px 2px 3px; }
.lt-box { display: inline-block; width: 24px; height: 24px; border: 2px solid #333; border-radius: 5px; background: #fff; }
.lt-isi { font-weight: 700; color: #444; }
.lt-line { display: inline-block; min-width: 160px; border-bottom: 1.5px solid #333; height: 1.3em; vertical-align: bottom; }
.lt-blank { display: inline-block; width: 46px; border-bottom: 1.5px solid #333; height: 1.1em; vertical-align: bottom; margin: 0 2px; }
.lt-blank.s { width: 26px; }
.lt-blank.l { width: 150px; max-width: 100%; }
.lt-it.isian .lt-q { margin: 2px 0 4px; line-height: 1.7; }
.lt-page .ws-frac { font-size: .92em; }

/* ---------- halaman 2 ---------- */
.lt-rumah-body { display: grid; grid-template-columns: 52px 1fr 64px; gap: 10px; align-items: center; background: #f6f1ff; border: 2px dashed #c6b3f0; border-radius: 14px; padding: 8px 12px; }
.lt-rumah-body > img:first-child { width: 52px; height: 52px; object-fit: contain; }
.lt-rumah-body p { margin: 0; font-weight: 700; }
.lt-rumah-body .lt-guide { width: 64px; }
.lt-catat { flex: 1 1 auto; min-height: 28mm; margin-top: 12px; border: 2px dashed #c9d1e6; border-radius: 14px; padding: 6px 12px;
  background: repeating-linear-gradient(#fff 0 9mm, #dfe4f2 9mm calc(9mm + 1px)); background-position: 0 8mm; }
.lt-catat.gambar { background: #fff; }
.lt-catat b { font-size: 12px; color: #777; }
.lt-bottom { margin-top: 10px; }
.lt-bottom .ws-color img { width: 80px; height: 64px; }
.lt-foot { margin-top: auto; padding-top: 6px; border-top: 1px solid #ddd; font-size: 10.5px; color: #777; display: flex; justify-content: space-between; gap: 10px; }
.lt-latihan + .lt-foot, .lt-bottom + .lt-foot { margin-top: auto; }
.lt-page > .lt-foot { margin-top: auto; }
.lt-latihan { margin-bottom: 8px; }

/* ---------- kunci ---------- */
.lt-kunci { background: #fff; }
.lt-knote { margin: 8px 0 4px; font-size: 12px; color: #555; }
.lt-kblok { border: 1.5px solid #c9d1e6; border-radius: 12px; padding: 6px 12px 8px; margin-top: 8px; break-inside: avoid; page-break-inside: avoid; }
.lt-kblok h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--ink, #1d2a5b); }
.lt-kblok h3 small { font-family: var(--body); font-size: 11.5px; color: #777; font-weight: 700; margin-left: 6px; }
.lt-key { margin: 0; padding-left: 26px; columns: 2; column-gap: 24px; font-size: 13px; }
.lt-key li { break-inside: avoid; margin: 1px 0; }
.lt-kb { display: inline-block; font-size: 10px; font-weight: 800; color: #fff; background: var(--potentia, #3868c8); border-radius: 4px; padding: 0 4px; margin-right: 5px; vertical-align: 1px; }
.lt-kc { margin: 4px 0 0; font-size: 12px; color: #444; }

/* ---------- TK: huruf lebih besar ---------- */
.lt-tk .lt-q { font-size: 16.5px; }
.lt-tk .lt-opts span { font-size: 16px; }

/* ---------- layar kecil ---------- */
@media (max-width: 640px) {
  .lt-page { min-height: 0; padding: 14px; }
  .lt-items { grid-template-columns: 1fr; }
  .lt-head { flex-wrap: wrap; }
  .lt-brand { display: flex; align-items: center; gap: 8px; flex: 1; }
  .lt-code { order: 2; align-self: center; }
  .lt-title { order: 3; flex-basis: 100%; }
  .lt-fields { flex-wrap: wrap; gap: 8px 14px; }
  .lt-fields span { flex: 1 1 140px; }
  .lt-title b { font-size: 18px; }
  .lt-rumah-body { grid-template-columns: 40px 1fr; }
  .lt-rumah-body .lt-guide { display: none; }
  .lt-key { columns: 1; }
}

/* ---------- cetak A4: halaman bernama supaya tidak mengubah lembar lama ---------- */
@page lt { size: A4; margin: 12mm; }
@media print {
  .lt-doc { display: block; }
  .lt-page { page: lt; width: auto; min-height: 270mm; padding: 6mm 7mm 4mm; box-shadow: none; margin: 0; break-after: page; page-break-after: always;
    -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .lt-doc > .lt-page:last-child { break-after: auto; page-break-after: auto; }
  .lt-kunci { break-before: page; page-break-before: always; }
}

/* sampul + jadwal paket per jenjang */
.lt-jadwal-t { width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 6px 0 10px; }
.lt-jadwal-t th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #5d6684; border-bottom: 2px solid #1d2a5b; padding: 4px 6px; }
.lt-jadwal-t td { border-bottom: 1px solid #dfe4ee; padding: 4px 6px; vertical-align: top; line-height: 1.35; }
.lt-jadwal-t td.no { width: 52px; font-weight: 700; text-align: center; }
.lt-jadwal-t td.ok { width: 54px; text-align: center; font-size: 15px; }
.lt-jadwal-t tr { break-inside: avoid; page-break-inside: avoid; }
