/*
 * Halaman Berita & Pengumuman (daftar + detail).
 * Dimuat setelah site-desa.css. Semua aturan di-scope ke body.b-page
 * dan hanya memakai token var(--d-*) agar mode gelap ikut berubah.
 *
 *  1. Perbaikan mode gelap (main.css memaksa warna teks dengan !important)
 *  2. Pencarian di kepala halaman
 *  3. Tata letak daftar + panel filter
 *  4. Kartu berita
 *  5. Daftar pengumuman (tab, toolbar, baris)
 *  6. Halaman detail: sampul, tata letak, tipografi artikel
 *  7. Lampiran, galeri, bagikan, terkait
 *  8. Responsif
 */

/* ================================================================ 1. Mode gelap */
html body.b-page .d-chip { color: var(--d-muted) !important; }
html body.b-page .d-chip--brand { color: var(--d-brand) !important; }
html body.b-page .d-chip i { color: inherit !important; }
html body.b-page .d-pagehead__meta .d-chip { color: var(--d-on-deep) !important; }
html body.b-page .d-crumbs [aria-current],
html body.b-page .d-crumbs [aria-current] span { color: #fff !important; }
html body.b-page .d-btn__ic,
html body.b-page .d-btn__ic i { color: var(--btn-ic-fg) !important; }
html body.b-page .d-btn > span:not(.d-btn__ic) { color: inherit !important; }
html body.b-page .d-pagehead__title { color: #fff !important; }
html body.b-page .d-crumbs [aria-current] { display: inline-block; max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* ================================================================ 2. Pencarian kepala halaman */
html body.b-page .b-hsearch {
  display: flex; align-items: center; gap: 10px; width: min(560px, 100%); height: 56px; margin: 0; padding: 0 6px 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-sizing: border-box;
  transition: border-color 160ms, background-color 160ms;
}
html body.b-page .b-hsearch:focus-within { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.12); }
html body.b-page .b-hsearch > i { color: var(--d-on-deep-muted) !important; font-size: 15px; }
html body.b-page .b-hsearch input {
  flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; box-shadow: none;
  color: #fff !important; font-size: 16px;
}
html body.b-page .b-hsearch input::placeholder { color: var(--d-on-deep-muted); opacity: 1; }
html body.b-page .b-hsearch .d-btn { flex-shrink: 0; }

/* ================================================================ 3. Tata letak & filter */
html body.b-page .b-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 3.5vw, 56px); align-items: start;
}
html body.b-page .b-aside { position: sticky; top: calc(var(--d-header-h) + 20px); display: grid; gap: 16px; }

html body.b-page .b-listhead {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 20px;
}
html body.b-page .b-listhead__title { margin: 0; font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -0.025em; color: var(--d-ink) !important; }
html body.b-page .b-listhead__title small { margin-left: 6px; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--d-subtle) !important; }
html body.b-page .b-active { display: flex; flex-wrap: wrap; gap: 6px; }

html body.b-page .b-filter { padding: 24px; }
html body.b-page .b-filter__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
html body.b-page .b-filter__title { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--d-ink) !important; }
html body.b-page .b-filter__clear { font-size: 13px; font-weight: 600; color: var(--d-brand) !important; text-decoration: none !important; }
html body.b-page .b-filter__clear:hover { text-decoration: underline !important; }
html body.b-page .b-filter__group + .b-filter__group { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--d-line); }
html body.b-page .b-filter__label {
  display: block; margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--d-subtle) !important;
}
html body.b-page .b-checks { display: flex; flex-wrap: wrap; gap: 8px; }
html body.b-page .b-check { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
html body.b-page .b-check input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
html body.b-page .b-check span {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--d-line-strong); background: var(--d-surface); color: var(--d-ink) !important;
  font-size: 14px; font-weight: 600; transition: background-color 160ms, border-color 160ms, color 160ms;
}
html body.b-page .b-check span em { font-style: normal; font-weight: 500; color: var(--d-subtle) !important; }
html body.b-page .b-check:hover span { border-color: var(--d-brand); }
html body.b-page .b-check input:checked + span { background: var(--d-deep); border-color: var(--d-deep); color: #fff !important; }
html body.b-page .b-check input:checked + span em { color: var(--d-on-deep-muted) !important; }
html body.dark-mode.b-page .b-check input:checked + span { background: var(--d-brand); border-color: var(--d-brand); color: var(--d-on-brand) !important; }
html body.dark-mode.b-page .b-check input:checked + span em { color: var(--d-on-brand) !important; opacity: 0.7; }
html body.b-page .b-check input:focus-visible + span { outline: 2px solid var(--d-brand); outline-offset: 2px; }

html body.b-page .b-select { position: relative; }
html body.b-page .b-select select {
  -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer; font-weight: 600;
}
html body.b-page .b-select > i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--d-subtle) !important; pointer-events: none; }
html body.b-page .b-select select option { background: var(--d-surface); color: var(--d-ink); }

html body.b-page .b-note { padding: 22px 24px; }
html body.b-page .b-note p { margin: 8px 0 16px; font-size: 14px; line-height: 1.6; color: var(--d-muted) !important; }
html body.b-page .b-note strong { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.015em; color: var(--d-ink) !important; }

/* ================================================================ 4. Kartu berita */
html body.b-page .b-news { display: grid; gap: 16px; }
html body.b-page .b-item {
  display: grid; grid-template-columns: minmax(0, 1fr) 248px; gap: 24px; align-items: stretch;
  padding: 14px 14px 14px 26px; border: 1px solid var(--d-line); border-radius: var(--d-radius-l);
  background: var(--d-surface); color: var(--d-ink) !important; text-decoration: none !important;
  transition: border-color 200ms, background-color 200ms;
}
html body.b-page .b-item:hover { border-color: var(--d-line-strong); }
html body.b-page .b-item__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 10px 0; }
html body.b-page .b-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; font-weight: 500; color: var(--d-muted) !important; }
html body.b-page .b-meta > span:not(.d-chip) { display: inline-flex; align-items: center; gap: 6px; color: var(--d-muted) !important; }
html body.b-page .b-meta i { font-size: 12px; color: var(--d-subtle) !important; }
html body.b-page .b-item__title {
  margin: 0; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; color: var(--d-ink) !important;
  transition: color 160ms;
}
html body.b-page .b-item:hover .b-item__title { color: var(--d-brand) !important; }
html body.b-page .b-item__excerpt {
  margin: 0; font-size: 15px; line-height: 1.6; color: var(--d-muted) !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
html body.b-page .b-item__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; }
html body.b-page .b-item__img {
  position: relative; overflow: hidden; width: 100%; min-width: 0; min-height: 186px;
  border-radius: var(--d-radius-m); background: var(--d-tint);
}
html body.b-page .b-item__img img { position: absolute; inset: 0; }
html body.b-page .b-item__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--d-ease); }
html body.b-page .b-item:hover .b-item__img img { transform: scale(1.04); }

/* sorotan (berita pertama) */
html body.b-page .b-item--feature { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 12px; }
html body.b-page .b-item--feature .b-item__img { order: -1; aspect-ratio: 16 / 8; min-height: 0; }
html body.b-page .b-item--feature .b-item__body { gap: 12px; padding: 22px 16px 12px; }
html body.b-page .b-item--feature .b-item__title { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.03em; }
html body.b-page .b-item--feature .b-item__excerpt { font-size: 16px; -webkit-line-clamp: 3; max-width: 68ch; }

/* tautan bulat "baca" (span di dalam kartu yang berupa <a>) */
html body.b-page .b-go { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--d-ink) !important; white-space: nowrap; }
html body.b-page .b-go__ic {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--d-line-strong);
  color: var(--d-brand) !important; font-size: 12px; flex-shrink: 0;
  transition: background-color 180ms, color 180ms, border-color 180ms, transform 240ms var(--d-ease);
}
html body.b-page .b-go__ic i { color: inherit !important; }
html body.b-page :is(.b-item, .b-ann, .b-mini):hover .b-go__ic {
  background: var(--d-brand); border-color: var(--d-brand); color: var(--d-on-brand) !important; transform: rotate(-45deg);
}
html body.b-page .b-pager { margin-top: 32px; }

html body.b-page .b-empty { background: var(--d-surface); padding: 56px 20px; }
html body.b-page .b-empty strong { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; color: var(--d-ink) !important; }
html body.b-page .b-empty p { margin: 0; font-size: 15px; color: var(--d-muted) !important; }
html body.b-page .b-empty .d-btn { margin-top: 8px; }
html body.b-page .b-empty .d-btn i { font-size: 12px; color: inherit !important; }

/* ================================================================ 5. Pengumuman */
html body.b-page .b-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-bottom: 24px;
}
html body.b-page .b-tabs-scroll { max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
html body.b-page .b-tabs-scroll::-webkit-scrollbar { display: none; }
html body.b-page .b-tabs-scroll .d-tabs { flex-wrap: nowrap; }
html body.b-page a.d-tab { display: inline-flex; align-items: center; text-decoration: none !important; color: var(--d-muted) !important; }
html body.b-page a.d-tab:hover { color: var(--d-ink) !important; }
html body.b-page a.d-tab.active { color: #fff !important; }
html body.dark-mode.b-page a.d-tab.active { color: var(--d-on-brand) !important; }
html body.b-page .b-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
html body.b-page .b-tools .d-search { width: 280px; }
html body.b-page .b-tools .b-select { width: 128px; }

html body.b-page .b-annlist { display: grid; gap: 12px; }
html body.b-page .b-ann {
  display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; align-items: center; gap: 22px;
  padding: 12px 22px 12px 12px; border: 1px solid var(--d-line); border-radius: var(--d-radius-l);
  background: var(--d-surface); text-decoration: none !important; transition: border-color 200ms;
}
html body.b-page .b-ann:hover { border-color: var(--d-line-strong); }
html body.b-page .b-ann__img { overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--d-radius-m); background: var(--d-tint); }
html body.b-page .b-ann__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--d-ease); }
html body.b-page .b-ann:hover .b-ann__img img { transform: scale(1.05); }
html body.b-page .b-ann__body { display: grid; gap: 8px; min-width: 0; }
html body.b-page .b-ann__title { margin: 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; color: var(--d-ink) !important; transition: color 160ms; }
html body.b-page .b-ann:hover .b-ann__title { color: var(--d-brand) !important; }
html body.b-page .b-ann__desc {
  margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--d-muted) !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ================================================================ 6. Detail */
html body.b-page .b-pagehead--article .d-pagehead__title { max-width: 26ch; font-size: clamp(26px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -0.035em; }

html body.b-page .b-cover {
  position: relative; overflow: hidden; margin: 0 0 clamp(28px, 4vw, 48px); aspect-ratio: 21 / 9;
  border-radius: var(--d-radius-l); background: var(--d-tint);
}
html body.b-page .b-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
html body.b-page .b-cover .d-chip { position: absolute; left: 16px; bottom: 16px; color: #fff !important; }

/* isi berita memenuhi kolom kiri; kartu samping 340px rata kanan dengan foto sampul */
html body.b-page .b-article { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 2.6vw, 40px); align-items: start; }
html body.b-page .b-article__main { min-width: 0; }

/* tipografi isi artikel */
html body.b-page .b-prose { max-width: none; font-size: 17px; line-height: 1.75; color: var(--d-ink) !important; overflow-wrap: break-word; }
html body.b-page .b-prose :is(p, li, span, strong, em, td, th, small, a, h1, h2, h3, h4, h5, h6, blockquote, figcaption) { line-height: inherit; }
html body.b-page .b-prose :is(p, span, li, td, strong, em, b, i:not([class*="fa"])) { color: var(--d-ink) !important; }
html body.b-page .b-prose p { margin: 0 0 1.2em; font-size: inherit !important; }
html body.b-page .b-prose > :first-child { margin-top: 0 !important; }
html body.b-page .b-prose > :last-child { margin-bottom: 0 !important; }
html body.b-page .b-prose :is(h1, h2, h3, h4, h5, h6) { color: var(--d-ink) !important; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
html body.b-page .b-prose :is(h1, h2) { margin: 1.8em 0 0.6em; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2 !important; }
html body.b-page .b-prose h3 { margin: 1.6em 0 0.5em; font-size: clamp(20px, 2vw, 23px); line-height: 1.25 !important; }
html body.b-page .b-prose :is(h4, h5, h6) { margin: 1.5em 0 0.4em; font-size: 18px; line-height: 1.3 !important; letter-spacing: -0.015em; }
html body.b-page .b-prose strong, html body.b-page .b-prose b { font-weight: 700; }
html body.b-page .b-prose a { color: var(--d-brand) !important; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
html body.b-page .b-prose a:hover { text-decoration-thickness: 2px; }
html body.b-page .b-prose :is(ul, ol) { margin: 0 0 1.2em; padding-left: 1.4em; }
html body.b-page .b-prose ul { list-style: disc; }
html body.b-page .b-prose ol { list-style: decimal; }
html body.b-page .b-prose li { margin: 0.35em 0; padding-left: 0.2em; }
html body.b-page .b-prose li::marker { color: var(--d-brand); }
html body.b-page .b-prose img { display: block; max-width: 100%; height: auto !important; margin: 1.6em 0; border-radius: var(--d-radius-m); }
html body.b-page .b-prose figure { margin: 1.8em 0; }
html body.b-page .b-prose figure img { margin: 0; }
html body.b-page .b-prose figcaption { margin-top: 10px; font-size: 14px; color: var(--d-muted) !important; }
html body.b-page .b-prose blockquote {
  margin: 1.8em 0; padding: 2px 0 2px 24px; border-left: 3px solid var(--d-brand);
  font-size: 19px; line-height: 1.6; font-weight: 500; letter-spacing: -0.01em; color: var(--d-ink) !important;
}
html body.b-page .b-prose blockquote p:last-child { margin-bottom: 0; }
html body.b-page .b-prose hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--d-line); }
html body.b-page .b-prose :is(code, kbd) { padding: 2px 6px; border-radius: 6px; background: var(--d-tint); font-size: 0.9em; }
html body.b-page .b-prose pre { overflow-x: auto; padding: 16px 18px; border-radius: var(--d-radius-s); background: var(--d-surface-2); border: 1px solid var(--d-line); font-size: 14px; }
html body.b-page .b-prose table:not(.et-table) {
  width: 100% !important; max-width: 100%; margin: 1.6em 0; border-collapse: collapse; border: 0 !important;
  font-size: 15px; line-height: 1.5;
}
html body.b-page .b-prose table:not(.et-table) :is(th, td) { padding: 11px 16px; border: 1px solid var(--d-line) !important; text-align: left; vertical-align: top; }
html body.b-page .b-prose table:not(.et-table) th, html body.b-page .b-prose table:not(.et-table) thead td { background: var(--d-surface-2) !important; font-weight: 700; }
/* pembungkus tabel (ditambahkan skrip halaman) */
html body.b-page .b-prose .b-tablewrap { margin: 1.6em 0; overflow-x: auto; border: 1px solid var(--d-line); border-radius: var(--d-radius-s); background: var(--d-surface); }
html body.b-page .b-prose .b-tablewrap table:not(.et-table) { width: max-content !important; min-width: 100%; margin: 0; }
html body.b-page .b-prose .b-tablewrap table:not(.et-table) :is(th, td) { max-width: 320px; border-width: 0 1px 1px 0 !important; white-space: normal; }
html body.b-page .b-prose .b-tablewrap table:not(.et-table) tr > :last-child { border-right-width: 0 !important; }
html body.b-page .b-prose .b-tablewrap table:not(.et-table) tr:last-child > * { border-bottom-width: 0 !important; }
html body.b-page .b-prose iframe, html body.b-page .b-prose video { max-width: 100%; border: 0; border-radius: var(--d-radius-m); }
html body.dark-mode.b-page .b-prose table:not(.et-table), html body.dark-mode.b-page .b-prose table:not(.et-table) :is(tr, td) { background-color: transparent !important; }
html body.dark-mode.b-page .b-prose table:not(.et-table) th { background-color: var(--d-surface-2) !important; }
html body.dark-mode.b-page .b-prose [style*="background-color"],
html body.dark-mode.b-page .b-prose [style*="background-color"] * { color: var(--d-accent-ink) !important; }

/* ================================================================ 7. Lampiran, galeri, bagikan, terkait */
html body.b-page .b-block { max-width: min(72ch, 740px); margin-top: clamp(36px, 4vw, 52px); }
html body.b-page .b-block .d-eyebrow { margin-bottom: 14px; }

html body.b-page .b-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
html body.b-page .b-gallery a { display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--d-radius-m); border: 1px solid var(--d-line); background: var(--d-tint); }
html body.b-page .b-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--d-ease); }
html body.b-page .b-gallery a:hover img { transform: scale(1.05); }

html body.b-page .b-files { display: grid; gap: 10px; }
html body.b-page .b-file {
  display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 14px;
  border: 1px solid var(--d-line); border-radius: var(--d-radius-m); background: var(--d-surface);
}
html body.b-page .b-file__ic { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--d-radius-s); background: var(--d-tint); color: var(--d-brand) !important; font-size: 17px; }
html body.b-page .b-file__txt { flex: 1; min-width: 0; }
html body.b-page .b-file__name { display: block; font-size: 15px; font-weight: 600; color: var(--d-ink) !important; overflow-wrap: anywhere; }
html body.b-page .b-file__txt small { display: block; margin-top: 2px; font-size: 13px; color: var(--d-muted) !important; }
html body.b-page .b-file .d-iconbtn { flex-shrink: 0; text-decoration: none !important; }
html body.b-page .b-file .d-iconbtn i { color: inherit !important; }

html body.b-page .b-side { position: sticky; top: calc(var(--d-header-h) + 20px); display: grid; gap: 16px; }
html body.b-page .b-side__card { padding: 22px; }
html body.b-page .b-side__title { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--d-subtle) !important; }
html body.b-page .b-share { display: flex; flex-wrap: wrap; gap: 8px; }
html body.b-page .b-share .d-iconbtn { text-decoration: none !important; color: var(--d-ink) !important; }
html body.b-page .b-share .d-iconbtn:hover { color: var(--d-on-brand) !important; }
html body.b-page .b-share .d-iconbtn i { color: inherit !important; }
html body.b-page .b-share .d-iconbtn.is-copied { background: var(--d-brand); border-color: var(--d-brand); color: var(--d-on-brand) !important; }
html body.b-page .b-share__msg:empty { display: none; }
html body.b-page .b-share__msg { display: block; margin-top: 10px; font-size: 13px; color: var(--d-muted) !important; }

html body.b-page .b-facts { display: grid; gap: 0; margin: 0; }
html body.b-page .b-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--d-line); font-size: 14px; }
html body.b-page .b-facts > div:first-child { border-top: 0; padding-top: 0; }
html body.b-page .b-facts dt { color: var(--d-muted) !important; }
html body.b-page .b-facts dd { margin: 0; font-weight: 600; text-align: right; color: var(--d-ink) !important; }

html body.b-page .b-minis { display: grid; gap: 4px; }
html body.b-page .b-mini {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; margin: 0 -8px;
  border-radius: var(--d-radius-s); text-decoration: none !important; transition: background-color 160ms;
}
html body.b-page .b-mini:hover { background: var(--d-tint-2); }
html body.b-page .b-mini__img { overflow: hidden; aspect-ratio: 1; border-radius: var(--d-radius-s); background: var(--d-tint); }
html body.b-page .b-mini__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
html body.b-page .b-mini__title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--d-ink) !important; transition: color 160ms;
}
html body.b-page .b-mini:hover .b-mini__title { color: var(--d-brand) !important; }
html body.b-page .b-mini small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--d-subtle) !important; }
html body.b-page .b-side .d-link { margin-top: 18px; }
html body.b-page .b-side .d-link i { color: inherit !important; }

/* ================================================================ 8. Responsif */
@media (max-width: 1024px) {
  html body.b-page .b-article { grid-template-columns: minmax(0, 1fr); }
  html body.b-page .b-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 960px) {
  html body.b-page .b-layout { grid-template-columns: minmax(0, 1fr); }
  html body.b-page .b-aside { position: static; order: -1; }
  html body.b-page .b-aside .b-note { display: none; }
  html body.b-page .b-tools { width: 100%; }
  html body.b-page .b-tools .d-search { flex: 1; width: auto; min-width: 0; }
}
@media (max-width: 720px) {
  html body.b-page .b-item { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 10px; }
  html body.b-page .b-item .b-item__img { order: -1; aspect-ratio: 16 / 9; min-height: 0; }
  html body.b-page .b-item__body { padding: 16px 8px 8px; }
  html body.b-page .b-item--feature .b-item__body { padding: 16px 8px 8px; }
  html body.b-page .b-ann { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 10px 14px 10px 10px; align-items: start; }
  html body.b-page .b-ann__img { aspect-ratio: 1; }
  html body.b-page .b-ann > .b-go { display: none; }
  html body.b-page .b-ann__body { gap: 6px; }
  html body.b-page .b-ann .b-meta .d-chip { height: 24px; padding: 0 10px; font-size: 11.5px; }
  html body.b-page .b-cover { aspect-ratio: 16 / 10; border-radius: var(--d-radius-m); }
  html body.b-page .b-prose { font-size: 16px; line-height: 1.72; }
  html body.b-page .b-prose blockquote { font-size: 17px; padding-left: 18px; }
  html body.b-page .b-side { grid-template-columns: minmax(0, 1fr); }
  html body.b-page .b-hsearch { height: 52px; padding-left: 16px; }
  html body.b-page .b-hsearch .d-btn { padding: 0 4px 0 12px; gap: 8px; }
  html body.b-page .d-crumbs [aria-current] { max-width: 22ch; }
  html body.b-page .b-tools .b-select { width: 116px; }
}
@media (max-width: 400px) {
  html body.b-page .b-hsearch .d-btn > span:first-child { display: none; }
  html body.b-page .b-hsearch .d-btn { padding: 0 4px; }
}

/* Tabel dari alat tabel editor admin (.et-table): lebar kolom, warna sel & garis
   mengikuti pengaturan admin (gaya inline), jadi aturan paksa di atas tidak berlaku. */
html body.b-page .b-prose table.et-table { max-width: 100%; margin: 1.6em 0; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
html body.b-page .b-prose .b-tablewrap:has(> table.et-table) { border: 0; border-radius: 0; background: transparent; }
html body.b-page .b-prose .b-tablewrap > table.et-table { margin: 0; }
html body.b-page .b-prose table.et-table :is(th, td) { vertical-align: top; }
html body.b-page .b-prose table.et-table :is(th, td) > p { margin: 0; }
html body.dark-mode.b-page .b-prose table.et-table :is(th, td):not([style*="background"]) { color: var(--d-ink); }
html body.b-page .b-prose table.et-table .et-on-dark, html body.b-page .b-prose table.et-table .et-on-dark :is(p, span, li, strong, em, b, i, a) { color: #fff !important; }
