/* Donation campaigns (campaigns.html, campaign-*.html). Uses the tokens from style.css. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* badges */
.cmp-badges { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cmp-badges li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; background: var(--accent-soft); color: var(--t-food); }
.cmp-badges .icon { width: 16px; height: 16px; }
.page-head .cmp-badges li { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(4px); }
.page-head:not(.has-img) .cmp-badges li { background: var(--accent-soft); color: var(--t-food); }

/* cards */
.cmp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cmp-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .cmp-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .cmp-grid, .cmp-grid-3 { grid-template-columns: 1fr; } }
.cmp-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.cmp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cmp-card-media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--alt); }
.cmp-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; border-radius: var(--radius) var(--radius) 0 0; }
.cmp-card-media .cmp-icon { z-index: 1; }
.cmp-icon { position: absolute; left: 18px; bottom: -22px; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; box-shadow: var(--shadow); }
.cmp-icon .icon { width: 26px; height: 26px; }
.cmp-card-body { display: flex; flex-direction: column; flex: 1; padding: 34px 24px 24px; }
.cmp-card-body h3 a { color: var(--ink); text-decoration: none; }
.cmp-card-body h3 a:hover { color: var(--primary); }
.cmp-card-body > p { color: var(--muted); font-size: .95rem; }
.cmp-card-body .btn { margin-top: auto; }
.cmp-quote { font-family: var(--serif); font-style: italic; color: var(--primary) !important; font-size: 1rem !important; }
.chip-abled .icon, .chip-elderly .icon, .chip-food .icon, .chip-health .icon { stroke: currentColor; }

/* target */
.cmp-target { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.cmp-target small { color: var(--muted); font-weight: 600; }
.cmp-target strong { font-family: var(--serif); font-size: 1.5rem; color: var(--primary); }
.cmp-bar { height: 8px; border-radius: 99px; background: var(--alt); overflow: hidden; margin-bottom: 4px; }
.cmp-bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.cmp-bar + small { display: block; color: var(--muted); font-size: .85rem; margin-bottom: 14px; }

/* how to give */
.cmp-how { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .cmp-how { grid-template-columns: 1fr; } }
.cmp-how li { background: var(--surface); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.cmp-how p { color: var(--muted); margin: 0; }
.cmp-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; margin-bottom: 12px; }
.cmp-how-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 820px) { .cmp-how-foot { grid-template-columns: 1fr; } }
.cmp-how-foot dd { overflow-wrap: anywhere; }
.cmp-tax { color: var(--muted); font-size: .95rem; }
.cmp-reg { color: var(--muted); font-size: .78rem; margin-top: 12px; overflow-wrap: anywhere; }
.cmp-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-weight: 600; }
.cmp-contact a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.cmp-contact .icon { width: 18px; height: 18px; }

/* campaign page */
.cmp-head-quote { font-family: var(--serif); font-size: clamp(1.2rem, 2.6vw, 1.7rem); margin: 0 0 .4em; }
.page-head.has-img .cmp-head-quote { color: #fff; }
.cmp-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .cmp-layout { grid-template-columns: 1fr; } .cmp-give { order: -1; } }
.cmp-target-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 22px 8px; margin-bottom: 32px; }
.cmp-target-card .cmp-target { border-top: 0; }
.cmp-stats { list-style: none; padding: 14px 0 6px; margin: 0; display: flex; gap: 32px; border-top: 1px solid var(--line); }
.cmp-stats strong { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--ink); line-height: 1.1; }
.cmp-stats span { color: var(--muted); font-size: .88rem; }
.cmp-facts { display: grid; gap: 0; margin: 24px 0; border-top: 1px solid var(--line); }
.cmp-facts div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 520px) { .cmp-facts div { grid-template-columns: 1fr; gap: 2px; } }
.cmp-facts dt { color: var(--muted); font-weight: 600; }
.cmp-facts dd { margin: 0; }

/* donate panel */
.cmp-give { position: sticky; top: 92px; }
@media (max-width: 900px) { .cmp-give { position: static; } }
.cmp-give > h2 { font-size: 1.45rem; }
.cmp-step { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 1rem; margin: 22px 0 12px; }
.cmp-step span { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--primary); color: #fff; font-size: .85rem; }
.cmp-amounts { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.cmp-amounts label { position: relative; }
.cmp-amounts input[type="radio"] { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cmp-amounts label span { display: block; text-align: center; padding: .65em .4em; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 700; background: var(--bg); transition: .15s; }
.cmp-amounts input:checked + span { border-color: var(--primary); background: var(--primary); color: #fff; }
.cmp-amounts input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.cmp-other { grid-column: 1 / -1; font: 400 1rem var(--sans); padding: .75em .9em; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); width: 100%; }
.cmp-other:focus { outline: 0; border-color: var(--primary); background: #fff; }
.cmp-impact { min-height: 1.4em; margin: 10px 0 0; color: var(--primary); font-weight: 600; font-size: .92rem; }
.cmp-impact:empty { display: none; }
.cmp-small { color: var(--muted); font-size: .82rem; margin: 8px 0 0; }
.cmp-qr { margin: 0 0 12px; display: flex; align-items: center; gap: 16px; }
.cmp-qr [data-qr] { padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; line-height: 0; }
.cmp-qr [data-qr] img, .cmp-qr [data-qr] canvas { width: 140px; height: 140px; }
.cmp-qr figcaption { color: var(--muted); font-size: .88rem; }
/* phones pay through the app button; computers scan the QR */
.cmp-pay-mobile { display: none; margin-bottom: 14px; }
@media (pointer: coarse) { .cmp-pay-mobile { display: block; } .cmp-qr { display: none; } }
.cmp-pay, .cmp-bank dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .95rem; }
.cmp-pay dt, .cmp-bank dt { color: var(--muted); }
.cmp-pay dd, .cmp-bank dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.cmp-bank { margin-top: 12px; border: 1px dashed var(--accent); border-radius: 12px; padding: 10px 14px; }
.cmp-bank summary { cursor: pointer; font-weight: 700; }
.cmp-bank[open] summary { margin-bottom: 10px; }
.cmp-receipt { display: grid; gap: 12px; }
.cmp-receipt .btn-wa { margin: 4px 0 0; display: inline-flex; justify-content: center; align-items: center; gap: 8px; }
.cmp-receipt .btn-wa .icon { width: 20px; height: 20px; }
html[lang="ml"] .cmp-quote, html[lang="ml"] .cmp-head-quote { font-style: normal; }
