:root {
  --bg: #F6F8FB;
  --surface: #FFFFFF;
  --surface-muted: #F8FAFC;
  --surface-subtle: #F1F5F9;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --ink: #0F172A;
  --ink-muted: #64748B;
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-soft: #EFF6FF;
  --accent-border: #BFDBFE;
  --teal: #059669;
  --teal-soft: #ECFDF5;
  --teal-border: #A7F3D0;
  --amber: #D97706;
  --amber-soft: #FFFBEB;
  --danger: #E11D48;
  --danger-soft: #FFF1F2;
  --danger-border: #FECDD3;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 45% at 50% -10%, rgba(37, 99, 235, 0.08), transparent 70%),
    radial-gradient(ellipse 50% 35% at 90% 10%, rgba(5, 150, 105, 0.05), transparent 65%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.font-display-modern {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.font-mono-num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

.editorial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.03),
    0 8px 24px -12px rgba(15, 23, 42, 0.07);
  transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.editorial-card-hover:hover {
  border-color: var(--border-strong);
  box-shadow:
    0 2px 6px rgba(15, 23, 42, 0.04),
    0 16px 32px -14px rgba(15, 23, 42, 0.11);
}

.ui-input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background-color: var(--surface-muted);
  color: var(--ink);
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.ui-input:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--surface);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.poll-bar-fill {
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background-color: var(--teal);
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.45);
  animation: pulse-ring 2.2s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.45);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(5, 150, 105, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0);
  }
}

.tab-btn {
  border-radius: 12px;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.tab-btn[data-active="true"] {
  color: var(--ink);
  background-color: var(--surface);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
}

.tab-btn[data-active="false"] {
  color: var(--ink-muted);
}

.tab-btn[data-active="false"]:hover {
  color: var(--ink);
  background-color: rgba(255, 255, 255, 0.55);
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.slideshow-img {
  transition: opacity 0.45s ease;
}

@media (prefers-reduced-motion: reduce) {
  .live-dot {
    animation: none;
  }
  .poll-bar-fill,
  .slideshow-img,
  .editorial-card,
  .tab-btn {
    transition: none;
  }
}
