:root {
    --color-steel: #173f32;
    --color-concrete: #5d685f;
    --color-cement: #e8e0d2;
    --color-brick: #795033;
    --color-formwork: #5c3b27;
    --color-lime: #f7f4e9;
    --color-safety: #c49a4a;
    --color-white: #fffdf8;
    --color-danger: #9e2f26;
    --radius-sm: 0.35rem;
    --radius-md: 0.7rem;
    --shadow-line: 0 1px 0 rgba(32, 48, 56, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--color-lime); color: var(--color-steel); font-family: "Plus Jakarta Sans", system-ui, sans-serif; line-height: 1.6; }
h1, h2, h3 { margin: 0; font-family: "Roboto Slab", Georgia, serif; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 8vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 5vw, 2.2rem); }
p { margin: 0 0 1rem; }
a { color: inherit; }
code { background: var(--color-cement); border-radius: 0.2rem; padding: 0.1rem 0.3rem; font-size: 0.9em; }

.container { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.skip-link { position: absolute; left: 0.75rem; top: -4rem; padding: 0.6rem 0.8rem; background: var(--color-steel); color: var(--color-white); z-index: 10; }
.skip-link:focus { top: 0.75rem; }

.site-header { position: relative; z-index: 5; border-bottom: 3px solid var(--color-safety); background: rgba(23, 63, 50, 0.98); color: var(--color-lime); box-shadow: 0 8px 24px rgba(30,47,37,.12); }
.site-header__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; font-weight: 700; }
.brand__mark { display: grid; place-items: center; width: 2.25rem; height: 2.45rem; border: 1px solid rgba(255,255,255,.35); border-radius: 1.2rem 1.2rem .3rem .3rem; background: var(--color-safety); color: var(--color-steel); font-family: "Roboto Slab", serif; font-size: 0.7rem; }
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.65rem 1rem; font-size: 0.85rem; font-weight: 600; }
nav a { text-decoration: none; }
nav a:hover, nav a:focus-visible { color: #ead8aa; }

.page-content { padding-block: 2rem 4rem; }
.hero-block { display: grid; gap: 2rem; align-items: center; padding-block: 2rem 3rem; }
.hero-copy { max-width: 38rem; }
.eyebrow { margin-bottom: 0.6rem; color: var(--color-brick); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-lede { max-width: 33rem; margin-top: 1rem; color: var(--color-concrete); font-size: 1.05rem; }

.button-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.7rem; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 0.55rem 0.9rem; font: inherit; font-size: 0.88rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(214, 138, 31, 0.55); outline-offset: 2px; }
.button--primary { background: var(--color-safety); color: var(--color-steel); }
.button--primary:hover { background: #bc7415; }
.button--secondary { border-color: var(--color-steel); background: transparent; color: var(--color-steel); }
.button--secondary:hover { background: var(--color-steel); color: var(--color-white); }
.button--full { width: 100%; }
.button--small { min-height: 2.1rem; padding: 0.35rem 0.65rem; font-size: 0.78rem; }
.button--ghost { border-color: rgba(255,255,255,0.3); background: transparent; color: inherit; }

.progress-visual { min-height: 15rem; border: 1px solid var(--color-concrete); background: linear-gradient(145deg, var(--color-cement), var(--color-lime)); padding: 1.25rem; display: flex; flex-direction: column; justify-content: flex-end; }
.progress-visual__silhouette { height: 8rem; border-bottom: 0.55rem solid var(--color-steel); border-left: 0.55rem solid var(--color-steel); border-right: 0.55rem solid var(--color-steel); background: repeating-linear-gradient(90deg, transparent 0 1.7rem, rgba(169, 71, 47, 0.42) 1.7rem 1.9rem); clip-path: polygon(0 35%, 12% 35%, 12% 0, 28% 0, 28% 35%, 45% 35%, 45% 17%, 64% 17%, 64% 35%, 100% 35%, 100% 100%, 0 100%); }
.progress-visual__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-top: 1px solid var(--color-concrete); margin-top: 1rem; padding-top: 0.7rem; }
.progress-visual__meta strong { font-family: "Roboto Slab", serif; font-size: 1.45rem; }
.progress-visual__meta span { color: var(--color-concrete); font-size: 0.8rem; }

.notice { border-left: 0.3rem solid; border-radius: var(--radius-sm); padding: 0.8rem 1rem; margin: 0 0 1.25rem; font-size: 0.88rem; }
.notice--warning { border-color: var(--color-safety); background: #fff4dc; }
.notice--error { border-color: var(--color-danger); background: #fce9e7; }
.notice--success { border-color: #2e6b51; background: #e4f2e9; }

.section-block { border-top: 1px solid var(--color-cement); padding-block: 2.5rem; }
.section-heading { margin-bottom: 1.3rem; }
.section-heading p { margin-bottom: 0.3rem; }
.stat-grid { display: grid; gap: 0.8rem; }
.stat-block { border-top: 0.25rem solid var(--color-steel); background: var(--color-white); padding: 1rem; }
.stat-block:nth-child(2) { border-top-color: var(--color-brick); }
.stat-block:nth-child(3) { border-top-color: var(--color-safety); }
.stat-block span, .stat-block small { display: block; color: var(--color-concrete); font-size: 0.78rem; }
.stat-block strong { display: block; margin: 0.3rem 0; font-family: "Roboto Slab", serif; font-size: 1.65rem; font-variant-numeric: tabular-nums; }
.split-block { display: grid; gap: 1.4rem; }

.empty-state { border: 1px dashed var(--color-concrete); background: rgba(255,255,255,0.45); padding: 1rem; }
.empty-state strong, .empty-state span { display: block; }
.empty-state span { margin-top: 0.25rem; color: var(--color-concrete); font-size: 0.88rem; }

.site-footer { border-top: 1px solid var(--color-cement); padding-block: 1.5rem; color: var(--color-concrete); font-size: 0.8rem; }

.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 1rem; background: var(--color-steel); }
.auth-main { width: min(100%, 28rem); }
.auth-brand { display: block; margin-bottom: 1rem; color: var(--color-lime); font-family: "Roboto Slab", serif; text-decoration: none; }
.auth-card { background: var(--color-lime); border-top: 0.4rem solid var(--color-safety); padding: 1.5rem; }
.auth-card h1 { font-size: 2rem; }
.muted { color: var(--color-concrete); }
.form-stack { display: grid; gap: 0.55rem; }
.form-stack label { margin-top: 0.55rem; font-size: 0.84rem; font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid var(--color-concrete); border-radius: var(--radius-sm); background: var(--color-white); color: var(--color-steel); padding: 0.65rem 0.7rem; font: inherit; }
.auth-footnote { margin-top: 1.3rem; color: var(--color-concrete); font-size: 0.78rem; }
.auth-footnote a { font-weight: 700; }

.error-state { max-width: 34rem; padding-block: 4rem; }
.error-state p:not(.eyebrow) { color: var(--color-concrete); }
.error-debug { max-width: 56rem; margin: 2rem auto; padding: 1rem; background: #fdf3f3; border: 1px solid #f3c2c2; border-radius: .5rem; font-family: ui-monospace, monospace; font-size: .85rem; }
.error-debug pre { margin: .5rem 0 0; white-space: pre-wrap; word-break: break-word; }

.contact-grid { display: grid; gap: 1.2rem; margin-bottom: 1.2rem; }
@media (min-width: 50rem) { .contact-grid { grid-template-columns: 22rem 1fr; } }
.contact-info__item { padding-block: 0.55rem; border-top: 1px solid #e2e7e3; }
.contact-info__item:first-of-type { border-top: 0; padding-top: 0; }
.contact-info__item .eyebrow { margin: 0 0 .25rem; }
.contact-info__item p { margin: 0 0 .25rem; }
.contact-info__item small { display: block; color: var(--color-concrete); margin-top: .25rem; }
.contact-map__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border: 1px solid #cdd5d0; margin-bottom: .6rem; }
.contact-map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.report-heading { max-width: 45rem; margin-bottom: 1.5rem; }
.report-heading > p:last-child { color: var(--color-concrete); }
.report-filters { display: grid; gap: 0.7rem; border-block: 1px solid var(--color-cement); padding-block: 1rem; margin-bottom: 1.2rem; }
.report-filters label { display: grid; gap: 0.25rem; color: var(--color-concrete); font-size: 0.76rem; font-weight: 700; }
.report-filters .button { align-self: end; }
.report-summary { display: grid; gap: 0.7rem; margin-bottom: 1.5rem; }
.report-summary > div { border-left: 0.25rem solid var(--color-steel); background: var(--color-white); padding: 0.8rem 1rem; }
.report-summary .summary-in { border-left-color: #2e6b51; }
.report-summary .summary-out { border-left-color: var(--color-brick); }
.report-summary .summary-closing { border-left-color: #2e6b51; background: #eef7f1; }
.report-summary span { display: block; color: var(--color-concrete); font-size: 0.76rem; }
.report-summary strong { display: block; font-family: "Roboto Slab", serif; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.report-summary .summary-closing strong { color: #245c43; font-size: 1.85rem; font-weight: 800; }

.chart-grid { display: grid; gap: 1rem; margin-bottom: 1.7rem; }
.chart-panel { border: 1px solid var(--color-cement); background: var(--color-white); padding: 1rem; }
.chart-panel h2, .report-table h2 { margin-bottom: 0.8rem; font-size: 1.25rem; }

.report-table { margin-bottom: 1.7rem; }
.report-table--midtrans { border-left: .3rem solid #2e6b51; padding-left: 1rem; }
.report-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: .35rem; }
.report-section-heading .eyebrow { margin-bottom: .25rem; }
.report-section-heading h2 { margin-bottom: 0; }
.report-section-total { color: #245c43; font-family: "Roboto Slab", serif; font-size: 1.3rem; white-space: nowrap; }
.report-section-note { margin: 0 0 .8rem; font-size: .85rem; }
.report-table--midtrans code { font-size: .76rem; white-space: nowrap; }

.payment-status { display: inline-flex; border-radius: 999px; padding: .2rem .5rem; background: #edf0ed; color: var(--color-concrete); font-size: .72rem; font-weight: 700; white-space: nowrap; }
.payment-status--settlement, .payment-status--capture { background: #e4f2e9; color: #245c43; }
.payment-status--refund, .payment-status--partial_refund, .payment-status--chargeback, .payment-status--partial_chargeback { background: #fce9e7; color: #9b3429; }

.count { color: var(--color-concrete); font-family: "Plus Jakarta Sans", sans-serif; font-size: 0.75rem; font-weight: 500; }
.table-scroll { overflow-x: auto; background: var(--color-white); border: 1px solid var(--color-cement); }
table { width: 100%; min-width: 42rem; border-collapse: collapse; font-size: 0.82rem; }
th, td { border-bottom: 1px solid var(--color-cement); padding: 0.7rem; text-align: left; vertical-align: top; }
th { background: #edf0ed; color: var(--color-concrete); font-size: 0.72rem; font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: #f7f8f7; }
.amount-in { color: #237346; font-weight: 700; }
.amount-out { color: #b23a3a; font-weight: 700; }
.numeric { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.pagination { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; border-top: 1px solid var(--color-cement); padding-top: 1rem; font-size: 0.82rem; }
.pagination a { font-weight: 700; }

.stage-list { display: grid; gap: 1.2rem; }
.stage-card { border-top: .3rem solid var(--color-steel); background: var(--color-white); padding: 1rem; }
.stage-card__head { display:flex;justify-content:space-between;gap:1rem;align-items:start; }
.stage-card__head h2 { font-size:1.35rem; }
.stage-card__head>strong { font:700 1.5rem "Roboto Slab",serif; }
.stage-progress { height:.55rem; background:var(--color-cement); margin:.6rem 0 1rem; }
.stage-progress span { display:block; height:100%; background:var(--color-safety); }

.gallery-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:.7rem; } 
@media(min-width: 46rem) { .gallery-grid { grid-template-columns:repeat(4,1fr); gap:1rem; } }
.gallery-grid figure { margin:0; background:var(--color-cement); }
.gallery-grid img { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; }
.gallery-grid figcaption { padding:.45rem; font-size:.72rem; }
.admin-gallery { grid-template-columns:repeat(3,1fr); }

@media (min-width: 46rem) { 
    .report-filters { grid-template-columns: repeat(2, 1fr); align-items: end; } 
    .filter-search { grid-column: span 2; } 
    .report-summary { grid-template-columns: repeat(4, 1fr); } 
    .chart-grid { grid-template-columns: 1.5fr 1fr; } 
}

@media (min-width: 46rem) {
    .container { width: min(100% - 3rem, 72rem); }
    .hero-block { grid-template-columns: 1.15fr 0.85fr; padding-block: 4rem 5rem; }
    .stat-grid { grid-template-columns: repeat(3, 1fr); }
    .split-block { grid-template-columns: 0.8fr 1.2fr; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

.gallery-grid img { cursor:zoom-in; }
.gallery-grid a { display:grid; place-items:center; min-height:8rem; padding:1rem; color:var(--color-brick); font-weight:700; }
.lightbox { position:fixed; inset:0; z-index:20; display:grid; place-items:center; padding:1rem; background:rgba(32,48,56,.92); }
.lightbox[hidden] { display:none; }
.lightbox img { max-width:min(96vw,1000px); max-height:88vh; object-fit:contain; } 
@media(min-width: 46rem) { .lightbox img { max-width: 60vw; max-height: 75vh; } }
.lightbox button { position:absolute; top:1rem; right:1rem; border:1px solid #fff; background:transparent; color:#fff; padding:.5rem 1rem; font-size:1.2rem; }

.post-grid, .event-list, .donation-methods { display:grid; gap:1rem; }
.post-card { border-top:.3rem solid var(--color-steel); background:var(--color-white); padding:1rem; }
.post-card h2 { font-size:1.35rem; }
.post-card h2 a { text-decoration:none; }
.post-card h2 a:hover { color:var(--color-brick); }
.post-card small, .event-row small, .article-meta { color:var(--color-concrete); }

.event-row { display:grid; grid-template-columns:4.5rem 1fr; gap:1rem; border-top:1px solid var(--color-cement); padding:1rem 0; }
.event-row time { display:grid; align-content:start; justify-items:center; border-right:1px solid var(--color-cement); }
.event-row time strong { font:700 1.8rem "Roboto Slab",serif; }
.event-row time span { font-size:.72rem; }
.event-row h2 { font-size:1.3rem; }

.article { max-width:48rem; }
.article-content { margin:1.5rem 0; color:#33473d; font-size:1rem; line-height:1.85; overflow-wrap:anywhere; }
.article-content p { margin:0 0 1.15rem; }
.article-content p:last-child { margin-bottom:0; }
.article-content strong { color:var(--color-steel); font-weight:800; }
.article-content ul, .article-content ol { margin:0 0 1.15rem; padding-left:1.45rem; }
.article-content li + li { margin-top:.35rem; }
.article-content br { line-height:1.85; }
.article-content a { color:var(--color-brick); text-decoration:underline; text-underline-offset:.15em; }

.account-row { display:flex; justify-content:space-between; gap:1rem; align-items:center; border-top:1px solid var(--color-cement); padding:1rem 0; }
.account-row span, .account-row small { display:block; }
.qris-image { display:block; max-width:100%; width:18rem; aspect-ratio:1; object-fit:contain; border:1px solid var(--color-cement); }
.donation-heading { max-width:43rem; }
.donation-layout { display:grid; gap:1.2rem; align-items:start; margin-top:1rem; }
.donation-main, .donation-sidebar { min-width:0; display:grid; align-content:start; gap:1.2rem; }
.donation-main { max-width:48rem; }
.donation-card { border:1px solid rgba(121,80,51,.16); border-radius:.85rem; background:rgba(255,253,248,.96); padding:1.15rem 1.25rem; box-shadow:0 10px 25px rgba(42,58,46,.06); }
.donation-card h2 { font-size:clamp(1.25rem, 3vw, 1.7rem); }
.donation-card__intro { margin:.45rem 0 1rem; color:var(--color-concrete); font-size:.86rem; }
.donation-form { max-width:42rem; }
.donation-amount-fieldset { min-width:0; margin:0; border:0; padding:0; }
.donation-amount-fieldset legend { margin-bottom:.55rem; font-size:.84rem; font-weight:700; }
.donation-amount-choices { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.45rem; margin-bottom:.65rem; }
.donation-amount-choice { border:1px solid var(--color-cement); border-radius:.45rem; background:#fff; padding:.55rem .35rem; color:var(--color-steel); font:inherit; font-size:.78rem; font-weight:700; cursor:pointer; }
.donation-amount-choice:hover, .donation-amount-choice.is-selected { border-color:#2e6b51; background:#eef7f1; color:#245c43; }
.donation-amount-fieldset label { display:grid; gap:.25rem; font-size:.8rem; font-weight:700; }
.donation-amount-fieldset small, .donation-form > small { display:block; color:var(--color-concrete); font-size:.72rem; }
.donation-form__identity { margin-top:.15rem; }
.donation-form > .checkbox { display:flex; align-items:flex-start; gap:.6rem; margin:.55rem 0 .2rem; border:1px solid var(--color-cement); border-radius:.45rem; background:#f7f4e9; padding:.65rem .75rem; color:var(--color-steel); font-size:.78rem; font-weight:600; line-height:1.45; cursor:pointer; }
.donation-form > .checkbox input[type="checkbox"] { flex:0 0 auto; width:1.05rem; height:1.05rem; margin:.08rem 0 0; border:1px solid var(--color-concrete); padding:0; accent-color:#2e6b51; cursor:pointer; }
.donation-qris .qris-image { width:15rem; margin:.8rem 0; }
.donation-news-widget { position:sticky; top:1rem; }
.donation-news-widget .sidebar-widget__heading { margin-bottom:.8rem; }
.donation-news-widget .sidebar-news-list { gap:.75rem; }
.donation-news-widget .sidebar-news-item { grid-template-columns:4.75rem minmax(0,1fr); }
.donation-news-widget .sidebar-news-item__thumb { width:4.75rem; height:3.55rem; }
.donation-news-widget .sidebar-news-item h3 { font-size:.82rem; }
.donation-news-widget .sidebar-news-item small { font-size:.65rem; }
.honeypot { position:absolute!important; left:-9999px!important; }
.copy-button { white-space:nowrap; }

.prayer-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:.5rem; }
.prayer-grid div { background:var(--color-white); padding:.7rem; text-align:center; border-top:.2rem solid var(--color-steel); }
.prayer-grid span, .prayer-grid strong { display:block; }
.prayer-grid span { font-size:.72rem; color:var(--color-concrete); }
.prayer-grid strong { font:700 1.1rem "Roboto Slab",serif; }

@media(min-width:46rem) { .post-grid { grid-template-columns:repeat(2,1fr); } .donation-methods { grid-template-columns:1.2fr .8fr; } }
@media(min-width:58rem) { .donation-layout { grid-template-columns:minmax(0,1fr) 20rem; } }
@media(max-width:30rem) { .site-header__inner { align-items:flex-start; flex-direction:column; padding-block:.8rem; } .site-header nav { justify-content:flex-start; } .prayer-grid { grid-template-columns:repeat(3,1fr); } }
@media(max-width:30rem) { .report-section-heading { align-items:flex-start; flex-direction:column; gap:.2rem; } .report-table--midtrans { padding-left:.65rem; } }

/* News presentation: a lead story followed by compact editorial cards. */
.section-heading--row { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.text-link { color: var(--color-brick); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.news-grid { display: grid; gap: 1rem; }
.news-card { min-width: 0; overflow: hidden; border: 1px solid rgba(121,80,51,.16); border-radius: .75rem; background: var(--color-white); box-shadow: 0 10px 24px rgba(42,58,46,.06); }
.news-card__media { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: #dfe5dc; }
.news-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.news-card__media:hover img, .news-card__media:focus-visible img { transform: scale(1.035); }
.news-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #f4ead2; font: 700 1.15rem "Roboto Slab", serif; letter-spacing: .04em; background: radial-gradient(circle at 50% 20%, rgba(196,154,74,.48), transparent 20%), linear-gradient(135deg, #173f32, #2b664e); }
.news-card__body { padding: 1rem 1.1rem 1.1rem; }
.news-card__body .eyebrow { margin-bottom: .45rem; }
.news-card h2, .news-card h3 { font-size: 1.3rem; }
.news-card h2 a, .news-card h3 a { text-decoration: none; }
.news-card h2 a:hover, .news-card h3 a:hover { color: var(--color-brick); }
.news-card__excerpt { margin: .65rem 0; color: var(--color-concrete); font-size: .86rem; }
.news-card__meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.news-card small { color: var(--color-concrete); font-size: .75rem; }
.news-card--event { border-top: .3rem solid var(--color-safety); }

.article--news { max-width: 52rem; margin-inline: auto; }
.news-detail-layout { margin-top: 0; }
.news-detail-layout .article--news { max-width: none; margin-inline: 0; }
.article-kicker { margin-bottom: .65rem; color: var(--color-brick); font-size: .78rem; font-weight: 700; }
.article-kicker a { text-decoration: none; }
.article-meta { margin-top: .75rem; }
.article-hero { overflow: hidden; margin: 1.6rem 0 1.2rem; border-radius: .85rem; background: var(--color-cement); }
.article-hero img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-dek { margin: 1.2rem 0; color: var(--color-concrete); font-size: 1.08rem; font-weight: 500; }
.related-news { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(121,80,51,.16); }

@media (min-width: 46rem) {
    .news-grid--home, .news-grid--archive { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .news-card--lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
    .news-card--lead .news-card__media { aspect-ratio: auto; min-height: 100%; }
    .news-grid--related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 45.99rem) {
    .section-heading--row { align-items: flex-start; flex-direction: column; }
}

/* Public home: warm mosque identity in forest green, cream, and wood brown. */
.public-shell {
    background:
        radial-gradient(circle at 15% 10%, rgba(196,154,74,.08) 0 1px, transparent 2px) 0 0 / 24px 24px,
        var(--color-lime);
}
.public-shell .page-content { padding-top: 1.5rem; }

.hero-block {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 1.4rem;
    background:
        radial-gradient(circle at 5% 0%, rgba(196,154,74,.2), transparent 28%),
        linear-gradient(135deg, #12382c 0%, #1d5944 68%, #2b664e 100%);
    color: var(--color-white);
    padding: 2rem 1.25rem;
    box-shadow: 0 24px 60px rgba(23,63,50,.18);
}
.hero-block::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .2;
    background-image: linear-gradient(30deg, transparent 48%, rgba(255,255,255,.15) 49% 51%, transparent 52%), linear-gradient(-30deg, transparent 48%, rgba(255,255,255,.15) 49% 51%, transparent 52%);
    background-size: 42px 72px;
}
.hero-copy,.mosque-visual { position: relative; z-index: 1; }
.hero-actions { position: relative; z-index: 1; align-self: stretch; display: flex; flex-direction: column; justify-content: center; border: 1px solid rgba(234,216,170,.32); border-radius: 1rem; background: rgba(8,42,31,.32); padding: 1.25rem; }
.hero-actions__label { margin-bottom: .45rem; color: #ead8aa; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero-actions__text { margin-bottom: 1.2rem; color: #e8eee9; font-size: .9rem; }
.hero-actions .button-row { display: grid; gap: .75rem; margin-top: 0; }
.hero-actions .button { width: 100%; }
.hero-copy h1 { max-width: 9em; color: #fffdf6; font-size: clamp(2.35rem, 8vw, 4rem); }
.hero-block .eyebrow { color: #ead8aa; }
.hero-lede { color: #e8eee9; font-size: clamp(1rem, 2.2vw, 1.18rem); }
.hero-values { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.35rem; }
.hero-values span { border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.08); padding: .32rem .65rem; color: #f4ead2; font-size: .72rem; font-weight: 600; }

.hero-block .button--primary { background: #d2a957; color: #173f32; box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.hero-block .button--primary:hover { background: #e0bd73; }
.hero-block .button--secondary { border-color: rgba(255,255,255,.7); color: #fff; }
.hero-block .button--secondary:hover { background: #fffdf8; color: #173f32; }

/* Kartu kampanye KitaBisa: biru cerah yang mudah dikenali dan tetap kontras. */
.kitabisa-banner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    border-radius: .9rem;
    background: linear-gradient(135deg, #00a7d8 0%, #0086c1 100%);
    padding: 1.15rem 1.25rem;
    color: #fff;
    box-shadow: 0 12px 26px rgba(0, 134, 193, .2);
}
.kitabisa-banner__logo,
.kitabisa-sidebar-card__logo { display: grid; place-items: center; border-radius: .55rem; background: #fff; }
.kitabisa-banner__logo { width: 5.7rem; min-height: 4.6rem; padding: .35rem; }
.kitabisa-banner__logo img { display: block; width: 100%; height: auto; }
.kitabisa-banner__copy { min-width: 0; }
.kitabisa-banner__eyebrow { margin: 0 0 .25rem; color: rgba(255,255,255,.85); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.kitabisa-banner h2 { color: #fff; font-size: clamp(1.15rem, 2.5vw, 1.55rem); }
.kitabisa-banner__copy > p:last-child { margin: .35rem 0 0; color: rgba(255,255,255,.9); font-size: .82rem; }
.kitabisa-banner__button,
.kitabisa-sidebar-card__button { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; border-radius: .45rem; background: #fff; padding: .65rem .85rem; color: #0074ad; font-size: .8rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.kitabisa-banner__button:hover,
.kitabisa-sidebar-card__button:hover { background: #e9f8fd; color: #005b89; }

.kitabisa-sidebar-card { border: 0; background: linear-gradient(145deg, #00a7d8, #007fba); color: #fff; box-shadow: 0 14px 28px rgba(0, 127, 186, .2); }
.kitabisa-sidebar-card__logo { width: 8.5rem; margin-bottom: .85rem; padding: .45rem .65rem; }
.kitabisa-sidebar-card__logo img { display: block; width: 100%; height: auto; }
.kitabisa-sidebar-card__eyebrow { margin-bottom: .4rem; color: rgba(255,255,255,.85); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.kitabisa-sidebar-card h2 { color: #fff; font-size: 1.2rem; }
.kitabisa-sidebar-card > p:not(.kitabisa-sidebar-card__eyebrow) { margin: .55rem 0 1rem; color: rgba(255,255,255,.9); font-size: .78rem; }

.mosque-visual { overflow: hidden; min-height: 20rem; border: 1px solid rgba(234,216,170,.48); border-radius: 10rem 10rem 1rem 1rem; background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(0,0,0,.14)); box-shadow: inset 0 0 0 .45rem rgba(255,255,255,.04); }
.mosque-visual__sky { position: relative; height: 16rem; }
.mosque-visual__star { position: absolute; top: 2.3rem; left: 25%; color: #efd58f; font-size: 2rem; text-shadow: 0 0 24px rgba(239,213,143,.75); }
.mosque-visual__building { position: absolute; right: 12%; bottom: 0; left: 12%; display: flex; align-items: end; justify-content: center; gap: 8%; height: 5.8rem; border-bottom: .65rem solid #543822; background: #d8c39a; box-shadow: 0 -10px 26px rgba(8,34,25,.2); }
.mosque-visual__building::before,.mosque-visual__building::after { content: ""; position: absolute; bottom: 0; width: 1rem; height: 6.5rem; background: #795033; }
.mosque-visual__building::before { left: -1rem; }.mosque-visual__building::after { right: -1rem; }
.mosque-visual__building i { width: 2.1rem; height: 3.7rem; border-radius: 1.1rem 1.1rem 0 0; background: #1a4b39; box-shadow: inset 0 0 0 .22rem rgba(255,255,255,.12); }
.mosque-visual__dome { position: absolute; z-index: 2; bottom: 5.7rem; left: 28%; width: 44%; height: 6.3rem; border-radius: 55% 55% 12% 12%; background: linear-gradient(135deg,#ecdcae,#bd9450); box-shadow: inset -12px -8px 20px rgba(92,59,39,.18); }
.mosque-visual__dome::before { content: ""; position: absolute; top: -1.8rem; left: calc(50% - .18rem); width: .36rem; height: 2rem; background: #d5b15d; }
.mosque-visual__dome::after { content: "☾"; position: absolute; top: -3.65rem; left: calc(50% - .58rem); color: #efd58f; font-size: 1.6rem; transform: rotate(-15deg); }
.mosque-visual__minaret { position: absolute; z-index: 3; right: 9%; bottom: 0; width: 2.25rem; height: 12.5rem; border-bottom: .65rem solid #543822; background: #c3aa79; box-shadow: inset -.45rem 0 rgba(92,59,39,.15); }
.mosque-visual__minaret::before { content: ""; position: absolute; top: -2.2rem; left: -.55rem; border-right: 1.65rem solid transparent; border-bottom: 2.3rem solid #d7bd82; border-left: 1.65rem solid transparent; }
.mosque-visual__minaret::after { content: ""; position: absolute; top: 3rem; left: -.4rem; width: 3.05rem; height: .55rem; background: #795033; }

.mosque-visual__meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.2); padding: .9rem 1.1rem 1rem; color: #f4ead2; }
.mosque-visual__meta span { font-size: .78rem; font-weight: 600; }
.mosque-visual__meta strong { color: #fff; font-family: "Roboto Slab",serif; font-size: 1.65rem; }

.section-block { border-top: 0; padding-block: 3.3rem; }
.section-block + .section-block { border-top: 1px solid rgba(121,80,51,.16); }
.section-heading { max-width: 43rem; }
.section-heading > p:last-child { color: var(--color-concrete); }

.stat-grid { gap: 1rem; }
.stat-block { border: 1px solid rgba(121,80,51,.14); border-top: .3rem solid #2b664e; border-radius: .8rem; background: rgba(255,253,248,.95); padding: 1.2rem; box-shadow: 0 12px 30px rgba(42,58,46,.07); }
.stat-block:nth-child(2) { border-top-color: #795033; }.stat-block:nth-child(3) { border-top-color: #c49a4a; }

.split-block { position: relative; border-radius: 1rem; background: rgba(255,253,248,.72); padding-inline: clamp(1rem,3vw,2rem); }
.split-block .empty-state { border: 0; border-left: .25rem solid var(--color-safety); border-radius: .55rem; background: #eee5d3; padding: 1.3rem; }

.post-card { border: 1px solid rgba(121,80,51,.14); border-top: .3rem solid #2b664e; border-radius: .7rem; box-shadow: 0 10px 24px rgba(42,58,46,.06); }
.prayer-grid div { border: 1px solid rgba(121,80,51,.14); border-top: .25rem solid var(--color-safety); border-radius: .6rem; background: #1d5944; color: #fffdf8; box-shadow: 0 8px 20px rgba(23,63,50,.1); }
.prayer-grid span { color: #ead8aa; }.prayer-grid strong { font-size: 1.25rem; }

.site-footer { border-top: .3rem solid var(--color-safety); background: #173f32; color: #e8eee9; }

@media (min-width:46rem) {
    .hero-block { gap: 3rem; padding: 3.5rem; }
}
@media (max-width:30rem) {
    .site-header nav { gap: .55rem .8rem; }
    .hero-block { border-radius: .8rem; }
    .hero-actions { padding: 1rem; }
    .kitabisa-banner { grid-template-columns: auto minmax(0, 1fr); gap: .75rem; margin-top: .9rem; padding: .9rem; }
    .kitabisa-banner__logo { width: 4.7rem; min-height: 3.9rem; }
    .kitabisa-banner__button { grid-column: 1 / -1; width: 100%; }
}

@media print { 
    .site-header,.site-footer,.report-filters,.chart-grid,.pagination,.button,.admin-topbar,.admin-sidebar { display:none !important; } 
    .site-main,.admin-content { width:100% !important; padding:0 !important; } 
    .report-table { break-inside:avoid; } 
    body { background:#fff !important; color:#000 !important; } 
}

/* =========================================
   OPSI B (REVISI FINAL): TABEL MINI KOMPAK
   ========================================= */

/* Gaya Navigasi Halaman */
.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--color-cement);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s;
}
.pagination a:hover {
    background: var(--color-cement);
}
.pagination a.active {
    background: var(--color-safety) !important;
    color: var(--color-white) !important;
    border-color: var(--color-safety) !important;
    font-size: 1.15rem !important; 
    font-weight: 800 !important;
    box-shadow: 0 4px 10px rgba(196, 154, 74, 0.3);
}

/* Tampilan Tabel Mini untuk Mobile (Max Lebar 46rem) */
@media (max-width: 46rem) {
    .table-scroll {
        overflow-x: hidden !important; 
    }
    
    /* 1. Kembalikan paksa ke struktur dasar tabel HTML */
    .report-table table {
        min-width: 100% !important;
        width: 100% !important;
        display: table !important; 
        table-layout: auto !important;
    }
    .report-table thead { display: table-header-group !important; }
    .report-table tbody { display: table-row-group !important; }
    .report-table tr { 
        display: table-row !important; 
        border-bottom: 1px solid var(--color-cement) !important;
    }
    
    /* 2. Reset semua cell (kolom) agar sejajar */
    .report-table th, .report-table td {
        display: table-cell !important; 
        padding: 0.5rem 0.3rem !important;
        font-size: 0.7rem !important; 
        word-break: break-word !important; 
        white-space: normal !important; 
        vertical-align: middle !important;
        text-align: left !important;
    }
    .report-table th {
        font-size: 0.65rem !important;
    }

    /* 3. Khusus Kolom Nominal, paksa rata Kanan & jangan turun baris */
    .report-table td.numeric, 
    .report-table th.numeric,
    .report-table td.amount-in, 
    .report-table td.amount-out {
        text-align: right !important; 
        white-space: nowrap !important; 
        font-size: 0.75rem !important;
        padding-right: 0.5rem !important;
    }

    /* 4. Bersihkan sisa-sisa label dari Mode Kartu (Opsi A) jika masih ada */
    .report-table td::before { 
        display: none !important; 
    }
    
    /* 5. Khusus Order ID Midtrans, boleh dipotong agar tidak jebol */
    .report-table--midtrans code {
        word-break: break-all !important;
        font-size: 0.6rem !important;
    }
}

/* =========================================
   GALERI SWIPE MOBILE (PURE CSS)
   ========================================= */
@media (max-width: 46rem) {
    .gallery-grid {
        /* 1. Matikan paksa aturan 2 kolom bawaan! */
        grid-template-columns: none !important; 
        
        /* 2. Ubah grid menjadi berbaris ke samping (Carousel) */
        grid-auto-flow: column !important;
        grid-auto-columns: 85% !important; 
        
        /* 3. Aturan scroll & geser jari */
        overflow-x: auto !important;
        scroll-snap-type: inline mandatory !important;
        overscroll-behavior-inline: contain !important;
        
        gap: 0.8rem !important;
        padding-bottom: 1rem !important;
        
        /* Sembunyikan scrollbar agar rapi */
        scrollbar-width: none !important;
    }
    
    .gallery-grid::-webkit-scrollbar {
        display: none !important;
    }

    .gallery-grid figure {
        scroll-snap-align: center !important; 
        width: 100% !important;
        margin: 0 !important;
    }
}

/* Beranda: format daftar portal berita dengan thumbnail kecil di kiri. */
.news-grid--home .news-card:not(.news-card--event),
.news-grid--home .news-card--lead {
    display: flex;
    align-items: flex-start;
    min-height: 0;
}

.news-grid--home .news-card--lead {
    grid-column: auto;
}

.news-grid--home .news-card:not(.news-card--event) .news-card__media,
.news-grid--home .news-card--lead .news-card__media {
    flex: 0 0 8.5rem;
    width: 8.5rem;
    height: 8.5rem;
    margin: .75rem 0 .75rem .75rem;
    aspect-ratio: 1 / 1;
    min-height: 0;
}

.news-grid--home .news-card:not(.news-card--event) .news-card__body {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    justify-content: center;
    padding: .8rem .95rem;
}

.news-grid--home .news-card:not(.news-card--event) h3 {
    margin: 0;
    min-width: 0;
    font-size: 1.05rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.news-grid--home .news-card:not(.news-card--event) h3 a {
    overflow-wrap: anywhere;
}

.news-grid--home .news-card:not(.news-card--event) .news-card__excerpt {
    display: -webkit-box;
    margin: .35rem 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@media (max-width: 45.99rem) {
    .news-grid--home .news-card:not(.news-card--event),
    .news-grid--home .news-card--lead {
        display: flex;
    }

    .news-grid--home .news-card:not(.news-card--event) .news-card__media,
    .news-grid--home .news-card--lead .news-card__media {
        flex-basis: 5.75rem;
        width: 5.75rem;
        height: 5.75rem;
        margin: .6rem 0 .6rem .6rem;
    }

    .news-grid--home .news-card:not(.news-card--event) .news-card__body {
        padding: .65rem .75rem;
    }

    .news-grid--home .news-card:not(.news-card--event) h3 {
        font-size: .98rem;
    }

    .news-grid--home .news-card:not(.news-card--event) .news-card__excerpt {
        display: none;
    }
}

/* Beranda dua kolom: laporan ringkas dan sidebar informasi cepat. */
.home-dashboard {
    display: grid;
    gap: 1.4rem;
    margin-top: 1.5rem;
}

.home-main,
.home-sidebar {
    display: grid;
    align-content: start;
    gap: 1.2rem;
    min-width: 0;
}

.home-panel,
.sidebar-widget {
    border: 1px solid rgba(121,80,51,.16);
    border-radius: .85rem;
    background: rgba(255,253,248,.96);
    box-shadow: 0 10px 25px rgba(42,58,46,.06);
}

.home-panel { padding: 1.25rem; }
.home-panel .section-heading { margin-bottom: 1rem; }
.home-panel .section-heading h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); }

.home-news-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .7rem;
}
.home-news-item {
    display: grid;
    grid-template-columns: 5.25rem minmax(0,1fr);
    align-items: center;
    gap: .75rem;
    min-width: 0;
    border: 1px solid var(--color-cement);
    border-radius: .55rem;
    background: #fffdf8;
    padding: .55rem;
}
.home-news-item:first-child { grid-column: 1 / -1; }
.home-news-item__thumb {
    display: block;
    overflow: hidden;
    width: 5.25rem;
    height: 4rem;
    border-radius: .4rem;
    background: #dfe5dc;
    text-decoration: none;
}
.home-news-item__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-news-item__thumb span { display: grid; place-items: center; width: 100%; height: 100%; background: #1d5944; color: #ead8aa; font-size: .72rem; font-weight: 800; }
.home-news-item__body { min-width: 0; overflow: hidden; }
.home-news-item__category { display: block; margin-bottom: .15rem; color: var(--color-brick); font-size: .62rem; font-weight: 800; text-transform: uppercase; }
.home-news-item h3 { font-size: .9rem; line-height: 1.3; overflow-wrap: anywhere; }
.home-news-item h3 a { text-decoration: none; }
.home-news-item h3 a:hover { color: var(--color-brick); }
.home-news-item small { display: block; margin-top: .25rem; color: var(--color-concrete); font-size: .65rem; }
.home-finance-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .65rem;
}

.home-finance-card {
    min-width: 0;
    border-left: .25rem solid var(--color-steel);
    border-radius: .5rem;
    background: #f4f0e5;
    padding: .75rem .8rem;
}

.home-finance-card--out { border-left-color: var(--color-brick); }
.home-finance-card--balance { border-left-color: var(--color-safety); background: #fff4dc; }
.home-finance-card span,
.home-finance-card small { display: block; color: var(--color-concrete); font-size: .7rem; }
.home-finance-card span { color: var(--color-steel); font-weight: 700; }
.home-finance-card strong {
    display: block;
    margin: .2rem 0;
    font: 700 clamp(.95rem, 1.6vw, 1.2rem) "Roboto Slab", serif;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.home-transparency {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    background: linear-gradient(135deg, rgba(255,253,248,.98), rgba(238,229,211,.85));
}
.home-transparency h2 { margin-bottom: .6rem; font-size: clamp(1.3rem, 3vw, 1.7rem); }
.home-transparency p:not(.eyebrow) { max-width: 38rem; margin: 0; color: var(--color-concrete); font-size: .88rem; }
.home-transparency .button { flex: 0 0 auto; }

.home-stage-list { display: grid; gap: .65rem; }
.home-stage-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .45rem 1rem; border-top: 1px solid var(--color-cement); padding-top: .75rem; }
.home-stage-row:first-child { border-top: 0; padding-top: 0; }
.home-stage-row h3 { font-size: 1rem; }
.home-stage-row > strong { font-size: .9rem; font-variant-numeric: tabular-nums; }
.home-stage-status { color: var(--color-brick); font-size: .65rem; font-weight: 700; text-transform: uppercase; }
.home-stage-progress { grid-column: 1 / -1; overflow: hidden; height: .4rem; border-radius: 999px; background: var(--color-cement); }
.home-stage-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--color-safety), #2b664e); }

.sidebar-widget { overflow: hidden; padding: 1rem; color: var(--color-steel); }
.sidebar-widget.kitabisa-sidebar-card { border: 0; background: linear-gradient(145deg, #00a7d8, #007fba); color: #fff; box-shadow: 0 14px 28px rgba(0, 127, 186, .2); }
.sidebar-widget__heading { display: flex; align-items: start; justify-content: space-between; gap: .75rem; margin-bottom: .85rem; }
.sidebar-widget__heading .eyebrow { margin-bottom: .2rem; }
.sidebar-widget h2 { font-size: 1.15rem; }
.sidebar-widget__heading > span { border-radius: 999px; background: var(--color-cement); padding: .2rem .45rem; font-size: .68rem; font-weight: 700; }
.sidebar-widget__heading > a { color: var(--color-brick); font-weight: 800; text-decoration: none; }

.sidebar-prayer { border-top: .28rem solid var(--color-safety); }
.sidebar-prayer-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .4rem; }
.sidebar-prayer-list div { border-radius: .4rem; background: #1d5944; padding: .5rem .35rem; color: #fff; text-align: center; }
.sidebar-prayer-list span,
.sidebar-prayer-list strong { display: block; }
.sidebar-prayer-list span { color: #ead8aa; font-size: .65rem; }
.sidebar-prayer-list strong { font: 700 1rem "Roboto Slab", serif; font-variant-numeric: tabular-nums; }
.sidebar-note { display: block; margin-top: .55rem; color: var(--color-concrete); font-size: .64rem; text-align: right; }

.sidebar-donation { border: 0; background: linear-gradient(145deg, #173f32, #2b664e); color: #fffdf8; box-shadow: 0 16px 30px rgba(23,63,50,.18); }
.sidebar-donation .eyebrow { color: #ead8aa; }
.sidebar-donation__content { display: grid; grid-template-columns: 5.25rem minmax(0,1fr); align-items: center; gap: .8rem; margin: .8rem 0; }
.sidebar-donation__content img,
.sidebar-donation__mark { width: 5.25rem; height: 5.25rem; border: .3rem solid #fff; border-radius: .4rem; background: #fff; object-fit: contain; }
.sidebar-donation__mark { display: grid; place-items: center; color: var(--color-steel); font-size: .8rem; font-weight: 800; }
.sidebar-donation__content p { margin: 0; color: #e8eee9; font-size: .77rem; }
.sidebar-donation .button--primary { background: #e1b75f; color: #173f32; }

.sidebar-event { display: grid; grid-template-columns: 3.6rem minmax(0,1fr); gap: .8rem; }
.sidebar-event time { display: grid; align-content: center; justify-items: center; min-height: 4.2rem; border-radius: .5rem; background: #f3e2c1; color: var(--color-formwork); }
.sidebar-event time strong { font: 700 1.45rem "Roboto Slab", serif; line-height: 1; }
.sidebar-event time span { font-size: .65rem; font-weight: 800; }
.sidebar-event h3 { margin: .15rem 0 .25rem; font-size: .95rem; }
.sidebar-event small { color: var(--color-concrete); font-size: .68rem; }
.sidebar-event p { margin: .3rem 0 0; color: var(--color-concrete); font-size: .72rem; }
.sidebar-event__countdown { display: inline-block; border-radius: 999px; background: #e4f2e9; padding: .12rem .4rem; color: #245c43; font-size: .62rem; font-weight: 800; }

.sidebar-news-list { display: grid; gap: .65rem; }
.sidebar-news-item { display: grid; grid-template-columns: 4.25rem minmax(0,1fr); align-items: center; gap: .7rem; border-top: 1px solid var(--color-cement); padding-top: .65rem; }
.sidebar-news-item:first-child { border-top: 0; padding-top: 0; }
.sidebar-news-item__thumb { display: block; overflow: hidden; width: 4.25rem; height: 3.25rem; border-radius: .35rem; background: #dfe5dc; text-decoration: none; }
.sidebar-news-item__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sidebar-news-item__thumb span { display: grid; place-items: center; width: 100%; height: 100%; background: #1d5944; color: #ead8aa; font-size: .7rem; font-weight: 800; }
.sidebar-news-item h3 { font-size: .83rem; line-height: 1.3; overflow-wrap: anywhere; }
.sidebar-news-item h3 a { text-decoration: none; }
.sidebar-news-item h3 a:hover { color: var(--color-brick); }
.sidebar-news-item small { color: var(--color-concrete); font-size: .65rem; }

@media (min-width: 58rem) {
    .home-dashboard { grid-template-columns: minmax(0,1fr) 20rem; align-items: start; }
    .home-sidebar { position: sticky; top: 1rem; }
}

@media (max-width: 45.99rem) {
    .home-news-list { grid-template-columns: 1fr; }
    .home-news-item,
    .home-news-item:first-child { grid-column: auto; grid-template-columns: 5.25rem minmax(0,1fr); }
    .home-news-item h3 {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        font-size: .86rem;
    }
    .home-finance-strip { grid-template-columns: repeat(3, minmax(10.75rem,1fr)); overflow-x: auto; padding-bottom: .45rem; scroll-snap-type: inline mandatory; }
    .home-finance-card { scroll-snap-align: start; }
    .home-transparency { align-items: flex-start; flex-direction: column; }
    .home-transparency .button { width: 100%; }
}

/* Penyempurnaan layar kecil: tanpa overflow horizontal dan jarak lebih rapat. */
@media (max-width: 45.99rem) {
    .container { width: min(100% - 1.1rem, 72rem); }
    .page-content { padding-block: 1rem 2rem; }
    .hero-block { gap: 1.1rem; padding: 1.35rem .95rem 1.5rem; border-radius: .8rem; }
    .hero-copy h1 { max-width: 100%; font-size: clamp(2rem, 10vw, 2.8rem); }
    .hero-lede { margin-top: .75rem; font-size: .92rem; }
    .hero-values { gap: .35rem; margin-top: 1rem; }
    .hero-values span { font-size: .64rem; }
    .hero-actions { padding: .9rem; }
    .hero-actions__text { margin-bottom: .85rem; font-size: .82rem; }
    .home-dashboard { gap: .85rem; margin-top: .9rem; }
    .home-main, .home-sidebar { gap: .85rem; }
    .home-panel, .sidebar-widget { padding: .85rem; border-radius: .65rem; }
    .home-finance-strip { grid-template-columns: 1fr; overflow: visible; padding-bottom: 0; }
    .home-finance-card { padding: .65rem .75rem; }
    .home-finance-card strong { font-size: 1.08rem; }
    .home-news-item, .home-news-item:first-child { grid-template-columns: 5rem minmax(0,1fr); gap: .6rem; padding: .5rem; }
    .home-news-item__thumb { width: 5rem; height: 3.7rem; }
    .home-news-item__category { font-size: .58rem; }
    .home-news-item h3 { font-size: .82rem; }
    .home-news-item small { font-size: .6rem; }
    .home-stage-row h3 { font-size: .9rem; }
    .sidebar-prayer-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .sidebar-prayer-list div { padding: .45rem .3rem; }
    .sidebar-donation__content { grid-template-columns: 4.75rem minmax(0,1fr); gap: .65rem; }
    .sidebar-donation__content img, .sidebar-donation__mark { width: 4.75rem; height: 4.75rem; }
    .sidebar-event { grid-template-columns: 3.25rem minmax(0,1fr); gap: .65rem; }
    .sidebar-news-item { grid-template-columns: 4rem minmax(0,1fr); }
    .sidebar-news-item__thumb { width: 4rem; height: 3rem; }
}

@media (max-width: 24rem) {
    .site-header__inner { gap: .65rem; }
    .site-header nav { gap: .4rem .6rem; font-size: .74rem; }
    .home-news-item, .home-news-item:first-child { grid-template-columns: 4.5rem minmax(0,1fr); }
    .home-news-item__thumb { width: 4.5rem; height: 3.4rem; }
    .home-news-item h3 { font-size: .78rem; }
    .sidebar-prayer-list strong { font-size: .9rem; }
}
/* ==================================================
   LAYOUT BERITA LIST (KIRI FOTO, KANAN TEKS)
   ================================================== */
.news-list-view {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.news-list-view .news-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

/* Ukuran foto untuk Desktop / Laptop */
.news-list-view .news-card__media {
    flex: 0 0 14rem; 
    aspect-ratio: 4 / 3;
    border-right: 1px solid rgba(121, 80, 51, 0.16);
    min-height: 100%;
}

.news-list-view .news-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    padding: 1.25rem;
}

/* Aturan untuk Layar HP (Mobile) - Foto di atas, teks di bawah */
@media (max-width: 45.99rem) {
    .news-list-view .news-card {
        flex-direction: column;
        height: auto;
    }
    .news-list-view .news-card__media {
        flex: none; /* Mencegah foto memonopoli ukuran */
        min-height: auto; /* Mereset setingan min-height dari versi desktop */
        width: 100%;
        aspect-ratio: 16 / 9;
        border-right: none;
        border-bottom: 1px solid rgba(121, 80, 51, 0.16);
    }
    .news-list-view .news-card__body {
        flex: none;
        padding: 1rem;
    }
}
/* ==================================================
   LAYOUT JADWAL KEGIATAN (FRESH EVENT CARD)
   ================================================== */
.fresh-event-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 1rem;
}
.fresh-event-card {
    display: flex;
    background: var(--color-white);
    border: 1px solid var(--color-cement);
    border-radius: 0.85rem;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(23, 63, 50, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.fresh-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(23, 63, 50, 0.12);
}

/* Balok Tanggal di Kiri */
.fresh-date-box {
    flex: 0 0 8.5rem;
    background: var(--color-steel);
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    text-align: center;
    border-right: 4px solid var(--color-safety);
}
.fresh-date-box .day {
    font-size: 0.85rem;
    color: #ead8aa;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
}
.fresh-date-box .date {
    font-size: 3.5rem;
    font-family: "Roboto Slab", serif;
    font-weight: 700;
    line-height: 1;
    margin: 0;
}
.fresh-date-box .month {
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 0.4rem;
    color: #e8eee9;
}

/* Area Konten Utama */
.fresh-content-box {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.fresh-content-box h2 {
    font-size: 1.45rem;
    color: var(--color-steel);
    margin: 0 0 0.5rem 0;
}
.fresh-content-box p.desc {
    color: var(--color-concrete);
    font-size: 0.9rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

/* Info Waktu & Lokasi */
.fresh-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.fresh-meta-item {
    display: flex;
    flex-direction: column;
}
.fresh-meta-item span.label {
    font-size: 0.68rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--color-concrete);
    margin-bottom: 0.15rem;
}
.fresh-meta-item strong {
    font-size: 0.95rem;
    color: var(--color-steel);
}

/* Highlight Pemateri */
.fresh-speaker-box {
    background: #fff4dc;
    border: 1px solid rgba(196, 154, 74, 0.4);
    border-radius: 0.5rem;
    padding: 0.8rem 1.2rem;
    display: inline-flex;
    flex-direction: column;
    align-self: flex-start;
    position: relative;
}
.fresh-speaker-box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 4px;
    background: var(--color-safety);
    border-radius: 0 4px 4px 0;
}
.fresh-speaker-box span.label {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--color-brick);
    margin-bottom: 0.15rem;
}
.fresh-speaker-box strong {
    font-size: 1.15rem;
    font-family: "Roboto Slab", serif;
    color: var(--color-steel);
}

/* Responsif untuk layar HP */
@media (max-width: 45.99rem) {
    .fresh-event-card {
        flex-direction: column;
    }
    .fresh-date-box {
        flex-direction: row;
        align-items: baseline;
        justify-content: flex-start;
        gap: 0.75rem;
        padding: 1rem 1.25rem;
        border-right: none;
        border-bottom: 4px solid var(--color-safety);
    }
    .fresh-date-box .day { margin: 0; }
    .fresh-date-box .date { font-size: 2rem; }
    .fresh-date-box .month { margin: 0; }
    
    .fresh-content-box {
        padding: 1.25rem;
    }
    .fresh-speaker-box {
        width: 100%;
    }
}
/* Memaksa daftar berita di Beranda menjadi 1 kolom penuh */
.home-news-list {
    grid-template-columns: 1fr !important;
}
.home-news-item {
    grid-column: 1 / -1 !important;
}
