/*!
 * MASAJID.ID — website masjid untuk jamaah (/jadwal, /donasi) dan Masajid Connect (/connect).
 * Biru malam + emas, judul Amiri, teks Plus Jakarta Sans. Memakai properti logis agar benar di bahasa Arab (RTL).
 */
body.ms { --navy: #0B1F44; --deep: #071634; --royal: #1B4FA8; --gold: #E2B34A; --gold2: #F4D77A; --gold-ink: #7A5410; --ivory: #F5F6FA;
  --card: #FFFFFF; --ink: #131C2B; --ink2: #3B4658; --mute: #5C6779; --rule: #E2E6EF; --ok: #17603F; --danger2: #B3261E;
  margin: 0; background: var(--ivory); color: var(--ink); font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.ms[dir="rtl"], [dir="rtl"] body.ms { font-family: 'Amiri', 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 17.5px; }
/* :where() menjaga kekhususan tetap rendah agar gaya tombol/tautan khusus di bawah selalu menang. */
:where(.ms) a { color: var(--royal); }
:where(.ms) h1, :where(.ms) h2, :where(.ms) h3, :where(.ms) p { margin: 0; }
.ms .tnum { font-variant-numeric: tabular-nums; }
.ms-wrap { width: min(100% - 32px, 860px); margin-inline: auto; }
.ms-skip { position: absolute; inset-inline-start: 12px; top: 10px; z-index: 50; padding: 8px 14px; border-radius: 10px; background: var(--gold); color: var(--navy); font-weight: 800;
  width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ms-skip:focus { width: auto; height: auto; overflow: visible; clip: auto; }

/* ---------- Kepala (sampul) ---------- */
.ms-hero { position: relative; isolation: isolate; color: #fff; background: radial-gradient(120% 130% at 12% -10%, #1C4189 0%, var(--navy) 46%, var(--deep) 100%); padding: 18px 0 112px; overflow: hidden; }
.ms-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url(../img/landing/girih-gold.svg) 0 0 / 150px; opacity: .08; }
.ms-hero.has-cover::before { opacity: 0; }
.ms-hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.ms-hero.has-cover::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 22, 52, .62) 0%, rgba(7, 22, 52, .46) 34%, rgba(7, 22, 52, .92) 100%); }
.ms-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ms-brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 800; font-size: 14px; letter-spacing: .02em; opacity: .92; }
.ms-brand svg, .ms-brand .brand-logo { width: 22px; height: 22px; color: var(--gold2); }
.ms-brand em { font-style: normal; color: var(--gold2); }
.ms-top-actions { display: flex; align-items: center; gap: 8px; }
.ms-langs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); }
.ms-langs a { padding: 3px 9px; border-radius: 999px; color: #E7ECF6; text-decoration: none; font-size: 12px; font-weight: 800; }
.ms-langs a[aria-current="true"] { background: var(--gold); color: var(--navy); }
.ms-ibtn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; }
.ms-ibtn:hover { background: rgba(255, 255, 255, .18); }
.ms-ibtn svg { width: 18px; height: 18px; }
.ms-id { display: flex; gap: 18px; align-items: center; margin-top: 46px; }
.ms-logo { flex: none; width: 76px; height: 76px; border-radius: 22px; background: rgba(255, 255, 255, .96); display: grid; place-items: center; box-shadow: 0 12px 30px rgba(0, 0, 0, .28), 0 0 0 1px rgba(244, 215, 122, .5); overflow: hidden; }
.ms-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.ms-logo svg, .ms-logo .brand-logo { width: 44px; height: 44px; color: var(--navy); }
.ms-id h1 { font-family: 'Amiri', 'Plus Jakarta Sans', serif; font-weight: 700; font-size: clamp(30px, 6.2vw, 46px); line-height: 1.12; letter-spacing: 0; text-wrap: balance; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.ms-tag { margin-top: 6px; color: var(--gold2); font-weight: 700; font-size: clamp(15px, 2.4vw, 18px); text-wrap: balance; }
.ms-addr { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; color: #DDE5F3; font-size: 15px; max-width: 46em; }
.ms-addr svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--gold2); }
.ms-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.ms-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .1); color: #fff; font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; backdrop-filter: blur(6px); transition: transform .16s, background .16s, box-shadow .16s; }
.ms-btn:hover { background: rgba(255, 255, 255, .18); color: #fff; transform: translateY(-1px); }
.ms-btn svg { width: 18px; height: 18px; flex: none; }
.ms-btn.gold { background: linear-gradient(180deg, var(--gold2), var(--gold)); border-color: #C99A2E; color: var(--navy); box-shadow: 0 10px 24px rgba(226, 179, 74, .32); }
.ms-btn.gold:hover { color: var(--navy); background: linear-gradient(180deg, #F8E08F, #E8BB55); }
.ms-btn.on { background: rgba(244, 215, 122, .18); border-color: var(--gold2); color: var(--gold2); }
.ms-btn.navy { background: var(--navy); border-color: var(--navy); color: #fff; backdrop-filter: none; }
.ms-btn.navy:hover { background: #132B5C; }
.ms-btn.line { background: var(--card); border-color: var(--rule); color: var(--navy); backdrop-filter: none; }
.ms-btn.line:hover { background: #F0F3FA; color: var(--navy); }
.ms-btn.sm { min-height: 38px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
.ms :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Kartu waktu sholat ---------- */
.ms-now { position: relative; margin-top: -84px; border-radius: 26px; background: var(--card); box-shadow: 0 26px 60px rgba(11, 31, 68, .16), 0 2px 6px rgba(11, 31, 68, .06); overflow: hidden; }
.ms-now-head { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; padding: 16px 22px 0; font-weight: 700; font-size: 15px; }
.ms-now-head .h { color: var(--gold-ink); }
.ms-next { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px 18px; flex-wrap: wrap; margin: 14px 14px 0; padding: 18px 20px; border-radius: 20px; color: #fff;
  background: linear-gradient(135deg, #14306A 0%, var(--navy) 55%, var(--deep) 100%); position: relative; overflow: hidden; }
.ms-next::after { content: ''; position: absolute; inset-inline-end: -30px; top: -40px; width: 220px; height: 220px; background: url(../img/landing/girih-gold.svg) 0 0 / 110px; opacity: .12; pointer-events: none; }
.ms-next .lbl { display: block; font-size: 14px; font-weight: 700; color: var(--gold2); letter-spacing: .02em; }
.ms-next .big { display: block; font-size: clamp(40px, 11vw, 62px); line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; margin-top: 6px; direction: ltr; unicode-bidi: isolate; }
.ms-next .at { font-size: 16px; font-weight: 700; color: #E3EAF7; }
.ms-next .ram { flex-basis: 100%; font-size: 13.5px; color: #D5DEEE; }
.ms-times { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 14px; }
.ms-time { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px 10px; border-radius: 16px; background: #F3F5FA; border: 1px solid transparent; text-align: center; transition: background .2s, transform .2s; }
.ms-time span { font-size: 12.5px; font-weight: 700; color: var(--mute); }
.ms-time b { font-size: clamp(17px, 4.6vw, 23px); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); direction: ltr; unicode-bidi: isolate; }
.ms-time small { font-size: 11px; color: var(--mute); font-variant-numeric: tabular-nums; }
.ms-time.done { opacity: .55; }
.ms-time.hl { background: linear-gradient(180deg, #FFF6D9, #FCE9AE); border-color: #E7C566; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(226, 179, 74, .28); }
.ms-time.hl span, .ms-time.hl small { color: var(--gold-ink); }
.ms-extras { display: flex; justify-content: center; gap: 6px 20px; flex-wrap: wrap; padding: 0 16px 16px; font-size: 14px; color: var(--ink2); }
.ms-extras b { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; display: inline-block; }
.ms-note { margin: 0 14px 14px; padding: 12px 14px; border-radius: 14px; background: #FFF4E5; border: 1px solid #F1D3A0; color: #6E4A0B; font-size: 14px; }
.ms-note.info { background: #EEF3FC; border-color: #CFDCF3; color: #1F3B73; }

/* ---------- Navigasi bagian ---------- */
.ms-nav { position: sticky; top: 0; z-index: 20; margin-top: 18px; background: rgba(245, 246, 250, .9); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.ms-nav.stuck { border-bottom-color: var(--rule); box-shadow: 0 6px 18px rgba(11, 31, 68, .06); }
.ms-nav-in { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ms-nav-in::-webkit-scrollbar { display: none; }
.ms-nav a { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--rule); color: var(--ink2); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ms-nav a:hover { border-color: #C9D3E6; color: var(--navy); }
.ms-nav a.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Bagian ---------- */
.ms-main { display: flex; flex-direction: column; gap: 18px; padding: 18px 0 8px; }
.ms-card { background: var(--card); border: 1px solid var(--rule); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 70px; }
.ms-card > header { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.ms-card h2 { text-align: start; font-family: 'Amiri', 'Plus Jakarta Sans', serif; font-weight: 700; font-size: 25px; line-height: 1.2; color: var(--navy); position: relative; padding-inline-start: 16px; }
.ms-card h2::before { content: ''; position: absolute; inset-inline-start: 0; top: .32em; width: 5px; height: .78em; border-radius: 3px; background: linear-gradient(180deg, var(--gold2), var(--gold)); }
.ms-sub { color: var(--mute); font-size: 14px; }
.ms-about p + p { margin-top: 10px; }
.ms-about { color: var(--ink2); font-size: 16.5px; line-height: 1.7; }
.ms-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.ms-chips li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: #F3F5FA; border: 1px solid var(--rule); font-size: 14px; font-weight: 600; color: var(--ink2); }
.ms-chips li::before { content: ''; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--gold); }

.ms-ann { display: flex; flex-direction: column; gap: 10px; }
.ms-ann > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: 16px; background: #F3F6FC; border: 1px solid #D9E2F2; }
.ms-ann .lv { align-self: start; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: #DCE7FA; color: #1F3B73; white-space: nowrap; }
.ms-ann .penting { background: #FFF6E3; border-color: #F0D9A6; }
.ms-ann .penting .lv { background: #FBE3A8; color: #6E4A0B; }
.ms-ann .darurat { background: #FDECEA; border-color: #F3C2BC; }
.ms-ann .darurat .lv { background: var(--danger2); color: #fff; }
.ms-ann p { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.ms-ann small { display: block; margin-top: 3px; color: var(--mute); font-size: 13px; }

.ms-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ms-people div { padding: 12px 14px; border-radius: 16px; background: #F3F5FA; }
.ms-people small { display: block; font-size: 12.5px; font-weight: 700; color: var(--gold-ink); letter-spacing: .02em; }
.ms-people b { display: block; font-size: 16px; overflow-wrap: anywhere; }

.ms-list { display: flex; flex-direction: column; }
.ms-list > div { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 14px; padding: 13px 0; border-top: 1px solid var(--rule); }
.ms-list > div:first-child { border-top: 0; padding-top: 2px; }
.ms-when { align-self: start; text-align: center; border-radius: 14px; padding: 8px 4px; background: var(--navy); color: #fff; font-weight: 800; font-size: 14.5px; line-height: 1.25; }
.ms-when small { display: block; font-size: 11.5px; font-weight: 700; color: var(--gold2); letter-spacing: .04em; text-transform: uppercase; }
.ms-what b { display: block; font-size: 16.5px; }
.ms-what span { display: block; font-size: 14.5px; color: var(--ink2); }
.ms-what .rec { color: var(--mute); font-size: 13px; }

.ms-camp { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; border: 1px solid var(--rule); background: linear-gradient(180deg, #FFFFFF, #FAFBFE); }
.ms-camp h3 { font-size: 18px; font-weight: 800; color: var(--ink); }
.ms-camp .desc { color: var(--ink2); font-size: 15px; }
.ms-bar { height: 10px; border-radius: 999px; background: #E8ECF4; overflow: hidden; }
.ms-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.ms-raise { display: flex; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; font-size: 14.5px; color: var(--ink2); }
.ms-raise b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ms-pay { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 14px; border-radius: 16px; background: #F3F5FA; }
.ms-acct small { display: block; font-size: 12.5px; font-weight: 700; color: var(--mute); }
.ms-acct .no { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; direction: ltr; unicode-bidi: isolate; }
.ms-acct .holder { font-size: 14.5px; color: var(--ink2); }
.ms-copy { padding: 5px 12px; border-radius: 10px; border: 1px solid #C9D3E6; background: #fff; color: var(--navy); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; letter-spacing: 0; }
.ms-copy.ok { border-color: #9CCFB3; color: var(--ok); background: #EDF8F1; }
.ms-qris { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ms-qris button { padding: 6px; border-radius: 14px; border: 1px solid var(--rule); background: #fff; cursor: zoom-in; line-height: 0; }
.ms-qris img { width: 132px; height: 132px; object-fit: contain; border-radius: 8px; }
.ms-qris span { font-size: 12px; font-weight: 700; color: var(--mute); }
.ms-camp-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 520px) { .ms-pay { grid-template-columns: minmax(0, 1fr); } .ms-qris { align-items: flex-start; } }

.ms-money { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ms-money div { padding: 12px 14px; border-radius: 16px; background: #F3F5FA; }
.ms-money small { display: block; font-size: 12.5px; font-weight: 700; color: var(--mute); }
.ms-money b { font-size: 17px; font-variant-numeric: tabular-nums; }
.ms-money .in b { color: var(--ok); }
.ms-money .out b { color: var(--danger2); }
@media (max-width: 640px) { .ms-money { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ms-details summary { cursor: pointer; font-weight: 800; color: var(--royal); font-size: 14.5px; }
.ms-rows { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14.5px; }
.ms-rows td { padding: 7px 0; border-top: 1px solid var(--rule); }
.ms-rows td:last-child { text-align: end; font-variant-numeric: tabular-nums; font-weight: 700; }
.ms-rows .plus { color: var(--ok); }
.ms-rows .minus { color: var(--danger2); }

.ms-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ms-gal button { padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #E8ECF4; cursor: zoom-in; line-height: 0; aspect-ratio: 4 / 3; }
.ms-gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.ms-gal button:hover img { transform: scale(1.05); }
@media (max-width: 480px) { .ms-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ms-month-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ms-tablewrap { overflow-x: auto; margin-inline: -22px; padding-inline: 22px; }
.ms-month { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.ms-month th { position: sticky; top: 0; padding: 9px 5px; font-size: 12px; font-weight: 800; color: var(--mute); background: #F3F5FA; text-align: center; white-space: nowrap; }
.ms-month th:first-child { border-start-start-radius: 12px; border-end-start-radius: 12px; text-align: start; padding-inline-start: 12px; }
.ms-month th:last-child { border-start-end-radius: 12px; border-end-end-radius: 12px; }
.ms-month td { padding: 8px 5px; text-align: center; border-top: 1px solid var(--rule); }
.ms-month td:first-child { text-align: start; padding-inline-start: 12px; white-space: nowrap; font-weight: 700; }
.ms-month .hd { display: block; font-size: 11px; font-weight: 500; color: var(--mute); }
.ms-month tr.fri td:first-child { color: var(--gold-ink); }
.ms-month tr.today td { background: #FFF4CF; font-weight: 800; }
.ms-month tr.today td:first-child { box-shadow: inset 4px 0 0 var(--gold); }
[dir="rtl"] .ms-month tr.today td:first-child { box-shadow: inset -4px 0 0 var(--gold); }

.ms-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.ms-contact a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: center; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--rule); background: #fff; text-decoration: none; color: var(--ink); transition: border-color .16s, transform .16s, box-shadow .16s; }
.ms-contact a:hover { border-color: #C9D3E6; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(11, 31, 68, .08); }
.ms-contact .ic { grid-row: span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--navy); color: var(--gold2); }
.ms-contact .ic svg { width: 20px; height: 20px; }
.ms-contact small { font-size: 12.5px; font-weight: 700; color: var(--mute); }
.ms-contact b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; unicode-bidi: isolate; text-align: start; }
.ms-place { color: var(--ink2); font-size: 15px; }

.ms-empty { padding: 26px 18px; text-align: center; color: var(--mute); border: 1px dashed #CBD4E4; border-radius: 18px; background: #FAFBFE; }

.ms-foot { padding: 26px 0 44px; text-align: center; color: var(--mute); font-size: 13.5px; display: flex; flex-direction: column; gap: 6px; }
.ms-foot a { color: var(--royal); font-weight: 700; }
.ms-powered { display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin-top: 8px; font-weight: 700; color: var(--ink2); }
.ms-powered svg, .ms-powered .brand-logo { width: 18px; height: 18px; color: var(--gold-ink); }

/* ---------- Lightbox (galeri, QRIS) ---------- */
.ms-lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1100px); max-height: 94vh; }
.ms-lightbox::backdrop { background: rgba(7, 22, 52, .88); backdrop-filter: blur(4px); }
.ms-lightbox img { display: block; max-width: 100%; max-height: 82vh; margin: 0 auto; border-radius: 16px; background: #fff; }
.ms-lightbox .bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; color: #fff; font-weight: 700; }
.ms-lightbox .bar span { font-variant-numeric: tabular-nums; }
.ms-lightbox .bar div { display: flex; gap: 8px; }

.ms-toast { position: fixed; inset-inline: 0; bottom: 22px; z-index: 60; display: flex; justify-content: center; pointer-events: none; }
.ms-toast span { padding: 10px 18px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; font-size: 14.5px; box-shadow: 0 14px 34px rgba(11, 31, 68, .3); opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.ms-toast span.show { opacity: 1; transform: none; }

/* ---------- Halaman donasi ---------- */
.ms-hero.compact { padding-bottom: 34px; }
.ms-hero.compact .ms-id { margin-top: 30px; }
.ms-back { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: #E3EAF7; font-weight: 700; font-size: 14px; text-decoration: none; }
.ms-back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-back svg { flex: none; }
.ms-back:hover { color: #fff; }
.ms-back svg { width: 16px; height: 16px; transform: scaleX(-1); }
[dir="rtl"] .ms-back svg { transform: none; }
[dir="rtl"] .ms-flip { display: inline-block; transform: scaleX(-1); }
.ms-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.ms-trust div { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--rule); font-size: 14px; color: var(--ink2); }
.ms-trust svg { flex: none; width: 20px; height: 20px; color: var(--gold-ink); margin-top: 1px; }

/* ---------- Masajid Connect ---------- */
.ms-hero.mc-hero { padding-bottom: 44px; }
.mc-hero h1 { font-family: 'Amiri', 'Plus Jakarta Sans', serif; font-size: clamp(34px, 7vw, 54px); line-height: 1.08; margin-top: 34px; text-wrap: balance; }
.mc-hero h1 em { font-style: normal; color: var(--gold2); }
.mc-hero .lead { margin-top: 12px; max-width: 40em; color: #DDE5F3; font-size: clamp(16px, 2.4vw, 18.5px); }
.mc-search { position: relative; margin-top: 24px; max-width: 620px; }
.mc-search input { width: 100%; height: 58px; padding-inline: 52px 18px; border-radius: 18px; border: 1px solid rgba(244, 215, 122, .55); background: rgba(255, 255, 255, .97); color: var(--ink); font: inherit; font-size: 17px; box-shadow: 0 18px 44px rgba(0, 0, 0, .25); }
.mc-search svg { position: absolute; inset-inline-start: 18px; top: 19px; width: 20px; height: 20px; color: var(--mute); pointer-events: none; }
.mc-results { display: flex; flex-direction: column; gap: 10px; }
.mc-mosque { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--rule); }
.mc-mosque .av { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--navy); color: var(--gold2); font-family: 'Amiri', serif; font-weight: 700; font-size: 22px; overflow: hidden; }
.mc-mosque .av img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 5px; }
.mc-mosque b { display: block; font-size: 16.5px; overflow-wrap: anywhere; }
.mc-mosque b a { color: inherit; text-decoration: none; }
.mc-mosque b a:hover { text-decoration: underline; }
.mc-mosque small { display: block; color: var(--mute); font-size: 13.5px; }
.mc-tag { display: inline-block; margin-inline-start: 6px; padding: 1px 8px; border-radius: 999px; background: #FBE3A8; color: #6E4A0B; font-size: 11.5px; font-weight: 800; vertical-align: 2px; }
.mc-feed { display: flex; flex-direction: column; gap: 14px; }
.mc-item { border-radius: 22px; background: var(--card); border: 1px solid var(--rule); overflow: hidden; }
.mc-item-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 18px; background: linear-gradient(135deg, #14306A, var(--navy) 60%, var(--deep)); color: #fff; }
.mc-item-head .av { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .96); color: var(--navy); font-family: 'Amiri', serif; font-weight: 700; font-size: 21px; overflow: hidden; }
.mc-item-head .av img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.mc-item-head b { display: block; font-size: 17px; }
.mc-item-head b a { color: #fff; text-decoration: none; }
.mc-item-head small { color: #CFD9EC; font-size: 13px; }
.mc-item-head .nx { text-align: end; }
.mc-item-head .nx small { display: block; color: var(--gold2); font-weight: 700; }
.mc-item-head .nx span { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; display: inline-block; }
.mc-item-times { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 12px 14px 4px; }
.mc-item-times div { text-align: center; padding: 8px 2px; border-radius: 12px; background: #F3F5FA; }
.mc-item-times small { display: block; font-size: 11.5px; font-weight: 700; color: var(--mute); }
.mc-item-times b { font-size: 15.5px; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; display: inline-block; }
.mc-item-times .hl { background: #FCE9AE; }
.mc-item-body { display: flex; flex-direction: column; gap: 10px; padding: 12px 18px 16px; }
.mc-line { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; font-size: 14.5px; color: var(--ink2); }
.mc-line .k { padding: 2px 9px; border-radius: 999px; background: #DCE7FA; color: #1F3B73; font-size: 11.5px; font-weight: 800; align-self: start; white-space: nowrap; }
.mc-line .k.penting { background: #FBE3A8; color: #6E4A0B; }
.mc-line .k.darurat { background: var(--danger2); color: #fff; }
.mc-line .k.agenda { background: #E3F3EA; color: var(--ok); }
.mc-item-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mc-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; counter-reset: s; list-style: none; margin: 0; padding: 0; }
.mc-steps li { counter-increment: s; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--rule); font-size: 14.5px; color: var(--ink2); }
.mc-steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; margin-bottom: 10px; background: var(--navy); color: var(--gold2); font-weight: 800; }
.mc-steps b { display: block; color: var(--ink); font-size: 15.5px; }
.mc-h { font-family: 'Amiri', 'Plus Jakarta Sans', serif; font-size: 26px; color: var(--navy); margin-top: 8px; }
.mc-status { color: var(--mute); font-size: 14.5px; }

@media (max-width: 560px) {
  .ms-hero { padding-bottom: 104px; }
  .ms-id { gap: 14px; margin-top: 30px; align-items: flex-start; }
  .ms-logo { width: 60px; height: 60px; border-radius: 18px; }
  .ms-card { padding: 18px 16px; border-radius: 20px; }
  .ms-tablewrap { margin-inline: -16px; padding-inline: 16px; }
  .ms-times { gap: 5px; padding: 12px 10px; }
  .ms-time { padding: 10px 2px 8px; border-radius: 13px; }
  .ms-time span { font-size: 11.5px; }
  .ms-next { margin: 12px 10px 0; padding: 16px; }
  .ms-actions .ms-btn { flex: 1 1 calc(50% - 5px); padding: 0 10px; }
  .mc-item-head { grid-template-columns: auto minmax(0, 1fr); }
  .mc-item-head .nx { grid-column: 1 / -1; text-align: start; display: flex; gap: 10px; align-items: baseline; }
  .mc-mosque { grid-template-columns: auto minmax(0, 1fr); }
  .mc-mosque .ms-btn { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .ms * { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .ms-hero { background: none !important; color: #000; padding: 0 0 12px; }
  .ms-hero::before, .ms-hero::after, .ms-hero-img, .ms-top, .ms-actions, .ms-nav, .ms-noprint, .ms-toast, .ms-foot .ms-powered { display: none !important; }
  .ms-id h1 { text-shadow: none; color: #000; }
  .ms-tag, .ms-addr { color: #333; }
  .ms-now { margin-top: 0; box-shadow: none; border: 1px solid #ccc; }
  .ms-next { background: none; color: #000; border: 1px solid #ccc; }
  .ms-next .lbl, .ms-next .at { color: #000; }
  .ms-card { border-color: #ccc; break-inside: avoid; }
  body.ms { background: #fff; }
}
