/* The public roster form (/team-roster/), inside the site's page layout. Same players sheet as /roster/. */
.tr-page h1 { margin-bottom: 10px; }
.tr-intro { font-size: 16px; max-width: 760px; margin-bottom: 20px; }
.tr-card { background: #fff; border: 1px solid #dde3e8; border-radius: 6px; padding: 18px 20px; margin-bottom: 16px; }
.tr-card h2 { font-size: 20px; margin: 0 0 12px; }
.tr-help { color: #555; font-size: 14px; margin: 0 0 12px; }
.tr-help:last-child { margin-bottom: 0; }
.tr-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 10px; }
@media (min-width: 720px) { .tr-grid { grid-template-columns: 1fr 1fr 1fr; } }
.tr-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 700; margin: 0; }
.tr-grid label[hidden] { display: none; }
.tr-grid input, .tr-grid select { font: inherit; font-weight: normal; padding: 9px 10px; border: 1px solid #aaa; border-radius: 4px; width: 100%; background: #fff; height: auto; }
.tr-grid input:focus, .tr-grid select:focus { outline: 2px solid #6294c4; outline-offset: 1px; }
.tr-req { color: #a02818; }
.tr-err { color: #a02818; font-weight: normal; font-size: 13px; }
.tr-alert { padding: 12px 14px; border-radius: 4px; margin-bottom: 16px; font-weight: 700; background: #eef4fa; color: #1f3b4d; }
.tr-alert--bad { background: #fdecea; color: #a02818; }
.tr-alert[hidden] { display: none; }
.tr-btn { font: inherit; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; border: 2px solid #6294c4; border-radius: 4px; padding: 12px 22px; background: #6294c4; color: #fff; cursor: pointer; }
.tr-btn:hover, .tr-btn:focus { background: #1f3b4d; border-color: #1f3b4d; }
.tr-btn--plain { background: #fff; color: #1f3b4d; font-size: 13px; padding: 8px 14px; }
.tr-btn--plain:hover, .tr-btn--plain:focus { background: #eef4fa; color: #1f3b4d; border-color: #6294c4; }
.tr-btn[hidden] { display: none; }
.tr-actions { display: flex; justify-content: flex-end; }
@media (max-width: 600px) { .tr-actions .tr-btn { width: 100%; } }
.tr-problems { margin: 0 0 12px; padding: 10px 14px 10px 30px; background: #fdecea; color: #a02818; border-radius: 4px; font-size: 14px; }

/* players: a spreadsheet style grid, one player per row; scrolls sideways on small screens */
.tr-sheet-wrap { overflow-x: auto; border: 1px solid #c9c9c9; border-radius: 4px; margin-bottom: 12px; }
.tr-sheet { border-collapse: collapse; width: 100%; min-width: 980px; font-size: 14px; }
.tr-sheet th { background: #efefed; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 8px; border-bottom: 1px solid #c9c9c9; border-right: 1px solid #ddd; white-space: nowrap; }
.tr-sheet td { border-bottom: 1px solid #ddd; border-right: 1px solid #ddd; padding: 0; }
.tr-sheet tr:last-child td { border-bottom: 0; }
.tr-sheet th:last-child, .tr-sheet td:last-child { border-right: 0; }
.tr-sheet input { font: inherit; width: 100%; border: 0; border-radius: 0; padding: 9px 8px; background: transparent; min-width: 0; height: auto; }
.tr-sheet input:focus { outline: 2px solid #6294c4; outline-offset: -2px; background: #fff; }
.tr-sheet tbody tr:nth-child(even) td { background: #fafaf8; }
.tr-sheet .tr-n { width: 38px; text-align: center; color: #777; font-size: 12px; background: #efefed !important; position: sticky; left: 0; z-index: 1; }
.tr-sheet th.tr-jersey { width: 80px; }
.tr-sheet th.tr-bd { width: 150px; }
.tr-sheet .tr-x { width: 36px; text-align: center; }
.tr-clear { border: 0; background: none; color: #999; font-size: 20px; line-height: 1; cursor: pointer; padding: 6px; }
.tr-clear:hover { color: #a02818; }
.tr-sheet .tr-bad-cell { background: #fdecea !important; box-shadow: inset 0 0 0 2px #a02818; }
.tr-sheet .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
