/* The Judge screen: the link being judged large, its quotes beside their source, big verdict buttons. */
.judge-select { background: var(--muted); border-radius: var(--radius); padding: 10px 12px; }
.judge-select select { max-width: 220px; }
.judge-select input[type=number] { width: 5em; }

.judge-progress { margin: 18px 0 6px; }
.judge-progress progress { vertical-align: middle; margin-right: 10px; }
.judge-progress progress {
  -webkit-appearance: none; appearance: none; width: 240px; height: 8px; border: 0; border-radius: 999px;
  background: var(--muted); overflow: hidden;
}
.judge-progress progress::-webkit-progress-bar { background: var(--muted); border-radius: 999px; }
.judge-progress progress::-webkit-progress-value { background: var(--ok); border-radius: 999px; }
.judge-progress progress::-moz-progress-bar { background: var(--ok); border-radius: 999px; }

.judge-nav { display: flex; align-items: center; gap: 12px; margin: 10px 0; font-variant-numeric: tabular-nums; }
.judge-nav a[data-prev], .judge-nav a[data-next], .judge-nav > span.dim:first-child, .judge-nav > span.dim:last-child {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--input); border-radius: 6px;
  color: var(--foreground); background: var(--background); font-size: .85rem; font-weight: 500;
}
.judge-nav > span.dim { opacity: .5; }
.judge-nav a:hover { background: var(--muted); text-decoration: none; }

.judge-pair {
  border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); margin: 12px 0 20px; background: var(--card);
  box-shadow: var(--shadow); overflow: hidden;
}
.judge-subjects { display: grid; grid-template-columns: 1fr 1fr; background: var(--muted); border-bottom: 1px solid var(--border); }
.judge-subject { padding: 14px 20px; min-width: 0; line-height: 1.6; }
.judge-subject + .judge-subject { border-left: 1px solid var(--border); }
.judge-subject > b { font-size: 1.05rem; }
.judge-link { padding: 18px 20px 16px; }
.judge-link + .judge-link { border-top: 1px solid var(--border); }
.judge-link:has(form[data-current]) { box-shadow: inset 4px 0 0 var(--foreground); }
.judge-link > p:first-child { font-size: 1.35rem; line-height: 1.35; letter-spacing: -.01em; margin: 0 0 8px; max-width: 70ch; }
.judge-link > p:first-child b { font-weight: 650; }
.judge-link > p:nth-child(2) { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 0 0 14px; }

.judge-signals { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.judge-signals > li {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2px 20px; margin: 0;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px;
}
.judge-signals > li > blockquote {
  grid-column: 1; grid-row: 1 / span 3; margin: 0; font-size: 1.05rem; line-height: 1.5; padding: 8px 14px;
  border-left-color: var(--foreground);
}
.judge-signals > li > :not(blockquote) { grid-column: 2; }
.judge-signals > li:not(:has(blockquote)) { display: block; border-style: dashed; padding: 8px 14px; }

.verdict { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.verdict button { height: 46px; min-width: 132px; font-size: 1rem; font-weight: 600; border-width: 1.5px; }
.verdict button kbd { margin-left: 4px; }
.verdict button.v-right { color: var(--ok); border-color: var(--ok); background: var(--ok-bg); }
.verdict button.v-wrong { color: var(--no); border-color: var(--no); background: var(--no-bg); }
.verdict button.v-cannot_tell { color: var(--foreground); border-color: var(--input); background: var(--background); }
.verdict button:hover { opacity: 1; filter: brightness(.97); }
.verdict button.on { color: var(--background); }
.verdict button.v-right.on { background: var(--ok); }
.verdict button.v-wrong.on { background: var(--no); }
.verdict button.v-cannot_tell.on { background: var(--foreground); border-color: var(--foreground); }
.verdict button.on kbd { background: transparent; color: inherit; border-color: currentColor; }
.verdict select { height: 46px; }
.verdict input[type=text] { height: 46px; width: 220px; }
.verdict[data-current] > span.dim { font-weight: 600; color: var(--foreground); }
.verdict + p { margin-top: 8px; }
.judge-agent { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--border); }
.judge-agent button { height: 30px; font-size: .8rem; background: var(--background); color: var(--foreground); border-color: var(--input); }

@media (max-width: 760px) {
  .judge-subjects { grid-template-columns: 1fr; }
  .judge-subject + .judge-subject { border-left: 0; border-top: 1px solid var(--border); }
  .judge-signals > li { grid-template-columns: 1fr; }
  .judge-signals > li > blockquote, .judge-signals > li > :not(blockquote) { grid-column: 1; grid-row: auto; }
}

/* the table view (several pairs on a page) is denser than one pair at a time */
.judge-pair:has(~ .judge-pair) .judge-link > p:first-child, .judge-pair ~ .judge-pair .judge-link > p:first-child { font-size: 1.05rem; }
.judge-pair:has(~ .judge-pair) .verdict button, .judge-pair ~ .judge-pair .verdict button,
.judge-pair:has(~ .judge-pair) .verdict select, .judge-pair ~ .judge-pair .verdict select,
.judge-pair:has(~ .judge-pair) .verdict input[type=text], .judge-pair ~ .judge-pair .verdict input[type=text] { height: 36px; font-size: .9rem; min-width: 0; }
.judge-pair:has(~ .judge-pair) .judge-signals > li > blockquote, .judge-pair ~ .judge-pair .judge-signals > li > blockquote { font-size: .9rem; }
