/* 전국체육대회 조회 화면과 인쇄 레이아웃을 정의합니다. */
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; color: #20282c; background: #fff; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
header { display: flex; align-items: center; gap: 18px; padding: 18px 24px; border-bottom: 1px solid #dce2e5; }
header a { color: #246650; font-size: 24px; text-decoration: none; }
header h1 { font-size: 21px; line-height: 1.4; margin: 0; overflow-wrap: anywhere; }
header p { margin: 5px 0 0; color: #59636b; font-size: 13px; }
header span { margin-left: auto; white-space: nowrap; font-size: 12px; }
nav { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 24px; border-bottom: 1px solid #dce2e5; background: #f6f8f7; }
button, select { font: inherit; cursor: pointer; border: 1px solid #cbd5d1; border-radius: 4px; background: white; color: #20282c; padding: 8px 12px; }
nav button[aria-pressed="true"] { background: #23684f; color: white; border-color: #23684f; }
nav a { margin-left: auto; align-self: center; color: #246650; }
main { padding: 18px 24px; max-width: 1600px; margin: auto; }
#filters { display: flex; flex-wrap: wrap; gap: 12px; }
label { font-size: 13px; display: flex; align-items: center; gap: 8px; }
h2 { font-size: 18px; margin: 18px 0 12px; }
#status { color: #59636b; font-size: 14px; }
.empty { border-top: 1px solid #dde3e0; padding: 36px 0; color: #66756f; }
.table-wrap, .bracket-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { border: 1px solid #dce2e5; padding: 9px 12px; text-align: left; }
th { background: #f2f5f3; white-space: nowrap; }
.bracket { position: relative; min-height: 200px; }
#schedule img { display: block; width: 100%; max-width: 1000px; height: auto; margin: 20px auto; }
#schedule a { color: #246650; }
dialog { position: fixed; inset: auto; margin: 0; max-width: min(760px, 94vw); width: 760px; max-height: calc(100dvh - 24px); overflow: auto; border: 1px solid #cbd5d1; border-radius: 6px; padding: 18px; }
dialog::backdrop { background: #0006; }
dialog form { text-align: right; }
dialog form button { font-size: 22px; padding: 2px 10px; }
#match-detail th, #match-detail td { white-space: nowrap; }
[hidden] { display: none !important; }
@media(max-width: 600px) { header, nav, main { padding: 12px; } header { gap: 10px; } header h1 { font-size: 18px; } #filters { gap: 8px; } select { max-width: 145px; } th, td { padding: 7px; } }
@media print { header a, header span, nav, #filters, dialog { display: none; } main { padding: 0; max-width: none; } th, td { border-color: #555; } }
