/* =====================================================================
   Beranda Hukum — Modern Magazine
   Grid majalah multi-kolom, tipografi besar, nomor section, serif editorial
   dipadukan sans untuk label/meta. Satu neutral ramp + satu aksen merah.
   ===================================================================== */

:root {
    --n-0: #ffffff;
    --n-25: #fbfbfa;
    --n-50: #f5f5f3;
    --n-100: #ebeae7;
    --n-200: #dcdbd6;
    --n-300: #c3c2bb;
    --n-400: #9b9a93;
    --n-500: #6c6b65;
    --n-600: #4c4b46;
    --n-700: #34332f;
    --n-800: #1f1e1c;
    --n-900: #111110;

    --brand: #c1121f;
    --brand-strong: #94111b;
    --brand-soft: #fbeaea;

    --success: #15803d; --success-soft: #f0fdf4;
    --danger: #c1121f;  --danger-soft: #fbeaea;
    --warning: #9a6700; --warning-soft: #fffbeb;

    --r-sm: 2px; --r-md: 4px; --r-lg: 8px;
    --shadow-sm: 0 1px 2px rgba(17,17,16,.05);
    --shadow-md: 0 16px 40px rgba(17,17,16,.14);

    --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;

    --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: Georgia, "Times New Roman", "Noto Serif", ui-serif, serif;

    --measure: 68ch;
    --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    color: var(--n-800);
    background: var(--n-0);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--n-900); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--n-900); line-height: 1.08; margin: 0 0 .45em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.022em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -.012em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.skip-link { position: absolute; left: var(--s4); top: -48px; background: var(--n-900); color: #fff; padding: 10px 16px; z-index: 80; }
.skip-link:focus { top: var(--s4); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s5); }
.page { padding: var(--s6) 0 var(--s8); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--n-500); }
.small { font-size: .85rem; }

/* Label / kicker */
.kicker { display: inline-block; font-family: var(--font-sans); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.kicker--muted { color: var(--n-500); }

/* ============ Masthead ============ */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--n-0); border-bottom: 1px solid var(--n-200); }
.site-header__top { border-top: 4px solid var(--brand); }
.site-header__bar { display: flex; align-items: center; gap: var(--s5); min-height: 76px; }
.brand { flex: 0 0 auto; }
.brand img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: var(--s4); flex: 1 1 auto; flex-wrap: wrap; }
.nav a { font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--n-700); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--brand); text-decoration: none; }
.nav a.is-active { color: var(--brand); border-bottom-color: var(--brand); }

.search { margin-left: auto; display: flex; align-items: center; gap: var(--s2); }
.search input { width: 210px; max-width: 40vw; padding: 9px 12px; font-size: .9rem; border: 1px solid var(--n-300); background: var(--n-0); color: var(--n-800); }
.search input:focus { border-color: var(--n-900); outline: none; }
.search button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 38px; border: 1px solid var(--n-300); background: var(--n-0); color: var(--n-800); cursor: pointer; }
.search button:hover { background: var(--n-900); color: #fff; border-color: var(--n-900); }

/* Bar section tipis di bawah masthead */
.sectionbar { border-top: 1px solid var(--n-200); background: var(--n-25); }
.sectionbar__inner { display: flex; gap: var(--s5); align-items: center; min-height: 40px; overflow-x: auto; }
.sectionbar a { font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--n-500); white-space: nowrap; }
.sectionbar a:hover { color: var(--brand); }
.sectionbar .kicker { padding-right: var(--s4); border-right: 1px solid var(--n-200); }

/* ============ Band / section ============ */
.band { padding: var(--s7) 0; }
.band--tint { background: var(--n-50); }
.band--soft { background: var(--n-100); }
.band--dark { background: var(--n-900); color: var(--n-100); }
.band--dark h2, .band--dark h3, .band--dark a { color: var(--n-0); }

.section__head { display: flex; align-items: baseline; gap: var(--s4); margin-bottom: var(--s5); }
.section__no { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; color: var(--brand); line-height: 1; }
.section__title { font-family: var(--font-sans); font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--n-900); margin: 0; white-space: nowrap; }
.section__rule { flex: 1 1 auto; height: 1px; background: var(--n-200); }
.section__head a.section__more { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); white-space: nowrap; }

/* ============ Lead / feature ============ */
.lead { display: grid; grid-template-columns: 2fr 1fr; gap: var(--s6); align-items: start; }
.lead__main { display: block; }
.lead__main img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.lead__body { padding-top: var(--s4); }
.lead__body h1, .lead__body h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); margin: var(--s2) 0 var(--s3); }
.lead__dek { font-family: var(--font-serif); font-size: 1.1rem; color: var(--n-600); }
.lead__rail { border-left: 1px solid var(--n-200); padding-left: var(--s5); }
.lead__rail h2 { font-family: var(--font-sans); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--n-500); margin-bottom: var(--s4); }

/* ============ Hero slider ============ */
.slider { position: relative; }
.slider__viewport { position: relative; overflow: hidden; background: var(--n-100); }
.slider__track { display: flex; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.slide { min-width: 100%; display: block; }
.slide__media { display: block; }
.slide__media img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.slide__body { display: block; padding: var(--s4) var(--s7) var(--s5); }
.slide__body h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); margin: var(--s2) 0 var(--s3); }

.slider__btn {
    position: absolute; top: 42%; transform: translateY(-50%);
    width: 46px; height: 46px; border: 0; cursor: pointer;
    background: rgba(255,255,255,.92); color: var(--n-900);
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem; line-height: 1;
}
.slider__btn:hover { background: #fff; }
.slider__prev { left: var(--s3); }
.slider__next { right: var(--s3); }

.slider__footer { display: flex; align-items: center; justify-content: center; gap: var(--s4); margin-top: var(--s4); }
.slider__dots { display: flex; gap: var(--s2); }
.slider__dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--n-400); background: transparent; cursor: pointer; padding: 0; }
.slider__dot[aria-current="true"] { background: var(--brand); border-color: var(--brand); }

@media (prefers-reduced-motion: reduce) { .slider__track { transition: none; } }

/* ============ Grids ============ */
.grid { display: grid; gap: var(--s6); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--asym { grid-template-columns: 1.6fr 1fr 1fr; }

/* ============ Story card ============ */
.story { display: flex; flex-direction: column; min-width: 0; }
.story__media { display: block; overflow: hidden; background: var(--n-100); }
.story__media img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; transition: transform .4s ease; }
.story:hover .story__media img { transform: scale(1.04); }
.story__body { padding-top: var(--s3); }
.story__title { font-family: var(--font-serif); font-size: 1.16rem; font-weight: 700; line-height: 1.16; margin: var(--s1) 0 var(--s2); color: var(--n-900); }
.story__title a { color: inherit; }
.story__dek { font-size: .92rem; color: var(--n-600); margin: 0 0 var(--s2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story__meta { font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--n-500); display: flex; gap: var(--s2); flex-wrap: wrap; }

.story--lead .story__title { font-size: 1.5rem; }
.story--compact { display: grid; grid-template-columns: 120px 1fr; gap: var(--s4); align-items: start; padding: var(--s4) 0; border-top: 1px solid var(--n-200); }
.story--compact:first-child { border-top: 0; padding-top: 0; }
.story--compact .story__media img { aspect-ratio: 1 / 1; }
.story--feature { grid-column: span 2; }
.story--feature .story__media img { aspect-ratio: 16 / 9; }
.story--feature .story__title { font-size: 1.6rem; }

/* ============ Ranked list (Most read) ============ */
.ranked { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.ranked li { counter-increment: r; display: grid; grid-template-columns: 2.4rem 1fr; gap: var(--s3); align-items: start; padding: var(--s3) 0; border-top: 1px solid var(--n-200); }
.ranked li:first-child { border-top: 0; }
.ranked li::before { content: counter(r); font-family: var(--font-serif); font-size: 1.9rem; font-weight: 700; color: var(--brand); line-height: .9; }
.ranked a { font-family: var(--font-serif); font-weight: 700; font-size: 1.05rem; }
.mostread { list-style: none; margin: 0; padding: 0; counter-reset: mr; }
.mostread li { counter-increment: mr; display: grid; grid-template-columns: 2.4rem 1fr; gap: var(--s3); align-items: start; padding: var(--s3) 0; border-top: 1px solid var(--n-200); }
.mostread li::before { content: counter(mr); font-family: var(--font-serif); font-size: 1.9rem; font-weight: 700; color: var(--brand); line-height: .9; }
.mostread li a { font-family: var(--font-serif); font-weight: 700; font-size: 1.05rem; }

/* Backward-compat: .card / .card__* (dipakai beberapa view) */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
.card { display: flex; flex-direction: column; min-width: 0; }
.card__media { display: block; overflow: hidden; background: var(--n-100); }
.card__media img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.card__body { padding-top: var(--s3); }
.card__title { font-family: var(--font-serif); font-size: 1.16rem; font-weight: 700; line-height: 1.16; margin: 0 0 var(--s2); color: var(--n-900); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a { color: inherit; }
.card__meta { font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--n-500); display: flex; gap: var(--s2); flex-wrap: wrap; }
.card--row { display: grid; grid-template-columns: 150px 1fr; gap: var(--s4); align-items: start; padding: var(--s4) 0; border-top: 1px solid var(--n-200); }
.card--row .card__media img { aspect-ratio: 1 / 1; }
.badge { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.hero { display: grid; grid-template-columns: 2fr 1fr; gap: var(--s6); }
.hero__main { display: block; }
.hero__main img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.hero__body { padding-top: var(--s4); }
.hero__body h1, .hero__body h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
.hero__list { border-left: 1px solid var(--n-200); padding-left: var(--s5); }
.hero__item { display: block; padding: var(--s4) 0; border-top: 1px solid var(--n-200); }
.hero__item:first-child { border-top: 0; padding-top: 0; }
.hero__item h3 { font-size: 1.05rem; margin: 0 0 var(--s1); }
.hero__item time { font-size: .72rem; color: var(--n-500); text-transform: uppercase; letter-spacing: .04em; }

/* ============ Sidebar / rail ============ */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s7); align-items: start; }
.main { min-width: 0; }
.side { min-width: 0; }
.widget { border-top: 2px solid var(--n-900); padding: var(--s4) 0 var(--s5); }
.widget:first-child { border-top: 0; padding-top: 0; }
.widget h2 { font-family: var(--font-sans); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--n-900); margin-bottom: var(--s3); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--n-100); font-size: .95rem; }
.widget li:last-child { border-bottom: 0; }
.widget li a { color: var(--n-800); }
.widget li a:hover { color: var(--brand); }
.widget select { width: 100%; padding: 9px 10px; border: 1px solid var(--n-300); background: var(--n-0); color: var(--n-700); }
.side .ad { margin: 0 0 var(--s4); }

/* ============ Urutan beranda & kartu kategori (layout mobile) ============ */
/* Blok khusus mobile disembunyikan di desktop */
.home__top-ad,
.home__hash,
.home__foot-ad { display: none; }

/* Kartu kategori (dipakai mobile) */
.catcards { display: none; }
.catcard { margin-bottom: var(--s4); border: 1px solid var(--n-200); background: var(--n-0); }
.catcard__head { margin: 0; border-top: 3px solid var(--brand); border-bottom: 1px solid var(--n-200); font-family: var(--font-sans); font-size: 1rem; font-weight: 700; }
.catcard__head a { color: var(--n-900); }
.catcard__head > a { display: block; padding: var(--s4); }
.catcard__toggle { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); width: 100%; padding: var(--s4); border: 0; background: none; font: inherit; font-weight: 700; color: var(--n-900); text-align: left; cursor: pointer; }
.catcard__toggle:hover { color: var(--brand); }
.catcard__toggle[aria-expanded="true"] .catcard__chev { transform: rotate(180deg); }
.catcard__body { display: grid; gap: var(--s3); padding: var(--s4); }
.catcard__body[hidden] { display: none; }
.catcard__all { display: block; margin-top: var(--s1); font-size: .85rem; font-weight: 700; color: var(--brand-strong); }
.catcard__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); width: 100%; padding: 12px 14px; border: 1px solid var(--n-200); background: var(--n-0); font-family: inherit; font-size: .95rem; color: var(--n-700); text-align: left; cursor: pointer; }
.catcard__row:hover { border-color: var(--brand); color: var(--brand); }
.catcard__row.is-open { border-color: var(--brand); color: var(--brand); }
.catcard__chev { font-size: .8rem; line-height: 1; color: var(--n-500); transition: transform .2s ease; }
.catcard__row.is-open .catcard__chev { transform: rotate(180deg); }
.catcard__menu { border: 1px solid var(--n-200); border-top: 0; background: var(--n-25); padding: 6px 0; }
.catcard__menu a { display: block; padding: 9px 14px; font-size: .9rem; color: var(--n-600); }
.catcard__menu a:hover { background: var(--brand-soft); color: var(--brand-strong); text-decoration: none; }
.catcard__loading { padding: 10px 14px; font-size: .85rem; color: var(--n-500); }

/* ============ Article ============ */
.article { max-width: var(--measure); }
.article__title { margin-bottom: var(--s3); }
.article__lead { font-family: var(--font-serif); font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.5; color: var(--n-600); margin-bottom: var(--s5); }
.article__meta { font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--n-500); display: flex; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s5); padding-bottom: var(--s3); border-bottom: 1px solid var(--n-200); }
.article__figure { margin: var(--s5) 0; }
.article__body { font-family: var(--font-serif); font-size: 1.14rem; line-height: 1.7; }
.article__body p { margin-bottom: 1.15em; }
.article__body img { margin: var(--s4) 0; }
.article__body h2 { margin-top: var(--s6); }
.article__body blockquote { margin: var(--s5) 0; padding-left: var(--s4); border-left: 3px solid var(--brand); color: var(--n-600); font-style: italic; }
.article__body a { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 2px; }
.article__body pre { background: var(--n-50); border: 1px solid var(--n-200); padding: var(--s4); overflow-x: auto; }

/* ============ Buttons & forms ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); padding: 11px 18px; font-size: .78rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; border: 1px solid var(--n-900); background: var(--n-0); color: var(--n-900); cursor: pointer; }
.btn:hover { background: var(--n-900); color: #fff; text-decoration: none; }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn--block { width: 100%; }
.field { margin-bottom: var(--s4); }
.field label { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--n-700); margin-bottom: var(--s1); }
.field input, .field select, .field textarea { width: 100%; padding: 11px 12px; font-size: 1rem; border: 1px solid var(--n-300); background: var(--n-0); color: var(--n-800); font-family: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--n-900); outline: none; }
.alert { padding: var(--s3) var(--s4); margin-bottom: var(--s4); font-size: .9rem; border-left: 4px solid; }
.alert-danger, .alert-error { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.alert-success { background: var(--success-soft); color: var(--success); border-color: var(--success); }

/* ============ Comments ============ */
.comments { list-style: none; margin: 0; padding: 0; }
.comment { padding: var(--s4) 0; border-top: 1px solid var(--n-200); }
.comment__author { font-weight: 700; color: var(--n-900); }
.comment__time { display: block; font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--n-500); }
.comment__reply { margin-top: var(--s3); padding-left: var(--s4); border-left: 3px solid var(--brand-soft); }
.comment__reply > :first-child { margin-top: 0; }
.comment__reply > :last-child { margin-bottom: 0; }
.comment__reply p { margin: 0 0 .5em; }
.comment__reply ul, .comment__reply ol { margin: .25em 0 .5em; padding-left: 1.35rem; list-style-position: outside; }
.comment__reply li { margin-bottom: .25em; }

/* ============ Pagination ============ */
.pager { margin-top: var(--s6); }
.pager nav { display: flex; flex-wrap: wrap; gap: var(--s1); }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--n-300); color: var(--n-800); font-size: .85rem; background: var(--n-0); }
.pager a:hover { background: var(--n-900); color: #fff; text-decoration: none; }
.pager .is-current span, .pager span[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .is-disabled span { color: var(--n-400); }

/* ============ Empty / prose ============ */
.empty { padding: var(--s6) 0; color: var(--n-500); border-top: 2px solid var(--n-900); }
.empty h3 { color: var(--n-700); }
.prose { max-width: var(--measure); font-family: var(--font-serif); font-size: 1.14rem; line-height: 1.7; }
.prose img { margin: var(--s4) 0; }

/* ============ Ads ============ */
.ad { margin: var(--s5) 0; }
.ad--inline { display: flex; justify-content: center; }
.ad iframe { width: 100%; }

/* ============ Footer ============ */
.site-footer { border-top: 4px solid var(--n-900); background: var(--n-25); margin-top: var(--s8); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s6); padding: var(--s7) 0; }
.site-footer h2 { font-family: var(--font-sans); font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--n-700); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 5px 0; }
.site-footer a { color: var(--n-600); font-size: .9rem; }
.site-footer a:hover { color: var(--brand); }
.footer-brand img { height: 36px; width: auto; margin-bottom: var(--s3); }
.footer-sosial { display: flex; flex-wrap: wrap; gap: var(--s2); }
.footer-sosial a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid var(--n-300); }
.footer-sosial a:hover { background: var(--n-900); color: #fff; border-color: var(--n-900); }
.site-footer__bottom { border-top: 1px solid var(--n-200); padding: var(--s4) 0; font-size: .78rem; color: var(--n-500); }

/* ============ Popup ============ */
.popup-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(17,17,16,.6); display: none; align-items: center; justify-content: center; padding: var(--s5); }
.popup-overlay.is-open { display: flex; }
.popup { background: var(--n-0); box-shadow: var(--shadow-md); max-width: 540px; width: 100%; padding: var(--s5); position: relative; }
.popup__close { position: absolute; top: var(--s3); right: var(--s3); border: 1px solid var(--n-300); background: var(--n-0); width: 34px; height: 34px; cursor: pointer; }

/* ============ Responsive ============ */
@media (max-width: 1040px) {
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--asym { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .story--feature { grid-column: auto; }
}
@media (max-width: 980px) {
    .layout { grid-template-columns: 1fr; gap: var(--s6); }
    .lead, .hero { grid-template-columns: 1fr; }
    .lead__rail, .hero__list { border-left: 0; padding-left: 0; border-top: 1px solid var(--n-200); padding-top: var(--s4); }
    .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .band { padding: var(--s6) 0; }
    .wrap { padding: 0 var(--s5); }

    /* Masthead: logo penuh */
    .nav { display: none !important; }
    .site-header__bar { flex-wrap: wrap; align-items: center; gap: var(--s3); padding: var(--s4) var(--s5); min-height: 0; }
    .brand { flex: 1 1 100%; }
    .brand img { width: 100%; max-width: 340px; height: auto; }
    .site-header__bar > .search { display: none; }
    .sectionbar { display: none; }

    /* Tata letak beranda mengikuti urutan dari admin. Kelas di bawah hanya
       mengatur tampil/sembunyi per perangkat. */
    .home { overflow-x: hidden; }
    .home-extra { display: none !important; }
    .home__top-ad,
    .home__hash,
    .home__foot-ad { display: block; }

    /* Carousel benar-benar responsif: paksa semua lapisan selebar viewport */
    .home__hero, .slider, .slider__viewport { width: 100%; max-width: 100%; }
    .slider__track { width: 100%; max-width: 100%; }
    .slide { min-width: 100%; max-width: 100%; }
    .slide__media img { width: 100%; max-width: 100%; height: auto; }
    .home__tiles .section__head,
    .home__cats .section__head { display: none; }
    .home__tiles, .home__cats { padding: var(--s5) 0; }
    .home__tiles .grid { gap: var(--s3); }
    /* Semua banner/iklan di tile diposisikan di tengah */
    .home__tiles .ad { display: flex; justify-content: center; margin: 0; }
    .home__tiles .ad a { display: block; max-width: 100%; }
    .home__tiles .ad img { margin-left: auto; margin-right: auto; }

    /* Konten kategori: kartu accordion menggantikan daftar/grid */
    .cats-desktop { display: none !important; }
    .catcards { display: grid; }

    /* Carousel: bar caption menempel di bawah gambar */
    .slide__body { padding: var(--s4); background: var(--n-900); color: var(--n-0); }
    .slide__body h2 { color: var(--n-0); }
    .slide__body .kicker { color: rgba(255, 255, 255, .78); }
    .slide__body .story__meta { color: rgba(255, 255, 255, .7); }
    /* Caption mobile hanya judul + penulis (label "Sorotan" & tanggal dihapus) */
    .slide__label, .slide__date, .slide__sep { display: none; }
    .slide__body .slide__meta { text-transform: none; letter-spacing: 0; gap: 0; font-size: .98rem; }
    .slider__btn { width: 40px; height: 56px; top: 44%; background: rgba(17, 17, 16, .5); color: #fff; }
    .slider__btn:hover { background: rgba(17, 17, 16, .72); }
    .slider__footer { display: none; }

    .grid--2, .grid--3, .grid--4, .grid--asym, .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .story--compact, .card--row { grid-template-columns: 110px 1fr; }

    /* Footer mobile: logo + hak cipta, lalu Informasi (baris atas) & Ikuti Kami (baris bawah) */
    .site-footer__grid { grid-template-columns: 1fr; gap: var(--s5); }
    .footer-brand { grid-column: 1 / -1; text-align: center; }
    .footer-brand img { margin: 0 auto var(--s3); }
    /* Daftar Informasi jadi 2 kolom, teks di tengah */
    .footer-col { text-align: center; }
    .site-footer ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s4); }
    /* Ikon Ikuti Kami: ukuran tetap, jarak rapat, di tengah, beri margin bawah */
    .footer-sosial { display: flex; justify-content: center; gap: var(--s2); margin-bottom: var(--s5); }
    .footer-sosial a { flex: 0 0 auto; width: 38px; height: 38px; }

    .article__body, .prose { font-size: 1.06rem; }
    h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    .story:hover .story__media img { transform: none; }
    html { scroll-behavior: auto; }
}
