.broadcasts {
  --broadcast-accent: #fb2f7b;
  --archive-nav-height: 64px;
}

.broadcasts__sticky {
  position: sticky;
  top: var(--archive-nav-height);
  z-index: 90;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-card-border);
}

/* Broadcasts v2: the opening header scrolls away normally instead of
   staying permanently pinned -- .broadcasts-condensed (below) replaces
   it once it's gone. Scoped to .broadcasts--v2 only so Voices Heard,
   which still shares these .broadcasts__* classes, keeps its current
   always-sticky behavior untouched. */
/* Mobile only: desktop keeps the original always-sticky full header,
   since there's no condensed replacement for it at that width. */
@media (max-width: 759px) {
  .broadcasts--v2 .broadcasts__sticky {
    position: static;
  }

  /* A search that narrows the list to very few cards can otherwise
     shrink the page shorter than the current scroll position, which
     forces the browser to snap scroll back to 0 -- collapsing the
     condensed header (and closing its open search row) out from under
     whoever is typing. */
  .broadcasts--v2 .broadcasts__results { min-height: 100vh; }
}

/* ---------- Condensed sticky header (mobile) ----------
   Mirrors the Transmissions sticky-breadcrumb mechanism: hidden until
   the opening .broadcasts__sticky section scrolls out of view, then
   fixed below the nav for the rest of the scroll. */
.broadcasts-condensed { display: none; }
@media (max-width: 759px) {
  .broadcasts-condensed {
    display: block;
    position: fixed;
    top: var(--b-nav-height, 64px);
    left: var(--frame-margin);
    right: var(--frame-margin);
    z-index: 90;
    background: var(--color-bg);
    border-top: 1px solid var(--color-card-border);
    border-bottom: 1px solid var(--color-card-border);
    border-left: 1px solid var(--color-card-border);
    border-right: 1px solid var(--color-card-border);
  }
  .broadcasts-condensed[hidden] { display: none; }

  .broadcasts-condensed__inner {
    padding: 12px var(--section-padding-x);
  }

  .broadcasts-condensed__crumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 8px;
  }
  .broadcasts-condensed__crumb a { color: var(--color-text); text-decoration: none; }
  .broadcasts-condensed__crumb a:hover { text-decoration: underline; text-underline-offset: 4px; }
  .broadcasts-condensed__crumb [aria-current="page"] { color: var(--color-text-muted); }

  .broadcasts-condensed__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .broadcasts-condensed__title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
  }

  .broadcasts-condensed__search-toggle {
    flex: none;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    color: var(--color-text);
    cursor: pointer;
  }
  .broadcasts-condensed__search-toggle svg { width: 18px; height: 18px; }
  .broadcasts-condensed__search-toggle[aria-expanded="true"] {
    background: var(--color-text);
    color: var(--color-bg);
  }

  .broadcasts-condensed__search-row { margin-top: 10px; }
  .broadcasts-condensed__search-row[hidden] { display: none; }
  .broadcasts-condensed__search-row input {
    width: 100%;
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-card-border);
    padding: 12px 14px;
    font: inherit;
    font-size: max(16px, 0.9rem);
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }
  .broadcasts-condensed__search-row input:focus { border-color: var(--color-text); }
  .broadcasts-condensed__search-row input::placeholder { color: var(--color-text-muted); }
}

.broadcasts__sticky-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px var(--section-padding-x);
}

.broadcasts__results {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px var(--section-padding-x) 48px;
}

.broadcasts__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.broadcasts__breadcrumb a {
  color: var(--color-text);
  text-decoration: none;
}

.broadcasts__breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.broadcasts__breadcrumb a:focus-visible {
  outline: 2px solid var(--broadcast-accent);
  outline-offset: 4px;
}

.broadcasts__header {
  padding-bottom: 4px;
  margin-bottom: 8px;
}

.broadcasts__header h1 {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.15;
  margin-bottom: 4px;
}

.broadcasts__header p {
  color: var(--color-text-muted);
  line-height: 1.5;
}

.broadcasts__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
}

.broadcasts__search {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  border: 1px solid var(--color-card-border);
  padding: 14px;
}

.broadcasts__search svg { width: 20px; height: 20px; flex-shrink: 0; }
.broadcasts__search:focus-within { border-color: var(--color-text); }
.broadcasts__search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  font: inherit;
  /* 16px minimum: smaller text makes iOS Safari zoom the page when the field is focused. */
  font-size: max(16px, 0.9rem);
  opacity: 1;
  -webkit-text-fill-color: var(--color-text-muted);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.broadcasts__search input::placeholder { color: var(--color-text-muted); opacity: 1; }
.broadcasts__filter,
.broadcasts__load {
  border: 1px solid var(--color-card-border);
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 14px 20px;
  opacity: 1;
}
.broadcasts__filter span { margin-left: 8px; }
.broadcasts__list { display: grid; gap: 16px; }
.broadcasts__load { width: 100%; margin-top: 16px; cursor: pointer; padding: 20px; }
.broadcasts__load span { margin-left: 10px; }
.broadcasts__load:hover { border-color: var(--broadcast-accent); }
.broadcasts__load:focus-visible { outline: none; box-shadow: none; }
.broadcasts [hidden] { display: none !important; }
.broadcasts__status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.broadcasts__empty { color: var(--color-text-muted); padding: 20px 0; }
@media (max-width: 480px) {
  .broadcasts__sticky-inner { padding-top: 28px; padding-bottom: 28px; }
  .broadcasts__filter { padding: 12px; font-size: 0.75rem; }
  .broadcasts__search { gap: 8px; padding: 12px; }
  .broadcasts__search input { font-size: 16px; }
}

/* ---------- Voices Heard artwork band ---------- */
.voices-heat-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* A direct child of .broadcasts__sticky (a sibling of the breadcrumb
     and .broadcasts__sticky-inner, not nested inside that 1100px-capped
     container), so its own full width already reaches the true
     site-frame edges -- same fix as the breadcrumb strip above it. The
     background stays on this unpadded, uncapped box so it
     reach those edges; the content's own alignment comes from
     .voices-heat-band__inner below, sized exactly like
     .broadcasts__sticky-inner and .broadcasts__results so the icon,
     title, and CTA line up with the filter row and card grid under it
     at every viewport width instead of centering independently inside
     a max-width wider than theirs. */
  border-bottom: 1px solid var(--color-card-border);
}
.voices-heat-band__inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px var(--section-padding-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.voices-heat-band__icon {
  flex: none;
  width: auto;
  height: 140px;
  max-width: 80%;
  object-fit: contain;
}
.voices-heat-band__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  min-width: 0;
}
.voices-heat-band__content h1 {
  line-height: 0;
}
.voices-heat-band__wordmark {
  display: block;
  width: clamp(220px, 34vw, 420px);
  height: auto;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
}
.voices-heat-band__cta.cw-campaign__add-voice {
  width: auto;
  flex: none;
}
/* Desktop: icon, then title + subtitle as a second column right next
   to it, with the CTA pushed out to sit on its own at the far right
   (auto margin eats the remaining row width). */
@media (min-width: 760px) {
  .voices-heat-band__inner {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
  }
  .voices-heat-band__icon {
    max-width: 180px;
  }
  .voices-heat-band__content {
    align-items: flex-start;
    text-align: left;
    flex: 1 1 auto;
    min-width: 0;
  }
  .voices-heat-band__cta.cw-campaign__add-voice {
    margin-left: auto;
  }
}
.voices-subtitle {
  color: var(--color-text);
  opacity: 0.85;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  max-width: 44ch;
}

/* ---------- Voices Heard controls: mobile FILTER button, desktop inline selects ----------
   Scoped with .voices-controls rather than touching .broadcasts__search/
   .broadcasts__controls directly, since Broadcasts shares those same
   classes and still wants its search field to fill the row.
   Mobile keeps the original FILTER button -> bottom-sheet panel flow;
   only desktop swaps it for the two selects inline in the header. */
.voices-filter-box { display: none; }
@media (min-width: 760px) {
  .broadcasts__controls.voices-controls .broadcasts__search {
    flex: 1 1 240px;
    max-width: 360px;
  }
  .voices-filter-toggle { display: none; }
  .voices-filter-box {
    display: flex;
    flex: 1 1 280px;
    gap: 12px;
  }
  .voices-filter-box .voices-filter-select {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding: 14px 32px 14px 16px;
    background-position: calc(100% - 16px) center, calc(100% - 10px) center;
  }
}

/* ---------- Voices Heard desktop spacing: tighter header, more room
   above the card grid ----------
   Shifts some of the vertical breathing room out of the search/filter
   row and into the gap below the divider, so the cards don't start
   right under it. Scoped to .voices-page since .broadcasts__sticky-inner
   and .broadcasts__results are shared with Broadcasts, which keeps its
   own spacing untouched. */
@media (min-width: 760px) {
  .voices-page .broadcasts__sticky-inner {
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .voices-page .broadcasts__results {
    padding-top: 32px;
  }
}

/* ---------- Voices Heard filter count badge ---------- */
.voices-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: 6px;
}
.voices-filter-count[hidden] { display: none; }

/* ---------- Voices Heard filter panel ---------- */
/* A compact dropdown anchored below the sticky header Filter button. */
.voices-filter-panel {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 200;
}
.voices-filter-panel[hidden] { display: none; }
.voices-filter-panel__backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
}
.voices-filter-panel__sheet {
  position: fixed;
  width: min(340px, calc(100vw - 32px));
  box-sizing: border-box;
  background: var(--color-bg);
  border: 1px solid var(--color-card-border);
  padding: 20px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  animation: voices-panel-down .16s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .voices-filter-panel__sheet { animation: none; }
}
@keyframes voices-panel-down {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.voices-filter-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.voices-filter-panel__header h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.voices-filter-panel__close {
  background: none;
  border: 0;
  color: var(--color-text);
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.voices-filter-panel__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.voices-filter-select {
  width: 100%;
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-card-border);
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: max(16px, 0.85rem);
  letter-spacing: 0.02em;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-text) 50%), linear-gradient(135deg, var(--color-text) 50%, transparent 50%);
  background-position: calc(100% - 22px) center, calc(100% - 16px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.voices-filter-select option { background: var(--color-bg); color: var(--color-text); }
.voices-filter-panel__actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.voices-filter-panel__actions .broadcasts__filter { flex: 1 1 0; text-align: center; cursor: pointer; }

/* ---------- Voices Heard breadcrumb: Broadcasts sizing ---------- */
/* Scoped with an extra class rather than touching .broadcasts__breadcrumb/
   .broadcasts-condensed__crumb directly, since Broadcasts shares those
   same classes and keeps its black breadcrumb. */
.broadcasts__breadcrumb.voices-crumb,
.broadcasts-condensed__crumb.voices-crumb {
  background: var(--color-text);
  color: var(--color-bg);
  box-sizing: border-box;
  margin-bottom: 0;
  font-size: 0.78rem;
}
.broadcasts__breadcrumb.voices-crumb a,
.broadcasts-condensed__crumb.voices-crumb a,
.broadcasts__breadcrumb.voices-crumb [aria-current="page"],
.broadcasts-condensed__crumb.voices-crumb [aria-current="page"] {
  color: var(--color-bg);
}
/* Full header: a direct child of .broadcasts__sticky now (moved there
   in the markup), which has no max-width cap and no padding of its
   own -- unlike .broadcasts__sticky-inner, which caps out at 1100px
   and left a black gap on wide desktop viewports when the strip tried
   to break out of just that inner padding. Being outside it entirely
   means the strip's own background already reaches the true edges, so
   it just needs its own horizontal padding for the text. */
.broadcasts__breadcrumb.voices-crumb {
  padding: 6px var(--section-padding-x);
  width: 100%;
}
/* Condensed header: still nested inside .broadcasts-condensed__inner's
   padded box (mobile only; that bar is already sized to the site-frame
   exactly, so there's no 1100px-cap issue to work around here) --
   break out of that padding and cancel its top inset to stay flush. */
.broadcasts-condensed__crumb.voices-crumb {
  padding: 6px var(--section-padding-x);
  margin-left: calc(-1 * var(--section-padding-x));
  margin-right: calc(-1 * var(--section-padding-x));
  width: calc(100% + 2 * var(--section-padding-x));
  margin-top: -12px;
}



/* Voices Heard reveals its breadcrumb and controls only after the hero passes. */
.voices-page .broadcasts__sticky { position: static; }
.voices-page .broadcasts__results { min-height: 100vh; }
.voices-heat-band__inner { padding-top: 48px; padding-bottom: 48px; }
:is(#voices-condensed, #broadcasts-condensed) {
  display: block;
  position: fixed;
  top: var(--b-nav-height, 64px);
  left: var(--frame-margin);
  right: var(--frame-margin);
  z-index: 90;
  background: var(--color-bg);
  border: 1px solid var(--color-card-border);
}
:is(#voices-condensed, #broadcasts-condensed)[hidden] { display: none; }
:is(#voices-condensed, #broadcasts-condensed) .broadcasts-condensed__inner { padding: 12px var(--section-padding-x) 16px; }
:is(#voices-condensed, #broadcasts-condensed) .broadcasts-condensed__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 16px;
}
:is(#voices-condensed, #broadcasts-condensed) .broadcasts-condensed__title { font-size: 1.1rem; line-height: 1.2; }
.voices-sticky-actions { display: flex; align-items: center; gap: 10px; }
.voices-sticky-actions .broadcasts__filter { padding: 10px 12px; cursor: pointer; }
:is(#voices-condensed, #broadcasts-condensed) .broadcasts-condensed__search-toggle {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--color-text); cursor: pointer;
}
:is(#voices-condensed, #broadcasts-condensed) .broadcasts-condensed__search-toggle svg { width: 18px; height: 18px; }
:is(#voices-condensed, #broadcasts-condensed) .broadcasts-condensed__search-row { margin-top: 12px; }
:is(#voices-condensed, #broadcasts-condensed) .broadcasts-condensed__search-row[hidden] { display: none; }
:is(#voices-condensed, #broadcasts-condensed) .broadcasts-condensed__search-row input {
  width: 100%; padding: 12px 14px; background: transparent; color: var(--color-text);
  border: 1px solid var(--color-card-border); font: inherit; font-size: max(16px, .9rem);
}

:is(#voices-condensed, #broadcasts-condensed) .broadcasts-condensed__crumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: .78rem; font-weight: 700;
}

/* Opening the dropdown never highlights or activates a select field. */
.voices-filter-panel__sheet,
.voices-filter-panel .voices-filter-select {
  -webkit-tap-highlight-color: transparent;
}
.voices-filter-panel__sheet:focus,
.voices-filter-panel .voices-filter-select:focus {
  outline: none;
  box-shadow: none;
}
.voices-filter-panel.is-keyboard .voices-filter-select:focus {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

/* The opening House header scrolls away before its breadcrumb is revealed. */
.house-page .broadcasts__sticky { position: static; }
.house-page .broadcasts__results { min-height: 100vh; }

/* House search: retain the mobile rows; compact both desktop headers. */
.house-search-clear { flex: none; border: 0; background: transparent; color: var(--color-vandalism); font: 400 24px/1 var(--font-body); padding: 4px; cursor: pointer; }
.house-search-clear[hidden] { display: none; }
#broadcasts-condensed-search-row { position: relative; }
#broadcasts-condensed-search-row .house-search-clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
#broadcasts-condensed #broadcasts-search-condensed { padding-right: 44px; }
:is(#broadcasts-search-full, #broadcasts-search-condensed):focus { outline: none !important; box-shadow: none !important; }
:is(#broadcasts-search-full, #broadcasts-search-condensed)::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.house-search-clear:focus-visible { outline: 1px solid var(--color-vandalism); outline-offset: 2px; }
@media (min-width: 760px) {
  .house-page .broadcasts__sticky-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 360px); align-items: center; gap: 24px; }
  .house-page .broadcasts__controls { margin: 0; }
  #broadcasts-condensed .broadcasts-condensed__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 340px) 40px; gap: 12px 20px; align-items: center; }
  #broadcasts-condensed .broadcasts-condensed__crumb { grid-column: 1 / -1; }
  #broadcasts-condensed .broadcasts-condensed__row { display: contents; }
  #broadcasts-condensed .broadcasts-condensed__title { grid-column: 1; grid-row: 2; }
  #broadcasts-search-toggle { grid-column: 3; grid-row: 2; }
  #broadcasts-condensed #broadcasts-condensed-search-row { grid-column: 2; grid-row: 2; margin-top: 0; }
}

/* Desktop Voices Heard: inline filters and a persistent search field. */
@media (min-width: 760px) {
  #voices-condensed .broadcasts-condensed__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(160px, 300px);
    align-items: center;
    gap: 16px 12px;
  }
  #voices-condensed .broadcasts-condensed__crumb { grid-column: 1 / -1; }
  #voices-condensed .broadcasts-condensed__row { display: contents; }
  #voices-condensed .voices-filter-box { flex: none; gap: 10px; }
  #voices-condensed .voices-filter-select { width: 140px; padding: 12px 30px 12px 12px; }
  #voices-condensed #voices-filter-toggle { display: none; }
  #voices-condensed #voices-search-row { display: block; margin: 0; }
  #voices-condensed #voices-search-input:focus { outline: none; box-shadow: none; }
}

/* Shared boxed search treatment, matching the full House search. */
:is(#voices-condensed, #broadcasts-condensed) .broadcasts-condensed__search-row input {
  padding: 14px 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3f3f4' stroke-width='2'%3E%3Ccircle cx='10' cy='10' r='7'/%3E%3Cpath d='m15 15 6 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
  background-size: 20px 20px;
}
@media (min-width: 760px) {
  #broadcasts-condensed .broadcasts-condensed__inner { grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); }
  #broadcasts-condensed #broadcasts-search-toggle,
  #voices-condensed #voices-search-toggle { display: none; }
  #broadcasts-condensed #broadcasts-condensed-search-row[hidden] { display: block; }
  :is(#voices-condensed, #broadcasts-condensed) .broadcasts-condensed__search-row input { font-size: .9rem; }
  #voices-condensed .voices-filter-select { font-size: .85rem; width: 140px; }
}

/* Give desktop search fields and dropdowns the same outer height. */
@media (min-width: 760px) {
  :is(#voices-condensed, #broadcasts-condensed) .broadcasts-condensed__search-row input,
  #voices-condensed .voices-filter-select {
    box-sizing: border-box;
    height: 44px;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1.2;
  }
  .house-page .broadcasts__search { box-sizing: border-box; height: 44px; padding-block: 0; }
}

/* The main nav's bottom border supplies this shared divider. */
:is(#voices-condensed, #broadcasts-condensed) { border-top: 0; }

/* Match condensed header content to the cards' 1100px page column. */
:is(#voices-condensed, #broadcasts-condensed) .broadcasts-condensed__inner {
  max-width: 1100px;
  width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

/* Extend the white strip across the frame without widening its text column. */
:is(#voices-condensed, #broadcasts-condensed) { overflow: hidden; }
:is(#voices-condensed, #broadcasts-condensed) .broadcasts-condensed__crumb {
  position: relative;
  isolation: isolate;
}
:is(#voices-condensed, #broadcasts-condensed) .broadcasts-condensed__crumb::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--color-text);
  z-index: -1;
  pointer-events: none;
}

/* The campaign filter disclosure continues directly from its toolbar. */
.voices-filter-panel__sheet { border-top: 0; box-shadow: none; animation: none; }
