/* Game-planner specific styles, layered on top of the club site's main.css. */

.page { max-width: 1000px; margin: 0 auto; padding: 1rem; }
.page-narrow { max-width: 640px; }
.page-head { display: flex; align-items: center; gap: 1rem; justify-content: space-between; }

.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

.table { width: 100%; border-collapse: collapse; margin: 0.75rem 0; }
.table th, .table td { text-align: left; padding: 0.4rem 0.6rem; border-bottom: 1px solid #ddd; }
.table td.lane { font-weight: 700; text-align: center; width: 3rem; }
.table tr.rematch td { background: #fff6e5; }

.badge { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.8rem; }
.badge-setup, .badge-pending { background: #e6eefc; }
.badge-running { background: #e5f6e9; }
.badge-completed { background: #d9f0df; }
.badge-finished, .badge-archived { background: #eee; }

.muted { color: #777; }
.error { color: #b00020; }

.result-form { display: inline-flex; align-items: center; gap: 0.25rem; }
.result-form input[type="number"] { width: 3.5rem; }

.btn-small { padding: 0.2rem 0.5rem; font-size: 0.85rem; }
.btn-secondary { background: #888; }
.btn-danger { background: #b00020; }

.table tr.withdrawn td { opacity: 0.55; }

.team-manage { list-style: none; padding: 0; margin: 0 0 1rem; }
.team-manage li { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.3rem 0; border-bottom: 1px solid #eee; }
.team-manage li.withdrawn span { opacity: 0.7; }

.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }

.tournament-list { list-style: none; padding: 0; }
.tournament-list li { padding: 0.5rem 0; border-bottom: 1px solid #eee; display: flex; gap: 0.75rem; align-items: center; }

.round-links { list-style: none; padding: 0; }
.round-links li { padding: 0.25rem 0; }

.teams-input { width: 100%; font-family: monospace; }

@media print {
    .no-print, .site-header, .site-footer, .messages { display: none !important; }
    .printable { max-width: none; }
}
