/* Pagination menggunakan palet aktif dan tetap nyaman disentuh pada ponsel. */
html body :is(.navigation.pagination,.navigation.comment-navigation,.navigation.posts-navigation) .nav-links{
 display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:24px 0 0;
}
html body :is(.navigation.pagination,.navigation.comment-navigation,.navigation.posts-navigation) .nav-links :is(.page-numbers,.nav-previous a,.nav-next a){
 box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;
 margin:0;padding:0 13px;border:1px solid var(--esji-border,var(--atd-border,#e5e7eb));border-radius:10px;
 background:var(--esji-surface,var(--atd-surface,#fff));color:var(--esji-text,var(--atd-text,#111827));
 font-size:13px;font-weight:700;line-height:1.3;text-decoration:none;transition:border-color .18s ease,color .18s ease,background .18s ease;
}
html body :is(.navigation.pagination,.navigation.comment-navigation,.navigation.posts-navigation) .nav-links a:hover{
 border-color:var(--esji-primary,var(--atd-primary,#2f7d17));color:var(--esji-primary,var(--atd-primary,#2f7d17));
}
html body :is(.navigation.pagination,.navigation.comment-navigation,.navigation.posts-navigation) .nav-links .page-numbers.current{
 border-color:var(--esji-primary,var(--atd-primary,#2f7d17));color:var(--esji-primary,var(--atd-primary,#2f7d17));
 background:var(--esji-surface,var(--atd-surface,#fff));box-shadow:inset 0 0 0 1px var(--esji-primary,var(--atd-primary,#2f7d17));
}
html body :is(.navigation.pagination,.navigation.comment-navigation,.navigation.posts-navigation) .nav-links .page-numbers.dots{
 border-color:transparent;background:transparent;box-shadow:none;min-width:24px;padding:0 4px;color:var(--esji-muted,var(--atd-muted,#6b7280));
}
html body :is(.navigation.pagination,.navigation.comment-navigation,.navigation.posts-navigation) .nav-links a:focus-visible{outline:2px solid var(--esji-primary,var(--atd-primary,#2f7d17));outline-offset:3px}

/* Foto artikel dapat dibuka tanpa mengubah tautan atau galeri lain. */
html.read-photo-open{overflow:hidden}
html body.atd-read .read-hero-wrap>img,.read-body .read-image-preview{cursor:zoom-in}
html body.atd-read .read-body .read-image-preview:focus-visible{outline:3px solid var(--esji-primary,var(--atd-primary,#2f7d17));outline-offset:3px}
html body.atd-read #read-photo-dialog{
 box-sizing:border-box;position:fixed;inset:0;width:min(960px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);
 margin:auto;padding:54px 14px 16px;border:0;border-radius:14px;background:#15181c;color:#fff;overflow:auto;
}
html body.atd-read #read-photo-dialog::backdrop{background:rgba(0,0,0,.88)}
html body.atd-read #read-photo-dialog img{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100dvh - 150px);object-fit:contain;margin:auto}
html body.atd-read #read-photo-dialog .read-photo-close{
 position:absolute;right:12px;top:10px;display:grid;place-items:center;width:40px;height:40px;padding:8px;border:1px solid #ffffff55;border-radius:50%;background:#ffffff18;color:#fff;cursor:pointer;
}
html body.atd-read #read-photo-dialog .read-photo-close:focus-visible{outline:2px solid #fff;outline-offset:3px}
html body.atd-read #read-photo-dialog .read-photo-caption{margin:12px auto 0;max-width:800px;color:#eee;text-align:center;font-size:13px;line-height:1.5}
@media(max-width:767px){
 html body.atd-read .read-hero-wrap .read-enlarge{display:none}
}
html body.atd-read .read-hero-wrap>img:focus-visible{outline:3px solid var(--esji-primary,var(--atd-primary,#2f7d17));outline-offset:3px}

/* Jarak paragraf lebih ringkas, tetapi penekanan dan judul dari editor tetap terjaga. */
html body.atd-read .read-body{font-weight:400;letter-spacing:normal}
html body.atd-read .read-body :where(p,li){font-weight:400;letter-spacing:normal;text-transform:none}
html body.atd-read .read-body :where(p){margin-top:0;margin-bottom:10px}
html body.atd-read .read-body :where(strong,b){font-weight:700}
html body.atd-read .read-body :where(h2,h3,h4,h5,h6){line-height:1.35}
@media(max-width:767px){
 html body.atd-read .read-body{padding-bottom:0}
 html body.atd-read .read-body :where(p){margin-bottom:9px}
}

/* Kartu berita lanjutan dan terkait memakai warna tema dan ruang yang rapi. */
html body.atd-read .read-next-frame{
 display:block;position:relative;margin:20px 0 24px;padding:0;border:1px solid var(--esji-border,var(--atd-border,#e5e7eb));border-radius:12px;
 background:var(--esji-surface,var(--atd-surface,#fff));overflow:hidden;box-shadow:0 4px 18px rgba(0,0,0,.05);
}
html body.atd-read .read-next-frame::before{display:none;content:none;animation:none}
html body.atd-read .read-next-frame .read-next{
 box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:88px;margin:0;padding:15px 16px;
 border:0;border-left:4px solid var(--esji-primary,var(--atd-primary,#2f7d17));border-radius:0;background:var(--esji-surface,var(--atd-surface,#fff));
 color:var(--esji-text,var(--atd-text,#111827));text-decoration:none;
}
html body.atd-read .read-next-frame .read-next span{display:block;margin-bottom:5px;color:var(--esji-primary,var(--atd-primary,#2f7d17));font-size:11px;font-weight:700;line-height:1.3;letter-spacing:.04em;text-transform:uppercase}
html body.atd-read .read-next-frame .read-next strong{display:block;color:var(--esji-text,var(--atd-text,#111827));font-size:15px;font-style:normal;font-weight:700;line-height:1.4}
html body.atd-read .read-next-frame .read-next svg{flex:none;width:22px;height:22px;color:var(--esji-primary,var(--atd-primary,#2f7d17))}
html body.atd-read .read-next-frame .read-next:hover strong{color:var(--esji-primary,var(--atd-primary,#2f7d17))}
html body.atd-read .read-next-frame .read-next:focus-visible{outline:2px solid var(--esji-primary,var(--atd-primary,#2f7d17));outline-offset:-3px}
html body.atd-read .read-body .read-also{
 margin:20px 0;padding:15px;border:1px solid var(--esji-border,var(--atd-border,#e5e7eb));border-left:4px solid var(--esji-primary,var(--atd-primary,#2f7d17));border-radius:12px;
 background:var(--esji-surface,var(--atd-surface,#fff));box-shadow:0 4px 18px rgba(0,0,0,.05);
}
html body.atd-read .read-body .read-also h2{margin:0 0 10px;color:var(--esji-primary,var(--atd-primary,#2f7d17));font-size:11px;line-height:1.3;font-weight:700;letter-spacing:.04em}
html body.atd-read .read-body .read-also .read-also-link{gap:12px;color:var(--esji-text,var(--atd-text,#111827));align-items:center}
html body.atd-read .read-body .read-also .read-also-thumb{width:88px;flex-basis:88px;border-radius:8px}
html body.atd-read .read-body .read-also .read-also-title{color:var(--esji-text,var(--atd-text,#111827));font-size:15px;font-weight:700;line-height:1.4}
html body.atd-read .read-body .read-also .read-also-arrow{color:var(--esji-primary,var(--atd-primary,#2f7d17))}
@media(max-width:767px){
 html body.atd-read .read-next-frame{margin:18px 0 22px}
 html body.atd-read .read-next-frame .read-next{min-height:78px;padding:13px}
 html body.atd-read .read-next-frame .read-next strong{font-size:14px}
 html body.atd-read .read-body .read-also{margin:18px 0;padding:13px}
 html body.atd-read .read-body .read-also .read-also-thumb{width:72px;flex-basis:72px}
 html body.atd-read .read-body .read-also .read-also-title{font-size:14px}
}
@media(prefers-reduced-motion:reduce){html body :is(.navigation.pagination,.navigation.comment-navigation,.navigation.posts-navigation) .nav-links a{transition:none}}
