:root {
  --bg: #0d0d0d;
  --surface: #1a1a1a;
  --text: #e8e6e3;
  --muted: #8a8782;
  --accent: #e63946;
  --accent-soft: rgba(230, 57, 70, 0.15);
  --border: #2d2d2a;
  --success: #2a9d8f;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 720px; margin: 0 auto; padding: 0 1.25rem; }
.container-wide { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }
.mono { font-family: 'Space Mono', monospace; }

/* Nav */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem 1.25rem;
  padding: 0.75rem 1.25rem;
  margin: 0 auto;
  max-width: 1100px;
  font-size: 0.9rem;
  align-items: center;
}
.nav-inner a {
  color: var(--muted);
  text-decoration: none;
}
.nav-inner a:hover { color: var(--accent); }
.nav-inner .nav-logo { color: var(--text); font-weight: 600; display: inline-flex; align-items: center; gap: 0.5rem; flex: 0 0 auto; }
.nav-inner .nav-logo svg { width: 18px; height: 18px; flex: 0 0 auto; }
.nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem 1.25rem;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { white-space: nowrap; }
@media (min-width: 980px) {
  .nav-inner { justify-content: space-between; }
}
@media (max-width: 768px) {
  /* On mobile, keep only the site name (brand) */
  .nav-links { display: none; }
  .nav-inner { justify-content: center; padding: 0.7rem 1rem; }
}

/* Hero */
header {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
header#top { scroll-margin-top: 0; }
.logo { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); margin-bottom: 1.5rem; }
h1 {
  font-size: clamp(1.85rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
.tagline { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* Cities ticker - scrolling list of places that blocked/restricted Flock */
.cities-ticker-wrap {
  overflow: hidden;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  background: rgba(26, 26, 26, 0.5);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.cities-ticker-label {
  flex-shrink: 0;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.cities-ticker-track {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.cities-ticker {
  display: flex;
  width: max-content;
  animation: cities-scroll 70s linear infinite;
  will-change: transform;
  --cities-shift: 50%;
}
.cities-ticker:hover { animation-play-state: paused; }
.cities-ticker-group { display: flex; gap: 0; }
.cities-ticker-item { display: inline-flex; align-items: center; gap: 0; }
.cities-ticker-sep {
  color: var(--border);
  user-select: none;
  padding: 0 0.75rem;
}
.cities-ticker a {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
  text-decoration: none;
}
.cities-ticker a:hover { color: var(--accent); }
@keyframes cities-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-1 * var(--cities-shift))); }
}

/* Sections */
section { padding: 2.5rem 0; border-bottom: 1px solid var(--border); scroll-margin-top: 3rem; }
section:last-of-type { border-bottom: none; }
@media (max-width: 768px) {
  section { scroll-margin-top: calc(3.4rem + 10px); }
}
h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--text);
}
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Party-lines diagram & carousel */
.party-carousel-wrap { margin: 1.5rem 0; }
.party-carousel-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.party-arrow {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  font-size: 1.25rem;
  line-height: 1;
}
.party-arrow:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.party-arrow:disabled { opacity: 0.4; cursor: not-allowed; }
.party-carousel-outer { flex: 1; min-width: 0; }
.party-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 1rem;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}
.party-carousel::-webkit-scrollbar { display: none; }
.party-carousel { scrollbar-width: none; }
.party-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.party-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  flex: 1;
  min-height: 0;
  max-height: 42vh;
}
@media (max-width: 640px) {
  .party-diagram { grid-template-columns: 1fr; }
}
.party-side {
  padding: 1rem 1.25rem;
  min-height: 0;
  overflow-y: auto;
}
.party-left {
  background: rgba(30, 58, 138, 0.25);
  border-right: 3px solid #3b82f6;
}
.party-right {
  background: rgba(127, 29, 29, 0.25);
  border-left: 3px solid #dc2626;
}
@media (max-width: 640px) {
  .party-left { border-right: none; border-bottom: 3px solid #3b82f6; }
  .party-right { border-left: none; border-top: 3px solid #dc2626; }
}
.party-side-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.party-left .party-side-label { color: #93c5fd; }
.party-right .party-side-label { color: #fca5a5; }
.party-side-title { font-weight: 700; margin-bottom: 0.35rem; font-size: 1.05rem; }
.party-side p { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--text); }
.party-center {
  background: var(--surface);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
@media (max-width: 640px) {
  .party-center { border-left: none; border-right: none; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); order: -1; }
}
.party-center-inner { font-size: 0.9rem; font-weight: 600; color: var(--muted); max-width: 140px; }
.party-center-inner strong { color: var(--text); display: block; margin-top: 0.25rem; }
.party-voters {
  margin: 0.5rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  flex-shrink: 0;
}
.party-slide .source-line {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.party-voters-label {
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
  color: var(--muted);
}
.party-voters-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.party-voters .voter-d { color: #93c5fd; }
.party-voters .voter-r { color: #fca5a5; }
.party-slide .source-line { margin-top: 0.4rem; font-size: 0.78rem; }
.party-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1rem;
  flex-wrap: nowrap;
}
.party-dot {
  width: 6px;
  height: 4px;
  min-width: 6px;
  min-height: 4px;
  border-radius: 1px;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 5px;
  margin: -5px;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
  box-sizing: content-box;
}
.party-dot:hover { background: var(--muted); }
.party-dot.active { background: var(--accent); }
.party-nav-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  width: 100%;
}
.party-dots {
  width: 100%;
  justify-content: center;
}
.party-hint {
  font-size: 0.85rem;
  color: var(--muted);
}
.party-mobile-nav {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.party-mobile-nav .party-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
}
@media (max-width: 640px) {
  .party-carousel-row > .party-arrow { display: none; }
  .party-nav-hint {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .party-mobile-nav { display: flex; justify-content: space-between; align-items: center; gap: 0; width: 100%; position: relative; }
  .party-mobile-nav .party-arrow:first-child { margin-right: auto; }
  .party-mobile-nav .party-arrow:last-child { margin-left: auto; }
  .party-mobile-nav .party-dots { width: auto; gap: 0.9rem; margin-top: 0; flex-shrink: 0; position: absolute; left: 50%; transform: translateX(-50%); pointer-events: auto; }
  .party-hint { text-align: center; }
  .party-diagram { max-height: none; }
  .party-side { overflow-y: visible; }
}

/* Claim cards */
.claim {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.claim:last-child { margin-bottom: 0; }
.claim-header { font-weight: 700; margin-bottom: 0.35rem; }
.claim-myth { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.5rem; }
.claim-fact { color: var(--text); font-size: 0.98rem; }
.source-line { margin: 0.6rem 0 0; font-size: 0.8rem; color: var(--muted); }
.source-line a { color: var(--accent); }
.source-line a:hover { color: var(--accent); text-decoration: underline; }

/* Beyond ALPR chips */
.beyond-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  margin-top: 0.75rem;
}
.beyond-chip {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
}
.beyond-chip:hover {
  color: var(--accent);
  border-color: rgba(230, 57, 70, 0.55);
  text-decoration: none;
}
.beyond-chip:focus-visible {
  outline: 2px solid rgba(230, 57, 70, 0.45);
  outline-offset: 2px;
}
.beyond-more-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  margin: 1.25rem 0 0.5rem !important;
}
.beyond-chips-extra { margin-top: 0; }
.beyond-see-more { margin: 0 0 1rem; }
.beyond-see-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(230, 57, 70, 0.35);
  background: rgba(230, 57, 70, 0.08);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.beyond-see-more-link:hover {
  border-color: rgba(230, 57, 70, 0.7);
  background: rgba(230, 57, 70, 0.12);
  text-decoration: none;
}
.beyond-see-more-link:focus-visible {
  outline: 2px solid rgba(230, 57, 70, 0.45);
  outline-offset: 2px;
}

/* Cases */
.case {
  margin-bottom: 1.25rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}
.case:last-child { margin-bottom: 0; }
.case-title { font-weight: 600; margin-bottom: 0.25rem; }
.case-detail { color: var(--muted); font-size: 0.95rem; margin: 0; }
.case-source { margin-top: 0.4rem; font-size: 0.8rem; color: var(--muted); }
.case-source a { color: var(--accent); }
.case-source a:hover { color: var(--accent); text-decoration: underline; }

/* Quote */
.quote-block {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
}
.quote-attrib { font-style: normal; color: var(--muted); font-size: 0.9rem; margin-top: 0.5rem; }

/* CTA */
.cta-section { background: var(--surface); padding: 2.5rem 0; }
.cta-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}
.cta-link:hover { border-color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.cta-link.external::after { content: "↗"; font-size: 0.9em; opacity: 0.8; }
.cta-note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */
footer {
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* Bottom nav - floating, hidden at top */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 0.75rem 1rem;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  background: transparent;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.bottom-nav.at-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  pointer-events: none;
}
.bottom-nav .bottom-nav-inner {
  pointer-events: auto;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bottom-nav-glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 0.6rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.bottom-nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.bottom-nav-pill-slot {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.bottom-nav-pill-slot:first-child { justify-content: flex-end; }
.bottom-nav-pill-slot:last-child { justify-content: flex-start; }
.bottom-nav-bar {
  flex: 0 0 auto;
  width: 200px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: transparent;
  border: none;
  border-radius: 28px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s;
  box-shadow: none;
}
.bottom-nav-bar:hover { background: rgba(230, 57, 70, 0.15); }
.bottom-nav-bar:active { transform: scale(0.98); }
.bottom-nav-bar .bottom-nav-current-label {
  display: inline-block;
}
.bottom-nav-bar.section-change .bottom-nav-current-label {
  animation: section-change 0.25s ease-out;
}
@keyframes section-change {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.bottom-nav-bar::after {
  content: '';
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--muted);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.bottom-nav.open .bottom-nav-bar::after { transform: rotate(180deg); }
.bottom-nav-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 0;
  width: 100%;
  border: none;
  border-radius: 20px;
  background: transparent;
  box-shadow: none;
}
.bottom-nav.open .bottom-nav-list {
  max-height: 65vh;
  overflow-y: auto;
  margin-bottom: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.bottom-nav.closing .bottom-nav-list {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.bottom-nav-list a {
  display: block;
  min-height: 48px;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s;
}
.bottom-nav-list a:last-child { border-bottom: none; }
.bottom-nav-list a:hover { background: rgba(230, 57, 70, 0.1); color: var(--accent); }
.bottom-nav-list a:active { background: rgba(230, 57, 70, 0.15); }
.bottom-nav-list a.active { color: var(--accent); font-weight: 600; }
.bottom-nav-pill {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--muted);
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s, background 0.2s;
  box-shadow: none;
}
.bottom-nav-pill:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.bottom-nav-pill svg { width: 22px; height: 22px; fill: currentColor; }
.bottom-nav-pill:active { transform: scale(0.95); }
.bottom-nav-pill .bottom-nav-pill-label { display: none; }
.bottom-nav-pill.hidden { visibility: hidden; pointer-events: none; }
body { padding-bottom: 5.5rem; }

/* People grid */
.voices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.voice-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.voice-card:hover { border-color: var(--accent); }
.voice-card.voice-card-plain {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.12);
}
.voice-card.voice-card-plain:hover { border-color: rgba(230, 57, 70, 0.6); }
.voice-card-plain .voice-card-media { display: none; }
.voice-card-plain .voice-card-body { padding: 1.25rem 1.25rem; }
.voice-card-plain .voice-card-quote { color: var(--muted); }
.voice-card-plain ul { margin: 0.75rem 0 0; padding-left: 1.1rem; }
.voice-card-plain li { margin-bottom: 0.45rem; }
.voice-card a { color: inherit; text-decoration: none; }
.voice-card a:hover { text-decoration: none; }
.voice-card-media {
  aspect-ratio: 16/9;
  width: 100%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.voice-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.voice-card-media.logo-frame {
  background: var(--surface);
  padding: 1rem 1.25rem;
}
.voice-card-media.logo-frame.logo-full {
  padding: 0.35rem 0.5rem;
}
.voice-card-media.logo-frame.logo-full .voice-card-img {
  transform: scale(1.08);
}
.voice-card-media.logo-frame .voice-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.voice-card-media.logo-frame.invert-logo .voice-card-img {
  filter: invert(1);
}
.voice-card-body { padding: 1rem 1.25rem; }
.voice-card-name { font-weight: 700; margin-bottom: 0.2rem; }
.voice-card-role { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.5rem; }
.voice-card-quote { font-size: 0.95rem; color: var(--text); line-height: 1.5; }
.voice-card-link { font-size: 0.85rem; color: var(--accent); margin-top: 0.5rem; display: inline-block; }
.voice-card-link:hover { text-decoration: underline; }

/* Bullet list in sections */
section ul { margin: 0 0 1rem; padding-left: 1.35rem; }
section li { margin-bottom: 0.5rem; }

/* Resources section */
.resources-grid { display: grid; gap: 2rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .resources-grid { grid-template-columns: repeat(2, 1fr); } }
.resources-group h3 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 0.75rem; }
.resources-list { list-style: none; padding: 0; margin: 0; }
.resources-list li { margin-bottom: 0.5rem; }
.resources-list a { display: inline-block; color: var(--text); }
.resources-list a:hover { color: var(--accent); }
.resources-list .domain { font-size: 0.85rem; color: var(--muted); margin-left: 0.25rem; }
