/* ==========================================================================
   Jurnalis Metro — UI/UX fix pack
   Tema: SuaraWP 1.0.0 ("Versi Developer")
   Status: fix pack P1/P2/UIUX sudah diterapkan ke produksi (12 Nov 2026).
   Blok "HOMEPAGE REDESIGN" di akhir berkas BELUM diterapkan sampai disetujui.
   Diuji lewat injeksi CDP di browser (12 Nov 2026): lebar 360/390/430/1024/
   1169/1200/1366/1440/1920, mode terang & gelap, infinite scroll 10 -> 20 item,
   tanpa overflow horizontal dan tanpa error konsol.
   Cara pakai: tempel di Child Theme > style.css, atau mu-plugin
   (wp_enqueue_style) SETELAH style-mobile.css / style-desktop.css.
   Urutan penting: berkas ini harus dimuat paling akhir agar menang cascade.

   Prasyarat aset:
   unggah uiux/logo-dark.png ke
   https://jurnalismetro.com/wp-content/uploads/2025/01/suarawp-white.png
   ========================================================================== */

:root {
  /* Ganti URL ini bila nama berkas berbeda. */
  --jm-logo-dark: url("https://jurnalismetro.com/wp-content/uploads/2025/01/suarawp-white.png");
}

/* --------------------------------------------------------------------------
   1) P1 — Desktop 768–969px: kanvas 970px bikin halaman meluber horizontal.
   width:min(970px,100%) = tetap 970px di layar lebar, mengecil di bawahnya.
   -------------------------------------------------------------------------- */
.container {
  width: min(970px, 100%);
}

/* Tiga blok ini dipatok min-width:970px di style-desktop.css dan menahan
   seluruh halaman tetap 970px meski container sudah fleksibel. */
.header-box,
footer.footer,
.network-menu {
  min-width: 0;
}

@media (max-width: 969px) {
  body:not(.mobile) .container {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }
  body:not(.mobile) .header-social {
    display: none;
  }
  body:not(.mobile) .primary-menu .container,
  body:not(.mobile) .secondary-menu .container {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  body:not(.mobile) .primary-menu .container::-webkit-scrollbar,
  body:not(.mobile) .secondary-menu .container::-webkit-scrollbar {
    display: none;
  }
  body:not(.mobile) .primary-menu nav > ul {
    width: max-content;
    flex-wrap: nowrap;
  }
  body:not(.mobile) .primary-menu nav > ul > li > a {
    white-space: nowrap;
  }
  body:not(.mobile) .secondary-row {
    width: max-content;
    flex-wrap: nowrap;
  }
  body:not(.mobile) .header-date {
    display: none;
  }
  .billboard,
  .billboard.parallax .widget-parallax {
    width: 100%;
  }
  .billboard.parallax .widget-parallax img {
    width: 100% !important;
    height: auto !important;
  }
  .secondary-menu ul li.menu-item-has-children .sub-menu.show {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   2) P1 — Dark mode: judul seksi tetap navy (#121d96) di atas #202020.
   Kontras 1.27:1 (axe: serious). Desktop sudah punya aturan putih; mobile
   tidak. Samakan untuk kedua stylesheet.
   -------------------------------------------------------------------------- */
.darkmode .widget-title {
  color: #fff;
}

/* Aksen navy (#121d96) juga dipakai kategori artikel dan kotak "Baca Juga"
   (plugin Suara Artikel Plus). Di latar #1e1e1e kontrasnya ~1.27:1. */
.darkmode .post-category,
.darkmode .post-category a,
.darkmode .breadcrumb-box > ul > li > a,
.darkmode .breadcrumb ul li a,
.darkmode .tag-label,
.darkmode .bacajuga a {
  color: #a9bcff;
}
.darkmode .sap-box {
  --sap-primary: #a9bcff;
}

/* Logo: filter brightness(0) invert(1) membuat kotak navy + teks putih
   "JURNALIS" menjadi satu blok putih (teks hilang). Pakai wordmark putih. */
.darkmode .header-brand img,
.darkmode .sidebarmenu-header img {
  opacity: 0; /* gambar asli tetap ada untuk layout + alt text */
}
.darkmode .header-brand a {
  background-image: var(--jm-logo-dark);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}
.darkmode .sidebarmenu-header .brand-link {
  background-image: var(--jm-logo-dark);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: auto 20px;
}

/* Header mobile: logo +20% (20px -> 24px). Tinggi taskbar tetap 60px
   karena header-right (40px) + padding 10px tetap penentu tinggi. */
body.mobile .header-brand img {
  height: 24px;
}

/* --------------------------------------------------------------------------
   3) P1 — Strip kategori mobile terpotong (overflow:hidden, tinggi 40px).
   Jadikan dapat digeser horizontal; item di luar layar tetap bisa dicapai.
   -------------------------------------------------------------------------- */
body.mobile .primary-menu {
  height: 40px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body.mobile .primary-menu::-webkit-scrollbar {
  display: none;
}
body.mobile .primary-menu nav {
  padding-bottom: 0;
  overflow: visible;
}
body.mobile .primary-menu nav > ul {
  width: max-content;
  min-width: 100%;
}
body.mobile .primary-menu nav > ul > li {
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   4) P1/P2 — Target sentuh ikon header (28–30px) dan tombol tutup menu.
   Naikkan ke 36–40px tanpa mengubah tinggi header (50px).
   -------------------------------------------------------------------------- */
body.mobile .header-left .menu {
  width: 36px;
  height: 36px;
}
body.mobile .header-right .mode,
body.mobile .header-search .btn-search {
  width: 40px;
  height: 40px;
}
body.mobile .sidebarmenu-close {
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bila kontrol diubah dari <div> menjadi <button> (lihat laporan §8.1). */
body.mobile button.menu,
body.mobile button.mode,
body.mobile button.btn-search,
body.mobile button.sidebarmenu-close {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
}

/* --------------------------------------------------------------------------
   5) P2 — Label menu panel (UTAMA/KETERBUKAAN/PILIHAN) 12px #999 di atas
   putih = 2.84:1. Di dark mode panel berlatar #1c1c1c, jadi pakai dua nilai.
   -------------------------------------------------------------------------- */
.sidebar-menu-content .widget-header .widget-title {
  color: #595959; /* 7.0:1 di atas putih */
}
.darkmode .sidebar-menu-content .widget-header .widget-title {
  color: #b3b3b3; /* 7.4:1 di atas #1c1c1c */
}

/* --------------------------------------------------------------------------
   6) P2 — Judul artikel mobile 20px rata tengah: terlalu kecil untuk H1
   berita dan menyulitkan pemindaian. 24px, rata kiri, line-height 1.3.
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  body.mobile .header-post .title-post h1 {
    font-size: 24px;
    line-height: 1.3;
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   7) P2 — Fokus keyboard terlihat (tombol trigger tema memakai outline:0).
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid #121d96;
  outline-offset: 2px;
}
.darkmode :focus-visible {
  outline-color: #ffd166;
}
/* Kolom pencarian di header memakai outline:none dari stylesheet utama. */
body.home .search-text:focus-visible {
  outline: 3px solid #121d96;
  outline-offset: 2px;
}
body.home.darkmode .search-text:focus-visible {
  outline-color: #ffd166;
}

/* --------------------------------------------------------------------------
   8) P3 — Hormati preferensi gerak minimal. Tema tidak punya satu pun
   prefers-reduced-motion, padahal menu memakai animasi width.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   HOMEPAGE REDESIGN — "Modern Editorial News Portal"
   Lingkup: HANYA halaman homepage (body.home). Halaman lain tidak berubah.
   Desktop dan mobile memakai stylesheet berbeda; aturan di bawah dipecah
   dengan body.home:not(.mobile) dan body.home.mobile.
   Tidak ada perubahan PHP/JS. Semua selector memakai kelas yang sudah ada.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1) Kanvas desktop: 970px -> maksimum 1200px, sidebar 320px di layar lebar.
   Header/footer homepage ikut rata karena memakai .container yang sama.
   -------------------------------------------------------------------------- */
body.home:not(.mobile) .container {
  width: min(1200px, calc(100% - 32px));
}
body.home:not(.mobile) .main {
  padding-right: 24px;
}
body.home:not(.mobile) .sidebar {
  width: 300px;
}
@media (min-width: 1200px) {
  body.home:not(.mobile) .sidebar {
    width: 320px;
  }
}

/* --------------------------------------------------------------------------
   2) Ritme seksi dan judul seksi (desktop + mobile).
   Batang aksen memakai warna merek dari customizer (var(--primary)).
   -------------------------------------------------------------------------- */
body.home .main-box > .widget {
  margin-bottom: 30px;
}
body.home .main-box > .widget > .widget-header {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e7e7e7;
  padding-bottom: 8px;
  margin-bottom: 14px;
}
body.home .main-box > .widget > .widget-header .widget-title {
  position: relative;
  margin: 0;
  padding: 0 0 0 12px;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: .02em;
  color: var(--primary);
}
body.home .main-box > .widget > .widget-header .widget-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 4px;
  border-radius: 2px;
  background: var(--primary);
}
body.home.darkmode .main-box > .widget > .widget-header {
  border-color: #343434;
}
body.home.darkmode .main-box > .widget > .widget-header .widget-title {
  color: #fff;
}
body.home.darkmode .main-box > .widget > .widget-header .widget-title::before {
  background: #9db0ff;
}

/* --------------------------------------------------------------------------
   3) Hero: rasio lebih lebar, overlay gradien, judul dan pil kategori tegas.
   -------------------------------------------------------------------------- */
body.home:not(.mobile) .headline .headline-big .headline-image {
  padding-bottom: 52%;
  border-radius: 10px;
}
body.home:not(.mobile) .headline .headline-big .headline-text {
  padding: 64px 24px 20px;
  background: linear-gradient(180deg, rgba(10,12,20,0) 0%, rgba(10,12,20,.55) 38%, rgba(10,12,20,.9) 100%);
}
body.home:not(.mobile) .headline .headline-big .headline-title {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.01em;
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
}
body.home .headline .headline-big .headline-category {
  border: 0;
  background: var(--primary);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.4;
  margin-right: 10px;
}
body.home .headline .headline-big .headline-date {
  font-size: 12px;
  color: rgba(255,255,255,.88);
}
body.home.darkmode .headline .headline-big .headline-category {
  background: #9db0ff;
  color: #121212;
}

/* Berita pendamping hero: 2x2 dengan garis atas, thumb mendekati ukuran asli. */
body.home:not(.mobile) .headline-small {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 14px 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
body.home:not(.mobile) .headline-small .headline-item {
  width: auto;
  min-width: 0;
  padding: 14px 0;
  border-top: 1px solid #ececec;
}
body.home:not(.mobile) .headline-small .headline-image {
  width: 96px;
  height: 72px;
  padding-bottom: 0;
  flex: 0 0 96px;
  margin: 0 14px 0 0;
  border-radius: 6px;
}
body.home:not(.mobile) .headline-small .headline-title {
  font-size: 14.5px;
  line-height: 1.35;
  font-weight: 600;
}
body.home:not(.mobile) .headline-small .headline-date {
  font-size: 11px;
  color: #666;
}
body.home.darkmode:not(.mobile) .headline-small .headline-item {
  border-color: #343434;
}
body.home.darkmode:not(.mobile) .headline-small .headline-title a {
  color: #f5f5f5;
}
body.home.darkmode:not(.mobile) .headline-small .headline-date {
  color: #a8a8a8;
}

/* --------------------------------------------------------------------------
   4) Widget grid (Hukum, Pemprov, Pemko): kartu utama + 4 kartu kecil 2 kolom.
   -------------------------------------------------------------------------- */
body.home:not(.mobile) .grid .widget-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}
body.home:not(.mobile) .grid-item {
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 14px 0;
  align-items: flex-start;
  border-top: 1px solid #ececec;
  border-radius: 6px;
  transition: background-color .2s ease;
}
body.home:not(.mobile) .grid-item:first-child {
  grid-column: 1 / -1;
  padding: 0 0 16px;
  border-top: 0;
  border-bottom: 1px solid #ececec;
  align-items: center;
  gap: 20px;
}
body.home:not(.mobile) .grid-item:first-child .grid-image {
  width: 46%;
  flex: 0 0 46%;
  padding-bottom: 25%;
  border-radius: 8px;
}
body.home:not(.mobile) .grid-item:not(:first-child) .grid-image {
  width: 104px;
  flex: 0 0 104px;
  padding-bottom: 70px;
  border-radius: 6px;
}
body.home:not(.mobile) .grid-text {
  padding: 0 0 0 14px;
}
body.home:not(.mobile) .grid-item:first-child .grid-text {
  padding: 0;
}
body.home:not(.mobile) .grid-title {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}
body.home:not(.mobile) .grid-item:first-child .grid-title {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}
body.home:not(.mobile) .grid-meta {
  font-size: 11px;
  color: #666;
  margin-top: 5px;
}
body.home:not(.mobile) .grid-item:not(:first-child):hover {
  background: #fafafa;
}
body.home.darkmode:not(.mobile) .grid-item,
body.home.darkmode:not(.mobile) .grid-item:first-child {
  border-color: #343434;
}
body.home.darkmode:not(.mobile) .grid-title a {
  color: #f5f5f5;
}
body.home.darkmode:not(.mobile) .grid-meta {
  color: #a8a8a8;
}
body.home.darkmode:not(.mobile) .grid-item:not(:first-child):hover {
  background: #2a2a2a;
}

/* --------------------------------------------------------------------------
   5) Widget daftar "Untuk Anda".
   -------------------------------------------------------------------------- */
body.home:not(.mobile) .main-box > .widget.list .list-item {
  padding: 12px 0;
  border-bottom: 1px solid #ececec;
}
body.home:not(.mobile) .main-box > .widget.list .list-image {
  width: 88px;
  padding-bottom: 88px;
  margin-right: 14px;
  border-radius: 6px;
}
body.home:not(.mobile) .main-box > .widget.list .list-title {
  font-size: 14.5px;
  line-height: 1.35;
}
body.home:not(.mobile) .main-box > .widget.list .list-meta {
  font-size: 11px;
  color: #666;
  margin-top: 4px;
}
body.home.darkmode:not(.mobile) .main-box > .widget.list .list-item {
  border-color: #343434;
}
body.home.darkmode:not(.mobile) .main-box > .widget.list .list-title a {
  color: #f5f5f5;
}
body.home.darkmode:not(.mobile) .main-box > .widget.list .list-meta {
  color: #a8a8a8;
}

/* --------------------------------------------------------------------------
   6) "Terkini": satu permukaan putih, baris terpisah garis, thumb 220x132.
   -------------------------------------------------------------------------- */
body.home .widget.article .widget-content {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 10px;
  overflow: hidden;
}
body.home .widget.article .article-item-box {
  margin: 0;
  border-radius: 0;
  background: #fff;
  border-bottom: 1px solid #ececec;
  transition: background-color .2s ease;
}
body.home .widget.article .article-item:last-child .article-item-box {
  border-bottom: 0;
}
body.home:not(.mobile) .widget.article .article-item-box {
  padding: 14px;
  gap: 16px;
  align-items: center;
}
body.home:not(.mobile) .widget.article .media-image {
  width: 220px;
  flex: 0 0 220px;
  height: 132px;
  padding-bottom: 0;
  border-radius: 6px;
}
body.home:not(.mobile) .widget.article .media-text {
  padding: 0;
}
body.home:not(.mobile) .widget.article .article-title {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -.005em;
}
body.home:not(.mobile) .widget.article .article-title a {
  color: #111;
}
body.home:not(.mobile) .widget.article .list-meta {
  font-size: 11.5px;
  color: #6b6b6b;
  margin-top: 8px;
}
body.home:not(.mobile) .widget.article .article-item-box:hover {
  background: #fafafa;
}
body.home .widget.article .list-category,
body.home .widget.article .list-category a {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 10.5px;
}
body.home .widget.article .list-meta > *:last-child:not(:first-child)::before {
  content: "·";
  margin: 0 6px;
  color: #bbb;
}
body.home.darkmode .widget.article .widget-content {
  background: #2a2a2a;
  border-color: #343434;
}
body.home.darkmode .widget.article .article-item-box {
  background: #2a2a2a;
  border-color: #343434;
}
body.home.darkmode:not(.mobile) .widget.article .article-title a {
  color: #f5f5f5;
}
body.home.darkmode:not(.mobile) .widget.article .list-meta {
  color: #a8a8a8;
}
body.home.darkmode .widget.article .list-category,
body.home.darkmode .widget.article .list-category a {
  color: #9db0ff;
}
body.home.darkmode:not(.mobile) .widget.article .article-item-box:hover {
  background: #2a2a2a;
}

/* --------------------------------------------------------------------------
   7) Sidebar: kartu putih, judul konsisten, jarak 16px.
   -------------------------------------------------------------------------- */
body.home .sidebar .widget {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}
body.home .sidebar .widget:last-child {
  margin-bottom: 0;
}
body.home .sidebar .widget-header {
  border-bottom: 1px solid #ececec;
  padding-bottom: 8px;
  margin-bottom: 12px;
}
body.home .sidebar .widget-title {
  position: relative;
  margin: 0;
  padding: 0 0 0 10px;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: .02em;
  color: var(--primary);
}
body.home .sidebar .widget-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  border-radius: 2px;
  background: var(--primary);
}
body.home .sidebar .popularpos-item,
body.home .sidebar .list-item {
  padding: 10px 0;
  border-bottom: 1px solid #ececec;
}
body.home .sidebar .popularpos-item:last-child,
body.home .sidebar .list-item:last-child {
  border-bottom: 0;
}
body.home .sidebar .list-counter {
  font-size: 30px;
  min-width: 40px;
  padding-right: 8px;
  color: #d6d6d6;
}
body.home .sidebar .popularpos .list-item:nth-child(-n+3) .list-counter {
  color: var(--primary);
}
body.home .sidebar .popularpos-title,
body.home .sidebar .list-title {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}
body.home .sidebar .list-meta {
  display: block;
  font-size: 10.5px;
  line-height: 1.5;
  color: #666;
  margin-top: 4px;
}
body.home .sidebar .list-meta > * {
  display: block;
}
body.home .sidebar .list-meta > *:last-child::before {
  content: none;
}
body.home .sidebar .list-image {
  width: 88px;
  padding-bottom: 88px;
  margin-right: 12px;
  border-radius: 6px;
}
body.home .sidebar .popularpos-image {
  width: 72px;
  padding-bottom: 72px;
  margin-right: 12px;
}
body.home.darkmode .sidebar .widget {
  background: #2a2a2a;
  border-color: #343434;
}
body.home.darkmode .sidebar .widget-header,
body.home.darkmode .sidebar .popularpos-item,
body.home.darkmode .sidebar .list-item {
  border-color: #343434;
}
body.home.darkmode .sidebar .widget-title {
  color: #fff;
}
body.home.darkmode .sidebar .widget-title::before {
  background: #9db0ff;
}
body.home.darkmode .sidebar .popularpos-title a,
body.home.darkmode .sidebar .list-title a {
  color: #f5f5f5;
}
body.home.darkmode .sidebar .list-meta {
  color: #a8a8a8;
}
body.home.darkmode .sidebar .list-counter {
  color: #4a4a4a;
}
body.home.darkmode .sidebar .popularpos .list-item:nth-child(-n+3) .list-counter {
  color: #9db0ff;
}

/* --------------------------------------------------------------------------
   8) Iklan teks (widget_text): tetap di posisi, diberi napas dan batas tinggi
   agar poster persegi tidak mendominasi alur baca. Tidak ada yang disembunyikan.
   -------------------------------------------------------------------------- */
body.home .main-box > .widget_text {
  margin: 6px 0 30px;
  text-align: center;
}
body.home .main-box > .widget_text img {
  display: inline-block;
  width: auto;
  max-width: 100%;
  max-height: 420px;
  height: auto;
  border-radius: 10px;
}

/* --------------------------------------------------------------------------
   9) Tombol infinite scroll dan indikator.
   -------------------------------------------------------------------------- */
body.home .status {
  margin-top: 18px;
}
body.home .trigger {
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: filter .2s ease, transform .1s ease;
}
body.home .trigger:hover {
  filter: brightness(1.12);
}
body.home .trigger:active {
  transform: translateY(1px);
}
body.home.darkmode .trigger {
  background: #9db0ff;
  color: #121212;
}

/* --------------------------------------------------------------------------
   10) Detail hover: zoom gambar lebih halus; warna tautan konsisten.
   -------------------------------------------------------------------------- */
body.home .media:hover .media-image img {
  transform: scale(1.04);
}
body.home .main-box a:hover {
  color: var(--primary);
}
body.home.darkmode .main-box a:hover {
  color: #9db0ff;
}

/* ==========================================================================
   MOBILE — body.home.mobile (stylesheet style-mobile.css)
   Satu kolom, target sentuh 44px, tipografi dinaikkan tanpa mengubah struktur.
   ========================================================================== */
body.home.mobile .main-box > .widget {
  margin-bottom: 24px;
}
body.home.mobile .main-box > .widget > .widget-header {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e7e7e7;
  padding-bottom: 8px;
  margin-bottom: 12px;
}
body.home.mobile .main-box > .widget > .widget-header .widget-title {
  position: relative;
  margin: 0;
  padding: 0 0 0 10px;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: .02em;
  color: var(--primary);
}
body.home.mobile .main-box > .widget > .widget-header .widget-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 4px;
  border-radius: 2px;
  background: var(--primary);
}
body.home.mobile.darkmode .main-box > .widget > .widget-header {
  border-color: #343434;
}
body.home.mobile.darkmode .main-box > .widget > .widget-header .widget-title {
  color: #fff;
}
body.home.mobile.darkmode .main-box > .widget > .widget-header .widget-title::before {
  background: #9db0ff;
}

/* Hero mobile: teks di bawah gambar, judul 20px, pil kategori navy. */
body.home.mobile .headline .headline-big .headline-image {
  padding-bottom: 56%;
  border-radius: 8px;
}
body.home.mobile .headline .headline-text {
  padding: 10px 0 0;
}
body.home.mobile .headline .headline-big .headline-title {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -.005em;
  margin-bottom: 6px;
}
body.home.mobile .headline .headline-meta {
  margin-top: 6px;
}
body.home.mobile .headline .headline-big .headline-category {
  background: var(--primary);
  color: #fff;
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  margin-right: 9px;
}
body.home.mobile .headline .headline-big .headline-date {
  font-size: 11px;
  color: #666;
}
body.home.mobile.darkmode .headline .headline-big .headline-category {
  background: #9db0ff;
  color: #121212;
}
body.home.mobile.darkmode .headline .headline-big .headline-title a {
  color: #f5f5f5;
}
body.home.mobile.darkmode .headline .headline-big .headline-date {
  color: #a8a8a8;
}

/* Pendamping hero 2x2. */
body.home.mobile .headline-small {
  margin: 0 -6px;
}
body.home.mobile .headline-small .headline-item {
  padding: 6px;
}
body.home.mobile .headline-small .headline-image {
  padding-bottom: 56%;
  border-radius: 6px;
  margin-bottom: 7px;
}
body.home.mobile .headline-small .headline-title {
  font-size: 13.5px;
  line-height: 1.35;
  font-weight: 600;
}
body.home.mobile .headline-small .headline-date {
  font-size: 11px;
  color: #666;
}
body.home.mobile .headline-small .headline-category {
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
body.home.mobile.darkmode .headline-small .headline-title a {
  color: #f5f5f5;
}
body.home.mobile.darkmode .headline-small .headline-date {
  color: #a8a8a8;
}
body.home.mobile.darkmode .headline-small .headline-category {
  color: #9db0ff;
}

/* Grid mobile: item utama penuh, empat item 2 kolom. */
body.home.mobile .grid .widget-content {
  margin: 0;
  justify-content: space-between;
}
body.home.mobile .grid-item {
  padding: 6px 0;
}
body.home.mobile .grid-item:not(:first-child) {
  width: calc(50% - 6px);
}
body.home.mobile .grid-item:first-child {
  width: 100%;
  padding: 0 0 12px;
  border-bottom: 1px solid #ececec;
  margin-bottom: 10px;
}
body.home.mobile .grid-item:first-child .grid-image {
  border-radius: 8px;
}
body.home.mobile .grid-title {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}
body.home.mobile .grid-meta {
  font-size: 11px;
  color: #666;
  margin-top: 4px;
}
body.home.mobile.darkmode .grid-item:first-child {
  border-color: #343434;
}
body.home.mobile.darkmode .grid-title a,
body.home.mobile.darkmode .list-title a {
  color: #f5f5f5;
}
body.home.mobile.darkmode .grid-meta,
body.home.mobile.darkmode .list-meta {
  color: #a8a8a8;
}

/* Daftar "Untuk Anda" mobile. */
body.home.mobile .main-box > .widget.list .list-item {
  padding: 10px 0;
}
body.home.mobile .main-box > .widget.list .list-image {
  width: 80px;
  padding-bottom: 80px;
  margin-right: 12px;
  border-radius: 6px;
}
body.home.mobile .main-box > .widget.list .list-title {
  font-size: 14px;
  line-height: 1.35;
}
body.home.mobile .main-box > .widget.list .list-meta {
  font-size: 11px;
  color: #666;
  margin-top: 4px;
}

/* Terkini mobile: satu permukaan, baris 112x84. */
body.home.mobile .widget.article .widget-content {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 10px;
  overflow: hidden;
}
body.home.mobile .widget.article .article-item-box {
  padding: 12px;
  border-bottom: 1px solid #ececec;
}
body.home.mobile .widget.article .media-image {
  width: 112px;
  flex: 0 0 112px;
  height: 84px;
  padding-bottom: 0;
  border-radius: 6px;
}
body.home.mobile .widget.article .media-text {
  padding: 0 0 0 12px;
}
body.home.mobile .widget.article .article-title {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
}
body.home.mobile .widget.article .article-title a {
  color: #111;
}
body.home.mobile .widget.article .list-meta {
  font-size: 11px;
  color: #6b6b6b;
  margin-top: 6px;
}
body.home.mobile.darkmode .widget.article .widget-content {
  background: #2a2a2a;
  border-color: #343434;
}
body.home.mobile.darkmode .widget.article .article-item-box {
  background: #2a2a2a;
  border-color: #343434;
}
body.home.mobile.darkmode .widget.article .article-title a {
  color: #f5f5f5;
}
body.home.mobile.darkmode .widget.article .list-meta {
  color: #a8a8a8;
}

/* Sidebar mobile. */
body.home.mobile .sidebar .widget {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
}
body.home.mobile .sidebar .widget:last-child {
  margin-bottom: 0;
}
body.home.mobile .sidebar .widget-header {
  border-bottom: 1px solid #ececec;
  padding-bottom: 8px;
  margin-bottom: 10px;
}
body.home.mobile .sidebar .widget-title {
  position: relative;
  margin: 0;
  padding: 0 0 0 10px;
  font-size: 16px;
  line-height: 1.25;
  color: var(--primary);
}
body.home.mobile .sidebar .widget-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  border-radius: 2px;
  background: var(--primary);
}
body.home.mobile .sidebar .popularpos-item,
body.home.mobile .sidebar .list-item {
  padding: 9px 0;
  border-bottom: 1px solid #ececec;
}
body.home.mobile .sidebar .popularpos-item:last-child,
body.home.mobile .sidebar .list-item:last-child {
  border-bottom: 0;
}
body.home.mobile .sidebar .list-counter {
  font-size: 28px;
  min-width: 38px;
  padding-right: 8px;
  color: #d6d6d6;
}
body.home.mobile .sidebar .popularpos .list-item:nth-child(-n+3) .list-counter {
  color: var(--primary);
}
body.home.mobile .sidebar .popularpos-title,
body.home.mobile .sidebar .list-title {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}
body.home.mobile .sidebar .list-meta {
  font-size: 10.5px;
  line-height: 1.5;
  color: #666;
  margin-top: 4px;
}
body.home.mobile.darkmode .sidebar .widget {
  background: #2a2a2a;
  border-color: #343434;
}
body.home.mobile.darkmode .sidebar .widget-header,
body.home.mobile.darkmode .sidebar .popularpos-item,
body.home.mobile.darkmode .sidebar .list-item {
  border-color: #343434;
}
body.home.mobile.darkmode .sidebar .widget-title {
  color: #fff;
}
body.home.mobile.darkmode .sidebar .widget-title::before {
  background: #9db0ff;
}
body.home.mobile.darkmode .sidebar .popularpos-title a,
body.home.mobile.darkmode .sidebar .list-title a {
  color: #f5f5f5;
}
body.home.mobile.darkmode .sidebar .list-counter {
  color: #4a4a4a;
}
body.home.mobile.darkmode .sidebar .popularpos .list-item:nth-child(-n+3) .list-counter {
  color: #9db0ff;
}

/* Iklan dan tombol mobile. */
body.home.mobile .main-box > .widget_text {
  margin: 4px 0 24px;
  text-align: center;
}
body.home.mobile .main-box > .widget_text img {
  display: inline-block;
  width: auto;
  max-width: 100%;
  max-height: 380px;
  height: auto;
  border-radius: 10px;
}
body.home.mobile .trigger {
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
body.home.mobile.darkmode .trigger {
  background: #9db0ff;
  color: #121212;
}

/* ==========================================================================
   QA2 — perbaikan kontras WCAG AA (kandidat, belum diterapkan).
   Konteks: audit axe 12 Nov 2026 menemukan meta #777 gagal 4.5:1
   (4.07:1 di atas #f4f4f4, 4.47:1 di atas #fff) dan meta mode gelap
   mobile tetap #777 di atas #202020/#2a2a2a (3.2–3.63:1).
   Perubahan: #777 -> #666 (9 aturan meta) + override meta gelap mobile.
   Tidak ada selector, ukuran, atau tata letak yang diubah.
   ========================================================================== */
body.home.mobile.darkmode .main-box > .widget.list .list-meta,
body.home.mobile.darkmode .sidebar .list-meta {
  color: #a8a8a8;
}
