/* /predictions/midterms — our copy of polymarket.com's midterms dashboard.
   Sizes, weights and colours measured off their live page (1440px wide).
   Their greys sit on #0c0e13; ours keep the same step above our #15191d. */

@font-face {
  font-family: 'Open Sauce One';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/public/fonts/open-sauce-one-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/public/fonts/geist-mono-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2190-21FF, U+2212, U+2215;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/public/fonts/geist-mono-cyrillic-500-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/public/fonts/geist-mono-latin-600-normal.woff2') format('woff2');
}

.mt-page {
  --mt-bg: #15191d;
  --mt-surface: #252a31;
  --mt-border: #363a40;
  --mt-text: #ffffff;
  --mt-text2: #b6bbc4;
  --mt-text3: #999ea7;
  --mt-tab: #7d8189;
  --mt-tab-on: #edeff1;
  --tier-safe-d: #5485ff;
  --tier-likely-d: #7ba5ff;
  --tier-lean-d: #c7daff;
  --tier-tossup: #af61fc;
  --tier-lean-r: #ffcfc5;
  --tier-likely-r: #ff7767;
  --tier-safe-r: #fe3d32;
  --tier-no-race: #363a40;
  --midterms-democrat: #7ba5ff;
  --midterms-republican: #ff7767;
  --midterms-yes: #00ae4b;
  --mt-display: 'Open Sauce One', Inter, system-ui, sans-serif;
  --mt-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  position: relative;
  max-width: 1302px;
  margin: 0 auto;
  padding: 32px 0 140px;
  color: var(--mt-text);
  font-family: Inter, system-ui, sans-serif;
}
html.pm-shell--light .mt-page {
  --mt-bg: #ffffff;
  --mt-surface: #f4f5f6;
  --mt-border: #e5e5e5;
  --mt-text: #1d1f24;
  --mt-text2: #5e6470;
  --mt-text3: #7a8290;
  --mt-tab: #8a9099;
  --mt-tab-on: #1d1f24;
  --tier-no-race: #e5e7ea;
}
.mt-page *,
.mt-page *::before,
.mt-page *::after {
  box-sizing: border-box;
}
.mt-page p,
.mt-page h1,
.mt-page h2,
.mt-page h3 {
  margin: 0;
}
.mt-page a {
  color: inherit;
  text-decoration: none;
}
.mt-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.mt-mono {
  font-family: var(--mt-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: -0.09px;
}
.mt-up {
  text-transform: uppercase;
}

/* ---- hero ---- */
.mt-hero__grid {
  display: grid;
  grid-template-columns: max-content max-content;
  justify-content: space-between;
}
.mt-hero__cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 0;
}
.mt-hero__cell--r {
  align-items: flex-end;
}
.mt-hero__kicker {
  display: flex;
  align-items: center;
  height: 24px;
  font-size: 14px;
  line-height: 12px;
  color: var(--mt-text3);
}
.mt-display {
  font-family: var(--mt-display);
  font-size: 64px;
  font-weight: 600;
  line-height: 64px;
  letter-spacing: -1.75px;
  color: var(--mt-text);
}
.mt-hr {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--mt-border);
}
.mt-count {
  display: flex;
  justify-content: space-between;
  padding: 28px 0;
}
.mt-count__u {
  display: flex;
  align-items: flex-end;
  gap: 3px;
}
.mt-count__n {
  display: inline-flex;
  font-family: var(--mt-display);
  font-size: 64px;
  font-weight: 600;
  line-height: 64px;
  letter-spacing: -1.75px;
  color: var(--mt-text3);
}
.mt-count__digit {
  display: inline-block;
  height: 64px;
  overflow: hidden;
}
.mt-count__strip {
  display: flex;
  flex-direction: column;
  transition: transform 600ms cubic-bezier(0.23, 1, 0.32, 1);
}
.mt-count__strip > span {
  display: block;
  height: 64px;
  line-height: 64px;
  text-align: center;
}
.mt-count__l {
  color: var(--mt-text3);
}

/* ---- chamber control ---- */
.mt-ctrl {
  margin-top: 96px;
}
.mt-ctrl__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.mt-ctrl__title {
  font-family: var(--mt-display);
  font-size: 64px;
  font-weight: 600;
  line-height: 64px;
  letter-spacing: -1.75px;
  color: var(--mt-text);
}
.mt-dem {
  color: var(--midterms-democrat);
}
.mt-rep {
  color: var(--midterms-republican);
}
.mt-ctrl__trade {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding-top: 22px;
  flex-shrink: 0;
}
.mt-trade {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 52px;
  padding: 0 14px;
  border-radius: 36px;
  background: #edeff1;
  color: #0c0e13 !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -0.18px;
  white-space: nowrap;
}
.mt-trade:hover {
  background: #fff;
}
.mt-trade__ret {
  opacity: 0.6;
}
.mt-ctrl__meta {
  display: flex;
  gap: 8px;
  padding: 0 4px;
  color: var(--mt-text3);
  white-space: nowrap;
}
.mt-seatchart {
  margin-top: 24px;
}
.mt-seatchart canvas {
  display: block;
  width: 100%;
}
.mt-seats {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.mt-seats__side {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mt-seats__label {
  color: var(--mt-text);
  text-transform: uppercase;
}
.mt-rep-n {
  color: var(--midterms-republican);
}
.mt-dem-n {
  color: var(--midterms-democrat);
}
.mt-seats__info {
  display: inline-flex;
  margin: -8px;
  padding: 8px;
  border: 0;
  background: none;
  color: var(--mt-text3);
  cursor: help;
}

/* ---- tabs (map + table) ---- */
.mt-tabs {
  display: flex;
}
.mt-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 56px;
  padding: 0 16px;
  border: 0;
  background: none;
  color: var(--mt-tab);
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: -0.09px;
  cursor: pointer;
}
.mt-tab:hover,
.mt-tab.is-active {
  color: var(--mt-tab-on);
}
.mt-tab__n {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.1px;
  color: var(--mt-tab);
}
.mt-tab.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 9999px;
  background: var(--mt-tab-on);
}

/* ---- map ---- */
.mt-map {
  margin-top: 80px;
  padding-top: 16px;
}
.mt-map__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--mt-border);
}
.mt-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.mt-leg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 8px;
  border: 0;
  background: none;
  color: var(--mt-text2);
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: -0.09px;
  cursor: default;
}
.mt-leg__dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
}
.mt-leg__flip {
  display: grid;
  grid-template-columns: 4px 4px;
  gap: 2px;
}
.mt-leg__flip i {
  width: 4px;
  height: 4px;
  border: 1px solid var(--mt-text2);
  border-radius: 9999px;
}
.mt-leg__flip i.f {
  background: var(--mt-text2);
}
.mt-map__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1302 / 810;
}
.mt-map__canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.mt-map__tip {
  position: absolute;
  z-index: 50;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  border-radius: 16px;
  background: var(--mt-bg);
  border: 1px solid var(--mt-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  letter-spacing: -0.09px;
}
.mt-tip__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  color: var(--mt-text3);
}
.mt-tip__row img {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  object-fit: cover;
  flex-shrink: 0;
}
.mt-tip__text {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.mt-tip__name,
.mt-tip__chance {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}
.mt-tip__name {
  color: var(--mt-text);
}
.mt-tip__flip {
  display: block;
  padding: 8px 12px;
  border-top: 1px solid var(--mt-border);
  font-size: 12px;
  line-height: 16px;
  color: var(--mt-text3);
  text-align: center;
}

/* ---- section heads, cards, summaries ---- */
.mt-sec {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 48px;
}
.mt-sec--gap {
  margin-top: 0;
  padding-top: 100px;
}
.mt-sechead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}
.mt-h2 {
  font-family: var(--mt-display);
  font-size: 40px;
  font-weight: 600;
  line-height: 44px;
  letter-spacing: -0.89px;
  color: var(--mt-text);
}
.mt-h2--dim {
  color: var(--mt-text3);
}
.mt-cards {
  display: grid;
  gap: 16px;
}
.mt-cards--4 {
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.mt-cards--6 {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.mt-cardwrap[hidden] {
  display: none;
}
.mt-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 320px;
  padding: 16px;
  border-radius: 28px;
  background: var(--mt-surface);
  overflow: hidden;
}
.mt-card--race {
  height: 280px;
}
.mt-card__img {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  object-fit: cover;
}
.mt-card__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}
.mt-card__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.33px;
  color: var(--mt-text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.mt-card--race .mt-card__title {
  padding-right: 32px;
}
.mt-card__chance {
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -0.18px;
}
.mt-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding: 0 8px;
}
.mt-card__spark {
  flex: 1;
  min-height: 0;
}
.mt-card__spark svg {
  display: block;
}
.mt-card__foot {
  display: flex;
  justify-content: space-between;
  color: var(--mt-text3);
  transition: opacity 150ms;
}
.mt-card__trade {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 24px;
  background: #fff;
  color: #0c0e13;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -0.09px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 150ms cubic-bezier(0.23, 1, 0.32, 1), transform 150ms cubic-bezier(0.23, 1, 0.32, 1);
}
.mt-card:hover .mt-card__trade {
  opacity: 1;
  transform: translateY(0);
}
.mt-card:hover .mt-card__foot {
  opacity: 0;
}
.mt-summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.mt-summary__text {
  max-width: 700px;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.09px;
  color: var(--mt-text2);
}
.mt-summary__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--mt-text);
}
.mt-summary__text.is-clamped .mt-summary__body {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.mt-readmore {
  padding: 0;
  border: 0;
  background: none;
  color: var(--mt-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.mt-btn-outline {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--mt-border);
  border-radius: 20px;
  background: none;
  color: var(--mt-tab-on);
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: -0.09px;
  cursor: pointer;
}
.mt-btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ---- all races table ---- */
.mt-table__bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--mt-bg);
  border-bottom: 1px solid var(--mt-border);
}
.mt-table__bar .mt-tab {
  padding: 0 20px;
}
.mt-table__filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.mt-dd {
  position: relative;
}
.mt-dd__btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--mt-border);
  border-radius: 12px;
  background: var(--mt-bg);
  color: var(--mt-tab-on);
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: -0.09px;
  white-space: nowrap;
  cursor: pointer;
}
.mt-dd__btn > span {
  padding: 0 4px;
}
.mt-dd__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 180px;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--mt-border);
  border-radius: 12px;
  background: var(--mt-bg);
  box-shadow: none;
}
.mt-dd__menu[hidden] {
  display: none;
}
.mt-dd__item {
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--mt-text2);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.mt-dd__item:hover,
.mt-dd__item.is-active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--mt-text);
}
.mt-search {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 240px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--mt-border);
  border-radius: 10px;
  color: var(--mt-text3);
}
.mt-search svg {
  width: 16px;
  height: 16px;
}
.mt-search input {
  flex: 1;
  min-width: 0;
  padding: 0 4px;
  border: 0;
  outline: 0;
  background: none;
  color: var(--mt-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
}
.mt-trow {
  display: grid;
  grid-template-columns: minmax(100px, 2fr) minmax(100px, 2fr) minmax(70px, 1.4fr) minmax(220px, 2.6fr) minmax(80px, 1.6fr) minmax(56px, 1.2fr) minmax(56px, 1.2fr) minmax(100px, 1.5fr);
  gap: 0 8px;
  align-items: center;
  padding: 8px 2px 8px 0;
  min-height: 56px;
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: -0.09px;
  color: var(--mt-text2);
}
.mt-trow > span {
  min-width: 0;
  padding: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mt-trow > span:first-child {
  padding: 0 20px;
}
a.mt-trow:hover {
  background: rgba(255, 255, 255, 0.03);
}
.mt-trow__race {
  font-weight: 600;
  color: var(--mt-text);
}
.mt-trow--head {
  border-bottom: 1px solid var(--mt-border);
  font-weight: 600;
  color: var(--mt-text2);
}
.mt-th-vol {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mt-trow__spark {
  height: 40px;
  padding: 0 10px !important;
}
.mt-table__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 19.5px;
  letter-spacing: -0.09px;
  color: var(--mt-text2);
}
.mt-table__foot [hidden] {
  display: none;
}
.mt-table__empty {
  padding: 32px 20px;
  color: var(--mt-text2);
}

/* ---- odds table ---- */
.mt-odds__wrap {
  position: relative;
  max-height: 800px;
  overflow: hidden;
}
.mt-odds__wrap::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 192px;
  background: linear-gradient(to bottom, transparent, var(--mt-bg));
  pointer-events: none;
}
.mt-odds__wrap.is-open {
  max-height: none;
}
.mt-odds__wrap.is-open::after {
  display: none;
}
.mt-odds {
  width: 100%;
  border-collapse: collapse;
}
.mt-odds thead th {
  padding: 12px 0;
  border-bottom: 1px solid var(--mt-border);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--mt-text2);
  text-align: left;
}
.mt-odds thead .mt-odds__ph {
  text-align: right;
}
.mt-odds__tr {
  border-bottom: 1px solid var(--mt-border);
}
.mt-odds__tr:not(.is-first) .mt-odds__market {
  border-bottom: 0;
}
.mt-odds__market {
  width: 57%;
  padding: 0 32px 0 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 20px;
  text-align: left;
  vertical-align: middle;
}
.mt-odds__market a {
  display: block;
  padding: 12px 0;
  color: var(--mt-text);
}
.mt-odds__who {
  width: 33%;
  padding: 0 32px 0 0;
}
.mt-odds__who a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 20px;
  color: var(--mt-text);
}
.mt-odds__who img,
.mt-odds__noimg {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  object-fit: cover;
  flex-shrink: 0;
}
.mt-odds__p a {
  display: flex;
  justify-content: flex-end;
  padding: 12px 0;
}
.mt-odds__p .mt-mono {
  font-size: 24px;
  line-height: 36px;
  color: var(--mt-text);
}
.mt-odds__more {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}

/* ---- about / faq ---- */
.mt-about {
  max-width: 807px;
}
.mt-about__p {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.18px;
  color: var(--mt-text2);
}
.mt-readmore--inline {
  font-size: 16px;
  color: var(--mt-text);
}
.mt-about__more {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 12px;
}
.mt-about__more[hidden] {
  display: none;
}
.mt-about__block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mt-about__h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.18px;
  color: var(--mt-text);
}
.mt-faq__item {
  border-bottom: 1px solid var(--mt-border);
}
.mt-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 20px 0;
  border: 0;
  background: none;
  color: var(--mt-text);
  font-size: 24px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.47px;
  text-align: left;
  cursor: pointer;
}
.mt-faq__ico {
  display: inline-flex;
  color: var(--mt-text2);
  transition: transform 200ms;
}
.mt-faq__item.is-open .mt-faq__ico {
  transform: rotate(180deg);
}
.mt-faq__a {
  padding-bottom: 20px;
  font-size: 16px;
  line-height: 24px;
  color: var(--mt-text2);
}
.mt-faq__a[hidden] {
  display: none;
}

/* ---- floating race finder ---- */
.mt-widget {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  width: 474px;
  max-width: calc(100vw - 32px);
  transform: translateX(-50%);
}
.mt-widget__bar {
  display: flex;
  align-items: center;
  padding: 6px 20px 6px 6px;
  border: 1px solid var(--mt-border);
  border-radius: 16px;
  background: var(--mt-surface);
  box-shadow: none;
}
.mt-widget__find {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 2px;
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  border: 0;
  background: none;
  color: var(--mt-text);
  cursor: pointer;
}
.mt-widget__ph {
  flex: 1;
  padding: 0 4px;
  overflow: hidden;
  color: var(--mt-text3);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mt-widget__kbd {
  display: flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--mt-text2);
  font-family: var(--mt-mono);
  font-size: 13px;
  font-weight: 600;
}
.mt-widget__sep {
  width: 1px;
  height: 24px;
  margin-right: 10px;
  background: var(--mt-border);
}
.mt-widget__chips {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  font-size: 16px;
}
.mt-widget__chip {
  display: flex;
  align-items: center;
  gap: 4px;
}
.mt-widget__chip-k {
  font-weight: 600;
}
.mt-widget__chip-v {
  font-weight: 500;
}
.mt-widget__pct {
  font-size: 14px;
}
.mt-finder {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  overflow: hidden;
  border: 1px solid var(--mt-border);
  border-radius: 16px;
  background: var(--mt-surface);
  box-shadow: none;
}
.mt-finder[hidden] {
  display: none;
}
.mt-finder__field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--mt-border);
  color: var(--mt-text3);
}
.mt-finder__field input {
  flex: 1;
  border: 0;
  outline: 0;
  background: none;
  color: var(--mt-text);
  font-size: 16px;
}
.mt-finder__list {
  max-height: 360px;
  overflow-y: auto;
  padding: 6px;
}
.mt-finder__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 10px;
}
.mt-finder__row:hover {
  background: rgba(255, 255, 255, 0.06);
}
.mt-finder__row img,
.mt-finder__noimg {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--mt-border);
}
.mt-finder__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.mt-finder__l {
  font-size: 14px;
  font-weight: 600;
  color: var(--mt-text);
}
.mt-finder__s {
  font-size: 12px;
  color: var(--mt-text3);
}
.mt-finder__p {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.mt-finder__empty {
  padding: 16px;
  color: var(--mt-text2);
}

/* ---- phone ---- */
@media (max-width: 767px) {
  .mt-page {
    padding: 16px 16px 120px;
  }
  .mt-display,
  .mt-ctrl__title,
  .mt-count__n {
    font-size: 32px;
    line-height: 38px;
    letter-spacing: -1px;
  }
  .mt-count__digit,
  .mt-count__strip > span {
    height: 38px;
    line-height: 38px;
  }
  .mt-hero__grid {
    grid-template-columns: 1fr;
  }
  .mt-hero__cell--r {
    align-items: flex-start;
  }
  .mt-ctrl__head {
    flex-direction: column;
  }
  .mt-ctrl__trade {
    align-items: flex-start;
    padding-top: 0;
  }
  .mt-h2 {
    font-size: 28px;
    line-height: 1.1;
  }
  .mt-map__bar,
  .mt-table__bar {
    flex-direction: column;
    align-items: stretch;
  }
  .mt-legend {
    justify-content: flex-start;
  }
  .mt-table__filters {
    flex-wrap: wrap;
  }
  .mt-search {
    width: 100%;
  }
  .mt-table {
    overflow-x: auto;
  }
  .mt-trow {
    min-width: 900px;
  }
  .mt-odds__market,
  .mt-odds__who a,
  .mt-odds__p .mt-mono,
  .mt-faq__q {
    font-size: 16px;
  }
  .mt-summary {
    flex-direction: column;
  }
  .mt-widget__chips,
  .mt-widget__sep {
    display: none;
  }
}

/* The site resets every <button>'s box (padding/border/background) with a more
   specific rule — restate ours under .mt-page so they keep their measured box. */
.mt-page .mt-tab {
  height: 56px !important;
  padding: 0 16px !important;
  gap: 6px !important;
  border: 0 !important;
  background: none !important;
}
.mt-page .mt-table__bar .mt-tab {
  padding: 0 20px !important;
}
.mt-page .mt-leg {
  flex-direction: row !important;
  height: 32px !important;
  padding: 8px !important;
  gap: 8px !important;
}
.mt-page .mt-leg__dot,
.mt-page .mt-leg__flip {
  order: 0 !important;
  flex-shrink: 0;
}
.mt-page .mt-btn-outline {
  height: 40px !important;
  padding: 0 16px !important;
  border: 1px solid var(--mt-border) !important;
  border-radius: 20px !important;
  background: none !important;
}
.mt-page .mt-btn-outline:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}
.mt-page .mt-dd__btn {
  height: 32px !important;
  padding: 0 10px !important;
  border: 1px solid var(--mt-border) !important;
  border-radius: 12px !important;
  background: var(--mt-bg) !important;
}
.mt-page .mt-dd__item {
  padding: 8px 10px !important;
}
.mt-page .mt-faq__q {
  padding: 20px 0 !important;
  gap: 20px !important;
}
.mt-page .mt-seats__info {
  margin: -8px -8px -8px 0 !important;
  padding: 8px !important;
}
.mt-page .mt-widget__find {
  height: 40px !important;
  padding: 0 10px !important;
}
.mt-page .mt-readmore {
  padding: 0 !important;
}
.mt-summary__body {
  display: inline;
}

/* Longer languages (ru/de/fr): titles wrap inside their column instead of
   running into each other; the finder bar grows to fit its chips. */
.mt-hero__grid {
  grid-template-columns: minmax(0, max-content) minmax(0, max-content);
  column-gap: 48px;
}
.mt-hero__cell .mt-display {
  overflow-wrap: anywhere;
}
.mt-hero__cell--r .mt-display {
  text-align: right;
}
.mt-widget {
  width: auto;
  min-width: 474px;
}
.mt-widget__chips {
  white-space: nowrap;
}
.mt-widget__find {
  min-width: 150px;
}
@media (max-width: 767px) {
  .mt-hero__cell--r .mt-display {
    text-align: left;
  }
  .mt-widget {
    min-width: 0;
    width: calc(100vw - 32px);
  }
}

/* site-wide input styles leak into midterms fields: plain transparent inputs like PM */
.mt-page .mt-search input,
.mt-page .mt-search input:focus,
.mt-page .mt-finder__field input,
.mt-page .mt-finder__field input:focus {
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}
.mt-page .mt-search input { padding: 0 4px !important; font-size: 14px !important; line-height: 16px !important; }
.mt-page .mt-finder__field input { padding: 0 !important; font-size: 16px !important; line-height: 24px !important; }
.mt-page .mt-search:focus-within { border-color: var(--mt-text3); }
.mt-page input[type="search"]::-webkit-search-cancel-button,
.mt-page input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; display: none; }
