html[data-special="midterms"] { --field: #60a5fa; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.mt-hero { background: radial-gradient(ellipse at 85% 20%, #122747 0, transparent 60%); }
.mt-hero .x-h1 { max-width: 16ch; }
.mt-hero .x-hero-kicker { color: #93c5fd; }
.mt-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0; }
.mt-actions a { border: 1px solid #475569; border-radius: .4rem; padding: .7rem 1rem; color: #f8fafc; }
.mt-actions a:first-child { background: #93c5fd; color: #0a0a0b; border-color: #93c5fd; font-weight: 700; }
.mt-video-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: "intro player" "details player"; column-gap: clamp(1.5rem, 5vw, 4rem); }
.mt-video-intro { grid-area: intro; align-self: end; }
.mt-video-details { grid-area: details; align-self: start; }
.mt-video { grid-area: player; width: min(100%, 22rem); margin: 0 auto; min-width: 0; }
.mt-video video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: #0a0a0b; border: 1px solid #475569; border-radius: .6rem; }
.mt-video video:focus-visible { outline: 3px solid #93c5fd; outline-offset: 4px; }
.mt-video figcaption { margin-top: .8rem; }
.mt-watch .x-note a { color: #93c5fd; text-decoration: underline; text-underline-offset: .15em; }
.mt-results, .mt-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0; }
.mt-result, .mt-next article { border: 1px solid #334155; padding: 1.4rem; border-radius: .5rem; background: #101723; min-width: 0; }
.mt-result h3, .mt-next h3 { color: #f8fafc; font-size: 1.2rem; }
.mt-result-number { color: #93c5fd; font: 700 clamp(1.8rem, 4vw, 3.4rem)/1.15 'Space Grotesk', sans-serif; margin: 1rem 0; }
.mt-result p, .mt-next p, .mt-method p { line-height: 1.7; color: #cbd5e1; }
.mt-result small { color: #cbd5e1; display: block; margin: .8rem 0; }
.mt-seat-bar { display: flex; height: 1rem; gap: 2px; margin: 1.2rem 0; overflow: hidden; border-radius: .2rem; }
.mt-dem { background: #60a5fa; }
.mt-ind { background: #2dd4bf; }
.mt-rep { background: #fb7185; }
.mt-uncalled { background: #94a3b8; }
.mt-notice { border-top: 2px solid #fbbf24; padding: .8rem 0 0; margin: 1.5rem 0; max-width: var(--measure); color: #e2e8f0; line-height: 1.75; }
.mt-issue-list { max-width: 50rem; margin: 2rem 0; display: grid; gap: 1.1rem; }
.mt-issue-label { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .4rem; color: #e2e8f0; }
.mt-issue-track { height: .65rem; background: #1e293b; border-radius: .2rem; }
.mt-issue-fill { height: 100%; background: #60a5fa; border-radius: .2rem; }
.mt-contents { columns: 2; padding-left: 1.6rem; margin: 1.5rem 0; }
.mt-contents li { break-inside: avoid; padding: .45rem 0 .45rem .3rem; color: #94a3b8; }
.mt-contents a { color: #e2e8f0; }
.mt-reasons { list-style: none; padding: 0; margin: 0; }
.mt-reason { scroll-margin-top: 7rem; border-top: 1px solid #334155; padding: 3rem 0; display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1.8rem; }
.mt-rank { color: #60a5fa; font: 700 clamp(2.5rem, 6vw, 4.5rem)/1 'Space Grotesk', sans-serif; }
.mt-reason h3 { font: 700 clamp(1.45rem, 3vw, 2.15rem)/1.2 'Space Grotesk', sans-serif; color: #f8fafc; max-width: 32ch; }
.mt-evidence { font-size: .8rem; color: #a5b4fc; letter-spacing: .04em; margin: 0 0 .7rem; }
.mt-reason p { line-height: 1.8; max-width: var(--measure); }
.mt-stat { background: #111e30; padding: 1rem 1.2rem; border-radius: .4rem; margin: 1.3rem 0; max-width: 55rem; }
.mt-stat strong { font-size: 1.65rem; color: #93c5fd; margin-right: .6rem; }
.mt-stat span { color: #dbeafe; }
.mt-caveat { color: #cbd5e1; border-top: 1px solid #334155; padding-top: .8rem; font-size: .93rem; }
.mt-covers { color: #a5b4fc; font-size: .9rem; margin: 0 0 .4rem; }
.mt-covers strong { color: #e2e8f0; }
.mt-next { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mt-source-list li { margin-bottom: .9rem; overflow-wrap: anywhere; }
.mt-source-list a, .x-source a { color: #93c5fd; }
.mt-method { max-width: var(--measure); }
@media (max-width: 900px) { .mt-results { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .mt-video-layout { grid-template-columns: 1fr; grid-template-areas: "intro" "player" "details"; row-gap: 1.5rem; } }
@media (max-width: 600px) {
  .mt-contents { columns: 1; }
  .mt-next { grid-template-columns: 1fr; }
  .mt-reason { grid-template-columns: 1fr; gap: .8rem; padding: 2rem 0; }
}
@media print {
  .top, .term-progress, .term-progress-label, .mt-actions, .mt-watch { display: none !important; }
  .mt-hero, .mt-result, .mt-stat, .mt-next article { background: none; }
  .mt-reason { break-inside: avoid; grid-template-columns: 3rem 1fr; }
  .x-root, .x-root * { color: #111 !important; }
  .mt-source-list a { overflow-wrap: anywhere; }
}
