/* ==========================================================================
   GAG website styles
   Base tokens and Overview page are carried over from the original wshw.ca.
   ========================================================================== */

:root {
  color-scheme: light;
  --color-green: #123f2d;
  --color-green-deep: #0d3122;
  --color-green-soft: #245744;
  --color-gold: #e3ae37;
  --color-paper: #f3f0e8;
  --color-ink: #1f3f32;
  --color-text: #17231d;
  --color-muted: #5f6d66;
  --color-line: #dfded7;
  --color-card: #ffffff;
  --color-danger: #b42318;
  --color-success: #13795b;
  --shadow-soft: 0 24px 70px rgba(22, 39, 32, 0.12);
  --shadow-card: 0 10px 34px rgba(15, 40, 30, 0.1);
  --radius: 8px;
  --radius-lg: 16px;
  --container: min(1220px, calc(100vw - 112px));
  --page: min(1080px, calc(100% - 32px));
  --header-height: 80px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--color-ink);
  background: var(--color-paper);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(227, 174, 55, 0.75);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  transform: translateY(-140%);
  border-radius: var(--radius);
  background: var(--color-green);
  color: #ffffff;
  padding: 10px 14px;
}

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

.sr-only,
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.honeypot {
  left: -9999px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(18, 63, 45, 0.08);
  background: rgba(243, 240, 232, 0.96);
  padding: 0 max(56px, calc((100vw - 1220px) / 2));
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: var(--color-green);
  font-weight: 800;
}

.brand-logo {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-stack {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-short {
  font-size: 1.2rem;
  line-height: 1;
}

.brand-name {
  max-width: 360px;
  color: #67736d;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  position: relative;
  color: #24362f;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 10px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 3px;
  background: var(--color-gold);
  content: "";
  opacity: 0;
  transform: scaleX(0.75);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-nav .nav-apply,
.header-apply {
  border-radius: 7px;
  background: var(--color-green);
  color: #ffffff;
  padding: 13px 26px;
}

.site-nav .nav-apply::after {
  display: none;
}

.site-nav .nav-apply:hover,
.site-nav .nav-apply:focus-visible,
.site-nav .nav-apply[aria-current="page"],
.header-apply:hover {
  background: var(--color-green-deep);
}

.site-nav .nav-apply[aria-current="page"] {
  box-shadow: inset 0 -3px 0 var(--color-gold);
}

.header-apply {
  display: none;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 10px 16px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  align-content: center;
  gap: 4px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-card);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-green);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  padding: 13px 24px;
  cursor: pointer;
  text-align: center;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.button:active {
  transform: translateY(1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.button-gold {
  background: var(--color-gold);
  color: var(--color-green-deep);
  box-shadow: 0 16px 28px rgba(184, 132, 26, 0.24);
}

.button-gold:hover,
.button-gold:focus-visible {
  background: #efbd49;
}

.button-green {
  background: var(--color-green);
  color: #ffffff;
}

.button-green:hover,
.button-green:focus-visible {
  background: var(--color-green-deep);
}

.button-light {
  border-color: rgba(18, 63, 45, 0.14);
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-green);
}

.button-light:hover,
.button-light:focus-visible {
  border-color: rgba(18, 63, 45, 0.3);
  background: #ffffff;
}

.button-outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

.button-outline-light:hover,
.button-outline-light:focus-visible {
  background: rgba(255, 255, 255, 0.13);
}

.button-small {
  min-height: 36px;
  padding: 7px 14px;
  font-size: 0.82rem;
}

/* ==========================================================================
   Overview (home)
   ========================================================================== */

.overview-hero {
  min-height: 640px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(12, 53, 36, 0.92), rgba(12, 53, 36, 0.58) 47%, rgba(12, 53, 36, 0.08)),
    linear-gradient(180deg, rgba(12, 53, 36, 0.12), rgba(12, 53, 36, 0.58)),
    url("/assets/images/golf-sunny-hero.jpg") center top / cover no-repeat;
  color: #ffffff;
}

.overview-hero__content {
  width: var(--container);
  margin: 0 auto;
  padding: 28px 0 106px;
}

.kicker,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  color: var(--color-gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.kicker::before {
  width: 36px;
  height: 2px;
  background: var(--color-gold);
  content: "";
}

.overview-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(4rem, 7vw, 6rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
}

.overview-hero h1 span,
.vision-panel h2 span,
.cta-section h2 span,
.quote-card em {
  color: var(--color-gold);
  font-style: normal;
}

.overview-hero p:not(.kicker) {
  max-width: 650px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  font-weight: 600;
}

.next-match {
  max-width: 760px;
  margin: 0 0 40px;
  padding: 22px 26px;
  border-left: 4px solid var(--color-gold);
  border-radius: 0 12px 12px 0;
  background: rgba(8, 38, 28, 0.7);
}

.next-match dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.next-match dl > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.next-match dt {
  color: var(--color-gold);
  font-weight: 800;
}

.next-match dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.next-match__title {
  font-size: 1.2rem;
  font-weight: 700;
}

.next-match__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.next-match [data-match-status]:not(:empty) {
  display: block;
  margin-top: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 42px;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #184c38;
  color: #ffffff;
}

.stat-item {
  min-height: 244px;
  display: grid;
  align-content: center;
  justify-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  gap: 54px;
  text-align: center;
}

.stat-item strong {
  color: var(--color-gold);
  font-size: 2.1rem;
  line-height: 1;
}

.stat-item span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.overview-section {
  padding: 116px 0;
}

.overview-grid,
.pathway-section,
.vision-section,
.cta-section {
  width: var(--container);
  margin: 0 auto;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: 110px;
}

.section-kicker {
  margin-bottom: 14px;
  font-size: 0.7rem;
}

.overview-section h2,
.vision-panel h2,
.cta-section h2 {
  margin: 0;
  color: var(--color-green);
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
}

.overview-grid > div > p:not(.section-kicker),
.vision-panel > p,
.cta-section p {
  margin: 28px 0 0;
  color: var(--color-muted);
  font-size: 1.03rem;
  font-weight: 600;
}

.quote-card {
  border-radius: 18px;
  background: #ffffff;
  padding: 48px;
  box-shadow: var(--shadow-soft);
}

.quote-card blockquote {
  margin: 0;
  color: var(--color-green-soft);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.32;
}

.quote-card::after {
  display: block;
  width: 74px;
  height: 3px;
  margin: 28px 0;
  background: var(--color-gold);
  content: "";
}

.quote-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.98rem;
  font-weight: 600;
}

.pathway-section {
  padding-top: 0;
}

.section-heading {
  margin-bottom: 56px;
}

.stage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.stage-card {
  min-height: 214px;
  border: 1px solid var(--color-line);
  border-top: 3px solid var(--color-gold);
  border-radius: 12px;
  background: #ffffff;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(22, 39, 32, 0.06);
}

.stage-card p {
  margin: 0 0 12px;
  color: var(--color-gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.stage-card h3 {
  margin: 0 0 14px;
  color: var(--color-green);
  font-size: 1.2rem;
  line-height: 1.2;
}

.stage-card span {
  color: var(--color-muted);
  font-size: 0.93rem;
  font-weight: 600;
}

.vision-section {
  padding: 88px 0 96px;
}

.vision-panel {
  max-width: 1160px;
  margin: 0 auto;
  border-radius: 18px;
  background:
    radial-gradient(circle at 82% 22%, rgba(227, 174, 55, 0.18), transparent 28%),
    linear-gradient(135deg, #123f2d, #0d3122);
  padding: 78px 74px;
  color: #ffffff;
}

.vision-panel h2 {
  max-width: 800px;
  color: #ffffff;
}

.vision-panel > p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.62);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.pill-row span {
  border: 1px solid rgba(227, 174, 55, 0.6);
  border-radius: 999px;
  color: var(--color-gold);
  font-size: 0.76rem;
  font-weight: 900;
  padding: 8px 20px;
}

.cta-section {
  padding: 128px 0 150px;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(3.4rem, 6vw, 5.1rem);
}

.cta-section p {
  margin-top: 24px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.cta-actions .button {
  min-width: 178px;
}

.site-footer {
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  padding: 24px 20px;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.dark-footer {
  border-top: 0;
  background: var(--color-green-deep);
  color: rgba(255, 255, 255, 0.45);
}

.dark-footer strong {
  color: var(--color-gold);
}

/* ==========================================================================
   Inner pages: golf photo background + glass cards
   ========================================================================== */

.glass-page {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  background: #dcecf3;
  color: var(--color-text);
}

/* Fixed layer instead of background-attachment: fixed (broken on iOS). */
.glass-page::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.55) 55%, rgba(243, 240, 232, 0.9)),
    url("/assets/images/golf-sunny-hero.jpg") center top / cover no-repeat;
  content: "";
}

.glass-page main {
  flex: 1;
}

.glass-page .site-footer {
  border-top-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.62);
  color: var(--color-muted);
  backdrop-filter: blur(18px);
  font-size: 0.85rem;
}

.page-wrap {
  display: grid;
  width: var(--page);
  gap: 16px;
  margin: 0 auto;
  padding: 22px 0 72px;
}

.glass-card {
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.card-label {
  margin: 0 0 6px;
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.skeleton {
  display: inline-block;
  min-width: 8ch;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(18, 63, 45, 0.06), rgba(18, 63, 45, 0.12), rgba(18, 63, 45, 0.06));
  background-size: 200% 100%;
  color: transparent !important;
  animation: shimmer 1.2s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.notice {
  border-radius: 12px;
  background: rgba(227, 174, 55, 0.14);
  border: 1px solid rgba(227, 174, 55, 0.45);
  color: #6b4c09;
  padding: 14px 16px;
  font-weight: 600;
}

.notice-error {
  background: rgba(180, 35, 24, 0.08);
  border-color: rgba(180, 35, 24, 0.3);
  color: var(--color-danger);
}

/* ---------- Championship ---------- */

.event-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.event-logo {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(18, 63, 45, 0.15);
}

.event-head__text {
  min-width: 0;
  flex: 1;
}

.event-head h1 {
  margin: 0;
  color: var(--color-text);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 900;
  line-height: 1.2;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 10px 0 0;
  padding: 0;
  color: var(--color-muted);
  font-size: 0.88rem;
  font-weight: 600;
  list-style: none;
}

.event-meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(18, 63, 45, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-green);
  cursor: pointer;
}

.icon-button:hover {
  background: #ffffff;
  border-color: rgba(18, 63, 45, 0.3);
}

.icon-button .icon {
  width: 18px;
  height: 18px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  background: rgba(19, 121, 91, 0.12);
  color: var(--color-success);
}

.status-pill::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-pill.is-closed {
  background: rgba(95, 109, 102, 0.14);
  color: var(--color-muted);
}

.action-card {
  display: grid;
  gap: 14px;
}

.action-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}

.action-row .button {
  min-height: 54px;
  font-size: 1rem;
}

.action-hint {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.86rem;
}

/* Championship content blocks */

.block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--color-green);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 900;
  line-height: 1.25;
}

.block-title .icon {
  width: 22px;
  height: 22px;
  color: var(--color-gold);
}

.eyebrow {
  margin: 0 0 6px;
  color: #a77a12;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.rich-text {
  max-width: 72ch;
  color: #2b3a33;
  font-size: 1rem;
  line-height: 1.7;
}

.rich-text p {
  margin: 0 0 12px;
}

.rich-text > :last-child {
  margin-bottom: 0;
}

.rich-text strong {
  color: var(--color-green);
}

.rich-text ul,
.rich-text ol {
  margin: 0 0 12px;
  padding-left: 1.3em;
}

.rich-text a {
  color: var(--color-green-soft);
  text-decoration: underline;
}

.invite-card {
  border-left: 4px solid var(--color-gold);
}

.info-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr);
  gap: 20px;
  align-items: start;
}

.info-list {
  margin: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

.info-list > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  border-bottom: 1px solid rgba(18, 63, 45, 0.08);
  padding: 12px 16px;
}

.info-list > div:last-child {
  border-bottom: 0;
}

.info-list dt {
  color: var(--color-muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 2px;
}

.info-list dd {
  margin: 0;
  color: var(--color-text);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.fee-card {
  display: grid;
  gap: 10px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 85% 15%, rgba(227, 174, 55, 0.22), transparent 45%),
    linear-gradient(145deg, var(--color-green), var(--color-green-deep));
  color: #ffffff;
  padding: 22px;
}

.fee-card p {
  margin: 0;
}

.fee-card__label {
  color: var(--color-gold);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.fee-card__amount {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.1;
}

.fee-card__note {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.55;
}

.fee-card .button {
  margin-top: 6px;
}

.fee-card .button-light {
  color: var(--color-muted);
}

.prize-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr);
  gap: 20px;
  align-items: stretch;
}

.prize-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prize-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(18, 63, 45, 0.08);
  border-left: 4px solid var(--color-gold);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  padding: 12px 16px;
}

.prize-list li:first-child {
  border-left-color: var(--color-green);
  background: #fffaf0;
}

.prize-place {
  color: var(--color-text);
  font-weight: 800;
}

.prize-value {
  color: #8a6310;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.prize-total {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  border: 2px solid var(--color-gold);
  border-radius: 14px;
  background: #fffaf0;
  padding: 22px;
  text-align: center;
}

.prize-total span {
  color: var(--color-muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.prize-total strong {
  color: var(--color-green);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.story-grid:empty {
  display: none;
}

.story-card .block-title {
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(227, 174, 55, 0.5);
}

.story-card .rich-text {
  font-size: 0.96rem;
}

.signoff {
  display: grid;
  gap: 18px;
  text-align: center;
}

.signoff__tagline {
  margin: 0;
  color: var(--color-green);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-style: italic;
  font-weight: 900;
}

.signoff__tagline:empty {
  display: none;
}

.signatories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 48px;
}

.signatory {
  display: grid;
  align-content: start;
  gap: 2px;
  color: var(--color-muted);
  font-size: 0.88rem;
}

.signatory strong {
  color: var(--color-text);
  font-size: 1.02rem;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.contact-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid rgba(18, 63, 45, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: var(--color-green);
  font-weight: 800;
  padding: 8px 18px;
}

.contact-row a:hover {
  border-color: var(--color-green-soft);
}

.mobile-cta {
  display: none;
}

/* ---------- Schedule ---------- */

.schedule-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
}

.schedule-head h1 {
  margin: 0;
  color: var(--color-text);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 900;
  line-height: 1.2;
}

.schedule-head p {
  margin: 4px 0 0;
  color: var(--color-muted);
  font-weight: 600;
}

.schedule-card {
  overflow: hidden;
  overflow: clip; /* clip (not hidden) keeps the sticky table header working */
  padding: 0;
}

.schedule-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  border-bottom: 1px solid rgba(18, 63, 45, 0.1);
  background: rgba(236, 239, 238, 0.85);
  padding: 12px 18px;
}

.schedule-day {
  margin: 0;
  color: var(--color-text);
  font-weight: 800;
}

.schedule-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.schedule-filters label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.input-sm {
  min-height: 38px;
  border: 1px solid rgba(18, 63, 45, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: var(--color-text);
  padding: 6px 10px;
  font-size: 0.9rem;
}

.tee-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 0.92rem;
}

.tee-table th {
  position: sticky;
  top: var(--header-height);
  z-index: 1;
  background: #8e949a;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 12px 10px;
  text-align: left;
  white-space: nowrap;
}

.tee-table th.num,
.tee-table td.num {
  text-align: right;
}

.tee-table th button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  padding: 0;
  cursor: pointer;
}

.tee-table td {
  border-bottom: 1px solid #eef0ef;
  padding: 9px 10px;
  vertical-align: middle;
}

.tee-table tbody tr:hover {
  background: #f6faf8;
}

.tee-table tr.group-start td {
  border-top: 2px solid #e2e6e4;
}

.tee-table .dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 10px;
  border-radius: 50%;
  background: #2fa84f;
  vertical-align: middle;
}

.tee-table .name {
  font-weight: 700;
  text-transform: none;
}

.tee-groups {
  display: none;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 48px 20px;
  color: var(--color-muted);
  text-align: center;
}

.empty-state strong {
  color: var(--color-text);
  font-size: 1.1rem;
}

.empty-state .icon {
  width: 36px;
  height: 36px;
  color: var(--color-gold);
}

/* ---------- Apply ---------- */

.form-card {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 32px);
}

.form-card h1 {
  margin: 0;
  color: var(--color-text);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 900;
  line-height: 1.2;
}

.form-card > p {
  margin: 4px 0 0;
  color: var(--color-muted);
}

.event-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 4px;
  border: 1px solid rgba(18, 63, 45, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  padding: 10px 12px;
}

.event-chip img {
  width: 40px;
  height: 40px;
}

.event-chip strong {
  display: block;
  color: var(--color-text);
  line-height: 1.3;
}

.event-chip span {
  color: var(--color-muted);
  font-size: 0.85rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  margin-top: 20px;
}

.field {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.field-full {
  grid-column: 1 / -1;
}

.field > label,
.field > .label {
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 800;
}

.field .req {
  color: var(--color-danger);
}

.field .optional {
  color: var(--color-muted);
  font-weight: 500;
}

.input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #dfe3e1;
  border-radius: 12px;
  background: rgba(250, 250, 251, 0.95);
  color: var(--color-text);
  padding: 11px 14px;
  font-size: 1rem; /* >= 16px so iOS does not zoom on focus */
  outline: none;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

textarea.input {
  min-height: 96px;
  resize: vertical;
}

select.input {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-muted) 50%),
    linear-gradient(135deg, var(--color-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 15px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px;
  padding-right: 36px;
}

.input:focus {
  border-color: var(--color-green-soft);
  box-shadow: 0 0 0 3px rgba(36, 87, 68, 0.15);
}

.input::placeholder {
  color: #8b948f;
}

.field.has-error .input,
.field.has-error .segmented {
  border-color: var(--color-danger);
}

.field-error {
  min-height: 0;
  margin: 0;
  color: var(--color-danger);
  font-size: 0.8rem;
  font-weight: 600;
}

.field-hint {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.8rem;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  min-height: 48px;
  border: 1px solid #dfe3e1;
  border-radius: 12px;
  background: rgba(250, 250, 251, 0.95);
  padding: 4px;
}

.segmented label {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--color-text);
  font-weight: 700;
  cursor: pointer;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented label:has(input:checked) {
  background: var(--color-green);
  color: #ffffff;
}

.segmented label:has(input:focus-visible) {
  outline: 3px solid rgba(227, 174, 55, 0.75);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--color-text);
  font-size: 0.92rem;
  cursor: pointer;
}

.check input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--color-green);
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.form-actions .button {
  min-height: 52px;
}

.form-status {
  margin: 14px 0 0;
}

.form-status:empty {
  display: none;
}

.success-panel {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 24px 0 8px;
  text-align: center;
}

.success-panel .check-circle {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: rgba(19, 121, 91, 0.12);
  color: var(--color-success);
}

.success-panel .check-circle .icon {
  width: 32px;
  height: 32px;
}

.success-panel h2 {
  margin: 8px 0 0;
  color: var(--color-text);
}

.success-panel p {
  max-width: 520px;
  margin: 0;
  color: var(--color-muted);
}

.reference {
  border-radius: 10px;
  background: rgba(18, 63, 45, 0.07);
  color: var(--color-green);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 8px 18px;
}

.success-panel .form-actions {
  width: min(460px, 100%);
}

.not-found {
  display: grid;
  min-height: 70vh;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: var(--color-green);
  text-align: center;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 40;
  transform: translateX(-50%);
  border-radius: 10px;
  background: var(--color-green-deep);
  color: #ffffff;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  :root {
    --container: min(100vw - 40px, 1220px);
    --header-height: 68px;
  }

  .site-header {
    gap: 10px;
    padding: 0 16px;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .brand-name {
    max-width: min(40vw, 300px);
    font-size: 0.56rem;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .header-apply {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: calc(var(--header-height) + 6px) 12px auto 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border: 1px solid rgba(18, 63, 45, 0.12);
    border-radius: 14px;
    background: rgba(243, 240, 232, 0.98);
    padding: 10px;
    box-shadow: var(--shadow-soft);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a,
  .site-nav .nav-apply {
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 1rem;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav a[aria-current="page"]:not(.nav-apply) {
    background: rgba(227, 174, 55, 0.18);
  }

  .overview-hero {
    min-height: 560px;
  }

  .overview-hero__content {
    padding: 20px 0 80px;
  }

  .overview-hero h1 {
    font-size: clamp(2.7rem, 11vw, 4.4rem);
  }

  .overview-hero p:not(.kicker) {
    font-size: 1.05rem;
  }

  .stats-band {
    grid-template-columns: 1fr 1fr;
  }

  .stage-grid {
    grid-template-columns: 1fr 1fr;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .stat-item {
    min-height: 140px;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .overview-section {
    padding: 72px 0;
  }

  .overview-grid {
    gap: 40px;
  }

  .stage-grid {
    gap: 16px;
  }

  .vision-section {
    padding: 48px 0 64px;
  }

  .vision-panel {
    padding: 44px 28px;
  }

  .cta-section {
    padding: 72px 0 96px;
  }
}

@media (max-width: 720px) {
  .tee-table {
    display: none;
  }

  .tee-groups {
    display: grid;
    gap: 10px;
    background: #f3f5f4;
    padding: 12px;
  }

  .tee-group {
    overflow: hidden;
    border: 1px solid #e3e7e5;
    border-radius: 12px;
    background: #ffffff;
  }

  .tee-group__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-green);
    color: #ffffff;
    padding: 8px 14px;
    font-weight: 800;
  }

  .tee-group__head span {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    font-weight: 700;
  }

  .tee-group ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .tee-group li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
    border-top: 1px solid #eef0ef;
    padding: 10px 14px;
  }

  .tee-group li:first-child {
    border-top: 0;
  }

  .tee-group .p-name {
    font-weight: 800;
  }

  .tee-group .p-club {
    grid-column: 1;
    color: var(--color-muted);
    font-size: 0.82rem;
  }

  .tee-group .p-stats {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    color: var(--color-muted);
    font-size: 0.78rem;
    text-align: right;
    line-height: 1.4;
  }

  .tee-group .p-stats b {
    color: var(--color-text);
  }

  .schedule-toolbar {
    padding: 12px;
  }

  .schedule-filters,
  .schedule-filters label {
    width: 100%;
  }

  .schedule-filters .input-sm {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .page-wrap {
    padding: 14px 0 96px;
    gap: 12px;
  }

  .glass-card {
    border-radius: 14px;
    padding: 16px;
  }

  .event-logo {
    width: 48px;
    height: 48px;
  }

  .action-row {
    grid-template-columns: 1fr 1fr;
  }

  .info-layout,
  .prize-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .info-list > div {
    grid-template-columns: 88px 1fr;
    padding: 11px 12px;
  }

  .prize-list li {
    padding: 11px 12px;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .signatories {
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-actions {
    grid-template-columns: 1fr;
  }

  .form-actions .button-primary-first {
    order: -1;
  }

  .mobile-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 15;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    border-top: 1px solid rgba(18, 63, 45, 0.1);
    background: rgba(243, 240, 232, 0.96);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    backdrop-filter: blur(16px);
  }

  .mobile-cta .button {
    min-height: 48px;
  }
}

@media (max-width: 560px) {
  .brand-short {
    font-size: 1rem;
  }

  .brand-name {
    display: none;
  }

  .stats-band,
  .stage-grid {
    grid-template-columns: 1fr;
  }

  .overview-hero h1,
  .overview-section h2,
  .vision-panel h2,
  .cta-section h2 {
    overflow-wrap: anywhere;
  }

  .overview-section h2,
  .vision-panel h2 {
    font-size: 2.1rem;
  }

  .cta-section h2 {
    font-size: 2.8rem;
  }

  .kicker,
  .section-kicker {
    letter-spacing: 0.14em;
  }

  .next-match {
    padding: 18px;
  }

  .next-match__actions .button {
    flex: 1;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .quote-card,
  .stage-card {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
