/* The cause card for other websites (27 Oct 2026, views/embed_card.php, Services\EmbedCard). The only stylesheet of a page
   that lives in an iframe on someone else's site, so it is small and stands alone: the Daylight and Lamplight colours of
   app.css (copied, same values), the headline face for the title and the amount only (the body text uses the reader's
   system font, so a card on a news page fetches one font file at most), the stamp of "Stamped and filed" for the fee line.
   The theme is a class on the root: ec-t-auto follows the reader's device, ec-t-light and ec-t-dark are fixed. The page
   background stays transparent and no color-scheme is declared, so the browser never paints an opaque box around the card.
   The card fills the frame; its picture takes the height the text leaves. Two columns from 560 px. No animation. */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  src: url("/assets/fonts/bricolage-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  src: url("/assets/fonts/bricolage-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --surface: #FFFFFF; --surface-2: #F4EFE7; --line: #E8E1D5; --line-strong: #D3C9B9;
  --ink: #1F1C18; --ink-2: #48423A; --ink-3: #5F584F;
  --gold: #F0B03A; --gold-deep: #DE9A1E; --on-gold: #1F1C18;
  --green: #13693F; --green-soft: #DCF2E4; --pen: #1F5A3D; --focus: #1F5AE0;
  --forest: #173B2A; --forest-ink: #F7F2E8; --photo-filter: none;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
:root.ec-t-dark {
  --surface: #262421; --surface-2: #302D29; --line: #37332E; --line-strong: #4B463F;
  --ink: #E9E3D8; --ink-2: #C7BFB2; --ink-3: #A89F92;
  --gold: #F2BD51; --gold-deep: #E3A93E; --on-gold: #1B1A18;
  --green: #74D4A2; --green-soft: #173126; --pen: #8FD9B0; --focus: #8AB4FF;
  --forest: #14271D; --forest-ink: #ECE6DA; --photo-filter: brightness(.88) saturate(.94);
}
@media (prefers-color-scheme: dark) {
  :root.ec-t-auto {
    --surface: #262421; --surface-2: #302D29; --line: #37332E; --line-strong: #4B463F;
    --ink: #E9E3D8; --ink-2: #C7BFB2; --ink-3: #A89F92;
    --gold: #F2BD51; --gold-deep: #E3A93E; --on-gold: #1B1A18;
    --green: #74D4A2; --green-soft: #173126; --pen: #8FD9B0; --focus: #8AB4FF;
    --forest: #14271D; --forest-ink: #ECE6DA; --photo-filter: brightness(.88) saturate(.94);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: transparent; }
body { overflow: hidden; font: 400 15px/1.4 var(--font-body); color: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.ic { width: 18px; height: 18px; flex: none; }
.ec-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ec { height: 100%; display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.ec-media { position: relative; flex: 1 1 auto; min-height: 88px; background: var(--surface-2); overflow: hidden; }
.ec-media img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter); }
.ec-media.is-empty { display: grid; place-items: center; background: var(--forest); color: var(--forest-ink); }
.ec-media-mark .ec-mark { width: 44px; height: 44px; color: var(--forest-ink); }
.ec-body { flex: none; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px 16px 12px; }
.ec-head { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.ec-head-text { min-width: 0; flex: 1 1 auto; }
.ec-title { margin: 0; font: 700 1.12rem/1.18 var(--font-head); letter-spacing: -.02em; color: var(--ink); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ec-org { margin: 5px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .84rem; color: var(--ink-2); min-width: 0; }
.ec-org-name { font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-trust { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: .74rem; font-weight: 600; max-width: 100%; }
.ec-trust.is-verified { background: var(--green-soft); color: var(--green); }
.ec-trust .ic { width: 13px; height: 13px; }

.ec-sum { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; color: var(--ink-3); font-size: .86rem; }
.ec-raised { font: 650 1.5rem/1.05 var(--font-head); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
progress.ec-bar { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 8px; margin: 8px 0 0; border: 0; border-radius: 999px; background: var(--surface-2); overflow: hidden; color: var(--gold); }
progress.ec-bar::-webkit-progress-bar { background: var(--surface-2); border-radius: 999px; }
progress.ec-bar::-webkit-progress-value { background: var(--gold); border-radius: 999px; }
progress.ec-bar::-moz-progress-bar { background: var(--gold); border-radius: 999px; }
.ec-counts { margin: 6px 0 0; display: flex; justify-content: space-between; gap: 8px; color: var(--ink-3); font-size: .8rem; font-variant-numeric: tabular-nums; }
.ec-funded { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-weight: 650; }
.ec-funded .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.ec-calm { margin: 0; color: var(--ink-2); font-size: .9rem; }

.ec-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.ec-btn { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px;
  border: 1.5px solid transparent; background: var(--gold); color: var(--on-gold); font: 700 1rem/1.1 var(--font-head); letter-spacing: -.01em; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 16px -10px rgba(222, 154, 30, .9); transition: background-color .15s, border-color .15s; }
.ec-btn:hover { background: var(--gold-deep); }
.ec-btn-quiet { flex: none; background: transparent; color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.ec-btn-quiet:hover { background: transparent; border-color: var(--ink); }
.ec-proof { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--pen); font-weight: 650; font-size: .9rem;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ec-proof .ic { width: 15px; height: 15px; }
.ec-btn:focus-visible, .ec-proof:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ec-soon { flex: 1 1 auto; margin: 0; padding: 12px 16px; border-radius: 999px; border: 1.5px dashed var(--line-strong); color: var(--ink-2); font-weight: 600; text-align: center; }

.ec-foot { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; padding-right: 2px; color: var(--ink-3); }
.ec-brand { display: inline-flex; align-items: center; gap: 6px; font: 760 .86rem/1 var(--font-head); letter-spacing: -.02em; color: var(--ink); }
.ec-mark { width: 18px; height: 18px; color: var(--ink); }
.ec-gold { stroke: var(--gold); }
.ec-gold-fill { fill: var(--gold); }
/* The stamp of "Stamped and filed" (app.css .stamp-card): double ruled, ledger green, a little tilted. Never over a photo. */
.ec-stamp { display: inline-flex; align-items: center; max-width: 100%; padding: 3px 7px 2px; border: 2px solid currentColor; border-radius: 6px;
  box-shadow: inset 0 0 0 2px var(--surface), inset 0 0 0 3.5px currentColor; color: var(--pen); font: 760 .62rem/1.2 var(--font-head);
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; -webkit-transform: rotate(-2deg); transform: rotate(-2deg); }

/* The AI badge of the site (app.css .ai-badge), the same sparkles and the same words on hover or focus. */
.ai-badge { position: absolute; top: 10px; right: 10px; z-index: 2; width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(24, 20, 15, .5); color: #fff; display: flex; align-items: center; justify-content: center; cursor: help; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ai-badge svg { width: 15px; height: 15px; fill: currentColor; opacity: .9; }
.ai-badge::after { content: attr(data-label); position: absolute; top: 50%; right: calc(100% + 6px); -webkit-transform: translateY(-50%); transform: translateY(-50%);
  white-space: nowrap; font: 600 .78rem/1 var(--font-body); color: #fff; background: rgba(24, 20, 15, .92); padding: 7px 10px; border-radius: 8px;
  opacity: 0; visibility: hidden; transition: opacity .15s ease; pointer-events: none; }
.ai-badge:hover::after, .ai-badge:focus::after { opacity: 1; visibility: visible; }
.ai-badge:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Compact, for a sidebar: no big picture, a thumbnail beside the title (it carries the AI badge), the button and the link below. */
.ec-compact .ec-body { flex: 1 1 auto; justify-content: space-between; gap: 8px; padding: 12px 14px; }
.ec-compact .ec-title { font-size: 1rem; }
.ec-compact .ec-raised { font-size: 1.25rem; }
.ec-compact .ec-btn { min-height: 44px; }
/* Donations open soon on one line in a 300 px sidebar (ro, es), so the proof link keeps its row. */
.ec-compact .ec-soon { padding: 8px 12px; font-size: .88rem; }
.ec-compact .ec-foot .ec-proof { min-height: 36px; font-size: .86rem; }
.ec-thumb { position: relative; flex: none; width: 56px; height: 56px; }
.ec-thumb img { display: block; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--surface-2); filter: var(--photo-filter); }
.ec-thumb .ai-badge { top: -4px; right: -4px; width: 22px; height: 22px; }
.ec-thumb .ai-badge svg { width: 12px; height: 12px; }
.ec-thumb .ai-badge::after { right: auto; left: calc(100% + 6px); }

/* A frame narrower than 340 px: the stamp a little smaller, so its tilted corners stay inside the card. */
@media (max-width: 339px) {
  .ec-stamp { font-size: .56rem; letter-spacing: .05em; padding: 3px 6px 2px; }
}

/* The neutral card: the page is not open (paused, ended, gone). The message and one quiet link, nothing else. */
.ec-closed .ec-body { flex: 1 1 auto; justify-content: center; align-items: flex-start; gap: 12px; padding: 20px; }
.ec-msg { margin: 0; color: var(--ink-2); font-size: .95rem; }
.ec-foot-top { justify-content: flex-start; }

@media (min-width: 560px) {
  .ec-full { flex-direction: row; }
  .ec-full .ec-media { flex: 0 0 44%; min-height: 0; }
  .ec-full .ec-body { flex: 1 1 auto; justify-content: center; gap: 14px; padding: 20px 22px; }
  .ec-full .ec-title { font-size: 1.32rem; -webkit-line-clamp: 3; }
  .ec-full .ec-raised { font-size: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ec-btn, .ai-badge::after { transition: none; }
}
