/* ==========================================================================
   Hot Snow Today — News Channel CSS (Section-Scroll, Dark Theme)
   ========================================================================== */

/* ==========================================================================
   Design Tokens
   ========================================================================== */

:root {
  /* Colors (Strict Dark Theme) */
  --color-hst-yellow: 231, 184, 42;
  --color-white: 255, 255, 255;
  --color-text-primary: 255, 255, 255;
  --color-text-secondary: 230, 230, 230;
  --color-text-muted: 180, 180, 180;
  --color-text-subtle: 140, 140, 140;
  --color-bg: 0, 0, 0;
  --color-bg-elevated: 15, 15, 15;
  --color-bg-card: 20, 20, 20;
  --color-border: 40, 40, 40;
  --color-border-strong: 60, 60, 60;
  --color-fundraise-bg: 10, 10, 5;
  --color-fundraise-border: 231, 184, 42;
  --color-error: 255, 80, 80;
  --color-success: 80, 200, 120;
  --color-focus: 231, 184, 42;
  --color-live-red: 220, 40, 40;
  --color-ticker-bg: 4, 7, 13;

  /* Typography */
  --font-display: "Oswald", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Oswald", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  --font-weight-bold: 700;
  --font-weight-medium: 500;
  --font-weight-normal: 400;

  /* Fluid type */
  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.75rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.15rem);
  --text-lg: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --text-xl: clamp(1.5rem, 1.3rem + 1vw, 1.9rem);
  --text-2xl: clamp(2rem, 1.7rem + 1.5vw, 2.6rem);
  --text-3xl: clamp(2.6rem, 2.2rem + 2vw, 3.5rem);
  --text-4xl: clamp(3.2rem, 2.6rem + 3vw, 4.5rem);

  --leading-tight: 1.05;
  --leading-snug: 1.15;
  --leading-normal: 1.35;
  --leading-relaxed: 1.5;

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem; --space-20: 5rem;

  /* Layout */
  --container-max: 720px;
  --header-height: 72px;
  --ticker-height: 40px;

  /* Motion */
  --motion-fast: 100ms;
  --motion-base: 180ms;
  --motion-slow: 300ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --z-ticker: 100;
  --z-header: 200;
  --z-modal: 200;
  --z-toast: 300;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: rgb(var(--color-text-secondary));
  background: rgb(var(--color-bg));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-weight: var(--font-weight-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgb(var(--color-hst-yellow));
  color: rgb(var(--color-bg));
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: rgb(var(--color-text-primary));
  margin: 0 0 var(--space-4);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p { margin: 0 0 var(--space-4); }

a {
  color: rgb(var(--color-hst-yellow));
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--motion-fast) var(--ease-out);
}

a:hover { color: rgb(255, 200, 50); }
a:focus-visible {
  outline: 2px solid rgb(var(--color-focus));
  outline-offset: 3px;
  border-radius: 2px;
}

strong { font-weight: 700; }
em { font-style: italic; }

.muted { color: rgb(var(--color-text-muted)); }
.subtle { color: rgb(var(--color-text-subtle)); }

/* ==========================================================================
   Layout Primitives
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* ==========================================================================
   Section Scroll Layout
   ========================================================================== */

.main-content {
  flex: 1;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-padding-top: calc(var(--header-height) + var(--ticker-height));
}

.section {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  min-height: 100vh;
  padding: var(--space-12) 0;
  position: relative;
}

.section:first-child { padding-top: calc(var(--space-16) + var(--ticker-height)); }

/* ==========================================================================
   Breaking News Ticker (Top Bar)
   ========================================================================== */

.ticker-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--ticker-height);
  z-index: var(--z-ticker);
  background: rgb(var(--color-ticker-bg));
  border-bottom: 1px solid rgb(var(--color-border));
  overflow: hidden;
}

.ticker-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 100%;
  padding: 0 var(--space-4);
}

.ticker-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: rgb(var(--color-hst-yellow));
  color: #000;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-label::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--color-live-red);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
  flex-shrink: 0;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgb(var(--color-text-secondary));
  font-weight: 400;
}

.ticker-item::before {
  content: "•";
  color: rgb(var(--color-hst-yellow));
}

.ticker-content:hover { animation-play-state: paused; }

@keyframes ticker-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ==========================================================================
   Header with Live Indicator
   ========================================================================== */

.site-header {
  position: fixed;
  top: var(--ticker-height);
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: var(--z-header);
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgb(var(--color-border));
  padding: 0 var(--space-4);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.site-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: rgb(var(--color-text-primary));
}

.site-title:hover { color: rgb(var(--color-text-primary)); }

.site-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgb(var(--color-hst-yellow));
  flex-shrink: 0;
  display: block;
}

.site-title-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgb(var(--color-text-primary));
  line-height: 1;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--color-live-red);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 2px;
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.nav-links {
  display: flex;
  gap: var(--space-8);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  color: rgb(var(--color-text-muted));
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--motion-fast);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: rgb(var(--color-hst-yellow));
  transition: width var(--motion-base) var(--ease-out);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: rgb(var(--color-text-primary));
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

/* ==========================================================================
   Section Scroll Layout
   ========================================================================== */

.main-content {
  flex: 1;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-padding-top: calc(var(--header-height) + var(--ticker-height));
}

.section {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  min-height: 100vh;
  padding: var(--space-12) 0;
  position: relative;
}

.section:first-child { padding-top: calc(var(--space-16) + var(--ticker-height) + var(--header-height)); }

.section-divider {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgb(var(--color-hst-yellow)), transparent);
  opacity: 0.5;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(231, 184, 42, 0.02), transparent);
}

.hero {
  padding: var(--space-16) 0 var(--space-12);
}

.hero-content { position: relative; z-index: 1; }

.episode-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.episode-tag {
  background: rgb(var(--color-hst-yellow));
  color: #000;
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  z-index: 300;
}

.episode-date {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgb(var(--color-text-muted));
  font-weight: 400;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: rgb(var(--color-text-primary));
  max-width: 90%;
  margin-bottom: var(--space-6);
}

.hero-lead {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: rgb(var(--color-text-secondary));
  max-width: 65ch;
  font-weight: 400;
}

/* ==========================================================================
   Watch Button
   ========================================================================== */

.watch-block { margin-top: var(--space-10); }

.watch-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: rgb(var(--color-hst-yellow));
  color: #000;
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0;
  transition: background var(--motion-base), transform var(--motion-fast);
}

.watch-link:hover {
  background: rgb(255, 200, 50);
  color: #000;
  transform: translateY(-2px);
}

.watch-link::before {
  content: "";
  width: 24px; height: 24px;
  background: #000;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
}

.watch-link .watch-label { display: block; font-size: var(--text-xs); font-weight: 400; opacity: 0.7; }
.watch-link .watch-title { display: block; }

/* ==========================================================================
   Fundraiser Section
   ========================================================================== */

.fundraiser-section {
  background: rgb(10, 10, 5);
  border-top: 1px solid rgb(var(--color-hst-yellow));
  border-bottom: 1px solid rgb(var(--color-hst-yellow));
}

.fundraiser-block {
  margin-top: var(--space-12);
  padding: var(--space-12) 0;
}

.fundraiser-content { position: relative; z-index: 1; }

.fundraiser-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.fundraiser-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: rgb(var(--color-hst-yellow));
  color: #000;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.fundraiser-label::before {
  content: "";
  width: 16px; height: 16px;
  background: rgb(var(--color-hst-yellow));
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.fundraiser-headline {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: rgb(var(--color-text-primary));
  margin-bottom: var(--space-8);
}

.fundraiser-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
  justify-content: center;
}

.stat { display: flex; flex-direction: column; gap: var(--space-2); text-align: center; flex: 1; min-width: 140px; }

.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: rgb(var(--color-hst-yellow));
  line-height: var(--leading-tight);
}

.stat-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgb(var(--color-text-muted));
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.fundraiser-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; margin-top: var(--space-8); }

.fundraiser-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: transparent;
  color: rgb(var(--color-text-secondary));
  border: 1px solid rgb(var(--color-border));
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0;
  transition: background var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast);
}

.fundraiser-link:hover {
  background: rgb(var(--color-hst-yellow));
  border-color: rgb(var(--color-hst-yellow));
  color: #000;
}

.fundraiser-disclaimer {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgb(var(--color-border));
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgb(var(--color-text-muted));
  font-weight: 400;
  text-align: center;
  max-width: var(--container-max);
}

/* ==========================================================================
   Newsletter Section - Properly Articulated
   ========================================================================== */

.newsletter-section {
  background: linear-gradient(180deg, transparent, rgba(231, 184, 42, 0.02), transparent);
}

.newsletter-block {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-header {
  margin-bottom: var(--space-8);
}

.newsletter-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: rgb(var(--color-text-primary));
  margin-bottom: var(--space-3);
}

.newsletter-header p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: rgb(var(--color-text-muted));
  font-weight: 400;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 420px;
  margin: 0 auto;
}

.newsletter-input-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.newsletter-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgb(var(--color-hst-yellow));
}

.newsletter-input {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: rgb(var(--color-text-primary));
  background: rgb(var(--color-bg-card));
  border: 2px solid rgb(var(--color-border));
  border-radius: 0;
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
  font-weight: 400;
  font-family: inherit;
}

.newsletter-input:focus {
  outline: none;
  border-color: rgb(var(--color-hst-yellow));
  box-shadow: 0 0 0 3px rgba(231, 184, 42, 0.15);
}

.newsletter-input::placeholder { color: rgb(var(--color-text-subtle)); }

.newsletter-input:invalid:not(:placeholder-shown) {
  border-color: rgb(var(--color-error));
}

.newsletter-btn {
  width: 100%;
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: #000;
  background: rgb(var(--color-hst-yellow));
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background var(--motion-fast), transform var(--motion-fast);
  margin-top: var(--space-2);
}

.newsletter-btn:hover { background: rgb(255, 200, 50); transform: translateY(-2px); }
.newsletter-btn:active { transform: scale(0.98); }
.newsletter-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.newsletter-status {
  margin-top: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  min-height: 1.5em;
  font-weight: 400;
  text-align: center;
}

.newsletter-status.success { color: rgb(var(--color-success)); }
.newsletter-status.error { color: rgb(var(--color-error)); }
.newsletter-status.pending { color: rgb(var(--color-text-muted)); }

.newsletter-note {
  margin-top: var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgb(var(--color-text-subtle));
  font-weight: 400;
}

/* ==========================================================================
   Episode Grid & Cards
   ========================================================================== */

.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
}

.episode-card {
  display: block;
  padding: 0;
  background: rgb(var(--color-bg-card));
  border: 1px solid rgb(var(--color-border));
  border-radius: 0;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color var(--motion-base), transform var(--motion-base), box-shadow var(--motion-base);
}

.episode-card:hover {
  border-color: rgb(var(--color-hst-yellow));
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
}

.episode-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #000;
  display: block;
}

.episode-card-content { padding: var(--space-5); }

.episode-card:hover .episode-card-title { color: rgb(var(--color-hst-yellow)); }

.episode-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.episode-card-num {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  color: rgb(var(--color-hst-yellow));
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.episode-card-date {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgb(var(--color-text-subtle));
  font-weight: 400;
}

.episode-card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: var(--leading-snug);
  color: rgb(var(--color-text-primary));
  transition: color var(--motion-fast);
}

/* ==========================================================================
   Sources Section
   ========================================================================== */

.sources-section {
  background: rgb(var(--color-bg-elevated));
  border-top: 1px solid rgb(var(--color-border));
}

.sources-block {
  padding: var(--space-12) 0;
}

.sources-header {
  margin-bottom: var(--space-8);
}

.sources-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: rgb(var(--color-text-primary));
  margin-bottom: var(--space-2);
}

.sources-header p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: rgb(var(--color-text-muted));
  font-weight: 400;
}

.sources-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-3);
}

.sources-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgb(var(--color-border));
}

.sources-list li:last-child { border-bottom: none; }

.sources-list a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgb(var(--color-text-muted));
  text-decoration: none;
  transition: color var(--motion-fast);
  word-break: break-all;
  font-weight: 400;
  flex: 1;
}

.sources-list a:hover { color: rgb(var(--color-hst-yellow)); }

.source-index {
  flex-shrink: 0;
  width: 32px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgb(var(--color-text-subtle));
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  margin-top: auto;
  padding: var(--space-12) 0 var(--space-6);
  border-top: 1px solid rgb(var(--color-border));
  background: rgb(var(--color-bg));
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: rgb(var(--color-hst-yellow));
}

.footer-links {
  display: flex;
  gap: var(--space-8);
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgb(var(--color-text-muted));
  text-decoration: none;
  font-weight: 400;
  transition: color var(--motion-fast);
}

.footer-links a:hover { color: rgb(var(--color-hst-yellow)); }

.footer-disclaimer {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgb(var(--color-text-subtle));
  max-width: var(--container-max);
  font-weight: 400;
}

/* ==========================================================================
   DOI Banners
   ========================================================================== */

.doi-banner {
  display: none;
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-6);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  font-weight: 400;
}

.doi-banner:not([hidden]) { display: block; }

.doi-banner--success {
  background: rgba(80, 200, 120, 0.1);
  border: 1px solid rgb(var(--color-success));
  color: rgb(var(--color-success));
}

.doi-banner--pending {
  background: rgba(231, 184, 42, 0.1);
  border: 1px solid rgb(var(--color-hst-yellow));
  color: rgb(var(--color-hst-yellow));
}

/* ==========================================================================
   Reveal Animations
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--motion-slow) var(--ease-out), transform var(--motion-slow) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(1) { transition-delay: 0ms; }
.reveal:nth-child(2) { transition-delay: 60ms; }
.reveal:nth-child(3) { transition-delay: 120ms; }
.reveal:nth-child(4) { transition-delay: 180ms; }
.reveal:nth-child(5) { transition-delay: 240ms; }
.reveal:nth-child(6) { transition-delay: 300ms; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 640px) {
  :root {
    --text-4xl: 2.5rem;
    --text-3xl: 2rem;
    --header-height: 64px;
    --ticker-height: 36px;
  }

  .nav-links { display: none; }
  .live-indicator { display: none; }

  .ticker-bar { height: 36px; }

  .hero { padding: var(--space-12) 0 var(--space-8); }
  .section { padding: var(--space-8) 0; }
  .section:first-child { padding-top: calc(var(--space-10) + var(--ticker-height) + var(--header-height)); }

  .hero { padding: var(--space-10) 0 var(--space-8); }

  .watch-link { width: 100%; justify-content: center; }

  .newsletter-form { flex-direction: column; }
  .newsletter-input { width: 100%; }
  .newsletter-btn { width: 100%; }

  .fundraiser-stats { flex-direction: column; gap: var(--space-4); }
  .fundraiser-actions { flex-direction: column; }

  .episode-grid { grid-template-columns: 1fr; }
  .fundraiser-stats { flex-direction: column; gap: var(--space-4); }

  .sources-list li { flex-direction: column; gap: var(--space-1); }
  .source-index { width: auto; text-align: left; }

  .episode-grid { grid-template-columns: 1fr; }
}

@media (min-width: 641px) and (max-width: 1024px) {
  :root { --container-max: 680px; }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  .ticker-bar, .site-header, .site-footer, .newsletter-section, .watch-block, .fundraiser-actions { display: none; }
  body { background: white; color: black; }
  a { color: inherit; text-decoration: underline; }
  .section { min-height: auto; page-break-after: auto; }
}


/* ==========================================================================
   Trusted Resources Engine — Components
   ========================================================================== */

/* Resource Grid */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-6);
}

.resource-card {
  background: rgb(var(--color-bg-card));
  border: 1px solid rgb(var(--color-border));
  border-radius: 0;
  overflow: hidden;
  transition: border-color var(--motion-base), transform var(--motion-base), box-shadow var(--motion-base);
}

.resource-card:hover {
  border-color: rgb(var(--color-hst-yellow));
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
}

.resource-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}

.resource-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--motion-slow);
}

.resource-card:hover .resource-thumb img {
  transform: scale(1.05);
}

.verified-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: rgb(var(--color-hst-yellow));
  color: #000;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-1) var(--space-2);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.resource-content { padding: var(--space-5); }

.resource-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}

.resource-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: rgb(var(--color-text-primary));
  text-decoration: none;
  line-height: var(--leading-snug);
}

.resource-title:hover { color: rgb(var(--color-hst-yellow)); }

.resource-handle,
.resource-domain {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgb(var(--color-hst-yellow));
  font-weight: 500;
}

.resource-desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgb(var(--color-text-muted));
  line-height: var(--leading-normal);
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.resource-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: var(--text-xs);
}

.resource-category {
  background: rgba(231, 184, 42, 0.1);
  color: rgb(var(--color-hst-yellow));
  padding: var(--space-1) var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.resource-country,
.resource-stats {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgb(var(--color-text-subtle));
}

.trust-score {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  color: rgb(var(--color-hst-yellow));
  background: rgba(231, 184, 42, 0.1);
  padding: var(--space-1) var(--space-2);
}

.resource-link {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: var(--space-3) var(--space-4);
  background: transparent;
  color: rgb(var(--color-hst-yellow));
  border: 1px solid rgb(var(--color-hst-yellow));
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background var(--motion-fast), color var(--motion-fast);
}

.resource-link:hover {
  background: rgb(var(--color-hst-yellow));
  color: #000;
}

/* Fundraiser Card */
.fundraiser-card {
  border-color: rgb(var(--color-fundraise-border));
}

.fundraiser-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-3);
}

.fundraiser-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: rgb(var(--color-text-primary));
  margin: 0;
}

.fundraiser-status {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-1) var(--space-2);
  text-transform: uppercase;
  border-radius: 0;
}

.fundraiser-status.active { background: rgba(80, 200, 120, 0.2); color: rgb(var(--color-success)); border: 1px solid rgb(var(--color-success)); }
.fundraiser-status.completed { background: rgba(100, 100, 255, 0.2); color: rgb(100, 100, 255); border: 1px solid rgb(100, 100, 255); }
.fundraiser-status.paused { background: rgba(255, 180, 0, 0.2); color: rgb(255, 180, 0); border: 1px solid rgb(255, 180, 0); }
.fundraiser-status.archived { background: rgba(140, 140, 140, 0.2); color: rgb(140, 140, 140); border: 1px solid rgb(140, 140, 140); }

.fundraiser-desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgb(var(--color-text-muted));
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fundraiser-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: var(--text-xs);
}

.fundraiser-organizer,
.fundraiser-beneficiary,
.fundraiser-tags {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgb(var(--color-text-muted));
}

.fundraiser-progress {
  margin-bottom: var(--space-4);
}

.progress-bar {
  height: 6px;
  background: rgb(var(--color-border));
  border-radius: 0;
  overflow: hidden;
  margin-bottom: var(--space-2);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, rgb(var(--color-hst-yellow)), rgb(255, 200, 50));
  border-radius: 0;
  transition: width var(--motion-slow);
}

.progress-text {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgb(var(--color-text-muted));
}

.fundraiser-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.fundraiser-link {
  flex: 1;
  text-align: center;
  padding: var(--space-3) var(--space-4);
  background: transparent;
  color: rgb(var(--color-hst-yellow));
  border: 1px solid rgb(var(--color-hst-yellow));
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background var(--motion-fast), color var(--motion-fast);
}

.fundraiser-link:hover {
  background: rgb(var(--color-hst-yellow));
  color: #000;
}

/* Blacklist Card */
.blacklist-card {
  border-left: 4px solid;
}

.blacklist-card.critical { border-color: var(--color-error); }
.blacklist-card.high { border-color: rgb(255, 140, 0); }
.blacklist-card.medium { border-color: rgb(255, 180, 0); }
.blacklist-card.low { border-color: rgb(var(--color-border-strong)); }

.blacklist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.blacklist-type {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: rgb(var(--color-hst-yellow));
  background: rgba(231, 184, 42, 0.1);
  padding: var(--space-1) var(--space-2);
}

.blacklist-severity {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-2);
}

.blacklist-severity.critical { background: rgba(255, 80, 80, 0.2); color: var(--color-error); border: 1px solid var(--color-error); }
.blacklist-severity.high { background: rgba(255, 140, 0, 0.2); color: rgb(255, 140, 0); border: 1px solid rgb(255, 140, 0); }
.blacklist-severity.medium { background: rgba(255, 180, 0, 0.2); color: rgb(255, 180, 0); border: 1px solid rgb(255, 180, 0); }
.blacklist-severity.low { background: rgba(140, 140, 140, 0.2); color: rgb(140, 140, 140); border: 1px solid rgb(140, 140, 140); }

.blacklist-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: rgb(var(--color-text-primary));
  margin: 0 0 var(--space-2);
}

.blacklist-reason {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgb(var(--color-text-secondary));
  line-height: var(--leading-normal);
  margin-bottom: var(--space-4);
}

.blacklist-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-3);
  border-top: 1px solid rgb(var(--color-border));
}

.blacklist-type-badge {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: rgb(var(--color-hst-yellow));
  background: rgba(231, 184, 42, 0.1);
  padding: var(--space-1) var(--space-2);
}

.blacklist-link {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-decoration: none;
  color: rgb(var(--color-hst-yellow));
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.blacklist-link:hover { color: rgb(255, 200, 50); }

/* Loading & Empty States */
.loading, .empty, .error {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12);
  color: rgb(var(--color-text-muted));
  font-family: var(--font-body);
  font-size: var(--text-base);
  grid-column: 1 / -1;
}

.error { color: var(--color-error); }

/* Submission Form */
.submission-form {
  background: rgb(var(--color-bg-card));
  border: 1px solid rgb(var(--color-border));
  padding: var(--space-8);
}

.form-group {
  margin-bottom: var(--space-4);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-2);
}

.form-group select.newsletter-input,
.form-group textarea.newsletter-input {
  width: 100%;
  resize: vertical;
  min-height: 100px;
}

#submission-form button[type="submit"] {
  width: 100%;
  margin-top: var(--space-2);
}

/* Resource Grid Layout */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-6);
}

.loading, .empty, .error {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12);
  color: rgb(var(--color-text-muted));
  font-family: var(--font-body);
  font-size: var(--text-base);
}

.error { color: rgb(var(--color-error)); }

/* Newsletter Section updates for resources page */
#newsletter-heading { text-align: center; }

/* Section headers in resources */
.section header h2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: rgb(var(--color-text-primary));
  margin-bottom: var(--space-2);
}

.section header p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: rgb(var(--color-text-muted));
  font-weight: 400;
}

/* Newsletter section in resources */
.newsletter-section .newsletter-header {
  margin-bottom: var(--space-8);
  text-align: center;
}

.newsletter-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: rgb(var(--color-text-primary));
  margin-bottom: var(--space-3);
}

.newsletter-header p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: rgb(var(--color-text-muted));
  font-weight: 400;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 420px;
  margin: 0 auto;
}

.newsletter-input-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.newsletter-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgb(var(--color-hst-yellow));
}

.newsletter-input {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: rgb(var(--color-text-primary));
  background: rgb(var(--color-bg-card));
  border: 2px solid rgb(var(--color-border));
  border-radius: 0;
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
  font-weight: 400;
  font-family: inherit;
}

.newsletter-input:focus {
  outline: none;
  border-color: rgb(var(--color-hst-yellow));
  box-shadow: 0 0 0 3px rgba(231, 184, 42, 0.15);
}

.newsletter-input::placeholder { color: rgb(var(--color-text-subtle)); }

.newsletter-input:invalid:not(:placeholder-shown) {
  border-color: rgb(var(--color-error));
}

.newsletter-btn {
  width: 100%;
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: #000;
  background: rgb(var(--color-hst-yellow));
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background var(--motion-fast), transform var(--motion-fast);
  margin-top: var(--space-2);
}

.newsletter-btn:hover { background: rgb(255, 200, 50); transform: translateY(-2px); }
.newsletter-btn:active { transform: scale(0.98); }
.newsletter-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.newsletter-status {
  margin-top: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  min-height: 1.5em;
  font-weight: 400;
  text-align: center;
}

.newsletter-status.success { color: rgb(var(--color-success)); }
.newsletter-status.error { color: rgb(var(--color-error)); }
.newsletter-status.pending { color: rgb(var(--color-text-muted)); }

.newsletter-note {
  margin-top: var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgb(var(--color-text-subtle));
  font-weight: 400;
  text-align: center;
}

/* Section headers in resources page */
.section header h2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: rgb(var(--color-text-primary));
  margin-bottom: var(--space-2);
}

.section header p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: rgb(var(--color-text-muted));
  font-weight: 400;
}

/* Submission form specific */
.submission-form {
  background: rgb(var(--color-bg-card));
  border: 1px solid rgb(var(--color-border));
  padding: var(--space-8);
}

.submission-form .form-group {
  margin-bottom: var(--space-5);
}

.submission-form label {
  display: block;
  margin-bottom: var(--space-2);
}

.submission-form select.newsletter-input,
.submission-form textarea.newsletter-input {
  width: 100%;
  resize: vertical;
  min-height: 100px;
}

.submission-form #submission-form button[type="submit"] {
  width: 100%;
  margin-top: var(--space-2);
}

#submission-status {
  margin-top: var(--space-4);
  text-align: center;
}

/* Empty state for grids */
.resource-grid .empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12);
  color: rgb(var(--color-text-muted));
  font-family: var(--font-body);
  font-size: var(--text-base);
}

/* Responsive for resources */
@media (max-width: 640px) {
  .resource-grid {
    grid-template-columns: 1fr;
  }
  
  .submission-form {
    padding: var(--space-5);
  }
}


/* ==========================================================================
   Resource Filters
   ========================================================================== */

.resource-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: flex-end;
  margin-bottom: var(--space-8);
  padding: var(--space-5);
  background: rgb(var(--color-bg-card));
  border: 1px solid rgb(var(--color-border));
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 180px;
  flex: 1;
}

.filter-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgb(var(--color-hst-yellow));
}

.filter-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgb(var(--color-text-primary));
  background: rgb(var(--color-bg));
  border: 1px solid rgb(var(--color-border));
  border-radius: 0;
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
  font-weight: 400;
}

.filter-input:focus {
  outline: none;
  border-color: rgb(var(--color-hst-yellow));
  box-shadow: 0 0 0 2px rgba(231, 184, 42, 0.15);
}

.filter-input::placeholder { color: rgb(var(--color-text-subtle)); }

.filter-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgb(var(--color-text-primary));
  background: rgb(var(--color-bg));
  border: 1px solid rgb(var(--color-border));
  border-radius: 0;
  cursor: pointer;
  transition: border-color var(--motion-fast);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E7B82A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  background-size: 16px;
  padding-right: var(--space-10);
}

.filter-select:focus {
  outline: none;
  border-color: rgb(var(--color-hst-yellow));
  box-shadow: 0 0 0 2px rgba(231, 184, 42, 0.15);
}

/* Filter Chips */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.filter-chip {
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgb(var(--color-text-muted));
  background: transparent;
  border: 1px solid rgb(var(--color-border));
  border-radius: 0;
  cursor: pointer;
  transition: background var(--motion-fast), color var(--motion-fast), border-color var(--motion-fast);
  white-space: nowrap;
}

.filter-chip:hover {
  background: rgba(231, 184, 42, 0.1);
  border-color: rgb(var(--color-hst-yellow));
  color: rgb(var(--color-hst-yellow));
}

.filter-chip.active {
  background: rgb(var(--color-hst-yellow));
  border-color: rgb(var(--color-hst-yellow));
  color: #000;
}

.filter-chip:focus-visible {
  outline: 2px solid rgb(var(--color-focus));
  outline-offset: 2px;
}

/* Filter Toggle (Verified Only) */
.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  padding: var(--space-2) 0;
}

.filter-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: relative;
  width: 48px;
  height: 28px;
  background: rgb(var(--color-border));
  border-radius: 0;
  transition: background var(--motion-fast);
  flex-shrink: 0;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  background: rgb(var(--color-text-muted));
  border-radius: 0;
  transition: transform var(--motion-fast), background var(--motion-fast);
}

.filter-checkbox:checked + .toggle-slider {
  background: rgb(var(--color-hst-yellow));
}

.filter-checkbox:checked + .toggle-slider::after {
  transform: translateX(20px);
  background: #000;
}

.toggle-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgb(var(--color-text-muted));
  white-space: nowrap;
}

.filter-checkbox:checked + .toggle-slider + .toggle-label {
  color: rgb(var(--color-hst-yellow));
}

/* Responsive Filters */
@media (max-width: 640px) {
  .resource-filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group {
    min-width: 0;
    width: 100%;
  }
  
  .filter-chips {
    overflow-x: auto;
    padding-bottom: var(--space-2);
    -webkit-overflow-scrolling: touch;
  }
}
