/* ==========================================================================
   Islamipedia Berita – sistem desain
   Token warna & bentuk mengikuti tema Islamipedia (hijau tua, hijau daun, emas, bintang 8 sudut).
   Terang: kertas hijau pucat  ·  Gelap: hutan malam. Semua teks memakai token agar kontras terjaga.
   ========================================================================== */

@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/inter-400.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/inter-600.woff') format('woff'); }
@font-face { font-family: 'Inter Display'; font-weight: 800; font-style: normal; font-display: swap; src: url('/fonts/inter-display-800.woff') format('woff'); }

/* ---------- 1. Token ---------- */
:root{
  --deep:#0A3D3A; --deep-2:#0F514C; --leaf:#16806F; --link:#0F6F61; --gold:#D6A23A; --gold-soft:#F3E3BD;
  --bg:#F3F7F5; --card:#FFFFFF; --ink:#0F2420; --muted:#4F635D; --line:#D9E5E0; --tint:#E7F0EC;
  --chrome:#0A3D3A; --btn:#0B3F3B; --btn-hover:#11534D;
  --on-deep:#E8F3F0; --on-deep-2:#B9D3CD; --on-gold:#F6E7BE; --ink-on-gold:#2B2006;
  --badge-bg:#F3E3BD; --badge-fg:#6B4D0B;
  --r-s:8px; --r-m:12px; --r-l:22px;
  --f-head:'Bricolage Grotesque','Inter Display','Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  --f-body:'Instrument Sans','Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  --wrap:1200px;
  --star:polygon(50.0% 0.0%,64.6% 14.6%,85.4% 14.6%,85.4% 35.4%,100.0% 50.0%,85.4% 64.6%,85.4% 85.4%,64.6% 85.4%,50.0% 100.0%,35.4% 85.4%,14.6% 85.4%,14.6% 64.6%,0.0% 50.0%,14.6% 35.4%,14.6% 14.6%,35.4% 14.6%);
  --badge-solid:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50.00,5.00 63.18,18.18 81.82,18.18 81.82,36.82 95.00,50.00 81.82,63.18 81.82,81.82 63.18,81.82 50.00,95.00 36.82,81.82 18.18,81.82 18.18,63.18 5.00,50.00 18.18,36.82 18.18,18.18 36.82,18.18' fill='%230A3D3A' stroke='%23D6A23A' stroke-width='6' stroke-linejoin='round'/%3E%3Cpolygon points='50.00,15.00 60.25,25.25 74.75,25.25 74.75,39.75 85.00,50.00 74.75,60.25 74.75,74.75 60.25,74.75 50.00,85.00 39.75,74.75 25.25,74.75 25.25,60.25 15.00,50.00 25.25,39.75 25.25,25.25 39.75,25.25' fill='none' stroke='%23D6A23A' stroke-width='1.6' stroke-linejoin='round' stroke-opacity='.55'/%3E%3C/svg%3E");
  --badge-soft:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50.00,5.00 63.18,18.18 81.82,18.18 81.82,36.82 95.00,50.00 81.82,63.18 81.82,81.82 63.18,81.82 50.00,95.00 36.82,81.82 18.18,81.82 18.18,63.18 5.00,50.00 18.18,36.82 18.18,18.18 36.82,18.18' fill='%23E7F0EC' stroke='%2316806F' stroke-width='6' stroke-linejoin='round'/%3E%3Cpolygon points='50.00,15.00 60.25,25.25 74.75,25.25 74.75,39.75 85.00,50.00 74.75,60.25 74.75,74.75 60.25,74.75 50.00,85.00 39.75,74.75 25.25,74.75 25.25,60.25 15.00,50.00 25.25,39.75 25.25,25.25 39.75,25.25' fill='none' stroke='%2316806F' stroke-width='1.6' stroke-linejoin='round' stroke-opacity='.55'/%3E%3C/svg%3E");
  --badge-gold:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50.00,5.00 63.18,18.18 81.82,18.18 81.82,36.82 95.00,50.00 81.82,63.18 81.82,81.82 63.18,81.82 50.00,95.00 36.82,81.82 18.18,81.82 18.18,63.18 5.00,50.00 18.18,36.82 18.18,18.18 36.82,18.18' fill='%23D6A23A' stroke='%230A3D3A' stroke-width='6' stroke-linejoin='round'/%3E%3Cpolygon points='50.00,15.00 60.25,25.25 74.75,25.25 74.75,39.75 85.00,50.00 74.75,60.25 74.75,74.75 60.25,74.75 50.00,85.00 39.75,74.75 25.25,74.75 25.25,60.25 15.00,50.00 25.25,39.75 25.25,25.25 39.75,25.25' fill='none' stroke='%230A3D3A' stroke-width='1.6' stroke-linejoin='round' stroke-opacity='.55'/%3E%3C/svg%3E");

  /* alias untuk komponen */
  --surface:var(--card); --surface-2:var(--tint); --bg-2:var(--tint); --line-2:#C2D4CD;
  --text:var(--ink); --text-2:#33473F; --accent:var(--link); --accent-ink:#fff; --accent-soft:var(--tint);
  --up:#0A7A4D; --down:#B3261E; --warn:#7A5200; --warn-bg:#FFF3D6;
  --shadow:0 1px 2px rgba(10,61,58,.08),0 8px 22px rgba(10,61,58,.08); --shadow-lg:0 12px 40px rgba(6,30,28,.22);
  --r:var(--r-m); --r-sm:var(--r-s);
  --gutter:clamp(16px,3vw,32px); --maxw:1280px; --head-h:64px;
  --font:var(--f-body); --font-d:var(--f-head);
  color-scheme:light;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme='light']){
    --bg:#0B1715; --card:#12231F; --ink:#E6F0ED; --muted:#9CB4AC; --line:#25423B; --tint:#1A302A;
    --chrome:#06110F; --deep:#0F4A44; --deep-2:#0B3A35; --btn:#177E6C; --btn-hover:#1E9480;
    --link:#5FD8BC; --gold-soft:#3A2F14; --badge-bg:#3A2F14; --badge-fg:#F0CB78;
    --line-2:#33564D; --text-2:#BCD2CB; --up:#3DDC97; --down:#FF8D84; --warn:#FFD27A; --warn-bg:#3A2C0C;
    --shadow:0 1px 2px rgba(0,0,0,.4),0 8px 24px rgba(0,0,0,.28); --shadow-lg:0 14px 48px rgba(0,0,0,.6);
    --badge-solid:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50.00,5.00 63.18,18.18 81.82,18.18 81.82,36.82 95.00,50.00 81.82,63.18 81.82,81.82 63.18,81.82 50.00,95.00 36.82,81.82 18.18,81.82 18.18,63.18 5.00,50.00 18.18,36.82 18.18,18.18 36.82,18.18' fill='%230F4A44' stroke='%23D6A23A' stroke-width='6' stroke-linejoin='round'/%3E%3C/svg%3E");
    --badge-soft:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50.00,5.00 63.18,18.18 81.82,18.18 81.82,36.82 95.00,50.00 81.82,63.18 81.82,81.82 63.18,81.82 50.00,95.00 36.82,81.82 18.18,81.82 18.18,63.18 5.00,50.00 18.18,36.82 18.18,18.18 36.82,18.18' fill='%231A302A' stroke='%233FB59C' stroke-width='6' stroke-linejoin='round'/%3E%3C/svg%3E");
    --badge-gold:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50.00,5.00 63.18,18.18 81.82,18.18 81.82,36.82 95.00,50.00 81.82,63.18 81.82,81.82 63.18,81.82 50.00,95.00 36.82,81.82 18.18,81.82 18.18,63.18 5.00,50.00 18.18,36.82 18.18,18.18 36.82,18.18' fill='%23D6A23A' stroke='%23F3E3BD' stroke-width='6' stroke-linejoin='round'/%3E%3C/svg%3E");
    color-scheme:dark;
  }
}
:root[data-theme='dark']{
  --bg:#0B1715; --card:#12231F; --ink:#E6F0ED; --muted:#9CB4AC; --line:#25423B; --tint:#1A302A;
  --chrome:#06110F; --deep:#0F4A44; --deep-2:#0B3A35; --btn:#177E6C; --btn-hover:#1E9480;
  --link:#5FD8BC; --gold-soft:#3A2F14; --badge-bg:#3A2F14; --badge-fg:#F0CB78;
  --line-2:#33564D; --text-2:#BCD2CB; --up:#3DDC97; --down:#FF8D84; --warn:#FFD27A; --warn-bg:#3A2C0C;
  --shadow:0 1px 2px rgba(0,0,0,.4),0 8px 24px rgba(0,0,0,.28); --shadow-lg:0 14px 48px rgba(0,0,0,.6);
  --badge-solid:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50.00,5.00 63.18,18.18 81.82,18.18 81.82,36.82 95.00,50.00 81.82,63.18 81.82,81.82 63.18,81.82 50.00,95.00 36.82,81.82 18.18,81.82 18.18,63.18 5.00,50.00 18.18,36.82 18.18,18.18 36.82,18.18' fill='%230F4A44' stroke='%23D6A23A' stroke-width='6' stroke-linejoin='round'/%3E%3C/svg%3E");
  --badge-soft:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50.00,5.00 63.18,18.18 81.82,18.18 81.82,36.82 95.00,50.00 81.82,63.18 81.82,81.82 63.18,81.82 50.00,95.00 36.82,81.82 18.18,81.82 18.18,63.18 5.00,50.00 18.18,36.82 18.18,18.18 36.82,18.18' fill='%231A302A' stroke='%233FB59C' stroke-width='6' stroke-linejoin='round'/%3E%3C/svg%3E");
  --badge-gold:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50.00,5.00 63.18,18.18 81.82,18.18 81.82,36.82 95.00,50.00 81.82,63.18 81.82,81.82 63.18,81.82 50.00,95.00 36.82,81.82 18.18,81.82 18.18,63.18 5.00,50.00 18.18,36.82 18.18,18.18 36.82,18.18' fill='%23D6A23A' stroke='%23F3E3BD' stroke-width='6' stroke-linejoin='round'/%3E%3C/svg%3E");
  color-scheme:dark;
}

/* ---------- Reset & dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 60px + env(safe-area-inset-top, 0px)); overflow-x: hidden; overscroll-behavior-x: none; max-width: 100%; }
/* Tanpa zoom cubit/ketuk-ganda dan tanpa geser kiri-kanan pada halaman; area yang memang bisa digeser (menu, peta) tetap berfungsi. */
html, body, body * { touch-action: pan-x pan-y; }
.slippy, .slippy * { touch-action: none; }
/* Area aman ponsel (poni/bilah status): konten tidak tertutup bar atas */
body { padding-top: env(safe-area-inset-top, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top, 0px); background: var(--chrome); z-index: 90; pointer-events: none; }
body {
  margin: 0; background: var(--bg); color: var(--text); max-width: 100%; overflow-x: clip;
  font: 400 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-d); font-weight: 800; margin: 0; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
b, strong { font-weight: 600; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--btn); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 10px; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; flex: none; }

main { display: block; min-height: 60vh; padding-block: 20px 56px; }

/* ---------- Tombol & kontrol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: background-color .15s, border-color .15s, transform .15s;
}
.btn--primary { background: var(--btn); color: #fff; }
.btn--primary:hover { background: var(--btn-hover); }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.btn--sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--text-2); transition: background-color .15s; }
.icon-btn:hover { background: var(--surface); color: var(--text); }
.search-toggle { display: none; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); flex-wrap: wrap; }
.seg__b { border: 0; background: transparent; color: var(--text-2); font-weight: 600; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.seg__b:hover { color: var(--text); }
.seg__b.is-on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
:root[data-theme='dark'] .seg__b.is-on { background: var(--line-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .seg__b.is-on { background: var(--line-2); } }
.seg__b--sm { padding: 4px 10px; font-size: 12px; }
.seg--right { align-self: flex-end; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); font-weight: 600; }
.chips a:hover { color: var(--text); border-color: var(--line-2); }
.chips a[aria-current] { background: var(--btn); border-color: var(--btn); color: #fff; }
.citygrp__h { font-size: 15px; margin-top: 8px; }
.citygrp { border-top: 1px solid var(--line); padding: 10px 0; }
.citygrp summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.citygrp summary span { color: var(--muted); font-weight: 500; font-size: 13px; }
.citygrp .chips { margin-top: 10px; }

/* ---------- Bilah tanggal & header ---------- */
.datebar { background: var(--chrome); color: var(--on-deep-2); font-size: 12.5px; border-bottom: 1px solid rgba(255, 255, 255, .08); position: relative; z-index: 61; }
.datebar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; }
.datebar__d { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; white-space: nowrap; }
.datebar__l { display: flex; gap: 16px; }
.datebar__l a:hover { color: #fff; text-decoration: underline; }
.site-header { position: sticky; top: 0; z-index: 60; background: var(--chrome); color: var(--on-deep); border-bottom: 3px solid var(--gold); box-shadow: 0 6px 18px rgba(6, 30, 28, .18); }
.site-header :focus-visible { outline-color: var(--gold); }
.bar { display: flex; align-items: center; gap: 16px; min-height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand__logo { height: 40px; width: auto; }
.brand__tag { padding: 3px 10px; border-radius: 999px; background: var(--gold); color: var(--ink-on-gold); font-weight: 700; font-size: 12px; letter-spacing: .01em; }
.search { position: relative; flex: 1 1 auto; max-width: 520px; margin-left: auto; }
.search .ic { position: absolute; left: 15px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--on-deep-2); pointer-events: none; }
.search input { width: 100%; height: 42px; padding: 0 18px 0 42px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .1); color: #fff; font-size: 14.5px; }
.search input::placeholder { color: var(--on-deep-2); opacity: 1; }
.search input:focus { outline: none; border-color: var(--gold); background: rgba(255, 255, 255, .16); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 30%, transparent); }
.site-header .icon-btn { color: var(--on-deep-2); }
.site-header .icon-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.navwrap { background: var(--deep-2); }
[data-theme='dark'] .navwrap, [data-theme='dark'] .navwrap--sub { background: #0A2A27; }
.mainnav, .subnav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.mainnav::-webkit-scrollbar, .subnav::-webkit-scrollbar { display: none; }
.nav__i { position: relative; flex: none; }
.mainnav .nav__i > a { position: relative; display: block; padding: 11px 12px 12px; font-weight: 600; font-size: 14px; color: var(--on-deep-2); white-space: nowrap; transition: color .15s; }
.mainnav .nav__i > a:hover, .nav__i:focus-within > a { color: #fff; }
.mainnav .nav__i > a.is-active { color: #fff; }
.mainnav .nav__i > a.is-active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--gold); }
.nav__dd { display: none; }
@media (min-width: 1100px) and (hover: hover) {
  .mainnav { overflow: visible; }
  .nav__i:hover .nav__dd, .nav__i:focus-within .nav__dd { display: grid; }
  .nav__dd { position: absolute; top: 100%; left: 0; z-index: 70; min-width: 230px; gap: 2px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-lg); }
  .nav__dd a { padding: 9px 12px; border-radius: 8px; color: var(--ink); font-size: 14px; font-weight: 500; }
  .nav__dd a:hover, .nav__dd a:focus-visible { background: var(--tint); color: var(--link); }
  .nav__i:last-child .nav__dd, .nav__i:nth-last-child(2) .nav__dd { left: auto; right: 0; }
}
.navwrap--sub { background: var(--tint); border-top: 1px solid var(--line); }
.subnav { padding-block: 8px; }
.subnav a { padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.subnav a:hover { background: var(--card); color: var(--text); }

.prefs { position: fixed; z-index: 80; top: calc(var(--head-h) + 8px); right: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); width: min(320px, calc(100vw - 32px)); }
.prefs__in { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 16px 18px 18px; display: grid; gap: 14px; }
.prefs__row { display: flex; align-items: center; justify-content: space-between; }
.prefs h2 { font-size: 17px; }
.prefs fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.prefs legend { font-weight: 600; font-size: 13px; color: var(--muted); padding: 0; margin-bottom: 6px; float: left; width: 100%; }
.radio { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; cursor: pointer; }
.radio input { accent-color: var(--accent); width: 17px; height: 17px; }

/* ---------- Kepala halaman ---------- */
.pagehead { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 24px; flex-wrap: wrap; margin: 4px 0 14px; }
.pagehead h1 { font-size: clamp(26px, 3.2vw, 38px); }
.pagehead__d { color: var(--muted); font-size: 14px; font-weight: 600; }
.pagehead--cat { margin-bottom: 18px; }
.pagehead__p { margin-top: 8px; max-width: 68ch; color: var(--text-2); font-size: 15.5px; }

/* ---------- Ubin berita ---------- */
.tile { position: relative; border-radius: var(--r); overflow: hidden; background: var(--deep); isolation: isolate; min-width: 0; box-shadow: var(--shadow); }
.tile__a { position: absolute; inset: 0; display: block; color: #fff; }
.tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) { .tile:hover .tile__img { transform: scale(1.035); } }
.tile--noimg { background: linear-gradient(135deg, var(--deep-2), var(--deep) 60%, #0B5A4E); }
.tile__body {
  position: absolute; inset: auto 0 0 0; padding: 56px 14px 14px; color: #fff; display: grid; gap: 6px;
  background: linear-gradient(to top, rgba(3, 22, 20, .94) 0%, rgba(3, 22, 20, .78) 42%, rgba(3, 22, 20, 0) 100%);
}
.tile__meta { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .86); min-width: 0; }
.tile__src { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tile__meta time { white-space: nowrap; font-weight: 400; }
.tile__title { font-family: var(--font); font-weight: 600; font-size: 15px; line-height: 1.3; letter-spacing: -.005em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; }
.tile__sum { font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .84); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile__cat { justify-self: start; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 6px; background: var(--gold); color: var(--ink-on-gold); }
.tile--l .tile__body { padding: 90px 24px 22px; gap: 10px; }
.tile--l .tile__title { font-family: var(--font-d); font-weight: 800; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.14; letter-spacing: -.02em; -webkit-line-clamp: 4; }
.tile--l .tile__meta { font-size: 13px; }
.tile--w .tile__title, .tile--m .tile__title { font-size: 17px; }
.tile--w .tile__body { padding: 70px 18px 16px; }
.tile:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.tile__a:focus-visible { outline: none; }

.fav { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; overflow: hidden; flex: none; background: #3b4a6b; }
.fav__l { font-size: 10px; font-weight: 600; color: #fff; line-height: 1; }
.fav img { position: absolute; inset: 0; width: 100%; height: 100%; background: #fff; object-fit: contain; padding: 1px; }
.fav--0 { background: #0A3D3A; } .fav--1 { background: #16806F; } .fav--2 { background: #8A6414; } .fav--3 { background: #2B5C8A; }
.fav--4 { background: #7A3B5A; } .fav--5 { background: #0F514C; } .fav--6 { background: #8A5A00; } .fav--7 { background: #455A64; } .fav--8 { background: #9B3A2E; }

/* grid seragam (4 kolom) */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.grid4 .tile { aspect-ratio: 4 / 3; }

/* mosaik MSN: ubin 2×2 + 2×1 */
.mosaic { --row: clamp(176px, 15.2vw, 224px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: var(--row); grid-auto-flow: dense; gap: 14px; }
.mosaic .tile--l { grid-column: span 2; grid-row: span 2; }
.mosaic .tile--w { grid-column: span 2; }

/* ---------- Hero beranda ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; height: clamp(400px, 34vw, 470px); margin-bottom: 18px; }
.hero > .tile--l { height: 100%; }
.hero__side { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; min-height: 0; }
.hero__side .tile { height: 100%; }

/* ---------- Bintang (penanda kategori), topik populer, jadwal salat ---------- */
.star { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; background: var(--badge-solid) center / contain no-repeat; color: var(--gold); }
.star--soft { background-image: var(--badge-soft); color: var(--leaf); }
[data-theme='dark'] .star--soft { color: var(--link); }
.star--gold { background-image: var(--badge-gold); color: var(--deep); }
.star .ic { width: 16px; height: 16px; }
.dot { width: 5px; height: 5px; border-radius: 1px; background: var(--gold); rotate: 45deg; opacity: 1; flex: none; }

.trend { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; min-width: 0; }
.trend__t { display: inline-flex; align-items: center; gap: 6px; flex: none; font-weight: 700; font-size: 13.5px; color: var(--text); }
.trend__t .ic { width: 17px; height: 17px; color: var(--gold); fill: color-mix(in srgb, var(--gold) 35%, transparent); }
.trend__l { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.trend__l::-webkit-scrollbar { display: none; }
.trend__l a { display: inline-block; white-space: nowrap; padding: 5px 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.trend__l a:hover { border-color: var(--leaf); color: var(--link); }

.salat { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 18px 18px 14px; border-radius: var(--r-m); color: var(--on-deep); min-width: 0; background: linear-gradient(170deg, var(--deep-2), var(--deep)); box-shadow: var(--shadow); }
.salat::after { content: ''; position: absolute; right: -46px; top: -46px; width: 170px; height: 170px; background: var(--badge-gold) center / contain no-repeat; opacity: .1; pointer-events: none; }
.salat__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }
.salat__h { font-size: 18px; color: #fff; }
.salat__city { position: relative; display: inline-flex; align-items: center; min-width: 0; }
.salat__city .ic { position: absolute; left: 9px; width: 15px; height: 15px; color: #F3E3BD; pointer-events: none; }
.salat select { appearance: none; -webkit-appearance: none; max-width: 150px; height: 34px; padding: 0 12px 0 30px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); color: #fff; font-size: 13px; font-weight: 600; }
.salat select option { color: #0F2420; background: #fff; }
.salat select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.salat__next { position: relative; z-index: 1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--on-deep-2); }
.salat__next b { font-family: var(--f-head); font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.salat__next time { font-family: var(--f-head); font-size: 26px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.salat__next small { flex-basis: 100%; font-size: 13px; color: var(--on-deep-2); }
.salat__list { position: relative; z-index: 1; display: grid; gap: 2px; }
.salat__list li { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 600; }
.salat__list time { font-variant-numeric: tabular-nums; }
.salat__list li.is-past { opacity: .55; }
.salat__list li.is-next { background: var(--gold); color: var(--ink-on-gold); opacity: 1; }
.salat__foot { position: relative; z-index: 1; font-size: 12px; color: var(--on-deep-2); margin-top: auto; }
.salat__more { position: relative; z-index: 1; display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; color: #F3E3BD; }
.salat__more:hover { text-decoration: underline; color: #fff; }
.salat__more .ic { width: 16px; height: 16px; }

/* blok bacaan "soft": nada lebih tenang dari ubin berita cepat */
.band { margin-top: 44px; padding-block: 34px 38px; background: var(--tint); border-block: 1px solid var(--line); }
.band__head { margin-bottom: 20px; max-width: 62ch; }
.band__head h2 { font-size: clamp(22px, 2.4vw, 28px); }
.band__head p { margin-top: 6px; color: var(--text-2); }
.soft-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.soft { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 16px 8px; min-width: 0; }
.soft__h { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.soft__h h2 { font-size: 18px; }
.soft__h a:hover { color: var(--link); text-decoration: underline; }
.soft__l .mini:first-child { padding-top: 6px; }
.kindtag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--link); }
.kindtag::before { content: ''; width: 7px; height: 7px; border-radius: 1px; background: var(--gold); rotate: 45deg; }

/* ---------- Seksi ---------- */
.sec { margin-top: 34px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-title { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(20px, 2vw, 24px); }
.sec-title--plain { font-size: 22px; }
.sec-more { display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--link); }
.sec-more:hover { text-decoration: underline; }
.sec-more .ic { width: 18px; height: 18px; }

/* ---------- Kartu & widget ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.widget { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.widget__h { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.trow li + li { border-top: 1px solid var(--line); }
.trow a { display: grid; gap: 3px; padding: 10px 0; }
.trow a:hover .trow__t { color: var(--accent); }
.trow__t { font-weight: 600; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.trow__m { font-size: 12px; color: var(--muted); }
.mini { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 0; }
.mini + .mini { border-top: 1px solid var(--line); }
.mini__img { width: 96px; height: 68px; object-fit: cover; border-radius: 10px; background: var(--deep); }
.mini__t { display: grid; gap: 4px; min-width: 0; }
.mini__meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); min-width: 0; }
.mini__meta span:nth-of-type(1) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--text-2); }
.mini h3 { font-family: var(--font); font-weight: 600; font-size: 14px; line-height: 1.32; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mini:hover h3 { color: var(--accent); }
.minilist { display: grid; }
.minilist .mini:first-child { padding-top: 0; }

/* hero kategori */
.cathero { display: grid; grid-template-columns: minmax(250px, 1fr) minmax(0, 2.1fr) minmax(250px, 1fr); gap: 14px; margin-bottom: 20px; align-items: stretch; }
.cathero__main { position: relative; min-height: 420px; }
.cathero__main .tile { position: absolute; inset: 0; }
.cathero__minis { padding: 4px 16px; display: grid; align-content: start; }
/* Iklan di bawah 3 berita widget kanan: mengisi sisa ruang, tertutup sampai terisi. */
.cathero__minis .ad--side.is-filled, .cathero__minis .ad--side:has(ins[data-ad-status='filled']) { margin-block: 14px 12px; align-self: center; }
.cathero__w { min-width: 0; display: flex; }
.cathero__w > .card { flex: 1; }

/* ---------- Artikel ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs li + li::before { content: '/'; margin-inline: 8px; opacity: .6; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.artgrid { display: grid; grid-template-columns: 48px minmax(0, 740px) 340px; grid-template-areas: 'share main side'; gap: 28px 36px; justify-content: center; align-items: start; }
.art { grid-area: main; min-width: 0; }
.share { grid-area: share; position: sticky; top: calc(var(--head-h) + 70px); display: flex; flex-direction: column; gap: 10px; }
.artside { grid-area: side; display: grid; gap: 16px; position: sticky; top: calc(var(--head-h) + 70px); }
.share__b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); transition: background-color .15s, color .15s; }
.share__b:hover { background: var(--btn); color: #fff; border-color: var(--btn); }
.share__b.is-done { background: var(--up); color: #fff; border-color: var(--up); }
.art__head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.srcchip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; color: var(--text); }
.srcchip:hover { border-color: var(--accent); }
.srcchip .fav { width: 22px; height: 22px; }
.art__read { color: var(--up); font-weight: 600; margin-left: auto; }
.art__title { font-size: clamp(27px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; margin-bottom: 22px; }
.art__fig { margin: 0 0 26px; }
.art__fig img { width: 100%; height: auto; /* atribut height="675" di <img> tidak boleh menang atas aspect-ratio (penyebab gambar memanjang di ponsel) */ aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); background: var(--deep); }
.art__fig figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.art__body { font-size: 18px; line-height: 1.75; color: var(--text); }
.art__body p { margin-bottom: 1.15em; max-width: 68ch; text-wrap: pretty; }
.art__body h2 { font-size: 24px; margin: 1.6em 0 .6em; padding-top: 14px; border-top: 3px solid var(--gold); max-width: 22em; }
.art__body blockquote { margin: 1.3em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--gold); color: var(--text-2); }
.art__body blockquote p { margin: 0; }
.art__body .is-fade { -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent); mask-image: linear-gradient(to bottom, #000 35%, transparent); margin-bottom: 0; padding-bottom: 6px; }
.art__cta { margin-top: -6px; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 12px; padding: 4px 0 8px; min-width: 0; }
.art__cta .btn { max-width: 100%; white-space: normal; text-align: center; height: auto; min-height: 44px; }
.art__note { font-size: 13px; color: var(--muted); max-width: 60ch; }
.srcbox .widget__h .fav { width: 22px; height: 22px; }
.srcbox .btn { align-self: flex-start; }

/* ---------- Halaman statis ---------- */
.prosewrap { max-width: 820px; }
.prose-head { margin-bottom: 20px; }
.prose-head h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.lead { font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 62ch; }
.prose h2 { font-size: 21px; margin: 30px 0 10px; }
.prose p, .prose li { line-height: 1.7; color: var(--text-2); max-width: 68ch; }
.prose p { margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; margin-bottom: 12px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .9em; }
.prose .src-list { columns: 2; column-gap: 28px; }
.form { display: grid; gap: 14px; max-width: 560px; margin-block: 8px 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.form input, .form textarea { padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-weight: 400; font-size: 15px; width: 100%; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 12px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.notice.ok { background: color-mix(in srgb, var(--up) 16%, transparent); color: var(--up); }
.notice.err { background: color-mix(in srgb, var(--down) 14%, transparent); color: var(--down); }

/* ---------- Lain-lain ---------- */
.seo-text { margin-top: 44px; padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; }
.seo-text h2 { font-size: 19px; }
.seo-text p { color: var(--text-2); max-width: 78ch; line-height: 1.65; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.pager__n { font-weight: 600; color: var(--muted); font-size: 14px; }
.feed__list { display: grid; gap: 14px; margin-top: 14px; }
.feed__chunk { display: block; }
.feed__status { min-height: 56px; display: flex; align-items: center; justify-content: center; margin-top: 18px; color: var(--muted); font-size: 14px; font-weight: 600; }
.empty { padding: 56px 20px; text-align: center; display: grid; justify-items: center; gap: 12px; }
.empty h1, .empty h2 { font-size: 24px; }
.empty p { color: var(--text-2); max-width: 46ch; }
.empty__code { font-family: var(--font-d); font-weight: 800; font-size: 88px; line-height: 1; color: var(--accent); letter-spacing: -.04em; }
.empty__links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }




/* ---------- Iklan ----------
   Tanpa border, tanpa label. Kotak tertutup (tinggi 0) sampai iklan terisi; lebar tetap nyata agar AdSense dapat mengukur slot. */
.ad { display: block; height: 0; margin: 0; padding: 0; overflow: hidden; text-align: center; }
.ad .adsbygoogle { display: block; margin-inline: auto; }
.ad--custom { height: auto; overflow: visible; }
.ad.is-filled, .ad:has(ins[data-ad-status='filled']), .ad--preview { height: auto; overflow: visible; margin-block: 22px; }
.ad.is-empty { height: 0; margin: 0; overflow: hidden; }
.ad__ph { display: grid; place-items: center; min-height: 80px; border: 1px dashed var(--line-2); border-radius: 10px; color: var(--muted); font-size: 13px; }
.ad__box { max-width: 100%; overflow: hidden; }
.ad__box > * { max-width: 100%; }
.artside .ad.is-filled, .artside .ad:has(ins[data-ad-status='filled']) { margin-block: 0; }
.ad--custom.is-filled { margin-block: 22px; }

/* Iklan di sela grid berita: satu kolom x dua baris, tanpa border/label.
   Selama belum terisi, sel dikeluarkan dari alur grid (di luar layar, tetap punya lebar agar AdSense bisa mengukur) sehingga tidak ada lubang di grid.
   Begitu terisi, sel masuk ke grid. Lebar disetel js/ads.js (--adw) sama dengan lebar satu kolom. */
.mosaic .ad--grid { position: absolute; left: -9999px; top: 0; width: var(--adw, 300px); height: auto; margin: 0; overflow: visible; visibility: hidden; pointer-events: none; }
.mosaic .ad--grid.is-filled, .mosaic .ad--grid:has(ins[data-ad-status='filled']), .mosaic .ad--grid.ad--preview {
  position: static; width: auto; visibility: visible; pointer-events: auto; overflow: hidden;
  display: grid; align-items: center; grid-row: span 2; min-width: 0; border-radius: var(--r); background: var(--surface);
}
.mosaic .ad--grid.is-empty, .mosaic .ad--grid:has(ins[data-ad-status='unfilled']) { display: none; }
.ad--grid .adsbygoogle { width: 100%; }

/* Spanduk di atas header: selebar .container (sama dengan logo sampai tombol pengaturan), di luar .site-header yang sticky, jadi hilang saat di-scroll.
   Ukuran tetap dipilih lewat media query (tanpa data-ad-format): 970x250 hanya bila kontainer cukup lebar (>= 1100px layar), 728x90 mulai 800px, selain itu 320x100.
   (Sebelumnya 970 dipakai mulai 1024px padahal kontainer hanya ~960px, sehingga iklan terpotong.) */
.adtop { position: relative; z-index: 1; }
.adtop .ad--header.is-filled, .adtop .ad--header:has(ins[data-ad-status='filled']) { margin-block: 8px 0; }
.ad--header .adsbygoogle { width: 320px; height: 100px; }
@media (min-width: 800px) { .ad--header .adsbygoogle { width: 728px; height: 90px; } }
@media (min-width: 1100px) { .ad--header .adsbygoogle { width: 970px; height: 250px; } }
/* iklan gambar/affiliate: jangan melebihi Billboard 970x250 */
.ad--header.ad--custom .ad__box { max-width: 970px; margin-inline: auto; }
.ad--header.ad--custom img { display: block; width: auto; max-width: 100%; height: auto; max-height: 250px; margin-inline: auto; }
/* Tombol sembunyikan: baris sendiri di atas iklan (tidak menimpa iklan), baru muncul setelah iklan terisi */
.adtop__bar { display: none; justify-content: flex-end; padding-top: 6px; }
.adtop:has(.ad.is-filled) .adtop__bar, .adtop:has(ins[data-ad-status='filled']) .adtop__bar, .adtop:has(.ad--preview) .adtop__bar { display: flex; }
.adtop__x { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 10px 3px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.adtop__x:hover { color: var(--text); border-color: var(--accent); }
.adtop__x .ic { width: 13px; height: 13px; }
.art__body .ad--mid { margin-block: 26px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; background: var(--chrome); color: var(--on-deep-2); border-top: 3px solid var(--gold); }
.foot { display: grid; grid-template-columns: 1.5fr 1.5fr 1fr 1.2fr; gap: 32px; padding-block: 40px 26px; }
.foot__brand p { margin-top: 14px; color: var(--on-deep-2); max-width: 34ch; font-size: 14px; }
.foot .brand__logo { height: 44px; }
.foot h2 { font-size: 14px; margin-bottom: 12px; font-family: var(--f-body); font-weight: 700; letter-spacing: 0; color: #fff; }
.foot li + li { margin-top: 8px; }
.foot__cols { columns: 2; column-gap: 20px; }
.foot__cols li { break-inside: avoid; }
.foot nav a { color: var(--on-deep-2); font-size: 14px; }
.foot nav a:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--gold); }
.legal { padding-block: 16px 28px; border-top: 1px solid rgba(255, 255, 255, .12); color: var(--on-deep-2); font-size: 13px; }
.site-footer .social a { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: var(--on-deep); }
.site-footer .social__t { color: var(--on-deep); }

/* ---------- Responsif ---------- */
@media (max-width: 1200px) {
  .artgrid { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: 'main side' 'share side'; gap: 20px 28px; }
  .share { position: static; flex-direction: row; }
  .cathero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cathero__main { grid-column: 1 / -1; grid-row: 1; min-height: 380px; }
}
@media (max-width: 1000px) {
  .grid4, .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic { --row: clamp(170px, 28vw, 230px); }
  .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; }
  .hero > .tile--l { grid-column: 1 / -1; height: clamp(320px, 56vw, 460px); }
  .hero__side { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .hero__side .tile { aspect-ratio: 4 / 3; height: auto; }
  .soft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .artgrid { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'main' 'share' 'side'; }
  .artside { position: static; }
}
@media (max-width: 720px) {
  /* Seluler: baris atas (logo, cuaca, tombol) ikut tergulir; hanya menu yang menempel di atas, di bawah bilah status ponsel */
  :root { --head-h: 44px; --nav-h: 44px; --safe-t: env(safe-area-inset-top, 0px); }
  .site-header { display: contents; }
  .navwrap { position: sticky; top: var(--safe-t); z-index: 60; height: var(--nav-h); background: var(--deep-2); border-bottom: 3px solid var(--gold); }
  .navwrap { display: flex; }
  .site-header .bar { background: var(--chrome); }
  .navwrap .mainnav { flex: 1 1 auto; min-width: 0; height: 100%; align-items: center; padding-inline: 12px 4px; touch-action: pan-x pan-y; }
  .navwrap .search-toggle { flex: none; width: 46px; height: 100%; border-radius: 0; border-left: 1px solid rgba(255, 255, 255, .15); background: var(--deep-2); color: var(--on-deep); }
  .navwrap--sub { top: calc(var(--nav-h) + var(--safe-t) + 3px); z-index: 59; height: auto; background: var(--tint); border-bottom: 1px solid var(--line); }
  .prefs { top: calc(64px + var(--safe-t)); }
  .bar { flex-wrap: wrap; align-items: center; gap: 6px; padding-block: 8px; padding-inline: 14px; min-height: 56px; }
  .bar .brand { min-width: 0; margin-right: auto; }
  .brand__logo { height: 34px; }
  .datebar__l { display: none; }
  .soft-grid { grid-template-columns: minmax(0, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
  .search-toggle { display: inline-grid; }
  .search { display: none; order: 5; flex: 1 0 100%; max-width: none; margin: 4px 0 0; }
  .bar.is-search .search { display: block; }
  .cathero { grid-template-columns: minmax(0, 1fr); }
  .cathero__main { min-height: 340px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
  .prose .src-list { columns: 1; }
  .art__body { font-size: 17px; }
  .prefs { right: 16px; top: calc(112px + var(--safe-t)); }
}
@media (max-width: 520px) {
  .grid4, .mosaic { grid-template-columns: minmax(0, 1fr); }
  .mosaic { --row: 220px; }
  .mosaic .tile--l, .mosaic .tile--w { grid-column: auto; grid-row: span 1; }
  .mosaic .tile--l { grid-row: span 2; }
  .hero__side { grid-template-columns: 1fr; }
  .tile--l .tile__title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.social { margin-top: 16px; }
.social__t { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.social ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social li + li { margin-top: 0; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); transition: color .15s, border-color .15s, background .15s; }
.social a:hover { color: #fff; background: var(--btn); border-color: var(--btn); text-decoration: none; }
.social .ic { width: 20px; height: 20px; }

/* penyesuaian kartu salat */
.salat__h { white-space: nowrap; }
.salat select { max-width: 124px; text-overflow: ellipsis; }

/* ---------- Strip jadwal salat di bawah menu ---------- */
.salatbar { background: var(--tint); border-bottom: 1px solid var(--line); }
.salatbar__in { display: flex; align-items: center; gap: 8px 20px; padding-block: 8px; }
.salatbar__who { display: flex; align-items: center; gap: 12px; min-width: 0; flex: none; }
.salatbar__city { position: relative; display: inline-flex; align-items: center; min-width: 0; }
.salatbar__city .ic { position: absolute; left: 10px; width: 15px; height: 15px; color: var(--link); pointer-events: none; }
.salatbar select { appearance: none; -webkit-appearance: none; max-width: 140px; height: 32px; padding: 0 12px 0 31px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; text-overflow: ellipsis; }
.salatbar select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.salatbar__next { display: flex; align-items: baseline; gap: 6px; margin: 0; font-size: 13px; color: var(--muted); white-space: nowrap; }
.salatbar__next b { font-family: var(--f-head); font-size: 16px; color: var(--text); }
.salatbar__next time { font-family: var(--f-head); font-size: 16px; font-weight: 700; color: var(--link); font-variant-numeric: tabular-nums; }
.salatbar__next small { font-size: 12.5px; }
.salatbar__list { display: flex; flex: 1 1 auto; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.salatbar__list li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text-2); }
.salatbar__list time { font-variant-numeric: tabular-nums; color: var(--text); }
.salatbar__list li.is-past { opacity: .55; }
.salatbar__list li.is-next { background: var(--gold); border-color: var(--gold); color: var(--ink-on-gold); opacity: 1; }
.salatbar__list li.is-next time { color: var(--ink-on-gold); }
.salatbar__more { display: inline-flex; align-items: center; flex: none; font-size: 13px; font-weight: 600; color: var(--link); white-space: nowrap; }
.salatbar__more:hover { text-decoration: underline; }
.salatbar__more .ic { width: 16px; height: 16px; }
@media (max-width: 1000px) { .salatbar__more { display: none; } .salatbar__list { justify-content: flex-end; } }
@media (max-width: 800px) {
  .salatbar__in { flex-direction: column; align-items: stretch; gap: 8px; padding-block: 8px 10px; }
  .salatbar__who { justify-content: space-between; }
  .salatbar__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .salatbar__list li { flex-direction: column; gap: 0; padding: 5px 2px; border-radius: 10px; font-size: 11.5px; text-align: center; justify-content: center; }
  .salatbar__list time { font-size: 13px; }
}
@media (max-width: 460px) { .salatbar__nl, .salatbar__next small { display: none; } }

/* ---------- Infinite scroll artikel ---------- */
.artfeed__item { margin-top: 44px; padding-top: 30px; border-top: 2px dashed var(--line-2); }
.artfeed .feed__status { flex-wrap: wrap; gap: 10px; }
