/* =========================================================
   HALAMAN BACA BERITA
   Styles are scoped so the existing public header/footer stay intact.
========================================================= */

.news-reader-page {
    min-height: 60vh;
    padding: 30px 0 72px;
    /* clip mencegah overflow horizontal tanpa memutus position: sticky. */
    overflow-x: clip;
    background: #f5f7fb;
}

.news-reader-shell {
    width: min(var(--container-width), calc(100% - 32px));
    margin: 0 auto;
}

/* Profil dan formulir pengunjung memakai lebar konten yang sama dengan beranda. */
.public-page-container {
    width: min(var(--container-width), calc(100% - 32px));
}

/* Banner sisi tetap terlihat, tetapi tidak mengambil ruang lebih dari desain utama. */
.floating-ad-image {
    height: 550px;
}

.news-reader-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
    gap: 24px;
}

.news-reader-main-column {
    min-width: 0;
}

.news-reader-page img,
.news-reader-page iframe,
.news-reader-page video {
    max-width: 100%;
}

.news-reader-article,
.reader-section,
.reader-side-card {
    border: 1px solid #e4e9f2;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(21, 39, 78, .055);
}

.news-reader-article {
    overflow: hidden;
}

.reader-article-header {
    padding: 32px 38px 28px;
}

.reader-category-badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #edf3ff;
    color: #245eea;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.reader-article-header h1 {
    max-width: 780px;
    margin: 14px 0 25px;
    color: #101a33;
    font-size: clamp(27px, 2.85vw, 40px);
    line-height: 1.08;
    letter-spacing: -.055em;
}

.reader-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #edf0f5;
}

.reader-author-block {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 11px;
}

.reader-author-avatar {
    display: grid;
    flex: 0 0 47px;
    place-items: center;
    width: 47px;
    height: 47px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffb300, #ff7600);
    color: #fff;
    font-size: 18px;
    font-weight: 850;
    box-shadow: 0 8px 18px rgba(255, 142, 0, .22);
    overflow: hidden;
}

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

.reader-author-avatar--small {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    font-size: 14px;
}

.reader-author-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.reader-author-copy strong {
    overflow: hidden;
    color: #15213b;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reader-author-copy time {
    color: #8290a7;
    font-size: 11px;
}

.reader-view-count {
    display: flex;
    align-items: baseline;
    flex: 0 0 auto;
    gap: 6px;
    color: #7b879d;
    white-space: nowrap;
}

.reader-view-count i {
    margin-right: 2px;
    color: #245eea;
    font-size: 15px;
}

.reader-view-count strong {
    color: #18233d;
    font-size: 18px;
}

.reader-view-count span {
    font-size: 11px;
}

.reader-share-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding: 11px 12px 11px 14px;
    border: 1px solid #e5ebf5;
    border-radius: 12px;
    background: #f8faff;
}

.reader-share-intro {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.reader-share-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #263756;
    font-size: 11px;
    font-weight: 800;
}

.reader-share-label i {
    color: #245eea;
    font-size: 13px;
}

.reader-share-intro small {
    overflow: hidden;
    color: #8290a7;
    font-size: 9px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reader-share-actions {
    position: relative;
    flex: 0 0 auto;
}

.reader-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #bcd1fa;
    border-radius: 9px;
    background: #eef4ff;
    color: #245eea;
    cursor: pointer;
    font: 750 10px/1 Inter, sans-serif;
    transition: .18s ease;
}

.reader-share-button:hover,
.reader-share-button:focus-visible,
.reader-share-row.is-open .reader-share-button {
    border-color: #245eea;
    background: #245eea;
    color: #fff;
    outline: 0;
}

.reader-share-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    min-width: 225px;
    gap: 3px;
    padding: 7px;
    border: 1px solid #e1e7f1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(28, 50, 91, .16);
}

.reader-share-menu[hidden] {
    display: none;
}

.reader-share-menu-item {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 34px;
    padding: 0 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #34425e;
    cursor: pointer;
    font: 650 10px/1.35 Inter, sans-serif;
    text-align: left;
    text-decoration: none;
    transition: .16s ease;
}

.reader-share-menu-item:hover,
.reader-share-menu-item:focus-visible {
    background: #f0f5ff;
    color: #245eea;
    outline: 0;
}

.reader-share-menu-item i {
    width: 16px;
    color: #245eea;
    font-size: 14px;
    text-align: center;
}

.reader-share-menu-item--native {
    border-bottom: 1px solid #edf0f5;
    border-radius: 8px 8px 5px 5px;
}

.reader-share-menu-item--native[hidden] {
    display: none;
}

.reader-article-content {
    padding: 0 38px 34px;
}

.article-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 28px;
}

.article-gallery-item {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #eef2f8;
}

.article-gallery-item--main {
    grid-column: 1 / -1;
}

.article-gallery-item img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.article-gallery-item--main img {
    height: clamp(260px, 42vw, 530px);
}

.article-gallery-item figcaption {
    position: static;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    min-height: 31px;
    padding: 8px 10px;
    background: #f8faff;
    color: #64728b;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.35;
}

.article-photo-caption span {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
}

.article-photo-caption i {
    margin-top: 2px;
    color: #245eea;
}

.article-photo-caption small {
    flex: 0 0 auto;
    color: #9aa6ba;
    font-size: 9px;
    font-weight: 700;
}

/* Galeri foto tambahan pada halaman baca berita. Semua foto ditampilkan
   sebagai satu blok agar alur paragraf berita tetap utuh. */
.reader-news-gallery {
    margin: 0 0 28px;
    padding: 14px;
    border: 1px solid #e1e8f3;
    border-radius: 16px;
    background: #f8faff;
}

.reader-news-gallery-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.reader-news-gallery-heading > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #25385e;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.reader-news-gallery-heading > span i {
    color: #245eea;
    font-size: 13px;
}

.reader-news-gallery-heading small {
    color: #8290a7;
    font-size: 10px;
    font-weight: 600;
}

.reader-news-gallery-figure {
    margin: 0;
}

.reader-news-gallery-viewer {
    position: relative;
    display: grid;
    width: 100%;
    height: clamp(260px, 38vw, 500px);
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    background: #101a33;
    isolation: isolate;
    touch-action: pan-y;
}

.reader-news-gallery-image-wrap {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
}

.reader-news-gallery-main {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity .18s ease, transform .18s ease;
}

.reader-news-gallery-main.is-changing {
    opacity: .35;
    transform: scale(.985);
}

.reader-news-gallery-arrow,
.reader-news-gallery-thumb-arrow {
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.reader-news-gallery-arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
    background: rgba(9, 18, 42, .72);
    color: #fff;
    transform: translateY(-50%);
}

.reader-news-gallery-arrow:hover,
.reader-news-gallery-arrow:focus-visible {
    background: #245eea;
    outline: 0;
}

.reader-news-gallery-arrow--prev {
    left: 12px;
}

.reader-news-gallery-arrow--next {
    right: 12px;
}

.reader-news-gallery-count {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(9, 18, 42, .72);
    color: #fff;
    font-size: 10px;
    font-weight: 750;
}

.reader-news-gallery-caption {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-height: 34px;
    padding: 9px 3px 2px;
    color: #64728b;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.45;
}

.reader-news-gallery-caption > span {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
}

.reader-news-gallery-caption > span i {
    margin-top: 2px;
    color: #245eea;
}

.reader-news-gallery-caption > small {
    flex: 0 0 auto;
    color: #9aa6ba;
    font-size: 9px;
    font-weight: 750;
    white-space: nowrap;
}

.reader-news-gallery-thumbs-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 3px;
}

.reader-news-gallery-thumbs {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
    overflow-x: auto;
    padding: 2px;
    scrollbar-width: thin;
}

.reader-news-gallery-thumb {
    flex: 0 0 88px;
    width: 88px;
    height: 60px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 9px;
    background: #e9eef7;
    cursor: pointer;
    opacity: .78;
    transition: border-color .18s ease, box-shadow .18s ease, opacity .18s ease, transform .18s ease;
}

.reader-news-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reader-news-gallery-thumb:hover,
.reader-news-gallery-thumb:focus-visible,
.reader-news-gallery-thumb.is-active {
    border-color: #245eea;
    outline: 0;
    opacity: 1;
}

.reader-news-gallery-thumb.is-active {
    box-shadow: 0 0 0 2px rgba(36, 94, 234, .18);
    transform: translateY(-1px);
}

.reader-news-gallery-thumb-arrow {
    flex: 0 0 28px;
    width: 28px;
    height: 34px;
    border-radius: 8px;
    background: #eaf1ff;
    color: #245eea;
}

.reader-news-gallery-thumb-arrow:hover,
.reader-news-gallery-thumb-arrow:focus-visible {
    background: #245eea;
    color: #fff;
    outline: 0;
}

.reader-article-lead {
    margin: 0 0 20px;
    color: #445370;
    font-size: 17px;
    font-weight: 650;
    line-height: 1.65;
}

.reader-story-text {
    overflow-wrap: anywhere;
    color: #35435f;
    font-size: 16px;
    line-height: 1.9;
}

.reader-story-text p {
    margin: 0 0 1.25em;
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    hyphens: auto;
}

.reader-story-text p:last-child {
    margin-bottom: 0;
}

.reader-story-text h2,
.reader-story-text h3 {
    margin: 1.45em 0 .6em;
    color: #18233d;
    line-height: 1.3;
}

.reader-story-text h2 {
    font-size: 1.42em;
}

.reader-story-text h3 {
    font-size: 1.16em;
}

.reader-story-text ul,
.reader-story-text ol {
    margin: 0 0 1.25em;
    padding-left: 1.55em;
    text-align: left;
}

.reader-story-text blockquote {
    margin: 1.35em 0;
    padding: 14px 18px;
    border-left: 4px solid #245eea;
    border-radius: 0 10px 10px 0;
    background: #f5f8ff;
    color: #53617b;
}

.reader-story-text a {
    color: #245eea;
    text-decoration: underline;
}

.reader-story-text figure.editor-inline-image {
    margin: 28px 0;
    text-align: center;
}

.reader-story-text figure.editor-inline-image img {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    background: #eef2f8;
}

.reader-story-text figure.editor-inline-image figcaption {
    margin-top: 7px;
    color: #8290a7;
    font-size: 11px;
    line-height: 1.45;
}

.reader-story-text hr {
    margin: 28px 0;
    border: 0;
    border-top: 1px solid #e8edf5;
}

.article-inline-photo {
    margin: 28px 0;
    overflow: hidden;
    background: #eef2f8;
}

.article-inline-photo img {
    display: block;
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.reader-baca-juga {
    margin: 30px 0 0;
    padding: 18px 20px 17px;
    border-left: 4px solid #ffab00;
    border-radius: 0 14px 14px 0;
    background: #fff8e9;
}

.reader-baca-juga-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #b56a00;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.reader-baca-juga-list {
    display: grid;
    gap: 8px;
}

.reader-baca-juga-list a {
    display: grid;
    grid-template-columns: 23px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    color: #273552;
    font-size: 12px;
    line-height: 1.4;
    text-decoration: none;
}

.reader-baca-juga-list a:hover strong {
    color: #245eea;
}

.reader-baca-juga-list a > span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: #ffb300;
    color: #fff;
    font-size: 10px;
    font-weight: 850;
}

.reader-content-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 30px 30px;
    padding: 17px 0 0;
    border-top: 1px solid #edf0f5;
}

.reader-pagination-label {
    color: #8591a8;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.reader-pagination-actions,
.reader-page-numbers {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.reader-pagination-actions > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 9px;
    border-radius: 8px;
    color: #54627b;
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
}

.reader-pagination-actions > a:hover {
    background: #f0f4ff;
    color: #245eea;
}

.reader-page-numbers a {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: #65728a;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.reader-page-numbers a:hover,
.reader-page-numbers a.active {
    background: #245eea;
    color: #fff;
    box-shadow: 0 6px 14px rgba(36, 94, 234, .22);
}

.reader-section {
    margin-top: 24px;
    padding: 26px;
}

.reader-article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 13px;
    margin: 24px 0 0;
    padding: 18px 2px 0;
    border-top: 1px solid #e8edf5;
}

.reader-tags-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #42516c;
    font-size: 11px;
    font-weight: 800;
}

.reader-tags-label i {
    color: #245eea;
}

.reader-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.reader-tags-list a {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 9px;
    border: 1px solid #dbe5fa;
    border-radius: 7px;
    background: #f5f8ff;
    color: #245eea;
    font-size: 10px;
    font-weight: 750;
    text-decoration: none;
}

.reader-tags-list a:hover {
    border-color: #245eea;
    background: #245eea;
    color: #fff;
}

.reader-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.reader-section-kicker {
    display: block;
    margin-bottom: 6px;
    color: #245eea;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.reader-section-heading h2,
.reader-side-heading h2 {
    margin: 0;
    color: #12203c;
    font-size: 24px;
    letter-spacing: -.035em;
}

.reader-section-heading > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #245eea;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.reader-recommended-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.reader-recommended-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 13px;
    min-width: 0;
    padding: 10px;
    border: 1px solid #e9edf4;
    border-radius: 13px;
    background: #fbfcfe;
}

.reader-recommended-image {
    display: block;
    overflow: hidden;
    border-radius: 9px;
    background: #e9eef7;
}

.reader-recommended-image img {
    display: block;
    width: 100%;
    height: 90px;
    object-fit: cover;
}

.reader-recommended-card > div {
    min-width: 0;
}

.reader-recommended-card > div > span {
    color: #245eea;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.reader-recommended-card h3 {
    display: -webkit-box;
    margin: 5px 0 7px;
    overflow: hidden;
    color: #17233d;
    font-size: 12px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.reader-recommended-card h3 a {
    color: inherit;
    text-decoration: none;
}

.reader-recommended-card h3 a:hover {
    color: #245eea;
}

.reader-recommended-card small {
    color: #8995aa;
    font-size: 9px;
}

.reader-recommended-card small i {
    margin-right: 3px;
}

.article-comments {
    scroll-margin-top: 24px;
}

.article-comments .reader-section-heading h2 span {
    color: #9aa5b9;
    font-size: 16px;
    font-weight: 600;
}

.reader-comment-form {
    margin-bottom: 25px;
    padding: 17px;
    border: 1px solid #e4eaf5;
    border-radius: 14px;
    background: #f9fbff;
}

.reader-comment-form-head,
.reader-comment-login,
.reader-comment-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.reader-comment-form-head > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
    padding-top: 2px;
}

.reader-comment-form-head strong,
.reader-comment-login strong {
    color: #1b2945;
    font-size: 12px;
}

.reader-comment-form-head span:not(.reader-author-avatar),
.reader-comment-login p {
    margin: 0;
    color: #8a96aa;
    font-size: 10px;
}

.reader-comment-form textarea {
    display: block;
    width: 100%;
    min-height: 105px;
    margin: 15px 0 11px;
    padding: 12px 13px;
    resize: vertical;
    border: 1px solid #dde5f1;
    border-radius: 10px;
    outline: 0;
    background: #fff;
    color: #26344f;
    font: inherit;
    font-size: 12px;
}

.reader-comment-form textarea:focus {
    border-color: #6d96f6;
    box-shadow: 0 0 0 3px rgba(36, 94, 234, .1);
}

.reader-comment-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.reader-comment-form-footer small {
    color: #8a96aa;
    font-size: 10px;
}

.reader-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 9px;
    background: #245eea;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 7px 16px rgba(36, 94, 234, .18);
}

.reader-primary-button:hover {
    background: #164bd1;
    color: #fff;
}

.reader-comment-login {
    align-items: center;
    margin-bottom: 22px;
    padding: 14px;
    border: 1px dashed #cbd8ef;
    border-radius: 12px;
    background: #f8fbff;
}

.reader-comment-login > i {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #eaf1ff;
    color: #245eea;
}

.reader-comment-login > div {
    flex: 1;
}

.reader-comment-login p {
    margin-top: 3px;
}

.reader-comment-list {
    display: grid;
    gap: 17px;
}

.reader-comment-item {
    padding-top: 17px;
    border-top: 1px solid #edf0f5;
}

.reader-comment-copy {
    min-width: 0;
    flex: 1;
}

.reader-comment-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.reader-comment-meta strong {
    color: #1b2945;
    font-size: 12px;
}

.reader-comment-meta time {
    color: #9aa5b8;
    font-size: 9px;
    white-space: nowrap;
}

.reader-comment-copy p {
    margin: 6px 0 0;
    color: #58657c;
    font-size: 12px;
    line-height: 1.65;
}

.reader-comment-empty {
    display: grid;
    place-items: center;
    gap: 5px;
    padding: 30px 10px 14px;
    color: #93a0b8;
    text-align: center;
}

.reader-comment-empty i {
    margin-bottom: 5px;
    color: #b2c0da;
    font-size: 30px;
}

.reader-comment-empty strong {
    color: #35435f;
    font-size: 13px;
}

.reader-comment-empty span {
    font-size: 10px;
}

.reader-comment-error {
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid #fecaca;
    border-radius: 9px;
    background: #fff1f2;
    color: #b42318;
    font-size: 11px;
}

.reader-comments-pagination {
    margin-top: 22px;
    overflow-x: auto;
    color: #61708a;
    font-size: 11px;
}

.reader-comments-pagination nav {
    display: flex;
    justify-content: center;
}

.reader-comments-pagination nav > div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.reader-comments-pagination a,
.reader-comments-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid #e1e7f1;
    border-radius: 7px;
    color: #53627c;
    text-decoration: none;
}

.reader-comments-pagination a:hover,
.reader-comments-pagination span[aria-current="page"] {
    border-color: #245eea;
    background: #245eea;
    color: #fff;
}

.news-reader-sidebar {
    display: flex;
    position: sticky;
    top: calc(96px + var(--nav-height) + 18px);
    align-self: start;
    min-width: 0;
    flex-direction: column;
    gap: 18px;
    height: fit-content;
    margin-top: 0;
}

.reader-side-card {
    padding: 20px;
}

.reader-side-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 15px;
}

.reader-side-heading h2 {
    font-size: 19px;
}

.reader-side-heading .reader-section-kicker {
    margin-bottom: 3px;
    font-size: 8px;
}

.reader-side-icon {
    display: grid;
    flex: 0 0 40px;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 16px;
}

.reader-side-icon--blue {
    background: #eaf1ff;
    color: #245eea;
}

.reader-side-icon--orange {
    background: #fff3df;
    color: #f59e0b;
}

.reader-side-icon--purple {
    background: #f1ebff;
    color: #8450dd;
}

.reader-side-icon--green {
    background: #e5f8f0;
    color: #159a68;
}

.reader-follow-card > p {
    margin: 0 0 15px;
    color: #8290a7;
    font-size: 11px;
    line-height: 1.55;
}

.reader-social-links {
    display: flex;
    gap: 8px;
}

.reader-social-links a {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid #e2e8f2;
    border-radius: 9px;
    color: #53617b;
    font-size: 13px;
    text-decoration: none;
    transition: .18s ease;
}

.reader-social-links a:hover {
    border-color: #245eea;
    background: #245eea;
    color: #fff;
    transform: translateY(-2px);
}

.reader-side-list,
.reader-opinion-list {
    display: grid;
    gap: 13px;
}

.reader-side-story {
    display: grid;
    grid-template-columns: 29px minmax(0, 1fr);
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.reader-side-story > span {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 9px;
    background: #f0f3f8;
    color: #7f8ba2;
    font-size: 10px;
    font-weight: 850;
}

.reader-side-story:first-child > span {
    background: #245eea;
    color: #fff;
    box-shadow: 0 6px 14px rgba(36, 94, 234, .2);
}

.reader-side-story div {
    min-width: 0;
}

.reader-side-story strong {
    display: -webkit-box;
    overflow: hidden;
    color: #26334e;
    font-size: 11px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.reader-side-story:hover strong {
    color: #245eea;
}

.reader-side-story small {
    display: block;
    margin-top: 4px;
    color: #98a3b5;
    font-size: 9px;
}

.reader-opinion-list a {
    padding-bottom: 12px;
    border-bottom: 1px solid #edf0f5;
    color: inherit;
    text-decoration: none;
}

.reader-opinion-list a:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.reader-opinion-list strong {
    display: -webkit-box;
    overflow: hidden;
    color: #2a3855;
    font-size: 11px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.reader-opinion-list a:hover strong {
    color: #8450dd;
}

.reader-opinion-list span {
    display: block;
    margin-top: 5px;
    color: #98a3b5;
    font-size: 9px;
}

.reader-ad-card {
    display: flex;
    min-height: 0;
    flex-direction: column;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.reader-sidebar-banner {
    display: block;
    overflow: hidden;
    border-radius: 0;
    background: #eef2f7;
}

.reader-sidebar-banner img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 550px;
    border-radius: 0;
    object-fit: cover;
}

body.dark-mode .news-reader-page {
    background: #111729;
}

body.dark-mode .news-reader-article,
body.dark-mode .reader-section,
body.dark-mode .reader-side-card,
body.dark-mode .reader-comment-form {
    border-color: #29334d;
    background: #182139;
    box-shadow: none;
}

body.dark-mode .reader-article-header h1,
body.dark-mode .reader-section-heading h2,
body.dark-mode .reader-side-heading h2,
body.dark-mode .reader-author-copy strong,
body.dark-mode .reader-view-count strong,
body.dark-mode .reader-recommended-card h3,
body.dark-mode .reader-side-story strong,
body.dark-mode .reader-opinion-list strong,
body.dark-mode .reader-comment-meta strong,
body.dark-mode .reader-comment-empty strong {
    color: #f2f5ff;
}

body.dark-mode .reader-meta-row,
body.dark-mode .reader-comment-item,
body.dark-mode .reader-opinion-list a {
    border-color: #29334d;
}

body.dark-mode .reader-share-row {
    border-color: #29334d;
    background: #131b30;
}

body.dark-mode .reader-share-label {
    color: #dce5f7;
}

body.dark-mode .reader-share-intro small {
    color: #a8b4ca;
}

body.dark-mode .reader-share-button {
    border-color: #3d5eaa;
    background: #1c2b4c;
    color: #b8ceff;
}

body.dark-mode .reader-share-menu {
    border-color: #33405d;
    background: #182139;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .28);
}

body.dark-mode .reader-share-menu-item {
    color: #d6deef;
}

body.dark-mode .reader-share-menu-item:hover,
body.dark-mode .reader-share-menu-item:focus-visible {
    background: #202d4a;
    color: #b8ceff;
}

body.dark-mode .reader-share-menu-item--native {
    border-color: #29334d;
}

body.dark-mode .reader-news-gallery {
    border-color: #2d3954;
    background: #131b30;
}

body.dark-mode .reader-news-gallery-heading > span,
body.dark-mode .reader-news-gallery-caption {
    color: #d6deef;
}

body.dark-mode .reader-news-gallery-heading small,
body.dark-mode .reader-news-gallery-caption > small {
    color: #a8b4ca;
}

body.dark-mode .reader-news-gallery-thumb {
    border-color: transparent;
    background: #202a42;
}

body.dark-mode .reader-news-gallery-thumb:hover,
body.dark-mode .reader-news-gallery-thumb:focus-visible,
body.dark-mode .reader-news-gallery-thumb.is-active {
    border-color: #83a8ff;
}

body.dark-mode .reader-news-gallery-thumb-arrow {
    background: #202d4a;
    color: #b8ceff;
}

body.dark-mode .reader-news-gallery-thumb-arrow:hover,
body.dark-mode .reader-news-gallery-thumb-arrow:focus-visible {
    background: #245eea;
    color: #fff;
}

body.dark-mode .reader-story-text,
body.dark-mode .reader-article-lead,
body.dark-mode .reader-comment-copy p {
    color: #c4ccdc;
}

body.dark-mode .reader-story-text h2,
body.dark-mode .reader-story-text h3 {
    color: #f2f5ff;
}

body.dark-mode .reader-story-text blockquote {
    border-color: #6f97ff;
    background: #202c49;
    color: #c4ccdc;
}

body.dark-mode .reader-story-text figure.editor-inline-image img {
    background: #202a42;
}

body.dark-mode .reader-story-text hr {
    border-color: #29334d;
}

body.dark-mode .reader-recommended-card,
body.dark-mode .reader-comment-login {
    border-color: #2d3954;
    background: #131b30;
}

body.dark-mode .reader-article-tags {
    border-color: #29334d;
}

body.dark-mode .reader-tags-label {
    color: #d6ddec;
}

body.dark-mode .reader-tags-list a {
    border-color: #33405d;
    background: #131b30;
    color: #a9c2ff;
}

body.dark-mode .reader-comment-form textarea {
    border-color: #33405d;
    background: #11182b;
    color: #edf2ff;
}

@media (max-width: 1100px) {
    .news-reader-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 18px;
    }

    .reader-article-header,
    .reader-article-content {
        padding-right: 28px;
        padding-left: 28px;
    }

    .reader-content-pagination {
        margin-right: 28px;
        margin-left: 28px;
    }

    .reader-recommended-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .news-reader-layout {
        grid-template-columns: 1fr;
    }

    .news-reader-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        height: auto;
    }

    .reader-ad-card {
        min-height: 0;
    }
}

@media (max-width: 620px) {
    .news-reader-page {
        padding: 14px 0 48px;
    }

    .news-reader-shell {
        width: min(var(--container-width), calc(100% - 20px));
    }

    .public-page-container {
        width: calc(100% - 24px);
    }

    .reader-article-header,
    .reader-article-content {
        padding-right: 16px;
        padding-left: 16px;
    }

    .reader-article-header {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .reader-article-header h1 {
        margin-top: 12px;
        margin-bottom: 18px;
        font-size: clamp(22px, 7.2vw, 30px);
        line-height: 1.18;
        letter-spacing: -.035em;
        overflow-wrap: anywhere;
    }

    .reader-meta-row {
        align-items: flex-start;
        gap: 10px;
    }

    .reader-author-block {
        flex: 1 1 auto;
    }

    .reader-view-count {
        align-self: center;
        margin-left: auto;
        padding-left: 0;
    }

    .reader-share-row {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
        padding: 11px;
    }

    .reader-share-intro small {
        white-space: normal;
    }

    .reader-share-actions {
        width: 100%;
    }

    .reader-share-button {
        width: 100%;
    }

    .reader-share-menu {
        position: static;
        min-width: 0;
        margin-top: 7px;
    }

    .article-gallery {
        grid-template-columns: 1fr;
    }

    .article-gallery-item--main {
        grid-column: auto;
    }

    .article-gallery-item img,
    .article-gallery-item--main img {
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .article-gallery-item figcaption {
        padding: 8px 9px;
        font-size: 9px;
    }

    .reader-news-gallery {
        margin-bottom: 22px;
        padding: 10px;
    }

    .reader-news-gallery-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        margin-bottom: 8px;
    }

    .reader-news-gallery-viewer {
        height: clamp(210px, 56vw, 360px);
    }

    .reader-news-gallery-arrow {
        width: 32px;
        height: 32px;
    }

    .reader-news-gallery-arrow--prev {
        left: 8px;
    }

    .reader-news-gallery-arrow--next {
        right: 8px;
    }

    .reader-news-gallery-count {
        top: 8px;
        right: 8px;
        padding: 4px 7px;
        font-size: 9px;
    }

    .reader-news-gallery-caption {
        gap: 7px;
        padding-top: 8px;
        font-size: 9px;
    }

    .reader-news-gallery-thumb {
        flex-basis: 72px;
        width: 72px;
        height: 52px;
    }

    .reader-news-gallery-thumb-arrow {
        flex-basis: 25px;
        width: 25px;
        height: 31px;
    }

    .reader-story-text {
        font-size: 15px;
        line-height: 1.82;
    }

    .reader-story-text p {
        margin-bottom: 1.15em;
    }

    .reader-story-text h2 {
        margin-top: 1.25em;
        font-size: 1.28em;
    }

    .reader-story-text h3 {
        font-size: 1.1em;
    }

    .reader-story-text figure.editor-inline-image {
        margin: 22px 0;
    }

    .reader-article-lead {
        font-size: 15px;
        line-height: 1.7;
    }

    .article-inline-photo {
        margin: 22px 0;
    }

    .article-inline-photo img {
        height: auto;
        max-height: none;
    }

    .reader-baca-juga {
        margin-top: 24px;
        padding: 15px 14px 14px;
    }

    .reader-baca-juga-list a {
        font-size: 11px;
    }

    .reader-content-pagination {
        align-items: flex-start;
        flex-direction: column;
        margin-right: 16px;
        margin-left: 16px;
        gap: 11px;
    }

    .reader-pagination-actions {
        width: 100%;
        justify-content: space-between;
    }

    .reader-section {
        margin-top: 18px;
        padding: 18px 15px;
        border-radius: 16px;
    }

    .reader-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .news-reader-sidebar {
        grid-template-columns: 1fr;
    }

    .reader-recommended-grid {
        grid-template-columns: 1fr;
    }

    .reader-comment-form-footer,
    .reader-comment-login {
        align-items: flex-start;
        flex-direction: column;
    }

    .reader-comment-form-footer .reader-primary-button,
    .reader-comment-login .reader-primary-button {
        width: 100%;
    }

    .reader-recommended-card {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 10px;
        padding: 8px;
    }

    .reader-recommended-image img {
        height: 78px;
    }

    .reader-comment-meta {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .reader-comment-meta time {
        margin-left: auto;
    }
}

@media (max-width: 380px) {
    .reader-meta-row {
        flex-direction: column;
    }

    .reader-view-count {
        align-self: flex-start;
        margin-left: 58px;
    }

    .reader-author-avatar {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    .reader-author-copy time {
        font-size: 10px;
    }

    .reader-pagination-actions {
        justify-content: center;
    }
}

/* =========================================================
   FOLLOW US READER — SAMAKAN DENGAN HALAMAN DEPAN
========================================================= */

.news-reader-sidebar .reader-follow-card.follow-us-card {
    min-width: 0;
    min-height: 180px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0, rgba(11, 22, 143, .12), transparent 38%),
        var(--surface);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.news-reader-sidebar .reader-follow-card.follow-us-card .follow-us-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.news-reader-sidebar .reader-follow-card.follow-us-card .follow-us-heading > div {
    min-width: 0;
}

.news-reader-sidebar .reader-follow-card.follow-us-card .follow-us-heading > div > span {
    display: block;
    margin-bottom: 3px;
    color: var(--blue);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.news-reader-sidebar .reader-follow-card.follow-us-card .follow-us-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: 21px;
    line-height: 1.1;
    font-weight: 850;
    letter-spacing: -.035em;
}

.news-reader-sidebar .reader-follow-card.follow-us-card .follow-us-heading > i {
    flex: 0 0 auto;
    color: #ffb900;
    font-size: 20px;
}

.news-reader-sidebar .reader-follow-card.follow-us-card .follow-us-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.news-reader-sidebar .reader-follow-card.follow-us-card .follow-us-link {
    display: flex;
    min-width: 0;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 7px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font-size: 10px;
    font-weight: 750;
    line-height: 1.15;
    text-decoration: none;
    transition:
        color .18s ease,
        background .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

.news-reader-sidebar .reader-follow-card.follow-us-card .follow-us-link i {
    flex: 0 0 auto;
    font-size: 15px;
}

.news-reader-sidebar .reader-follow-card.follow-us-card .follow-us-link span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-reader-sidebar .reader-follow-card.follow-us-card .follow-us-link:hover,
.news-reader-sidebar .reader-follow-card.follow-us-card .follow-us-link.is-active {
    transform: translateY(-2px);
    color: #fff;
    border-color: transparent;
}

.news-reader-sidebar .reader-follow-card.follow-us-card .follow-us-link.facebook:hover,
.news-reader-sidebar .reader-follow-card.follow-us-card .follow-us-link.facebook.is-active {
    background: #1877f2;
}

.news-reader-sidebar .reader-follow-card.follow-us-card .follow-us-link.tiktok:hover,
.news-reader-sidebar .reader-follow-card.follow-us-card .follow-us-link.tiktok.is-active,
.news-reader-sidebar .reader-follow-card.follow-us-card .follow-us-link.x-twitter:hover,
.news-reader-sidebar .reader-follow-card.follow-us-card .follow-us-link.x-twitter.is-active,
.news-reader-sidebar .reader-follow-card.follow-us-card .follow-us-link.threads:hover,
.news-reader-sidebar .reader-follow-card.follow-us-card .follow-us-link.threads.is-active {
    background: #111;
}

.news-reader-sidebar .reader-follow-card.follow-us-card .follow-us-link.instagram:hover,
.news-reader-sidebar .reader-follow-card.follow-us-card .follow-us-link.instagram.is-active {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.news-reader-sidebar .reader-follow-card.follow-us-card .follow-us-link.youtube:hover,
.news-reader-sidebar .reader-follow-card.follow-us-card .follow-us-link.youtube.is-active {
    background: #f00;
}

body.dark-mode .news-reader-sidebar .reader-follow-card.follow-us-card {
    box-shadow: none;
}

@media (max-width: 1100px) {
    .news-reader-sidebar .reader-follow-card.follow-us-card .follow-us-link span {
        display: none;
    }
}

@media (max-width: 1000px) {
    .news-reader-sidebar .reader-follow-card.follow-us-card .follow-us-link span {
        display: inline;
    }
}

@media (max-width: 650px) {
    .news-reader-sidebar .reader-follow-card.follow-us-card {
        min-height: 0;
        padding: 14px;
        border-radius: 15px;
    }

    .news-reader-sidebar .reader-follow-card.follow-us-card .follow-us-heading h2 {
        font-size: 19px;
    }

    .news-reader-sidebar .reader-follow-card.follow-us-card .follow-us-link {
        min-height: 42px;
        border-radius: 10px;
    }
}

@media (max-width: 390px) {
    .news-reader-sidebar .reader-follow-card.follow-us-card .follow-us-link span {
        display: none;
    }
}
