:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-light: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #0ea5e9;
  --accent-strong: #0284c7;
  --accent-soft: rgba(14, 165, 233, 0.12);
  --positive: #16a34a;
  font-family: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.market-card-link {
  display: block;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 6vw;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-name {
  font-weight: 600;
  font-size: 1rem;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.nav-links a {
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a.active {
  color: var(--text);
  border-color: var(--accent);
}

.nav-links a:hover {
  color: var(--text);
}

.market-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.market-search input {
  border: none;
  background: transparent;
  padding: 8px 12px;
  min-width: 220px;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
}

.market-search input::placeholder {
  color: var(--muted);
}

.market-search button {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(14, 165, 233, 0.2);
}

.page {
  padding: 36px 6vw 72px;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 2em;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 12px;
}

.hero-subtitle {
  color: var(--muted);
  max-width: 520px;
  line-height: 1.6;
}

.stats {
  display: flex;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px 24px;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.how-article {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.article-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  display: grid;
  gap: 20px;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
}

.article-hero h1 {
  font-size: 2em;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 12px;
}

.article-hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}

.article-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.article-section.reverse {
  direction: rtl;
}

.article-section.reverse .article-text,
.article-section.reverse .article-figure {
  direction: ltr;
}

.article-text h2 {
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  margin-bottom: 12px;
}

.article-text p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--accent-strong);
  font-weight: 600;
  margin-bottom: 10px;
}

.article-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  color: var(--text);
}

.article-callout {
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  background: rgba(56, 189, 248, 0.08);
  border-radius: 8px;
}

.article-callout p {
  color: var(--text);
  margin: 0;
}

.article-figure {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.06);
}

.illustration {
  display: grid;
  gap: 16px;
}

.illustration-card {
  border-radius: 10px;
  padding: 16px;
  background: linear-gradient(140deg, rgba(226, 232, 240, 0.8), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.4);
  display: grid;
  gap: 10px;
}

.illustration-card.small {
  background: linear-gradient(140deg, rgba(224, 231, 255, 0.7), rgba(255, 255, 255, 0.9));
}

.illustration-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.illustration-caption {
  color: var(--muted);
  font-size: 0.8rem;
}

.illustration-dots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.illustration-dots span {
  width: 100%;
  padding-bottom: 100%;
  background: rgba(14, 165, 233, 0.2);
  border-radius: 50%;
  display: block;
}

.illustration-bars {
  display: grid;
  gap: 6px;
}

.illustration-bars span {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.8), rgba(14, 116, 144, 0.9));
  display: block;
}

.illustration-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.illustration-pill-row span {
  font-size: 0.7rem;
  padding: 6px 10px;
  background: rgba(59, 130, 246, 0.12);
  border-radius: 999px;
  font-weight: 600;
  color: var(--accent-strong);
}

.workflow-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
}

.workflow-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
}

.workflow-list li span {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
}

.workflow-list h3 {
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.workflow-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.illustration-workflow {
  gap: 12px;
}

.workflow-node {
  border: 1px dashed rgba(148, 163, 184, 0.6);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(248, 250, 252, 0.8);
}

.workflow-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.workflow-chip {
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
}

.split-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.split-list ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  display: grid;
  gap: 8px;
}

.illustration-signals {
  gap: 12px;
}

.signal-card {
  border-radius: 10px;
  padding: 14px 16px;
  background: rgba(226, 232, 240, 0.7);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.signal-card p {
  font-weight: 600;
  margin: 0;
}

.signal-card span {
  font-size: 0.8rem;
  color: var(--muted);
}

.stat-label {
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 600;
}

.stat-note {
  font-size: 0.7rem;
  color: var(--muted);
  margin: 4px 0 0;
}


.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.category-strip {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.category-header h2 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin-top: 6px;
}

.pollitics-filter {
  margin: 0;
}

.pollitics-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
}

.pollitics-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.category-hint {
  color: var(--muted);
  max-width: 420px;
  line-height: 1.5;
  font-size: 0.85rem;
}

.category-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.category-list::-webkit-scrollbar {
  display: none;
}

.category-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
  flex: 0 0 auto;
  min-width: 190px;
  scroll-snap-align: start;
}

.category-pill.active {
  border-color: var(--accent);
  box-shadow: 0 18px 30px rgba(14, 165, 233, 0.18);
}

.category-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
}

.category-pill-name {
  font-weight: 600;
  margin-bottom: 2px;
  font-size: 0.9rem;
}

.category-pill-slug {
  font-size: 0.7rem;
  color: var(--muted);
}

.category-pill-type {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.market-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 260px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.market-card-link:focus-visible .market-card {
  outline: 3px solid rgba(14, 165, 233, 0.4);
  outline-offset: 4px;
}

.market-page {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.market-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.5fr);
  gap: 24px;
  align-items: start;
}

.market-primary {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.market-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.market-hero-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.market-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.status-pill {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
}

.status-pill.is-closed {
  background: rgba(248, 113, 113, 0.16);
  color: #b91c1c;
}

.market-subtitle {
  color: var(--muted);
  max-width: 520px;
  line-height: 1.6;
}

.market-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.market-tab {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.market-tab.active {
  color: var(--text);
  border-color: rgba(16, 24, 40, 0.2);
  background: var(--surface-light);
}

.market-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.meta-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meta-block-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 600;
}

.meta-card {
  background: var(--surface-light);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-label-row .stat-label {
  margin: 0;
}

.meta-date {
  font-size: 1.05rem;
  color: var(--text);
}

.meta-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  width: fit-content;
}

.meta-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.meta-status.is-true {
  color: #15803d;
  background: rgba(34, 197, 94, 0.16);
}

.meta-status.is-false {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.12);
}

.polymarket-meta {
  min-width: 200px;
  grid-template-columns: 1fr;
}

.market-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
}

.polymarket-layout {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.market-main,
.market-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.market-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.05);
}

.market-final {
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--surface-light);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.final-answer {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.final-answer-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0;
}

.final-answer-value {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.panel-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.4;
}

.panel-link {
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 0.85rem;
}

.panel-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
}

.market-analysis-panel .panel-subtitle {
  max-width: 520px;
}

.market-synthetic-panel .panel-subtitle {
  max-width: 560px;
}

.synthetic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.synthetic-status {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 12px 0 0;
}

.synthetic-loader {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.synthetic-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--accent-strong);
  animation: spin 0.9s linear infinite;
}

.synthetic-loader-text {
  font-weight: 500;
}

.synthetic-assumptions {
  margin-top: 16px;
}

.synthetic-assumptions-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.85rem;
}

.synthetic-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: var(--surface-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.synthetic-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0;
}

.synthetic-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.synthetic-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.synthetic-item {
  font-size: 0.85rem;
  color: var(--text);
}

.synthetic-percent {
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-strong);
  text-align: right;
}

.synthetic-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.synthetic-footnote {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.analysis-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: var(--surface-light);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.analysis-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0;
}

.analysis-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.analysis-link {
  color: inherit;
  text-decoration: none;
}

.analysis-link:hover,
.analysis-link:focus {
  text-decoration: underline;
}

.analysis-footnote {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.score-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: var(--surface-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.score-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.score-card-link:hover,
.score-card-link:focus-visible {
  border-color: rgba(14, 165, 233, 0.6);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.score-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.score-title {
  font-weight: 600;
  margin: 0;
}

.score-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.score-value {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
}

.score-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.4);
  overflow: hidden;
}

.score-bar-fill {
  display: block;
  height: 100%;
  width: var(--score, 0%);
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.8), rgba(2, 132, 199, 1));
  border-radius: inherit;
}

.score-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.score-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.chart-card {
  border: 1px dashed rgba(148, 163, 184, 0.7);
  border-radius: 12px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(226, 232, 240, 0.6), rgba(255, 255, 255, 0.9));
  min-height: 140px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chart-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.chart-subtitle {
  color: var(--muted);
  font-size: 0.85rem;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.step-card {
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex: 0 0 auto;
}

.step-card h3 {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.step-card p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.bullet-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.market-outcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--surface-light);
}

.polymarket-outcome {
  background: #fff;
}

.outcome-action {
  display: flex;
  align-items: center;
  gap: 10px;
}

.outcome-label {
  font-weight: 600;
  margin-bottom: 4px;
}

.outcome-subtitle {
  font-size: 0.75rem;
  color: var(--muted);
}

.outcome-pill {
  font-weight: 700;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
}

.market-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.market-comments-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.market-summary-list {
  display: grid;
  gap: 12px;
}

.market-json {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--surface-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--surface-light);
}

.summary-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.summary-value {
  font-weight: 600;
  font-size: 0.95rem;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.comment-author {
  font-weight: 600;
}

.comment-handle {
  font-size: 0.75rem;
  color: var(--muted);
}

.comment-time {
  font-size: 0.75rem;
  color: var(--muted);
}

.comment-message {
  line-height: 1.5;
  color: var(--text);
}

.comment-sentiment {
  font-size: 0.75rem;
  color: var(--accent-strong);
  font-weight: 600;
}

.market-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted);
}

.category {
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
}

.tag {
  color: var(--muted);
}

.market-card-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.market-card h2 {
  font-size: 1rem;
  line-height: 1.4;
  margin: 0;
}

.prediction-score {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.is-hidden {
  visibility: hidden;
}

.outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.outcome {
  border: 1px solid var(--border);
  background: var(--surface-light);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.outcome:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: #fff;
}

.outcome.empty {
  background: transparent;
  border-style: dashed;
  color: var(--muted);
}

.outcome-score {
  font-weight: 600;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
}

.pollitics {
  border: 1px solid rgba(14, 165, 233, 0.35);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(255, 255, 255, 0.9));
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.12);
}

.polymarket {
  border: 1px solid var(--border);
  background: var(--surface-light);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pollitics-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.pollitics-scores {
  display: flex;
  gap: 10px;
}

.pollitics-progress {
  position: relative;
  width: 100%;
  height: 28px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.pollitics-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.65), rgba(14, 165, 233, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.3s ease;
  min-width: 38px;
}

.pollitics-progress-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

.pollitics-score {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
}

.pollitics-name {
  color: var(--text);
  font-weight: 500;
}

.pollitics-value {
  font-weight: 700;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
}

.footer-label {
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.footer-value {
  font-size: 0.95rem;
  font-weight: 600;
}

.empty-state {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .category-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .market-search {
    width: 100%;
    max-width: 320px;
  }

  .market-search input {
    min-width: 0;
    width: 100%;
  }

  .market-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .market-layout {
    grid-template-columns: 1fr;
  }

  .market-detail-grid,
  .polymarket-layout {
    grid-template-columns: 1fr;
  }
}
