/* ==========================================================================
   SC Desa HTML — Tema "Warta" (gaya koran / portal berita desa)
   Template oleh sharecode.id — MIT License
   --------------------------------------------------------------------------
   Daftar isi:
   1. Font & variabel      7. Komponen (tombol, kartu, rubrik)
   2. Reset & dasar        8. Beranda
   3. Topline & masthead   9. Halaman dalam
   4. Navigasi             10. Galeri, lightbox, modal video
   5. Ticker               11. Form, toast, back-to-top
   6. Tata letak & tipografi 12. Responsif & aksesibilitas
   ========================================================================== */

/* 1. FONT (self-host, lihat NOTICE.md) ------------------------------------ */
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-900.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("../fonts/work-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("../fonts/work-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("../fonts/work-sans-600.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }

/* Ganti warna & font di sini ---------------------------------------------- */
:root {
  --ink: #141414;          /* tinta utama */
  --ink-2: #3b3936;        /* teks sekunder */
  --muted: #6a645c;        /* teks redup (kontras AA di atas kertas) */
  --paper: #f7f4ee;        /* latar kertas koran */
  --paper-2: #eee8dc;      /* kertas lebih gelap */
  --white: #ffffff;
  --rule: #141414;         /* garis tegas */
  --rule-soft: #d6cfc2;    /* garis tipis */
  --accent: #8b1e3f;       /* merah marun */
  --accent-dark: #6b1530;
  --accent-soft: #f4e4e9;
  --ok: #2f6b3a;

  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --maxw: 1240px;
  --gap: clamp(1rem, 2.4vw, 2rem);
  --radius: 2px;
  --shadow: 0 10px 30px rgba(20, 20, 20, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. RESET & DASAR -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--rule-soft); margin: 2rem 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: #fff; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: -.2em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 999; background: var(--ink); color: #fff; padding: .6rem 1rem; text-decoration: none; }
.skip-link:focus { top: 1rem; color: #fff; }
.container { width: min(100% - 2 * var(--gap), var(--maxw)); margin-inline: auto; }

/* 3. TOPLINE & MASTHEAD ---------------------------------------------------- */
.topline { border-bottom: 1px solid var(--rule-soft); font-size: .8rem; color: var(--ink-2); }
.topline .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; flex-wrap: wrap; }
.topline__left, .topline__right { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.topline a { text-decoration: none; }
.topline__item { display: inline-flex; align-items: center; gap: .35rem; }
.fontsize { display: inline-flex; border: 1px solid var(--rule-soft); }
.fontsize button { border: 0; background: transparent; padding: .15rem .55rem; font-weight: 600; font-size: .78rem; }
.fontsize button + button { border-left: 1px solid var(--rule-soft); }
.fontsize button:hover { background: var(--ink); color: #fff; }

.masthead { padding: 1.4rem 0 0; }
.masthead__grid { display: grid; grid-template-columns: 240px 1fr 240px; align-items: center; gap: 1.5rem; }
.masthead__ear { border: 1px solid var(--rule); padding: .7rem .8rem; font-size: .75rem; line-height: 1.4; display: flex; gap: .7rem; align-items: center; }
.masthead__ear strong { display: block; font-family: var(--font-head); font-size: 1rem; }
.masthead__ear--right { text-align: right; justify-content: flex-end; }
.masthead__ear img { width: 48px; height: 48px; }
.masthead__brand { text-align: center; text-decoration: none; display: block; }
.masthead__brand:hover { color: var(--ink); }
.masthead__pre { font-size: .72rem; text-transform: uppercase; letter-spacing: .28em; color: var(--ink-2); margin: 0 0 .2rem; }
.masthead__title { font-family: var(--font-head); font-weight: 900; font-size: clamp(2.3rem, 6.6vw, 5.6rem); line-height: .95; margin: 0; letter-spacing: -.02em; }
.masthead__title em { font-style: normal; color: var(--accent); }
.masthead__motto { font-family: var(--font-head); font-style: italic; font-size: clamp(.9rem, 1.4vw, 1.05rem); margin: .55rem 0 0; color: var(--ink-2); }
.masthead__dateline {
  margin-top: 1.1rem; border-top: 3px double var(--rule); border-bottom: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .14em; font-weight: 500;
}

/* 4. NAVIGASI (sticky) ----------------------------------------------------- */
.navbar { position: sticky; top: 0; z-index: 60; background: var(--paper); border-bottom: 3px double var(--rule); transition: box-shadow .25s; }
.navbar.is-stuck { box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.navbar .container { display: flex; align-items: center; gap: 1rem; min-height: 50px; }
.navbar__mini { font-family: var(--font-head); font-weight: 900; font-size: 1.25rem; text-decoration: none; white-space: nowrap; max-width: 0; overflow: hidden; opacity: 0; transition: max-width .35s var(--ease), opacity .25s; }
.navbar__mini em { font-style: normal; color: var(--accent); }
.navbar.is-stuck .navbar__mini { max-width: 260px; opacity: 1; }
.nav { flex: 1; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; }
.nav__list > li { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: .25rem; padding: .85rem .72rem; text-decoration: none; background: none; border: 0;
  font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; position: relative; white-space: nowrap;
}
.nav__link::after { content: ""; position: absolute; left: .72rem; right: .72rem; bottom: .45rem; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after, .nav__item.is-active > .nav__link::after { transform: scaleX(1); }
.nav__link[aria-current="page"], .nav__item.is-active > .nav__link { color: var(--accent); }
.nav__sub { list-style: none; margin: 0; padding: .4rem 0; position: absolute; top: 100%; left: 50%; min-width: 190px; background: var(--white); border: 1px solid var(--rule); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: .2s var(--ease); }
.nav__sub a { display: block; padding: .55rem 1rem; text-decoration: none; font-size: .88rem; }
.nav__sub a:hover, .nav__sub a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.nav__item--has-sub:hover .nav__sub, .nav__item--has-sub:focus-within .nav__sub, .nav__item--has-sub.is-open .nav__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__caret { width: .8em; height: .8em; }
.navbar__search { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--rule); text-decoration: none; }
.navbar__search:hover { background: var(--ink); color: #fff; }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--rule); background: transparent; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: .25s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* 5. TICKER --------------------------------------------------------------- */
.ticker { background: var(--ink); color: #fff; display: flex; align-items: stretch; overflow: hidden; font-size: .88rem; }
.ticker__label { background: var(--accent); padding: .55rem 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; display: flex; align-items: center; gap: .5rem; white-space: nowrap; position: relative; z-index: 1; }
.ticker__label::after { content: ""; position: absolute; right: -12px; top: 0; bottom: 0; width: 12px; background: var(--accent); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.ticker__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; }
.ticker__viewport { overflow: hidden; flex: 1; min-width: 0; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__track { display: flex; gap: 2.5rem; white-space: nowrap; padding-left: 2rem; animation: ticker 60s linear infinite; width: max-content; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__track a { text-decoration: none; display: inline-flex; gap: .6rem; align-items: center; }
.ticker__track a::before { content: "\25C6"; color: #e5a3b6; font-size: .6rem; }
.ticker__track time { color: #c9c3b8; font-size: .78rem; }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: .2; } }

/* 6. TATA LETAK & TIPOGRAFI ------------------------------------------------ */
main { display: block; }
.section { padding: clamp(2.2rem, 5vw, 3.8rem) 0; }
.section--tight { padding-top: 1.5rem; }
.section--paper2 { background: var(--paper-2); border-block: 1px solid var(--rule-soft); }
.section--ink { background: var(--ink); color: #f3efe7; }
.section--ink a:hover { color: #f2b8c8; }

.kicker { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: .45rem; }
.section--ink .kicker { color: #f2b8c8; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.muted { color: var(--muted); }
.serif { font-family: var(--font-head); }
.small { font-size: .85rem; }
.center { text-align: center; }

/* Rubrik = kepala section ala koran */
.rubrik { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; border-top: 5px solid var(--rule); padding-top: .6rem; margin-bottom: 1.6rem; position: relative; }
.rubrik::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 1px solid var(--rule); }
.rubrik h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 900; margin: .35rem 0 0; }
.rubrik__meta { display: flex; align-items: center; gap: 1rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; white-space: nowrap; }
.rubrik__page { font-family: var(--font-head); font-style: italic; text-transform: none; letter-spacing: 0; color: var(--muted); font-size: .9rem; }
.rubrik__more { text-decoration: none; font-weight: 600; color: var(--accent); display: inline-flex; gap: .3rem; align-items: center; }
.section--ink .rubrik { border-color: #f3efe7; }
.section--ink .rubrik::after { border-color: #f3efe7; }
.section--ink .rubrik__page { color: #bdb6aa; }
.section--ink .rubrik__more { color: #f2b8c8; }

.columns-2, .columns-3 { column-gap: 2rem; column-rule: 1px solid var(--rule-soft); }
.columns-2 { column-count: 2; }
.columns-3 { column-count: 3; }
.columns-2 p, .columns-3 p { text-align: justify; hyphens: auto; }
.dropcap::first-letter { float: left; font-family: var(--font-head); font-weight: 900; font-size: 4.3em; line-height: .82; padding: .08em .1em 0 0; color: var(--accent); }
.byline { font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; }
.byline strong { color: var(--ink); font-weight: 600; }
.caption { font-size: .78rem; color: var(--muted); font-style: italic; margin-top: .45rem; border-bottom: 1px solid var(--rule-soft); padding-bottom: .45rem; }
.pullquote { font-family: var(--font-head); font-size: 1.45rem; line-height: 1.3; font-style: italic; border-top: 3px solid var(--accent); border-bottom: 1px solid var(--rule); padding: 1rem 0; margin: 1.5rem 0; break-inside: avoid; }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.split--rule > :first-child { padding-right: clamp(1rem, 2vw, 2.2rem); border-right: 1px solid var(--rule-soft); }

/* Header halaman dalam */
.page-head { padding: 2.2rem 0 1.6rem; border-bottom: 1px solid var(--rule); }
.page-head__inner { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: end; }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 900; margin: 0; letter-spacing: -.015em; }
.page-head p { margin: .6rem 0 0; max-width: 60ch; color: var(--ink-2); font-size: 1.05rem; }
.breadcrumb { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .6rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--muted); }
.breadcrumb a { text-decoration: none; color: var(--muted); }
.page-head__stamp { border: 2px solid var(--accent); color: var(--accent); padding: .5rem .9rem; text-align: center; transform: rotate(-3deg); font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 600; line-height: 1.3; }
.page-head__stamp strong { display: block; font-family: var(--font-head); font-size: 1.5rem; letter-spacing: 0; text-transform: none; }

/* 7. KOMPONEN ------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .78rem 1.3rem; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; text-decoration: none; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); border-color: var(--ink); }
.btn--accent { background: var(--accent); border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--sm { padding: .5rem .9rem; font-size: .72rem; }
.section--ink .btn--outline { color: #fff; border-color: #fff; }
.section--ink .btn--outline:hover { background: #fff; color: var(--ink); }

.tag { display: inline-block; font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: .2rem .5rem; background: var(--accent); color: #fff; }
.tag--ink { background: var(--ink); }
.tag--line { background: transparent; color: var(--accent); border: 1px solid var(--accent); }

.figure { margin: 0; }
.figure__img { overflow: hidden; background: var(--paper-2); position: relative; }
.figure__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--ease); }
a:hover .figure__img img, .figure__img:hover img { transform: scale(1.04); }

/* Kartu berita */
.news-card { display: flex; flex-direction: column; gap: .5rem; }
.news-card h3 { font-size: 1.25rem; margin: .1rem 0 .2rem; }
.news-card h3 a { text-decoration: none; }
.news-card h3 a:hover { color: var(--accent); text-decoration: underline; }
.news-card p { color: var(--ink-2); font-size: .94rem; margin: 0; }
.news-card--row { flex-direction: row; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule-soft); }
.news-card--row .figure__img { width: 130px; flex: none; }
.news-card--row .figure__img img { aspect-ratio: 1; }
.news-card--row h3 { font-size: 1.05rem; }

/* Daftar bernomor "Terpopuler" */
.numbered { list-style: none; padding: 0; margin: 0; counter-reset: n; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 2.6rem 1fr; gap: .6rem; padding: .85rem 0; border-bottom: 1px solid var(--rule-soft); }
.numbered li::before { content: counter(n, decimal-leading-zero); font-family: var(--font-head); font-weight: 900; font-size: 1.7rem; line-height: 1; color: var(--accent); }
.numbered a { text-decoration: none; font-family: var(--font-head); font-weight: 700; line-height: 1.3; }
.numbered small { display: block; color: var(--muted); font-size: .76rem; margin-top: .2rem; }

/* Kotak samping (sidebar box) */
.box { border: 1px solid var(--rule); background: var(--white); padding: 1.3rem; }
.box + .box { margin-top: 1.5rem; }
.box__title { font-family: var(--font-body); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; border-bottom: 3px double var(--rule); padding-bottom: .55rem; margin-bottom: 1rem; }
.box--accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.box--accent .box__title { border-color: rgba(255, 255, 255, .7); }
.box--accent a:hover { color: #fff; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: .55rem 0; border-bottom: 1px dashed var(--rule-soft); }
.list-plain li:last-child { border-bottom: 0; }
.list-plain a { text-decoration: none; }
.list-check { list-style: none; padding: 0; margin: 0 0 1rem; }
.list-check li { position: relative; padding: .35rem 0 .35rem 1.7rem; }
.list-check li::before { content: ""; position: absolute; left: 0; top: .72rem; width: .8rem; height: .45rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* Tabel koran */
.table-wrap { overflow-x: auto; border-top: 3px solid var(--rule); }
.table { font-size: .92rem; background: var(--white); }
.table th, .table td { padding: .7rem .85rem; border-bottom: 1px solid var(--rule-soft); text-align: left; vertical-align: top; }
.table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.table tfoot td, .table tfoot th { font-weight: 700; border-top: 2px solid var(--rule); background: var(--paper-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tbody tr:hover { background: var(--accent-soft); }

/* Tab */
.tabs__list { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--rule); margin-bottom: 1.4rem; }
.tabs__btn { border: 1px solid transparent; border-bottom: 0; background: transparent; padding: .7rem 1.1rem; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: -1px; color: var(--ink-2); }
.tabs__btn[aria-selected="true"] { border-color: var(--rule); background: var(--white); color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.tabs__panel[hidden] { display: none; }
.tabs__panel { animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

/* Akordeon */
.accordion { border-top: 3px solid var(--rule); }
.acc { border-bottom: 1px solid var(--rule-soft); }
.acc__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; background: none; border: 0; padding: 1.05rem 0; font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; }
.acc__btn:hover { color: var(--accent); }
.acc__sign { width: 28px; height: 28px; flex: none; border: 1px solid var(--rule); position: relative; transition: background .2s; }
.acc__sign::before, .acc__sign::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform .25s; }
.acc__sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__btn[aria-expanded="true"] .acc__sign { background: var(--ink); color: #fff; }
.acc__btn[aria-expanded="true"] .acc__sign::after { transform: translate(-50%, -50%) rotate(0); }
.acc__panel { overflow: hidden; height: 0; transition: height .3s var(--ease); }
.acc__body { padding: 0 0 1.2rem; color: var(--ink-2); }
.acc__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .84rem; color: var(--muted); margin-top: .5rem; }
.acc__meta strong { color: var(--ink); }

/* Filter & pencarian */
.toolbar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; padding: .9rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 1.6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { border: 1px solid var(--rule); background: transparent; padding: .42rem .85rem; font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.chip:hover { background: var(--paper-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.search { position: relative; min-width: min(100%, 300px); }
.search .icon { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; padding: .65rem .9rem .65rem 2.4rem; border: 1px solid var(--rule); background: var(--white); }
.empty-state { display: none; text-align: center; padding: 2.5rem 1rem; border: 1px dashed var(--rule-soft); font-family: var(--font-head); font-style: italic; font-size: 1.15rem; color: var(--muted); }
.empty-state.is-visible { display: block; }
[data-item].is-hidden { display: none !important; }

.pagination { display: flex; gap: .3rem; justify-content: center; margin-top: 2rem; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--rule); text-decoration: none; font-weight: 600; font-size: .88rem; padding: 0 .7rem; }
.pagination [aria-current] { background: var(--ink); color: #fff; }

/* 8. BERANDA --------------------------------------------------------------- */
.front { padding: 1.6rem 0 2.6rem; }
.front__grid { display: grid; grid-template-columns: 250px minmax(0, 1fr) 300px; gap: 0; }
.front__grid > * { padding: 0 1.6rem; }
.front__grid > * + * { border-left: 1px solid var(--rule-soft); }
.front__grid > :first-child { padding-left: 0; }
.front__grid > :last-child { padding-right: 0; }
.col-label { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; border-bottom: 2px solid var(--rule); padding-bottom: .4rem; margin-bottom: .9rem; display: flex; justify-content: space-between; }
.brief { padding: .8rem 0; border-bottom: 1px solid var(--rule-soft); }
.brief:first-of-type { padding-top: 0; }
.brief h3 { font-size: 1.05rem; margin: .2rem 0 .3rem; }
.brief h3 a { text-decoration: none; }
.brief p { font-size: .86rem; color: var(--ink-2); margin: 0; }
.brief time { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* Slider berita utama */
.slider { position: relative; }
.slider__track { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide h2 { font-size: clamp(1.8rem, 3.4vw, 2.85rem); font-weight: 900; margin: .3rem 0 .6rem; letter-spacing: -.01em; }
.slide h2 a { text-decoration: none; }
.slide h2 a:hover { color: var(--accent); }
.slide__deck { font-family: var(--font-head); font-style: italic; font-size: 1.15rem; color: var(--ink-2); margin-bottom: .8rem; }
.slide__text { margin-top: 1rem; }
.slide__text p { text-align: left; }
.slide .figure__img { margin-top: 1rem; }
.slide .figure__img img { aspect-ratio: 16 / 8; }
.slide__text p { font-size: .95rem; }
.slider__nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--rule); padding-top: .8rem; margin-top: .4rem; }
.slider__dots { display: flex; gap: .4rem; }
.slider__dot { width: 34px; height: 4px; padding: 0; border: 0; background: var(--rule-soft); position: relative; overflow: hidden; }
.slider__dot::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.slider__dot[aria-current="true"]::after { transform: scaleX(1); transition: transform .4s; }
.slider__arrows { display: flex; gap: .35rem; align-items: center; font-family: var(--font-head); font-style: italic; color: var(--muted); }
.slider__arrows button { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--rule); background: transparent; }
.slider__arrows button:hover { background: var(--ink); color: #fff; }
.slider__count { min-width: 3.2rem; text-align: center; }

/* Tajuk kepala desa */
.tajuk { background: var(--white); border: 1px solid var(--rule); padding: 1.2rem; position: relative; }
.tajuk__head { display: flex; gap: .9rem; align-items: center; border-bottom: 1px solid var(--rule-soft); padding-bottom: .9rem; margin-bottom: .9rem; }
.tajuk__head img { width: 76px; height: 92px; object-fit: cover; border: 1px solid var(--rule); flex: none; }
.tajuk__head h3 { font-size: 1.1rem; margin: 0; }
.tajuk__head small { display: block; color: var(--muted); font-size: .78rem; }
.tajuk blockquote { margin: 0; font-family: var(--font-head); font-size: 1.12rem; line-height: 1.45; font-style: italic; }
.tajuk blockquote::before { content: "\201C"; font-size: 3.4rem; line-height: .6; display: block; color: var(--accent); font-style: normal; height: 1.4rem; }
.tajuk p { font-size: .88rem; color: var(--ink-2); }
.signature { font-family: var(--font-head); font-style: italic; font-size: 1.5rem; color: var(--accent); margin: .4rem 0 0; transform: rotate(-3deg); display: inline-block; }
.weather { margin-top: 1.4rem; border-top: 3px double var(--rule); padding-top: .9rem; display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; align-items: center; }
.weather__temp { font-family: var(--font-head); font-size: 2.6rem; font-weight: 900; line-height: 1; grid-row: span 2; }
.weather small { color: var(--muted); font-size: .78rem; }

/* Angka desa */
.figures { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid #f3efe7; border-bottom: 1px solid #f3efe7; }
.figure-num { padding: 1.4rem 1rem; text-align: center; }
.figure-num + .figure-num { border-left: 1px solid rgba(243, 239, 231, .3); }
.figure-num strong { display: block; font-family: var(--font-head); font-weight: 900; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; font-variant-numeric: tabular-nums; }
.figure-num span { display: block; margin-top: .5rem; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #cfc8bc; }
.figures-note { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; font-size: .82rem; color: #bdb6aa; }
.mini-bars { display: flex; gap: .3rem; align-items: flex-end; height: 34px; margin: .7rem auto 0; width: max-content; }
.mini-bars i { width: 7px; background: #e5a3b6; display: block; }

/* Iklan baris = layanan cepat */
.classifieds { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.classified { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 1.3rem 1.2rem 1.2rem; text-decoration: none; display: flex; flex-direction: column; gap: .4rem; background: var(--white); transition: background .25s, color .25s; position: relative; }
.classified__no { position: absolute; top: .8rem; right: 1rem; font-family: var(--font-head); font-style: italic; color: var(--muted); font-size: .85rem; }
.classified .icon { width: 30px; height: 30px; stroke-width: 1.6; color: var(--accent); }
.classified h3 { font-size: 1.15rem; margin: .4rem 0 0; }
.classified p { font-size: .85rem; color: var(--ink-2); margin: 0; flex: 1; }
.classified__go { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-top: .4rem; }
.classified:hover { background: var(--ink); color: #fff; }
.classified:hover p, .classified:hover .classified__no { color: #d7d1c7; }
.classified:hover .icon, .classified:hover .classified__go { color: #f2b8c8; }

/* Agenda */
.agenda-list { list-style: none; padding: 0; margin: 0; }
.agenda-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 1.2rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--rule-soft); }
.datebox { border: 1px solid var(--rule); text-align: center; background: var(--white); line-height: 1.1; }
.datebox span { display: block; background: var(--accent); color: #fff; font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; padding: .25rem 0; font-weight: 600; }
.datebox strong { display: block; font-family: var(--font-head); font-weight: 900; font-size: 2rem; padding: .3rem 0 .1rem; }
.datebox small { display: block; font-size: .68rem; color: var(--muted); padding-bottom: .35rem; }
.agenda-item h3 { font-size: 1.15rem; margin: 0 0 .25rem; }
.agenda-item .byline .icon { color: var(--accent); }
.agenda-item.is-flash { animation: flash 1.4s; }
@keyframes flash { 0%, 60% { background: var(--accent-soft); } }

.maklumat { border: 2px solid var(--rule); padding: 1.3rem; background: var(--white); position: relative; }
.maklumat::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--rule); pointer-events: none; }
.maklumat h3 { text-align: center; font-weight: 900; font-size: 1.45rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .2rem; }
.maklumat > p { text-align: center; font-size: .78rem; color: var(--muted); }
.maklumat ul { list-style: none; padding: 0; margin: 0; position: relative; }
.maklumat li { padding: .75rem 0; border-top: 1px solid var(--rule-soft); }
.maklumat li a { text-decoration: none; font-weight: 600; }
.maklumat li small { display: block; color: var(--muted); font-size: .76rem; }

/* Lensa warga (galeri ringkas) */
.lensa { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 200px); gap: .8rem; }
.lensa a { position: relative; overflow: hidden; display: block; background: var(--paper-2); }
.lensa a:first-child { grid-row: span 2; }
.lensa img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.lensa a:hover img { transform: scale(1.05); }
.lensa figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem .8rem; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); color: #fff; font-size: .8rem; font-style: italic; }

/* Peta */
.map-card { display: grid; grid-template-columns: 1.5fr 1fr; border: 1px solid var(--rule); background: var(--white); }
.map-card__img { border-right: 1px solid var(--rule); background: var(--paper-2); }
.map-card__img img { width: 100%; height: 100%; object-fit: cover; }
.map-card__body { padding: 1.6rem; }
.legend { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .5rem; font-size: .9rem; }
.legend i { display: inline-block; width: 14px; height: 14px; margin-right: .5rem; vertical-align: -2px; border: 1px solid var(--rule); }

/* Kutipan warga (pakai slider) */
.voices .slide blockquote { margin: 0; font-family: var(--font-head); font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.35; font-style: italic; text-align: center; max-width: 34ch; margin-inline: auto; }
.voices .slide cite { display: block; text-align: center; margin-top: 1rem; font-style: normal; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: #cfc8bc; }
.voices .slider__nav { border-color: rgba(243, 239, 231, .35); justify-content: center; gap: 2rem; }
.voices .slider__arrows button { border-color: #f3efe7; color: #f3efe7; }
.voices .slider__arrows button:hover { background: #f3efe7; color: var(--ink); }
.voices .slider__dot { background: rgba(243, 239, 231, .3); }

/* 9. HALAMAN DALAM --------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.75rem; margin-top: 2rem; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6rem; }
.prose p { color: var(--ink-2); }
.article-figure { margin: 1.5rem 0; }
.article-figure img { width: 100%; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 4.2rem; top: .4rem; bottom: .4rem; width: 1px; background: var(--rule); }
.timeline li { display: grid; grid-template-columns: 3.6rem 1fr; gap: 1.4rem; padding: .7rem 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(4.2rem - 5px); top: 1.15rem; width: 11px; height: 11px; background: var(--accent); border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--accent); }
.timeline time { font-family: var(--font-head); font-weight: 900; font-size: 1.15rem; }
.timeline p { margin: 0; font-size: .92rem; color: var(--ink-2); }

.visi { text-align: center; padding: 2.4rem clamp(1rem, 6vw, 5rem); border-top: 5px solid var(--rule); border-bottom: 1px solid var(--rule); }
.visi blockquote { margin: 0; font-family: var(--font-head); font-size: clamp(1.5rem, 3.2vw, 2.4rem); font-weight: 700; line-height: 1.25; }
.misi { counter-reset: m; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2.5rem; }
.misi li { counter-increment: m; padding: 1rem 0 1rem 3.4rem; position: relative; border-bottom: 1px solid var(--rule-soft); }
.misi li::before { content: counter(m, upper-roman) "."; position: absolute; left: 0; top: .85rem; font-family: var(--font-head); font-weight: 900; font-size: 1.4rem; color: var(--accent); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 3px solid var(--rule); }
.fact { padding: 1.1rem 1rem 1.1rem 0; border-bottom: 1px solid var(--rule-soft); }
.fact + .fact { padding-left: 1rem; border-left: 1px solid var(--rule-soft); }
.fact strong { display: block; font-family: var(--font-head); font-size: 1.7rem; font-weight: 900; line-height: 1.1; }
.fact span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

.compass { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, auto); gap: .6rem; }
.compass > div { border: 1px solid var(--rule); background: var(--white); padding: .8rem; font-size: .88rem; }
.compass strong { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.compass .c-n { grid-column: 2; }
.compass .c-w { grid-column: 1; grid-row: 2; }
.compass .c-c { grid-column: 2; grid-row: 2; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--font-head); font-weight: 700; }
.compass .c-e { grid-column: 3; grid-row: 2; }
.compass .c-s { grid-column: 2; grid-row: 3; }

/* Grafik batang CSS */
.bars { display: grid; gap: .75rem; }
.bar { display: grid; grid-template-columns: 150px 1fr 80px; gap: .8rem; align-items: center; font-size: .88rem; }
.bar__track { height: 18px; background: var(--paper-2); border: 1px solid var(--rule-soft); position: relative; overflow: hidden; }
.bar__fill { position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: repeating-linear-gradient(135deg, var(--ink) 0 6px, #2e2b28 6px 12px); transform-origin: left; animation: grow 1.1s var(--ease) both; }
.bar--accent .bar__fill { background: repeating-linear-gradient(135deg, var(--accent) 0 6px, #a12a4d 6px 12px); }
.bar__val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
@keyframes grow { from { transform: scaleX(0); } }

.pyramid { display: grid; gap: .3rem; font-size: .78rem; }
.pyramid__row { display: grid; grid-template-columns: 1fr 64px 1fr; gap: .4rem; align-items: center; }
.pyramid__l, .pyramid__r { height: 16px; }
.pyramid__l { justify-self: end; background: var(--ink); }
.pyramid__r { background: var(--accent); }
.pyramid__row span { text-align: center; color: var(--muted); }

/* Struktur organisasi */
.org { display: flex; flex-direction: column; align-items: center; gap: 0; }
.org__node { border: 1px solid var(--rule); background: var(--white); padding: .7rem 1rem; text-align: center; min-width: 190px; position: relative; }
.org__node strong { display: block; font-family: var(--font-head); font-size: 1rem; }
.org__node span { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.org__node--top { background: var(--ink); color: #fff; border-color: var(--ink); }
.org__node--top span { color: #d7d1c7; }
.org__line { width: 1px; height: 26px; background: var(--rule); }
.org__row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; padding-top: 26px; }
.org__row::before { content: ""; position: absolute; top: 0; left: 12%; right: 12%; border-top: 1px solid var(--rule); }
.org__row > .org__node::before { content: ""; position: absolute; top: -26px; left: 50%; height: 26px; border-left: 1px solid var(--rule); }
.org__aside { display: flex; justify-content: space-between; width: min(100%, 720px); }

/* Profil orang (gaya foto paspor koran) */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.person { text-align: left; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--rule); filter: grayscale(1) contrast(1.05); transition: filter .4s; background: var(--paper-2); }
.person:hover img { filter: none; }
.person h3 { font-size: 1.1rem; margin: .7rem 0 .1rem; }
.person p { font-size: .8rem; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin: 0; }
.person small { color: var(--muted); font-size: .8rem; }

.profile-lead { display: grid; grid-template-columns: 300px 1fr; gap: 2.4rem; align-items: start; }
.profile-lead img { border: 1px solid var(--rule); width: 100%; background: var(--paper-2); }
.dl-grid { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.4rem; font-size: .92rem; margin: 1rem 0; }
.dl-grid dt { color: var(--muted); }
.dl-grid dd { margin: 0; font-weight: 500; }

/* Alur layanan */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: s; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.steps li { counter-increment: s; padding: 1.4rem 1.1rem; position: relative; }
.steps li + li { border-left: 1px dashed var(--rule-soft); }
.steps li::before { content: counter(s); display: block; font-family: var(--font-head); font-weight: 900; font-size: 3rem; line-height: 1; color: var(--accent); margin-bottom: .5rem; }
.steps h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.steps p { font-size: .86rem; color: var(--ink-2); margin: 0; }

/* APBDes */
.budget-sum { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule); background: var(--white); }
.budget-sum > div { padding: 1.4rem; }
.budget-sum > div + div { border-left: 1px solid var(--rule); }
.budget-sum span { font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.budget-sum strong { display: block; font-family: var(--font-head); font-weight: 900; font-size: clamp(1.4rem, 2.6vw, 2.1rem); margin: .3rem 0; }
.budget-sum small { font-size: .8rem; }
.up { color: var(--ok); }
.chart-box { border: 1px solid var(--rule); background: var(--white); padding: 1.3rem; }
.chart-box svg { width: 100%; height: auto; }
.chart-box svg text { font-family: var(--font-body); }
.chart-legend { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .82rem; margin-top: .6rem; }
.chart-legend i { display: inline-block; width: 12px; height: 12px; margin-right: .4rem; vertical-align: -1px; }
.donut-wrap { display: grid; grid-template-columns: 200px 1fr; gap: 1.4rem; align-items: center; }
.donut { width: 200px; aspect-ratio: 1; border-radius: 50%; position: relative; background: conic-gradient(var(--ink) 0 38%, var(--accent) 38% 70%, #9a948a 70% 86%, #c7bfb1 86% 96%, #e6dfd2 96% 100%); }
.donut::after { content: ""; position: absolute; inset: 28%; background: var(--white); border-radius: 50%; }
.donut span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1; font-family: var(--font-head); font-weight: 900; font-size: 1.1rem; text-align: center; line-height: 1.1; }
.donut span small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .7rem; color: var(--muted); }
.progress-list { display: grid; gap: 1.1rem; }
.progress-item header { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; margin-bottom: .35rem; }
.progress-item header strong { font-weight: 600; }
.progress { height: 10px; background: var(--paper-2); border: 1px solid var(--rule-soft); overflow: hidden; }
.progress i { display: block; height: 100%; width: var(--w); background: var(--accent); animation: grow 1.2s var(--ease) both; transform-origin: left; }

/* Potensi */
.feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border: 1px solid var(--rule); background: var(--white); }
.feature + .feature { margin-top: 1.6rem; }
.feature__img img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
.feature__body { padding: clamp(1.4rem, 3vw, 2.4rem); border-left: 1px solid var(--rule); }
.feature--rev .feature__img { order: 2; }
.feature--rev .feature__body { border-left: 0; border-right: 1px solid var(--rule); }
.feature__body h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 900; }
.umkm { border: 1px solid var(--rule); background: var(--white); padding: 1.2rem; display: flex; flex-direction: column; gap: .4rem; }
.umkm header { display: flex; justify-content: space-between; align-items: start; gap: .6rem; }
.umkm h3 { font-size: 1.15rem; margin: 0; }
.umkm p { font-size: .88rem; color: var(--ink-2); margin: 0; flex: 1; }
.umkm footer { display: flex; justify-content: space-between; align-items: center; gap: .6rem; font-size: .82rem; border-top: 1px dashed var(--rule-soft); padding-top: .7rem; margin-top: .4rem; }
.umkm footer a { font-weight: 600; color: var(--accent); text-decoration: none; display: inline-flex; gap: .3rem; align-items: center; }
.product { text-align: center; }
.product .figure__img img { aspect-ratio: 1; }
.product h3 { font-size: 1.1rem; margin: .8rem 0 .2rem; }
.price { font-family: var(--font-head); font-weight: 900; color: var(--accent); font-size: 1.15rem; }

/* Berita detail */
.article-head { max-width: 900px; margin: 0 auto; text-align: center; padding: 2.4rem 0 1.4rem; }
.article-head h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; letter-spacing: -.015em; }
.article-head .slide__deck { font-size: 1.25rem; }
.article-head .byline { justify-content: center; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: .7rem 0; margin-top: 1.2rem; }
.article-body { font-size: 1.05rem; }
.article-body p { color: var(--ink-2); }
.share { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.share a, .share button { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--rule); background: transparent; text-decoration: none; }
.share a:hover, .share button:hover { background: var(--ink); color: #fff; }
.author-box { display: grid; grid-template-columns: 80px 1fr; gap: 1rem; border-top: 3px double var(--rule); border-bottom: 1px solid var(--rule); padding: 1.2rem 0; margin: 2rem 0; }
.author-box img { width: 80px; height: 80px; object-fit: cover; border: 1px solid var(--rule); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.4rem 0; }
.tags a { text-decoration: none; }

/* Kalender agenda */
.calendar { border: 1px solid var(--rule); background: var(--white); }
.calendar__head { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; border-bottom: 1px solid var(--rule); }
.calendar__head h3 { margin: 0; font-size: 1.3rem; }
.calendar__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar__dow { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; text-align: center; padding: .5rem 0; background: var(--paper-2); border-bottom: 1px solid var(--rule-soft); font-weight: 600; }
.calendar__day { aspect-ratio: 1; border: 0; border-right: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); background: transparent; font-size: .9rem; display: flex; align-items: flex-start; justify-content: flex-start; padding: .35rem .45rem; position: relative; }
.calendar__day:nth-child(7n) { border-right: 0; }
.calendar__day.is-muted { color: #b5ada0; }
.calendar__day.is-today { font-weight: 700; box-shadow: inset 0 0 0 2px var(--ink); }
.calendar__day.has-event { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.calendar__day.has-event::after { content: ""; position: absolute; left: 50%; bottom: 18%; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: translateX(-50%); }
button.calendar__day.has-event:hover { background: var(--accent); color: #fff; }

/* Dokumen unduhan */
.doc-name { display: flex; gap: .7rem; align-items: center; font-weight: 500; }
.doc-name .icon { color: var(--accent); width: 1.4em; height: 1.4em; }
.notice { border-left: 4px solid var(--accent); background: var(--white); padding: 1.1rem 1.3rem; border-top: 1px solid var(--rule-soft); border-right: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
.notice + .notice { margin-top: 1rem; }
.notice h3 { font-size: 1.15rem; margin: .3rem 0; }
.notice p { margin: 0; font-size: .92rem; color: var(--ink-2); }
.notice--urgent { border-left-color: var(--ink); background: var(--ink); color: #fff; }
.notice--urgent p { color: #e0dad0; }

/* Kontak */
.contact-cards { display: grid; gap: 0; border-top: 3px solid var(--rule); }
.contact-card { display: grid; grid-template-columns: 44px 1fr; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--rule-soft); }
.contact-card .icon { width: 44px; height: 44px; padding: 10px; border: 1px solid var(--rule); color: var(--accent); }
.contact-card strong { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; }
.map-embed { border: 1px solid var(--rule); background: var(--paper-2); }
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; filter: grayscale(.85) contrast(1.05); }

/* 404 */
.notfound { text-align: center; padding: clamp(3rem, 8vw, 6rem) 0; }
.notfound__code { font-family: var(--font-head); font-weight: 900; font-size: clamp(6rem, 20vw, 13rem); line-height: .9; color: var(--accent); }
.notfound h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; }
.notfound .ralat { max-width: 560px; margin: 1.5rem auto; border: 1px solid var(--rule); padding: 1.2rem; text-align: left; background: var(--white); }

/* 10. GALERI, LIGHTBOX, MODAL VIDEO --------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; grid-auto-flow: dense; }
.gallery__item { margin: 0; }
.gallery__btn { display: block; width: 100%; padding: 0; border: 1px solid var(--rule); background: var(--paper-2); overflow: hidden; position: relative; }
.gallery__btn img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__btn:hover img { transform: scale(1.06); }
.gallery__btn::after { content: "Perbesar"; position: absolute; right: .5rem; bottom: .5rem; background: var(--ink); color: #fff; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; padding: .25rem .5rem; opacity: 0; transition: opacity .25s; }
.gallery__btn:hover::after, .gallery__btn:focus-visible::after { opacity: 1; }
.gallery__item figcaption { font-size: .82rem; margin-top: .45rem; }
.gallery__item figcaption small { display: block; color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; }
.gallery__item.is-wide { grid-column: span 2; }
.gallery__item.is-wide .gallery__btn img { aspect-ratio: 8 / 3.05; }

.lightbox, .modal { position: fixed; inset: 0; z-index: 200; background: rgba(12, 11, 10, .93); display: flex; align-items: center; justify-content: center; padding: 3.5rem 4.5rem; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.lightbox.is-open, .modal.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); width: 100%; text-align: center; }
.lightbox img { max-height: 76vh; width: auto; max-width: 100%; margin: 0 auto; border: 1px solid #555; background: var(--paper-2); }
.lightbox figcaption { color: #eee; margin-top: .9rem; font-family: var(--font-head); font-style: italic; font-size: 1.05rem; }
.lightbox figcaption small { display: block; font-family: var(--font-body); font-style: normal; color: #aaa; font-size: .78rem; letter-spacing: .12em; margin-top: .3rem; }
.lb-btn { position: absolute; width: 48px; height: 48px; border: 1px solid #fff; background: rgba(0, 0, 0, .4); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.lb-btn:hover { background: #fff; color: var(--ink); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.modal__box { width: min(960px, 100%); position: relative; }
.modal__frame { aspect-ratio: 16 / 9; background: #000; border: 1px solid #555; }
.modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal__title { color: #eee; font-family: var(--font-head); font-style: italic; margin-top: .8rem; text-align: center; }
.modal .lb-close { top: -3.4rem; right: 0; }

.video-card { display: flex; flex-direction: column; gap: .5rem; }
.video-thumb { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--rule); background: var(--paper-2); overflow: hidden; }
.video-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s var(--ease); }
.video-thumb:hover img { transform: scale(1.05); }
.video-thumb__play { position: absolute; left: 50%; top: 50%; width: 66px; height: 66px; transform: translate(-50%, -50%); background: var(--accent); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 8px rgba(139, 30, 63, .3); transition: transform .3s var(--ease); }
.video-thumb:hover .video-thumb__play { transform: translate(-50%, -50%) scale(1.1); }
.video-thumb__play svg { width: 26px; height: 26px; fill: currentColor; stroke: none; margin-left: 4px; }
.video-thumb__dur { position: absolute; right: .5rem; bottom: .5rem; background: var(--ink); color: #fff; font-size: .74rem; padding: .15rem .45rem; font-variant-numeric: tabular-nums; }
.video-card h3 { font-size: 1.15rem; margin: .2rem 0 0; }
.video-card p { font-size: .88rem; color: var(--ink-2); margin: 0; }
.video-feature { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: center; }
.video-feature .video-thumb__play { width: 90px; height: 90px; }

/* 11. FORM, TOAST, BACK-TO-TOP -------------------------------------------- */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { display: block; font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .4rem; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea { width: 100%; padding: .75rem .9rem; border: 1px solid var(--rule); background: var(--white); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139, 30, 63, .18); }
.field [aria-invalid="true"] { border-color: #b3261e; background: #fff6f6; }
.field-error { color: #b3261e; font-size: .8rem; margin-top: .3rem; min-height: 0; }
.field-hint { font-size: .78rem; color: var(--muted); margin-top: .3rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; }
.check input { margin-top: .3rem; accent-color: var(--accent); width: 16px; height: 16px; }

.toast-wrap { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 300; display: grid; gap: .5rem; width: min(92vw, 440px); }
.toast { background: var(--ink); color: #fff; padding: .95rem 1.1rem; display: flex; gap: .8rem; align-items: flex-start; border-left: 5px solid var(--accent); box-shadow: var(--shadow); animation: toastIn .35s var(--ease); font-size: .92rem; }
.toast.is-leaving { animation: toastOut .3s var(--ease) forwards; }
.toast .icon { color: #9fd3a8; margin-top: .15rem; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(16px); } }

.to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; width: 46px; height: 46px; border: 1px solid var(--ink); background: var(--paper); display: inline-flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--ink); color: #fff; }

/* Footer kolofon */
.footer { background: var(--ink); color: #e6e0d6; margin-top: 0; font-size: .9rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: #f2b8c8; }
.footer__mast { border-bottom: 1px solid rgba(255, 255, 255, .18); padding: 2.6rem 0 1.6rem; display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; }
.footer__title { font-family: var(--font-head); font-weight: 900; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; margin: 0; color: #fff; }
.footer__title em { font-style: normal; color: #e5a3b6; }
.footer__sub { margin: .4rem 0 0; font-style: italic; font-family: var(--font-head); color: #bdb6aa; }
.newsletter { display: flex; gap: 0; min-width: min(100%, 420px); flex-direction: column; }
.newsletter label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .45rem; }
.newsletter__row { display: flex; }
.newsletter input { flex: 1; min-width: 0; padding: .75rem .9rem; border: 1px solid #f3efe7; background: transparent; color: #fff; }
.newsletter input::placeholder { color: #a39c90; }
.newsletter button { border: 1px solid var(--accent); background: var(--accent); color: #fff; padding: 0 1.1rem; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.newsletter button:hover { background: #fff; color: var(--ink); border-color: #fff; }
.newsletter .field-error { color: #ffb4b4; }
.footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding: 2.2rem 0; }
.footer__cols > div + div { border-left: 1px solid rgba(255, 255, 255, .14); padding-left: 2rem; }
.footer h3 { font-family: var(--font-body); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer .redaksi dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #a39c90; }
.footer .redaksi dd { margin: 0 0 .55rem; }
.footer__brand { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.footer__brand img { width: 52px; height: 52px; }
.socials { display: flex; gap: .4rem; margin-top: 1rem; }
.socials a { width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .4); display: inline-flex; align-items: center; justify-content: center; }
.socials a:hover { background: #fff; color: var(--ink); }
.footer__bottom { border-top: 3px double rgba(255, 255, 255, .35); padding: 1rem 0 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: #bdb6aa; }
.footer__bottom a { text-decoration: underline; }

/* Animasi muncul saat scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* 12. RESPONSIF ------------------------------------------------------------ */
@media (max-width: 1180px) {
  .nav__link { padding-inline: .5rem; letter-spacing: .08em; font-size: .74rem; }
  .nav__link::after { left: .5rem; right: .5rem; }
  .front__grid { grid-template-columns: 220px minmax(0, 1fr) 270px; }
  .front__grid > * { padding: 0 1.1rem; }
}

@media (max-width: 1024px) {
  .masthead__grid { grid-template-columns: 1fr; }
  .masthead__ear { display: none; }
  .burger { display: inline-flex; }
  .navbar__mini { max-width: 260px; opacity: 1; flex: 1; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); background: var(--paper); border-left: 3px double var(--rule); padding: 4.5rem 1.4rem 2rem; overflow-y: auto; transform: translateX(100%); transition: transform .35s var(--ease); z-index: 70; flex: none; visibility: hidden; }
  .nav.is-open { transform: none; visibility: visible; box-shadow: -20px 0 40px rgba(0, 0, 0, .2); }
  .nav__list { flex-direction: column; justify-content: flex-start; }
  .nav__list > li { border-bottom: 1px solid var(--rule-soft); }
  .nav__link { padding: .95rem 0; font-size: .88rem; width: 100%; justify-content: space-between; }
  .nav__link::after { display: none; }
  .nav__sub { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; background: transparent; display: none; padding: 0 0 .6rem .8rem; min-width: 0; }
  .nav__item--has-sub:hover .nav__sub, .nav__item--has-sub:focus-within .nav__sub { transform: none; }
  .nav__item--has-sub.is-open .nav__sub { display: block; transform: none; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 65; opacity: 0; visibility: hidden; transition: .3s; }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
  .burger { position: relative; z-index: 75; }
  .front__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 2rem; }
  .front__grid > * { padding: 0; border: 0 !important; }
  .front__lead { grid-column: 1 / -1; order: -1; }
  .front__grid > :first-child { padding-right: 1rem; }
  .figures { grid-template-columns: repeat(3, 1fr); }
  .figure-num:nth-child(4) { border-left: 0; }
  .figure-num:nth-child(n+4) { border-top: 1px solid rgba(243, 239, 231, .3); }
  .classifieds { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--rule > :first-child { padding-right: 0; border-right: 0; }
  .grid-4, .people, .gallery { grid-template-columns: repeat(3, 1fr); }
  .columns-3 { column-count: 2; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li:nth-child(4) { border-left: 0; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .profile-lead { grid-template-columns: 240px 1fr; }
  .video-feature { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: .97rem; }
  .topline__right .topline__item:not(.fontsize) { display: none; }
  .masthead { padding-top: 1rem; }
  .masthead__pre { letter-spacing: .14em; font-size: .62rem; }
  .masthead__dateline { font-size: .62rem; letter-spacing: .08em; }
  .masthead__dateline span:nth-child(2) { display: none; }
  .front__grid { grid-template-columns: minmax(0, 1fr); }
  .front__grid > :first-child { padding-right: 0; }
  .grid-2, .grid-3, .grid-4, .people, .misi, .form-row, .map-card, .feature, .donut-wrap, .profile-lead { grid-template-columns: 1fr; }
  .feature__body, .feature--rev .feature__body { border: 0; border-top: 1px solid var(--rule); }
  .feature--rev .feature__img { order: 0; }
  .map-card__img { border-right: 0; border-bottom: 1px solid var(--rule); }
  .people { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .gallery__item.is-wide { grid-column: span 2; }
  .classifieds { grid-template-columns: 1fr 1fr; }
  .classified { padding: 1rem .9rem; }
  .classified p { display: none; }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .figure-num:nth-child(n) { border-left: 0; border-top: 1px solid rgba(243, 239, 231, .3); }
  .figure-num:nth-child(even) { border-left: 1px solid rgba(243, 239, 231, .3); }
  .figure-num:nth-child(-n+2) { border-top: 0; }
  .lensa { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 140px 140px; }
  .lensa a:first-child { grid-column: span 2; grid-row: auto; }
  .columns-2, .columns-3 { column-count: 1; }
  .agenda-item { grid-template-columns: 70px 1fr; }
  .agenda-item > :last-child { grid-column: 2; justify-self: start; }
  .rubrik { flex-wrap: wrap; }
  .rubrik__page { display: none; }
  .page-head__inner { grid-template-columns: 1fr; }
  .page-head__stamp { display: none; }
  .bar { grid-template-columns: 100px 1fr 60px; font-size: .8rem; }
  .steps { grid-template-columns: 1fr; }
  .steps li + li { border-left: 0; border-top: 1px dashed var(--rule-soft); }
  .steps li { display: grid; grid-template-columns: 2.6rem 1fr; column-gap: .9rem; padding: 1rem .4rem; }
  .steps li::before { grid-row: span 2; font-size: 2.3rem; margin: 0; }
  .budget-sum { grid-template-columns: 1fr; }
  .budget-sum > div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__cols > div + div { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 1.6rem; }
  .lightbox, .modal { padding: 4rem .8rem; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
  .news-card--row .figure__img { width: 96px; }
  .donut { margin: 0 auto; }
  .compass { font-size: .8rem; }
  .org__aside { flex-direction: column; align-items: center; gap: .6rem; }
  .facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .classifieds { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr 1fr; }
  .fact strong { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
  .ticker__viewport { overflow-x: auto; }
}

@media print {
  .topline, .navbar, .ticker, .footer, .to-top, .toast-wrap { display: none !important; }
  body { background: #fff; }
}
