.mgd-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:24px}.mgd-card,.mgd-dialog{background:var(--mgd-bg);color:var(--mgd-text);font-family:inherit;box-sizing:border-box}.mgd-card{border:1px solid #ddd;border-radius:16px;overflow:hidden}.mgd-image{width:100%;height:220px;object-fit:cover;display:block}.mgd-card-body{padding:24px}.mgd-card button,.mgd-dialog button{font:inherit;cursor:pointer;border-radius:8px;padding:12px 16px;line-height:1.25}.mgd-primary{background:var(--mgd-accent);color:#111;border:1px solid #0002;font-weight:600!important;width:100%}.mgd-primary:disabled{opacity:.5;cursor:not-allowed}.mgd-dialog{border:0;border-radius:16px;width:min(448px,calc(100% - 24px));max-height:calc(100% - 24px);padding:0;margin:auto;box-shadow:0 12px 48px #0003;overflow:auto}.mgd-dialog::backdrop{background:#000b}.mgd-inner{padding:24px;position:relative}.mgd-dialog h2{font-size:21px;margin:0 32px 4px 0;color:inherit}.mgd-dialog h3{font-size:20px;margin:0 0 16px;color:inherit}.mgd-close{position:absolute;right:16px;top:16px;background:transparent;border:0;color:inherit;font-size:26px!important}.mgd-step-label{font-size:14px;opacity:.7;margin:0 0 18px}.mgd-progress{border-top:1px solid #8882;padding:20px 0 34px;display:flex;position:relative;justify-content:space-around}.mgd-progress:before{content:'';position:absolute;top:32px;left:17%;right:17%;height:7px;background:#eee}.mgd-progress div{z-index:1;text-align:center;flex:1;font-size:15px}.mgd-progress span{display:flex;align-items:center;justify-content:center;margin:0 auto 6px;width:32px;height:32px;border-radius:50%;background:#eee;color:#111}.mgd-progress .active span{background:var(--mgd-accent)}.mgd-amounts{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:28px}.mgd-amounts button,.mgd-back{background:transparent;color:inherit;border:1px solid currentColor}.mgd-amounts button.selected{background:var(--mgd-accent);color:#111;border-color:#0002}.mgd-dialog label{display:block;font-size:13px;font-weight:600;margin:0 0 16px}.mgd-dialog input:not([type=hidden]){display:block;width:100%;box-sizing:border-box;margin-top:8px;border:1px solid #bbb;border-radius:8px;background:var(--mgd-bg);color:inherit;padding:10px 12px;font:inherit;font-size:16px}.mgd-actions{display:flex;gap:12px;margin-top:36px}.mgd-summary{white-space:pre-line;background:#8881;padding:16px;border-radius:8px}.mgd-dialog [hidden]{display:none!important}.mgd-dialog button:focus-visible{outline:2px solid currentColor;outline-offset:2px}@media(max-width:360px){.mgd-inner{padding:16px}.mgd-amounts{gap:6px}.mgd-amounts button{padding:10px 4px}}

.mgd-search-wrap{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:16px}.mgd-search-wrap label{flex:0 0 100%;font-weight:600;font-size:14px}.mgd-search-wrap .mgd-search{flex:1 1 180px;min-width:0;box-sizing:border-box;width:100%;border:1px solid #bbb;border-radius:10px;padding:13px 16px;font:inherit;background:#fff;color:#111}.mgd-search-clear{border:1px solid #bbb;border-radius:8px;background:#fff;color:#111;padding:12px 16px;font:inherit;cursor:pointer}.mgd-directory [hidden]{display:none!important}.mgd-search-status{margin:0 0 16px;font-size:14px}.mgd-search-status:empty{margin:0}.mgd-search:focus-visible,.mgd-search-clear:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.mgd-page-full{position:relative;isolation:isolate;width:100vw;max-width:none!important;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);min-height:100vh;min-height:100dvh;box-sizing:border-box;padding:clamp(16px,4vw,48px);overflow:hidden}.mgd-page-media{position:absolute;inset:0;z-index:-1;pointer-events:none;background:#222}.mgd-page-media img,.mgd-page-media video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;max-width:none}.mgd-page-overlay{position:absolute;inset:0}.mgd-page-content{position:relative}.mgd-page-full .mgd-search-status:not(:empty){background:#fff;color:#111;padding:8px 12px;border-radius:8px;width:fit-content}@media(prefers-reduced-motion:reduce){.mgd-page-media video{visibility:hidden}}
/* Full viewport backdrop, independent of shortcode container spacing. */
.mgd-page-full{width:100%;max-width:none!important;margin:0;min-height:100vh;min-height:100dvh;overflow:visible;isolation:auto;position:relative;z-index:auto}.mgd-page-full .mgd-page-media{position:fixed;inset:0;z-index:0;width:100%;height:100%;overflow:hidden}.mgd-page-full .mgd-page-content{z-index:1}.mgd-page-full .mgd-page-media img,.mgd-page-full .mgd-page-media video{height:100%;width:100%;object-fit:cover}.mgd-page-full .mgd-page-content{max-width:1280px;margin-inline:auto}.mgd-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:24px}.mgd-card{border:1px solid #8882;border-radius:24px;box-shadow:0 12px 35px #0002;transition:transform .25s,box-shadow .25s;display:flex;flex-direction:column}.mgd-card:hover{transform:translateY(-4px);box-shadow:0 18px 45px #0003}.mgd-card-body{display:flex;flex-direction:column;align-items:flex-start;flex:1;gap:12px;padding:24px}.mgd-card-body h3{font-size:clamp(20px,2vw,26px);line-height:1.2;margin:0;color:inherit}.mgd-card-body p{margin:0 0 10px}.mgd-card-body .mgd-open{margin-top:auto;border-radius:999px;padding:14px 20px}.mgd-giving{width:58px;height:58px;border-radius:20px;background:var(--mgd-icon-bg);color:var(--mgd-icon);display:grid;place-items:center}.mgd-giving svg{width:36px;height:36px}.mgd-heart{transform-origin:24px 14px;animation:mgd-heartbeat 2.4s ease-in-out infinite}@keyframes mgd-heartbeat{0%,45%,100%{transform:scale(1)}12%{transform:scale(1.15)}24%{transform:scale(.98)}34%{transform:scale(1.1)}}.mgd-search-wrap{position:relative;max-width:720px;margin:0 auto 28px;padding:6px 10px 6px 20px;border-radius:999px;background:#fff;box-shadow:0 8px 30px #0002;border:1px solid #8882;flex-wrap:nowrap;gap:10px}.mgd-search-icon{width:23px;height:23px;flex:none;color:#64748b}.mgd-search-wrap .mgd-search{border:0;background:transparent;padding:12px 4px;box-shadow:none;outline-offset:0;min-width:0}.mgd-search-clear{border:0;border-radius:999px;background:#f1f5f9;padding:9px 14px}.mgd-search-wrap:focus-within{outline:2px solid #64748b}.mgd-search-status{text-align:center;margin-inline:auto!important}.mgd-card[hidden]{display:none!important}@media(prefers-reduced-motion:reduce){.mgd-heart{animation:none}.mgd-card{transition:none}.mgd-card:hover{transform:none}}@media(max-width:600px){.mgd-page-full{padding:20px 12px}.mgd-grid{gap:16px}.mgd-search-wrap{padding-left:12px}.mgd-card-body{padding:20px}}
.mgd-card:has(dialog[open]){transform:none}
