/* ═══════════════════════════════════════════════════════════════════════════
   NexShop News — desain 2026
   Dimuat paling akhir di halaman berita. Menimpa lapisan lama tanpa mengubah
   markup yang dirender news-portal.js.
   ═══════════════════════════════════════════════════════════════════════════ */

body.news-page {
  --nws-primary: #0060AF;
  --nws-primary-dark: #004B8A;
  --nws-secondary: #00AEEF;
  --nws-canvas: #F4F7FB;
  --nws-ink: #0F172A;
  --nws-muted: #475569;
  --nws-line: #E2E8F0;

  /**
   * Selaraskan tangga token lama dengan palet 2026.
   *
   * news-portal.css memetakan --blue ke --nx-brand-600, sehingga satu definisi
   * di sini mengganti 59 pemakaian var(--blue) sekaligus: judul iklan, chip
   * kategori, tab aktif, nomor populer, tombol notifikasi, dan tautan footer.
   * Tanpa ini halaman berita memakai dua biru berbeda (lama #3157D5, baru #0060AF).
   */
  --nx-brand-50: #F0F6FC;
  --nx-brand-100: #E0EDF9;
  --nx-brand-200: #BFD8F2;
  --nx-brand-300: #8FBCE6;
  --nx-brand-400: #4A9AD4;
  --nx-brand-500: #0077C8;
  --nx-brand-600: #0060AF;
  --nx-brand-700: #004B8A;
  --nx-brand-800: #002F5C;
  --nx-brand-900: #001F3D;
  --nx-neutral-50: #F4F7FB;
  --nx-neutral-100: #EEF2F8;
  --nx-neutral-200: #E2E8F0;
  --nx-neutral-300: #CBD5E1;
  --nx-neutral-600: #475569;
  --nx-neutral-900: #0F172A;

  /**
   * Token turunan harus ditimpa langsung, bukan hanya tangga brand.
   *
   * `:root` sudah menghitung --nx-action: var(--nx-brand-600) menjadi #3157D5,
   * lalu mewariskan nilai jadi itu ke seluruh dokumen. Mengubah --nx-brand-600
   * di body tidak mengubah nilai yang sudah terwarisi; karena itu --nx-action
   * dan kawan-kawan didefinisikan ulang di sini.
   */
  --nx-action: #0060AF;
  --nx-action-hover: #004B8A;
  --nx-action-soft: #E0EDF9;
  --nx-on-action: #FFFFFF;
  --nx-focus: #00AEEF;
  --nx-text: #0F172A;
  --nx-text-secondary: #475569;
  --nx-text-muted: #475569;
  --nx-canvas: #F4F7FB;
  --nx-surface: #FFFFFF;
  --nx-surface-subtle: #FAFCFE;
  --nx-surface-muted: #EEF2F8;
  --nx-border: #E2E8F0;
  --nx-border-strong: #CBD5E1;

  /* Alias lama yang masih dipakai form langganan dan beberapa komponen. */
  --cyan: #0060AF;
  --cyan-2: #004B8A;
  --cyan-soft: #E0EDF9;

  background: var(--nws-canvas) !important;
  color: var(--nws-ink) !important;
}

/* Tab aktif: satu bahasa visual dengan chip kategori (biru solid, teks putih). */
body.news-page .nws-tab.is-active,
body.news-page .nws-tab[aria-selected="true"] {
  background: var(--nws-primary) !important;
  border-color: var(--nws-primary) !important;
  color: #fff !important;
}

/* Nomor populer memakai aksen sekunder, bukan biru yang sama dengan judul. */
body.news-page .nws-popular__rank {
  color: var(--nws-secondary) !important;
  font-variant-numeric: tabular-nums;
}

/* Ikon Phosphor: satu ukuran, satu warna, tidak ada ikon raksasa. */
body.news-page i.ph-duotone,
body.news-page i.ph {
  font-size: 1.05em;
  line-height: 1;
  color: inherit;
}
body.news-page .nws-search__btn i.ph-duotone { font-size: 16px; color: #fff; }
body.news-page .nws-push__btn i.ph-duotone { font-size: 16px; color: #fff; }
body.news-page .nws-form__submit i.ph-duotone { font-size: 16px; color: #fff; }

/* Form langganan: paksa biru aksi baru; sebagian aturan lama masih memakai biru #3157D5. */
body.news-page .nws-form__submit {
  background: var(--nws-primary) !important;
  border-color: var(--nws-primary) !important;
  color: #fff !important;
}
body.news-page .nws-form__submit:hover {
  background: var(--nws-primary-dark) !important;
}

/* Footer: tautan memakai biru aksi, bukan biru lama. */
body.news-page .nx-footer--news a:hover { color: var(--nws-primary) !important; }

body.news-page .nws-shell {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Masthead ─────────────────────────────────────────────────────────────── */

/* Kepala portal: identitas editorial, bukan header toko. */
body.news-page .nws-site-head,
body.article-shell .nws-site-head {
  background: #fff !important;
  border-bottom: 1px solid var(--nws-line) !important;
}
body.news-page .nws-site-head .top-in,
body.article-shell .nws-site-head .top-in {
  display: flex !important;
  align-items: center !important;
  gap: 28px !important;
  min-height: 72px !important;
  height: auto !important;
  padding-block: 10px !important;
}
body.news-page .nws-site-head__brand,
body.article-shell .nws-site-head__brand {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  gap: 9px !important;
  color: var(--nws-ink) !important;
  font-family: "Space Grotesk", Inter, sans-serif !important;
  font-size: 21px !important;
  font-weight: 700 !important;
  letter-spacing: -.035em !important;
  line-height: 1 !important;
  text-decoration: none !important;
}
body.news-page .nws-site-head__brand img,
body.article-shell .nws-site-head__brand img {
  width: 30px !important;
  height: 30px !important;
  object-fit: contain !important;
}
body.news-page .nws-site-head__brand em,
body.article-shell .nws-site-head__brand em {
  color: var(--nws-primary) !important;
  font-style: normal !important;
}
body.news-page .nws-site-head__brand b,
body.article-shell .nws-site-head__brand b {
  color: var(--nws-muted) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
}
body.news-page .nws-site-head__nav,
body.article-shell .nws-site-head__nav {
  display: flex !important;
  flex: 1 1 auto !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  min-width: 0 !important;
}
body.news-page .nws-site-head__nav a,
body.article-shell .nws-site-head__nav a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 38px !important;
  padding: 0 10px !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: var(--nws-muted) !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
body.news-page .nws-site-head__nav a:hover,
body.article-shell .nws-site-head__nav a:hover {
  background: var(--nws-canvas) !important;
  color: var(--nws-primary) !important;
}
body.news-page .nws-site-head__nav a[aria-current="page"],
body.article-shell .nws-site-head__nav a[aria-current="page"] {
  background: transparent !important;
  color: var(--nws-primary) !important;
  box-shadow: inset 0 -2px 0 var(--nws-primary) !important;
  font-weight: 700 !important;
}
body.news-page .nws-site-head__actions,
body.article-shell .nws-site-head__actions {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  gap: 8px !important;
  margin-left: 0 !important;
}
body.news-page .nws-site-head__actions .btn,
body.article-shell .nws-site-head__actions .btn {
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 14px !important;
  border-radius: 8px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
}
body.news-page .nws-site-head__actions .btn:not(.btn-ink),
body.article-shell .nws-site-head__actions .btn:not(.btn-ink) {
  background: transparent !important;
  border-color: var(--nws-line) !important;
  color: var(--nws-muted) !important;
}
body.news-page .nws-site-head__actions .btn:not(.btn-ink):hover,
body.article-shell .nws-site-head__actions .btn:not(.btn-ink):hover {
  border-color: var(--nws-primary) !important;
  color: var(--nws-primary) !important;
}

/* ── Pencarian ────────────────────────────────────────────────────────────── */

/* Panel pencarian berada di dalam header sticky dan tertutup sampai ikon
   kaca pembesar ditekan, supaya bilah atas tetap satu baris tipis. */
body.news-page .nws-search-toggle {
  display: grid !important;
  place-items: center !important;
  width: 38px !important;
  height: 38px !important;
  border: 1px solid var(--nws-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--nws-muted) !important;
  font-size: 17px !important;
  cursor: pointer;
}
body.news-page .nws-search-toggle:hover,
body.news-page .nws-search-toggle[aria-expanded="true"] {
  border-color: var(--nws-primary) !important;
  color: var(--nws-primary) !important;
}
body.news-page .nws-search-panel {
  background: #fff !important;
  border-top: 1px solid var(--nws-line) !important;
  padding: 10px 0 !important;
}
body.news-page .nws-search-panel__in {
  display: flex !important;
  justify-content: flex-end !important;
  /* redesign-v2.css memberi `.wrap` padding-bottom 96px di mobile — bukan
     untuk bilah header; tanpa ini panel cari menyisakan ruang kosong. */
  padding-bottom: 0 !important;
}
body.news-page .nws-search-panel .nws-search {
  width: min(480px, 100%) !important;
}
body.news-page .nws-search {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  min-height: 42px !important;
  padding: 0 6px 0 16px !important;
  background: var(--nws-canvas) !important;
  border: 1px solid var(--nws-line) !important;
  border-radius: 999px !important;
}
body.news-page .nws-search:focus-within {
  border-color: var(--nws-secondary) !important;
  box-shadow: 0 0 0 3px rgba(0, 174, 239, .14) !important;
}
body.news-page .nws-search__input {
  width: 210px !important;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  font-family: Segoe UI, sans-serif !important;
  font-size: 13px !important;
  color: var(--nws-ink) !important;
}

/**
 * Input di dalam pil pencarian tidak boleh punya garis sendiri.
 *
 * Aturan lama `.nws-search input` masih memberi border + background putih,
 * sehingga di dalam pil muncul kotak kedua (border dobel yang terlihat miring).
 */
body.news-page .nws-search .nws-search__input,
html body.news-page form.nws-search input.nws-search__input,
body.news-page input#nwsSearchInput {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}
body.news-page .nws-search__btn {
  display: grid !important;
  place-items: center !important;
  width: 32px !important;
  height: 32px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--nws-primary) !important;
  color: #fff !important;
  font-size: 16px !important;
}

/* ── Nav kategori ─────────────────────────────────────────────────────────── */

/* Satu bilah navigasi: filter kategori hidup di dalam header sticky,
   menggantikan nav link statis + baris pil terpisah. Pil dapat digeser
   mendatar; Indeks/Redaksi menempel di ujung baris yang sama. Gap header
   dirapatkan agar pil + ikon cari muat tanpa gulir di desktop. */
body.news-page .nws-site-head .top-in {
  gap: 20px !important;
}
body.news-page .nws-site-head__nav {
  flex: 1 1 0 !important;
  min-width: 0 !important;
}
body.news-page .nws-site-head .nws-nav__scroll {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 2px !important;
  width: 100% !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}
body.news-page .nws-site-head .nws-nav__scroll::-webkit-scrollbar { display: none !important; }
body.news-page .nws-site-head .cat-btn {
  flex: 0 0 auto !important;
  min-height: 32px !important;
  padding: 0 7px !important;
  font-size: 12px !important;
}
body.news-page .nws-site-head .nws-nav__util {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 8px;
  color: var(--nws-muted);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
body.news-page .nws-site-head .nws-nav__util:hover { color: var(--nws-primary); }
body.news-page .cat-btn {
  min-height: 36px !important;
  padding: 0 15px !important;
  border: 1px solid var(--nws-line) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--nws-muted) !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}
body.news-page .cat-btn:hover {
  border-color: rgba(0, 82, 156, .3) !important;
  color: var(--nws-primary) !important;
}
body.news-page .cat-btn.active,
body.news-page .cat-btn[aria-pressed="true"] {
  background: var(--nws-primary) !important;
  border-color: var(--nws-primary) !important;
  color: #fff !important;
}

/**
 * Samakan state aktif navigasi atas dengan beranda: teks biru + garis bawah,
 * bukan pil lavender. Dua bahasa visual untuk "aktif" membuat halaman terasa
 * seperti dua sistem berbeda.
 */
body.news-page header.top .nav a[aria-current="page"] {
  background: transparent !important;
  color: var(--nws-primary) !important;
  box-shadow: none !important;
  border-bottom: 2px solid var(--nws-primary) !important;
  border-radius: 0 !important;
  font-weight: 700 !important;
}

/* ── Ticker ───────────────────────────────────────────────────────────────── */

body.news-page .nws-ticker {
  background: var(--nws-primary) !important;
  color: #fff !important;
  padding: 0 !important;
}
body.news-page .nws-ticker__inner {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 40px !important;
}
body.news-page .nws-ticker__label {
  flex: 0 0 auto !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--nws-primary) !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}
body.news-page .nws-ticker__track {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  overflow: hidden !important;
  min-width: 0 !important;
}
body.news-page .nws-ticker__item {
  color: rgba(255, 255, 255, .92) !important;
  font-size: 12.5px !important;
  white-space: nowrap !important;
}
body.news-page .nws-ticker__sep {
  color: rgba(255, 255, 255, .45) !important;
}

/* Strip indeks: beri ruang di kanan agar item terakhir tidak menempel tepi. */
body.news-page .nws-market__list {
  padding-right: 18px !important;
  scroll-snap-type: x proximity;
  /* Tepi kanan memudar: menandakan strip bisa digeser, bukan terpotong. */
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
}
body.news-page .nws-market__item {
  scroll-snap-align: start;
}
body.news-page .nws-market__inner {
  gap: 12px !important;
}

/* ── Lead ─────────────────────────────────────────────────────────────────── */

body.news-page main#main-content {
  padding: 26px 0 48px !important;
}

body.news-page .nws-lead {
  display: grid !important;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) !important;
  gap: 20px !important;
  margin-bottom: 30px !important;
}

/* JS menandai paket utama dengan atribut hidden saat pembaca memfilter
   kategori. Aturan display:grid di atas mengalahkan [hidden] bawaan browser,
   jadi kotak kosong 45px tertinggal; paksa atribut itu menang. */
body.news-page .nws-lead[hidden] {
  display: none !important;
}

body.news-page .hero-article {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  position: relative !important;
  overflow: hidden !important;
  border-radius: 20px !important;
  background: var(--nws-primary-dark) !important;
  min-height: 380px !important;
  text-decoration: none !important;
}
body.news-page .hero-media {
  position: absolute !important;
  inset: 0 !important;
  margin: 0 !important;
}
body.news-page .hero-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
body.news-page .hero-media::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, rgba(0, 59, 115, .1) 0%, rgba(0, 40, 80, .9) 100%) !important;
}
body.news-page .hero-media__empty {
  background: linear-gradient(135deg, #004B8A, #0060AF) !important;
}
body.news-page .hero-article > :not(.hero-media) {
  position: relative !important;
  z-index: 1 !important;
}
body.news-page .hero-article .article-cat-badge {
  display: inline-block !important;
  margin: 24px 24px 0 !important;
  padding: 5px 11px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .16) !important;
  color: #fff !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  backdrop-filter: blur(6px) !important;
}
body.news-page .hero-title {
  margin: 14px 24px 8px !important;
  color: #fff !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: clamp(24px, 2.6vw, 34px) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -.02em !important;
}
body.news-page .hero-excerpt {
  margin: 0 24px 10px !important;
  color: rgba(255, 255, 255, .8) !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
}
body.news-page .hero-article .card-meta {
  margin: 0 24px 24px !important;
  color: rgba(255, 255, 255, .7) !important;
}

body.news-page .nws-lead__side {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  min-width: 0 !important;
}
body.news-page .nws-side-item {
  display: flex !important;
  gap: 12px !important;
  padding: 12px !important;
  background: #fff !important;
  border: 1px solid var(--nws-line) !important;
  border-radius: 14px !important;
  text-decoration: none !important;
  transition: border-color .15s ease, box-shadow .15s ease !important;
}
body.news-page .nws-side-item:hover {
  border-color: rgba(0, 82, 156, .3) !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, .08) !important;
}
body.news-page .nws-side-item__media {
  width: 96px !important;
  height: 72px !important;
  flex: 0 0 auto !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: var(--nws-canvas) !important;
}
body.news-page .nws-side-item__media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
body.news-page .nws-side-item__title {
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: var(--nws-ink) !important;
}
body.news-page .nws-side-item__meta {
  margin-top: 4px !important;
  font-size: 11px !important;
  color: var(--nws-muted) !important;
}

/* ── Grid artikel ─────────────────────────────────────────────────────────── */

body.news-page .nws-spotlight {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px !important;
  gap: 24px !important;
  align-items: start !important;
}

body.news-page .nws-section__title {
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: -.02em !important;
  color: var(--nws-ink) !important;
}
body.news-page .nws-section__count {
  font-size: 12px !important;
  color: var(--nws-muted) !important;
}

body.news-page .articles-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-top: 16px !important;
}

body.news-page .article-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 0 0 14px !important;
  background: #fff !important;
  border: 1px solid var(--nws-line) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  text-decoration: none !important;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease !important;
}
body.news-page .article-card:hover {
  border-color: rgba(0, 82, 156, .3) !important;
  box-shadow: 0 8px 24px -6px rgba(15, 23, 42, .12) !important;
  transform: translateY(-2px) !important;
}
body.news-page .article-card__media {
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
  background: var(--nws-canvas) !important;
}
body.news-page .article-card__media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
body.news-page .article-card__media--empty {
  display: grid !important;
  place-items: center !important;
  color: var(--nws-primary) !important;
  font-size: 26px !important;
}
body.news-page .article-card .article-cat-badge {
  align-self: flex-start !important;
  margin: 0 14px !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  background: rgba(0, 82, 156, .08) !important;
  color: var(--nws-primary) !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
}
body.news-page .article-card .card-title {
  margin: 0 14px !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: var(--nws-ink) !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
body.news-page .article-card .card-excerpt {
  margin: 0 14px !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: var(--nws-muted) !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
body.news-page .card-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  margin: auto 14px 0 !important;
  padding-top: 8px !important;
  font-size: 11px !important;
  color: var(--nws-muted) !important;
}
body.news-page .card-meta .dot {
  width: 3px !important;
  height: 3px !important;
  border-radius: 50% !important;
  background: currentColor !important;
  opacity: .5 !important;
}

/* ── Rail terpopuler ──────────────────────────────────────────────────────── */

body.news-page .nws-spotlight__rail {
  position: sticky !important;
  top: 76px !important;
  padding: 18px !important;
  background: #fff !important;
  border: 1px solid var(--nws-line) !important;
  border-radius: 16px !important;
}
body.news-page .nws-side__head {
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: var(--nws-primary) !important;
  margin-bottom: 12px !important;
}
body.news-page .nws-popular {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  counter-reset: none !important;
}
body.news-page .nws-popular li {
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
  padding: 14px 0 !important;
  border-bottom: 1px solid var(--nws-line) !important;
  counter-increment: none !important;
}
body.news-page .nws-popular li:last-child {
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}
body.news-page .nws-popular li::before {
  content: none !important;
  display: none !important;
}
body.news-page .nws-popular__rank {
  flex: 0 0 38px !important;
  min-width: 38px !important;
  padding-top: 1px !important;
  color: var(--nws-secondary) !important;
  font-family: "Space Grotesk", Inter, sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums !important;
  line-height: 1.1 !important;
  text-align: left !important;
}
body.news-page .nws-popular__item > span:last-child {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
body.news-page .nws-popular__title {
  color: var(--nws-ink) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  text-align: left !important;
}
body.news-page .nws-popular__meta {
  margin-top: 5px !important;
  color: var(--nws-muted) !important;
  font-size: 11.5px !important;
  line-height: 1.4 !important;
}
body.news-page .nws-side__head--tabs {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 8px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid var(--nws-line) !important;
}
body.news-page .nws-head__judul {
  margin: 0 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  line-height: 1.3 !important;
  text-transform: uppercase !important;
  color: var(--nws-primary) !important;
}
body.news-page .nws-tabs {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  gap: 4px !important;
  padding: 3px !important;
  border: 1px solid var(--nws-line) !important;
  border-radius: 999px !important;
  background: var(--nws-canvas) !important;
}
body.news-page .nws-tab {
  min-height: 28px !important;
  padding: 0 11px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--nws-muted) !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}
body.news-page .nws-tab:hover {
  color: var(--nws-primary) !important;
}
body.news-page .nws-tab.is-active,
body.news-page .nws-tab[aria-selected="true"] {
  background: var(--nws-primary) !important;
  color: #fff !important;
}

/* ── Pagination ───────────────────────────────────────────────────────────── */

body.news-page .pagination-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-top: 22px !important;
}
body.news-page .page-btn {
  min-width: 36px !important;
  min-height: 36px !important;
  padding: 0 12px !important;
  border: 1px solid var(--nws-line) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--nws-muted) !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
}
body.news-page .page-btn.active,
body.news-page .page-btn[aria-current="page"] {
  background: var(--nws-primary) !important;
  border-color: var(--nws-primary) !important;
  color: #fff !important;
}

/* ── Iklan & footer ───────────────────────────────────────────────────────── */

body.news-page .nws-ad {
  border: 1px dashed var(--nws-line) !important;
  border-radius: 16px !important;
  background: #fff !important;
}

body.news-page .nx-footer--news {
  background: #fff !important;
  border-top: 1px solid var(--nws-line) !important;
  color: var(--nws-muted) !important;
}

/* ── Responsif ────────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  body.news-page .nws-lead { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) !important; }
  body.news-page .nws-spotlight { grid-template-columns: minmax(0, 1fr) 280px !important; }
  body.news-page .articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 900px) {
  body.news-page .nws-site-head .top-in,
  body.article-shell .nws-site-head .top-in {
    gap: 16px !important;
    row-gap: 0 !important;
    min-height: 60px !important;
    flex-wrap: wrap !important;
    padding-bottom: 2px !important;
  }
  /* Di layar kecil navigasi situs tidak lagi disembunyikan: ia turun menjadi
     baris kedua yang bisa digeser, sehingga portal tetap bisa dijelajahi
     tanpa tombol burger. */
  body.news-page .nws-site-head__nav,
  body.article-shell .nws-site-head__nav {
    display: flex !important;
    order: 3 !important;
    flex: 1 0 100% !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    gap: 0 !important;
    min-height: 34px !important;
    scrollbar-width: none !important;
  }
  body.news-page .nws-site-head__nav::-webkit-scrollbar,
  body.article-shell .nws-site-head__nav::-webkit-scrollbar {
    display: none !important;
  }
  body.news-page .nws-site-head__nav a,
  body.article-shell .nws-site-head__nav a {
    flex: 0 0 auto !important;
    min-height: 34px !important;
    padding: 0 9px !important;
  }
  body.news-page .nws-site-head__actions,
  body.article-shell .nws-site-head__actions {
    margin-left: auto !important;
  }
}
@media (max-width: 520px) {
  body.news-page .nws-site-head__actions .btn:not(.btn-ink),
  body.article-shell .nws-site-head__actions .btn:not(.btn-ink) {
    display: none !important;
  }
  body.news-page .nws-site-head__brand,
  body.article-shell .nws-site-head__brand {
    font-size: 19px !important;
  }
}

@media (max-width: 900px) {
  body.news-page .nws-lead { grid-template-columns: 1fr !important; }
  body.news-page .hero-article { min-height: 320px !important; }
  body.news-page .nws-spotlight { grid-template-columns: 1fr !important; }
  body.news-page .nws-spotlight__rail {
    position: static !important;
    top: auto !important;
  }
}

@media (max-width: 640px) {
  body.news-page .nws-shell { padding: 0 16px !important; }
  /* Semua kategori tetap terjangkau: baris pil di header digeser mendatar,
     bukan dipotong seperti sebelumnya. */
  body.news-page .nws-nav__scroll { flex-wrap: nowrap !important; gap: 6px !important; }
  body.news-page .nws-nav__scroll .cat-btn {
    min-height: 32px !important;
    padding: 0 11px !important;
    font-size: 12.5px !important;
    flex: 0 0 auto !important;
  }
  /* Banner cookie dibuat ringkas agar tidak menutupi separuh layar berita. */
  body.news-page .nexshop-cookie-banner { padding: 14px !important; }
  body.news-page .nexshop-cookie-banner p {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
  }
  body.news-page .nexshop-cookie-actions { grid-template-columns: 1fr 1fr !important; }
  body.news-page .nexshop-cookie-button {
    min-height: 40px !important;
    font-size: 12.5px !important;
    width: auto !important;
  }
  body.news-page .nws-search-panel__in { justify-content: stretch !important; }
  body.news-page .nws-search-panel .nws-search { width: 100% !important; }
  body.news-page .nws-search__input { width: auto !important; }
  body.news-page .articles-grid { grid-template-columns: 1fr !important; }
  body.news-page .hero-article { min-height: 300px !important; }
  body.news-page .hero-article .card-meta { color: rgba(255, 255, 255, .88) !important; }
  body.news-page .hero-title { font-size: 22px !important; margin: 12px 18px 8px !important; }
  body.news-page .hero-excerpt { margin: 0 18px 10px !important; }
  body.news-page .hero-article .article-cat-badge { margin: 18px 18px 0 !important; }
  body.news-page .hero-article .card-meta { margin: 0 18px 18px !important; }
  /* Di ponsel isi ticker tidak lagi disembunyikan (dulu menyisakan bilah
     biru kosong); ia dapat digeser seperti strip indeks pasar. */
  body.news-page .nws-ticker__track {
    overflow-x: auto !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  body.news-page .nws-ticker__track::-webkit-scrollbar { display: none; }
  body.news-page .nws-ticker__item { flex: 0 0 auto; }
}

/* Kartu artikel konsisten seperti portal berita */
body.news-page .articles-grid{align-items:stretch!important}
body.news-page .article-card{display:flex!important;flex-direction:column!important;height:100%!important}
body.news-page .article-card__media{aspect-ratio:16/9!important;overflow:hidden!important;border-radius:12px!important;background:#EEF2F8!important}
body.news-page .article-card__media img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}
body.news-page .article-card .card-title{display:-webkit-box!important;-webkit-line-clamp:3!important;-webkit-box-orient:vertical!important;overflow:hidden!important;margin-top:8px!important}
body.news-page .article-card .card-excerpt{display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
body.news-page .article-card .card-meta{margin-top:auto!important}
body.news-page .nws-market{overflow:hidden!important}
body.news-page .nws-market__track{overflow-x:auto!important;scrollbar-width:none}
body.news-page .nws-market__track::-webkit-scrollbar{display:none}
body.news-page .nws-spotlight__rail{min-width:0!important;max-width:100%!important}
body.news-page .nws-shell{max-width:100%!important}
@media (max-width:640px){
  body.news-page .nws-market{overflow-x:auto!important}
  body.news-page .nws-market__item{flex:0 0 auto}
  body.news-page .nws-ticker__label{max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  body.news-page .article-card .card-title{overflow-wrap:anywhere!important;padding-right:2px!important}
  body.news-page .nws-shell{overflow-x:clip!important}
}

/* Header berita: CTA sejajar, tidak menumpuk */
body.news-page .top-cta{display:flex!important;flex-direction:row!important;align-items:center!important;gap:10px!important;flex-wrap:nowrap!important}
@media (max-width:1180px){ body.news-page .top-cta .btn:not(.btn-ink){display:none!important} }
/* Kartu hero: beri ruang byline, jangan terpotong */
body.news-page .hero-article{height:auto!important;min-height:420px!important;padding-bottom:16px!important}
body.news-page .hero-article .card-meta,body.news-page .hero-article .hero-meta{margin-bottom:0!important}

/* Paksa kontras judul & meta di atas gambar hero */
html body.news-page .hero-article .hero-title,
html body.news-page .hero-article h1,
html body.news-page .hero-article h2{
  color:#fff!important;
  text-shadow:0 2px 14px rgba(0,0,0,.55)!important;
}
html body.news-page .hero-article .hero-excerpt,
html body.news-page .hero-article p{color:rgba(255,255,255,.94)!important;text-shadow:0 1px 8px rgba(0,0,0,.45)!important}
html body.news-page .hero-article .card-meta,
html body.news-page .hero-article .hero-meta,
html body.news-page .hero-article time{color:rgba(255,255,255,.88)!important}
html body.news-page .hero-article .card-meta{padding-left:0!important;margin-left:0!important;overflow:visible!important}
html body.news-page .hero-article::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,20,45,.10) 0%,rgba(0,20,45,.55) 55%,rgba(0,20,45,.92) 100%);pointer-events:none;z-index:0}
html body.news-page .hero-article > :not(.hero-media){position:relative;z-index:1}
html body.news-page .hero-article span:not(.article-cat-badge),
html body.news-page .hero-article small,
html body.news-page .hero-article b{color:rgba(255,255,255,.9)!important}

/* Kontainer berita di tengah (file ini dimuat setelah news-portal.css) */
body.news-page .nws-shell{max-width:1200px!important;margin-left:auto!important;margin-right:auto!important;padding-left:24px!important;padding-right:24px!important}

/* Kredit gambar + perapian section kategori */
.nws-credit{display:block;font-size:10.5px;color:#5F6B7F;margin:4px 0 0}
.nws-cat-lead .nws-credit{margin-bottom:2px}
.nws-cat-section{padding-top:6px}
.nws-cat-head h2{font-size:19px}
.nws-cat-lead h3{font-size:21px;letter-spacing:-.01em}
.nws-cat-item b{font-size:13.5px}

/* Judul berita tidak berubah hitam saat kursor diarahkan; aksen biru tipis
   memberi umpan balik tanpa mengganggu keterbacaan. */
body.news-page .article-card:hover .card-title,
body.news-page .article-card:hover h3,
body.news-page .hero-article:hover .hero-title,
body.news-page .nws-cat-lead:hover h3,
body.news-page .nws-cat-item:hover b,
body.news-page .nws-side-item:hover .nws-side-item__title,
body.news-page .nws-popular__item:hover .nws-popular__title,
body.news-page .nws-editor__kartu:hover .nws-editor__judul,
body.news-page .nws-ps5pc__kartu:hover .nws-ps5pc__judul,
body.news-page .idx-item__judul:hover {
  color: var(--nws-primary) !important;
  text-decoration: none !important;
}
body.news-page .hero-article:hover .hero-title {
  color: #fff !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(255, 255, 255, .65) !important;
  text-underline-offset: 4px !important;
}
body.news-page .nws-popular__item:hover .nws-popular__title {
  color: var(--nws-primary) !important;
}

/* Cegah teks keluar dari kotaknya di sidebar berita */
.nws-popular__item{min-width:0}
.nws-popular__rank{flex:0 0 38px!important;min-width:38px!important;width:38px!important;text-align:left}
.nws-popular__title{min-width:0;overflow-wrap:anywhere}
.nws-market__list{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}
.nws-market__list::-webkit-scrollbar{display:none}
.nws-market__list:focus-visible{outline:2px solid var(--nx-focus, #2563EB);outline-offset:2px;border-radius:6px}

/* Perapian padding portal: aturan ini dimuat terakhir agar menang atas
   override lama yang memaksa gutter 24px di layar kecil. */
body.news-page .nws-market__list {
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

body.news-page .nws-spotlight__rail {
  grid-template-columns: minmax(0, 1fr) !important;
}

body.news-page .nws-spotlight__rail > * {
  min-width: 0 !important;
  max-width: 100% !important;
}

body.news-page .nws-side__head--tabs {
  flex-wrap: nowrap !important;
  gap: 10px !important;
}

body.news-page .nws-tabs {
  flex-wrap: nowrap !important;
  max-width: 100% !important;
}

body.news-page .nws-ad__rumah,
body.news-page .nws-ad__link {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 640px) {
  body.news-page .nws-shell {
    padding-inline: 16px !important;
  }

  body.news-page .nws-market {
    overflow: visible !important;
  }

  body.news-page .nws-market__inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px !important;
    padding-block: 10px;
  }

  body.news-page .nws-market__list {
    width: 100%;
    max-width: 100%;
    padding-right: 0 !important;
  }
}

body.news-page .hero-article {
  --hero-gutter: clamp(22px, 2.4vw, 32px);
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
}
body.news-page .hero-article .article-cat-badge {
  margin: var(--hero-gutter) var(--hero-gutter) 0 !important;
}
body.news-page .hero-title {
  margin: 14px var(--hero-gutter) 8px !important;
}
body.news-page .hero-excerpt {
  margin: 0 var(--hero-gutter) 10px !important;
}
body.news-page .hero-article .card-meta {
  margin: 0 var(--hero-gutter) var(--hero-gutter) !important;
}
body.news-page .hero-media img,
body.news-page .article-card__media img,
body.news-page .nws-side-item__media img,
body.news-page .nws-editor__img,
body.news-page .nws-cat-lead__media img,
body.news-page .nws-cat-item__media img,
body.news-page .nws-ps5pc__img {
  object-fit: contain !important;
  object-position: 50% 50% !important;
}
body.news-page .hero-media img { background: #111827 !important; }
body.news-page .hero-media {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
}

@media (max-width: 640px) {
  html body.news-page .hero-article {
    min-height: 0 !important;
    padding-bottom: 0 !important;
    background: #fff !important;
    border: 1px solid var(--nws-line) !important;
    border-radius: 16px !important;
  }
  html body.news-page .hero-media {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    border-radius: 0 !important;
  }
  html body.news-page .hero-media::after,
  html body.news-page .hero-article::after {
    display: none !important;
  }
  html body.news-page .hero-article > :not(.hero-media) {
    margin-right: 16px !important;
    margin-left: 16px !important;
  }
  html body.news-page .hero-article .article-cat-badge {
    align-self: flex-start;
    margin: 16px 0 0 !important;
  }
  html body.news-page .hero-title {
    margin: 10px 0 8px !important;
    color: var(--nws-ink) !important;
    font-size: 22px !important;
    text-shadow: none !important;
  }
  html body.news-page .hero-excerpt {
    margin: 0 0 12px !important;
    color: var(--nws-muted) !important;
    text-shadow: none !important;
  }
  html body.news-page .hero-article .card-meta,
  html body.news-page .hero-article time {
    margin: 0 0 16px !important;
    padding: 0 !important;
    color: var(--nws-muted) !important;
  }
  html body.news-page .hero-article p,
  html body.news-page .hero-article span:not(.article-cat-badge),
  html body.news-page .hero-article small,
  html body.news-page .hero-article b {
    color: var(--nws-muted) !important;
    text-shadow: none !important;
  }
}
