/* Wakaf Produktif — waqif front end
   Tokens: --wpd-brand (from Settings), ink, paper, sage line, gold = benefit only. */
.wpd-f{
	--wpd-brand:#0f5132;
	--wpd-ink:#16302b;
	--wpd-muted:#5e6e68;
	--wpd-paper:#fbfcfa;
	--wpd-wash:#eef3f0;
	--wpd-line:#dce5e0;
	--wpd-gold:#a87a1f;
	--wpd-gold-soft:#e9c66f;
	--wpd-loss:#b3261e;
	--wpd-r:14px;
	font-family:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
	font-size:16px;
	line-height:1.55;
	color:var(--wpd-ink);
	max-width:880px;
	margin-inline:auto;
	-webkit-font-smoothing:antialiased;
}
:where(.wpd-f) *,:where(.wpd-f) *::before,:where(.wpd-f) *::after{box-sizing:border-box}
/* Zero-specificity resets so component margins below always win; theme/Elementor styles are neutralised. */
:where(.wpd-f) :where(h2,h3,h4,p,dl,dd,ul,ol,table){margin:0;padding:0}
:where(.wpd-f) :where(ul,ol){list-style:none}
:where(.wpd-f) :where(h2,h3,h4){font-family:inherit;color:inherit;line-height:1.25;text-transform:none;letter-spacing:normal}
:where(.wpd-f) a{color:inherit}
.wpd-f :focus-visible{outline:2px solid var(--wpd-brand);outline-offset:3px;border-radius:6px}
.wpd-f .screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.wpd-num,.wpd-f dd,.wpd-rows__amt,.wpd-more td{font-variant-numeric:tabular-nums lining-nums}
.is-benefit{color:var(--wpd-gold)}
.is-loss{color:var(--wpd-loss)}

/* Top bar */
.wpd-dash__top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:28px}
.wpd-dash__hello{font-weight:600;color:var(--wpd-muted)}
.wpd-month{display:inline-flex;align-items:center;background:#fff;border:1px solid var(--wpd-line);border-radius:999px;padding:3px}
.wpd-month__label{padding:0 6px;font-weight:600;font-size:.95em;min-width:8.5em;text-align:center}
.wpd-month__step{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;text-decoration:none;color:var(--wpd-ink)}
.wpd-month__step svg{width:18px;height:18px}
.wpd-month__step:hover{background:var(--wpd-wash)}
.wpd-month__step.is-off{opacity:.25}

/* Hero: the statement is the design */
.wpd-hero{padding-bottom:28px;border-bottom:1px solid var(--wpd-line)}
.wpd-hero__line{font-size:clamp(1.25rem,1rem + 1.4vw,1.85rem);line-height:1.35;font-weight:500;letter-spacing:-.01em;max-width:32ch}
.wpd-hero__line + .wpd-hero__line{margin-top:.35em;color:var(--wpd-muted)}
.wpd-hero .wpd-num{font-weight:800;color:var(--wpd-ink);letter-spacing:-.02em;white-space:nowrap}
.wpd-hero .wpd-num.is-benefit{color:var(--wpd-gold)}
.wpd-hero__facts{display:flex;flex-wrap:wrap;gap:12px 36px;margin-top:24px}
.wpd-hero__facts dt{font-size:.8em;color:var(--wpd-muted)}
.wpd-hero__facts dd{font-weight:700;font-size:1.05em}
.wpd-note{display:flex;gap:8px;align-items:flex-start;margin-top:18px;font-size:.88em;color:#7a5600;background:#fbf4e2;border-radius:10px;padding:10px 12px}
.wpd-note i{font-size:1.1em;line-height:1.3}

/* 12-month benefit trend — each bar links to its month */
.wpd-trend{padding:28px 0 8px}
.wpd-trend h3{font-size:.95em;font-weight:600;margin-bottom:14px}
.wpd-trend__bars{display:grid;grid-template-columns:repeat(12,1fr);gap:6px;align-items:end}
.wpd-trend__bars a{display:flex;flex-direction:column;align-items:center;gap:6px;text-decoration:none;padding:4px 0;border-radius:8px}
.wpd-trend__bars a:hover{background:var(--wpd-wash)}
.wpd-trend__col{display:flex;align-items:flex-end;justify-content:center;width:100%;height:96px}
.wpd-trend__bar{display:block;width:min(22px,70%);min-height:2px;border-radius:6px 6px 2px 2px;background:var(--wpd-gold-soft);transition:background-color .15s}
.wpd-trend__m{font-size:.72em;color:var(--wpd-muted)}
.wpd-trend li.is-current .wpd-trend__bar{background:var(--wpd-gold)}
.wpd-trend li.is-current .wpd-trend__m{color:var(--wpd-ink);font-weight:700}
.wpd-trend li.is-before .wpd-trend__col{border-bottom:2px dotted var(--wpd-line)}
.wpd-trend li.is-before .wpd-trend__m{opacity:.5}

/* Tabs */
.wpd-tabs{display:flex;gap:4px;margin:24px 0 0;border-bottom:1px solid var(--wpd-line);overflow-x:auto}
.wpd-f .wpd-tabs button{all:unset;cursor:pointer;padding:12px 14px 13px;font-weight:600;font-size:.95em;color:var(--wpd-muted);border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap}
.wpd-f .wpd-tabs button span{font-weight:500;font-size:.85em;margin-left:4px;padding:1px 8px;border-radius:999px;background:var(--wpd-wash)}
.wpd-f .wpd-tabs button[aria-selected="true"]{color:var(--wpd-ink);border-bottom-color:var(--wpd-brand)}
.wpd-f .wpd-tabs button:focus-visible{outline:2px solid var(--wpd-brand);outline-offset:-2px}
.wpd-panel{padding-top:8px}
.wpd-panel[hidden]{display:none}

/* Project rows */
.wpd-project{display:grid;grid-template-columns:64px 1fr;gap:18px;padding:22px 0;border-bottom:1px solid var(--wpd-line)}
.wpd-project:last-child{border-bottom:0}
.wpd-project__media{width:64px;height:64px;border-radius:var(--wpd-r);overflow:hidden;background:var(--wpd-wash);display:grid;place-items:center;font-size:26px;color:var(--wpd-brand)}
.wpd-project__media img{width:100%;height:100%;object-fit:cover;display:block}
.wpd-project__head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.wpd-project__head h4{font-size:1.1em;font-weight:700;letter-spacing:-.01em}
.wpd-status{font-size:.75em;font-weight:600;padding:2px 9px;border-radius:999px;background:var(--wpd-wash);color:var(--wpd-brand)}
.wpd-status.is-fundraising{background:#e7f0fb;color:#1d5a9e}
.wpd-status.is-paused{background:#fbf4e2;color:#7a5600}
.wpd-status.is-closed{background:#f0f0f0;color:#5c5c5c}
.wpd-project__who{display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:4px;font-size:.88em;color:var(--wpd-muted)}
.wpd-project__who i{margin-right:4px}

.wpd-share{position:relative;height:10px;margin-top:16px;border-radius:999px;background:var(--wpd-wash);overflow:hidden}
.wpd-share__all,.wpd-share__mine{position:absolute;inset:0 auto 0 0;border-radius:999px}
.wpd-share__all{background:var(--wpd-brand);opacity:.85}
.wpd-share__mine{background:var(--wpd-gold-soft);box-shadow:inset -2px 0 0 #fff}
.wpd-share__legend{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px;margin-top:6px;font-size:.82em;color:var(--wpd-muted)}
.wpd-share__legend i{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--wpd-gold-soft);margin-right:6px}

.wpd-project__facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}
.wpd-project__facts dt{font-size:.78em;color:var(--wpd-muted)}
.wpd-project__facts dd{font-weight:700}

.wpd-more{margin-top:14px;font-size:.9em}
.wpd-more summary{cursor:pointer;font-weight:600;color:var(--wpd-brand);list-style:none;display:inline-flex;align-items:center;gap:4px}
.wpd-more summary::-webkit-details-marker{display:none}
.wpd-more summary::after{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);margin-left:6px;transition:transform .15s}
.wpd-more[open] summary::after{transform:rotate(-135deg) translate(-2px,0)}
.wpd-more table{width:100%;max-width:420px;border-collapse:collapse;margin:10px 0 8px}
.wpd-more th,.wpd-more td{padding:5px 0;border-bottom:1px dashed var(--wpd-line);font-weight:400;text-align:left}
.wpd-more td{text-align:right}
.wpd-more tr.is-total th,.wpd-more tr.is-total td{font-weight:700;border-bottom-style:solid;border-bottom-color:var(--wpd-ink)}
.wpd-more p{color:var(--wpd-muted);margin-top:6px}
.wpd-more p.is-loss{color:var(--wpd-loss)}

.wpd-project__raising{margin-top:14px;font-size:.88em;color:var(--wpd-muted)}

/* History & statements */
.wpd-rows li{display:flex;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid var(--wpd-line)}
.wpd-rows li:last-child{border-bottom:0}
.wpd-rows__date{flex:0 0 7.5em;font-size:.88em;color:var(--wpd-muted)}
.wpd-rows__main{flex:1;font-weight:600;min-width:0}
.wpd-rows__main small{display:block;font-weight:400;font-size:.82em;color:var(--wpd-muted)}
.wpd-rows__amt{font-weight:700;white-space:nowrap}
.wpd-rows__wait{font-size:.85em;color:var(--wpd-muted)}
.wpd-rows li.is-void .wpd-rows__amt,.wpd-rows li.is-void .wpd-rows__main{text-decoration:line-through;opacity:.55}

/* Buttons, gate, fine print */
.wpd-f .wpd-f-btn{display:inline-flex;align-items:center;gap:6px;padding:10px 18px;border-radius:999px;background:var(--wpd-brand);color:#fff;font-weight:600;font-size:.92em;text-decoration:none;border:0;line-height:1.2}
.wpd-f .wpd-f-btn:hover{filter:brightness(1.08)}
.wpd-f .wpd-f-btn.is-quiet{background:transparent;color:var(--wpd-brand);border:1px solid var(--wpd-line);padding:8px 14px}
.wpd-f .wpd-f-btn.is-quiet:hover{background:var(--wpd-wash);filter:none}
.wpd-f-gate{text-align:center;padding:48px 20px;background:var(--wpd-paper);border:1px solid var(--wpd-line);border-radius:var(--wpd-r)}
.wpd-f-gate i{font-size:34px;color:var(--wpd-brand)}
.wpd-f-gate h2{font-size:1.3em;margin:8px 0 4px}
.wpd-f-gate p{color:var(--wpd-muted);max-width:44ch;margin:0 auto 18px}
.wpd-f-fine{font-size:.8em;color:var(--wpd-muted);margin-top:28px;max-width:70ch}

/* Public shortcodes */
.wpd-f-public{max-width:none}
.wpd-f-public__amount strong{font-size:1.6em;font-weight:800;letter-spacing:-.02em;margin-right:6px}
.wpd-f-public__amount span{color:var(--wpd-muted)}
.wpd-f-meter{height:10px;border-radius:999px;background:var(--wpd-wash);overflow:hidden;margin:10px 0 8px}
.wpd-f-meter span{display:block;height:100%;background:var(--wpd-brand);border-radius:999px}
.wpd-f-public__meta{display:flex;justify-content:space-between;font-size:.88em;color:var(--wpd-muted)}
.wpd-f-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-top:18px;padding-top:16px;border-top:1px solid var(--wpd-line)}
.wpd-f-facts dt{font-size:.8em;color:var(--wpd-muted)}
.wpd-f-facts dd{font-weight:700;font-size:1.1em}
.wpd-f-public .wpd-f-fine{margin-top:12px}
.wpd-f-statement{font-size:clamp(1.15rem,1rem + 1vw,1.6rem);line-height:1.4;font-weight:500;max-width:36ch}
.wpd-f-statement strong{font-weight:800}

@media (max-width:600px){
	.wpd-f{font-size:15px}
	.wpd-project{grid-template-columns:48px 1fr;gap:14px}
	.wpd-project__media{width:48px;height:48px;border-radius:10px;font-size:20px}
	.wpd-project__facts{grid-template-columns:1fr 1fr}
	.wpd-project__facts div:last-child{grid-column:1 / -1}
	.wpd-trend__bars{gap:2px}
	.wpd-trend__col{height:80px}
	.wpd-rows__date{flex-basis:auto;order:3;width:100%}
	.wpd-rows li{flex-wrap:wrap;gap:4px 12px}
}
@media (prefers-reduced-motion:reduce){.wpd-f *{transition:none!important}}
