/* Bebii Blog — lightweight frontend (public + admin) */

:root {
  /* Palet lebih lembut (abu slate), mirip portal berita modern — kurang “hitam pekat”. */
  --bg: #f8fafc;
  --surface: #fff;
  --text: #334155;
  /* Cukup gelap untuk teks sekunder di atas --surface / --bg (WCAG AA). */
  --muted: #475569;
  --border: #e2e8f0;
  --accent: #c62828;
  --accent-hover: #b71c1c;
  /* Tautan di badan artikel (timpa warna biru cerah dari konten editor). */
  --article-link: #9a1818;
  --article-link-hover: #7a1212;
  --nav-blue: #c62828;
  --nav-active: #e65100;
  --danger: #b91c1c;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue",
    sans-serif;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  /* Offset scroll anchor (TOC, #heading) di bawah header sticky */
  scroll-padding-top: 5.75rem;
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 4.75rem;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent);
  text-decoration: underline;
}

code {
  font-size: 0.9em;
  background: #eee;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* ——— Public layout (Readers-style header) ——— */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header--news {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  align-self: flex-start;
  background: var(--bg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header-top {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-brand-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.32rem;
  flex: 0 1 auto;
  min-width: 0;
}

.header-brand-group .menu-toggle {
  flex-shrink: 0;
}

.header-brand-group .site-logo {
  min-width: 0;
  flex-shrink: 0;
}

/* Blok kanan header: tanggal (detik) + sosial + RSS + search — dorong ke ujung kanan */
.header-meta-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
  flex-shrink: 0;
}

/* Ikon sosial + RSS + form pencarian dalam satu baris di kanan */
.header-social-search {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem 0.65rem;
  justify-content: flex-end;
  min-width: 0;
}

.header-top-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.5rem;
  border: none;
  background: transparent;
  font: inherit;
  color: var(--nav-blue);
  cursor: pointer;
  border-radius: 4px;
}
.menu-toggle:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.menu-toggle-bars {
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--nav-blue);
  box-shadow: 0 5px 0 var(--nav-blue), 0 -5px 0 var(--nav-blue);
  border-radius: 1px;
}

.site-logo--news {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}
.site-logo--news:hover {
  text-decoration: none;
  opacity: 0.88;
  color: var(--text);
}

/* Nama situs (tanpa file gambar / fallback saat img error): satu baris, aksen huruf pertama */
.site-logo--news .site-logo-text {
  display: inline-block;
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--nav-blue);
  max-width: min(26rem, 70vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
/* Jangan pakai ::first-letter pada .site-logo-text--fallback saat gambar OK — bisa tetap terpainting di atas img */
.site-logo--news .site-logo-text:not(.site-logo-text--fallback)::first-letter,
.site-logo--news .site-logo-img-wrap.site-logo-img-wrap--image-failed .site-logo-text.site-logo-text--fallback::first-letter {
  color: var(--surface);
  font-weight: 900;
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    color-mix(in srgb, var(--accent) 75%, var(--nav-blue) 25%) 100%
  );
  padding: 0.06em 0.14em 0.04em;
  margin-right: 0.06em;
  border-radius: 0.22em;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--text) 12%, transparent);
}

.site-logo.site-logo--news {
  flex: 0 0 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding-right: 0.28rem;
}

.site-logo-img-wrap {
  display: inline-flex;
  align-items: center;
  position: relative;
  flex-shrink: 0;
  min-height: 2.65rem;
  height: 2.65rem;
  width: min(268px, 54vw);
  max-width: min(268px, 54vw);
  overflow: visible;
}

.site-logo-img-wrap--footer {
  min-height: 2rem;
  height: 2rem;
  max-width: min(190px, 52vw);
}

/* Logo gambar: teks fallback di bawah img; disembunyikan total jika gambar sukses (kelas --has-image dari JS) */
.site-logo--news .site-logo-img-wrap .site-logo-text.site-logo-text--fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--nav-blue);
  max-width: min(14rem, 46vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.site-logo--news .site-logo-img-wrap.site-logo-img-wrap--has-image .site-logo-text.site-logo-text--fallback {
  display: none !important;
}
.site-logo--news .site-logo-img-wrap.site-logo-img-wrap--image-failed .site-logo-text.site-logo-text--fallback {
  display: inline-flex !important;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  position: static;
  inset: auto;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  padding-right: 0.12rem;
}

/* Saat gambar gagal, jangan pakai lebar box gambar tetap; biarkan teks logo penuh */
.site-logo--news .site-logo-img-wrap.site-logo-img-wrap--image-failed {
  width: auto;
  max-width: min(34rem, 72vw);
}

/* Gambar rata kiri dalam kotak (bukan center), supaya selaras menu & tidak memperlihatkan area fallback di kiri */
.site-logo--news .site-logo-img-wrap .site-logo-img {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: auto;
  z-index: 1;
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: left center;
  background: var(--bg);
}
.site-logo--news .site-logo-img.site-logo-img--pending {
  opacity: 0;
}
.site-logo--news .site-logo-img.site-logo-img--ready {
  opacity: 1;
  transition: opacity 0.15s ease;
}

.footer-logo .site-logo-text {
  font-size: 1.52rem;
  max-width: min(12rem, 70vw);
}

/* Di cluster kanan (sosial + search): jangan meregang memenuhi tengah halaman */
.header-social-search .header-search {
  flex: 0 1 auto;
  min-width: 0;
  width: min(22rem, 42vw);
  max-width: min(22rem, 100%);
}

.header-search {
  flex: 1 1 0;
  min-width: 0;
  max-width: min(100%, 28rem);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.75rem 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.header-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--muted);
  line-height: 0;
}

.header-search-icon-svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.header-search input {
  flex: 1;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  min-width: 0;
}
.header-search input:focus {
  outline: none;
}

/* Tombol submit di dalam pill search: tanpa border/kotak default browser */
.header-search-submit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  margin: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 999px;
  line-height: 0;
  appearance: none;
  -webkit-appearance: none;
}
.header-search-submit:hover {
  color: var(--nav-blue);
  background: color-mix(in srgb, var(--border) 40%, transparent);
}
.header-search-submit:focus {
  outline: none;
}
.header-search-submit:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.header-search-submit .header-search-icon-svg {
  width: 1.2rem;
  height: 1.2rem;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-decoration: none;
}
.social-btn:hover {
  opacity: 0.9;
  text-decoration: none;
  transform: scale(1.05);
}
.social-fb {
  background: #1877f2;
}
.social-x {
  background: #111;
}
.social-ig {
  background: linear-gradient(180deg, #833ab4, #fd1d1d, #fcb045);
}
.social-yt {
  background: #f00;
}
.social-rss {
  background: #ff9800;
}

.social-btn svg {
  display: block;
  width: 16px;
  height: 16px;
}

/* Readers-like sizing tweaks */
.social-fb svg,
.social-ig svg {
  width: 18px;
  height: 18px;
}

.social-yt svg {
  width: 18px;
  height: 18px;
  margin-left: 0px;
}

.header-nav-strip {
  background: var(--nav-blue);
}

.header-nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

.header-nav-primary {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  min-height: 44px;
}

.header-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.header-nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: #fff;
}

.header-nav-link.is-active {
  /* Putih pada --nav-blue memenuhi kontras; indikator aktif tetap di border bawah. */
  color: #fff;
  border-bottom-color: var(--nav-active);
}

.header-nav-scroll {
  position: relative;
  display: flex;
  flex: 1;
  align-items: stretch;
  min-width: 0;
}

.header-nav-cats {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}

.header-nav-cats::-webkit-scrollbar {
  display: none;
}

.header-nav-scroll-next {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 2.65rem;
  min-width: 2.65rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  z-index: 2;
  color: #fff;
  cursor: pointer;
  background: none;
  background-color: transparent;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease;
}

.header-nav-scroll-next:hover svg {
  opacity: 1;
}

.header-nav-scroll-next:active {
  transform: scale(0.96);
}

.header-nav-scroll-next:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.header-nav-scroll-next svg {
  display: block;
  flex-shrink: 0;
  opacity: 0.9;
  transition: opacity 0.15s ease;
}

@media (max-width: 900px) {
  .header-nav-primary .header-nav-link:not(.header-nav-link--home) {
    padding: 0.5rem 0.5rem;
    font-size: 0.72rem;
  }

  .header-nav-primary .header-nav-link--home {
    padding: 0.5rem 0.6rem;
    font-size: 0.72rem;
  }

  .header-nav-scroll-next {
    width: 2.4rem;
    min-width: 2.4rem;
  }

  .header-nav-scroll-next svg {
    width: 16px;
    height: 16px;
  }
}

.offcanvas-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.35);
}

.offcanvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 210;
  width: min(92vw, 360px);
  height: 100%;
  overflow-y: auto;
  color: var(--text);
  background: var(--surface);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}

.offcanvas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.offcanvas-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.offcanvas-close {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  border-radius: 4px;
}

.offcanvas-close:hover {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.offcanvas-search {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.offcanvas-search input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  caret-color: var(--accent);
}

.offcanvas-search input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.offcanvas-search input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 22%, transparent);
}

.offcanvas-section {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.offcanvas-heading {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.offcanvas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.75rem;
  font-size: 0.9rem;
}
.offcanvas-grid a {
  color: var(--text);
}
.offcanvas-grid a:hover {
  color: var(--nav-blue);
}

.offcanvas-foot {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  margin: 0;
  color: var(--muted);
  background: var(--surface);
}

body.offcanvas-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .header-top-inner {
    flex-wrap: nowrap;
    gap: 0.5rem 0.65rem;
    align-items: center;
  }

  .header-brand-group {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.25rem;
  }

  .site-logo.site-logo--news {
    min-width: 0;
    padding-right: 0.2rem;
  }

  .menu-toggle {
    flex-shrink: 0;
  }

  /* Meta tidak di-flex-shrink agar overflow baris terdeteksi oleh JS (sembunyikan ikon) */
  .header-meta-group {
    flex-shrink: 0;
  }

  .header-social-search {
    flex: 0 1 auto;
    min-width: 0;
    justify-content: flex-end;
  }

  .header-social {
    flex-wrap: nowrap;
  }

  /* Hanya search bar yang disembunyikan di mobile; ikon sosial + RSS tetap */
  .header-top-inner .header-search,
  .site-layout-detik .header-search {
    display: none !important;
  }

  .site-logo--news {
    font-size: 1.2rem;
  }

  .site-logo--news .site-logo-text {
    font-size: 1.1rem;
    max-width: min(18rem, 82vw);
  }

  .site-logo-img-wrap {
    flex-shrink: 0;
    min-height: 2.35rem;
    height: 2.35rem;
    width: min(230px, 62vw);
    max-width: min(230px, 62vw);
  }

  .site-logo--news .site-logo-img-wrap.site-logo-img-wrap--image-failed {
    max-width: 78vw;
  }
}

.site-main {
  flex: 1;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

@media (max-width: 559px) {
  .site-main {
    padding: 0.75rem 1rem 2.5rem;
  }
}

.site-footer {
  flex-shrink: 0;
  width: 100%;
  align-self: stretch;
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer--extended {
  flex-shrink: 0;
  width: 100%;
  align-self: stretch;
  border-top: 3px solid var(--nav-blue);
  background: var(--surface);
  text-align: left;
  /* Jangan contain layout — bisa memperlambat/mengisolasi paint; footer harus stabil seperti header. */
  contain: style;
}

.site-footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem 1.25rem 2.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: minmax(200px, 1.1fr) minmax(180px, 1fr);
    gap: 2rem 2.5rem;
    align-items: start;
  }
}

.footer-col--brand .footer-logo {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-subhead {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.footer-social .social-btn {
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.footer-heading {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.footer-page-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-page-list a {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
}

.footer-page-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Halaman kebijakan / syarat */
.page-legal {
  max-width: 640px;
  margin: 0 auto;
}

.page-legal-head h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-legal-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-legal-section {
  margin-bottom: 1.35rem;
}

.page-legal-section h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.page-legal-section p {
  margin: 0;
  line-height: 1.65;
  color: var(--text);
}

.page-legal-note {
  margin-top: 2rem;
  font-size: 0.9rem;
}

.page-legal-note a {
  color: var(--accent);
}

.public-root {
  min-height: 120px;
}

@media (max-width: 559px) {
  .public-root {
    min-height: 64px;
  }
}

/* Beranda: kolom utama + sidebar Populer (readers.id) */
.blog-home-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 899px) {
  .blog-home-layout {
    gap: 1rem;
  }

  .page-home .blog-home-feature-block {
    margin-bottom: 1rem;
  }
}

@media (min-width: 900px) {
  .blog-home-layout {
    grid-template-columns: 1fr min(320px, 32%);
  }
}

.blog-home-main {
  min-width: 0;
}

/* Sel setinggi kolom utama agar position:sticky punya area scroll (grid + align-items:start membuat aside pendek). */
.blog-popular-wrap {
  min-width: 0;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  /* Satu kartu untuk kedua blok (Populer + Terkini), bukan dua kartu terpisah. */
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 0.65rem 1rem;
  box-shadow: var(--shadow);
  overflow-anchor: none;
  width: 100%;
  position: sticky;
  top: 1rem;
  /* Jangan batasi tinggi di desktop: bagian Terkini tidak boleh terpotong; saat scroll ke bawah
     seluruh kartu (Populer + Terkini) tetap mengikuti alur halaman hingga sebelum footer. */
  overflow: visible;
  overscroll-behavior: contain;
}

/* Beranda: kunci tinggi perkiraan skeleton + isi agar CLS kecil saat data mengganti shimmer. */
.page-home .blog-popular-wrap {
  min-height: 28rem;
  box-sizing: border-box;
}

.blog-popular {
  position: relative;
  flex: none;
  min-width: 0;
  align-self: stretch;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0 0.45rem;
  box-shadow: none;
}

/* Terkini di bawah Populer (satu kolom); pemisah tipis antar blok. */
.blog-popular--latest {
  border-left: none;
  margin-left: 0;
  padding-left: 0.45rem;
  padding-top: 0.75rem;
  margin-top: 0.35rem;
  border-top: 1px solid var(--border);
}

/* Tinggi kartu mengikuti isi (judul + 5 item). Jangan pakai min-height besar — itu membuat
   “gap” kosong di bawah dan sering memicu CLS di Lighthouse. */

@media (max-width: 899px) {
  /* CLS guard (mobile): pastikan footer tidak masuk viewport saat initial load.
     Beranda merender konten async (feed + populer) yang membuat tinggi halaman bertambah;
     jika footer sudah terlihat, Lighthouse akan menganggap pergeseran footer sebagai CLS. */
  .page-home .blog-home-layout {
    min-height: 100vh;
  }

  .blog-popular-wrap {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
    margin-top: 1.25rem;
  }

  .page-topic .blog-popular-wrap {
    margin-top: 1rem;
  }

  .page-home .blog-popular-wrap {
    min-height: 24rem;
  }
  .blog-popular {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
  }
}

.blog-popular-heading {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
}

.blog-popular-heading::before {
  content: "";
  display: block;
  width: 4px;
  height: 1.1em;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-hover));
  flex-shrink: 0;
}

.blog-popular-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  line-height: 1;
  color: var(--accent);
}

.blog-popular-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-popular-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: blog-pop;
  /* Satu kolom: satu entri per baris, tanpa kartu per item. */
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: stretch;
}

.blog-popular-item {
  counter-increment: blog-pop;
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  padding: 0.2rem 0;
  border: none;
  border-radius: 0;
  background: transparent;
  min-width: 0;
}

.blog-popular-item::before {
  content: counter(blog-pop);
  flex: 0 0 1.35rem;
  font-size: 1.1rem;
  font-weight: 750;
  line-height: 1.2;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.blog-popular-link {
  display: block;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.blog-popular-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
  font-size: 0.875rem;
  font-weight: 750;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 0.2rem;
  transition: color 0.15s ease;
}

.blog-popular-title:hover {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
  color: var(--accent);
}

.blog-popular-link:focus-visible .blog-popular-title {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
  color: var(--accent);
}

.blog-popular-item:has(.blog-popular-title:hover) {
  position: relative;
  z-index: 2;
}

.blog-popular-meta {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: none;
}

@media (max-width: 420px) {
  .blog-popular-list {
    gap: 0.3rem;
  }

  .blog-popular-item {
    padding: 0.15rem 0;
    gap: 0.35rem;
  }

  .blog-popular-title {
    font-size: 0.8125rem;
    line-height: 1.28;
  }

  .blog-popular-meta {
    font-size: 0.65rem;
  }

  .blog-popular-item::before {
    font-size: 1rem;
    flex: 0 0 1.15rem;
  }
}

.blog-popular-list--skeleton {
  pointer-events: none;
}

/* Meniru layout .blog-popular-item (angka + judul 2 baris + meta) agar tinggi ~sama dengan konten asli → CLS kecil. */
.blog-popular-skeleton-item {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.2rem 0;
  border: none;
  border-radius: 0;
  background: transparent;
  min-height: calc(
    0.2rem * 2 + (0.875rem * 1.3 * 2) + 0.2rem + (0.68rem * 1.35)
  );
}

.blog-popular-skeleton-rank {
  flex: 0 0 1.35rem;
  width: 1.35rem;
  height: 1.25rem;
  margin-top: 0.12rem;
  border-radius: 6px;
  background: linear-gradient(
    110deg,
    color-mix(in srgb, var(--surface) 82%, var(--text) 18%) 0%,
    color-mix(in srgb, var(--surface) 94%, var(--bg) 6%) 45%,
    color-mix(in srgb, var(--surface) 82%, var(--text) 18%) 90%
  );
  background-size: 220% 100%;
  animation: blog-popular-skeleton-shimmer 1.15s ease-in-out infinite;
}

.blog-popular-skeleton-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.blog-popular-skeleton-line {
  display: block;
  border-radius: 4px;
  background: linear-gradient(
    110deg,
    color-mix(in srgb, var(--surface) 86%, var(--text) 14%) 0%,
    color-mix(in srgb, var(--surface) 96%, var(--bg) 4%) 45%,
    color-mix(in srgb, var(--surface) 86%, var(--text) 14%) 90%
  );
  background-size: 220% 100%;
  animation: blog-popular-skeleton-shimmer 1.15s ease-in-out infinite;
}

.blog-popular-skeleton-line--title {
  height: calc(0.875rem * 1.3);
  max-width: 100%;
}

.blog-popular-skeleton-body .blog-popular-skeleton-line--title:nth-child(2) {
  max-width: 88%;
}

.blog-popular-skeleton-line--meta {
  height: calc(0.68rem * 1.35);
  max-width: 58%;
  margin-top: 0.06rem;
  border-radius: 3px;
  opacity: 0.92;
}

@keyframes blog-popular-skeleton-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-popular-skeleton-rank,
  .blog-popular-skeleton-line {
    animation: none;
  }

  .blog-popular-skeleton-rank {
    background: color-mix(in srgb, var(--surface) 82%, var(--text) 18%);
  }

  .blog-popular-skeleton-line {
    background: color-mix(in srgb, var(--surface) 86%, var(--text) 14%);
  }
}

.muted {
  color: var(--muted);
}

.notice {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.notice-info {
  background: #fff5f5;
  border: 1px solid #fecaca;
  color: #7f1d1d;
}

.notice-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #7f1d1d;
}

.notice-success {
  background: #ecfdf5;
  border: 1px solid #86efac;
  color: #166534;
}

.post-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}

.post-card-title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}
.post-card-title a {
  color: var(--text);
}
.post-card-title a:hover {
  color: var(--accent);
}

.post-card-meta {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.post-card-excerpt {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.post-single-header h1 {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
  line-height: 1.25;
}

.draft-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.15rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 600;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.post-single-meta {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.post-body {
  font-size: 1rem;
  max-width: 65ch;
}

.post-body img {
  max-width: 100%;
  height: auto;
}

.back-link {
  margin-top: 2rem;
}

/* ——— Beranda: carousel unggulan + tag populer (readers.id) ——— */

.blog-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.blog-home-feature-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

/* Sentinel placeholders (used for lazy sections). */
.blog-post-more-sentinel {
  height: 1px;
}

.blog-otherlatest {
  margin: 1.5rem 0 0;
}

.blog-otherlatest-head {
  margin-bottom: 0.65rem;
}

.blog-otherlatest-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.75rem;
  align-items: start;
}

.blog-otherlatest-list > li {
  min-width: 0;
}

/* Tetap 2 kolom di layar sangat sempit (sama seperti blog-mostviewed / rekomendasi); perkecil teks & jarak. */
@media (max-width: 420px) {
  .blog-otherlatest-list {
    gap: 0.38rem 0.45rem;
  }

  .blog-otherlatest-link {
    padding: 0.45rem 0.12rem;
  }

  .blog-otherlatest-title {
    font-size: 0.8125rem;
    line-height: 1.3;
  }

  .blog-otherlatest-time {
    font-size: 0.7rem;
    margin-top: 0.1rem;
  }
}

@media (min-width: 720px) {
  .blog-otherlatest-list {
    gap: 0.45rem 1.25rem;
  }
}

.blog-otherlatest-link {
  display: block;
  padding: 0.55rem 0.15rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.blog-otherlatest-link:hover .blog-otherlatest-title {
  color: var(--accent);
  text-decoration: none;
}

.blog-otherlatest-link:hover {
  background: rgba(15, 23, 42, 0.035);
}

.blog-otherlatest-title {
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-otherlatest-time {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.blog-mostviewed {
  margin: 1.5rem 0 0;
}

.blog-mostviewed-head {
  margin-bottom: 0.65rem;
}

.blog-mostviewed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (min-width: 860px) {
  .blog-mostviewed-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.blog-mostviewed-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
}

.blog-mostviewed-media {
  background: var(--bg);
}

.blog-mostviewed-media img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.blog-mostviewed-body {
  padding: 0.7rem 0.75rem 0.8rem;
}

.blog-mostviewed-title {
  font-weight: 750;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-mostviewed-card:hover .blog-mostviewed-title {
  color: var(--accent);
  text-decoration: none;
}

.blog-feature-carousel {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #0d1b2a;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
  max-height: min(52vh, 420px);
  min-height: 220px;
  touch-action: pan-y;
}

.blog-feature-viewport {
  overflow: hidden;
  width: 100%;
}

.blog-feature-track {
  display: flex;
  width: 100%;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.blog-feature-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-height: min(52vh, 400px);
  max-height: min(52vh, 420px);
}

.blog-feature-slide-media {
  position: absolute;
  inset: 0;
  background: #263238;
}

/* Shimmer hanya di area gambar sampai img selesai dimuat (app.js: blog-media--img-loading). */
.blog-media--img-loading {
  background: linear-gradient(
    110deg,
    color-mix(in srgb, var(--surface) 82%, var(--text) 18%) 0%,
    color-mix(in srgb, var(--surface) 94%, var(--bg) 6%) 45%,
    color-mix(in srgb, var(--surface) 82%, var(--text) 18%) 90%
  );
  background-size: 220% 100%;
  animation: blog-popular-skeleton-shimmer 1.15s ease-in-out infinite;
}

.blog-feature-slide-media.blog-media--img-loading {
  background: linear-gradient(
    110deg,
    color-mix(in srgb, #263238 72%, var(--surface) 28%) 0%,
    color-mix(in srgb, #263238 58%, var(--surface) 42%) 45%,
    color-mix(in srgb, #263238 72%, var(--surface) 28%) 90%
  );
  background-size: 220% 100%;
}

.blog-media--img-loading img {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .blog-media--img-loading {
    animation: none;
  }
}

.blog-feature-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.blog-feature-slide-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.55) 32%,
    rgba(0, 0, 0, 0.22) 55%,
    rgba(0, 0, 0, 0) 78%
  );
  pointer-events: none;
}

.blog-feature-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 4;
  padding: 0.28rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  pointer-events: none;
}

.blog-feature-badge--breaking {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.blog-feature-slide-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}

.blog-feature-slide-hit::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0;
  border: 1px solid transparent;
  box-shadow: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  pointer-events: none;
}

.blog-feature-slide:hover .blog-feature-slide-media img {
  transform: scale(1.035);
  filter: saturate(1.06) contrast(1.02);
}

.blog-feature-slide:hover .blog-feature-slide-shade {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.5) 36%,
    rgba(0, 0, 0, 0.18) 58%,
    rgba(0, 0, 0, 0) 80%
  );
}

.blog-feature-slide:hover .blog-feature-slide-hit::after {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.blog-feature-slide:hover .blog-feature-slide-title {
  transform: translateY(-2px);
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .blog-feature-slide-media img,
  .blog-feature-slide-title,
  .blog-feature-slide-hit::after {
    transition: none !important;
  }
}
.blog-feature-slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  /* Lebih dekat ke tepi bawah carousel (tag sudah tidak dipakai). */
  padding: 1.1rem 1.35rem 0.85rem;
  pointer-events: none;
}

@media (min-width: 768px) {
  .blog-feature-slide-caption {
    padding: 1.25rem 1.75rem 1rem;
  }
}

.blog-feature-cat {
  display: inline-block;
  position: relative;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 0.65rem;
  padding-bottom: 0.45rem;
}

.blog-feature-cat::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.25rem;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(198, 40, 40, 0.45);
}

.blog-feature-slide-title {
  margin: 0 0 0.45rem;
  max-width: min(100%, 42rem);
  /* clamp(min, preferred, max) — min harus ≤ max; ukuran lebih proporsional di mobile */
  font-size: clamp(1rem, 1.35vw + 0.55rem, 1.4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 0 24px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(0, 0, 0, 0.2);
  transition: transform 0.22s ease, color 0.22s ease;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.blog-feature-slide-time {
  margin: 0 0 0.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.blog-feature-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 0 0 5px rgba(0, 0, 0, 0.14),
    0 6px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease, color 0.2s ease;
}

.blog-feature-nav:hover {
  background: color-mix(in srgb, var(--surface) 88%, var(--accent) 12%);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 0 0 1px rgba(198, 40, 40, 0.2), 0 0 0 5px rgba(0, 0, 0, 0.12),
    0 10px 28px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 1);
  color: var(--accent);
}

.blog-feature-nav:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--nav-active),
    0 6px 20px rgba(0, 0, 0, 0.2);
}

.blog-feature-nav:active {
  transform: translateY(-50%) scale(0.97);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 3px 12px rgba(0, 0, 0, 0.18),
    inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.blog-feature-nav--prev {
  left: 0.75rem;
}

.blog-feature-nav--next {
  right: 0.75rem;
}

.blog-feature-nav-icon {
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 600;
  margin-top: -0.06rem;
  color: inherit;
  transition: color 0.2s ease;
}

.blog-tag-popular {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.blog-tag-popular-label {
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: -0.01em;
  padding-right: 0.25rem;
}

.blog-tag-scroll-btn {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.blog-tag-scroll-btn:hover {
  background: color-mix(in srgb, var(--surface) 88%, var(--accent) 12%);
  border-color: var(--accent);
}

.blog-tag-popular-strip {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.15rem 0;
}

.blog-tag-popular-strip::-webkit-scrollbar {
  display: none;
}

.blog-tag-popular-pill {
  flex: 0 0 auto;
  padding: 0.38rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.blog-tag-popular-pill:hover {
  background: color-mix(in srgb, var(--surface) 88%, var(--accent) 12%);
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 559px) {
  .blog-feature-slide-caption {
    padding: 0.85rem 1rem 0.65rem;
  }

  .blog-feature-slide-title {
    font-size: clamp(0.92rem, 2.85vw + 0.45rem, 1.12rem);
    line-height: 1.24;
    -webkit-line-clamp: 3;
  }

  .blog-feature-cat {
    font-size: 0.62rem;
    margin-bottom: 0.45rem;
  }

  .blog-feature-slide-time {
    font-size: 0.75rem;
  }

  .blog-feature-nav {
    width: 2.35rem;
    height: 2.35rem;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 0 0 4px rgba(0, 0, 0, 0.12),
      0 4px 16px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  }

  .blog-feature-nav-icon {
    font-size: 1.35rem;
  }

  .blog-feature-nav--prev {
    left: 0.45rem;
  }

  .blog-feature-nav--next {
    right: 0.45rem;
  }

  .blog-tag-popular-label {
    font-size: 0.75rem;
  }
}

/* ——— Postingan terbaru + Rekomendasi (readers.id) ——— */

.blog-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.blog-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text);
}

.blog-section-title-bar {
  display: inline-block;
  width: 4px;
  height: 1.15em;
  border-radius: 2px;
  background: var(--nav-blue);
  flex-shrink: 0;
}

.blog-section-more {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.blog-section-more:hover {
  text-decoration: underline;
}

.blog-latest-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.15rem 1.15rem;
  box-shadow: var(--shadow);
}

.blog-latest-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1rem;
  min-width: 0;
}

.blog-latest-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 10px;
  text-decoration: none;
  outline-offset: 2px;
  cursor: pointer;
}

.blog-latest-overlay:focus-visible {
  outline: 2px solid var(--nav-blue);
  outline-offset: 2px;
}

.blog-latest-card:hover .blog-latest-title {
  color: var(--accent);
}

.blog-latest-thumb {
  flex: 0 0 min(42%, 240px);
  max-width: 280px;
  border-radius: 10px;
  overflow: hidden;
  background: #eceff1;
  align-self: stretch;
}

.blog-latest-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
}

.blog-latest-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  justify-content: center;
}

.blog-latest-cat {
  display: inline-block;
  align-self: flex-start;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: none;
  color: #546e7a;
  background: #eceff1;
  border-radius: 6px;
  text-decoration: none;
}

a.blog-latest-cat {
  position: relative;
  z-index: 2;
}

a.blog-latest-cat:hover {
  background: #dfe4e8;
  text-decoration: none;
}

a.blog-latest-cat:focus-visible {
  outline: 2px solid var(--nav-blue);
  outline-offset: 2px;
  border-radius: 6px;
}

.blog-latest-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 0.15s ease;
}

.blog-latest-time {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Rekomendasi (desain baru; tidak meniru readers.id) */
.blog-picks {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.blog-picks-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.blog-picks-h {
  margin: 0.1rem 0 0;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.blog-picks-h::before {
  content: "";
  width: 6px;
  height: 18px;
  border-radius: 6px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}

.blog-picks-note {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Sama pola grid dengan "Paling banyak dibaca": 2 kolom (mobile) → 3 kolom (layar lebar). */
.blog-picks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  min-width: 0;
}

@media (min-width: 860px) {
  .blog-picks-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.blog-picks-grid-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    transform 0.15s ease;
}

.blog-picks-grid-card:hover {
  text-decoration: none;
  border-color: #cfd8dc;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.blog-picks-grid-card:hover .blog-picks-grid-title {
  color: var(--accent);
}

.blog-picks-grid-media {
  aspect-ratio: 16 / 9;
  background: #eceff1;
  overflow: hidden;
}

.blog-picks-grid-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-picks-grid-body {
  padding: 0.75rem 0.85rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 0;
}

.blog-picks-cat {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.35rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: #ffebee;
}

.blog-picks-grid-title {
  margin: 0.2rem 0 0.28rem;
  font-size: 0.875rem;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.blog-picks-time {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.35;
  font-weight: 500;
  color: var(--muted);
}

.blog-feed-head {
  margin: 1.5rem 0 0.85rem;
}

/* Category/tag pages: tighter spacing so columns look aligned. */
.page-topic .blog-feed-head {
  margin: 0 0 0.85rem;
}

.page-topic .blog-popular-wrap {
  margin-top: 0;
}

.blog-section-title--feed {
  font-size: 1.1rem;
}

.blog-feed-loadmore {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  margin-bottom: 0.65rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
}

.blog-feed-loadmore-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.blog-feed-loadmore-label {
  font-weight: 650;
}

.blog-feed-loadmore-arrow {
  display: block;
  flex-shrink: 0;
  opacity: 0.92;
  transition: transform 0.22s ease, opacity 0.2s ease;
}

.blog-feed-loadmore-btn {
  min-width: 0;
}

@media (max-width: 720px) {
  .blog-latest-card {
    flex-direction: column;
  }

  .blog-latest-thumb {
    flex: none;
    max-width: none;
    width: 100%;
    max-height: 220px;
  }

  .blog-picks-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .blog-picks-grid-title {
    font-size: 0.8125rem;
    line-height: 1.28;
  }

  .blog-picks-grid-body {
    padding: 0.6rem 0.65rem 0.7rem;
  }

  .blog-picks-time {
    font-size: 0.7rem;
  }
}

/* ——— Konten artikel (inspirasi readers.id / oduu-article-*) ——— */

.blog-article-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ——— /posts: daftar ringkas (thumb kiri, judul + waktu) ——— */
.blog-posts-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.blog-posts-item {
  display: flex;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  align-items: flex-start;
}

.blog-posts-item:first-child {
  border-top: none;
}

.blog-posts-thumb {
  flex: 0 0 84px;
  width: 84px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: #eceff1;
}

.blog-posts-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-posts-thumb--loading {
  background: linear-gradient(
    110deg,
    color-mix(in srgb, var(--surface) 82%, var(--text) 18%) 0%,
    color-mix(in srgb, var(--surface) 94%, var(--bg) 6%) 45%,
    color-mix(in srgb, var(--surface) 82%, var(--text) 18%) 90%
  );
  background-size: 220% 100%;
  animation: blog-popular-skeleton-shimmer 1.15s ease-in-out infinite;
}

.blog-posts-thumb--loading img {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .blog-posts-thumb--loading {
    animation: none;
  }
}

.blog-posts-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.05rem;
}

.blog-posts-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-posts-time {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.2;
}

.blog-posts-item:hover .blog-posts-title {
  color: var(--accent);
}

.blog-posts-item:hover .blog-posts-time {
  color: var(--muted);
}

.blog-posts-item:hover {
  text-decoration: none;
}

.blog-posts-item:focus-visible {
  outline: 2px solid var(--nav-blue);
  outline-offset: -2px;
}

/* Profil author — gaya kartu LinkedIn (banner + avatar overlap + konten putih) */
.blog-author-card {
  position: relative;
  margin: 0 0 1.35rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.08);
  overflow: visible;
}

.blog-author-card-banner {
  height: 120px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(
    118deg,
    #0e7490 0%,
    #0a66c2 48%,
    #2563eb 100%
  );
}

.blog-author-card-body {
  position: relative;
  padding: 0 1.35rem 1.25rem;
}

.blog-author-card-avatar {
  position: absolute;
  left: 1.35rem;
  top: 0;
  transform: translateY(-50%);
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.blog-author-card-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--bg);
  border: 4px solid var(--surface);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.blog-author-card-img--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--accent-hover));
  border: 4px solid var(--surface);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
}

.blog-author-card-main {
  padding-top: 4.25rem;
  max-width: 40rem;
}

.blog-author-card-name {
  margin: 0 0 0.2rem;
  font-size: clamp(1.35rem, 2.4vw, 1.6rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.blog-author-card-headline {
  margin: 0 0 0.65rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.blog-author-card-bio {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 52ch;
}

.blog-author-card-bio--empty {
  font-style: italic;
  opacity: 0.88;
}

.blog-author-card-metric {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}

.blog-author-card-metric strong {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.blog-author-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.blog-author-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.blog-author-card-btn--primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.blog-author-card-btn--primary:hover {
  filter: brightness(1.05);
  text-decoration: none;
  color: #fff;
}

.blog-author-card-btn--outline {
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.blog-author-card-btn--outline:hover {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface) 90%);
  text-decoration: none;
  color: var(--accent);
}

.blog-author-posts-anchor {
  margin: 0.25rem 0 0.65rem;
  scroll-margin-top: 5rem;
}

.blog-author-posts-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.blog-author-empty {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 420px) {
  .blog-posts-item {
    padding: 0.85rem 0.85rem;
    gap: 0.75rem;
  }
  .blog-posts-thumb {
    flex-basis: 78px;
    width: 78px;
    height: 60px;
    border-radius: 10px;
  }
  .blog-posts-title {
    font-size: 0.98rem;
  }
  .blog-posts-time {
    font-size: 0.78rem;
  }
}

.blog-pagination {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.blog-pagination-inner {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  row-gap: 0.35rem;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
}

.blog-pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--nav-blue);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.blog-pagination-btn:hover:not(.is-disabled):not(.is-active) {
  background: #ffebee;
  text-decoration: none;
}

.blog-pagination-btn.is-active {
  background: var(--nav-blue);
  color: #fff;
  border-color: var(--nav-blue);
}

.blog-pagination-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.blog-pagination-ellipsis {
  padding: 0 0.2rem;
  color: var(--muted);
  font-weight: 600;
}

.blog-article-item {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

/* Aksen merah di tepi kanan — selaras dengan bar section / sidebar Populer. */
.blog-article-item::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
  border-radius: 0 9px 9px 0;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 82%, #ffffff 18%) 0%,
    var(--accent) 55%,
    color-mix(in srgb, var(--accent) 72%, #000000 28%) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.blog-article-item:hover {
  border-color: #cfd8dc;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.blog-article-item:hover::after {
  width: 5px;
  opacity: 0.95;
}

/* Kartu feed: gambar + judul = tautan artikel; kategori = pola blog-latest-cat (tanpa overlay penuh). */
.blog-article-item:hover .blog-article-title a {
  color: var(--accent);
}

.blog-article-thumb {
  flex: 0 0 min(38%, 200px);
  min-height: 130px;
  max-width: 220px;
  background: #eceff1;
  overflow: hidden;
}

a.blog-article-thumb {
  display: block;
  text-decoration: none;
  color: inherit;
  align-self: stretch;
}

a.blog-article-thumb:focus-visible {
  outline: 2px solid var(--nav-blue);
  outline-offset: 2px;
}

.blog-article-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 130px;
  object-fit: cover;
}

.blog-article-text {
  flex: 1;
  min-width: 0;
  padding: 1rem 1.15rem 1rem 1.25rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.55rem;
  min-height: 0;
}

.blog-article-text .blog-latest-cat {
  justify-self: start;
}

.blog-article-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  align-self: center;
  min-height: 0;
  color: var(--text);
  transition: color 0.15s ease;
}

.blog-article-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.blog-article-title a:focus-visible {
  outline: 2px solid var(--nav-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.blog-article-footer {
  align-self: end;
  justify-self: stretch;
  width: 100%;
  padding-top: 0.15rem;
}

.blog-article-date {
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  .blog-article-item {
    flex-direction: column;
  }
  .blog-article-thumb {
    flex: none;
    max-width: none;
    min-height: 200px;
  }
}

/* Halaman satu artikel */
.blog-article-layout {
  max-width: none;
  margin: 0;
}

.blog-article-single {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.blog-article-breadcrumb {
  margin-bottom: 0.85rem;
}

.blog-article-breadcrumb-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  max-width: 100%;
}

.blog-article-breadcrumb-list li {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.blog-article-breadcrumb-list li + li::before {
  content: "›";
  display: inline-block;
  flex: 0 0 auto;
  margin: 0 0.4rem;
  color: #b0bec5;
  font-weight: 600;
}

.blog-article-breadcrumb-list li:last-child {
  flex: 1 1 auto;
  min-width: 0;
}

.blog-article-breadcrumb-list a {
  color: var(--text);
  text-decoration: none;
}

.blog-article-breadcrumb-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.blog-article-breadcrumb-list [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-article-head {
  margin-bottom: 0;
}

.blog-article-byline-meta-top {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
  font-weight: 500;
}

.blog-article-category--large {
  font-size: 0.8rem;
  padding: 0.28rem 0.8rem;
  margin-bottom: 0.65rem;
  font-weight: 600;
}

.blog-article-head h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.34rem, 3.5vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
}

.blog-article-byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .blog-article-byline {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
  }

  .blog-article-byline-main {
    flex: 1 1 auto;
    min-width: 0;
  }

  .blog-share {
    margin-left: auto;
    width: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.3rem;
  }

  .blog-share-btn {
    height: 30px;
    min-width: 30px;
    padding: 0 0.42rem;
  }

  .blog-article-byline-meta-top {
    font-size: 0.76rem;
    margin-bottom: 0.45rem;
  }
}

.blog-share {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.blog-share-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  height: 34px;
  min-width: 34px;
  padding: 0 0.55rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease,
    transform 0.12s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.blog-share-btn-ico {
  width: 18px;
  height: 18px;
  display: block;
}

.blog-share-ico {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.blog-share-ico svg {
  width: 18px;
  height: 18px;
  display: block;
}

.blog-share-btn:hover {
  background: color-mix(in srgb, var(--surface) 88%, var(--text) 12%);
  border-color: var(--border);
}

.blog-share-btn:active {
  transform: translateY(1px);
}

.blog-share-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.blog-share-btn--wa {
  color: #0f5132;
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.12);
}

.blog-share-btn--fb {
  color: #1e3a8a;
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(37, 99, 235, 0.1);
}

.blog-share-btn--copy,
.blog-share-btn--more {
  background: var(--surface);
  color: var(--text);
}

.blog-share-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.45);
}

.blog-share-modal {
  position: fixed;
  left: 50%;
  top: 18vh;
  transform: translateX(-50%);
  z-index: 10001;
  width: min(92vw, 540px);
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
}

.blog-share-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
}

.blog-share-modal-title {
  font-weight: 800;
  color: var(--text);
}

.blog-share-close {
  appearance: none;
  border: 1px solid var(--border);
  background: #fff;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--muted);
}

.blog-share-close:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.03);
}

.blog-share-modal-body {
  padding: 0.9rem 1rem 1rem;
}

.blog-share-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.blog-share-chip {
  appearance: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 0.75rem 0.7rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
}

.blog-share-chip:hover {
  border-color: #cbd5e1;
  background: rgba(15, 23, 42, 0.03);
}

body.blog-modal-open {
  overflow: hidden;
}

.blog-article-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  letter-spacing: 0;
  overflow: hidden;
}

.blog-article-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-article-byline-main {
  min-width: 0;
  flex: 1;
}

.blog-article-byline-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.blog-article-byline-meta {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 0.15rem;
  line-height: 1.35;
  text-transform: none;
}

.blog-article-fontsize {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.9rem 0 0.95rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}

.blog-article-fontsize-a {
  color: var(--muted);
  line-height: 1;
  font-weight: 700;
}

.blog-article-fontsize-a--sm {
  font-size: 0.82rem;
}

.blog-article-fontsize-a--lg {
  font-size: 1.22rem;
}

.blog-article-fontsize-range {
  flex: 1;
  width: 100%;
  accent-color: var(--accent);
}

.blog-article-hero {
  margin: 1.15rem 0 0;
  border-radius: 10px;
  overflow: hidden;
  background: #eceff1;
}

.blog-article-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(480px, 70vh);
  object-fit: cover;
  vertical-align: middle;
}

.blog-article-source {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
  background: color-mix(in srgb, var(--bg) 92%, var(--surface) 8%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
}

.blog-article-source-label {
  font-weight: 700;
  color: var(--text);
}

.blog-article-source a {
  color: var(--accent) !important;
  text-decoration: none;
  font-style: italic;
}

.blog-article-source a:hover {
  color: var(--accent-hover) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-article-author-card {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.blog-article-author-card-img {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--bg);
}

.blog-article-author-card-img--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
}

.blog-article-author-card-main {
  min-width: 0;
}

.blog-article-author-card-name {
  margin: 0 0 0.22rem;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.25;
}

.blog-article-author-card-name a {
  color: var(--text);
  text-decoration: none;
}

.blog-article-author-card-name a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.blog-article-author-card-bio {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 720px) {
  .blog-article-fontsize {
    margin-top: 0.75rem;
    padding: 0.5rem 0.6rem;
  }

  .blog-article-author-card {
    padding: 0.75rem 0.8rem;
  }

  .blog-article-author-card-img {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .blog-author-card-banner {
    height: 96px;
  }

  .blog-author-card-body {
    padding: 0 1rem 1.1rem;
  }

  .blog-author-card-avatar {
    left: 1rem;
    width: 96px;
    height: 96px;
  }

  .blog-author-card-img,
  .blog-author-card-img--fallback {
    width: 96px;
    height: 96px;
    font-size: 1.85rem;
  }

  .blog-author-card-main {
    padding-top: 3.35rem;
  }

  .blog-author-card-name {
    font-size: 1.25rem;
  }

  .blog-author-card-bio {
    font-size: 0.88rem;
    max-width: none;
  }

  .blog-author-card-actions {
    gap: 0.4rem;
  }

  .blog-author-card-btn {
    padding: 0.4rem 0.95rem;
    font-size: 0.82rem;
  }
}

.blog-article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

.blog-article-meta {
  font-size: 0.88rem;
  color: var(--muted);
}

.blog-article-toc {
  margin: 0.15rem 0 1.5rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}

.blog-toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.blog-toc-title {
  font-weight: 750;
  color: var(--text);
  font-size: 0.95rem;
}

.blog-toc-title::before {
  content: "☰";
  display: inline-block;
  margin-right: 0.55rem;
  color: var(--accent);
  font-weight: 900;
}

.blog-toc-toggle {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
}

.blog-toc-toggle:hover {
  color: var(--text);
  border-color: var(--border);
}

.blog-toc-list {
  margin: 0;
  padding-left: 0;
  color: var(--muted);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* display:flex di atas mengalahkan atribut hidden — default TOC tertutup. */
.blog-toc-list[hidden] {
  display: none !important;
}

.blog-toc-item {
  margin: 0;
}

.blog-toc-link,
.blog-toc-sublink {
  display: block;
  padding: 0.42rem 0.55rem;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.35;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.blog-toc-link:hover,
.blog-toc-sublink:hover {
  color: var(--article-link-hover);
  background: rgba(220, 38, 38, 0.06);
  transform: translateX(2px);
}

.blog-toc-sublist {
  list-style: none;
  margin: 0.15rem 0 0.25rem;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.blog-toc-subitem {
  position: relative;
  margin: 0;
  padding-left: 0;
}

.blog-toc-subitem::before {
  content: "•";
  position: absolute;
  /* Align dash with start of top-level text (same as link padding-left). */
  left: 0.55rem;
  top: 0.5rem;
  color: #cbd5e1;
  font-weight: 900;
  font-size: 1rem;
  line-height: 1;
}

.blog-toc-sublink {
  /* Keep sub text aligned under top-level text, dash sits at 0.55rem. */
  padding-left: 1.1rem;
  font-weight: 600;
}

.blog-article-body {
  max-width: none;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}

/* Default desktop 17px; mobile sedikit lebih kecil — diselaraskan di app.js ke nilai slider. */
.blog-article-body.post-body {
  font-size: 17px;
  line-height: 1.75;
}

.blog-article-body.post-body h2,
.blog-article-body.post-body h3 {
  scroll-margin-top: 5.75rem;
}

@media (max-width: 720px) {
  .blog-article-body.post-body {
    font-size: 15px;
    line-height: 1.72;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .blog-article-body.post-body h2,
  .blog-article-body.post-body h3 {
    scroll-margin-top: 4.75rem;
  }
}

.blog-article-body p {
  margin: 0 0 1.1em;
}

.blog-article-body table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0.5rem 0 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  table-layout: auto;
}

.blog-article-body table thead,
.blog-article-body table tbody {
  width: 100%;
}

@media (max-width: 720px) {
  /* Tetap pakai layout tabel agar kolom tidak “pecah”; isi penuh lebar konten. */
  .blog-article-body table {
    display: table;
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    font-size: 0.94rem;
  }

  .blog-article-body thead th {
    white-space: normal;
  }

  .blog-article-body td,
  .blog-article-body th {
    min-width: 0;
    padding: 0.55rem 0.5rem;
    vertical-align: middle;
    word-wrap: break-word;
    overflow-wrap: anywhere;
  }
}

/* ——— RSS Feeds page ——— */
.blog-rss-feeds {
  max-width: var(--container);
  margin: 0 auto;
}

.blog-rss-title {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.blog-rss-lead {
  margin: 0 0 1rem;
}

.blog-rss-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.blog-rss-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.blog-rss-table th,
.blog-rss-table td {
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.blog-rss-table th {
  background: linear-gradient(180deg, #fbfdff 0%, #f1f5f9 100%);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.blog-rss-table tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.015);
}

.blog-rss-feed-link {
  display: inline;
  color: inherit;
  text-decoration: none;
  word-break: break-word;
}

.blog-rss-feed-link:hover {
  text-decoration: underline;
}

.blog-rss-feed-link:hover .blog-rss-name {
  color: var(--accent);
}

.blog-rss-name {
  font-weight: 650;
  color: var(--article-link);
}

.blog-rss-sep {
  color: var(--border);
  font-weight: 400;
  user-select: none;
}

.blog-rss-feed-link .blog-rss-url {
  color: #64748b;
  font-size: 0.88em;
  font-weight: 500;
}

.blog-rss-feed-link:hover .blog-rss-url {
  color: #475569;
}

@media (max-width: 720px) {
  .blog-rss-card {
    overflow-x: auto;
  }
  .blog-rss-table {
    min-width: 680px;
  }
}

.blog-article-body caption {
  caption-side: top;
  padding: 0.75rem 0.85rem;
  font-weight: 750;
  color: var(--text);
}

.blog-article-body thead th {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  color: var(--text);
  font-weight: 750;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.blog-article-body th,
.blog-article-body td {
  text-align: left;
  padding: 0.75rem 0.85rem;
  vertical-align: top;
  border-right: 1px solid var(--border);
}

.blog-article-body th:last-child,
.blog-article-body td:last-child {
  border-right: none;
}

.blog-article-body tbody tr {
  border-top: 1px solid var(--border);
}

.blog-article-body tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.02);
}

.blog-article-body tbody tr:hover {
  background: rgba(198, 40, 40, 0.045);
}

.blog-article-body td {
  color: var(--text);
}

.blog-article-body td,
.blog-article-body th {
  min-width: 0;
}

.blog-article-body h2,
.blog-article-body h3 {
  margin: 1.35em 0 0.5em;
  line-height: 1.3;
  color: var(--text);
  scroll-margin-top: 1.25rem;
}

.blog-article-body h2 {
  font-size: 1.25rem;
}

.blog-article-body h3 {
  font-size: 1.1rem;
}

.blog-article-body ul,
.blog-article-body ol {
  margin: 0 0 1.1em;
  padding-left: 1.35rem;
}

.blog-article-body blockquote {
  margin: 1.1em 0;
  padding: 0.65rem 1rem;
  border-left: 4px solid var(--accent);
  background: color-mix(in srgb, var(--bg) 92%, var(--surface) 8%);
  color: var(--muted);
  border-radius: 0 10px 10px 0;
}

.blog-article-body a {
  color: var(--article-link) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-article-body a:visited {
  color: var(--article-link) !important;
}

.blog-article-body a:hover {
  color: var(--article-link-hover) !important;
}

.blog-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0.5em 0;
}

.blog-also-read {
  margin: 1rem 0;
}

.blog-also-read-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.2rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--nav-blue);
}

.blog-also-read-label {
  flex: 0 0 auto;
  margin: 0;
  line-height: 1.2;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blog-also-read-link {
  color: var(--accent);
  text-decoration: none;
  min-width: 0;
  display: block;
}

.blog-also-read-link,
.blog-also-read-link:hover,
.blog-also-read-link:focus,
.blog-also-read-link:active {
  text-decoration: none !important;
}

.blog-also-read-inner:hover {
  border-color: color-mix(in srgb, var(--border) 55%, var(--text) 45%);
}

.blog-also-read-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.35;
  font-weight: 750;
  color: var(--accent);
}

.blog-also-read-link:hover .blog-also-read-title {
  color: color-mix(in srgb, var(--accent) 88%, #000000);
  text-decoration: none;
}

.page-about.prose h1 {
  margin-top: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card-narrow {
  max-width: 400px;
  margin: 0 auto;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.stack label,
.stack .label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.stack input,
.stack textarea,
.stack select {
  font: inherit;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--bg);
  text-decoration: none;
}

/* Muat lagi — compact, rapi, profesional. */
.btn.btn-ghost.blog-feed-loadmore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8.75rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: #334155;
  background: #fff;
  border-color: rgba(148, 163, 184, 0.38);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: background 0.22s ease, border-color 0.2s ease,
    box-shadow 0.22s ease, color 0.2s ease, transform 0.18s ease;
}

.btn.btn-ghost.blog-feed-loadmore-btn:hover {
  color: #0f172a;
  background: #f8fafc;
  border-color: rgba(100, 116, 139, 0.45);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

.btn.btn-ghost.blog-feed-loadmore-btn:hover .blog-feed-loadmore-arrow {
  transform: translateY(1px);
  opacity: 1;
}

.btn.btn-ghost.blog-feed-loadmore-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
}

.btn.btn-ghost.blog-feed-loadmore-btn:active .blog-feed-loadmore-arrow {
  transform: translateY(1px);
}

.btn.btn-ghost.blog-feed-loadmore-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn.btn-ghost.blog-feed-loadmore-btn:disabled {
  opacity: 0.68;
  cursor: wait;
  transform: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.btn.btn-ghost.blog-feed-loadmore-btn:disabled .blog-feed-loadmore-arrow {
  transform: none;
}

@media (max-width: 480px) {
  .btn.btn-ghost.blog-feed-loadmore-btn {
    min-width: 8rem;
    width: auto;
    max-width: none;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }
}

.btn-sm {
  font-size: 0.85rem;
  padding: 0.35rem 0.65rem;
}

.btn-danger {
  color: var(--danger);
  border-color: #fecaca;
  background: #fff;
}

/* ——— Admin ——— */

.admin-body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
}

.admin-topbar {
  background: #1e293b;
  color: #f1f5f9;
}

.admin-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-brand {
  font-weight: 700;
  color: #fff;
}
.admin-brand:hover {
  color: #fecaca;
  text-decoration: none;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-topbar .btn-ghost {
  color: #e2e8f0;
  border-color: #475569;
}
.admin-topbar .btn-ghost:hover {
  background: #334155;
}

.admin-user-name {
  font-size: 0.9rem;
  color: #94a3b8;
}

.admin-shell {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 52px);
}

.admin-sidebar {
  width: 200px;
  flex-shrink: 0;
  padding: 1.25rem 1rem;
  border-right: 1px solid var(--border);
  background: var(--surface);
}

.admin-sidebar-title {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.admin-sidebar-hint {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
}

.admin-main-wrap {
  flex: 1;
  padding: 1.5rem 1.25rem 2rem;
  min-width: 0;
}

.admin-root {
  min-height: 200px;
}

.admin-login {
  margin-top: 2rem;
}

.admin-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.admin-tabs button {
  font: inherit;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 6px;
  cursor: pointer;
  color: var(--muted);
}

.admin-tabs button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.admin-toolbar {
  margin-bottom: 1rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: #f8fafc;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table .actions {
  white-space: nowrap;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
  z-index: 1000;
}

.modal {
  width: 100%;
  max-width: 640px;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.modal h2 {
  margin-top: 0;
}

.footer-page-list--multi {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 0.45rem 1.25rem;
}

.form-actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.35rem;
}

.tag-check {
  font-weight: 400;
  font-size: 0.9rem;
}

/* Layout variant: Detik-inspired (berlaku lintas halaman). */
.site-layout-detik .site-main {
  background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 85%, #fff) 100%);
}

.site-layout-detik .header-top {
  border-bottom: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
}

.site-layout-detik .header-nav-strip {
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 78%, #f97316));
}

.site-layout-detik .header-nav-link {
  color: #fff;
  opacity: 0.92;
}

.site-layout-detik .header-nav-link:hover,
.site-layout-detik .header-nav-link:focus-visible,
.site-layout-detik .header-nav-link.is-active,
.site-layout-detik .header-nav-link--home {
  color: #fff;
  opacity: 1;
}

.site-layout-detik .home-layout-detik--inner {
  grid-template-columns: minmax(0, 1fr) min(320px, 32%);
}

.site-layout-detik .home-layout-detik--inner .blog-home-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.site-layout-detik .home-layout-detik .blog-feed-head {
  margin-top: 0;
}

.site-layout-detik .blog-posts-item,
.site-layout-detik .blog-article-item {
  border-radius: 10px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.site-layout-detik .blog-posts-item:hover,
.site-layout-detik .blog-article-item:hover {
  background: color-mix(in srgb, var(--surface) 88%, var(--accent) 12%);
}

.site-layout-detik .blog-article-single {
  background: transparent;
}

.site-layout-detik .blog-popular-wrap--detik-tags {
  min-height: 20rem;
}

.site-layout-detik .blog-popular--detik-tags {
  padding-bottom: 0.25rem;
}

.site-layout-detik .blog-popular-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.site-layout-detik .header-top-inner--detik {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  justify-content: space-between;
}

.site-layout-detik .header-brand-group--detik {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  min-width: 0;
}

.site-layout-detik .header-brand-group--detik .site-logo {
  margin-right: 0;
}

.site-layout-detik .header-meta-group--detik {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  justify-self: end;
  justify-content: flex-end;
  min-width: 0;
}

.site-layout-detik .header-date-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.64rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-layout-detik .header-search {
  width: 2.2rem;
  max-width: 2.2rem;
  min-width: 2.2rem;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 999px;
  justify-content: center;
  gap: 0;
}

.site-layout-detik #header-search-form .header-search-icon,
.site-layout-detik #header-search-form input[name="q"] {
  display: none;
}

.site-layout-detik .header-search-submit {
  display: inline-flex;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0.2rem;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
}

.site-layout-detik .header-search-submit:hover {
  background: color-mix(in srgb, var(--surface) 90%, var(--accent) 10%);
}

.site-layout-detik .header-meta-group--detik .header-social {
  flex-wrap: nowrap;
}

@media (max-width: 899px) {
  .site-layout-detik .home-layout-detik--inner {
    grid-template-columns: 1fr;
  }

  .site-layout-detik .home-layout-detik--inner .blog-home-main {
    border-radius: 10px;
    padding: 0.8rem;
  }

  .site-layout-detik .header-top-inner--detik {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand meta";
    gap: 0.6rem 0.55rem;
  }

  .site-layout-detik .header-brand-group--detik {
    grid-area: brand;
  }

  .site-layout-detik .header-meta-group--detik {
    grid-area: meta;
    justify-self: end;
  }

  .site-layout-detik .header-date-chip {
    display: none;
  }

  .site-layout-detik .header-meta-group--detik .header-social {
    gap: 0.32rem;
  }
}
