: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: var(--lhi-font-sans, 'PT Sans', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
  color: var(--portal-text);
}

/* =========================================================
   NEWS HOST BRAND LOCK
   Pastikan subdomain news tetap pakai palet merah-putih-hitam
   (tidak ikut theme biru lama / bootstrap default).
   ========================================================= */
body.is-news-host,
body[data-lhi-site='news']{
  --primary-color: #b91c1c;
  --primary-color-rgb: 185, 28, 28;
  --primary-hover: #991b1b;
  --primary-hover-rgb: 153, 27, 27;
}

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

.portal-navbar.lhi-unified-header .portal-navbar__inner,
.lhi-home .lhi-home-rail .container,
.lhi-newsroom .lhi-home-rail .container{
  max-width: min(1380px, calc(100% - 36px)) !important;
}

/* =========================================================
   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;
  margin-bottom: clamp(2.5rem, 6vw, 4.75rem);
}

.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-preview-gap{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(1.15rem, 2.5vw, 1.75rem);
  margin-top: .75rem;
}
.paywall-preview-gap::before{
  content: "•••";
  letter-spacing: .42rem;
  color: rgba(148,163,184,.88);
  font-size: 1.05rem;
  line-height: 1;
  transform: translateX(.21rem);
}

.paywall-silhouette-wrap{
  margin-top: .55rem;
}

.paywall-silhouette{
  margin-top: 0;
  margin-bottom: clamp(2.65rem, 6.5vw, 4.75rem);
  position: relative;
  padding-top: .25rem;
  padding-bottom: .5rem;
}

.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,.94) 70%, rgba(255,255,255,1) 100%);
  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);
}

.paywall-card{
  max-width: 700px;
  margin: 1.25rem auto 0;
}
.paywall-note{
  background: linear-gradient(180deg, rgba(var(--lhi-primary-rgb), .08), rgba(var(--lhi-primary-rgb), .03));
  border: 1px solid rgba(var(--lhi-primary-rgb), .18);
  color: #374151;
}
.paywall-note .fw-semibold{
  color: #7f1d1d;
}
@media (max-width: 576px){
  .paywall-card{ max-width: 100%; }
  .paywall-gate__desc{ font-size: .95rem; }
  .paywall-gate__actions .btn{ width: 100%; }
  .paywall-preview-gap{
    height: 1.45rem;
    margin-top: .6rem;
  }
  .paywall-preview-gap::before{
    font-size: 1rem;
    letter-spacing: .36rem;
  }
  .paywall-silhouette{
    min-height: 180px;
    padding-bottom: 3.75rem;
  }
}

html[data-theme="dark"] .paywall-preview-gap::before{
  color: rgba(148, 163, 184, .48);
}
html[data-theme="dark"] .paywall-silhouette .pw-line{
  background: rgba(148, 163, 184, .14);
}
html[data-theme="dark"] .paywall-silhouette::after{
  background: linear-gradient(to bottom, rgba(15,23,42,0) 0%, rgba(15,23,42,.84) 62%, rgba(15,23,42,1) 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;
  font-family: var(--lhi-font-sans, 'PT Sans', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
  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);
}
.opini-disclaimer--news{
  border-color: rgba(var(--lhi-primary-rgb), .20);
  background:
    radial-gradient(1100px 350px at 12% 0%, rgba(var(--lhi-primary-rgb), .12), rgba(var(--lhi-primary-rgb), 0)),
    rgba(248, 250, 252, 0.96);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}
.opini-disclaimer--news .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"] .opini-disclaimer--news{
  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"] .opini-disclaimer--news .opini-disclaimer__icon{
  background: rgba(var(--lhi-primary-rgb), .22);
  color: rgba(254, 226, 226, 0.96);
}

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: var(--lhi-font-sans, 'PT Sans', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, 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: var(--lhi-font-serif, 'Lora', 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;
  font-family: var(--lhi-font-sans, 'PT Sans', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
  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;
}

/* ------------------------------------------------------------
   Legal Q&A blocks (Materi Hukum)
   ------------------------------------------------------------ */
.legal-qa-card{
  border: 1px solid rgba(var(--lhi-primary-rgb), 0.10);
}

.legal-qa-head{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.legal-qa-icon{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--lhi-primary-rgb), 0.08);
  color: var(--lhi-primary);
}

.legal-qa-kicker{
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  font-size: 12px;
  color: rgba(33, 37, 41, 0.65);
}

.legal-qa-text{
  font-size: 1.02rem;
  line-height: 1.8;
}

.legal-qa-details{
  width: 100%;
}

.legal-qa-details > summary{
  list-style: none;
}

.legal-qa-details > summary::-webkit-details-marker{
  display: none;
}

.legal-qa-summary{
  cursor: pointer;
  padding: 18px 18px 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.legal-qa-summary-left{
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-qa-chevron{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(33, 37, 41, 0.06);
  transition: transform .15s ease;
}

.legal-qa-details[open] .legal-qa-chevron{
  transform: rotate(180deg);
}

.legal-qa-body{
  padding: 0 18px 18px 18px;
}

.legal-qa-full-title{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0 0;
  padding: 0;
}

.legal-qa-full-title .legal-qa-icon{
  width: 38px;
  height: 38px;
  border-radius: 10px;
}


/* =========================================================
   Legal Q&A (Materi Hukum) — Bold UI v2
   - Stronger contrast
   - Larger section headings
   - Better list/numbering typography
   - Intisari default collapsed (handled in Blade)
   ========================================================= */

.legal-qa-card{
  border: 2px solid rgba(var(--lhi-primary-rgb), 0.18);
  border-left-width: 6px;
  border-radius: 16px;
  background: rgba(var(--lhi-primary-rgb), 0.03);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.legal-qa-card--brief{
  border-color: rgba(var(--lhi-primary-rgb), 0.18);
  border-left-color: rgba(var(--lhi-primary-rgb), 0.55);
  background: rgba(var(--lhi-primary-rgb), 0.03);
}

.legal-qa-kicker{
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 900;
  font-size: .88rem;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--lhi-primary);
  background: rgba(var(--lhi-primary-rgb), 0.12);
  padding: .30rem .62rem;
  border-radius: 999px;
  margin-bottom: .70rem;
}

.legal-qa-kicker .legal-qa-icon{
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(var(--lhi-primary-rgb), 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: .95rem;
  color: var(--lhi-primary);
}

.legal-qa-title{
  font-size: 1.90rem;
  font-weight: 950;
  line-height: 1.08;
  margin: 0 0 1.05rem 0;
  color: #0f172a;
}

.legal-qa-text{
  font-size: 1.02rem;
  line-height: 1.75;
  color: #0f172a;
}

.legal-qa-text p,
.legal-qa-answer p{
  margin: 0 0 .95rem 0;
}

.legal-qa-text ul,
.legal-qa-text ol,
.legal-qa-answer ul,
.legal-qa-answer ol{
  padding-left: 1.25rem;
  margin: .25rem 0 1.0rem 0;
}

.legal-qa-text li,
.legal-qa-answer li{
  margin: .30rem 0;
}

.legal-qa-details{
  border: 0;
  padding: 0;
}

.legal-qa-details > summary{
  cursor: pointer;
  list-style: none;
  padding-right: 2.3rem;
  position: relative;
}

.legal-qa-details > summary::-webkit-details-marker{
  display: none;
}

.legal-qa-details > summary:after{
  content: '';
  position: absolute;
  right: .30rem;
  top: 1.05rem;
  width: .70rem;
  height: .70rem;
  border-right: 2px solid rgba(15, 23, 42, 0.65);
  border-bottom: 2px solid rgba(15, 23, 42, 0.65);
  transform: rotate(45deg);
  transition: transform .18s ease, opacity .18s ease;
  opacity: .75;
}

.legal-qa-details[open] > summary:after{
  transform: rotate(-135deg);
  opacity: .95;
}

.legal-qa-summary-title{
  font-size: 1.80rem;
  font-weight: 950;
  line-height: 1.10;
  margin: .10rem 0 0 0;
  color: #0f172a;
}

.legal-qa-summary-note{
  font-size: .98rem;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.70);
  margin-top: .50rem;
}

.legal-qa-answer{
  margin-top: 1.0rem;
  padding-top: 1.0rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.18);
  font-size: 1.02rem;
  line-height: 1.75;
}

.legal-qa-full-review{
  margin-top: 1.10rem;
}

.legal-qa-full-review-title{
  font-size: 1.95rem;
  font-weight: 950;
  letter-spacing: -0.01em;
}

.legal-qa-full-review-subtitle{
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(15, 23, 42, 0.72);
}

@media (max-width: 576px){
  .legal-qa-card{ border-radius: 14px; }
  .legal-qa-title,
  .legal-qa-summary-title,
  .legal-qa-full-review-title{ font-size: 1.45rem; }
  .legal-qa-text,
  .legal-qa-answer{ font-size: 0.98rem; }
  .legal-qa-details > summary:after{ top: 0.95rem; }
}

/* Match kicker styles for summary + full review */
.legal-qa-summary-kicker{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lhi-primary);
  background: rgba(var(--lhi-primary-rgb),0.10);
  border: 1px solid rgba(var(--lhi-primary-rgb),0.20);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.legal-qa-full-review-kicker{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f172a;
  background: rgba(15,23,42,0.06);
  border: 1px solid rgba(15,23,42,0.12);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

/* ---------------------------------------------------------------------
   Legal / Policy pages (Disclaimer, Privacy, Terms, etc.)
   --------------------------------------------------------------------- */
.lhi-legal-page .article-body h2,
.lhi-legal-page .article-body h3{
  scroll-margin-top: 96px;
}

.lhi-legal-hero{
  background: linear-gradient(135deg, rgba(var(--lhi-primary-rgb), 0.10), rgba(var(--lhi-primary-rgb), 0.03));
  border: 1px solid rgba(var(--lhi-primary-rgb), 0.14);
}

.lhi-legal-badge{
  background: rgba(var(--lhi-primary-rgb), 0.10);
  color: var(--lhi-primary);
  border: 1px solid rgba(var(--lhi-primary-rgb), 0.22);
  font-weight: 800;
}

.lhi-legal-toc{
  position: sticky;
  top: 96px;
}

@media (max-width: 991.98px){
  .lhi-legal-toc{ position: static; }
}

.lhi-legal-toc a{ color: inherit; }
.lhi-legal-toc a:hover{
  color: var(--lhi-primary);
  text-decoration: underline;
}

.lhi-legal-page .table th{ white-space: nowrap; }

.lhi-legal-page .badge.text-bg-light{
  background: rgba(0,0,0,0.04) !important;
}


/* Patch v20: drag-scroll chip bars + in-article house promo banners */
.js-drag-scroll{ cursor: grab; touch-action: pan-y; }
.js-drag-scroll.is-dragging{ cursor: grabbing; user-select:none; }
@media (hover:none){
  .js-drag-scroll{ cursor: auto; }
}

/* Hide horizontal scrollbars on chip rails (keeps them swipe/drag scrollable) */
.lhi-chips-scroll{ scrollbar-width: none; }
.lhi-chips-scroll::-webkit-scrollbar{ height: 0; }
.lhi-home .lhi-chipnav{ scrollbar-width: none; }
.lhi-home .lhi-chipnav::-webkit-scrollbar{ height: 0; }

/* House ads (internal promo banners) */
.lhi-house-ad{ margin: 1.25rem 0; }
.lhi-house-ad__link{ display:block; width:100%; text-decoration:none; }
.lhi-house-ad__frame{
  position:relative;
  width:100%;
  aspect-ratio: 1200 / 150;
  border-radius: 16px;
  overflow:hidden;
  border:1px solid rgba(15,23,42,.12);
  box-shadow: 0 10px 28px rgba(2,6,23,.10);
  background:#0f172a;
  transition: transform .15s ease, box-shadow .15s ease;
}
@media (max-width: 575.98px){
  .lhi-house-ad__frame{ aspect-ratio: 320 / 100; border-radius: 18px; }
}

.lhi-house-ad__frame picture{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
}

.lhi-house-ad__frame picture img,
.lhi-house-ad__frame > img{
  width:100%;
  height:100%;
  display:block;
  object-fit: contain !important;
  object-position: center !important;
}

.lhi-house-ad__badge{
  position:absolute;
  top:10px;
  left:10px;
  z-index:2;
  font-weight:800;
  font-size:.70rem;
  letter-spacing:.10em;
  text-transform:uppercase;
  padding:.25rem .55rem;
  border-radius:999px;
  background: rgba(2,6,23,.62);
  color:#fff;
  backdrop-filter: blur(6px);
}

.lhi-house-ad__link:hover .lhi-house-ad__frame{ transform: translateY(-1px); box-shadow: 0 14px 34px rgba(2,6,23,.14); }
.lhi-house-ad__link:focus-visible .lhi-house-ad__frame{ outline:3px solid rgba(220,38,38,.35); outline-offset:2px; }

.opini-topics-scroll{ scrollbar-width:none; }
.opini-topics-scroll::-webkit-scrollbar{ height:0; }


/* =========================================================
   Article compact sync v9
   ========================================================= */
.lhi-article-shell{
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}
.lhi-breadcrumb-wrap{
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.lhi-article-card{ border-radius: 18px; }
.lhi-article-card__header{
  padding-top: 1.75rem !important;
  padding-bottom: 1.15rem !important;
}
.lhi-article-card__content{
  padding-top: 1.35rem !important;
}
.lhi-article-header{
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.lhi-article-dek{
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.lhi-article-kicker{
  gap: .35rem !important;
  margin-bottom: .75rem !important;
}
.lhi-article-kicker .badge{
  font-size: .68rem;
  padding: .34rem .58rem;
  letter-spacing: .02em;
}
.lhi-article-title{
  font-size: clamp(1.84rem, 2.48vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: pretty;
  max-width: min(100%, 24.5ch);
  margin-left: auto;
  margin-right: auto;
}
.lhi-article-meta-center{ gap: .3rem; }
.lhi-article-author{ font-size: .98rem; }
.lhi-article-meta-line{
  font-size: .9rem;
  gap: .2rem .55rem;
}
.lhi-article-top-tools{
  display: flex !important;
  flex-wrap: nowrap !important;
  width: max-content;
  max-width: 100%;
  margin: .85rem auto 0 !important;
  gap: .42rem;
}
.lhi-article-top-tools > *{ flex: 0 0 auto !important; }
.lhi-article-top-tools .dropdown{ display: inline-flex !important; }
.lhi-tool-btn,
.lhi-article-tools .lhi-tool-btn{
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0 !important;
  border-radius: 10px;
}
.lhi-tool-btn svg,
.lhi-article-tools .lhi-tool-btn svg{ width: 16px; height: 16px; }
.lhi-reader-toggle{ padding: 0 !important; }
.lhi-reader-toggle .lhi-aa,
.lhi-article-tools .lhi-aa{
  font-size: .95rem;
  line-height: 1;
}
.lhi-comment-badge,
.lhi-article-tools .lhi-comment-badge{
  top: -5px;
  right: -5px;
  font-size: .64rem;
  padding: .16rem .28rem;
}
.lhi-article-dek{
  padding: 11px 13px;
  border-radius: 10px;
}
.lhi-article-dek-text{
  font-size: calc(1rem * var(--lhi-article-font-scale));
  line-height: 1.65;
}
.lhi-reading-layout--no-rail{
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.article-body{
  font-size: calc(1rem * var(--lhi-article-font-scale));
  line-height: 1.8;
}
.article-body h2{ font-size: calc(1.28rem * var(--lhi-article-font-scale)); margin: 1.65rem 0 .85rem; }
.article-body h3{ font-size: calc(1.16rem * var(--lhi-article-font-scale)); margin: 1.35rem 0 .7rem; }
.toc-card,
.opini-disclaimer,
.article-author-card,
.lhi-article-pagination,
.article-body.paywalled-content + .paywall-card,
.lhi-reading-content > .lhi-ad,
.lhi-reading-content > .lhi-ad-wrap,
.lhi-reading-content > .lhi-ad-placeholder,
.lhi-reading-content > .article-references,
.lhi-reading-content > .cover-caption,
.lhi-reading-content > .lhi-inline-product-card,
.lhi-reading-content > .lhi-house-ad,
.lhi-reading-content > .lhi-house-ad-card,
.lhi-reading-content > .lhi-inline-banner,
.lhi-reading-content > .lhi-inline-cta{
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 991.98px){
  .lhi-article-shell,
  .lhi-breadcrumb-wrap{ max-width: 100%; }
  .lhi-article-card__header,
  .lhi-article-card__content{
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .lhi-article-header,
  .lhi-article-dek,
  .lhi-reading-layout--no-rail,
  .toc-card,
  .opini-disclaimer,
  .lhi-reading-content > .lhi-ad,
  .lhi-reading-content > .lhi-ad-wrap,
  .lhi-reading-content > .article-references,
  .lhi-reading-content > .lhi-house-ad,
  .lhi-reading-content > .lhi-house-ad-card,
  .lhi-reading-content > .lhi-inline-banner,
  .lhi-reading-content > .lhi-inline-cta{ max-width: 100%; }
}
@media (max-width: 575.98px){
  .lhi-article-title{
    font-size: clamp(1.6rem, 7.2vw, 2rem);
    line-height: 1.14;
    max-width: 100%;
  }
  .lhi-article-author{ font-size: .9rem; }
  .lhi-article-meta-line{ font-size: .82rem; }
  .lhi-article-top-tools{ gap: .35rem; }
  .lhi-tool-btn,
  .lhi-article-tools .lhi-tool-btn{
    width: 34px;
    min-width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .lhi-tool-btn svg,
  .lhi-article-tools .lhi-tool-btn svg{ width: 15px; height: 15px; }
  .lhi-article-dek{ padding: 10px 12px; }
  .lhi-article-dek-text{
    font-size: calc(.95rem * var(--lhi-article-font-scale));
    line-height: 1.6;
  }
  .article-body{
    font-size: calc(.97rem * var(--lhi-article-font-scale));
    line-height: 1.75;
  }
}

/* Article utility cards should follow the same full reading column width as Program Kontributor. */
.lhi-reading-content > .toc-card,
.lhi-reading-content > .opini-disclaimer,
.lhi-reading-content > .lhi-opini-cta{
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}


/* =====================================================================
   Paywall component hardening
   Keep news paywall visually identical to non-news/shared paywall card.
   ===================================================================== */
.paywall-card.paywall-gate{
  max-width: 700px;
  margin: 1.25rem auto 0;
  font-family: var(--lhi-font-sans, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
}
.paywall-card.paywall-gate .paywall-gate__inner{
  border: 1px solid rgba(0,0,0,.10) !important;
  border-top: 4px solid rgba(var(--lhi-primary-rgb), .70) !important;
  border-radius: 18px !important;
  background: #fff !important;
  padding: 1.65rem !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.06) !important;
}
.paywall-card.paywall-gate .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-card.paywall-gate .paywall-gate__title{
  margin-bottom: .5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #111827;
}
.paywall-card.paywall-gate .paywall-gate__subtitle{
  color: #374151;
  line-height: 1.65;
}
.paywall-card.paywall-gate .paywall-benefits{
  list-style: none !important;
  padding-left: 0 !important;
  margin: 1rem 0 0 !important;
}
.paywall-card.paywall-gate .paywall-benefits li{
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: .50rem;
}
.paywall-card.paywall-gate .paywall-benefits li:last-child{
  margin-bottom: 0;
}
.paywall-card.paywall-gate .paywall-benefits li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 900;
  color: rgba(25,135,84,1);
}
.paywall-card.paywall-gate .paywall-pricing{
  border-radius: 18px !important;
  box-shadow: 0 10px 24px rgba(15,23,42,.06) !important;
}
.paywall-card.paywall-gate .paywall-pricing .card-body{
  padding: 1.5rem !important;
}
.paywall-card.paywall-gate .paywall-note{
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(var(--lhi-primary-rgb), .08), rgba(var(--lhi-primary-rgb), .03)) !important;
  border: 1px solid rgba(var(--lhi-primary-rgb), .18) !important;
  color: #374151 !important;
}
.paywall-card.paywall-gate .paywall-note .fw-semibold{
  color: #7f1d1d !important;
}
.paywall-card.paywall-gate .paywall-gate__actions{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.paywall-card.paywall-gate .paywall-gate__actions .btn{
  border-radius: .75rem;
  font-weight: 700;
}
body[data-lhi-site='news'] .article-body h2,
body[data-lhi-site='news'] .article-body h3,
body[data-lhi-site='news'] .article-body h4{
  font-family: var(--lhi-font-sans, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
  font-weight: 800;
  letter-spacing: -0.01em;
}
body[data-lhi-site='news'] .article-body h4{
  font-size: calc(1.12rem * var(--lhi-article-font-scale));
  line-height: 1.45;
  margin: 1.15rem 0 .65rem;
}
@media (max-width: 576px){
  .paywall-card.paywall-gate{
    max-width: 100%;
  }
  .paywall-card.paywall-gate .paywall-gate__inner{
    padding: 1.1rem !important;
  }
  .paywall-card.paywall-gate .paywall-gate__actions .btn{
    width: 100%;
  }
}


/* =========================================================
   Article tuning v2 — narrower reading measure + calmer header rhythm
   ========================================================= */
.lhi-article-header{
  max-width:min(100%, 42rem);
}
.lhi-article-title{
  font-size:clamp(1.9rem, 3.45vw, 2.95rem);
  line-height:1.07;
  text-wrap:balance;
}
.lhi-article-dek{
  max-width:min(100%, 45rem);
  padding:13px 15px;
  border-radius:12px;
}
.lhi-article-top-tools{
  gap:.45rem;
}
.lhi-tool-btn,
.lhi-reader-toggle{
  border-color:rgba(15,23,42,.11) !important;
  background:rgba(15,23,42,.025) !important;
}
.lhi-tool-btn:hover,
.lhi-reader-toggle:hover{
  background:rgba(var(--lhi-primary-rgb), .06) !important;
}
@media (min-width: 768px){
  .lhi-article-header{
    text-align:left !important;
  }
  .lhi-article-kicker,
  .lhi-article-author,
  .lhi-article-meta-line,
  .lhi-article-top-tools{
    justify-content:flex-start;
  }
  .lhi-article-meta-center{
    align-items:flex-start;
  }
  .lhi-article-kicker{
    gap:.35rem .65rem !important;
  }
  .lhi-article-kicker .badge{
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    font-size:.74rem;
    font-weight:800;
    letter-spacing:.12em;
    text-transform:uppercase;
  }
}
@media (max-width: 767.98px){
  .lhi-article-title{
    font-size:clamp(1.72rem, 7.2vw, 2.28rem);
    line-height:1.1;
  }
  .lhi-tool-btn,
  .lhi-reader-toggle{
    width:38px;
    height:38px;
  }
  .lhi-article-dek{
    padding:.85rem .9rem;
  }
}
html[data-theme="dark"] .lhi-tool-btn,
html[data-theme="dark"] .lhi-reader-toggle{
  background:rgba(255,255,255,.05) !important;
  border-color:rgba(148,163,184,.16) !important;
}


/* =========================================================
   Article header redesign v3 — centered hierarchy + labeled actions
   ========================================================= */
.lhi-article-card--streamlined .lhi-article-header--compact{
  text-align:center !important;
  max-width:min(100%, 43rem);
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-kicker,
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-meta-center,
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-author,
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-meta-line,
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-top-tools{
  justify-content:center !important;
  align-items:center !important;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-title{
  font-size:clamp(1.82rem, 2.7vw, 2.68rem);
  line-height:1.05;
  max-width:min(100%, 16.4ch);
  margin-left:auto !important;
  margin-right:auto !important;
  text-wrap:balance;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-kicker{
  gap:.45rem .55rem !important;
  margin-bottom:.95rem !important;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-kicker .badge{
  padding:.42rem .82rem !important;
  border-radius:999px !important;
  border:1px solid rgba(15,23,42,.08) !important;
  background:rgba(255,255,255,.82) !important;
  box-shadow:none !important;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-kicker .badge-channel{
  color:var(--lhi-primary);
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-kicker .badge-soft{
  color:#64748b;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-meta-center--panel{
  width:min(100%, 36rem);
  margin:.15rem auto 0;
  display:grid;
  gap:.75rem;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-band{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.78rem;
  width:min(100%, 31rem);
  max-width:100%;
  margin:0 auto;
  padding:.72rem .96rem;
  border-radius:1.15rem;
  border:1px solid rgba(15,23,42,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  box-shadow:0 12px 32px rgba(15,23,42,.05);
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-avatar{
  width:46px;
  height:46px;
  border-radius:999px;
  overflow:hidden;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 46px;
  border:1px solid rgba(185,28,28,.12);
  background:linear-gradient(180deg, rgba(185,28,28,.08), rgba(15,23,42,.04));
  color:var(--lhi-primary);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55);
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-avatar__img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-avatar__initial{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  font-size:.88rem;
  font-weight:800;
  line-height:1;
  letter-spacing:.04em;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:.14rem;
  text-align:left;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-name-row{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:.34rem;
  min-width:0;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-author-name,
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-name{
  color:#111827 !important;
  font-weight:760 !important;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-name{
  font-size:1.04rem;
  line-height:1.2;
  text-wrap:balance;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-verified{
  color:var(--lhi-primary);
  flex:0 0 auto;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:.18rem .45rem;
  min-width:0;
  color:#667085;
  font-size:.82rem;
  line-height:1.4;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-role{
  font-weight:700;
  color:#667085;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-link{
  color:var(--lhi-primary);
  font-weight:700;
  text-decoration:none;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-link:hover{
  color:#991b1b;
  text-decoration:underline;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-sep{
  color:#c0c7d4;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-meta-band{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:.48rem .55rem;
  width:100%;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-meta-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  padding:.48rem .8rem;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.07);
  background:rgba(15,23,42,.035);
  color:#667085;
  font-size:.92rem;
  line-height:1.38;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-meta-chip svg{
  width:15px;
  height:15px;
  opacity:.75;
  flex:0 0 auto;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-actions-band{
  display:flex;
  flex-wrap:wrap;
  justify-content:center !important;
  gap:.55rem;
  width:min(100%, 37rem);
  margin:.05rem auto 0 !important;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-tool-btn--label,
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-reader-toggle.lhi-tool-btn--label{
  width:auto !important;
  min-width:0 !important;
  height:auto !important;
  padding:.7rem .94rem !important;
  border-radius:999px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:.5rem;
  background:#fff !important;
  border:1px solid rgba(15,23,42,.09) !important;
  box-shadow:0 10px 30px rgba(15,23,42,.04);
  color:#334155 !important;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-tool-btn--label .lhi-tool-btn__label{
  display:inline-block;
  font-size:.88rem;
  line-height:1;
  font-weight:650;
  white-space:nowrap;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-tool-btn--label svg{
  width:16px !important;
  height:16px !important;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-tool-btn--label .lhi-aa{
  font-size:1rem;
  font-weight:800;
  line-height:1;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-tool-btn--label .lhi-comment-badge{
  position:static !important;
  transform:none !important;
  margin-left:.15rem;
  min-width:1.35rem;
  height:1.35rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-reader-menu,
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-share-dropdown-menu{
  text-align:left;
}
@media (max-width: 767.98px){
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-title{
    font-size:clamp(1.66rem, 6.7vw, 2.1rem);
    max-width:min(100%, 14.5ch);
    line-height:1.08;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-meta-center--panel{
    width:100%;
    gap:.66rem;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-band{
    width:100%;
    justify-content:flex-start;
    padding:.62rem .78rem;
    gap:.68rem;
    border-radius:1rem;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-avatar{
    width:40px;
    height:40px;
    flex-basis:40px;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-avatar__initial{
    font-size:.8rem;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-name{
    font-size:.96rem;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-meta{
    font-size:.78rem;
    gap:.16rem .4rem;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-meta-chip{
    font-size:.84rem;
    padding:.42rem .68rem;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-actions-band{
    width:100%;
    gap:.5rem;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-tool-btn--label,
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-reader-toggle.lhi-tool-btn--label{
    flex:1 1 calc(50% - .5rem);
    padding:.74rem .78rem !important;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-tool-btn--label .lhi-tool-btn__label{
    font-size:.84rem;
  }
}
html[data-theme="dark"] .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-band,
html[data-theme="dark"] .lhi-article-card--streamlined .lhi-article-header--compact .lhi-tool-btn--label,
html[data-theme="dark"] .lhi-article-card--streamlined .lhi-article-header--compact .lhi-reader-toggle.lhi-tool-btn--label{
  background:rgba(15,23,42,.72) !important;
  border-color:rgba(148,163,184,.18) !important;
  color:#e5e7eb !important;
}
html[data-theme="dark"] .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-kicker .badge{
  background:rgba(15,23,42,.55) !important;
  border-color:rgba(148,163,184,.14) !important;
}
html[data-theme="dark"] .lhi-article-card--streamlined .lhi-article-header--compact .lhi-author-name,
html[data-theme="dark"] .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-name{
  color:#f8fafc !important;
}
html[data-theme="dark"] .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-avatar{
  border-color:rgba(248,113,113,.22);
  background:linear-gradient(180deg, rgba(248,113,113,.16), rgba(15,23,42,.32));
  color:#fecaca;
}
html[data-theme="dark"] .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-meta,
html[data-theme="dark"] .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-role,
html[data-theme="dark"] .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-sep{
  color:#cbd5e1;
}
html[data-theme="dark"] .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-link{
  color:#fda4af;
}
html[data-theme="dark"] .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-meta-chip{
  background:rgba(148,163,184,.08);
  border-color:rgba(148,163,184,.14);
  color:#cbd5e1;
}

/* v16 byline tuning — more cohesive, lighter, smaller */
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-meta-center--panel{
  width:min(100%, 34rem);
  gap:.62rem;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-band{
  width:fit-content;
  max-width:min(100%, 27.5rem);
  justify-self:center;
  justify-content:flex-start;
  gap:.62rem;
  padding:.52rem .76rem;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.06);
  background:rgba(255,255,255,.86);
  box-shadow:0 1px 0 rgba(15,23,42,.03);
  backdrop-filter:saturate(140%) blur(6px);
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-band--name-only{
  max-width:min(100%, 23rem);
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-avatar{
  width:40px;
  height:40px;
  flex-basis:40px;
  border-color:rgba(185,28,28,.10);
  box-shadow:none;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-avatar__initial{
  font-size:.8rem;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-copy{
  gap:.08rem;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-band--name-only .lhi-article-byline-copy{
  gap:0;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-name-row{
  gap:.28rem;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-name{
  font-size:.98rem;
  line-height:1.18;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-verified svg{
  width:14px;
  height:14px;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-meta{
  gap:.1rem .34rem;
  font-size:.78rem;
  line-height:1.3;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-role{
  font-weight:650;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-link{
  font-weight:700;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-meta-band{
  gap:.44rem .5rem;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-meta-chip{
  padding:.42rem .72rem;
  font-size:.88rem;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-actions-band{
  width:min(100%, 35rem);
  gap:.48rem;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-tool-btn--label,
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-reader-toggle.lhi-tool-btn--label{
  padding:.62rem .86rem !important;
  box-shadow:none;
  background:rgba(255,255,255,.88) !important;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-tool-btn--label .lhi-tool-btn__label{
  font-size:.85rem;
}
@media (min-width: 768px) and (max-width: 1199.98px){
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-meta-center--panel{
    width:min(100%, 32rem);
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-band{
    max-width:min(100%, 25rem);
    padding:.5rem .72rem;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-avatar{
    width:38px;
    height:38px;
    flex-basis:38px;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-name{
    font-size:.95rem;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-meta{
    font-size:.76rem;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-meta-chip{
    font-size:.85rem;
    padding:.4rem .68rem;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-tool-btn--label,
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-reader-toggle.lhi-tool-btn--label{
    padding:.58rem .78rem !important;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-tool-btn--label .lhi-tool-btn__label{
    font-size:.83rem;
  }
}
@media (max-width: 767.98px){
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-meta-center--panel{
    gap:.56rem;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-band{
    width:min(100%, 22rem);
    max-width:100%;
    padding:.46rem .64rem;
    gap:.54rem;
    border-radius:.92rem;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-band--name-only{
    width:auto;
    max-width:100%;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-avatar{
    width:36px;
    height:36px;
    flex-basis:36px;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-avatar__initial{
    font-size:.76rem;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-name{
    font-size:.91rem;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-meta{
    font-size:.73rem;
    gap:.08rem .28rem;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-meta-chip{
    font-size:.81rem;
    padding:.38rem .6rem;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-actions-band{
    gap:.44rem;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-tool-btn--label,
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-reader-toggle.lhi-tool-btn--label{
    padding:.66rem .72rem !important;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-tool-btn--label .lhi-tool-btn__label{
    font-size:.82rem;
  }
}
html[data-theme="dark"] .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-band,
html[data-theme="dark"] .lhi-article-card--streamlined .lhi-article-header--compact .lhi-tool-btn--label,
html[data-theme="dark"] .lhi-article-card--streamlined .lhi-article-header--compact .lhi-reader-toggle.lhi-tool-btn--label{
  background:rgba(15,23,42,.66) !important;
  box-shadow:none;
}


/* ==========================================================
   v17 fallback — compact byline + mobile breaking ticker
   ========================================================== */
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-title{
  max-width:min(100%, 18.2ch);
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-meta-center--panel{
  width:min(100%, 33rem);
  gap:.54rem;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-band{
  width:auto;
  max-width:min(100%, 24.5rem);
  gap:.5rem;
  padding:.38rem .58rem;
  border-radius:1rem;
  background:rgba(255,255,255,.76);
  box-shadow:0 1px 0 rgba(15,23,42,.03);
  border:1px solid rgba(15,23,42,.06);
  backdrop-filter:none;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-band--name-only{
  max-width:min(100%, 21rem);
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-avatar{
  width:34px;
  height:34px;
  flex-basis:34px;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-avatar__initial{ font-size:.74rem; }
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-name{ font-size:.93rem; line-height:1.16; }
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-meta{ font-size:.74rem; line-height:1.24; gap:.08rem .28rem; }
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-meta-chip{ padding:.4rem .68rem; font-size:.86rem; }
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-actions-band{ width:min(100%, 34rem); gap:.46rem; }
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-tool-btn--label,
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-reader-toggle.lhi-tool-btn--label{ padding:.58rem .82rem !important; }
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-tool-btn--label .lhi-tool-btn__label{ font-size:.84rem; }
@media (min-width: 768px) and (max-width: 1199.98px){
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-title{ max-width:min(100%, 17.4ch); }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-band{ max-width:min(100%, 23.5rem); padding:.36rem .54rem; }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-avatar{ width:32px; height:32px; flex-basis:32px; }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-name{ font-size:.9rem; }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-meta{ font-size:.72rem; }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-meta-chip{ font-size:.83rem; padding:.38rem .62rem; }
}
@media (max-width: 767.98px){
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-title{ max-width:min(100%, 15.4ch); font-size:clamp(1.58rem, 6.1vw, 1.96rem); }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-band{ max-width:min(100%, 20.25rem); padding:.34rem .48rem; gap:.46rem; border-radius:.95rem; }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-band--name-only{ max-width:min(100%, 18.5rem); }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-avatar{ width:30px; height:30px; flex-basis:30px; }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-avatar__initial{ font-size:.7rem; }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-name{ font-size:.86rem; }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-meta{ font-size:.7rem; gap:.06rem .22rem; }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-link,
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-sep{ display:none; }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-meta-chip{ font-size:.79rem; padding:.36rem .56rem; }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-tool-btn--label .lhi-tool-btn__label{ font-size:.8rem; }

  .lhi-home{ --lhi-ticker-speed: 34s; }
  .lhi-home .lhi-ticker{ overflow:hidden; }
  .lhi-home .lhi-ticker__inner{ align-items:center !important; gap:.42rem !important; padding:.24rem 0 !important; }
  .lhi-home .lhi-ticker__badge{ padding:.22rem .56rem !important; font-size:.62rem !important; margin-top:0 !important; }
  .lhi-home .lhi-ticker__viewport{ overflow:hidden !important; overflow-y:hidden !important; mask-image:none !important; -webkit-mask-image:none !important; scroll-snap-type:none !important; -webkit-overflow-scrolling:auto !important; }
  .lhi-home .lhi-ticker__track{ gap:.92rem !important; width:max-content !important; padding:.02rem .6rem .02rem 0 !important; animation:lhiTicker var(--lhi-ticker-speed) linear infinite !important; will-change:transform; }
  .lhi-home .lhi-ticker__item,
  .lhi-home .lhi-ticker__item[aria-hidden="true"]{ display:inline-flex !important; align-items:center !important; gap:.36rem !important; white-space:nowrap !important; max-width:none !important; min-width:0 !important; min-height:auto !important; padding:0 !important; margin:0 !important; border:0 !important; background:transparent !important; border-radius:0 !important; box-shadow:none !important; font-size:.88rem !important; font-weight:680 !important; line-height:1.24 !important; flex:0 0 auto !important; overflow:visible !important; overflow-wrap:normal !important; word-break:normal !important; scroll-snap-align:none !important; }
  .lhi-home .lhi-ticker__item[aria-hidden="true"]{ display:inline-flex !important; }
  .lhi-home .lhi-ticker__item .lhi-dot{ width:5px !important; height:5px !important; margin-top:0 !important; margin-right:.02rem !important; transform:none !important; }
}

@media (prefers-reduced-motion: reduce) and (max-width: 767.98px){
  /* SAFE PATCH v17 — reduced motion fallback */
  .lhi-home .lhi-ticker__viewport{ overflow-x:auto !important; -webkit-overflow-scrolling:touch !important; }
  .lhi-home .lhi-ticker__track{ animation:none !important; padding-right:0 !important; }
  .lhi-home .lhi-ticker__item[aria-hidden="true"]{ display:none !important; }
}


/* ==========================================================
   SAFE PATCH v18 — byline lebih lapang + verified badge biru
   ========================================================== */
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-title{
  max-width:min(100%, 18.8ch);
  line-height:1.05;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-meta-center--panel{
  width:min(100%, 34.5rem);
  gap:.72rem;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-band{
  width:auto;
  max-width:min(100%, 26rem);
  justify-self:center;
  gap:.62rem;
  padding:.48rem .78rem;
  border-radius:1.12rem;
  border:1px solid rgba(15,23,42,.06);
  background:rgba(255,255,255,.84);
  box-shadow:0 8px 24px rgba(15,23,42,.04), 0 1px 0 rgba(255,255,255,.72) inset;
  backdrop-filter:none;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-band--name-only{
  max-width:min(100%, 22.25rem);
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-avatar{
  width:36px;
  height:36px;
  flex-basis:36px;
  border-color:rgba(29,155,240,.10);
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.88));
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-avatar__initial{
  font-size:.75rem;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-copy{
  gap:.08rem;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-name-row{
  gap:.3rem;
  align-items:center;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-name{
  font-size:.98rem;
  line-height:1.14;
  letter-spacing:-.01em;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-verified{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  color:#1d9bf0;
  transform:translateY(-1px);
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-verified svg{
  width:14px;
  height:14px;
  display:block;
  filter:drop-shadow(0 1px 1px rgba(29,155,240,.18));
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-meta{
  gap:.14rem .38rem;
  font-size:.76rem;
  line-height:1.3;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-role{
  font-weight:650;
  color:rgba(71,85,105,.9);
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-link,
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-sep{
  display:none !important;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-meta-band{
  gap:.52rem .56rem;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-meta-chip{
  padding:.42rem .72rem;
  font-size:.86rem;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-actions-band{
  width:min(100%, 35rem);
  gap:.5rem;
  margin-top:.06rem;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-tool-btn--label,
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-reader-toggle.lhi-tool-btn--label{
  padding:.58rem .84rem !important;
}
.lhi-article-card--streamlined .lhi-article-header--compact .lhi-tool-btn--label .lhi-tool-btn__label{
  font-size:.84rem;
}
@media (min-width: 768px) and (max-width: 1199.98px){
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-title{
    max-width:min(100%, 17.8ch);
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-meta-center--panel{
    width:min(100%, 32.25rem);
    gap:.66rem;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-band{
    max-width:min(100%, 24.5rem);
    padding:.44rem .68rem;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-avatar{
    width:34px;
    height:34px;
    flex-basis:34px;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-name{
    font-size:.94rem;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-meta{
    font-size:.74rem;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-meta-chip{
    font-size:.83rem;
    padding:.39rem .64rem;
  }
}
@media (max-width: 767.98px){
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-title{
    max-width:min(100%, 15.9ch);
    font-size:clamp(1.58rem, 6vw, 2rem);
    line-height:1.07;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-meta-center--panel{
    gap:.6rem;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-band{
    max-width:min(100%, 21.75rem);
    padding:.42rem .62rem;
    gap:.54rem;
    border-radius:1rem;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-band--name-only{
    max-width:min(100%, 19rem);
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-avatar{
    width:32px;
    height:32px;
    flex-basis:32px;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-avatar__initial{
    font-size:.72rem;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-name{
    font-size:.89rem;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-verified svg{
    width:13px;
    height:13px;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-meta{
    font-size:.72rem;
    gap:.06rem .24rem;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-meta-chip{
    font-size:.8rem;
    padding:.38rem .58rem;
  }
  .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-actions-band{
    gap:.42rem;
  }
}
html[data-theme="dark"] .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-band{
  background:rgba(15,23,42,.68);
  border-color:rgba(148,163,184,.18);
  box-shadow:none;
}
html[data-theme="dark"] .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-avatar{
  background:linear-gradient(180deg, rgba(15,23,42,.72), rgba(30,41,59,.78));
  border-color:rgba(29,155,240,.24);
}
html[data-theme="dark"] .lhi-article-card--streamlined .lhi-article-header--compact .lhi-article-byline-role{
  color:rgba(226,232,240,.82);
}


/* ==========================================================
   SAFE PATCH v18 — sorotan mobile satu baris + bergerak stabil
   ========================================================== */
@keyframes lhiTickerMobile{
  from{ transform:translate3d(0,0,0); }
  to{ transform:translate3d(-50%,0,0); }
}
@media (max-width: 767.98px){
  .lhi-home-rail[data-lhi-home-rail="main"] .lhi-ticker--marquee{
    overflow:hidden;
  }
  .lhi-home-rail[data-lhi-home-rail="main"] .lhi-ticker--marquee .lhi-ticker__inner{
    display:flex !important;
    align-items:center !important;
    gap:.5rem !important;
    padding:.24rem 0 !important;
  }
  .lhi-home-rail[data-lhi-home-rail="main"] .lhi-ticker--marquee .lhi-ticker__badge{
    flex:0 0 auto;
    position:relative;
    z-index:1;
    padding:.22rem .58rem !important;
    font-size:.62rem !important;
    line-height:1.1 !important;
    border-radius:.8rem !important;
    margin:0 !important;
  }
  .lhi-home-rail[data-lhi-home-rail="main"] .lhi-ticker--marquee .lhi-ticker__viewport{
    flex:1 1 auto !important;
    min-width:0 !important;
    overflow:hidden !important;
    overflow-y:hidden !important;
    mask-image:none !important;
    -webkit-mask-image:none !important;
    scroll-snap-type:none !important;
  }
  .lhi-home-rail[data-lhi-home-rail="main"] .lhi-ticker--marquee .lhi-ticker__track{
    display:flex !important;
    align-items:center !important;
    gap:1rem !important;
    width:max-content !important;
    padding:.02rem 1rem .02rem 0 !important;
    animation:lhiTickerMobile 26s linear infinite !important;
    will-change:transform;
  }
  .lhi-home-rail[data-lhi-home-rail="main"] .lhi-ticker--marquee .lhi-ticker__item,
  .lhi-home-rail[data-lhi-home-rail="main"] .lhi-ticker--marquee .lhi-ticker__item[aria-hidden="true"]{
    display:inline-flex !important;
    align-items:center !important;
    gap:.36rem !important;
    flex:0 0 auto !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    border-radius:0 !important;
    white-space:nowrap !important;
    max-width:none !important;
    min-width:0 !important;
    min-height:auto !important;
    font-size:.9rem !important;
    font-weight:680 !important;
    line-height:1.24 !important;
    color:var(--lhi-ink) !important;
    overflow:visible !important;
    overflow-wrap:normal !important;
    word-break:normal !important;
    scroll-snap-align:none !important;
  }
  .lhi-home-rail[data-lhi-home-rail="main"] .lhi-ticker--marquee .lhi-ticker__item[aria-hidden="true"]{
    display:inline-flex !important;
  }
  .lhi-home-rail[data-lhi-home-rail="main"] .lhi-ticker--marquee .lhi-ticker__item .lhi-dot{
    width:5px !important;
    height:5px !important;
    margin:0 .02rem 0 0 !important;
    border-radius:999px !important;
    flex:0 0 auto !important;
    background:var(--lhi-primary) !important;
  }
}
@media (prefers-reduced-motion: reduce) and (max-width: 767.98px){
  .lhi-home-rail[data-lhi-home-rail="main"] .lhi-ticker--marquee .lhi-ticker__viewport{
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch !important;
  }
  .lhi-home-rail[data-lhi-home-rail="main"] .lhi-ticker--marquee .lhi-ticker__track{
    animation:none !important;
    padding-right:0 !important;
  }
  .lhi-home-rail[data-lhi-home-rail="main"] .lhi-ticker--marquee .lhi-ticker__item[aria-hidden="true"]{
    display:none !important;
  }
}



/* ==========================================================
   SAFE PATCH v19 — sorotan diperlambat + mobile satu baris stabil
   ========================================================== */
.lhi-home{ --lhi-ticker-speed: 76s; }
.lhi-home-rail[data-lhi-home-rail="main"] .lhi-ticker--marquee .lhi-ticker__track{
  animation-duration:var(--lhi-ticker-speed) !important;
}
@media (min-width: 768px) and (max-width: 1199.98px){
  .lhi-home{ --lhi-ticker-speed: 64s; }
}
@media (max-width: 767.98px){
  .lhi-home{ --lhi-ticker-speed: 44s; }
  .lhi-home-rail[data-lhi-home-rail="main"] .lhi-ticker--marquee{
    overflow:hidden !important;
  }
  .lhi-home-rail[data-lhi-home-rail="main"] .lhi-ticker--marquee .lhi-ticker__inner{
    align-items:center !important;
    gap:.42rem !important;
    padding:.22rem 0 !important;
  }
  .lhi-home-rail[data-lhi-home-rail="main"] .lhi-ticker--marquee .lhi-ticker__badge{
    padding:.2rem .54rem !important;
    font-size:.61rem !important;
    border-radius:.76rem !important;
    margin:0 !important;
  }
  .lhi-home-rail[data-lhi-home-rail="main"] .lhi-ticker--marquee .lhi-ticker__viewport{
    flex:1 1 auto !important;
    min-width:0 !important;
    overflow:hidden !important;
    overflow-y:hidden !important;
    mask-image:none !important;
    -webkit-mask-image:none !important;
    scroll-snap-type:none !important;
  }
  .lhi-home-rail[data-lhi-home-rail="main"] .lhi-ticker--marquee .lhi-ticker__track{
    display:flex !important;
    align-items:center !important;
    gap:.88rem !important;
    width:max-content !important;
    padding:.02rem .88rem .02rem 0 !important;
    animation:lhiTickerMobile var(--lhi-ticker-speed) linear infinite !important;
    will-change:transform;
  }
  .lhi-home-rail[data-lhi-home-rail="main"] .lhi-ticker--marquee .lhi-ticker__item,
  .lhi-home-rail[data-lhi-home-rail="main"] .lhi-ticker--marquee .lhi-ticker__item[aria-hidden="true"]{
    display:inline-flex !important;
    align-items:center !important;
    flex:0 0 auto !important;
    gap:.32rem !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    background:transparent !important;
    border-radius:0 !important;
    box-shadow:none !important;
    white-space:nowrap !important;
    max-width:none !important;
    min-width:0 !important;
    min-height:auto !important;
    font-size:.86rem !important;
    font-weight:670 !important;
    line-height:1.22 !important;
    overflow:visible !important;
    overflow-wrap:normal !important;
    word-break:normal !important;
  }
  .lhi-home-rail[data-lhi-home-rail="main"] .lhi-ticker--marquee .lhi-ticker__item .lhi-dot{
    width:5px !important;
    height:5px !important;
    margin:0 .02rem 0 0 !important;
  }
}
@media (prefers-reduced-motion: reduce) and (max-width: 767.98px){
  .lhi-home-rail[data-lhi-home-rail="main"] .lhi-ticker--marquee .lhi-ticker__viewport{
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch !important;
  }
  .lhi-home-rail[data-lhi-home-rail="main"] .lhi-ticker--marquee .lhi-ticker__track{
    animation:none !important;
    padding-right:0 !important;
  }
  .lhi-home-rail[data-lhi-home-rail="main"] .lhi-ticker--marquee .lhi-ticker__item[aria-hidden="true"]{
    display:none !important;
  }
}


/* ==========================================================
   SAFE PATCH v20 — hide mobile actions on desktop + cleaner mobile article header
   ========================================================== */
.lhi-article-header--compact .lhi-mobile-action-overflow{ display:none !important; }
.lhi-article-header--compact .lhi-article-byline-band{
  display:grid !important;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
}
.lhi-article-header--compact .lhi-article-byline-name-row{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start !important;
  gap:.32rem !important;
  width:100%;
  min-width:0;
  flex-wrap:nowrap !important;
}
.lhi-article-header--compact .lhi-article-byline-name{
  min-width:0;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  word-break:break-word;
}
.lhi-article-header--compact .lhi-article-byline-verified{
  transform:none !important;
  align-self:start;
  margin-top:.08rem;
}
@media (min-width:768px){
  .lhi-article-header--compact .lhi-mobile-action-overflow{ display:none !important; }
}
@media (max-width:767.98px){
  .lhi-article-header--compact .lhi-mobile-action-overflow{ display:block !important; flex:1 1 100%; width:100%; }
  .lhi-article-header--compact .lhi-article-byline-band{ width:min(100%, 21.5rem) !important; max-width:min(100%, 21.5rem) !important; padding:.56rem .72rem !important; gap:.62rem !important; }
  .lhi-article-header--compact .lhi-article-meta-band{ width:min(100%, 21.5rem); display:grid !important; grid-template-columns:repeat(2, minmax(0,1fr)); gap:.48rem !important; }
  .lhi-article-header--compact .lhi-article-meta-chip{ width:100%; justify-content:center; min-height:2.5rem; }
  .lhi-article-header--compact .lhi-mobile-action-overflow > .btn{ width:min(100%, 12.75rem) !important; margin:0 auto; justify-content:center !important; }
  .lhi-article-header--compact .lhi-mobile-action-panel{ position:fixed !important; left:.75rem !important; right:.75rem !important; bottom:max(.75rem, env(safe-area-inset-bottom)) !important; top:auto !important; width:auto !important; max-width:none !important; min-width:0 !important; max-height:min(76vh, 32rem); overflow:auto; padding:1rem 1rem 1.05rem !important; border-radius:1.15rem !important; transform:none !important; margin:0 !important; }
}


/* ==========================================================
   SAFE PATCH v21 — desktop hides mobile action button + tighter mobile article header
   ========================================================== */
.lhi-article-header--compact .lhi-mobile-action-overflow{
  display:none !important;
  visibility:hidden !important;
  pointer-events:none !important;
}
@media (min-width:768px){
  .lhi-article-header--compact .lhi-mobile-action-overflow,
  .lhi-article-header--compact .lhi-mobile-action-overflow > .btn,
  .lhi-article-header--compact .lhi-mobile-action-overflow > .dropdown-menu{
    display:none !important;
    visibility:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
  }
}
@media (max-width:767.98px){
  .lhi-article-header--compact .lhi-article-title{
    max-width:min(100%, 17.4ch) !important;
    font-size:clamp(1.52rem, 5.8vw, 1.95rem) !important;
    line-height:1.06 !important;
  }
  .lhi-article-header--compact .lhi-mobile-action-overflow{
    display:block !important;
    visibility:visible !important;
    pointer-events:auto !important;
    flex:1 1 100%;
    width:100%;
  }
  .lhi-article-header--compact .lhi-article-byline-band{
    width:min(100%, 20.75rem) !important;
    max-width:min(100%, 20.75rem) !important;
    padding:.52rem .68rem !important;
    gap:.56rem !important;
    border-radius:1rem !important;
  }
  .lhi-article-header--compact .lhi-article-byline-name-row{
    display:flex !important;
    width:auto !important;
    justify-content:flex-start !important;
    align-items:center !important;
    gap:.34rem !important;
    flex-wrap:wrap !important;
  }
  .lhi-article-header--compact .lhi-article-byline-name{
    font-size:.91rem !important;
    line-height:1.15 !important;
  }
  .lhi-article-header--compact .lhi-article-byline-meta{
    font-size:.72rem !important;
    line-height:1.22 !important;
  }
  .lhi-article-header--compact .lhi-article-byline-verified{
    margin-top:0 !important;
    align-self:center !important;
    justify-self:auto !important;
  }
  .lhi-article-header--compact .lhi-article-meta-band{
    width:min(100%, 20.75rem) !important;
    display:flex !important;
    flex-wrap:wrap !important;
    justify-content:center !important;
    gap:.5rem !important;
  }
  .lhi-article-header--compact .lhi-article-meta-chip{
    width:auto !important;
    min-height:2.5rem !important;
    white-space:nowrap !important;
  }
  .lhi-article-header--compact .lhi-article-meta-chip--published{ min-width:12.9rem !important; }
  .lhi-article-header--compact .lhi-article-meta-chip--reading{ min-width:6.8rem !important; }
  .lhi-article-header--compact .lhi-mobile-action-overflow > .btn{
    width:min(100%, 12rem) !important;
    margin:0 auto !important;
    justify-content:center !important;
  }
  .lhi-article-header--compact .lhi-mobile-action-panel{
    position:fixed !important;
    left:.7rem !important;
    right:.7rem !important;
    top:auto !important;
    bottom:max(4.5rem, calc(env(safe-area-inset-bottom) + 4rem)) !important;
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
    max-height:min(72vh, 30rem) !important;
    overflow:auto !important;
    padding:.9rem .9rem .95rem !important;
    border-radius:1.1rem !important;
    z-index:1085 !important;
  }
  .lhi-article-header--compact .lhi-mobile-action-sheet-handle{
    width:2.45rem !important;
    height:.26rem !important;
    margin:0 auto .7rem !important;
  }
  .lhi-article-header--compact .lhi-mobile-font-toolbar{
    grid-template-columns:3rem minmax(0,1fr) 3rem !important;
    gap:.5rem !important;
  }
  .lhi-article-header--compact .lhi-mobile-font-reset{
    min-height:2.4rem !important;
  }
  .lhi-article-header--compact .lhi-mobile-share-grid{
    gap:.48rem !important;
  }
  .lhi-article-header--compact .lhi-mobile-action-chip,
  .lhi-article-header--compact .lhi-mobile-action-links .btn,
  .lhi-article-header--compact .lhi-mobile-action-links a{
    min-height:2.35rem !important;
    border-radius:.82rem !important;
    font-size:.9rem !important;
  }
}


/* SAFE PATCH v22 — mobile article header tuning */
.lhi-article-header--compact .lhi-mobile-action-overflow[hidden]{ display:none !important; }
@media (min-width:768px){
  .lhi-article-header--compact .lhi-mobile-action-overflow,
  .lhi-article-header--compact .lhi-mobile-action-overflow > .btn,
  .lhi-article-header--compact .lhi-mobile-action-overflow > .dropdown-menu{
    display:none !important;
    visibility:hidden !important;
    pointer-events:none !important;
  }
}
@media (max-width:767.98px){
  .lhi-article-header--compact .lhi-article-title{
    max-width:min(100%, 17.8ch) !important;
    font-size:clamp(1.48rem, 5.55vw, 1.92rem) !important;
    line-height:1.06 !important;
    letter-spacing:-.015em !important;
  }
  .lhi-article-header--compact .lhi-article-byline-band{
    width:min(100%, 19.5rem) !important;
    max-width:min(100%, 19.5rem) !important;
    padding:.48rem .6rem !important;
    gap:.5rem !important;
    border-radius:1rem !important;
  }
  .lhi-article-header--compact .lhi-article-byline-band--name-only{
    width:min(100%, 18.4rem) !important;
    max-width:min(100%, 18.4rem) !important;
  }
  .lhi-article-header--compact .lhi-article-byline-avatar{
    width:34px !important;
    height:34px !important;
    flex-basis:34px !important;
  }
  .lhi-article-header--compact .lhi-article-byline-name-row{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    align-items:start !important;
    gap:.28rem !important;
    width:100% !important;
    flex-wrap:nowrap !important;
  }
  .lhi-article-header--compact .lhi-article-byline-name{
    font-size:.9rem !important;
    line-height:1.12 !important;
  }
  .lhi-article-header--compact .lhi-article-byline-meta{
    font-size:.72rem !important;
    line-height:1.18 !important;
    gap:.04rem .24rem !important;
  }
  .lhi-article-header--compact .lhi-article-byline-verified{
    margin-top:.12rem !important;
    align-self:start !important;
    justify-self:start !important;
  }
  .lhi-article-header--compact .lhi-article-byline-verified svg{
    width:16px !important;
    height:16px !important;
  }
  .lhi-article-header--compact .lhi-article-meta-band{
    width:min(100%, 19.5rem) !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    justify-content:center !important;
    gap:.42rem !important;
    align-items:stretch !important;
  }
  .lhi-article-header--compact .lhi-article-meta-chip{
    min-height:2.2rem !important;
    padding:.34rem .72rem !important;
    font-size:.84rem !important;
    line-height:1.18 !important;
  }
  .lhi-article-header--compact .lhi-article-meta-chip--published{ min-width:0 !important; }
  .lhi-article-header--compact .lhi-article-meta-chip--reading{ min-width:6.15rem !important; }
  .lhi-article-header--compact .lhi-article-meta-chip--updated{ grid-column:1 / -1 !important; }
  .lhi-article-header--compact .lhi-mobile-action-overflow{
    width:min(100%, 19.5rem) !important;
    max-width:min(100%, 19.5rem) !important;
  }
  .lhi-article-header--compact .lhi-mobile-action-overflow > .btn{
    width:min(100%, 10.5rem) !important;
    min-height:2.3rem !important;
    border-radius:999px !important;
    font-size:1rem !important;
  }
  .lhi-article-header--compact .lhi-mobile-action-panel{
    left:.85rem !important;
    right:.85rem !important;
    bottom:max(5.75rem, calc(env(safe-area-inset-bottom) + 5rem)) !important;
    max-height:min(66vh, 27rem) !important;
    padding:.82rem .84rem .88rem !important;
    border-radius:1.05rem !important;
    overscroll-behavior:contain !important;
    z-index:2140 !important;
  }
  .lhi-article-header--compact .lhi-mobile-action-sheet-handle{
    margin:0 auto .55rem !important;
  }
  .lhi-article-header--compact .lhi-mobile-action-heading{
    font-size:.72rem !important;
    letter-spacing:.1em !important;
    margin-bottom:.52rem !important;
  }
  .lhi-article-header--compact .lhi-mobile-font-toolbar{
    grid-template-columns:2.7rem minmax(0,1fr) 2.7rem !important;
    gap:.42rem !important;
  }
  .lhi-article-header--compact .lhi-mobile-font-reset,
  .lhi-article-header--compact .lhi-mobile-font-toolbar .lhi-font-btn{
    min-height:2.1rem !important;
    font-size:.95rem !important;
  }
  .lhi-article-header--compact .lhi-mobile-share-grid{
    display:grid !important;
    grid-template-columns:repeat(3, minmax(0,1fr)) !important;
    gap:.42rem !important;
  }
  .lhi-article-header--compact .lhi-mobile-action-chip{
    min-height:2.08rem !important;
    padding:.44rem .24rem !important;
    border-radius:.72rem !important;
    font-size:.82rem !important;
    line-height:1.15 !important;
    white-space:normal !important;
  }
  .lhi-article-header--compact .lhi-mobile-action-links{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
    gap:.5rem !important;
  }
  .lhi-article-header--compact .lhi-mobile-action-links .btn,
  .lhi-article-header--compact .lhi-mobile-action-links a{
    min-height:2.12rem !important;
    border-radius:.74rem !important;
    font-size:.88rem !important;
    padding:.45rem .5rem !important;
    justify-content:center !important;
    text-align:center !important;
  }
  .lhi-article-header--compact .lhi-mobile-action-panel .dropdown-divider{
    margin:.75rem 0 !important;
  }
}
@media (max-width:389.98px){
  .lhi-article-header--compact .lhi-mobile-share-grid{
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
  }
}


/* SAFE PATCH v23 — simplify mobile article header rhythm */
@media (max-width:767.98px){
  .lhi-article-header--compact .lhi-article-kicker{ gap:.42rem !important; margin-bottom:.78rem !important; }
  .lhi-article-header--compact .lhi-article-kicker .badge{ padding:.34rem .78rem !important; font-size:.79rem !important; letter-spacing:.06em !important; }
  .lhi-article-header--compact .lhi-article-title{ max-width:min(100%, 19.35ch) !important; font-size:clamp(1.4rem, 5.15vw, 1.78rem) !important; line-height:1.07 !important; letter-spacing:-.018em !important; margin-bottom:.9rem !important; }
  .lhi-article-header--compact .lhi-article-byline-band, .lhi-article-header--compact .lhi-article-byline-band--name-only{ display:inline-flex !important; align-items:center !important; justify-content:flex-start !important; width:auto !important; max-width:min(100%, 18.75rem) !important; padding:0 !important; margin-inline:auto !important; gap:.5rem !important; border:0 !important; background:transparent !important; box-shadow:none !important; border-radius:0 !important; }
  .lhi-article-header--compact .lhi-article-byline-avatar{ width:34px !important; height:34px !important; flex:0 0 34px !important; }
  .lhi-article-header--compact .lhi-article-byline-copy{ min-width:0 !important; max-width:min(100%, calc(100vw - 7.25rem)) !important; text-align:left !important; gap:.08rem !important; }
  .lhi-article-header--compact .lhi-article-byline-name-row{ display:flex !important; align-items:center !important; justify-content:flex-start !important; gap:.28rem !important; flex-wrap:wrap !important; width:auto !important; }
  .lhi-article-header--compact .lhi-article-byline-name{ font-size:.93rem !important; line-height:1.12 !important; }
  .lhi-article-header--compact .lhi-article-byline-meta{ font-size:.73rem !important; line-height:1.18 !important; gap:.04rem .24rem !important; }
  .lhi-article-header--compact .lhi-article-byline-verified{ margin:0 !important; align-self:center !important; justify-self:auto !important; }
  .lhi-article-header--compact .lhi-article-byline-verified svg{ width:15px !important; height:15px !important; }
  .lhi-article-header--compact .lhi-article-meta-band{ width:auto !important; max-width:min(100%, 19rem) !important; display:flex !important; flex-wrap:wrap !important; align-items:center !important; justify-content:center !important; gap:.2rem .72rem !important; margin-top:.05rem !important; }
  .lhi-article-header--compact .lhi-article-meta-chip{ width:auto !important; min-height:0 !important; padding:0 !important; border:0 !important; background:transparent !important; box-shadow:none !important; border-radius:0 !important; font-size:.86rem !important; line-height:1.18 !important; color:var(--lhi-muted) !important; gap:.3rem !important; }
  .lhi-article-header--compact .lhi-article-meta-chip svg{ width:16px !important; height:16px !important; }
  .lhi-article-header--compact .lhi-article-meta-chip--published, .lhi-article-header--compact .lhi-article-meta-chip--reading{ min-width:0 !important; }
  .lhi-article-header--compact .lhi-article-meta-chip--updated{ flex-basis:100% !important; justify-content:center !important; margin-top:.02rem !important; }
  .lhi-article-header--compact .lhi-article-actions-band{ width:auto !important; max-width:100% !important; gap:.28rem !important; margin-top:.08rem !important; }
  .lhi-article-header--compact .lhi-mobile-action-overflow{ flex:0 0 auto !important; width:auto !important; max-width:none !important; }
  .lhi-article-header--compact .lhi-mobile-action-overflow > .btn{ width:auto !important; min-width:8.5rem !important; min-height:2.18rem !important; padding:.38rem .98rem !important; margin:0 auto !important; border-radius:999px !important; font-size:.96rem !important; box-shadow:0 1px 0 rgba(15,23,42,.03) !important; }
  .lhi-article-header--compact .lhi-mobile-action-panel{ left:1rem !important; right:1rem !important; bottom:max(5rem, calc(env(safe-area-inset-bottom) + 4.25rem)) !important; max-height:min(60vh, 24rem) !important; padding:.86rem .88rem .92rem !important; border-radius:1rem !important; }
  .lhi-article-header--compact .lhi-mobile-action-sheet-handle{ margin:0 auto .48rem !important; }
  .lhi-article-header--compact .lhi-mobile-font-toolbar{ grid-template-columns:2.65rem minmax(0,1fr) 2.65rem !important; gap:.42rem !important; }
  .lhi-article-header--compact .lhi-mobile-font-reset, .lhi-article-header--compact .lhi-mobile-font-toolbar .lhi-font-btn{ min-height:2.05rem !important; }
  .lhi-article-header--compact .lhi-mobile-share-grid{ grid-template-columns:repeat(2, minmax(0,1fr)) !important; gap:.44rem !important; }
  .lhi-article-header--compact .lhi-mobile-action-chip, .lhi-article-header--compact .lhi-mobile-action-links .btn, .lhi-article-header--compact .lhi-mobile-action-links a{ min-height:2.12rem !important; border-radius:.78rem !important; font-size:.88rem !important; }
  .lhi-article-header--compact .lhi-mobile-action-chip{ white-space:nowrap !important; padding:.42rem .3rem !important; }
  .lhi-article-header--compact .lhi-mobile-action-links{ grid-template-columns:repeat(2, minmax(0,1fr)) !important; }
  .lhi-article-header--compact + .lhi-article-dek--compact, .lhi-article-dek--compact{ margin-top:1rem !important; }
  .lhi-article-dek--compact .lhi-article-dek-text{ font-size:1rem !important; line-height:1.52 !important; }
}
@media (max-width:389.98px){
  .lhi-article-header--compact .lhi-article-title{ max-width:min(100%, 18.8ch) !important; font-size:clamp(1.34rem, 5.55vw, 1.64rem) !important; }
  .lhi-article-header--compact .lhi-article-byline-band, .lhi-article-header--compact .lhi-article-byline-band--name-only{ max-width:min(100%, 17.5rem) !important; }
  .lhi-article-header--compact .lhi-article-byline-name{ font-size:.9rem !important; }
  .lhi-article-header--compact .lhi-article-meta-chip{ font-size:.83rem !important; }
  .lhi-article-header--compact .lhi-mobile-action-panel{ left:.9rem !important; right:.9rem !important; }
}


/* ====================
   Author profile/avatar safety fallback
   Prevent profile photos from expanding to natural size
   ==================== */
.lhi-author-box .lhi-author-avatar{
  width:64px !important;
  height:64px !important;
  max-width:64px !important;
  max-height:64px !important;
  overflow:hidden !important;
  flex:0 0 64px !important;
}
.lhi-author-box .lhi-author-avatar__img{
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  object-fit:cover !important;
  display:block !important;
}
.lhi-author-page img.lhi-author-avatar{
  width:84px !important;
  height:84px !important;
  max-width:84px !important;
  max-height:84px !important;
  aspect-ratio:1 / 1;
  object-fit:cover !important;
  display:block !important;
  flex:0 0 84px !important;
}
.lhi-author-page .lhi-author-directory-head img.lhi-author-avatar{
  width:72px !important;
  height:72px !important;
  max-width:72px !important;
  max-height:72px !important;
  flex-basis:72px !important;
}
@media (max-width: 576px){
  .lhi-author-box .lhi-author-avatar{ width:56px !important; height:56px !important; max-width:56px !important; max-height:56px !important; flex-basis:56px !important; }
  .lhi-author-page img.lhi-author-avatar{ width:72px !important; height:72px !important; max-width:72px !important; max-height:72px !important; flex-basis:72px !important; }
}



/* SAFE PATCH v25 — restore IG mobile share + adaptive byline */
@media (min-width:768px){
  .lhi-article-header--compact .lhi-mobile-action-overflow,
  .lhi-article-header--compact .lhi-mobile-action-overflow>.btn,
  .lhi-article-header--compact .lhi-mobile-action-panel{display:none!important;visibility:hidden!important;pointer-events:none!important;}
}
@media (max-width:767.98px){
  .lhi-article-header--compact .lhi-article-title{max-width:min(100%,20.2ch)!important;font-size:clamp(1.36rem,5.15vw,1.76rem)!important;line-height:1.08!important;letter-spacing:-.016em!important;margin-bottom:.82rem!important;}
  .lhi-article-header--compact .lhi-article-byline-band,.lhi-article-header--compact .lhi-article-byline-band--name-only{width:min(100%,20.4rem)!important;max-width:min(100%,20.4rem)!important;display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;align-items:center!important;gap:.55rem!important;padding:.48rem .62rem!important;border:1px solid rgba(15,23,42,.07)!important;background:#fff!important;box-shadow:0 1px 0 rgba(15,23,42,.03)!important;border-radius:1rem!important;}
  .lhi-article-header--compact .lhi-article-byline-avatar{width:34px!important;height:34px!important;flex:0 0 34px!important;}
  .lhi-article-header--compact .lhi-article-byline-copy{min-width:0!important;max-width:none!important;gap:.08rem!important;}
  .lhi-article-header--compact .lhi-article-byline-name-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:.24rem!important;width:100%!important;min-width:0!important;flex-wrap:nowrap!important;}
  .lhi-article-header--compact .lhi-article-byline-name{min-width:0!important;font-size:clamp(.87rem,3.55vw,.96rem)!important;line-height:1.1!important;letter-spacing:-.01em!important;overflow-wrap:anywhere!important;word-break:normal!important;}
  .lhi-article-header--compact .lhi-article-byline-name.lhi-article-byline-name--long{font-size:.86rem!important;}
  .lhi-article-header--compact .lhi-article-byline-name.lhi-article-byline-name--very-long{font-size:.82rem!important;letter-spacing:-.015em!important;}
  .lhi-article-header--compact .lhi-article-byline-meta{font-size:.73rem!important;line-height:1.18!important;gap:.04rem .22rem!important;}
  .lhi-article-header--compact .lhi-article-byline-verified{margin:0!important;align-self:center!important;justify-self:end!important;display:inline-flex!important;}
  .lhi-article-header--compact .lhi-article-byline-verified svg{width:16px!important;height:16px!important;}
  .lhi-article-header--compact .lhi-article-meta-band{width:min(100%,20rem)!important;max-width:min(100%,20rem)!important;display:flex!important;flex-wrap:wrap!important;justify-content:center!important;align-items:center!important;gap:.24rem .75rem!important;margin-top:.08rem!important;}
  .lhi-article-header--compact .lhi-article-meta-chip{width:auto!important;min-height:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;font-size:.84rem!important;line-height:1.18!important;color:var(--lhi-muted)!important;gap:.32rem!important;}
  .lhi-article-header--compact .lhi-article-meta-chip svg{width:16px!important;height:16px!important;}
  .lhi-article-header--compact .lhi-article-meta-chip--updated{flex-basis:100%!important;justify-content:center!important;margin-top:.02rem!important;}
  .lhi-article-header--compact .lhi-article-actions-band{width:100%!important;max-width:100%!important;display:flex!important;justify-content:center!important;margin-top:.16rem!important;}
  .lhi-article-header--compact .lhi-mobile-action-overflow{width:100%!important;max-width:none!important;display:flex!important;justify-content:center!important;flex:1 1 100%!important;}
  .lhi-article-header--compact .lhi-mobile-action-overflow>.btn{width:auto!important;min-width:7.5rem!important;min-height:2.14rem!important;padding:.38rem .92rem!important;margin:0 auto!important;border-radius:999px!important;font-size:.95rem!important;justify-content:center!important;box-shadow:0 1px 0 rgba(15,23,42,.03)!important;}
  .lhi-article-header--compact .lhi-mobile-action-panel{left:.9rem!important;right:.9rem!important;top:auto!important;bottom:max(5.2rem,calc(env(safe-area-inset-bottom) + 4.75rem))!important;max-height:min(68vh,31rem)!important;padding:.9rem .9rem .96rem!important;border-radius:1.05rem!important;z-index:2140!important;}
  .lhi-article-header--compact .lhi-mobile-action-section--share .dropdown-item-text{padding:0!important;}
  .lhi-article-header--compact .lhi-mobile-action-section--share .btn-group{gap:.36rem!important;}
  .lhi-article-header--compact .lhi-mobile-action-section--share .btn-group>.btn{min-height:2rem!important;border-radius:.7rem!important;font-size:.84rem!important;padding:.34rem .7rem!important;}
  .lhi-article-header--compact .lhi-mobile-action-section--share .dropdown-item{display:flex!important;align-items:center!important;gap:.7rem!important;border-radius:.8rem!important;padding:.62rem .74rem!important;font-size:.92rem!important;white-space:normal!important;}
  .lhi-article-header--compact .lhi-mobile-action-section--share .dropdown-item .lhi-share-item-icon,.lhi-article-header--compact .lhi-mobile-action-section--share .dropdown-item svg{width:20px!important;height:20px!important;flex:0 0 20px!important;}
  .lhi-article-header--compact .lhi-mobile-action-section--share [data-share-copied]{padding:.2rem .1rem 0!important;font-size:.76rem!important;}
  .lhi-article-header--compact .lhi-mobile-action-links{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.5rem!important;}
  .lhi-article-header--compact .lhi-mobile-action-links .btn,.lhi-article-header--compact .lhi-mobile-action-links a{min-height:2.12rem!important;border-radius:.78rem!important;font-size:.88rem!important;justify-content:center!important;text-align:center!important;padding:.44rem .5rem!important;}
  .lhi-article-header--compact .lhi-mobile-action-panel .dropdown-divider{margin:.76rem 0!important;}
}
@media (max-width:389.98px){
  .lhi-article-header--compact .lhi-article-title{max-width:min(100%,18.6ch)!important;font-size:clamp(1.28rem,5.65vw,1.6rem)!important;}
  .lhi-article-header--compact .lhi-article-byline-band,.lhi-article-header--compact .lhi-article-byline-band--name-only{width:min(100%,19rem)!important;max-width:min(100%,19rem)!important;}
  .lhi-article-header--compact .lhi-article-byline-name{font-size:.84rem!important;}
  .lhi-article-header--compact .lhi-mobile-action-panel{left:.78rem!important;right:.78rem!important;}
}
