:root {
  --club: #063b2e;
  --club-2: #0a2a23;
  --night: #031c17;
  --paper: #fff9ea;
  --scorecard: #f7f0df;
  --wash: #eee5cf;
  --bunker: #d8b56d;
  --bunker-dark: #9b6838;
  --flag: #c84935;
  --ink: #15130f;
  --muted: #605b4f;
  --quiet: #948b78;
  --rule: #d8cfb8;
  --white: #fffdf7;
  --shadow: 0 24px 60px rgba(6, 59, 46, 0.16);
  --shadow-soft: 0 12px 30px rgba(6, 59, 46, 0.08);
  --radius: 18px;
  --radius-sm: 10px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  overflow-x: hidden;
  background: var(--night);
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(6,59,46,.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(6,59,46,.035) 1px, transparent 1px),
    radial-gradient(circle at 8% 0%, rgba(216,181,109,.28), transparent 32rem),
    linear-gradient(180deg, #fffaf0 0%, var(--scorecard) 42%, #efe4cb 100%);
  background-size: 26px 26px, 26px 26px, auto, auto;
  color: var(--ink);
  font: 500 16px/1.45 var(--sans);
  text-rendering: optimizeLegibility;
}

body.sheet-open { overflow: hidden; }

a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid rgba(200, 73, 53, 0.48);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 10px 12px;
  background: var(--night);
  color: var(--paper);
  border-radius: 999px;
}

.skip-link:focus { transform: translateY(0); }

.app-shell {
  min-height: 100vh;
  padding: max(16px, env(safe-area-inset-top)) 14px calc(90px + env(safe-area-inset-bottom));
}

.screen {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  animation: page-in 220ms ease both;
}

.loading-screen {
  min-height: 70vh;
  display: grid;
  align-content: center;
  gap: 10px;
  color: var(--club);
}

.loading-screen h1 {
  max-width: 12ch;
  margin: 0;
  font: 850 clamp(44px, 13vw, 96px)/.86 var(--serif);
  letter-spacing: -.06em;
}

.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.brand-lockup {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: block;
  border-radius: 14px;
  filter: drop-shadow(0 10px 24px rgba(6, 59, 46, .14));
}

.brand-copy { min-width: 0; }

.brand-lockup h1 {
  margin: 0;
  color: var(--club);
  font: 850 clamp(24px, 5vw, 38px)/1 var(--serif);
  letter-spacing: -.06em;
}

.brand-lockup h1 span,
.page-title em,
.section-title em,
.panel-title em,
.detail-title em {
  color: var(--bunker-dark);
  font-style: italic;
}

.brand-subline {
  display: none;
  margin: 2px 0 0;
  color: var(--muted);
  font: 700 11px/1.2 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.app-date {
  flex: 0 0 auto;
  min-width: 72px;
  padding: 9px 8px;
  border: 1px solid rgba(6, 59, 46, .14);
  border-radius: 16px;
  background: rgba(255, 249, 234, .78);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.app-date strong {
  display: block;
  margin: 2px 0;
  color: var(--club);
  font: 850 24px/.9 var(--serif);
}

.eyebrow,
.label,
.button,
.tab-pill,
.bottom-nav span,
.stat-label,
.time-chip,
.segmented button {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--bunker-dark);
}

.label { color: var(--bunker-dark); }

.section-intro {
  margin: 8px 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(6, 59, 46, .12);
}

.section-intro h1,
.page-title,
.section-title {
  max-width: 900px;
  margin: 0;
  color: var(--club);
  font: 850 clamp(42px, 10vw, 92px)/.94 var(--serif);
  letter-spacing: -.07em;
}

.section-intro .lede,
.lede {
  max-width: 46rem;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 2.3vw, 18px);
}

.section-kicker {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-kicker .eyebrow { margin: 0; }
.section-kicker span {
  color: var(--muted);
  font: 600 13px/1.2 var(--sans);
}

.command-card {
  position: relative;
  min-height: min(660px, calc(100svh - 118px));
  overflow: hidden;
  display: grid;
  align-items: end;
  margin-bottom: 14px;
  padding: clamp(18px, 4vw, 42px);
  color: var(--paper);
  border-radius: 28px;
  background: var(--night);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.command-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3,28,23,.94) 0%, rgba(3,28,23,.72) 42%, rgba(3,28,23,.26) 100%),
    linear-gradient(180deg, rgba(3,28,23,.12), rgba(3,28,23,.86)),
    url("assets/course-visuals/grande-dunes-18th.jpg") center/cover no-repeat;
  transform: scale(1.02);
}

.command-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: -1;
  border: 1px solid rgba(255, 249, 234, .16);
  border-radius: 20px;
  pointer-events: none;
}

.command-content {
  max-width: 680px;
  animation: rise-in 520ms cubic-bezier(.2,.8,.2,1) both;
}

.event-ribbon {
  width: fit-content;
  max-width: min(100%, 560px);
  margin-bottom: clamp(22px, 5vw, 52px);
  padding: 13px 15px 14px;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(216,181,109,.5);
  border-radius: 16px;
  background: rgba(3,28,23,.54);
  box-shadow: inset 0 1px 0 rgba(255,249,234,.14);
  backdrop-filter: blur(14px);
}

.event-ribbon span,
.event-ribbon small {
  color: rgba(255,249,234,.76);
  font: 700 11px/1.2 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.event-ribbon strong {
  color: var(--paper);
  font: 850 clamp(27px, 7vw, 48px)/.96 var(--serif);
  letter-spacing: -.06em;
}

.command-content .eyebrow { color: var(--bunker); }

.next-title {
  max-width: 9ch;
  margin: 0;
  color: var(--paper);
  font: 850 clamp(58px, 17vw, 132px)/.86 var(--serif);
  letter-spacing: -.08em;
}

.status-line {
  max-width: 34rem;
  margin: 14px 0 0;
  color: rgba(255,249,234,.88);
  font: 700 clamp(18px, 3vw, 25px)/1.14 var(--sans);
}

.hero-departure {
  width: fit-content;
  max-width: 100%;
  display: grid;
  gap: 2px;
  margin-top: 18px;
  padding: 12px 14px;
  border-left: 4px solid var(--flag);
  background: rgba(255,249,234,.1);
  border-radius: 0 12px 12px 0;
}

.hero-departure span,
.hero-departure small {
  color: rgba(255,249,234,.72);
  font: 700 11px/1.2 var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}

.hero-departure strong {
  color: var(--paper);
  font-size: 18px;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 22px;
}

.command-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid rgba(6,59,46,.12);
  border-radius: 18px;
  background: rgba(6,59,46,.12);
}

.command-strip div {
  min-height: 72px;
  padding: 14px;
  background: rgba(255,249,234,.74);
}

.command-strip span {
  display: block;
  color: var(--quiet);
  font: 700 10px/1.1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.command-strip strong {
  display: block;
  margin-top: 7px;
  color: var(--club);
  font: 800 19px/.95 var(--sans);
}

.content-grid { display: grid; gap: 14px; }
.content-grid.two,
.content-grid.three { grid-template-columns: 1fr; }

.panel,
.timeline-card,
.course-tile,
.contact-row,
.sheet-panel,
.roster-card {
  min-width: 0;
  border: 1px solid rgba(6,59,46,.13);
  border-radius: var(--radius);
  background: rgba(255,249,234,.72);
  box-shadow: var(--shadow-soft);
}

.panel,
.course-tile,
.roster-card { padding: clamp(16px, 3vw, 22px); }

.panel-title {
  margin: 0;
  color: var(--club);
  font: 850 clamp(28px, 7vw, 46px)/.96 var(--serif);
  letter-spacing: -.06em;
}

.small-title {
  margin: 0;
  color: var(--club);
  font: 800 18px/1 var(--sans);
}

.muted { color: var(--muted); }
.mono { color: var(--muted); font-family: var(--mono); }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.button-row > .button { flex: 1 1 140px; }
.button-row > .button.small,
.button-row > .button.ghost { flex: 0 1 auto; }

.button,
.icon-button {
  min-height: 48px;
  min-width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid rgba(6,59,46,.82);
  border-radius: 999px;
  background: transparent;
  color: var(--club);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 140ms ease, background 140ms ease, color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(6,59,46,.14);
}

.button:active,
.icon-button:active { transform: translateY(1px) scale(.99); }

.button svg,
.icon-button svg,
.bottom-nav svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button.primary {
  border-color: var(--club);
  background: var(--club);
  color: var(--paper);
}

.button.gold {
  border-color: var(--bunker);
  background: linear-gradient(180deg, #e2be76, #bc7b3f);
  color: #21160e;
  box-shadow: 0 14px 32px rgba(155,104,56,.28);
}

.button.glass,
.command-card .button:not(.gold) {
  border-color: rgba(255,249,234,.36);
  background: rgba(255,249,234,.09);
  color: var(--paper);
  backdrop-filter: blur(12px);
}

.button.ghost {
  border: 0;
  background: transparent;
  color: var(--bunker-dark);
}

.button.small {
  min-height: 40px;
  padding: 0 12px;
  font-size: 10px;
}

.button.full { width: 100%; }

.icon-button {
  flex: 0 0 auto;
  padding: 0;
  border-color: rgba(6,59,46,.16);
  background: rgba(255,249,234,.78);
}

.run-list { display: grid; gap: 0; }

.slate-row,
.contact-row,
.split-row,
.departure-item,
.handicap-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.slate-row,
.split-row,
.departure-item {
  min-height: 58px;
  padding: 13px 0;
  border-top: 1px solid rgba(6,59,46,.1);
}

.slate-row:first-child,
.split-row:first-child,
.departure-item:first-child { border-top: 0; }

.slate-row.active {
  margin: 0 -10px;
  padding-inline: 10px;
  border-radius: 12px;
  background: rgba(200,73,53,.08);
}

.slate-row > span:nth-child(2) { min-width: 0; flex: 1; }
.slate-row strong { display: block; color: var(--club); }
.slate-row small {
  display: -webkit-box;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.time-chip {
  flex: 0 0 78px;
  color: var(--flag);
  letter-spacing: 0;
  text-transform: none;
}

.departure-item {
  display: grid;
  gap: 14px;
}

.departure-item h3 {
  margin: 3px 0;
  color: var(--club);
  font: 850 28px/.98 var(--serif);
  letter-spacing: -.04em;
}

.departure-item.featured { padding-top: 0; border-top: 0; }

.segmented,
.tabs-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -14px 18px;
  padding: 0 14px 4px;
  scrollbar-width: none;
}

.segmented button,
.tab-pill {
  min-height: 42px;
  white-space: nowrap;
  padding: 0 14px;
  border: 1px solid rgba(6,59,46,.14);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,249,234,.58);
}

.segmented button.active,
.tab-pill.active {
  border-color: var(--club);
  background: var(--club);
  color: var(--paper);
}

.day-section { margin: 0 0 24px; }

.day-header {
  margin-bottom: 12px;
  padding: 18px 0 12px;
  border-bottom: 1px solid rgba(6,59,46,.12);
}

.day-header .section-title {
  font-size: clamp(46px, 12vw, 90px);
}

.departure-panel { margin-bottom: 12px; }
.timeline { display: grid; gap: 10px; }
.timeline-card { overflow: hidden; }

.timeline-card summary {
  min-height: 72px;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

.timeline-card summary::-webkit-details-marker { display: none; }
.timeline-card h3 { margin: 0; color: var(--club); font-size: 17px; }
.timeline-card p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.timeline-body { padding: 0 14px 16px 102px; }

.course-mini-grid { margin-top: 18px; }
.course-tile { overflow: hidden; display: grid; gap: 10px; padding: 12px; }
.course-tile img {
  width: 100%;
  height: 160px;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  background: var(--club);
}
.course-tile .panel-title { font-size: 28px; }

.course-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(235px, 1fr);
  gap: 12px;
  overflow-x: auto;
  margin: 0 -14px 18px;
  padding: 0 14px 6px;
  scrollbar-width: none;
}

.course-select-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  display: grid;
  align-content: end;
  gap: 2px;
  padding: 14px;
  border: 1px solid rgba(6,59,46,.14);
  border-radius: 20px;
  background: var(--night);
  color: var(--paper);
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.course-select-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .74;
  transition: transform 300ms ease, opacity 300ms ease;
}

.course-select-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,28,23,.05), rgba(3,28,23,.86));
}

.course-select-card > *:not(img) { position: relative; z-index: 1; }
.course-select-card span {
  color: var(--bunker);
  font: 700 11px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.course-select-card strong {
  color: var(--paper);
  font: 850 30px/.96 var(--serif);
  letter-spacing: -.05em;
}
.course-select-card small { color: rgba(255,249,234,.76); }
.course-select-card.active { border-color: var(--bunker); box-shadow: 0 0 0 3px rgba(216,181,109,.22); }
.course-select-card:hover img { transform: scale(1.04); opacity: .86; }

.course-guide { display: grid; gap: 18px; }
.course-hero { display: grid; gap: 14px; align-items: start; }

.course-visual-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(6,59,46,.16);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.course-photo-hero {
  position: relative;
  min-height: 410px;
  display: block;
  overflow: hidden;
  color: var(--paper);
  text-decoration: none;
  background: var(--night);
}

.course-photo-hero picture,
.course-photo-hero img {
  width: 100%;
  height: 100%;
  display: block;
}

.course-photo-hero picture { position: absolute; inset: 0; }
.course-photo-hero img {
  object-fit: cover;
  filter: saturate(1.03) contrast(1.04);
  transform: scale(1.01);
  transition: transform 420ms ease, filter 420ms ease;
}
.course-photo-hero:hover img,
.course-photo-hero:focus-visible img { transform: scale(1.035); filter: saturate(1.08) contrast(1.06); }

.course-photo-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3,28,23,0) 18%, rgba(3,28,23,.18) 52%, rgba(3,28,23,.88) 100%),
    linear-gradient(90deg, rgba(3,28,23,.45), rgba(3,28,23,0) 58%);
}

.course-photo-meta {
  position: absolute;
  left: clamp(18px, 4vw, 34px);
  right: clamp(18px, 4vw, 34px);
  bottom: clamp(18px, 4vw, 34px);
  display: grid;
  gap: 5px;
}

.course-photo-meta .eyebrow { color: var(--bunker); }
.course-photo-meta strong {
  display: block;
  max-width: 11ch;
  font: 850 clamp(50px, 14vw, 112px)/.86 var(--serif);
  letter-spacing: -.08em;
  text-wrap: balance;
}
.course-photo-meta small {
  color: rgba(255,249,234,.82);
  font: 700 11px/1.35 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.course-visual-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(6,59,46,.1);
}
.course-visual-head p { margin: 0; color: var(--muted); font-size: 13px; }
.course-visual-head a,
.scorecard-heading a {
  flex: 0 0 auto;
  color: var(--club);
  font: 700 11px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-underline-offset: 4px;
}

.course-reference-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  padding: 14px 18px 18px;
}

.course-reference-card {
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 94px minmax(0,1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(6,59,46,.11);
  border-radius: 14px;
  background: var(--white);
  color: var(--club);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}
.course-reference-card:hover { transform: translateY(-1px); border-color: rgba(6,59,46,.28); }
.course-reference-card img { width: 100%; height: 86px; display: block; object-fit: cover; background: white; }
.course-reference-card.primary img { object-fit: contain; padding: 5px; }
.course-reference-card span { min-width: 0; display: grid; gap: 3px; padding-right: 10px; }
.course-reference-card strong { color: var(--club); font: 800 12px/1.15 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.course-reference-card small { color: var(--muted); font-size: 12px; }

.course-summary-panel { background: rgba(255,249,234,.88); }
.course-summary-panel .panel-title { font-size: clamp(38px, 7vw, 66px); }
.course-summary-panel > p:not(.eyebrow):not(.course-tagline) { margin: 14px 0 0; color: var(--muted); }
.course-tagline { margin: 8px 0 0; color: var(--club); font-weight: 800; }

.course-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px;
  margin-top: 18px;
}
.course-stat-grid span {
  padding: 13px;
  border: 1px solid rgba(6,59,46,.1);
  border-radius: 14px;
  background: var(--white);
}
.course-stat-grid strong { display: block; color: var(--club); font: 850 30px/.95 var(--serif); letter-spacing: -.04em; }
.course-stat-grid small { display: block; margin-top: 4px; color: var(--quiet); font: 700 10px/1 var(--mono); letter-spacing: .11em; text-transform: uppercase; }

.course-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(6,59,46,.1);
}
.course-note span { display: block; color: var(--quiet); font: 700 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.course-note strong { display: block; margin-top: 5px; color: var(--club); }

.hole-brief { display: grid; gap: 7px; padding: 14px 0; border-top: 1px solid rgba(6,59,46,.1); }
.hole-brief:first-of-type { border-top: 0; padding-top: 0; }
.hole-brief div { display: flex; justify-content: space-between; gap: 12px; }
.hole-brief strong { color: var(--club); }
.hole-brief span { flex: 0 0 auto; color: var(--muted); font: 600 12px/1.2 var(--mono); }
.hole-brief p { margin: 0; color: var(--muted); font-size: 14px; }

.tee-row > span:first-child { position: relative; padding-left: 20px; }
.tee-row i,
.scorecard-table th:first-child i {
  width: 9px;
  display: inline-block;
  margin-right: 8px;
  border: 1px solid rgba(6,59,46,.2);
  border-radius: 999px;
  background: var(--tee-color);
  vertical-align: middle;
}
.tee-row i { position: absolute; left: 0; top: 2px; height: 36px; }
.scorecard-table th:first-child i { height: 22px; }

.handicap-calculator { display: grid; gap: 14px; }
.calc-input,
.player-row label {
  display: grid;
  gap: 7px;
  color: var(--bunker-dark);
  font: 700 11px/1.1 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}

input,
select,
.roster-card input,
.calc-input input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid rgba(6,59,46,.18);
  border-radius: 12px;
  background: rgba(255,253,247,.9);
  color: var(--ink);
  font-weight: 700;
}

.handicap-list { display: grid; gap: 0; }
.handicap-row { min-height: 60px; padding: 11px 0; border-top: 1px solid rgba(6,59,46,.1); }
.handicap-row:first-child { border-top: 0; }
.handicap-row > span:first-child { min-width: 0; }
.handicap-number {
  min-width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--club);
  color: var(--paper);
  font: 850 25px/.9 var(--serif);
}

.scorecard-panel,
.field-matrix-panel { grid-column: 1 / -1; }
.scorecard-heading,
.matrix-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.scorecard-heading .eyebrow { margin-bottom: 3px; }
.matrix-heading h2 { margin: 0; color: var(--club); font: 850 32px/.95 var(--serif); letter-spacing: -.05em; }

.scorecard-table,
.field-handicap-board {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(6,59,46,.13);
  border-radius: 16px;
  background: var(--white);
}

table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 12px;
}

.field-handicap-board table { min-width: 680px; }

th,
td {
  padding: 9px 8px;
  text-align: center;
  border-bottom: 1px solid rgba(6,59,46,.1);
  border-right: 1px solid rgba(6,59,46,.08);
}

th:first-child,
td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--white);
  text-align: left;
}

th { color: var(--club); font-weight: 800; }
td { color: var(--muted); }

.player-roster { display: grid; gap: 10px; }
.roster-card { background: rgba(255,249,234,.66); }
.player-row { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 10px; }
.matrix-stack { display: grid; gap: 12px; }

.contact-section,
.crew-section { display: grid; gap: 10px; margin-bottom: 24px; }
.contact-row {
  min-height: 72px;
  padding: 14px 16px;
  color: var(--muted);
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}
.contact-row:hover { transform: translateY(-1px); border-color: rgba(6,59,46,.28); background: var(--white); }
.contact-row > span { min-width: 0; }
.contact-row h3 { margin: 0 0 3px; color: var(--club); font-size: 16px; }
.contact-row > svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--club); }
.contact-row > svg path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.detail-hero {
  min-height: 300px;
  margin: 0 0 14px;
  padding: clamp(24px, 5vw, 44px);
  display: grid;
  align-content: end;
  color: var(--paper);
  border-radius: 26px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(3,28,23,.1), rgba(3,28,23,.88)),
    url("assets/reference/dossier-itinerary.png") center/cover no-repeat;
}
.detail-title { margin: 0; font: 850 clamp(48px, 14vw, 104px)/.82 var(--serif); letter-spacing: -.07em; }

.map-hero { display: grid; gap: 12px; }
.trip-map {
  position: relative;
  min-height: calc(100svh - 265px);
  height: 520px;
  overflow: hidden;
  border: 1px solid rgba(6,59,46,.14);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,249,234,.78), rgba(238,229,207,.98));
}
.trip-map::before { content: "Grand Strand"; position: absolute; right: 20px; top: 18px; color: rgba(6,59,46,.12); font: 850 48px/.9 var(--serif); letter-spacing: -.06em; }
.map-route { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.map-route path { fill: none; stroke: rgba(6,59,46,.1); stroke-width: 4; }
.map-route polyline { fill: none; stroke: rgba(155,104,56,.7); stroke-width: 1.2; stroke-dasharray: 3 3; }
.map-point { position: absolute; z-index: 2; left: var(--x); top: var(--y); width: 78px; min-height: 54px; padding: 0; transform: translate(-50%, -50%); display: grid; place-items: center; gap: 4px; border: 0; border-radius: 50%; background: transparent; }
.map-point span { width: 21px; height: 21px; display: block; border: 3px solid var(--paper); border-radius: 50%; background: var(--ink); box-shadow: 0 8px 20px rgba(6,59,46,.25); }
.map-point small { max-width: 74px; padding: 3px 6px; border-radius: 999px; background: rgba(255,249,234,.86); color: var(--club); font: 700 9px/1.15 var(--sans); }
.map-point.golf span { background: var(--club); }
.map-point.base span,
.map-point.airport span { background: var(--bunker-dark); }
.map-point.next span { width: 28px; height: 28px; outline: 5px solid rgba(200,73,53,.18); background: var(--flag); }
.map-list { display: grid; gap: 8px; }
.map-list button { width: 100%; min-height: 60px; padding: 11px 13px; border: 1px solid rgba(6,59,46,.13); border-radius: 14px; background: rgba(255,249,234,.72); text-align: left; }

.course-map-card { overflow: hidden; border-radius: 24px; background: var(--club); }
.course-schematic { position: relative; min-height: 360px; overflow: hidden; background: radial-gradient(circle at 22% 22%, rgba(216,181,109,.25), transparent 24%), linear-gradient(145deg, var(--club-2), var(--night)); color: var(--paper); }
.course-ribbon { position: absolute; left: 4%; top: 42%; width: 94%; height: 22%; transform: rotate(-18deg); border: 1px solid rgba(216,181,109,.24); border-radius: 50%; background: rgba(255,249,234,.08); }
.hole-dot { position: absolute; left: var(--x); top: var(--y); width: 30px; height: 30px; transform: translate(-50%, -50%); border: 2px solid rgba(255,249,234,.82); border-radius: 50%; background: var(--club); color: var(--paper); font: 800 10px/1 var(--sans); }
.hole-dot.par-3 { background: var(--bunker-dark); }
.hole-dot.par-5 { width: 34px; height: 34px; }
.course-schematic-label { position: absolute; left: 18px; right: 18px; bottom: 18px; padding-top: 70px; background: linear-gradient(180deg, transparent, rgba(3,28,23,.94) 42%); }
.course-schematic-label h2 { margin: 0; font: 850 44px/.88 var(--serif); letter-spacing: -.06em; }
.course-schematic-label p { color: rgba(255,249,234,.78); }

.sheet-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(3,28,23,.42); animation: fade 160ms ease both; }
.sheet-panel { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 90; max-height: min(76vh, 580px); overflow-y: auto; padding: 20px; box-shadow: var(--shadow); animation: sheet 200ms ease both; }
.empty { color: var(--muted); font: 850 26px/.95 var(--serif); letter-spacing: -.04em; }

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  height: calc(72px + env(safe-area-inset-bottom));
  padding: 6px 10px env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  border-top: 1px solid rgba(6,59,46,.12);
  background: rgba(255,249,234,.86);
  box-shadow: 0 -18px 42px rgba(6,59,46,.1);
  backdrop-filter: blur(18px);
}

.bottom-nav a {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 16px;
  color: var(--quiet);
  text-decoration: none;
}

.bottom-nav svg { width: 22px; height: 22px; }
.bottom-nav a.active { color: var(--club); background: rgba(6,59,46,.07); }
.bottom-nav a.active::before { content: ""; position: absolute; top: 7px; width: 6px; height: 6px; border-radius: 999px; background: var(--flag); }

@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet { from { transform: translateY(22px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 560px) {
  .brand-lockup h1 { font-size: clamp(24px, 8vw, 34px); }
  .app-date { min-width: 64px; }
  .next-title { max-width: 7.5ch; }
  .command-card { border-radius: 22px; }
  .course-photo-hero { min-height: 360px; }
  .course-photo-meta strong { font-size: clamp(46px, 16vw, 72px); }
  .course-visual-head,
  .hole-brief div,
  .scorecard-heading,
  .matrix-heading { display: grid; justify-content: stretch; }
  .course-visual-head a,
  .scorecard-heading a { text-align: left; }
  .course-reference-strip { grid-template-columns: 1fr; }
  .player-row { grid-template-columns: 1fr 92px; }
  .timeline-body { padding-left: 14px; }
}

@media (min-width: 680px) {
  .app-shell { padding: 24px 24px 108px; }
  .brand-subline { display: block; }
  .quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .command-strip { grid-template-columns: repeat(4, 1fr); }
  .content-grid.two { grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr); }
  .content-grid.three { grid-template-columns: repeat(3, 1fr); }
  .departure-item { grid-template-columns: 1fr auto; align-items: end; }
  .course-rail { margin-inline: 0; padding-inline: 0; grid-auto-columns: minmax(250px, 1fr); }
  .player-roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-section { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-section > .eyebrow { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .app-shell { padding-top: 30px; }
  .command-card { min-height: 650px; }
  .course-hero { grid-template-columns: minmax(0, 1.45fr) minmax(330px, .55fr); }
  .course-photo-hero { min-height: 600px; }
  .course-hero > .panel { position: sticky; top: 22px; }
  .course-detail-grid { grid-template-columns: .85fr 1.15fr; }
  .map-hero { grid-template-columns: 1.35fr .65fr; align-items: start; }
}

/* Display words need breathing room at large sizes; Sandbagger should feel bold, not mashed. */
.section-intro h1,
.page-title,
.section-title,
.panel-title,
.next-title,
.course-photo-meta strong,
.event-ribbon strong,
.brand-lockup h1,
.detail-title {
  word-spacing: .07em;
}

@media (max-width: 560px) {
  .app-bar { align-items: flex-start; }
  .app-date { display: none; }
  .brand-lockup { width: 100%; }
  .brand-copy { min-width: 0; }
  .brand-lockup h1 { line-height: .98; }
  .command-card { min-height: auto; padding: 18px; }
  .command-content { min-width: 0; max-width: 100%; }
  .event-ribbon { width: 100%; max-width: 100%; margin-bottom: 26px; }
  .event-ribbon strong { font-size: clamp(28px, 10vw, 38px); line-height: 1; white-space: normal; }
  .event-ribbon span,
  .event-ribbon small { font-size: 9px; }
  .next-title { max-width: 100%; font-size: clamp(58px, 20vw, 78px); line-height: .9; white-space: normal; overflow-wrap: break-word; }
  .status-line { font-size: 18px; }
  .quick-grid { grid-template-columns: 1fr; }
  .course-select-card strong { font-size: 25px; }
  .section-intro h1 { font-size: clamp(46px, 15vw, 66px); }
}

@media (max-width: 560px) {
  html, body, .app-shell, .screen { max-width: 100%; overflow-x: hidden; }
  .brand-lockup { display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; }
  .brand-lockup h1 span { display: block; }
  .brand-subline { display: none; }
  .next-title { max-width: 5.8ch; }
}

@media (max-width: 560px) {
  .section-kicker { display: grid; justify-content: stretch; gap: 5px; }
  .section-kicker span { overflow-wrap: anywhere; }
  .today-card .section-kicker span { display: none; }
}

/* Spacing system pass: final layer keeps the app on one rhythm. */
:root {
  --gutter: clamp(14px, 3vw, 28px);
  --section-gap: clamp(16px, 2.8vw, 24px);
  --card-pad: clamp(15px, 2.4vw, 22px);
  --row-pad: clamp(12px, 1.8vw, 16px);
}

.app-shell {
  padding: max(18px, env(safe-area-inset-top)) var(--gutter) calc(92px + env(safe-area-inset-bottom));
}

.screen {
  max-width: 1120px;
}

.app-bar {
  margin-bottom: var(--section-gap);
}

.brand-lockup {
  gap: 12px;
}

.brand-mark {
  width: 50px;
  height: 50px;
}

.brand-lockup h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: .98;
}

.brand-subline {
  margin-top: 3px;
}

.app-date {
  min-width: 68px;
  padding: 8px;
}

.section-intro {
  margin: 0 0 var(--section-gap);
  padding-bottom: var(--section-gap);
}

.section-intro h1,
.page-title,
.section-title {
  max-width: 820px;
  font-size: clamp(46px, 7vw, 74px);
  line-height: .93;
}

.field-intro h1 {
  max-width: 700px;
  font-size: clamp(42px, 6vw, 66px);
}

.section-intro .lede,
.lede {
  margin-top: 8px;
  line-height: 1.42;
}

.command-card {
  min-height: min(590px, calc(100svh - 128px));
  margin-bottom: var(--section-gap);
  padding: clamp(22px, 3.4vw, 38px);
  border-radius: 24px;
}

.command-card::after {
  inset: 12px;
  border-radius: 18px;
}

.event-ribbon {
  margin-bottom: clamp(24px, 4vw, 40px);
  padding: 12px 14px;
}

.event-ribbon strong {
  line-height: .98;
}

.next-title {
  max-width: 9.5ch;
  font-size: clamp(62px, 12vw, 112px);
  line-height: .86;
}

.status-line {
  margin-top: 12px;
  font-size: clamp(18px, 2.3vw, 23px);
}

.hero-departure {
  margin-top: 16px;
}

.quick-grid {
  margin-top: 18px;
  gap: 9px;
}

.command-strip {
  margin-bottom: var(--section-gap);
}

.command-strip div {
  min-height: 66px;
  padding: 13px 14px;
}

.content-grid,
.timeline,
.player-roster,
.matrix-stack,
.contact-section,
.crew-section {
  gap: var(--section-gap);
}

.panel,
.course-tile,
.roster-card {
  padding: var(--card-pad);
}

.panel-title {
  font-size: clamp(28px, 4.6vw, 42px);
  line-height: .96;
}

.section-kicker {
  margin-bottom: 12px;
}

.slate-row,
.split-row,
.departure-item,
.handicap-row {
  min-height: 56px;
  padding: var(--row-pad) 0;
}

.slate-row {
  align-items: start;
}

.slate-row small {
  -webkit-line-clamp: 3;
  line-height: 1.35;
}

.departure-item h3 {
  font-size: clamp(26px, 4vw, 34px);
}

.timeline-card summary {
  min-height: 66px;
  padding: 13px 14px;
}

.timeline-body {
  padding: 0 14px 16px 102px;
}

.segmented,
.tabs-row,
.course-rail {
  margin-bottom: var(--section-gap);
}

.course-rail {
  gap: 10px;
}

.course-select-card {
  min-height: 174px;
  padding: 13px;
}

.course-guide,
.course-hero {
  gap: var(--section-gap);
}

.course-photo-hero {
  min-height: 500px;
}

.course-photo-meta strong {
  font-size: clamp(52px, 10vw, 94px);
  line-height: .84;
}

.course-summary-panel .panel-title {
  font-size: clamp(36px, 5vw, 56px);
}

.course-stat-grid {
  margin-top: 14px;
}

.course-reference-strip {
  padding: 12px 16px 16px;
}

.scorecard-heading,
.matrix-heading {
  margin-bottom: 10px;
}

.contact-section {
  margin-bottom: var(--section-gap);
}

.bottom-nav {
  height: calc(70px + env(safe-area-inset-bottom));
}

@media (min-width: 680px) {
  .app-shell {
    padding: 24px var(--gutter) 104px;
  }

  .content-grid.two {
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  }

  .quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .app-shell {
    padding-top: 28px;
  }

  .command-card {
    min-height: 580px;
  }

  .course-photo-hero {
    min-height: 540px;
  }

  .course-hero {
    grid-template-columns: minmax(0, 1.38fr) minmax(320px, .62fr);
  }

  .course-hero > .panel {
    top: 18px;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 14px;
    --section-gap: 14px;
    --card-pad: 16px;
    --row-pad: 12px;
  }

  .app-shell {
    padding: max(14px, env(safe-area-inset-top)) 14px calc(86px + env(safe-area-inset-bottom));
  }

  .app-bar {
    margin-bottom: 12px;
  }

  .brand-lockup {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .brand-lockup h1 {
    font-size: clamp(27px, 8vw, 34px);
    line-height: .94;
  }

  .section-intro h1,
  .field-intro h1 {
    font-size: clamp(40px, 13vw, 58px);
    line-height: .94;
  }

  .command-card {
    padding: 18px;
    border-radius: 20px;
  }

  .event-ribbon {
    margin-bottom: 22px;
  }

  .next-title {
    max-width: 6.1ch;
    font-size: clamp(54px, 19vw, 72px);
    line-height: .9;
  }

  .status-line {
    font-size: 17px;
  }

  .quick-grid {
    gap: 8px;
  }

  .command-strip div {
    min-height: 62px;
    padding: 12px;
  }

  .command-strip strong {
    font-size: 18px;
  }

  .slate-row {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 46px;
    gap: 10px;
    align-items: start;
  }

  .slate-row .time-chip {
    flex: none;
    width: auto;
  }

  .slate-row .icon-button {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .timeline-card summary {
    grid-template-columns: 72px 1fr;
    padding: 13px;
  }

  .timeline-body {
    padding: 0 13px 15px 13px;
  }

  .course-select-card {
    min-height: 160px;
  }

  .course-photo-hero {
    min-height: 340px;
  }

  .course-photo-meta strong {
    font-size: clamp(42px, 14vw, 60px);
  }

  .course-summary-panel .panel-title,
  .panel-title {
    font-size: clamp(30px, 9vw, 42px);
  }

  .player-row {
    grid-template-columns: minmax(0, 1fr) 88px;
  }

  .bottom-nav {
    height: calc(68px + env(safe-area-inset-bottom));
    padding-inline: 8px;
  }
}

/* Global spacing correction: compact the chrome and make every screen respect the viewport. */
:root {
  --gutter: clamp(16px, 2.4vw, 32px);
  --section-gap: clamp(14px, 2.2vw, 22px);
  --card-pad: clamp(14px, 2vw, 20px);
}

.app-shell {
  padding-top: max(16px, env(safe-area-inset-top));
}

.screen {
  max-width: 1160px;
}

.app-bar {
  min-height: 58px;
  margin-bottom: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.brand-lockup {
  gap: 11px;
}

.brand-lockup .eyebrow {
  margin-bottom: 3px;
  font-size: 9px;
  letter-spacing: .15em;
}

.brand-lockup h1 {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: .93;
  letter-spacing: -.055em;
}

.brand-subline {
  margin-top: 4px;
  font-size: 9px;
  line-height: 1.1;
  letter-spacing: .1em;
}

.app-date {
  min-width: 62px;
  padding: 7px 8px;
  border-radius: 14px;
}

.app-date strong {
  font-size: 22px;
}

.command-card {
  min-height: clamp(430px, calc(100svh - 170px), 540px);
  padding: clamp(20px, 3vw, 32px);
  border-radius: 22px;
}

.command-content {
  max-width: 590px;
}

.event-ribbon {
  max-width: 520px;
  margin-bottom: clamp(18px, 3vw, 30px);
  padding: 11px 13px;
  border-radius: 13px;
}

.event-ribbon strong {
  font-size: clamp(27px, 4.2vw, 44px);
  line-height: .96;
}

.event-ribbon span,
.event-ribbon small {
  font-size: 9px;
  letter-spacing: .16em;
}

.next-title {
  max-width: 8.8ch;
  font-size: clamp(58px, 9vw, 94px);
  line-height: .84;
}

.status-line {
  margin-top: 8px;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-departure {
  margin-top: 14px;
  padding: 10px 13px;
}

.quick-grid {
  margin-top: 16px;
}

.button {
  min-height: 44px;
  padding-inline: 14px;
}

.command-strip {
  margin-bottom: 14px;
}

.command-strip div {
  min-height: 58px;
  padding: 11px 13px;
}

.content-grid.two {
  gap: 14px;
}

.panel,
.course-tile,
.roster-card {
  border-radius: 16px;
}

.section-intro h1,
.page-title,
.section-title {
  font-size: clamp(40px, 6vw, 66px);
  line-height: .94;
}

.course-photo-hero {
  min-height: clamp(360px, 52vw, 500px);
}

.course-photo-meta strong {
  font-size: clamp(42px, 8vw, 78px);
}

.course-select-card {
  min-height: 150px;
}

.player-roster,
.matrix-stack,
.contact-section,
.crew-section,
.content-grid {
  gap: 14px;
}

@media (min-width: 900px) {
  .app-shell {
    padding-top: 18px;
  }

  .command-card {
    min-height: clamp(440px, calc(100svh - 170px), 540px);
  }

  .course-photo-hero {
    min-height: 500px;
  }
}

@media (max-height: 820px) and (min-width: 700px) {
  .app-shell {
    padding-top: 14px;
  }

  .app-bar {
    margin-bottom: 12px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-lockup h1 {
    font-size: clamp(24px, 3vw, 34px);
  }

  .brand-subline {
    display: none;
  }

  .command-card {
    min-height: 430px;
    padding: 22px 28px;
  }

  .event-ribbon {
    max-width: 470px;
    margin-bottom: 18px;
  }

  .event-ribbon strong {
    font-size: clamp(25px, 3.7vw, 38px);
  }

  .next-title {
    font-size: clamp(54px, 8vw, 82px);
  }

  .status-line {
    font-size: 18px;
  }
}

@media (max-width: 560px) {
  .brand-lockup h1 {
    font-size: clamp(25px, 7.5vw, 31px);
  }

  .command-card {
    min-height: auto;
    padding: 16px;
  }

  .event-ribbon strong {
    font-size: clamp(26px, 9vw, 35px);
  }

  .next-title {
    font-size: clamp(50px, 17vw, 68px);
    max-width: 6.1ch;
  }
}


/* Restore the field-book scale: the app should feel like an Invitational dossier, not a shrunken dashboard. */
@media (min-width: 900px) {
  .screen {
    max-width: min(1880px, calc(100vw - 64px));
  }

  .app-shell {
    padding: 32px 32px calc(96px + env(safe-area-inset-bottom));
  }

  .app-bar {
    min-height: 92px;
    margin-bottom: 36px;
  }

  .brand-mark {
    width: 74px;
    height: 74px;
    border-radius: 18px;
  }

  .brand-lockup {
    gap: 18px;
  }

  .brand-lockup .eyebrow {
    margin-bottom: 6px;
    font-size: clamp(14px, 1.2vw, 18px);
    letter-spacing: .16em;
  }

  .brand-lockup h1 {
    font-size: clamp(54px, 5.1vw, 86px);
    line-height: .88;
  }

  .brand-subline {
    margin-top: 8px;
    font-size: clamp(13px, 1.05vw, 18px);
    line-height: 1;
  }

  .app-date {
    min-width: 84px;
    padding: 12px 10px;
    border-radius: 18px;
  }

  .app-date span,
  .app-date small {
    font-size: 12px;
  }

  .app-date strong {
    font-size: 36px;
  }

  .command-card {
    min-height: clamp(560px, calc(100svh - 250px), 740px);
    padding: clamp(34px, 3vw, 58px);
    margin-bottom: 28px;
    border-radius: 30px;
  }

  .command-card::after {
    inset: 22px;
    border-radius: 24px;
  }

  .command-content {
    max-width: 1040px;
  }

  .event-ribbon {
    max-width: 840px;
    margin-bottom: clamp(30px, 3.2vw, 52px);
    padding: 22px 28px;
    border-radius: 18px;
  }

  .event-ribbon span,
  .event-ribbon small {
    font-size: clamp(13px, 1vw, 18px);
    letter-spacing: .17em;
  }

  .event-ribbon strong {
    font-size: clamp(52px, 4.8vw, 84px);
    line-height: .88;
  }

  .command-content .eyebrow {
    margin-bottom: 18px;
    font-size: clamp(14px, 1.1vw, 18px);
  }

  .next-title {
    max-width: 9ch;
    font-size: clamp(92px, 8vw, 148px);
    line-height: .82;
  }

  .status-line {
    margin-top: 16px;
    font-size: clamp(24px, 2vw, 34px);
  }

  .hero-departure {
    width: min(100%, 500px);
    margin-top: 24px;
    padding: 22px 26px;
    border-radius: 18px;
  }

  .hero-departure span,
  .hero-departure small {
    font-size: clamp(13px, 1vw, 17px);
  }

  .hero-departure strong {
    margin-top: 12px;
    font-size: clamp(25px, 1.8vw, 34px);
  }

  .quick-grid {
    width: min(100%, 1120px);
    margin-top: 28px;
    gap: 16px;
  }

  .button {
    min-height: 66px;
    padding-inline: 26px;
  }

  .command-strip {
    margin-bottom: 28px;
  }
}

/* Locked field and final dossier polish. */
.command-strip small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font: 700 10px/1.25 var(--mono);
  letter-spacing: .03em;
  text-transform: none;
}

.event-ribbon strong {
  margin-bottom: 8px;
}

.plan-tabs-compact {
  margin-top: 0;
}

.locked-roster {
  gap: clamp(14px, 2vw, 20px);
}

.player-dossier {
  position: relative;
  min-height: 230px;
  padding: clamp(20px, 2.5vw, 28px);
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgba(216, 181, 109, .24), transparent 30%),
    linear-gradient(145deg, rgba(255, 249, 234, .92), rgba(242, 232, 205, .78));
}

.player-dossier::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -52px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(6, 59, 46, .12);
  border-radius: 999px;
  background: rgba(255, 253, 247, .42);
}

.player-dossier.under-review {
  border-color: rgba(200, 73, 53, .28);
}

.player-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.player-monogram {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(6, 59, 46, .18);
  border-radius: 18px;
  background: var(--club);
  color: var(--paper);
  font: 850 32px/.9 var(--serif);
  letter-spacing: -.05em;
  box-shadow: 0 14px 28px rgba(6, 59, 46, .16);
}

.player-index {
  min-width: 78px;
  display: grid;
  justify-items: end;
  color: var(--club);
  font: 850 34px/.9 var(--serif);
  letter-spacing: -.04em;
}

.player-index small {
  margin-bottom: 6px;
  color: var(--bunker-dark);
  font: 800 10px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.player-dossier h2 {
  position: relative;
  z-index: 1;
  max-width: 10ch;
  margin: 0;
  color: var(--club);
  font: 850 clamp(34px, 5vw, 58px)/.88 var(--serif);
  letter-spacing: -.065em;
}

.player-dossier h2 em {
  color: var(--bunker-dark);
  font-style: italic;
}

.player-dossier p {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: var(--muted);
  font: 800 14px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.investigation-note {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 18px;
  padding: 7px 9px;
  border: 1px solid rgba(200, 73, 53, .3);
  border-radius: 999px;
  color: var(--flag);
  background: rgba(200, 73, 53, .08);
  font: 800 10px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.matrix-note {
  margin-left: 2px;
  color: var(--flag);
}

.course-stat-grid small {
  min-height: 2.2em;
}

@media (min-width: 680px) {
  .locked-roster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .locked-roster {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .player-dossier {
    min-height: 205px;
  }

  .player-dossier h2 {
    max-width: 11ch;
  }
}

/* Roster typography correction for long official nicknames. */
.player-dossier {
  min-height: 238px;
}

.player-dossier h2 {
  max-width: 100%;
  font-size: clamp(29px, 3vw, 42px);
  line-height: .9;
  letter-spacing: -.055em;
}

.player-card-top {
  margin-bottom: 22px;
}

@media (min-width: 1120px) {
  .player-dossier {
    min-height: 255px;
  }
}

@media (min-width: 1500px) {
  .player-dossier h2 {
    font-size: clamp(34px, 2.7vw, 50px);
  }
}

/* Now hero field list + redesigned locked player cards. */
.hero-field-card {
  display: none;
}

@media (min-width: 1020px) {
  .command-card {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
    align-items: end;
    gap: clamp(24px, 4vw, 64px);
  }

  .hero-field-card {
    display: grid;
    align-self: end;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 249, 234, .18);
    border-radius: 18px;
    background: rgba(3, 28, 23, .44);
    box-shadow: inset 0 1px 0 rgba(255, 249, 234, .1), 0 22px 50px rgba(0, 0, 0, .2);
    backdrop-filter: blur(16px);
    animation: rise-in 620ms cubic-bezier(.2,.8,.2,1) 90ms both;
  }

  .hero-field-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 249, 234, .12);
  }

  .hero-field-head span {
    color: var(--bunker);
    font: 800 11px/1 var(--mono);
    letter-spacing: .18em;
    text-transform: uppercase;
  }

  .hero-field-head strong {
    color: var(--paper);
    font: 850 30px/.85 var(--serif);
    letter-spacing: -.05em;
  }

  .hero-field-list {
    display: grid;
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(255, 249, 234, .1);
    border-radius: 13px;
    background: rgba(255, 249, 234, .1);
  }

  .hero-player-row {
    display: grid;
    grid-template-columns: minmax(64px, .7fr) minmax(0, 1fr) 42px;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 9px 10px;
    background: rgba(3, 28, 23, .42);
  }

  .hero-player-row span {
    color: var(--paper);
    font: 800 14px/1 var(--sans);
  }

  .hero-player-row small {
    min-width: 0;
    overflow: hidden;
    color: rgba(255, 249, 234, .68);
    font: 700 10px/1 var(--mono);
    letter-spacing: .07em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .hero-player-row b {
    justify-self: end;
    color: var(--bunker);
    font: 850 18px/.9 var(--serif);
    letter-spacing: -.03em;
  }

  .hero-player-row.under-review b {
    color: #f2b2a7;
  }
}

/* Override the ornamental roster cards with a cleaner official-field system. */
.player-dossier {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-color: rgba(6, 59, 46, .15);
  background: rgba(255, 253, 247, .82);
  box-shadow: 0 16px 34px rgba(6, 59, 46, .07);
}

.player-dossier::after {
  display: none;
}

.player-dossier.under-review {
  border-color: rgba(200, 73, 53, .3);
  background: linear-gradient(145deg, rgba(255, 253, 247, .92), rgba(255, 244, 232, .82));
}

.player-card-top {
  margin: 0;
  padding: 14px 14px 0;
  align-items: center;
}

.player-monogram {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font: 850 22px/.9 var(--serif);
  box-shadow: none;
}

.player-index {
  min-width: auto;
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(6, 59, 46, .12);
  border-radius: 999px;
  background: rgba(6, 59, 46, .05);
  font: 850 24px/.9 var(--serif);
}

.player-index small {
  margin: 0;
  font-size: 8px;
  letter-spacing: .14em;
}

.player-card-body {
  display: grid;
  gap: 8px;
  padding: 18px 16px 16px;
}

.player-dossier h2 {
  max-width: none;
  margin: 0;
  color: var(--club);
  font: 800 clamp(22px, 2.8vw, 32px)/.96 var(--sans);
  letter-spacing: -.045em;
}

.player-dossier p {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 7px 10px;
  overflow: hidden;
  border: 1px solid rgba(155, 104, 56, .22);
  border-radius: 999px;
  background: rgba(155, 104, 56, .08);
  color: var(--bunker-dark);
  font: 800 11px/1 var(--mono);
  letter-spacing: .08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.investigation-note {
  margin: 0 16px 16px;
}

@media (min-width: 1120px) {
  .locked-roster {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .player-dossier {
    min-height: 170px;
  }
}

@media (max-width: 560px) {
  .player-dossier {
    min-height: 0;
  }

  .player-dossier h2 {
    font-size: 24px;
  }
}

/* Full-name roster format: First “Nickname” Last. */
.player-dossier h2 {
  max-width: 17ch;
  font-size: clamp(23px, 2.5vw, 34px);
  line-height: .98;
}

.player-dossier h2 em {
  color: var(--bunker-dark);
  font-style: italic;
  white-space: nowrap;
}

.hero-player-row {
  grid-template-columns: minmax(96px, .88fr) minmax(0, 1fr) 42px;
}

@media (max-width: 560px) {
  .player-dossier h2 {
    max-width: 18ch;
    font-size: 23px;
  }
}

/* Roster card readability pass: keep full quoted names intact and calm. */
.locked-roster {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)) !important;
}

.player-dossier {
  min-height: 148px !important;
}

.player-card-body {
  padding-top: 16px;
}

.player-dossier h2 {
  max-width: calc(100% - 4px);
  font-size: clamp(20px, 1.45vw, 26px);
  line-height: 1.06;
  letter-spacing: -.03em;
}

.player-dossier h2 em {
  white-space: normal;
}

@media (min-width: 1120px) {
  .locked-roster {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .player-dossier {
    min-height: 150px !important;
  }
}

@media (min-width: 1600px) {
  .locked-roster {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .player-dossier h2 {
    font-size: clamp(19px, 1.15vw, 24px);
  }
}

@media (max-width: 560px) {
  .locked-roster {
    grid-template-columns: 1fr !important;
  }

  .player-dossier h2 {
    font-size: 21px;
  }
}
