/* =========================================================
   ANSOR RIAU — Design System (app.css)
   Dipakai bersama Tailwind (CDN prototyping / production build).
   Kelas komponen ditulis dalam CSS murni agar konsisten di semua halaman.
   ========================================================= */

:root {
  --primary-green: #087443;
  --dark-green: #04552F;
  --deep-green: #023B25;
  --gold: #C9A227;
  --gold-soft: #E7CE7A;
  --cream: #F8F6EF;
  --ink: #0F172A;
  --muted: #566579;
  --line: #E2E8F0;
  --light-green: #EAF5EF;
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background-color: #ffffff;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, .font-heading {
  font-family: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
}

::selection { background: rgba(201, 162, 39, .30); }

/* ---------- Fokus & aksesibilitas ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--deep-green); color: #fff;
  padding: .75rem 1.25rem; border-radius: 0 0 .5rem 0;
  font-weight: 600; font-size: .875rem;
}
.skip-link:focus { left: 0; }

/* ---------- Pola motif Melayu halus (aksen only) ---------- */
.pattern-diamond {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M24 0L48 24 24 48 0 24Z' fill='none' stroke='%23FFFFFF' stroke-opacity='0.07'/%3E%3Ccircle cx='24' cy='24' r='1.6' fill='%23C9A227' fill-opacity='0.12'/%3E%3C/svg%3E");
}
.pattern-diamond-dark {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M24 0L48 24 24 48 0 24Z' fill='none' stroke='%23023B25' stroke-opacity='0.06'/%3E%3Ccircle cx='24' cy='24' r='1.6' fill='%23087443' fill-opacity='0.08'/%3E%3C/svg%3E");
}

/* ---------- Header / navigasi ---------- */
#site-header.is-scrolled {
  box-shadow: 0 4px 20px -6px rgba(2, 59, 37, .18);
}

.nav-link {
  position: relative;
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .5rem .625rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .02em;
  color: #334155; border-radius: .5rem;
  transition: color .2s ease, background-color .2s ease;
  white-space: nowrap;
}
.nav-link:hover { color: var(--primary-green); background: var(--light-green); }
.nav-link[aria-current="page"] { color: var(--primary-green); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: .625rem; right: .625rem; bottom: .1rem;
  height: 2px; border-radius: 2px; background: var(--gold);
}

.dd-panel {
  position: absolute; left: 50%; top: 100%; z-index: 40;
  transform: translate(-50%, 8px);
  padding-top: .75rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.dd-panel > div {
  width: 16rem; padding: .5rem;
  background: #fff; border: 1px solid var(--line); border-radius: .875rem;
  box-shadow: 0 16px 40px -12px rgba(2, 59, 37, .22);
}
/* jembatan hover agar panel tidak tertutup gap */
.dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: .75rem; }
.group:hover > .dd-panel,
.group:focus-within > .dd-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
}
.group:hover > .dd-panel::before,
.group:focus-within > .dd-panel::before { top: auto; bottom: -.75rem; height: .75rem; }

.dd-item {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem .625rem; border-radius: .5rem;
  font-size: .8125rem; font-weight: 500; color: #334155;
  transition: background-color .2s ease, color .2s ease;
}
.dd-item:hover, .dd-item:focus-visible { background: var(--light-green); color: var(--primary-green); }
.dd-item[aria-current="page"] { color: var(--primary-green); font-weight: 700; background: var(--light-green); }

/* ---------- Akordeon mobile ---------- */
.acc-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease;
}
.acc-panel > div { overflow: hidden; }
.acc-panel.open { grid-template-rows: 1fr; }
.acc-chev { transition: transform .25s ease; }
.acc-btn[aria-expanded="true"] .acc-chev { transform: rotate(180deg); }

/* ---------- Menu mobile ---------- */
#mobile-menu .panel { transform: translateX(100%); transition: transform .3s ease; }
#mobile-menu.open .panel { transform: translateX(0); }
body.no-scroll { overflow: hidden; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.4rem; border-radius: .65rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: .875rem; font-weight: 700; line-height: 1;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  cursor: pointer; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary-green); color: #fff; }
.btn-primary:hover { background: var(--dark-green); }
.btn-outline { border: 1.5px solid var(--primary-green); color: var(--primary-green); background: transparent; }
.btn-outline:hover { background: var(--light-green); }
.btn-light { background: #fff; color: var(--deep-green); }
.btn-light:hover { background: var(--cream); }
.btn-gold { background: var(--gold); color: var(--deep-green); }
.btn-gold:hover { background: #b8921f; color: #fff; }
.btn-ghost-light { border: 1.5px solid rgba(255,255,255,.45); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }

/* ---------- Label section (pola reusable) ---------- */
.section-label {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .9rem; border-radius: 9999px;
  background: var(--light-green); border: 1px solid rgba(8,116,67,.14);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: .75rem; font-weight: 800; letter-spacing: .14em; line-height: 1;
  text-transform: uppercase; color: var(--primary-green);
}
.section-label::before {
  content: ""; width: .4rem; height: .4rem; border-radius: 9999px;
  background: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.22);
}
.section-label.on-dark { color: var(--gold-soft); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }

/* ---------- Kartu ---------- */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: .875rem;
  box-shadow: 0 1px 2px rgba(2,59,37,.05), 0 10px 28px -18px rgba(2,59,37,.14);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.card-hover:hover {
  transform: translateY(-3px);
  border-color: rgba(8,116,67,.35);
  box-shadow: 0 4px 8px rgba(2,59,37,.06), 0 20px 40px -16px rgba(2,59,37,.2);
}
.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform .3s ease; }
.group:hover .img-zoom img, .img-zoom:hover img { transform: scale(1.05); }

/* ---------- Pill filter ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .45rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: .8125rem; font-weight: 600; color: #475569;
  transition: all .2s ease; cursor: pointer; white-space: nowrap;
}
.pill:hover { border-color: var(--primary-green); color: var(--primary-green); }
.pill[aria-pressed="true"] {
  background: var(--primary-green); border-color: var(--primary-green); color: #fff;
}

/* ---------- Badge / chip ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .625rem; border-radius: 999px;
  font-size: .6875rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-gold { background: rgba(201,162,39,.14); color: #6b520e; }
.badge-green { background: var(--light-green); color: var(--primary-green); }
.badge-dark { background: var(--deep-green); color: #fff; }
.badge-muted { background: #f1f5f9; color: var(--muted); }

/* ---------- Form ---------- */
.input {
  width: 100%; padding: .7rem 1rem;
  border: 1px solid var(--line); border-radius: .65rem;
  background: #fff; font-size: .875rem; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input::placeholder { color: #94a3b8; }
.input:focus {
  outline: none; border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(8,116,67,.15);
}
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

/* ---------- Ticker informasi ---------- */
.ticker { overflow: hidden; }
.ticker-track {
  display: flex; align-items: center; gap: 3rem; width: max-content;
  animation: ticker 36s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Reveal on scroll (ringan) ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in-view {
  opacity: 1; transform: translateY(0);
  transition: opacity .6s ease, transform .6s ease;
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in-view { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Lightbox ---------- */
#lightbox { 
  position: fixed; inset: 0; z-index: 90; display: none;
  background: rgba(2, 27, 17, .92);
}
#lightbox.open { display: flex; }
#lightbox img { max-height: 82vh; max-width: 92vw; }
#lightbox .lb-img { animation: lbfade .25s ease; }
@keyframes lbfade { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: scale(1); } }

/* ---------- Toast ---------- */
#toast {
  position: fixed; bottom: 1.5rem; left: 50%; z-index: 100;
  transform: translate(-50%, 150%);
  transition: transform .3s ease;
  max-width: min(92vw, 26rem);
}
#toast.show { transform: translate(-50%, 0); }

/* ---------- Timeline (sejarah) ---------- */
.timeline-line { position: absolute; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--gold), rgba(8,116,67,.25)); }
.tl-dot {
  width: 14px; height: 14px; border-radius: 999px;
  background: #fff; border: 3px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(201,162,39,.15);
}

/* ---------- Pagination ---------- */
.page-btn {
  min-width: 2.4rem; height: 2.4rem; display: inline-flex; align-items: center; justify-content: center;
  border-radius: .6rem; border: 1px solid var(--line);
  font-size: .8125rem; font-weight: 600; color: #475569; background: #fff;
  transition: all .2s ease; cursor: pointer;
}
.page-btn:hover { border-color: var(--primary-green); color: var(--primary-green); }
.page-btn[aria-current="page"] { background: var(--primary-green); border-color: var(--primary-green); color: #fff; }

/* ---------- Scrollbar halus ---------- */
@supports (scrollbar-width: thin) {
  * { scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
}

/* ---------- Masonry galeri ---------- */
.masonry { column-gap: 1.25rem; }
.masonry > * { break-inside: avoid; margin-bottom: 1.25rem; }

/* ---------- Util kecil ---------- */
.text-balance { text-wrap: balance; }
.gold-underline {
  background-image: linear-gradient(transparent 68%, rgba(201,162,39,.45) 68%);
}

/* ---------- Tipografi ---------- */
p, li, blockquote { text-wrap: pretty; overflow-wrap: break-word; }
h1, h2, h3, h4 { text-wrap: balance; overflow-wrap: break-word; }
.text-pretty { text-wrap: pretty; }
@media (max-width: 639px) {
  body { font-size: 15.5px; line-height: 1.65; }
  h1 { font-size: clamp(1.9rem, 8.2vw, 2.4rem); }
}

/* ---------- Kembali ke atas ---------- */
.back-to-top {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 55; display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 9999px; border: 1px solid rgba(255,255,255,.18);
  background: var(--primary-green); color: #fff; cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(2,59,37,.55);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background-color .2s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--dark-green); }
.back-to-top svg { width: 1.25rem; height: 1.25rem; }
@media (min-width: 1024px) { .back-to-top { right: 1.75rem; bottom: 1.75rem; } }
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: none; } }

/* Badge di atas gambar: kontras terbaca di latar gelap */
.img-zoom .badge-gold { background: #fff; color: #6b520e; box-shadow: 0 2px 8px rgba(0,0,0,.18); }

/* Item grid boleh menyusut agar teks panjang/truncate tidak melebarkan kolom di layar kecil */
.grid > * { min-width: 0; }


/* Anchor tidak tertutup header sticky */
html { scroll-padding-top: 9.5rem; }

/* ---------- Standar tombol ----------
   Tombol navigasi: teks + panah kanan. Tombol aksi: ikon makna di kiri.
   Ikon 16px, tinggi minimal 44px (target sentuh), ikon tidak menyusut. */
.btn { min-height: 2.75rem; }
.btn > svg { width: 1rem; height: 1rem; flex-shrink: 0; transition: transform .2s ease; }
.btn:hover > svg:last-child:not(:first-child) { transform: translateX(3px); }
.btn:focus-visible { outline-offset: 3px; border-radius: .65rem; }
@media (max-width: 479px) {
  .btn { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .btn > svg { transition: none; }
  .btn:hover > svg:last-child:not(:first-child) { transform: none; }
}

/* ---------- Tombol responsif di mobile ----------
   Grup tombol (flex-wrap) dan tombol tunggal di blok biasa jadi selebar kolom. */
@media (max-width: 479px) {
  .flex-wrap > .btn,
  div:not([class*="flex"]):not([class*="grid"]) > .btn:only-child { width: 100%; }
}

/* ---------- Container: lebar penuh sampai 1280px (tanpa lompatan max-width Tailwind di tablet) ---------- */
html .container { max-width: 80rem; }

/* ---------- Ikon menu (burger): dua batang, batang bawah memanjang saat hover ---------- */
.burger .burger-short { transform: scaleX(.55); transform-origin: right center; transform-box: fill-box; transition: transform .25s ease; }
.burger-btn:hover .burger-short, .burger-btn:focus-visible .burger-short, .burger-btn[aria-expanded="true"] .burger-short { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .burger .burger-short { transition: none; } }

/* ---------- Tombol mode gelap/terang ---------- */
.theme-toggle .icon-sun { display: none; }
html.dark .theme-toggle .icon-sun { display: block; }
html.dark .theme-toggle .icon-moon { display: none; }

/* ---------- Mode gelap ----------
   Menimpa kelas warna Tailwind & komponen. Kelas .dark dipasang di <html>. */
html.dark { color-scheme: dark; }
html.dark body { background-color: #0b1410; color: #e6efe9; }
html.dark .bg-white { background-color: #111d17; }
html.dark .bg-white\/95 { background-color: rgba(11,20,16,.92); }
html.dark .bg-cream { background-color: #0e1a14; }
html.dark .bg-cream\/70 { background-color: rgba(14,26,20,.7); }
html.dark .bg-light-green,
html.dark .hover\:bg-light-green:hover { background-color: rgba(61,187,133,.14); }
html.dark .text-ink { color: #e6efe9; }
html.dark .text-ink\/90 { color: rgba(230,239,233,.9); }
html.dark .text-muted { color: #94a89d; }
html.dark .text-primary-green,
html.dark .hover\:text-primary-green:hover,
html.dark .group:hover .group-hover\:text-primary-green { color: #4cc790; }
html.dark .text-dark-green { color: #9ee6c2; }
html.dark .border-line, html.dark .border-line\/70, html.dark .ring-line { border-color: #22372c; --tw-ring-color: #22372c; }
html.dark .shadow-card, html.dark .shadow-2xl, html.dark .shadow-lg { box-shadow: 0 10px 30px -12px rgba(0,0,0,.6); }
html.dark ::selection { background: rgba(201,162,39,.35); }
html.dark .nav-link { color: #c3d1c9; }
html.dark .nav-link:hover, html.dark .nav-link[aria-current="page"] { color: #4cc790; }
html.dark .card, html.dark .dd-panel > div { background: #111d17; border-color: #22372c; }
html.dark .dd-item { color: #c3d1c9; }
html.dark .dd-item:hover, html.dark .dd-item:focus-visible, html.dark .dd-item[aria-current="page"] { background: rgba(61,187,133,.14); color: #4cc790; }
html.dark .btn-outline { color: #4cc790; border-color: #4cc790; }
html.dark .btn-outline:hover { background: rgba(61,187,133,.14); }
html.dark .section-label { background: rgba(61,187,133,.12); border-color: rgba(61,187,133,.25); color: #4cc790; }
html.dark .section-label.on-dark { color: var(--gold-soft); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
html.dark .badge-green { background: rgba(61,187,133,.14); color: #4cc790; }
html.dark .badge-muted { background: #18291f; color: #94a89d; }
html.dark .badge-gold { background: rgba(201,162,39,.18); color: #e7ce7a; }
html.dark .img-zoom .badge-gold { background: #fff; color: #6b520e; }
html.dark .pill, html.dark .page-btn { background: #111d17; border-color: #22372c; color: #b4c4bb; }
html.dark .pill:hover, html.dark .page-btn:hover { border-color: #4cc790; color: #4cc790; }
html.dark .pill[aria-pressed="true"], html.dark .pill.active, html.dark .page-btn[aria-current="page"] { background: var(--primary-green); border-color: var(--primary-green); color: #fff; }
html.dark .input, html.dark select.input { background-color: #0e1a14; border-color: #22372c; color: #e6efe9; }
html.dark .input::placeholder { color: #6f8478; }
html.dark .tl-dot { background: #111d17; }
html.dark .skip-link { background: #4cc790; color: #04210f; }
html.dark .panel { background: #111d17; }
html.dark img { filter: brightness(.92); }
html.dark .logo-box, html.dark a[aria-label^="Beranda"] > span:first-child { background-color: #fff; }
html.dark .pill.bg-primary-green { background: var(--primary-green); border-color: var(--primary-green); color: #fff; }
html.dark .pill.text-muted { color: #94a89d; }
html.dark .text-deep-green { color: #9ee6c2; }

/* ---------- Pencarian global ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-start; justify-content: center; padding: 4.5rem 1rem 1rem; }
.search-overlay[hidden] { display: none; }
.search-backdrop { position: absolute; inset: 0; background: rgba(2,27,17,.6); backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s ease; }
.search-dialog {
  position: relative; width: 100%; max-width: 40rem; max-height: calc(100vh - 6rem); display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 30px 60px -20px rgba(2,27,17,.5);
  opacity: 0; transform: translateY(-8px) scale(.98); transition: opacity .2s ease, transform .2s ease;
}
.search-overlay.open .search-backdrop { opacity: 1; }
.search-overlay.open .search-dialog { opacity: 1; transform: none; }
.search-field { display: flex; align-items: center; gap: .75rem; padding: .25rem 1rem; border-bottom: 1px solid var(--line); }
.search-field .search-ico { color: var(--primary-green); flex-shrink: 0; }
.search-input { flex: 1; min-width: 0; height: 3.5rem; border: 0; outline: none; background: transparent; font-size: 1rem; color: var(--ink); }
.search-input::-webkit-search-cancel-button { display: none; }
.search-esc { font-size: .6875rem; font-weight: 700; letter-spacing: .06em; padding: .3rem .5rem; border: 1px solid var(--line); border-radius: .4rem; color: var(--muted); }
.search-results { overflow-y: auto; padding: .5rem; margin: 0; list-style: none; }
.search-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .8rem; border-radius: .65rem; }
.search-item:hover, .search-item.is-active { background: var(--light-green); }
.search-item-main { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.search-item-title { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: .9375rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-item-desc { font-size: .8125rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-item-cat { flex-shrink: 0; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-green); background: #fff; border: 1px solid rgba(8,116,67,.18); border-radius: 999px; padding: .2rem .55rem; }
.search-empty { padding: 2rem 1rem; text-align: center; font-size: .875rem; color: var(--muted); }
.search-hint { display: none; gap: 1rem; padding: .6rem 1rem; border-top: 1px solid var(--line); font-size: .75rem; color: var(--muted); margin: 0; }
.search-hint span { display: inline-flex; align-items: center; gap: .35rem; }
@media (min-width: 640px) { .search-hint { display: flex; } .search-overlay { padding-top: 6rem; } }
@media (prefers-reduced-motion: reduce) { .search-backdrop, .search-dialog { transition: none; } }
html.dark .search-dialog { background: #111d17; border-color: #22372c; }
html.dark .search-field, html.dark .search-hint { border-color: #22372c; }
html.dark .search-input { color: #e6efe9; }
html.dark .search-esc { border-color: #22372c; color: #94a89d; }
html.dark .search-item:hover, html.dark .search-item.is-active { background: rgba(61,187,133,.14); }
html.dark .search-item-title { color: #e6efe9; }
html.dark .search-item-desc { color: #94a89d; }
html.dark .search-item-cat { background: transparent; color: #4cc790; border-color: rgba(76,199,144,.3); }
html.dark .bg-line { background-color: #22372c; }
html.dark [class*="text-ink/"] { color: rgba(230,239,233,.8); }

/* teks emas di latar terang: lebih gelap agar kontras >= 4.5:1; di mode gelap kembali emas muda */
.text-gold-text { color: #7a5f0f; }
html.dark .text-gold-text { color: #e7ce7a; }
/* utilitas slate (artikel/tabel) di mode gelap */
html.dark .text-slate-700, html.dark .text-slate-600 { color: #b4c4bb; }
html.dark .text-slate-500, html.dark .text-slate-400 { color: #94a89d; }
html.dark .bg-slate-50, html.dark .bg-slate-100 { background-color: #0e1a14; }
html.dark .divide-line > :not([hidden]) ~ :not([hidden]) { border-color: #22372c; }
html.dark [class*="bg-cream/"] { background-color: rgba(14,26,20,.7); }
html.dark .group:hover .group-hover\:bg-white { background-color: #111d17; }

/* matikan transisi sesaat saat ganti tema agar semua warna berubah serentak */
html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after { transition: none !important; }

.album-card .album-cover::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(2,41,26,.35),transparent 45%);pointer-events:none}

.card:target,article:target{animation:targetFlash 2.4s ease-out}
@keyframes targetFlash{0%,35%{box-shadow:0 0 0 4px rgba(201,162,39,.7)}100%{box-shadow:0 0 0 0 rgba(201,162,39,0)}}
/* === Tipografi: batas minimum keterbacaan (UX: body >=16px, teks >=12px, kontras >=4.5:1) === */
html body{font-size:1rem;line-height:1.65}
.text-\[10px\],.text-\[11px\],.text-\[11\.5px\]{font-size:.75rem!important}
.badge,.hero-badge,.chip{font-size:.75rem!important}
.ansor-prose p,.ansor-prose li{font-size:1rem;line-height:1.8}
main .text-gold,aside .text-gold,.card .text-gold{color:#7A5C00}
a.rounded-full.border{min-height:2rem;display:inline-flex;align-items:center}
@media (max-width:639px){.text-xs{font-size:.8125rem}}
.hero-stats dd{white-space:nowrap}
.hero-stats dt{overflow-wrap:anywhere}
@media (max-width:479px){.hero-stats{gap:.75rem}.hero-stats dd{font-size:clamp(1.15rem,5.2vw,1.5rem)}}
/* === Area sentuh minimal 44px di layar sentuh (UX: touch target 44x44, jarak >=8px) === */
@media (max-width:1023px){
  header#site-header a.h-10,header#site-header button.h-10,a.h-10.w-10,button.h-10.w-10,.burger-btn,.theme-toggle{min-width:44px;min-height:44px}
  footer a:not(.h-10){display:inline-flex;align-items:center;min-height:44px}
  footer ul{row-gap:0}
  aside a.flex.items-center.justify-between,aside a.line-clamp-3,a.pill,button.pill,.page-btn,.share-btn,summary{min-height:44px}
  .page-btn,.hero-arrow{min-width:44px}
  a.rounded-full.border{min-height:2.5rem}
  .hero-arrow{width:44px;height:44px}
  .hero-dot{position:relative}.hero-dot::after{content:"";position:absolute;inset:-18px -8px}
  a.inline-flex.items-center.gap-1\.5.text-sm.font-bold,a.mt-4.inline-flex,a.mt-2.inline-block,a.mt-0\.5.block,a.mt-3.inline-flex{min-height:44px;display:inline-flex;align-items:center}
  nav[aria-label=Breadcrumb] a{padding-block:.85rem;margin-block:-.85rem}
  .badge[href]{min-height:2rem}
  header#site-header>nav>a:first-child{min-height:44px}
  .share-btn{min-width:44px}
  .hero-arrow{min-height:44px}
  a.h-9.w-9{min-width:44px;min-height:44px}
  a.h-12.flex-col{min-width:44px}
}
/* === Halaman statis: prosa kaya (kartu, penomoran, kutipan sorotan, ikon centang) === */
body .ansor-prose{counter-reset:none}
body .ansor-prose h2{display:flex;align-items:center;gap:.75rem;padding-bottom:.6rem;border-bottom:1px solid #E2E8F0}
body .ansor-prose h2::before{content:"";flex:none;width:.4rem;height:1.6rem;border-radius:99px;background:linear-gradient(#C9A227,#087443)}
body .ansor-prose h3{display:flex;align-items:center;gap:.5rem}
body .ansor-prose h3::before{content:"";flex:none;width:.55rem;height:.55rem;border-radius:99px;background:#C9A227}
body .ansor-prose blockquote{position:relative;border:0;border-radius:1.25rem;padding:2rem 2rem 2rem 4.5rem;color:#fff;font-size:1.25rem;line-height:1.55;font-weight:700;background:linear-gradient(135deg,#04552F,#087443);box-shadow:0 12px 30px -12px rgba(4,85,47,.5)}
body .ansor-prose blockquote::before{content:"\201C";position:absolute;left:1.4rem;top:.4rem;font-size:5rem;line-height:1;font-family:Georgia,serif;color:#E7CE7A}
body .ansor-prose ol{list-style:none;padding:0;counter-reset:n;display:grid;gap:.85rem}
body .ansor-prose ol>li{counter-increment:n;position:relative;margin:0;padding:1rem 1.1rem 1rem 4rem;background:#fff;border:1px solid #E2E8F0;border-radius:1rem;box-shadow:0 1px 2px rgba(15,23,42,.04)}
body .ansor-prose ol>li::before{content:counter(n);position:absolute;left:1rem;top:1rem;width:2.1rem;height:2.1rem;border-radius:99px;background:#087443;color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;font-size:.95rem}
body .ansor-prose ol>li::marker{content:""}
body .ansor-prose ol>li>strong:first-child{display:block;color:#0F172A;font-family:var(--font-heading,sans-serif);margin-bottom:.15rem}
body .ansor-prose ul{list-style:none;padding:0;display:grid;gap:.7rem}
body .ansor-prose ul>li{position:relative;margin:0;padding:.85rem 1rem .85rem 3.1rem;background:#F8F6EF;border-radius:.85rem}
body .ansor-prose ul>li::before{content:"";position:absolute;left:1rem;top:1rem;width:1.3rem;height:1.3rem;border-radius:99px;background:#087443 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center/70% no-repeat}
body .ansor-prose ul>li::marker{content:""}
body .ansor-prose ul>li>strong:first-child{color:#0F172A}
body .ansor-prose h3+p{margin-top:.35rem;padding-left:1.05rem;border-left:2px solid #E2E8F0}
@media (max-width:639px){body .ansor-prose blockquote{padding:1.6rem 1.25rem 1.4rem 1.25rem;font-size:1.05rem}body .ansor-prose blockquote::before{position:static;display:block;height:2.4rem;font-size:3.6rem}body .ansor-prose ol>li{padding-left:3.5rem}body .ansor-prose h2{font-size:1.4rem}}
.mod-icon{display:inline-flex;align-items:center;justify-content:center;width:2.75rem;height:2.75rem;border-radius:.85rem;background:#EAF5EF;color:#087443;flex:none}
.mod-step{display:inline-flex;align-items:center;justify-content:center;width:2.75rem;height:2.75rem;border-radius:99px;background:#087443;color:#fff;font-weight:800;font-family:var(--font-heading,sans-serif)}
/* === Filter kategori: satu baris geser === */
.cat-strip{scrollbar-width:none;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.cat-strip::-webkit-scrollbar{display:none}
.cat-strip{margin-inline:-1rem;padding-inline:1rem;padding-bottom:.5rem;scroll-padding-inline:1rem}
@media (min-width:640px){.cat-strip{margin-inline:0;padding-inline:0}}
.cat-strip::after{content:"";flex:none;width:.25rem}
.cat-strip .pill{flex:none;white-space:nowrap;scroll-snap-align:start}
/* === Detail berita: header rapi di mobile === */
nav[aria-label=Breadcrumb] ol>li:not(.hidden){display:inline-flex;align-items:center}
@media (max-width:639px){#judul-artikel{margin-top:1rem}.art-meta+.art-author{margin-top:.75rem}}
#judul-artikel{overflow-wrap:anywhere;font-size:1.65rem;line-height:1.25}
@media (min-width:640px){#judul-artikel{font-size:1.875rem}}
@media (min-width:768px){#judul-artikel{font-size:2.25rem}}
.art-meta>*{min-width:0}
.art-meta>span{white-space:normal}
@media (max-width:639px){.art-meta{row-gap:.5rem}.art-meta>span:nth-of-type(1){flex-basis:100%}}
/* === Detail berita: tombol bagikan, cetak === */
.share-btn{display:inline-flex;align-items:center;gap:.5rem;height:2.6rem;padding:0 .95rem;border-radius:.75rem;border:1px solid #E2E8F0;background:#fff;color:#334155;font-size:.8125rem;font-weight:700;transition:background .2s,color .2s,border-color .2s}
.share-btn:hover{background:#087443;border-color:#087443;color:#fff}
.share-btn[hidden]{display:none}
@media (max-width:639px){.share-btn span{display:none}.share-btn{width:2.6rem;padding:0;justify-content:center}}
@media print{#site-header,.ticker-bar,footer,aside,.share-box,.no-print,.hero-ctrl,#mobile-menu{display:none!important}body{background:#fff!important}main section{padding:0!important}a[href]:after{content:""!important}}
/* === Teks panjang aman + sidebar berita lega === */
main :is(h1,h2,h3,h4,p,a,li,dd,dt,figcaption,summary){overflow-wrap:anywhere}
.side-list>*+*{margin-top:1rem;padding-top:1rem;border-top:1px solid #E2E8F0}
.side-list a{line-height:1.45}
.card.p-5 .side-list{margin-top:1.1rem}
/* === Hero slider & poles tipografi === */
.hero-stack{display:grid}
.hero-slide{grid-area:1/1;opacity:0;visibility:hidden;transition:opacity .6s ease,visibility .6s}
.hero-slide.is-active{opacity:1;visibility:visible}
.hero-slide .hero-copy>*,.hero-slide .hero-photo-wrap{opacity:0;transform:translateY(16px);transition:opacity .45s ease,transform .45s ease}
.hero-slide.is-active .hero-copy>*,.hero-slide.is-active .hero-photo-wrap{opacity:1;transform:none;transition:opacity .8s ease,transform .8s ease}
.hero-slide.is-active .hero-copy>*:nth-child(2){transition-delay:.08s}.hero-slide.is-active .hero-copy>*:nth-child(3){transition-delay:.16s}
.hero-slide.is-active .hero-copy>*:nth-child(4){transition-delay:.24s}.hero-slide.is-active .hero-copy>*:nth-child(5){transition-delay:.32s}.hero-slide.is-active .hero-copy>*:nth-child(6){transition-delay:.4s}
.hero-slide.is-active .hero-photo-wrap{transition-delay:.15s}
.hero-badge{display:inline-flex;align-items:center;gap:.5rem;padding:.42rem .95rem;border-radius:9999px;background:#fff;border:1px solid rgba(8,116,67,.18);color:#087443;font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;box-shadow:0 8px 20px -12px rgba(8,116,67,.55)}
.hero-badge svg{width:.95rem;height:.95rem;color:#C9A227}
.hero-h1{letter-spacing:-.02em}
.hero-h1 .gold-underline{background-image:linear-gradient(transparent 66%,rgba(201,162,39,.5) 66%);padding:0 .08em}
.hero-btn{box-shadow:0 14px 26px -14px rgba(8,116,67,.75)}
.hero-btn-2{background:#fff}
.hero-points{gap:.5rem !important}.hero-points li{padding:.32rem .7rem;font-size:.8125rem;border-radius:9999px;background:rgba(255,255,255,.8);border:1px solid #E2E8F0;white-space:nowrap}.hero-points svg{width:.95rem;height:.95rem}
.hero-points svg{color:#087443}
.hero-stats>div{position:relative;padding-left:1rem}
.hero-stats>div::before{content:"";position:absolute;left:0;top:.35rem;bottom:.35rem;width:3px;border-radius:3px;background:linear-gradient(#C9A227,#E7CE7A)}
.hero-photo-wrap{isolation:isolate}
.hero-photo-wrap::before{content:"";position:absolute;inset:1rem -.9rem -.9rem 1rem;border:1.5px solid rgba(201,162,39,.5);border-radius:2rem;z-index:-1}
.hero-ctrl{position:absolute;left:0;right:0;bottom:1.1rem;display:flex;align-items:center;justify-content:center;gap:.9rem}
.hero-dots{display:flex;gap:.5rem}
.hero-dot{width:.55rem;height:.55rem;border-radius:9999px;background:rgba(2,59,37,.25);transition:all .3s ease}
.hero-dot.is-active{width:1.9rem;background:#087443}
.hero-arrow{width:2.4rem;height:2.4rem;border-radius:9999px;border:1px solid #E2E8F0;background:#fff;color:#087443;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 8px 18px -10px rgba(2,59,37,.4);transition:background .2s,color .2s}
.hero-arrow:hover{background:#087443;color:#fff}
@media (max-width:767px){.hero-ctrl{bottom:.6rem}}
/* === Bar info & header bersih === */
.ticker-bar{background:#023B25;color:rgba(255,255,255,.82)}
.ticker-label{display:inline-flex;align-items:center;gap:.4rem;flex-shrink:0;padding:.28rem .7rem;border-radius:9999px;background:#C9A227;color:#023B25;font-size:.68rem;font-weight:800;letter-spacing:.12em}
.ticker-bar .ticker-track{gap:2.5rem}
#site-header{box-shadow:0 1px 0 rgba(15,23,42,.06)}
#site-header.is-scrolled{box-shadow:0 8px 24px -14px rgba(2,59,37,.3)}
.nav-link{font-weight:700}
.nav-link::before{content:"";position:absolute;left:.625rem;right:.625rem;bottom:.1rem;height:2px;border-radius:2px;background:var(--gold);transform:scaleX(0);transform-origin:left;transition:transform .25s ease}
.nav-link:hover::before{transform:scaleX(1)}
.nav-link:hover{background:transparent}

/* Ticker ANSOR INFO tetap berjalan walau OS memakai "reduce motion" (gerakannya lambat & berhenti saat di-hover) */
@media (prefers-reduced-motion: reduce){.ticker-track{animation:ticker 60s linear infinite !important}}
/* === Isi halaman dari admin (Halaman Statis) === */
.ansor-prose{color:#334155;line-height:1.85;font-size:1rem}
.ansor-prose>*+*{margin-top:1.1rem}
.ansor-prose h2{font-family:var(--font-heading,"Plus Jakarta Sans",sans-serif);font-weight:800;font-size:1.65rem;line-height:1.25;color:#0F172A;margin-top:2.4rem}
.ansor-prose h3{font-family:var(--font-heading,"Plus Jakarta Sans",sans-serif);font-weight:700;font-size:1.2rem;color:#04552F;margin-top:1.6rem}
.ansor-prose ul{list-style:disc;padding-left:1.4rem}.ansor-prose ol{list-style:decimal;padding-left:1.4rem}
.ansor-prose li+li{margin-top:.5rem}.ansor-prose li::marker{color:#C9A227;font-weight:700}
.ansor-prose blockquote{border-left:4px solid #C9A227;background:#F8F6EF;padding:1rem 1.25rem;border-radius:.5rem;font-weight:600;color:#0F172A}
.ansor-prose a{color:#087443;text-decoration:underline}
.ansor-prose img{border-radius:1rem;max-width:100%;height:auto}
.ansor-prose table{width:100%;border-collapse:collapse}.ansor-prose th,.ansor-prose td{border:1px solid #E2E8F0;padding:.6rem .8rem;text-align:left}
.ansor-prose th{background:#EAF5EF}
