.event-site { background: var(--ivory); min-height: 100vh; display: flex; flex-direction: column; }
.ev-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 1.25rem; padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--line); background: #fff;
}
.ev-header-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem 1.25rem; flex: 1 1 16rem; min-width: 0;
}
.ev-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; }
.ev-org-login {
  font-size: 0.82rem; font-weight: 600; color: var(--stone); text-decoration: none; white-space: nowrap;
}
.ev-org-login:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.ev-brand img { display: block; height: 44px; width: 44px; object-fit: contain; }
.ev-club { display: block; font-family: var(--font-sc); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }
.ev-ename { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--forest); line-height: 1.2; }
.ev-header-top.ev-header-compact { justify-content: flex-end; }

/* Public event nav: one tidy row on wide screens, a Menu toggle + stacked list on phones */
.ev-nav { font-size: 0.92rem; font-weight: 600; }
.ev-nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; }
.ev-nav-list a { text-decoration: none; color: var(--forest); white-space: nowrap; }
.ev-nav-list a.on { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); }
.ev-nav-list a:hover { color: var(--gold-deep); }
.ev-nav-toggle { display: none; }
.ev-nav-group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.85rem; }
.ev-nav-group-label {
  font-family: var(--font-sc); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold-deep); white-space: nowrap;
}
.ev-nav-sub { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 0.85rem; }
.ev-main { width: min(720px, 100%); margin: 0 auto; padding: 1.5rem 1.25rem 3rem; flex: 1; }
.ev-hero { text-align: center; padding: 1.25rem 0 1.75rem; }
.ev-hero h1 { font-size: clamp(1.75rem, 6vw, 2.4rem); color: var(--club-accent, var(--forest)); }
.ev-meta { color: var(--stone); margin: 0.35rem 0 1.1rem; }
.ev-hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.ev-description { margin: 0 0 1.15rem; line-height: 1.65; }
.ev-details { margin: 0 0 1.25rem; }
.ev-details .ev-detail-label {
  display: block; font-family: var(--font-sc); font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep);
  margin-bottom: 0.15rem;
}
.ev-details > .list-plain > li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.ev-details > .list-plain > li:last-child { border-bottom: 0; }
.ev-welcome { border-top: 0; padding-top: 0; }
.ev-section { margin: 1.75rem 0; padding-top: 0.5rem; border-top: 1px solid var(--line); }
.ev-section h2 { margin-top: 1rem; }
.ev-footer { text-align: center; padding: 1.25rem; font-size: 0.85rem; color: var(--stone); border-top: 1px solid var(--line); background: var(--parchment); }
.ev-footer a { color: var(--forest); }
@media (max-width: 800px) {
  .ev-header { flex-direction: column; align-items: stretch; gap: 0.65rem; }
  .ev-header-top { width: 100%; flex: 0 0 auto; }
  .ev-nav { width: 100%; }
  .ev-nav-list { flex-direction: column; flex-wrap: nowrap; gap: 0; border-top: 1px solid var(--line); }
  .ev-nav-list li { border-bottom: 1px solid var(--line); }
  .ev-nav-list a { display: block; padding: 0.8rem 0.25rem; font-size: 1rem; white-space: normal; }
  .ev-nav-list a.on { text-decoration: none; box-shadow: inset 3px 0 0 var(--gold); padding-left: 0.75rem; }
  .ev-nav-group { flex-direction: column; align-items: stretch; gap: 0; }
  .ev-nav-group-label { display: block; padding: 0.8rem 0.25rem 0.2rem; }
  .ev-nav-sub { flex-direction: column; gap: 0; }
  .ev-nav-sub a { padding-left: 0.9rem; }
  .ev-nav.is-collapsible .ev-nav-toggle {
    display: flex; align-items: center; gap: 0.6rem; width: 100%; min-height: 48px;
    padding: 0.6rem 0.9rem; border: 1px solid var(--line); border-radius: 2px;
    background: var(--ivory); color: var(--forest); font: inherit; font-weight: 600; cursor: pointer; text-align: left;
  }
  .ev-nav-toggle-label { font-family: var(--font-sc); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); }
  .ev-nav-toggle-current { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ev-nav-toggle-icon { width: 0.6rem; height: 0.6rem; border-right: 2px solid var(--forest); border-bottom: 2px solid var(--forest); transform: rotate(45deg) translateY(-2px); transition: transform 0.15s; }
  .ev-nav.is-open .ev-nav-toggle-icon { transform: rotate(-135deg) translateY(-2px); }
  .ev-nav.is-collapsible .ev-nav-list { margin-top: 0.5rem; }
  .ev-nav.is-collapsible:not(.is-open) .ev-nav-list { display: none; }
}
.ev-hero { border-radius: 2px; padding: 1.75rem 1rem 2rem; margin: 0 0 0.5rem; }
.ev-hero-crest { height: 72px; width: auto; margin: 0 auto 0.75rem; display: block; }
.ev-partner { font-size: 0.92rem; color: var(--stone); margin: 0.5rem 0 0.75rem; }
.ev-partner a { color: var(--club-primary, var(--forest)); }
.ev-partner-logo { height: 28px; vertical-align: middle; margin-left: 0.35rem; }
.ev-footer .powered { font-size: 0.78rem; opacity: 0.85; }
.ev-footer .legal-links { margin: 0.45rem 0 0; font-size: 0.78rem; }
.btn { background: var(--club-primary, var(--forest)); border-color: var(--club-primary, var(--forest)); color: var(--club-on-primary, var(--ivory)); }
.ev-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.75rem, 1fr));
  gap: 0.55rem;
  margin: 1rem 0 1.25rem;
}
.ev-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0.35rem;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  color: var(--club-primary, var(--forest));
  border-radius: 4px;
  min-height: 3.6rem;
  box-shadow: 0 1px 0 rgba(29, 37, 32, 0.04);
}
.ev-slot .t { font-weight: 700; font-size: 0.95rem; }
.ev-slot .a { font-size: 0.72rem; color: var(--stone); text-transform: uppercase; letter-spacing: 0.06em; }
.ev-slot:hover { border-color: var(--club-accent, var(--forest)); background: var(--parchment); }
.ev-slots.ev-slots-detailed {
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .ev-slots.ev-slots-detailed { grid-template-columns: 1fr 1fr; }
}
.ev-slot.ev-slot-detailed {
  align-items: flex-start;
  text-align: left;
  padding: 0.75rem 0.85rem;
}
.ev-slot .d {
  font-size: 0.8rem;
  color: var(--stone);
  line-height: 1.35;
  margin-top: 0.15rem;
}
.ev-slot.ev-slot-booked,
.ev-slot.ev-slot-held { cursor: default; }
.ev-slot.ev-slot-booked:hover,
.ev-slot.ev-slot-held:hover {
  border-color: var(--line);
  background: #fff;
}
.ev-book-state { text-align: center; padding: 1.25rem 1rem; }
.ev-book-state .btn { margin-top: 0.75rem; }
.price-list li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.75rem;
  justify-content: space-between; padding: 0.35rem 0; border-bottom: 1px solid var(--line);
}
.price-list li:last-child { border-bottom: 0; }
.price-list .plabel { font-weight: 600; flex: 1 1 auto; }
.price-list .pprice {
  font-variant-numeric: tabular-nums; font-weight: 600;
  color: var(--club-primary, var(--forest));
}

/* Public tables (leaderboard) never widen the page */
.ev-main .card { overflow-x: auto; }

/* ——— On-the-day closed page ——— */
.on-the-day { text-align: center; max-width: 34rem; margin: 1.5rem auto; border-top: 4px solid var(--gold); }
.on-the-day-kicker { font-family: var(--font-sc); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); margin: 0; }
.on-the-day h1 { color: var(--forest); font-size: clamp(1.6rem, 6vw, 2.2rem); margin: 0.35rem 0 0.5rem; }
.on-the-day-date { font-size: 1.2rem; font-weight: 600; color: var(--forest); }

/* ——— Live scorecard (phone-first) ——— */
.sc-team { margin: 0.1rem 0 0.2rem; color: var(--forest); overflow-wrap: break-word; }
.sc-players { margin-top: 0; }
.sc-card { border-top: 4px solid var(--forest); }
.sc-hole-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.sc-hole-num { font-family: var(--font-display); font-weight: 700; color: var(--forest); font-size: clamp(3.5rem, 18vw, 5.5rem); line-height: 1; margin: 0; }
.sc-hole-num span { font-size: 0.4em; vertical-align: middle; }
.sc-hole-meta { font-size: 1.15rem; font-weight: 600; color: var(--gold-deep); margin: 0; }
.sc-inputs { display: grid; gap: 0.6rem; margin: 1rem 0; }
.sc-input { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; border-bottom: 1px solid var(--line); padding-bottom: 0.5rem; }
.sc-input label { font-size: 1.1rem; font-weight: 600; min-width: 0; overflow-wrap: break-word; }
.sc-input input { width: 5rem; min-height: 56px; font-size: 1.6rem; text-align: center; font-weight: 700; flex: 0 0 auto; }
.sc-save { min-height: 56px; font-size: 1.15rem; }
.sc-holes { margin: 1rem 0; }
.sc-nine-label { font-family: var(--font-sc); letter-spacing: 0.06em; text-transform: uppercase; color: var(--stone); font-size: 0.85rem; margin: 0.5rem 0 0.25rem; }
.sc-hole-row { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 0.3rem; }
.sc-hole-link {
  display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--forest); font-weight: 700; text-decoration: none;
}
.sc-hole-link.is-done { background: #E4EFE7; border-color: var(--success); }
.sc-hole-link.is-current { background: var(--forest); color: var(--ivory); border-color: var(--forest); }
.sc-summary summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.sc-table-wrap { overflow-x: auto; margin: 0.5rem 0; }
.sc-table { border-collapse: collapse; font-size: 0.85rem; font-variant-numeric: tabular-nums; min-width: 100%; }
.sc-table th, .sc-table td { padding: 0.3rem 0.35rem; text-align: center; border-bottom: 1px solid var(--line); }
.sc-table th[scope="row"] { text-align: left; white-space: nowrap; max-width: 8rem; overflow: hidden; text-overflow: ellipsis; }
.sc-table .sc-par td { color: var(--stone); }
.sc-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.sc-big { font-family: var(--font-display); font-size: clamp(1.5rem, 6vw, 2rem); color: var(--forest); font-weight: 700; margin: 0 0 0.25rem; }
.sc-handover, .sc-verified { border-top: 4px solid var(--gold); text-align: center; }
.sc-confirm { font-size: 1.1rem; min-height: 44px; }
.sc-full-nine legend { font-family: var(--font-sc); font-size: 1.1rem; color: var(--forest); }
.sc-full-row { margin-bottom: 0.75rem; }
.sc-full-name { font-weight: 700; margin: 0 0 0.3rem; overflow-wrap: break-word; }
.sc-full-grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 0.3rem; }
.sc-full-cell { display: flex; flex-direction: column; align-items: center; font-size: 0.75rem; color: var(--stone); }
.sc-full-cell small { display: none; }
.sc-full-cell input { width: 100%; min-height: 44px; text-align: center; font-size: 1.05rem; padding: 0.2rem; }
@media (max-width: 560px) {
  .sc-full-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ——— Leaderboard + results ——— */
.lb-table { width: 100%; }
.lb-table td { vertical-align: top; }
.lb-team { display: block; font-size: 0.8rem; color: var(--stone); }
.lb-table tr.is-provisional td { color: var(--ink); }
.lb-note { max-width: 40rem; }
.res-list { list-style: none; padding: 0; margin: 0; }
.res-list li { display: flex; align-items: baseline; gap: 0.75rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.res-list li.is-leader { font-weight: 700; }
.res-pos { flex: 0 0 1.5rem; color: var(--gold-deep); font-weight: 700; }
.res-name { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }
.res-name small { display: block; font-weight: 400; color: var(--stone); }
.res-val { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.sc-hole-name { flex-basis: 100%; margin: 0; font-family: var(--font-display); font-style: italic; color: var(--forest); font-size: 1.2rem; }
.sc-hole-note { flex-basis: 100%; margin: 0.25rem 0 0; font-weight: 700; color: var(--claret); overflow-wrap: anywhere; }
.sc-hole-note span { color: var(--stone); font-weight: 400; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; margin-right: 0.25rem; }
.sc-hole-link.has-note { box-shadow: inset 0 -3px 0 var(--claret); flex-direction: column; justify-content: flex-start; padding: 0.3rem 0.1rem 0.35rem; gap: 0.15rem; min-width: 0; }
.sc-full-note { display: block; color: var(--claret); font-weight: 700; font-size: 0.6rem; line-height: 1.1; text-align: center; overflow-wrap: anywhere; hyphens: auto; white-space: normal; max-width: 100%; min-width: 0; }
.sc-hole-link.is-current .sc-full-note { color: var(--ivory); }
.sc-hole-row { align-items: stretch; }
.sc-table th.has-note { vertical-align: top; min-width: 2.5rem; max-width: 4.5rem; }
.sc-table th .sc-full-note { margin-top: 0.15rem; }
.sc-rules summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.sc-rules .local-rules { border: 0; margin: 0; padding: 0; }
.sc-rules .local-rules h2 { display: none; }
.local-rules-text { white-space: pre-line; }
.sc-full-ref-cell { display: flex; flex-direction: column; align-items: center; font-size: 0.8rem; color: var(--forest); }
.sc-full-ref-cell small { color: var(--stone); font-size: 0.68rem; }
.sc-full-cell.is-suggested input { background: #FFF6DF; border-color: var(--gold); }
.sc-full-layout.has-photo { display: grid; gap: 1rem; }
.sc-photo { margin: 0; overflow: hidden; }
.sc-photo img { width: 100%; height: auto; display: block; transition: transform 0.2s; }
.sc-photo figcaption { font-size: 0.85rem; color: var(--stone); margin-top: 0.5rem; display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
@media (min-width: 900px) {
  .sc-full-layout.has-photo { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
  .sc-photo { position: sticky; top: 1rem; }
}

/* Public shop cards */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.25rem;
}
.shop-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.shop-card-fig {
  margin: 0;
  position: relative;
  background: var(--parchment);
}
.shop-card-fig img {
  display: block;
  width: 100%;
  height: 12rem;
  object-fit: contain;
  object-position: center;
}
.shop-illus {
  position: absolute;
  bottom: 0.4rem;
  left: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(31, 64, 44, 0.88);
  color: var(--ivory);
  padding: 0.15rem 0.45rem;
}
.shop-card-body { padding: 0.85rem 1rem 1rem; }
.shop-card-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--forest);
}
.shop-card-desc { margin: 0 0 0.6rem; color: var(--stone); font-size: 0.92rem; }
.shop-card-price { margin: 0; font-weight: 700; color: var(--gold-deep); }

/* Bundle: show photos of other catalogue items together */
.shop-bundle {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background: var(--parchment);
}
.shop-bundle .shop-card-fig {
  flex: 1 1 30%;
  min-width: 4.5rem;
  margin: 0;
}
.shop-bundle .shop-card-fig img {
  height: 7.5rem;
}

.shop-add {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.85rem;
}
.shop-add input[type="number"] {
  width: 4.5rem;
}
.shop-qty {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--forest);
  font-size: 0.92rem;
}
.shop-basket-link {
  margin: 0 0 1rem;
}
.shop-basket-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.shop-basket-table th,
.shop-basket-table td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.shop-basket-qty {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.shop-basket-qty input[type="number"] {
  width: 4.5rem;
}
.shop-basket-total {
  margin: 0.75rem 0;
  color: var(--gold-deep);
}
.shop-checkout-lines {
  padding-left: 1.2rem;
}
.shop-addons {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  background: #fff;
}
.shop-addons legend {
  color: var(--forest);
  font-weight: 700;
}
.shop-addons .addon-choice {
  margin: 0.35rem 0;
}
.shop-addons .addon-choice[hidden] {
  display: none;
}
.shop-addons .check {
  align-items: flex-start;
}
.shop-addons .check input[type="checkbox"] {
  width: auto;
  flex: 0 0 auto;
  margin-top: 0.3rem;
}
.shop-addons .check span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.shop-addons .addon-detail {
  margin: 0.5rem 0 1rem 1.4rem;
}
.shop-addons .shop-card-fig {
  max-width: 18rem;
}

.player-slots {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  background: #fff;
}
.player-slots legend {
  color: var(--forest);
  font-weight: 700;
}
.player-slot {
  margin: 0.45rem 0;
}

.sign-slot { margin-top: 0.75rem; }
.sign-slot legend { color: var(--forest); font-weight: 700; }

/* Tablet landscape and desktop: give public pages more width without stretching forms. */
@media (min-width: 900px) {
  .ev-header { padding: 0.95rem 2rem; }
  .ev-main { width: min(var(--content-width, 960px), 100%); padding: 2rem 1.75rem 3.5rem; }
  .ev-main-shop { width: min(var(--content-width-shop, 1120px), 100%); }
  .ev-details { padding: 1.35rem 1.6rem; }
  .ev-landing-actions { gap: 0.75rem; margin-top: 0.35rem; }
  .shop-grid {
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: 1.15rem;
  }
  .shop-card:has(.shop-bundle) { grid-column: span 2; }
  .shop-bundle .shop-card-fig { min-width: 7rem; flex: 1 1 0; }
  .shop-bundle .shop-card-fig img { height: 11rem; }
}

.player-meal-fields { flex-basis: 100%; display: grid; gap: 0.5rem; margin-top: 0.35rem; }
.meal-intro { margin: 0.75rem 0; }
.prize-list { margin: 0; }
.prize-list > div { display: grid; gap: 0.15rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.prize-list > div:last-child { border-bottom: 0; }
.prize-list dt { font-family: var(--font-sc); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); }
.prize-list dd { margin: 0; font-weight: 600; color: var(--forest); }
