/* Voting extends Live Concourse; all colors and typography come from Silex. */
.voting-shell { max-width: 1440px; padding-block: 28px 40px; }
.voting-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.voting-heading h1 { margin: 0 0 8px; font-size: 1.8rem; }
.voting-heading p { margin: 0; color: var(--silex-text-soft); font-size: .9rem; line-height: 1.5; }
.voting-shell h2, .token-voting h2 { font-size: 1.1rem; margin: 0; }
.voting-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0 0 28px; border-block: 1px solid var(--silex-border); }
.voting-summary > div { padding: 16px 20px; min-width: 0; }
.voting-summary > div:first-child { padding-left: 0; }
.voting-summary dt { color: var(--silex-text-soft); font-size: .82rem; }
.voting-summary dd { margin: 8px 0 4px; font-size: 1.65rem; font-weight: 500; overflow-wrap: anywhere; }
.voting-summary small, .voting-period-total, .voting-timezone { color: var(--silex-muted); font-size: .75rem; }
.voting-summary dd, .voting-table, .voting-chart-readout, .voting-rising-stats { font-variant-numeric: tabular-nums; }
.voting-daily > h2 { margin-bottom: 12px; }
.voting-chart { min-width: 0; background: var(--silex-surface); padding: 12px 16px 8px; }
.voting-chart-header, .voting-chart-identity, .voting-chart-footer { display: flex; align-items: center; gap: 12px; }
.voting-chart-header { justify-content: space-between; min-height: 44px; gap: 8px; }
.voting-chart-identity { flex-wrap: wrap; min-width: 0; gap: 6px 10px; }
.voting-chart-identity strong { font-size: .85rem; overflow-wrap: anywhere; }
.voting-modes, .voting-ranges { display: inline-flex; align-items: center; flex-shrink: 0; gap: 2px; }
.voting-modes button, .voting-ranges button, .voting-retry { border: 0; background: transparent; color: var(--silex-muted); min-width: 44px; min-height: 44px; padding: 8px; border-radius: 2px; cursor: pointer; font: inherit; font-size: .8rem; }
.voting-modes button { display: grid; place-items: center; }
.voting-modes button[aria-pressed="true"], .voting-ranges button[aria-pressed="true"] { background: var(--silex-raised); color: var(--silex-accent); box-shadow: inset 0 -2px var(--silex-accent); }
.voting-modes button:hover, .voting-ranges button:hover, .voting-retry:hover { color: var(--silex-text); background: var(--silex-soft); }
.voting-chart :focus-visible, .voting-shell :focus-visible { outline: 2px solid var(--silex-accent); outline-offset: 3px; }
.voting-chart-body { height: 232px; position: relative; min-width: 0; }
.voting-chart-body svg { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.voting-axis { fill: var(--silex-muted); font-size: 11px; font-family: inherit; }
.voting-grid-line { stroke: var(--silex-border); stroke-width: 1; opacity: .55; }
.voting-line { fill: none; stroke: var(--silex-accent); stroke-width: 2; stroke-linejoin: round; }
.voting-area { fill: var(--silex-accent); opacity: .09; }
.voting-bar, .voting-dot { fill: var(--silex-accent); }
.voting-crosshair { stroke: var(--silex-muted); stroke-dasharray: 3 4; opacity: .55; }
.voting-chart-readout { min-height: 32px; font-size: .78rem; color: var(--silex-text-soft); line-height: 1.6; padding-top: 6px; }
.voting-chart-footer { min-height: 44px; justify-content: space-between; flex-wrap: wrap; gap: 4px; }
.voting-state { min-height: 100px; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--silex-muted); font-size: .85rem; text-align: center; padding: 16px; line-height: 1.5; }
.voting-chart-body > .voting-state { height: 100%; }
.voting-state p { margin: 0; }
.voting-registers { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(260px, 1fr); gap: 32px; margin-top: 32px; }
.voting-registers > section { min-width: 0; }
.voting-section-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; justify-content: space-between; margin-bottom: 12px; }
.voting-section-heading > span, .voting-rising-note { font-size: .75rem; color: var(--silex-muted); line-height: 1.5; }
.voting-table { width: 100%; border-collapse: collapse; font-size: .8rem; table-layout: fixed; }
.voting-shell .voting-table th, .voting-shell .voting-table td { padding: 12px 8px; border: 0; border-bottom: 1px solid var(--silex-border); text-align: right; overflow-wrap: anywhere; }
.voting-table th { font-size: .7rem; font-weight: 400; color: var(--silex-muted); }
.voting-table th:nth-child(1) { width: 44px; }
.voting-table .voting-col-0 { white-space: nowrap; }
.voting-table th:nth-child(2) { width: 29%; }
.voting-table th:nth-child(3) { width: 12%; }
.voting-shell .voting-table th:nth-child(-n+3), .voting-shell .voting-table td:nth-child(-n+3) { text-align: left; }
.voting-table tbody tr:hover { background: var(--silex-surface); }
.voting-project { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; text-decoration: none; color: var(--silex-text); }
.voting-project:hover { color: var(--silex-accent); }
.voting-project-name { min-width: 0; overflow-wrap: anywhere; line-height: 1.45; }
.voting-token-icon { width: 26px; height: 26px; flex: 0 0 26px; position: relative; display: inline-flex; }
.voting-token-icon > img:not(.silex-verified-ticker), .voting-token-icon .silex-token-icon { width: 26px; height: 26px; object-fit: contain; }
.voting-token-icon > .silex-verified-ticker { width: 12px; height: 12px; position: absolute; bottom: -2px; right: -3px; }
.voting-mobile-symbol { display: none; }
[data-trend="up"], .voting-growth { color: var(--silex-positive); }
[data-trend="down"] { color: var(--silex-negative); }
.voting-rising-note { margin: 0 0 8px; }
.voting-rising-list { list-style: none; margin: 0; padding: 0; }
.voting-rising-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--silex-border); font-size: .8rem; }
.voting-rising-stats { flex-shrink: 0; text-align: right; display: grid; gap: 6px; }
.voting-rising-stats strong { font-weight: 500; }
.voting-rising-stats span { font-size: .72rem; }
.voting-methodology { font-size: .78rem; color: var(--silex-muted); margin: 28px 0 0; line-height: 1.65; max-width: 95ch; }
.voting-methodology a { color: var(--silex-text-soft); text-underline-offset: 3px; }
.voting-skeleton { background: var(--silex-raised); animation: voting-pulse 1.5s ease-in-out infinite alternate; }
.voting-row-skeleton { height: 56px; margin-bottom: 8px; }
.voting-metric-loading { opacity: .4; }
.voting-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes voting-pulse { to { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .voting-skeleton { animation: none; } }
@media (max-width: 1100px) { .voting-registers { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 600px) {
  .voting-shell { padding-block: 20px 32px; }
  .voting-heading h1 { font-size: 1.5rem; }
  .voting-summary { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px; }
  .voting-summary > div { padding: 14px 0; }
  .voting-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--silex-border); }
  .voting-summary dd { font-size: 1.4rem; }
  .voting-chart { padding: 8px; }
  .voting-chart-body { height: 200px; }
  .voting-chart-identity { column-gap: 6px; }
  .voting-chart-identity .voting-period-total { flex-basis: 100%; }
  .voting-chart-readout { min-height: 48px; font-size: .72rem; }
  .voting-table, .voting-table tbody { display: block; }
  .voting-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .voting-table tbody tr { display: grid; grid-template-columns: 3ch repeat(3,minmax(0,1fr)); gap: 8px; border-bottom: 1px solid var(--silex-border); padding: 12px 0; }
  .voting-shell .voting-table td { padding: 0; border: 0; text-align: left; }
  .voting-table .voting-col-0 { grid-column: 1; grid-row: 1; align-self: center; color: var(--silex-muted); }
  .voting-table .voting-col-1 { grid-column: 2 / 5; grid-row: 1; }
  .voting-table .voting-col-2 { display: none; }
  .voting-table .voting-col-3 { grid-column: 2; grid-row: 2; }
  .voting-table .voting-col-4 { grid-column: 3; grid-row: 2; }
  .voting-table .voting-col-5 { grid-column: 4; grid-row: 2; }
  .voting-table .voting-col-6 { grid-column: 2 / 5; grid-row: 3; }
  .voting-table td:nth-child(n+4)::before { content: attr(data-label); color: var(--silex-muted); display: block; font-size: .65rem; margin-bottom: 4px; }
  .voting-table .voting-col-6::before { display: inline; margin-right: 8px; }
  .voting-mobile-symbol { display: block; color: var(--silex-muted); font-size: .7rem; }
}
