/* ============================================================
   TEN GRAND — Community Wall
   Reuses tokens/classes from style.css (colors, .site-frame, .nav,
   .section-eyebrow, .site-footer). Role accent colors are drawn from
   the shared saturated thermal reference palette.
   ============================================================ */

:root {
  --cw-max-width: 1100px;
  /* Page-level accent -- replaces the site's default orange
     (var(--color-accent)) everywhere on this page, matching the
     bridge artwork's mountain gradient (#br-pink-gradient's #fb2f7b). */
  --cw-color-accent: #fb2f7b;
  --cw-color-create: var(--thermal-yellow);
  --cw-color-build: var(--thermal-red);
  --cw-color-fund: var(--thermal-green);
  --cw-color-support: var(--thermal-cyan);
  --cw-color-create-blend: var(--thermal-lime);
  --cw-color-build-blend: var(--thermal-cherry);
  --cw-color-fund-blend: var(--thermal-lime);
  --cw-color-support-blend: var(--thermal-blue);
}

main {
  display: block;
}

.cw-inner {
  max-width: var(--cw-max-width);
  margin: 0 auto;
  padding: 0 var(--section-padding-x);
  box-sizing: border-box;
}

.cw-hero,
.cw-stats,
.cw-ticker,
.cw-broadcasts,
.cw-campaigns,
.cw-resources {
  width: 100%;
  box-sizing: border-box;
}

/* ---------- Shared: sample-data badge (same treatment as the
   Transmissions archive's SAMPLE badge) ---------- */

.sample-badge {
  display: inline-block;
  background: var(--cw-color-accent);
  color: var(--color-text);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  margin-bottom: 16px;
}

/* ---------- Shared section header (/ LABEL + subtitle + link) ---------- */

.cw-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cw-section-header__title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.cw-section-header__slash {
  color: var(--cw-color-accent);
  font-weight: 700;
}

.cw-section-header__subtitle {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 6px;
}

.cw-section-header__link {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}

.cw-section-header__link[aria-disabled="true"] {
  color: var(--color-text-muted);
  pointer-events: none;
}

/* ---------- Hero ---------- */

.cw-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--color-card-border);
  padding: 32px 0;
  background: #062d30;
}

/* Defined thermal pools: saturated centers, broad colored bands, no blur filter. */
.cw-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 47% 65% at 49% 66%, #08191beF 25%, #062b2bd9 52%, transparent 100%),
    radial-gradient(ellipse 34% 55% at 3% -4%, #ff142a 12%, #ff3920 30%, #ffcf00 49%, #c9f000 61%, #16ca7a 77%, transparent 100%),
    radial-gradient(ellipse 40% 58% at 94% 8%, #ff102f 8%, #ff4420 28%, #ffcd00 48%, #b5ed00 61%, #00ceab 79%, transparent 100%),
    radial-gradient(ellipse 35% 53% at 0% 104%, #ff1730 14%, #ff4820 33%, #ffda00 53%, #9ddd00 65%, transparent 100%),
    radial-gradient(ellipse 34% 57% at 103% 107%, #ff252b 12%, #ff6a00 32%, #ebee00 53%, #22df76 70%, transparent 100%),
    radial-gradient(ellipse 32% 40% at 85% 70%, #009cfa 15%, #00c9d7 47%, transparent 100%),
    radial-gradient(ellipse 33% 42% at 2% 48%, #00a9fa 17%, #00cdb8 53%, transparent 100%),
    radial-gradient(ellipse 35% 45% at 39% -5%, #009bf1 15%, #00beaa 50%, transparent 100%);
}

.cw-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 1400px;
}

.cw-hero__heading {
  width: min(100%, 720px);
  margin: 0;
  line-height: 0;
}

.cw-hero__art {
  display: block;
  width: 100%;
  height: auto;
}

.cw-hero__accessible-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.cw-hero__subtitle {
  max-width: 100%;
  margin: 0;
  font-size: clamp(0.85rem, 1.5vw, 1.15rem);
  color: #e0e9e8;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}

/* Desktop leaves room for navigation and the member-count strip. */
@media (min-width: 760px) {
  .cw-hero { padding: 16px 0; }
  .cw-hero__inner { gap: 8px; }
  .cw-hero__heading {
    width: min(100%, calc(clamp(220px, 43svh, 360px) * 1.4336));
  }
  .cw-hero__subtitle { font-size: 0.95rem; }
}

.cw-globe {
  display: block;
  width: 100%;
  height: auto;
}

/* The blink animation is baked into community-wall-eye-blink.svg itself
   (SMIL <animate>, so it plays as a plain <img>) -- this just picks
   between it and the static open-eye frame used under reduced motion. */
.cw-globe--static {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .cw-globe--motion {
    display: none;
  }
  .cw-globe--static {
    display: block;
  }
}

/* ---------- Member count stats ---------- */

.cw-stats {
  border-bottom: 1px solid var(--color-card-border);
}

/* Total row: full-bleed border on the outer (always full-width) wrapper,
   while the text inside still aligns to the page's shared reading column
   via .cw-inner -- same split used below for .cw-stats__row/.cw-stat. */
.cw-stats__total {
  border-bottom: 1px solid var(--color-card-border);
}

.cw-stats__total-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.cw-stats__total-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Same small-caps solid-color-plus-pulse treatment as the join
   modal's "Doors Open 2027" (and the Voices Heard modal's campaign
   label before it) -- solid --color-vandalism red with
   dilemma-cue-pulse. */
.cw-stats__doors-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-vandalism);
}

@media (prefers-reduced-motion: no-preference) {
  .cw-stats__doors-label,
  .cw-hero__heading .section-eyebrow {
    animation: dilemma-cue-pulse 2s ease-in-out infinite;
  }
}

.cw-stats__total-number {
  font-size: clamp(1.8rem, 8vw, 2.4rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.cw-stats__total-label {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.cw-stats__join-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.cw-stats__join {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-text);
  cursor: pointer;
  white-space: nowrap;
}

/* One flex row of all four stats, wrapping to two 2-up rows on mobile
   (see the nth-child borders below for that 2x2 divider cross) and
   forced onto a single straight line on desktop (min-width:760px
   override further down disables the wrap and swaps the borders for
   one continuous row of dividers). */
.cw-stats__row {
  display: flex;
  flex-wrap: wrap;
}

.cw-stat {
  flex: 1 1 50%;
  min-width: 0;
}

/* Mobile 2x2: right border down the middle, bottom border under the
   first visual row (items 1-2) -- together they read as one
   continuous divider cross across the full-bleed block. */
.cw-stat:nth-child(odd) {
  border-right: 1px solid var(--color-card-border);
}

.cw-stat:nth-child(-n+2) {
  border-bottom: 1px solid var(--color-card-border);
}

.cw-stat__inner {
  padding-top: 20px;
  padding-bottom: 20px;
}

.cw-stat__number {
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.cw-stat__label {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cw-stat__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cw-stat__dot--create { background: var(--cw-color-create); }
.cw-stat__dot--build { background: var(--cw-color-build); }
.cw-stat__dot--fund { background: var(--cw-color-fund); }
.cw-stat__dot--support { background: var(--cw-color-support); }

/* ---------- Live ticker ---------- */

.cw-ticker {
  border-bottom: 1px solid var(--color-card-border);
  padding-top: 12px;
  padding-bottom: 12px;
  background: var(--color-bg);
}

.cw-ticker__inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cw-ticker__live {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.cw-ticker__live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text);
  box-shadow: 0 0 6px var(--color-text);
}

@media (prefers-reduced-motion: no-preference) {
  .cw-ticker__live-dot {
    animation: cwLiveDotPulse 1.8s ease-in-out infinite;
  }
}

@keyframes cwLiveDotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* The viewport's overflow:hidden clips any descendant trying to
   render outside ITS OWN box -- so to let a divider reach
   .cw-ticker's top/bottom border, the viewport's own box has to reach
   there first. Negative margins pull it up through .cw-ticker's 12px
   padding (13px on the bottom, to also cross its 1px border-bottom)
   to the section's actual edges; matching padding added back keeps
   the scrolling text itself exactly where it was. Each item then sits
   exactly 12px below the viewport's (new) top edge and 13px above its
   bottom edge -- the same two numbers -- so its own divider (an
   absolutely positioned pseudo-element, not a plain border, so it can
   extend past the item's own short line-height) uses them again to
   land precisely on the now-coincident viewport/section edges. */
.cw-ticker__viewport {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  margin-top: -12px;
  margin-bottom: -13px;
  padding-top: 12px;
  padding-bottom: 13px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.cw-ticker__marquee {
  display: flex;
  width: max-content;
}

@media (prefers-reduced-motion: no-preference) {
  .cw-ticker__marquee {
    animation: cwTickerScroll var(--ticker-duration, 120s) linear infinite;
  }
}

.cw-ticker__viewport:hover .cw-ticker__marquee,
.cw-ticker__viewport:focus-within .cw-ticker__marquee,
.cw-ticker__viewport:active .cw-ticker__marquee {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .cw-ticker__viewport { overflow-x: auto; }
  .cw-ticker__group[aria-hidden="true"] { display: none; }
}

.cw-ticker__item[href]:hover,
.cw-ticker__item[href]:focus-visible {
  color: var(--color-text);
  text-decoration: underline;
}

.cw-voice-card:focus {
  outline: none;
}

.cw-voice-card {
  scroll-margin-top: calc(var(--archive-nav-height, 64px) + var(--archive-header-height, 0px) + 16px);
}

@keyframes cwTickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.cw-ticker__group {
  display: flex;
  flex-shrink: 0;
}

.cw-ticker__item {
  position: relative;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  padding-right: 20px;
  margin-right: 20px;
}

.cw-ticker__item::after {
  content: '';
  position: absolute;
  top: -12px;
  bottom: -13px;
  right: 0;
  width: 1px;
  background: var(--color-card-border);
}

/* ---------- Broadcasts ---------- */

.cw-broadcasts {
  border-bottom: 1px solid var(--color-card-border);
  padding-top: 40px;
  padding-bottom: 40px;
}

.cw-broadcast-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

/* ---------- Campaigns (parent section) ---------- */

.cw-campaigns {
  border-bottom: 1px solid var(--color-card-border);
  padding-top: 40px;
  padding-bottom: 40px;
}

.cw-campaigns__intro {
  margin-bottom: 24px;
}

/* ---------- Voices Heard (one campaign within Campaigns) ---------- */

.cw-campaign {
  padding-top: 0;
}

/* Centered campaign title card; artwork will replace the reserved space. */
.cw-campaign__intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
  margin-bottom: 16px;
  border: 1px solid var(--color-card-border);
  background: var(--color-bg);
  color: var(--color-text);
  text-align: center;
}

/* The shader and its static fallback stay below all card content. */
.cw-campaign__intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 0% 25%, #ff322088, transparent 45%),
    radial-gradient(ellipse at 100% 80%, #00cde877, transparent 45%);
  pointer-events: none;
}
.cw-campaign__heat {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.cw-campaign__artwork {
  width: min(100%, 240px);
  margin-bottom: 20px;
}

.cw-campaign__artwork img {
  display: block;
  width: 100%;
  height: auto;
}

.cw-campaign__title {
  line-height: 0;
}
.cw-campaign__title-bars {
  display: block;
  width: clamp(240px, 70%, 420px);
  margin: 0 auto;
  height: auto;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
}

.cw-campaign__counter {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
}

.cw-campaign__counter-label {
  font-size: .85rem;
  line-height: 1.4;
  letter-spacing: .18em;
}

.cw-campaign__subtitle {
  max-width: 26ch;
  margin: 12px auto 16px;
  color: var(--color-text-muted);
  font-size: .95rem;
  line-height: 1.4;
}

.cw-campaign__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(100%, 280px);
}

.cw-campaign__add-voice,
.cw-campaign__view-all {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--color-text);
  border-radius: 0;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}

.cw-campaign__add-voice {
  background: var(--color-text);
  color: var(--color-bg);
}

.cw-campaign__view-all {
  background: transparent;
  color: var(--color-text);
}

.cw-campaign__actions span { font-size: 1.3rem; line-height: 1; }
.cw-campaign__add-voice:focus-visible,
.cw-campaign__view-all:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .cw-campaign__add-voice:hover { background: transparent; color: var(--color-text); }
  .cw-campaign__view-all:hover { background: var(--color-text); color: var(--color-bg); }
}

.cw-voice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Real submitted text (name, handle, website) can be one long
   unbroken string with no spaces to wrap at -- without somewhere
   allowed to break, that forces its own element wider, which forces
   the grid column wider, which forces the card (and the whole page)
   wider. overflow-wrap:anywhere is inherited, so this is a blanket
   safety net for every text node in the card, not just the ones
   below with a more specific fix for their own sizing too. */
.cw-voice-card {
  min-width: 0;
  border: 1px solid var(--color-card-border);
  padding: 20px;
  overflow-wrap: anywhere;
}

/* Flex, not grid: a grid "1fr" column is still sized considering its
   content's intrinsic size even inside minmax(0, 1fr) (the 1fr max
   is treated close to auto/max-content for that part of the
   algorithm) -- combined with overflow-wrap:anywhere's deliberately
   tiny min-content on a long unbroken handle/URL, that measured as
   the identity column collapsing to 0 width in one real case, which
   then wraps that text one character per line and makes the row
   (and the fixVoiceCardLayout() square below) absurdly tall instead.
   flex-basis:0% on .cw-voice-card__identity below doesn't have this
   problem -- it grows from zero rather than being measured from
   content at all, the same fix already used for the waveform bars
   (see .cw-voice-card__audio-wave). The avatar no longer needs grid's
   special aspect-ratio/stretch handling either, now that its size is
   just a plain flex-shrink:0 box set by JS, not CSS stretch. */
.cw-voice-card__top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cw-voice-card__orb,
.cw-voice-card__photo {
  display: block;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
}

.cw-voice-card__photo {
  object-fit: cover;
  outline: 1px solid var(--color-card-border);
  outline-offset: 2px;
  filter: none;
  box-shadow: 0 0 3px var(--voice-glow), 0 0 16px var(--voice-glow);
}

.cw-voice-card__photo--create  { --voice-glow: var(--cw-color-create); }
.cw-voice-card__photo--build   { --voice-glow: var(--cw-color-build); }
.cw-voice-card__photo--fund    { --voice-glow: var(--cw-color-fund); }
.cw-voice-card__photo--support { --voice-glow: var(--cw-color-support); }

.cw-voice-card__identity {
  flex: 1 1 0%;
  min-width: 0;
}

.cw-voice-card__name {
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.cw-voice-card__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
  min-width: 0;
}

/* Icon + text as one tap target, with vertical padding added purely
   for tap height (not visual spacing -- .cw-voice-card__links' own
   gap handles that) since the text alone was too small/thin to tap
   reliably. max-width:100% (not width:fit-content -- fit-content's
   clamp against "available space" isn't reliable in an auto-sized
   grid column, the same class of bug the waveform bars hit) keeps a
   real submitted handle/URL from forcing the card wider than its
   column when it's one long word with nothing to break at. */
.cw-voice-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-decoration: none;
}

.cw-voice-card__website {
  text-decoration: underline;
}

.cw-voice-card__link-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

/* js/community-wall.js wraps a real link's text in this span (the
   static example cards use a bare text node instead) so it can be
   set via textContent without wiping out the icon next to it -- it
   needs its own min-width:0 to actually shrink/break within the
   inline-flex link rather than just inheriting the icon's
   flex-shrink:0 neighbor's refusal to shrink. */
.cw-voice-card__link-text {
  min-width: 0;
}

.cw-voice-card__link-icon-dot {
  fill: currentColor;
  stroke: none;
}

.cw-voice-card__badge-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.cw-voice-card__badge {
  position: relative;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cw-voice-card__badge-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--color-card-border);
}

.cw-voice-card__badge-ring::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid var(--cw-badge-accent, var(--cw-color-accent));
  opacity: 0.6;
}

.cw-voice-card__badge--create  { --cw-badge-accent: var(--cw-color-create); }
.cw-voice-card__badge--build   { --cw-badge-accent: var(--cw-color-build); }
.cw-voice-card__badge--fund    { --cw-badge-accent: var(--cw-color-fund); }
.cw-voice-card__badge--support { --cw-badge-accent: var(--cw-color-support); }

.cw-voice-card__badge-number {
  position: relative;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cw-voice-card__role-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cw-voice-card__role-label--create  { color: var(--cw-color-create); }
.cw-voice-card__role-label--build   { color: var(--cw-color-build); }
.cw-voice-card__role-label--fund    { color: var(--cw-color-fund); }
.cw-voice-card__role-label--support { color: var(--cw-color-support); }

.cw-voice-card__body {
  margin-top: 24px;
}

.cw-voice-card__subtitle {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.cw-voice-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cw-voice-card__quote {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  font-style: italic;
}

.cw-voice-card__audio {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  row-gap: 6px;
  min-width: 0;
}

/* Keep the shared playback icons with a larger tap target on voice cards. */
.cw-voice-card__audio .amass-flow__review-play {
  grid-column: 1;
  grid-row: 1;
  width: 44px;
  height: 44px;
  justify-content: center;
}

.cw-voice-card__audio .amass-flow__review-play-icon {
  width: 28px;
  height: 28px;
}

.cw-voice-card__audio .amass-flow__review-play:focus-visible {
  outline: 2px solid var(--cw-audio-color);
  outline-offset: 2px;
}

.cw-voice-card__audio--create { --cw-audio-color: var(--cw-color-create); }
.cw-voice-card__audio--build { --cw-audio-color: var(--cw-color-build); }
.cw-voice-card__audio--fund { --cw-audio-color: var(--cw-color-fund); }
.cw-voice-card__audio--support { --cw-audio-color: var(--cw-color-support); }

.cw-voice-card__audio .amass-flow__review-play:hover,
.cw-voice-card__audio .amass-flow__review-play:focus-visible,
.cw-voice-card__audio .amass-flow__review-play.is-playing {
  color: var(--cw-audio-color);
}

@media (prefers-reduced-motion: no-preference) {
  .cw-voice-card__audio .amass-flow__review-play.is-playing {
    animation: cw-role-play-pulse 2s ease-in-out infinite;
  }
}

@keyframes cw-role-play-pulse {
  0%, 100% { opacity: 0.7; text-shadow: none; }
  50% { opacity: 1; text-shadow: 0 0 8px currentColor; }
}

/* Fit every peak into the available width so the visible playhead
   represents the entire recording, including on narrow cards. */
.cw-voice-card__audio-wave {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0;
  height: 48px;
  overflow: hidden;
}

.cw-voice-card__audio-bar {
  flex: 1 1 0%;
  min-width: 0;
  transform: scaleX(0.9);
  border-radius: 1px;
}

.cw-voice-card__audio-bar { background: var(--cw-audio-color); }

.cw-voice-card__audio-bar:nth-child(3n)   { height: 100%; }
.cw-voice-card__audio-bar:nth-child(3n+1) { height: 50%; }
.cw-voice-card__audio-bar:nth-child(3n+2) { height: 75%; }

/* Real submissions (js/community-wall.js): bar heights come from the
   stored audio_peaks data as inline styles, overriding the nth-child
   pattern above. .is-played marks the bars behind the moving
   playhead, synced to real playback -- the SoundCloud-style "filled
   in as it plays" look, using the same role color at full opacity
   against the dimmed rest of the wave. */
.cw-voice-card__audio-wave--real .cw-voice-card__audio-bar {
  opacity: 0.4;
}
.cw-voice-card__audio-wave--real .cw-voice-card__audio-bar.is-played {
  opacity: 1;
}

.cw-voice-card__audio-time {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  font-size: 0.68rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* ---------- Roles ---------- */

.cw-resources {
  padding-top: 40px;
  padding-bottom: 40px;
}

.cw-resource-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.cw-resource-card {
  border: 1px solid var(--color-card-border);
  padding: 22px 20px;
}

.cw-resource-card__icon {
  width: 34px;
  height: 34px;
  fill: none;
  stroke-width: 1.9;
  margin-bottom: 16px;
}

.cw-resource-card--create .cw-resource-card__icon { stroke: var(--cw-color-create); }
.cw-resource-card--build .cw-resource-card__icon { stroke: var(--cw-color-build); }
.cw-resource-card--fund .cw-resource-card__icon { stroke: var(--cw-color-fund); }
.cw-resource-card--support .cw-resource-card__icon { stroke: var(--cw-color-support); fill: var(--cw-color-support); fill-opacity: 0.12; }

.cw-resource-card__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.cw-resource-card__body {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.cw-resource-card__cta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
}

/* ---------- Network CTA ---------- */

/* Full-bleed bottom divider, same pattern as .cw-broadcasts/
   .cw-campaigns, instead of the card having its own box border. */
.cw-network {
  border-bottom: 1px solid var(--color-card-border);
  padding-top: 40px;
  padding-bottom: 40px;
}

/* Stacked on mobile -- the orb/lashes visual sits above the heading
   and button instead of beside them. Desktop restores the side-by-side
   row (see the Desktop/tablet media query below). No border/padding of
   its own anymore -- relies on .cw-network's section padding and
   .cw-inner's horizontal gutter, same as the page's other boxless
   sections. */
.cw-network__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.cw-network__visual {
  flex-shrink: 0;
  width: 140px;
}

.cw-network__content {
  min-width: 0;
}

.cw-network__title {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
}

.cw-network__subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.cw-network__actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.cw-network__join {
  display: block;
  width: 100%;
  background: var(--color-text);
  color: var(--color-bg);
  border: none;
  border-radius: 2px;
  padding: 12px 18px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.18s ease;
}

.cw-network__join:hover,
.cw-network__join:focus-visible {
  opacity: 0.85;
}


/* ---------- Join modal ---------- */
/* Shared by both JOIN triggers on this page (the stats-row button and
   "Join the Network"). */

#cw-join-modal .modal__panel {
  text-align: center;
}

.cw-join__lockup {
  margin: 0 0 20px;
}

.cw-join__logo {
  display: block;
  width: 100%;
  max-width: 150px;
  height: auto;
  margin: 0 auto;
}

.cw-join__body {
  margin-bottom: 24px;
}

.cw-join__subtitle {
  color: var(--color-text);
}

.cw-join__fineprint {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* .cw-join__body p (one class + one type selector) outranks a single
   class selector on specificity alone regardless of source order, so
   this is scoped as .cw-join__body .cw-join__doors to actually win.
   Same small-caps solid-color-plus-pulse treatment as the Voices
   Heard modal's own campaign label (.amass-flow__campaign-label),
   reusing dilemma-cue-pulse by name rather than a new effect. */
.cw-join__body .cw-join__doors {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-vandalism);
  margin-bottom: 16px;
}

@media (prefers-reduced-motion: no-preference) {
  .cw-join__body .cw-join__doors {
    animation: dilemma-cue-pulse 2s ease-in-out infinite;
  }
}

.cw-join__cta {
  display: block;
  width: 100%;
  background: var(--color-text);
  color: var(--color-bg);
  border: none;
  border-radius: 2px;
  padding: 12px 18px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: default;
  pointer-events: none;
}

/* ============================================================
   Desktop / tablet
   ============================================================ */

@media (min-width: 760px) {
  /* Total Members joins the same straight line as the four stats, and
     JOIN moves to the very end of that line (after Supporters) rather
     than sitting at the right edge of the Total column. .cw-stats
     becomes the flex row; .cw-stats__row, .cw-stats__total and
     .cw-stats__total-inner (all flex containers on mobile only) are
     un-boxed via display:contents so .cw-stats__total-text, the four
     .cw-stat items, and .cw-stats__join-group all become direct flex
     siblings. order:10 on .cw-stats__join-group is what actually pushes it
     past the four stats regardless of its earlier DOM position --
     everything else keeps the default order (0), so it still reads
     Total / Builders / Creators / Investors / Supporters by source
     order. Total's text gets a slightly wider share (flex-grow 1.25) that
     .cw-stats__total itself carried before being un-boxed. */
  .cw-stats {
    display: flex;
    align-items: stretch;
    padding-inline: max(var(--section-padding-x), calc((100% - var(--cw-max-width)) / 2 + var(--section-padding-x)));
  }

  .cw-stats__total {
    display: contents;
  }

  .cw-stats__total-inner {
    display: contents;
  }

  .cw-stats__total-text {
    flex: 1.25 1 0;
    min-width: max-content;
    justify-content: flex-end;
    padding: 16px 12px 16px 0;
    border-right: 1px solid var(--color-card-border);
  }

  .cw-stats__row {
    display: contents;
  }

  .cw-stats__join-group {
    order: 10;
    flex: 0.85 1 0;
    min-width: 120px;
    align-items: flex-start;
    justify-content: flex-end;
    /* Match the role columns: 12px inset plus 7px dot and 6px gap. */
    padding: 16px 0 16px 25px;
    border-left: 1px solid var(--color-card-border);
  }

  .cw-stats__join {
    font-size: 0.72rem;
    line-height: 1.5;
  }

  /* Keep the role columns on one row with matching bottom baselines. */
  .cw-stat {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 0;
  }

  .cw-stat__inner {
    width: 100%;
    padding: 16px 12px;
    text-align: left;
  }

  .cw-stat__number {
    /* Align with the label text after its 7px dot and 6px gap. */
    padding-left: 13px;
  }

  .cw-stats__total-number,
  .cw-stat__number {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    line-height: 1;
  }

  .cw-stats__total-label,
  .cw-stat__label {
    line-height: 1.5;
  }

  .cw-stats__total-label {
    white-space: nowrap;
  }

  .cw-stat__label {
    margin-top: 6px;
    justify-content: flex-start;
  }

  .cw-stat:nth-child(odd) {
    border-right: none;
  }

  .cw-stat:nth-child(-n+2) {
    border-bottom: none;
  }

  .cw-stat:not(:last-child) {
    border-right: 1px solid var(--color-card-border);
  }

  .cw-broadcast-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cw-voice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cw-resource-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Four even columns: the globe takes one, the heading/subtitle take
     two, and the actions (button + login link) take the last one,
     flush against the card's right edge -- same "push it to the far
     right" language as the AMASS promo bar's CTA on the Transmissions
     page. */
  .cw-network__card {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    column-gap: 24px;
    text-align: left;
  }

  .cw-network__visual {
    width: 100%;
    max-width: 180px;
  }

  .cw-network__actions {
    align-items: flex-end;
    text-align: right;
  }
}

@media (max-width: 759px) {
  .cw-voice-card__top {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }

  .cw-voice-card__avatar {
    grid-column: 1;
    grid-row: 1;
  }

  .cw-voice-card__badge-col {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .cw-voice-card__identity {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .cw-hero {
    padding: 28px 0;
  }

  .cw-hero__inner {
    gap: 16px;
    padding-inline: 16px;
  }

  .cw-hero__subtitle {
    max-width: 34rem;
    font-size: 0.85rem;
  }

}

/* Centered Voices Heard profiles, with existing padding and 24px body gap. */
.cw-voice-card { position: relative; text-align: center; }
.cw-voice-card__number { position: absolute; top: 20px; left: 20px; font-size: .8rem; font-weight: 700; }
.cw-voice-card__top { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cw-voice-card__avatar { width: 88px; height: 88px; border-radius: 50%; }
.cw-voice-card__photo { outline-color: var(--voice-glow); }
.cw-voice-card__identity { flex: none; width: 100%; }
.cw-voice-card__links { align-items: center; }
.cw-voice-card__badge-col { position: absolute; right: 20px; top: 20px; }
.cw-voice-card__role-icon { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2; }
.cw-voice-card__body { text-align: center; }
.cw-voice-card__audio { grid-template-columns: auto minmax(0,1fr) 44px; column-gap: 12px; margin-top: 20px; }
.cw-voice-card__audio-time { grid-column: 1; grid-row: 1; justify-self: start; }
.cw-voice-card__audio-wave { grid-column: 2; grid-row: 1; justify-content: space-between; gap: 3px; height: 48px; }
.cw-voice-card__audio-wave .cw-voice-card__audio-bar { flex: 0 1 3px; width: 3px; height: 8%; min-width: 1px; border-radius: 999px; transform: none; opacity: 1; box-shadow: 0 0 5px var(--cw-audio-color); }
.cw-voice-card__audio .amass-flow__review-play { grid-column: 3; grid-row: 1; border: 0; border-radius: 50%; background: var(--cw-audio-color); color: var(--color-bg); animation: none; }
.cw-voice-card__audio .amass-flow__review-play:hover,
.cw-voice-card__audio .amass-flow__review-play:focus-visible,
.cw-voice-card__audio .amass-flow__review-play.is-playing { color: var(--color-bg); animation: none; }
@media (max-width: 380px) {
  .cw-voice-card__avatar { width: 76px; height: 76px; }
  .cw-voice-card__badge-col { right: 12px; }
  .cw-voice-card__audio { column-gap: 8px; }
  .cw-voice-card__audio-time { font-size: .6rem; }
}

/* Profile refinements: horizontal role label and a larger portrait. */
.cw-voice-card { container-type: inline-size; }
.cw-voice-card__badge-col { flex-direction: row; align-items: center; gap: 6px; }
.cw-voice-card__role-icon { width: 26px; height: 26px; }
.cw-voice-card__avatar { width: 112px; height: 112px; }
.cw-voice-card__title { white-space: nowrap; font-size: clamp(.65rem, 3.7cqw, .95rem); }
@media (max-width: 380px) {
  .cw-voice-card__avatar { width: 96px; height: 96px; }
  .cw-voice-card__role-icon { width: 22px; height: 22px; }
  .cw-voice-card__badge-col { gap: 4px; }
}

/* Metadata gets its own row; the number uses the site's divider lines. */
.cw-voice-card__meta { display: flex; justify-content: space-between; align-items: center; margin: -20px -20px 24px; }
.cw-voice-card__number { position: static; display: flex; align-items: center; justify-content: center; align-self: stretch; min-width: 68px; min-height: 48px; padding: 12px 16px; border-bottom: 1px solid var(--color-card-border); border-right: 1px solid var(--color-card-border); }
.cw-voice-card__badge-col { position: static; padding: 10px 20px; }
.cw-voice-card__links { flex-direction: row; justify-content: center; align-items: center; gap: 12px; }
.cw-voice-card__link { min-width: 0; font-size: .8rem; }
@media (max-width: 380px) {
  .cw-voice-card__links { gap: 10px; }
  .cw-voice-card__link { font-size: .75rem; }
}

@media (max-width: 759px) {
  .cw-section-header__title { line-height: 1.25; }
}

@media (max-width: 759px) {
  .cw-broadcasts .cw-section-header__link { margin-left: 36px; }
}


/* Voice library: portrait, role-led identity, corner number, then player. */
.cw-voice-grid { grid-template-columns: minmax(0, 1fr); }
/* Desktop archive (voices-heard.html) only: two columns instead of one.
   The higher-specificity attribute selector wins over the unscoped rule
   above regardless of source order. The homepage preview grid (no
   data-voice-archive) keeps its single column. */
@media (min-width: 760px) {
  .cw-voice-grid[data-voice-archive] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cw-voice-grid[data-voice-archive] .cw-voice-card--library {
    --portrait-size: 160px;
  }
}
.cw-voice-card--library {
  --portrait-size: 220px;
  display: grid; grid-template-columns: var(--portrait-size) minmax(0, 1fr) 44px;
  column-gap: 24px; row-gap: 20px; padding: 20px;
}
.cw-voice-card--library .cw-voice-card__top,
.cw-voice-card--library .cw-voice-card__body { display: contents; }
.cw-voice-card--library .cw-voice-card__avatar {
  grid-column: 1; grid-row: 1 / 3; width: var(--portrait-size); height: var(--portrait-size);
  border-radius: 0; align-self: start; margin: 0; object-fit: cover; aspect-ratio: 1;
}
.cw-voice-card--library .cw-voice-card__photo {
  outline: none; border: 2px solid color-mix(in srgb, var(--voice-glow) 45%, white);
  box-shadow: 0 0 3px 1px var(--voice-glow),
              0 0 8px color-mix(in srgb, var(--voice-glow) 85%, transparent),
              0 0 14px color-mix(in srgb, var(--voice-glow) 45%, transparent);
}
.cw-voice-card--library .cw-voice-card__identity { grid-column: 2; grid-row: 1; text-align: left; min-width: 0; }
.cw-voice-card--library .cw-voice-card__badge-col { position: static; padding: 0; gap: 8px; margin-bottom: 10px; justify-content: flex-start; justify-self: start; width: 100%; }
.cw-voice-card--library .cw-voice-card__role-icon { width: 30px; height: 30px; }
.cw-voice-card--library .cw-voice-card__role-label { font-size: .85rem; }
.cw-voice-card--library .cw-voice-card__name { margin: 0; font-size: 1.4rem; line-height: 1.2; }
.cw-voice-card--library .cw-voice-card__title { margin: 6px 0 0; font-size: .95rem; font-weight: 400; line-height: 1.3; text-align: left; white-space: normal; }
.cw-voice-card--library .cw-voice-card__links { justify-content: flex-start; gap: 18px; margin-top: 14px; }
.cw-voice-card--library .cw-voice-card__link { min-height: 24px; }
.cw-voice-card--library .cw-voice-card__link-icon { width: 24px; height: 24px; }
.cw-voice-card--library .cw-voice-card__link-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.cw-voice-card--library .cw-voice-card__meta { grid-column: 3; grid-row: 1; margin: 0; align-self: start; justify-content: flex-end; }
.cw-voice-card--library .cw-voice-card__number { border: 0; padding: 0; min-width: 0; min-height: 0; font-size: .95rem; }
.cw-voice-card--library .cw-voice-card__audio { grid-column: 2 / 4; grid-row: 2; margin: 0; grid-template-columns: auto minmax(0, 1fr) auto 64px; gap: 18px; align-self: end; }
.cw-voice-card--library .cw-voice-card__audio-time { font-size: .85rem; }
.cw-voice-card--library .cw-voice-card__audio-wave { height: 48px; width: 100%; max-width: 360px; }
.cw-voice-card--library .cw-voice-card__audio-duration { grid-column: 3; grid-row: 1; font-size: .85rem; color: var(--color-text-muted); }
.cw-voice-card--library .cw-voice-card__audio .amass-flow__review-play { grid-column: 4; width: 64px; height: 64px; }
.cw-voice-card--library .cw-voice-card__quote { grid-column: 2 / 4; grid-row: 2; text-align: left; margin: 0; }
@media (max-width: 759px) {
  .cw-voice-card--library { --portrait-size: 88px; grid-template-columns: var(--portrait-size) minmax(0, 1fr) 32px; padding: 12px; column-gap: 12px; row-gap: 16px; }
  .cw-voice-card--library .cw-voice-card__avatar { grid-row: 1; }
  .cw-voice-card--library .cw-voice-card__badge-col { gap: 5px; margin-bottom: 6px; }
  .cw-voice-card--library .cw-voice-card__role-icon { width: 22px; height: 22px; }
  .cw-voice-card--library .cw-voice-card__role-label { font-size: .65rem; }
  .cw-voice-card--library .cw-voice-card__number { font-size: .7rem; }
  .cw-voice-card--library .cw-voice-card__name { font-size: .85rem; }
  .cw-voice-card--library .cw-voice-card__title { font-size: .65rem; margin-top: 4px; }
  .cw-voice-card--library .cw-voice-card__links { margin-top: 8px; gap: 14px; }
  .cw-voice-card--library .cw-voice-card__link-icon { width: 20px; height: 20px; }
  .cw-voice-card--library .cw-voice-card__audio { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr) auto 48px; gap: 10px; }
  .cw-voice-card--library .cw-voice-card__audio-time,
  .cw-voice-card--library .cw-voice-card__audio-duration { font-size: .7rem; }
  .cw-voice-card--library .cw-voice-card__audio-wave { height: 36px; }
  .cw-voice-card--library .cw-voice-card__audio .amass-flow__review-play { width: 48px; height: 48px; }
  .cw-voice-card--library .cw-voice-card__quote { grid-column: 1 / -1; }
}
/* Shared top metadata line; identity and square portrait share the same height. */
.cw-voice-card--library .cw-voice-card__avatar { grid-row: 1; }
.cw-voice-card--library .cw-voice-card__identity {
  grid-column: 2 / 4; display: flex; flex-direction: column;
  min-height: var(--portrait-size); padding-right: 0;
}
.cw-voice-card--library .cw-voice-card__badge-col {
  width: auto; min-height: 30px; padding-right: 60px; flex-shrink: 0;
  align-items: flex-end;
}
.cw-voice-card--library .cw-voice-card__meta {
  z-index: 1; height: 30px; align-items: flex-end;
}
.cw-voice-card--library .cw-voice-card__links { margin-top: auto; padding-top: 8px; }
@media (max-width: 759px) {
  .cw-voice-card--library { --portrait-size: 112px; }
  .cw-voice-card--library .cw-voice-card__badge-col { min-height: 22px; padding-right: 35px; }
  .cw-voice-card--library .cw-voice-card__meta { height: 22px; }
  .cw-voice-card--library .cw-voice-card__name { font-size: .8rem; }
  .cw-voice-card--library .cw-voice-card__links { padding-top: 4px; }
}
@media (max-width: 360px) {
  .cw-voice-card--library { --portrait-size: 96px; column-gap: 10px; }
  .cw-voice-card--library .cw-voice-card__name { font-size: .65rem; }
  .cw-voice-card--library .cw-voice-card__title { font-size: .58rem; line-height: 1.15; }
  .cw-voice-card--library .cw-voice-card__role-label { font-size: .55rem; }
  .cw-voice-card--library .cw-voice-card__role-icon { width: 18px; height: 18px; }
  .cw-voice-card--library .cw-voice-card__link { min-height: 20px; }
}
.cw-voice-card--library .cw-voice-card__link { padding: 0; align-items: flex-end; }
.cw-voice-card--library .cw-voice-card__links { align-items: flex-end; }
.cw-voice-card--library .cw-voice-card__role-label,
.cw-voice-card--library .cw-voice-card__number { line-height: 1; }
/* Role label and corner number use matching type metrics and bottom edges. */
.cw-voice-card--library .cw-voice-card__number {
  font-size: .85rem; line-height: 1; font-weight: 700; align-self: flex-end;
}
@media (max-width: 759px) {
  .cw-voice-card--library .cw-voice-card__number { font-size: .65rem; }
}
@media (max-width: 360px) {
  .cw-voice-card--library .cw-voice-card__number { font-size: .55rem; }
}
/* Center the role name beside its icon; number follows the label's lower edge. */
.cw-voice-card--library .cw-voice-card__badge-col { align-items: center; }
.cw-voice-card--library .cw-voice-card__meta { height: calc(15px + .425rem); }
@media (max-width: 759px) {
  .cw-voice-card--library .cw-voice-card__meta { height: calc(11px + .325rem); }
}
@media (max-width: 360px) {
  .cw-voice-card--library .cw-voice-card__badge-col { min-height: 22px; }
  .cw-voice-card--library .cw-voice-card__meta { height: calc(11px + .275rem); }
}
@media (max-width: 759px) {
  .cw-voice-card--library .cw-voice-card__role-label { font-size: .58rem; }
  .cw-voice-card--library .cw-voice-card__number { font-size: .58rem; }
  .cw-voice-card--library .cw-voice-card__meta { height: calc(11px + .29rem); }
}
@media (max-width: 360px) {
  .cw-voice-card--library .cw-voice-card__role-label,
  .cw-voice-card--library .cw-voice-card__number { font-size: .5rem; }
  .cw-voice-card--library .cw-voice-card__meta { height: calc(11px + .25rem); }
}
/* Desktop player fills the card beside a full-height portrait. */
@media (min-width: 760px) {
  .cw-voice-card--library { row-gap: 20px; }
  .cw-voice-card--library .cw-voice-card__avatar {
    grid-row: 1 / 3; height: 100%; min-height: 260px; aspect-ratio: auto; align-self: stretch;
  }
  .cw-voice-card--library .cw-voice-card__identity { min-height: 0; }
  .cw-voice-card--library .cw-voice-card__role-icon { width: 34px; height: 34px; }
  .cw-voice-card--library .cw-voice-card__role-label,
  .cw-voice-card--library .cw-voice-card__number { font-size: 1rem; }
  .cw-voice-card--library .cw-voice-card__badge-col { min-height: 34px; margin-bottom: 12px; }
  .cw-voice-card--library .cw-voice-card__meta { height: calc(17px + .5rem); }
  .cw-voice-card--library .cw-voice-card__name { font-size: clamp(24px, 3.3cqw, 34px); }
  .cw-voice-card--library .cw-voice-card__title { font-size: clamp(16px, 2cqw, 20px); margin-top: 8px; }
  .cw-voice-card--library .cw-voice-card__links { margin-top: 16px; }
  .cw-voice-card--library .cw-voice-card__link-icon { width: 30px; height: 30px; }
  .cw-voice-card--library .cw-voice-card__audio { gap: 12px; }
  .cw-voice-card--library .cw-voice-card__audio-wave { max-width: none; }
  .cw-voice-card--library .cw-voice-card__audio-time,
  .cw-voice-card--library .cw-voice-card__audio-duration { font-size: 1rem; }
}
/* Position the corner number from the role label's shared centerline. */
.cw-voice-card--library {
  --voice-role-icon-size: 30px; --voice-role-font-size: .85rem;
}
.cw-voice-card--library .cw-voice-card__role-icon {
  width: var(--voice-role-icon-size); height: var(--voice-role-icon-size);
}
.cw-voice-card--library .cw-voice-card__role-label,
.cw-voice-card--library .cw-voice-card__number {
  font-size: var(--voice-role-font-size); line-height: 1;
}
.cw-voice-card--library .cw-voice-card__meta {
  height: calc((var(--voice-role-icon-size) + var(--voice-role-font-size)) / 2);
}
@media (min-width: 760px) {
  .cw-voice-card--library { --voice-role-icon-size: 34px; --voice-role-font-size: 1rem; }
}
@media (max-width: 759px) {
  .cw-voice-card--library { --voice-role-icon-size: 22px; --voice-role-font-size: .58rem; }
}
@media (max-width: 360px) {
  .cw-voice-card--library { --voice-role-icon-size: 22px; --voice-role-font-size: .5rem; }
}
/* Desktop visualizer spans the player with denser, thin frequency bars. */
@media (min-width: 760px) {
  .cw-voice-card--library .cw-voice-card__audio {
    grid-template-columns: auto minmax(0, 1fr) auto 64px;
  }
  .cw-voice-card--library .cw-voice-card__audio-wave {
    justify-content: space-between; gap: 2px; width: 100%; max-width: none;
  }
  .cw-voice-card--library .cw-voice-card__audio-wave .cw-voice-card__audio-bar {
    flex: 0 1 2px; width: 2px;
  }
}
/* Square desktop portrait and matching neon player controls. */
@media (min-width: 760px) {
  .cw-voice-card--library {
    --portrait-size: 280px; grid-template-rows: minmax(0, 1fr) 64px;
  }
  .cw-voice-card--library .cw-voice-card__avatar {
    width: var(--portrait-size); height: var(--portrait-size); min-height: 0;
    aspect-ratio: 1; align-self: start;
  }
}
.cw-voice-card--library .cw-voice-card__audio .amass-flow__review-play {
  border: 2px solid color-mix(in srgb, var(--cw-audio-color) 45%, white);
  box-shadow: 0 0 3px 1px var(--cw-audio-color),
              0 0 8px color-mix(in srgb, var(--cw-audio-color) 85%, transparent),
              0 0 14px color-mix(in srgb, var(--cw-audio-color) 45%, transparent);
}

/* Role and number share one flex row so their text aligns directly. */
.cw-voice-card--library .cw-voice-card__badge-col { width: 100%; padding-right: 0; }
.cw-voice-card--library .cw-voice-card__number { margin-left: auto; align-self: center; }
.cw-voice-card--library .cw-voice-card__audio .amass-flow__review-play { border: 0; }

.cw-voice-card--library .cw-voice-card__title { text-transform: none; }
.cw-voice-card--library .cw-voice-card__audio .amass-flow__review-play {
  border: 0; box-shadow: none;
}
.cw-voice-card--library .cw-voice-card__title { color: var(--color-text-muted); }
/* Keep profile links directly beneath the response title. */
.cw-voice-card--library .cw-voice-card__links {
  margin-top: 4px; padding-top: 0;
}
/* Shared link color; account for SVG viewBox sizes when matching role strokes. */
.cw-voice-card--library .cw-voice-card__link,
.cw-voice-card--library .cw-voice-card__link:visited,
.cw-voice-card--library .cw-voice-card__link-icon { color: var(--color-text-muted); }
.cw-voice-card--library .cw-voice-card__link-icon { stroke-width: 1.1333; }
@media (max-width: 759px) {
  .cw-voice-card--library .cw-voice-card__link-icon { stroke-width: 1.1; }
}

/* One baseline for the role's text and number; icon remains vertically centered. */
.cw-voice-card--library .cw-voice-card__role-text {
  display: flex; flex: 1; min-width: 0; align-items: baseline;
}
.cw-voice-card--library .cw-voice-card__role-text .cw-voice-card__number {
  display: block; align-self: auto; margin-left: auto;
}
/* Matching text metrics keep both ends of the role and number aligned. */
.cw-voice-card--library .cw-voice-card__role-text {
  font: 700 var(--voice-role-font-size)/1 var(--font-display);
  letter-spacing: .06em;
}
.cw-voice-card--library .cw-voice-card__role-text .cw-voice-card__role-label,
.cw-voice-card--library .cw-voice-card__role-text .cw-voice-card__number {
  font: inherit; line-height: inherit; letter-spacing: inherit;
  padding: 0; border: 0;
}
/* Mobile profile uses one third of the content width; identity uses two thirds. */
@media (max-width: 759px) {
  .cw-voice-card--library {
    --portrait-size: calc((100cqw - 24px) / 3);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 12px;
  }
  .cw-voice-card--library .cw-voice-card__avatar {
    grid-column: 1; width: 100%; height: auto; aspect-ratio: 1;
  }
  .cw-voice-card--library .cw-voice-card__identity { grid-column: 2 / 4; }
}
/* Desktop name and role metadata share the first text row. */
@media (min-width: 760px) {
  .cw-voice-card--library .cw-voice-card__identity {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    align-content: start;
    column-gap: 18px;
  }
  .cw-voice-card--library .cw-voice-card__name {
    grid-column: 1; grid-row: 1; align-self: center;
  }
  .cw-voice-card--library .cw-voice-card__badge-col {
    grid-column: 2; grid-row: 1; align-self: center;
    width: auto; padding: 0; margin: 0;
  }
  .cw-voice-card--library .cw-voice-card__role-text { flex: none; gap: 16px; }
  .cw-voice-card--library .cw-voice-card__number { margin-left: 0; }
  .cw-voice-card--library .cw-voice-card__title { grid-column: 1 / -1; grid-row: 2; }
  .cw-voice-card--library .cw-voice-card__links { grid-column: 1 / -1; grid-row: 3; }
}
@media (min-width: 760px) {
  .cw-voice-card--library .cw-voice-card__name { white-space: nowrap; }
}
@media (min-width: 760px) and (max-width: 1100px) {
  .cw-voice-card--library {
    --portrait-size: 200px; --voice-role-icon-size: 26px; --voice-role-font-size: .8rem;
  }
  .cw-voice-card--library .cw-voice-card__name { font-size: clamp(18px, 2.8cqw, 24px); }
  .cw-voice-card--library .cw-voice-card__badge-col { min-height: 26px; }
  .cw-voice-card--library .cw-voice-card__role-text { gap: 10px; }
}
/* Shorter desktop rows bring the player closer to the identity block. */
@media (min-width: 760px) {
  .cw-voice-card--library { --portrait-size: 190px; row-gap: 12px; }
}
@media (min-width: 760px) and (max-width: 1100px) {
  .cw-voice-card--library { --portrait-size: 180px; }
}
@media (min-width: 760px) {
  .cw-voice-card--library .cw-voice-card__title { font-size: clamp(18px, 2.4cqw, 24px); }
  .cw-voice-card--library .cw-voice-card__link-icon { width: 34px; height: 34px; stroke-width: 1; }
}
@media (max-width: 759px) {
  .cw-voice-card--library { row-gap: 8px; }
}
/* On mobile the role text and number begin at the portrait's top edge. */
@media (max-width: 759px) {
  .cw-voice-card--library .cw-voice-card__badge-col { align-items: flex-start; }
  .cw-voice-card--library .cw-voice-card__role-text { align-self: flex-start; }
}
/* Move the complete mobile metadata row while retaining its centered alignment. */
@media (max-width: 759px) {
  .cw-voice-card--library .cw-voice-card__badge-col {
    align-items: center;
    transform: translateY(calc((var(--voice-role-font-size) - var(--voice-role-icon-size)) / 2));
  }
  .cw-voice-card--library .cw-voice-card__role-text { align-self: center; }
}
@media (max-width: 759px) {
  .cw-voice-card--library .cw-voice-card__badge-col { transform: none; }
}
/* Reserve timestamp width so changing digits never move the frequency bars. */
.cw-voice-card--library .cw-voice-card__audio {
  grid-template-columns: 5ch minmax(0, 1fr) 5ch 64px;
}
.cw-voice-card--library .cw-voice-card__audio-time,
.cw-voice-card--library .cw-voice-card__audio-duration {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  width: 5ch; white-space: nowrap;
}
@media (max-width: 759px) {
  .cw-voice-card--library .cw-voice-card__audio {
    grid-template-columns: 5ch minmax(0, 1fr) 5ch 48px;
  }
}
.cw-voice-card--library .cw-voice-card__audio { font-size: 1rem; }
@media (max-width: 759px) {
  .cw-voice-card--library .cw-voice-card__audio { font-size: .7rem; }
}

/* The desktop identity layout (name + role badge side by side, name
   forced to one line) assumes a full-row single-column card. In the
   two-column archive grid each card is roughly half that width --
   not enough room for a one-line name next to the badge, which
   squeezed the name into a sliver and broke it mid-word. Fall back to
   the mobile-style stacked layout (badge above name, both full width)
   instead. Uses the card's own container width (it's already a
   container-type: inline-size element) rather than viewport, since
   this only ever happens at a card width the viewport-based
   breakpoints above don't anticipate. */
@container (max-width: 600px) {
  .cw-voice-card--library .cw-voice-card__identity {
    display: block;
  }
  .cw-voice-card--library .cw-voice-card__name {
    white-space: normal;
  }
  .cw-voice-card--library .cw-voice-card__badge-col {
    width: 100%;
    margin-bottom: 10px;
  }
}


/* Voices Heard uses the supplied textured artwork on both entry points. */
.cw-campaign__intro--voices,
.voices-heat-band {
  background: #08090a var(--voices-campaign-background) center / cover no-repeat;
}
.cw-campaign__intro--voices::before { content: none; }
.cw-campaign__counter [data-stat="voices-total"] {
  font-variant-numeric: tabular-nums;
  letter-spacing: .18em;
  padding-left: .18em;
  font-weight: 400;
}
.voices-heat-band .cw-campaign__counter { margin: 0; }

/* Dedicated Kit invitation form, styled within the existing network modal. */
.cw-join__signup { text-align: left; }
.cw-join__consent { margin-top: 18px; color: var(--color-text-muted); font-size: .75rem; line-height: 1.5; }
.cw-join__signup [data-kit-status] { color: var(--color-text-muted); font-size: .9rem; line-height: 1.5; }
.cw-join__signup [data-kit-retry] { padding: 12px; background: transparent; border: 1px solid currentColor; color: var(--color-text); font: inherit; cursor: pointer; }
.cw-join__signup .formkit-form[data-uid='5c335c76f2'] { width: 100% !important; max-width: none !important; min-width: 0 !important; margin: 0 !important; background: transparent !important; font-family: var(--font-body) !important; }
.cw-join__signup .formkit-form[data-uid='5c335c76f2'] [data-style='clean'] { padding: 0 !important; }
.cw-join__signup .formkit-form[data-uid='5c335c76f2'] .formkit-fields { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 !important; }
.cw-join__signup .formkit-form[data-uid='5c335c76f2'] .formkit-field { min-width: 0; margin: 0 !important; }
.cw-join__signup .formkit-form[data-uid='5c335c76f2'] .formkit-field:nth-child(n+3),
.cw-join__signup .formkit-form[data-uid='5c335c76f2'] .formkit-submit { grid-column: 1 / -1; }
.cw-join__signup .formkit-field label { display: block; margin-bottom: 7px; color: var(--color-text-muted); font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.cw-join__signup .formkit-form[data-uid='5c335c76f2'] .formkit-input { width: 100% !important; padding: 13px 12px !important; border: 1px solid var(--color-text-muted) !important; border-radius: 0 !important; background: transparent !important; color: var(--color-text) !important; font: 400 1rem/1.4 var(--font-body) !important; box-shadow: none !important; }
.cw-join__signup .formkit-form[data-uid='5c335c76f2'] .formkit-submit { width: 100% !important; margin: 4px 0 0 !important; padding: 8px !important; border-radius: 0 !important; background: var(--color-text) !important; color: var(--color-bg) !important; font: 700 .85rem/1.4 var(--font-body) !important; pointer-events: auto; cursor: pointer; }
.cw-join__signup .formkit-input:focus-visible, .cw-join__signup .formkit-submit:focus-visible { outline: 2px solid var(--color-text); outline-offset: 3px; }
.cw-join__signup .formkit-form[data-uid='5c335c76f2'] .formkit-alert { font-family: var(--font-body); font-size: .9rem; line-height: 1.5; }
.cw-join__signup [data-element='powered-by'] { filter: invert(1); }
@media (max-width: 600px) {
  .cw-join__signup .formkit-form[data-uid='5c335c76f2'] .formkit-fields { grid-template-columns: 1fr; }
}
#cw-join-modal .cw-join__panel { max-width: 520px; max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; }
.cw-join__signup .formkit-submit > span { background: transparent !important; }
.cw-join__signup .formkit-input:focus-visible, .cw-join__signup .formkit-submit:focus-visible { outline: 2px solid var(--color-text) !important; outline-offset: 3px; }

.cw-join__step[hidden] { display: none; }
.cw-join__next { pointer-events: auto; width: 100%; margin-top: 24px; padding: 16px; font: 700 .85rem var(--font-body); cursor: pointer; }
.cw-join__back { margin-top: 20px; border: 0; background: transparent; color: var(--color-text); font: 700 .8rem var(--font-body); cursor: pointer; }

/* Separate the invitation submit action from Kit's attribution. */
.cw-join__signup [data-element="powered-by"] {
  margin-top: 24px !important;
}

/* Preserve the invitation controls' single borders when focused. */
.cw-join__signup .formkit-input:focus,
.cw-join__signup .formkit-input:focus-visible,
.cw-join__signup .formkit-submit:focus,
.cw-join__signup .formkit-submit:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.cw-hero__subtitle { color: var(--color-text); text-align: center; }

/* Continue to the full campaign after the three-profile wall preview. */
.cw-campaign__view-all--profiles { width: 100%; margin: 24px 0 0; }

/* Rounded profile photos on campaign and archive cards. */
.cw-voice-card .cw-voice-card__photo { border-radius: 12px; }

/* Preserve desktop identity spacing when optional profile links are absent. */
@media (min-width: 760px) {
  .cw-voice-card--library .cw-voice-card__links { min-height: 34px; }
}

/* Inset campaign heading and compact voice players. */
.cw-inner.cw-campaign { max-width: none; padding-inline: 0; }
.cw-campaign .cw-campaign__intro--voices { border: 1px solid var(--color-card-border); margin: 0 16px 20px; }
.cw-campaign > .cw-voice-grid { margin-inline: 16px; }
.cw-campaign > .cw-campaign__view-all--profiles { width: calc(100% - 32px); margin-inline: 16px; }
.voices-page .broadcasts__results { max-width: none; padding: 20px 16px; }
.voices-page .voices-heat-band { border-bottom: 1px solid var(--color-text); }
.cw-voice-card.cw-voice-card--library {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px; border-radius: 0; background: #08090a;
}
.cw-voice-card--library .cw-voice-card__top {
  display: grid; grid-template-columns: minmax(80px, 28%) minmax(0, 1fr);
  gap: 18px; align-items: center;
}
.cw-voice-card--library .cw-voice-card__avatar {
  grid-column: auto; grid-row: auto; width: 100%; height: auto;
  min-height: 0; aspect-ratio: 1; align-self: start;
}
.cw-voice-card--library .cw-voice-card__photo { border-radius: 6px; }
.cw-voice-card--library .cw-voice-card__identity {
  grid-column: auto; display: flex; flex-direction: column;
  min-height: 0; width: 100%; gap: 6px;
}
.cw-voice-card--library .cw-voice-card__name { white-space: normal; font-size: clamp(16px, 3cqw, 30px); line-height: 1.2; }
.cw-voice-card--library .cw-voice-card__title { margin: 0; font-size: clamp(14px, 2.2cqw, 22px); }
.cw-voice-card--library .cw-voice-card__links { margin: 0; padding: 0; min-height: 34px; }
.cw-voice-card--library .cw-voice-card__body { display: block; }
.cw-voice-card--library .cw-voice-card__audio {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin: 0;
}
.cw-voice-card--library .cw-voice-card__audio-wave {
  grid-column: 1 / -1; grid-row: 1; width: 100%; max-width: none;
  height: 56px; cursor: pointer; touch-action: pan-y; user-select: none;
  border-radius: 12px; padding-block: 4px;
}
.cw-voice-card--library .cw-voice-card__audio-wave:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.cw-voice-card--library .cw-voice-card__audio-bar { opacity: .35; border-radius: 999px; }
.cw-voice-card--library .cw-voice-card__audio-bar.is-played { opacity: 1; }
.cw-voice-card--library .cw-voice-card__audio-time { grid-column: 1; grid-row: 2; justify-self: start; }
.cw-voice-card--library .cw-voice-card__audio-duration { grid-column: 2; grid-row: 2; justify-self: end; }
.cw-voice-card--library .cw-voice-card__footer {
  display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
  align-items: center; gap: 10px; min-height: 64px;
}
.cw-voice-card--library .cw-voice-card__footer .cw-voice-card__badge-col {
  grid-column: 1; grid-row: 1; display: flex; align-items: center;
  gap: 8px; width: auto; padding: 0; margin: 0; min-height: 0;
}
.cw-voice-card--library .cw-voice-card__footer .cw-voice-card__role-text { display: block; }
.cw-voice-card--library .cw-voice-card__footer .cw-voice-card__role-icon { width: 28px; height: 28px; flex-shrink: 0; }
.cw-voice-card--library .cw-voice-card__footer .cw-voice-card__role-label { font-size: clamp(9px, 1.7cqw, 14px); letter-spacing: .08em; }
.cw-voice-card--library .cw-voice-card__footer .cw-voice-card__number {
  position: static; grid-column: 3; grid-row: 1; justify-self: end; margin: 0;
  font-size: .8rem; letter-spacing: .12em;
}
.cw-voice-card--library .cw-voice-card__footer .cw-voice-card__audio-play {
  grid-column: 2; grid-row: 1; width: 64px; height: 64px; border-radius: 50%;
  border: 1px solid currentColor; background: transparent; color: var(--color-text);
}
@media (max-width: 759px) {
  .cw-voice-card.cw-voice-card--library { padding: 16px; gap: 8px; }
  .cw-voice-card--library .cw-voice-card__top { gap: 14px; grid-template-columns: minmax(80px, 32%) minmax(0, 1fr); }
  .cw-voice-card--library .cw-voice-card__links { min-height: 24px; }
}

.cw-voice-card.cw-voice-card--library { border-color: color-mix(in srgb, var(--cw-audio-color) 55%, white); }
.cw-voice-card--library .cw-voice-card__footer .cw-voice-card__audio-play {
  color: var(--cw-audio-color); box-shadow: 0 0 12px color-mix(in srgb, var(--cw-audio-color) 35%, transparent);
}
@media (min-width: 900px) {
  .cw-campaign .cw-campaign__intro--voices {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    column-gap: 40px; padding: 32px; text-align: left;
  }
  .cw-campaign__intro--voices .cw-campaign__title { grid-column: 1; grid-row: 1 / 4; margin: 0; }
  .cw-campaign__intro--voices .cw-campaign__counter,
  .cw-campaign__intro--voices .cw-campaign__subtitle,
  .cw-campaign__intro--voices .cw-campaign__actions { grid-column: 2; justify-self: start; }
}

/* Plain campaign headers and a compact portrait beside the identity. */
.cw-campaign .cw-campaign__intro--voices,
.voices-page .voices-heat-band { background: var(--color-bg); }

.cw-voice-card--library .cw-voice-card__top {
  grid-template-columns: clamp(88px, 24%, 150px) minmax(0, 1fr);
}
.cw-voice-card--library .cw-voice-card__top > .cw-voice-card__avatar {
  grid-column: 1; grid-row: 1; width: 100%; height: auto;
  min-height: 0; aspect-ratio: 1;
}
.cw-voice-card--library .cw-voice-card__top > .cw-voice-card__identity {
  grid-column: 2; grid-row: 1; min-width: 0;
}
.cw-voice-card--library .cw-voice-card__footer .cw-voice-card__audio-play {
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.cw-voice-card--library .cw-voice-card__footer .amass-flow__review-play-icon {
  width: 44px; height: 44px; flex: 0 0 44px; fill: currentColor;
}
.cw-voice-card--library .cw-voice-card__footer .amass-flow__review-play-icon[hidden] { display: none; }

/* Match the portrait's role glow across the card and give identity more weight. */
.cw-voice-card.cw-voice-card--library {
  gap: 4px;
  border: 2px solid color-mix(in srgb, var(--cw-audio-color) 45%, white);
  box-shadow: 0 0 3px 1px var(--cw-audio-color),
              0 0 8px color-mix(in srgb, var(--cw-audio-color) 85%, transparent),
              0 0 14px color-mix(in srgb, var(--cw-audio-color) 45%, transparent);
}
.cw-voice-card--library .cw-voice-card__name {
  font-size: clamp(20px, 4.2cqw, 38px); line-height: 1.15;
}
.cw-voice-card--library .cw-voice-card__title {
  font-size: clamp(16px, 3cqw, 28px); line-height: 1.25;
}
.cw-voice-card--library .cw-voice-card__link-icon { width: 40px; height: 40px; }
.cw-voice-card--library .cw-voice-card__links { min-height: 40px; }
.cw-voice-card--library .cw-voice-card__audio-wave { height: 48px; padding-block: 0; }
@media (max-width: 759px) {
  .cw-voice-card--library .cw-voice-card__link-icon { width: 28px; height: 28px; }
  .cw-voice-card--library .cw-voice-card__links { min-height: 28px; }
}

/* Player glow stays in its role color, with a stronger pulse during playback. */
.cw-voice-card--library .cw-voice-card__footer .cw-voice-card__audio-play {
  animation: none;
  color: var(--cw-audio-color);
  filter: none;
}
.cw-voice-card--library .cw-voice-card__footer .cw-voice-card__audio-play.is-playing {
  color: var(--cw-audio-color);
  box-shadow: 0 0 3px 1px var(--cw-audio-color),
              0 0 8px color-mix(in srgb, var(--cw-audio-color) 85%, transparent),
              0 0 14px color-mix(in srgb, var(--cw-audio-color) 45%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .cw-voice-card--library .cw-voice-card__footer .cw-voice-card__audio-play.is-playing {
    animation: cw-player-role-glow 2s ease-in-out infinite;
  }
}
@keyframes cw-player-role-glow {
  0%, 100% {
    box-shadow: 0 0 3px 1px var(--cw-audio-color),
                0 0 8px color-mix(in srgb, var(--cw-audio-color) 85%, transparent),
                0 0 14px color-mix(in srgb, var(--cw-audio-color) 45%, transparent);
  }
  50% {
    box-shadow: 0 0 4px 2px var(--cw-audio-color),
                0 0 12px color-mix(in srgb, var(--cw-audio-color) 90%, transparent),
                0 0 22px color-mix(in srgb, var(--cw-audio-color) 60%, transparent);
  }
}

/* Dense, thin live frequency bars, sized to each player's width. */
.cw-voice-card--library .cw-voice-card__audio-wave {
  justify-content: space-between; gap: 2px;
}
.cw-voice-card--library .cw-voice-card__audio-wave .cw-voice-card__audio-bar {
  flex: 1 1 0; width: auto; min-width: 0; max-width: 2px;
  border-radius: 1px; transform: none;
  box-shadow: 0 0 2px color-mix(in srgb, var(--cw-audio-color) 60%, transparent);
}

/* The supplied airbrush artwork sits within a quiet black frame. */
.cw-campaign .cw-campaign__intro--voices,
.voices-page .voices-heat-band {
  background: #000;
  border-color: var(--color-card-border);
  box-shadow: none;
  animation: none;
}
.cw-campaign .cw-campaign__title-bars,
.voices-page .voices-heat-band__wordmark {
  display: block; width: 100%; max-width: 620px; height: auto;
  aspect-ratio: auto; object-fit: contain;
  margin-inline: auto; filter: none;
}
/* Tally overlaps the artwork's lower airbrush instead of following a crop. */
.cw-campaign .cw-campaign__intro--voices .cw-campaign__counter {
  position: relative; z-index: 1; margin-top: -34%;
}
.voices-page .voices-heat-band__content { width: 100%; max-width: 620px; }
.voices-page .voices-heat-band__content h1 { width: 100%; }
.voices-page .voices-heat-band .cw-campaign__counter {
  position: relative; z-index: 1; margin-top: -34%;
}
.cw-campaign .cw-campaign__title-bars,
.voices-page .voices-heat-band__wordmark {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 85%, transparent 100%);
}
@media (min-width: 900px) {
  .cw-campaign .cw-campaign__intro--voices .cw-campaign__counter { margin-top: 0; }
}

/* Match the VOICES label typeface while preserving the four-digit tally. */
.cw-campaign__counter [data-stat="voices-total"] {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(3.5rem, 7vw, 5rem);
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: .08em;
  padding-left: .08em;
}

.cw-campaign .cw-campaign__subtitle,
.voices-page .voices-subtitle { color: #fff; }

/* Carry the extended campaign nebula behind the Community Wall invitation. */
.cw-campaign .cw-campaign__intro--voices {
  background: #03030b url('../assets/images/voices-heard-airbrush-extended.png') center top / min(100%, 680px) auto no-repeat;
  display: flex; flex-direction: column; text-align: center;
}
.cw-campaign .cw-campaign__intro--voices .cw-campaign__title { width: 100%; max-width: 620px; }
.cw-campaign .cw-campaign__intro--voices .cw-campaign__title-bars { visibility: hidden; }
.cw-campaign .cw-campaign__intro--voices .cw-campaign__counter { margin-top: max(-210px, -34%); }
.cw-campaign .cw-campaign__intro--voices .cw-campaign__actions { justify-self: auto; }
/* The wide archive artwork keeps all of its softened airbrush edges. */
.voices-page .voices-heat-band .cw-campaign__counter { margin-top: 0; }
.voices-page .voices-heat-band__wordmark { mask-image: none; -webkit-mask-image: none; }
@media (min-width: 900px) {
  .cw-campaign .cw-campaign__intro--voices { align-items: center; }
  .cw-campaign .cw-campaign__intro--voices .cw-campaign__subtitle,
  .cw-campaign .cw-campaign__intro--voices .cw-campaign__actions { align-self: center; }
}

/* Wider archive artwork with a separate, comfortable reading gutter. */
.voices-page .voices-heat-band__inner {
  max-width: 1200px; padding: 36px clamp(20px, 4vw, 48px);
}
.voices-page .voices-heat-band__content { max-width: 900px; }
.voices-page .voices-heat-band__content h1 { width: calc(100% + 16px); margin-inline: -8px; }
.voices-page .voices-heat-band__wordmark { max-width: 900px; }
.voices-page .voices-subtitle {
  width: 100%; max-width: 38ch; padding-inline: 16px; margin-inline: auto;
}
.cw-campaign .cw-campaign__subtitle {
  padding-inline: 12px; max-width: 30ch; margin-inline: auto;
}
.cw-campaign .cw-campaign__intro--voices {
  background-size: min(100%, 680px) auto;
}

/* Technical readout for the Voices Heard tally: self-hosted Oxanium Bold (SIL
   OFL, see assets/fonts/Oxanium-OFL.txt) with a soft cyan/magenta glow. */
@font-face {
  font-family: "Oxanium";
  src: url('../assets/fonts/Oxanium-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --font-digital: "Oxanium", "Share Tech Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --digital-glow:
    0 0 4px rgba(255, 255, 255, .9),
    0 0 14px rgba(63, 214, 255, .75),
    0 0 30px rgba(251, 47, 123, .55);
}
.cw-campaign__counter [data-stat="voices-total"] {
  font-family: var(--font-digital);
  font-weight: 700;
  letter-spacing: .08em;
  padding-left: .08em;
  color: #fff;
  text-shadow: var(--digital-glow);
}

/* Voices Heard campaign card: the round logo sits on plain black and carries
   its own glow, so the old background artwork and its masks are gone. */
.cw-campaign .cw-campaign__intro--voices { background: #000; }
.cw-campaign .cw-campaign__intro--voices .cw-campaign__title-bars {
  visibility: visible; width: 100%; max-width: 520px; aspect-ratio: 1; object-fit: contain;
  -webkit-mask-image: none; mask-image: none;
}
@media (max-width: 899.98px) {
  /* Tuck the tally into the logo's soft lower glow. */
  .cw-campaign .cw-campaign__intro--voices .cw-campaign__counter { margin-top: -12%; }
}
@media (min-width: 900px) {
  .cw-campaign .cw-campaign__intro--voices .cw-campaign__counter { margin-top: -36px; }
}

/* Corner nebula on the Voices Heard campaign card: it bleeds off the bottom and
   sides, and the extra bottom padding keeps the buttons above it. */
.cw-campaign .cw-campaign__intro--voices {
  background: #000 url('../assets/images/voices-heard-nebula-bottom.jpg') center bottom -80px / 128% auto no-repeat;
  padding-bottom: 108px;
}
@media (min-width: 900px) {
  .cw-campaign .cw-campaign__intro--voices {
    background-size: min(128%, 1300px) auto; background-position: center bottom -90px; padding-bottom: 96px;
  }
}
.cw-campaign__counter [data-stat="voices-total"] {
  font-size: clamp(3.4rem, 15vw, 4.8rem);
  line-height: 1.1;
  letter-spacing: .06em;
  padding-left: .06em;
}

/* Larger campaign logo: it runs a little past the card's padding, and the
   card's border crops the soft edge. */
.cw-campaign .cw-campaign__intro--voices .cw-campaign__title { max-width: none; }
.cw-campaign .cw-campaign__intro--voices .cw-campaign__title-bars {
  width: calc(100% + 64px); max-width: 760px; margin: 0; position: relative; left: 50%; transform: translateX(-50%);
}
@media (max-width: 899.98px) {
  .cw-campaign .cw-campaign__intro--voices .cw-campaign__counter { margin-top: -16%; }
}

/* Compact campaign card on phones: ~19px of black above the logo's glow and
   ~44px below the LISTEN button. The logo image has transparent padding of
   about 11.3% of its size at the top, so pull it up by that amount. */
@media (max-width: 899.98px) {
  .cw-campaign .cw-campaign__intro--voices {
    padding-top: 0;
    padding-bottom: 43px;
    background-position: center bottom -100px;
  }
  .cw-campaign .cw-campaign__intro--voices .cw-campaign__title-bars {
    margin-top: calc(19px - 0.113 * min(100% + 64px, 760px));
  }
}

/* The campaign card uses the same pink / green / blue glow as the sign-up modal,
   pulled down so only its top edge shows beneath the buttons. --vh-card-shift moves it. */
.cw-campaign .cw-campaign__intro--voices {
  --vh-card-shift: 215px;
  background: #000 url('../assets/images/voices-heard-modal-bg.jpg?v=2') center calc(100% + var(--vh-card-shift)) / 100% auto no-repeat;
}
@media (max-width: 899.98px) {
  .cw-campaign .cw-campaign__intro--voices { background-position: center calc(100% + var(--vh-card-shift)); }
}
@media (min-width: 900px) {
  /* Wide card: the glow image runs the full width of the card at its natural proportions
     (never stretched), so the pink and blue blobs reach both edges. It is slid down so only
     the band with the pink / green / blue peaks shows above the bottom edge; the shift scales
     with the card's width (~0.67 x width keeps the same slice at any screen size). */
  .cw-campaign .cw-campaign__intro--voices {
    background: #000 url('../assets/images/voices-heard-modal-bg.jpg?v=2') center calc(100% + 68vw - 25px) / 100% auto no-repeat;
  }
}

