:root{
  --portal-maxw: 1120px;

  /* Neutral background (lebih putih, tidak kebiruan) */
  --portal-bg: #f8f8f8;

  --portal-text: #111827;
  --portal-muted: #6b7280;
  --portal-border: rgba(0,0,0,.06);

  /* Brand tokens (default merah Literasi Hukum) */
  --lhi-primary: var(--primary-color, #b91c1c);
  --lhi-primary-rgb: var(--primary-color-rgb, 185,28,28);
  --lhi-primary-hover: var(--primary-hover, #991b1b);
  --lhi-primary-hover-rgb: var(--primary-hover-rgb, 153,27,27);

  /* Bootstrap variable overrides (utility classes & components) */
  --bs-primary: var(--lhi-primary);
  --bs-primary-rgb: var(--lhi-primary-rgb);
  --bs-primary-text-emphasis: #7f1d1d;
  --bs-primary-bg-subtle: #fef2f2;
  --bs-primary-border-subtle: #fecaca;

  --bs-link-color: var(--lhi-primary);
  --bs-link-color-rgb: var(--lhi-primary-rgb);
  --bs-link-hover-color: var(--lhi-primary-hover);
  --bs-link-hover-color-rgb: var(--lhi-primary-hover-rgb);

  --bs-focus-ring-color: rgba(var(--lhi-primary-rgb), .25);
  --bs-nav-pills-link-active-bg: var(--lhi-primary);

  /* Reader preferences (article page) */
  --lhi-article-font-scale: 1;
}

body{
  background: var(--portal-bg);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--portal-text);
}

.container{ max-width: var(--portal-maxw); }

/* =========================================================
   Brand theme override (Bootstrap primary -> Merah Literasi Hukum)
   ========================================================= */

/* Buttons */
.btn-primary{
  --bs-btn-bg: var(--lhi-primary);
  --bs-btn-border-color: var(--lhi-primary);
  --bs-btn-hover-bg: var(--lhi-primary-hover);
  --bs-btn-hover-border-color: var(--lhi-primary-hover);
  --bs-btn-active-bg: var(--lhi-primary-hover);
  --bs-btn-active-border-color: var(--lhi-primary-hover);
  --bs-btn-focus-shadow-rgb: var(--lhi-primary-rgb);
  --bs-btn-disabled-bg: var(--lhi-primary);
  --bs-btn-disabled-border-color: var(--lhi-primary);
}

.btn-outline-primary{
  --bs-btn-color: var(--lhi-primary);
  --bs-btn-border-color: rgba(var(--lhi-primary-rgb), .60);
  --bs-btn-hover-bg: var(--lhi-primary);
  --bs-btn-hover-border-color: var(--lhi-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--lhi-primary-hover);
  --bs-btn-active-border-color: var(--lhi-primary-hover);
  --bs-btn-focus-shadow-rgb: var(--lhi-primary-rgb);
}

/* Links */
a, .btn-link, .link-primary{
  color: var(--lhi-primary);
}
a:hover, .btn-link:hover, .link-primary:hover{
  color: var(--lhi-primary-hover);
}

/* Utilities */
.text-primary{ color: var(--lhi-primary) !important; }
.bg-primary{ background-color: rgba(var(--lhi-primary-rgb), var(--bs-bg-opacity, 1)) !important; }
.border-primary{ border-color: rgba(var(--lhi-primary-rgb), var(--bs-border-opacity, 1)) !important; }

/* Components */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link{
  background-color: var(--lhi-primary) !important;
}
.dropdown-item.active,
.dropdown-item:active{
  background-color: var(--lhi-primary) !important;
}

.pagination .page-link{
  color: var(--lhi-primary);
}
.pagination .page-link:hover{
  color: var(--lhi-primary-hover);
}
.pagination .page-item.active .page-link{
  background-color: var(--lhi-primary);
  border-color: var(--lhi-primary);
}

.form-check-input:checked{
  background-color: var(--lhi-primary);
  border-color: var(--lhi-primary);
}

.form-control:focus,
.form-select:focus{
  border-color: rgba(var(--lhi-primary-rgb), .45);
  box-shadow: 0 0 0 .25rem rgba(var(--lhi-primary-rgb), .15);
}

/* HEADER / NAV */
.portal-navbar{
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(10px);
  padding-top: .65rem;
  padding-bottom: .65rem;
}
.portal-navbar .navbar-brand{ padding-top: 0; padding-bottom: 0; margin-right: 1.25rem; }

.brand-logo{
  height: 44px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.04));
}
@media (max-width: 575.98px){
  .brand-logo{ height: 36px; max-width: 200px; }
}

.brand-mark{
  width:44px;
  height:44px;
  border-radius: 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#111827;
  color:#fff;
  font-weight:800;
  font-size:.9rem;
  letter-spacing:.5px;
}

.portal-navbar .navbar-nav{ gap: .4rem; }
.portal-navbar .nav-link{
  font-weight: 600;
  color:#374151;
  border-radius: 999px;
  padding: .45rem .85rem;
}
.portal-navbar .nav-link:hover{
  color:var(--lhi-primary);
  background: rgba(var(--lhi-primary-rgb),.06);
}
.portal-navbar .nav-link.active{
  color:var(--lhi-primary);
  background: rgba(var(--lhi-primary-rgb),.10);
}

.portal-navbar .form-control{
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
}
.portal-navbar .btn{ border-radius: 999px; }

/* Cleaner header actions */
.portal-nav-actions .btn{ white-space: nowrap; }
.portal-nav-actions .dropdown-toggle::after{ margin-left: .35rem; }

/* Keep dropdown interactions clean (no "slide" padding) */
.portal-navbar .dropdown-menu-admin .dropdown-item:hover{ padding-left: 20px; }

/* User menu button (desktop default) */
.portal-user-btn{
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.portal-user-btn:focus{ box-shadow: none; }
.portal-user-avatar{
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  font-size: 16px;
}

/* Navbar polish: more proportional spacing on desktop */
@media (min-width: 1200px){
  .portal-nav-actions{
    border-left: 1px solid rgba(0,0,0,.06);
    padding-left: .9rem;
    margin-left: .9rem;
  }
}

@media (max-width: 1199.98px){
  /*
    Mobile/tablet navigation clean-up:
    - Collapse area becomes a "card" (white background + shadow)
    - Links become full-width list items (not pill across)
    - CTA buttons stack full-width (lebih rapi)
    - Dropdown menus render statically inside collapse
  */
  .portal-navbar .navbar-collapse{
    margin-top: .65rem;
    padding: .85rem;
    border-top: 0;
    background: #fff;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15,23,42,.10);
  }

  .portal-navbar .navbar-nav{
    padding-top: 0;
    gap: .35rem;
  }

  .portal-navbar .navbar-nav .nav-link{
    width: 100%;
    border-radius: 14px;
    padding: .75rem 1rem;
  }

  .portal-navbar .navbar-nav .dropdown-toggle::after{
    float: right;
    margin-top: .55rem;
  }

  /* Dropdown in collapsed navbar should not overflow */
  .portal-navbar .navbar-collapse .dropdown-menu{
    position: static;
    float: none;
    width: 100%;
    margin-top: .25rem;
    padding: .35rem;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 14px;
    box-shadow: none;
  }

  .portal-navbar .navbar-collapse .dropdown-item{
    border-radius: 12px;
    padding: .65rem .85rem;
  }

  .portal-nav-actions{
    border-top: 1px solid rgba(15,23,42,.08);
    padding-top: .85rem;
    margin-top: .85rem;
    flex-direction: column;
    align-items: stretch;
  }

  .portal-nav-actions .btn{
    width: 100%;
    justify-content: center;
    padding-top: .65rem;
    padding-bottom: .65rem;
    white-space: normal;
  }

  /* Mobile user dropdown button becomes a full-width account row */
  .portal-user-dropdown{ width: 100%; }
  .portal-user-btn{
    width: 100%;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem .85rem;
    border: 1px solid rgba(15,23,42,.10);
    background: #fff;
    border-radius: 14px;
    text-align: left;
  }
  .portal-user-avatar{
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    font-size: 16px;
  }
  .portal-user-meta{ min-width: 0; }
  .portal-user-name{ font-weight: 800; font-size: .95rem; line-height: 1.1; }
  .portal-user-email{ font-size: .82rem; color: rgba(15,23,42,.60); line-height: 1.1; margin-top: .15rem; }
  .portal-user-caret{ margin-left: auto; color: rgba(15,23,42,.55); }
}


.portal-search-input{ width: 220px; }
@media (max-width: 991.98px){
  .portal-search{ width: 100%; }
  .portal-search-input{ width: 100%; }
}

/* UI */
.small-muted{ color: var(--portal-muted); font-size: .875rem; }

.card{
  border: 1px solid var(--portal-border);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.card-hover{ transition: transform .12s ease, box-shadow .12s ease; }
.card-hover:hover{ transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0,0,0,.08); }

.hero{
  border: 1px solid var(--portal-border);
  background: linear-gradient(180deg, #ffffff, #fef2f2);
}

.hero-search .form-control{
  border: 1px solid rgba(0,0,0,.12);
}
.hero-search .input-group-lg > .form-control{
  border-top-left-radius: 999px;
  border-bottom-left-radius: 999px;
}
.hero-search .input-group-lg > .btn{
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* =========================================================
   Opini channel hero (Professional, ringkas, brand merah)
   - Revisi v46: dibuat lebih clean (tanpa watermark/garis),
     fokus ke judul + search + topik populer (scrollable).
   ========================================================= */

.opini-hero{
  position: relative;
  padding: 2.75rem 0 2.15rem;
  margin: 1.25rem 0 2rem;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 45%, #450a0a 100%);
  box-shadow: 0 20px 56px rgba(0,0,0,.12);
}

.opini-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px circle at 18% 10%, rgba(255,255,255,.20), transparent 62%),
    radial-gradient(720px circle at 85% 18%, rgba(0,0,0,.22), transparent 58%),
    radial-gradient(620px circle at 28% 92%, rgba(255,255,255,.10), transparent 60%);
  pointer-events: none;
}

.opini-hero__inner{
  position: relative;
  z-index: 1;
  max-width: 66rem;
}

.opini-hero__kicker{
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .85rem;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.94);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .72rem;
}

.opini-hero__kicker--alt{
  background: rgba(0,0,0,.16);
  border-color: rgba(255,255,255,.16);
  letter-spacing: .06em;
  text-transform: none;
  font-weight: 700;
}

.opini-hero__title{
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(2.05rem, 4.2vw, 3.05rem);
  line-height: 1.06;
}

.opini-hero__subtitle{
  color: rgba(255,255,255,.82);
  max-width: 42rem;
  font-size: 1.03rem;
}

.opini-hero__search-group{
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.20);
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
}

.opini-hero__search-input{
  border: 0;
  padding-left: 1.25rem;
  padding-right: 1rem;
  box-shadow: none !important;
}

.opini-hero__search-input:focus{ box-shadow: none !important; }

.opini-hero__search-btn{
  border-radius: 999px;
  padding-left: 1.15rem;
  padding-right: 1.15rem;
  font-weight: 800;
}

.opini-hero__topics{
  margin-top: 1.05rem;
}

.opini-hero__topics-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: .75rem;
  margin-bottom: .65rem;
}

.opini-hero__topics-label{
  color: rgba(255,255,255,.88);
  font-weight: 800;
  font-size: .92rem;
  letter-spacing: .01em;
}

.opini-hero__topics-link{
  color: rgba(255,255,255,.70);
  text-decoration: none;
  font-weight: 700;
  font-size: .90rem;
}

.opini-hero__topics-link:hover{ color: #fff; text-decoration: underline; }

.opini-hero__topics-scroll{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.opini-hero__topic-chip{
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: .52rem .9rem;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
  font-weight: 750;
  font-size: .88rem;
  line-height: 1;
}

.opini-hero__topic-chip:hover{
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.26);
  color: #fff;
}

@media (max-width: 991.98px){
  .opini-hero{ padding: 2.25rem 0 1.75rem; margin-top: .75rem; }
}

@media (max-width: 575.98px){
  .opini-hero{ border-radius: 18px; }
  .opini-hero__subtitle{ font-size: .98rem; }
  .opini-hero__topics-scroll{
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .25rem;
  }
  .opini-hero__topic-chip{ flex: 0 0 auto; }
}

/* =========================================================
   Ruang Publik hero (Light, community, tetap brand merah)
   ========================================================= */

.ruang-hero{
  position: relative;
  padding: 2.35rem 0 1.85rem;
  margin: 1.25rem 0 2rem;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(var(--lhi-primary-rgb), .22);
  background:
    radial-gradient(900px circle at 18% 10%, rgba(var(--lhi-primary-rgb), .16), transparent 62%),
    radial-gradient(780px circle at 88% 18%, rgba(0,0,0,.04), transparent 58%),
    linear-gradient(180deg, #ffffff 0%, #fff5f5 100%);
  box-shadow: 0 16px 48px rgba(0,0,0,.06);
}

.ruang-hero__inner{ position: relative; z-index: 1; max-width: 70rem; }

.ruang-hero__kicker{
  display:inline-flex;
  align-items:center;
  padding: .45rem .85rem;
  border-radius: 999px;
  background: rgba(var(--lhi-primary-rgb), .10);
  border: 1px solid rgba(var(--lhi-primary-rgb), .22);
  color: var(--lhi-primary);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .72rem;
}

.ruang-hero__title{
  color: #111827;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1.08;
}

.ruang-hero__subtitle{ color: rgba(17,24,39,.70); max-width: 46rem; font-size: 1.02rem; }

.ruang-hero__search-group{
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(17,24,39,.14);
  box-shadow: 0 14px 34px rgba(15,23,42,.06);
}

.ruang-hero__search-input{ border:0; padding-left: 1.2rem; box-shadow:none !important; }
.ruang-hero__search-input:focus{ box-shadow:none !important; }

.ruang-hero__cta{ display:flex; flex-wrap:wrap; gap:.6rem; }

@media (max-width: 575.98px){
  .ruang-hero{ border-radius: 18px; }
}

.badge-soft{
  background: rgba(17,24,39,.06);
  color:#111827;
  border: 1px solid rgba(17,24,39,.12);
}
.badge-soft:hover{ background: rgba(var(--lhi-primary-rgb),.06); border-color: rgba(var(--lhi-primary-rgb),.22); color:var(--lhi-primary); }

.article-body{
  font-family: var(--lhi-font-serif, Georgia, "Times New Roman", Times, serif);
  font-size: calc(1.06rem * var(--lhi-article-font-scale));
  line-height: 1.9;
  color: var(--portal-text);
  overflow-wrap:anywhere;
  transition: font-size .18s ease, line-height .18s ease;
}

/* Keep headings/UI elements in sans-serif for clarity */
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6{
  font-family: var(--lhi-font-sans, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
}

/* Inline images inside article body (TinyMCE/editor output) */
.article-body img{ max-width:100%; height:auto; }
.article-body figure{ margin: 1.25rem 0; }
.article-body figure > img{ display:block; border-radius: 14px; }
.article-body figcaption{
  margin-top: .55rem;
  font-size: .95em;
  color: var(--portal-muted);
  line-height: 1.55;
}


/* LHI_TABLE_AUTO: article tables from TinyMCE */
.article-body .table-responsive{
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.25rem 0;
}
.article-body table{
  width: 100%;
  max-width: 100%;
  height: auto;
  border-collapse: collapse;
}
.article-body th,
.article-body td{
  border: 1px solid rgba(0,0,0,.12);
  padding: .55rem .65rem;
  vertical-align: top;
}

/* --------------------------------------------------------------
   Mobile/article safety (EN snapshots included)
   Prevent "berantakan" layout on small screens caused by:
   - embeds/iframes with fixed width
   - tables without .table-responsive wrapper
   - long code/pre blocks
   - floated images/figures
   -------------------------------------------------------------- */

/* Responsive media embeds inside article content */
.article-body iframe,
.article-body video,
.article-body embed,
.article-body object{
  max-width: 100%;
}
.article-body iframe{
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
}

/* Code blocks: allow horizontal scroll on mobile */
.article-body pre{
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: .9rem 1rem;
  border-radius: 12px;
  background: rgba(17,24,39,.06);
}

/* Tables: some editor outputs omit .table-responsive. Make them safe on mobile. */
@media (max-width: 576px){
  .article-body table{
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Floats inside content often break narrow screens */
  .article-body img[style*="float"],
  .article-body figure[style*="float"],
  .article-body .float-start,
  .article-body .float-end,
  .article-body .alignleft,
  .article-body .alignright{
    float: none !important;
    display: block !important;
    margin: .85rem auto !important;
    max-width: 100% !important;
  }
}
.article-body p{ margin: 0 0 1rem 0; }
.article-body p:last-child{ margin-bottom:0; }

.object-fit-cover { object-fit: cover; }

/* Line clamp (judul/excerpt rapi seperti portal media) */
.line-clamp-1, .line-clamp-2, .line-clamp-3{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Equal-height cards: gunakan flex tanpa memotong judul */
.lhi-equal-cards > [class*="col-"]{
  display: flex;
}
.lhi-equal-cards > [class*="col-"] > a{
  display: flex;
  flex: 1 1 auto;
  width: 100%;
}
.lhi-equal-cards > [class*="col-"] > .card,
.lhi-equal-cards > [class*="col-"] > a > .card{
  flex: 1 1 auto;
  width: 100%;
}
.lhi-equal-cards .card{
  display: flex;
  flex-direction: column;
}
.lhi-equal-cards .card-body{
  display: flex;
  flex-direction: column;
}
.line-clamp-1{ -webkit-line-clamp: 1; }
.line-clamp-2{ -webkit-line-clamp: 2; }
.line-clamp-3{ -webkit-line-clamp: 3; }

.article-title a{ color: var(--portal-text); }
.article-title a:hover{ color:var(--lhi-primary); }
.article-excerpt{ color: var(--portal-muted); }

.article-body h1, .article-body h2, .article-body h3{
  font-weight: 800;
  letter-spacing: -0.01em;
}
.article-body h2{ font-size: calc(1.45rem * var(--lhi-article-font-scale)); margin: 2rem 0 1rem; }
.article-body h3{ font-size: calc(1.25rem * var(--lhi-article-font-scale)); margin: 1.5rem 0 .75rem; }
.article-body ul, .article-body ol{ padding-left: 1.25rem; margin: 0 0 1rem; }
.article-body li{ margin: .35rem 0; }
.article-body blockquote{
  border-left: 4px solid rgba(17,24,39,.18);
  padding-left: 1rem;
  color: #374151;
  margin: 1.25rem 0;
}
.article-body code{
  background: rgba(17,24,39,.06);
  padding: .1rem .35rem;
  border-radius: .35rem;
}

.footer{
  margin-top: 3rem;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(0,0,0,.08);
  color: var(--portal-muted);
}
.footer a{ color: inherit; }

/* ===== Footer helpers ===== */
.footer-section{
  border-top: 1px solid rgba(0,0,0,.08);
  background: #fff;
}
.footer-logo{
  display: block;
  height: 34px;
  width: auto;
}
@media (max-width: 576px){
  .footer-logo{ height: 32px; }
}
.hover-primary:hover{
  color: var(--lhi-primary) !important;
}
.line-height-lg{
  line-height: 1.6;
}

/* ===== Mobile feed readability & ad-safe rendering ===== */

@media (max-width: 576px){
  /* Allow more breathing room for long titles/excerpts on phones */
  .line-clamp-1{ -webkit-line-clamp: 2; }
  .line-clamp-2{ -webkit-line-clamp: 3; }
  .line-clamp-3{ -webkit-line-clamp: 4; }
  .line-clamp-4{ -webkit-line-clamp: 5; }

  /* Avoid awkward truncation/wrapping on author/date meta row */
  .lhi-meta-row{ flex-wrap: wrap !important; row-gap: .25rem; }
  .lhi-meta-row .text-truncate{
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  /* When list cards are stacked, keep covers from becoming too tall */
  .opini-list-card .ratio.ratio-1x1,
  .article-card-hover .ratio.ratio-1x1{
    --bs-aspect-ratio: 56.25%; /* 16:9 */
  }
}

/* Prevent injected/auto ads from breaking the layout inside feed cards */
.opini-list-card ins.adsbygoogle,
.opini-list-card .adsbygoogle,
.opini-list-card .google-auto-placed,
.opini-list-card iframe,
.article-card-hover ins.adsbygoogle,
.article-card-hover .adsbygoogle,
.article-card-hover .google-auto-placed,
.article-card-hover iframe{
  display: none !important;
}



/* ===== Article recommendations: unify mobile cards (Related / Populer / Berita) ===== */
.reco-title{
  display:block;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}

@media (max-width: 768px){
  .reco-mobile-row .card.card-hover{
    display: flex;
    flex-direction: row;
    align-items: stretch;
  }
  .reco-mobile-row .card.card-hover .ratio{
    flex: 0 0 112px;
    width: 112px;
    --bs-aspect-ratio: 100%; /* square thumb on mobile */
  }
  .reco-mobile-row .card.card-hover .card-body{
    flex: 1;
    padding: .85rem 1rem !important;
  }
  .reco-mobile-row .card.card-hover .small-muted{
    margin-bottom: .35rem;
  }
}
/* ===== Paywall (Kompas-style) ===== */

.paywall-preview{
  position: relative;
}

.paywall-preview-body{
  position: relative;
}

/* Soft fade at the end of preview to mimic “terpotong”. */
.paywall-preview-body::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
  pointer-events: none;
}

.paywall-silhouette{
  margin-top: 1rem;
  position: relative;
  padding-top: .25rem;
  padding-bottom: .25rem;
}

.paywall-silhouette .pw-line{
  height: 12px;
  background: rgba(0,0,0,.08);
  border-radius: 999px;
  margin: 10px 0;
}

/* Fade-out mask for silhouette lines */
.paywall-silhouette::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 75%);
  pointer-events: none;
}

.paywall-gate{
  margin-top: 1.25rem;
  border-radius: 18px;
}

.paywall-gate__inner{
  border: 1px solid rgba(0,0,0,.10);
  border-top: 4px solid rgba(var(--lhi-primary-rgb),.70);
  border-radius: 18px;
  background: #fff;
  padding: 1.65rem;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
}

.paywall-gate__header{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(15,23,42,.08);
  margin-bottom: .25rem;
}

.paywall-gate__icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--lhi-primary-rgb),.10);
  color: rgba(var(--lhi-primary-rgb),1);
  flex: 0 0 auto;
}

.paywall-gate__copy{
  min-width: 0;
}

.paywall-gate__title{
  margin-bottom: .5rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.paywall-gate__desc{
  color: #475569;
  margin-top: .25rem;
  line-height: 1.6;
}

.paywall-gate__subtitle{
  margin-bottom: 0;
}

.paywall-gate__actions{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.paywall-btn{
  border-radius: 999px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  font-weight: 700;
}

.paywall-plan-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .90rem;
}

.paywall-plan-card{
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  padding: 1.10rem;
}

.paywall-plan-card--featured{
  border-color: rgba(var(--lhi-primary-rgb),.35);
  box-shadow: 0 10px 24px rgba(var(--lhi-primary-rgb),.08);
}

.paywall-plan-card__title{
  font-weight: 700;
}

.paywall-plan-card__price{
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
}

.paywall-plan-card__meta{
  font-size: .875rem;
}

.paywall-benefits{
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.paywall-benefits li{
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: .50rem;
}

.paywall-benefits li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 900;
  color: rgba(25,135,84,1);
}

@media (max-width: 576px){
  .paywall-gate{ padding: 1.25rem; }
  .paywall-gate__desc{ font-size: .95rem; }
  .paywall-gate__actions .btn{ width: 100%; }
}

/* --- Article type + excerpt styling --- */
.badge-channel{
  background: rgba(var(--lhi-primary-rgb),.10);
  border: 1px solid rgba(var(--lhi-primary-rgb),.25);
  color: rgba(var(--lhi-primary-rgb),1);
}

.article-lead{
  font-family: var(--lhi-font-serif, Georgia, "Times New Roman", Times, serif);
  font-style: normal;
  font-size: calc(1.0rem * var(--lhi-article-font-scale));
  line-height: 1.75;
  color: #374151;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  transition: font-size .18s ease, line-height .18s ease;
}

@media (max-width: 576px){
  .article-lead{ font-size: calc(.98rem * var(--lhi-article-font-scale)); }
}

/* ===== Reader tools: font size controls (article page) ===== */
.lhi-reader-toggle{
  border-radius: 999px;
  padding: .35rem .6rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  line-height: 1;
}
.lhi-reader-toggle .lhi-aa{
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: .95rem;
}
.lhi-reader-menu{
  min-width: 290px;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}
.lhi-reader-menu .lhi-font-range{
  width: 170px;
  margin: 0;
  accent-color: var(--lhi-primary);
}
.lhi-reader-menu .lhi-font-btn{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.lhi-reader-menu .lhi-font-btn:disabled{
  opacity: .55;
}

@media (max-width: 575.98px){
  .lhi-reader-menu{ min-width: 260px; }
  .lhi-reader-menu .lhi-font-range{ width: 140px; }
}

@media (prefers-reduced-motion: reduce){
  .article-body, .article-lead{ transition: none !important; }
}

/* =========================================================
   Article byline & tools
   ========================================================= */
.lhi-article-byline-tools{
  margin-top: 0.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(15,23,42,.08);
  display:flex;
  flex-direction:column;
  gap:0.5rem;
}
.lhi-article-byline{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:0.5rem;
}
.lhi-article-tools{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:0.5rem;
}

@media (min-width: 768px){
  .lhi-article-byline-tools{
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
  }
  /* Prevent long author names from pushing the tool buttons into a second row */
  .lhi-article-byline{
    min-width: 0;
    flex: 1 1 auto;
  }
  .lhi-article-tools{
    flex: 0 0 auto;
  }
  .lhi-author-name{
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
  }
  .lhi-article-tools{
    justify-content: flex-end;
  }
}


/* Reader / Share / Comment tool buttons */
.lhi-article-tools .lhi-tool-btn{
  position: relative;
  border-radius:999px;
  height:42px;
  padding:0 0.85rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:0.45rem;
  line-height:1;
  border: 1px solid rgba(15,23,42,.16) !important;
  background: #fff !important;
  color: #111827 !important;
  box-shadow: none !important;
  transition: background .12s ease, border-color .12s ease, color .12s ease, transform .12s ease;
}
.lhi-article-tools .lhi-tool-btn:hover{
  background: rgba(var(--lhi-primary-rgb), .06) !important;
  border-color: rgba(var(--lhi-primary-rgb), .35) !important;
  color: var(--lhi-primary) !important;
  transform: translateY(-1px);
}
.lhi-article-tools .lhi-tool-btn:active{
  transform: translateY(0);
}
.lhi-article-tools .lhi-tool-btn:focus,
.lhi-article-tools .lhi-tool-btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(var(--lhi-primary-rgb), .14) !important;
}
.lhi-article-tools .lhi-aa{
  font-weight: 800;
  letter-spacing: -0.02em;
}
.lhi-article-tools .lhi-tool-btn svg{
  flex:0 0 auto;
}
.lhi-article-tools .lhi-comment-badge{
  font-size:0.7rem;
  line-height:1;
  padding:0.25rem 0.4rem;
}
@media (max-width:575.98px){
  .lhi-article-tools .lhi-tool-btn{
    width:44px;
    height:44px;
    padding:0;
  }
  .lhi-article-tools .lhi-tool-btn .lhi-comment-badge{
    position:absolute;
    top:-6px;
    right:-6px;
    padding:0.18rem 0.35rem;
  }
}

/* Comments */
.lhi-comments{
  scroll-margin-top:90px;
}
.lhi-comment-list{
  display:flex;
  flex-direction:column;
  gap:0.75rem;
}
.lhi-comment-card{
  border-radius:14px;
  border:1px solid rgba(15,23,42,0.06);
}
.lhi-comment-avatar{
  width:40px;
  height:40px;
  border-radius:999px;
  background: rgba(var(--lhi-primary-rgb), 0.12);
  color: var(--lhi-primary);
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
}
.lhi-comment-body{
  white-space:pre-wrap;
  line-height:1.65;
}
html[data-theme="dark"] .lhi-comment-card{
  background: rgba(15,23,42,0.45);
  border-color: rgba(148,163,184,0.18);
}
@media (min-width: 768px){
  .lhi-article-byline-tools{
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
  }
  .lhi-article-tools{
    justify-content:flex-end;
  }
}
html[data-theme="dark"] .lhi-article-byline-tools{
  border-bottom-color: rgba(148,163,184,.18);
}


.lhi-par-prefix{
  font-weight: 800;
  text-decoration: none;
  color: inherit;
}

.lhi-par-prefix:hover{
  text-decoration: underline;
}


/* Logo contrast for OS/browser dark mode */
.site-logo{height:42px;width:auto;object-fit:contain;}

/* Dark mode logo/buttons should follow the site theme (not OS preference) */
html[data-theme="dark"] .site-logo{
  filter: brightness(1.1) contrast(1.05);
}
html[data-theme="dark"] .portal-navbar .btn-outline-secondary{
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
}
html[data-theme="dark"] .portal-navbar .btn-outline-secondary:hover{
  background: rgba(255,255,255,0.08);
}


/* =========================================================
   Topic picker pills (Dashboard/Admin forms)
   ========================================================= */
.topic-picker .topic-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(var(--lhi-primary-rgb),.18);
  background:#fff;
  cursor:pointer;
  user-select:none;
  font-size:.875rem;
  line-height:1.2;
}
.topic-picker .topic-pill input[type="checkbox"]{
  margin:0;
}
.topic-picker .topic-pill:hover{
  border-color:rgba(var(--lhi-primary-rgb),.35);
  background:rgba(var(--lhi-primary-rgb),.04);
}
.topic-picker .topic-pill.is-selected{
  border-color:rgba(var(--lhi-primary-rgb),.5);
  background:rgba(var(--lhi-primary-rgb),.08);
}

/* ===== Mobile UX: never truncate titles in cards ===== */
/* Keep excerpts clamped, but titles should wrap fully for readability (better UX). */
@media (max-width: 768px){
  h1.line-clamp-1, h1.line-clamp-2, h1.line-clamp-3,
  h2.line-clamp-1, h2.line-clamp-2, h2.line-clamp-3,
  h3.line-clamp-1, h3.line-clamp-2, h3.line-clamp-3,
  h4.line-clamp-1, h4.line-clamp-2, h4.line-clamp-3,
  h5.line-clamp-1, h5.line-clamp-2, h5.line-clamp-3,
  h6.line-clamp-1, h6.line-clamp-2, h6.line-clamp-3,
  .card-title.line-clamp-1, .card-title.line-clamp-2, .card-title.line-clamp-3,
  .fw-bold.line-clamp-1, .fw-bold.line-clamp-2, .fw-bold.line-clamp-3,
  a.line-clamp-1, a.line-clamp-2, a.line-clamp-3{
    display: block !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
  }

  h1, h2, h3, h4, h5, h6,
  .card-title, .fw-bold, a{
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}
/* ===== Pagination: ad-safe & mobile-friendly =====
   Problem: On mobile, AdSense auto/anchor ads can collide with pagination controls,
   making the UI hard to use. We keep pagination readable by:
   - clearing floats,
   - ensuring the paginator sits above surrounding elements,
   - hiding auto-injected ads inside paginator containers (if any),
   - reserving bottom space so sticky/anchor ads don't cover the controls.
*/

.lhi-pagination,
nav[aria-label="Pagination Navigation"]{
  clear: both;
  position: relative;
  z-index: 2;
}

.lhi-pagination ins.adsbygoogle,
.lhi-pagination .adsbygoogle,
.lhi-pagination .google-auto-placed,
.lhi-pagination iframe,
nav[aria-label="Pagination Navigation"] ins.adsbygoogle,
nav[aria-label="Pagination Navigation"] .adsbygoogle,
nav[aria-label="Pagination Navigation"] .google-auto-placed,
nav[aria-label="Pagination Navigation"] iframe{
  display: none !important;
  visibility: hidden !important;
}

@media (max-width: 768px){
  .lhi-pagination,
  nav[aria-label="Pagination Navigation"]{
    margin-bottom: calc(env(safe-area-inset-bottom, 0px) + 96px);
  }
}

/* ===== CLS hardening (PageSpeed): reserve space for Auto Ads on mobile =====
   Core issue: CLS on mobile (origin-level) is failing mainly because Auto Ads
   are injected asynchronously and expand the layout after the initial paint.

   Strategy (safe, non-destructive):
   - Reserve a sensible minimum height for Auto Ads containers on mobile.
   - Keep desktop untouched as much as possible.
   - Do NOT disable ads; only reduce layout shift.
*/

/* Auto Ads wrappers often use these classes */
.google-auto-placed,
.google-auto-placed .adsbygoogle,
.google-auto-placed ins.adsbygoogle {
  display: block;
}

/* Mobile: reserve typical in-article ad height (responsive rectangle) */
@media (max-width: 768px){
  /* Manual controlled placements */
  body .lhi-ad ins.adsbygoogle{
    min-height: 250px;
  }

  /* Auto Ads placements */
  body .google-auto-placed{
    min-height: 250px;
  }
  .google-auto-placed .adsbygoogle,
  .google-auto-placed ins.adsbygoogle,
  .google-auto-placed iframe{
    min-height: 250px;
  }
}

/* ====================
   Search
   ===================== */
.search-page{
  background:#f8f8f8;
  min-height: calc(100vh - 120px);
}

.search-topbar{
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  box-shadow:0 10px 26px rgba(2,6,23,.08);
  padding:14px 16px;
}

.search-topbar .form-control{
  border:1px solid rgba(15,23,42,.14);
  border-right:0;
  padding:12px 12px;
  border-radius:14px 0 0 14px;
}

.search-topbar .btn{
  border-radius:0 14px 14px 0;
  padding:10px 16px;
  font-weight:700;
}

.search-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.search-tab{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.14);
  background:#fff;
  color:#0f172a;
  font-weight:700;
  text-decoration:none;
  transition:all .15s ease;
}

.search-tab:hover{
  border-color:rgba(var(--lhi-primary-rgb),.35);
  box-shadow:0 6px 14px rgba(2,6,23,.06);
}

.search-tab.active{
  background:var(--lhi-primary);
  border-color:var(--lhi-primary);
  color:#fff;
}

.search-tab .count{
  background:rgba(15,23,42,.06);
  border:1px solid rgba(15,23,42,.12);
  padding:1px 8px;
  border-radius:999px;
  font-weight:800;
  font-size:.75rem;
}

.search-tab.active .count{
  background:rgba(255,255,255,.22);
  border-color:rgba(255,255,255,.35);
  color:#fff;
}

.search-meta{
  color:#64748b;
  font-size:.95rem;
}

.search-results-shell{
  border-radius:18px;
  border:1px solid rgba(15,23,42,.08);
  box-shadow:0 12px 34px rgba(2,6,23,.08);
  overflow:hidden;
}

.search-result{
  padding:16px 18px;
  border-bottom:1px solid rgba(15,23,42,.06);
}

.search-result:last-child{ border-bottom:0; }

.search-result:hover{
  background:rgba(var(--lhi-primary-rgb),.03);
}

.search-result-meta{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:6px;
  flex-wrap:wrap;
}

.result-type{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:.75rem;
  font-weight:800;
  letter-spacing:.2px;
  padding:3px 10px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.12);
  background:rgba(15,23,42,.04);
  color:#0f172a;
}

.result-type-opini{ background:rgba(var(--lhi-primary-rgb),.10); border-color:rgba(var(--lhi-primary-rgb),.24); color:var(--lhi-primary); }
.result-type-berita{ background:rgba(220,53,69,.10); border-color:rgba(220,53,69,.24); color:#dc3545; }
.result-type-materi{ background:rgba(25,135,84,.10); border-color:rgba(25,135,84,.24); color:#198754; }
.result-type-peraturan{ background:rgba(111,66,193,.10); border-color:rgba(111,66,193,.24); color:#6f42c1; }
.result-type-kamus{ background:rgba(13,202,240,.12); border-color:rgba(13,202,240,.28); color:#0dcaf0; }
.result-type-template{ background:rgba(255,193,7,.14); border-color:rgba(255,193,7,.28); color:#b58100; }
.result-type-tryout{ background:rgba(2,6,23,.06); border-color:rgba(2,6,23,.12); color:#111827; }
.result-type-page{ background:rgba(var(--lhi-primary-rgb),.10); border-color:rgba(var(--lhi-primary-rgb),.24); color:var(--lhi-primary); }

.result-date{
  color:#64748b;
  font-size:.8rem;
  font-weight:600;
}

.search-result-url{
  font-size:.85rem;
  color:#0f766e;
  margin-bottom:4px;
  word-break:break-all;
}

.result-title a{
  font-weight:800;
  color:var(--lhi-primary-hover);
  text-decoration:none;
  line-height:1.3;
}

.result-title a:hover{ text-decoration:underline; }

.result-snippet{
  color:#334155;
  line-height:1.6;
  margin-top:6px;
}

.result-snippet mark{
  background:rgba(250,204,21,.25);
  border-radius:4px;
  padding:0 3px;
}

.search-pagination .page-link{
  border-radius:10px !important;
  padding:8px 12px;
}

@media (max-width: 575.98px){
  .search-topbar{ padding:12px 12px; }
  .search-result{ padding:14px 14px; }
  .search-topbar .form-control{ padding:10px 10px; }
}


.lhi-search-suggest-wrap {
  position: relative;
}

.lhi-search-suggest-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: #fff;
  color: #0f172a;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0,0,0,.10);
  overflow: hidden;
  z-index: 2000;
  display: none;
}

.lhi-search-suggest-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.lhi-search-suggest-item:hover,
.lhi-search-suggest-item.active {
  background: rgba(0,0,0,.03);
}

.lhi-search-suggest-item .meta {
  font-size: .8rem;
  color: rgba(0,0,0,.55);
  white-space: nowrap;
}

/* Endnote/Referensi marker: tampil sebagai [1] (bukan superscript) */
.lhi-ref-marker {
  font-size: 0.9em;
  vertical-align: baseline;
  text-decoration: none;
  margin-left: 0.15rem;
  white-space: nowrap;
}

.lhi-ref-marker:hover {
  text-decoration: underline;
}

.lhi-ref-marker.lhi-ref-missing {
  opacity: 0.78;
  background: rgba(15,23,42,.06);
  border: 1px dashed rgba(15,23,42,.18);
}

html[data-theme="dark"] .lhi-ref-marker.lhi-ref-missing {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
}



/* -------------------------------------------------------------
   Share Bar (Artikel)
-------------------------------------------------------------- */
.share-bar{ align-items: center; }
.share-bar .share-btn{
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border-radius: 999px;
  white-space: nowrap;
}
.share-bar .share-icon{
  width: 16px;
  height: 16px;
  display: inline-block;
  flex: 0 0 auto;
}
.share-bar .share-label{ font-weight: 600; }

@media (max-width: 480px){
  .share-bar .share-label{ display: none; }
  .share-bar .share-btn{ padding-left: .6rem; padding-right: .6rem; }
}


/* -------------------------------------------------------------
   Night Mode toggle
-------------------------------------------------------------- */
.lh-theme-toggle{

  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}
.lh-theme-icon{ display: inline-flex; }
.lh-theme-icon svg{ width: 18px; height: 18px; }
.lh-theme-icon[data-theme-icon="sun"]{ display: none; }
html[data-theme="dark"] .lh-theme-icon[data-theme-icon="moon"]{ display: none; }
html[data-theme="dark"] .lh-theme-icon[data-theme-icon="sun"]{ display: inline-flex; }


/* -------------------------------------------------------------
   Night Mode (Dark Theme)

   Scope: we only apply when <html data-theme="dark">.
-------------------------------------------------------------- */
html[data-theme="dark"]{ color-scheme: dark; }

html[data-theme="dark"] body{
  background-color: #0b1220 !important;
  color: #e2e8f0 !important;
}

/* Dark mode: bootstrap utility classes & common surfaces */
html[data-theme="dark"] .text-body{ color: #e2e8f0 !important; }
html[data-theme="dark"] .text-body-secondary{ color: rgba(226,232,240,0.78) !important; }
html[data-theme="dark"] .text-body-tertiary{ color: rgba(226,232,240,0.65) !important; }
html[data-theme="dark"] .link-dark{ color: #e2e8f0 !important; }

html[data-theme="dark"] .bg-white{ background-color: rgba(255,255,255,0.04) !important; }
html[data-theme="dark"] .bg-light{ background-color: rgba(255,255,255,0.06) !important; }
html[data-theme="dark"] .bg-primary .bg-white{ background-color: rgba(255,255,255,0.92) !important; }
html[data-theme="dark"] .bg-primary .bg-light{ background-color: rgba(255,255,255,0.85) !important; }

html[data-theme="dark"] .border,
html[data-theme="dark"] .border-top,
html[data-theme="dark"] .border-bottom,
html[data-theme="dark"] .border-start,
html[data-theme="dark"] .border-end{
  border-color: rgba(255,255,255,0.14) !important;
}

/* Navbar */
html[data-theme="dark"] .navbar{
  background-color: rgba(15, 23, 42, 0.92) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
}
html[data-theme="dark"] .navbar .navbar-brand{
  background: rgba(255,255,255,0.92);
  padding: 6px 10px !important; /* override Bootstrap p-0 */
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
}
html[data-theme="dark"] .navbar-toggler-icon{ filter: invert(1); }
html[data-theme="dark"] .nav-link{
  color: rgba(226,232,240,.78) !important;
}
html[data-theme="dark"] .nav-link:hover,
html[data-theme="dark"] .nav-link.active{
  color: #ffffff !important;
}

/* Dropdowns */
html[data-theme="dark"] .dropdown-menu{
  background-color: rgba(15, 23, 42, 0.98) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
}
html[data-theme="dark"] .dropdown-item{
  color: rgba(226,232,240,.85) !important;
}
html[data-theme="dark"] .dropdown-item:hover{
  background-color: rgba(148, 163, 184, 0.10) !important;
  color: #ffffff !important;
}

/* Cards / surfaces */
html[data-theme="dark"] .card{
  background-color: rgba(15, 23, 42, 0.92) !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.25) !important;
}

/* Typography helpers (Bootstrap classes used across templates) */
html[data-theme="dark"] .text-dark{ color: #e2e8f0 !important; }
html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .text-secondary,
html[data-theme="dark"] .small-muted{
  color: rgba(226,232,240,.70) !important;
}

/* Article lead */
html[data-theme="dark"] .article-lead{
  background: rgba(148, 163, 184, 0.10) !important;
  color: rgba(226,232,240,.85) !important;
  border-left-color: rgba(var(--lhi-primary-rgb), 0.55) !important;
}

/* TOC */
html[data-theme="dark"] .toc-card{
  background: rgba(15, 23, 42, 0.92) !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}
html[data-theme="dark"] .toc-head{
  background: linear-gradient(180deg, rgba(var(--lhi-primary-rgb),.18), rgba(var(--lhi-primary-rgb),0)) !important;
  border-bottom-color: rgba(148,163,184,.14) !important;
}
html[data-theme="dark"] .toc-title,
html[data-theme="dark"] .toc-link{
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .toc-link:hover{ color:#ffffff !important; }

/* Footer */
html[data-theme="dark"] .footer-section{
  background-color: #0f172a !important;
  border-top-color: rgba(148, 163, 184, 0.18) !important;
}
html[data-theme="dark"] .footer-section .footer-brand{
  background: rgba(255,255,255,0.92);
  padding: 6px 10px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
}

/* Buttons */
html[data-theme="dark"] .btn-outline-secondary{
  color: rgba(226,232,240,.82) !important;
  border-color: rgba(148,163,184,.32) !important;
}
html[data-theme="dark"] .btn-outline-secondary:hover{
  background-color: rgba(148,163,184,.12) !important;
  color: #ffffff !important;
}
html[data-theme="dark"] .btn-outline-primary{
  color: rgba(147,197,253,.95) !important;
  border-color: rgba(var(--lhi-primary-rgb),.55) !important;
}
html[data-theme="dark"] .btn-outline-primary:hover{
  background-color: rgba(var(--lhi-primary-rgb),.18) !important;
  color: #ffffff !important;
}

/* Forms */
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select{
  background-color: rgba(15, 23, 42, 0.90) !important;
  color: #e2e8f0 !important;
  border-color: rgba(148, 163, 184, 0.25) !important;
}
html[data-theme="dark"] .form-control::placeholder{
  color: rgba(226,232,240,.45) !important;
}

/* Ads / paywall */
html[data-theme="dark"] .lhi-ad{
  background: rgba(15, 23, 42, 0.92) !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}
html[data-theme="dark"] .paywall-gate{
  background: rgba(15, 23, 42, 0.92) !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}
html[data-theme="dark"] .paywall-gate__header{
  border-bottom-color: rgba(148, 163, 184, 0.18) !important;
}
html[data-theme="dark"] .paywall-gate__desc{
  color: rgba(226,232,240,.70) !important;
}
html[data-theme="dark"] .paywall-plan-card{
  background: rgba(2, 6, 23, 0.35) !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}

/* Search suggestions */
html[data-theme="dark"] .lhi-search-suggest-item:hover,
html[data-theme="dark"] .lhi-search-suggest-item.active{
  background: rgba(148,163,184,.08) !important;
}
html[data-theme="dark"] .lhi-search-suggest-item .meta{
  color: rgba(226,232,240,.55) !important;
}


/* Theme toggle: swap icons based on state */
.lh-theme-toggle .lh-theme-icon-moon{ display: inline-flex; }
.lh-theme-toggle .lh-theme-icon-sun{ display: inline-flex; }
.lh-theme-toggle.is-dark .lh-theme-icon-sun{ display: none !important; }
.lh-theme-toggle.is-dark .lh-theme-icon-moon{ display: inline-flex !important; }



/* Dark mode: search UI */
html[data-theme="dark"] .search-topbar .form-control{
  background: rgba(255,255,255,.04);
  color: #e2e8f0;
  border-color: rgba(255,255,255,.14);
}
html[data-theme="dark"] .search-topbar .form-control::placeholder{
  color: rgba(226,232,240,.55);
}
html[data-theme="dark"] .search-tab{
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: #e2e8f0;
}
html[data-theme="dark"] .search-tab:hover{
  border-color: rgba(147,197,253,.35);
  box-shadow: 0 10px 22px rgba(0,0,0,.28);
}
html[data-theme="dark"] .search-tab .count{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  color: rgba(226,232,240,.85);
}
html[data-theme="dark"] .search-meta,
html[data-theme="dark"] .result-date{
  color: rgba(226,232,240,.68);
}

/* -------------------------------------------------------------------------- */
/* Opini disclaimer + CTA                                                     */
/* -------------------------------------------------------------------------- */

.opini-disclaimer{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(248, 250, 252, 0.95);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}
.opini-disclaimer__icon{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  line-height: 1;
  background: rgba(245, 158, 11, 0.16);
  color: rgba(180, 83, 9, 1);
  flex: 0 0 auto;
}
.opini-disclaimer__title{
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}
.opini-disclaimer__text{
  color: rgba(15, 23, 42, 0.80);
  line-height: 1.55;
}

/* Layout helpers for extended disclaimer (Ruang Publik / Program Kontributor) */
.opini-disclaimer__body{ flex: 1 1 auto; min-width: 0; }
.opini-disclaimer__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.opini-disclaimer__badge{
  display: inline-flex;
  align-items: center;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: rgba(var(--lhi-primary-rgb), .10);
  border: 1px solid rgba(var(--lhi-primary-rgb), .18);
  color: var(--lhi-primary);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .2px;
}
.opini-disclaimer__actions{
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.opini-disclaimer__actions .btn{
  border-radius: 999px;
  font-weight: 800;
  padding: .45rem .9rem;
}

/* Variant: Ruang Publik note (lebih "clean" & professional) */
.opini-disclaimer--ruang-publik{
  border-color: rgba(var(--lhi-primary-rgb), .20);
  background:
    radial-gradient(900px 300px at 10% 0%, rgba(var(--lhi-primary-rgb), .12), rgba(var(--lhi-primary-rgb), 0)),
    rgba(248, 250, 252, 0.96);
}
.opini-disclaimer--ruang-publik .opini-disclaimer__icon{
  background: rgba(var(--lhi-primary-rgb), .14);
  color: var(--lhi-primary);
}

.lhi-opini-cta{
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: radial-gradient(1100px 350px at 12% 0%, rgba(var(--lhi-primary-rgb),.12), rgba(var(--lhi-primary-rgb),0)) , rgba(248,250,252,.95);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}
.lhi-opini-cta__inner{
  padding: 26px 26px;
}
.lhi-opini-cta__badge{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(var(--lhi-primary-rgb),.12);
  border: 1px solid rgba(var(--lhi-primary-rgb),.18);
  color: var(--lhi-primary);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .35px;
  text-transform: uppercase;
}
.lhi-opini-cta__title{
  margin-top: 10px;
  font-weight: 800;
  color: #0f172a;
  font-size: 18px;
}
.lhi-opini-cta__desc{
  margin-top: 6px;
  color: rgba(15,23,42,.76);
  line-height: 1.55;
}

.lhi-opini-cta__actions{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.lhi-opini-cta__actions .btn{
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
}

@media (max-width: 575.98px){
  .lhi-opini-cta__inner{ padding: 18px 16px; }
  .lhi-opini-cta__title{ font-size: 17px; }
}

html[data-theme="dark"] .opini-disclaimer{
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 12px 28px rgba(0,0,0,.26);
}
html[data-theme="dark"] .opini-disclaimer__title{
  color: rgba(226,232,240,.92);
}
html[data-theme="dark"] .opini-disclaimer__text{
  color: rgba(226,232,240,.72);
}
html[data-theme="dark"] .opini-disclaimer__icon{
  background: rgba(245, 158, 11, 0.20);
  color: rgba(253, 230, 138, 0.95);
}

html[data-theme="dark"] .lhi-opini-cta{
  background: radial-gradient(1100px 350px at 12% 0%, rgba(var(--lhi-primary-rgb),.22), rgba(var(--lhi-primary-rgb),0)) , rgba(15, 23, 42, 0.92);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 14px 34px rgba(0,0,0,.30);
}
html[data-theme="dark"] .lhi-opini-cta__badge{
  background: rgba(var(--lhi-primary-rgb),.18);
  border-color: rgba(var(--lhi-primary-rgb),.28);
  color: rgba(147,197,253,.95);
}
html[data-theme="dark"] .lhi-opini-cta__title{
  color: rgba(226,232,240,.92);
}
html[data-theme="dark"] .lhi-opini-cta__desc{
  color: rgba(226,232,240,.70);
}

/* -------------------------------------------------------------------------- */
/* Dark mode hardening: article content & legacy inline colors                 */
/* -------------------------------------------------------------------------- */

/* Make the canvas darker (true night mode) */
html[data-theme="dark"] body{
  background-color: #05060a !important;
}

/* Article content: override legacy fixed colors that can appear too dark */
html[data-theme="dark"] .article-body,
html[data-theme="dark"] .article-body p,
html[data-theme="dark"] .article-body span,
html[data-theme="dark"] .article-body li,
html[data-theme="dark"] .article-body dt,
html[data-theme="dark"] .article-body dd{
  color: rgba(226,232,240,.90) !important;
}
html[data-theme="dark"] .article-body a{
  color: rgba(147,197,253,.95) !important;
}
html[data-theme="dark"] .article-body a:hover{
  color: #ffffff !important;
}
html[data-theme="dark"] .article-body blockquote{
  background: rgba(255,255,255,.04) !important;
  border-left-color: rgba(147,197,253,.45) !important;
  color: rgba(226,232,240,.80) !important;
}
html[data-theme="dark"] .article-body code{
  background: rgba(255,255,255,.06) !important;
  color: rgba(226,232,240,.92) !important;
}
html[data-theme="dark"] .article-body pre{
  background: rgba(2, 6, 23, 0.55) !important;
  border: 1px solid rgba(148,163,184,.18) !important;
  color: rgba(226,232,240,.92) !important;
}
html[data-theme="dark"] .article-body hr{
  border-color: rgba(148,163,184,.22) !important;
}
html[data-theme="dark"] .article-body table{
  color: rgba(226,232,240,.90) !important;
}
html[data-theme="dark"] .article-body th,
html[data-theme="dark"] .article-body td{
  border-color: rgba(148,163,184,.22) !important;
}

/* Some legacy content may contain inline black/gray colors; normalize them in dark mode */
html[data-theme="dark"] .article-body [style*="color:#0"],
html[data-theme="dark"] .article-body [style*="color: #0"],
html[data-theme="dark"] .article-body [style*="color:rgb(0"],
html[data-theme="dark"] .article-body [style*="color: rgb(0"],
html[data-theme="dark"] .article-body [style*="color:rgba(0"],
html[data-theme="dark"] .article-body [style*="color: rgba(0"]{
  color: rgba(226,232,240,.90) !important;
}

/* -------------------------------------------------------------------------- */
/* Dark mode hardening: pricing page (membership)                              */
/* -------------------------------------------------------------------------- */

html[data-theme="dark"] .lhi-pricing{
  background: rgba(2, 6, 23, 0.35) !important;
  border-color: rgba(148,163,184,.18) !important;
}
html[data-theme="dark"] .lhi-pill{
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(148,163,184,.18) !important;
  color: rgba(226,232,240,.88) !important;
}
html[data-theme="dark"] .lhi-pill .dot{
  background: rgba(147,197,253,.85) !important;
}
html[data-theme="dark"] .lhi-h2,
html[data-theme="dark"] .lhi-h3{
  color: rgba(226,232,240,.92) !important;
}
html[data-theme="dark"] .lhi-sub,
html[data-theme="dark"] .lhi-muted{
  color: rgba(226,232,240,.70) !important;
}
html[data-theme="dark"] .lhi-card{
  background: rgba(15, 23, 42, 0.92) !important;
  border-color: rgba(148,163,184,.18) !important;
}
html[data-theme="dark"] .lhi-card:hover{
  border-color: rgba(147,197,253,.40) !important;
}
html[data-theme="dark"] .lhi-feat{
  background: rgba(255,255,255,.04) !important;
  border-color: rgba(148,163,184,.18) !important;
}
html[data-theme="dark"] .lhi-feat .k{
  color: rgba(226,232,240,.92) !important;
}
html[data-theme="dark"] .lhi-feat .v{
  color: rgba(226,232,240,.70) !important;
}
html[data-theme="dark"] .search-results-shell{
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 12px 34px rgba(0,0,0,.35);
}
html[data-theme="dark"] .search-result{
  border-bottom-color: rgba(255,255,255,.08);
}
html[data-theme="dark"] .search-result:hover{
  background: rgba(var(--lhi-primary-rgb),.08);
}
html[data-theme="dark"] .result-type{
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: #e2e8f0;
}
html[data-theme="dark"] .result-type-tryout{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: rgba(226,232,240,.92);
}


html[data-theme="dark"] .search-results-shell{
  background: rgba(255,255,255,.03);
}


/* =========================================================
   Article view — Academic header + cinematic cover + share rail
   (Overrides older Kumparan-like header when article view is updated)
   ========================================================= */

/* Header (Above the Fold) */
.lhi-article-header{
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.lhi-article-title{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.08;
  font-size: clamp(2.0rem, 4.2vw, 3.15rem);
  margin: 0;
}

.lhi-article-meta-center{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
}

.lhi-article-author{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .45rem;
  line-height: 1.35;
}

.lhi-article-meta-line{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: .35rem .75rem;
  line-height: 1.4;
}

.lhi-article-top-tools{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .55rem;
}

/* Meta description / deck (standfirst) */
.lhi-article-dek{
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.035);
  text-align: left;
}

.lhi-article-dek-text{
  font-family: Merriweather, Georgia, serif;
  font-size: calc(1.06rem * var(--lhi-article-font-scale));
  line-height: 1.8;
  color: #374151;
}

@media (max-width: 575.98px){
  .lhi-article-dek{ padding: 12px 14px; }
  .lhi-article-dek-text{ font-size: calc(1.02rem * var(--lhi-article-font-scale)); }
}

@media (max-width: 575.98px){
  .lhi-article-title{
    font-size: clamp(1.75rem, 8.2vw, 2.4rem);
    line-height: 1.12;
  }
}

/* Unified tool buttons (Edit / Aa / Comment) */
.lhi-tool-btn{
  position: relative;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  line-height: 1;
  border: 1px solid rgba(15,23,42,.16) !important;
  background: #fff !important;
  color: #111827 !important;
  box-shadow: none !important;
  transition: background .12s ease, border-color .12s ease, color .12s ease, transform .12s ease;
}
.lhi-tool-btn:hover{
  background: rgba(var(--lhi-primary-rgb), .06) !important;
  border-color: rgba(var(--lhi-primary-rgb), .35) !important;
  color: var(--lhi-primary) !important;
  transform: translateY(-1px);
}
.lhi-tool-btn:active{ transform: translateY(0); }
.lhi-tool-btn:focus,
.lhi-tool-btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(var(--lhi-primary-rgb), .14) !important;
}
.lhi-tool-btn svg{ flex: 0 0 auto; }

.lhi-comment-badge{
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: .7rem;
  line-height: 1;
  padding: .18rem .35rem;
}

@media (max-width: 991.98px){
  .lhi-tool-btn{ width: 44px; height: 44px; }
}

/* Featured image: fixed 16:9, no-crop (maximize without cutting)
   - Foreground: object-fit: contain (no cropping)
   - Background: blurred cover fill (only visible when image ratio is not 16:9), so it doesn't look like a hard "frame".
*/
.lhi-article-featured-media{
  --bs-aspect-ratio: 56.25%; /* 16:9 */
  position: relative;
  overflow: hidden;
  background: rgba(15,23,42,.04);
}

/* Soft background fill: uses CSS var --lhi-cover-url set inline in the view */
.lhi-article-featured-media::before{
  content: "";
  position: absolute;
  inset: -10px;
  background-image: var(--lhi-cover-url);
  background-size: cover;
  background-position: center;
  filter: blur(18px);
  transform: scale(1.06);
  opacity: .28;
  pointer-events: none;
}

@media (max-width: 575.98px){
  .lhi-article-featured-media::before{
    filter: blur(14px);
    opacity: .22;
  }
}

.lhi-article-cover-img{
  width: 100%;
  height: 100%;
  object-fit: contain; /* IMPORTANT: no cropping */
  object-position: center;
  display: block;
  position: relative;
  z-index: 1;
  background: transparent;
}

/* Backward compatibility: if older markup adds .is-contain, keep consistent */
.lhi-article-featured-media.is-contain .lhi-article-cover-img{
  object-fit: contain;
  background: transparent;
}
/* Reading layout: constrain line length + add sticky share rail on desktop */
.lhi-reading-layout{ display: block; }

@media (min-width: 992px){
  .lhi-reading-layout{
    display: grid;
    grid-template-columns: 48px minmax(0, 760px);
    column-gap: 22px;
    justify-content: center;
    align-items: start;
  }
}

/* Article view: full-width content when share rail is removed */
@media (min-width: 992px){
  .lhi-reading-layout--no-rail{
    display: block;
  }
}

.lhi-reading-content{ min-width: 0; }

.lhi-share-rail{
  position: sticky;
  top: 110px;
  align-self: start;
  display: flex;
  justify-content: center;
}

/* Share buttons (no dropdown) */
.lhi-share-wrap{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lhi-share-group{
  display: flex;
  gap: .55rem;
}

.lhi-share-group--rail{ flex-direction: column; }

.lhi-share-group--bottom{
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.lhi-share-group--bottom::-webkit-scrollbar{ display: none; }

/* Sticky top bar share buttons (compact + inverted colors) */
.lhi-share-wrap--sticky{
  flex-direction: row;
  align-items: center;
  position: relative;
}
.lhi-share-group--sticky{
  flex-direction: row;
  gap: .4rem;
}
.lhi-share-group--sticky .lhi-share-icon{
  width: 34px;
  height: 34px;
  border-radius: .85rem;
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.12);
  color: #fff;
}
.lhi-share-group--sticky .lhi-share-icon:hover{
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.32);
  color: #fff;
}
.lhi-share-group--sticky .lhi-share-icon:focus,
.lhi-share-group--sticky .lhi-share-icon:focus-visible{
  box-shadow: 0 0 0 4px rgba(255,255,255,.18);
}
.lhi-share-group--sticky .lhi-share-icon svg{
  width: 16px;
  height: 16px;
}

/* Copy feedback in sticky: show as floating chip to avoid layout shift */
.lhi-share-wrap--sticky [data-share-copied]{
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: rgba(15,23,42,.90);
  color: #fff !important;
  padding: .25rem .5rem;
  border-radius: .65rem;
  border: 1px solid rgba(255,255,255,.18);
}

.lhi-share-icon{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.16);
  background: #fff;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: none;
  transition: background .12s ease, border-color .12s ease, color .12s ease, transform .12s ease;
}
.lhi-share-icon:hover{
  background: rgba(var(--lhi-primary-rgb), .06);
  border-color: rgba(var(--lhi-primary-rgb), .35);
  color: var(--lhi-primary);
  transform: translateY(-1px);
}
.lhi-share-icon:active{ transform: translateY(0); }
.lhi-share-icon:focus,
.lhi-share-icon:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(var(--lhi-primary-rgb), .14);
}
.lhi-share-icon svg{
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Share dropdown (mobile/tablet): single icon trigger + menu */
.lhi-share-dropdown-menu{
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 18px 40px rgba(15,23,42,.12);
  min-width: 220px;
}

/* Mobile: constrain dropdown width so it never overflows viewport (esp. EN labels) */
@media (max-width: 576px){
  .lhi-share-dropdown-menu{
    min-width: min(220px, 92vw);
    max-width: 92vw;
  }
  .lhi-share-dropdown-menu .dropdown-item{ white-space: normal; }
}
.lhi-share-dropdown-menu .dropdown-item{
  border-radius: 12px;
  padding: .65rem .8rem;
  font-weight: 600;
  color: #111827;
}
.lhi-share-dropdown-menu .dropdown-item:hover{
  background: rgba(var(--lhi-primary-rgb), .06);
  color: var(--lhi-primary);
}
.lhi-share-dropdown-menu .dropdown-item:focus,
.lhi-share-dropdown-menu .dropdown-item:focus-visible{
  background: rgba(var(--lhi-primary-rgb), .10);
  color: var(--lhi-primary);
  outline: none;
}
.lhi-share-item-icon{
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

html[data-theme="dark"] .lhi-share-dropdown-menu{
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(148,163,184,0.18);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
html[data-theme="dark"] .lhi-share-dropdown-menu .dropdown-item{
  color: rgba(226,232,240,.92);
}
html[data-theme="dark"] .lhi-share-dropdown-menu .dropdown-item:hover{
  background: rgba(255,255,255,.06);
  color: rgba(147,197,253,.95);
}
html[data-theme="dark"] .lhi-share-dropdown-menu .dropdown-item:focus,
html[data-theme="dark"] .lhi-share-dropdown-menu .dropdown-item:focus-visible{
  background: rgba(255,255,255,.10);
  color: rgba(147,197,253,.95);
}

html[data-theme="dark"] .lhi-article-featured-media.is-contain .lhi-article-cover-img{
  background: rgba(15,23,42,.35);
}

html[data-theme="dark"] .lhi-article-dek{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.12);
}
html[data-theme="dark"] .lhi-article-dek-text{
  color: rgba(255,255,255,.86);
}

/* Comments */
.lhi-comments{
  scroll-margin-top:90px;
}
.lhi-comment-list{
  display:flex;
  flex-direction:column;
  gap:0.75rem;
}
.lhi-comment-card{
  border-radius:14px;
  border:1px solid rgba(15,23,42,0.06);
}
.lhi-comment-avatar{
  width:40px;
  height:40px;
  border-radius:999px;
  background: rgba(var(--lhi-primary-rgb), 0.12);
  color: var(--lhi-primary);
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
}
.lhi-comment-body{
  white-space:pre-wrap;
  line-height:1.65;
}
html[data-theme="dark"] .lhi-comment-card{
  background: rgba(15,23,42,0.45);
  border-color: rgba(148,163,184,0.18);
}
html[data-theme="dark"] .lhi-article-byline-tools{
  border-bottom-color: rgba(148,163,184,.18);
}


.lhi-par-prefix{
  font-weight: 800;
  text-decoration: none;
  color: inherit;
}

.lhi-par-prefix:hover{
  text-decoration: underline;
}


/* Logo contrast for OS/browser dark mode */
.site-logo{height:42px;width:auto;object-fit:contain;}

/* Dark mode logo/buttons should follow the site theme (not OS preference) */
html[data-theme="dark"] .site-logo{
  filter: brightness(1.1) contrast(1.05);
}
html[data-theme="dark"] .portal-navbar .btn-outline-secondary{
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
}
html[data-theme="dark"] .portal-navbar .btn-outline-secondary:hover{
  background: rgba(255,255,255,0.08);
}
}


/* =========================================================
   Topic picker pills (Dashboard/Admin forms)
   ========================================================= */
.topic-picker .topic-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(var(--lhi-primary-rgb),.18);
  background:#fff;
  cursor:pointer;
  user-select:none;
  font-size:.875rem;
  line-height:1.2;
}
.topic-picker .topic-pill input[type="checkbox"]{
  margin:0;
}
.topic-picker .topic-pill:hover{
  border-color:rgba(var(--lhi-primary-rgb),.35);
  background:rgba(var(--lhi-primary-rgb),.04);
}
.topic-picker .topic-pill.is-selected{
  border-color:rgba(var(--lhi-primary-rgb),.5);
  background:rgba(var(--lhi-primary-rgb),.08);
}

/* ===== Mobile UX: never truncate titles in cards ===== */
/* Keep excerpts clamped, but titles should wrap fully for readability (better UX). */
@media (max-width: 768px){
  h1.line-clamp-1, h1.line-clamp-2, h1.line-clamp-3,
  h2.line-clamp-1, h2.line-clamp-2, h2.line-clamp-3,
  h3.line-clamp-1, h3.line-clamp-2, h3.line-clamp-3,
  h4.line-clamp-1, h4.line-clamp-2, h4.line-clamp-3,
  h5.line-clamp-1, h5.line-clamp-2, h5.line-clamp-3,
  h6.line-clamp-1, h6.line-clamp-2, h6.line-clamp-3,
  .card-title.line-clamp-1, .card-title.line-clamp-2, .card-title.line-clamp-3,
  .fw-bold.line-clamp-1, .fw-bold.line-clamp-2, .fw-bold.line-clamp-3,
  a.line-clamp-1, a.line-clamp-2, a.line-clamp-3{
    display: block !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
  }

  h1, h2, h3, h4, h5, h6,
  .card-title, .fw-bold, a{
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}
/* ===== Pagination: ad-safe & mobile-friendly =====
   Problem: On mobile, AdSense auto/anchor ads can collide with pagination controls,
   making the UI hard to use. We keep pagination readable by:
   - clearing floats,
   - ensuring the paginator sits above surrounding elements,
   - hiding auto-injected ads inside paginator containers (if any),
   - reserving bottom space so sticky/anchor ads don't cover the controls.
*/

.lhi-pagination,
nav[aria-label="Pagination Navigation"]{
  clear: both;
  position: relative;
  z-index: 2;
}

.lhi-pagination ins.adsbygoogle,
.lhi-pagination .adsbygoogle,
.lhi-pagination .google-auto-placed,
.lhi-pagination iframe,
nav[aria-label="Pagination Navigation"] ins.adsbygoogle,
nav[aria-label="Pagination Navigation"] .adsbygoogle,
nav[aria-label="Pagination Navigation"] .google-auto-placed,
nav[aria-label="Pagination Navigation"] iframe{
  display: none !important;
  visibility: hidden !important;
}

@media (max-width: 768px){
  .lhi-pagination,
  nav[aria-label="Pagination Navigation"]{
    margin-bottom: calc(env(safe-area-inset-bottom, 0px) + 96px);
  }
}

/* ===== CLS hardening (PageSpeed): reserve space for Auto Ads on mobile =====
   Core issue: CLS on mobile (origin-level) is failing mainly because Auto Ads
   are injected asynchronously and expand the layout after the initial paint.

   Strategy (safe, non-destructive):
   - Reserve a sensible minimum height for Auto Ads containers on mobile.
   - Keep desktop untouched as much as possible.
   - Do NOT disable ads; only reduce layout shift.
*/

/* Auto Ads wrappers often use these classes */
.google-auto-placed,
.google-auto-placed .adsbygoogle,
.google-auto-placed ins.adsbygoogle {
  display: block;
}

/* Mobile: reserve typical in-article ad height (responsive rectangle) */
@media (max-width: 768px){
  /* Manual controlled placements */
  body .lhi-ad ins.adsbygoogle{
    min-height: 250px;
  }

  /* Auto Ads placements */
  body .google-auto-placed{
    min-height: 250px;
  }
  .google-auto-placed .adsbygoogle,
  .google-auto-placed ins.adsbygoogle,
  .google-auto-placed iframe{
    min-height: 250px;
  }
}

/* ====================
   Search
   ===================== */
.search-page{
  background:#f8f8f8;
  min-height: calc(100vh - 120px);
}

.search-topbar{
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  box-shadow:0 10px 26px rgba(2,6,23,.08);
  padding:14px 16px;
}

.search-topbar .form-control{
  border:1px solid rgba(15,23,42,.14);
  border-right:0;
  padding:12px 12px;
  border-radius:14px 0 0 14px;
}

.search-topbar .btn{
  border-radius:0 14px 14px 0;
  padding:10px 16px;
  font-weight:700;
}

.search-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.search-tab{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.14);
  background:#fff;
  color:#0f172a;
  font-weight:700;
  text-decoration:none;
  transition:all .15s ease;
}

.search-tab:hover{
  border-color:rgba(var(--lhi-primary-rgb),.35);
  box-shadow:0 6px 14px rgba(2,6,23,.06);
}

.search-tab.active{
  background:var(--lhi-primary);
  border-color:var(--lhi-primary);
  color:#fff;
}

.search-tab .count{
  background:rgba(15,23,42,.06);
  border:1px solid rgba(15,23,42,.12);
  padding:1px 8px;
  border-radius:999px;
  font-weight:800;
  font-size:.75rem;
}

.search-tab.active .count{
  background:rgba(255,255,255,.22);
  border-color:rgba(255,255,255,.35);
  color:#fff;
}

.search-meta{
  color:#64748b;
  font-size:.95rem;
}

.search-results-shell{
  border-radius:18px;
  border:1px solid rgba(15,23,42,.08);
  box-shadow:0 12px 34px rgba(2,6,23,.08);
  overflow:hidden;
}

.search-result{
  padding:16px 18px;
  border-bottom:1px solid rgba(15,23,42,.06);
}

.search-result:last-child{ border-bottom:0; }

.search-result:hover{
  background:rgba(var(--lhi-primary-rgb),.03);
}

.search-result-meta{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:6px;
  flex-wrap:wrap;
}

.result-type{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:.75rem;
  font-weight:800;
  letter-spacing:.2px;
  padding:3px 10px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.12);
  background:rgba(15,23,42,.04);
  color:#0f172a;
}

.result-type-opini{ background:rgba(var(--lhi-primary-rgb),.10); border-color:rgba(var(--lhi-primary-rgb),.24); color:var(--lhi-primary); }
.result-type-berita{ background:rgba(220,53,69,.10); border-color:rgba(220,53,69,.24); color:#dc3545; }
.result-type-materi{ background:rgba(25,135,84,.10); border-color:rgba(25,135,84,.24); color:#198754; }
.result-type-peraturan{ background:rgba(111,66,193,.10); border-color:rgba(111,66,193,.24); color:#6f42c1; }
.result-type-kamus{ background:rgba(13,202,240,.12); border-color:rgba(13,202,240,.28); color:#0dcaf0; }
.result-type-template{ background:rgba(255,193,7,.14); border-color:rgba(255,193,7,.28); color:#b58100; }
.result-type-tryout{ background:rgba(2,6,23,.06); border-color:rgba(2,6,23,.12); color:#111827; }
.result-type-page{ background:rgba(var(--lhi-primary-rgb),.10); border-color:rgba(var(--lhi-primary-rgb),.24); color:var(--lhi-primary); }

.result-date{
  color:#64748b;
  font-size:.8rem;
  font-weight:600;
}

.search-result-url{
  font-size:.85rem;
  color:#0f766e;
  margin-bottom:4px;
  word-break:break-all;
}

.result-title a{
  font-weight:800;
  color:var(--lhi-primary-hover);
  text-decoration:none;
  line-height:1.3;
}

.result-title a:hover{ text-decoration:underline; }

.result-snippet{
  color:#334155;
  line-height:1.6;
  margin-top:6px;
}

.result-snippet mark{
  background:rgba(250,204,21,.25);
  border-radius:4px;
  padding:0 3px;
}

.search-pagination .page-link{
  border-radius:10px !important;
  padding:8px 12px;
}

@media (max-width: 575.98px){
  .search-topbar{ padding:12px 12px; }
  .search-result{ padding:14px 14px; }
  .search-topbar .form-control{ padding:10px 10px; }
}


.lhi-search-suggest-wrap {
  position: relative;
}

.lhi-search-suggest-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: #fff;
  color: #0f172a;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0,0,0,.10);
  overflow: hidden;
  z-index: 2000;
  display: none;
}

.lhi-search-suggest-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.lhi-search-suggest-item:hover,
.lhi-search-suggest-item.active {
  background: rgba(0,0,0,.03);
}

.lhi-search-suggest-item .meta {
  font-size: .8rem;
  color: rgba(0,0,0,.55);
  white-space: nowrap;
}

/* Endnote/Referensi marker: tampil sebagai [1] (bukan superscript) */
.lhi-ref-marker {
  font-size: 0.9em;
  vertical-align: baseline;
  text-decoration: none;
  margin-left: 0.15rem;
  white-space: nowrap;
}

.lhi-ref-marker:hover {
  text-decoration: underline;
}


/* -------------------------------------------------------------
   Share Bar (Artikel)
-------------------------------------------------------------- */
.share-bar{ align-items: center; }
.share-bar .share-btn{
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border-radius: 999px;
  white-space: nowrap;
}
.share-bar .share-icon{
  width: 16px;
  height: 16px;
  display: inline-block;
  flex: 0 0 auto;
}
.share-bar .share-label{ font-weight: 600; }

@media (max-width: 480px){
  .share-bar .share-label{ display: none; }
  .share-bar .share-btn{ padding-left: .6rem; padding-right: .6rem; }
}


/* -------------------------------------------------------------
   Night Mode toggle
-------------------------------------------------------------- */
.lh-theme-toggle{

  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}
.lh-theme-icon{ display: inline-flex; }
.lh-theme-icon svg{ width: 18px; height: 18px; }
.lh-theme-icon[data-theme-icon="sun"]{ display: none; }
html[data-theme="dark"] .lh-theme-icon[data-theme-icon="moon"]{ display: none; }
html[data-theme="dark"] .lh-theme-icon[data-theme-icon="sun"]{ display: inline-flex; }


/* -------------------------------------------------------------
   Night Mode (Dark Theme)

   Scope: we only apply when <html data-theme="dark">.
-------------------------------------------------------------- */
html[data-theme="dark"]{ color-scheme: dark; }

html[data-theme="dark"] body{
  background-color: #0b1220 !important;
  color: #e2e8f0 !important;
}

/* Dark mode: bootstrap utility classes & common surfaces */
html[data-theme="dark"] .text-body{ color: #e2e8f0 !important; }
html[data-theme="dark"] .text-body-secondary{ color: rgba(226,232,240,0.78) !important; }
html[data-theme="dark"] .text-body-tertiary{ color: rgba(226,232,240,0.65) !important; }
html[data-theme="dark"] .link-dark{ color: #e2e8f0 !important; }

html[data-theme="dark"] .bg-white{ background-color: rgba(255,255,255,0.04) !important; }
html[data-theme="dark"] .bg-light{ background-color: rgba(255,255,255,0.06) !important; }
html[data-theme="dark"] .bg-primary .bg-white{ background-color: rgba(255,255,255,0.92) !important; }
html[data-theme="dark"] .bg-primary .bg-light{ background-color: rgba(255,255,255,0.85) !important; }

html[data-theme="dark"] .border,
html[data-theme="dark"] .border-top,
html[data-theme="dark"] .border-bottom,
html[data-theme="dark"] .border-start,
html[data-theme="dark"] .border-end{
  border-color: rgba(255,255,255,0.14) !important;
}

/* Navbar */
html[data-theme="dark"] .navbar{
  background-color: rgba(15, 23, 42, 0.92) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
}
html[data-theme="dark"] .navbar .navbar-brand{
  background: rgba(255,255,255,0.92);
  padding: 6px 10px !important; /* override Bootstrap p-0 */
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
}
html[data-theme="dark"] .navbar-toggler-icon{ filter: invert(1); }
html[data-theme="dark"] .nav-link{
  color: rgba(226,232,240,.78) !important;
}
html[data-theme="dark"] .nav-link:hover,
html[data-theme="dark"] .nav-link.active{
  color: #ffffff !important;
}

/* Dropdowns */
html[data-theme="dark"] .dropdown-menu{
  background-color: rgba(15, 23, 42, 0.98) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
}
html[data-theme="dark"] .dropdown-item{
  color: rgba(226,232,240,.85) !important;
}
html[data-theme="dark"] .dropdown-item:hover{
  background-color: rgba(148, 163, 184, 0.10) !important;
  color: #ffffff !important;
}

/* Cards / surfaces */
html[data-theme="dark"] .card{
  background-color: rgba(15, 23, 42, 0.92) !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.25) !important;
}

/* Typography helpers (Bootstrap classes used across templates) */
html[data-theme="dark"] .text-dark{ color: #e2e8f0 !important; }
html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .text-secondary,
html[data-theme="dark"] .small-muted{
  color: rgba(226,232,240,.70) !important;
}

/* Article lead */
html[data-theme="dark"] .article-lead{
  background: rgba(148, 163, 184, 0.10) !important;
  color: rgba(226,232,240,.85) !important;
  border-left-color: rgba(var(--lhi-primary-rgb), 0.55) !important;
}

/* TOC */
html[data-theme="dark"] .toc-card{
  background: rgba(15, 23, 42, 0.92) !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}
html[data-theme="dark"] .toc-head{
  background: linear-gradient(180deg, rgba(var(--lhi-primary-rgb),.18), rgba(var(--lhi-primary-rgb),0)) !important;
  border-bottom-color: rgba(148,163,184,.14) !important;
}
html[data-theme="dark"] .toc-title,
html[data-theme="dark"] .toc-link{
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .toc-link:hover{ color:#ffffff !important; }

/* Footer */
html[data-theme="dark"] .footer-section{
  background-color: #0f172a !important;
  border-top-color: rgba(148, 163, 184, 0.18) !important;
}
html[data-theme="dark"] .footer-section .footer-brand{
  background: rgba(255,255,255,0.92);
  padding: 6px 10px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
}

/* Buttons */
html[data-theme="dark"] .btn-outline-secondary{
  color: rgba(226,232,240,.82) !important;
  border-color: rgba(148,163,184,.32) !important;
}
html[data-theme="dark"] .btn-outline-secondary:hover{
  background-color: rgba(148,163,184,.12) !important;
  color: #ffffff !important;
}
html[data-theme="dark"] .btn-outline-primary{
  color: rgba(147,197,253,.95) !important;
  border-color: rgba(var(--lhi-primary-rgb),.55) !important;
}
html[data-theme="dark"] .btn-outline-primary:hover{
  background-color: rgba(var(--lhi-primary-rgb),.18) !important;
  color: #ffffff !important;
}

/* Forms */
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select{
  background-color: rgba(15, 23, 42, 0.90) !important;
  color: #e2e8f0 !important;
  border-color: rgba(148, 163, 184, 0.25) !important;
}
html[data-theme="dark"] .form-control::placeholder{
  color: rgba(226,232,240,.45) !important;
}

/* Ads / paywall */
html[data-theme="dark"] .lhi-ad{
  background: rgba(15, 23, 42, 0.92) !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}
html[data-theme="dark"] .paywall-gate{
  background: rgba(15, 23, 42, 0.92) !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}
html[data-theme="dark"] .paywall-gate__header{
  border-bottom-color: rgba(148, 163, 184, 0.18) !important;
}
html[data-theme="dark"] .paywall-gate__desc{
  color: rgba(226,232,240,.70) !important;
}
html[data-theme="dark"] .paywall-plan-card{
  background: rgba(2, 6, 23, 0.35) !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}

/* Search suggestions */
html[data-theme="dark"] .lhi-search-suggest-item:hover,
html[data-theme="dark"] .lhi-search-suggest-item.active{
  background: rgba(148,163,184,.08) !important;
}
html[data-theme="dark"] .lhi-search-suggest-item .meta{
  color: rgba(226,232,240,.55) !important;
}


/* Theme toggle: swap icons based on state */
.lh-theme-toggle .lh-theme-icon-moon{ display: inline-flex; }
.lh-theme-toggle .lh-theme-icon-sun{ display: inline-flex; }
.lh-theme-toggle.is-dark .lh-theme-icon-sun{ display: none !important; }
.lh-theme-toggle.is-dark .lh-theme-icon-moon{ display: inline-flex !important; }



/* Dark mode: search UI */
html[data-theme="dark"] .search-topbar .form-control{
  background: rgba(255,255,255,.04);
  color: #e2e8f0;
  border-color: rgba(255,255,255,.14);
}
html[data-theme="dark"] .search-topbar .form-control::placeholder{
  color: rgba(226,232,240,.55);
}
html[data-theme="dark"] .search-tab{
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: #e2e8f0;
}
html[data-theme="dark"] .search-tab:hover{
  border-color: rgba(147,197,253,.35);
  box-shadow: 0 10px 22px rgba(0,0,0,.28);
}
html[data-theme="dark"] .search-tab .count{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  color: rgba(226,232,240,.85);
}
html[data-theme="dark"] .search-meta,
html[data-theme="dark"] .result-date{
  color: rgba(226,232,240,.68);
}

/* -------------------------------------------------------------------------- */
/* Opini disclaimer + CTA                                                     */
/* -------------------------------------------------------------------------- */

.opini-disclaimer{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(248, 250, 252, 0.95);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}
.opini-disclaimer__icon{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  line-height: 1;
  background: rgba(245, 158, 11, 0.16);
  color: rgba(180, 83, 9, 1);
  flex: 0 0 auto;
}
.opini-disclaimer__title{
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}
.opini-disclaimer__text{
  color: rgba(15, 23, 42, 0.80);
  line-height: 1.55;
}

/* Layout helpers for extended disclaimer (Ruang Publik / Program Kontributor) */
.opini-disclaimer__body{ flex: 1 1 auto; min-width: 0; }
.opini-disclaimer__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.opini-disclaimer__badge{
  display: inline-flex;
  align-items: center;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: rgba(var(--lhi-primary-rgb), .10);
  border: 1px solid rgba(var(--lhi-primary-rgb), .18);
  color: var(--lhi-primary);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .2px;
}
.opini-disclaimer__actions{
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.opini-disclaimer__actions .btn{
  border-radius: 999px;
  font-weight: 800;
  padding: .45rem .9rem;
}

/* Variant: Ruang Publik note (lebih "clean" & professional) */
.opini-disclaimer--ruang-publik{
  border-color: rgba(var(--lhi-primary-rgb), .20);
  background:
    radial-gradient(900px 300px at 10% 0%, rgba(var(--lhi-primary-rgb), .12), rgba(var(--lhi-primary-rgb), 0)),
    rgba(248, 250, 252, 0.96);
}
.opini-disclaimer--ruang-publik .opini-disclaimer__icon{
  background: rgba(var(--lhi-primary-rgb), .14);
  color: var(--lhi-primary);
}

/* =========================================================
   AI Inserted Blocks (TL;DR, FAQ, Internal Links)
   - Styled for front-end article readability
   - Kept neutral to blend with existing theme
   ========================================================= */

.lhi-ai-block{
  border: 1px solid var(--portal-border);
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  margin: 22px 0;
  box-shadow: 0 6px 18px rgba(0,0,0,.03);
}

.lhi-ai-block .lhi-ai-title,
.lhi-ai-block h2,
.lhi-ai-block h3{
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.lhi-ai-block .lhi-ai-subtitle{
  color: var(--portal-muted);
  font-size: .92rem;
  margin: -2px 0 10px;
}

.lhi-ai-block ul{
  margin: 0;
  padding-left: 1.1rem;
}

.lhi-ai-block li{
  margin: 0 0 6px;
}

.lhi-ai-block li:last-child{
  margin-bottom: 0;
}

/* TL;DR / Key takeaways */
.lhi-ai-block.lhi-tldr{
  border-left: 4px solid rgba(var(--lhi-primary-rgb), .55);
}

/* Internal links block */
.lhi-ai-block.lhi-internal-links ol{
  margin: 0;
  padding-left: 1.1rem;
}

.lhi-ai-block.lhi-internal-links a{
  text-decoration: none;
}

.lhi-ai-block.lhi-internal-links a:hover{
  text-decoration: underline;
}

/* FAQ block */
.lhi-ai-block.lhi-faq details{
  border-top: 1px dashed rgba(0,0,0,.10);
  padding: 10px 0;
}

.lhi-ai-block.lhi-faq details:first-of-type{
  border-top: 0;
  padding-top: 0;
}

.lhi-ai-block.lhi-faq summary{
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.lhi-ai-block.lhi-faq summary::-webkit-details-marker{
  display:none;
}

.lhi-ai-block.lhi-faq summary{
  position: relative;
  padding-left: 22px;
}

.lhi-ai-block.lhi-faq summary:before{
  content: '+';
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  text-align: center;
  color: rgba(var(--lhi-primary-rgb), .9);
  font-weight: 700;
}

.lhi-ai-block.lhi-faq details[open] summary:before{
  content: '–';
}

.lhi-ai-block.lhi-faq p{
  margin: 8px 0 0;
  color: #111827;
  line-height: 1.7;
}

/* Small screens: keep padding comfortable */
@media (max-width: 575.98px){
  .lhi-ai-block{
    padding: 12px 12px;
    border-radius: 12px;
  }
}

/* ==========================================================
 * Admin "Login As" (Impersonation)
 * ========================================================== */
:root{
  --impersonation-bar-height: 44px;
}

body.is-impersonating{
  padding-top: var(--impersonation-bar-height);
}

body.is-impersonating .portal-navbar.sticky-top{
  top: var(--impersonation-bar-height);
}

.lhi-impersonation-bar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: #111827;
  color: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.lhi-impersonation-bar .btn{
  border-radius: 999px;
}

/* ==========================================================
 * Card hover affordance
 * ========================================================== */
/* Used for cards where the whole card is clickable (for example: Ruang Publik featured cards). */
.lhi-card-title{
  transition: color .15s ease, text-decoration-color .15s ease;
}

.lhi-card:hover .lhi-card-title,
.article-card-hover:hover .lhi-card-title{
  color: var(--lhi-primary) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================
 * TOC scrollbar (Daftar Isi)
 * ========================================================== */
/* Hide old up/down scrollbar buttons that may appear on some platforms (notably Windows) */
.toc-body::-webkit-scrollbar-button{
  display: none;
  width: 0;
  height: 0;
}

.toc-body{
  scrollbar-width: thin;
  scrollbar-color: rgba(148,163,184,.55) transparent;
}

/* ==========================================================
 * Search page v2 (modern, Bootstrap 5 friendly)
 * ========================================================== */
.search-page-v2 .search-nav{
  gap: .5rem;
  padding: .15rem;
  scrollbar-width: none; /* Firefox: hide horizontal scrollbar */
  -ms-overflow-style: none; /* IE/Edge legacy */
}

.search-page-v2 .search-nav::-webkit-scrollbar{
  display: none;
  height: 0;
}

.search-page-v2 .search-nav .nav-link{
  white-space: nowrap;
  border-radius: 999px;
  font-weight: 700;
  padding: .48rem .85rem;
  color: #0f172a;
  background: rgba(15,23,42,.04);
  border: 1px solid rgba(15,23,42,.08);
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
}

.search-page-v2 .search-nav .nav-link:hover{
  background: rgba(var(--lhi-primary-rgb), .08);
  border-color: rgba(var(--lhi-primary-rgb), .22);
  color: var(--lhi-primary);
}

.search-page-v2 .search-nav .nav-link:active{
  transform: translateY(1px);
}

.search-page-v2 .search-nav .nav-link.active{
  background: rgba(var(--lhi-primary-rgb), .12) !important;
  border-color: rgba(var(--lhi-primary-rgb), .28) !important;
  color: var(--lhi-primary) !important;
  box-shadow: none;
}

.search-page-v2 .search-nav-count{
  font-size: .75em;
  font-weight: 800;
}

.search-page-v2 .search-results-card .list-group-item{
  border-left: 0;
  border-right: 0;
}

.search-page-v2 .search-item{
  transition: background .12s ease;
}

.search-page-v2 .search-item:hover{
  background: rgba(var(--lhi-primary-rgb), .03);
}

.search-page-v2 .search-item-title{
  font-size: 1.08rem;
  line-height: 1.3;
}

.search-page-v2 .search-item-url{
  overflow-wrap: anywhere;
}

.search-page-v2 .search-item-snippet{
  color: #475569;
  line-height: 1.65;
}

.search-page-v2 mark{
  padding: .06em .22em;
  border-radius: .45rem;
  background: rgba(250, 204, 21, .40);
}

html[data-theme="dark"] .search-page-v2 .search-nav .nav-link{
  color: #e2e8f0;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
}

html[data-theme="dark"] .search-page-v2 .search-nav .nav-link:hover{
  background: rgba(var(--lhi-primary-rgb), .18);
  border-color: rgba(var(--lhi-primary-rgb), .35);
}

html[data-theme="dark"] .search-page-v2 .search-nav .nav-link.active{
  background: rgba(var(--lhi-primary-rgb), .22);
  border-color: rgba(var(--lhi-primary-rgb), .40);
}

html[data-theme="dark"] .search-page-v2 .search-item-snippet{
  color: rgba(226,232,240,.85);
}

html[data-theme="dark"] .search-page-v2 mark{
  background: rgba(250, 204, 21, .28);
}

/* ====================
   Author box (Article view)
   ==================== */
.min-w-0{ min-width: 0 !important; }

.lhi-author-avatar{
  width:64px;
  height:64px;
  overflow:hidden;
  border:1px solid rgba(15,23,42,.08);
}
.lhi-author-avatar__img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.lhi-author-avatar__initial{
  font-weight:800;
  font-size:1.35rem;
  color:rgba(15,23,42,.65);
}
.lhi-author-name{
  font-size:1.06rem;
  line-height:1.25;
}

/* Author name + verified: keep clean on mobile AND desktop (verified stays near name, not pushed far right) */
.lhi-author-name-row{
  flex-wrap: nowrap !important;
  align-items: center !important;
}

.lhi-author-name-row .lhi-author-name{
  /* Override any bootstrap flex-grow so the verified badge doesn't get pushed to far-right on desktop */
  flex: 0 1 auto !important;
  min-width: 0;
}

.lhi-author-name-row .lhi-author-verified{
  margin-top: 0;
}
.lhi-author-bio{
  font-size:.96rem;
}

.lhi-author-box{
  background: linear-gradient(135deg, rgba(var(--lhi-primary-rgb), .08), rgba(255,255,255,.98));
  border: 1px solid rgba(var(--lhi-primary-rgb), .20);
}
html[data-theme="dark"] .lhi-author-box{
  background: linear-gradient(135deg, rgba(var(--lhi-primary-rgb), .18), rgba(15,23,42,.45));
  border-color: rgba(255,255,255,.14);
}

/* Social icons: consistent tap targets + cleaner alignment */
.lhi-author-box .author-social{
  gap: .55rem;
}

/* Desktop + Mobile: social icons sit on their own row (below Contributor badge)
   This keeps the author header clean on desktop and consistent with mobile.
*/
.lhi-author-box .lhi-author-meta-row .author-social{
  flex: 0 0 100%;
  width: 100%;
  justify-content: flex-start;
}

.lhi-author-box .author-social a{
  width:32px;
  height:32px;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.92);
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
}

.lhi-author-box .author-social a:hover{
  background: rgba(var(--lhi-primary-rgb), .08);
  border-color: rgba(var(--lhi-primary-rgb), .25);
  transform: translateY(-1px);
}

html[data-theme="dark"] .lhi-author-box .author-social a{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
}

html[data-theme="dark"] .lhi-author-box .author-social a:hover{
  background: rgba(var(--lhi-primary-rgb), .18);
  border-color: rgba(var(--lhi-primary-rgb), .35);
}

/* Mobile: social icons sit on their own row (below Contributor badge) */
@media (max-width: 576px){
  .lhi-author-box .lhi-author-meta-row{
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: .45rem !important;
  }

  .lhi-author-box .author-social{
    width: 100%;
    justify-content: flex-start;
  }
}

/* Mobile: stop aggressive break-anywhere inside author box name */
@media (max-width: 768px){
  .lhi-author-box .lhi-author-name,
  .lhi-author-box .lhi-author-name a{
    overflow-wrap: break-word !important;
    word-break: normal !important;
    hyphens: none !important;
  }
}

@media (max-width: 576px){
  .lhi-author-avatar{ width:56px; height:56px; }
  .lhi-author-actions .btn{ width:100%; }
  .lhi-author-name{ font-size:1.02rem; }
}

/* --------------------------------------------------------------
   Breadcrumbs (SEO + UX)
   -------------------------------------------------------------- */
.lhi-breadcrumbs{
  font-size: .95rem;
  color: rgba(100,116,139,.95);
}

.lhi-breadcrumbs .breadcrumb-item + .breadcrumb-item::before{
  color: rgba(100,116,139,.65);
}

.lhi-breadcrumbs .breadcrumb-item a{
  color: rgba(100,116,139,.95);
  text-decoration: none;
  text-underline-offset: 3px;
}

.lhi-breadcrumbs .breadcrumb-item a:hover{
  color: var(--primary-color);
  text-decoration: underline;
}

.lhi-breadcrumbs .breadcrumb-item.active{
  color: rgba(15,23,42,.92);
  font-weight: 600;
}

@media (max-width: 576px){
  .lhi-breadcrumbs{ font-size: .875rem; }
  .lhi-breadcrumbs .breadcrumb{ flex-wrap: wrap; }
  .lhi-breadcrumbs .breadcrumb-item{ line-height: 1.25; }
}

html[data-theme="dark"] .lhi-breadcrumbs{
  color: rgba(226,232,240,.78);
}

html[data-theme="dark"] .lhi-breadcrumbs .breadcrumb-item + .breadcrumb-item::before{
  color: rgba(226,232,240,.55);
}

html[data-theme="dark"] .lhi-breadcrumbs .breadcrumb-item a{
  color: rgba(226,232,240,.78);
}

html[data-theme="dark"] .lhi-breadcrumbs .breadcrumb-item a:hover{
  color: rgba(var(--primary-color-rgb), .95);
}

html[data-theme="dark"] .lhi-breadcrumbs .breadcrumb-item.active{
  color: rgba(226,232,240,.92);
}

/* Language switcher (ID/EN) */
.lh-lang-switcher .lh-lang-switcher__toggle{
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 1;
  padding: 0.35rem 0.6rem;
}

.lh-lang-switcher .lh-lang-switcher__flag{
  width: 18px;
  height: 12px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12);
  object-fit: cover;
}

.lh-lang-switcher .dropdown-menu{
  min-width: 12rem;
}

.lh-lang-switcher .dropdown-item.active,
.lh-lang-switcher .dropdown-item:active{
  background: rgba(var(--primary-color-rgb), .12);
  color: rgba(15,23,42,.95);
  font-weight: 600;
}

html[data-theme="dark"] .lh-lang-switcher .dropdown-item.active,
html[data-theme="dark"] .lh-lang-switcher .dropdown-item:active{
  color: rgba(226,232,240,.95);
}

/* ------------------------------------------------------------
   Mobile UX: samakan lebar tombol pemilih bahasa dengan tombol
   "Masuk" dan "Berlangganan" saat navbar collapse.

   Root cause:
   - .portal-nav-actions pada mobile sudah dibuat column & tombol .btn menjadi width:100%.
   - Namun container .lh-lang-switcher (div.dropdown) tetap auto-width, sehingga tombol
     di dalamnya ikut mengecil (100% dari container yang sempit).
   Solusi:
   - Paksa container & tombol toggle menjadi width:100% pada breakpoint collapse.
------------------------------------------------------------ */
@media (max-width: 1199.98px){
  .portal-nav-actions .lh-lang-switcher{
    width: 100%;
  }
  .portal-nav-actions .lh-lang-switcher .lh-lang-switcher__toggle{
    width: 100%;
    justify-content: center;
  }
  .portal-nav-actions .lh-lang-switcher .dropdown-menu{
    width: 100%;
  }
}


/* =========================================================
   LHI mobile overflow guards (article content)
   - prevents oversized embeds/images from breaking layout on small screens
   ========================================================= */
body{
  overflow-x: hidden;
}

.article-body{
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-body img,
.article-body video,
.article-body iframe,
.article-body embed,
.article-body object{
  max-width: 100% !important;
  height: auto !important;
}

.article-body figure{
  max-width: 100%;
}

.article-body table{
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article-body pre{
  max-width: 100%;
  overflow-x: auto;
}

