/* 국제 기록의 대회 목록·경기 결과·주간 랭킹을 간결하게 표시합니다. */
:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif; color: #25282b; background: #f4f6f7; }
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; }
a { color: #17659b; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }
button { cursor: pointer; border: 1px solid #cbd2d7; background: white; color: inherit; border-radius: 4px; padding: 9px 13px; }
button:hover { background: #edf3f6; }
button:disabled { cursor: default; opacity: .4; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid #17659b; outline-offset: 2px; }
[hidden] { display: none !important; }
.topbar { background: #fff; border-bottom: 1px solid #d8dfe3; padding: 15px 24px; display: flex; gap: 20px; align-items: center; }
.topbar span { color: #67717a; }
main { max-width: 1460px; margin: auto; padding: 24px; }
h1 { font-size: 24px; margin: 0; }
h2 { font-size: 18px; margin: 16px 0 9px; line-height: 1.45; overflow-wrap: anywhere; }
p { line-height: 1.55; }
.heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.heading p { color: #626d75; margin: 7px 0 14px; }
.tabs { display: flex; gap: 0; border-bottom: 1px solid #ccd5db; margin-bottom: 15px; }
.tabs button { border: 0; border-radius: 0; background: none; border-bottom: 3px solid transparent; padding: 13px 20px; }
.tabs button[aria-selected=true] { color: #17659b; border-bottom-color: #17659b; font-weight: 600; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin: 15px 0; }
label { display: grid; gap: 5px; color: #626d75; font-size: 12px; }
input, select { border: 1px solid #c7d0d6; border-radius: 4px; background: white; color: #25282b; min-height: 36px; padding: 7px 9px; max-width: 100%; font-size: 14px; }
#event-search { width: 270px; }
.results-layout { display: grid; grid-template-columns: 335px minmax(0, 1fr); gap: 26px; }
aside { border-right: 1px solid #d8dfe3; padding-right: 18px; max-height: 75vh; overflow-y: auto; }
.event-button { display: block; width: 100%; border: 0; border-radius: 0; background: none; text-align: left; padding: 12px 10px; border-bottom: 1px solid #dfe5e9; line-height: 1.5; }
.event-button[aria-current=true] { background: #e8f2ec; border-left: 3px solid #268152; padding-left: 7px; }
.event-button strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.event-button small { display: block; color: #626d75; margin-top: 4px; }
.matches-area { min-width: 0; }
.matches-area h2 { margin-top: 7px; }
.muted { color: #626d75; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; background: white; }
th { background: #eaf0f3; color: #4b5861; text-align: left; font-weight: 500; }
th, td { padding: 11px 12px; border-bottom: 1px solid #dfe5e9; vertical-align: top; }
td small { display: block; color: #747e85; margin-top: 4px; }
td.name-cell { min-width: 135px; overflow-wrap: anywhere; }
.korean { color: #207747; font-weight: 600; }
.score { white-space: nowrap; font-weight: 700; text-align: center; }
.score button { min-width: 48px; padding: 6px; color: #17659b; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 16px 0; }
.pager button { width: 36px; height: 34px; padding: 0; }
.notice { background: #fff6db; border-left: 3px solid #d2a437; padding: 10px 13px; color: #66521c; }
.error { background: #fcecee; color: #9c2937; padding: 12px; }
.status-ok { color: #207747; }
.status-pending { color: #8a681a; }
.empty { color: #66727b; padding: 22px 10px; background: #fff; }
.name-button { color: #17659b; border: none; background: none; padding: 0; text-align: left; overflow-wrap: anywhere; }
.up { color: #207747; }
.down { color: #b24551; }
dialog { position: fixed; margin: 0; padding: 16px 20px; width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto; border: 1px solid #c8d0d6; border-radius: 6px; background: white; }
dialog::backdrop { background: rgba(25, 32, 36, .25); }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.dialog-heading h2 { margin-top: 2px; font-size: 16px; }
.dialog-heading button { flex: 0 0 32px; width: 32px; height: 32px; padding: 0; font-size: 22px; }
.rubber { margin: 17px 0; border-top: 1px solid #dfe5e9; padding-top: 5px; }
.rubber h3 { font-size: 14px; margin: 9px 0; }
.match-up { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: start; line-height: 1.5; margin: 10px 0; }
.side { min-width: 0; overflow-wrap: anywhere; }
.side small { display: block; color: #747e85; font-size: 12px; font-weight: 400; }
.games th, .games td { padding: 7px 10px; }
@media (max-width: 800px) {
  main { padding: 16px 12px; }
  .topbar { padding: 13px; }
  .heading { display: block; }
  .tabs button { padding: 12px 14px; }
  .results-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  aside { max-height: 235px; padding-right: 0; border: 0; border-bottom: 1px solid #ccd5db; }
  .toolbar label { flex: 1 1 140px; min-width: 0; }
  input, select, #event-search { width: 100%; min-width: 0; }
  th, td { padding: 9px 8px; }
  td.name-cell { min-width: 125px; }
}
