:root {
  --navy: #010d3d;
  --deep-navy: #022161;
  --blue: #0221ee;
  --red: #db0000;
  --teal: #37baab;
  --teal-text: #1c7a6f;
  --orange: #ffa65c;
  --paper: #f4f6f8;
  --panel: #ffffff;
  --grid: #e5eaef;
  --line: #c0cbd2;
  --muted: #71767b;
  --ink: #353639;
  --radius: 8px;
  font-family:
    Archivo, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

a:hover {
  text-decoration: underline;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 40px;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0,
      transparent 4px,
      rgba(255, 255, 255, 0.05) 4px,
      rgba(255, 255, 255, 0.05) 5px
    ),
    var(--navy);
}

.brand-lockup,
.topbar-actions,
.page-header,
.glossary-heading,
.panel-heading,
.deep-dive-intro {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 16px;
  min-width: 0;
}

.mls-logo {
  width: auto;
  height: 36px;
  display: block;
}

.brand-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
}

.desk-label {
  color: white;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.internal-chip {
  border: 1px solid rgba(255, 166, 92, 0.5);
  border-radius: 4px;
  color: var(--orange);
  font-family: "Barlow Condensed", Archivo, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 4px 8px;
  text-transform: uppercase;
}

.topbar-actions {
  gap: 20px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: max-content;
}

.nav-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--line);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0 13px;
  text-transform: uppercase;
}

.nav-link:hover,
.nav-link.active {
  border-color: rgba(255, 255, 255, 0.42);
  color: white;
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.updated-text {
  color: var(--line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.page-header,
.controls,
main {
  width: min(1400px, calc(100% - 80px));
  margin-inline: auto;
}

.page-header {
  justify-content: space-between;
  gap: 24px;
  padding-top: 40px;
  margin-bottom: 24px;
}

.page-header h1 {
  margin: 0;
  color: var(--navy);
  font-family: Anton, Impact, "Arial Narrow", sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.05;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  font-family: "Barlow Condensed", Archivo, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.controls,
.panel,
.glossary-panel,
.summary-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  padding: 20px 24px;
  margin-bottom: 24px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-family: "Barlow Condensed", Archivo, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.controls label:has(#searchInput) {
  flex: 1;
  min-width: 220px;
}

input,
select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--navy);
  background: white;
  padding: 9px 12px;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(2, 33, 238, 0.3);
  outline: none;
}

.check-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: var(--ink);
  white-space: nowrap;
}

.check-control input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--blue);
}

.button,
.text-button {
  min-height: 38px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    background 160ms ease-out,
    color 160ms ease-out,
    border-color 160ms ease-out;
}

.button {
  border: 1px solid var(--navy);
  color: var(--navy);
  background: white;
  padding: 0 20px;
}

.button:hover {
  background: var(--paper);
}

.button.primary {
  border-color: var(--blue);
  color: white;
  background: var(--blue);
}

.button.primary:hover {
  border-color: var(--deep-navy);
  background: var(--deep-navy);
}

.text-button {
  border: 0;
  color: var(--blue);
  background: transparent;
  padding: 0 4px;
}

main {
  padding-bottom: 64px;
}

.status-banner {
  margin-bottom: 24px;
  padding: 12px 16px;
  border: 1px solid rgba(2, 33, 238, 0.35);
  border-radius: var(--radius);
  color: var(--deep-navy);
  background: rgba(2, 33, 238, 0.06);
  font-weight: 700;
}

.status-banner.error {
  border-color: rgba(219, 0, 0, 0.35);
  color: #8f0000;
  background: rgba(219, 0, 0, 0.06);
}

.glossary-panel {
  margin-bottom: 24px;
  padding: 22px 24px;
}

.glossary-heading {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.glossary-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
}

.glossary-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 18px;
  margin: 0;
}

.glossary-item {
  min-width: 0;
  margin: 0;
  border-top: 1px solid var(--grid);
  padding-top: 12px;
}

.glossary-item dt {
  color: var(--navy);
  font-family: "Barlow Condensed", Archivo, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.glossary-item dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.42;
}

.glossary-item .used-in {
  color: var(--muted);
  font-size: 12px;
}

.hidden {
  display: none !important;
}

.logout-form {
  margin: 0;
}

.topbar-button {
  border-color: rgba(255, 255, 255, 0.45);
  color: white;
  background: transparent;
}

.topbar-button:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.12);
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(1, 13, 61, 0.98) 0%, rgba(2, 33, 97, 0.98) 44%, var(--paper) 44%),
    var(--paper);
}

.login-shell {
  width: min(100%, 430px);
}

.login-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 32px;
  box-shadow: 0 22px 70px rgba(1, 13, 61, 0.22);
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.login-brand .internal-chip {
  border-color: rgba(2, 33, 238, 0.22);
  color: var(--blue);
}

.login-panel h1 {
  margin: 0 0 22px;
  color: var(--navy);
  font-family: Anton, Impact, "Arial Narrow", sans-serif;
  font-size: 2.8rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.login-message {
  margin: 0 0 18px;
  border: 1px solid rgba(2, 33, 238, 0.28);
  border-radius: 4px;
  color: var(--deep-navy);
  background: rgba(2, 33, 238, 0.06);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
}

.login-form {
  display: grid;
  gap: 18px;
}

.login-form .button {
  width: 100%;
  margin-top: 2px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.summary-card {
  min-height: 142px;
  padding: 20px 24px;
}

.summary-card.primary-summary {
  position: relative;
  overflow: visible;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0,
      transparent 4px,
      rgba(255, 255, 255, 0.05) 4px,
      rgba(255, 255, 255, 0.05) 5px
    ),
    var(--deep-navy);
}

.summary-card > .metric-label,
.coverage-list .metric-label,
.stat-block > .metric-label {
  color: var(--muted);
  font-family: "Barlow Condensed", Archivo, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-card.primary-summary > .metric-label,
.summary-card.primary-summary small {
  color: var(--line);
}

.summary-card strong {
  display: block;
  margin: 6px 0 3px;
  color: var(--navy);
  font-family: Anton, Impact, "Arial Narrow", sans-serif;
  font-size: clamp(2.1rem, 4vw, 2.7rem);
  font-feature-settings: "tnum" 1;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.05;
}

.summary-card.primary-summary strong {
  color: white;
}

.summary-card small,
.meta-text {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.metric-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.info-tip {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(2, 33, 238, 0.45);
  border-radius: 50%;
  color: var(--blue);
  background: rgba(2, 33, 238, 0.08);
  cursor: help;
  font-family: Archivo, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  outline: none;
  text-transform: none;
}

.info-tip::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: calc(100% + 9px);
  width: min(310px, 72vw);
  border: 1px solid rgba(1, 13, 61, 0.14);
  border-radius: 6px;
  color: white;
  background: var(--navy);
  box-shadow: 0 14px 34px rgba(1, 13, 61, 0.22);
  font-family: Archivo, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  opacity: 0;
  padding: 9px 10px;
  pointer-events: none;
  text-align: left;
  text-transform: none;
  transform: translate(-50%, 4px);
  transition:
    opacity 140ms ease-out,
    transform 140ms ease-out;
  white-space: normal;
}

.info-tip:hover,
.info-tip:focus {
  border-color: var(--blue);
  color: white;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(2, 33, 238, 0.16);
}

.info-tip:hover::after,
.info-tip:focus::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.summary-card.primary-summary .info-tip {
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.summary-card.primary-summary .info-tip:hover,
.summary-card.primary-summary .info-tip:focus {
  border-color: white;
  color: var(--navy);
  background: white;
}

th .info-tip,
.market-row .info-tip {
  width: 14px;
  height: 14px;
  font-size: 9px;
}

.venue-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.venue-card {
  position: relative;
  min-height: 118px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 18px 20px 20px;
  overflow: hidden;
}

.venue-card strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-family: Anton, Impact, "Arial Narrow", sans-serif;
  font-size: 30px;
  font-feature-settings: "tnum" 1;
  font-weight: 400;
  letter-spacing: 0;
}

.venue-label {
  color: var(--muted);
  font-family: "Barlow Condensed", Archivo, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.venue-card small,
.venue-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.venue-metrics {
  display: grid;
  gap: 5px;
  min-width: 160px;
  text-align: right;
}

.venue-card .bar-track {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 10px;
}

.venue-card.kalshi .bar-track span {
  background: var(--red);
}

.context-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr);
  gap: 16px;
  margin-bottom: 24px;
  align-items: stretch;
}

.panel {
  padding: 24px;
  min-width: 0;
}

.panel-heading {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel h2,
.deep-dive-intro h2 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
}

.chart {
  min-height: 278px;
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
}

.chart svg {
  display: block;
  width: 100%;
  height: 278px;
}

.chart-empty,
.empty-state {
  min-height: 120px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.weekly-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.week-chip,
.stat-block {
  border-radius: var(--radius);
  background: var(--paper);
  padding: 12px 16px;
}

.week-chip span {
  display: block;
  color: var(--muted);
  font-family: "Barlow Condensed", Archivo, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.week-chip strong,
.money-pair strong,
.club-volume {
  color: var(--navy);
  font-family: Anton, Impact, "Arial Narrow", sans-serif;
  font-feature-settings: "tnum" 1;
  font-weight: 400;
  letter-spacing: 0;
}

.week-chip strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
}

.week-chip small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.coverage-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--grid);
}

.coverage-list div:last-child {
  border-bottom: 0;
}

.coverage-list strong {
  color: var(--navy);
  font-family: Anton, Impact, "Arial Narrow", sans-serif;
  font-size: 30px;
  font-weight: 400;
  white-space: nowrap;
}

.top-matches-panel,
.teams-panel,
.deep-dive-intro {
  margin-bottom: 24px;
}

.top-match-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.share-sections {
  display: grid;
  gap: 24px;
}

.share-panel {
  margin-bottom: 0;
}

.share-glossary-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.share-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.share-controls {
  align-items: stretch;
}

.share-range-summary {
  flex: 1;
  display: grid;
  align-content: center;
  min-width: 280px;
  border-left: 1px solid var(--line);
  padding-left: 20px;
}

.share-range-summary strong {
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
}

.share-range-summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.share-table {
  min-width: 860px;
}

.share-table tbody tr {
  cursor: default;
}

.share-category {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.share-category strong {
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
}

.share-category span,
.share-metric small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.share-metric {
  display: grid;
  grid-template-columns: 72px minmax(120px, 1fr) 82px;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
}

.share-metric strong {
  color: var(--navy);
  font-family: Anton, Impact, "Arial Narrow", sans-serif;
  font-size: 18px;
  font-feature-settings: "tnum" 1;
  font-weight: 400;
}

.share-metric .bar-track {
  height: 8px;
}

.share-metric.polymarket .bar-track span {
  background: var(--blue);
}

.share-metric.kalshi .bar-track span {
  background: var(--red);
}

.share-metric.total .bar-track span {
  background: var(--teal);
}

.source-panel {
  margin-top: 24px;
}

.source-notes {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.top-match-card {
  width: 100%;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  position: relative;
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  color: var(--ink);
  background: white;
  padding: 12px;
  text-align: left;
  overflow: hidden;
}

.top-match-card:hover,
tbody tr:hover,
tbody tr.selected {
  background: var(--paper);
}

.top-match-card .bar-track {
  position: absolute;
  left: 52px;
  right: 12px;
  bottom: 7px;
}

.bar-track {
  height: 4px;
  display: block;
  border-radius: 4px;
  background: var(--grid);
  overflow: hidden;
}

.bar-track span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--blue);
}

.rank {
  color: var(--muted);
  font-family: "Barlow Condensed", Archivo, sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-align: right;
}

.match-lockup,
.team-cell,
.match-cell,
.detail-teams,
.mono-stack {
  display: flex;
  align-items: center;
}

.match-lockup,
.match-cell,
.team-cell {
  gap: 12px;
  min-width: 0;
}

.mono-stack {
  flex-shrink: 0;
}

.mono-tile {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid white;
  border-radius: 6px;
  color: white;
  background: var(--deep-navy);
  font-family: Anton, Impact, "Arial Narrow", sans-serif;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.mono-tile.away {
  margin-left: -8px;
  background: var(--muted);
}

.mono-tile.large {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  font-size: 14px;
}

.logo {
  width: 34px;
  height: 34px;
  border: 1px solid var(--grid);
  border-radius: 6px;
  object-fit: contain;
  background: white;
}

.match-copy,
.team-name,
.match-name {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.match-copy strong,
.team-name strong,
.match-name strong,
.market-row strong {
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-copy span,
.team-name span,
.match-name span,
.market-row span,
.money-pair span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.money-pair {
  display: grid;
  gap: 2px;
  text-align: right;
  white-space: nowrap;
}

.money-pair strong {
  font-size: 18px;
}

.money-pair.compact strong {
  font-size: 17px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  background: white;
}

th,
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--grid);
  text-align: left;
  vertical-align: middle;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  background: var(--paper);
  font-family: "Barlow Condensed", Archivo, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

tbody tr {
  cursor: pointer;
}

tbody tr.selected {
  box-shadow: inset 3px 0 0 var(--blue);
}

.number-cell {
  color: var(--navy);
  font-family: Anton, Impact, "Arial Narrow", sans-serif;
  font-feature-settings: "tnum" 1;
  font-size: 17px;
  font-weight: 400;
  white-space: nowrap;
}

.deep-dive-intro {
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 20px 24px;
}

.deep-dive-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(420px, 7fr);
  gap: 16px;
  align-items: start;
}

.detail-panel {
  position: sticky;
  top: 16px;
}

.detail-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.detail-title {
  margin: 0;
  color: var(--navy);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

.detail-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 16px;
}

.stat-block strong {
  display: block;
  margin-top: 5px;
  color: var(--navy);
  font-family: Anton, Impact, "Arial Narrow", sans-serif;
  font-size: 24px;
  font-feature-settings: "tnum" 1;
  font-weight: 400;
}

.mini-chart {
  min-height: 144px;
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
  margin-bottom: 16px;
}

.mini-chart svg {
  display: block;
  width: 100%;
  height: 144px;
}

.market-list {
  display: grid;
  gap: 0;
  max-height: 420px;
  overflow: auto;
}

.market-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--grid);
}

.market-row:last-child {
  border-bottom: 0;
}

.market-row em {
  display: inline-flex;
  margin-left: 8px;
  border-radius: 4px;
  color: var(--blue);
  background: rgba(2, 33, 238, 0.08);
  font-family: "Barlow Condensed", Archivo, sans-serif;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  padding: 2px 7px;
  text-transform: uppercase;
}

.market-row em.kalshi {
  color: #8f0000;
  background: rgba(219, 0, 0, 0.08);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 28px;
  border-radius: 999px;
  color: var(--deep-navy);
  background: rgba(2, 33, 238, 0.08);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.live {
  color: white;
  background: var(--red);
}

.status-pill.both {
  color: white;
  background: var(--deep-navy);
}

.status-pill.polymarket {
  color: white;
  background: var(--blue);
}

.status-pill.kalshi {
  color: white;
  background: var(--red);
}

.status-pill.no-market {
  color: var(--muted);
  background: var(--grid);
}

.source-line {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .summary-grid,
  .glossary-list,
  .context-grid,
  .top-match-list,
  .deep-dive-grid,
  .share-summary-grid,
  .share-glossary-list {
    grid-template-columns: 1fr 1fr;
  }

  .detail-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .topbar,
  .primary-nav,
  .page-header,
  .glossary-heading,
  .deep-dive-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    padding: 16px 20px;
  }

  .brand-lockup {
    flex-wrap: wrap;
  }

  .page-header,
  .controls,
  main {
    width: min(100% - 24px, 1400px);
  }

  .context-grid,
  .top-match-list,
  .venue-comparison,
  .deep-dive-grid,
  .weekly-list,
  .share-controls,
  .share-summary-grid,
  .share-glossary-list {
    grid-template-columns: 1fr;
  }

  .share-range-summary {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 16px 0 0;
  }

  .primary-nav {
    width: 100%;
  }

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

  .controls {
    display: grid;
    grid-template-columns: 1fr;
  }

  .detail-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .summary-grid,
  .glossary-list,
  .share-summary-grid,
  .share-glossary-list {
    grid-template-columns: 1fr;
  }
}
