:root {
  --red: #dd3333;
  --teal: #2299aa;
  --bg: #f7f7f7;
  --card: #ffffff;
  --ink: #222222;
  --text: #313131;
  --muted: #7a7a7a;
  --line: #eeeeee;
  --topbar: #eeeeee;
  --foot: #1b1b1b;
  --shadow: 0 2px 10px rgba(0,0,0,.06);
  --head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --body: "Roboto", "Segoe UI", system-ui, sans-serif;
}
:root[data-theme="dark"] {
  --bg: #121212;
  --card: #1c1c1c;
  --ink: #f1f1f1;
  --text: #d6d6d6;
  --muted: #9a9a9a;
  --line: #2c2c2c;
  --topbar: #0c0c0c;
  --foot: #0a0a0a;
  --shadow: 0 2px 10px rgba(0,0,0,.5);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.6 var(--body); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); margin: 0; line-height: 1.35; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.wrap { width: min(960px, 100% - 32px); margin-inline: auto; }


/* ---------- Kepala ---------- */
.topbar { background: var(--topbar); font: 600 12.5px/1 var(--head); color: var(--ink); }
.topbar .wrap { display: flex; align-items: center; gap: 14px; height: 28px; }
.btn-menu { display: none; border: 1.5px solid var(--ink); border-radius: 4px; padding: 3px 7px; font: 700 11px/1 var(--head); letter-spacing: .04em; }
.site-head { background: var(--card); box-shadow: 0 2px 6px rgba(0,0,0,.07); position: sticky; top: 0; z-index: 30; }
.site-head .wrap { display: flex; align-items: center; gap: 28px; min-height: 66px; }
.logo { display: flex; align-items: center; gap: 6px; flex: none; }
.logo img { width: 54px; height: 56px; object-fit: contain; }
.logo b { display: block; font: 800 9px/1 var(--head); color: #b8860b; letter-spacing: .02em; }
.logo strong { display: block; font: 800 15px/1.05 var(--head); color: #0f2a5c; letter-spacing: -.01em; }
.logo i { display: block; font: 700 8.5px/1.2 var(--head); font-style: normal; background: linear-gradient(90deg,#b8860b,#e5c25a); color: #0f2a5c; letter-spacing: .04em; text-transform: uppercase; padding: 1px 4px; margin-top: 2px; border-radius: 2px; }
.nav { display: flex; flex-wrap: wrap; gap: 0 20px; flex: 1; font: 700 14px/1 var(--head); color: var(--ink); }
.nav a { padding: 8px 0; position: relative; }
.nav a.on { color: var(--red); }
.nav a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--red); }
.tools { display: flex; align-items: center; gap: 0; flex: none; }
.tools button { width: 42px; height: 42px; display: grid; place-items: center; }
.tools .sep { width: 1px; height: 32px; background: var(--line); margin: 0 6px; }
.tools svg { width: 19px; height: 19px; fill: var(--ink); }
.searchbox { display: none; background: var(--card); border-top: 1px solid var(--line); }
.searchbox.open { display: block; }
.searchbox form { display: flex; gap: 8px; padding: 10px 0; }
.searchbox input { flex: 1; font: 15px var(--body); padding: 9px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); }
.searchbox button { background: var(--red); color: #fff; padding: 0 16px; border-radius: 4px; font: 700 13px var(--head); }

.ticker { overflow: hidden; white-space: nowrap; font: 500 13.5px/1 var(--head); color: var(--text); padding: 12px 0 10px; }
.ticker__run { display: inline-flex; gap: 48px; animation: jalan 60s linear infinite; padding-left: 100%; }
.ticker__run a::before { content: "\2022"; color: var(--red); margin-right: 10px; }
.ticker:hover .ticker__run { animation-play-state: paused; }
@keyframes jalan { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker__run { animation: none; padding-left: 0; } }

main.wrap { background: var(--card); min-height: 70vh; padding: 20px 20px 30px; width: min(1000px, 100%); }

/* ---------- Unsur umum ---------- */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font: 400 11.5px/1.4 var(--head); color: var(--muted); }
.meta .t::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--red)); margin-right: 5px; vertical-align: 1px; }
.meta .v::before { content: ""; display: inline-block; width: 13px; height: 9px; margin-right: 5px; vertical-align: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 18'%3E%3Cpath d='M13 1C7 1 2.5 5 1 9c1.5 4 6 8 12 8s10.5-4 12-8c-1.5-4-6-8-12-8z' fill='none' stroke='%23dd3333' stroke-width='2.4'/%3E%3Ccircle cx='13' cy='9' r='3.6' fill='%23dd3333'/%3E%3C/svg%3E") no-repeat center / contain; }
.meta .a::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--teal); margin-right: 5px; vertical-align: -1px; box-sizing: border-box; }
.thumb { position: relative; overflow: hidden; border-radius: 6px; background: #ccc; }
.thumb svg { width: 100%; height: 100%; transition: transform .4s; }
a:hover .thumb svg { transform: scale(1.05); }
.badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: #1b1b1b; color: #fff; font: 700 12px/1 var(--head); padding: 7px 10px; border-radius: 4px; }
.badge.sm { top: 8px; left: 8px; font-size: 11px; padding: 5px 8px; }
.sec-title { font: 700 19px/1.2 var(--head); color: var(--ink); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.sec-title::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--red) 0 40px, var(--line) 40px); }
.sec-title.plain::after { display: none; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Bagian utama ---------- */
.top { display: grid; grid-template-columns: minmax(0, 1fr) 304px; gap: 16px; }
.slider { position: relative; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: #333; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.slide.on { opacity: 1; z-index: 1; }
.slide svg { width: 100%; height: 100%; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0,0,0,.78)); }
.slide__txt { position: absolute; left: 30px; right: 30px; bottom: 30px; z-index: 2; color: #fff; }
.slide__txt .meta { color: #eee; margin-bottom: 6px; font-size: 13px; }
.slide__txt h2 { color: #fff; font-size: clamp(19px, 2.6vw, 25px); font-weight: 800; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.dots { position: absolute; right: 18px; bottom: 16px; z-index: 3; display: flex; gap: 6px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.55); }
.dots button.on { background: #fff; }
.slider { touch-action: pan-y; }
.hitung { position: absolute; right: 14px; top: 14px; z-index: 3; background: rgba(0,0,0,.6); color: #fff; font: 700 12px/1 var(--head); padding: 6px 9px; border-radius: 4px; }

.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
.card .thumb { aspect-ratio: 3 / 2; margin-bottom: 10px; }
.card h3 { font-size: 15.5px; font-weight: 700; margin: 4px 0 6px; }

.pop .item { display: grid; grid-template-columns: 1fr 90px; gap: 12px; padding: 0 0 18px; }
.pop .item h3 { font-size: 15px; font-weight: 800; margin: 3px 0 6px; text-transform: uppercase; }
.pop .item .thumb { width: 90px; height: 67px; border-radius: 6px; margin-top: 14px; }

.strip { margin: 22px 0 26px; border-top: 2px solid var(--red); box-shadow: var(--shadow); border-radius: 0 0 6px 6px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 16px; }
.strip a { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: center; }
.strip .thumb { width: 90px; height: 90px; border-radius: 50%; }
.strip h3 { font-size: 14.5px; font-weight: 700; margin-top: 3px; }

.tri { display: grid; grid-template-columns: 210px minmax(0, 1fr) 260px; gap: 18px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.overlay { position: relative; display: block; border-radius: 6px; overflow: hidden; aspect-ratio: 210 / 245; margin-bottom: 10px; }
.overlay svg { width: 100%; height: 100%; }
.overlay::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(0,0,0,.85)); }
.overlay .in { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; color: #fff; }
.overlay h3 { color: #fff; font-size: 15px; font-weight: 700; margin: 3px 0 4px; }
.overlay .meta { color: #ddd; }
.listx .item { padding: 0 0 14px; }
.listx h3 { font-size: 14.5px; font-weight: 700; margin: 3px 0 5px; }
.hib .lead .thumb { aspect-ratio: 3 / 2; margin-bottom: 10px; }
.hib .lead h3 { font-size: 14.5px; font-weight: 700; margin: 3px 0 5px; }
.hib .item { display: grid; grid-template-columns: 1fr 80px; gap: 10px; padding: 12px 0 0; }
.hib .item h3 { font-size: 14px; font-weight: 700; margin: 3px 0 5px; }
.hib .item .thumb { width: 80px; height: 56px; margin-top: 16px; }

.bottom { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; padding-top: 26px; }
.feed .item { display: grid; grid-template-columns: 200px 1fr; gap: 22px; padding-bottom: 24px; }
.feed .thumb { aspect-ratio: 3 / 2; }
.feed h3 { font-size: 18px; font-weight: 700; margin: 6px 0 8px; }
.latest { border-left: 1px solid var(--line); padding-left: 18px; }
.latest .item { display: grid; grid-template-columns: 1fr 80px; gap: 10px; padding-bottom: 14px; }
.latest h3 { font-size: 13.5px; font-weight: 700; margin: 3px 0 5px; }
.latest .thumb { width: 80px; height: 56px; margin-top: 14px; }
.pager { display: flex; align-items: center; gap: 6px; margin-top: 20px; font: 700 13px/1 var(--head); }
.pager button { width: 32px; height: 32px; border-radius: 50%; background: var(--line); color: var(--ink); }
.pager button.on { background: #1b1b1b; color: #fff; }
:root[data-theme="dark"] .site-head .logo strong { color: #f1d27a; }
:root[data-theme="dark"] .pager button.on { background: var(--red); }

/* ---------- Halaman kategori / berita / statis ---------- */
.crumb { font: 500 12.5px/1.4 var(--head); color: var(--muted); margin-bottom: 12px; }
.crumb a { color: var(--red); }
.art h1 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; margin: 6px 0 12px; }
.art .hero { aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; margin: 16px 0 6px; }
.art .hero svg { width: 100%; height: 100%; }
.art figcaption { font-size: 12.5px; color: var(--muted); font-style: italic; margin-bottom: 18px; }
.art p { margin: 0 0 16px; font-size: 16.5px; line-height: 1.75; }
.art .kota { font-weight: 700; color: var(--ink); }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; padding: 14px 0; border-block: 1px solid var(--line); font: 700 12.5px var(--head); align-items: center; }
.share span { padding: 7px 12px; border-radius: 4px; color: #fff; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tags span { font: 600 12px var(--head); background: var(--line); color: var(--ink); padding: 5px 10px; border-radius: 3px; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related h3 { font-size: 14px; }
.page h1 { font-size: 26px; font-weight: 800; margin-bottom: 14px; }
.page h2 { font-size: 17px; margin: 22px 0 8px; }
.page p, .page li { font-size: 15.5px; line-height: 1.75; }
.form { display: grid; gap: 10px; max-width: 520px; }
.form input, .form textarea { font: 15px var(--body); padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); }
.form button { justify-self: start; background: var(--red); color: #fff; padding: 10px 20px; border-radius: 4px; font: 700 13.5px var(--head); }
.empty { padding: 30px 0; color: var(--muted); }

/* ---------- Kaki ---------- */
footer { background: var(--foot); color: #cfcfcf; margin-top: 0; }
footer .wrap { width: min(1000px, 100%); padding: 40px 20px 0; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; padding-bottom: 36px; }
.foot-grid .logo strong { color: #fff; }
.foot-grid .logo { background: #fff; padding: 8px 12px; border-radius: 4px; display: inline-flex; }
.foot-grid .logo strong { color: #222; }
.foot-grid p { font-size: 13.5px; line-height: 1.7; margin: 14px 0 0; }
.foot-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; font: 500 13px/1 var(--head); }
.foot-menu a { display: block; padding: 8px 0; color: #e6e6e6; }
.foot-menu a:hover { color: #fff; text-decoration: underline; }
.copy { border-top: 1px solid #2c2c2c; padding: 16px 0 20px; text-align: center; font: 500 11.5px/1.6 var(--head); letter-spacing: .03em; color: #9a9a9a; }

.drawer { position: fixed; inset: 0; z-index: 50; display: none; }
.drawer.open { display: block; }
.drawer__bg { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.drawer__panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(290px, 82vw); background: var(--card); padding: 18px 20px; overflow-y: auto; }
.drawer__panel nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font: 700 15px var(--head); color: var(--ink); }
.drawer__panel nav a.on { color: var(--red); }
.drawer__close { float: right; font: 700 22px/1 var(--head); width: 36px; height: 36px; }

/* ---------- Layar sempit ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .btn-menu { display: inline-block; }
  .site-head .wrap { justify-content: space-between; }
  .top, .bottom { grid-template-columns: minmax(0, 1fr); }
  .tri { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tri .hib { grid-column: 1 / -1; }
  .latest { border-left: 0; padding-left: 0; }
}
@media (max-width: 640px) {
  main.wrap { padding: 16px 16px 26px; }
  .site-head .wrap { gap: 8px; }
  .logo { min-width: 0; }
  .logo img { width: 42px; height: 44px; }
  .logo strong { font-size: 13px; }
  .logo i { font-size: 7.5px; }
  .tools button { width: 36px; }
  .tools .sep { margin: 0 2px; }
  .slider { aspect-ratio: 4 / 3; }
  .slide__txt { left: 16px; right: 16px; bottom: 34px; }
  .three { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; scroll-padding-inline: 16px; }
  .three .card { flex: 0 0 64%; scroll-snap-align: start; }
  .pop { margin-top: 20px; }
  .strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .strip a { flex: 0 0 86%; scroll-snap-align: start; }
  .tri { grid-template-columns: minmax(0, 1fr); }
  .tri .overlay { aspect-ratio: 4 / 3; }
  .feed .item { grid-template-columns: 120px 1fr; gap: 14px; padding-bottom: 18px; }
  .feed h3 { font-size: 15px; margin-top: 2px; }
  .related { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .art p { font-size: 16px; }
}

/* ---------- Tambahan versi CMS ---------- */
.thumb img, .slide img, .overlay img, .art .hero img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
a:hover .thumb img { transform: scale(1.05); }
.ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(160deg, #1b3a7a, #0b1d42); }
.ph img { width: 34% !important; height: auto !important; max-width: 120px; object-fit: contain !important; opacity: .9; }
.art .isi img { border-radius: 6px; height: auto; margin: 6px 0; }
.art .isi h2 { font-size: 21px; margin: 22px 0 10px; }
.art .isi h3 { font-size: 18px; margin: 18px 0 8px; }
.art .isi blockquote { margin: 0 0 16px; padding: 4px 0 4px 16px; border-left: 4px solid var(--red); font-style: italic; }
.art .isi a { color: var(--red); text-decoration: underline; }
.art .isi ul, .art .isi ol { font-size: 16.5px; line-height: 1.75; }
.art .isi iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; margin-bottom: 16px; }
.art .isi figure { margin: 0 0 16px; }
.art .isi figcaption { margin: 4px 0 0; }
.art .tgl { font: 500 12.5px var(--head); color: var(--muted); margin: -4px 0 8px; }
.share a { padding: 7px 12px; border-radius: 4px; color: #fff !important; }
.share .ig { padding: 7px 12px; border-radius: 4px; color: #fff; font: inherit; background: linear-gradient(45deg, #f58529, #dd2a7b 50%, #8134af); cursor: pointer; }
.share .share__pesan { flex-basis: 100%; padding: 4px 0 0; font-weight: 600; color: var(--ink); }
.share .share__pesan:empty { display: none; }
.pager a, .pager span.on { width: 32px; height: 32px; border-radius: 50%; background: var(--line); color: var(--ink); display: inline-grid; place-items: center; }
.pager span.on { background: #1b1b1b; color: #fff; }
.pager .lebar { width: auto; padding: 0 14px; border-radius: 16px; }
.catatan { padding: 10px 14px; border-radius: 4px; background: #e8f6ec; color: #1d5b2c; margin-bottom: 14px; font-weight: 500; }
.catatan.galat { background: #fdecec; color: #8a1c1c; }

/* Foto: bingkai beranda dipenuhi mulai dari atas foto, halaman berita tampil utuh. */
.thumb img.foto, .slide img.foto, .overlay img.foto { object-position: center top; }
.art .hero { aspect-ratio: auto; background: none; }
.art .hero img.foto { height: auto; object-fit: initial; }
/* Judul di atas foto tetap terbaca walau foto berisi tulisan (poster). */
.slide::after { background: linear-gradient(transparent 20%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.92) 80%); }
.overlay::after { background: linear-gradient(transparent 15%, rgba(0,0,0,.6) 45%, rgba(0,0,0,.94) 80%); }
