/* ==========================================================================
   ARTIKEL.CSS — Pengalaman Baca Artikel & Kabar Desa Cipada
   KKN Tematik Universitas Nurtanio Bandung 2026 · Kelompok 07
   --------------------------------------------------------------------------
   Dimuat SETELAH style.css, khusus pada /artikel/ (daftar & detail).
   Seluruh warna memakai token dari variables.css agar mode terang/gelap
   ikut otomatis. Tidak ada satu pun !important.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. TOKEN LOKAL HALAMAN ARTIKEL
   -------------------------------------------------------------------------- */
.art-page {
  --read-w: 720px;              /* lebar kolom baca ± 68–72 karakter        */
  --read-fs: 1.075rem;          /* ukuran dasar teks artikel                */
  --read-lh: 1.9;               /* jarak antarbaris                         */
  --art-rule: color-mix(in srgb, var(--brand) 24%, transparent);
}

/* Cadangan bila peramban belum mendukung color-mix */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .art-page { --art-rule: rgba(74, 124, 89, 0.24); }
}

.art-shell {
  width: 100%;
  max-width: calc(var(--read-w) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   1. HERO ARTIKEL — foto sampul sebagai latar berita
   ========================================================================== */
.hero--artikel {
  min-height: min(74svh, 640px);
  align-items: flex-end;
}
.hero--artikel .hero-body {
  max-width: calc(var(--read-w) + 220px);
  padding-block: calc(var(--nav-h) + 72px) clamp(38px, 6vh, 68px);
}

/* Judul berita: Oswald, huruf normal — jauh lebih terbaca daripada
   Bebas Neue kapital untuk kalimat panjang. */
.hero--artikel .hero-title {
  font-family: var(--font-sub);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.005em;
  font-size: clamp(1.65rem, 4vw, 2.95rem);
  line-height: 1.16;
  text-wrap: balance;
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.55);
}
.hero--artikel .hero-eyebrow { margin-bottom: var(--space-4); }

/* Lapisan foto sampul + tirai gelap agar teks tetap terbaca */
.art-hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.art-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.06);
  animation: art-hero-zoom 26s ease-out forwards;
}
@keyframes art-hero-zoom { to { transform: scale(1); } }

.art-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(12, 14, 15, 0.78) 0%,
      rgba(12, 14, 15, 0.34) 34%,
      rgba(12, 14, 15, 0.72) 76%,
      rgba(12, 14, 15, 0.94) 100%),
    radial-gradient(120% 80% at 20% 100%, rgba(36, 64, 46, 0.55), transparent 70%);
}
[data-theme="dark"] .art-hero-veil {
  background:
    linear-gradient(180deg,
      rgba(6, 8, 9, 0.82) 0%,
      rgba(6, 8, 9, 0.46) 34%,
      rgba(6, 8, 9, 0.80) 76%,
      rgba(6, 8, 9, 0.96) 100%),
    radial-gradient(120% 80% at 20% 100%, rgba(20, 40, 28, 0.6), transparent 70%);
}

/* Keterangan foto sampul di sudut hero */
.art-hero-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding: 10px var(--gutter);
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
  text-align: right;
  pointer-events: none;
}

/* ==========================================================================
   2. BATANG META — penulis, tanggal, lama baca
   ========================================================================== */
.art-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
}
.art-meta-who {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.art-avatar {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-sub);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--white);
  background: var(--grad-moss);
  box-shadow: var(--sh-glow-moss);
}
.art-meta-who b {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.art-meta-who span {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.art-meta-facts {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.art-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.art-pill i { font-size: 13px; color: var(--brand); }
.art-pill--accent { border-color: var(--art-rule); color: var(--text); }

/* ==========================================================================
   3. PERKAKAS BACA — bagikan & ukuran huruf
   ========================================================================== */
.art-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: var(--space-4);
}
.art-share {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.art-share-lbl {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-right: 2px;
}
.art-sbtn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-back),
              background var(--dur-fast), color var(--dur-fast),
              border-color var(--dur-fast);
}
.art-sbtn:hover { transform: translateY(-3px); color: var(--white); border-color: transparent; }
.art-sbtn[data-net="wa"]:hover  { background: #25D366; }
.art-sbtn[data-net="fb"]:hover  { background: #1877F2; }
.art-sbtn[data-net="tg"]:hover  { background: #229ED9; }
.art-sbtn[data-net="x"]:hover   { background: #14171A; }
.art-sbtn[data-net="copy"]:hover,
.art-sbtn[data-net="native"]:hover { background: var(--brand); }
.art-sbtn.is-done { background: var(--success); color: var(--white); border-color: transparent; }

.art-size {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.art-size button {
  min-width: 34px;
  height: 30px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.art-size button:hover { color: var(--text-strong); background: var(--border); }
.art-size button[aria-pressed="true"] { background: var(--brand); color: var(--white); }
.art-size .s1 { font-size: 12px; }
.art-size .s2 { font-size: 14px; }
.art-size .s3 { font-size: 16px; }

/* Pesan singkat "tautan disalin" */
.art-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: var(--z-modal);
  transform: translate(-50%, 18px);
  padding: 11px 20px;
  border-radius: var(--r-pill);
  background: var(--ash-900);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 13px;
  box-shadow: var(--sh-3);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast), transform var(--dur-mid) var(--ease-out);
}
.art-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   4. DAFTAR ISI
   ========================================================================== */
.art-toc {
  margin: var(--space-6) 0 var(--space-5);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  overflow: hidden;
}
.art-toc > summary {
  list-style: none;
  cursor: pointer;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sub);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-strong);
}
.art-toc > summary::-webkit-details-marker { display: none; }
.art-toc > summary .chev { margin-left: auto; transition: transform var(--dur-fast); font-size: 12px; }
.art-toc[open] > summary .chev { transform: rotate(180deg); }
.art-toc ol {
  list-style: none;
  margin: 0;
  padding: 0 18px 16px;
  counter-reset: toc;
}
.art-toc li { counter-increment: toc; }
.art-toc li.lv3 { padding-left: 18px; }
.art-toc a {
  display: block;
  padding: 6px 0;
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: color var(--dur-fast);
}
.art-toc a::before {
  content: counter(toc) ".";
  margin-right: 8px;
  font-family: var(--font-sub);
  color: var(--brand);
}
.art-toc li.lv3 a::before { content: "–"; }
.art-toc a:hover { color: var(--brand); }
.art-toc a.is-active { color: var(--text-strong); font-weight: 600; }

/* ==========================================================================
   5. BADAN ARTIKEL — tipografi utama
   ========================================================================== */
.artikel-isi {
  font-family: var(--font-body);
  font-size: var(--read-fs);
  line-height: var(--read-lh);
  color: var(--text);
  letter-spacing: 0.002em;
  text-align: left;
  overflow-wrap: break-word;
}
.artikel-isi > * + * { margin-top: 1.25em; }

/* Paragraf: warna teks penuh (bukan muted) agar kontras nyaman dibaca */
.artikel-isi p { color: var(--text); margin-bottom: 0; }

/* Paragraf pembuka + huruf kapital hias */
.artikel-isi .art-lede {
  font-size: 1.16em;
  line-height: 1.75;
  color: var(--text-strong);
}
.artikel-isi .art-lede::first-letter {
  float: left;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 3.25em;
  line-height: 0.84;
  margin: 0.06em 0.12em 0 0;
  color: var(--brand);
}

/* Judul bagian */
.artikel-isi h2 {
  position: relative;
  font-family: var(--font-sub);
  font-weight: 500;
  font-size: clamp(1.32rem, 2.6vw, 1.7rem);
  line-height: 1.3;
  letter-spacing: 0.004em;
  color: var(--text-strong);
  margin-top: 2em;
  padding-top: 0.85em;
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.artikel-isi h2::after {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 62px;
  height: 2px;
  background: var(--grad-sunrise);
}
.artikel-isi h3 {
  font-family: var(--font-sub);
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.28rem);
  line-height: 1.4;
  color: var(--text-strong);
  margin-top: 1.7em;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.artikel-isi h3::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 10px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg) translateY(-2px);
}

.artikel-isi strong { color: var(--text-strong); font-weight: 600; }
.artikel-isi em { font-family: var(--font-accent); font-style: italic; }

/* Tautan dalam artikel */
.artikel-isi a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--art-rule);
  transition: text-decoration-color var(--dur-fast), color var(--dur-fast);
}
.artikel-isi a:hover { text-decoration-color: currentColor; }

/* Daftar */
.artikel-isi ul,
.artikel-isi ol { padding-left: 1.4em; display: grid; gap: 0.55em; }
.artikel-isi ul { list-style: none; padding-left: 0.2em; }
.artikel-isi ul > li {
  position: relative;
  padding-left: 1.6em;
  color: var(--text);
}
.artikel-isi ul > li::before {
  content: "";
  position: absolute;
  left: 0.35em;
  top: 0.72em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--brand);
  transform: rotate(45deg);
}
.artikel-isi ol > li { color: var(--text); padding-left: 0.25em; }
.artikel-isi ol > li::marker { color: var(--brand); font-weight: 600; }

/* Kutipan */
.artikel-isi blockquote {
  position: relative;
  margin-inline: 0;
  padding: 1.15em 1.3em 1.15em 3.1em;
  border-radius: var(--r-sm);
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  font-family: var(--font-accent);
  font-size: 1.1em;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-strong);
}
.artikel-isi blockquote::before {
  content: "\201C";
  position: absolute;
  left: 0.42em;
  top: 0.1em;
  font-family: var(--font-accent);
  font-size: 2.8em;
  line-height: 1;
  color: var(--accent);
  opacity: 0.55;
}
.artikel-isi blockquote p { color: inherit; }

/* Pemisah */
.artikel-isi hr {
  border: 0;
  height: 1px;
  margin: 2.2em auto;
  width: 42%;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

/* Gambar di dalam isi */
.artikel-isi img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}

.artikel-isi ::selection { background: var(--art-rule); }

/* Skala ukuran huruf (tombol A- / A / A+, disimpan di perangkat pembaca) */
.artikel-isi[data-size="sm"] { font-size: calc(var(--read-fs) * 0.92); line-height: 1.82; }
.artikel-isi[data-size="lg"] { font-size: calc(var(--read-fs) * 1.14); line-height: 1.94; }

/* ==========================================================================
   6. GALERI DOKUMENTASI
   ========================================================================== */
.art-block-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: var(--space-7) 0 var(--space-4);
}
.art-block-head h2 {
  font-family: var(--font-sub);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  color: var(--text-strong);
  white-space: nowrap;
}
.art-block-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.art-block-head i { color: var(--accent); }

.art-gal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr));
  gap: 10px;
}
.art-gal .gal-cell {
  position: relative;
  padding: 0;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  aspect-ratio: 4 / 3;
}
.art-gal .gal-cell:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 4 / 3;
}
.art-gal .gal-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out), filter var(--dur-mid);
}
.art-gal .gal-cell:hover img { transform: scale(1.07); }
.art-gal .gal-zoom {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-fast), transform var(--dur-fast);
}
.art-gal .gal-cell:hover .gal-zoom,
.art-gal .gal-cell:focus-visible .gal-zoom { opacity: 1; transform: translateY(0); }
@media (max-width: 520px) {
  .art-gal { grid-template-columns: repeat(2, 1fr); }
  .art-gal .gal-cell:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
}

/* ==========================================================================
   7. KARTU PENULIS, TAUTAN, NAVIGASI ANTAR ARTIKEL
   ========================================================================== */
.art-author {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: var(--space-7);
  padding: clamp(18px, 3vw, 26px);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--sh-1);
}
.art-author .art-avatar { width: 52px; height: 52px; font-size: 17px; }
.art-author h3 {
  font-family: var(--font-sub);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text-strong);
  line-height: 1.4;
}
.art-author p {
  margin-top: 5px;
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--text-muted);
}

.art-chips {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.art-chips a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur-fast), border-color var(--dur-fast),
              background var(--dur-fast), transform var(--dur-fast);
}
.art-chips a:hover {
  color: var(--brand);
  border-color: var(--art-rule);
  background: var(--surface);
  transform: translateY(-2px);
}
.art-chips i { color: var(--accent); font-size: 13px; }

.art-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 12px;
  margin-top: var(--space-6);
}
.art-nav a {
  display: block;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  transition: border-color var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-mid);
}
.art-nav a:hover { border-color: var(--art-rule); transform: translateY(-3px); box-shadow: var(--sh-2); }
.art-nav span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.art-nav strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-sub);
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.42;
  color: var(--text-strong);
}
.art-nav .next { text-align: right; }
.art-nav .next span { flex-direction: row-reverse; }

/* ==========================================================================
   8. ARTIKEL TERKAIT (bagian bawah halaman detail)
   ========================================================================== */
.art-related { margin-top: var(--space-8); }
.art-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--space-4);
}

/* ==========================================================================
   9. HALAMAN DAFTAR ARTIKEL
   ========================================================================== */
.art-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-6);
}
.art-search {
  position: relative;
  flex: 1 1 260px;
  max-width: 380px;
}
.art-search i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  font-size: 14px;
  pointer-events: none;
}
.art-search input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.art-search input::placeholder { color: var(--text-faint); }
.art-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--art-rule); }
.art-count {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-left: auto;
}
.art-empty {
  padding: var(--space-7) 0;
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-small);
}

/* Kartu utama (artikel terbaru) — dua kolom di layar lebar */
.art-lead {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  margin-bottom: var(--space-6);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid), border-color var(--dur-mid);
}
.art-lead:hover { transform: translateY(-5px); box-shadow: var(--sh-3); border-color: var(--art-rule); }
.art-lead-thumb { position: relative; overflow: hidden; min-height: 260px; background: var(--surface-2); }
.art-lead-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.art-lead:hover .art-lead-thumb img { transform: scale(1.06); }
.art-lead-body {
  padding: clamp(22px, 3.4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}
.art-lead-body h2 {
  font-family: var(--font-sub);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  line-height: 1.28;
  color: var(--text-strong);
}
.art-lead-body p {
  font-size: var(--fs-small);
  line-height: 1.8;
  color: var(--text-muted);
}
.art-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: var(--grad-sunrise);
  color: #16181A;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@media (max-width: 780px) {
  .art-lead { grid-template-columns: 1fr; }
  .art-lead-thumb { min-height: 0; aspect-ratio: 16 / 9; }
}

/* Penyempurnaan kartu berita di daftar & artikel terkait */
.news-card .news-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(12, 14, 15, 0.45) 100%);
  opacity: 0;
  transition: opacity var(--dur-mid);
}
.news-card:hover .news-thumb::after { opacity: 1; }
.news-card:hover { border-color: var(--art-rule); }
.news-card.is-hidden { display: none; }
.news-body h3 {
  font-size: 1.05rem;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-body p {
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.art-photo-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
}

/* ==========================================================================
   10. PENYESUAIAN LAYAR KECIL & AKSESIBILITAS
   ========================================================================== */
@media (max-width: 640px) {
  .hero--artikel { min-height: min(68svh, 520px); }
  .art-meta-facts { margin-left: 0; width: 100%; }
  .art-tools { flex-direction: column; align-items: flex-start; }
  .art-size { align-self: flex-end; }
  .artikel-isi .art-lede::first-letter { font-size: 2.9em; }
  .art-author { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .art-hero-photo img { animation: none; transform: none; }
  .art-gal .gal-cell img,
  .art-lead-thumb img,
  .news-card,
  .art-nav a,
  .art-chips a { transition: none; }
}

/* Cetak: buang hiasan, sisakan judul + teks berita */
@media print {
  .hero-layer, .art-hero-photo, .art-hero-veil, .art-hero-cap,
  .art-tools, .art-toc, .art-nav, .art-related, .art-chips,
  .site-nav, .drawer, .footer, .to-top, .read-bar, #loader { display: none; }
  .hero, .hero--artikel { min-height: 0; background: none; }
  .hero--artikel .hero-body { padding: 0 0 12pt; }
  .hero--artikel .hero-title { color: #000; text-shadow: none; font-size: 20pt; }
  .breadcrumb-nav, .hero-eyebrow { color: #555; }
  .artikel-isi { font-size: 11.5pt; line-height: 1.6; color: #000; }
  .artikel-isi .art-lede::first-letter { color: #000; }
}
