
:root {
  color-scheme: light;
  --paper: #f5f4ef;
  --ink: #202520;
  --forest: #315844;
  --lime: #cfdba9;
  --line: #d8dbcf;
  --muted: #59645b;
  --card: #fbfaf6;
  --gutter: clamp(16px, 4vw, 56px);
  --edge: max(var(--gutter), calc((100vw - 1160px) / 2));
  font-family: Archivo, "Arial", sans-serif;
  font-variant-numeric: tabular-nums;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper); font-size: 1rem; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
button { color: inherit; }
button:disabled { cursor: default; opacity: .5; }
:focus-visible { outline: 3px solid #749b47; outline-offset: 4px; }
::selection { color: var(--ink); background: var(--lime); }
h1,h2,h3,p { margin: 0; overflow-wrap: anywhere; }
h1,h2,h3 { line-height: 1.08; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); font-weight: 800; letter-spacing: -.068em; }
h2 { font-size: clamp(1.55rem, 2.9vw, 2.3rem); font-weight: 750; letter-spacing: -.052em; }
h3 { font-size: 1.14rem; font-weight: 700; letter-spacing: -.025em; }
.masthead { padding: 19px var(--edge) 15px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: clamp(1.16rem, 2.6vw, 1.72rem); letter-spacing: -.056em; line-height: 1.1; }
.crest { display: block; flex: none; width: 38px; height: 44px; object-fit: contain; }
.account,.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: .58rem 1rem; border: 1px solid #b8c1b5; border-radius: 5px; color: var(--forest); background: transparent; text-decoration: none; text-align: center; font-weight: 650; font-size: .91rem; line-height: 1.25; }
.account:hover,.btn:hover { background: #e7eadf; border-color: #a3b09e; }
.account { border-radius: 30px; padding-inline: 14px; min-height: 38px; }
.tabs { display: flex; gap: clamp(1rem, 3vw, 2.5rem); padding: 0 var(--edge); overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: #c1c8b8 transparent; border-bottom: 1px solid #cbd0c4; }
.tabs a { color: #5b635b; text-decoration: none; flex: none; display: inline-flex; gap: 7px; align-items: center; font-weight: 550; font-size: .93rem; padding: 13px 0 12px; border-bottom: 3px solid transparent; }
.tabs a:hover,.tabs a.active { color: var(--forest); }
.tabs a.active { font-weight: 750; border-bottom-color: var(--forest); }
.shell { margin-inline: var(--edge); padding: 0 0 48px; min-height: 65vh; }
.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; padding: clamp(28px,4vw,54px) 0 clamp(22px,3vw,32px); }
.page-head>.eyebrow { width: 100%; }
.page-head .eyebrow { margin: 0 0 8px; }
.eyebrow { color: var(--forest); text-transform: uppercase; font-size: .76rem; font-weight: 750; letter-spacing: .12em; line-height: 1.35; }
.meta,.muted { color: var(--muted); }
.meta { font-size: .91rem; }
.home-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(280px,1fr); gap: clamp(16px,2vw,24px); align-items: stretch; }
.feature,.result-card,.leaders,.panel { border: 1px solid var(--line); background: var(--card); border-radius: 9px; min-width: 0; }
.feature { overflow: hidden; display: flex; flex-direction: column; }
.pitch { display: block; position: relative; background: var(--forest); width: 100%; overflow: hidden; }
img.pitch,.pitch img,.pitch>svg { display: block; width: 100%; height: auto; aspect-ratio: 3/1; object-fit: cover; }
.pitch .hero-crest { object-fit: contain; padding: clamp(14px,2vw,24px); filter: invert(1); opacity: .94; }
.feature-body,.leaders,.result-card,.panel { padding: clamp(20px,2.4vw,30px); }
.feature-body { flex: 1; display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.feature-body h2 { font-size: clamp(2rem,3.75vw,3.25rem); }
.feature-body>.actions { margin-top: auto; padding-top: 8px; }
.primary,.btn.primary { background: var(--forest); color: white; border-color: var(--forest); }
.primary:hover,.btn.primary:hover { background: #274c39; border-color: #274c39; }
.slots { display: flex; gap: 5px; width: 100%; }
.slots i { height: 6px; border-radius: 1px; flex: 1; background: #e4e7dc; }
.slots i.on { background: var(--forest); }
.side,.stack { display: flex; flex-direction: column; gap: 17px; }
.side { gap: clamp(16px,2vw,24px); }
.result-card { background: #294c3a; color: #fbfaf1; border-color: #294c3a; }
.result-card .eyebrow,.result-card .meta { color: #d0dbbd; }
.result-card .btn { color: #f5f4ef; border-color: #72917d; }
.result-card .btn:hover { background: #386348; }
.scoreline { display: flex; align-items: center; justify-content: center; gap: clamp(8px,1.6vw,20px); padding: 16px 0; color: #fffef6; font-size: clamp(.94rem,1.6vw,1.13rem); font-weight: 600; }
.scoreline strong,.scoreline b { color: var(--lime); font-size: clamp(2.6rem,4.8vw,4rem); font-weight: 750; line-height: .98; letter-spacing: -.075em; white-space: nowrap; }
.leaders { flex: 1; }
.leaders h2 { font-size: 1.65rem; }
.leader-row,.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 12px 0; min-width: 0; }
.leader-row:last-child,.row:last-child { border-bottom: 0; }
.row>div { min-width: 0; }
.row.panel { padding: clamp(20px,2.4vw,30px); border: 1px solid var(--line); }
.row p { margin-block: 3px; }
.row>.btn { flex-shrink: 0; }
.leader-row strong:last-child { margin-left: auto; color: var(--forest); font-size: 1.25rem; }
.grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(16px,2vw,24px); align-items: start; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.avatar { flex: none; width: 39px; height: 39px; display: inline-flex; justify-content: center; align-items: center; border-radius: 50%; background: #e4e9d9; color: var(--forest); font-size: .86rem; font-weight: 750; overflow: hidden; }
.avatar img,img.avatar { object-fit: cover; }
.avatar img { width: 100%; height: 100%; }
.chip { display: inline-flex; align-items: center; gap: 7px; border-radius: 22px; padding: 4px 10px; color: #254b36; background: #e1e8d3; font-size: .8rem; font-weight: 650; }
.pitch .chip { position: absolute; top: 16px; left: 16px; background: var(--lime); }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th,td { padding: 11px 5px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-size: .81rem; font-weight: 650; color: var(--muted); }
td:last-child,th:last-child { text-align: right; }
td:first-child { color: var(--muted); }
fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 16px; margin: 0; min-width: 0; }
legend { padding: 0 6px; font-weight: 700; }
label { display: grid; gap: 5px; font-weight: 600; font-size: .91rem; }
input,select,textarea { display: block; width: 100%; max-width: 100%; padding: .65rem .75rem; color: var(--ink); background-color: #fffefb; border: 1px solid #b7bfb2; border-radius: 5px; min-height: 44px; font-size: 1rem; font-weight: 450; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='m2 3 6 6 6-6' fill='none' stroke='%23315844' stroke-width='1.6'/%3E%3C/svg%3E"); background-size: 13px; background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
textarea { resize: vertical; }
input[type=checkbox],input[type=radio] { width: auto; min-height: 0; accent-color: var(--forest); }
label:has(input[type=checkbox]) { display: flex; align-items: center; gap: 8px; }
form.stack>.btn,.panel.stack>.btn { align-self: flex-start; }
details { border-top: 1px solid var(--line); padding-top: 12px; }
summary { cursor: pointer; font-weight: 650; color: var(--forest); }
details[open]>summary { margin-bottom: 14px; }
dialog { color: var(--ink); width: min(460px,calc(100% - 28px)); max-height: 88dvh; padding: 32px 24px 24px; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; }
dialog::backdrop { background: rgba(24,35,28,.46); }
.dialog-close { cursor: pointer; position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.6rem; line-height: 1; }
dialog h2 { padding-right: 16px; }
dialog form { display: grid; gap: 14px; }
#notice:not(:empty) { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 28px); padding: .75rem 1.15rem; background: #253c2d; color: white; border-radius: 6px; z-index: 9; }
footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-inline: var(--edge); border-top: 1px solid var(--line); padding: 18px 0 27px; font-size: .81rem; color: var(--muted); }
footer span:first-child { font-weight: 650; }
@media(max-width: 760px) {
  .home-grid,.grid { grid-template-columns: minmax(0,1fr); }
  .page-head { align-items: flex-start; }
  .masthead { padding-block: 12px 8px; }
  .crest { width: 29px; height: 35px; }
  .tabs { gap: 21px; }
  .tabs a { min-height: 44px; }
  .scoreline { padding-block: 18px; }
  .grid { gap: 15px; }
  .panel { padding: 19px; }
}
@media(max-width: 420px) {
  .account { font-size: .82rem; padding-inline: 10px; }
  .brand { gap: 7px; }
  .row { flex-wrap: wrap; }
  .feature-body>.actions .btn { flex: 1 1 auto; }
}
.account::before { content: ''; flex: none; width: 17px; height: 17px; background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23315844' stroke-width='1.7'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M4.5 20c.7-4.6 3.5-7 7.5-7s6.8 2.4 7.5 7'/%3E%3C/svg%3E"); }
.feature-kicker,.capacity,.result-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.feature-kicker .chip { background: #e3ebd3; }
.feature-kicker .chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--forest); }
.capacity { margin-top: 5px; font-size: .88rem; }
.capacity span { font-weight: 600; color: var(--forest); }
.result-foot { border-top: 1px solid #617a67; padding-top: 12px; font-size: .86rem; color: #dbe5d4; }
.result-foot a,.text-link { text-underline-offset: 4px; font-weight: 650; }
.scoreline { justify-content: space-between; }
.scoreline small { font-weight: 500; font-size: .65em; vertical-align: .08em; }
.leaders>.eyebrow { margin-bottom: 6px; }
.leaders h2 { margin-bottom: 12px; }
button.leader-row { width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding-block: 10px; font-weight: 600; }
button.leader-row:hover,.plain:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 4px; }
.place { font-size: .78rem; font-weight: 600; color: var(--muted); }
.leader-row strong small { color: var(--muted); font-size: .73rem; font-weight: 550; }
.leader-row:nth-of-type(2) .avatar { background: #e7e3d9; color: #68553f; }
.leader-row:nth-of-type(3) .avatar { background: #e0e5e3; color: #4b6260; }
.text-link { display: inline-block; margin-top: 14px; color: var(--forest); font-size: .88rem; }
.call-head { display: grid; gap: 10px; margin-bottom: 20px; }
.call-head>.chip { justify-self: start; }
.call-head .capacity,.call-head .slots { max-width: 480px; }
.call-head .actions { margin-top: 8px; }
.club-list { display: grid; margin-top: 14px; }
.club-item,.club-split { display: flex; align-items: center; gap: 12px; }
.club-split { justify-content: space-between; flex-wrap: wrap; }
.club-item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.club-item:last-child { border-bottom: 0; }
details.panel { margin-top: 20px; }
details.panel form label { display: grid; gap: 6px; font-weight: 650; }
.queue-row { justify-content: flex-start; flex-wrap: nowrap; }
.plain { padding: 4px 0; border: 0; background: transparent; font-weight: 650; text-align: left; }
.panel>h2+p,.panel>p+p,.panel>p+.btn,.panel>p+.club-actions { margin-top: 12px; }
.panel h2 small { font-size: .95rem; color: var(--forest); letter-spacing: normal; }
#dialogBody>h2 { margin: 8px 0 18px; }
#dialogBody>p+.club-actions { margin-top: 14px; }
#notice:not(.visible) { display: none; }
@media(max-width:420px) {
  .leader-row { gap: 8px; }
  .leader-row .avatar { width: 32px; height: 32px; }
  .page-head { row-gap: 8px; }
}
.club-admin-stack .panel>h2+.club-actions { margin-top: 16px; }
@media(max-width:560px){
  .tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 8px; padding-block:4px; }
  .tabs a { justify-content:center; padding:8px 0; font-size:.86rem; }
  .page-head { flex-direction:column; }
  .page-head>.meta:empty { display:none; }
}
