:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, sans-serif;
  color: #17241e;
  background: #f6f7f2;
  --muted: #526257;
  --border: #dce2d8;
}
* { box-sizing: border-box; }
body { margin: 0; }
header, main, footer { max-width: 1060px; margin-inline: auto; padding-inline: 28px; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid #236e50; outline-offset: 5px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 26px; font-size: .85rem; }
.wordmark { font-weight: 800; font-size: 1.1rem; text-decoration: none; letter-spacing: -.03em; }
.wordmark span { color: var(--muted); font-weight: 400; }
main { padding-top: 54px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: #397354; }
h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); line-height: 1.06; letter-spacing: -.06em; margin: 22px 0; font-weight: 750; }
.intro { color: var(--muted); font-size: 1.06rem; line-height: 1.6; }
.tape { display: flex; flex-wrap: wrap; gap: 12px 32px; padding-block: 25px; margin-top: 32px; border-block: 1px solid var(--border); color: var(--muted); font-size: .85rem; }
.tape strong { font-variant-numeric: tabular-nums; color: #17241e; }
.market-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin: 38px 0 18px; }
.market-heading h2 { font-size: 1rem; margin: 0; }
.market-heading span { font-size: .8rem; color: var(--muted); }
.market { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 25px; margin-bottom: 18px; }
.market-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .75rem; color: var(--muted); }
.tag { text-transform: uppercase; letter-spacing: .06em; }
.market h3 { font-size: 1.3rem; letter-spacing: -.025em; margin: 18px 0 8px; line-height: 1.4; }
.market-description { color: var(--muted); font-size: .86rem; line-height: 1.6; margin: 0 0 20px; }
.contracts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 0; }
.contract { min-width: 0; border: 1px solid var(--contract-border); border-radius: 8px; padding: 15px; color: var(--ink); background: var(--tint); }
.sf { --ink: #145339; --tint: #e9f5ed; --contract-border: #bbdec8; }
.f { --ink: #356142; --tint: #f1f7ec; --contract-border: #d3e2c9; }
.abstain { --ink: #555d67; --tint: #f4f5f6; --contract-border: #dce0e3; }
.a { --ink: #934d28; --tint: #fff5ea; --contract-border: #efd7bf; }
.sa { --ink: #a33738; --tint: #fff0ef; --contract-border: #efcfcd; }
dt { font-weight: 700; font-size: .85rem; }
dd { margin: 0; }
.price { display: block; font-size: 2rem; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.055em; margin: 8px 0; }
.price small { font-size: 1.2rem; }
.position-label { display: block; font-size: .7rem; line-height: 1.4; }
.ballots { display: block; font-size: .7rem; margin-top: 12px; }
.share { display: block; font-size: .7rem; margin-top: 10px; }
.share + .ballots { margin-top: 4px; }
.history { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.history-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.history h4 { font-size: .85rem; margin: 0; }
.history-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: .7rem; }
.history-legend span { color: var(--ink); }
.history-legend span::before { content: ''; display: inline-block; width: 12px; border-top: 2px solid; margin-right: 5px; vertical-align: middle; }
.history-legend .f::before, .history-legend .a::before { border-top-style: dashed; }
.history-legend .abstain::before { border-top-style: dotted; }
.history-chart { display: grid; grid-template-columns: 35px 1fr; gap: 8px; height: 160px; margin-top: 20px; }
.history-chart svg { width: 100%; height: 160px; overflow: visible; }
.history-axis { display: flex; flex-direction: column; justify-content: space-between; font-size: .65rem; color: var(--muted); }
.history-grid { stroke: var(--border); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.history-line { stroke: var(--ink); stroke-width: 2; fill: none; vector-effect: non-scaling-stroke; }
.history-line.f, .history-line.a { stroke-dasharray: 6 4; }
.history-line.abstain { stroke-dasharray: 2 4; }
.history-point { fill: var(--ink); }
.history-times { display: flex; justify-content: space-between; gap: 10px; margin: 8px 0 0 43px; font-size: .65rem; color: var(--muted); }
.history-note, .history-empty { font-size: .75rem; line-height: 1.6; color: var(--muted); }
.history-empty { padding: 24px 0; margin: 0; }
.market-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 22px; font-size: .8rem; }
.vote { display: inline-block; padding: 11px 18px; color: #fff; background: #1d4f39; border-radius: 6px; text-decoration: none; font-weight: 600; }
.vote:hover { background: #143e2c; }
.market-actions p { margin: 0; color: var(--muted); }
details { margin-top: 32px; border-block: 1px solid var(--border); padding-block: 22px; font-size: .85rem; color: var(--muted); line-height: 1.7; }
summary { cursor: pointer; font-weight: 650; color: #17241e; }
details p { max-width: 760px; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 26px 35px; font-size: .7rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 600px) {
  header, main, footer { padding-inline: 18px; }
  header { font-size: .7rem; }
  .wordmark { font-size: .9rem; }
  main { padding-top: 24px; }
  .market { padding: 18px; }
  .contracts { grid-template-columns: repeat(2, 1fr); }
  .contract:last-child { grid-column: 1 / -1; }
  .price { font-size: 1.8rem; }
}
