/* Latin subsets of the bundled OFL Montserrat. 364 KB of TTF became 30 KB. */
@font-face {
  font-family: Montserrat;
  src: url("assets/montserrat-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url("assets/montserrat-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
:root {
  --ink: #292e26;
  --muted: #64675d;
  --brown: #65342e;
  --cream: #faf8f1;
  --paper: #fffef9;
  --line: #dcded0;
  --green: #40513a;
  --sage: #e8ecdf;
  --sand: #f1eadc;
  --danger: #983b30;
  --radius: 18px;
  --shadow-card: 0 1px 2px rgba(41, 46, 38, 0.05);
  --shadow-lift: 0 14px 30px -14px rgba(41, 46, 38, 0.32);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --hero-dark: #2a211a;
}
/* Season and archive pages share the club's familiar large controls. */
.section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.section-tabs a {
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 16px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sage);
}
.section-tabs a[aria-current="page"] {
  background: var(--green);
  color: white;
}
@media (hover: hover) {
  .section-tabs a:hover {
    background: var(--sand);
    color: var(--ink);
  }
}
.history-intro {
  background: var(--sage);
  border-radius: var(--radius);
  padding: 38px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}
.history-intro h2 {
  margin: 12px 0;
  font-size: 34px;
  color: var(--green);
}
.history-intro p {
  max-width: 490px;
}
.year-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.year-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 28px;
  text-decoration: none;
}
.year-card strong {
  display: block;
  font:
    800 44px Montserrat,
    sans-serif;
  color: var(--brown);
  margin-bottom: 12px;
}
.year-card span {
  display: block;
  font-size: 16px;
  padding-right: 15px;
  color: var(--muted);
}
.year-card b {
  position: absolute;
  right: 24px;
  top: 33px;
  font-size: 24px;
}
@media (hover: hover) {
  .year-card:hover,
  .archive-card:hover {
    border-color: var(--brown);
    background: white;
  }
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.archive-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-decoration: none;
}
.archive-card h2 {
  font-size: 27px;
}
.archive-card .text-link {
  margin-top: auto;
  color: var(--brown);
  font-weight: 600;
}
.archive-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 18px;
  margin: 0 0 26px;
}
.archive-controls .field {
  margin: 0;
  flex: 1;
  min-width: 180px;
}
.archive-controls select,
.archive-controls input {
  width: 100%;
}
.record-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.source-citation {
  margin-top: 20px;
  padding: 16px;
  background: var(--cream);
  overflow-wrap: anywhere;
}
.source-citation small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.source-details p,
.record-detail > p,
.policy-details p {
  margin: 12px 0;
}
.source-details summary {
  font-weight: 700;
}
.about-records {
  border-top: 0;
  padding-top: 0;
  margin: 0 0 26px;
  max-width: 660px;
}
.about-records p {
  color: var(--muted);
  font-size: 15px;
}
.archive-fixtures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.fixture {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  flex-direction: column;
}
.fixture h2 {
  font-size: 25px;
  margin: 8px 0;
}
.desk-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 30px;
}
.season-switch {
  max-width: 450px;
}
.stat .stat-text {
  font-size: 23px;
}
.award-forms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.season-award-form h2 {
  font-size: 25px;
  margin-bottom: 12px;
}
.season-award-form .badge {
  margin: 15px 0;
}
.review-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  text-decoration: none;
}
@media (hover: hover) {
  .review-row:hover {
    background: var(--sage);
  }
}
.review-row > span {
  flex-shrink: 0;
  font-size: 15px;
  align-self: center;
}
.review-row small {
  color: var(--danger);
  display: block;
  margin-top: 6px;
}
.original-record {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
}
@media (max-width: 1150px) {
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .year-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .history-intro {
    flex-direction: column;
    align-items: stretch;
    padding: 25px;
  }
  .archive-grid,
.archive-fixtures,
.award-forms {
    grid-template-columns: 1fr;
  }
  .section-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .section-tabs a {
    padding: 10px 8px;
    font-size: 16px;
  }
  .review-row {
    padding: 18px 12px;
  }
  .review-row > span {
    font-size: 13px;
  }}
@media (max-width: 480px) {
  .year-card {
    padding: 22px;
  }
  .year-card strong {
    font-size: 34px;
  }
  .year-card span {
    font-size: 13px;
  }
  .year-card b {
    right: 18px;
    top: 24px;
  }}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font:
    18px/1.55 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
form[aria-busy="true"] button:disabled {
  cursor: progress;
}
a,
button {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b97b25;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.18;
}
h1,
h2 {
  font-family: Montserrat, sans-serif;
  letter-spacing: -1.3px;
}
h1 {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
}
h2 {
  font-size: 28px;
  font-weight: 700;
}
h3 {
  font-size: 21px;
}
p {
  color: #4f5249;
}
small,
.small-text {
  font-size: 15px;
}
svg {
  display: block;
}
img {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  left: 15px;
  top: -100px;
  padding: 12px;
  background: white;
  z-index: 99;
}
.skip-link:focus {
  top: 15px;
}
.header-inner {
  max-width: 1360px;
  margin: auto;
  padding: 27px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
/* The bar sticks only above the phone breakpoint. Below it the header is two
   rows tall, and the archive table heading is the sticky element instead, so
   the two never compete for the top of the viewport. */

@media (min-width: 761px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(250, 248, 241, 0.86);
    backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s var(--ease);
  }
  .site-header.is-stuck {
    border-bottom-color: var(--line);
  }}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  line-height: 1.5;
}
.brand strong {
  font-family: Montserrat;
  font-size: 17px;
  letter-spacing: 0.3px;
}
.brand span span {
  display: block;
  letter-spacing: 2.4px;
  font-size: 12px;
  font-weight: 650;
}
.brand img {
  flex-shrink: 0;
}
.site-header nav {
  display: flex;
  gap: 27px;
}
.site-header nav a {
  padding: 9px 14px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 16px;
  transition:
    background 0.15s var(--ease),
    color 0.15s var(--ease);
}
@media (hover: hover) {
  .site-header nav a:hover {
    background: var(--sand);
  }
}
.site-header nav a.active {
  background: var(--green);
  color: #fff;
  font-weight: 650;
}
.button {
  min-height: 52px;
  padding: 13px 22px;
  background: var(--brown);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 650;
  font-size: 17px;
  text-decoration: none;
  line-height: 1.4;
  transition:
    background-color 0.15s var(--ease),
    transform 0.12s var(--ease),
    box-shadow 0.15s var(--ease);
}
@media (hover: hover) {
  .button:hover {
    background: #4b2925;
  }
}
.button.small {
  min-height: 48px;
  font-size: 15px;
  padding: 11px 18px;
}
.button.secondary {
  background: transparent;
  border-color: #858c78;
  color: var(--ink);
}
@media (hover: hover) {
  .button.secondary:hover {
    background: var(--sage);
  }
}
.button.light {
  color: var(--brown);
  background: var(--paper);
}
.button.danger {
  background: var(--danger);
}
.text-button {
  background: none;
  border: 0;
  color: var(--brown);
  padding: 13px 4px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
  min-height: 48px;
}
.scorer-link {
  white-space: nowrap;
}
#main {
  max-width: 1264px;
  margin: auto;
  min-height: 60vh;
  padding: 0 28px 64px;
}
#main:focus {
  outline: none;
}
.button.ghost {
  background: rgba(253, 251, 245, 0.1);
  color: #fdfbf5;
  border-color: rgba(253, 251, 245, 0.55);
  backdrop-filter: blur(6px);
}
@media (hover: hover) {
  .button.ghost:hover {
    background: rgba(253, 251, 245, 0.2);
    border-color: #fdfbf5;
  }
}
.eyebrow {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brown);
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
}
.eyebrow:before {
  content: "";
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 40px 0 22px;
}
.section-heading p {
  font-size: 16px;
}
.club-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-top: 30px;
  padding: 27px 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.club-strip > div {
  display: flex;
  gap: 17px;
  align-items: center;
}
.club-strip p {
  font-size: 16px;
}
.club-strip strong {
  display: block;
  font-size: 18px;
  margin-bottom: 3px;
}
.club-strip .icon {
  width: 40px;
  height: 40px;
  color: var(--green);
}
.site-footer {
  border-top: 1px solid var(--line);
  max-width: 1208px;
  margin: 0 auto;
  padding: 28px 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.site-footer p {
  margin-top: 5px;
}
.site-footer > a {
  text-align: right;
  text-decoration: none;
  font-size: 14px;
}
.site-footer > a strong {
  display: block;
  font-family: Montserrat;
  font-size: 20px;
  color: var(--brown);
  margin-top: 3px;
}
.environment {
  padding: 8px 24px;
  text-align: center;
  background: #eae5d9;
  color: #5a4f44;
  font-size: 12px;
  font-weight: 550;
}
.environment.practice {
  background: #65342e;
  color: white;
  font-size: 14px;
}
.environment a {
  margin-left: 12px;
  font-weight: 700;
}
.page-head {
  padding: 34px 0 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.page-head .eyebrow {
  margin-bottom: 14px;
}
.page-head p {
  max-width: 660px;
  margin-top: 14px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 15px;
  min-height: 48px;
  color: var(--brown);
  margin-top: 16px;
}
.panel {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.panel h2 {
  font-size: 23px;
}
.panel > p {
  margin-top: 10px;
}
.notice {
  padding: 17px 21px;
  border-radius: 10px;
  background: var(--sand);
  border: 1px solid #ddd1ba;
  font-size: 16px;
  color: #5c4c35;
  margin: 20px 0;
}
.notice strong {
  color: var(--ink);
}
.notice.success {
  background: #e8f0e2;
  color: #36532b;
  border-color: #cbd9bf;
}
.notice.error {
  background: #fff0eb;
  color: #873527;
  border-color: #dab9ad;
}
.notice.compact {
  font-size: 14px;
  margin: 16px 0;
  padding: 13px 17px;
}
.empty-state {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 45px 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.empty-state .icon {
  width: 62px;
  height: 62px;
  color: var(--green);
  padding: 12px;
  background: var(--sage);
  border-radius: 50%;
  margin-bottom: 23px;
}
.empty-state h2 {
  font-size: 26px;
  margin-bottom: 12px;
}
.empty-state p {
  max-width: 460px;
  margin-bottom: 22px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  margin: 20px 0;
}
.search {
  position: relative;
  flex: 1;
  max-width: 430px;
}
.search .icon {
  position: absolute;
  left: 16px;
  top: 17px;
  width: 22px;
  height: 22px;
  color: var(--muted);
}
input[type="search"] {
  padding-left: 49px;
}
.search input {
  width: 100%;
}
input,
select,
textarea {
  background: var(--paper);
  border: 1px solid #858c78;
  border-radius: 8px;
  min-height: 55px;
  padding: 12px 15px;
  color: var(--ink);
  max-width: 100%;
}
input::placeholder,
textarea::placeholder {
  color: #6d6f65;
  opacity: 1;
}
label {
  font-size: 16px;
  font-weight: 650;
  display: block;
  margin-bottom: 8px;
}
label .optional {
  color: var(--muted);
  font-weight: 400;
}
.field {
  margin: 22px 0;
}
.field input,
.field select,
.field textarea {
  width: 100%;
}
.field small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-top: 7px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.two-col > .field {
  margin: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  border-radius: 5px;
  background: var(--sage);
  color: var(--green);
  white-space: nowrap;
}
.badge.waiting {
  background: #f1eddf;
  color: #766341;
}
.badge.saved {
  background: #e6eedf;
  color: #345128;
}
.badge.qualifying {
  background: #eee6db;
  color: #735537;
}
.badge.neutral {
  background: #eeede7;
  color: #63665a;
}
.member-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.member-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  text-decoration: none;
}
@media (hover: hover) {
  .member-card:hover {
    border-color: #869071;
    background: #f5f5eb;
  }
}
.avatar {
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sage);
  color: var(--green);
  font-family: Montserrat;
  font-size: 13px;
}
.member-name {
  font-size: 17px;
  font-weight: 650;
  line-height: 1.4;
}
.member-card .hcp {
  font-family: Montserrat;
  font-size: 26px;
  margin-left: auto;
  color: var(--brown);
}
.member-card small {
  color: var(--muted);
  font-size: 14px;
  display: block;
}
.member-card .pending {
  font-family: inherit;
  font-size: 13px;
}
.member-card .sub {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.form-panel {
  max-width: 740px;
}
.form-panel.wide {
  max-width: 920px;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding: 4px;
}
.check-option {
  min-height: 52px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  font-weight: 500;
  margin: 0;
}
.check-option:has(input:checked) {
  border-color: var(--green);
  background: var(--sage);
}
input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-height: 22px;
  accent-color: var(--green);
  margin: 0;
}
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 25px;
}
.actions.spread {
  justify-content: space-between;
}
.event-list {
  display: grid;
  gap: 15px;
}
.event-card {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 25px;
}
.event-date {
  background: var(--sage);
  min-width: 72px;
  text-align: center;
  padding: 10px;
  border-radius: 9px;
  line-height: 1.2;
  color: var(--green);
}
.event-date b {
  display: block;
  font-family: Montserrat;
  font-size: 29px;
}
.event-date span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.event-info {
  flex: 1;
}
.event-info h2 {
  font-size: 22px;
  margin-bottom: 7px;
}
.event-info p {
  font-size: 15px;
}
.event-info .badge {
  margin-top: 9px;
}
.event-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 295px;
  gap: 25px;
}
.event-aside {
  align-self: start;
}
.event-aside .button {
  width: 100%;
  margin-top: 16px;
}
.event-aside h2 {
  font-size: 21px;
}
.progress-stats {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0 10px;
  font-size: 15px;
}
.progress-stats strong {
  font-family: Montserrat;
  font-size: 25px;
}
.progress {
  height: 7px;
  background: #e5e7dc;
  border-radius: 5px;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--green);
}
progress {
  height: 12px;
  width: 100%;
  accent-color: var(--green);
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.filter {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  padding: 10px 16px;
  min-height: 46px;
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
}
.filter.active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.player-list {
  display: grid;
  gap: 10px;
}
.player-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 19px 21px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  text-decoration: none;
}
@media (hover: hover) {
  .player-row:hover {
    border-color: var(--green);
  }
}
.player-row > div:nth-child(2) {
  flex: 1;
}
.player-row small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}
.player-row .score {
  font-family: Montserrat;
  font-size: 27px;
  color: var(--green);
  text-align: right;
  line-height: 1;
}
.player-row .score small {
  font-family: system-ui;
  font-size: 12px;
  margin-top: 8px;
  font-weight: 500;
}
.arrow {
  font-size: 22px;
  color: var(--muted);
}
.score-layout {
  display: grid;
  grid-template-columns: minmax(0, 650px) 1fr;
  gap: 32px;
  max-width: 1000px;
  margin: auto;
}
.score-form {
  padding: 32px;
}
.score-person {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.score-person .avatar {
  width: 54px;
  height: 54px;
  font-size: 17px;
}
.score-person h1 {
  font-size: 26px;
  letter-spacing: -0.9px;
}
.score-person p {
  font-size: 14px;
  margin-top: 5px;
}
.score-input {
  text-align: center;
  border: 2px solid #87957b;
  font-family: Montserrat;
  font-size: 65px;
  padding: 8px !important;
  height: 114px !important;
}
.score-form .field:has(.score-input) {
  margin: 27px 0;
}
.score-form .field:has(.score-input) label {
  font-size: 20px;
}
.score-form .button[type="submit"] {
  width: 100%;
  margin-top: 8px;
}
.score-help {
  padding: 29px 0;
  align-self: start;
}
.score-help h2 {
  font-size: 22px;
  margin-bottom: 20px;
}
.score-help ol {
  padding-left: 24px;
  color: var(--muted);
  font-size: 16px;
}
.score-help li {
  padding: 0 0 19px 4px;
}
.score-help .paper-note {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  transform: rotate(-1.3deg);
  background: #f0efdf;
}
.score-help .paper-note strong {
  display: block;
  color: var(--green);
  margin-bottom: 8px;
}
.step-label {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: 17px 0 5px;
}
details {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: 22px;
}
summary {
  font-size: 16px;
  cursor: pointer;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  color: var(--brown);
  font-weight: 650;
}
.login {
  max-width: 470px;
  margin: 35px auto;
  padding: 35px;
}
.login h1 {
  font-size: 32px;
}
.login .icon {
  width: 40px;
  height: 40px;
  color: var(--brown);
  margin-bottom: 23px;
}
.login > p {
  margin-top: 15px;
  font-size: 17px;
}
.login .button {
  width: 100%;
}
.results-list {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.profile-top {
  display: flex;
  align-items: center;
  gap: 25px;
  margin: 25px 0 28px;
}
.profile-top .avatar {
  height: 90px;
  width: 90px;
  font-size: 27px;
}
.profile-top h1 {
  font-size: 36px;
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}
.stat {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.stat small {
  display: block;
  color: var(--muted);
  font-size: 14px;
}
.stat strong {
  display: block;
  font-family: Montserrat;
  font-size: 33px;
  color: var(--brown);
  margin-top: 6px;
}
.history-row {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.history-row p {
  font-size: 14px;
  margin-top: 5px;
}
.history-row .points {
  font-family: Montserrat;
  font-size: 24px;
}
.photo-empty {
  min-height: 350px;
  position: relative;
  overflow: hidden;
  background: #eeeddf;
}
.photo-empty .icon {
  background: #dde2cf;
}
.photo-empty:before,
.photo-empty:after {
  content: "";
  position: absolute;
  border: 1px solid #c7cdb5;
  width: 270px;
  height: 200px;
  transform: rotate(-14deg);
  left: -100px;
  bottom: -20px;
  border-radius: 15px;
}
.photo-empty:after {
  left: auto;
  right: -100px;
  transform: rotate(14deg);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  max-width: 500px;
  width: calc(100% - 32px);
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 22px 100px #292e2640;
}
dialog::backdrop {
  background: #24281ecc;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 27px;
  margin-bottom: 14px;
}
dialog p {
  font-size: 16px;
  margin-bottom: 20px;
}
.confirm-total {
  font-family: Montserrat;
  font-size: 65px;
  color: var(--green);
  text-align: center;
  background: var(--sage);
  border-radius: 12px;
  padding: 18px;
  margin: 20px 0;
}
.confirm-total small {
  display: block;
  font-family: system-ui;
  font-size: 14px;
}
.confirm-detail {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  padding: 8px 0;
}
dialog .actions .button {
  flex: 1;
}
.toast {
  position: fixed;
  bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px));
  left: 50%;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s var(--ease),
    transform 0.25s var(--ease);
  background: var(--green);
  color: white;
  padding: 15px 24px;
  border-radius: 12px;
  z-index: 20;
  font-weight: 650;
  box-shadow: 0 5px 30px #263b2230;
  max-width: calc(100vw - 32px);
  font-size: 16px;
  text-align: center;
}
.loading {
  padding: 100px;
  text-align: center;
  color: var(--muted);
}
.inline-error:empty {
  display: none;
}
.inline-error {
  color: var(--danger);
  border: 1px solid #dcb9aa;
  background: #fff1ea;
  padding: 15px;
  border-radius: 8px;
  margin: 16px 0;
  font-size: 16px;
}
.print-only {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.top-gap {
  margin-top: 20px;
}
.caption-gap {
  margin-top: 14px;
}
.mobile-only {
  display: none;
}
h1[tabindex]:focus {
  outline: none;
}
@media (max-width: 1000px) {
  .header-inner {
    padding: 24px 28px;
    gap: 20px;
  }
  .site-header nav {
    gap: 17px;
  }
  .brand strong {
    font-size: 14px;
  }
  .brand img {
    width: 49px;
    height: 49px;
  }
  .brand span span {
    font-size: 12px;
    letter-spacing: 1.4px;
  }
  .member-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .event-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 20px;
  }
  .score-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 25px;
  }
  .site-footer {
    margin: 0 28px;
  }
  .site-header nav a {
    font-size: 15px;
  }}
@media (max-width: 760px) {
  .header-inner {
    padding: 18px 20px 0;
    flex-wrap: wrap;
    gap: 14px;
  }
  .site-header nav {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    gap: 6px;
    padding: 8px 0;
  }
  .site-header nav a {
    padding: 10px 2px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
  }
  .brand strong {
    font-size: 14px;
  }
  .scorer-link {
    margin-left: auto;
    min-height: 48px !important;
    padding: 10px 16px !important;
    font-size: 15px !important;
  }
  .desktop-only {
    display: none;
  }
  #main {
    padding: 18px 20px 42px;
  }
  .eyebrow {
    font-size: 12px;
    letter-spacing: 1.5px;
  }
  .section-heading {
    margin-top: 30px;
    align-items: start;
  }
  .section-heading h2 {
    font-size: 25px;
  }
  .section-heading p {
    display: none;
  }
  .club-strip {
    padding: 23px;
    display: block;
  }
  .club-strip .button {
    margin-top: 20px;
    width: 100%;
  }
  .site-footer {
    margin: 0 20px;
    align-items: flex-start;
    gap: 25px;
  }
  .event-layout,
  .score-layout {
    grid-template-columns: 1fr;
  }
  .event-aside {
    order: -1;
  }
  .event-aside .progress-stats {
    margin-top: 12px;
  }
  .event-aside .notice {
    margin-bottom: 0;
  }
  .event-aside .button {
    width: auto;
    margin-right: 10px;
  }
  .score-help {
    padding: 5px 10px;
  }
  .score-help ol {
    display: none;
  }
  .score-help h2 {
    display: none;
  }
  .page-head {
    padding: 16px 0 26px;
    align-items: flex-start;
  }
  .page-head h1 {
    font-size: 34px;
  }
  .page-head > .button {
    font-size: 14px;
    padding: 12px;
    white-space: nowrap;
  }
  .page-head p {
    font-size: 16px;
  }
  .member-card {
    padding: 15px;
    gap: 10px;
  }
  .member-name {
    font-size: 16px;
  }
  .member-card .avatar {
    display: none;
  }
  .member-card .hcp {
    font-size: 23px;
  }
  .event-card {
    padding: 20px;
    gap: 15px;
    flex-wrap: wrap;
  }
  .event-card > .button {
    margin-left: 87px;
  }
  .event-info h2 {
    font-size: 19px;
  }
  .two-col {
    gap: 15px;
  }
  .form-panel {
    padding: 24px;
  }
  .profile-top {
    gap: 16px;
  }
  .profile-top .avatar {
    width: 64px;
    height: 64px;
    font-size: 19px;
  }
  .profile-top h1 {
    font-size: 28px;
  }
  .profile-stats {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .stat strong {
    font-size: 27px;
  }
  .stat small {
    font-size: 14px;
  }
  .environment {
    padding: 7px 14px;
    font-size: 12px;
  }
  .environment.practice {
    font-size: 12px;
  }
  .environment a {
    white-space: nowrap;
  }
  .back-link {
    margin-top: 0;
  }
  .score-form {
    padding: 25px;
  }
  .score-person h1 {
    font-size: 24px;
  }
  .panel h2 {
    font-size: 23px;
  }}
@media (max-width: 480px) {
  .section-heading h2 {
    font-size: 25px;
  }
  .site-footer {
    display: block;
  }
  .site-footer > a {
    display: block;
    text-align: left;
    margin-top: 22px;
  }
  .member-grid {
    grid-template-columns: 1fr;
  }
  .member-card {
    padding: 17px;
  }
  .member-card .avatar {
    display: flex;
  }
  .member-name {
    font-size: 17px;
  }
  .member-card .hcp {
    font-size: 27px;
  }
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .search {
    max-width: none;
    width: 100%;
  }
  .page-head {
    display: block;
  }
  .page-head > .button {
    margin-top: 18px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .checkbox-grid {
    grid-template-columns: 1fr;
    max-height: none;
    overflow: visible;
  }
  .check-option {
    font-size: 16px;
  }
  .panel {
    padding: 22px;
  }
  .event-card .button {
    margin-left: 0;
    width: 100%;
  }
  .event-aside .button {
    width: 100%;
    margin-right: 0;
  }
  .player-row {
    padding: 17px 14px;
    gap: 12px;
  }
  .player-row .avatar {
    display: none;
  }
  .player-row .badge {
    font-size: 12px;
  }
  .score-person .avatar {
    width: 45px;
    height: 45px;
    font-size: 14px;
  }
  .score-person h1 {
    font-size: 23px;
  }
  .score-input {
    font-size: 61px;
  }
  .login {
    padding: 26px;
    margin-top: 20px;
  }
  .profile-stats {
    grid-template-columns: 1fr 1fr;
  }
  .profile-stats .stat:last-child {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .profile-stats .stat:last-child strong {
    margin-top: 0;
  }
  dialog {
    padding: 25px;
  }
  .club-strip .icon {
    flex-shrink: 0;
  }
  .club-strip p {
    font-size: 15px;
  }
  .history-row {
    font-size: 16px;
  }
  .history-row .points {
    font-size: 19px;
  }}
/* Touch feel: every press answers the finger, and a busy button says so. */
summary::-webkit-details-marker {
  display: none;
}
summary::before {
  content: "\25B8";
  transition: transform 0.15s var(--ease);
}
details[open] > summary::before {
  transform: rotate(90deg);
}
.button,
.filter,
.check-option,
.player-row,
.member-card,
.year-card,
.archive-card,
.section-tabs a,
.site-header nav a {
  transition:
    transform 0.12s var(--ease),
    background-color 0.15s var(--ease),
    border-color 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}
.button:active:not(:disabled),
.filter:active,
.section-tabs a:active,
.site-header nav a:active {
  transform: scale(0.97);
}
.player-row:active,
.member-card:active,
.year-card:active,
.archive-card:active,
.check-option:active {
  transform: scale(0.985);
  background: var(--sand);
}
.text-button:active {
  opacity: 0.6;
}
.check-option {
  cursor: pointer;
}
.check-option:has(input:focus-visible) {
  outline: 3px solid #b97b25;
  outline-offset: 2px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(64, 81, 58, 0.18);
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-offset: 2px;
}
input:user-invalid,
textarea:user-invalid {
  border-color: var(--danger);
}
.inline-error {
  scroll-margin-top: 110px;
}
.button.is-busy {
  position: relative;
  color: transparent !important;
}
.button.is-busy::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
.button.secondary.is-busy::after {
  border-color: rgba(41, 46, 38, 0.25);
  border-top-color: var(--ink);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
/* On a phone the toast drops from the top so it never covers the save bar. */
@media (max-width: 700px) {
  .toast {
    top: calc(12px + env(safe-area-inset-top));
    bottom: auto;
    transform: translate(-50%, -12px);
  }
  .toast.show {
    transform: translate(-50%, 0);
  }
}
dialog::backdrop {
  animation: fade 0.2s var(--ease);
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes sheet-up {
  from {
    transform: translateY(100%);
  }
}
@media (max-width: 600px) {
  dialog[open] {
    margin: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: 92dvh;
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
    padding: 26px 20px calc(20px + env(safe-area-inset-bottom));
    animation: sheet-up 0.28s var(--ease);
  }
  dialog .actions {
    flex-direction: column-reverse;
  }
  dialog .actions .button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .button:active,
  .player-row:active,
  .member-card:active,
  .check-option:active {
    transform: none;
  }
  .button.is-busy::after {
    animation-duration: 1.5s !important;
    animation-iteration-count: infinite !important;
  }
}
@media print {
  body {
    background: white;
    font-size: 12pt;
  }
  .site-header,
  .site-footer,
  .environment,
  .no-print,
  .toast,
  dialog {
    display: none !important;
  }
  #main {
    padding: 0;
    max-width: none;
  }
  .page-head {
    padding: 0 0 20px;
  }
  .results-list {
    break-inside: avoid;
  }
  .print-only {
    display: block;
  }
  .button,
  .back-link {
    display: none !important;
  }}
@media (max-width: 760px) {
  .mobile-only {
    display: inline;
  }
  .event-aside .notice {
    display: none;
  }
  .event-aside .progress-stats {
    margin-top: 10px;
  }
  .event-aside {
    padding: 20px;
  }
  .event-aside h2 {
    font-size: 19px;
  }}

.season-standings .history-row {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 18px;
}
@media (max-width: 480px) {
  .season-standings .history-row {
    padding: 18px 14px;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 10px;
  }}