/* karo-online.com — warna dan ukuran dari desain Claude Design (Compadely design system). */
@font-face {
  font-family: "Noto Sans Batak";
  src: url("/static/huruf/noto-sans-batak.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+1BC0-1BFF;
}

:root {
  --primary: #0e7c5a;
  --primary-dark: #0a5e44;
  --primary-soft: #e2f1eb;
  --accent: #f2792b;
  --accent-dark: #d9611a;
  --accent-soft: #fcebdd;
  --bg: #f4f5fa;
  --card: #ffffff;
  --surface-alt: #eef0f6;
  --text: #14181f;
  --text-muted: #697080;
  --border: #e5e8f0;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;
  --r-pill: 999px;
  --sh-sm: 0 3px 8px rgba(27, 42, 74, .06);
  --sh-md: 0 8px 20px rgba(27, 42, 74, .1);
  --batak: "Noto Sans Batak", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
[lang="btx"] { font-family: var(--batak); }
img { display: block; max-width: 100%; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.lompat { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: var(--r-sm); z-index: 20; }
.lompat:focus { left: 8px; }

.wadah { max-width: 1160px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.label-kecil { font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--text-muted); }
.warna { color: var(--primary); }
.teks-redup { color: var(--text-muted); font-size: 14px; line-height: 20px; }
.catatan { font-size: 12px; line-height: 16px; color: var(--text-muted); }
.angka { font-variant-numeric: tabular-nums; }
.kartu { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }

/* ---------- kepala ---------- */
.kepala { position: sticky; top: 0; z-index: 10; background: rgba(244, 245, 250, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.kepala-nav { max-width: 1160px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); flex: none; }
.logo:hover { color: var(--text); }
.logo-tanda { width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--batak); font-size: 20px; }
.logo-nama { font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.logo-nama span { color: var(--accent); }
.menu { display: flex; gap: 4px; margin-left: auto; align-items: center; overflow-x: auto; scrollbar-width: none; }
.menu::-webkit-scrollbar { display: none; }
.menu a { padding: 8px 10px; border-radius: var(--r-sm); color: var(--text); font-size: 14px; font-weight: 600; white-space: nowrap; }
.menu a:hover { background: var(--surface-alt); }
.menu a.menu-app { padding: 9px 16px; border-radius: var(--r-pill); background: var(--accent); color: #fff; font-weight: 700; }
.menu a.menu-app:hover { background: var(--accent-dark); }
@media (max-width: 1100px) {
  .kepala-nav { flex-wrap: wrap; gap: 8px; padding: 10px 16px 8px; }
  .menu { margin-left: 0; width: 100%; order: 3; }
  .menu a { padding: 6px 10px; }
  .menu a.menu-app { order: -1; }
  .pilih-bahasa { margin-left: auto; }
}
@media (max-width: 760px) {
  .wadah { padding-left: 16px; padding-right: 16px; }
}

/* ---------- tombol ---------- */
.tombol-baris { display: flex; gap: 10px; flex-wrap: wrap; }
.tombol-baris.lebar > * { flex: 1; }
.tombol { display: inline-block; padding: 14px 22px; border-radius: var(--r-md); font-size: 16px; font-weight: 600; white-space: nowrap; border: 0; cursor: pointer; text-align: center; }
.tombol-utama { background: var(--primary); color: #fff; }
.tombol-utama:hover { background: var(--primary-dark); color: #fff; }
.tombol-kedua { background: var(--card); border: 1px solid var(--border); color: var(--text); }
.tombol-kedua:hover { background: var(--surface-alt); color: var(--text); }
.tombol-aksen { background: var(--accent); color: #fff; }
.tombol-aksen:hover { background: var(--accent-dark); color: #fff; }
.tombol-transparan { background: rgba(255, 255, 255, .14); color: #fff; }
.tombol-transparan:hover { background: rgba(255, 255, 255, .24); color: #fff; }

/* ---------- foto ---------- */
.foto-kosong { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft)); color: rgba(14, 124, 90, .25); font-family: var(--batak); font-size: 96px; }
.beranda-foto, .kartu-foto, .sejarah-foto { position: relative; overflow: hidden; background: var(--surface-alt); }
.beranda-foto img, .kartu-foto img, .sejarah-foto img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- beranda ---------- */
.beranda { padding-top: 56px; padding-bottom: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; align-items: center; }
.beranda-teks { display: flex; flex-direction: column; gap: 20px; }
.aksara-besar { font-family: var(--batak); font-size: 40px; line-height: 1.2; color: var(--primary); }
.beranda h1 { margin: 0; font-size: clamp(40px, 6vw, 64px); line-height: 1.05; font-weight: 800; letter-spacing: -1.5px; text-wrap: balance; }
.pengantar { margin: 0; font-size: 18px; line-height: 28px; color: var(--text-muted); max-width: 520px; text-wrap: pretty; }
.beranda-foto { height: 440px; border-radius: var(--r-lg); box-shadow: var(--sh-md); }
@media (max-width: 760px) {
  .beranda { padding-top: 32px; gap: 28px; }
  .beranda-foto { height: 280px; }
}

.pintasan { padding-bottom: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.pintasan-kartu { padding: 20px; color: var(--text); display: flex; flex-direction: column; gap: 6px; }
.pintasan-kartu:hover { box-shadow: var(--sh-md); color: var(--text); }
.pintasan-kartu .label-kecil { color: var(--primary); }
.pintasan-judul { font-size: 20px; font-weight: 700; }

/* ---------- bagian ---------- */
.bagian { padding-top: 64px; padding-bottom: 32px; scroll-margin-top: 70px; }
.bagian-judul { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; max-width: 680px; }
.bagian-judul h2, .sejarah-kiri h2 { margin: 0; font-size: 34px; line-height: 40px; font-weight: 800; letter-spacing: -.5px; }
.bagian-judul p, .sejarah-kiri p { margin: 0; font-size: 16px; line-height: 24px; text-wrap: pretty; }

.grid-budaya { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.kartu-budaya { overflow: hidden; display: flex; flex-direction: column; }
.kartu-foto { height: 180px; }
.kartu-isi { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill); background: var(--primary-soft); color: var(--primary-dark); }
.kartu-isi h3 { margin: 4px 0 0; font-size: 20px; line-height: 26px; font-weight: 700; }
.kartu-isi p { margin: 0; font-size: 15px; line-height: 22px; color: var(--text-muted); text-wrap: pretty; }

.sejarah { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px; align-items: start; }
.sejarah-kiri { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 90px; }
.sejarah-foto { height: 220px; margin-top: 8px; border-radius: var(--r-lg); }
@media (max-width: 760px) { .sejarah-kiri { position: static; } }
.garis-waktu { list-style: none; margin: 0; padding: 0; }
.garis-waktu li { display: grid; grid-template-columns: 24px 1fr; gap: 16px; }
.titik { display: flex; flex-direction: column; align-items: center; }
.titik span:first-child { width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 3px solid var(--primary); margin-top: 6px; flex: none; }
.titik span:last-child { flex: 1; width: 2px; background: var(--border); }
.garis-isi { padding-bottom: 28px; display: flex; flex-direction: column; gap: 4px; }
.kapan { font-size: 14px; font-weight: 800; color: var(--accent-dark); font-variant-numeric: tabular-nums; }
.garis-isi h3 { margin: 0; font-size: 20px; line-height: 26px; font-weight: 700; }
.garis-isi p { margin: 0; font-size: 15px; line-height: 22px; color: var(--text-muted); text-wrap: pretty; }

/* ---------- ertutur ---------- */
.bagian-ertutur { padding-top: 48px; padding-bottom: 48px; scroll-margin-top: 70px; }
.ertutur { background: var(--primary); color: #fff; border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 36px; align-items: center; box-shadow: var(--sh-md); }
.ertutur-teks { display: flex; flex-direction: column; gap: 16px; }
.ertutur-label { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .16); white-space: nowrap; }
.ertutur h2 { margin: 0; font-size: clamp(30px, 4vw, 40px); line-height: 1.1; font-weight: 800; letter-spacing: -.5px; text-wrap: balance; }
.ertutur p { margin: 0; font-size: 17px; line-height: 26px; text-wrap: pretty; }
.ertutur p a { color: #fff; text-decoration: underline; }
.ertutur-flyer { display: flex; justify-content: center; }
.flyer-mini { display: block; width: 389px; max-width: 100%; aspect-ratio: 1080 / 1350; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 20px 40px rgba(0, 0, 0, .25); transform: rotate(2deg); transition: transform .2s; position: relative; background: var(--primary-dark); }
.flyer-mini:hover { transform: rotate(0deg); }
.flyer-mini img { width: 100%; height: 100%; object-fit: cover; }
.flyer-mini iframe { position: absolute; left: 0; top: 0; width: 1080px; height: 1350px; border: 0; transform-origin: 0 0; transform: scale(var(--skala, .36)); pointer-events: none; }

/* ---------- agenda ---------- */
.agenda-kepala { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.agenda-kepala .bagian-judul { margin-bottom: 0; }
.tab { display: flex; background: var(--surface-alt); border-radius: var(--r-md); padding: 3px; gap: 3px; flex-wrap: wrap; }
.tab button { border: 0; cursor: pointer; padding: 8px 14px; border-radius: var(--r-sm); font-size: 14px; font-weight: 700; white-space: nowrap; background: transparent; color: var(--text-muted); }
.tab button.aktif { background: var(--card); color: var(--text); box-shadow: var(--sh-sm); }
.agenda { overflow: hidden; }
.agenda-baris { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.agenda-baris:last-child { border-bottom: 0; }
.agenda-baris[hidden] { display: none; }
.agenda-tanggal { width: 88px; height: 88px; border-radius: var(--r-md); background: var(--primary-soft); color: var(--primary-dark); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px; }
.agenda-tanggal span { font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.agenda-tanggal strong { font-size: 15px; font-weight: 800; text-align: center; line-height: 18px; }
.agenda-isi { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.agenda-kat { font-size: 12px; font-weight: 700; color: var(--accent-dark); }
.agenda-judul { font-size: 20px; line-height: 26px; font-weight: 700; }
.agenda-tempat { font-size: 14px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.agenda + .catatan { margin: 12px 0 0; }
@media (max-width: 640px) {
  .agenda-baris { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .agenda-tanggal { width: 72px; height: 72px; }
  .agenda-tempat { grid-column: 2; white-space: normal; }
}

/* ---------- bahasa ---------- */
.grid-dua { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; align-items: start; }
.kosakata { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.kosakata-kepala { display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 700; }
.kartu-balik { all: unset; cursor: pointer; min-height: 220px; border-radius: var(--r-md); background: var(--surface-alt); border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; }
.kartu-balik:focus-visible { outline: 3px solid var(--accent); }
.kartu-balik.terbalik { background: var(--accent-soft); }
.kartu-kata { font-size: 36px; line-height: 42px; font-weight: 800; letter-spacing: -.5px; }
.kartu-aksara { font-family: var(--batak); font-size: 26px; color: var(--primary); min-height: 32px; }
.frasa { overflow: hidden; }
.frasa-kepala, .frasa-baris { display: flex; gap: 12px; padding: 12px 16px; }
.frasa-kepala { padding: 10px 16px; background: var(--surface-alt); font-size: 12px; font-weight: 700; color: var(--text-muted); }
.frasa-baris { border-top: 1px solid var(--border); font-size: 15px; }
.frasa-kepala > *, .frasa-baris > * { flex: 1; }
.frasa-baris span { color: var(--text-muted); }

/* ---------- aksara ---------- */
.huruf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.huruf-grid button { cursor: pointer; height: 88px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--card); color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; box-shadow: var(--sh-sm); }
.huruf-grid button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.huruf-grid .g { font-family: var(--batak); font-size: 30px; line-height: 40px; }
.huruf-grid .n { font-size: 12px; font-weight: 700; }
.aksara-kanan { display: flex; flex-direction: column; gap: 16px; }
.aksara-detail, .penulis { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.aksara-pilih { display: flex; align-items: center; gap: 16px; }
.aksara-pilih > div { display: flex; flex-direction: column; gap: 2px; }
.aksara-induk { width: 88px; height: 88px; border-radius: var(--r-md); background: var(--primary-soft); color: var(--primary-dark); display: flex; align-items: center; justify-content: center; font-family: var(--batak); font-size: 48px; flex: none; }
.aksara-nama { font-size: 28px; line-height: 34px; font-weight: 700; }
.varian { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.varian:empty { display: none; }
.varian div { border-radius: var(--r-sm); background: var(--surface-alt); padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.varian .g { font-family: var(--batak); font-size: 26px; line-height: 34px; }
.varian .n { font-size: 12px; font-weight: 700; }
.varian .d { font-size: 10px; color: var(--text-muted); }
.penulis label { font-size: 16px; font-weight: 700; }
.penulis input { padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--bg); font-size: 16px; color: var(--text); outline: none; }
.penulis input:focus { border-color: var(--primary); }
.penulis-hasil { min-height: 72px; border-radius: var(--r-md); background: var(--primary-soft); color: var(--primary-dark); padding: 12px 16px; font-family: var(--batak); font-size: 36px; line-height: 48px; word-break: break-all; }

/* ---------- legal ---------- */
.legal { max-width: 760px; padding-top: 40px; padding-bottom: 48px; font-size: 16px; line-height: 26px; }
.legal h2 { font-size: 34px; line-height: 40px; font-weight: 800; letter-spacing: -.5px; margin: 16px 0 12px; }
.legal h3 { font-size: 20px; line-height: 26px; margin: 28px 0 6px; }
.legal p, .legal ul { margin: 0 0 12px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal-bahasa { display: flex; gap: 6px; }
.legal-bahasa a { padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface-alt); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.legal-bahasa a[aria-current] { background: var(--primary); color: #fff; }

/* ---------- kaki ---------- */
.kaki { border-top: 1px solid var(--border); margin-top: 48px; }
.kaki-dalam { max-width: 1160px; margin: 0 auto; padding: 28px 20px 8px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; align-items: center; font-size: 14px; color: var(--text-muted); }
.kaki-dalam strong { color: var(--text); }
.kaki-tautan, .kaki-legal { display: flex; gap: 16px; flex-wrap: wrap; }
.kaki-legal { padding-top: 8px; padding-bottom: 28px; justify-content: flex-start; }
.kaki-legal a { color: var(--text-muted); }
.kaki-legal a:hover { color: var(--text); }

/* ---------- foto: kredit dan sumber ---------- */
figure { margin: 0; }
.beranda-foto, .kartu-foto, .sejarah-foto, .agenda-foto, .aksara-foto, .peta { position: relative; overflow: hidden; }
.kredit { position: absolute; right: 0; bottom: 0; max-width: 100%; padding: 3px 8px; font-size: 10px; line-height: 14px; color: #fff; background: rgba(0, 0, 0, .55); border-top-left-radius: 8px; }
.kredit a { color: #fff; text-decoration: underline; }
.sumber { margin: 6px 0 0; font-size: 12px; line-height: 17px; color: var(--text-muted); }
.sumber a { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 2px; }
.bagian > .sumber { margin-top: 14px; }
.kosong { padding: 20px; color: var(--text-muted); margin: 0; }

/* ---------- berita ---------- */
.grid-berita { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.berita { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.berita-atas { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 700; color: var(--text-muted); }
.berita-sumber { color: var(--accent-dark); text-transform: uppercase; letter-spacing: .5px; }
.berita h3 { margin: 0; font-size: 18px; line-height: 24px; }
.berita h3 a { color: var(--text); }
.berita h3 a:hover { color: var(--primary); }
.berita blockquote { margin: 0; padding: 2px 0 2px 12px; border-left: 3px solid var(--primary-soft); font-size: 14px; line-height: 21px; color: var(--text-muted); font-style: italic; }
.berita-lanjut { margin-top: auto; font-size: 14px; font-weight: 600; }
#berita > .catatan, #cuaca > .catatan { margin: 12px 0 0; }

/* ---------- cuaca ---------- */
.grid-cuaca { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.cuaca { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.cuaca h3 { margin: 0; font-size: 17px; }
.cuaca-kini { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 20px; }
.cuaca-kini strong { font-size: 26px; font-weight: 800; }
.cuaca-ikon { font-size: 40px; line-height: 1; }
.cuaca-hari { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 8px; }

/* ---------- geografi ---------- */
.geografi { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; align-items: start; }
.peta-kolom { position: sticky; top: 90px; }
.peta { padding: 12px; background: var(--card); }
.peta img { width: 100%; height: auto; border-radius: var(--r-md); }
.peta .kredit { right: 12px; bottom: 12px; border-bottom-right-radius: var(--r-md); }
@media (max-width: 760px) { .peta-kolom { position: static; } }
.legenda { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--text-muted); }
.legenda li { display: flex; align-items: center; gap: 6px; }
.legenda li.utama { color: var(--text); font-weight: 800; }
.legenda span { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(0,0,0,.15); }
.wilayah-daftar { display: flex; flex-direction: column; gap: 12px; }
.wilayah { padding: 16px 18px; }
.wilayah-atas { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wilayah h3 { margin: 0; font-size: 18px; }
.wilayah p { margin: 6px 0 0; font-size: 15px; line-height: 22px; }

/* ---------- agenda & aksara: foto lebar ---------- */
.agenda-foto { height: 260px; border-radius: var(--r-lg); margin-bottom: 16px; box-shadow: var(--sh-sm); }
.agenda-foto img, .aksara-foto img { width: 100%; height: 100%; object-fit: cover; }
.aksara-kepala { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; align-items: center; margin-bottom: 24px; }
.aksara-kepala .bagian-judul { margin-bottom: 0; }
.aksara-foto { height: 200px; border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.penulis-dua { margin-top: 20px; }

/* ---------- suara ---------- */
.suara { border: 0; background: none; cursor: pointer; font-size: 15px; padding: 0 4px; line-height: 1; vertical-align: baseline; }
.suara:hover { transform: scale(1.15); }
.suara-besar { flex: 0 0 auto !important; padding-left: 16px; padding-right: 16px; }
[hidden] { display: none !important; }

/* ---------- Surat Karo → Latin ---------- */
.balik-masukan { padding: 10px 14px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--bg); font-family: var(--batak); font-size: 30px; line-height: 42px; color: var(--text); resize: vertical; outline: none; }
.balik-masukan:focus { border-color: var(--primary); }
.papan { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 4px; }
.papan button { height: 40px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--card); cursor: pointer; font-size: 15px; color: var(--text); }
.papan button:hover { background: var(--surface-alt); }
.papan button.btx { font-family: var(--batak); font-size: 22px; }
.papan button.anak { color: var(--primary-dark); background: var(--primary-soft); }
.papan button.lebar { grid-column: span 3; }
.penulis-latin { min-height: 56px; border-radius: var(--r-md); background: var(--accent-soft); padding: 12px 16px; font-size: 24px; line-height: 32px; font-weight: 700; word-break: break-word; }

/* ---------- pemberitahuan cookie ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30; max-width: 640px; margin: 0 auto; display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: 0 10px 30px rgba(27, 42, 74, .18); }
.cookie p { margin: 0; font-size: 14px; line-height: 20px; }
.cookie a { text-decoration: underline; }
.cookie .tombol { padding: 10px 16px; font-size: 14px; flex: none; }
@media (max-width: 480px) { .cookie { flex-direction: column; align-items: stretch; } }
.kaki-legal span { color: var(--text-muted); }

/* ---------- pemilih bahasa ---------- */
.pilih-bahasa { display: flex; gap: 2px; background: var(--surface-alt); border-radius: var(--r-pill); padding: 3px; flex: none; }
.pilih-bahasa a { padding: 5px 9px; border-radius: var(--r-pill); font-size: 12px; font-weight: 800; letter-spacing: .4px; color: var(--text-muted); }
.pilih-bahasa a:hover { color: var(--text); background: var(--card); }
.pilih-bahasa a[aria-current] { background: var(--primary); color: #fff; }
.catatan-atas { margin: -12px 0 16px; }
.petunjuk-legal { background: var(--accent-soft); border-radius: var(--r-md); padding: 10px 14px; font-size: 14px; }

/* ---------- agenda yang bisa dilipat ---------- */
.agenda-daftar { display: flex; flex-direction: column; gap: 10px; }
.agenda-item { overflow: hidden; scroll-margin-top: 80px; }
.agenda-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 18px; }
.agenda-item summary::-webkit-details-marker { display: none; }
.agenda-item summary:hover { background: var(--surface-alt); }
.agenda-item summary:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.agenda-item .agenda-tanggal { width: 88px; height: 72px; }
.agenda-ringkas { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.agenda-ringkas .agenda-tempat { font-size: 13px; white-space: normal; }
.panah { font-size: 20px; color: var(--text-muted); transition: transform .2s; }
.agenda-item[open] .panah { transform: rotate(180deg); }
.agenda-item[open] summary { border-bottom: 1px solid var(--border); }
.agenda-buka { display: flex; gap: 18px; padding: 16px 18px 18px; align-items: flex-start; }
.agenda-buka .agenda-isi p { margin: 0 0 8px; font-size: 15px; line-height: 22px; color: var(--text-muted); }
.agenda-buka .tombol { padding: 9px 14px; font-size: 14px; }
.agenda-flyer { flex: 0 0 160px; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-md); }
.agenda-flyer img { width: 100%; height: auto; }
.agenda-item.disorot { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft), var(--sh-sm); }
.agenda-item.lewat { opacity: .6; }
@media (max-width: 640px) {
  .agenda-item summary { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px; }
  .agenda-item .agenda-tanggal { width: 64px; height: 64px; }
  .agenda-item .agenda-tanggal strong { font-size: 12px; line-height: 15px; }
  .agenda-buka { flex-direction: column; }
  .agenda-flyer { flex-basis: auto; width: 60%; }
}

/* ---------- sorotan: kertas tempel di beranda ---------- */
.sorotan { padding-top: 8px; padding-bottom: 32px; }
.papan-tempel { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 28px; padding: 8px 4px; }
.catatan-tempel { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 16px 16px; background: #fff7c7; color: var(--text); border-radius: 4px; box-shadow: 0 10px 22px rgba(27, 42, 74, .16), 0 2px 4px rgba(27, 42, 74, .08); transform: rotate(-2deg); transition: transform .2s, box-shadow .2s; }
.catatan-tempel:nth-child(4n+2) { transform: rotate(1.6deg); background: #ffe9d6; }
.catatan-tempel:nth-child(4n+3) { transform: rotate(-1deg); background: #e3f4ec; }
.catatan-tempel:nth-child(4n+4) { transform: rotate(2.2deg); background: #fff7c7; }
.catatan-tempel:hover { transform: rotate(0) scale(1.03); box-shadow: 0 16px 30px rgba(27, 42, 74, .22); color: var(--text); z-index: 1; }
.catatan-tempel img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.catatan-tempel strong { font-size: 18px; line-height: 23px; }
.tempel-tanggal { font-size: 13px; font-weight: 700; color: var(--accent-dark); }
.tempel-lanjut { font-size: 14px; font-weight: 600; color: var(--primary); margin-top: auto; }
.paku { position: absolute; top: -8px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff9a5a, var(--accent-dark)); box-shadow: 0 2px 3px rgba(0, 0, 0, .3); }

/* ---------- halaman acara ---------- */
.acara-halaman { padding-top: 28px; padding-bottom: 40px; }
.kembali { display: inline-block; margin-bottom: 18px; font-weight: 600; }
.acara-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 36px; align-items: start; }
.acara-teks h1 { margin: 6px 0 10px; font-size: clamp(30px, 5vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -.5px; }
.acara-waktu { font-size: 16px; line-height: 26px; font-weight: 600; margin: 0 0 14px; }
.acara-lengkap { font-size: 16px; line-height: 26px; margin: 12px 0 18px; }
.acara-lengkap h2 { font-size: 22px; margin: 18px 0 6px; }
.acara-lengkap h3 { font-size: 18px; margin: 16px 0 4px; }
.acara-flyer { display: block; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); position: sticky; top: 90px; }
.acara-flyer img { width: 100%; height: auto; }
@media (max-width: 760px) { .acara-flyer { position: static; } }

/* ---------- kertas tempel Ertutur ---------- */
.tempel-ertutur { background: #e3f4ec; }
.tempel-flyer { position: relative; width: 100%; aspect-ratio: 1080 / 1350; overflow: hidden; border-radius: 2px; background: var(--primary-dark); }
.tempel-flyer iframe { position: absolute; left: 0; top: 0; width: 1080px; height: 1350px; border: 0; transform-origin: 0 0; transform: scale(var(--skala, .2)); pointer-events: none; }
.tautan-penuh::after { content: ""; position: absolute; inset: 0; }
.tempel-ertutur:hover { transform: rotate(0) scale(1.03); box-shadow: 0 16px 30px rgba(27, 42, 74, .22); z-index: 1; }

/* ---------- iklan ---------- */
.iklan { margin-top: 24px; margin-bottom: 8px; }
.iklan-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.iklan ins { min-height: 90px; background: var(--surface-alt); border-radius: var(--r-sm); }

/* ---------- slide foto ---------- */
.slide-item { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide-item.aktif { opacity: 1; z-index: 1; }
.slide-item img { width: 100%; height: 100%; object-fit: cover; }
.beranda-foto:not(.slide) .slide-item, .kartu-foto:not(.slide) .slide-item { opacity: 1; }
.slide-titik { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 2; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.kartu-foto .slide-titik { bottom: 22px; }
.slide-titik button { pointer-events: auto; width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 1px 3px rgba(0, 0, 0, .35); cursor: pointer; }
.slide-titik button[aria-current="true"] { background: #fff; width: 22px; border-radius: 5px; }
.slide-item .kredit { z-index: 2; }
@media (prefers-reduced-motion: reduce) { .slide-item { transition: none; } }

/* ---------- huruf dari Admin › Tampilan ---------- */
body { font-family: var(--huruf-teks, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif); }
h1, h2, h3, .logo-nama, .pintasan-judul, .agenda-judul, .kartu-kata, .catatan-tempel strong, .aksara-nama { font-family: var(--huruf-judul, inherit); }

/* ---------- menu berkategori ---------- */
.menu { overflow: visible; }
.menu-grup { position: relative; }
.menu-grup > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--text); user-select: none; }
.menu-grup > summary::-webkit-details-marker { display: none; }
.menu-grup > summary:hover, .menu-grup[open] > summary { background: var(--surface-alt); }
.menu-panah { font-size: 11px; color: var(--text-muted); transition: transform .15s; }
.menu-grup[open] .menu-panah { transform: rotate(180deg); }
.menu-panel { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; min-width: 190px; display: flex; flex-direction: column; padding: 6px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: 0 12px 28px rgba(27, 42, 74, .16); }
.menu .menu-panel a { padding: 10px 12px; border-radius: var(--r-sm); }
.menu .menu-panel a:hover { background: var(--primary-soft); color: var(--primary-dark); }
@media (max-width: 1100px) {
  .menu { flex-wrap: wrap; gap: 2px; }
  .menu-grup > summary { padding: 6px 10px; }
}
@media (max-width: 480px) {
  /* di HP panel melebar selebar layar, di bawah baris menu */
  .menu-grup { position: static; }
  .kepala-nav { position: relative; }
  .menu-panel { left: 12px; right: 12px; top: auto; margin-top: 6px; }
}

/* ---------- jelajah / wisata ---------- */
.jelajah h1 { margin: 0; font-size: clamp(32px, 5vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -.5px; }
.tab-wisata { margin-bottom: 16px; align-self: flex-start; display: inline-flex; }
.peta-besar { height: min(60vh, 520px); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); margin-bottom: 24px; z-index: 0; }
.peta-kecil { height: 280px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); margin-top: 16px; z-index: 0; }
.grid-wisata { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.kartu-wisata { overflow: hidden; display: flex; flex-direction: column; color: var(--text); }
.kartu-wisata:hover { box-shadow: var(--sh-md); color: var(--text); }
.kartu-wisata[hidden] { display: none; }
.kartu-wisata .kartu-foto { height: 190px; }
.kartu-wisata h2, .kartu-wisata h3 { margin: 4px 0 0; font-size: 20px; line-height: 26px; }
.jelajah-lanjut { margin: 18px 0 0; }
.popup-wisata { display: flex; flex-direction: column; gap: 4px; font-family: inherit; }
.popup-wisata img { width: 100%; height: 110px; object-fit: cover; border-radius: 6px; }
.popup-wisata p { margin: 0; font-size: 13px; color: var(--text-muted); }
.popup-wisata .tag { align-self: flex-start; }
.wisata-foto { position: relative; height: 340px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); margin: 0; background: var(--surface-alt); }
.wisata-foto:not(.slide) .slide-item { opacity: 1; }
.info-wisata { display: grid; grid-template-columns: max-content 1fr; gap: 8px 14px; margin: 18px 0; padding: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); font-size: 15px; line-height: 22px; }
.info-wisata:empty { display: none; }
.info-wisata dt { font-weight: 700; }
.info-wisata dd { margin: 0; color: var(--text-muted); }
@media (max-width: 480px) { .info-wisata { grid-template-columns: 1fr; } .info-wisata dd { margin-bottom: 6px; } }
.peringatan { background: #fdecea; border: 1px solid #f5c2bd; color: #7a1f1a; border-radius: var(--r-md); padding: 10px 14px; font-size: 15px; }
.buka-peta { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; }
.leaflet-container { font-family: inherit; }

/* ---------- arsitektur ---------- */
.arsitektur h1 { margin: 0; font-size: clamp(32px, 5vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -.5px; }
.arsitektur-bagian { margin-top: 40px; }
.arsitektur-bagian > h2 { font-size: 28px; line-height: 34px; margin: 0 0 12px; letter-spacing: -.3px; }
.kelompok { font-size: 18px; margin: 20px 0 10px; color: var(--primary-dark); }
.skema { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; align-items: start; }
.skema-gambar { margin: 0; padding: 16px; background: linear-gradient(#eaf3fb, #f7f5ef); border-radius: var(--r-lg); box-shadow: var(--sh-sm); position: sticky; top: 90px; }
.skema-gambar svg { width: 100%; height: auto; display: block; }
@media (max-width: 760px) { .skema-gambar { position: static; } }
.skema-nomor circle { fill: var(--accent); stroke: #fff; stroke-width: 3; }
.skema-nomor text { fill: #fff; font: 800 15px/1 var(--huruf-teks, sans-serif); }
.skema-daftar { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.skema-daftar li { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; }
.skema-daftar p { margin: 2px 0 0; font-size: 15px; line-height: 22px; color: var(--text-muted); }
.skema-angka { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.grid-ornamen { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.ornamen .kartu-foto { height: 150px; position: relative; overflow: hidden; margin: 0; }
.ornamen .kartu-foto img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- tombol Bagikan ---------- */
.bagikan { position: relative; flex: none; }
.bagikan > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700; color: var(--text); background: var(--surface-alt); }
.bagikan > summary::-webkit-details-marker { display: none; }
.bagikan > summary:hover, .bagikan[open] > summary { background: var(--primary-soft); color: var(--primary-dark); }
.bagikan svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.bagikan svg circle { fill: currentColor; stroke: none; }
.bagikan-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 25; min-width: 190px; display: flex; flex-direction: column; padding: 6px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: 0 12px 28px rgba(27, 42, 74, .16); }
.bagikan-panel a, .bagikan-panel button { padding: 9px 12px; border-radius: var(--r-sm); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; text-align: left; background: none; border: 0; cursor: pointer; }
.bagikan-panel a:hover, .bagikan-panel button:hover { background: var(--primary-soft); color: var(--primary-dark); }
@media (max-width: 1100px) { .bagikan { margin-left: auto; } .pilih-bahasa { margin-left: 0; } }
@media (max-width: 480px) { .bagikan > summary span { display: none; } }
