.debate-page {
  --debate-green: #0c6952;
  --debate-green-dark: #074939;
  --debate-cream: #f2eee3;
  --debate-rule: #c5c5b9;
  --debate-rust: #b95032;
  background: var(--debate-cream);
}

.debate-page main { width: min(1320px, calc(100% - 40px)); margin: 0 auto; }
.debate-page .site-header { background: rgba(242, 238, 227, .92); }
.debate-page .site-footer { background: var(--debate-green-dark); color: #e8ede7; }

.debate-hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
  padding: 72px 0 82px;
  border-bottom: 1px solid var(--debate-rule);
}

.debate-hero h1 { max-width: none; font-size: clamp(64px, 9.5vw, 138px); line-height: .83; letter-spacing: -.055em; }
.debate-hero .lede { max-width: 720px; font-size: clamp(19px, 2vw, 26px); }
.debate-jump { display: inline-flex; gap: 18px; align-items: center; margin-top: 38px; padding-bottom: 8px; border-bottom: 1px solid currentColor; color: var(--debate-green); font-weight: 750; }
.debate-jump span { transition: transform .2s ease; }
.debate-jump:hover span { transform: translateY(4px); }

.motion-card { padding: clamp(26px, 4vw, 46px); color: #f8f5ec; background: var(--debate-green); box-shadow: 18px 18px 0 #d8d2c2; transform: rotate(1deg); }
.motion-card > span, .section-label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.motion-card blockquote { margin: 70px 0; font-family: Georgia, serif; font-size: clamp(30px, 4vw, 49px); line-height: 1.08; }
.motion-stats { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.45); font-size: 13px; }

.method-ribbon { display: grid; grid-template-columns: repeat(4, 1fr); padding: 26px 0; border-bottom: 1px solid var(--debate-rule); }
.method-ribbon div { display: flex; align-items: baseline; justify-content: center; gap: 9px; border-right: 1px solid var(--debate-rule); }
.method-ribbon div:last-child { border: 0; }
.method-ribbon strong { font: 30px Georgia, serif; color: var(--debate-green); }
.method-ribbon span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

.debate-section { padding: clamp(76px, 10vw, 132px) 0; border-bottom: 1px solid var(--debate-rule); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .58fr); gap: clamp(45px, 8vw, 110px); margin-bottom: 58px; }
.section-heading h2 { max-width: 790px; margin-top: 15px; }
.section-heading > p, .method-copy { align-self: end; color: var(--soft-ink); font-size: 16px; line-height: 1.68; }
.section-label { color: var(--debate-green); }

.rank-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.rank-tabs button { appearance: none; padding: 10px 15px; border: 1px solid #aeb5aa; border-radius: 999px; color: var(--soft-ink); background: transparent; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.rank-tabs button:hover, .rank-tabs button.active { color: #fff; background: var(--debate-green); border-color: var(--debate-green); }
.ranking-note { margin-bottom: 25px; color: var(--muted); font-size: 13px; }
.leaderboard { border-top: 2px solid var(--ink); }
.rank-row { display: grid; grid-template-columns: 58px minmax(180px, 1.1fr) minmax(180px, 1fr) 88px 175px; gap: 22px; align-items: center; min-height: 72px; border-bottom: 1px solid var(--debate-rule); }
.rank-row:hover { background: rgba(255,255,255,.38); }
.rank-number { color: var(--muted); font: 21px Georgia, serif; }
.rank-model strong { display: block; font: 21px Georgia, serif; }
.rank-model small { color: var(--muted); }
.rank-bar { height: 7px; background: #d8d9cf; overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: var(--debate-green); transform-origin: left; animation: grow-bar .55s ease both; }
.rank-rate { font: 25px Georgia, serif; text-align: right; }
.speech-links { display: flex; justify-content: flex-end; gap: 6px; }
.speech-links button { padding: 7px 9px; border: 1px solid #b8bbb1; border-radius: 4px; color: var(--soft-ink); background: transparent; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.speech-links button:hover { border-color: var(--debate-green); color: var(--debate-green); }
@keyframes grow-bar { from { transform: scaleX(0); } }

.impartiality-section { background: #111c19; color: #f4f0e6; margin-inline: calc(50% - 50vw); padding-inline: max(20px, calc((100vw - 1320px) / 2)); }
.impartiality-section .section-label { color: #64c4a2; }
.impartiality-section .section-heading > p { color: #b8c5c0; }
.impartiality-key { display: flex; gap: 28px; margin-bottom: 28px; color: #aebdb7; font-size: 12px; }
.impartiality-key span { display: flex; gap: 7px; align-items: center; }
.impartiality-key i { width: 13px; height: 5px; display: inline-block; }
.bias-negative { background: #77a7cf; }
.bias-positive { background: #df7757; }
.impartiality-list { border-top: 1px solid #52605b; }
.bias-row { display: grid; grid-template-columns: 44px minmax(190px, 1fr) minmax(240px, 1.2fr) 94px 110px; gap: 18px; align-items: center; min-height: 64px; border-bottom: 1px solid #394640; }
.bias-rank { color: #82918b; font: 18px Georgia, serif; }
.bias-name strong { display: block; font-size: 14px; }
.bias-name small { color: #8fa099; }
.bias-track { position: relative; height: 16px; }
.bias-track::after { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; content: ""; background: #79847f; }
.bias-track i { position: absolute; top: 5px; height: 6px; border-radius: 5px; }
.bias-value { font: 19px Georgia, serif; text-align: right; }
.bias-agreement { color: #aebdb7; font-size: 12px; text-align: right; }

.arena-section { padding-top: clamp(82px, 11vw, 145px); }
.arena-controls { display: grid; grid-template-columns: 1fr 55px 1fr; gap: 18px; align-items: end; padding: 28px; color: #fff; background: var(--debate-green); }
.arena-controls label span { display: block; margin-bottom: 10px; color: #b8ded1; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.arena-controls select { width: 100%; padding: 14px 40px 14px 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 0; color: #fff; background: var(--debate-green-dark); font: 18px Georgia, serif; }
.versus { padding-bottom: 17px; color: #abd1c4; font: italic 18px Georgia, serif; text-align: center; }
.verdict-board { display: grid; grid-template-columns: auto minmax(260px, 1fr) auto; gap: 25px; align-items: center; padding: 28px; border: 1px solid var(--debate-rule); border-top: 0; background: rgba(255,255,255,.42); }
.verdict-score { min-width: 88px; }
.verdict-score strong { display: block; font: 38px Georgia, serif; }
.verdict-score span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.verdict-score.opposition { text-align: right; }
.jury-strip { display: grid; grid-template-columns: repeat(18, minmax(5px, 1fr)); gap: 3px; }
.jury-vote { position: relative; display: block; height: 28px; border-radius: 2px; background: var(--debate-green); cursor: help; }
.jury-vote.opposition { background: var(--debate-rust); }
.jury-vote::after { position: absolute; z-index: 4; left: 50%; bottom: calc(100% + 9px); width: max-content; max-width: 220px; padding: 7px 9px; border-radius: 3px; content: attr(data-label); color: #fff; background: #111c19; font-size: 12px; line-height: 1.25; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .14s ease, transform .14s ease; }
.jury-vote:hover::after, .jury-vote:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.jury-vote:focus-visible { outline: 2px solid #111c19; outline-offset: 2px; }
.verdict-caption { grid-column: 1 / -1; color: var(--muted); font-size: 12px; text-align: center; }
.speech-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.speech-switch { display: none; }
.speech-card { border: 1px solid var(--debate-rule); background: #fbf9f2; }
.speech-card header { min-height: 170px; padding: 30px; color: #fff; background: var(--debate-green); }
.opposition-card header { background: var(--debate-rust); }
.speech-card header > span { display: block; margin-bottom: 34px; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; opacity: .78; }
.speech-card h3 { font: 34px Georgia, serif; }
.speech-card small { display: block; margin-top: 7px; opacity: .72; }
.speech-copy { padding: clamp(27px, 4vw, 44px); color: #303735; font: 17px/1.75 Georgia, serif; white-space: pre-line; }
.method-copy { display: grid; gap: 18px; }
.caveat { padding: 18px 20px; border-left: 3px solid var(--debate-green); background: rgba(255,255,255,.42); }

@media (max-width: 900px) {
  .rank-row { grid-template-columns: 44px minmax(180px, 1fr) 80px 160px; }
  .rank-bar { display: none; }
  .bias-row { grid-template-columns: 35px minmax(170px, 1fr) minmax(180px, 1fr) 80px; }
  .bias-agreement { display: none; }
}

@media (max-width: 760px) {
  .debate-page main { width: min(100% - 24px, 1320px); }
  .debate-hero, .section-heading, .speech-stage { grid-template-columns: 1fr; }
  .debate-hero { min-height: auto; gap: 42px; padding: 43px 0 58px; }
  .debate-hero h1 { font-size: clamp(46px, 14vw, 60px); line-height: .9; letter-spacing: -.045em; }
  .debate-hero .lede { margin-top: 22px; font-size: 17px; line-height: 1.48; }
  .debate-jump { min-height: 44px; margin-top: 24px; }
  .motion-card { margin: 0 7px 7px 0; padding: 25px 22px; box-shadow: 8px 8px 0 #d8d2c2; transform: none; }
  .motion-card blockquote { margin: 38px 0; font-size: clamp(29px, 9vw, 38px); }
  .motion-stats { font-size: 12px; line-height: 1.45; }
  .method-ribbon { grid-template-columns: 1fr 1fr; gap: 0; padding: 0; }
  .method-ribbon div { min-height: 82px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 14px 12px; border-bottom: 1px solid var(--debate-rule); }
  .method-ribbon div:nth-child(2), .method-ribbon div:last-child { border-right: 0; }
  .method-ribbon strong { font-size: 27px; }
  .method-ribbon span { font-size: 10px; }
  .debate-section { padding: 64px 0; }
  .section-heading { gap: 24px; margin-bottom: 38px; }
  .section-heading h2 { font-size: clamp(34px, 10.4vw, 44px); }
  .section-heading > p, .method-copy { font-size: 15px; line-height: 1.62; }

  .rank-tabs { flex-wrap: nowrap; gap: 6px; margin-inline: -12px; padding: 0 12px 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .rank-tabs::-webkit-scrollbar { display: none; }
  .rank-tabs button { flex: 0 0 auto; min-height: 44px; scroll-snap-align: start; }
  .ranking-note { margin-bottom: 19px; line-height: 1.45; }
  .leaderboard { display: grid; gap: 8px; border-top: 0; }
  .rank-row { grid-template-columns: 31px minmax(0, 1fr) auto; gap: 8px 10px; min-height: 0; padding: 15px 14px; border: 1px solid var(--debate-rule); border-radius: 5px; background: rgba(255,255,255,.46); }
  .rank-number { font-size: 18px; }
  .rank-model strong { font-size: 18px; line-height: 1.18; }
  .rank-model small { display: block; margin-top: 3px; font-size: 11px; }
  .rank-rate { font-size: 22px; }
  .speech-links { grid-column: 2 / -1; justify-content: stretch; }
  .speech-links button { flex: 1; min-height: 42px; font-size: 12px; background: rgba(255,255,255,.6); }

  .impartiality-section { padding-inline: 12px; }
  .impartiality-key { flex-wrap: wrap; gap: 10px 19px; margin-bottom: 22px; line-height: 1.35; }
  .impartiality-key span:last-child { flex-basis: 100%; }
  .impartiality-list { display: grid; gap: 8px; border-top: 0; }
  .bias-row { grid-template-columns: 27px minmax(0, 1fr) auto; gap: 7px 10px; min-height: 0; padding: 14px 12px; border: 1px solid #394640; border-radius: 4px; background: rgba(255,255,255,.025); }
  .bias-name strong { font-size: 14px; line-height: 1.2; }
  .bias-name small { font-size: 11px; }
  .bias-value { font-size: 18px; }
  .bias-track { grid-column: 2 / -1; grid-row: 2; }
  .bias-agreement { display: block; grid-column: 2 / -1; grid-row: 3; text-align: left; }

  .arena-section { padding-top: 68px; }
  .arena-heading { margin-bottom: 34px; }
  .arena-controls { grid-template-columns: 1fr; gap: 12px; padding: 18px 16px; }
  .arena-controls select { min-height: 50px; padding-block: 11px; font-size: 17px; }
  .versus { padding: 0; line-height: 1; }
  .verdict-board { grid-template-columns: 1fr 1fr; padding: 19px 14px; gap: 16px 12px; }
  .verdict-score { min-width: 0; }
  .verdict-score strong { font-size: 34px; }
  .verdict-score span { font-size: 9px; }
  .verdict-score.opposition { grid-column: 2; grid-row: 1; }
  .jury-strip { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(9, 1fr); gap: 5px; }
  .jury-vote { height: 35px; }
  .jury-vote:focus::after { opacity: 1; transform: translate(-50%, 0); }
  .jury-vote:nth-child(9n + 1)::after { left: 0; transform: translate(0, 4px); }
  .jury-vote:nth-child(9n + 1):focus::after { transform: translate(0, 0); }
  .jury-vote:nth-child(9n)::after { right: 0; left: auto; transform: translate(0, 4px); }
  .jury-vote:nth-child(9n):focus::after { transform: translate(0, 0); }
  .verdict-caption { grid-column: 1 / -1; grid-row: 3; font-size: 11px; line-height: 1.45; }

  .speech-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 18px; padding: 4px; border: 1px solid var(--debate-rule); border-radius: 5px; background: #dedbd1; }
  .speech-switch button { min-height: 44px; padding: 8px; border: 0; border-radius: 3px; color: var(--soft-ink); background: transparent; font: inherit; font-size: 12px; font-weight: 750; }
  .speech-switch button.active { color: #fff; background: var(--debate-green-dark); }
  .speech-stage { margin-top: 9px; }
  .speech-stage[data-mobile-view="proposition"] .opposition-card, .speech-stage[data-mobile-view="opposition"] .proposition-card { display: none; }
  .speech-card header { min-height: 136px; padding: 24px 21px; }
  .speech-card header > span { margin-bottom: 27px; font-size: 10px; }
  .speech-card h3 { font-size: 29px; line-height: 1.08; }
  .speech-copy { padding: 25px 20px 32px; font-size: 16.5px; line-height: 1.72; }
  .caveat { padding: 16px; }
}

@media (max-width: 380px) {
  .debate-hero h1 { font-size: 43px; }
  .motion-card blockquote { font-size: 28px; }
  .rank-row { padding-inline: 11px; }
  .verdict-board { padding-inline: 10px; }
}
