/* The compare table, on /chances and in the workspace's Chances view (V43). The
   workspace's tokens win where they exist; the fallbacks are /chances's own. */
/* It scrolls both ways, so the school names can stay above a long table of numbers. */
.cmp-scroll { max-height: 82vh; overflow: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; background: var(--surface, var(--bg)); }
.cmp-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; line-height: 1.45; color: var(--text, var(--ink)); }
.cmp-table.cmp-cols-2 { min-width: 480px; }
.cmp-table.cmp-cols-3 { min-width: 640px; }
.cmp-table.cmp-cols-4 { min-width: 800px; }
.cmp-table th, .cmp-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); font-weight: 400; }
.cmp-table thead th, .cmp-table thead td { position: sticky; top: 0; z-index: 2; border-top: 0; background: var(--surface, var(--bg)); box-shadow: 0 1px 0 var(--line); }
/* the label column stays put while the schools scroll under it */
.cmp-table tbody th[scope="row"], .cmp-table .cmp-corner { position: sticky; left: 0; z-index: 1; width: 25%; min-width: 150px; background: var(--surface, var(--bg)); color: var(--muted); border-right: 1px solid var(--line); }
.cmp-table .cmp-corner { z-index: 3; }
.cmp-table td { font-variant-numeric: tabular-nums; }
.cmp-school { position: relative; padding-right: 34px !important; font-weight: 600 !important; }
.cmp-school a { display: block; color: var(--text, var(--ink)); font-weight: 650; text-decoration: none; line-height: 1.3; }
.cmp-school a:hover { text-decoration: underline; }
.cmp-place { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 400; }
.cmp-remove { position: absolute; top: 7px; right: 7px; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 17px; line-height: 1; cursor: pointer; }
.cmp-remove:hover { background: var(--hover, var(--bg-soft)); color: var(--text, var(--ink)); }
.cmp-remove:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cmp-section th { padding-top: 16px; padding-bottom: 6px; background: var(--surface-raised, var(--bg-soft)); color: var(--text, var(--ink)); font-size: 12px; font-weight: 650 !important; letter-spacing: -.005em; }
/* the section's name stays in view while the table scrolls sideways */
.cmp-section-name { position: sticky; left: 14px; display: inline-block; }
.cmp-chance th[scope="row"] { color: var(--text, var(--ink)); font-weight: 600; }
.cmp-chance td { white-space: nowrap; }
.cmp-range { font-size: 15px; font-weight: 650; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.cmp-none { color: var(--muted); font-size: 12.5px; font-variant-numeric: normal; }
.cmp-line { display: block; }
.cmp-note { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-variant-numeric: normal; }
.cmp-line .cmp-note { display: inline; margin: 0; }
.cmp-tag { color: var(--muted); font-size: 11.5px; font-variant-numeric: normal; white-space: nowrap; }
.cmp-band { display: inline-block; padding: 1px 8px; border: 1px solid transparent; border-radius: 999px; font-size: 11.5px; font-weight: 650; line-height: 1.5; font-variant-numeric: normal; white-space: nowrap; }
.cmp-band.reach { color: var(--amber, #b4530a); background: var(--tint-amber, #fff4ea); border-color: color-mix(in srgb, var(--amber, #b4530a) 24%, transparent); }
.cmp-band.target { color: var(--cyan, #2563eb); background: var(--tint-cyan, #f4f7fe); border-color: color-mix(in srgb, var(--cyan, #2563eb) 24%, transparent); }
.cmp-band.likely { color: var(--green, #15803d); background: var(--tint-green, #f0fdf4); border-color: color-mix(in srgb, var(--green, #15803d) 24%, transparent); }
.cmp-foot { margin: 10px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
@media (max-width: 640px) {
  .cmp-table { font-size: 13px; }
  .cmp-table th, .cmp-table td { padding: 9px 10px; }
  .cmp-table tbody th[scope="row"], .cmp-table .cmp-corner { width: 118px; min-width: 118px; max-width: 118px; font-size: 12px; }
  .cmp-table.cmp-cols-2 { min-width: 400px; }
  .cmp-table.cmp-cols-3 { min-width: 540px; }
  .cmp-table.cmp-cols-4 { min-width: 680px; }
}
