/* xabagolf.com. Direction B, Clubhouse OS: docs/branding/brand-guide.html.
   Tokens are section 05 of the guide. Rules kept here on purpose:
   - Tee Lime only on Night, and one moment a page (.lit in the hero). The logo's lit arm doesn't count.
   - Signal Blue on Ice is large text and icons only, so small text on Ice is Night.
   - Status colours on .note and the live table are the product's, not the brand's. */

@font-face { font-family: "Space Grotesk"; src: url(../fonts/space-grotesk-latin.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: Inter; src: url(../fonts/inter-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --night: #0E1B2C; --blue: #2563EB; --lime: #B6F23A; --cloud: #F4F6F9; --ice: #E3EBFF;
  --night-2: #182A42; --slate: #5B6B82; --on-night: #B4C2D6; --line: #DCE2EB;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --rad: 14px;
  /* the mark, on a light ground */
  --m1: var(--night); --lit-c: var(--blue); --word: var(--night);
}
.rev { --m1: #fff; --lit-c: var(--lime); --word: #fff; background: var(--night); color: #fff; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cloud); color: var(--night); font: 16px/1.55 var(--body); overflow-wrap: break-word; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
.rev a:not(.btn) { color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.rev :focus-visible { outline-color: #fff; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.skip { position: absolute; left: 12px; top: -60px; z-index: 40; background: var(--night); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 400px) { .wrap { padding: 0 16px; } }

/* ---------- logo ---------- */
.wm { display: inline-flex; align-items: center; gap: .32em; line-height: 1; white-space: nowrap; color: var(--word); font-family: var(--display); letter-spacing: -.035em; text-decoration: none; }
.wm .mk { width: 1.5em; height: 1.5em; flex: none; }
.wm b { font-weight: 700; }
.wm .g { font-weight: 400; }
.wm i { font-style: normal; font-weight: 700; color: var(--lit-c); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(244,246,249,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 8px; min-height: 64px; }
.top .wm { font-size: 20px; min-height: 44px; }
.top nav { display: flex; align-items: center; gap: 4px; margin-left: auto; font-size: 15px; font-weight: 500; }
.top nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--night); text-decoration: none; border-radius: 8px; }
.top nav a:not(.btn):hover { background: var(--ice); }
.top nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.top .btn { margin-left: 8px; }
@media (max-width: 620px) { .top .btn { display: none; } }
@media (max-width: 360px) { .top .wm { font-size: 18px; } .top nav { font-size: 14px; } .top nav a:not(.btn) { padding: 0 7px; } }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; }
h1 { font-size: clamp(38px, 6.6vw, 64px); line-height: 1.04; letter-spacing: -.025em; }
h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.12; letter-spacing: -.02em; }
h3 { font-size: 19px; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
.lede { font-size: 18px; color: var(--slate); max-width: 680px; }
.rev .lede { color: var(--on-night); }
.eyebrow { font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin: 0 0 14px; }
.rev .eyebrow { color: var(--on-night); }
h2 + .lede, h1 + .lede { margin-top: 14px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px; border-radius: var(--rad); background: var(--blue); color: #fff; font: 600 15px/1.2 var(--body); text-decoration: none; text-align: center; }
.btn:hover { background: #1D4FD0; }
.btn.ghost { background: transparent; color: var(--night); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.ghost:hover { background: var(--ice); }
.rev .btn.ghost { color: #fff; }
.rev .btn.ghost:hover { background: var(--night-2); }
.btn.white { background: #fff; color: var(--night); }
.btn.white:hover { background: var(--ice); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 76px; }
.hero .hub { position: absolute; right: -150px; top: -130px; width: 640px; height: 640px; opacity: .16; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero .lit { color: var(--lime); }
.hero .logo { height: 58px; width: auto; margin-bottom: 30px; }
.hero .sub { font: 500 21px/1.3 var(--display); margin-top: 14px; }
@media (max-width: 880px) {
  .hero { padding: 52px 0 56px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero .hub { width: 340px; height: 340px; right: -130px; top: -110px; }
}

/* the hero's cards, on the home page */
.ui-stack { display: grid; gap: 10px; }
.ui-card { display: flex; gap: 12px; align-items: center; padding: 13px 15px; border-radius: var(--rad); background: #fff; color: var(--night); font-size: 14.5px; line-height: 1.35; }
.ui-card .ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--ice); color: var(--night); }
.ui-card .ic svg { width: 21px; height: 21px; }
.ui-card small { display: block; color: var(--slate); font-size: 13px; }
.ui-card > div { min-width: 0; }
.ui-card .st { margin-left: auto; padding-left: 6px; color: var(--blue); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
@media (max-width: 380px) { .ui-card .st { display: none; } }

/* ---------- phones ---------- */
.phones { display: flex; justify-content: center; align-items: flex-start; }
.ph { flex: none; width: clamp(128px, 19vw, 206px); padding: 7px; border-radius: 30px; background: #050A12; box-shadow: 0 24px 46px -18px rgba(5,10,18,.65), 0 0 0 1.5px rgba(255,255,255,.18) inset; }
.ph img { width: 100%; height: auto; aspect-ratio: 390 / 800; object-fit: cover; object-position: top; border-radius: 24px; background: #fff; }
.phones:not(.two) .ph { width: clamp(128px, 14.5vw, 178px); }
.phones .ph:nth-child(1) { transform: rotate(-5deg); margin-top: 26px; }
.phones .ph:nth-child(2) { z-index: 2; margin-left: -22px; }
.phones .ph:nth-child(3) { transform: rotate(5deg); margin-left: -22px; margin-top: 26px; }
.phones.two .ph:nth-child(2) { transform: rotate(4deg); margin-top: 0; }
@media (max-width: 880px) { .ph, .phones:not(.two) .ph { width: clamp(128px, 30vw, 206px); } }
@media (max-width: 500px) { .phones .ph:nth-child(3) { display: none; } }
.ph.solo { width: min(250px, 100%); margin: 0 auto; }

/* ---------- sections ---------- */
.sec { padding: 68px 0; }
.sec.white { background: #fff; }
.sec-head { margin-bottom: 30px; }
@media (max-width: 640px) { .sec { padding: 50px 0; } }

.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(235px, 100%), 1fr)); }
.card { padding: 20px; border: 1px solid var(--line); border-radius: var(--rad); background: #fff; }
.sec.white .card { background: var(--cloud); border-color: transparent; }
.card h3 + p { margin-top: 6px; }
.card p { color: var(--slate); font-size: 15px; line-height: 1.5; }
.card .ic { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 12px; border-radius: 10px; background: var(--ice); color: var(--blue); }
.card .ic svg { width: 21px; height: 21px; }
.sec.white .card .ic { background: #fff; }
.card .more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-weight: 600; }
.group-title { margin: 34px 0 14px; font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }

.card.night { background: var(--night-2); border-color: transparent; color: #fff; }
.card.night p { color: var(--on-night); }

/* a statement on the company */
.statement { font: 500 clamp(23px, 3.2vw, 31px)/1.28 var(--display); letter-spacing: -.012em; max-width: 880px; }

/* text beside a picture */
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.row.wide-media { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.row.flip > :first-child { order: 2; }
@media (max-width: 880px) { .row, .row.wide-media { grid-template-columns: minmax(0, 1fr); gap: 28px; } .row.flip > :first-child { order: 0; } }

.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 1px; top: 8px; width: 13px; height: 7px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }
.rev .ticks li::before { border-color: #fff; }
.rev .ticks li { color: var(--on-night); }
.rev .ticks b { color: #fff; }
.ticks b { font-weight: 600; }

.shot { border-radius: var(--rad); border: 1px solid var(--line); background: #fff; box-shadow: 0 18px 40px -24px rgba(14,27,44,.4); width: 100%; height: auto; }

/* a round, start to finish */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.steps li { counter-increment: s; padding: 18px 20px; border-radius: var(--rad); background: var(--cloud); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 10px; border-radius: 50%; background: var(--night); color: #fff; font: 700 14px var(--display); }
.steps p { margin-top: 4px; color: var(--slate); font-size: 15px; line-height: 1.5; }

/* side games */
.games { display: grid; gap: 0 28px; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); margin: 0; }
.games div { padding: 14px 0; border-top: 1px solid var(--line); }
.games dt { font: 700 17px/1.25 var(--display); }
.games dd { margin: 3px 0 0; color: var(--slate); font-size: 15px; line-height: 1.5; }

/* the pill on the Pro band */
.pill { display: inline-block; padding: 7px 14px; border-radius: 999px; background: #fff; color: var(--night); font-size: 14.5px; font-weight: 700; }

/* club notices, as the scorecard shows them */
.notes { display: grid; gap: 12px; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--rad); }
.note.red { background: #C62828; color: #fff; }
.note.gold { background: #FFF4D1; color: #4D3800; border: 2px solid #E8A800; }
.note svg { flex: none; width: 24px; height: 24px; margin-top: 1px; }
.note b { display: block; font-weight: 700; line-height: 1.3; }
.note span { display: block; margin-top: 3px; font-size: 13.5px; }

/* call to action */
.cta { background: var(--blue); color: #fff; padding: 58px 0; }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.cta h2 { max-width: 640px; }
.cta p { margin-top: 10px; max-width: 620px; }
.cta a:not(.btn) { color: #fff; font-weight: 600; }
.cta .btns { margin-top: 0; }
.cta .btn.ghost { color: #fff; }
.cta .btn.ghost:hover { background: #1D4FD0; }
.cta :focus-visible { outline-color: #fff; }

/* footer */
footer { padding: 44px 0 40px; font-size: 14.5px; color: var(--on-night); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 22px 56px; justify-content: space-between; }
footer .wm { font-size: 20px; min-height: 44px; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 20px; }
footer li a { display: inline-flex; align-items: center; min-height: 44px; }
footer p { margin-top: 6px; }
footer .fine { flex-basis: 100%; font-size: 13px; }

/* 404 */
.lost { padding: 96px 0; }

.caption { margin-top: 10px; font-size: 13.5px; color: var(--slate); }
.rev .caption { color: var(--on-night); }

/* ---------- the live course table: docs/posters/clubs.html, itself drawn from the admin's live.html ---------- */
.live-scroll { overflow-x: auto; border-radius: 12px; -webkit-overflow-scrolling: touch; }
.lt-card { min-width: 500px; background: #fff; color: #333; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 7px; }
.lt-slow { display: flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.lt-slow b { font-weight: 700; color: #1a7f37; }
.lt-badge { display: inline-block; padding: 1px 6px; border-radius: 4px; background: #333; color: #fff; font-size: 11px; font-weight: 700; }
.lt { border-collapse: separate; border-spacing: 0; width: 100%; table-layout: fixed; }
.lt th, .lt td { padding: 3px 5px; border-bottom: 1px solid #e3e3e3; font-size: 12.5px; line-height: 1.3; text-align: left; white-space: nowrap; font-weight: 500; }
.lt col.no { width: 62px; }
.lt col.gp { width: 13px; }
.lt thead th { padding: 0 2px 4px; vertical-align: top; border-bottom: 0; }
.lt thead th.no { padding: 2px 5px; font-weight: 700; }
.lt tbody th { font-weight: 700; font-size: 13px; box-shadow: 1px 0 0 #e3e3e3; }
.lt tbody th small { margin-left: 4px; font-size: 10.5px; font-weight: 400; color: #666; }
.lt .fl { border-top: 5px solid var(--fl); }
.lt .chip { display: block; margin-top: 2px; padding: 3px 6px; border-radius: 5px; font-size: 11.5px; line-height: 1.26; background: #ececec; color: #555; }
.lt .chip b { display: block; font-size: 12px; font-weight: 700; }
.lt .chip i { display: flex; justify-content: space-between; font-style: normal; }
.lt .chip u { font-weight: 700; text-decoration: none; }
.lt .gp { padding: 0; background: #f4f4f4; border-bottom-color: #f4f4f4; }
.lt .chip.g { background: #dcf3e2; color: #1a7f37; }
.lt .chip.a { background: #fdefc8; color: #8a5a00; }
.lt td.d { background: var(--fl); color: var(--fl-ink); border-bottom-color: #fff; }
.lt td.d b { font-weight: 700; }
.lt td.d small { font-size: 11px; opacity: .92; }
.lt td.n { font-weight: 700; box-shadow: inset 0 0 0 2.5px var(--fl); }
.fl-1 { --fl: #fdd835; --fl-ink: #1a1a1a; } .fl-2 { --fl: #c2185b; --fl-ink: #fff; } .fl-3 { --fl: #aeea00; --fl-ink: #1a1a1a; } .fl-4 { --fl: #6a1b9a; --fl-ink: #fff; }
