/* Theme switch: available on desktop and mobile. */
.esji-theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;padding:0;border:1px solid var(--esji-border,#e5e7eb);border-radius:50%;background:transparent;color:var(--esji-header-text,#111827);cursor:pointer}
.esji-theme-toggle svg{display:block;width:20px;height:20px}
.esji-theme-toggle .esji-icon-sun{display:none}
.esji-theme-toggle:focus-visible{outline:2px solid var(--esji-primary,#ff5017);outline-offset:3px}
@media(min-width:768px){.read-actions .esji-share-stage{margin-left:auto}.read-actions .esji-share-stage .gpf-cluster{justify-content:flex-end}.read-actions .esji-listen-status,.read-bottom-share .esji-listen-status{position:absolute;left:auto;right:0;bottom:-20px;width:auto;height:auto;margin:0;clip:auto;overflow:visible;text-align:right;font-size:11px;color:var(--esji-muted,#6b7280);white-space:normal}.read-actions .esji-share-stage .gpf-cluster,.read-bottom-share .esji-share-stage .gpf-cluster{position:relative}.esji-listen-status:empty{display:none}}
/* Comments retain WordPress form handling and adapt to available width. */
.esji-comments{margin:36px 0 24px;padding:24px;border:1px solid var(--esji-border,#e5e7eb);border-radius:10px;background:var(--esji-surface,#fff);color:var(--esji-text,#111827)}
.esji-comments>h2{margin:0 0 20px;font-size:20px;line-height:1.3}
.esji-comments .comment-list,.esji-comments .children{list-style:none;margin:0;padding:0}
.esji-comments .children{margin-left:28px}
.esji-comments .comment-body{padding:16px 0;border-bottom:1px solid var(--esji-border,#e5e7eb)}
.esji-comments .comment-author{display:flex;align-items:center;gap:10px;line-height:1.4}
.esji-comments .comment-author img{border-radius:50%;flex:none}
.esji-comments .comment-metadata{margin:5px 0 10px;color:var(--esji-muted,#6b7280);font-size:12px}
.esji-comments .comment-content{font-size:15px;line-height:1.6;overflow-wrap:anywhere}
.esji-comments .comment-content p{margin:0 0 8px}
.esji-comments .reply a,.esji-comments .comment-metadata a{color:var(--esji-link,#1556a8);text-decoration:none}
.esji-comments .reply{margin-top:8px;font-size:13px;font-weight:600}
.esji-comments .comment-respond{margin:24px 0 0}
.esji-comments .comment-reply-title{font-size:18px;line-height:1.4;margin:0 0 14px}
.esji-comments .comment-reply-title small{display:block;font-size:13px}
.esji-comments .comment-notes,.esji-comments .logged-in-as{font-size:13px;line-height:1.5;color:var(--esji-muted,#6b7280)}
.esji-comments .comment-form p{margin:0 0 15px}
.esji-comments .comment-form label{display:block;margin:0 0 6px;font-size:14px;font-weight:600}
.esji-comments .comment-form :is(input[type=text],input[type=email],input[type=url],textarea){box-sizing:border-box;width:100%;max-width:100%;padding:11px 12px;border:1px solid #cbd5e1;border-radius:6px;background:var(--esji-surface,#fff);color:var(--esji-text,#111827);font:inherit}
.esji-comments .comment-form textarea{min-height:140px;resize:vertical}
.esji-comments .comment-form :is(input,textarea):focus{outline:2px solid var(--esji-primary,#ff5017);outline-offset:2px}
.esji-comments .comment-form-cookies-consent{display:flex;align-items:flex-start;gap:8px}
.esji-comments .comment-form-cookies-consent label{font-weight:400}
.esji-comments .form-submit input{min-height:42px;padding:10px 18px;border:0;border-radius:6px;background:var(--esji-primary,#ff5017);color:#fff;font-weight:700;cursor:pointer}
@media(max-width:767px){.esji-comments{padding:18px 16px;margin:28px 0}.esji-comments .children{margin-left:16px}}
/* Preserve readable contrast on the site's own components in dark mode. */
html[data-esji-theme=dark]{color-scheme:dark;--esji-primary:var(--esji-dark-primary);--esji-secondary:var(--esji-dark-secondary);--esji-page-bg:var(--esji-dark-page-bg);--esji-surface:var(--esji-dark-surface);--esji-text:var(--esji-dark-text);--esji-muted:var(--esji-dark-muted);--esji-border:var(--esji-dark-border);--esji-header-bg:var(--esji-dark-header-bg);--esji-header-text:var(--esji-dark-header-text);--esji-footer-bg:var(--esji-dark-footer-bg);--esji-footer-text:var(--esji-dark-footer-text);--esji-search-bg:var(--esji-dark-search-bg);--esji-search-text:var(--esji-dark-search-text);--esji-link:var(--esji-dark-link);--esji-trending-bg:var(--esji-dark-trending-bg);--esji-trending-tag-bg:var(--esji-dark-trending-tag-bg);--esji-trending-text:var(--esji-dark-trending-text);}
html[data-esji-theme=dark] body,html[data-esji-theme=dark] body.atd-reference-cover,html[data-esji-theme=dark] body.atd-mobile-dark{background:var(--esji-page-bg)!important;color:var(--esji-text)!important}
html[data-esji-theme=dark] .atd-reference-cover,html[data-esji-theme=dark] .esji-channel-page,html[data-esji-theme=dark] .atd-read{color:var(--esji-text)}
html[data-esji-theme=dark] .atd-reference-cover .atd-wide.header,html[data-esji-theme=dark] .atd-reference-cover .atd-phone.header,html[data-esji-theme=dark] .esji-shared-header,html[data-esji-theme=dark] .esji-sticky-nav,html[data-esji-theme=dark] .esji-sticky-nav .navbar,html[data-esji-theme=dark] .esji-channel-view .esji-shared-header .atd-phone.header{background:var(--esji-header-bg)!important;color:var(--esji-header-text)}
html[data-esji-theme=dark] .esji-theme-toggle{color:var(--esji-header-text);border-color:var(--esji-border)}
html[data-esji-theme=dark] .esji-icon-moon{display:none}html[data-esji-theme=dark] .esji-icon-sun{display:block}
html[data-esji-theme=dark] :is(.navbar--list>li>a,.esji-sticky-nav .navbar--list>li>a,.esji-channel-nav a){color:var(--esji-header-text)}
html[data-esji-theme=dark] :is(.navbar--list>li.current-menu-item>a,.navbar--list>li.--active>a,.navbar--list>li>a[aria-current=page],.esji-channel-nav .--active a){color:var(--esji-primary);border-color:var(--esji-primary)}
html[data-esji-theme=dark] :is(.read-channel,.esji-archive-channel,.esji-sticky-nav .read-channel,.esji-sticky-nav .esji-archive-channel){background:var(--esji-surface)!important;color:var(--esji-text)}
html[data-esji-theme=dark] :is(.read-channel,.esji-archive-channel) a{color:var(--esji-text)}
html[data-esji-theme=dark] :is(.read-channel,.esji-archive-channel) a.current{color:var(--esji-link)}
html[data-esji-theme=dark] :is(#atd-phone-drawer,.esji-sticky-nav .sub-menu,.atd-reference-cover .sub-menu.is-open,.read-share-panel){background:var(--esji-surface)!important;color:var(--esji-text)!important;border-color:var(--esji-border)}
html[data-esji-theme=dark] :is(#atd-phone-drawer .navbar--list a,.esji-sticky-nav .sub-menu a,.atd-reference-cover .sub-menu a){color:var(--esji-text)!important;border-color:var(--esji-border)}
html[data-esji-theme=dark] :is(.header--search__form__input,#atd-phone-drawer form,#atd-phone-drawer input){background:var(--esji-search-bg)!important;color:var(--esji-header-text)!important;border-color:var(--esji-border)}
html[data-esji-theme=dark] :is(.headline--main,.esji-channel-headline,.read-team,.esji-comments,.special-content-inner-box,.popular-list,.esji-channel-latest li:first-child){background:var(--esji-surface)!important;color:var(--esji-text)!important;border-color:var(--esji-border)}
html[data-esji-theme=dark] :is(.headline__item__title,.promotion__item__title,.promotion-article--list__title,.channel-highlights__title,.esji-channel-title,.esji-channel-hero-copy h2,.esji-channel-row h2,.esji-channel-slider-list h3,.esji-channel-sidebar h2,.read-head h1,.read-body,.read-team,.esji-comments,.special-content-inner-box-list-item-title){color:var(--esji-text)!important}
html[data-esji-theme=dark] :is(.read-author,.read-meta,.read-hero figcaption,.esji-channel-hero-copy p,.esji-channel-row p,.headline__item__published,.promotion__item__desc,.esji-comments .comment-notes,.esji-comments .logged-in-as){color:var(--esji-muted)!important}
html[data-esji-theme=dark] :is(.promotion--wrapper,.promotion--headline,.esji-channel-row,.esji-channel-headline,.esji-channel-latest li,.esji-comments,.esji-comments .comment-body,.headline--main,.headline--popular__list__item){border-color:var(--esji-border)!important}
html[data-esji-theme=dark] :is(.footer,.atd-footer-v9){background:var(--esji-footer-bg)!important;color:var(--esji-footer-text)!important}
html[data-esji-theme=dark] :is(.footer a,.footer__copyright,.atd-footer-v9 a:not(.atd-footer-social),.atd-footer-v9-copyright){color:var(--esji-footer-text)!important}
html[data-esji-theme=dark] :is(.esji-comments input[type=text],.esji-comments input[type=email],.esji-comments input[type=url],.esji-comments textarea){background:var(--esji-search-bg)!important;color:var(--esji-header-text)!important;border-color:var(--esji-border)}
html[data-esji-theme=dark] :is(.read-body a,.read-by,.read-more,.esji-comments .reply a,.esji-comments .comment-metadata a){color:var(--esji-link)!important}
html[data-esji-theme=dark] :is(.read-also,.read-tags a){background:var(--esji-search-bg)!important;color:var(--esji-header-text)}
html[data-esji-theme=dark] :is(.gpf-soc,.read-share-networks a){background:var(--esji-search-bg);color:var(--esji-header-text);border-color:var(--esji-border)}

/* Palet bersama untuk trending pada desktop dan ponsel. */
.atd-reference-cover :is(.trending--inner,.bg-trending-tag){background:var(--esji-trending-bg)!important}
.atd-reference-cover :is(.trending__item,.trending--list__item a){background:var(--esji-trending-tag-bg)!important;color:var(--esji-trending-text)!important}
.atd-reference-cover .trending--title{color:var(--esji-primary)}
.atd-reference-cover .trending--wrapper:before,.atd-reference-cover .trending--wrapper:after{background:none}
html[data-esji-theme=dark] :is(.atd-reference-cover .navbar,.atd-reference-cover .header--search__form){background:var(--esji-header-bg)!important}
html[data-esji-theme=dark] :is(.atd-reference-cover .headline--popular__title,.atd-reference-cover .promotion__title,.atd-reference-cover .channel-highlights__title,.atd-reference-cover .featured-photo__title){color:var(--esji-text)}
html[data-esji-theme=dark] :is(.atd-reference-cover .headline--popular__list__item,.atd-reference-cover .promotion--wrapper,.atd-reference-cover .channel-highlights__list li){border-color:var(--esji-border)}
html[data-esji-theme=dark] .atd-read .esji-listen{background:var(--esji-surface);color:var(--esji-text);border-color:var(--esji-border)}
html[data-esji-theme=dark] :is(input,textarea)::placeholder{color:var(--esji-muted);opacity:1}
/* Rapatkan jarak antara trending dan headline tanpa mengubah jarak antarbagian lain. */
@media(min-width:768px){.esji-home-layout .main--top{margin-bottom:-10px}.esji-home-layout .main--top .trending{margin-bottom:0}}
@media(max-width:767px){.esji-home-layout .main--top{margin-bottom:-3px}.esji-home-layout .main--top .trending{margin-bottom:0}}

/* Latar header melebar, sementara konten tetap memakai lebar situs. */
@media (min-width:768px){
  :is(.atd-reference-cover > .atd-wide.header,.esji-shared-header > .atd-wide.header,.atd-read .read-mast .atd-wide.header){isolation:isolate}
  :is(.atd-reference-cover > .atd-wide.header,.esji-shared-header > .atd-wide.header,.atd-read .read-mast .atd-wide.header)::before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:50%;width:100vw;transform:translateX(-50%);background:var(--esji-header-bg,#fff);pointer-events:none}
}

/* Kanal melebar hanya pada latar; isi tetap mengikuti lebar situs. */
.esji-channel-band{position:relative;isolation:isolate}
.esji-channel-band::before{content:"";position:absolute;z-index:-1;inset-block:0;left:50%;width:100vw;transform:translateX(-50%);background:var(--esji-channel-band-bg,#fafafa);pointer-events:none}
html[data-esji-theme=dark] .esji-channel-band{--esji-channel-band-bg:var(--esji-surface)}
.esji-ad-slot{box-sizing:border-box;max-width:100%;min-width:0;text-align:center;margin:12px auto;overflow-wrap:anywhere}
.esji-ad-slot img,.esji-ad-slot iframe{max-width:100%}
.esji-home-layout .main > .esji-ad-slot{width:100%;margin:0 auto}
.headline--popular .esji-ad-slot{margin:18px auto 0}
.read-body .esji-ad-slot{margin:20px auto}

/* Sidebar iklan tampil sebagai satu slot responsif pada ponsel. */
@media(max-width:767px){
  .esji-home-layout .headline.has-home-ad{display:block!important;width:100%}
  .esji-home-layout .headline.has-home-ad .headline--main,
  .esji-home-layout .headline.has-home-ad .headline--popular__title,
  .esji-home-layout .headline.has-home-ad .headline--popular__wrapper{display:none!important}
  .esji-home-layout .headline.has-home-ad .headline--popular{display:block;width:100%}
  .esji-home-layout .headline.has-home-ad .esji-ad-slot{margin:0 auto}
}

/* Logo gelap hanya menggantikan logo biasa jika telah diatur. */
.esji-logo-pair{display:inline-flex;align-items:center;max-width:100%;height:100%}
.esji-logo-pair .esji-logo-dark{display:none!important}
html[data-esji-theme=dark] .esji-logo-pair .esji-logo-light{display:none!important}
html[data-esji-theme=dark] .esji-logo-pair .esji-logo-dark{display:block!important}
:is(.atd-reference-cover .header--logo__link,.esji-v2-logo) img.header--logo__image{max-width:var(--esji-logo-width-desktop,180px)!important;max-height:100%;width:auto;height:auto;object-fit:contain}
@media(max-width:767px){:is(.atd-reference-cover .header--logo__link,.esji-v2-logo) img.header--logo__image{max-width:var(--esji-logo-width-mobile,150px)!important}}
