/* The club app's own Home and Course screens (js/screens/club-home.js, club-course.js). Direction: the club's colour is the ground,
   cream is the type, brass-style accent marks the one thing to look at; the content cards are paper so the club's colour stays the frame. */

/* ── Home ── */
html[data-club] .club-home .ch-hero { height: clamp(272px, 33svh, 310px); }
html[data-club] .club-home .hero .photo { background-image: linear-gradient(180deg, color-mix(in srgb, var(--club-deep) 80%, transparent), color-mix(in srgb, var(--club-deep) 25%, transparent) 50%, color-mix(in srgb, var(--club-deep) 92%, transparent)), var(--club-hero, linear-gradient(135deg, var(--club-ground), var(--club-deep))); }
.ch-hello { position: absolute; left: 16px; right: 16px; bottom: 40px; z-index: 2; color: var(--club-on); display: grid; gap: 8px; }
.ch-today { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 14px; color: color-mix(in srgb, var(--club-on) 88%, transparent); }
.ch-today b { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--club-on); }
.ch-today b i { width: 9px; height: 9px; border-radius: 50%; background: #62D08A; flex: none; }
.ch-today b.shut i { background: #E77A6E; }
.club-home .ch-sheet { padding-top: 18px; }
.club-home .ch-sheet .inner { display: grid; gap: 12px; align-content: start; }

.ch-k { display: block; font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }

.ch-start, .ch-resume { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border-radius: 16px; text-decoration: none; font: 650 17px/1 var(--sans); background: var(--club-acc); color: var(--club-deep); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .55); }
.ch-start svg, .ch-resume svg { width: 24px; height: 24px; }
.ch-resume { justify-content: flex-start; padding: 0 18px; }
.ch-resume span { display: grid; gap: 3px; } .ch-resume small { font-weight: 500; opacity: .8; }
/* "Carry on with your round" on the running-water animation (Luke, 2026-11-16: the same stream the HNA link uses), under a dark wash so the white words read. */
.ch-resume { background: linear-gradient(90deg, rgba(6, 18, 30, .6), rgba(6, 18, 30, .3)), url(/img/hna-stream.webp) center / cover, #3B4A55; color: #FFFFFF; min-height: 72px; overflow: hidden; }
.ch-resume span b, .ch-resume small { color: #FFFFFF; text-shadow: 0 1px 3px rgba(0, 20, 8, .5); } .ch-resume small { opacity: .9; }

.ch-card { padding: 16px; border-radius: 18px; background: #F3F1EA; color: #17201B; border: 1px solid rgba(255, 255, 255, .5); display: grid; gap: 6px; }
.ch-card .ch-k { color: #5B4A22; margin-bottom: 2px; }
.ch-card h3 { margin: 0; font: 600 21px/1.2 var(--serif); }
.ch-sub { margin: 0; font-size: 14px; color: #4A554E; }
.ch-none { margin: 0; font-size: 14px; color: #4A554E; }
.ch-tt { margin: 4px 0 0; font-size: 14px; white-space: pre-line; color: #17201B; font-variant-numeric: tabular-nums; }
.ch-sample { margin: 2px 0 0; font-size: 12px; color: #6B756E; font-style: italic; }
.ch-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.ch-btns .btn { min-height: 46px; display: grid; place-items: center; text-decoration: none; }
.ch-btns .btn:only-child { grid-column: 1 / -1; }
.ch-card .btn { background: transparent; color: #17201B; border-color: #C9C6B8; }
.ch-card .btn.primary { background: var(--club-ground); border-color: var(--club-ground); color: var(--club-on); }
.ch-board ol { list-style: none; margin: 4px 0 6px; padding: 0; }
.ch-board li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: baseline; padding: 8px 0; border-top: 1px solid #DEDBCF; font-size: 15px; }
.ch-board li.me { font-weight: 700; }
.ch-board .r { color: #6B756E; font-variant-numeric: tabular-nums; }
.ch-board .num { font: 600 17px/1 var(--serif); }
.ch-board .btn { justify-self: start; min-height: 44px; padding: 0 16px; }
.ch-links { display: flex; justify-content: center; gap: 26px; padding: 6px 0 0; }
.ch-links a { color: var(--club-on); font-weight: 600; font-size: 15px; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }

/* ── Course ── */
.club-course { padding-bottom: calc(var(--tab-h) + var(--sab) + 28px); }
.cc-head { display: flex; align-items: center; gap: 12px; padding: calc(var(--sat) + 14px) 16px 34px; background: var(--club-ground); color: var(--club-on); }
.cc-head h1 { margin: 0; font: 500 26px/1.05 var(--serif); letter-spacing: -.01em; }
.cc-head small { display: block; margin-top: 3px; font: 650 10px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; opacity: .82; }
.cc-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin: -22px 16px 0; position: relative; padding: 4px; background: var(--club-deep); border-radius: 12px; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .6); }
.cc-seg button { min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: color-mix(in srgb, var(--club-on) 72%, var(--club-deep)); font: 650 14px/1 var(--sans); }
.cc-seg button[aria-selected="true"] { background: var(--club-on); color: var(--club-deep); }
.cc-body { margin: 8px 0 0; padding: 0 16px; max-width: 560px; margin-inline: auto; }
.cc-hole { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; width: 100%; padding: 11px 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .14); background: transparent; color: #fff; text-align: left; font: inherit; }
button.cc-hole { cursor: pointer; }
.cc-disc { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--club-true); color: var(--club-true-ink); font: 600 19px/1 var(--serif); border: 2px solid color-mix(in srgb, var(--club-acc) 75%, transparent); }
.cc-mid { display: grid; gap: 3px; min-width: 0; }
.cc-mid b { font-size: 15px; }
.cc-mid small { font-size: 13px; color: rgba(255, 255, 255, .7); }
.cc-d { font: 500 22px/1 var(--serif); font-variant-numeric: tabular-nums; text-align: right; }
.cc-d small { font: 650 11px/1 var(--sans); margin-left: 3px; color: rgba(255, 255, 255, .65); }
.cc-tour { display: grid; gap: 14px; padding: 18px 0; color: #fff; }
.cc-tour p { margin: 0; color: rgba(255, 255, 255, .82); }
.cc-tour .btn { min-height: 52px; gap: 10px; }
.cc-teepick { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 14px; }
.cc-teepick button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; font: 600 14px/1 var(--sans); }
.cc-teepick button[aria-checked="true"] { background: var(--club-on); color: var(--club-deep); border-color: var(--club-on); }
.cc-teepick i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .3); }
.cc-card { width: 100%; border-collapse: collapse; color: #fff; font-variant-numeric: tabular-nums; }
.cc-card th { font: 700 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-align: right; padding: 8px 6px; color: rgba(255, 255, 255, .6); }
.cc-card th:first-child, .cc-card td:first-child { text-align: left; }
.cc-card td { text-align: right; padding: 9px 6px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 15px; }
.cc-card .cc-sub td, .cc-card .cc-total td { font-weight: 700; background: color-mix(in srgb, var(--club-on) 8%, transparent); }
.cc-card .cc-total td { color: var(--club-acc); }
.cc-play { padding: 16px; max-width: 560px; margin: 0 auto; }
.cc-play .btn { width: 100%; min-height: 54px; gap: 10px; background: var(--club-acc); border-color: var(--club-acc); color: var(--club-deep); }
.club-course .powered { color: rgba(255, 255, 255, .7); } .club-course .powered b { color: #fff; }

/* ── Club tab ── */
.club-hub { padding-bottom: calc(var(--tab-h) + var(--sab) + 28px); }
.chub-head { display: flex; align-items: center; gap: 12px; padding: calc(var(--sat) + 14px) 16px 16px; background: var(--club-ground); color: var(--club-on); }
.chub-head h1 { margin: 0; font: 500 26px/1.05 var(--serif); letter-spacing: -.01em; }
.chub-head small { display: block; margin-top: 3px; font: 650 10px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; opacity: .82; }
/* Back, top left on every club screen you go into (a home-screen app has no browser Back). Thumb-sized, quiet, never glowing. */
.chub-back { position: absolute; z-index: 3; top: calc(var(--sat) + 10px); left: 12px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  color: var(--club-on); background: color-mix(in srgb, var(--club-deep) 70%, transparent); border: 1px solid rgba(255, 255, 255, .28); text-decoration: none; }
.chub-back .ico { width: 22px; height: 22px; }
.chub-back:active { transform: scale(.96); }
.chub-status { display: flex; align-items: center; gap: 9px; padding: 12px 16px; font-weight: 650; font-size: 14px; color: var(--club-on); background: var(--club-deep); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.chub-status i { width: 9px; height: 9px; border-radius: 50%; background: #62D08A; flex: none; }
.chub-status.shut i { background: #E77A6E; }
.chub-body { display: grid; gap: 12px; max-width: 560px; margin: 0 auto; padding: 16px; align-content: start; }
.chub-card { padding: 16px; border-radius: 18px; background: #F3F1EA; color: #17201B; display: grid; gap: 6px; }
.chub-card .ch-k { color: #5B4A22; margin-bottom: 2px; }
.chub-card h3 { margin: 0; font: 600 20px/1.2 var(--serif); }
.chub-card .btn { background: transparent; color: #17201B; border-color: #C9C6B8; min-height: 46px; }
.chub-card .btn.primary { background: var(--club-ground); border-color: var(--club-ground); color: var(--club-on); }
.chub-card #chub-mem { justify-self: start; padding: 0 16px; }
.chub-live { background: linear-gradient(135deg, var(--club-ground), var(--club-deep)); color: var(--club-on); border: 1px solid color-mix(in srgb, var(--club-acc) 45%, transparent); }
.chub-live .ch-k { color: var(--club-acc); }
.chub-live .ch-sub, .chub-live .ch-tt { color: color-mix(in srgb, var(--club-on) 82%, transparent); }
.chub-live .btn { color: var(--club-on); border-color: color-mix(in srgb, var(--club-on) 40%, transparent); }
.chub-live .btn.primary { background: var(--club-on); border-color: var(--club-on); color: var(--club-deep); }
.chub-live-h { display: flex; align-items: center; justify-content: space-between; }
.chub-live-h em { display: inline-flex; align-items: center; gap: 6px; font: 700 10px/1 var(--sans); font-style: normal; letter-spacing: .14em; padding: 4px 9px; border: 1px solid color-mix(in srgb, var(--club-on) 40%, transparent); border-radius: 999px; }
.chub-live-h em i { width: 6px; height: 6px; border-radius: 50%; background: #62D08A; }
.chub-board { list-style: none; margin: 2px 0 6px; padding: 0; }
.chub-board li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: baseline; padding: 8px 0; border-top: 1px solid #DEDBCF; font-size: 15px; }
.chub-board li.me { font-weight: 700; }
.chub-board .r { color: #6B756E; font-variant-numeric: tabular-nums; }
.chub-board .num { font: 600 17px/1 var(--serif); }
.chub-item + .chub-item { border-top: 1px solid #DEDBCF; padding-top: 10px; margin-top: 4px; }
.chub-rules { margin: 2px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.chub-links { display: grid; gap: 0; border-radius: 18px; overflow: hidden; background: #F3F1EA; }
.chub-row { display: grid; grid-template-columns: 22px 1fr 18px; gap: 12px; align-items: center; min-height: 56px; padding: 8px 16px; color: #17201B; text-decoration: none; border-top: 1px solid #DEDBCF; }
.chub-row:first-child { border-top: 0; }
.chub-row svg { width: 20px; height: 20px; }
.chub-row span { display: grid; gap: 2px; } .chub-row b { font-size: 15px; } .chub-row small { color: #4A554E; font-size: 13px; }
.chub-empty { color: rgba(255, 255, 255, .8); text-align: center; padding: 18px 0; }
.club-hub .powered { color: rgba(255, 255, 255, .7); } .club-hub .powered b { color: #fff; }

/* Today's pin on the approach shot: the one chip in the club's accent. */
.pf-chip.pf-pin { border-color: var(--club-acc, #C9A14A); }
.pf-chip.pf-pin i { color: var(--club-acc, #C9A14A); }

/* Dusk screens paint every h3 white; the cards on the Club tab are paper (and the live comp card is the club colour), so they set their own. */
.screen.dusk .chub-card h3 { color: #17201B; }
.screen.dusk .chub-live h3 { color: var(--club-on); }

/* Play away: the way from a club's app to every other Scratch course. */
.cc-away { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin-top: 6px; color: rgba(255, 255, 255, .85); text-underline-offset: 4px; font-weight: 600; }
.cc-away small { font-weight: 500; opacity: .7; }
.me-club-app .me-club-away { box-sizing: border-box; }

/* Plain Scratch: a course that has its club's own app. */
.cd-official { display: grid; gap: 8px; margin: 14px 0 0; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); }
.cd-official-b { font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass, #C9A14A); }
.cd-official .btn { min-height: 46px; display: grid; place-items: center; text-decoration: none; }

.cc-mid .cc-sp { font-style: italic; color: var(--club-acc); }

/* Visitors' book and longest drive */
.cv-l { display: block; font-size: 14px; color: #4A554E; margin: 12px 0 6px; }
.cv-in { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #C9C6B8; border-radius: 12px; background: #fff; color: #17201B; font: 400 17px var(--sans); }
.cv-ck { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; margin: 14px 0 4px; font-size: 14px; color: #17201B; }
.cv-ck input { width: 22px; height: 22px; margin: 2px 0 0; }
.chub-card form .btn, .cd-card .btn { margin-top: 12px; width: 100%; min-height: 50px; display: grid; place-items: center; text-decoration: none; }
.cv-msg { margin: 10px 0 0; font-size: 14px; min-height: 1.3em; color: #4A554E; } .cv-msg.err { color: #B3261E; }
.cv-thanks, .cd-ok { margin: 6px 0; font: 600 20px/1.3 var(--serif); }
.cd-num { margin: 4px 0 0; font-size: 22px; } .cd-num b { font: 500 56px/1 var(--serif); } .cd-num small { display: block; font-size: 14px; color: #4A554E; }
.chub-board .num small { font: 500 12px var(--sans); color: #6B756E; margin-left: 2px; }

/* ── Weather card (the real sky for the course, sun rays, 10-minute recheck; shares .day / .day-sky / .day-rays with the Scratch Home) ── */
.club-home .ch-day { margin: 0; min-height: 132px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; color: #fff; border-radius: 18px; }
.club-home .ch-day .day-line { margin: 0; font-size: 15px; line-height: 1.35; }
.club-home .ch-day .day-note { margin: 0; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.club-home .ch-day .day-live { top: 12px; right: 12px; }

/* ── Course tab: the same weather card, and "My rounds here" ── */
.club-course > .ch-day { margin: 14px 16px 0; max-width: 528px; }
@media (min-width: 592px) { .club-course > .ch-day, .club-course > .cc-mine { margin-inline: auto; width: calc(100% - 32px); } }
.club-course > .cc-mine { margin: 14px 16px 0; max-width: 528px; }
.cc-mine-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 6px; }
.cc-mine-row div { display: grid; gap: 2px; align-content: start; }
.cc-mine-row b { font: 600 26px/1.05 var(--serif); font-variant-numeric: tabular-nums; }
.cc-mine-row span { font: 700 11px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #5B4A22; }
.cc-mine-row small { font-size: 12px; color: #6B756E; }
.cc-spark { width: 100%; height: 44px; display: block; margin: 4px 0 2px; overflow: visible; }
.cc-spark polyline { stroke: var(--club-ground); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.cc-spark circle { fill: var(--club-acc); stroke: var(--club-ground); stroke-width: 2; vector-effect: non-scaling-stroke; }


/* ═════ The look (2026-11-06): the club's own ground. Every club screen stands on the real contours of its own course, drawn in the club's
   colour; the hero is the course from above; the member card is engraved; the comp is a ticket; the boards are honours boards in gold leaf.
   --ground-terr / --ground-lines come from js/ground.js. Nothing here needs a per-club file: it all follows the club's two colours. ═════ */
html[data-club] .club-home, html[data-club] .club-course, html[data-club] .club-hub, html[data-club] .setup-screen { position: relative; isolation: isolate; overflow-x: clip; }
html[data-club] .club-home::before, html[data-club] .club-course::before, html[data-club] .club-hub::before, html[data-club] .setup-screen::before { content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: var(--ground-terr, none) 50% 0 / 124% auto repeat-y var(--club-ground); background-blend-mode: luminosity; opacity: .9; }
html[data-club] .club-home::after, html[data-club] .club-course::after, html[data-club] .club-hub::after, html[data-club] .setup-screen::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: color-mix(in srgb, var(--club-on) 62%, var(--club-ground));
  -webkit-mask: var(--ground-lines, none) 50% 0 / 124% auto repeat-y; mask: var(--ground-lines, none) 50% 0 / 124% auto repeat-y; opacity: .5; }
html[data-club] .club-home .sheet-home { background: none; box-shadow: none; }

/* Hero: the course from above in its natural colour; a fade at the top for the crest and into the ground at the foot for the greeting. */
html[data-club] .club-home .ch-hero { height: clamp(250px, 32svh, 300px); background: none; }
html[data-club] .club-home .hero .photo { overflow: hidden; background: var(--club-hero, none) 50% 50% / cover no-repeat;
  -webkit-mask: linear-gradient(#000 62%, transparent 100%); mask: linear-gradient(#000 62%, transparent 100%); }
.ch-aerial { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 600ms ease-out; }
.ch-aerial.on { opacity: 1; }
.ch-aerial img { position: absolute; max-width: none; }
html[data-club] .club-home .hero .photo::after { content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--club-deep) 78%, transparent) 0, transparent 30%, transparent 44%, color-mix(in srgb, var(--club-deep) 70%, transparent) 100%); }
.ch-hello { bottom: auto; top: calc(var(--sat) + 70px); }


/* Start a round: on the running-water stream, the same one "Carry on with your round" uses (Luke, 2026-11-16). */
.ch-start { position: relative; overflow: hidden; isolation: isolate; justify-content: space-between; min-height: 112px; padding: 0 18px 0 20px; border-radius: 20px; color: #fff; font: 500 27px/1.1 var(--serif); letter-spacing: -.01em;
  background: #3B4A55 url(/img/hna-stream.webp) center / cover no-repeat; border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 16px 26px -16px rgba(0, 0, 0, .7); text-shadow: 0 1px 8px rgba(0, 0, 0, .65); }
.ch-start::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 18, 30, .6), rgba(6, 18, 30, .3)); }
.ch-start i { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--club-acc); color: var(--club-deep); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .7); }
.ch-start i svg { width: 26px; height: 26px; }

/* This week's comp: a golden ticket (Luke, 2026-11-16). The club's own colour for the body, a gold foil frame, a perforated stub with the Join button.
   Gold is fixed (it is the foil); the body follows the club. Notches on the divider are cut with a mask; the shadow lives on the wrapper so the mask does not clip it. */
.gt-wrap { filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .4)) drop-shadow(0 2px 2px rgba(0, 0, 0, .3)); }
.ch-comp { --gold-foil: linear-gradient(115deg, #9a6f17, #f6dd7e 20%, #fff0a8 32%, #cf9f2c 48%, #f7de83 64%, #b9871f 82%, #ebc95d);
  position: relative; overflow: hidden; isolation: isolate; padding: 0; border: 0; border-radius: 14px; gap: 0; display: grid; grid-template-columns: 1fr 104px; color: #F4ECD6;
  background: radial-gradient(120% 140% at 15% 0%, color-mix(in srgb, var(--club-ground) 70%, #5a8fc4) 0%, var(--club-ground) 55%, var(--club-deep) 100%);
  -webkit-mask: radial-gradient(circle 11px at calc(100% - 104px) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at calc(100% - 104px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 11px at calc(100% - 104px) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at calc(100% - 104px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
.ch-comp::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: 14px; padding: 5px; background: var(--gold-foil);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.ch-comp::after { content: ''; position: absolute; inset: 11px; z-index: 2; pointer-events: none; border-radius: 9px; border: 1px solid rgba(240, 210, 120, .45); }
.ch-comp .gt-main { position: relative; padding: 22px 18px 38px 22px; display: grid; gap: 6px; align-content: start; }
.ch-comp .ch-k { color: #F0D278; margin: 0; letter-spacing: .2em; font-size: 10.5px; }
.ch-comp h3 { font: 700 31px/1 var(--serif); letter-spacing: -.005em; margin: 2px 0 4px; max-width: 8.5em; padding-right: 34px;
  background: linear-gradient(115deg, #f6dd7e, #fff6c4 40%, #e0b13c 70%, #f7de83); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ch-comp .ch-sub, .ch-comp .ch-tt { color: #E7DCC0; font-size: 13px; margin: 0; }
.ch-comp .ch-sample { color: #F0D278; opacity: .8; margin: 0; }
.ch-comp .gt-admit { position: absolute; left: 22px; bottom: 18px; font: 700 9.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #F0D278; }
.ch-comp .gt-crest { position: absolute; right: 14px; top: 20px; width: 38px; height: 38px; border-radius: 50%; background: #fff; padding: 3px; object-fit: contain; }
.ch-comp .gt-stub { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 10px; padding: 22px 12px 18px 8px; text-align: center; }
.ch-comp .gt-stub::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; border-left: 2px dashed rgba(240, 210, 120, .6); }
.ch-comp .gt-no { font: 700 11px/1 var(--sans); letter-spacing: .14em; color: #F0D278; }
.ch-comp .ch-btns { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; width: 100%; justify-items: center; }
.ch-comp .ch-btns::before, .ch-comp .ch-btns::after { content: none; }
html[data-club] .ch-comp .ch-btns .btn { border: 0; color: #E7DCC0; background: transparent; font: 600 11px/1.2 var(--sans); letter-spacing: .06em; padding: 2px 4px; min-height: 0; }
html[data-club] .ch-comp .ch-btns .btn.primary { background: linear-gradient(115deg, #c9972b, #f7de83 50%, #c9972b); color: #201402; font: 700 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 10px 14px; border-radius: 99px; }

/* From the club: a notice on the club's own colour, so the page isn't one cream box after another. */

/* The boards: a clubhouse honours board. Dark club colour, a gold frame, names in gold leaf, the leader larger. */
.ch-board { position: relative; isolation: isolate; padding: 22px 20px 20px; gap: 4px; text-align: center; color: var(--club-acc); border: 1px solid color-mix(in srgb, var(--club-acc) 70%, transparent);
  background: linear-gradient(rgba(0, 0, 0, .28), rgba(0, 0, 0, .28)), url(/img/leather-grain.webp) 50% 50% / 320px auto, var(--club-deep); background-blend-mode: normal, soft-light, normal; box-shadow: 0 18px 28px -18px rgba(0, 0, 0, .8), inset 0 0 0 5px var(--club-deep), inset 0 0 0 6px color-mix(in srgb, var(--club-acc) 45%, transparent); }
.ch-board .ch-k { color: var(--club-acc); margin: 0; font: 500 23px/1.15 var(--serif); letter-spacing: .01em; text-transform: none; }
.ch-board .ch-sub, .ch-board .ch-none, .ch-board .ch-sample { color: color-mix(in srgb, var(--club-on) 78%, transparent); }
.ch-board ol { margin: 10px 0 8px; }
.ch-board li { grid-template-columns: 22px 1fr auto; text-align: left; border-top: 1px solid color-mix(in srgb, var(--club-acc) 26%, transparent); color: var(--club-acc); font: 500 18px/1.2 var(--serif); }
.ch-board li:first-child { font-size: 22px; padding: 11px 0; }
.ch-board .r { color: inherit; font: inherit; }
.ch-board .num { color: inherit; font: inherit; }
.ch-board .btn { justify-self: center; color: var(--club-on); border-color: color-mix(in srgb, var(--club-acc) 60%, transparent); }

/* The Course and Club tabs: the same course from above behind their headings. */
.cc-head, .chub-head { position: relative; overflow: hidden; isolation: isolate; min-height: 176px; align-items: flex-end; background: none; }
.cc-head { padding-bottom: 38px; }
.cc-head .ch-aerial, .chub-head .ch-aerial { z-index: -2; inset: -70px 0 auto; height: 380px; }
.cc-head::after, .chub-head::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--club-deep) 40%, transparent), color-mix(in srgb, var(--club-deep) 88%, transparent)); }
.cc-head h1, .chub-head h1 { font-size: 30px; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.cc-seg { z-index: 1; }
.chub-status { background: color-mix(in srgb, var(--club-deep) 80%, transparent); }

/* Club tab: the comp in engraved gold like the member card; every leaderboard an honours board; notices on the club's colour. */
.chub-live { position: relative; overflow: hidden; isolation: isolate; }
.chub-live::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--club-acc); -webkit-mask: var(--ground-lines, none) 60% 30% / 190% auto; mask: var(--ground-lines, none) 60% 30% / 190% auto; opacity: .5; }
.chub-card:has(.chub-board) { padding: 22px 20px 20px; color: var(--club-acc); border: 1px solid color-mix(in srgb, var(--club-acc) 70%, transparent);
  background: linear-gradient(rgba(0, 0, 0, .28), rgba(0, 0, 0, .28)), url(/img/leather-grain.webp) 50% 50% / 320px auto, var(--club-deep); background-blend-mode: normal, soft-light, normal; box-shadow: 0 18px 28px -18px rgba(0, 0, 0, .8), inset 0 0 0 5px var(--club-deep), inset 0 0 0 6px color-mix(in srgb, var(--club-acc) 45%, transparent); }
.chub-card:has(.chub-board) .ch-k { text-align: center; color: var(--club-acc); margin: 0 0 2px; }
.chub-card:has(.chub-board) h3 { text-align: center; color: var(--club-acc); font-weight: 500; font-size: 23px; }
.chub-card:has(.chub-board) .ch-sub, .chub-card:has(.chub-board) .ch-none, .chub-card:has(.chub-board) .ch-sample { text-align: center; color: color-mix(in srgb, var(--club-on) 78%, transparent); }
.chub-board li { border-top-color: color-mix(in srgb, var(--club-acc) 26%, transparent); color: var(--club-acc); font: 500 18px/1.2 var(--serif); }
.chub-board li:first-child { font-size: 21px; }
.chub-board .r, .chub-board .num { color: inherit; font: inherit; }
.chub-card:has(.chub-board) .btn { color: var(--club-on); border-color: color-mix(in srgb, var(--club-acc) 60%, transparent); }
.chub-card:has(.chub-item) { background: color-mix(in srgb, var(--club-deep) 84%, transparent); color: var(--club-on); border: 1px solid color-mix(in srgb, var(--club-on) 22%, transparent); }
.chub-card:has(.chub-item) .ch-k { color: var(--club-acc); }
.chub-card:has(.chub-item) .ch-sub, .chub-card:has(.chub-item) .ch-sample { color: color-mix(in srgb, var(--club-on) 80%, transparent); }
.chub-card .chub-item + .chub-item { border-top-color: color-mix(in srgb, var(--club-on) 20%, transparent); }

/* Holes: a panel so they read over the contours. */
.club-course .cc-body { margin-top: 14px; padding: 4px 16px; width: calc(100% - 32px); border-radius: 18px; background: color-mix(in srgb, var(--club-deep) 80%, transparent); box-sizing: border-box; }

/* Me: the same ground and tag, in the club's colour instead of Scratch green. The leather wallet stays. */
html[data-club] .me-bgmap .me-terr { background-color: var(--club-ground); background-blend-mode: luminosity; }
html[data-club] .me-bgmap .me-lines { filter: grayscale(1) brightness(1.15); opacity: .55; }
/* Stats: the same ground in the club's colour instead of Scratch green (Luke, 2026-11-07: "the contouring needs to be blue"). */
html[data-club] .st-bg { background-color: var(--club-deep); }
html[data-club] .st-bg-terr { background-color: var(--club-ground); background-blend-mode: luminosity; }
html[data-club] .st-bg-map:not(.st-bg-terr) { filter: grayscale(1) brightness(1.15); }
html[data-club] .st-bg-map.on:not(.st-bg-terr) { opacity: .55; }
/* The thick metal rim round each Stats panel, and the rim along Home's sheet top, in the club's colour instead of Scratch's green-grey (Luke, 2026-11-07: "that edging ... I'd like that to be a blue"). */
html[data-club] { --club-rim: color-mix(in srgb, var(--club-true) 55%, #3B3F44); }
html[data-club] .st--dusk :is(.st-x, .st-x-doors ul)::before {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, rgba(0, 0, 0, .03) 1px 3px),
    linear-gradient(180deg, color-mix(in srgb, var(--club-true) 45%, #7D8790) 0%, var(--club-rim) 18%, color-mix(in srgb, var(--club-true) 55%, #1C1F22) 55%, color-mix(in srgb, var(--club-true) 45%, #131517) 82%, color-mix(in srgb, var(--club-true) 45%, #40464C) 100%); }
html[data-club] .me-bgmap::after { background: linear-gradient(180deg, color-mix(in srgb, var(--club-deep) 45%, transparent), transparent 30%, color-mix(in srgb, var(--club-deep) 35%, transparent)); }
html[data-club] .me-tag-band { background-color: var(--club-deep); background-image: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 60%), var(--me-dark, none), linear-gradient(180deg, var(--club-ground) 0%, var(--club-deep) 100%); }

/* Fixes after the first look: dark-card headings, the sample line, stacking so one card's shadow never falls on the next, the top gap. */
.screen.dusk .chub-card:has(.chub-board) h3 { color: var(--club-acc); }
.screen.dusk .chub-card:has(.chub-item) h3 { color: var(--club-on); }
.chub-live .ch-sample { color: color-mix(in srgb, var(--club-on) 80%, transparent); }
.club-home .ch-sheet .inner > *, .chub-body > * { position: relative; }
.cc-head, .chub-head { margin-top: -14px; }

/* The one moment: the course settles into place when Home opens. */
.club-home .ch-aerial { animation: ch-settle 9s cubic-bezier(.16, 1, .3, 1) both; transform-origin: 50% 40%; }
@keyframes ch-settle { from { transform: scale(1.09); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .club-home .ch-aerial { animation: none; } }

/* Me: the last Scratch green in a club's app. */
html[data-club] .me-sc-head { background: linear-gradient(180deg, var(--club-ground), var(--club-deep)); color: var(--club-on); }
html[data-club] .me-tag-nums .k { color: color-mix(in srgb, var(--club-acc) 82%, #fff); }
.screen.dusk a.chub-row { color: #17201B; }
.screen.dusk a.chub-row svg { color: var(--club-acc-ink); }

/* The top of a club's Home is Scratch's: the weather pane and clouds, then the Index on real grass, whatever the club's colour (Luke, 2026-11-06). */
html[data-club] .home .idx-band { background: linear-gradient(rgba(6, 36, 14, .5), rgba(6, 36, 14, .5)), url(/img/grass.jpg) center / 460px auto; }
.ch-rest { display: grid; gap: 12px; align-content: start; margin-top: 16px; }
.ch-rest > * { position: relative; }
.ch-today { display: inline-flex; width: fit-content; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--club-deep) 62%, transparent); }
.home .day .day-note { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }

/* Home's ground is a sheet with a crisp round top (Luke, 2026-11-07): the contours no longer fade out behind the picture, and read as carved (dark groove just under each light line). The sheet's top edge sits 30px above the weather glass
   and its corners follow the glass (glass radius 30 + the 16px side gap). The picture runs on behind the corners, so the hero is 20px taller than the space it used to take. */
html[data-club] .club-home::before, html[data-club] .club-home::after { content: none; }
html[data-club] .club-home .ch-hero { height: clamp(270px, calc(32svh + 20px), 320px); }
html[data-club] .club-home .hero .photo { -webkit-mask: none; mask: none; }
html[data-club] .club-home .hero .photo::after { background: linear-gradient(180deg, color-mix(in srgb, var(--club-deep) 78%, transparent) 0, transparent 30%); }
html[data-club] .club-home .sheet-home { isolation: isolate; margin-top: -50px; padding-top: 22px; border-radius: 46px 46px 0 0; box-shadow: 0 -8px 22px rgba(0, 0, 0, .4); }
html[data-club] .club-home .sheet-home::before, html[data-club] .club-home .sheet-home::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; }
html[data-club] .club-home .sheet-home::before { z-index: -2; background: var(--ground-dark, none) calc(50% + 1.5px) 2px / 124% auto repeat-y, linear-gradient(color-mix(in srgb, var(--club-deep) 34%, transparent), color-mix(in srgb, var(--club-deep) 34%, transparent)), var(--ground-terr, none) 50% 0 / 124% auto repeat-y var(--club-ground); background-blend-mode: soft-light, normal, luminosity; filter: contrast(1.18);
  box-shadow: inset 0 1.5px 0 color-mix(in srgb, var(--club-on) 70%, var(--club-ground)), inset 0 5.5px 0 var(--club-rim), inset 0 7px 0 rgba(0, 0, 0, .55), inset 0 20px 18px -12px rgba(0, 0, 0, .6); }
html[data-club] .club-home .sheet-home::after { z-index: -1; background: color-mix(in srgb, var(--club-on) 62%, var(--club-ground));
  -webkit-mask: var(--ground-lines, none) 50% 0 / 124% auto repeat-y; mask: var(--ground-lines, none) 50% 0 / 124% auto repeat-y; opacity: .7; }

/* The grass comes up to the foot of the glass, and the glass and its clouds sit on it. The Index words stay clear of the clouds. */
html[data-club] .club-home .lift { z-index: 2; }
html[data-club] .club-home .idx-band { margin-top: -48px; padding-top: 66px; }
html[data-club] .club-home .idx-band .dchip { top: 60px; }
/* The clouds along the foot of the glass stay at the foot, so only their undersides touch the grass (Luke, 2026-11-07). The ones behind tuck up behind the glass; the two in front
   are smaller and rise less, so they don't reach the 7-day button. */
html[data-club] .club-home .day-clouds.back .cl:is([data-k="0"], [data-k="1"], [data-k="2"]) { translate: 0 -26px; }
html[data-club] .club-home .day-clouds.front .cl:is([data-k="3"], [data-k="4"]) { translate: 0 -16px; scale: .8; }

/* The tab bar stands on the same ground as the sheet: dark contours in the club's colour, as Scratch's bar has them in green (Luke, 2026-11-07). */
html[data-club] .tabbar::before, html[data-club] .tabbar::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
html[data-club] .tabbar::before { z-index: -2; background: linear-gradient(var(--club-ground), var(--club-ground)), var(--ground-dark, none) calc(50% + 1.5px) 2px / 124% auto no-repeat, linear-gradient(color-mix(in srgb, var(--club-ground) 58%, transparent), color-mix(in srgb, var(--club-ground) 58%, transparent)), var(--ground-terr, none) 50% 0 / 124% auto no-repeat var(--club-ground); background-blend-mode: color, soft-light, normal, luminosity; filter: contrast(1.18); }
html[data-club] .tabbar::after { z-index: -1; background: color-mix(in srgb, var(--club-on) 62%, var(--club-ground)); -webkit-mask: var(--ground-lines, none) 50% 0 / 124% auto no-repeat; mask: var(--ground-lines, none) 50% 0 / 124% auto no-repeat; opacity: .5; }

/* A crest that carries the club's name fills its circle, a little smaller on Home; the Scratch signature under it is the smallest thing on the page. */
.crest.crest-full img { width: 100%; height: 100%; object-fit: cover; }
html[data-club] .club-home .ch-hero .crest-full { width: 46px; height: 46px; }
.ch-today.ch-by { padding: 3px 9px; }

/* The weather card is glass: the sky is thinned so the contours show through it, with just enough dark behind the words to keep them readable (Luke, 2026-11-07). */
html[data-club] .club-home .day { background: color-mix(in srgb, var(--club-deep) 30%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(1.5px) saturate(1.2); backdrop-filter: blur(1.5px) saturate(1.2); }
html[data-club] .club-home .day::before { opacity: .4; }
/* Weather glass as a wide pane, not a square (Luke, 2026-11-07): less air above and below; the 7-day chip keeps its corner. */
html[data-club] .club-home .lift > .day { padding: 16px 20px 38px; }
html[data-club] .club-home .day .day-hi { font-size: 26px; }
html[data-club] .club-home .lift.on-clouds::before { opacity: .12; }
html[data-club] .club-home .day-sky.on { opacity: .36; }
html[data-club] .club-home .day-sky.day-sky-b.on { opacity: .22; }
.ch-by b { gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .01em; }
.ch-by b .df-fav { width: 16px; height: 16px; }

/* Controls cut into the ground (Luke, 2026-11-07): the track is carved, the choice is a raised brass slider in the club's accent, and an on/off knob is a golf ball that rolls across. */
html[data-club] { --carve: color-mix(in srgb, var(--club-deep) 84%, #000); --carve-in: inset 0 2px 5px rgba(0, 0, 0, .7), inset 0 -1px 0 rgba(255, 255, 255, .1), 0 1px 0 rgba(255, 255, 255, .08);
  --brass-face: linear-gradient(180deg, color-mix(in srgb, var(--club-acc) 66%, #fff), var(--club-acc) 48%, color-mix(in srgb, var(--club-acc) 76%, #000)); --brass-lift: inset 0 1px 0 rgba(255, 255, 255, .55), 0 2px 5px rgba(0, 0, 0, .55);
  --brand-face: linear-gradient(180deg, color-mix(in srgb, var(--club-true) 52%, #fff), var(--club-true) 55%, color-mix(in srgb, var(--club-true) 70%, #000)); }
html[data-club] .cc-seg, html[data-club] .seg, html[data-club] .screen.dusk .seg { padding: 4px; border-radius: 13px; background: var(--carve); box-shadow: var(--carve-in); }
html[data-club] .cc-seg button, html[data-club] .seg > button, html[data-club] .screen.dusk .seg button { color: color-mix(in srgb, var(--club-on) 80%, var(--club-deep)); transition: scale 120ms ease-out; }
html[data-club] .cc-seg button[aria-selected="true"], html[data-club] .seg > button[aria-pressed="true"], html[data-club] .seg > button[aria-checked="true"], html[data-club] .screen.dusk .seg button[aria-pressed="true"] { background: var(--brass-face); color: var(--club-deep); box-shadow: var(--brass-lift); outline: 0; }
html[data-club] .pills .pill, html[data-club] .cc-teepick button { background: var(--carve); border-color: transparent; color: color-mix(in srgb, var(--club-on) 86%, var(--club-deep)); box-shadow: var(--carve-in); transition: scale 120ms ease-out; }
html[data-club] .pills .pill[aria-pressed="true"], html[data-club] .cc-teepick button[aria-checked="true"] { background: var(--brass-face); border-color: transparent; color: var(--club-deep); box-shadow: var(--brass-lift); }
html[data-club] .cc-seg button:active, html[data-club] .seg > button:active, html[data-club] .pills .pill:active, html[data-club] .cc-teepick button:active { scale: .97; }
html[data-club] .cc-seg button:focus-visible, html[data-club] .seg > button:focus-visible, html[data-club] .pills .pill:focus-visible, html[data-club] .cc-teepick button:focus-visible, html[data-club] .switch:focus-visible { outline: 2px solid var(--club-acc); outline-offset: 2px; }
html[data-club] .switch, html[data-club] .screen.dusk .switch, html[data-club] .screen.dusk .switch[aria-checked="true"] { background: transparent; }
html[data-club] .switch::before, html[data-club] .screen.dusk .switch::before { background: var(--carve); box-shadow: var(--carve-in); }
/* An on switch fills with the club's own brand colour, not the brass accent (Luke, 2026-11-07). */
html[data-club] .switch[aria-checked="true"]::before, html[data-club] .screen.dusk .switch[aria-checked="true"]::before { background: var(--brand-face); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .4), 0 1px 0 rgba(255, 255, 255, .14); }
html[data-club] .switch::before { left: 1px; top: 5px; width: 54px; height: 34px; border-radius: 34px; }
/* On Me's paper scorecard an off groove is pressed into the paper, so the club colour of an on switch stands out against it. */
html[data-club] .me-card-sc .switch:not([aria-checked="true"])::before { background: color-mix(in srgb, var(--club-deep) 16%, #EAE3D3); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .32), 0 1px 0 rgba(255, 255, 255, .75); }
html[data-club] .switch::after { top: 8px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: url(/img/brand/play-ball-108.webp) center / 100% 100% no-repeat; box-shadow: 0 2px 4px rgba(0, 0, 0, .6), 0 0 0 .5px rgba(0, 0, 0, .25); transform: rotate(0deg); transition: transform 340ms cubic-bezier(.22, 1, .36, 1); }
html[data-club] .switch[aria-checked="true"]::after { transform: translateX(20px) rotate(360deg); }
@media (prefers-reduced-motion: reduce) { html[data-club] .switch::after { transition: none; } }

/* The Club tab's cards are the same glass as the weather pane. A card with a form stays paper, so its fields stay easy to fill in. */
html[data-club] .chub-card:not(.chub-live, :has(.chub-board, form), .cd-card), html[data-club] .chub-links { color: var(--club-on); background: color-mix(in srgb, var(--club-deep) 54%, transparent); border: 1px solid color-mix(in srgb, var(--club-on) 24%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 14px 22px -14px rgba(0, 0, 0, .7); -webkit-backdrop-filter: blur(3px) saturate(1.2); backdrop-filter: blur(3px) saturate(1.2); }
html[data-club] .chub-card:not(.chub-live, :has(.chub-board, form), .cd-card) .ch-k { color: var(--club-acc); }
html[data-club] .screen.dusk .chub-card:not(.chub-live, :has(.chub-board, form), .cd-card) h3 { color: var(--club-on); }
html[data-club] .chub-card:not(.chub-live, :has(.chub-board, form), .cd-card) :is(.ch-sub, .ch-none, .ch-sample, .chub-rules) { color: color-mix(in srgb, var(--club-on) 88%, transparent); }
html[data-club] .screen.dusk .chub-card:not(.chub-live, :has(.chub-board, form), .cd-card) .btn:not(.primary) { background: rgba(255, 255, 255, .1); color: var(--club-on); border-color: color-mix(in srgb, var(--club-on) 34%, transparent); }
html[data-club] .chub-row { border-top-color: color-mix(in srgb, var(--club-on) 18%, transparent); }
html[data-club] .screen.dusk a.chub-row { color: var(--club-on); }
html[data-club] .screen.dusk a.chub-row svg { color: var(--club-acc); }
html[data-club] .chub-row small { color: color-mix(in srgb, var(--club-on) 78%, transparent); }

/* The Members' Board is an honours board from the first day: before anyone is ranked its places are ruled and waiting. */
.chub-blank { margin: 8px 0 6px; }
.chub-blank li { display: grid; grid-template-columns: 22px 1fr; align-items: end; min-height: 34px; padding: 0 0 6px; font-size: 17px; }
.chub-blank li:first-child { font-size: 17px; border-top: 0; }
.chub-blank li::after { content: ''; height: 1px; background: color-mix(in srgb, var(--club-acc) 48%, transparent); }
html[data-club] .chub-card #chub-mem { justify-self: center; }
html[data-club] .screen.dusk .chub-card:has(.chub-board) .btn:not(.primary) { background: transparent; color: var(--club-acc); border-color: color-mix(in srgb, var(--club-acc) 60%, transparent); box-shadow: none; }

/* The boards are the varnished mahogany honours board from Scratch's trophy wall (stats-story.css .st-x-honours), for more history (Luke, 2026-11-07). Wood and gold leaf at every club: a real board doesn't take the club's colour. */
html[data-club] :is(.chub-card:has(.chub-board), .ch-board) { --leaf: #EBC468; padding: 20px 20px 18px; border: 0; border-radius: 5px; color: var(--leaf); overflow: hidden;
  background:
    linear-gradient(118deg, rgba(255, 225, 180, .1) 0%, rgba(255, 225, 180, 0) 32%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .3) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='300'><filter id='g' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='0.003 0.11' numOctaves='3' seed='4'/><feColorMatrix values='0 0 0 0 .12  0 0 0 0 .03  0 0 0 0 0  0 0 0 1.8 -.6'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>") 0 0 / 100% 100%,
    linear-gradient(180deg, #5A2410 0%, #46190A 45%, #3A1307 100%);
  background-blend-mode: normal;
  box-shadow: inset 0 0 0 4px #2A0E04, inset 0 0 0 5px rgba(222, 178, 92, .7), inset 0 0 0 8px #3C1608, inset 0 0 0 9px rgba(0, 0, 0, .55), inset 0 0 30px rgba(0, 0, 0, .55), 0 18px 30px -14px rgba(0, 0, 0, .85); }
html[data-club] :is(.chub-card:has(.chub-board), .ch-board) .ch-k { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; font: 700 14px/1.2 Georgia, "Times New Roman", serif; letter-spacing: .24em; text-transform: uppercase; color: #F0CC6E; text-shadow: 0 1px 0 rgba(0, 0, 0, .85), 0 -1px 0 rgba(255, 238, 190, .2); white-space: nowrap; }
html[data-club] :is(.chub-card:has(.chub-board), .ch-board) .ch-k::before, html[data-club] :is(.chub-card:has(.chub-board), .ch-board) .ch-k::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(222, 178, 92, 0), rgba(222, 178, 92, .75)); box-shadow: 0 1px 0 rgba(0, 0, 0, .6); }
html[data-club] :is(.chub-card:has(.chub-board), .ch-board) .ch-k::after { background: linear-gradient(90deg, rgba(222, 178, 92, .75), rgba(222, 178, 92, 0)); }
html[data-club] .screen.dusk .chub-card:has(.chub-board) h3, html[data-club] .ch-board h3 { font: 700 21px/1.2 Georgia, "Times New Roman", serif; color: var(--leaf); text-shadow: 0 1px 0 rgba(0, 0, 0, .85); }
html[data-club] :is(.chub-card:has(.chub-board), .ch-board) :is(.ch-sub, .ch-none, .ch-sample) { font-family: Georgia, "Times New Roman", serif; font-style: italic; color: rgba(240, 212, 150, .86); text-shadow: 0 1px 0 rgba(0, 0, 0, .7); }
html[data-club] :is(.chub-board, .ch-board ol) li { border-top: 1px solid rgba(222, 178, 92, .2); box-shadow: inset 0 1px 0 rgba(0, 0, 0, .35); color: var(--leaf, #EBC468); font-family: Georgia, "Times New Roman", serif; font-weight: 700; text-shadow: 0 1px 0 rgba(0, 0, 0, .85), 0 -.5px 0 rgba(255, 240, 195, .25); }
html[data-club] :is(.chub-board, .ch-board ol) :is(.r, .n, .num) { color: inherit; font-family: inherit; font-weight: inherit; font-variant-numeric: lining-nums tabular-nums; }
html[data-club] .chub-blank li { border-top: 0; box-shadow: none; }
html[data-club] .chub-blank li::after { background: rgba(222, 178, 92, .5); box-shadow: 0 1px 0 rgba(0, 0, 0, .5); }
html[data-club] .screen.dusk .chub-card:has(.chub-board) .btn:not(.primary), html[data-club] .ch-board .btn:not(.primary) { justify-self: center; background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .28)); color: #F0CC6E; border-color: rgba(222, 178, 92, .6); box-shadow: inset 0 1px 0 rgba(255, 230, 170, .14); font-family: Georgia, "Times New Roman", serif; }

/* The one-tap survey on the round review screen (public/js/club-survey.js). */
.cs-card { display: grid; gap: 10px; margin: 0 0 14px; padding: 14px; border-radius: var(--r); background: var(--surface-2); color: var(--ink); }
.cs-q { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; }
.cs-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cs-opt { min-height: 44px; padding: 0 4px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: 600 14px var(--sans); cursor: pointer; }
.cs-opt:disabled { opacity: .55; }
.cs-note { margin: 0; font-size: 13px; color: var(--quiet); }


/* Home's three golf balls on the sand (Luke, 2026-11-07): Stats, Post a score, Calculator. Scratch's balls (css/home2.css) with the print in the club's colour. */
.club-home .ch-tools { margin-top: 6px; }
.home .tools-home .tool .qi.qi-stats { display: grid; place-items: center; padding: 0 0 2px; }
.home .tools-home .tool .qi-stats .st-mini { zoom: 1; width: 44px; height: 31px; color: #10241A; }
html[data-club] .home .tools-home .tool .qi { color: var(--club-true); }
html[data-club] .home .tools-home .tool :is(.qi-stats .st-mini, .qi-eqs .eq-tri, .qi-eqs .eq-tri text, .qi-eqs .eq-list i, .qi-card .sc-g) { color: var(--club-true); fill: currentColor; }
html[data-club] .home .tools-home .tool .qi-eqs .eq-tri path { fill: none; }

/* Stats title in a club's app: crest left, "Stats" centred between it and an equal blank on the right (Luke, 2026-11-07). */
.st-top.st-top--club { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 10px; }
.st-top.st-top--club .title { text-align: center; }
.st-top.st-top--club .crest { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .55), 0 3px 8px rgba(0, 0, 0, .45); }


/* ════ Halfway house card on the Club tab (Luke, 2026-11-08: "its own little section"): open or closed, a peek at the menu, Order ahead. ════ */
.hw-card { display: grid; gap: 8px; padding: 16px; border-radius: 18px; color: var(--club-on, #F6F2E7);
  background: color-mix(in srgb, var(--club-deep, #0F2A1C) 86%, transparent); border: 1px solid color-mix(in srgb, var(--club-on, #F6F2E7) 18%, transparent); }
.hw-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hw-k { font: 600 21px/1.2 var(--serif); }
.hw-state { flex: none; padding: 4px 10px; border-radius: 999px; font: 700 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  color: color-mix(in srgb, var(--club-on, #F6F2E7) 75%, transparent); border: 1px solid color-mix(in srgb, var(--club-on, #F6F2E7) 30%, transparent); }
.hw-state.is-open { color: #0E2A18; background: #7FD69B; border-color: transparent; }
.hw-sub { margin: 0; font-size: 14px; color: color-mix(in srgb, var(--club-on, #F6F2E7) 78%, transparent); }
.hw-menu { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 6px; }
.hw-menu li { display: flex; align-items: baseline; gap: 8px; font-size: 15px; }
.hw-menu i { flex: 1; border-bottom: 1.5px dotted color-mix(in srgb, var(--club-on, #F6F2E7) 35%, transparent); transform: translateY(-4px); }
.hw-menu b { font-weight: 650; color: var(--club-acc, #D9AE55); font-variant-numeric: tabular-nums; }
.hw-rest { margin: 0; font-size: 13px; color: color-mix(in srgb, var(--club-on, #F6F2E7) 65%, transparent); }
.hw-go { display: flex; justify-content: center; align-items: center; min-height: 48px; margin-top: 4px; border-radius: 14px; text-decoration: none;
  font-weight: 700; font-size: 16px; color: var(--club-deep, #0F2A1C); background: var(--brass-face, var(--club-acc, #D9AE55)); box-shadow: var(--brass-lift, none); }
html[data-club] .hw-card a.hw-go { color: var(--club-deep); }   /* club links are brass elsewhere; on the brass button the words stay dark */

/* ════ Me: the club card, tidied (Luke, 2026-11-08). Club on top; two rows with chevrons; one Scratch button; the staff door and Leave
   as small links at the foot, under a hairline, so members are not shown buttons meant for the manager. ════ */
.me-club-app { display: grid; gap: 12px; }
.me-club-app .mca-rows { display: grid; border-top: 1px solid var(--line); }
.me-club-app .mca-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 2px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.me-club-app .mca-row > span:first-child { flex: 1; display: grid; gap: 2px; }
.me-club-app .mca-row b { font: 650 16px/1.25 var(--sans); }
.me-club-app .mca-row small { font-size: 13px; color: var(--quiet); }
.me-club-app .mca-chev { font-size: 24px; line-height: 1; color: var(--quiet); }
.me-club-app .mca-scratch { display: grid; gap: 6px; }
.me-club-app .mca-scratch .me-get-scratch { justify-self: stretch; }
.me-club-app .mca-foot { display: grid; gap: 4px; justify-items: start; padding-top: 10px; border-top: 1px solid var(--line); }
.me-club-app .mca-link, .me-club-app .mca-foot .me-mgr summary.me-quiet { min-height: 44px; padding: 0; border: 0; background: none; color: var(--quiet);
  font: 600 14px/1 var(--sans); text-decoration: underline; text-underline-offset: 4px; display: inline-flex; align-items: center; cursor: pointer; }
.me-club-app .mca-foot .me-mgr { padding: 0; width: 100%; }
.me-club-app .mca-foot .me-mgr[open] { padding-bottom: 8px; }
.me-club-app .mca-foot .me-mgr .btn.primary { min-height: 44px; }
/* The staff sign-in sits at the very foot of Me, under About, where members never trip over it (Luke, 2026-11-08). */
.me-staff { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
/* Staff door as a small brass key-tag on a ring (Luke picked it, 2026-11-08): it swings when tapped and opens to the key box. */
.me-staff .me-mgr summary.me-quiet { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 34px; margin: 12px 0 6px 14px; padding: 0 16px 0 24px;
  border: 0; border-radius: 6px 17px 17px 6px; cursor: pointer; text-decoration: none; transform-origin: 2px 50%;
  font: 800 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: color-mix(in srgb, var(--club-acc, #D9AE55) 30%, #2A1D06);
  text-shadow: 0 1px 0 rgba(255, 240, 200, .55);
  background: var(--brass-face, linear-gradient(180deg, #F0D58F, #D9AE55 48%, #A27F33)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(0, 0, 0, .18), 0 3px 6px rgba(0, 0, 0, .5); }
.me-staff .me-mgr summary.me-quiet::before { content: ''; position: absolute; left: 7px; top: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%;
  background: #0C0F12; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .5); }   /* the hole */
.me-staff .me-mgr summary.me-quiet::after { content: ''; position: absolute; left: -9px; top: calc(50% - 11px); width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #B9BEC4; border-right-color: #6E747B; border-bottom-color: #8A9097; pointer-events: none; }   /* the ring */
.me-staff .me-mgr summary.me-quiet:active, .me-staff .me-mgr[open] > summary.me-quiet { animation: tag-swing 900ms cubic-bezier(.3, .7, .3, 1) both; }
@keyframes tag-swing { 0% { transform: rotate(0); } 25% { transform: rotate(-9deg); } 55% { transform: rotate(5deg); } 80% { transform: rotate(-2deg); } 100% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { .me-staff .me-mgr summary.me-quiet:active, .me-staff .me-mgr[open] > summary.me-quiet { animation: none; } }
.me-staff .me-mgr { display: grid; gap: 8px; justify-items: start; }

/* ════ Club noticeboard as a CHALKBOARD (Luke, 2026-11-11: "a black board with chalk writing"; it was a departure board). A slate
   in a wooden frame with a chalk ledge; the club's notices hand-written in chalk (Caveat, OFL, /fonts/caveat-latin-var.woff2),
   the day it went up small in the corner, a faint wiped-chalk haze across the slate. No flips, no glow. ════ */
@font-face { font-family: "Clubhouse Chalk"; src: url(/fonts/caveat-latin-var.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
.nb { position: relative; padding: 16px 16px 22px; border-radius: 10px; color: #F2F0E8;
  background:
    radial-gradient(60% 40% at 22% 30%, rgba(255, 255, 255, .055), transparent 70%),
    radial-gradient(50% 35% at 78% 70%, rgba(255, 255, 255, .045), transparent 70%),
    repeating-linear-gradient(-12deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #2E3532, #232927);
  border: 9px solid #6B4A2E;
  border-image: linear-gradient(135deg, #8A6340, #5A3C24 40%, #7A5535 70%, #4E331E) 1;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .55), inset 0 3px 14px rgba(0, 0, 0, .5), 0 10px 22px -12px rgba(0, 0, 0, .7); }
.nb::after { content: ''; position: absolute; left: -9px; right: -9px; bottom: -9px; height: 9px;   /* the chalk ledge */
  background: linear-gradient(180deg, #8A6340, #4E331E); box-shadow: 0 3px 6px rgba(0, 0, 0, .45); }
.nb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 0 2px 8px;
  border-bottom: 1px dashed rgba(242, 240, 232, .22); }
.nb-k, .nb-sub, .screen .nb .nb-note h3, .nb-when, .screen .nb .nb-body, .nb-more, .nb-sample { font-family: "Clubhouse Chalk", "Chalkboard SE", "Comic Sans MS", cursive; }
.nb-k { font-size: 24px; font-weight: 700; line-height: 1; color: #F2F0E8; text-shadow: 0 0 1px rgba(242, 240, 232, .6); }
.nb-sub { font-size: 16px; line-height: 1.2; color: rgba(242, 240, 232, .62); }
.nb-notes { list-style: none; margin: 0; padding: 0; display: grid; }
.nb-note { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; padding: 12px 2px 10px; border-bottom: 1px dashed rgba(242, 240, 232, .14); }
.nb-note:last-child { border-bottom: 0; }
.screen .nb .nb-note h3 { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.05; color: #FBFAF4; text-shadow: 0 0 1px rgba(251, 250, 244, .7); }
.screen .nb .nb-when { margin: 0; font-size: 17px; line-height: 1; color: rgba(242, 240, 232, .6); white-space: nowrap; }
.screen .nb .nb-body { grid-column: 1 / -1; margin: 2px 0 0; font-size: 20px; line-height: 1.2; color: rgba(242, 240, 232, .86); }
.nb-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nb-more { display: flex; justify-content: center; align-items: center; gap: 6px; min-height: 44px; margin-top: 4px; font-size: 19px; color: #F2F0E8; text-decoration: none; }
.screen .nb .nb-none { margin: 14px 2px 6px; font-family: "Clubhouse Chalk", "Chalkboard SE", "Comic Sans MS", cursive; font-size: 22px; color: rgba(242, 240, 232, .55); }
.nb-sample { margin: 6px 0 0; text-align: center; font-size: 16px; color: rgba(242, 240, 232, .55); }

/* A club with several courses (Fancourt): one carved row to move between them, on the Course tab, Start a round and Post a score.
   Same carved groove and brass face as the Holes / 3D / Card switch, so the two read as one family. */
.club-courses { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin: 0 0 14px; padding: 4px; position: relative; z-index: 1; border-radius: 13px; background: var(--carve, var(--club-deep)); box-shadow: var(--carve-in, 0 8px 18px -10px rgba(0, 0, 0, .6)); }
.club-courses a { display: grid; place-items: center; min-height: 44px; padding: 0 6px; border-radius: 9px; text-align: center; text-decoration: none; font: 650 14px/1.1 var(--sans); color: color-mix(in srgb, var(--club-on, #fff) 80%, var(--club-deep, #0F2A1C)); transition: scale 120ms ease-out; -webkit-tap-highlight-color: transparent; }
.club-courses a[aria-current="page"] { background: var(--brass-face, var(--club-on)); color: var(--club-deep); box-shadow: var(--brass-lift, none); }
.club-courses a:active { scale: .97; }
.club-courses a:focus-visible { outline: 2px solid var(--club-acc); outline-offset: 2px; }
.cc-head + .club-courses { margin: -22px 16px 0; }
.club-courses + .cc-seg { margin-top: 8px; }

/* Start a round / Post a score set-up stands on the same contour ground (Luke, 2026-11-11: the blue contouring behind Play, as on Scratch). */
html[data-club] .setup-screen { min-height: 100svh; }

/* Between screens (Luke, 2026-11-11: after "Have a look around" it "loads on a green blank page"): a club's app never shows
   Scratch's green. The page behind every screen is the club's own deep colour with its contour lines, and a screen still
   loading shows the club's crest in the middle; the screen then fades in rather than cutting in. */
html[data-club], html[data-club] body { background-color: var(--club-deep) !important; }
html[data-club] body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: color-mix(in srgb, var(--club-on) 55%, var(--club-deep));
  -webkit-mask: var(--ground-lines, none) 50% 0 / 124% auto repeat-y; mask: var(--ground-lines, none) 50% 0 / 124% auto repeat-y; opacity: .42; }
html[data-club] #app > .screen:empty { min-height: 100svh; background: var(--club-crest, none) 50% 44% / 104px 104px no-repeat; animation: club-fade-in 400ms ease-out both; }
html[data-club] #app > .screen > :first-child { animation: club-fade-in 320ms ease-out both; }
@keyframes club-fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { html[data-club] #app > .screen:empty, html[data-club] #app > .screen > :first-child { animation: none; } }

/* The club's trophy cabinet on the Club tab: the Stats trophy wall (cups on a lit glass shelf + the mahogany honours board), re-scoped. Luke, 2026-11-16. */
/* ════ The trophy wall (Luke, 2026-10-24; kept 2026-10-25 with the honours board hung beneath the shelf): oak planks, a lit glass shelf with real cups ═ */
.chub-cab { position: relative; overflow: hidden; border: 0; padding: 14px 12px 14px; border-radius: 16px;
  background: url("/img/wood-planks.svg") 60% 0 / 130% auto; box-shadow: 0 18px 34px -12px rgba(0, 0, 0, .8); }
.chub-cab::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .1) 30%, rgba(0, 0, 0, .5)); }
.chub-cab > * { position: relative; }
.chub-cab .st-x-k { color: #F6E4A0; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.chub-cab .st-x-wallbay { display: flex; justify-content: space-around; align-items: flex-end; min-height: 128px; padding: 12px 4px 0; }
.chub-cab .st-x-wallbay::before { content: ""; position: absolute; left: 4%; right: 4%; top: 0; height: 120px; background: radial-gradient(60% 100% at 50% 0%, rgba(255, 232, 170, .55), transparent 72%); pointer-events: none; }
.chub-cab .st-x-cup { position: relative; z-index: 1; display: block; }
.chub-cab .st-x-cup img { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 5px rgba(0, 0, 0, .6)); }
.chub-cab .st-x-cup::after { content: ""; position: absolute; left: -8%; right: -8%; bottom: -4px; height: 10px; border-radius: 50%; background: radial-gradient(50% 50%, rgba(0, 0, 0, .75), transparent 70%); z-index: -1; }
.chub-cab .st-x-wallshelf { height: 12px; margin: 0 4px; background: linear-gradient(180deg, rgba(240, 255, 250, .9), rgba(140, 205, 180, .3)); box-shadow: 0 1px 0 #fff, 0 0 18px rgba(255, 226, 160, .55), 0 10px 14px rgba(0, 0, 0, .6); }
/* ════ The honours board (Luke, 2026-10-25): what a club actually hangs, in place of the cups and brass plates that took too much room. ════════
   One varnished mahogany panel with long grain, a moulded frame with a gilt bead, gold-leaf serif lettering, one ruled line per personal best. */
.chub-cab .st-x-honours { position: relative; overflow: hidden; margin-top: 14px; padding: 16px 18px 10px; border-radius: 5px;
  background:
    linear-gradient(118deg, rgba(255, 225, 180, .1) 0%, rgba(255, 225, 180, 0) 32%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .3) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='300'><filter id='g' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='0.003 0.11' numOctaves='3' seed='4'/><feColorMatrix values='0 0 0 0 .12  0 0 0 0 .03  0 0 0 0 0  0 0 0 1.8 -.6'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>") 0 0 / 100% 100%,
    linear-gradient(180deg, #5A2410 0%, #46190A 45%, #3A1307 100%);
  box-shadow: inset 0 0 0 4px #2A0E04, inset 0 0 0 5px rgba(222, 178, 92, .7), inset 0 0 0 8px #3C1608, inset 0 0 0 9px rgba(0, 0, 0, .55),
    inset 0 0 30px rgba(0, 0, 0, .55), 0 18px 30px -14px rgba(0, 0, 0, .85); }
.chub-cab .st-x-honours::before, .chub-cab .st-x-honours::after { content: none; }
.chub-cab .st-x-hb-title { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; font: 700 15px/1 Georgia, "Times New Roman", serif; letter-spacing: .34em; text-indent: .34em; text-transform: uppercase; color: #F0CC6E;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .85), 0 -1px 0 rgba(255, 238, 190, .2); }
.chub-cab .st-x-hb-title::before, .chub-cab .st-x-hb-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(222, 178, 92, 0), rgba(222, 178, 92, .75)); box-shadow: 0 1px 0 rgba(0, 0, 0, .6); }
.chub-cab .st-x-hb-title::after { background: linear-gradient(90deg, rgba(222, 178, 92, .75), rgba(222, 178, 92, 0)); }
/* one shared set of columns down the whole board (wording | name | number), so every name sits in the middle of the gap and they line up */
.chub-cab .st-x-hb { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr) auto; }
.chub-cab .st-x-hb li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; }
.chub-cab .st-x-hb li + li { border-top: 1px solid rgba(222, 178, 92, .2); box-shadow: inset 0 1px 0 rgba(0, 0, 0, .35); }
.chub-cab .st-x-hb-row { grid-column: 1 / -1; width: 100%; min-height: 44px; display: grid; grid-template-columns: subgrid; align-items: center; column-gap: 12px; padding: 6px 2px;
  border: 0; background: none; color: inherit; font: inherit; text-align: left; -webkit-tap-highlight-color: transparent; }
button.st-x-hb-row { cursor: pointer; }
button.st-x-hb-row:active { background: rgba(255, 220, 150, .07); }
button.st-x-hb-row:focus-visible { outline: 2px solid #F0CC6E; outline-offset: 2px; }
.chub-cab .st-x-hb-l, .chub-cab .st-x-hb-v { color: #EBC468; text-shadow: 0 1px 0 rgba(0, 0, 0, .85), 0 -.5px 0 rgba(255, 240, 195, .25); }
.chub-cab .st-x-hb-l { display: block; min-width: 0; font: 700 12.5px/1.2 Georgia, "Times New Roman", serif; letter-spacing: .1em; text-transform: uppercase; }
.chub-cab .st-x-hb-l small { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: italic 400 12px/1.25 Georgia, "Times New Roman", serif;
  letter-spacing: 0; text-transform: none; color: rgba(235, 200, 130, .68); }
.chub-cab .st-x-hb-who { grid-column: 2; justify-self: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: italic 700 11.5px/1.2 Georgia, "Times New Roman", serif;
  color: #EBC468; text-shadow: 0 1px 0 rgba(0, 0, 0, .85), 0 -.5px 0 rgba(255, 240, 195, .25); }   /* the board's own gold, a step smaller than the titles */
.chub-cab .st-x-hb-v { grid-column: 3; justify-self: end; font: 700 23px/1 Georgia, "Times New Roman", serif; font-variant-numeric: lining-nums tabular-nums; }

.chub-cab { margin: 0; }
.chub-cab .st-x-k { display: block; margin: 0 0 6px; font: 700 14px/1 Georgia, serif; letter-spacing: .24em; text-transform: uppercase; text-align: center; color: #F6E4A0; }
.chub-cab .st-x-hb-l { grid-column: 1 / 3; }
.chub-cab .st-x-hb-l small { white-space: normal; font-size: 13px; color: rgba(240, 204, 110, .85); }
.chub-cab .ch-sample { text-align: center; margin: 10px 0 0; color: rgba(246, 228, 160, .8); }

/* ════ Pace of play pop-up for members (Luke, 2026-11-16): the club's own colours, contour lines behind, status colours fixed (green / amber / coral). ════ */
.chub-pace .ch-btns { margin-top: 10px; }
/* Pace of play: the card is black volcanic contour rock (as in Scratch Stats); the pop-up is the deep blue of the short proposal (Luke, 2026-11-16: always blue). */
html[data-club] .chub-card.chub-pace::before { content: none; }
html[data-club] .chub-pace .ch-sample { color: rgba(240, 255, 225, .8); }
/* Pace of play card (Luke, 2026-11-16): the black double-edged contour lines of the Scratch app, no green; the button on the grass picture; the title bigger and red. */
html[data-club] .chub-card.chub-pace { position: relative; isolation: isolate; background: #070A09 url(/img/pace-rock.webp) center / cover no-repeat !important; border: 1px solid rgba(255, 255, 255, .16); color: #fff; }
html[data-club] .chub-card.chub-pace::before { content: none; }
html[data-club] .chub-pace .ch-k { color: #FF4D4F; font-size: 17px; letter-spacing: .12em; margin-bottom: 10px; } html[data-club] .chub-pace .ch-sub { color: #fff; }
html[data-club] .chub-pace .ch-btns { grid-template-columns: auto; justify-content: start; }
html[data-club] .chub-pace .btn.primary { background: #0F3A1E; border: 1.5px solid rgba(190, 240, 150, .7); color: #fff; font-weight: 700; text-shadow: none; -webkit-font-smoothing: antialiased; min-height: 46px; padding: 0 20px; font-size: 16px; letter-spacing: .01em; border-radius: 14px; box-shadow: none; }
.pc-lock { overflow: hidden; }
.pc-sheet { position: fixed; inset: 0; z-index: 400; display: flex; align-items: flex-end; justify-content: center; background: rgba(4, 10, 16, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.pc-panel { --pc-bg: #050D1B; --pc-mid: #0F2A4A; --pc-acc: #E6C96B; --pc-on: #7FD19A; --pc-slow: #E9B44C; --pc-late: #F08A6B; --pc-ink: #F4ECD6; --pc-mute: color-mix(in srgb, var(--pc-ink) 72%, transparent); position: relative; isolation: isolate; width: min(100%, 520px); max-height: 94vh; overflow-y: auto; padding: 18px 18px calc(22px + env(safe-area-inset-bottom, 0px)); border-radius: 24px 24px 0 0; color: var(--pc-ink);
  background: radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--pc-mid) 82%, #5a8fc4), var(--pc-mid) 55%, var(--pc-bg) 100%); box-shadow: 0 -20px 50px rgba(0, 0, 0, .55); }
.pc-panel::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--pc-acc); -webkit-mask: var(--ground-lines, none) 50% 0 / 130% auto repeat-y; mask: var(--ground-lines, none) 50% 0 / 130% auto repeat-y; opacity: .16; pointer-events: none; }
.pc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pc-head h2 { margin: 0; font: 700 26px/1.05 var(--serif); letter-spacing: -.01em; }
.pc-x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .25); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.pc-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .3); margin-bottom: 16px; }
.pc-tabs button { flex: 1; min-height: 38px; padding: 0 6px; border: 0; border-radius: 999px; background: transparent; color: var(--pc-mute); font: 650 12.5px/1.1 var(--sans); cursor: pointer; }
.pc-tabs button[aria-selected="true"] { background: #F4F0DD; color: #0B1B33; }
.pc-lede { margin: 0 0 10px; font: 400 15.5px/1.4 var(--sans); color: var(--pc-mute); } .pc-lede b { color: #fff; }
.pc-track { display: block; width: 100%; height: auto; }
.pc-road { fill: none; stroke: color-mix(in srgb, var(--pc-acc) 18%, var(--pc-mid)); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.pc-dash { fill: none; stroke: color-mix(in srgb, var(--pc-acc) 35%, var(--pc-mid)); stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.pc-dot { fill: #6f8aa6; } .pc-n { fill: #a9bdd1; font: 500 10.5px var(--sans); } .pc-tag { fill: #F4ECD6; font: 600 10.5px var(--sans); } .pc-tag-you { fill: var(--pc-acc); font-weight: 700; font-size: 11px; }
.pc-pin { stroke: var(--pc-bg); stroke-width: 2.5; } .pc-halo { opacity: .2; }
circle.pc-on, i.pc-on { fill: var(--pc-on); background: var(--pc-on); } circle.pc-slow, i.pc-slow { fill: var(--pc-slow); background: var(--pc-slow); } circle.pc-late, i.pc-late { fill: var(--pc-late); background: var(--pc-late); }
.pc-ring { fill: none; stroke: var(--pc-acc); stroke-width: 1.5; } .pc-you { fill: #F4ECD6; stroke: var(--pc-bg); stroke-width: 2.5; }
.pc-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 12px; font-size: 12px; color: var(--pc-mute); } .pc-key span { display: flex; align-items: center; gap: 6px; } .pc-key i { width: 9px; height: 9px; border-radius: 50%; }
.pc-you-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 18px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .14); }
.pc-you-card small { display: block; font-size: 12.5px; color: var(--pc-mute); } .pc-you-card b { font: 700 21px/1.2 var(--serif); }
.pc-chip { font: 650 12.5px/1 var(--sans); font-style: normal; padding: 6px 12px; border-radius: 999px; background: rgba(127, 209, 154, .16); color: var(--pc-on); }
.pc-fig { margin: 12px 0 0; border-top: 1px solid rgba(255, 255, 255, .16); } .pc-fig div { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 2px; border-bottom: 1px solid rgba(255, 255, 255, .16); font-size: 14.5px; color: var(--pc-mute); }
.pc-fig dt { margin: 0; } .pc-fig dd { margin: 0; font: 700 20px/1 var(--serif); color: #fff; font-variant-numeric: tabular-nums; } .pc-fig dd small { margin-left: 6px; font: 500 12.5px var(--sans); color: var(--pc-mute); }
.pc-h { margin: 18px 0 2px; font: 700 17px/1.2 var(--serif); } .pc-note { margin: 0 0 10px; font-size: 12.5px; color: var(--pc-mute); }
.pc-bars { position: relative; display: flex; align-items: flex-end; gap: 8px; padding-top: 6px; }
.pc-trk { height: 112px; width: 100%; display: flex; align-items: flex-end; }
.pc-bars u { position: absolute; left: 0; right: 0; bottom: calc(21px + var(--usualf, 0) * 112px); border-top: 1.5px dashed var(--pc-acc); pointer-events: none; z-index: 0; }
.pc-bar { position: relative; z-index: 1; }
.pc-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; font-size: 11px; color: var(--pc-mute); }
.pc-bar i { display: block; width: 100%; border-radius: 6px 6px 2px 2px; min-height: 18px; } .pc-bar em { display: block; padding-top: 6px; font: 700 11px var(--sans); font-style: normal; color: #0B1522; text-align: center; font-variant-numeric: tabular-nums; }
.pc-holes { list-style: none; margin: 8px 0 0; padding: 0; } .pc-holes li { display: grid; grid-template-columns: 22px 1fr 54px; align-items: center; gap: 10px; height: 23px; font-size: 12px; color: var(--pc-mute); font-variant-numeric: tabular-nums; }
.pc-tr { position: relative; height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .07); } .pc-tr i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; } .pc-tr u { position: absolute; top: -3px; bottom: -3px; width: 1.5px; background: var(--pc-acc); }
.pc-holes b { text-align: right; font-weight: 650; color: #fff; }
.pc-take { margin: 12px 0 0; padding: 13px 15px; border-radius: 16px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .14); font-size: 14px; line-height: 1.4; color: var(--pc-mute); } .pc-take b { color: #fff; }
.pc-foot { margin: 16px 0 0; font-size: 12px; text-align: center; color: var(--pc-mute); }
