:root {
  --paper: #f3f5ec;
  --surface: #fffefa;
  --ink: #1f332a;
  --muted: #526559;
  --court: #19443a;
  --action: #22553f;
  --leaf: #dfeec1;
  --line: #d6ded0;
  --hint: #eef1e7;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --page-gutter: max(1rem, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --alert: #8a3426;
  --alert-bg: #f8e8df;
  --serif: Georgia, serif;
  color: var(--ink);
  background: var(--paper);
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  line-height: 1.5;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; min-height: 100dvh; }
html:has(dialog[open]) { overflow: hidden; overscroll-behavior: none; }
a { color: var(--action); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #447553; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.22; letter-spacing: -.03em; }
h1 { font-size: clamp(1.9rem, 5vw, 3.25rem); font-weight: 810; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.12rem; }
button, input, select, textarea { font: inherit; color: inherit; }
button, .button { cursor: pointer; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #9baa99;
  border-radius: 8px;
  background: var(--surface);
  padding: .62rem .7rem;
}
textarea { min-height: 92px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--action); }
input[type=radio] { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .61; }
.skip-link { position: absolute; top: -100px; left: 1rem; z-index: 5; background: white; padding: .75rem; }
.skip-link:focus { top: .5rem; }
.site-header { padding-top: var(--safe-top); background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner {
  width: min(1120px, calc(100% - var(--page-gutter) - var(--page-gutter)));
  min-height: 72px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); line-height: 1.13; }
.club-navigation { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 60% 60% 44% 44%;
  background: var(--leaf);
  color: var(--court);
  font-weight: 850;
}
.brand strong { font-size: 1.15rem; letter-spacing: -.035em; white-space: nowrap; }
.current-club { min-width: 0; padding-left: 1rem; border-left: 1px solid var(--line); text-decoration: none; color: var(--ink); line-height: 1.25; overflow-wrap: anywhere; }
.current-club strong, .current-club small { display: block; }
.current-club small { color: var(--muted); font-size: .75rem; }
.current-club small:empty { display: none; }
#account { display: flex; gap: .35rem .55rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.account-name { color: var(--muted); font-size: .9rem; }
.main { width: min(1120px, calc(100% - var(--page-gutter) - var(--page-gutter))); margin: 0 auto; padding: clamp(1.35rem, 4.5vw, 3.2rem) 0 calc(4rem + var(--safe-bottom)); }
.main.narrow { max-width: 650px; }
.noscript { padding: 1rem; }
.hero {
  display: grid;
  gap: .7rem;
  align-content: center;
  min-height: 184px;
  padding: clamp(1.35rem, 4vw, 2.5rem);
  color: #f5f7ed;
  background-color: var(--court);
  background-image: linear-gradient(90deg, #174236 12%, #19443aec 54%, #19443a73 100%), url("/assets/court.webp");
  background-position: center, right center;
  background-size: cover;
  border-radius: 16px;
}
.hero .tagline { color: #deefcf; font-size: .9rem; font-weight: 700; }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .9rem; color: #f4f6eb; }
.hero-meta span { font-size: .99rem; }
.page-head { display: grid; gap: .6rem; margin: 0 0 1rem; }
.page-head p, .muted { color: var(--muted); }
.heading-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; }
.stack { display: grid; gap: 1rem; }
.stack-wide { gap: 1.35rem; }
.panel {
  display: grid;
  align-content: start;
  gap: .85rem;
  padding: clamp(1.04rem, 3vw, 1.6rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.panel-body { display: grid; gap: .8rem; }
.layout { display: grid; gap: 1rem; align-items: start; }
.layout > * { min-width: 0; }
@media (min-width: 850px) {
  .layout { grid-template-columns: minmax(0, 1.42fr) minmax(285px, 1fr); }
  .layout .full { grid-column: 1 / -1; }
}
.actions { display: flex; gap: .55rem; flex-wrap: wrap; align-items: center; }
.button, button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: .58rem .9rem;
  border: 1px solid var(--action);
  border-radius: 8px;
  color: white;
  background: var(--action);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.25;
}
.button:hover, button:hover:not(:disabled) { filter: brightness(.95); }
.button.secondary, button.secondary { background: var(--surface); color: var(--action); border-color: #8da998; }
button.quiet { color: var(--action); background: none; border-color: transparent; padding: .35rem .35rem; }
button.danger { color: var(--alert); background: var(--alert-bg); border-color: #d7a295; }
button.compact { padding-inline: .65rem; font-size: .875rem; }
.button.block, button.block { width: 100%; }
.tabbar { display: flex; gap: .1rem .55rem; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); padding-top: .4rem; }
.tabbar button { border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: .65rem .8rem; color: var(--muted); background: transparent; }
.tabbar button[aria-current="page"] { color: var(--court); border-color: var(--action); }
.form { display: grid; gap: .8rem; }
.field { min-width: 0; display: grid; gap: .3rem; }
.field > span, legend { font-size: .9rem; font-weight: 720; }
.field small, .help { color: var(--muted); font-size: .88rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.fields .wide { grid-column: 1 / -1; }
.choice-group { border: 0; padding: 0; margin: 0; display: grid; gap: .45rem; }
.choice-group legend { padding: 0; margin: 0 0 .45rem; }
.choice, .check {
  min-height: 50px;
  display: flex;
  gap: .7rem;
  align-items: center;
  cursor: pointer;
}
.choice { padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 8px; }
.choice:has(input:checked) { border-color: #719267; background: var(--leaf); }
.choice strong { display: block; }
.choice small { display: block; color: var(--muted); }
.help-box { border-left: 4px solid #719267; background: var(--hint); padding: .75rem .9rem; color: var(--ink); }
.help-box.warn { border-color: #a8593e; background: var(--alert-bg); }
.help-box p + p { margin-top: .35rem; }
.preserve { white-space: pre-line; overflow-wrap: anywhere; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: .4rem; margin: 0; }
.metrics > div { padding: .65rem .55rem; background: var(--hint); border-radius: 7px; }
.metrics dt { color: var(--muted); font-size: .79rem; }
.metrics dd { margin: .1rem 0 0; font-size: 1.35rem; font-variant-numeric: tabular-nums; font-weight: 800; }
.rows { margin: 0; padding: 0; list-style: none; }
.row { display: grid; align-items: center; gap: .3rem .75rem; grid-template-columns: minmax(0, 1fr) auto; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .sub { font-size: .86rem; color: var(--muted); }
.row .person { font-size: .99rem; }
.row .person b { overflow-wrap: anywhere; }
.public-record div { min-width: 0; overflow-wrap: anywhere; }
.public-record .button { padding-inline: .68rem; }
.public-record time { white-space: nowrap; }
.row[hidden], .row [hidden] { display: none; }
.row details { grid-column: 1 / -1; }
.badge { display: inline-block; padding: .14rem .47rem; color: #30523b; background: var(--hint); border-radius: 999px; font-size: .81rem; }
.member-row[data-selected="true"] { background: #eff5e7; }
.report {
  margin: 0;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--hint);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  font-size: .94rem;
}
hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: .15rem 0; }
.message {
  position: fixed;
  z-index: 20;
  bottom: calc(1rem + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  max-width: min(520px, calc(100% - var(--page-gutter) - var(--page-gutter)));
  width: max-content;
  padding: .72rem .95rem;
  border-radius: 8px;
  background: var(--court);
  color: #fff;
  box-shadow: 0 5px 18px #19443a30;
}
.message.error { background: var(--alert); }
dialog {
  max-height: calc(100vh - 2rem - var(--safe-top) - var(--safe-bottom));
  max-height: calc(100dvh - 2rem - var(--safe-top) - var(--safe-bottom));
  width: min(520px, calc(100% - var(--page-gutter) - var(--page-gutter)));
  inset: calc(1rem + var(--safe-top)) 0 calc(1rem + var(--safe-bottom));
  margin: auto;
  padding: 1.2rem;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
}
dialog::backdrop { background: #14271fc0; }
dialog h2 { margin: 0 0 .8rem; }
dialog .inline-error { color: var(--alert); }
details summary { min-height: 44px; align-content: center; cursor: pointer; font-weight: 690; color: var(--action); }
details[open] summary { margin-bottom: .55rem; }
@media (max-width: 430px) {
  .header-inner { gap: .45rem; padding-block: .55rem; }
  .club-navigation { gap: .28rem .5rem; }
  .brand { gap: .35rem; }
  .brand-mark { width: 32px; height: 32px; flex-basis: 32px; }
  .current-club { padding-left: .5rem; }
  .current-club small { display: none; }
  #account { gap: .1rem .36rem; }
  .account-name { display: none; }
  .tabbar button { padding-inline: .55rem; font-size: .9rem; }
  .row .actions { gap: .3rem; }
  .member-row { grid-template-columns: minmax(0, 1fr); }
}
