/* ============================================
   Halaman layanan: Kontak, Pelaporan Pelanggaran (WBS), Kebijakan Privasi, Syarat & Ketentuan
   (Nov 2026). Memakai token desain G ringkas dari desain-g.css; awalan kelas ly-*.
   ============================================ */
.ly { background: #fff; color: var(--text); padding: calc(var(--nav-h) + 64px) 0 104px; }
.ly-isi { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.ly h1, .ly h2, .ly h3 { color: var(--text); }
.ly p { margin: 0; }

.ly-kepala { max-width: 760px; }
.ly-kepala h1 { font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -0.025em; line-height: 1.08; }
.ly-lead { font-size: clamp(17px, 1.6vw, 20px); color: #424245; margin-top: 16px !important; line-height: 1.55; }
.ly-meta { color: var(--text-secondary); font-size: 14px; margin-top: 14px !important; }
.ly-aksi { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }

.ly-bagian { margin-top: 88px; }
.ly-bagian > h2 { font-size: clamp(26px, 2.8vw, 34px); letter-spacing: -0.02em; }
.ly-sub { color: var(--text-secondary); margin-top: 8px !important; font-size: 16px; max-width: 640px; }

/* ---------- kanal kontak ---------- */
.ly-kanal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.ly-kanal > a, .ly-kanal > div { background: var(--surface); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 4px; color: var(--text); min-width: 0; }
.ly-kanal .material-symbols-rounded { font-size: 26px; color: var(--blue); margin-bottom: 10px; }
.ly-kanal b { font-size: 17px; overflow-wrap: anywhere; }
.ly-kecil { color: var(--text-secondary); font-size: 14px; line-height: 1.5; }
.ly-kanal > a:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- tata letak dua kolom ---------- */
.ly-dua { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: start; margin-top: 88px; }

/* ---------- formulir ---------- */
.ly-form { background: var(--surface); border-radius: 22px; padding: 32px; }
.ly-form h2 { font-size: 26px; letter-spacing: -0.015em; }
.ly-form .form-group { margin: 18px 0 0; }
.ly-form .form-label { display: block; margin-bottom: 6px; font-size: 14.5px; }
.ly-form .form-input { width: 100%; }
.ly-form textarea.form-input { min-height: 150px; resize: vertical; line-height: 1.55; }
.ly-opsional { font-weight: 400; color: var(--text-secondary); }
.ly-bantu { font-size: 13px; color: var(--text-secondary); margin-top: 6px !important; line-height: 1.5; }
.ly-hitung { font-size: 12.5px; color: var(--text-secondary); text-align: right; margin-top: 4px !important; }
.ly-pilih { display: flex; flex-wrap: wrap; gap: 10px; }
.ly-pilih label { display: flex; align-items: flex-start; gap: 10px; background: #fff; border: 1px solid #d2d2d7; border-radius: 14px; padding: 14px 16px; cursor: pointer; flex: 1 1 220px; font-size: 15px; line-height: 1.4; }
.ly-pilih label:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,93,153,.14); }
.ly-pilih input { margin-top: 2px; accent-color: var(--blue); width: 17px; height: 17px; flex-shrink: 0; }
.ly-pilih small { display: block; color: var(--text-secondary); font-size: 13px; margin-top: 2px; }
.ly-centang { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #424245; line-height: 1.55; margin-top: 20px; cursor: pointer; }
.ly-centang input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--blue); }
.ly-centang a, .ly-catatan a, .ly-info a, .ly-naskah a { color: var(--tautan); }
.ly-catatan { font-size: 13.5px; color: var(--text-secondary); margin-top: 14px !important; line-height: 1.55; }
.ly-galat { background: #fef2f2; color: #b42318; border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-top: 16px !important; }
.ly-form .gr-pil, .ly-hasil .gr-pil { margin-top: 22px; width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.ly-form .gr-pil:disabled { opacity: .6; cursor: progress; }
.ly-identitas[hidden] { display: none; }

/* ---------- kolom info di samping formulir ---------- */
.ly-info h3 { font-size: 19px; margin-top: 32px; letter-spacing: -0.01em; }
.ly-info h3:first-child { margin-top: 0; }
.ly-info p, .ly-info li { color: #424245; font-size: 15.5px; line-height: 1.65; }
.ly-info p { margin-top: 8px; }
.ly-info ul { padding-left: 18px; margin: 8px 0 0; }
.ly-info li + li { margin-top: 4px; }

/* ---------- hasil kirim (kode tiket) ---------- */
.ly-hasil { background: var(--surface); border-radius: 22px; padding: 36px 32px; }
.ly-hasil h2 { font-size: 26px; }
.ly-hasil > p { color: #424245; margin-top: 10px !important; line-height: 1.6; }
.ly-kodebox { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.ly-kodebox div { background: #fff; border-radius: 14px; padding: 16px 18px; }
.ly-kodebox span { display: block; font-size: 13px; color: var(--text-secondary); }
.ly-kode { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: clamp(20px, 3vw, 26px); font-weight: 700; letter-spacing: .04em; margin-top: 4px; display: block; overflow-wrap: anywhere; }
.ly-peringatan { background: #fff7e6; color: #7a4b00; border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-top: 16px !important; line-height: 1.55; }
.ly-salin { background: none; border: 0; color: var(--tautan); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; padding: 0; margin-top: 8px; }

/* ---------- WBS: jenis pelanggaran & alur ---------- */
.ly-jenis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.ly-jenis > div { background: var(--surface); border-radius: 22px; padding: 22px 24px; }
.ly-jenis b { font-size: 17px; display: block; }
.ly-jenis p { color: var(--text-secondary); font-size: 14.5px; margin-top: 6px !important; line-height: 1.55; }
.ly-langkah { counter-reset: lk; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 36px 0 0; list-style: none; padding: 0; }
.ly-langkah li { counter-increment: lk; border-top: 2px solid var(--text); padding-top: 14px; font-size: 15px; color: #424245; line-height: 1.55; }
.ly-langkah li::before { content: counter(lk); display: block; font-weight: 700; font-size: 22px; color: var(--text); margin-bottom: 6px; }
.ly-langkah b { color: var(--text); display: block; margin-bottom: 2px; }

/* ---------- WBS: status & percakapan ---------- */
.ly-status { display: inline-flex; padding: 5px 12px; border-radius: 980px; font-size: 13.5px; font-weight: 600; background: #e8eef7; color: var(--blue); }
.ly-status.selesai { background: #e7f6ec; color: #1e7a3c; }
.ly-status.tidak_dilanjutkan { background: #f2f2f4; color: #6e6e73; }
.ly-ringkas-lap { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; color: var(--text-secondary); font-size: 14px; }
.ly-utas { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.ly-utas li { max-width: 85%; padding: 12px 16px; border-radius: 16px; font-size: 15px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.ly-utas li.tim { background: #fff; align-self: flex-start; }
.ly-utas li.pelapor { background: #e8eef7; align-self: flex-end; }
.ly-utas small { display: block; font-size: 12px; color: var(--text-secondary); margin-top: 6px; white-space: normal; }
.ly-kosong { color: var(--text-secondary); font-size: 15px; margin-top: 18px !important; }

/* ---------- dokumen hukum ---------- */
.ly-ringkas { background: var(--surface); border-radius: 22px; padding: 26px 30px; margin-top: 40px; max-width: 760px; }
.ly-ringkas h2 { font-size: 19px; }
.ly-ringkas ul { margin: 10px 0 0; padding-left: 20px; }
.ly-ringkas li { color: #333336; font-size: 15.5px; line-height: 1.65; }
.ly-ringkas li + li { margin-top: 6px; }
.ly-dok-isi { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; margin-top: 64px; align-items: start; }
.ly-daftar { position: sticky; top: calc(var(--nav-h) + 24px); font-size: 14px; }
.ly-daftar summary { font-weight: 600; cursor: pointer; padding: 6px 10px; list-style: none; }
.ly-daftar summary::-webkit-details-marker { display: none; }
.ly-daftar ol { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 1px; }
.ly-daftar a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text-secondary); line-height: 1.4; }
.ly-daftar a:hover { background: var(--surface); color: var(--text); }
.ly-naskah { max-width: 720px; min-width: 0; }
.ly-naskah section { scroll-margin-top: calc(var(--nav-h) + 24px); }
.ly-naskah section + section { margin-top: 52px; }
.ly-naskah h2 { font-size: 24px; letter-spacing: -0.015em; }
.ly-naskah h3 { font-size: 17.5px; margin-top: 26px; }
.ly-naskah p, .ly-naskah li { color: #333336; font-size: 16px; line-height: 1.7; }
.ly-naskah p { margin-top: 12px; }
.ly-naskah ul, .ly-naskah ol { padding-left: 22px; margin: 10px 0 0; }
.ly-naskah li + li { margin-top: 6px; }
.ly-tabel { overflow-x: auto; margin-top: 16px; }
.ly-naskah table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ly-naskah th, .ly-naskah td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.55; }
.ly-naskah th { font-weight: 600; background: var(--surface); }
.ly-naskah code { font-size: 13.5px; background: var(--surface); padding: 1px 6px; border-radius: 6px; }

/* ---------- kaki halaman: tautan hukum ---------- */
.footer-hukum { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-top: 8px; font-size: 13.5px; }
.footer-hukum a { color: inherit; }
.footer-hukum a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .ly-kanal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ly-dua, .ly-dok-isi { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ly-daftar { position: static; background: var(--surface); border-radius: 16px; padding: 8px; }
  .ly-jenis { grid-template-columns: minmax(0, 1fr); }
  .ly-langkah { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ly-bagian, .ly-dua { margin-top: 64px; }
}
@media (max-width: 520px) {
  .ly { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 72px; }
  .ly-kanal, .ly-kodebox, .ly-langkah { grid-template-columns: minmax(0, 1fr); }
  .ly-form, .ly-hasil { padding: 22px 18px; }
  .ly-utas li { max-width: 100%; }
  .ly-ringkas { padding: 22px 20px; }
}

/* ============================================
   Dashboard: tab Pesan dan WBS (awalan lyd-*). Daftar buka-tutup, nyaman di desktop dan HP.
   ============================================ */
.lyd-kepala { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.lyd-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lyd-kecil { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.lyd-daftar { list-style: none; margin: 0; padding: 0; }
.lyd-daftar > li { border-top: 1px solid var(--border); }
.lyd-daftar summary { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.lyd-daftar summary::-webkit-details-marker { display: none; }
.lyd-daftar summary:hover { background: var(--surface); }
.lyd-judul { display: flex; flex-direction: column; min-width: 0; flex: 1 1 220px; }
.lyd-judul b { font-size: 15px; overflow-wrap: anywhere; }
.lyd-judul span { font-size: 13px; color: var(--text-secondary); }
.lyd-waktu { font-size: 12.5px; color: var(--text-secondary); white-space: nowrap; }
.lyd-status { display: inline-flex; padding: 3px 10px; border-radius: 980px; font-size: 12px; font-weight: 600; background: #e8eef7; color: var(--blue); white-space: nowrap; }
.lyd-status.s-baru, .lyd-status.s-diterima { background: #fff1e0; color: #a35200; }
.lyd-status.s-selesai { background: #e7f6ec; color: #1e7a3c; }
.lyd-status.s-tidak_dilanjutkan { background: #f2f2f4; color: #6e6e73; }
.lyd-isi { padding: 4px 18px 20px; }
.lyd-teks { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.6; background: var(--surface); border-radius: 12px; padding: 14px 16px; margin: 0; }
.lyd-data { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 20px; margin: 14px 0 0; }
.lyd-data dt { font-size: 12px; color: var(--text-secondary); }
.lyd-data dd { margin: 2px 0 0; font-size: 14px; overflow-wrap: anywhere; white-space: pre-wrap; }
.lyd-tombol { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lyd-form { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.lyd-form .form-label { font-size: 13px; margin-top: 6px; }
.lyd-baris { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lyd-baris .form-input { flex: 1 1 200px; min-width: 0; }
.lyd-sub { font-size: 14px; margin: 20px 0 0; }
.lyd-utas { margin-top: 10px; }
.lyd-utas li.tim { background: var(--surface); }
.lyd-hapus { color: var(--danger, #b42318) !important; }
.lyd-kosong { padding: 44px 20px; text-align: center; color: var(--text-secondary); }
.lyd-kosong .material-symbols-rounded { display: block; font-size: 38px; margin-bottom: 8px; }
.lyd-atur { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding: 18px; }
.lyd-email { list-style: none; margin: 12px 0; padding: 0; }
.lyd-email li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.lyd-email li span { overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 768px) {
  .lyd-atur { grid-template-columns: minmax(0, 1fr); }
  .lyd-daftar summary { padding: 12px 14px; gap: 8px; }
  .lyd-isi { padding: 4px 14px 18px; }
  .lyd-filter .btn { min-height: 40px; }
}

/* daftar berpoin: reset global situs menghapus penanda daftar */
.ly-naskah ul, .ly-ringkas ul, .ly-info ul { list-style: disc; }
.ly-naskah ol { list-style: decimal; }
.ly-naskah li::marker, .ly-ringkas li::marker, .ly-info li::marker { color: var(--text-secondary); }

/* tab dashboard di tablet/desktop: selalu satu baris rapi (ikon di atas label, seperti di HP); lebar tab
   menyesuaikan jumlah tab per peran (super admin 10, PMB 4, editor 2) tanpa meluber keluar kotak */
@media (min-width: 641px) {
  .dash-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 112px); gap: 2px;
               width: fit-content; max-width: 100%; overflow: visible; }
  .dash-tab-btn { flex-direction: column; justify-content: center; gap: 3px; min-width: 0; padding: 8px 6px;
                  font-size: 13px; line-height: 1.2; white-space: normal; text-align: center; }
  .dash-tab-btn .material-symbols-rounded { font-size: 20px !important; }
}

/* kolom jebakan bot (formulir tracer): tidak terlihat dan tidak terjangkau keyboard */
.ly-jebakan { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
