/* The bracket-transcription page. Colours come from styles.css's variables; the rest is local. */
body { max-width: 900px; }

.moment { font-size: 1.15rem; font-weight: 600; margin: 0.25rem 0; }
.moment-note { font-size: 0.9rem; font-weight: 400; }
.pending-list { border-left: 4px solid #b91c1c; padding: 0.4rem 0.75rem; margin: 0.5rem 0; color: #b91c1c; font-weight: 600; }
.pending-list div + div { margin-top: 0.2rem; }
@media (prefers-color-scheme: dark) { .pending-list { color: #fca5a5; border-color: #fca5a5; } }

.tool { margin: 1.5rem 0; }
.section-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.section-row select { font: inherit; padding: 0.25rem 0.4rem; }

.tool-button {
  font: inherit; padding: 0.3rem 0.8rem; border: 1px solid var(--border); border-radius: 999px;
  background: transparent; color: inherit; cursor: pointer;
}
.tool-button[aria-pressed="true"] { background: var(--link); color: Canvas; border-color: var(--link); }
.tool-button:disabled { opacity: 0.5; cursor: default; }

textarea#paste { width: 100%; box-sizing: border-box; font: 0.9rem ui-monospace, Menlo, Consolas, monospace; }
.phase-note { font-weight: 600; }

.preview { overflow-x: auto; margin: 0.5rem 0; }
.preview table { border-collapse: collapse; font-size: 0.9rem; }
.preview td { border: 1px solid var(--border); padding: 0.15rem 0.5rem; white-space: pre; min-width: 2rem; }
.preview td.filled, .preview td.refreshed { background: rgba(34, 197, 94, 0.25); }
.preview td.refreshed { outline: 2px solid var(--tied); outline-offset: -2px; }
.preview td.unnamed, .preview td.outside { background: rgba(239, 68, 68, 0.2); }
.preview td.fromLaterPhase { background: rgba(245, 158, 11, 0.25); }
.preview td.advanced { background: rgba(59, 130, 246, 0.2); }
.preview td.pending { box-shadow: inset 0 0 0 2px #b91c1c; }

.round { margin: 1.25rem 0; }
.round h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 0 0 0.4rem; }
.round ol { list-style: none; margin: 0; padding: 0; }
.round li { display: flex; align-items: baseline; gap: 0.75rem; font-size: 1.5rem; padding: 0.15rem 0; border-bottom: 1px solid var(--border); }
.round li.ticked { opacity: 0.45; text-decoration: line-through; }
.round li.pending-seed { background: rgba(185, 28, 28, 0.12); }
.round .seed { min-width: 2.5rem; font-weight: 700; text-align: right; }
.round .name { flex: 1; }
.round .points { color: var(--muted); font-size: 1rem; }
.round input[type="checkbox"] { width: 1.3rem; height: 1.3rem; }
.later-phase { font-size: 1.1rem; color: var(--muted); }

/* Printed bracket copy: the seed list on its own, black on white. */
@media print {
  body { color: #000; background: #fff; max-width: none; margin: 0; }
  .no-print, header .muted, #freeze, #back-link, .tool-button { display: none !important; }
  .round li { font-size: 1.1rem; }
  .round li.ticked { opacity: 1; text-decoration: none; }
  .round li.pending-seed { background: none; }
  .round input[type="checkbox"] { display: none; }
  .round { break-inside: avoid; }
  .pending-list { color: #000; border-color: #000; }
}

/* The tournament tabs are links here (each opens that tournament's page), styled like the standings tabs. */
a.tournament-tab { text-decoration: none; }
