/*
Theme Name: Resister Berdaya Pulih
Theme URI: https://resister.id
Author: Resister
Description: Tema khusus resister.id — Artikel, Zine, Dokumenter, Arsip, dengan landing page slider + video drone. Mengikuti Brief Visual (Montserrat, Soft Peach #ffe8dc, Merah Marun #780000) dan catatan revisi 24/8/26.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: resister
*/

/* =========================================================================
   DAFTAR ISI (cari judul HURUF BESAR dengan Ctrl+F)
     1. VARIABEL (warna, font, ukuran — dari Brief Visual)
     2. DASAR
     3. HEADER (sticky, logo & ikon mepet pinggir)
     4. LANDING: SLIDER
     5. LANDING: 4 KOTAK RUBRIK + VIDEO
     6. JUDUL DAFTAR + TAB KATEGORI
     7. DAFTAR + KOLOM QUOTE/IKLAN
     8. NOMOR HALAMAN
     9. ZINE
    10. HALAMAN BACA (artikel, arsip, dokumenter)
    11. PDF
    12. HALAMAN BIASA (Tentang Kami)
    13. TOMBOL AKSESIBILITAS + mode aksesibilitas
    14. HP / LAYAR KECIL
   ========================================================================= */

/* =========================================================================
   1. VARIABEL
   Brief Visual:
     Warna primer  Soft Peach  #ffe8dc
     Warna aksen   Merah Marun #780000, Putih #ffffff
     Warna border  Merah Marun #780000
     Font          Montserrat (judul & isi)
     Judul 36–48px bold · Sub judul 24–30px · Isi 18–21px · Keterangan foto 14–16px
   ========================================================================= */
:root {
  --peach: #ffe8dc;
  --peach-deep: #f7d2c2;
  --maroon: #780000;
  --maroon-dark: #520000;
  --white: #ffffff;
  --ink: #2a1512;
  --muted: #6b4a44;
  --border: var(--maroon);

  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* rem supaya ikut membesar dengan tombol aksesibilitas */
  --fs-title: clamp(2.25rem, 1.85rem + 1.1vw, 3rem);        /* 36–48px */
  --fs-sub: clamp(1.5rem, 1.33rem + 0.5vw, 1.875rem);       /* 24–30px */
  --fs-body: clamp(1.125rem, 1.06rem + 0.2vw, 1.3125rem);   /* 18–21px */
  --fs-caption: clamp(0.875rem, 0.84rem + 0.12vw, 1rem);    /* 14–16px */
  --fs-small: 0.875rem;

  --gutter: clamp(16px, 4vw, 64px);
  --max: 1440px;
  --header-h: 80px;
  --radius: 6px;
  --shadow: 0 10px 28px rgba(40, 0, 0, 0.22);
  --shadow-pop: 0 30px 60px rgba(40, 0, 0, 0.42);
}

/* =========================================================================
   2. DASAR
   ========================================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--peach);
  -webkit-font-smoothing: antialiased;
}

img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--maroon); }
ul, ol { list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid var(--maroon); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  background: var(--maroon);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--white); }

.tag-pill {
  display: inline-block;
  background: var(--maroon);
  color: var(--white);
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.3;
  padding: 5px 14px;
  border-radius: var(--radius);
}
a.tag-pill:hover { background: var(--maroon-dark); color: var(--white); }

.button-maroon,
.button-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 2px solid var(--maroon);
}
.button-maroon { background: var(--maroon); color: var(--white); }
.button-maroon:hover { background: var(--maroon-dark); border-color: var(--maroon-dark); color: var(--white); }
.button-outline { background: transparent; color: var(--maroon); }
.button-outline:hover { background: var(--maroon); color: var(--white); }

.empty-state {
  padding: 48px 0;
  font-style: italic;
  color: var(--muted);
}

/* =========================================================================
   3. HEADER
   Logo rata kiri dan menu/ikon rata kanan, mepet pinggir layar.
   position: sticky -> header tidak hilang saat halaman di-scroll.
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 8px clamp(12px, 1.6vw, 24px);
  background: var(--peach);
  border-bottom: 1px solid rgba(120, 0, 0, 0.35);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(60, 0, 0, 0.16); }
.admin-bar .site-header { top: 32px; }

.site-logo { display: block; flex: 0 0 auto; }
.site-logo .logo-img {
  height: 56px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 1.6vw, 24px);
  min-width: 0;
}

.search-form {
  display: flex;
  align-items: center;
  background: var(--maroon);
  border-radius: var(--radius);
  overflow: hidden;
}
.search-form input[type="search"] {
  width: clamp(130px, 16vw, 240px);
  background: transparent;
  border: 0;
  outline: 0;
  padding: 9px 12px;
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--white);
}
.search-form input[type="search"]::placeholder { color: rgba(255, 255, 255, 0.8); }
.search-form input[type="search"]::-webkit-search-cancel-button { filter: invert(1); }
.search-form:focus-within { outline: 3px solid rgba(120, 0, 0, 0.35); outline-offset: 2px; }
.search-form button {
  display: flex;
  background: transparent;
  border: 0;
  color: var(--white);
  padding: 9px 12px;
}

.nav-menu { display: flex; gap: 20px; }
.nav-menu a {
  font-size: 1rem;
  font-weight: 700;
  color: var(--maroon);
  white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu a[aria-current="page"],
.nav-menu .current-menu-item > a {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.social-icons { display: flex; gap: 8px; }
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--white);
  background: var(--maroon);
  transition: transform 0.2s ease, background 0.2s ease;
}
.social-icons a:hover { background: var(--maroon-dark); color: var(--white); transform: translateY(-2px); }

/* =========================================================================
   4. LANDING: SLIDER
   Judul di tengah foto, lapisan hitam 35%.
   Slide digeser (bukan fade), jadi tidak ada kedipan antar-slide.
   Nomor slide di tengah bawah.
   ========================================================================= */
html:has(.landing) { scroll-snap-type: y proximity; }

.landing-screen {
  position: relative;
  scroll-snap-align: start;
  scroll-margin-top: var(--header-h);
}

.landing-hero {
  height: calc(100svh - var(--header-h));
  min-height: 460px;
  background: #1a0d0b;
  overflow: hidden;
}

.hero-slider { position: relative; height: 100%; overflow: hidden; }

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 72px clamp(64px, 9vw, 140px) 120px;
  overflow: hidden;
}

.slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lapisan hitam opacity 35% (revisi 24/8/26) */
.slide-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.slide-tag {
  position: absolute;
  top: 24px;
  right: clamp(16px, 4vw, 60px);
  z-index: 2;
}

.slide-title-link { position: relative; z-index: 2; display: block; max-width: 1000px; }
.slide-title {
  font-size: var(--fs-title);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.slide-title-link:hover .slide-title { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }

.slide-byline {
  position: absolute;
  right: clamp(16px, 4vw, 60px);
  bottom: 28px;
  z-index: 2;
  color: var(--white);
  font-size: var(--fs-caption);
  font-style: italic;
}
.slide-byline a { font-weight: 600; color: var(--white); border-bottom: 1px solid transparent; }
.slide-byline a:hover { border-bottom-color: var(--white); color: var(--white); }

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  color: var(--white);
  transition: background 0.2s ease;
}
.slider-arrow:hover { background: rgba(0, 0, 0, 0.4); }
.slider-arrow.prev { left: clamp(8px, 2vw, 28px); }
.slider-arrow.next { right: clamp(8px, 2vw, 28px); }

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 76px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.slider-dots button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.15);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}
.slider-dots button:hover { background: rgba(255, 255, 255, 0.3); }
.slider-dots button.is-active { background: var(--white); color: var(--maroon); }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: -21px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
  animation: hint-bounce 2.2s ease-in-out infinite;
}
.scroll-hint:hover { color: var(--white); background: rgba(255, 255, 255, 0.15); }
@keyframes hint-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* =========================================================================
   5. LANDING: 4 KOTAK RUBRIK + VIDEO DRONE
   Ukuran kotak menyesuaikan tinggi layar supaya 2x2 muat tanpa scroll.
   Efek "pop up" saat kursor di atas kotak = naik + bayangan lebih tebal.
   ========================================================================= */
.category-hero {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.category-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #2e3b2b;
  background-size: cover;
  background-position: center;
}
.category-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.12);
}
.category-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-grid {
  /* lebar kotak dihitung dari tinggi layar: 2 baris foto 4:3 + label + jarak */
  --tile: min(400px, max(210px, calc((100svh - var(--header-h) - 300px) / 1.5 + 24px)));
  display: grid;
  grid-template-columns: repeat(2, var(--tile));
  gap: clamp(20px, 3vw, 44px) clamp(24px, 4vw, 56px);
  padding: 32px 16px;
}

.category-card {
  display: block;
  background: var(--white);
  padding: 12px 12px 16px;
  border-radius: 3px;
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}
.category-card:hover,
.category-card:focus-visible {
  transform: translateY(-12px) scale(1.04);
  box-shadow: var(--shadow-pop);
  color: inherit;
}
.category-card:active { transform: translateY(-4px) scale(1.01); }

.category-card .card-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border);
}
.category-card .card-label {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.875rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--maroon);
}

/* =========================================================================
   6. JUDUL DAFTAR + TAB KATEGORI
   ========================================================================= */
.site-main { padding-bottom: 72px; }

.page-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 40px 0 28px;
}

.page-title {
  font-size: var(--fs-sub);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--maroon);
  line-height: 1.2;
}

.page-header-divider {
  width: 2px;
  align-self: stretch;
  min-height: 32px;
  background: var(--maroon);
}

.category-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.category-tabs .tabs-label { font-size: var(--fs-small); font-weight: 700; margin-right: 4px; }
.category-tabs a {
  font-size: var(--fs-small);
  font-weight: 600;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--maroon);
  transition: background 0.2s ease, color 0.2s ease;
}
.category-tabs a:hover { background: rgba(120, 0, 0, 0.08); }
.category-tabs a.is-active { background: var(--maroon); color: var(--white); }

.page-intro {
  max-width: 760px;
  margin: -8px 0 28px;
  text-align: justify;
  hyphens: auto;
}

/* =========================================================================
   7. DAFTAR + KOLOM QUOTE/IKLAN
   - Kolom quote dibuat lebih sempit (240px).
   - Garis pembatas digeser lebih ke kanan: jarak kiri garis lebih lebar
     daripada jarak kanannya.
   - Quote/iklan rata tengah, dan menempel di tengah layar saat scroll.
   ========================================================================= */
.list-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 240px;
  align-items: stretch;
}

.list-divider {
  width: 2px;
  margin: 0 28px 0 clamp(40px, 5vw, 80px);
  background: var(--maroon);
}

.article-cards {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.article-card {
  display: grid;
  grid-template-columns: clamp(220px, 22vw, 300px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.card-media { position: relative; display: block; overflow: hidden; border-radius: 2px; }
.card-thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card-thumb-empty { background: linear-gradient(135deg, var(--peach-deep), #e9b9a6); }
.article-card:hover .card-thumb { transform: scale(1.04); }

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: rgba(120, 0, 0, 0.88);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.card-kicker {
  font-size: var(--fs-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.card-title {
  font-size: clamp(1.25rem, 1.1rem + 0.45vw, 1.5rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--maroon);
}
.card-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.card-author {
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 700;
}
.card-author a:hover { text-decoration: underline; }
.card-meta {
  margin-top: 2px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--muted);
}
.card-excerpt {
  margin-top: 10px;
  text-align: justify;
  hyphens: auto;
}

/* --- kolom kanan --- */
.list-aside { min-width: 0; }

.aside-rotator {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  min-height: min(520px, calc(100svh - var(--header-h) - 48px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.aside-item { width: 100%; }
.aside-item.is-entering { animation: aside-in 0.45s ease both; }
.aside-item[hidden] { display: none; }
.aside-item.is-leaving { animation: aside-out 0.35s ease both; }
@keyframes aside-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes aside-out { to { opacity: 0; transform: translateY(-8px); } }

.pull-quote .quote-mark {
  display: block;
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 0.8;
  height: 0.55em;
  color: var(--maroon);
  letter-spacing: -0.06em;
}
.pull-quote blockquote {
  margin-top: 16px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--maroon);
}
.pull-quote blockquote p + p { margin-top: 1em; }
.pull-quote figcaption { margin-top: 22px; }
.pull-quote .quote-author { display: block; font-weight: 800; }
.pull-quote .quote-role { display: block; font-style: italic; font-size: var(--fs-caption); color: var(--muted); }

.aside-ad {
  padding: 18px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.aside-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ad-photo { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; margin-top: 10px; border-radius: 3px; }
.ad-name { margin-top: 12px; font-size: 1.125rem; font-weight: 800; color: var(--maroon); line-height: 1.3; }
.ad-text { margin-top: 6px; font-size: 0.9375rem; line-height: 1.5; }
.ad-seller { margin-top: 6px; font-size: var(--fs-caption); font-style: italic; }
.ad-button {
  display: inline-block;
  margin-top: 14px;
  padding: 9px 16px;
  border-radius: var(--radius);
  background: var(--maroon);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 700;
}
.ad-button:hover { background: var(--maroon-dark); color: var(--white); }

/* =========================================================================
   8. NOMOR HALAMAN — di tengah kolom konten (bukan tengah layar)
   ========================================================================= */
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 48px;
}
.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--maroon);
}
.pagination a.page-numbers:hover { background: rgba(120, 0, 0, 0.08); }
.pagination .page-numbers.is-active { background: var(--maroon); color: var(--white); }
.pagination .dots { border-color: transparent; }

/* =========================================================================
   9. ZINE
   ========================================================================= */
.zine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 40px 32px;
}

.zine-card {
  display: block;
  background: var(--white);
  padding: 12px 12px 16px;
  border-radius: 3px;
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}
.zine-card:hover,
.zine-card:focus-visible { transform: translateY(-10px) scale(1.03); box-shadow: var(--shadow-pop); color: inherit; }

.zine-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--border);
}
.zine-title { display: block; margin-top: 12px; font-size: 1.125rem; font-weight: 800; line-height: 1.3; color: var(--maroon); }
.zine-author { display: block; margin-top: 2px; font-size: var(--fs-small); font-weight: 600; }

.zine-single { padding-top: 48px; }
.zine-single-layout {
  display: grid;
  grid-template-columns: minmax(220px, 380px) minmax(0, 720px);
  gap: clamp(28px, 5vw, 72px);
  justify-content: center;
  align-items: start;
}
.zine-cover-large {
  width: 100%;
  height: auto;
  background: var(--white);
  padding: 12px;
  box-shadow: var(--shadow);
  border-radius: 3px;
}
.zine-single-info .tag-pill { margin-bottom: 14px; }
.zine-meta { font-size: 1rem; margin-top: 4px; }
.zine-meta .meta-label { font-weight: 700; }
.zine-meta a { text-decoration: underline; text-underline-offset: 3px; }
.zine-single-info .entry-content { margin-top: 24px; }

/* =========================================================================
   10. HALAMAN BACA (artikel, arsip, dokumenter)
   ========================================================================= */
.entry-title {
  max-width: 1000px;
  margin: 48px auto 32px;
  padding-inline: var(--gutter);
  font-size: var(--fs-title);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
  color: var(--maroon);
}
.entry-title.is-left { margin: 0 0 16px; padding: 0; text-align: left; }

.entry-media {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.entry-photo { width: 100%; height: auto; max-height: 78vh; object-fit: cover; }
.media-caption {
  margin-top: 10px;
  font-size: var(--fs-caption);
  line-height: 1.5;
  color: var(--muted);
}

.video-embed { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) 220px;
  justify-content: center;
  gap: clamp(32px, 5vw, 72px);
  max-width: 1200px;
  margin: 40px auto 0;
  padding-inline: var(--gutter);
}

.entry-content > * + * { margin-top: 1.1em; }
.entry-content p { text-align: justify; hyphens: auto; }
.entry-content h2 { font-size: var(--fs-sub); font-weight: 800; line-height: 1.3; color: var(--maroon); margin-top: 1.6em; }
.entry-content h3 { font-size: 1.25rem; font-weight: 800; color: var(--maroon); margin-top: 1.4em; }
.entry-content a { color: var(--maroon); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul { list-style: disc; padding-left: 1.4em; }
.entry-content ol { list-style: decimal; padding-left: 1.4em; }
.entry-content blockquote {
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--maroon);
  font-weight: 600;
  color: var(--maroon);
}
.entry-content figure { margin-inline: 0; }
.entry-content img { height: auto; }
.entry-content figcaption,
.entry-content .wp-element-caption { margin-top: 8px; font-size: var(--fs-caption); color: var(--muted); }

/* galeri esai foto */
.entry-content .gallery,
.entry-content .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.entry-content .gallery-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.entry-content .gallery-caption { font-size: var(--fs-caption); color: var(--muted); }

.entry-meta {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1rem;
}
.meta-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-label { font-size: var(--fs-small); color: var(--muted); }
.meta-value { font-weight: 700; }
.meta-value a { text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================================
   11. PDF
   ========================================================================= */
.pdf-reader { margin-top: 32px; }
.pdf-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pdf-frame {
  margin-top: 20px;
  height: calc(100svh - var(--header-h) - 40px);
  min-height: 520px;
  border: 1px solid var(--border);
  background: var(--white);
}
.pdf-frame iframe { width: 100%; height: 100%; border: 0; }
.zine-single > .pdf-reader { max-width: 1172px; margin-inline: auto; }
.zine-single > .pdf-reader .pdf-actions { justify-content: center; }

/* =========================================================================
   12. HALAMAN BIASA (Tentang Kami)
   Margin sama dengan halaman lain, teks rata kanan kiri.
   ========================================================================= */
.page-entry { padding-top: 48px; max-width: 1100px; }
.page-entry-title {
  font-size: var(--fs-title);
  font-weight: 800;
  line-height: 1.2;
  color: var(--maroon);
  margin-bottom: 28px;
}
.page-entry .entry-content { text-align: justify; hyphens: auto; }
.page-entry .entry-content h2:first-child { margin-top: 0; }

.page-entry .wp-block-table table,
.team-table {
  width: 100%;
  max-width: 720px;
  border-collapse: collapse;
  text-align: left;
}
.page-entry .wp-block-table td {
  padding: 8px 12px 8px 0;
  border-bottom: 1px dashed rgba(120, 0, 0, 0.3);
  vertical-align: top;
}
.page-entry .wp-block-table td:last-child { font-weight: 700; color: var(--maroon); }

.not-found { padding-top: 56px; }
.not-found-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* =========================================================================
   13. TOMBOL AKSESIBILITAS
   Pojok kiri bawah di semua halaman. Pilihan disimpan di browser pengunjung.
   ========================================================================= */
.a11y {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 150;
}
.a11y-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--maroon);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}
.a11y-toggle:hover { transform: scale(1.06); }

.a11y-panel {
  position: absolute;
  left: 0;
  bottom: 66px;
  width: min(300px, calc(100vw - 32px));
  padding: 16px;
  background: var(--white);
  border: 2px solid var(--maroon);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  font-size: 1rem;
}
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.a11y-title { font-weight: 800; color: var(--maroon); font-size: 1.125rem; }
.a11y-close { display: flex; padding: 6px; border: 0; background: none; color: var(--maroon); border-radius: var(--radius); }
.a11y-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(120, 0, 0, 0.15);
  cursor: pointer;
}
.a11y-row input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--maroon); cursor: pointer; }
.a11y-size { display: flex; align-items: center; gap: 6px; }
.a11y-size button {
  min-width: 40px;
  height: 36px;
  border: 1px solid var(--maroon);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--maroon);
  font-weight: 800;
}
.a11y-size button:hover { background: var(--maroon); color: var(--white); }
.a11y-size-value { min-width: 48px; text-align: center; font-weight: 700; }
.a11y-reset {
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  border: 0;
  border-radius: var(--radius);
  background: var(--maroon);
  color: var(--white);
  font-weight: 700;
}

/* --- ukuran teks: semua ukuran pakai rem, jadi cukup ubah font-size <html> --- */
html.a11y-scale-1 { font-size: 115%; }
html.a11y-scale-2 { font-size: 130%; }
html.a11y-scale-3 { font-size: 150%; }

/* --- kontras tinggi --- */
html.a11y-contrast {
  --peach: #ffffff;
  --peach-deep: #e6e6e6;
  --maroon: #5c0000;
  --maroon-dark: #000000;
  --ink: #000000;
  --muted: #1f1f1f;
  --border: #000000;
}
html.a11y-contrast .slide-shade { background: rgba(0, 0, 0, 0.6); }
html.a11y-contrast .site-header { border-bottom: 2px solid #000; }

/* --- garis bawahi tautan --- */
html.a11y-links a:not(.tag-pill):not(.button-maroon):not(.button-outline):not(.category-card):not(.zine-card):not(.site-logo):not(.card-media) {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* --- jarak baca lebih lega (teks rata kiri lebih mudah dibaca untuk disleksia) --- */
html.a11y-spacing body { line-height: 1.95; letter-spacing: 0.03em; word-spacing: 0.12em; }
html.a11y-spacing .entry-content p,
html.a11y-spacing .card-excerpt,
html.a11y-spacing .page-entry .entry-content,
html.a11y-spacing .page-intro { text-align: left; hyphens: none; }

/* --- hentikan animasi --- */
html.a11y-motion *,
html.a11y-motion *::before,
html.a11y-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html.a11y-motion .category-video { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* =========================================================================
   14. HP / LAYAR KECIL — selalu di bagian paling bawah file
   ========================================================================= */
@media (max-width: 1100px) {
  .list-layout { grid-template-columns: minmax(0, 1fr) auto 210px; }
  .list-divider { margin: 0 20px 0 32px; }
}

@media (max-width: 900px) {
  .list-layout { grid-template-columns: 1fr; }
  .list-divider { width: auto; height: 2px; margin: 48px 0 32px; }
  .aside-rotator { position: static; min-height: 0; max-width: 360px; margin-inline: auto; }

  .entry-layout { grid-template-columns: 1fr; }
  .entry-meta { order: -1; flex-direction: row; flex-wrap: wrap; gap: 12px 28px; }
  .meta-tags { width: 100%; }

  .zine-single-layout { grid-template-columns: 1fr; }
  .zine-single-cover { max-width: 320px; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .site-header { min-height: 60px; gap: 10px; }
  .site-logo .logo-img { height: 42px; }
  .site-nav { gap: 10px; }
  .nav-menu a { font-size: 0.875rem; }
  .social-icons a { width: 32px; height: 32px; }

  /* kotak pencarian jadi ikon; melebar saat diketuk */
  .search-form input[type="search"] { width: 0; padding-inline: 0; transition: width 0.25s ease, padding 0.25s ease; }
  .search-form:focus-within input[type="search"] { width: 150px; padding-inline: 10px; }

  .slide { padding: 64px 52px 150px; }
  .slide-byline { left: 16px; right: 16px; bottom: 118px; text-align: center; }
  .slider-arrow { width: 40px; height: 40px; }

  .category-grid { --tile: min(44vw, max(140px, calc((100svh - var(--header-h) - 200px) / 1.5))); gap: 16px; padding: 24px 12px; }
  .category-card { padding: 8px 8px 10px; }
  .category-card .card-label { font-size: 1.125rem; margin-top: 6px; }

  .article-card { grid-template-columns: 1fr; gap: 14px; }
  .card-excerpt { text-align: left; }
  .page-header-divider { display: none; }
  .page-header { padding-top: 28px; }

  .a11y { left: 12px; bottom: 12px; }
  .a11y-toggle { width: 48px; height: 48px; }
}

@media (max-width: 420px) {
  .nav-menu a { font-size: 0.8125rem; }
  .social-icons { gap: 6px; }
  .social-icons a { width: 30px; height: 30px; }
}
