/* ==========================================================================
   The DC Lending Classic - a host's toolkit, set as a tournament program.
   Single stylesheet. System fonts only. No external resources.
   ========================================================================== */

:root {
  color-scheme: light;

  /* palette seeds */
  --ivory: #FBF8EF;
  --paper: #FFFEFA;
  --rough: #E8E2D0;
  --rough-2: #F2EDDD;
  --rough-deep: #CFC7AC;
  --navy: #13294B;
  --navy-2: #1D3D6F;
  --navy-3: #0C1B33;
  --red: #B8322A;
  --red-deep: #8F241E;
  --fairway: #2F6B3F;
  --fairway-deep: #24542F;
  --fairway-tint: #DDEBD9;
  --brass: #7A5C14;
  --brass-light: #E0C27A;
  --muted: #46546E;
  --field: #5F6F8C;
  --on-dark-muted: #C5CFE2;
  --line: rgba(19, 41, 75, 0.2);

  /* type */
  --ff-head: Cochin, "Big Caslon", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --ff-body: "Gill Sans", "Gill Sans MT", Optima, Calibri, "Trebuchet MS", "Segoe UI", sans-serif;
  --ff-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* spacing scale */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2.25rem;
  --s7: 3.5rem;
  --s8: 5rem;

  /* depth */
  --sh-1: 0 1px 0 rgba(19, 41, 75, 0.06), 0 1px 3px rgba(19, 41, 75, 0.12);
  --sh-2: 0 1px 0 rgba(19, 41, 75, 0.05), 0 6px 14px -6px rgba(19, 41, 75, 0.22), 0 24px 44px -24px rgba(19, 41, 75, 0.34);
  --sh-3: 0 2px 0 rgba(19, 41, 75, 0.08), 0 14px 26px -10px rgba(19, 41, 75, 0.35), 0 40px 70px -34px rgba(19, 41, 75, 0.5);

  --rail-w: 24px;
  --head-h: 68px;
  --maxw: 1180px;

  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .07  0 0 0 0 .16  0 0 0 0 .29  0 0 0 .55 -.22'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (min-width: 960px) {
  :root { --rail-w: 84px; --head-h: 72px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  padding-left: var(--rail-w);
  min-width: 0;
  font-family: var(--ff-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  color: var(--navy);
  background-color: var(--ivory);
  background-image: var(--paper-grain);
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
svg { display: block; }

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 var(--s3);
  color: var(--navy);
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 1.4rem + 4.6vw, 4.6rem); letter-spacing: -0.015em; line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem); }

p { margin: 0 0 var(--s4); }
ul, ol { margin: 0 0 var(--s4); padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--red-deep); text-decoration-color: var(--red-deep); }

strong { font-weight: 700; }

kbd {
  font-family: var(--ff-mono);
  font-size: 0.88em;
  padding: 0.05em 0.45em;
  border: 1.5px solid var(--navy);
  border-bottom-width: 3px;
  border-radius: 5px;
  background: var(--paper);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 3px;
}
.on-dark :focus-visible { outline-color: var(--ivory); }

::selection { background: var(--navy); color: var(--ivory); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.print-only { display: none; }

.skip-link {
  position: fixed;
  left: 12px; top: -80px;
  z-index: 200;
  padding: 0.75rem 1.1rem;
  background: var(--navy);
  color: var(--ivory);
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
}
.skip-link:focus { top: 0; outline: 3px solid var(--brass-light); outline-offset: 2px; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

/* ---------- running head / navigation ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ivory);
  background-image: var(--paper-grain);
  border-bottom: 4px double var(--navy);
  box-shadow: 0 6px 12px -10px rgba(19, 41, 75, 0.5);
}
.head-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0.5rem clamp(16px, 4vw, 40px);
  min-height: var(--head-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  text-decoration: none;
  color: var(--navy);
}
.brand:hover { color: var(--red-deep); }
.brand-mark { flex: none; width: 38px; height: 38px; }
.brand-name {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(1rem, 0.8rem + 1.2vw, 1.3rem);
  letter-spacing: -0.005em;
  line-height: 1.1;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border: 2px solid var(--navy);
  border-radius: 6px;
  background: var(--paper);
  color: var(--navy);
  font: 700 1rem var(--ff-body);
  cursor: pointer;
}
.js .nav-toggle { display: inline-flex; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block;
  width: 20px; height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { flex-basis: 100%; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0.25rem 0 0.5rem; padding: 0; display: grid; }
.site-nav li { margin: 0; border-top: 1px dotted var(--fairway); }
.site-nav a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.6rem 0.25rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
}
.site-nav .folio {
  font-family: var(--ff-head);
  font-size: 0.85rem;
  color: var(--brass);
  letter-spacing: 0.08em;
  min-width: 1.6rem;
}
.site-nav a:hover { color: var(--red-deep); background: var(--rough); }
.site-nav a[aria-current="page"] {
  box-shadow: inset 5px 0 0 var(--red);
  padding-left: 0.85rem;
  font-weight: 700;
}

@media (min-width: 900px) {
  .nav-toggle, .js .nav-toggle { display: none; }
  .site-nav, .js .site-nav { display: block; flex-basis: auto; }
  .site-nav ul { display: flex; gap: 0.15rem; margin: 0; }
  .site-nav li { border: 0; }
  .site-nav a {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-height: 48px;
    padding: 0.35rem 0.85rem 0.3rem;
    border-bottom: 4px solid transparent;
    border-radius: 4px 4px 0 0;
    justify-content: center;
  }
  .site-nav .folio { font-size: 0.7rem; line-height: 1; margin-bottom: 1px; }
  .site-nav .nav-label { line-height: 1.1; }
  .site-nav a[aria-current="page"] { box-shadow: none; padding-left: 0.85rem; border-bottom-color: var(--red); }
}

/* ---------- flag progress rail ---------- */
.rail {
  position: fixed;
  z-index: 40;
  left: 0; top: 0; bottom: 0;
  width: var(--rail-w);
  background: linear-gradient(90deg, var(--rough) 0%, var(--rough-2) 100%);
  border-right: 3px dotted var(--fairway);
}
.rail-top, .rail-pct { display: none; }
.rail-pole { position: absolute; left: 0; right: 0; top: 84px; bottom: 28px; }
.rail-pole::before {
  content: "";
  position: absolute;
  left: 6px; top: 0; bottom: 0;
  width: 3px;
  background: var(--navy);
  border-radius: 2px;
}
.rail-flag {
  position: absolute;
  left: 6px; top: -34px;
  width: 20px; height: 34px;
  transform: translateY(var(--fy, 0px));
  pointer-events: none;
  transition: transform 0.18s linear;
}
.rail-flag svg { width: 20px; height: 34px; overflow: visible; }
.rail-holes { display: none; }

@media (min-width: 960px) {
  .rail-top {
    display: block;
    position: absolute;
    top: 14px; left: 0; right: 0;
    padding: 0 6px 0 4px;
    text-align: center;
    font-size: 0.72rem;
    line-height: 1.25;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brass);
    font-weight: 700;
  }
  .rail-top strong { display: block; font-family: var(--ff-head); font-size: 1.1rem; letter-spacing: 0; color: var(--navy); }
  .rail-pct {
    display: block;
    position: absolute;
    bottom: 8px; left: 0; right: 0;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
  }
  .rail-pole { top: 92px; bottom: 40px; }
  .rail-pole::before { left: 14px; }
  .rail-flag { left: 14px; width: 30px; }
  .rail-flag svg { width: 30px; }
  .rail-holes {
    display: flex;
    position: absolute;
    inset: 0;
    flex-direction: column;
    justify-content: space-between;
    list-style: none;
    margin: 0; padding: 30px 0 30px 36px;
  }
  .rail-holes li { margin: 0; height: 0; position: relative; }
  .rail-hole {
    position: absolute;
    top: -20px; left: 0;
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    isolation: isolate;
    font-family: var(--ff-head);
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy);
    text-decoration: none;
  }
  .rail-hole::before {
    content: "";
    position: absolute; inset: 3px;
    z-index: -1;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--navy);
    box-shadow: var(--sh-1);
  }
  .rail-hole::after {
    content: "";
    position: absolute;
    right: 100%; top: 50%;
    width: 8px;
    border-top: 2px dotted var(--navy);
  }
  .rail-hole:hover { color: var(--red-deep); }
  .rail-hole:hover::before { border-color: var(--red-deep); }
  .rail-hole.is-passed::before { background: var(--fairway-tint); }
  .rail-hole.is-current { color: var(--ivory); }
  .rail-hole.is-current::before { background: var(--navy); }
  .rail-hole.is-current:hover { color: var(--ivory); }
}

/* ---------- hole signposts ---------- */
.hole-head {
  display: flex;
  align-items: flex-end;
  gap: clamp(0.9rem, 2.5vw, 1.5rem);
  margin-bottom: var(--s4);
  padding-bottom: var(--s4);
  border-bottom: 3px dotted var(--fairway);
}
.hole-titles { min-width: 0; }
.hole-titles h2 { margin-bottom: 0; }
.hole-badge {
  position: relative;
  flex: none;
  display: block;
  width: 78px; height: 88px;
}
.hole-disc {
  position: absolute;
  left: 0; bottom: 0;
  z-index: 2;
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: var(--ivory);
  background: radial-gradient(circle at 30% 24%, var(--navy-2) 0%, var(--navy) 62%, var(--navy-3) 100%);
  box-shadow: 0 0 0 3px var(--ivory), 0 0 0 5px var(--navy), 0 10px 14px -6px rgba(12, 27, 51, 0.6);
  font-family: var(--ff-head);
}
.hole-word { font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; font-family: var(--ff-body); font-weight: 700; color: var(--brass-light); margin-bottom: 2px; }
.hole-no { font-size: 1.7rem; font-weight: 700; }
.hole-badge::before {
  content: "";
  position: absolute;
  left: 49px; bottom: 36px;
  width: 3px; height: 50px;
  background: var(--navy);
  border-radius: 2px;
  z-index: 1;
}
.hole-badge::after {
  content: "";
  position: absolute;
  left: 52px; top: 1px;
  width: 25px; height: 18px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform-origin: 0 50%;
  animation: flag-wave 2.4s ease-in-out infinite alternate;
  z-index: 1;
}
.hole-section:nth-of-type(even) .hole-badge::after { animation-delay: -1.1s; }

@keyframes flag-wave {
  0%   { transform: skewY(0deg) scaleX(1); }
  45%  { transform: skewY(-9deg) scaleX(0.84); }
  100% { transform: skewY(7deg) scaleX(0.95); }
}
.flag-wave, .mark-flag {
  transform-box: fill-box;
  transform-origin: 0 50%;
  animation: flag-wave 2.4s ease-in-out infinite alternate;
}
.flag-wave-group .flag-wave:nth-child(2) { animation-delay: -0.6s; }
.flag-wave-group .flag-wave:nth-child(3) { animation-delay: -1.2s; }
.flag-wave-group .flag-wave:nth-child(4) { animation-delay: -1.8s; }

.kicker {
  margin: 0 0 0.3rem;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--brass);
}
.on-dark .kicker { color: var(--brass-light); }
.fs-head .kicker, .ct-head .kicker { color: #F3E3B5; }

.fairway-rule {
  height: 12px;
  margin-block: var(--s6);
  background: radial-gradient(circle at 50% 50%, var(--fairway) 2.4px, transparent 3px) 0 50% / 16px 12px repeat-x;
}

.hole-section { padding-block: clamp(2.75rem, 6vw, 5rem); position: relative; }
.hole-section + .hole-section { border-top: 1px solid var(--line); }
.section-lede { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); max-width: 62ch; color: var(--navy); margin-bottom: var(--s5); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.6rem 1.3rem;
  border: 2px solid var(--navy);
  border-radius: 6px;
  background: var(--navy);
  color: var(--ivory);
  font: 700 1rem/1.2 var(--ff-body);
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--navy-3), 0 12px 18px -10px rgba(19, 41, 75, 0.65);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); color: var(--ivory); transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--navy-3); }
.btn--flag { background: var(--red); border-color: var(--red-deep); box-shadow: 0 3px 0 var(--red-deep), 0 12px 18px -10px rgba(143, 36, 30, 0.7); }
.btn--flag:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn--ghost { background: transparent; color: var(--navy); box-shadow: none; }
.btn--ghost:hover { background: var(--rough); color: var(--navy); border-color: var(--navy); }
.btn--ghost:active { box-shadow: none; }
.btn--ghost-dark { background: transparent; color: var(--ivory); border-color: var(--ivory); box-shadow: none; }
.btn--ghost-dark:hover { background: rgba(251, 248, 239, 0.16); border-color: var(--ivory); color: var(--ivory); }
.btn--sm { min-height: 42px; padding: 0.4rem 0.95rem; font-size: 0.95rem; box-shadow: 0 2px 0 var(--navy-3); }
.btn--sm.btn--ghost { box-shadow: none; }
.btn[disabled], .btn[aria-disabled="true"] {
  background: var(--rough); color: #4A4A40; border-color: #8F8A77; box-shadow: none; cursor: not-allowed; transform: none;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin: 0 0 var(--s4); }

/* ---------- forms ---------- */
.field { display: grid; gap: 0.35rem; align-content: start; min-width: 0; }
.field label, .field > .label {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.opt { font-weight: 400; color: var(--muted); font-size: 0.85em; margin-left: 0.3em; }
input[type="text"], input[type="time"], input[type="search"], select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--field);
  border-radius: 6px;
  background: var(--paper);
  color: var(--navy);
  font: 500 1rem/1.4 var(--ff-body);
  box-shadow: inset 0 1px 2px rgba(19, 41, 75, 0.1);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
textarea { resize: vertical; min-height: 7rem; }
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.4rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
input::placeholder, textarea::placeholder { color: #5B6577; opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: var(--navy); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-color: var(--navy); }
[aria-invalid="true"] {
  border: 2px solid var(--red) !important;
  background-color: #FFF3F1 !important;
}
.hint { font-size: 0.88rem; color: var(--muted); margin: 0.2rem 0 0; line-height: 1.4; }
.err { color: var(--red-deep); font-weight: 700; font-size: 0.95rem; margin: 0.3rem 0 0; }
.err::before { content: "\26A0\00a0"; }
textarea[readonly] { background: var(--rough-2); font-family: var(--ff-mono); font-size: 0.9rem; }

.seg { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg legend { padding: 0; font-weight: 700; font-size: 0.95rem; margin-bottom: 0.35rem; }
.seg-row {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 420px;
  border: 2px solid var(--navy);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
}
.seg-row > input {
  position: absolute;
  top: 0; left: 0;
  width: 50%; height: 100%;
  margin: 0;
  opacity: 0;
  z-index: 2;
  cursor: pointer;
}
.seg-row > input:nth-of-type(2) { left: 50%; }
.seg-row > label {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0.35rem 0.5rem;
  text-align: center;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
  color: var(--navy);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.seg-row > label span { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.03em; margin-top: 2px; }
.seg-row > input + label + input + label { border-left: 2px solid var(--navy); }
.seg-row > input:hover + label { background: var(--rough); }
.seg-row > input:checked + label { background: var(--navy); color: var(--ivory); }
.seg-row > input:focus-visible + label { outline: 3px solid var(--navy); outline-offset: -6px; border-radius: 0; }
.seg-row > input:checked:focus-visible + label { outline-color: var(--ivory); }
.seg--compact .seg-row { max-width: 360px; }

/* ---------- panels, messages ---------- */
.panel {
  position: relative;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  margin-bottom: var(--s5);
  background: var(--paper);
  border: 1.5px solid var(--navy);
  border-radius: 8px;
  box-shadow: var(--sh-2);
}
.panel::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dotted var(--rough-deep);
  border-radius: 4px;
  pointer-events: none;
}
.panel > * { position: relative; }
.panel h3 { font-size: 1.3rem; }

.msgbox {
  margin: 0 0 var(--s4);
  padding: 0.85rem 1.1rem;
  border: 2px solid var(--red);
  border-left-width: 8px;
  border-radius: 6px;
  background: #FFF3F1;
  color: var(--navy);
  font-weight: 500;
}
.msgbox[hidden] { display: none; }
.msgbox ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.msgbox li { margin-bottom: 0.2rem; }
.msgbox strong { color: var(--red-deep); }
.msgbox--ok { border-color: var(--fairway); background: var(--fairway-tint); }
.msgbox--ok strong { color: var(--fairway-deep); }

.empty {
  margin: 0;
  padding: 1.25rem 1.1rem;
  border: 2px dashed var(--field);
  border-radius: 8px;
  background: var(--rough-2);
  color: var(--navy);
  text-align: center;
}
.empty[hidden] { display: none; }

.count-pill {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.7rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--ivory);
  font: 700 0.85rem var(--ff-body);
  vertical-align: middle;
  letter-spacing: 0.04em;
}

details > summary { cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }

/* ---------- page heads (each page has its own composition) ---------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); position: relative; }
.page-lede { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem); max-width: 54ch; margin-bottom: 0; }

/* cover (index) */
.cover {
  position: relative;
  background-color: var(--navy);
  background-image:
    radial-gradient(circle at 82% 12%, rgba(224, 194, 122, 0.18), transparent 46%),
    radial-gradient(rgba(224, 194, 122, 0.2) 1px, transparent 1.6px),
    var(--paper-grain);
  background-size: auto, 24px 24px, 180px 180px;
  color: var(--ivory);
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 6px double var(--brass-light);
}
.cover h1, .cover h2, .cover h3 { color: var(--ivory); }
.cover-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.cover h1 { margin-bottom: 0.35em; text-shadow: 0 2px 0 rgba(12, 27, 51, 0.6); }
.cover-sub { font-family: var(--ff-head); font-size: clamp(1.3rem, 1.1rem + 1.1vw, 2rem); font-style: italic; color: var(--brass-light); margin-bottom: var(--s4); line-height: 1.25; }
.cover-lede { max-width: 54ch; font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem); color: var(--ivory); }
.cover-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: var(--s5) 0 var(--s4); }
.cover-fine { font-size: 0.9rem; color: var(--on-dark-muted); max-width: 52ch; }
.cover .btn--flag { box-shadow: 0 3px 0 var(--red-deep), 0 0 0 2px var(--ivory) inset; }

.cover-art {
  margin: 0;
  color: var(--navy);
  background: var(--ivory);
  padding: 12px 12px 0;
  border-radius: 4px;
  box-shadow: var(--sh-3);
  transform: rotate(1.2deg);
  max-width: 520px;
  justify-self: center;
  width: 100%;
}
.cover-svg { width: 100%; height: auto; border-radius: 3px; }
.cover-art figcaption {
  padding: 0.75rem 0.4rem 0.9rem;
  font-family: var(--ff-head);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--navy);
}

.cover-strip { margin-top: clamp(2rem, 4vw, 3rem); }
.strip-label {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem;
  margin-bottom: 0.7rem;
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--brass-light);
}
.strip-count { letter-spacing: 0.06em; color: var(--ivory); text-transform: none; font-size: 0.9rem; }
.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.strip li { margin: 0; }
.strip a {
  position: relative;
  display: grid; place-items: center;
  height: 46px;
  border: 2px solid var(--brass-light);
  border-radius: 6px;
  color: var(--ivory);
  text-decoration: none;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.05rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.strip a:hover { background: rgba(251, 248, 239, 0.16); color: var(--ivory); }
.strip a.is-done { background: var(--ivory); color: var(--navy); border-color: var(--ivory); }
.strip a.is-done::after {
  content: "\2713";
  position: absolute; top: 1px; right: 4px;
  font: 700 0.7rem/1 var(--ff-body);
  color: var(--fairway-deep);
}
@media (min-width: 560px) { .strip { grid-template-columns: repeat(9, 1fr); } }
@media (min-width: 1100px) { .strip { grid-template-columns: repeat(18, 1fr); gap: 5px; } }
@media (min-width: 900px) {
  .cover-grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* scorecard head */
.sc-head { background: var(--ivory); border-bottom: 1px solid var(--line); overflow: hidden; }
.sc-head-grid { display: grid; grid-template-columns: 1fr; align-items: end; gap: 1rem; position: relative; }
.sc-folio {
  display: none;
  margin: 0;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(7rem, 16vw, 14rem);
  line-height: 0.8;
  color: var(--rough);
  text-shadow: 3px 3px 0 var(--rough-deep);
  letter-spacing: -0.04em;
  user-select: none;
}
.sc-folio::before { content: attr(data-n); }
@media (min-width: 760px) {
  .sc-head-grid { grid-template-columns: 1fr auto; }
  .sc-folio { display: block; }
}
.mini-strip {
  margin-top: 1.5rem;
  display: grid; grid-template-columns: repeat(9, 1fr);
  border: 2px solid var(--navy);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: var(--sh-1);
}
.mini-strip span {
  padding: 0.25rem 0;
  text-align: center;
  font: 700 0.8rem var(--ff-head);
  color: var(--navy);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mini-strip span:nth-child(9n) { border-right: 0; }
.mini-strip span:nth-child(n+10) { border-bottom: 0; background: var(--rough-2); }
@media (min-width: 720px) {
  .mini-strip { grid-template-columns: repeat(18, 1fr); }
  .mini-strip span { border-bottom: 0; }
  .mini-strip span:nth-child(9n) { border-right: 3px double var(--navy); }
  .mini-strip span:nth-child(18) { border-right: 0; }
  .mini-strip span:nth-child(n+10) { background: transparent; }
  .mini-strip span:nth-child(n+10):nth-child(even) { background: var(--rough-2); }
}

/* foursome head */
.fs-head {
  background-color: var(--fairway-deep);
  background-image:
    repeating-linear-gradient(90deg, rgba(251, 248, 239, 0.05) 0 48px, rgba(251, 248, 239, 0) 48px 96px),
    var(--paper-grain);
  color: var(--ivory);
  border-bottom: 6px double var(--ivory);
}
.fs-head h1, .fs-head .page-lede { color: var(--ivory); }
.fs-head-grid { display: grid; gap: 2rem; align-items: center; }
.fs-art { width: min(100%, 340px); justify-self: center; height: auto; }
@media (min-width: 820px) { .fs-head-grid { grid-template-columns: 1.3fr 0.7fr; } }

/* run-of-show head */
.ros-head { background: var(--rough); border-bottom: 1px solid var(--line); }
.ros-head-grid { display: grid; gap: 2rem; align-items: center; }
.ros-art { width: min(100%, 400px); justify-self: center; height: auto; }
@media (min-width: 820px) { .ros-head-grid { grid-template-columns: 1.2fr 0.8fr; } }

/* contact head */
.ct-head {
  background-color: var(--navy);
  background-image: radial-gradient(rgba(224, 194, 122, 0.2) 1px, transparent 1.6px), var(--paper-grain);
  background-size: 24px 24px, 180px 180px;
  color: var(--ivory);
  border-bottom: 6px double var(--brass-light);
}
.ct-head h1, .ct-head .page-lede { color: var(--ivory); }
.ct-head-grid { display: grid; gap: 2rem; align-items: center; }
.ct-art { width: min(100%, 260px); justify-self: center; height: auto; transform: rotate(-4deg); filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.35)); }
@media (min-width: 820px) { .ct-head-grid { grid-template-columns: 1.4fr 0.6fr; } }

/* ---------- index: contents ---------- */
.order { background: var(--ivory); }
.toc { list-style: none; margin: 0; padding: 0; max-width: 900px; }
.toc-item { margin: 0; padding: var(--s4) 0 var(--s5); border-bottom: 1px dotted var(--field); }
.toc-link {
  display: flex; align-items: baseline; gap: 0.7rem;
  font-family: var(--ff-head); font-weight: 700;
  font-size: clamp(1.45rem, 1.1rem + 1.8vw, 2.2rem);
  line-height: 1.15;
  color: var(--navy);
  text-decoration: none;
}
.toc-title { white-space: normal; }
.toc-dots { flex: 1; min-width: 1rem; border-bottom: 3px dotted var(--fairway); transform: translateY(-0.28em); }
.toc-page {
  font-family: var(--ff-body); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); white-space: nowrap;
}
.toc-link:hover { color: var(--red-deep); }
.toc-link:hover .toc-title { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 0.18em; }
.toc-desc { margin: 0.6rem 0 0.9rem; max-width: 64ch; }
.toc-io { display: grid; gap: 0.6rem 2rem; margin: 0; }
.toc-io > div { padding-left: 0.9rem; border-left: 4px solid var(--brass-light); }
.toc-io dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.toc-io dd { margin: 0; font-size: 0.97rem; }
@media (min-width: 700px) { .toc-io { grid-template-columns: 1fr 1fr; } }

/* index: four shots */
.path { background: var(--rough); background-image: var(--paper-grain); }
.shots { list-style: none; margin: var(--s6) 0 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: 1fr; counter-reset: shot; }
.shot {
  position: relative;
  margin: 0;
  padding: 1.25rem 1.25rem 1.1rem;
  background: var(--paper);
  border: 1.5px solid var(--navy);
  border-radius: 8px;
  box-shadow: var(--sh-2);
  display: flex; flex-direction: column;
}
.shot-n {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 0.8rem;
  border-radius: 50%;
  background: var(--navy); color: var(--ivory);
  font: 700 1.4rem var(--ff-head);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--navy);
}
.shot h3 { font-size: 1.25rem; }
.shot p { font-size: 0.98rem; flex: 1; }
.shot-link {
  align-self: flex-start;
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 700;
}
.shot-link::after { content: "\2192"; margin-left: 0.4rem; transition: transform 0.15s ease; }
.shot-link:hover::after { transform: translateX(4px); }
@media (min-width: 620px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .shots { grid-template-columns: repeat(4, 1fr); }
  .shot:not(:last-child)::after {
    content: ""; position: absolute; top: 2.2rem; left: calc(1.25rem + 52px); right: -1.5rem;
    border-top: 3px dotted var(--fairway); z-index: 2;
  }
}

/* index: checklist spread */
.checkbar {
  display: grid; gap: 0.75rem 1.25rem; align-items: center;
  grid-template-columns: 1fr;
  margin-bottom: var(--s5);
}
.checkbar-text { margin: 0; font-weight: 700; }
.meter { height: 14px; border: 2px solid var(--navy); border-radius: 999px; background: var(--paper); overflow: hidden; }
.meter-fill { display: block; height: 100%; width: 0; background: repeating-linear-gradient(45deg, var(--fairway) 0 8px, var(--fairway-deep) 8px 16px); transition: width 0.3s ease; }
@media (min-width: 720px) { .checkbar { grid-template-columns: auto 1fr auto; } .checkbar .meter { min-width: 160px; } }

.spread {
  position: relative;
  display: grid; grid-template-columns: 1fr;
  background: var(--paper);
  border: 1.5px solid var(--navy);
  border-radius: 6px;
  box-shadow: var(--sh-3);
  overflow: hidden;
}
.spread-page { padding: clamp(1.1rem, 3vw, 2.25rem); min-width: 0; }
.spread-page + .spread-page { border-top: 3px double var(--navy); }
.spread-title {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.2rem 1rem;
  margin-bottom: 0.75rem; padding-bottom: 0.5rem;
  border-bottom: 3px double var(--navy);
  font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem);
}
.spread-title span { font: 700 0.78rem var(--ff-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
@media (min-width: 900px) {
  .spread { grid-template-columns: 1fr 1fr; }
  .spread-page + .spread-page { border-top: 0; }
  .spread::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 56px; transform: translateX(-50%);
    background: linear-gradient(90deg, rgba(19, 41, 75, 0), rgba(19, 41, 75, 0.14) 46%, rgba(19, 41, 75, 0.22) 50%, rgba(19, 41, 75, 0.14) 54%, rgba(19, 41, 75, 0));
    pointer-events: none;
  }
}
.checklist { list-style: none; margin: 0; padding: 0; }
.task { position: relative; margin: 0; padding: 0.35rem 0 0.7rem; border-bottom: 1px dotted var(--field); }
.task:last-child { border-bottom: 0; }
.task input[type="checkbox"] {
  position: absolute; left: 0; top: 0.4rem;
  width: 44px; height: 44px; margin: 0;
  opacity: 0; cursor: pointer; z-index: 2;
}
.task label {
  display: flex; align-items: center; gap: 0.65rem;
  min-height: 46px; cursor: pointer;
  font-weight: 700; line-height: 1.25;
}
.task label::before {
  content: "";
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 2px solid var(--navy);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: inset 0 1px 2px rgba(19, 41, 75, 0.15);
  color: var(--ivory);
  font-size: 1.1rem;
  transition: background-color 0.15s ease;
}
.task input:checked + label::before { content: "\2713"; background: var(--fairway); border-color: var(--fairway-deep); }
.task input:focus-visible + label::before { outline: 3px solid var(--navy); outline-offset: 3px; }
.task-no { flex: none; min-width: 1.6rem; font: 700 1.1rem var(--ff-head); color: var(--brass); text-align: right; }
.task input:checked + label .task-title { color: var(--muted); }
.task-tip { margin: 0 0 0 calc(30px + 0.65rem); font-size: 0.95rem; color: var(--muted); line-height: 1.5; }
.task:target { background: var(--fairway-tint); box-shadow: -10px 0 0 var(--fairway-tint), 10px 0 0 var(--fairway-tint); }

/* index: ground rules */
.rules { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.rule {
  padding: 1.25rem 1.25rem 0.5rem;
  background: var(--paper);
  border: 1.5px solid var(--navy);
  border-top: 8px solid var(--fairway);
  border-radius: 6px;
  box-shadow: var(--sh-1);
}
.rule h3 { font-size: 1.25rem; }
@media (min-width: 700px) { .rules { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .rules { grid-template-columns: repeat(4, 1fr); } .page-assump .rules { grid-template-columns: repeat(3, 1fr); } }
#assumptions .rules { grid-template-columns: 1fr; }
@media (min-width: 800px) { #assumptions .rules { grid-template-columns: repeat(3, 1fr); } }
.ground { background: var(--rough-2); }

/* ---------- scorecard ---------- */
.setup-panel { display: grid; gap: 1.25rem 1.75rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 720px) { .setup-panel { grid-template-columns: 1.2fr 1fr 1fr; } }
.setup-panel .btn-row { grid-column: 1 / -1; margin-bottom: 0; }
.setup-panel .field input, .setup-panel .field select { max-width: 260px; }
.helper summary {
  font-weight: 700; font-family: var(--ff-head); font-size: 1.15rem; list-style: none;
  display: flex; align-items: center; gap: 0.6rem; min-height: 44px;
}
.helper summary::before { content: "\25B8"; color: var(--red); transition: transform 0.15s ease; }
.helper[open] summary::before { transform: rotate(90deg); }
.helper[hidden] { display: none; }
.helper-grid { display: grid; gap: 0.9rem; grid-template-columns: repeat(2, 1fr); margin-bottom: 1rem; }
@media (min-width: 720px) { .helper-grid { grid-template-columns: repeat(4, 1fr); } }
.helper-result { font: 700 1.2rem var(--ff-head); color: var(--fairway-deep); }
.helper-apply { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: flex-end; }
.helper-apply .field { min-width: 200px; }

.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0 0 var(--s4); padding: 0; font-size: 0.92rem; }
.legend li { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; }

.shape {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px;
  font: 700 0.95rem var(--ff-body);
  color: var(--navy);
  background: var(--paper);
  border: 1.5px solid transparent;
}
.sh-under { border: 2px solid var(--navy); border-radius: 50%; }
.sh-eagle { border: 2px solid var(--navy); border-radius: 50%; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--navy); }
.sh-over { border: 2px solid var(--navy); border-radius: 0; }
.sh-dbl { border: 2px solid var(--navy); border-radius: 0; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--navy); }
.sh-par { border: 1.5px solid var(--field); border-radius: 4px; }

.pts {
  display: inline-grid; place-items: center;
  min-width: 28px; height: 28px; padding: 0 6px;
  border-radius: 999px;
  font: 700 0.92rem var(--ff-body);
  font-variant-numeric: tabular-nums;
  background: var(--rough); color: var(--navy);
  border: 1.5px solid var(--field);
}
.pts.p0 { background: transparent; color: var(--muted); border-style: dashed; }
.pts.p1 { background: var(--rough); }
.pts.p2 { background: var(--fairway-tint); border-color: var(--fairway); color: var(--fairway-deep); }
.pts.p3, .pts.p4, .pts.p5 { background: var(--fairway); border-color: var(--fairway-deep); color: var(--ivory); }
.pts.pn { visibility: hidden; }

.sc-wrap {
  position: relative;
  overflow-x: auto;
  max-width: 100%;
  background: var(--paper);
  border: 2px solid var(--navy);
  border-radius: 6px;
  box-shadow: var(--sh-3);
  margin-bottom: var(--s4);
  -webkit-overflow-scrolling: touch;
}
.sc-loading { padding: 1.5rem; }
table.sc { border-collapse: separate; border-spacing: 0; min-width: 100%; width: max-content; }
.sc th, .sc td {
  padding: 0.3rem 0.4rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
.sc thead th { background: var(--navy); color: var(--ivory); border-color: rgba(251, 248, 239, 0.25); font-weight: 700; }
.sc thead th.entry-head { min-width: 156px; padding: 0.55rem 0.5rem; }
.sc thead .sub-head th { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.25rem; color: var(--brass-light); }
.sc .entry-head .field { gap: 0.15rem; text-align: left; }
.sc .entry-head label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-light); font-weight: 700; }
.sc .entry-head input { width: 140px; max-width: 100%; min-height: 40px; padding: 0.25rem 0.5rem; background: var(--paper); font-weight: 700; }
.sc th.col-hole, .sc th.col-par, .sc th.col-si { width: 64px; }
.sc .entry-head .hcp-row { display: grid; grid-template-columns: 1fr 74px; gap: 0.4rem; margin-top: 0.4rem; align-items: end; }
.sc .col-hole { position: sticky; left: 0; z-index: 3; min-width: 62px; }
.sc thead .col-hole { background: var(--navy); }
.sc tbody th.col-hole, .sc tfoot th.col-hole {
  background: var(--rough-2);
  color: var(--navy);
  font-family: var(--ff-head);
  font-size: 1.15rem;
  box-shadow: 2px 0 0 var(--line);
}
.sc .col-par, .sc .col-si { min-width: 64px; }
.sc td.cell-setup { background: var(--rough-2); }
.sc td.cell-entry { white-space: nowrap; padding: 0.3rem 0.5rem; }
.sc td.cell-entry .cell-pair { display: inline-flex; align-items: center; gap: 0.35rem; }
.sc tbody tr:nth-child(even) td.cell-entry { background: rgba(232, 226, 208, 0.28); }
.sc .cell-in {
  width: 52px; min-height: 40px; height: 40px;
  padding: 0 0.25rem;
  text-align: center;
  font: 700 1.05rem var(--ff-body);
  border: 1.5px solid var(--field);
  border-radius: 4px;
  box-shadow: none;
  background: var(--paper);
}
.sc .setup-in { width: 52px; background: transparent; border: 1.5px dashed var(--field); font-weight: 600; }
.sc .setup-in:hover, .sc .setup-in:focus-visible { background: var(--paper); border-style: solid; }
.sc .cell-in.sh-under { border: 2px solid var(--navy); border-radius: 50%; }
.sc .cell-in.sh-eagle { border: 2px solid var(--navy); border-radius: 50%; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--navy); }
.sc .cell-in.sh-over { border: 2px solid var(--navy); border-radius: 0; }
.sc .cell-in.sh-dbl { border: 2px solid var(--navy); border-radius: 0; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--navy); }
.sc .cell-in.sh-par { border-radius: 4px; }
.sc .cell-in.is-pick { background: var(--rough); letter-spacing: 0.1em; }
.sc .hs-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-left: 3px; vertical-align: middle; }
.sc .row-sub th, .sc .row-sub td { background: var(--rough); font-weight: 700; border-top: 2px solid var(--navy); border-bottom: 2px solid var(--navy); }
.sc .row-sub th.col-hole { background: var(--rough); font-family: var(--ff-body); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }
.sc .row-total th, .sc .row-total td { background: var(--navy-2); color: var(--ivory); font-weight: 700; border-color: rgba(251, 248, 239, 0.25); }
.sc .row-total th.col-hole { background: var(--navy-2); color: var(--ivory); font-family: var(--ff-body); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }
.sc tfoot th.col-hole { font-family: var(--ff-body); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; text-align: left; padding-left: 0.6rem; min-width: 150px; }
.sc tfoot td { background: var(--paper); font-weight: 700; font-size: 1.05rem; }
.sc tfoot tr.tf-main td { background: var(--fairway-tint); font-size: 1.25rem; font-family: var(--ff-head); }
.sc tfoot tr.tf-main th.col-hole { background: var(--fairway-tint); }
.sc .tf-label-wide { text-align: left; }

.sc-note { font-size: 0.9rem; color: var(--muted); }

.standings-box { max-width: 860px; }
.standings { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; counter-reset: none; }
.standings[hidden], .standings:empty { display: none; }
.standings li {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 0.2rem 1rem; align-items: center;
  margin: 0; padding: 0.8rem 1rem 0.8rem 0.8rem;
  background: var(--paper); border: 1.5px solid var(--navy); border-radius: 8px; box-shadow: var(--sh-1);
}
.standings .rank {
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; background: var(--navy); color: var(--ivory);
  font: 700 1.2rem var(--ff-head);
}
.standings li.is-lead { border-width: 2.5px; box-shadow: var(--sh-2); }
.standings li.is-lead .rank { background: var(--red); box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--red); }
.standings li.is-none .rank { background: var(--rough); color: var(--navy); border: 1.5px dashed var(--field); }
.standings .who { min-width: 0; }
.standings .who strong { display: block; font: 700 1.2rem var(--ff-head); overflow-wrap: anywhere; }
.standings .who span { font-size: 0.88rem; color: var(--muted); }
.standings .score { text-align: right; font: 700 1.9rem/1 var(--ff-head); font-variant-numeric: tabular-nums; }
.standings .score small { display: block; font: 700 0.7rem var(--ff-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); margin-top: 3px; }

/* shared prose blocks */
.prose-wrap { max-width: 1180px; }
.prose-cols { display: grid; gap: 2rem 3.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .prose-cols { grid-template-columns: 1fr 1fr; } }
.prose-cols h3 { margin-top: var(--s5); }
.prose-cols h3:first-child { margin-top: 0; }
.prose-cols ul { padding-left: 1.2rem; }
.prose-cols li { margin-bottom: 0.55rem; }
.mini-table { width: 100%; max-width: 420px; border-collapse: collapse; margin: 0 0 var(--s4); background: var(--paper); border: 2px solid var(--navy); }
.mini-table caption { text-align: left; font-weight: 700; padding: 0 0 0.4rem; font-size: 0.9rem; color: var(--muted); caption-side: top; }
.mini-table th, .mini-table td { padding: 0.45rem 0.8rem; border-bottom: 1px dotted var(--field); text-align: left; }
.mini-table thead th { background: var(--navy); color: var(--ivory); border-bottom: 0; }
.mini-table td { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.mini-table thead th:last-child { text-align: right; }
.mini-table tbody th { font-weight: 500; }

/* ---------- foursomes ---------- */
.fs-layout { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .fs-layout { grid-template-columns: minmax(260px, 360px) 1fr; } }
.fs-entry .panel .field { margin-bottom: 0.9rem; }
.roster-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 0.9rem; }
.roster-head h3 { margin: 0; }
.roster-head .btn-row { margin: 0; }
.roster { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; max-height: 520px; overflow-y: auto; padding-right: 4px; }
.roster[hidden] { display: none; }
.roster li {
  margin: 0;
  display: grid; grid-template-columns: 1fr 84px auto; gap: 0.4rem; align-items: start;
  padding: 0.45rem; border: 1.5px solid var(--line); border-radius: 6px; background: var(--paper);
}
.roster li.is-bad { border-color: var(--red); border-left-width: 6px; background: #FFF3F1; }
.roster input { min-height: 44px; }
.roster .roster-msg { grid-column: 1 / -1; margin: 0; font-size: 0.88rem; font-weight: 700; color: var(--red-deep); }
.roster .roster-msg::before { content: "\26A0\00a0"; }
.roster .btn { min-height: 44px; padding-inline: 0.7rem; }
.build-opts { display: grid; gap: 1.1rem 1.75rem; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 720px) { .build-opts { grid-template-columns: 1fr 1.2fr auto; } }

.board-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-bottom: var(--s5); }
.board-status { margin: 0; flex: 1; min-width: 220px; font-weight: 600; }
.fs-board { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.fs-board .board-empty { grid-column: 1 / -1; }
.group {
  display: flex; flex-direction: column;
  background: var(--paper); border: 2px solid var(--navy); border-radius: 8px; overflow: hidden;
  box-shadow: var(--sh-2);
}
.group-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.55rem 0.8rem; background: var(--navy); color: var(--ivory);
}
.group-head h3 { margin: 0; color: var(--ivory); font-size: 1.15rem; }
.group-start {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.12rem 0.65rem; border-radius: 999px; background: var(--ivory); color: var(--navy);
  font: 700 0.78rem var(--ff-body); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
}
.group-list { list-style: none; margin: 0; padding: 0.5rem; display: grid; gap: 0.4rem; flex: 1; }
.group-list li { margin: 0; }
.chip {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  width: 100%; min-height: 48px; padding: 0.4rem 0.7rem;
  text-align: left;
  font: 600 1rem var(--ff-body); color: var(--navy);
  background: var(--rough-2); border: 1.5px solid var(--field); border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.chip:hover { background: var(--rough); border-color: var(--navy); }
.chip-name { min-width: 0; overflow-wrap: anywhere; line-height: 1.2; }
.chip-hcp {
  flex: none; display: inline-grid; place-items: center; min-width: 40px; height: 30px; padding: 0 6px;
  border-radius: 999px; background: var(--navy); color: var(--ivory); font: 700 0.9rem var(--ff-body); font-variant-numeric: tabular-nums;
}
.chip[aria-pressed="true"] {
  background: var(--fairway-tint); border: 3px solid var(--red); transform: translateY(-2px) rotate(-0.6deg);
  box-shadow: var(--sh-2);
}
.chip[aria-pressed="true"] .chip-name::after { content: "  (held)"; font-weight: 700; color: var(--red-deep); }
.group-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 0.8rem;
  padding: 0.55rem 0.8rem; background: var(--rough); border-top: 2px solid var(--navy);
  font-size: 0.9rem; font-weight: 600;
}
.group-foot strong { font-family: var(--ff-head); font-size: 1.1rem; }
.place-btn { display: none; }
.fs-board.is-holding .place-btn { display: inline-flex; }
.fs-board.is-holding .group { outline: 3px dashed var(--fairway); outline-offset: 3px; }

.balance-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .balance-grid { grid-template-columns: 1.1fr 0.9fr; } }
.balance { display: grid; gap: 0.6rem; }
.bar-row { display: grid; grid-template-columns: 82px 1fr 82px; gap: 0.6rem; align-items: center; font-size: 0.95rem; }
.bar-row .bar-label { font-weight: 700; }
.bar-row .bar-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar-track { position: relative; height: 22px; background: var(--rough); border: 1.5px solid var(--navy); border-radius: 4px; overflow: visible; }
.bar-fill { position: absolute; left: 0; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, var(--navy) 0 6px, var(--navy-2) 6px 12px); border-radius: 2px 0 0 2px; }
.bar-mark { position: absolute; top: -6px; bottom: -6px; width: 0; border-left: 3px dashed var(--red); }
.balance-verdict { margin: 0.5rem 0 0; padding: 0.7rem 0.9rem; border-left: 6px solid var(--fairway); background: var(--fairway-tint); font-weight: 600; }
.balance-verdict.is-wide { border-left-color: var(--red); background: #FFF3F1; }
.balance-key { font-size: 0.85rem; color: var(--muted); }
.balance-key::before { content: ""; display: inline-block; width: 0; height: 14px; border-left: 3px dashed var(--red); margin-right: 8px; vertical-align: middle; }
#fs-text { min-height: 12rem; }

/* ---------- run of show ---------- */
.clock-panel { display: grid; gap: 1.1rem 1.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 720px) { .clock-panel { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .clock-panel { grid-template-columns: 1.6fr 1.3fr 1fr 1fr 1fr; } .clock-panel .field--wide { grid-column: auto; } }
.templates { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 0 0 var(--s5); }
.templates-label { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--brass); margin-right: 0.3rem; }
.blocks-h { margin-top: var(--s5); }
.blocks { list-style: none; margin: 0 0 var(--s4); padding: 0; display: grid; gap: 0.9rem; }
.blocks[hidden] { display: none; }
.block {
  position: relative;
  margin: 0;
  padding: 0.9rem 0.9rem 0.9rem 3.4rem;
  background: var(--paper); border: 1.5px solid var(--navy); border-radius: 8px; box-shadow: var(--sh-1);
  display: grid; gap: 0.7rem 0.9rem; grid-template-columns: 1fr 1fr;
  grid-template-areas: "title title" "mins kind" "note note" "ctl ctl";
}
.block.is-bad { border-color: var(--red); border-left-width: 8px; background: #FFF3F1; }
.block-no {
  position: absolute; left: 0.7rem; top: 0.9rem;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: var(--ivory); font: 700 1rem var(--ff-head);
}
.block .f-title { grid-area: title; }
.block .f-mins { grid-area: mins; }
.block .f-kind { grid-area: kind; }
.block .f-note { grid-area: note; }
.block .f-ctl { grid-area: ctl; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.block .field label { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); }
.block .err { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .block { grid-template-columns: 1.7fr 100px 170px; grid-template-areas: "title mins kind" "note note note" "ctl ctl ctl"; align-items: end; }
  .block .f-ctl { justify-content: flex-end; }
}
.f-ctl .btn { min-height: 44px; }

.summary { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); margin: 0 0 var(--s5); }
@media (min-width: 760px) { .summary { grid-template-columns: repeat(4, 1fr); } }
.summary .stat {
  padding: 0.8rem 1rem; background: var(--paper); border: 1.5px solid var(--navy); border-top: 6px solid var(--brass-light); border-radius: 6px; box-shadow: var(--sh-1);
}
.summary .stat dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.summary .stat dd { margin: 0.15rem 0 0; font: 700 1.5rem/1.15 var(--ff-head); font-variant-numeric: tabular-nums; }
.summary .stat dd small { display: block; font: 600 0.8rem var(--ff-body); color: var(--muted); }
.summary-wrap { margin: 0; }

.timeline { list-style: none; margin: 0 0 var(--s5); padding: 0; position: relative; }
.timeline[hidden] { display: none; }
.tl-item {
  position: relative;
  margin: 0;
  display: grid; grid-template-columns: 5.6rem 28px 1fr; gap: 0 0.7rem;
  min-height: clamp(84px, calc(var(--mins, 30) * 0.55px), 200px);
}
.tl-item::before {
  content: ""; position: absolute; left: calc(5.6rem + 0.7rem + 13px); top: 0; bottom: 0; width: 0;
  border-left: 4px dotted var(--fairway);
}
.tl-item:first-child::before { top: 18px; }
.tl-item:last-child::before { bottom: auto; height: 18px; }
.tl-item:only-child::before { display: none; }
.tl-time { text-align: right; padding-top: 0.15rem; font-variant-numeric: tabular-nums; }
.tl-time strong { display: block; font: 700 1.2rem/1.1 var(--ff-head); }
.tl-time span { display: block; font-size: 0.82rem; color: var(--muted); }
.tl-time em { display: inline-block; font-style: normal; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-deep); }
.tl-mark { position: relative; z-index: 1; width: 28px; height: 28px; margin-top: 0.1rem; display: grid; place-items: center; }
.tl-mark i { display: block; width: 22px; height: 22px; background: var(--fairway); border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--navy); }
.tl-mark.k-play i { border-radius: 50%; background: var(--fairway); }
.tl-mark.k-meal i { border-radius: 3px; background: var(--brass); }
.tl-mark.k-program i { transform: rotate(45deg) scale(0.85); background: var(--red); border-radius: 3px; }
.tl-mark.k-logistics i { border-radius: 50%; background: var(--navy); clip-path: none; width: 14px; height: 14px; border-width: 3px; }
.tl-card {
  align-self: start; margin-bottom: 1rem; padding: 0.7rem 1rem 0.8rem;
  background: var(--paper); border: 1.5px solid var(--navy); border-radius: 8px; box-shadow: var(--sh-1);
}
.tl-card h3 { margin: 0 0 0.25rem; font-size: 1.2rem; overflow-wrap: anywhere; }
.tl-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 0.8rem; align-items: center; margin: 0; font-size: 0.88rem; font-weight: 700; }
.tl-kind { padding: 0.05rem 0.6rem; border-radius: 999px; border: 1.5px solid var(--navy); background: var(--rough-2); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.74rem; }
.tl-note { margin: 0.4rem 0 0; font-size: 0.95rem; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .tl-item { grid-template-columns: 4.6rem 24px 1fr; gap: 0 0.5rem; }
  .tl-item::before { left: calc(4.6rem + 0.5rem + 11px); }
  .tl-mark { width: 24px; }
  .tl-time strong { font-size: 1.05rem; }
}
.share-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-bottom: var(--s5); }
.share-row .hint { flex-basis: 100%; margin: 0; }
.text-out summary { font-weight: 700; font-family: var(--ff-head); font-size: 1.1rem; display: flex; align-items: center; min-height: 44px; gap: 0.6rem; }
.text-out summary::before { content: "\25B8"; color: var(--red); transition: transform 0.15s ease; }
.text-out[open] summary::before { transform: rotate(90deg); }

/* ---------- contact ---------- */
.ct-layout { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .ct-layout { grid-template-columns: 1.25fr 0.75fr; } }
.ct-form { display: grid; gap: 1.1rem; margin-bottom: 0; }
.ct-side { padding: clamp(1rem, 2.5vw, 1.5rem); background: var(--rough); border-radius: 8px; border: 1.5px dashed var(--field); }
.ct-side h3 { font-size: 1.3rem; }
.ct-side h3:not(:first-child) { margin-top: var(--s5); }
.ct-out { margin: var(--s4) 0; padding: 1rem; background: var(--fairway-tint); border: 2px solid var(--fairway); border-radius: 8px; }
.ct-out[hidden] { display: none; }
.ct-out-title { font: 700 1.2rem var(--ff-head); margin-bottom: 0.4rem; color: var(--fairway-deep); }
.ct-out label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.3rem; }
.ct-out textarea { margin-bottom: 0.6rem; }
.faq { border-bottom: 1px dotted var(--field); }
.faq summary { display: flex; align-items: center; gap: 0.6rem; min-height: 48px; padding: 0.4rem 0; font-weight: 700; }
.faq summary::before { content: "+"; display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border: 2px solid var(--navy); border-radius: 50%; font-size: 1.1rem; line-height: 1; transition: background-color 0.15s ease; }
.faq[open] summary::before { content: "\2212"; background: var(--navy); color: var(--ivory); }
.faq p { margin: 0 0 var(--s4); padding-left: calc(26px + 0.6rem); }

/* ---------- page turn ---------- */
.page-turn {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 3px dotted var(--fairway);
  margin-top: 1rem;
}
.turn {
  display: flex; flex-direction: column; justify-content: center; min-height: 64px;
  padding: 0.6rem 1.1rem;
  border: 2px solid var(--navy); border-radius: 8px;
  background: var(--paper); color: var(--navy); text-decoration: none; box-shadow: var(--sh-1);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.turn:hover { background: var(--rough); color: var(--navy); transform: translateY(-2px); box-shadow: var(--sh-2); }
.turn-next { margin-left: auto; text-align: right; }
.turn-dir { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.turn-name { font: 700 1.25rem var(--ff-head); }
.turn-prev .turn-name::before { content: "\2190\00a0"; }
.turn-next .turn-name::after { content: "\00a0\2192"; }

/* ---------- footer ---------- */
.site-foot {
  margin-top: 3rem;
  background-color: var(--navy);
  background-image: radial-gradient(rgba(224, 194, 122, 0.16) 1px, transparent 1.6px), var(--paper-grain);
  background-size: 24px 24px, 180px 180px;
  color: var(--ivory);
  border-top: 6px double var(--brass-light);
  padding-block: clamp(2rem, 4vw, 3.25rem) 1.25rem;
}
.site-foot a { color: var(--ivory); text-decoration-color: var(--brass-light); }
.site-foot a:hover { color: var(--brass-light); text-decoration-color: var(--brass-light); }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.foot-brand { font: 700 1.5rem var(--ff-head); margin-bottom: 0.4rem; }
.foot-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass-light); margin-bottom: 0.5rem; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; }
.foot-nav li { margin: 0; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 40px; }
.foot-honest { color: var(--on-dark-muted); font-size: 0.95rem; }
.foot-contact p a { display: inline-flex; min-height: 40px; align-items: center; word-break: break-all; }
.foot-base { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px dotted rgba(224, 194, 122, 0.55); }
.foot-base p { margin: 0; font-size: 0.88rem; color: var(--on-dark-muted); }

/* ---------- print ---------- */
@page { margin: 14mm; }
@media print {
  :root { --rail-w: 0px; }
  html, body { background: #fff !important; }
  body { padding-left: 0; font-size: 11pt; color: #000; background-image: none !important; }
  .site-head, .rail, .site-foot, .skip-link, .page-turn, .no-print, .nav-toggle, .page-head, .cover { display: none !important; }
  .print-only { display: block !important; }
  .hole-section { padding-block: 0.5rem; border: 0; break-inside: auto; }
  .hole-badge { transform: scale(0.8); transform-origin: 0 100%; }
  .hole-badge::after, .flag-wave { animation: none !important; }
  .panel, .group, .tl-card, .sc-wrap, .standings li { box-shadow: none !important; }
  .wrap { max-width: none; padding-inline: 0; }
  a { text-decoration: none; color: #000; }
  .sc-wrap { overflow: visible; border-width: 1.5px; }
  table.sc { width: 100%; min-width: 0; font-size: 8.5pt; }
  .sc .cell-in { width: 34px; min-height: 22px; height: 22px; font-size: 9pt; }
  .sc .col-hole { position: static; }
  .sc th, .sc td { padding: 1px 3px; }
  .sc thead th.entry-head { min-width: 0; }
  .sc .entry-head input { min-height: 0; height: 20px; font-size: 8pt; }
  .sc .entry-head .hcp-row { grid-template-columns: 1fr 44px; }
  .sc thead th, .sc .row-total th, .sc .row-total td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sc td.cell-entry { padding: 1px 3px; }

  body[data-page="scorecard"] .hole-section:not(#card):not(#standings) { display: none; }
  body[data-page="scorecard"] #card .section-lede, body[data-page="scorecard"] #card .legend { display: none; }
  body[data-page="foursomes"] .hole-section:not(#pairings):not(#balance) { display: none; }
  body[data-page="foursomes"] #pairings .section-lede, body[data-page="foursomes"] #balance .section-lede, body[data-page="foursomes"] #balance .panel:last-child { display: none; }
  body[data-page="foursomes"] .balance-grid { display: block; }
  body[data-page="foursomes"] .fs-board { grid-template-columns: repeat(2, 1fr); }
  body[data-page="foursomes"] .group { break-inside: avoid; }
  body[data-page="run"] .hole-section:not(#timeline) { display: none; }
  body[data-page="run"] #timeline .hole-head { display: none; }
  body[data-page="run"] .ros-print-title { font: 700 22pt var(--ff-head); margin-bottom: 8pt; }
  .tl-item { break-inside: avoid; min-height: 0; }
  .summary .stat { box-shadow: none; }
}

/* ---------- reduced motion: every animation and transition neutralised ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hole-badge::after, .flag-wave, .mark-flag, .rail-flag { animation: none !important; transition: none !important; }
  .btn:hover, .btn:active, .turn:hover { transform: none; }
  .cover-art { transform: none; }
  .chip[aria-pressed="true"] { transform: none; }
}
