/* Masjid Al Muhajirin — design system
   Layout: limestone page, deep jade bands for the hero & footer, a mihrab arch as the signature shape,
   a khatam (8-point star) lattice in brass as the only ornament. */
:root {
  --paper: #F4F5F0;
  --paper-2: #EAECE4;
  --card: #FBFBF8;
  --ink: #18241F;
  --muted: #59655F;
  --line: #D8DCD2;
  --jade: #1E4A42;
  --jade-deep: #12312B;
  --on-jade: #EFEDE3;
  --on-jade-muted: #B7C4BD;
  --brass: #A47B3A;
  --brass-soft: #E9DCC3;
  --accent-ink: #1E4A42;

  --f-display: "Marcellus", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-arab: "Amiri", "Traditional Arabic", "Scheherazade New", serif;

  --step--1: .8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem);
  --step-4: clamp(2.1rem, 1.4rem + 2.8vw, 3.25rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 6px;
  --arch: 999px 999px var(--radius) var(--radius);
  --khatam: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2280%22%20height%3D%2280%22%20viewBox%3D%220%200%2080%2080%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.1%22%3E%3Cpath%20d%3D%22M20%2020h40v40H20z%22/%3E%3Cpath%20d%3D%22M40%2011.7%2068.3%2040%2040%2068.3%2011.7%2040z%22/%3E%3Cpath%20d%3D%22M0%2040h11.7M68.3%2040H80M40%200v11.7M40%2068.3V80M0%200l20%2020M80%200%2060%2020M0%2080l20-20M80%2080%2060%2060%22/%3E%3Ccircle%20cx%3D%2240%22%20cy%3D%2240%22%20r%3D%226%22/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E1614; --paper-2: #141E1B; --card: #17221F; --ink: #E6E9E2; --muted: #9DA8A2; --line: #27342F;
    --jade: #163A33; --jade-deep: #0B201C; --on-jade: #EFEDE3; --on-jade-muted: #A9B8B0;
    --brass: #CBA465; --brass-soft: #3A3122; --accent-ink: #CBA465; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E1614; --paper-2: #141E1B; --card: #17221F; --ink: #E6E9E2; --muted: #9DA8A2; --line: #27342F;
  --jade: #163A33; --jade-deep: #0B201C; --on-jade: #EFEDE3; --on-jade-muted: #A9B8B0;
  --brass: #CBA465; --brass-soft: #3A3122; --accent-ink: #CBA465; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: var(--step-0); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.2; text-wrap: balance; margin: 0; letter-spacing: .005em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-size: var(--step--1); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.arab { font-family: var(--f-arab); direction: rtl; line-height: 1.9; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Utility bar & header ---------- */
.topbar { background: var(--jade-deep); color: var(--on-jade-muted); font-size: var(--step--1); }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; justify-content: space-between; padding-block: .45rem; }
.topbar b { color: var(--on-jade); font-weight: 600; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.site-header .nav-toggle { flex: none; }
/* The logo is exactly as tall as the title block (title line + place line). */
.brand { --t: 1.375rem; --p: .6875rem; display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-logo { flex: none; display: flex; }
.brand-logo .brand-mark { display: block; height: calc(var(--t) * 1.15); width: auto; max-width: 180px; color: var(--accent-ink); object-fit: contain; }
.brand.has-place .brand-logo .brand-mark { height: calc(var(--t) * 1.15 + .1rem + var(--p) * 1.15); }
.brand-logo svg.brand-mark { aspect-ratio: 42 / 48; }
.brand-name { display: grid; gap: .1rem; line-height: 1.15; min-width: 0; }
.brand-title, .brand-place { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-title { font-family: var(--f-display); font-size: var(--t); }
.brand-place { font-size: var(--p); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
@media (max-width: 600px) { .brand { --t: 1.1rem; --p: .625rem; } .brand-place { letter-spacing: .1em; } }
@media (max-width: 360px) { .brand { --t: 1rem; } }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .65rem; color: var(--ink); font: inherit; font-size: var(--step--1); font-weight: 600; cursor: pointer; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; gap: .25rem; align-items: center; }
.main-nav a { display: block; padding: .55rem .8rem; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .9375rem; border-radius: var(--radius); }
.main-nav a:hover { color: var(--accent-ink); background: var(--paper-2); }
.main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a, .main-nav .current_page_parent > a, .main-nav a[aria-current="page"] { color: var(--accent-ink); box-shadow: inset 0 -2px 0 var(--brass); border-radius: 0; }
.main-nav li { position: relative; }
.main-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: .4em; height: .4em; margin-left: .45em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-.2em) rotate(45deg); }
.main-nav .sub-menu { position: absolute; top: 100%; right: 0; min-width: 14rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem; box-shadow: 0 12px 30px -12px rgb(0 0 0 / .25); opacity: 0; visibility: hidden; transform: translateY(4px); transition: .15s ease; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { font-size: .9rem; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1rem; display: none; }
  .main-nav.is-open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin-left: .8rem; padding: 0 0 0 .25rem; background: transparent; }
  .main-nav .menu-item-has-children > a::after { display: none; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.25rem; border-radius: var(--radius); font: inherit; font-weight: 600; font-size: .9375rem; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: .15s ease; }
.btn-brass { background: var(--brass); color: #1B140A; }
.btn-brass:hover { background: color-mix(in srgb, var(--brass) 85%, white); color: #1B140A; }
.btn-ghost { border-color: color-mix(in srgb, var(--on-jade) 40%, transparent); color: var(--on-jade); background: transparent; }
.btn-ghost:hover { border-color: var(--on-jade); color: var(--on-jade); }
.btn-line { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-line:hover { border-color: var(--brass); color: var(--ink); }
.link-more { font-weight: 600; font-size: .9375rem; text-decoration: none; color: var(--accent-ink); white-space: nowrap; }
.link-more::after { content: " →"; }

/* ---------- Hero ---------- */
.hero { background: var(--jade); color: var(--on-jade); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--brass); -webkit-mask: var(--khatam) repeat; mask: var(--khatam) repeat; -webkit-mask-size: 80px; mask-size: 80px; opacity: .09; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: end; padding-block: clamp(3rem, 7vw, 5.5rem) 0; }
.hero-text { padding-bottom: clamp(3rem, 6vw, 5rem); display: grid; gap: 1.25rem; min-width: 0; }
.hero .arab { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); color: #D9BC85; text-align: left; }
.hero h1 { font-size: var(--step-4); max-width: 18ch; }
.hero .lede { color: var(--on-jade-muted); font-size: var(--step-1); max-width: 38rem; }
.hero .ayat-ref { font-size: var(--step--1); color: var(--on-jade-muted); letter-spacing: .04em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.mihrab { align-self: end; justify-self: end; width: min(100%, 360px); aspect-ratio: 3 / 4; max-width: 100%; border-radius: var(--arch); border: 1px solid color-mix(in srgb, var(--brass) 55%, transparent); border-bottom: 0; padding: 14px 14px 0; }
.mihrab-inner { height: 100%; border-radius: var(--arch); background: var(--jade-deep); position: relative; overflow: hidden; display: grid; place-items: end center; }
.mihrab-inner::before { content: ""; position: absolute; inset: 0; background: var(--brass); -webkit-mask: var(--khatam) center top / 56px repeat; mask: var(--khatam) center top / 56px repeat; opacity: .35; }
.mihrab-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mihrab-lamp { position: relative; width: 38%; margin-bottom: 18%; color: var(--brass); }

/* ---------- Prayer times ---------- */
.jadwal { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-top: -2.25rem; position: relative; z-index: 2; box-shadow: 0 18px 40px -28px rgb(0 0 0 / .35); }
.jadwal-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.jadwal-head h2 { font-size: var(--step-1); }
.jadwal-head .muted { font-size: var(--step--1); }
.jadwal-next { font-size: .9rem; }
.jadwal-next b { color: var(--brass); font-variant-numeric: tabular-nums; }
.jadwal-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.jadwal-cell { padding: .9rem 1rem 1rem; display: grid; gap: .1rem; border-right: 1px solid var(--line); }
.jadwal-cell:last-child { border-right: 0; }
.jadwal-cell span { font-size: var(--step--1); color: var(--muted); font-weight: 500; }
.jadwal-cell span i { font-style: normal; font-family: var(--f-arab); margin-left: .35rem; }
.jadwal-cell strong { font-size: 1.5rem; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.jadwal-cell.is-next { background: var(--jade); color: var(--on-jade); }
.jadwal-cell.is-next span { color: var(--on-jade-muted); }
.jadwal-cell.is-sunrise strong { color: var(--muted); font-size: 1.25rem; }
@media (max-width: 760px) { .jadwal-grid { grid-template-columns: repeat(3, 1fr); } .jadwal-cell:nth-child(3) { border-right: 0; } .jadwal-cell:nth-child(-n+3) { border-bottom: 1px solid var(--line); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section-alt { background: var(--paper-2); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2rem; }
.section-head > div { display: grid; gap: .4rem; max-width: 40rem; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--muted); }

/* Kajian list */
.kajian-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.kajian-row { display: grid; grid-template-columns: 7.5rem 1fr auto; gap: 1.25rem; align-items: center; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.kajian-day { display: grid; line-height: 1.2; }
.kajian-day b { font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; }
.kajian-day span { font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; }
.kajian-main { display: grid; gap: .15rem; min-width: 0; }
.kajian-main h3 { font-family: var(--f-body); font-size: 1.0625rem; font-weight: 600; }
.kajian-main h3 a { color: inherit; text-decoration: none; }
.kajian-main p { color: var(--muted); font-size: .9375rem; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .55rem; border-radius: 3px; background: var(--brass-soft); color: var(--ink); white-space: nowrap; }
.tag-jade { background: var(--jade); color: var(--on-jade); }
@media (max-width: 640px) { .kajian-row { grid-template-columns: 1fr; gap: .4rem; } .kajian-day { grid-auto-flow: column; justify-content: start; gap: .6rem; align-items: baseline; } }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }
.post-card { display: grid; grid-template-rows: auto 1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-thumb { aspect-ratio: 16 / 10; max-width: 100%; background: var(--jade); position: relative; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb.is-empty::before { content: ""; position: absolute; inset: 0; background: var(--brass); -webkit-mask: var(--khatam) center / 64px repeat; mask: var(--khatam) center / 64px repeat; opacity: .3; }
.post-thumb.t2 { background: var(--jade-deep); }
.post-thumb.t3 { background: color-mix(in srgb, var(--brass) 55%, var(--jade-deep)); }
.post-body { padding: 1.15rem 1.25rem 1.35rem; display: grid; gap: .55rem; align-content: start; min-width: 0; }
.post-meta { display: flex; flex-wrap: wrap; gap: .35rem .75rem; align-items: center; font-size: var(--step--1); color: var(--muted); }
.post-body h3 { font-size: 1.3rem; }
.post-body h3 a { color: inherit; text-decoration: none; }
.post-body h3 a:hover { color: var(--brass); }
.post-body p { color: var(--muted); font-size: .9375rem; }

/* Program tiles */
.program-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (max-width: 900px) { .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .program-grid { grid-template-columns: 1fr; } }
.program { padding: 1.75rem 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: .6rem; align-content: start; background: var(--card); }
.program svg { width: 34px; height: 34px; color: var(--brass); }
.program h3 { font-size: 1.35rem; }
.program h3 a { color: inherit; text-decoration: none; }
.program p { color: var(--muted); font-size: .9375rem; }
.program .when { font-size: var(--step--1); font-weight: 600; color: var(--ink); }

/* Infaq band */
.infaq { background: var(--jade-deep); color: var(--on-jade); position: relative; overflow: hidden; }
.infaq::before { content: ""; position: absolute; inset: 0 0 0 55%; background: var(--brass); -webkit-mask: var(--khatam) repeat; mask: var(--khatam) repeat; opacity: .12; }
.infaq .wrap { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 4rem); }
.infaq h2 { font-size: var(--step-3); }
.infaq p { color: var(--on-jade-muted); max-width: 36rem; margin-top: .5rem; }
.rekening { background: color-mix(in srgb, var(--paper) 6%, transparent); border: 1px solid color-mix(in srgb, var(--on-jade) 25%, transparent); border-radius: var(--radius); padding: 1.1rem 1.25rem; display: grid; gap: .25rem; min-width: 0; }
.rekening small { color: var(--on-jade-muted); font-size: var(--step--1); }
.rekening strong { font-size: 1.5rem; font-weight: 500; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.rekening .row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.copy-btn { background: transparent; border: 1px solid color-mix(in srgb, var(--on-jade) 40%, transparent); color: var(--on-jade); font: inherit; font-size: .8rem; font-weight: 600; padding: .3rem .6rem; border-radius: 4px; cursor: pointer; }
.copy-btn:hover { border-color: var(--brass); }
@media (max-width: 760px) { .infaq .wrap { grid-template-columns: 1fr; } }

/* ---------- Page header (inner pages) ---------- */
.page-hero { background: var(--jade); color: var(--on-jade); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: var(--brass); -webkit-mask: var(--khatam) repeat; mask: var(--khatam) repeat; -webkit-mask-size: 80px; mask-size: 80px; opacity: .08; }
.page-hero .wrap { position: relative; padding-block: clamp(2.5rem, 6vw, 4rem); display: grid; gap: .6rem; }
.page-hero h1 { font-size: var(--step-4); }
.page-hero p { color: var(--on-jade-muted); max-width: 40rem; font-size: var(--step-1); }
.crumbs { font-size: var(--step--1); color: var(--on-jade-muted); }
.crumbs a { color: var(--on-jade-muted); }
.subnav { border-bottom: 1px solid var(--line); background: var(--card); }
.subnav .wrap { display: flex; gap: .25rem; overflow-x: auto; }
.subnav a { padding: .9rem 1rem; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9375rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--ink); }
.subnav a.is-active, .subnav a[aria-current="page"] { color: var(--ink); border-color: var(--brass); }

/* ---------- Prose (WordPress content) ---------- */
.prose { max-width: 42rem; display: grid; gap: 1.1rem; }
.prose > * { margin: 0; }
.prose h2 { font-size: var(--step-2); margin-top: 1rem; }
.prose h3 { font-size: var(--step-1); font-family: var(--f-body); font-weight: 600; margin-top: .5rem; }
.prose ul, .prose ol { padding-left: 1.25rem; display: grid; gap: .35rem; }
.prose blockquote { border-left: 2px solid var(--brass); padding-left: 1.25rem; font-family: var(--f-display); font-size: var(--step-1); }
.prose img, .prose figure { border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose .alignwide { max-width: none; }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .layout-side { grid-template-columns: 1fr; } }
.aside-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: .75rem; font-size: .9375rem; }
.aside-box h3 { font-size: var(--step-1); }
.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* Visi misi */
.visi { font-family: var(--f-display); font-size: var(--step-2); line-height: 1.4; max-width: 46rem; }
.misi { counter-reset: m; list-style: none; padding: 0; display: grid; gap: .75rem; }
.misi li { counter-increment: m; display: grid; grid-template-columns: 2rem 1fr; gap: .5rem; }
.misi li::before { content: counter(m); font-family: var(--f-display); color: var(--brass); font-size: 1.25rem; line-height: 1.4; }

/* Sejarah timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 1px solid var(--line); margin-left: .5rem; }
.timeline li { position: relative; padding: 0 0 2rem 2rem; display: grid; gap: .3rem; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .45rem; width: 11px; height: 11px; transform: rotate(45deg); background: var(--paper); border: 1.5px solid var(--brass); }
.timeline .year { font-family: var(--f-display); font-size: 1.6rem; color: var(--brass); line-height: 1.1; font-variant-numeric: tabular-nums; }
.timeline h3 { font-family: var(--f-body); font-weight: 600; font-size: 1.0625rem; }
.timeline p { color: var(--muted); max-width: 40rem; }

/* Struktur pengurus */
.org { display: grid; gap: 2.5rem; }
.org-level { display: grid; gap: 1rem; }
.org-level > h3 { font-size: var(--step--1); font-family: var(--f-body); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.org-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.person { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; display: grid; grid-template-columns: 3rem 1fr; gap: .9rem; align-items: center; }
.person .avatar { width: 3rem; height: 3.4rem; border-radius: 999px 999px 4px 4px; background: var(--paper-2); display: grid; place-items: center; font-family: var(--f-display); color: var(--accent-ink); font-size: 1.1rem; border: 1px solid var(--line); }
.person b { display: block; font-weight: 600; line-height: 1.3; }
.person span { font-size: var(--step--1); color: var(--muted); }
.person.is-lead { background: var(--jade); color: var(--on-jade); border-color: var(--jade); }
.person.is-lead span { color: var(--on-jade-muted); }
.person.is-lead .avatar { background: var(--jade-deep); color: var(--brass); border-color: transparent; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.filters a, .filters button { font: inherit; font-size: .875rem; font-weight: 600; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; cursor: pointer; }
.filters .is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Pagination */
.pagination, .nav-links { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 2.5rem; }
.page-numbers { padding: .45rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-variant-numeric: tabular-nums; }
.page-numbers.current { background: var(--jade); color: var(--on-jade); border-color: var(--jade); }

/* ---------- Footer ---------- */
.site-footer { background: var(--jade-deep); color: var(--on-jade-muted); font-size: .9375rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-block: 3.5rem 2rem; }
.site-footer h4 { font-family: var(--f-body); font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); font-weight: 600; margin-bottom: .9rem; }
.site-footer a { color: var(--on-jade); text-decoration: none; }
.site-footer a:hover { color: var(--brass); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer .brand { color: var(--on-jade); margin-bottom: 1rem; }
.site-footer .brand-mark { color: var(--brass); }
.site-footer .brand-place { color: var(--on-jade-muted); }
.footer-bottom { border-top: 1px solid color-mix(in srgb, var(--on-jade) 14%, transparent); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-block: 1.1rem; grid-template-columns: none; font-size: var(--step--1); }
@media (max-width: 800px) { .site-footer .wrap { grid-template-columns: 1fr; } }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .mihrab { justify-self: center; width: min(70%, 260px); }
  .hero-text { padding-bottom: 0; }
}

/* ---------- WordPress specifics ---------- */
a.post-thumb { display: block; }
.prose .post-meta { margin-bottom: .25rem; }
.prose .org, .prose .timeline { max-width: none; }
.prose > .facts { max-width: 28rem; }
.wp-block-image figcaption, .wp-caption-text { font-size: var(--step--1); color: var(--muted); margin-top: .4rem; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
.search-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.search-form input[type="search"] { flex: 1; min-width: 0; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); font: inherit; }
.search-form input[type="submit"] { padding: .7rem 1.1rem; border-radius: var(--radius); border: 0; background: var(--jade); color: var(--on-jade); font: inherit; font-weight: 600; cursor: pointer; }
.comment-list { list-style: none; padding: 0; display: grid; gap: 1rem; }
.comment-form input, .comment-form textarea { width: 100%; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); font: inherit; }
.comment-form .submit { width: auto; background: var(--jade); color: var(--on-jade); border: 0; font-weight: 600; cursor: pointer; padding: .7rem 1.2rem; }

.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.prose:has(> .org) { max-width: none; }

/* ---------- Perkembangan Renovasi ---------- */
.prose:has(.renov-stats) { max-width: none; }
.prose:has(.renov-stats) > p, .prose:has(.renov-stats) > h2, .prose:has(.renov-stats) > h3 { max-width: 42rem; }
.renov-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-block: .5rem 1rem; }
.renov-stat { padding: 1.1rem 1.25rem 1.25rem; display: grid; gap: .35rem; align-content: start; border-right: 1px solid var(--line); min-width: 0; }
.renov-stat:last-child { border-right: 0; }
.renov-stat:first-child { background: var(--jade); color: var(--on-jade); border-radius: var(--radius) 0 0 var(--radius); }
.renov-stat:first-child .renov-label { color: var(--on-jade-muted); }
.renov-stat:first-child strong { font-family: var(--f-display); font-size: 2.6rem; font-weight: 400; line-height: 1; }
.renov-label { font-size: var(--step--1); color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.renov-stat strong { font-size: 1.3rem; font-weight: 600; overflow-wrap: anywhere; }
.renov-sub { font-size: var(--step--1); color: var(--muted); }
.renov-bar { display: block; height: 6px; border-radius: 3px; background: var(--paper-2); overflow: hidden; margin-top: .25rem; }
.renov-stat:first-child .renov-bar { background: color-mix(in srgb, var(--on-jade) 18%, transparent); }
.renov-bar i { display: block; height: 100%; background: var(--brass); border-radius: 3px; }
@media (max-width: 900px) { .renov-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .renov-stat:nth-child(2) { border-right: 0; } .renov-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .renov-stat:first-child { border-radius: var(--radius) 0 0 0; } }
@media (max-width: 480px) { .renov-stats { grid-template-columns: 1fr; } .renov-stat { border-right: 0; border-bottom: 1px solid var(--line); } .renov-stat:last-child { border-bottom: 0; } .renov-stat:first-child { border-radius: var(--radius) var(--radius) 0 0; } }

.status { display: inline-block; vertical-align: middle; margin-left: .5rem; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .5rem; border-radius: 3px; border: 1px solid var(--line); color: var(--muted); }
.status-done { background: var(--jade); border-color: var(--jade); color: var(--on-jade); }
.status-run { background: var(--brass-soft); border-color: var(--brass); color: var(--ink); }
.renov-tahapan li:has(.status-plan) .year { color: var(--muted); }
.renov-tahapan li:has(.status-plan)::before { border-style: dashed; }
.renov-tahapan li:has(.status-done)::before { background: var(--brass); }

.renov-galeri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 760px) { .renov-galeri { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.renov-galeri figure { margin: 0; display: grid; gap: .4rem; min-width: 0; }
.renov-galeri img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.renov-galeri figcaption { font-size: var(--step--1); color: var(--muted); }
.renov-galeri .ph { aspect-ratio: 4 / 3; max-width: 100%; border: 1.5px dashed var(--line); border-radius: var(--radius); background: var(--paper-2); display: grid; place-content: center; justify-items: center; gap: .4rem; color: var(--muted); font-size: var(--step--1); font-weight: 600; }
.renov-galeri .ph svg { width: 32px; height: 32px; color: var(--brass); }

.wp-block-table { margin: 0; overflow-x: auto; }
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.laporan-dana table { min-width: 46rem; font-variant-numeric: tabular-nums; }
.laporan-dana.rekap table { min-width: 0; max-width: 34rem; }
.laporan-dana th { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; border-bottom: 1.5px solid var(--ink); padding: .6rem .6rem; text-align: left; white-space: nowrap; }
.laporan-dana td { padding: .6rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.laporan-dana td:nth-child(2) { white-space: nowrap; }
.laporan-dana .has-text-align-right { text-align: right; white-space: nowrap; }
.laporan-dana tfoot td { border-top: 1.5px solid var(--ink); border-bottom: 0; background: var(--paper-2); }
.laporan-dana tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--paper-2) 45%, transparent); }
.wp-block-table figcaption { font-size: var(--step--1); color: var(--muted); margin-top: .5rem; }
.renov-unduh.is-empty { font-size: var(--step--1); color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--radius); padding: .8rem 1rem; max-width: 42rem; }
.prose > * { min-width: 0; }
.laporan-dana:not(.rekap) table { min-width: 54rem; }
.laporan-dana:not(.rekap) td:nth-child(3) { min-width: 15rem; }
.footer-login a { color: var(--on-jade-muted); text-decoration: underline; text-underline-offset: 3px; }
.footer-login a:hover { color: var(--brass); }
