:root {
    --green: #00695c;
    --green-dark: #004d40;
    --red: #c62828;
    /* Turunan warna tema (Tampilan → Tema): dihitung dari --green / --green-dark / --red */
    --green-soft: color-mix(in srgb, var(--green) 12%, #fff);
    --green-tint: color-mix(in srgb, var(--green) 6%, #fff);
    --green-line: color-mix(in srgb, var(--green) 22%, #fff);
    --green-deep: color-mix(in srgb, var(--green-dark) 55%, #000);
    --on-dark: color-mix(in srgb, var(--green) 14%, #fff);
    --on-dark-muted: color-mix(in srgb, var(--green) 32%, #fff);
    --red-dark: color-mix(in srgb, var(--red) 80%, #000);
    --red-soft: color-mix(in srgb, var(--red) 9%, #fff);
    --red-line: color-mix(in srgb, var(--red) 25%, #fff);
    --ink: #1b1f1e;
    --muted: #5f6b68;
    --line: #e3e8e6;
    --bg: #fafafa;
    --card: #ffffff;
    --radius: 12px;
    --wrap: 1180px;
    --serif: var(--sans); /* judul pakai font sistem (sama seperti satlantaskukar) */
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.6; }
a { color: var(--green); text-decoration: none; transition: color .3s ease; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* Header */
/* Topbar (Dashboard → Tampilan → Header) */
.topbar { background: var(--green-dark); color: var(--green-soft); font-size: .8rem; }
.topbar--red { background: var(--red-dark); color: var(--red-soft); }
.topbar--light { background: var(--green-tint); color: var(--green-dark); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: inherit; }
.topbar a:hover { text-decoration: underline; }
.tb-side { display: flex; align-items: center; gap: 6px 16px; min-width: 0; flex-wrap: wrap; }
.tb-right { justify-content: flex-end; margin-left: auto; }
.tb-item { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.tb-tagline { opacity: .85; }
.tb-social a { display: inline-grid; place-items: center; width: 22px; height: 22px; }
.tb-social svg { width: 15px; height: 15px; }
.tb-running { flex: 1 1 320px; min-width: 200px; }
.tb-running-label { flex: none; padding: 1px 8px; border-radius: 999px; background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.topbar--red .tb-running-label { background: #ffcc80; color: #4e1010; }
.tb-running-track { position: relative; overflow: hidden; flex: 1; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.tb-running-text { display: inline-block; padding-left: 100%; animation: tb-run 22s linear infinite; }
.tb-running-track:hover .tb-running-text { animation-play-state: paused; }
@keyframes tb-run { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .tb-running-text { animation: none; padding-left: 0; } .tb-running-track { white-space: normal; } }

/* Header utama: sticky / shrink / bayangan / tinggi logo diatur di dashboard */
.site-header { background: var(--card); border-bottom: 3px solid var(--green); z-index: 20; transition: box-shadow .2s ease; }
.site-header.no-border { border-bottom-color: transparent; }
.site-header.is-sticky { position: sticky; top: 0; }
.site-header.has-shadow.is-scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, .09); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: calc(var(--logo-h, 48px) + 24px); transition: min-height .2s ease; }
.brand img { height: var(--logo-h, 48px); width: auto; transition: height .2s ease; }
.site-header.is-compact .wrap { min-height: calc(var(--logo-h, 48px) * .7 + 16px); }
.site-header.is-compact .brand img { height: calc(var(--logo-h, 48px) * .7); }

/* Tampil di: HP saja / layar besar saja (menu, topbar, kolom cari) */
@media (min-width: 901px) { .only-phone { display: none !important; } }
@media (max-width: 900px) { .only-desktop { display: none !important; } .topbar .wrap { justify-content: center; } .tb-right { margin-left: 0; } }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--ink); font-weight: 600; font-size: .92rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a.is-active { background: var(--green-soft); color: var(--green-dark); }
.nav .has-sub { position: relative; display: flex; }
.nav .sub { display: none; position: absolute; top: 100%; left: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; min-width: 200px; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { display: block; }
.nav .sub a { display: block; border-radius: 8px; }
.search-form { display: flex; }
.search-form input { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; width: 190px; font: inherit; background: var(--bg); }
.menu-toggle { display: none; place-items: center; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 0; border-radius: 12px; background: none; color: var(--green-dark); cursor: pointer; transition: background-color .25s ease; }
.menu-toggle:hover, .menu-toggle:focus-visible { background: var(--green-soft); }
.menu-toggle svg path { transition: transform .25s ease, opacity .2s ease; transform-origin: 12px 12px; }
/* Saat menu terbuka: garis tiga jadi silang (X) */
.menu-toggle[aria-expanded="true"] .mt-1 { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .mt-2 { opacity: 0; }
.menu-toggle[aria-expanded="true"] .mt-3 { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 900px) {
    .menu-toggle { display: grid; }
    .nav, .site-header .search-form { display: none; }
    .site-header.open .wrap { flex-wrap: wrap; }
    .site-header.open .nav { display: flex; flex-direction: column; width: 100%; padding-bottom: 12px; }
    .site-header.open .nav { align-items: stretch; gap: 2px; }
    .site-header.open .nav > a, .site-header.open .nav .has-sub > a, .site-header.open .nav .sub-title { display: block; text-align: left; border-radius: 10px; }
    .site-header.open .nav .has-sub { flex-direction: column; align-items: stretch; }
    .site-header.open .nav .sub { display: block; position: static; min-width: 0; margin: 2px 0 6px 14px; padding: 0 0 0 10px; border: 0; border-left: 2px solid var(--green-line); border-radius: 0; background: none; box-shadow: none; }
    .site-header.open .nav .sub a { padding: 8px 12px; font-weight: 500; }
    .site-header.open .search-form { display: flex; width: 100%; padding-bottom: 12px; }
    .site-header.open .search-form input { width: 100%; }
}

/* Layout */
main { padding: 28px 0 48px; }
.section-title { font-family: var(--serif); font-size: 1.4rem; margin: 0 0 16px; padding-left: 12px; border-left: 4px solid var(--red); }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.with-side { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr) 320px; }
@media (max-width: 900px) { .with-side { grid-template-columns: 1fr; } }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.07); }
.card .thumb { aspect-ratio: 16/10; background: var(--green-soft) center/cover no-repeat; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.card h3 { font-family: var(--serif); font-size: 1.05rem; line-height: 1.35; margin: 0; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--green); }
.meta { color: var(--muted); font-size: .8rem; }

.headline { display: grid; grid-template-columns: 1.4fr 1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; }
.headline .thumb { position: relative; min-height: 340px; background: var(--green-soft); }
.headline .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.headline .body { padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.headline h2 { font-family: var(--serif); font-size: 1.8rem; line-height: 1.25; margin: 0; }
.headline h2 a { color: var(--ink); }
.badge { align-self: flex-start; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
@media (max-width: 760px) { .headline { grid-template-columns: 1fr; } .headline .thumb { min-height: 200px; } .headline h2 { font-size: 1.4rem; } }

/* Sidebar */
.widget { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 20px; }
.widget h4 { margin: 0 0 10px; font-size: 1rem; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; }
.widget li:last-child { border-bottom: 0; }

/* Article */
.article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px clamp(16px, 4vw, 40px); }
.article h1 { font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2.2rem); line-height: 1.25; margin: 8px 0 10px; }
.article .cover { margin: 0 0 1.3rem; border-radius: 12px; overflow: hidden; } /* gambar fitur di atas judul, 16:9 (seperti satlantaskukar) */
.prose { font-size: 1.06rem; line-height: 1.8; overflow-wrap: anywhere; }
.prose img { border-radius: 8px; margin: 14px auto; }
.prose figure { margin: 18px 0; }
.prose figcaption { color: var(--muted); font-size: .85rem; text-align: center; }
.prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 8px; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; }
.prose blockquote { border-left: 4px solid var(--green); margin: 16px 0; padding: 6px 16px; background: var(--green-tint); }
.prose .img-left { float: left; margin: 0 16px 10px 0; max-width: 50%; }
.prose .img-right { float: right; margin: 0 0 10px 16px; max-width: 50%; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags a { background: var(--green-soft); color: var(--green-dark); padding: 4px 12px; border-radius: 999px; font-size: .82rem; }
.share { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.share a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .85rem; color: var(--ink); }

/* Pagination */
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; text-align: center; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.pager .current { background: var(--green); border-color: var(--green); color: #fff; }

/* Footer */
.site-footer { background: var(--green-dark); color: var(--on-dark); padding: 36px 0 0; font-size: .9rem; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; gap: 24px; grid-template-columns: 2fr 1fr 1fr; }
/* Pita paling bawah (hak cipta) lebih gelap, selebar layar */
.site-footer .footer-bottom { margin-top: 28px; background: var(--green-deep); }
.site-footer .copy { padding-top: 14px; padding-bottom: 14px; color: var(--on-dark-muted); font-size: .8rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }
.empty { text-align: center; color: var(--muted); padding: 48px 0; }

/* Linked images in a row (e-Paper covers, galleries from WordPress page builder) */
.prose > a:has(> img) { display: inline-block; width: calc(25% - 12px); margin: 6px; vertical-align: top; }
.prose > a:has(> img) img { margin: 0; box-shadow: 0 4px 14px rgba(0,0,0,.12); transition: transform .15s; }
.prose > a:has(> img):hover img { transform: translateY(-3px); }
@media (max-width: 640px) { .prose > a:has(> img) { width: calc(50% - 12px); } }
.card .thumb { display: block; position: relative; }
.card .thumb img { position: absolute; inset: 0; }
.article .cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* Jadwal Kegiatan */
.agenda-list { display: grid; gap: 16px; }
.agenda-item { display: grid; grid-template-columns: 84px minmax(0, 1fr) 300px; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; align-items: start; }
.agenda-date { background: var(--green); color: #fff; border-radius: 10px; text-align: center; padding: 10px 6px; }
.agenda-date strong { display: block; font-size: 1.8rem; line-height: 1; }
.agenda-date span { font-size: .78rem; }
.agenda-copy h2 { font-family: var(--serif); font-size: 1.2rem; margin: 0 0 6px; }
.agenda-copy p { margin: 4px 0; }
.agenda-when { color: var(--red); font-weight: 600; }
.agenda-map iframe { width: 100%; height: 170px; border: 0; border-radius: 8px; display: block; margin-bottom: 6px; }
.agenda-map a { font-size: .85rem; }
@media (max-width: 860px) { .agenda-item { grid-template-columns: 70px minmax(0, 1fr); } .agenda-map { grid-column: 1 / -1; } }
.widget .agenda-mini { display: block; }

/* Slider Beranda: sama seperti satlantaskukar.
   Layar besar: 21:9 selebar layar tepat di bawah menu; layar sangat lebar (≥1500px): selebar konten, membulat.
   HP (≤640px): slider lebar tidak tampil; slider 1:1 (bila ada) memudar ke latar di bagian bawah. */
.home-top { position: relative; }
.home-slider-wrap { width: 100%; }
.home-slider { position: relative; overflow: hidden; aspect-ratio: 21 / 9; background: var(--green-soft);
    cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.home-slider.is-dragging { cursor: grabbing; }
@media (min-width: 1500px) {
    .home-slider-wrap { width: min(var(--wrap), 100% - 2rem); margin-inline: auto; padding-top: 1.5rem; }
    .home-slider { border-radius: 22px; box-shadow: 0 4px 18px rgba(0, 0, 0, .08); }
}
.home-slider-track, .home-slide, .home-slide a { position: absolute; inset: 0; }
.home-slide { opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.home-slide.is-active { opacity: 1; visibility: visible; }
.home-slide img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; pointer-events: none; }
.home-slider-arrow { position: absolute; bottom: .7rem; z-index: 3; display: grid; width: 2.6rem; height: 2.6rem; place-items: center; border: 0; border-radius: 50%;
    background: rgba(250, 250, 250, .9); box-shadow: 0 2px 10px rgba(7, 11, 46, .25); color: #12172b; cursor: pointer; 
    opacity: 0; pointer-events: none; transition: opacity .2s ease, background .15s ease; }
.home-slider:hover .home-slider-arrow, .home-slider:focus-within .home-slider-arrow { opacity: 1; pointer-events: auto; }
.home-slider-arrow:hover, .home-slider-arrow:focus-visible { background: #fff; }
.home-slider-arrow svg { width: 1.4rem; height: 1.4rem; }
.home-slider-arrow.is-prev { left: clamp(.75rem, 2vw, 1.5rem); }
.home-slider-arrow.is-next { right: clamp(.75rem, 2vw, 1.5rem); }
@media (hover: none) { .home-slider-arrow { display: none; } }
.home-slider-dots { position: absolute; right: 0; bottom: 1.675rem; left: 0; z-index: 3; display: flex; justify-content: center; gap: .5rem; }
.home-slider-dots button { width: .65rem; height: .65rem; padding: 0; border: 0; border-radius: 999px; background: rgba(250, 250, 250, .6); cursor: pointer; transition: width .2s ease, background .2s ease; }
.home-slider-dots button[aria-current="true"] { width: 1.75rem; background: #fff; }
.home-slider-wrap--phone { display: none; }
@media (max-width: 640px) {
    .home-top:has(.home-slider-wrap--phone) .home-slider-wrap:not(.home-slider-wrap--phone) { display: none; } /* tanpa banner HP: slider lebar tetap tampil */
    .home-top .home-slider-wrap--phone { display: block; }
    .home-slider-wrap--phone .home-slider { aspect-ratio: 1 / 1; }
    /* HP lebar / tablet kecil: persegi terlalu tinggi, pakai 4:3 (gambar dipotong tengah) */
    @media (min-width: 481px) { .home-slider-wrap--phone .home-slider { aspect-ratio: 4 / 3; } }
    .home-slider-wrap--phone .home-slider::after { position: absolute; inset: auto 0 0; z-index: 1; height: 38%; content: ""; pointer-events: none;
        background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--bg) 55%, transparent) 55%, var(--bg)); }
    .home-slider-wrap--phone .home-slider-dots { z-index: 2; }
    .home-slider-wrap--phone .home-slider-dots button { background: color-mix(in srgb, var(--green) 30%, transparent); }
    .home-slider-wrap--phone .home-slider-dots button[aria-current="true"] { background: var(--green); }
}

/* Galeri Video (dari satlantaskukar) */
.video-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.video-card { display: grid; gap: .45rem; align-content: start; color: var(--ink); }
.video-card:hover strong { text-decoration: underline; }
.video-card strong { font-family: var(--serif); line-height: 1.4; }
.video-card .muted { color: var(--muted); font-size: .82rem; }
.video-card-media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--green-deep); }
.video-card-media img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .2s ease, transform .3s ease; }
.video-card:hover .video-card-media img { opacity: 1; transform: scale(1.03); }
.video-card-play { position: absolute; top: 50%; left: 50%; display: grid; width: 3.6rem; height: 3.6rem; place-items: center; border-radius: 50%;
    background: var(--red); color: #fff; transform: translate(-50%, -50%); }
.video-card-play svg { width: 1.6rem; height: 1.6rem; margin-left: .15rem; }
.video-page { margin-top: 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.home-videos { margin-top: 40px; }

/* Arsip Berita (per tahun & bulan) */
.archive-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.archive-head .section-title { margin: 0; }
.archive-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.archive-filter input, .archive-filter select, .archive-filter button { font: inherit; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.archive-filter input { width: 230px; }
.archive-filter button { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; cursor: pointer; }
.archive-years, .archive-months { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.archive-years { margin-bottom: 10px; }
.archive-years a { flex: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 700; }
.archive-years a span, .archive-months a span, .archive-months .is-empty span { margin-left: 4px; color: var(--muted); font-size: .78rem; font-weight: 500; }
.archive-years a.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.archive-years a.is-active span { color: var(--on-dark-muted); }
.archive-months { margin-bottom: 18px; }
.archive-months a, .archive-months .is-empty { flex: none; padding: 6px 12px; border-radius: 10px; background: var(--green-tint); color: var(--green-dark); font-weight: 600; font-size: .9rem; }
.archive-months .is-empty { opacity: .4; }
.archive-months a.is-active { background: var(--red); color: #fff; }
.archive-months a.is-active span { color: var(--red-line); }
.archive-summary { margin: 0 0 16px; color: var(--muted); }
.archive-summary strong { color: var(--ink); }
@media (max-width: 640px) { .archive-filter, .archive-filter input { width: 100%; } .archive-filter input { flex: 1; } }

/* Tombol edit untuk admin yang login (seperti satlantaskukar) */
.admin-edit-bar { display: flex; justify-content: flex-end; margin-bottom: .75rem; }
.admin-edit-link { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border: 1px solid var(--red); border-radius: 999px;
    background: var(--red-soft); color: var(--ink); font-size: .85rem; font-weight: 700; }
.admin-edit-link:hover { background: var(--red); color: #fff; }

/* Menu dari Dashboard → Tampilan → Menu */
.nav .is-cta { background: var(--red); color: #fff; }
.nav .is-cta:hover, .nav .is-cta.is-active { background: var(--red-dark); color: #fff; }
.nav .sub-title { color: var(--ink); font-weight: 600; font-size: .92rem; padding: 8px 12px; border-radius: 999px; cursor: default; }
.nav .sub-title.is-active { background: var(--green-soft); color: var(--green-dark); }
@media (min-width: 901px) { .nav .only-phone { display: none !important; } }
@media (max-width: 900px) { .nav .only-desktop { display: none !important; } }

/* ===== Halaman Berita / kategori / tag — seperti satlantaskukar.net/berita ===== */
/* Spotlight: 5 berita terbaru selebar layar, konten sejajar .wrap */
.spot { position: relative; overflow: hidden; color: #fafafa;
    background: linear-gradient(160deg, var(--green-dark) 35%, color-mix(in srgb, var(--green-dark) 60%, var(--green)) 100%); }
.spot + main { padding-top: 28px; }
.spot-track, .spot-nav { z-index: 1; }
.spot-track { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; cursor: grab; }
.spot-track::-webkit-scrollbar { display: none; }
.spot-track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.spot-track:focus-visible { outline: 3px solid #ffcc80; outline-offset: -3px; }
.spot-slide { flex: 0 0 100%; display: grid; gap: 2rem; align-items: center;
    padding-block: clamp(2rem, 5vw, 3.25rem) clamp(4.25rem, 7vw, 5rem); padding-inline: max(16px, calc((100% - var(--wrap)) / 2 + 16px)); scroll-snap-align: start; }
.spot-slide--post { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 3rem); }
.spot-body { display: grid; gap: .7rem; min-width: 0; justify-items: start; }
.spot-eyebrow { color: #ffcc80; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.spot h2 { margin: 0; color: #fafafa; font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.2; text-wrap: balance; }
.spot h2 a { color: inherit; }
.spot h2 a:hover { color: #ffcc80; }
.spot-body p { margin: 0; max-width: 56ch; color: var(--on-dark); }
.spot-date { color: var(--on-dark-muted); font-size: .9rem; }
.spot-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin-top: .3rem; }
.spot-cta { display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; padding: 0 1.3rem; border-radius: 999px; background: #fff; color: var(--green-dark); font-weight: 700; }
.spot-cta:hover { background: var(--red); color: #fff; }
.spot-more { color: #fafafa; font-weight: 700; }
.spot-more:hover { color: #ffcc80; }
.spot-media { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); background: rgba(0, 0, 0, .2); }
.spot-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s ease; }
.spot-media:hover img { transform: scale(1.03); }
.spot-nav { position: absolute; left: 0; right: 0; bottom: .9rem; display: flex; align-items: center; justify-content: center; gap: .8rem; pointer-events: none; }
.spot-nav > * { pointer-events: auto; }
.spot-arrow { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(250, 250, 250, .3); border-radius: 50%; background: rgba(0, 0, 0, .18); color: #fafafa; cursor: pointer; }
.spot-arrow:hover { border-color: #ffcc80; color: #ffcc80; }
.spot-dots { display: flex; gap: .2rem; }
.spot-dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.spot-dot::before { content: ""; display: block; width: 8px; height: 8px; margin: auto; border-radius: 999px; background: rgba(250, 250, 250, .4); transition: width .2s ease, background-color .2s ease; }
.spot-dot[aria-current="true"]::before { width: 22px; background: #ffcc80; }
.spot-arrow:focus-visible, .spot-dot:focus-visible { outline: 3px solid #ffcc80; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .spot-track { scroll-behavior: auto; } .spot-media img { transition: none; } .spot-dot::before { transition: none; } }
@media (max-width: 640px) {
    .spot-slide, .spot-slide--post { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
    .spot-slide--post .spot-media { order: -1; }
    /* HP: gambar mepet kiri, atas, kanan */
    .spot-slide--post { padding-top: 0; align-content: start; align-items: start; }
    .spot-slide--post .spot-media { margin-inline: -16px; border-radius: 0; box-shadow: none; }
}

/* Kartu daftar berita */
.list-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem, 2.4vw, 1.7rem); box-shadow: 0 1px 3px rgba(0, 0, 0, .04); }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem 1.25rem; margin-bottom: 1rem; }
.page-head h1 { margin: 0 0 .25rem; font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); }
.page-head .muted { margin: 0; color: var(--muted); max-width: 70ch; }
.page-head .crumbs { margin: 0 0 .2rem; font-size: .85rem; }
.page-head-link { font-weight: 600; white-space: nowrap; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-item { display: flex; align-items: center; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.post-item:last-child { border-bottom: 0; padding-bottom: 0; }
.post-item > a:first-child, .post-item > .post-thumb { flex: none; }
.post-item > div { flex: 1; min-width: 0; }
.post-title { color: var(--green-dark); font-size: 1.02rem; font-weight: 600; line-height: 1.4; }
.post-title:hover { color: var(--red); }
.post-item .muted { margin-top: .2rem; color: var(--muted); font-size: .85rem; }
.post-thumb { display: block; width: 88px; height: 64px; flex-shrink: 0; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); }
.post-thumb--empty { background: var(--green-soft) url("/assets/favicon.png") center / 28px no-repeat; opacity: .7; }
.post-category { color: var(--red); font-weight: 600; }
.post-category:hover { color: var(--green-dark); }
.list-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .85rem; }
.list-pager-info { margin: 0; color: var(--muted); }
.list-pager-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.pager-button { display: inline-flex; align-items: center; justify-content: center; min-width: 2.1rem; height: 2.1rem; padding: 0 .55rem; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font-weight: 600; }
.pager-button:hover { border-color: var(--green); color: var(--green); }
.pager-button.is-current { background: var(--green); border-color: var(--green); color: #fff; }
.pager-gap { padding: 0 .2rem; color: var(--muted); }
@media (max-width: 520px) { .post-thumb { width: 64px; height: 52px; } .post-item { gap: .7rem; } .list-pager { justify-content: center; } }

/* ===== Header besar halaman inti ===== */
.page-hero { position: relative; overflow: hidden; color: #fafafa;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 204, 128, .16), transparent 32%),
        radial-gradient(circle at 10% 110%, color-mix(in srgb, var(--red) 22%, transparent), transparent 38%),
        linear-gradient(160deg, var(--green-dark) 35%, color-mix(in srgb, var(--green-dark) 60%, var(--green)) 100%); }
.page-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
    background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 22px 22px; }
.page-hero-inner { position: relative; z-index: 1; padding-top: clamp(2rem, 5vw, 3.25rem); padding-bottom: clamp(2.25rem, 5.5vw, 3.5rem); }
.page-hero-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .9rem; font-size: .85rem; color: var(--on-dark-muted); }
.page-hero-crumbs a { color: var(--on-dark); }
.page-hero-crumbs a:hover { color: #ffcc80; }
.page-hero-eyebrow { display: inline-block; margin-bottom: .5rem; color: #ffcc80; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.page-hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(1.8rem, 4.4vw, 2.9rem); line-height: 1.15; text-wrap: balance; color: #fff; }
.page-hero-sub { margin: .75rem 0 0; max-width: 62ch; color: var(--on-dark); font-size: 1.05rem; }
.page-hero-stats { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.page-hero-stats li { padding: .35rem .85rem; border: 1px solid rgba(250, 250, 250, .22); border-radius: 999px; background: rgba(0, 0, 0, .14); font-size: .85rem; }
.page-hero-stats strong { color: #ffcc80; }
.page-hero-search { display: flex; gap: .5rem; max-width: 560px; margin-top: 1.25rem; }
.page-hero-search input { flex: 1; min-width: 0; padding: .8rem 1.1rem; border: 0; border-radius: 999px; font: inherit; color: var(--ink); background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.page-hero-search button { padding: 0 1.3rem; border: 0; border-radius: 999px; background: var(--red); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.page-hero-search button:hover { background: var(--red-dark); }
.page-hero + main { padding-top: 28px; }
@media (max-width: 640px) { .page-hero-sub { font-size: .98rem; } }
.archive-head .archive-filter { align-items: center; }
.archive-head .archive-filter label { margin: 0; }

/* Sidebar kategori di /berita, /category/*, /tag/* */
.news-layout { align-items: start; }
.news-side { position: sticky; top: 16px; }
.site-header.is-sticky ~ main .news-side { top: 110px; }
.cat-widget li { align-items: center; padding: 0; }
.cat-widget li a { flex: 1; padding: 8px 10px; margin: 0 4px 0 -10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.cat-widget li a:hover { background: var(--green-soft); color: var(--green); }
.cat-widget li a[aria-current="page"] { background: var(--green); color: #fff; font-weight: 600; }
.cat-widget .meta { flex: none; min-width: 2.6em; padding: 2px 8px; border-radius: 999px; background: var(--green-tint); color: var(--muted); font-size: .78rem; text-align: center; }
@media (max-width: 900px) { .news-side { position: static; } }

/* ===== Beranda bagian atas (dari mockup A): sambutan, mosaik, Berita Terkini + sidebar, blok kategori ===== */
/* Selamat Datang selalu menempel di bawah slider: di bawah 1500px slider selebar layar, maka pitanya juga */
.ha-welcome { background: linear-gradient(100deg, var(--green-soft), #fff 75%); border-bottom: 1px solid var(--green-line); }
.ha-welcome-box { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px 0; }
.ha-mark { width: 58px; height: 58px; border-radius: 16px; background: var(--green); display: grid; place-items: center; }
.ha-mark img { width: 34px; height: 34px; object-fit: contain; filter: brightness(0) invert(1); }
.ha-welcome h1 { margin: 0 0 4px; font-family: var(--sans); font-size: 1.35rem; color: var(--green-dark); }
.ha-welcome p { margin: 0; color: var(--muted); max-width: 90ch; font-size: .95rem; }

.ha-mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 12px; margin-bottom: 34px; }
.ha-tile { position: relative; display: block; border-radius: 14px; overflow: hidden; background: #cfd8dc; color: #fff; }
.ha-tile:first-child { grid-row: span 2; }
.ha-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ha-tile:hover img { transform: scale(1.05); }
.ha-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .82)); }
.ha-tile-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px; }
.ha-cat { display: inline-block; background: var(--red); font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 4px; text-transform: uppercase; letter-spacing: .05em; }
.ha-tile h2 { margin: 8px 0 4px; font-family: var(--sans); font-size: 1rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ha-tile:first-child h2 { font-size: 1.6rem; }
.ha-tile time { font-size: .78rem; opacity: .85; }

.ha-head { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.ha-head h1, .ha-head h2 { margin: 0; font-family: var(--sans); font-size: 1.2rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.ha-head h1::before, .ha-head h2::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--red); margin-right: 10px; border-radius: 2px; }
.ha-head::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.ha-head a { order: 3; font-size: .85rem; font-weight: 700; white-space: nowrap; }

.ha-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; margin-bottom: 34px; }
.ha-list article { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ha-list article:first-child { padding-top: 0; }
.ha-th { display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--green-soft) url("/assets/favicon.png") center / 28px no-repeat; }
.ha-th img { width: 100%; height: 100%; object-fit: cover; }
.ha-list-cat { color: var(--red); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.ha-list h3 { margin: 4px 0 6px; font-family: var(--sans); font-size: 1.08rem; line-height: 1.35; }
.ha-list h3 a { color: var(--ink); }
.ha-list h3 a:hover { color: var(--green); }
.ha-list p { margin: 0; color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ha-list time { display: block; font-size: .8rem; color: var(--muted); margin-top: 6px; }

.ha-box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 20px; }
.ha-box h4 { margin: 0 0 12px; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; }
.ha-pop { counter-reset: n; list-style: none; margin: 0; padding: 0; }
.ha-pop li { counter-increment: n; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9rem; font-weight: 600; line-height: 1.4; }
.ha-pop li:last-child { border-bottom: 0; padding-bottom: 0; }
.ha-pop li::before { content: counter(n); font-size: 1.5rem; font-weight: 800; color: var(--green-line); line-height: 1; }
.ha-pop a { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ha-pop a:hover { color: var(--green); }
.ha-papers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ha-papers img { width: 100%; aspect-ratio: 7 / 10; object-fit: cover; border-radius: 6px; box-shadow: 0 4px 10px rgba(0, 0, 0, .15); }
.ha-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ha-chips a { padding: 6px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); font-size: .82rem; font-weight: 600; }
.ha-chips a:hover { background: var(--green); color: #fff; }
.ha-chips span { opacity: .6; margin-left: 4px; }

.ha-blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; margin-bottom: 40px; }
.ha-lead { display: block; position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; margin-bottom: 10px; background: #cfd8dc; }
.ha-lead img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ha-lead:hover img { transform: scale(1.04); }
.ha-lead h3 { position: absolute; inset: auto 0 0; margin: 0; padding: 40px 14px 12px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); font-family: var(--sans); font-size: 1.02rem; line-height: 1.35; }
.ha-blk ul { list-style: none; margin: 0; padding: 0; }
.ha-blk li { position: relative; padding: 8px 0 8px 16px; border-bottom: 1px dashed var(--line); font-size: .9rem; font-weight: 600; line-height: 1.4; }
.ha-blk li::before { content: ""; position: absolute; left: 0; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.ha-blk li a { color: var(--ink); }
.ha-blk li a:hover { color: var(--green); }

@media (max-width: 900px) {
    .ha-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
    .ha-tile { aspect-ratio: 4 / 3; }
    .ha-tile:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
    .ha-cols, .ha-blocks { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .ha-welcome-box { grid-template-columns: minmax(0, 1fr); padding: 14px 0; }
    .ha-mark { display: none; }
    .ha-tile:first-child h2 { font-size: 1.2rem; }
    .ha-tile:not(:first-child) .ha-cat { display: none; }
    .ha-tile:not(:first-child) h2 { font-size: .85rem; }
    .ha-tile-text { padding: 12px; }
    .ha-list article { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
    .ha-list p { display: none; }
}

/* Blok kategori "Lebar" (Tampilan → Beranda): foto besar kiri + daftar kanan, port home-news satlantaskukar */
.ha-blk--wide { grid-column: 1 / -1; }
.ha-news { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
.ha-news-lead { display: grid; gap: .55rem; min-width: 0; }
.ha-news-media { display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--green-soft); }
.ha-news-media img, .ha-news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ha-news-media:hover img, .ha-news-thumb:hover img { transform: scale(1.04); }
.ha-news-lead time { font-size: .85rem; color: var(--muted); }
.ha-news-lead h3 { margin: 0; font-family: var(--sans); font-size: clamp(1.2rem, 2.6vw, 1.55rem); line-height: 1.3; }
.ha-news-lead h3 a, .ha-news-item h3 a { color: var(--green-dark); }
.ha-news-lead h3 a:hover, .ha-news-item h3 a:hover { color: var(--red); }
.ha-news-lead p { margin: 0; color: var(--muted); }
.ha-news-list { display: grid; min-width: 0; }
.ha-news-item { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.ha-news-item:first-child { padding-top: 0; }
.ha-news-item:last-child { border-bottom: 0; }
.ha-news-thumb { display: block; overflow: hidden; aspect-ratio: 10 / 7; border-radius: 12px; background: var(--green-soft); }
.ha-news-item > div { min-width: 0; }
.ha-news-item h3 { display: -webkit-box; margin: 0 0 .3rem; overflow: hidden; font-family: var(--sans); font-size: .98rem; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ha-news-item p { display: -webkit-box; margin: 0 0 .3rem; overflow: hidden; color: var(--muted); font-size: .85rem; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ha-news-item time { font-size: .8rem; color: var(--muted); }
/* Layar besar: foto utama setinggi daftar di sebelahnya, sisa teks memudar */
@media (min-width: 861px) {
    .ha-news { align-items: stretch; }
    .ha-news-lead { display: flex; flex-direction: column; }
    .ha-news-excerpt { flex: 1 1 0; min-height: 3.2em; overflow: hidden; line-height: 1.7; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 2.4em), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 2.4em), transparent); }
}
@media (max-width: 860px) {
    .ha-news { grid-template-columns: minmax(0, 1fr); }
    .ha-news-excerpt { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
}

/* Beranda → Arsip Dokumentasi Fotografi */
.ha-photos { margin: 8px 0 44px; padding-top: 36px; border-top: 1px solid var(--line); }
.ha-photos-head { text-align: center; margin-bottom: 22px; }
.ha-photos-eyebrow { color: var(--red); font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.ha-photos-head h2 { margin: 4px 0 6px; font-family: var(--sans); font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--green-dark); }
.ha-photos-head h2::after { content: ""; display: block; width: 48px; height: 3px; margin: 10px auto 0; border-radius: 2px; background: var(--red); }
.ha-photos-head p { margin: 0; color: var(--muted); font-size: .92rem; }
.ha-photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ha-photo { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--green-soft); }
.ha-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ha-photo-cap { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 12px; color: #fff; background: linear-gradient(transparent 40%, rgba(0, 0, 0, .8)); opacity: 0; transition: opacity .25s; }
.ha-photo-cap strong { display: -webkit-box; overflow: hidden; font-size: .88rem; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.ha-photo-cap time { font-size: .74rem; opacity: .85; }
.ha-photo:hover img, .ha-photo:focus-visible img { transform: scale(1.06); }
.ha-photo:hover .ha-photo-cap, .ha-photo:focus-visible .ha-photo-cap { opacity: 1; }
.ha-photos-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 22px; margin-top: 20px; }
.ha-more-btn { padding: 11px 26px; border: 1.5px solid var(--green); border-radius: 999px; background: #fff; color: var(--green); font: inherit; font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.ha-more-btn:hover { background: var(--green); color: #fff; }
.ha-more-btn:disabled { opacity: .6; cursor: wait; }
.ha-photos-more a { font-size: .88rem; font-weight: 600; }
/* Layar sentuh: judul foto selalu tampil (tanpa hover) */
@media (hover: none) { .ha-photo-cap { opacity: 1; } .ha-photo-cap strong { -webkit-line-clamp: 2; font-size: .8rem; } }
@media (max-width: 900px) { .ha-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ha-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } }

/* Layar lebar (slider berbentuk kartu): kartu Selamat Datang menempel di bawah slider, selebar slider */
@media (min-width: 1500px) {
    .home-top:has(+ .ha-welcome:not(.only-phone)) .home-slider { border-radius: 22px 22px 0 0; }
    .ha-welcome { background: none; border-bottom: 0; }
    .ha-welcome .wrap { width: min(var(--wrap), 100% - 2rem); padding-inline: 0; }
    .ha-welcome-box { padding: 20px 24px; background: linear-gradient(100deg, var(--green-soft), #fff 75%); border: 1px solid var(--green-line); border-top: 0; border-radius: 0 0 22px 22px; box-shadow: 0 4px 18px rgba(0, 0, 0, .08); }
}

/* Cari langsung: dropdown hasil instan (search-suggest.js) & hasil halaman ikut berubah (live-filter.js) */
form.has-suggest { position: relative; }
.suggest { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; width: min(440px, calc(100vw - 24px)); max-height: min(70vh, 520px); overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-align: left; box-shadow: 0 18px 40px rgba(0, 0, 0, .16); }
.page-hero-search .suggest, .search-form-wide .suggest { left: 0; right: auto; width: 100%; }
.suggest-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; padding: 7px 8px; border-radius: 10px; color: var(--ink); }
.suggest-item img, .suggest-noimg { width: 64px; height: 44px; border-radius: 7px; object-fit: cover; background: var(--green-soft); }
.suggest-text { display: grid; gap: 2px; min-width: 0; }
.suggest-text strong { display: -webkit-box; overflow: hidden; font-size: .88rem; font-weight: 600; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.suggest-text mark { background: #fff3c4; color: inherit; border-radius: 2px; }
.suggest-text small { color: var(--muted); font-size: .75rem; }
.suggest-item:hover, .suggest-item.is-active { background: var(--green-soft); }
.suggest-all { display: block; margin-top: 4px; padding: 10px 8px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; font-size: .85rem; font-weight: 700; color: var(--green); text-align: center; }
.suggest-all:hover, .suggest-all.is-active { background: var(--green-soft); }
.suggest-empty { margin: 0; padding: 14px 10px; color: var(--muted); font-size: .88rem; text-align: center; }
form.is-loading input[type="search"] { background-image: linear-gradient(90deg, transparent, color-mix(in srgb, var(--green) 14%, transparent), transparent); background-size: 200% 100%; animation: live-loading 1s linear infinite; }
@keyframes live-loading { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.page-hero-search.is-live .live-submit { display: none; }
@media (max-width: 900px) { .site-header .suggest { left: 0; right: 0; width: auto; } }

/* Teks di atas foto (mosaik, blok kategori, arsip foto): saat hover judul pelan-pelan jadi kuning muda (kontras di foto gelap), label kategori tetap */
.ha-tile, .ha-tile:hover, .ha-lead, .ha-lead:hover, .ha-photo, .ha-photo:hover { color: #fff; }
.ha-tile h2, .ha-lead h3, .ha-photo-cap strong { transition: color .35s ease; }
.ha-tile:hover h2, .ha-tile:focus-visible h2, .ha-lead:hover h3, .ha-lead:focus-visible h3, .ha-photo:hover .ha-photo-cap strong { color: #ffe0a3; }

/* Latar header utama (Tampilan → Header → Latar header) */
.site-header { position: relative; }
.site-header.is-sticky { position: sticky; }
.site-header.hdr-bg-gradient, .site-header.hdr-bg-both { background: linear-gradient(100deg, #fff 30%, var(--green-soft) 100%); }
/* Siluet = topeng SVG diwarnai --green, jadi ikut warna tema */
.site-header.hdr-bg-silhouette::before, .site-header.hdr-bg-both::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--green); opacity: .2;
    -webkit-mask: url("/assets/header-siluet.svg") repeat-x left bottom -2px / auto 46px; mask: url("/assets/header-siluet.svg") repeat-x left bottom -2px / auto 46px; }
.site-header > .wrap { position: relative; z-index: 1; }

/* Kartu Sambutan: ikon gambar sendiri, tanpa ikon, tombol (Tampilan → Kartu Sambutan) */
.ha-welcome-box.no-icon { grid-template-columns: minmax(0, 1fr); }
.ha-welcome-box.has-button { grid-template-columns: auto minmax(0, 1fr) auto; }
.ha-welcome-box.no-icon.has-button { grid-template-columns: minmax(0, 1fr) auto; }
.ha-mark.is-custom { background: transparent; overflow: hidden; }
.ha-mark.is-custom img { width: 58px; height: 58px; object-fit: contain; filter: none; }
.ha-welcome-btn { display: inline-flex; align-items: center; gap: .35em; padding: 10px 20px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 700; font-size: .9rem; white-space: nowrap; transition: background-color .3s ease; }
.ha-welcome-btn:hover { background: var(--green-dark); color: #fff; }
@media (max-width: 600px) {
    .ha-welcome-box.has-button, .ha-welcome-box.no-icon.has-button { grid-template-columns: minmax(0, 1fr); }
    .ha-welcome-btn { justify-self: start; }
}

/* HP: daftar Berita Terkini beranda lebih ringkas — gambar lebih besar, judul maks 3 baris */
@media (max-width: 600px) {
    .ha-list article { grid-template-columns: 118px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 0; }
    .ha-list .ha-th { aspect-ratio: 4 / 3; border-radius: 10px; }
    .ha-list-cat { font-size: .68rem; letter-spacing: .03em; }
    .ha-list h3 { margin: 3px 0 4px; font-size: .98rem; line-height: 1.33; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
    .ha-list time { margin-top: 2px; font-size: .74rem; }
}

/* HP: judul bagian (BERITA TERKINI, nama kategori) tetap satu baris */
@media (max-width: 600px) {
    .ha-head { gap: 10px; }
    .ha-head h1, .ha-head h2 { min-width: 0; overflow: hidden; font-size: 1rem; letter-spacing: .02em; white-space: nowrap; text-overflow: ellipsis; }
    .ha-head h1::before, .ha-head h2::before { width: 8px; height: 8px; margin-right: 8px; vertical-align: 1px; }
    .ha-head::after { min-width: 12px; }
    .ha-head a { font-size: .8rem; }
}

/* Topbar: tautan Login admin (Tampilan → Header → isi topbar) */
.tb-login { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border: 1px solid currentColor; border-radius: 999px; font-weight: 600; opacity: .9; }
.topbar a.tb-login:hover { opacity: 1; text-decoration: none; background: rgba(255, 255, 255, .12); }
/* HP: bila ada isi di kanan (mis. Login), kiri-kanan dipisah — Login di ujung kanan */
@media (max-width: 900px) { .topbar .wrap:has(.tb-right > :not(.only-desktop)) { justify-content: space-between; } .topbar .wrap:has(.tb-right > :not(.only-desktop)) .tb-right { margin-left: auto; } }

/* HP: tombol cari (kaca pembesar) di kiri tombol menu → kolom cari muncul di bawah baris logo */
.search-toggle { display: none; place-items: center; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 0; border-radius: 12px; background: none; color: var(--green-dark); cursor: pointer; transition: background-color .25s ease; }
.search-toggle:hover, .search-toggle:focus-visible, .search-toggle[aria-expanded="true"] { background: var(--green-soft); }
@media (max-width: 900px) {
    .search-toggle { display: grid; }
    .search-toggle + .menu-toggle { margin-left: -16px; } /* jarak antar flex .wrap 20px → 4px */
    .site-header.search-open .wrap { flex-wrap: wrap; }
    .site-header.search-open .search-form { display: flex; width: 100%; padding-bottom: 12px; animation: search-drop .2s ease; }
    .site-header.search-open .search-form input { width: 100%; padding: 11px 16px; font-size: 16px; background: #fff; }
    /* Menu terbuka: kolom cari sudah ada di tombol kaca pembesar, jangan dobel */
    .site-header:has(.search-toggle).open .search-form { display: none; }
}
@keyframes search-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.tb-login.is-admin { background: rgba(255, 255, 255, .16); border-color: transparent; }

/* HP: Berita Terkini — gambar setinggi kolom teks; label kategori rata atas, tanggal rata bawah dengan gambar */
@media (max-width: 600px) {
    .ha-list article { align-items: stretch; }
    .ha-list-cat { display: block; margin-top: -1px; line-height: 1.15; }
    .ha-list .ha-th { height: 100%; min-height: 88px; aspect-ratio: auto; }
    .ha-list article > div { display: flex; flex-direction: column; }
    .ha-list article > div time { margin-top: auto; padding-top: 6px; line-height: 1.1; margin-bottom: -2px; }
}

/* HP: daftar di blok kategori "Lebar" — gambar setinggi teks; judul rata atas, tanggal rata bawah dengan gambar */
@media (max-width: 600px) {
    .ha-news-item { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: stretch; }
    .ha-news-thumb { height: 100%; min-height: 84px; aspect-ratio: auto; border-radius: 10px; }
    .ha-news-item > div { display: flex; flex-direction: column; }
    .ha-news-item h3 { margin-top: -3px; font-size: .95rem; line-height: 1.33; }
    .ha-news-item p { font-size: .82rem; }
    .ha-news-item time { margin-top: auto; padding-top: 4px; line-height: 1.1; margin-bottom: -2px; font-size: .74rem; }
}
/* HP: gambar potret tidak boleh memperbesar baris — gambar mengisi kotak (absolut), tinggi baris = tinggi teks */
@media (max-width: 600px) {
    .ha-news-thumb, .ha-list .ha-th { position: relative; }
    .ha-news-thumb img, .ha-list .ha-th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
}
/* HP: Arsip Dokumentasi Fotografi — cukup judul, tanggal disembunyikan */
@media (max-width: 600px) { .ha-photo-cap time { display: none; } }
/* HP: mosaik berita — 4 kotak kecil cukup judul (tanggal disembunyikan), kotak besar tetap bertanggal */
@media (max-width: 600px) { .ha-tile:not(:first-child) time { display: none; } }
/* HP: tanpa tanggal, judul kotak kecil mosaik diturunkan mendekati tepi bawah */
@media (max-width: 600px) { .ha-tile:not(:first-child) .ha-tile-text { padding-bottom: 9px; } .ha-tile:not(:first-child) h2 { margin-bottom: 0; } }
/* HP: judul mosaik berita maksimal 2 baris */
@media (max-width: 600px) { .ha-tile h2, .ha-tile:not(:first-child) h2 { -webkit-line-clamp: 2; line-clamp: 2; } }
.article > .meta { margin-bottom: 18px; }

/* Halaman berita: header = gambar fitur selebar layar, kategori/judul/tanggal/penulis di atasnya */
.post-hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(300px, 46vw, 520px); color: #fff;
    background: linear-gradient(160deg, var(--green-dark) 35%, color-mix(in srgb, var(--green-dark) 60%, var(--green))); }
.post-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .1) 35%, rgba(0, 0, 0, .78) 100%); }
.post-hero.no-image { min-height: 0; }
.post-hero.no-image::after { display: none; }
.post-hero-inner { position: relative; z-index: 1; width: 100%; padding-top: 48px; padding-bottom: clamp(22px, 4vw, 40px); }
.post-hero-crumbs { display: flex; gap: .4rem; margin-bottom: .8rem; font-size: .82rem; color: rgba(255, 255, 255, .85); }
.post-hero-crumbs a { color: #fff; }
.post-hero h1 { margin: 10px 0 10px; max-width: 900px; color: #fff; font-family: var(--serif); font-size: clamp(1.5rem, 3.6vw, 2.6rem); line-height: 1.2; text-wrap: balance; text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
.post-hero-meta { font-size: .88rem; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.post-hero + main { padding-top: 28px; }
@media (max-width: 600px) { .post-hero { min-height: 340px; } .post-hero-crumbs { display: none; } .post-hero h1 { font-size: 1.45rem; } .post-hero-meta { font-size: .8rem; } }
.article > .prose > :first-child { margin-top: 0; }
/* HP: isi berita tanpa kartu (langsung di latar halaman) */
@media (max-width: 600px) {
    .article { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
    .post-hero + main { padding-top: 20px; }
}

/* Popup gambar (lightbox.js): gambar fitur & sisipan di halaman berita/halaman */
.lb-zoomable { cursor: zoom-in; }
.post-hero-img.lb-zoomable { z-index: 0; }
.post-hero:has(.lb-zoomable)::after { pointer-events: none; }
html.lb-lock { overflow: hidden; }
.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(6, 12, 11, .94); color: #fff; }
.lightbox::backdrop { background: rgba(6, 12, 11, .92); }
.lightbox[open] { display: grid; place-items: center; animation: lb-in .2s ease; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-figure { display: grid; place-items: center; gap: 10px; width: 100%; height: 100%; margin: 0; padding: 56px 64px 48px; }
.lb-img { max-width: 100%; max-height: calc(100dvh - 120px); width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb-cap { max-width: 800px; text-align: center; font-size: .9rem; opacity: .9; }
.lb-btn { position: fixed; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background-color .2s ease; }
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(255, 255, 255, .28); }
.lb-close { top: 14px; right: 14px; font-size: 1.15rem; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next { display: none; }
.lb-count { position: fixed; top: 24px; left: 20px; font-size: .85rem; opacity: .8; }
@media (max-width: 600px) {
    .lb-figure { padding: 60px 8px 40px; }
    .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; width: 42px; height: 42px; }
    .lb-prev { left: calc(50% - 52px); } .lb-next { right: calc(50% - 52px); }
}
/* HP: daftar berita (/berita, kategori, tag) tanpa kartu */
@media (max-width: 600px) {
    .list-card { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
    .news-side .widget { margin-top: 8px; }
}
/* HP: daftar /berita seperti Berita Terkini beranda — gambar setinggi teks, judul maks 3 baris, kategori & tanggal rata bawah */
@media (max-width: 600px) {
    .post-item { align-items: stretch; gap: 12px; padding: 14px 0; }
    .post-item > a:first-child, .post-item > .post-thumb { position: relative; flex: 0 0 112px; width: 112px; }
    .post-item > a:first-child .post-thumb, .post-item > .post-thumb { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 84px; border: 0; border-radius: 10px; }
    .post-item > a:first-child { min-height: 84px; }
    .post-item > div { display: flex; flex-direction: column; }
    .post-title { display: -webkit-box; overflow: hidden; margin-top: -3px; font-size: .97rem; line-height: 1.33; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
    .post-item .muted { margin-top: auto; padding-top: 6px; font-size: .76rem; line-height: 1.1; margin-bottom: -2px; }
}
@media (max-width: 600px) { .post-item .muted { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } }
/* HP/tablet: kolom satu jalur tidak boleh melebar karena teks nowrap (mis. kategori · tanggal) */
@media (max-width: 900px) { .with-side { grid-template-columns: minmax(0, 1fr); } .with-side > * { min-width: 0; } }
/* HP: spotlight /berita tanpa tombol "Baca berita" & "Kategori …" (judul & gambar sudah bisa diklik) */
@media (max-width: 640px) { .spot-actions { display: none; } .spot-slide { padding-bottom: 4.25rem; } }
/* Dropdown hasil cari di header besar tidak boleh terpotong: header besar tidak memotong isi & berada di atas konten */
.page-hero { overflow: visible; z-index: 6; }
.page-hero .suggest { z-index: 70; }
/* HP: Arsip Berita — baris tahun/bulan digeser tanpa scrollbar, mepet tepi layar; filter kategori selebar layar */
@media (max-width: 640px) {
    .archive-years, .archive-months { scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; padding-bottom: 0; scroll-padding-inline: 16px; }
    .archive-years::-webkit-scrollbar, .archive-months::-webkit-scrollbar { display: none; }
    .archive-years a { padding: 7px 14px; font-size: .95rem; }
    .archive-months a, .archive-months .is-empty { padding: 6px 11px; font-size: .85rem; }
    .archive-head { margin-bottom: 12px; }
    .archive-head .archive-filter { flex-wrap: nowrap; }
    .archive-head .archive-filter select { flex: 1; min-width: 0; }
}
/* Arsip Berita: dropdown tahun & bulan hanya di HP; di HP tombol-tombol tahun/bulan disembunyikan */
.archive-period { display: none; }
@media (max-width: 640px) {
    .archive-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
    .archive-period { display: contents; }
    .archive-period select, .archive-head .archive-filter select { width: 100%; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font: inherit; font-size: .92rem; color: var(--ink); }
    .archive-head .archive-filter { grid-column: 1 / -1; width: 100%; }
    .archive-head > a { grid-column: 1 / -1; font-size: .88rem; }
    .archive-years, .archive-months { display: none; }
}
/* HP: kartu berita (Arsip Berita, /cari, halaman Daftar Berita) jadi baris — gambar kiri, judul kanan, tanggal rata bawah */
@media (max-width: 600px) {
    .grid:has(> .card) { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .grid > .card { flex-direction: row; gap: 12px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; overflow: visible; }
    .grid > .card:first-child { padding-top: 0; }
    .grid > .card:hover { transform: none; box-shadow: none; }
    .grid > .card .thumb { flex: 0 0 112px; min-height: 84px; aspect-ratio: auto; border-radius: 10px; overflow: hidden; }
    .grid > .card .body { flex: 1; min-width: 0; padding: 0; gap: 0; flex-direction: column-reverse; justify-content: flex-end; }
    .grid > .card h3 { display: -webkit-box; overflow: hidden; margin-top: -3px; font-size: .97rem; line-height: 1.33; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
    .grid > .card .meta { margin-top: auto; padding-top: 6px; font-size: .76rem; line-height: 1.1; margin-bottom: -2px; }
}
@media (max-width: 600px) { .article .share { display: none; } } /* HP: tombol bagikan disembunyikan */

/* Berita Terkait (halaman berita). Layar besar: daftar judul di sidebar seperti sebelumnya.
   HP: kartu bergambar seperti satlantaskukar (gambar 16:9, tanggal, judul), tanpa kotak widget. */
.post-related-grid { display: grid; }
.post-related-card { display: block; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--green); }
.post-related-card:last-child { border-bottom: 0; }
.post-related-media, .post-related-body small { display: none; }
.post-related-body strong { font-weight: 400; }
@media (max-width: 600px) {
    .post-related { margin-top: 8px; padding: 0; border: 0; background: none; }
    .post-related h4 { margin: 0 0 14px; font-size: 1.2rem; }
    .post-related-grid { gap: 1rem; }
    .post-related-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); }
    .post-related-card:last-child { border-bottom: 1px solid var(--line); }
    .post-related-media { display: block; aspect-ratio: 16 / 9; background: var(--green-soft); }
    .post-related-media img { width: 100%; height: 100%; object-fit: cover; }
    .post-related-body { display: grid; gap: .35rem; padding: .85rem 1rem 1rem; }
    .post-related-body small { display: block; color: var(--muted); font-size: .8rem; }
    .post-related-body strong { color: var(--green-dark); font-size: .98rem; font-weight: 700; line-height: 1.4; }
}
/* HP: Berita Terkait jadi baris — gambar kiri, judul kanan (rata atas), tanggal rata bawah; sama dengan daftar berita lain */
@media (max-width: 600px) {
    .post-related-grid { gap: 0; }
    .post-related-card { flex-direction: row; gap: 12px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; overflow: visible; }
    .post-related-card:first-child { padding-top: 0; }
    .post-related-card:last-child { border-bottom: 0; }
    .post-related-media { position: relative; flex: 0 0 112px; min-height: 84px; aspect-ratio: auto; border-radius: 10px; overflow: hidden; }
    .post-related-media img { position: absolute; inset: 0; }
    .post-related-body { flex: 1; min-width: 0; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0; padding: 0; }
    .post-related-body strong { display: -webkit-box; overflow: hidden; margin-top: -3px; font-size: .97rem; line-height: 1.33; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
    .post-related-body small { margin-top: auto; padding-top: 6px; font-size: .76rem; line-height: 1.1; margin-bottom: -2px; }
}
/* Layar besar: Berita Terkait di sidebar memakai gaya yang sama dengan HP (gambar kiri, judul kanan, tanggal rata bawah) */
@media (min-width: 601px) {
    .post-related-grid { gap: 0; }
    .post-related-card { display: flex; flex-direction: row; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
    .post-related-card:first-child { padding-top: 2px; }
    .post-related-card:last-child { border-bottom: 0; padding-bottom: 0; }
    .post-related-media { display: block; position: relative; flex: 0 0 96px; min-height: 72px; border-radius: 9px; overflow: hidden; background: var(--green-soft); }
    .post-related-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
    .post-related-card:hover .post-related-media img { transform: scale(1.05); }
    .post-related-body { flex: 1; min-width: 0; display: flex; flex-direction: column-reverse; justify-content: flex-end; }
    .post-related-body strong { display: -webkit-box; overflow: hidden; margin-top: -2px; color: var(--green-dark); font-size: .9rem; font-weight: 700; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 3; transition: color .3s ease; }
    .post-related-card:hover strong { color: var(--red); }
    .post-related-body small { display: block; margin-top: auto; padding-top: 5px; color: var(--muted); font-size: .74rem; line-height: 1.1; margin-bottom: -2px; }
}

/* e-Paper beranda: layar besar 3 sampul; HP: semua sampul bisa digeser (sliding) */
.ha-papers { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -18px; padding: 2px 18px 10px; scroll-padding-inline: 18px; }
.ha-papers::-webkit-scrollbar { display: none; }
.ha-papers > a { flex: 0 0 38%; scroll-snap-align: start; }
.ha-box-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.ha-box-head h4 { margin: 0; }
.ha-slide-nav { display: flex; gap: 6px; }
.ha-slide-nav button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--green-dark); font-size: 1.15rem; line-height: 1; cursor: pointer; transition: background-color .25s ease, opacity .25s ease; }
.ha-slide-nav button:hover { background: var(--green-soft); }
.ha-slide-nav button:disabled { opacity: .35; cursor: default; }
.ha-papers { cursor: grab; scroll-behavior: smooth; }
.ha-papers.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.ha-papers img { -webkit-user-drag: none; }
/* HP: baris "Kategori · tanggal" — yang dipotong nama kategori, tanggal selalu utuh */
@media (max-width: 600px) {
    .post-item .muted { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
    .post-item .muted .post-category { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}

/* Footer (Tampilan → Footer): kolom dari Menu Footer; footer bawah = hak cipta · menu · pembuat website */
.site-footer.no-top { padding-top: 0; }
.site-footer.no-top .footer-bottom { margin-top: 0; }
.site-footer .cols { grid-template-columns: 2fr repeat(auto-fit, minmax(140px, 1fr)); }
.ft-title { display: block; color: #fff; font-size: 1.1rem; }
.ft-col { display: flex; flex-direction: column; gap: 4px; }
.ft-head { color: #fff; font-weight: 700; margin-bottom: 2px; }
.ft-col a { color: #fff; }
.ft-col a:hover, .ft-links a:hover, .ft-credit a:hover { color: #ffcc80; }
.site-footer .copy { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.ft-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.ft-links a, .ft-credit a { color: var(--on-dark); }
.ft-credit { margin-left: auto; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .site-footer .copy { flex-direction: column; align-items: flex-start; } .ft-credit { margin-left: 0; } }

/* Footer bawah — tata letak (Tampilan → Footer Bawah). Layar besar: 3 zona kiri/tengah/kanan. HP: elemen berurutan (--o). */
.site-footer .copy.fb-phone-center, .site-footer .copy.fb-phone-left { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px 18px; align-items: center; }
.fb-zone { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; min-width: 0; }
.fb-center { justify-content: center; }
.fb-right { justify-content: flex-end; }
.ft-credit { margin-left: 0; }
@media (max-width: 900px) {
    .site-footer .copy.fb-phone-center, .site-footer .copy.fb-phone-left { display: flex; flex-direction: column; gap: 8px; }
    .fb-zone { display: contents; }
    .fb-el { order: var(--o); }
    .copy.fb-phone-center { align-items: center; text-align: center; }
    .copy.fb-phone-left { align-items: flex-start; text-align: left; }
    .copy.fb-phone-center .ft-links { justify-content: center; }
    .copy.fb-phone-inline { flex-direction: row; flex-wrap: wrap; column-gap: 16px; }
    .copy.fb-phone-inline.fb-phone-center { justify-content: center; }
}
.ft-credit a { color: #fff; font-weight: 600; }
/* Layar besar: Berita Terkini — gambar setinggi kolom teks; label kategori rata atas, tanggal rata bawah (sama dengan HP) */
@media (min-width: 601px) {
    .ha-list article { align-items: stretch; }
    .ha-list-cat { display: block; margin-top: -1px; line-height: 1.15; }
    .ha-list .ha-th { position: relative; height: 100%; min-height: 125px; aspect-ratio: auto; }
    .ha-list .ha-th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    .ha-list article > div { display: flex; flex-direction: column; }
    .ha-list h3 { margin-top: 6px; }
    .ha-list article > div time { margin-top: auto; padding-top: 6px; line-height: 1.1; margin-bottom: -2px; }
}
/* Berita Terkini: kategori sebaris dengan tanggal di bawah (semua layar) */
.ha-list article > div { display: flex; flex-direction: column; }
.ha-list h3 { margin-top: -3px !important; }
.ha-list-meta { display: flex; align-items: baseline; gap: 6px; margin-top: auto; padding-top: 6px; min-width: 0; white-space: nowrap; color: var(--muted); font-size: .8rem; line-height: 1.1; margin-bottom: -2px; }
.ha-list-meta .ha-list-cat { display: inline; margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-transform: none; letter-spacing: 0; font-size: inherit; line-height: inherit; }
.ha-list-meta time, .ha-list article > div .ha-list-meta time { display: inline; flex: none; margin: 0; padding: 0; font-size: inherit; color: inherit; }
@media (max-width: 600px) { .ha-list-meta { font-size: .74rem; } }
@media (max-width: 600px) { .ha-list-meta .ha-time { display: none; } }
/* Layar besar: jarak antar blok kategori beranda lebih lega */
@media (min-width: 601px) {
    .ha-blocks { row-gap: 52px; }
    .ha-blk--wide + .ha-blk--wide, .ha-blk--wide + .ha-blk, .ha-blk + .ha-blk--wide { margin-top: 4px; }
    .ha-blk .ha-head { margin-bottom: 20px; }
}
/* Layar besar: jarak kartu Sambutan → mosaik beranda dirapatkan */
@media (min-width: 601px) { .ha-welcome + main { padding-top: 18px; } }

/* Kolom isian tidak memakai hitam bawaan browser (#000) */
:where(input, select, textarea, button) { color: var(--ink); }
/* Nomor Terpopuler lebih tegas (warna tema), nomor 1–3 merah — semua layar */
.ha-pop li::before { color: var(--green); opacity: .55; }
.ha-pop li:nth-child(-n+3)::before { color: var(--red); opacity: .85; }
/* Layar besar: daftar di blok kategori "Lebar" — gambar setinggi teks, judul rata atas, tanggal rata bawah */
@media (min-width: 601px) {
    .ha-news-item { align-items: stretch; }
    .ha-news-thumb { position: relative; height: 100%; min-height: 84px; aspect-ratio: auto; }
    .ha-news-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    .ha-news-item > div { display: flex; flex-direction: column; }
    .ha-news-item h3 { margin-top: -3px; }
    .ha-news-item time { margin-top: auto; padding-top: 4px; line-height: 1.1; margin-bottom: -2px; }
}
/* Beranda: navigasi di bawah Berita Terkini (lanjut ke /berita halaman 2 dst.) */
.ha-list-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.ha-more { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border: 1.5px solid var(--green); border-radius: 999px; color: var(--green); font-weight: 700; font-size: .9rem; transition: background-color .25s ease, color .25s ease; }
.ha-more:hover { background: var(--green); color: #fff; }
.ha-list article:last-child { border-bottom: 0; }
@media (max-width: 600px) { .ha-list-pager { justify-content: center; } .ha-list-pager .list-pager-nav { display: none; } }
/* Layar besar: navigasi Berita Terkini menempel di dasar kolom, sejajar dengan ujung bawah sidebar */
@media (min-width: 901px) {
    .ha-cols > section { display: flex; flex-direction: column; }
    .ha-cols > section .ha-list-pager { margin-top: auto; }
    .ha-cols > section .ha-list { margin-bottom: 11px; }
    .ha-cols > aside > .ha-box:last-child { margin-bottom: 0; }
}
/* Berita Terkini: pembungkus daftar (diganti tanpa pindah halaman) */
[data-home-news] { display: flex; flex: 1; flex-direction: column; transition: opacity .2s ease; }
[data-home-news].is-loading { opacity: .45; pointer-events: none; }
.ha-list-pager .list-pager-nav { display: flex; flex-wrap: wrap; gap: .3rem; }
@media (max-width: 600px) { .ha-list-pager .list-pager-nav { display: flex; justify-content: center; } .ha-list-pager { flex-direction: column; } }
/* Layar besar: header gambar fitur berita 16:9 (foto utuh, tidak terpotong — seperti satlantaskukar) */
@media (min-width: 601px) {
    .post-hero:not(.no-image) { min-height: 0; aspect-ratio: 16 / 9; }
}
/* Layar lebar (≥1500px): header gambar berita berbentuk kartu seperti slider beranda (selebar konten, sudut 22px),
   rasio --post-hero-ratio (21 / 9). 601–1499px tetap 16:9 selebar layar (foto utuh). */
:root { --post-hero-ratio: 21 / 9; }
@media (min-width: 1500px) {
    .post-hero:not(.no-image) { aspect-ratio: var(--post-hero-ratio); }
    .post-hero { width: min(var(--wrap), 100% - 2rem); margin: 1.5rem auto 0; border-radius: 22px; box-shadow: 0 4px 18px rgba(0, 0, 0, .08); }
    .post-hero .post-hero-inner { padding-left: clamp(24px, 3vw, 48px); padding-right: clamp(24px, 3vw, 48px); }
}
/* 21:9 memotong atas-bawah foto 16:9: fokus agak ke atas supaya wajah/kepala tidak terpotong */
@media (min-width: 1500px) { .post-hero-img { object-position: center 35%; } }
/* Halaman berita (layar besar): kotak Berita Terkait ikut menempel saat digulir, di bawah header sticky */
@media (min-width: 901px) {
    .with-side > aside { align-self: stretch; }
    .side-sticky { position: sticky; top: calc(var(--logo-h, 48px) + 44px); }
    .site-header:not(.is-sticky) ~ main .side-sticky { top: 16px; }
}
@media (min-width: 901px) {
    /* Header mengecil saat digulir (shrink): jarak 16px dari header kecil */
    .site-header[data-shrink] ~ main .side-sticky { top: calc(var(--logo-h, 48px) * .7 + 35px); }
}

/* Sidebar halaman berita: Terpopuler & Bagikan */
.post-popular h4, .post-share h4 { margin: 0 0 12px; }
.share-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.share-btn svg { width: 18px; height: 18px; flex: none; }
.share-btn.is-wa svg { color: #25d366; } .share-btn.is-fb svg { color: #1877f2; } .share-btn.is-x svg { color: #010101; } .share-btn.is-copy svg { color: var(--green); }
.share-btn:hover { border-color: var(--green-line); background: var(--green-soft); color: var(--green-dark); }
@media (max-width: 600px) { .post-share { display: none; } }

/* Kartu penulis (halaman berita, di bawah Berita Terkait) */
.author-card { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; background: linear-gradient(180deg, var(--green-soft), var(--card) 55%); }
.author-avatar { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 8px; overflow: hidden; border: 3px solid #fff; border-radius: 50%; background: var(--green); color: #fff; font-size: 1.9rem; font-weight: 800; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-kicker { color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.author-name { color: var(--ink); font-size: 1.08rem; }
.author-role { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: var(--green); color: #fff; font-size: .7rem; font-weight: 700; }
.author-count { margin-top: 6px; color: var(--muted); font-size: .78rem; }
/* Grup lebih tinggi dari layar: side-sticky.js memberi --side-top negatif, jadi grup menempel di dasar layar (kartu penulis selalu utuh) */
@media (min-width: 901px) { .side-sticky[style*="--side-top"] { top: var(--side-top) !important; } }

/* ===== Hubungi Kami (pages/contact.twig) ===== */
.ct { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; align-items: start; }
.ct-info { display: flex; flex-direction: column; gap: 16px; }
.ct-photo { margin: 0; overflow: hidden; border-radius: 14px; aspect-ratio: 16 / 8; background: var(--green-soft); }
.ct-photo img { width: 100%; height: 100%; object-fit: cover; }
.ct-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.ct-office h2 { margin: 0 0 4px; color: var(--green-dark); font-size: 1.2rem; line-height: 1.3; }
.ct-unit { margin: 0 0 12px; color: var(--muted); font-size: .92rem; }
.ct-row { display: flex; gap: 10px; margin: 8px 0 0; font-size: .95rem; line-height: 1.5; }
.ct-ic { display: inline-grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--green-soft); color: var(--green); }
.ct-ic svg { width: 17px; height: 17px; }
.ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ct-card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: .95rem; }
.ct-list { margin: 0; padding: 0; list-style: none; }
.ct-list li { padding: 4px 0; }
.ct-list a { color: var(--ink); font-weight: 600; word-break: break-word; }
.ct-list a:hover { color: var(--green); }
.ct-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ct-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 1.5px solid var(--green); border-radius: 999px; background: var(--card); color: var(--green); font-weight: 700; font-size: .92rem; transition: background-color .25s ease, color .25s ease; }
.ct-btn svg { width: 18px; height: 18px; }
.ct-btn:hover { background: var(--green); color: #fff; }
.ct-btn.is-wa { border-color: #1fa855; background: #25d366; color: #fff; }
.ct-btn.is-wa:hover { background: #1fa855; color: #fff; }
.ct-social h3 { margin: 4px 0 10px; font-size: .95rem; }
.ct-social-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ct-soc { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #fff; transition: transform .2s ease, filter .2s ease; }
.ct-soc svg { width: 22px; height: 22px; }
.ct-soc:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.1); }
.ct-soc.is-facebook { background: #1877f2; } .ct-soc.is-instagram { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.ct-soc.is-youtube { background: #ff0000; } .ct-soc.is-tiktok, .ct-soc.is-threads, .ct-soc.is-x { background: #010101; }
.ct-map { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 12px; }
.ct-map-frame { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; aspect-ratio: 4 / 3.4; background: #eef2f1; }
.ct-map-frame iframe { width: 100%; height: 100%; border: 0; }
.ct-map-btn { align-self: flex-start; }
@media (max-width: 900px) { .ct { grid-template-columns: minmax(0, 1fr); } .ct-map { position: static; } .ct-map-frame { aspect-ratio: 4 / 3; } }
@media (max-width: 520px) { .ct-grid { grid-template-columns: minmax(0, 1fr); } .ct-actions .ct-btn { flex: 1 1 auto; justify-content: center; } }

/* ===== Profil (pages/profile.twig) ===== */
.pf { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.pf-about { padding: clamp(20px, 3vw, 34px); border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.pf-eyebrow { display: inline-block; margin-bottom: 10px; color: var(--red); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.pf-prose > p:first-child { font-size: 1.12rem; line-height: 1.75; color: var(--ink); }
.pf-prose > p:first-child::first-letter { float: left; margin: 6px 10px 0 0; color: var(--green); font-size: 3.4rem; font-weight: 800; line-height: .85; }
.pf-side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 16px; }
.pf-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.pf-stats div { display: flex; flex-direction: column; gap: 2px; padding: 16px; background: var(--card); }
.pf-stats b { color: var(--green); font-size: 1.5rem; line-height: 1.1; }
.pf-stats span { color: var(--muted); font-size: .8rem; }
.pf-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-radius: 14px; background: linear-gradient(135deg, var(--green-dark), var(--green)); color: #fff; transition: transform .2s ease, filter .2s ease; }
.pf-cta:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.08); }
.pf-cta strong { display: block; font-size: 1rem; }
.pf-cta small { color: var(--on-dark); font-size: .82rem; }
.pf-cta > span:last-child { font-size: 1.4rem; }
.pf-services { margin: 36px 0 12px; }
.pf-services h2 { margin: 0 0 16px; font-size: 1.25rem; }
.pf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pf-item { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); transition: border-color .25s ease, transform .2s ease; }
.pf-item:hover { color: var(--ink); border-color: var(--green-line); transform: translateY(-2px); }
.pf-item small { color: var(--muted); font-size: .85rem; line-height: 1.45; }
.pf-ic { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 6px; border-radius: 12px; background: var(--green-soft); color: var(--green); }
.pf-ic svg { width: 22px; height: 22px; }
@media (max-width: 900px) { .pf { grid-template-columns: minmax(0, 1fr); } .pf-side { position: static; } .pf-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pf-about { padding: 0; border: 0; background: none; } }

/* ===== Footer atas: logo, deskripsi, kontak, sosmed + kolom tautan ===== */
.site-footer .cols { grid-template-columns: minmax(0, 1.6fr) repeat(auto-fit, minmax(150px, 1fr)); gap: 32px 40px; align-items: start; }
.ft-about { display: flex; flex-direction: column; gap: 12px; max-width: 460px; }
.ft-logo { display: inline-flex; align-self: flex-start; padding: 10px 14px; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); transition: transform .2s ease; }
.ft-logo:hover { transform: translateY(-2px); }
.ft-logo img { display: block; width: auto; height: 40px; }
.ft-about .ft-title { font-size: 1.05rem; }
.ft-text { margin: 0; color: var(--on-dark); line-height: 1.65; }
.ft-contact { display: flex; flex-direction: column; gap: 8px; margin: 2px 0 0; padding: 0; list-style: none; font-size: .88rem; }
.ft-contact li { display: flex; gap: 10px; align-items: flex-start; color: var(--on-dark); line-height: 1.5; }
.ft-contact svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: #ffcc80; }
.ft-contact a { color: #fff; }
.ft-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.ft-social a { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; color: #fff; transition: background-color .25s ease, border-color .25s ease; }
.ft-social a:hover { border-color: #fff; background: rgba(255, 255, 255, .12); color: #fff; }
.ft-social svg { width: 17px; height: 17px; }
.ft-col { gap: 2px; }
.ft-head { position: relative; margin-bottom: 12px; padding-bottom: 10px; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.ft-head::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; border-radius: 2px; background: #ffcc80; }
.ft-col a:not(.ft-head) { display: inline-flex; align-items: center; gap: 0; padding: 5px 0; color: var(--on-dark); transition: color .25s ease, gap .25s ease; }
.ft-col a:not(.ft-head)::before { content: "›"; width: 0; overflow: hidden; color: #ffcc80; transition: width .25s ease; }
.ft-col a:not(.ft-head):hover { gap: 6px; color: #fff; }
.ft-col a:not(.ft-head):hover::before { width: 8px; }
.site-footer { padding-top: 44px; }
.site-footer .footer-bottom { margin-top: 36px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .ft-about { grid-column: 1 / -1; max-width: none; } }

/* ===== Footer atas gaya A: pita logo + kolom ===== */
.site-footer { padding-top: 0; }
.ft-band { background: linear-gradient(100deg, var(--green), var(--green-dark)); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ft-band .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding-top: 26px; padding-bottom: 26px; }
.ft-band .ft-logo { padding: 8px 12px; border-radius: 12px; box-shadow: none; }
.ft-band .ft-logo img { height: 34px; }
.ft-logo.is-light, .ft-band .ft-logo.is-light { padding: 0; background: none; box-shadow: none; }
.ft-logo.is-light img { height: 44px; }
.ft-band .ft-text { flex: 1 1 360px; max-width: 560px; margin: 0; color: var(--on-dark); font-size: .95rem; line-height: 1.6; }
.ft-band .ft-social { margin: 0 0 0 auto; }
.ft-band .ft-social a { border: 0; background: rgba(255, 255, 255, .12); }
.ft-band .ft-social a:hover { background: rgba(255, 255, 255, .24); }
.ft-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(auto-fit, minmax(160px, 1fr)); gap: 32px 36px; padding-top: 34px; padding-bottom: 8px; }
.ft-cols .ft-col { display: flex; flex-direction: column; gap: 0; }
.ft-cols .ft-head { margin-bottom: 14px; padding-bottom: 0; color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.ft-cols .ft-head::after { display: none; }
.ft-cols .ft-contact li { font-size: .92rem; }
.ft-brand { gap: 14px !important; }
.ft-brand .ft-logo { align-self: flex-start; }
.ft-brand .ft-text { font-size: .92rem; line-height: 1.6; }
.ft-brand .ft-social a { border: 0; background: rgba(255, 255, 255, .12); }
.ft-brand .ft-social a:hover { background: rgba(255, 255, 255, .24); }
.site-footer .footer-bottom { margin-top: 28px; }
@media (max-width: 900px) { .ft-cols { grid-template-columns: 1fr 1fr; } .ft-cols .ft-col:first-child { grid-column: 1 / -1; } .ft-band .ft-social { margin-left: 0; } }
.post-views { white-space: nowrap; } .post-views svg { display: inline-block; width: 1.1em; height: 1.1em; margin-right: .3em; vertical-align: -.2em; opacity: .85; }
/* Footer atas: kolom Statistik pengunjung */
.ft-stats { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; font-size: .88rem; }
.ft-stats li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed rgba(255, 255, 255, .12); color: var(--on-dark); }
.ft-stats li:last-child { border-bottom: 0; }
.ft-stats b { color: #fff; font-variant-numeric: tabular-nums; }
.ft-stats .is-online span { display: inline-flex; align-items: center; gap: 7px; }
.ft-stats .is-online i { width: 7px; height: 7px; border-radius: 50%; background: #69f0ae; box-shadow: 0 0 0 3px rgba(105, 240, 174, .18); }
.ha-papers img[data-src] { background: #eef2f1; }
/* Judul bagian beranda = kotak berwarna sesuai kategori (tanpa kotak merah kecil), garis kanan menempel. Semua layar.
   Warna kategori sengaja tetap (bukan warna tema), kecuali Berita Terkini/Berita = --green tema. */
.ha-head[data-cat] { gap: 0; --cat: var(--green); }
.ha-head[data-cat] h2 { padding: 7px 16px; border-radius: 6px; background: var(--cat); color: #fff; font-size: 1.05rem; line-height: 1.3; }
.ha-head[data-cat] h2::before { content: none; }
.ha-head[data-cat] a { margin-left: 12px; color: var(--cat); }
.ha-head[data-cat] a:hover { color: color-mix(in srgb, var(--cat) 75%, #000); }
.ha-head[data-cat]::after { background: var(--cat); }
.ha-head[data-cat="pemerintahan"] { --cat: #1e4e8c; }
.ha-head[data-cat="ekonomi"] { --cat: #2e7d32; }
.ha-head[data-cat="keagamaan"] { --cat: #6a3d9a; }
.ha-head[data-cat="budaya-pariwisata"] { --cat: #c2571a; }
.ha-head[data-cat="desa"] { --cat: #5b7f1f; }
.ha-head[data-cat="olahraga"] { --cat: #c62828; }
.ha-head[data-cat="pendidikan"] { --cat: #1565c0; }
.ha-head[data-cat="kesehatan"] { --cat: #00838f; }
.ha-head[data-cat="pembangunan"] { --cat: #6d4c41; }
.ha-head[data-cat="sosial-bencana"] { --cat: #d84315; }
.ha-head[data-cat="fotografi"], .ha-head[data-cat="videografi"] { --cat: #37474f; }
@media (max-width: 600px) { .ha-head[data-cat] h2 { padding: 6px 12px; font-size: .95rem; } }
/* Pita untuk admin saat Mode Maintenance aktif (pengunjung umum tidak melihatnya). Semua layar. */
.mt-strip { padding: 8px 16px; background: #b71c1c; color: #fff; font-size: .85rem; text-align: center; }
.mt-strip a { color: #fff; font-weight: 800; text-decoration: underline; }
