/* Markets (markets.php): number tiles, number pages, calculator. Tokens only (css/vf-tokens.css), so dark mode
   comes with them. Square ruled sheets, hairlines, no shadows. Charts reuse css/early-vote-charts.css. */
.mk-main .mk-crumb { margin: 0 0 8px; font-size: .88rem; }
.mk-main .mk-crumb a { color: var(--vf-blue-text); }
.mk-main a:focus-visible, .mk-main button:focus-visible, .mk-main summary:focus-visible,
.mk-main input:focus-visible, .mk-main select:focus-visible { outline: 3px solid var(--vf-blue); outline-offset: 2px; }

/* groups and tiles: a ruled grid, not a wall of boxes */
.mk-group { margin: 26px 0 0; }
.mk-group-title { margin: 0 0 10px; color: var(--vf-gold-text); font: 700 .8rem/1.3 var(--vf-font-body); letter-spacing: .14em; text-transform: uppercase; }
.mk-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--vf-rule); border-left: 1px solid var(--vf-rule); }
.mk-tile { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px 16px 14px; background: var(--vf-surface); border-right: 1px solid var(--vf-rule); border-bottom: 1px solid var(--vf-rule); color: var(--vf-ink); }
.mk-tile:focus-within { outline: 3px solid var(--vf-blue); outline-offset: -3px; }
.mk-tile-title { margin: 0; font: 700 .95rem/1.3 var(--vf-font-body); }
.mk-tile-title a { color: var(--vf-ink); text-decoration: none; }
.mk-tile-title a::after { content: ""; position: absolute; inset: 0; }
.mk-tile-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mk-tile-title a:focus-visible { outline: none; }
.mk-value { margin: 0; font: 750 2.1rem/1.1 var(--vf-font-head); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mk-value--none { color: var(--vf-mute); font-size: 1.3rem; }
.mk-caption { margin: 0; color: var(--vf-mute); font-size: .84rem; line-height: 1.4; }
.mk-change { margin: 0; font-size: .88rem; line-height: 1.4; color: var(--vf-ink-2); }
.mk-arrow { display: inline-block; margin-right: 2px; color: var(--vf-ink); font-size: .72rem; vertical-align: 1px; }
.mk-extra { margin: 0; color: var(--vf-ink-2); font-size: .84rem; font-variant-numeric: tabular-nums; }
.mk-spark { display: block; width: 100%; max-width: 168px; height: 38px; margin-top: 2px; }
.mk-meta { margin: auto 0 0; padding-top: 6px; color: var(--vf-mute); font-size: .78rem; line-height: 1.4; }
.mk-stale { margin: 4px 0 0; padding: 6px 9px; background: var(--vf-gold-soft); color: var(--vf-ink); font-size: .8rem; line-height: 1.4; }
.mk-notice-stale { border-left-color: var(--vf-gold); }

/* a number page */
.mk-hero { margin: 14px 0 0; padding: 18px 0 6px; border-top: 2px solid var(--vf-ink); }
.mk-bignum { margin: 0; font: 750 clamp(2.4rem, 9vw, 4.2rem)/1.05 var(--vf-font-head); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mk-hero-cap { margin: 8px 0 0; color: var(--vf-ink-2); font-size: 1rem; }
.mk-period { font-weight: 700; color: var(--vf-ink); }
.mk-hero .mk-change { margin-top: 8px; font-size: 1rem; }
.mk-revised { margin: 6px 0 0; color: var(--vf-ink-2); font-size: .9rem; }
.mk-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 26px; margin: 16px 0 0; }
.mk-facts > div { min-width: 0; }
.mk-facts dt { color: var(--vf-mute); font: 700 .7rem/1.3 var(--vf-font-body); letter-spacing: .08em; text-transform: uppercase; }
.mk-facts dd { margin: 3px 0 0; font-size: .95rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mk-prose h2 { margin-top: 22px; }
.mk-prose h2:first-child { margin-top: 0; }
.mk-links { margin: 8px 0 0; padding-left: 1.1em; }
.mk-links li { margin: 6px 0; }
.mk-sources { margin: 8px 0 0; padding-left: 1.1em; }
.mk-sources li { margin: 6px 0; }
.mk-nopub { color: var(--vf-mute); font-style: normal; }
.mk-bigsentence { font: 600 1.25rem/1.45 var(--vf-font-head); }

/* charts (lines come from early-vote-charts.css) */
.mk-fig { margin: 8px 0 18px; }
.mk-fig figcaption { display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; margin-bottom: 6px; }
.mk-fig figcaption strong { font: 750 1rem/1.3 var(--vf-font-head); }
.mk-fig figcaption span { color: var(--vf-mute); font-size: .84rem; }
.mk-vgrid { opacity: .55; }
.mk-gap { stroke: var(--vf-mute); stroke-width: 1.5; stroke-dasharray: 4 4; }
.mk-line-b { stroke: var(--vf-gold-text); stroke-dasharray: 7 4; }
.mk-line-b-dot { fill: var(--vf-gold-text); }
.mk-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 6px 0 4px; padding: 0; list-style: none; font-size: .9rem; }
.mk-legend li { display: flex; align-items: center; gap: 8px; }
.mk-curve-fig { margin: 8px 0 0; max-width: 560px; }
.mk-curve { display: block; width: 100%; height: auto; }
.mk-details { margin-top: 12px; }
.mk-details .evc-table-wrap { max-height: 60vh; }
.mk-details thead th { position: sticky; top: 0; background: var(--vf-surface); }

/* tools */
.mk-calc { grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) minmax(0, 2fr) auto; }
.mk-calc .mk-when { display: grid; grid-template-columns: minmax(0, 1fr) 6.2rem; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.mk-calc .mk-when legend { grid-column: 1 / -1; padding: 0; margin-bottom: 6px; color: var(--vf-mute); font: 700 .72rem/1.2 var(--vf-font-body); letter-spacing: .08em; text-transform: uppercase; }
.mk-calc input[type="text"], .mk-calc select { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--vf-rule-strong); background: var(--vf-surface); color: var(--vf-ink); font: inherit; font-size: .95rem; }
.mk-calc button { min-height: 44px; }
.mk-errors ul { margin: 6px 0 0; padding-left: 1.2em; }
.mk-result { margin-top: 18px; }
.mk-result:empty { display: none; }
.mk-search { margin-top: 10px; grid-template-columns: minmax(0, 1fr) auto; }
.mk-filings { margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--vf-rule); }
.mk-filings li { padding: 10px 0; border-bottom: 1px solid var(--vf-rule); line-height: 1.5; }
.mk-f-date { display: inline-block; min-width: 7.5em; color: var(--vf-mute); font-size: .88rem; font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .mk-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-calc { grid-template-columns: minmax(0, 1fr); }
  .mk-search { grid-template-columns: minmax(0, 1fr); }
  .mk-details .evc-table-wrap { max-height: none; }
}
@media (max-width: 420px) {
  .mk-tiles { grid-template-columns: minmax(0, 1fr); }
  .mk-value { font-size: 1.9rem; }
  .mk-f-date { display: block; }
}

/* marks follow the text color so they stay visible in light and dark */
.mk-main .evc-line { stroke: var(--vf-ink); }
.mk-main .evc-dot, .mk-main .evc-last { fill: var(--vf-ink); stroke: var(--vf-surface); }
.mk-main .evc-line.mk-line-b { stroke: var(--vf-gold-text); }
.mk-main .evc-dot.mk-line-b-dot { fill: var(--vf-gold-text); }

.mk-prose p { text-transform: none; letter-spacing: normal; font: 400 1.05rem/1.6 var(--vf-font-body); color: var(--vf-ink); max-width: 72ch; }
.mk-main { overflow-wrap: anywhere; }
.mk-main .shell, .mk-main .measure { min-width: 0; max-width: 100%; }
.mk-facts { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
.mk-prose p, .mk-main .measure { margin: 0 0 12px; }

/* Follow button (the Watch Desk dock, placed inline by js/app.js) */
.mk-follow { margin-top: 14px; }
.mk-follow .vf-watch-dock.is-inline { position: static; inset: auto; z-index: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; max-width: 560px; margin: 0; box-shadow: none; gap: 10px; padding: 12px 14px; }
.mk-follow .vf-watch-dock.is-inline button, .mk-follow .vf-watch-dock.is-inline a { min-height: 44px; }
.mk-follow .vf-watch-dock.is-inline a { display: flex; align-items: center; }
@media (max-width: 620px) {
  .mk-follow .vf-watch-dock.is-inline { grid-template-columns: 1fr; }
  .mk-follow .vf-watch-dock.is-inline a { justify-content: center; }
  .mk-follow .vf-watch-dock.is-inline span { display: none; }
}

/* Keep period labels (e.g. "September 2026") on one line in the markets data tables. */
.mk-details .evc-table th:first-child,
.mk-details .evc-table td:first-child { white-space: nowrap; }
