/* generated by _src/build.mjs from _src/parts/campaigns.css */
/* ------------------------------------------------------------ live campaigns (cm-) */
/* a slim hero: one line of title, the three numbers beside it, the ticker under them.
 * The board is the page, so it starts on the first screen. */
.p-hero.cm-hero { min-height: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 22px; padding: 20px 26px 22px; }
.cm-hero-in { position: relative; z-index: 4; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: end; }
.cm-hero-copy { display: grid; justify-items: start; gap: 10px; min-width: 0; }
.cm-h { font-size: clamp(34px, 4.4cqi, 62px); font-weight: 600; line-height: 1; letter-spacing: -.05em; color: #F6F5F2; text-wrap: balance; }
.cm-h .dim { color: rgba(246, 245, 242, .34); }
.cm-h > span { display: inline; }
.cm-h br { display: none; }
.cm-h .dim { margin-inline-end: .24em; }
.cm-sub { color: rgba(246, 245, 242, .62); font-size: 16px; line-height: 1.45; max-width: 46ch; }
.cm-totals { display: grid; grid-template-columns: repeat(3, minmax(108px, auto)); gap: 8px; }
.cm-total { border-radius: 18px; padding: 12px 16px; background: rgba(246, 245, 242, .05); box-shadow: inset 0 0 0 1px rgba(246, 245, 242, .09); display: grid; gap: 4px; min-width: 0; }
.cm-total .mono { color: rgba(246, 245, 242, .5); font-size: 10.5px; white-space: nowrap; }
.cm-total b { color: #F6F5F2; font-size: clamp(22px, 2.2cqi, 30px); font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.cm-hero .cm-ticker { position: relative; z-index: 4; }
.cm-ticker { overflow: hidden; border-radius: 999px; background: rgba(246, 245, 242, .05); box-shadow: inset 0 0 0 1px rgba(246, 245, 242, .08); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.cm-ticker-in { display: flex; width: max-content; gap: 28px; padding: 11px 18px; animation: cmtick 48s linear infinite; }
.cm-ticker-in span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: rgba(246, 245, 242, .7); font-size: 13px; }
.cm-ticker-in b { color: #F6F5F2; font-weight: 600; font-variant-numeric: tabular-nums; }
@keyframes cmtick { to { transform: translateX(-50%); } }
.cm-live-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--live); flex: none; display: inline-block; }
/* the pulse is a ring that grows and fades on transform and opacity alone (7px + 7px each side = scale 3) */
.cm-live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(235, 74, 30, .55); opacity: 0; animation: cmpulse 1.8s ease-out infinite; pointer-events: none; }
.cm-live-dot.off { background: rgba(246, 245, 242, .3); }
.cm-live-dot.off::after { animation: none; }
@keyframes cmpulse { 0% { transform: scale(1); opacity: 1; } 70%, 100% { transform: scale(3); opacity: 0; } }

/* the bar */
.cm-bar { position: sticky; top: 76px; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 22px; padding: 8px; border-radius: 22px; background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--hair), var(--float); }
.cm-filters { display: flex; gap: 4px; flex-wrap: wrap; }
.cm-f { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 0; border-radius: 14px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .25s ease, color .25s ease; }
.cm-f em { font-style: normal; font-size: 12px; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--tile); color: var(--muted); font-variant-numeric: tabular-nums; }
.cm-f:hover { color: var(--ink); background: var(--row-hover); }
.cm-f.is-on { background: var(--ink); color: var(--canvas); }
.cm-f.is-on em { background: rgba(255, 255, 255, .16); color: inherit; }
.cm-search { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; background: rgba(28, 27, 26, .07); box-shadow: none; min-width: 0; transition: box-shadow 160ms ease, background-color 160ms ease; }
@media (max-width: 639px), (pointer: coarse) { .cm-search, .cm-sort select { height: 44px; } }
.cm-search svg { width: 17px; height: 17px; fill: none; stroke: var(--faint); stroke-width: 2; flex: none; }
.cm-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink); }
.cm-search:focus-within { background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 0 0 3px rgba(11, 11, 11, .22); }
.cm-sort select:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--line), 0 0 0 3px rgba(11, 11, 11, .22); }
.cm-sort select { height: 40px; padding: 0 34px 0 12px; border: 0; border-radius: 10px; background: rgba(28, 27, 26, .07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6E73' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px; box-shadow: none; font: inherit; font-size: 14px; color: var(--ink); appearance: none; cursor: pointer; }

/* the featured campaign: a full row of the board */
/* the featured campaigns: each takes two places of the grid (a whole row on a phone), the same height as the cards beside it */
.cm-feat { container: feat / inline-size; display: flex; min-width: 0; }
@container board (min-width: 540px) { .cm-feat { grid-column: span 2; } .cm-grid { grid-auto-rows: 1fr; } }
.cm-feat-in { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100%; border-radius: 30px; overflow: hidden; background: #0B0B0C; color: #F6F5F2; text-decoration: none; position: relative; box-shadow: 0 30px 80px -34px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(24px) scale(.985); transition: opacity .8s ease, transform 1s var(--spring), box-shadow .35s ease; }
.cm-feat-in.is-in { opacity: 1; transform: none; }
.cm-feat-in.is-in:hover { box-shadow: 0 34px 90px -30px color-mix(in srgb, var(--accent) 60%, rgba(0, 0, 0, .55)); }
.cm-feat-img { position: relative; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 40%, #111), #111); }
.cm-feat-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.6s var(--spring); }
.cm-feat-in:hover .cm-feat-img > img { transform: scale(1.07); }
.cm-feat-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 62%, #0B0B0C); pointer-events: none; }
.cm-feat-img .cm-img-none { position: absolute; inset: 0; }
.cm-feat-img .cm-chip { top: 16px; left: 16px; }
.cm-feat-copy { display: flex; flex-direction: column; gap: 14px; padding: 22px 22px 20px 16px; position: relative; min-width: 0; }
.cm-feat-copy::before { content: ""; position: absolute; top: -30%; right: -20%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 42%, transparent), transparent); filter: blur(30px); opacity: .5; pointer-events: none; }
.cm-feat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; }
.cm-feat-k { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(246, 245, 242, .08); box-shadow: inset 0 0 0 1px rgba(246, 245, 242, .12); color: #F6F5F2; font-size: 11px; }
.cm-feat-k svg { width: 14px; height: 14px; fill: var(--live); stroke: var(--live); stroke-width: 1.4; stroke-linejoin: round; }
.cm-feat-logo { width: 44px; height: 44px; border-radius: 14px; overflow: hidden; background: #fff; flex: none; }
.cm-feat-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-feat-copy h3 { font-size: clamp(20px, 3.4cqi, 28px); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; position: relative; unicode-bidi: plaintext; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cm-feat-stats { display: flex; align-items: center; gap: 18px; position: relative; }
.cm-feat-stats .cm-ring-wrap { width: 72px; flex: none; }
.cm-feat-stats .cm-ring-bg { stroke: rgba(246, 245, 242, .12); }
.cm-feat-stats .cm-ring-n b { font-size: 18px; }
.cm-feat-stats .cm-ring-n b, .cm-feat-stats .cm-ring-n i { color: #F6F5F2; }
.cm-feat-sum { flex: 1; min-width: 0; display: grid; gap: 4px; }
.cm-feat-sum .cm-raised { font-size: clamp(24px, 4.2cqi, 34px); color: #F6F5F2; }
.cm-feat-sum small { color: rgba(246, 245, 242, .6); font-size: 14px; }
.cm-feat-sum .cm-line { background: rgba(246, 245, 242, .12); max-width: 320px; }
.cm-feat-in.is-in .cm-line i { transform: scaleX(1); }
.cm-feat-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; position: relative; }
.cm-feat-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: rgba(246, 245, 242, .66); font-size: 14px; }
.cm-feat-facts span { display: inline-flex; align-items: baseline; gap: 6px; }
.cm-feat-facts b { color: #F6F5F2; font-size: 18px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cm-feat-facts svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; align-self: center; }

@container feat (max-width: 539px) {
  .cm-feat-in { grid-template-columns: minmax(0, 1fr); }
  .cm-feat-img { aspect-ratio: 16 / 9; }
  .cm-feat-img::after { background: linear-gradient(180deg, transparent 60%, #0B0B0C); }
  .cm-feat-copy { padding: 6px 20px 22px; }
  .cm-feat-copy h3 { font-size: 22px; }
}
.cm-feat .btn { height: 40px; padding: 0 16px; font-size: 14px; }

/* grid + cards: featured cards first; a regular card fills any place a featured one leaves open */
.cm-board { container: board / inline-size; }
.cm-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-flow: row dense; gap: 14px; }
@container board (min-width: 540px) { .cm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container board (min-width: 660px) { .cm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container board (min-width: 900px) { .cm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* a narrow card (four to a row) keeps every number whole: a smaller ring, a smaller figure */
.cm-card { container: card / inline-size; }
@container card (max-width: 290px) {
  .cm-body { padding: 28px 16px 16px; gap: 12px; }
  .cm-body h3 { font-size: 16.5px; }
  .cm-prog { gap: 11px; }
  .cm-ring-wrap { width: 60px; }
  .cm-ring-n b { font-size: 16px; }
  .cm-raised { font-size: 20px; }
  .cm-prog small, .cm-prog-plain small { font-size: 12.5px; }
  .cm-meta { font-size: 12.5px; gap: 6px 10px; }
}
.cm-card { display: flex; flex-direction: column; min-width: 0; border-radius: 26px; overflow: hidden; background: var(--card); color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1px var(--hair), 0 1px 2px rgba(0, 0, 0, .03); opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .9s var(--spring), box-shadow .35s ease; transition-delay: calc(var(--i, 0) * 60ms); }
.cm-card.is-in { opacity: 1; transform: none; }
.cm-card.is-in:hover { transform: translateY(-6px); transition-delay: 0ms; box-shadow: inset 0 0 0 1px var(--hair), 0 26px 60px -24px color-mix(in srgb, var(--accent) 55%, rgba(0, 0, 0, .35)); }
.cm-img { position: relative; aspect-ratio: 16 / 9; background: var(--tile); }
.cm-img-clip { position: absolute; inset: 0; overflow: hidden; }
.cm-img-clip img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--spring); }
.cm-card:hover .cm-img-clip img { transform: scale(1.06); }
.cm-img-clip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .28), transparent 38%, transparent 70%, rgba(0, 0, 0, .18)); pointer-events: none; }
.cm-img-none { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(120% 120% at 20% 10%, color-mix(in srgb, var(--accent) 55%, #fff), color-mix(in srgb, var(--accent) 85%, #000)); }
.cm-img-none span { font-size: 64px; font-weight: 600; color: rgba(255, 255, 255, .85); letter-spacing: -.04em; }
.cm-chip { position: absolute; z-index: 2; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .95); color: var(--ink); }
.cm-chip-active { background: rgba(11, 11, 12, .82); color: #fff; }
.cm-chip-past { color: var(--muted); }
.cm-chip-demo { position: static; }
.cm-logo { position: absolute; z-index: 2; left: 14px; bottom: -22px; width: 48px; height: 48px; border-radius: 15px; overflow: hidden; background: #fff; box-shadow: 0 0 0 3px var(--card), 0 6px 16px rgba(0, 0, 0, .14); }
.cm-logo img { width: 100%; height: 100%; object-fit: cover; }
.cm-body { display: flex; flex-direction: column; gap: 14px; padding: 30px 20px 18px; flex: 1; }
.cm-body h3 { font-size: 18px; font-weight: 600; line-height: 1.22; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.44em; unicode-bidi: plaintext; }
.cm-prog { display: flex; align-items: center; gap: 14px; }
.cm-prog-txt { flex: 1; min-width: 0; display: grid; gap: 3px; }
.cm-raised { font-size: 24px; font-weight: 600; letter-spacing: -.035em; font-variant-numeric: tabular-nums; line-height: 1.05; overflow-wrap: anywhere; }
.cm-prog small, .cm-prog-plain small { color: var(--muted); font-size: 13px; }
.cm-prog-plain { display: grid; gap: 3px; }
.cm-line { height: 4px; border-radius: 4px; background: var(--track); overflow: hidden; margin-top: 6px; }
.cm-line i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--spring) .25s; }
.cm-card.is-in .cm-line i { transform: scaleX(1); }
.cm-meta { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-top: 14px; border-top: 1px solid var(--hair); color: var(--muted); font-size: 13px; }
.cm-meta span { display: inline-flex; align-items: center; gap: 6px; }
.cm-meta .cm-lc { font-size: inherit; text-transform: lowercase; }
.cm-meta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cm-go { margin-left: auto; color: var(--ink); font-weight: 600; gap: 4px !important; }
.cm-go svg { transition: transform .35s var(--spring); }
.cm-card:hover .cm-go svg { transform: translateX(4px); }

/* the board begins higher: the hero already introduced the page */
.cm-board { padding-top: 22px; }
.cm-board .sec-head { margin-bottom: 16px; }
.cm-board .sec-head h2 { font: inherit; letter-spacing: inherit; }

/* the ring */
.cm-ring-wrap { position: relative; width: 74px; flex: none; aspect-ratio: 1; }
.cm-ring { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
/* the ring scales with its drawing: the global svg rule would pin the stroke
 * at 11 screen px and turn a 74px ring into a fat donut */
.cm-ring circle { fill: none; stroke-width: 11; vector-effect: none; }
.cm-ring-bg { stroke: var(--track); }
.cm-ring-fg { stroke: var(--accent, var(--live)); stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1.5s var(--spring) .15s; }
.is-in .cm-ring-fg, .cm-ring-demo.is-in .cm-ring-fg, .reveal.is-in .cm-ring-fg { stroke-dasharray: var(--p) 100; }
.cm-ring-n { position: absolute; inset: 0; display: grid; place-items: center; grid-auto-flow: column; align-content: center; justify-content: center; gap: 1px; }
.cm-ring-n b { font-size: 19px; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.cm-ring-n i { font-style: normal; font-size: 11px; color: var(--muted); align-self: start; margin-top: 3px; }
/* reached goals say so with colour alone — the old glow drop-shadow smeared on card colours */

/* skeleton + empty */
.cm-skel { opacity: 1; transform: none; min-height: 360px; position: relative; }
.cm-skel i { display: block; aspect-ratio: 16 / 9; background: var(--tile); }
.cm-skel b { display: block; height: 14px; margin: 18px 20px 0; border-radius: 7px; background: var(--tile); }
.cm-skel b:nth-of-type(2) { width: 60%; }
.cm-skel b:nth-of-type(3) { width: 40%; height: 26px; }
/* the shimmer slides on transform (the sheen is 220% wide, as the old background-size was) */
.cm-skel::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 220%; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-65.45%); animation: cmshim 1.4s linear infinite; pointer-events: none; }
@keyframes cmshim { from { transform: translateX(-65.45%); } to { transform: translateX(65.45%); } }
.cm-empty { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 64px 20px; border-radius: 26px; background: var(--card); box-shadow: inset 0 0 0 1px var(--hair); }
.cm-empty b { font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.cm-empty p { color: var(--muted); max-width: 40ch; }

/* how to read */
.cm-read-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cm-read-card { border-radius: 24px; padding: 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--hair); display: grid; align-content: start; gap: 12px; }
.cm-read-card b { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.cm-read-card p { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.cm-ring-demo { width: 64px; height: 64px; --accent: var(--live); }
.cm-read-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--ink); color: var(--canvas); }
.cm-read-ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cm-big-n { font-size: 40px; font-weight: 600; letter-spacing: -.05em; line-height: 1; }

:root[data-theme="dark"] .cm-skel::after { background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .06) 50%, transparent 70%); background-size: 220% 100%; }
:root[data-theme="dark"] .cm-chip { background: rgba(28, 27, 26, .94); color: #F6F5F2; }
:root[data-theme="dark"] .cm-f.is-on { background: #F6F5F2; color: #0B0B0B; }

@media (max-width: 1023px) {
  .cm-hero-in { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .cm-totals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cm-read-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cm-bar { top: 70px; }
}
@media (max-width: 720px) {
  .p-hero.cm-hero { padding: 16px 16px 18px; gap: 16px; }
  .cm-h { font-size: clamp(30px, 9vw, 40px); }
  .cm-sub { font-size: 15px; }
  .cm-totals { gap: 6px; }
  .cm-total { padding: 10px 12px; border-radius: 16px; }
  .cm-total .mono { font-size: 10px; }
  .cm-total b { font-size: 21px; }
  .cm-read-grid { grid-template-columns: minmax(0, 1fr); }
  .cm-bar { position: static; padding: 6px; border-radius: 18px; -webkit-backdrop-filter: none; backdrop-filter: none; }
  /* phones: no backdrop blur behind the hero totals and the card chips; the chip keeps its contrast with a firmer fill */
  .cm-total, .cm-chip { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .cm-chip-active { background: rgba(11, 11, 12, .74); }
  .cm-filters { width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .cm-f { flex: none; padding: 0 12px; }
  .cm-sort { flex: none; }
  .cm-feat-foot .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cm-card, .cm-feat-in { opacity: 1; transform: none; transition: none; }
  .cm-ring-fg, .cm-line i { transition: none; }
  .cm-ticker-in, .cm-live-dot::after { animation: none; }
  .cm-skel::after { animation: none; opacity: 0; }
}

/* a hidden message stays hidden (its own display rule must not bring it back) */
.cm-empty[hidden], .cm-feat[hidden] { display: none; }
/* the filter bar that stays on screen is solid, above the cards that pass under it */
.cm-bar { z-index: 20; background: var(--canvas); }
