/* ==========================================================================
   berita.css — gaya portal berita AMAN News.
   Mobile-first, satu file (dimuat dengan ?v=hash + cache 1 tahun).

   Prinsip:
   - Font memakai system stack → nol permintaan font eksternal (LCP lebih cepat).
   - Ikon berupa inline SVG → tidak ada CSS font-icon tambahan.
   - Seluruh warna lewat token di :root, mode gelap hanya menimpa token.
   - Semua animasi dimatikan saat pengguna memilih prefers-reduced-motion.
   ========================================================================== */

/* ── TOKEN WARNA ── */
:root {
    --nw-bg:        #ffffff;
    --nw-bg-alt:    #f4f6fa;
    --nw-surface:   #ffffff;
    --nw-surface-2: #f8fafc;
    --nw-text:      #10192b;
    --nw-text-2:    #5a6a82;
    --nw-text-3:    #8494ab;
    --nw-border:    #e3e8ef;
    --nw-border-2:  #d3dae5;
    --nw-accent:    #047857;
    --nw-accent-h:  #059669;
    --nw-accent-sf: #ecfdf5;
    --nw-red:       #c62828;
    --nw-red-sf:    #fdecec;
    --nw-shadow:    0 1px 2px rgba(16, 25, 43, .05), 0 8px 24px rgba(16, 25, 43, .06);
    --nw-shadow-lg: 0 4px 12px rgba(16, 25, 43, .08), 0 20px 48px rgba(16, 25, 43, .12);
    --nw-r:         14px;
    --nw-r-sm:      9px;
    --nw-wrap:      1200px;
    --nw-head-h:    116px;
    --nw-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --nw-serif: Georgia, "Times New Roman", serif;
}

html[data-theme="dark"] {
    --nw-bg:        #0f172a;
    --nw-bg-alt:    #131f38;
    --nw-surface:   #17233d;
    --nw-surface-2: #1c2a47;
    --nw-text:      #e7edf6;
    --nw-text-2:    #9fb0c9;
    --nw-text-3:    #7d8fa9;
    --nw-border:    #27364f;
    --nw-border-2:  #33456a;
    --nw-accent:    #34d399;
    --nw-accent-h:  #6ee7b7;
    --nw-accent-sf: #0d2f26;
    --nw-red:       #f87171;
    --nw-red-sf:    #3b1414;
    --nw-shadow:    0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    --nw-shadow-lg: 0 4px 12px rgba(0, 0, 0, .4), 0 20px 48px rgba(0, 0, 0, .5);
}

/* ── DASAR ── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.nw-body {
    margin: 0;
    font-family: var(--nw-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--nw-text);
    background: var(--nw-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--nw-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.nw-wrap { max-width: var(--nw-wrap); margin: 0 auto; padding: 0 16px; }

.nw-sr {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.nw-skip {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--nw-accent); color: #fff; padding: 10px 16px; font-weight: 700;
    border-radius: 0 0 var(--nw-r-sm) 0;
}
.nw-skip:focus { left: 0; }

.nw-i { width: 18px; height: 18px; flex: 0 0 auto; }
.nw-i-sm { width: 15px; height: 15px; }
.nw-i-xs { width: 13px; height: 13px; }
.nw-flip { transform: rotate(180deg); }

/* ══════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════ */

.nw-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--nw-surface);
    border-bottom: 1px solid var(--nw-border);
}

.nw-topbar {
    background: var(--nw-bg-alt);
    border-bottom: 1px solid var(--nw-border);
    font-size: 12.5px;
    color: var(--nw-text-2);
}
.nw-topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 34px; }
.nw-topdate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-topact { display: flex; align-items: center; gap: 4px; }
.nw-toplink {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 8px; border-radius: 7px; color: var(--nw-text-2);
    transition: background .15s, color .15s;
}
.nw-toplink:hover { background: var(--nw-surface); color: var(--nw-text); }
.nw-toplink-txt { font-weight: 600; }
.nw-toplink-admin { font-weight: 700; color: var(--nw-accent); }
.nw-toplink-admin span { display: none; }

.nw-headmain {
    display: flex; align-items: center; gap: 12px;
    padding-top: 12px; padding-bottom: 12px;
}

.nw-brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.nw-brand img { width: 38px; height: 38px; border-radius: 9px; }
.nw-brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.nw-brand-txt strong { font-size: 19px; font-weight: 900; letter-spacing: -.02em; }
.nw-brand-txt small { font-size: 10.5px; color: var(--nw-text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* Pencarian */
.nw-searchbox { position: relative; flex: 1 1 auto; display: none; align-items: center; }
.nw-searchic { position: absolute; left: 12px; color: var(--nw-text-3); pointer-events: none; }
.nw-searchbox input[type="search"] {
    width: 100%; font: inherit; font-size: 14.5px;
    padding: 10px 92px 10px 36px;
    border: 1px solid var(--nw-border-2); border-radius: 999px;
    background: var(--nw-surface-2); color: var(--nw-text);
    -webkit-appearance: none; appearance: none;
}
.nw-searchbox input::placeholder { color: var(--nw-text-3); }
.nw-searchbtn {
    position: absolute; right: 4px; top: 4px; bottom: 4px;
    font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
    padding: 0 16px; border: 0; border-radius: 999px;
    background: var(--nw-accent); color: #fff;
}
.nw-searchbtn:hover { background: var(--nw-accent-h); }

.nw-suggest {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 120;
    background: var(--nw-surface); border: 1px solid var(--nw-border);
    border-radius: var(--nw-r); box-shadow: var(--nw-shadow-lg);
    overflow: hidden; max-height: 62vh; overflow-y: auto;
}
.nw-suggest a {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 10px 14px; border-bottom: 1px solid var(--nw-border); font-size: 14px;
}
.nw-suggest a:last-child { border-bottom: 0; }
.nw-suggest a:hover, .nw-suggest a.is-cur { background: var(--nw-surface-2); }
.nw-suggest img { width: 52px; height: 34px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.nw-suggest .nw-sg-cat { display: block; font-size: 11px; color: var(--nw-accent); font-weight: 700; text-transform: uppercase; }
.nw-suggest .nw-sg-empty { padding: 14px; font-size: 14px; color: var(--nw-text-2); }

.nw-headact { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: 0 0 auto; }
.nw-iconbtn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; padding: 0; cursor: pointer;
    border: 1px solid var(--nw-border); border-radius: 10px;
    background: var(--nw-surface); color: var(--nw-text-2);
    transition: background .15s, color .15s, border-color .15s;
}
.nw-iconbtn:hover { background: var(--nw-surface-2); color: var(--nw-text); border-color: var(--nw-border-2); }
.nw-bm-count {
    position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px;
    display: flex; align-items: center; justify-content: center;
    font-size: 10.5px; font-weight: 800; border-radius: 999px;
    background: var(--nw-red); color: #fff;
}
html[data-theme="dark"] .nw-bm-count { color: #1a0808; }

.nw-ic-moon { display: none; }
html[data-theme="dark"] .nw-ic-sun { display: none; }
html[data-theme="dark"] .nw-ic-moon { display: block; }

/* Nav kategori */
.nw-nav { background: var(--nw-surface); border-top: 1px solid var(--nw-border); }
.nw-nav-in {
    display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
    -ms-overflow-style: none; scroll-snap-type: x proximity;
}
.nw-nav-in::-webkit-scrollbar { display: none; }
.nw-navlink {
    flex: 0 0 auto; scroll-snap-align: start;
    padding: 11px 13px; font-size: 14px; font-weight: 700; color: var(--nw-text-2);
    border-bottom: 3px solid transparent; white-space: nowrap;
    transition: color .15s, border-color .15s;
}
.nw-navlink:hover { color: var(--nw-text); }
.nw-navlink.is-active { color: var(--nw-accent); border-bottom-color: var(--nw-accent); }

.nw-menubtn { display: inline-flex; }

/* ══════════════════════════════════════════════════════════════
   TICKER BREAKING NEWS
   ══════════════════════════════════════════════════════════════ */

.nw-ticker { background: var(--nw-red); color: #fff; overflow: hidden; }
html[data-theme="dark"] .nw-ticker { background: #7f1d1d; }
.nw-ticker-in { display: flex; align-items: center; gap: 10px; height: 40px; }
.nw-ticker-tag {
    display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
    font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em;
    background: rgba(0, 0, 0, .22); padding: 5px 10px; border-radius: 999px;
}
.nw-ticker-view { flex: 1 1 auto; overflow: hidden; position: relative; }
.nw-ticker-track {
    display: flex; align-items: center; gap: 12px; width: max-content;
    animation: nw-marquee 46s linear infinite;
}
.nw-ticker-view:hover .nw-ticker-track,
.nw-ticker-track.is-paused { animation-play-state: paused; }
.nw-ticker-item { font-size: 14px; font-weight: 600; white-space: nowrap; }
.nw-ticker-item:hover { text-decoration: underline; }
.nw-ticker-dot { opacity: .55; }
.nw-ticker-pause {
    flex: 0 0 auto; cursor: pointer; width: 26px; height: 26px;
    font: 700 11px/1 var(--nw-font); letter-spacing: 1px;
    color: #fff; background: rgba(0, 0, 0, .2); border: 0; border-radius: 6px;
}
@keyframes nw-marquee {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

/* ══════════════════════════════════════════════════════════════
   BAGIAN & JUDUL
   ══════════════════════════════════════════════════════════════ */

.nw-main { padding-bottom: 48px; }
.nw-sect { margin-top: 30px; }
.nw-sect-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 14px;
}
.nw-sect-title {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 18px; font-weight: 900; letter-spacing: -.015em;
    padding-left: 11px; border-left: 4px solid var(--nw-accent);
}
.nw-sect-more { font-size: 13px; font-weight: 700; color: var(--nw-accent); display: inline-flex; align-items: center; gap: 3px; }
.nw-sect-more:hover { text-decoration: underline; }

.nw-empty {
    padding: 34px 18px; text-align: center;
    border: 1px dashed var(--nw-border-2); border-radius: var(--nw-r);
    background: var(--nw-surface-2); color: var(--nw-text-2);
}
.nw-empty p { margin: 0 0 4px; font-weight: 700; color: var(--nw-text); }
.nw-empty small { font-size: 13px; }

/* ══════════════════════════════════════════════════════════════
   HERO SLIDER
   ══════════════════════════════════════════════════════════════ */

.nw-hero { margin-top: 18px; position: relative; }
.nw-slides {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; -ms-overflow-style: none;
    border-radius: var(--nw-r);
}
.nw-slides::-webkit-scrollbar { display: none; }
.nw-slide {
    position: relative; flex: 0 0 100%; scroll-snap-align: center;
    border-radius: var(--nw-r); overflow: hidden;
    background: var(--nw-surface-2); min-height: 220px;
}
.nw-slide img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.nw-slide::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(6, 12, 24, .93) 0%, rgba(6, 12, 24, .55) 42%, rgba(6, 12, 24, .05) 78%);
}
.nw-slide-body {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 16px 16px 18px; color: #fff;
}
.nw-slide-body h2 {
    font-size: 19px; font-weight: 900; margin: 6px 0 6px;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
}
.nw-slide-body h2 a { color: #fff; }
.nw-slide-exc { font-size: 13.5px; color: rgba(255, 255, 255, .88); margin: 0 0 8px; display: none; }
.nw-slide-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255, 255, 255, .82); }

.nw-slide-cat, .nw-catlink {
    display: inline-block; font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .05em;
}
.nw-slide-cat {
    background: var(--nw-red); color: #fff; padding: 4px 9px; border-radius: 6px;
}
.nw-catlink { color: var(--nw-accent); }
.nw-catlink:hover { text-decoration: underline; }

.nw-sl-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 36px; height: 36px; cursor: pointer; display: none;
    align-items: center; justify-content: center;
    border: 0; border-radius: 999px;
    background: rgba(255, 255, 255, .92); color: #10192b;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.nw-sl-nav:hover { background: #fff; }
.nw-sl-prev { left: 10px; }
.nw-sl-next { right: 10px; }

.nw-sl-dots { display: flex; justify-content: center; gap: 7px; margin-top: 10px; }
.nw-sl-dot {
    width: 8px; height: 8px; padding: 0; cursor: pointer; border: 0; border-radius: 999px;
    background: var(--nw-border-2); transition: width .2s, background .2s;
}
.nw-sl-dot.is-active { width: 24px; background: var(--nw-accent); }

/* ══════════════════════════════════════════════════════════════
   HEADLINE
   ══════════════════════════════════════════════════════════════ */

.nw-headline {
    display: grid; gap: 14px; margin-top: 6px;
    background: var(--nw-surface); border: 1px solid var(--nw-border);
    border-radius: var(--nw-r); overflow: hidden; box-shadow: var(--nw-shadow);
}
.nw-headline-media { position: relative; }
.nw-headline-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.nw-headline-body { padding: 4px 16px 18px; }
.nw-headline-body h2 { font-size: 22px; font-weight: 900; margin: 8px 0 10px; }
.nw-headline-body h2 a:hover { color: var(--nw-accent); }
.nw-headline-exc { color: var(--nw-text-2); font-size: 15px; margin: 0 0 12px; }

.nw-meta {
    display: flex; align-items: center; flex-wrap: wrap; gap: 7px;
    margin: 0; font-size: 12.5px; color: var(--nw-text-3);
}
.nw-meta > span, .nw-meta > time { display: inline-flex; align-items: center; gap: 4px; }
.nw-dot { opacity: .6; }

/* ══════════════════════════════════════════════════════════════
   KARTU BERITA
   ══════════════════════════════════════════════════════════════ */

.nw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nw-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nw-rows { display: flex; flex-direction: column; gap: 10px; }

.nw-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--nw-surface); border: 1px solid var(--nw-border);
    border-radius: var(--nw-r); overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.nw-card:hover { transform: translateY(-3px); box-shadow: var(--nw-shadow-lg); border-color: var(--nw-border-2); }
.nw-card-media { position: relative; display: block; background: var(--nw-surface-2); }
.nw-card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.nw-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.nw-card-title { font-size: 14.5px; font-weight: 800; line-height: 1.35; }
.nw-card-title a:hover { color: var(--nw-accent); }
.nw-card-exc { font-size: 13px; color: var(--nw-text-2); margin: 0; }
.nw-card .nw-meta { margin-top: auto; }

.nw-card--list { flex-direction: row; align-items: stretch; }
.nw-card--list .nw-card-media { flex: 0 0 118px; }
.nw-card--list .nw-card-img { aspect-ratio: 4 / 3; height: 100%; }
.nw-card--list .nw-card-body { padding: 9px 12px; }
.nw-card--list .nw-card-title { font-size: 14px; }

.nw-card--wide .nw-card-title { font-size: 18px; }
.nw-card--wide .nw-card-body { padding: 12px 16px 16px; }

.nw-vidbadge {
    position: absolute; left: 8px; bottom: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 999px;
    background: rgba(198, 40, 40, .95); color: #fff;
}

.nw-bm {
    position: absolute; top: 6px; right: 6px; z-index: 3;
    width: 30px; height: 30px; cursor: pointer; display: inline-flex;
    align-items: center; justify-content: center;
    border: 0; border-radius: 8px; color: #fff;
    background: rgba(8, 15, 30, .55); backdrop-filter: blur(3px);
    opacity: 0; transition: opacity .15s, background .15s;
}
.nw-card:hover .nw-bm, .nw-bm:focus-visible, .nw-bm.is-on { opacity: 1; }
.nw-bm.is-on { background: var(--nw-accent); }
.nw-bm.is-on svg { fill: currentColor; }
@media (hover: none) { .nw-bm { opacity: .9; } }

/* Daftar ringkas (trending / populer) */
.nw-plain {
    display: flex; gap: 11px; align-items: flex-start;
    padding: 11px 0; border-bottom: 1px solid var(--nw-border);
}
.nw-plain:last-child { border-bottom: 0; }
.nw-plain h3 { font-size: 14px; font-weight: 700; line-height: 1.4; margin-bottom: 4px; }
.nw-plain h3 a:hover { color: var(--nw-accent); }
.nw-rank {
    flex: 0 0 auto; width: 26px; height: 26px; display: flex;
    align-items: center; justify-content: center;
    font-size: 13px; font-weight: 900; border-radius: 8px;
    background: var(--nw-accent-sf); color: var(--nw-accent);
}
.nw-plain:first-child .nw-rank { background: var(--nw-red); color: #fff; }

/* Skeleton loading */
.nw-sk {
    border: 1px solid var(--nw-border); border-radius: var(--nw-r);
    padding: 0 0 12px; overflow: hidden; background: var(--nw-surface);
}
.nw-sk-img { width: 100%; aspect-ratio: 16 / 9; }
.nw-sk-l { height: 12px; margin: 10px 12px 0; border-radius: 6px; }
.nw-sk-l2 { width: 60%; }
.nw-sk-img, .nw-sk-l {
    background: linear-gradient(90deg, var(--nw-surface-2) 25%, var(--nw-border) 37%, var(--nw-surface-2) 63%);
    background-size: 400% 100%;
    animation: nw-shimmer 1.3s ease-in-out infinite;
}
@keyframes nw-shimmer {
    from { background-position: 100% 0; }
    to   { background-position: 0 0; }
}

/* ══════════════════════════════════════════════════════════════
   KATEGORI STRIP & TAG
   ══════════════════════════════════════════════════════════════ */

.nw-catgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.nw-cattile {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 13px 14px; border-radius: var(--nw-r);
    background: var(--nw-surface); border: 1px solid var(--nw-border);
    font-weight: 800; font-size: 14.5px;
    border-left: 4px solid var(--nw-accent);
    transition: transform .15s, box-shadow .15s;
}
.nw-cattile:hover { transform: translateY(-2px); box-shadow: var(--nw-shadow); }
.nw-cattile span { font-size: 12px; font-weight: 700; color: var(--nw-text-3); }

.nw-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.nw-tagchip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 11px; font-size: 12.5px; font-weight: 700;
    border-radius: 999px; border: 1px solid var(--nw-border);
    background: var(--nw-surface); color: var(--nw-text-2);
}
.nw-tagchip:hover { border-color: var(--nw-accent); color: var(--nw-accent); }

/* ══════════════════════════════════════════════════════════════
   WIDGET AFILIASI ("Belanja Pilihan")
   Dibedakan jelas dari kartu berita: latar berbeda + label "Bersponsor",
   supaya pembaca tidak menyangka ini bagian dari isi redaksi.
   ══════════════════════════════════════════════════════════════ */

.nw-aff {
    background: var(--nw-surface-2); border: 1px solid var(--nw-border);
    border-radius: var(--nw-r); padding: 13px 14px;
}
.nw-aff--row { margin-top: 30px; }
.nw-aff-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 11px; }
.nw-aff-head h2 {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 15px; font-weight: 900; letter-spacing: -.01em;
}
.nw-aff-badge {
    flex: 0 0 auto; font-size: 10px; font-weight: 800; letter-spacing: .06em;
    text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
    background: var(--nw-border); color: var(--nw-text-2);
}

.nw-aff-list { display: grid; gap: 9px; }
.nw-aff--row .nw-aff-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.nw-aff-item {
    display: flex; gap: 10px; align-items: center;
    padding: 8px; border-radius: var(--nw-r-sm);
    background: var(--nw-surface); border: 1px solid var(--nw-border);
    transition: border-color .15s, transform .15s;
}
.nw-aff-item:hover { border-color: var(--nw-accent); transform: translateY(-2px); }
.nw-aff-media { flex: 0 0 64px; }
.nw-aff-media img {
    width: 64px; height: 64px; object-fit: cover;
    border-radius: 7px; background: var(--nw-surface-2);
}
.nw-aff-ph {
    width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
    border-radius: 7px; background: var(--nw-surface-2); color: var(--nw-text-3);
}
.nw-aff-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
/* Nama toko dipotong satu baris. Tanpa ini, nama panjang seperti
   "FILMORA OFFICIAL STORE" menembus keluar kartu di layar ponsel
   (kartu widget lebarnya cuma separuh layar). */
.nw-aff-merchant {
    font-size: 10px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .05em; color: var(--nw-accent);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    max-width: 100%;
}
.nw-aff-title {
    font-size: 13px; font-weight: 700; line-height: 1.35; color: var(--nw-text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nw-aff-price { font-size: 13.5px; font-weight: 900; color: var(--nw-red); }
.nw-aff-note { font-size: 11px; color: var(--nw-text-3); }
.nw-aff-disc { margin: 10px 0 0; font-size: 11px; line-height: 1.5; color: var(--nw-text-3); }

@media (min-width: 640px) {
    .nw-aff--row .nw-aff-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .nw-aff--row .nw-aff-item { flex-direction: column; align-items: stretch; text-align: left; }
    .nw-aff--row .nw-aff-media { flex: 0 0 auto; }
    .nw-aff--row .nw-aff-media img,
    .nw-aff--row .nw-aff-ph { width: 100%; height: auto; aspect-ratio: 1 / 1; }
}

@media (prefers-reduced-motion: reduce) {
    .nw-aff-item { transition: none; }
    .nw-aff-item:hover { transform: none; }
}

/* ══════════════════════════════════════════════════════════════
   VIDEO (facade — iframe disuntik setelah klik)
   ══════════════════════════════════════════════════════════════ */

.nw-video { position: relative; border-radius: var(--nw-r); overflow: hidden; background: #000; }
.nw-video-btn {
    display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
    background: none; position: relative; line-height: 0;
}
.nw-video-btn img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .88; transition: opacity .2s, transform .3s; }
.nw-video-btn:hover img { opacity: 1; transform: scale(1.02); }
.nw-video-play {
    position: absolute; inset: 0; margin: auto;
    width: 58px; height: 58px; display: flex; align-items: center; justify-content: center;
    border-radius: 999px; background: rgba(198, 40, 40, .95); color: #fff;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .45);
}
.nw-video-play .nw-i { width: 24px; height: 24px; margin-left: 3px; }
.nw-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.nw-vidgrid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.nw-vidcap { font-size: 14px; font-weight: 700; margin: 8px 0 0; }

/* ══════════════════════════════════════════════════════════════
   HALAMAN ARTIKEL
   ══════════════════════════════════════════════════════════════ */

.nw-crumb { font-size: 12.5px; color: var(--nw-text-3); padding: 14px 0 0; }
.nw-crumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nw-crumb li { display: flex; align-items: center; gap: 6px; }
.nw-crumb li + li::before { content: "/"; opacity: .5; }
.nw-crumb a:hover { color: var(--nw-accent); text-decoration: underline; }

.nw-art { max-width: 760px; margin: 0 auto; }
.nw-art-head { padding: 12px 0 0; }
.nw-art-cat {
    display: inline-block; padding: 5px 11px; border-radius: 7px;
    background: var(--nw-red); color: #fff;
    font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
}
.nw-art h1 {
    font-size: 26px; line-height: 1.22; margin: 12px 0 14px;
    font-weight: 900; letter-spacing: -.02em;
}
.nw-art-byline {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 12px 0; border-top: 1px solid var(--nw-border); border-bottom: 1px solid var(--nw-border);
    font-size: 13px; color: var(--nw-text-2);
}
.nw-art-byline img { width: 34px; height: 34px; border-radius: 999px; object-fit: cover; }
.nw-art-author { font-weight: 800; color: var(--nw-text); }
.nw-art-author a:hover { color: var(--nw-accent); }
.nw-art-bymeta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--nw-text-3); }

.nw-figure { margin: 16px 0; }
.nw-figure img { width: 100%; border-radius: var(--nw-r); aspect-ratio: 16 / 9; object-fit: cover; }
.nw-figure figcaption { font-size: 12.5px; color: var(--nw-text-3); margin-top: 7px; }

/* Isi artikel */
.nw-content { font-size: 17px; line-height: 1.78; color: var(--nw-text); }
.nw-content p { margin: 0 0 1.15em; }
.nw-content h2 { font-size: 20px; margin: 1.7em 0 .6em; font-weight: 900; }
.nw-content h3 { font-size: 17.5px; margin: 1.5em 0 .5em; font-weight: 800; }
.nw-content ul, .nw-content ol { margin: 0 0 1.15em; padding-left: 1.35em; }
.nw-content ul { list-style: disc; }
.nw-content ol { list-style: decimal; }
.nw-content li { margin-bottom: .45em; }
.nw-content a { color: var(--nw-accent); text-decoration: underline; text-underline-offset: 2px; }
.nw-content img { border-radius: var(--nw-r-sm); margin: 1.1em 0; }
.nw-content figure { margin: 1.2em 0; }
.nw-content figcaption { font-size: 12.5px; color: var(--nw-text-3); }
.nw-content blockquote {
    margin: 1.3em 0; padding: 12px 16px;
    border-left: 4px solid var(--nw-accent); background: var(--nw-surface-2);
    border-radius: 0 var(--nw-r-sm) var(--nw-r-sm) 0;
    font-family: var(--nw-serif); font-size: 17px; font-style: italic;
}
.nw-content blockquote p:last-child { margin-bottom: 0; }
.nw-content pre {
    background: var(--nw-surface-2); padding: 12px 14px; border-radius: var(--nw-r-sm);
    overflow-x: auto; font-size: 13.5px; border: 1px solid var(--nw-border);
}
.nw-content code { font-size: .92em; background: var(--nw-surface-2); padding: .12em .35em; border-radius: 4px; }
.nw-content pre code { background: none; padding: 0; }
.nw-content hr { border: 0; border-top: 1px solid var(--nw-border); margin: 1.8em 0; }
.nw-content table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 1.2em 0; display: block; overflow-x: auto; }
.nw-content th, .nw-content td { border: 1px solid var(--nw-border); padding: 8px 10px; text-align: left; }
.nw-content th { background: var(--nw-surface-2); font-weight: 800; }
.nw-content iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--nw-r-sm); margin: 1.2em 0; }

/* Catatan artikel contoh */
.nw-demo-note {
    font-size: 13.5px; padding: 11px 14px; border-radius: var(--nw-r-sm);
    background: #fffbeb; border: 1px solid #fcd34d; color: #78350f;
}
html[data-theme="dark"] .nw-demo-note { background: #2e2410; border-color: #6b5312; color: #fde68a; }

/* Share */
.nw-share {
    display: flex; align-items: center; flex-wrap: wrap; gap: 7px;
    padding: 14px 0; border-top: 1px solid var(--nw-border); border-bottom: 1px solid var(--nw-border);
    margin: 18px 0;
}
.nw-share-lbl {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12.5px; font-weight: 800; color: var(--nw-text-2); margin-right: 2px;
}
.nw-sh {
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
    padding: 8px 12px; font: 700 12.5px/1 var(--nw-font);
    border: 1px solid var(--nw-border); border-radius: 999px;
    background: var(--nw-surface); color: var(--nw-text-2);
    transition: background .15s, color .15s, border-color .15s;
}
.nw-sh:hover { color: #fff; border-color: transparent; }
.nw-sh-wa:hover { background: #25d366; }
.nw-sh-fb:hover { background: #1877f2; }
.nw-sh-x:hover  { background: #111827; }
.nw-sh-cp:hover { background: var(--nw-accent); }
/* .is-done = umpan balik "tautan tersalin"; .is-on = tombol Simpan aktif
   (tombol bookmark di byline artikel memakai gaya .nw-sh, bukan .nw-bm). */
.nw-sh.is-done, .nw-sh.is-on { background: var(--nw-accent); color: #fff; border-color: transparent; }
.nw-sh.is-on svg { fill: currentColor; }

/* Prev / next */
.nw-pn { display: grid; gap: 10px; margin: 22px 0; }
.nw-pn a {
    display: flex; align-items: center; gap: 11px;
    padding: 12px 14px; border: 1px solid var(--nw-border); border-radius: var(--nw-r);
    background: var(--nw-surface);
}
.nw-pn a:hover { border-color: var(--nw-accent); }
.nw-pn img { width: 58px; height: 44px; object-fit: cover; border-radius: 7px; flex: 0 0 auto; }
.nw-pn small { display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--nw-text-3); }
.nw-pn strong { font-size: 14px; font-weight: 700; line-height: 1.35; }
.nw-pn-next { text-align: right; }
.nw-pn-next a { flex-direction: row-reverse; }

/* Komentar */
.nw-comments { margin: 28px 0 0; }
.nw-cmt {
    display: flex; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--nw-border);
}
.nw-cmt:last-child { border-bottom: 0; }
.nw-cmt-av {
    flex: 0 0 auto; width: 36px; height: 36px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 14px;
    background: var(--nw-accent-sf); color: var(--nw-accent);
}
.nw-cmt-name { font-weight: 800; font-size: 14px; }
.nw-cmt-time { font-size: 11.5px; color: var(--nw-text-3); }
.nw-cmt-text { font-size: 14.5px; margin: 4px 0 0; white-space: pre-line; }
.nw-cmt-replies { margin: 10px 0 0 12px; padding-left: 12px; border-left: 2px solid var(--nw-border); }
.nw-cmt-reply-btn {
    background: none; border: 0; cursor: pointer; padding: 2px 0;
    font: 700 12px var(--nw-font); color: var(--nw-accent);
}

.nw-form { margin-top: 16px; }
.nw-form-row { display: grid; gap: 10px; margin-bottom: 10px; }
.nw-form label { display: block; font-size: 12.5px; font-weight: 800; margin-bottom: 4px; color: var(--nw-text-2); }
.nw-form input[type="text"], .nw-form input[type="email"], .nw-form textarea, .nw-form select {
    width: 100%; font: inherit; font-size: 14.5px; color: var(--nw-text);
    padding: 10px 12px; border: 1px solid var(--nw-border-2); border-radius: var(--nw-r-sm);
    background: var(--nw-surface); -webkit-appearance: none; appearance: none;
}
.nw-form textarea { min-height: 110px; resize: vertical; }
.nw-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    cursor: pointer; padding: 11px 20px; border: 0; border-radius: 999px;
    font: 800 14px var(--nw-font); background: var(--nw-accent); color: #fff;
    transition: background .15s, opacity .15s;
}
.nw-btn:hover { background: var(--nw-accent-h); }
.nw-btn:disabled { opacity: .6; cursor: not-allowed; }
.nw-btn-ghost { background: var(--nw-surface); color: var(--nw-text); border: 1px solid var(--nw-border-2); }
.nw-btn-ghost:hover { background: var(--nw-surface-2); }
.nw-formmsg { font-size: 13.5px; margin: 9px 0 0; font-weight: 600; }
.nw-formmsg.is-ok { color: var(--nw-accent); }
.nw-formmsg.is-err { color: var(--nw-red); }

/* ══════════════════════════════════════════════════════════════
   PAGINATION & INFINITE SCROLL
   ══════════════════════════════════════════════════════════════ */

.nw-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 24px 0 0; justify-content: center; }
.nw-pg {
    display: inline-flex; align-items: center; gap: 4px;
    min-width: 38px; height: 38px; padding: 0 12px; justify-content: center;
    font-size: 13.5px; font-weight: 700; border-radius: var(--nw-r-sm);
    border: 1px solid var(--nw-border); background: var(--nw-surface); color: var(--nw-text-2);
}
.nw-pg:hover { border-color: var(--nw-accent); color: var(--nw-accent); }
.nw-pg.is-active { background: var(--nw-accent); border-color: var(--nw-accent); color: #fff; }
.nw-pg-gap { padding: 0 4px; color: var(--nw-text-3); }

.nw-loadmore { display: flex; justify-content: center; margin: 20px 0 0; }
.nw-sentinel { height: 1px; }

/* ══════════════════════════════════════════════════════════════
   SIDEBAR & TATA LETAK ISI
   ══════════════════════════════════════════════════════════════ */

.nw-cols { display: grid; gap: 26px; margin-top: 24px; }
.nw-side { display: flex; flex-direction: column; gap: 22px; }
.nw-box {
    background: var(--nw-surface); border: 1px solid var(--nw-border);
    border-radius: var(--nw-r); padding: 14px;
}
.nw-box > .nw-sect-head { margin-bottom: 8px; }

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */

.nw-footer {
    background: var(--nw-bg-alt); border-top: 1px solid var(--nw-border);
    padding: 34px 0 20px; margin-top: 40px; font-size: 14px;
}
.nw-foot-grid { display: grid; gap: 26px; }
.nw-foot-brand img { width: 44px; height: 44px; border-radius: 10px; margin-bottom: 10px; }
.nw-foot-brand strong { display: block; font-size: 17px; font-weight: 900; margin-bottom: 7px; }
.nw-foot-brand p { color: var(--nw-text-2); font-size: 13.5px; max-width: 42ch; }
.nw-foot-social { display: flex; gap: 8px; margin-top: 12px; }
.nw-foot-social a {
    width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--nw-border); border-radius: 10px;
    background: var(--nw-surface); color: var(--nw-text-2);
}
.nw-foot-social a:hover { color: var(--nw-accent); border-color: var(--nw-accent); }
.nw-foot-col h2 { font-size: 12.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 11px; color: var(--nw-text-3); }
.nw-foot-col li { margin-bottom: 8px; }
.nw-foot-col a { color: var(--nw-text-2); font-size: 13.5px; }
.nw-foot-col a:hover { color: var(--nw-accent); }
.nw-foot-news p { font-size: 13px; color: var(--nw-text-2); margin-bottom: 10px; }
.nw-nlform { display: flex; flex-direction: column; gap: 8px; }
.nw-nlform input[type="email"] {
    font: inherit; font-size: 14px; padding: 10px 12px; color: var(--nw-text);
    border: 1px solid var(--nw-border-2); border-radius: var(--nw-r-sm); background: var(--nw-surface);
}
.nw-nlform button {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    cursor: pointer; padding: 10px 14px; border: 0; border-radius: var(--nw-r-sm);
    font: 800 13.5px var(--nw-font); background: var(--nw-accent); color: #fff;
}
.nw-nlform button:hover { background: var(--nw-accent-h); }
.nw-nlmsg { font-size: 12.5px; margin: 0; font-weight: 600; }
.nw-nlmsg.is-ok { color: var(--nw-accent); }
.nw-nlmsg.is-err { color: var(--nw-red); }

.nw-foot-bottom {
    display: flex; flex-direction: column; gap: 5px;
    margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--nw-border);
    font-size: 12.5px; color: var(--nw-text-3);
}
.nw-foot-bottom p { margin: 0; }
.nw-foot-bottom a { color: var(--nw-accent); }

/* ══════════════════════════════════════════════════════════════
   ELEMEN MENGAPUNG
   ══════════════════════════════════════════════════════════════ */

.nw-totop {
    position: fixed; right: 14px; bottom: 14px; z-index: 90;
    width: 42px; height: 42px; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    border: 1px solid var(--nw-border); border-radius: 999px;
    background: var(--nw-surface); color: var(--nw-text-2); box-shadow: var(--nw-shadow);
}
.nw-totop:hover { color: var(--nw-accent); }

.nw-toast {
    position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
    z-index: 300; max-width: calc(100vw - 32px);
    padding: 11px 18px; border-radius: 999px;
    background: #10192b; color: #fff; font-size: 13.5px; font-weight: 700;
    box-shadow: var(--nw-shadow-lg);
}
html[data-theme="dark"] .nw-toast { background: #e7edf6; color: #10192b; }

/* Notifikasi artikel baru */
.nw-newbar {
    position: fixed; left: 50%; transform: translateX(-50%);
    top: calc(var(--nw-head-h) + 8px); z-index: 95;
    display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
    padding: 9px 16px; border: 0; border-radius: 999px;
    font: 800 13px var(--nw-font); background: var(--nw-red); color: #fff;
    box-shadow: var(--nw-shadow-lg);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (min-width: 640px) {
    .nw-toplink-admin span { display: inline; }
    .nw-slide { min-height: 300px; }
    .nw-slide img { min-height: 300px; }
    .nw-slide-body { padding: 20px 22px 22px; }
    .nw-slide-body h2 { font-size: 24px; }
    .nw-slide-exc { display: block; }
    .nw-sl-nav { display: flex; }
    .nw-headline { grid-template-columns: 1.25fr 1fr; align-items: stretch; }
    .nw-headline-media img { height: 100%; aspect-ratio: auto; min-height: 240px; }
    .nw-headline-body { padding: 18px 20px; align-self: center; }
    .nw-headline-body h2 { font-size: 25px; }
    .nw-art h1 { font-size: 31px; }
    .nw-pn { grid-template-columns: 1fr 1fr; }
    .nw-catgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nw-vidgrid { grid-template-columns: 1fr 1fr; }
    .nw-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nw-foot-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
    .nw-form-row--2 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
    .nw-searchbox { display: flex; max-width: 420px; margin: 0 auto; }
    .nw-menubtn { display: none; }
    .nw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .nw-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nw-slide { flex: 0 0 72%; }
    .nw-sect-title { font-size: 20px; }
}

@media (min-width: 1024px) {
    :root { --nw-head-h: 132px; }
    .nw-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .nw-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nw-slide { flex: 0 0 62%; min-height: 380px; }
    .nw-slide img { min-height: 380px; }
    .nw-slide-body h2 { font-size: 28px; }
    .nw-cols { grid-template-columns: minmax(0, 1fr) 330px; }
    .nw-catgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .nw-foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; }
    .nw-art h1 { font-size: 36px; }
    .nw-content { font-size: 17.5px; }
}

/* Menu kategori sebagai panel di mobile */
@media (max-width: 767px) {
    .nw-nav { display: none; }
    .nw-nav.is-open { display: block; }
    .nw-nav.is-open .nw-nav-in { flex-wrap: wrap; overflow: visible; padding-bottom: 10px; }
    .nw-nav.is-open .nw-navlink { border-bottom: 0; border-radius: 8px; background: var(--nw-surface-2); }
    .nw-nav.is-open .nw-navlink.is-active { background: var(--nw-accent); color: #fff; }
}

/* ══════════════════════════════════════════════════════════════
   AKSESIBILITAS: hormati preferensi kurangi gerak
   ══════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .nw-ticker-track { animation: none; }
    .nw-sk-img, .nw-sk-l { animation: none; }
    .nw-card, .nw-cattile, .nw-video-btn img { transition: none; }
    .nw-card:hover, .nw-cattile:hover { transform: none; }
    .nw-slides { scroll-behavior: auto; }
}

/* ══════════════════════════════════════════════════════════════
   CETAK
   ══════════════════════════════════════════════════════════════ */

@media print {
    .nw-header, .nw-ticker, .nw-footer, .nw-share, .nw-totop, .nw-bm,
    .nw-comments, .nw-pn, .nw-side, .nw-newbar, .nw-toast { display: none !important; }
    body.nw-body { background: #fff; color: #000; }
    .nw-art { max-width: none; }
    .nw-content { font-size: 12pt; }
}
