/* SOURCE FILE — edit here. League copies under leagues/ are auto-generated by scripts/sync.js */
:root {
  --bg:          #EDEBE5;
  --surface:     #F5F4EF;
  --text:        #1C2B1C;
  --text-mid:    #3D513D;
  --text-muted:  #6E7E6E;
  --text-light:  #9EAB9E;
  --accent:      #2E4A2E;
  --line:        rgba(90,110,90,0.22);
  --line-strong: rgba(90,110,90,0.38);
  --sl-bg:       rgba(46,74,46,0.07);
  --sl-border:   rgba(46,74,46,0.2);
  --admin-bar-h: 44px;
  --ab-fg: #fff;
  --accent-border: #2E4A2E;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
body.admin-active { padding-top: var(--admin-bar-h); }

/* ── ADMIN BAR ───────────────────────────── */
.admin-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--admin-bar-h);
  background: var(--accent);
  color: var(--ab-fg);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1.5rem;
  z-index: 800;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
}
.admin-bar.hidden { display: none; }
.admin-bar-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .7;
  flex-shrink: 0;
}
.admin-bar-tabs { display: flex; gap: 2px; flex: 1; }
.abar-tab {
  background: none;
  border: none;
  color: color-mix(in srgb, var(--ab-fg) 65%, transparent);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  padding: 5px 12px;
  cursor: pointer;
  border-radius: 5px;
  transition: background .15s, color .15s;
}
.abar-tab:hover { background: color-mix(in srgb, var(--ab-fg) 12%, transparent); color: var(--ab-fg); }
.abar-tab.active { background: color-mix(in srgb, var(--ab-fg) 18%, transparent); color: var(--ab-fg); }
.admin-signout-btn {
  background: color-mix(in srgb, var(--ab-fg) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--ab-fg) 25%, transparent);
  border-radius: 5px;
  color: var(--ab-fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  padding: 4px 12px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s;
}
.admin-signout-btn:hover { background: color-mix(in srgb, var(--ab-fg) 22%, transparent); }
.admin-close-btn { display: none; }

/* ── ADMIN PANEL DRAWER ──────────────────── */
.admin-panel {
  position: fixed;
  top: var(--admin-bar-h);
  right: 0;
  width: min(480px, 100vw);
  height: calc(100vh - var(--admin-bar-h));
  height: calc(100dvh - var(--admin-bar-h));
  background: var(--surface);
  border-left: 1px solid var(--line-strong);
  overflow-y: auto;
  z-index: 700;
  padding: 1.75rem 2rem max(1.75rem, env(safe-area-inset-bottom));
  box-shadow: -4px 0 24px rgba(0,0,0,0.08);
  transition: transform .25s ease;
}
.admin-panel.hidden { transform: translateX(100%); }

.admin-backdrop {
  position: fixed;
  inset: 0;
  z-index: 699;
  background: transparent;
}
.admin-backdrop.hidden { display: none; }

.panel-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.save-stamp {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0;
  margin-left: auto;
}

.field-group { margin-bottom: 1.1rem; }
.field-group label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.label-hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-light);
  margin-left: 4px;
  font-size: 12px;
}
.field-hint {
  font-size: 11.5px;
  color: var(--text-light);
  margin-top: 5px;
  line-height: 1.5;
}
.import-tabs {
  display: flex;
  gap: 2px;
  margin: 6px 0 10px;
  border-bottom: 1px solid var(--line);
}
.import-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 5px 12px;
  font-size: 12px;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.import-tab:hover { color: var(--text); }
.import-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 500;
}
.import-pane { padding-top: 2px; }
.admin-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 9px 12px;
  transition: border-color .15s;
  outline: none;
}
.admin-input:focus { border-color: var(--accent); }
.admin-input::placeholder { color: var(--text-light); }
.admin-input-sm { width: 110px; }
.admin-textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--text);
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 12.5px;
  padding: 9px 12px;
  resize: vertical;
  line-height: 1.6;
  outline: none;
  transition: border-color .15s;
}
.admin-textarea:focus { border-color: var(--accent); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  cursor: pointer;
  transition: background .15s;
}
.btn-primary:hover { background: #1E381E; }
.btn-secondary {
  background: var(--bg);
  color: var(--text-mid);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color .15s;
}
.btn-secondary:hover { border-color: var(--text-muted); }
.btn-ghost-sm {
  background: none;
  color: var(--text-muted);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  padding: 3px 8px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.btn-ghost-sm:hover { color: var(--text); border-color: var(--text-muted); }
.btn-danger-sm { color: #991B1B; }
.btn-danger-sm:hover { color: #991B1B; border-color: #991B1B; background: #FEE2E2; }
.move-btns { display: flex; flex-direction: column; gap: 2px; }
.move-btn { padding: 1px 5px; font-size: 10px; line-height: 1.4; }
.move-btn:disabled { opacity: 0.25; cursor: default; pointer-events: none; }
.btn-row { display: flex; gap: 8px; align-items: center; margin-top: 1.2rem; }

.years-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; min-height: 28px; }
.year-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 3px 12px;
  font-size: 13px;
  color: var(--text-mid);
}
.chip-remove {
  background: none; border: none;
  color: var(--text-light);
  cursor: pointer; font-size: 14px; line-height: 1; padding: 0;
  transition: color .15s;
}
.chip-remove:hover { color: #991B1B; }

.member-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.member-item:last-child { border-bottom: none; }

.bylaw-editor-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 10px;
}
.bylaw-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .8rem;
  gap: 8px;
}
.bylaw-editor-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  color: var(--text-muted);
  min-width: 20px;
}

.history-editor-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 10px;
}
.history-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}

.status-select {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 8px;
  color: var(--text-mid);
  cursor: pointer;
  outline: none;
}
.status-select.val-paid    { color: #166534; background: #DCFCE7; border-color: rgba(22,101,52,0.3); }
.status-select.val-pending { color: #92400E; background: #FEF3C7; border-color: rgba(146,64,14,0.3); }
.status-select.val-overdue { color: #991B1B; background: #FEE2E2; border-color: rgba(153,27,27,0.3); }

.payments-panel-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.payments-panel-table th {
  text-align: left; padding: 0 8px 8px;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-muted); font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
}
.payments-panel-table th:not(:first-child) { text-align: center; }
.payments-panel-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); color: var(--text-mid); }
.payments-panel-table td:not(:first-child) { text-align: center; }
.payments-panel-table tr:last-child td { border-bottom: none; }
.year-th-inner { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.btn-year-cycle {
  font-size: 10px; padding: 2px 8px; border-radius: 4px; cursor: pointer;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  color: var(--accent); font-family: 'DM Sans', sans-serif;
  white-space: nowrap; transition: background .15s;
}
.btn-year-cycle:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }

.empty-state-sm { font-size: 13px; color: var(--text-light); padding: 10px 0; font-style: italic; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }

/* ── LOGIN OVERLAY ───────────────────────── */
.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s;
}
.login-overlay.hidden { display: none; }
.login-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 2.5rem;
  width: 340px;
  border: 1px solid var(--line-strong);
}
.login-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.login-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  margin-bottom: 10px;
  outline: none;
  transition: border-color .15s;
}
.login-input:focus { border-color: var(--accent); }
.login-input::placeholder { color: var(--text-light); }
.login-error {
  font-size: 13px;
  color: #991B1B;
  background: #FEE2E2;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 10px;
}
.login-error.hidden { display: none; }
.login-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 11px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background .15s;
}
.login-btn:hover { background: #1E381E; }
.login-cancel {
  width: 100%;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
  margin-top: 10px;
  padding: 6px;
  transition: color .15s;
}
.login-cancel:hover { color: var(--text-muted); }

/* ── SITE WRAP ───────────────────────────── */
.site-wrap { max-width: 1200px; margin: 0 auto; }
.site-header { padding: 3.5rem 2.5rem 0; position: relative; }

.league-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(56px, 12vw, 96px);
  font-weight: 300;
  font-style: italic;
  line-height: .92;
  letter-spacing: -2px;
  color: var(--text);
  cursor: default;
  user-select: none;
  display: block;
  margin-bottom: 2.8rem;
  text-align: center;
}
.league-name span { display: inline; }

.fade-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, var(--line-strong) 12%, var(--line-strong) 88%, transparent 100%);
  margin-bottom: 2rem;
}

/* ── LEAGUE LOGO ─────────────────────────── */
.league-logo {
  position: absolute;
  left: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  height: 30px;
  width: 30px;
  object-fit: cover;
  border-radius: 50%;
}

/* ── TAB NAV ─────────────────────────────── */
.tab-nav {
  display: flex;
  gap: 0;
  justify-content: center;
  padding: 0.6rem 0;
  margin-bottom: 0;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
  border-bottom: 1px solid var(--line);
}
body.admin-active .tab-nav { top: var(--admin-bar-h); }
.nav-tab {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .3px;
  color: var(--text-muted);
  padding: 5px 0;
  margin: 0 1.4rem;
  position: relative;
  transition: color .18s;
}
.nav-tab::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transition: transform .2s ease;
  transform-origin: left;
}
.nav-tab:hover { color: var(--text-mid); }
.nav-tab.active { color: var(--text); font-weight: 500; }
.nav-tab.active::after { transform: scaleX(1); height: 2px; }

/* ── CONTENT AREA ────────────────────────── */
.content-area {
  padding: 1.5rem 2.5rem 5rem;
  position: relative;
}
.tab-section { display: none; }
.tab-section.active { display: block; }
.tab-section.tab-fade { animation: tab-fade 150ms ease; }
@keyframes tab-fade { from { opacity: 0; } to { opacity: 1; } }

.loading-text {
  font-size: 14px;
  color: var(--text-light);
  font-style: italic;
  padding: 2rem 0;
}
.empty-state { padding: 3rem 0 2rem; text-align: center; }
.empty-state-icon { width: 48px; height: 48px; color: var(--line-strong); margin: 0 auto 14px; display: block; }
.empty-state-title { font-family: 'Cormorant Garamond', serif; font-size: 20px; color: var(--text); margin-bottom: 6px; }
.empty-state-sub { font-size: 13px; color: var(--text-light); }

/* ── SECTION ROW NAV ─────────────────────── */
.section-row-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.75rem;
}
.srnav-item {
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 13px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.srnav-item:hover { color: var(--text-mid); border-color: var(--text-muted); }
.srnav-item.active { color: var(--text); border-color: var(--text); font-weight: 500; }

/* ── BYLAWS ──────────────────────────────── */
.bylaws-wrap { width: 100%; max-width: 800px; }
.bylaws-updated {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 2rem;
  letter-spacing: .2px;
}
.bylaw-article { margin-bottom: 4.5rem; }
.bylaw-article.is-new .article-title { color: #B91C1C; }
.bylaw-article.is-new .roman { color: #B91C1C; opacity: .7; }
.new-badge {
  display: inline-block;
  font-size: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: #B91C1C;
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 8px;
  vertical-align: middle;
  position: relative;
  top: -2px;
}
.new-rule-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
}
.article-header {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  margin-bottom: 1.1rem;
  padding-bottom: .75rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--accent-border, var(--accent));
  border-bottom: 1px solid var(--line-strong);
}
.roman {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--text-muted);
  min-width: 26px;
  font-weight: 400;
}
.article-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: .2px;
}
.article-body { padding-left: 3.2rem; }
.article-img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1rem 0;
  display: block;
}
.rule-list { list-style: none; }
.rule-list li {
  display: flex;
  gap: 13px;
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--text-mid);
  border-bottom: 1px solid rgba(90,110,90,0.07);
}
.rule-list li:last-child { border-bottom: none; }
.outline-hint { font-size: 11px; color: var(--text-light); margin-top: 4px; }
.outline-example {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 11px;
  color: var(--text-light);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 10px;
  margin: 4px 0 0;
  white-space: pre;
  line-height: 1.7;
}
.bylaw-preview-body {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  background: var(--bg);
  min-height: 60px;
}
.show-more-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 8px;
}
.show-more-btn:hover { color: var(--accent); }
.drag-col { width: 24px; padding: 0 2px; }
.payments-panel-table tr.drag-over { outline: 2px solid var(--accent); }
.payments-panel-table tr.dragging  { opacity: 0.4; }

/* Pick-seller alerts */
.pick-alert-box {
  margin: 4px 0 12px;
  border: 1px solid color-mix(in srgb, #b45309 30%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, #fef3c7 60%, var(--surface));
  padding: 12px 14px;
}
.pick-alert-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pick-alert-title {
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  font-weight: 600; color: #92400e;
  font-family: 'DM Sans', sans-serif;
}
.pick-alert-ok-row { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; }
.btn-recheck {
  font-size: 11px; padding: 2px 9px; border-radius: 4px; cursor: pointer;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  color: var(--accent); font-family: 'DM Sans', sans-serif;
  transition: background .15s; white-space: nowrap; flex-shrink: 0;
}
.btn-recheck:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.pick-alert-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.pick-alert-row:last-child { margin-bottom: 0; }
.pick-alert-year {
  font-size: 12px; font-weight: 600; color: #92400e;
  font-family: 'DM Sans', sans-serif; min-width: 36px;
}
.pick-alert-name {
  font-size: 12px; padding: 2px 8px; border-radius: 4px;
  font-family: 'DM Sans', sans-serif; font-weight: 500;
}
.pick-alert-name.pending  { background: #fef9c3; color: #854d0e; border: 1px solid #fde68a; }
.pick-alert-name.overdue  { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.pick-alert-ok { color: var(--text-muted); font-style: italic; margin: 6px 0 10px; }
.panel-divider { border: none; border-top: 1px solid var(--line); margin: 20px 0 16px; }
.backup-warning {
  background: #FEF3C7; color: #92400E;
  border: 1px solid rgba(146,64,14,0.25);
  border-radius: 6px; padding: 8px 12px;
  font-size: 12.5px; margin-bottom: 10px;
}
.backup-row {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px; margin-top: 8px;
}
.backup-last { font-size: 12px; color: var(--text-light); }
.abar-tab { position: relative; }
.abar-tab.has-badge::after {
  content: ''; position: absolute; top: 3px; right: 3px;
  width: 6px; height: 6px; background: #DC2626; border-radius: 50%;
}
.rl-indent-0 { padding-left: 0; }
.rl-indent-1 { padding-left: 1.5rem; }
.rl-indent-2 { padding-left: 3rem; }
.rl-indent-3 { margin-left: 3rem; padding-left: 1.5rem; border-left: 1px solid var(--line); }
.rl {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  min-width: 2rem;
  flex-shrink: 0;
  padding-top: 1px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  color: var(--accent);
  background: var(--sl-bg);
  border: 1px solid var(--sl-border);
  border-radius: 100px;
  padding: 3px 10px;
  text-decoration: none;
  flex-shrink: 0;
  transition: background .15s;
}
.live-badge:hover { background: rgba(46,74,46,0.13); }
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #16A34A;
  flex-shrink: 0;
}

.scoring-live-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  max-width: 800px;
}
.scoring-live-section h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.scoring-groups { display: flex; flex-wrap: wrap; gap: 2rem; }
.scoring-group { min-width: 220px; flex: 1; }
.scoring-group-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .5rem;
}

/* Scoring tables */
.scoring-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: .6rem 0 1rem; }
.scoring-table thead tr { border-bottom: 1px solid var(--line); }
.scoring-table th {
  text-align: left; padding: 6px 12px;
  font-size: 11px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-muted);
}
.scoring-table td {
  padding: 7px 12px;
  border-bottom: 1px solid rgba(90,110,90,0.07);
  color: var(--text-mid);
}
.scoring-table tr:last-child td { border-bottom: none; }
.pts { font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 500; color: var(--text); }
.neg { color: #991B1B; }
.pos { color: #166534; }

.signing-block {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.signing-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-style: italic;
  color: var(--text);
  line-height: 1.9;
  max-width: 640px;
}
.signing-text strong { font-style: normal; font-weight: 600; display: block; margin-top: .5rem; }

/* ── TABLE SCROLL WRAPPER ───────────────── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── HISTORY ─────────────────────────────── */
.history-table { width: 100%; border-collapse: collapse; }
.history-table th {
  text-align: left;
  font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line-strong);
}
.history-table td {
  padding: 18px 0;
  font-size: 14.5px;
  color: var(--text-mid);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.history-table tr:last-child td { border-bottom: none; }
.td-champion { color: #92400E; font-weight: 500; }
.td-toilet { color: var(--text-light); font-style: italic; }
.yr { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 300; color: var(--text); width: 90px; }
.medal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  font-size: 11px; font-weight: 600; margin-right: 8px; flex-shrink: 0;
}
.m1 { background: #FEF3C7; color: #92400E; }
.m2 { background: #F1F5F9; color: #475569; }
.m3 { background: #FFF7ED; color: #C2410C; }

/* ── PAYMENTS ────────────────────────────── */
.payment-table { width: 100%; border-collapse: collapse; }
.payment-table th {
  text-align: left;
  font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line-strong);
}
.payment-table td {
  padding: 14px 0; font-size: 14.5px; color: var(--text-mid);
  border-bottom: 1px solid var(--line);
}
.payment-table tr:last-child td { border-bottom: none; }
.manager-name { max-width: min(120px, 30vw); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 100px;
}
.s-paid    { color: #166534; background: #DCFCE7; }
.s-pending { color: #92400E; background: #FEF3C7; }
.s-overdue { color: #991B1B; background: #FEE2E2; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.sd-paid    { background: #16A34A; }
.sd-pending { background: #D97706; }
.sd-overdue { background: #DC2626; }
.payment-total {
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; gap: 3rem;
}
.total-item .t-lbl {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 4px;
}
.total-item .t-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px; font-weight: 400; color: var(--text);
}

/* ── RIGHT NAV ────────────────────────────── */
.right-nav {
  position: fixed;
  right: 2.5rem;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 50;
  transition: top 0.5s ease;
}
.rnav-item {
  display: flex; align-items: center; gap: 7px;
  cursor: pointer; color: var(--text-light);
  font-size: 11px; letter-spacing: .5px;
  transition: color .2s, font-weight .15s;
  background: none; border: none;
  font-family: 'DM Sans', sans-serif;
}
.rnav-item:hover { color: var(--text-muted); }
.rnav-item.active { color: var(--accent); font-weight: 600; }
.rnav-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; transition: transform .15s; flex-shrink: 0;
}
.rnav-item:hover .rnav-dot { transform: scale(1.4); }
.rnav-item.active .rnav-dot { transform: scale(1.8); }
.rnav-skeleton {
  height: 9px; width: 75%; background: var(--line); border-radius: 4px; margin-bottom: 14px;
  animation: rnav-pulse 1.4s ease-in-out infinite;
}
.rnav-skeleton:nth-child(2)  { width: 60%; animation-delay: .10s; }
.rnav-skeleton:nth-child(3)  { width: 80%; animation-delay: .20s; }
.rnav-skeleton:nth-child(4)  { width: 55%; animation-delay: .30s; }
.rnav-skeleton:nth-child(5)  { width: 70%; animation-delay: .40s; }
.rnav-skeleton:nth-child(6)  { width: 65%; animation-delay: .50s; }
.rnav-skeleton:nth-child(7)  { width: 85%; animation-delay: .60s; }
.rnav-skeleton:nth-child(8)  { width: 50%; animation-delay: .70s; }
.rnav-skeleton:nth-child(9)  { width: 75%; animation-delay: .80s; }
.rnav-skeleton:nth-child(10) { width: 60%; animation-delay: .90s; }
@keyframes rnav-pulse { 0%, 100% { opacity: .3; } 50% { opacity: .7; } }

/* ── MOBILE NAV DRAWER ───────────────────── */
.mobile-nav-btn {
  display: none;
  position: fixed;
  bottom: max(24px, calc(env(safe-area-inset-bottom) + 12px));
  right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ab-fg, #fff);
  border: none;
  font-size: 20px; line-height: 1;
  cursor: pointer;
  z-index: 200;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}
@media (max-width: 820px) {
  .mobile-nav-btn { display: flex; align-items: center; justify-content: center; }
}
.mobile-nav-drawer {
  position: fixed; inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mobile-nav-drawer.open {
  pointer-events: auto;
  opacity: 1;
}
.mobile-nav-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.35);
}
.mobile-nav-panel {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-radius: 16px 16px 0 0;
  padding: 20px 20px calc(env(safe-area-inset-bottom) + 20px);
  max-height: 65vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.25s ease;
}
.mobile-nav-drawer.open .mobile-nav-panel {
  transform: translateY(0);
}
.mobile-nav-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-muted); font-weight: 500;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.mobile-nav-item {
  display: flex; align-items: baseline; gap: 10px;
  width: 100%; background: none; border: none;
  text-align: left; padding: 10px 4px;
  font-family: 'Cormorant Garamond', serif; font-size: 16px;
  color: var(--text-mid); cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.mobile-nav-item:last-child { border-bottom: none; }
.mobile-nav-item:hover { color: var(--accent); }
.mobile-nav-roman {
  font-size: 11px; letter-spacing: 1px; color: var(--text-light);
  flex-shrink: 0; font-family: 'DM Sans', sans-serif;
  min-width: 20px;
}

/* ── SCORING ADMIN PANEL ─────────────────── */
.scoring-panel-hint {
  font-size: 13px; color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.5;
}
.scoring-admin-groups { display: flex; flex-direction: column; gap: 1.25rem; }
.scoring-admin-group { }
.scoring-admin-group-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 6px; padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
}
.scoring-admin-group-label .group-move-btns { display: flex; gap: 2px; }
.scoring-check-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 4px; cursor: pointer;
  border-bottom: 1px solid rgba(90,110,90,0.06);
  font-size: 13.5px; color: var(--text-mid);
}
.scoring-check-row:last-child { border-bottom: none; }
.scoring-check-row:hover { color: var(--text); }
.scoring-check-row[draggable="true"] { cursor: grab; user-select: none; }
.scoring-check-row.dragging { opacity: 0.4; }
.scoring-check-row.drag-over { border-top: 2px solid var(--accent); padding-top: 4px; }
.scoring-check-row input[type="checkbox"] { accent-color: var(--accent); width: 14px; height: 14px; flex-shrink: 0; cursor: pointer; }
.scoring-check-label { flex: 1; }
.drag-handle { color: var(--text-light); font-size: 16px; cursor: grab; flex-shrink: 0; user-select: none; }
.row-move-btns { display: none; gap: 2px; margin-left: 2px; flex-shrink: 0; }
.scoring-pts {
  font-family: 'Cormorant Garamond', serif; font-size: 15px; font-weight: 500;
  min-width: 36px; text-align: right;
}

/* ── FOOTER ──────────────────────────────── */
.site-footer {
  padding: 2rem 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-light);
}

/* ── TOAST ───────────────────────────────── */
.toast {
  position: fixed;
  bottom: max(24px, calc(env(safe-area-inset-bottom) + 12px)); right: 24px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px; font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  z-index: 999;
  transition: opacity .3s;
  pointer-events: none;
}
.toast.toast-success { background: var(--accent); color: #fff; }
.toast.toast-warn    { background: #92400E; color: #fff; }
.toast.toast-error   { background: #991B1B; color: #fff; }
.toast.hidden { opacity: 0; }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 820px) {
  .site-header, .tab-nav, .content-area, .site-footer { padding-left: 1.5rem; padding-right: 1.5rem; }
  .right-nav { display: none; }
  .section-row-nav { display: none; }
  .admin-panel { width: 100vw; }
  .league-logo { left: 1.5rem; height: 24px; width: 24px; }
  .tab-nav { padding: 0.9rem 0; }
  .drag-handle { display: none; }
  .row-move-btns { display: flex; }
}
@media (max-width: 600px) {
  :root { --admin-bar-h: 76px; }
  .rl { min-width: 1.5rem; }
  .article-body { padding-left: 2rem; }
  .site-header { padding-top: 2rem; }
  .history-fields-grid { grid-template-columns: 1fr; }
  .payment-total { flex-wrap: wrap; gap: 1.5rem; }
  .admin-bar {
    height: auto;
    flex-wrap: wrap;
    padding: 5px 1rem;
    gap: 4px 0;
  }
  .admin-bar-label { display: none; }
  .admin-signout-btn { order: 1; margin-left: auto; }
  .admin-bar-tabs { order: 2; width: 100%; }
  .admin-bar.panel-open .admin-close-btn {
    display: inline-flex; align-items: center; justify-content: center;
    order: 0;
    background: color-mix(in srgb, var(--ab-fg) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--ab-fg) 25%, transparent);
    border-radius: 5px; color: var(--ab-fg);
    font-family: 'DM Sans', sans-serif; font-size: 16px;
    width: 28px; height: 28px; cursor: pointer; transition: background .15s;
  }
  .admin-bar.panel-open .admin-close-btn:hover { background: color-mix(in srgb, var(--ab-fg) 22%, transparent); }

  /* Payment table — compact on mobile, scrolls horizontally */
  .payment-table th, .payment-table td { padding: 8px 10px; font-size: 13px; }
  .payment-table .manager-name { white-space: nowrap; }
}
