/* The site's look, shared by every page: Libre Baskerville for display, Inter
   for everything else, the clubhouse tokens below, generous space, rounded
   cards. The mark (a gold ring, the T as a golf tee, a ball on it; sources in
   docs/brand) is drawn on .brand i. */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Inter:wght@400;500;600;700&display=swap');

/* Clubhouse: near-black green, brass, ivory. One theme (a dark design), so it
   looks the same whatever the system's light/dark setting. */
:root {
  --bg: #0c1410; --bg2: #141f19; --panel: #101a15; --line: #22302a; --line-2: #2a3a30;
  --text: #ece7d8; --muted: #93a097; --gold: #c9a24a; --gold-hi: #e3c27a; --gold-soft: rgba(201, 162, 74, .12);
  --bad: #e98068; --grey: #66706a;
  --accent: var(--gold); --accent-soft: var(--gold-soft); --panel-2: var(--bg2); --gold-2: var(--gold-hi); /* names the scripts use */
  --shadow: 0 1px 0 rgba(255, 255, 255, .02) inset, 0 18px 40px -26px rgba(0, 0, 0, .9);
  --display: 'Libre Baskerville', Georgia, serif;
  --body: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --serif: var(--display); --italic: var(--display); --sans: var(--body);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; color: var(--text); font: 15px/1.6 var(--body);
  background: radial-gradient(90% 55% at 88% 0%, rgba(201, 162, 74, .14), transparent 60%), var(--bg);
  background-attachment: fixed;
}
a { color: var(--gold); text-underline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { * { transition: background-color .2s, border-color .2s, box-shadow .2s, transform .2s, filter .2s; } }

/* ---- sticky, frosted top bar */
.topbar {
  position: sticky; top: 0; z-index: 1000; backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  background: color-mix(in srgb, var(--bg) 72%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.topbar .in { max-width: 1040px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font: 400 22px/1 var(--display); letter-spacing: .01em; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 12px; }
/* The mark (docs/brand/mark.svg, inlined): a ring, the T as a golf tee, a ball on it. The letter stays in the HTML for screen readers. */
.brand i { width: 32px; height: 32px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3CradialGradient id='ball' cx='38%25' cy='34%25' r='70%25'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='.6' stop-color='%23f1ede2'/%3E%3Cstop offset='1' stop-color='%23c9c1aa'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='50' cy='50' r='46' fill='none' stroke='%23c9a24a' stroke-width='4.5'/%3E%3Cpath d='M27 44 Q50 52 73 44 L71.5 50 Q50 57 28.5 50 Z' fill='%23c9a24a'/%3E%3Cpath d='M45.5 54 L54.5 54 L52.5 80 L50 86 L47.5 80 Z' fill='%23c9a24a'/%3E%3Ccircle cx='50' cy='33' r='13' fill='url(%23ball)' stroke='%23a99f86' stroke-width='1'/%3E%3C/svg%3E") center / contain no-repeat; font-size: 0; color: transparent; }
.tabs { display: flex; gap: 6px; }
.tabs a { font: 500 12px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--muted); padding: 8px 10px; }
.tabs a.on { color: var(--gold); }
.tabs a:hover:not(.on) { color: var(--text); }

/* ---- hero */
.hero { display: grid; gap: 14px; padding: 44px 0 30px; }
.eyebrow { font: 600 11px/1.4 var(--body); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.hero h1 { font: 400 clamp(34px, 5.4vw, 56px)/1.12 var(--display); letter-spacing: -.005em; margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
/* (overflow-wrap: a long word, such as the Account page's email, breaks instead of making the page wider than a phone, TT-193) */
.hero h1 em { color: var(--gold); }
.hero .lede { font-size: 17px; color: var(--muted); margin: 0; max-width: 62ch; }
.hero nav, .facts { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 13px; }
.facts b { color: var(--text); font-weight: 600; }
.hero nav a { font: 600 11px/1.4 var(--body); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; }
.hero nav a:hover { color: var(--gold-hi); }

/* ---- section heads: italic display heading, then a fading hairline */
.section-head { display: flex; align-items: baseline; gap: 18px; margin: 46px 0 16px; }
.section-head h2 { font: italic 400 clamp(24px, 3.4vw, 32px)/1.2 var(--display); margin: 0; white-space: nowrap; }
.section-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }

/* ---- cards */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); }

/* ---- controls */
button, select, input[type=number], input[type=date], input[type=time], input[type=text], input[type=email], input[type=tel], input[type=search], input:not([type]) {
  font: 500 14px/1.3 var(--body); color: var(--text); background: var(--bg2); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 13px;
}
input:focus, select:focus, button:focus-visible { outline: 2px solid color-mix(in srgb, var(--gold) 60%, transparent); outline-offset: 1px; }
.btn-gilt, button.primary {
  font: 600 15px/1 var(--body); cursor: pointer; color: #1a1208; border: 0; border-radius: 14px; padding: 17px 24px;
  background: linear-gradient(180deg, #e3c27a, #b8893e);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 10px 22px -14px rgba(201, 162, 74, .8);
}
.btn-gilt:hover, button.primary:hover { filter: brightness(1.05); }
.label-caps { font: 600 10.5px/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

/* who's signed in (only shown when reached through Cloudflare) */
.tabs { margin-left: auto; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; margin-left: 14px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.who:empty { display: none; }
.who a { flex-shrink: 0; }
/* (the email is the one part that shrinks, with "...": .who a's flex-shrink: 0 used to hold it at full width
   too, so a long address pushed Sign out past the screen's edge, TT-193) */
.who .em { min-width: 0; flex-shrink: 1; overflow: hidden; text-overflow: ellipsis; }
.who a { color: var(--muted); }
.who a:hover { color: var(--gold); }

/* A tab row that scrolls (phones, and tablets with five tabs, below): no scrollbar, and a fade at the
   edge that has more tabs (nav.js sets .more and .back only while the row is wider than its box). */
.tabs { overscroll-behavior-x: contain; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs.more { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
.tabs.back { -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px); mask-image: linear-gradient(90deg, transparent, #000 32px); }
.tabs.more.back { -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); }

/* tablets with five tabs (course staff): the logo, five tabs and who don't fit one row below about
   1000px, so the tabs get their own row as on a phone, at the desktop size (TT-193) */
@media (min-width: 641px) and (max-width: 1000px) {
  .topbar .in:has(.tabs > a:nth-child(5)) { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "brand who" "tabs tabs"; gap: 6px 12px; padding-bottom: 6px; }
  .topbar .in:has(.tabs > a:nth-child(5)) .brand { grid-area: brand; white-space: nowrap; }
  .topbar .in:has(.tabs > a:nth-child(5)) .who { grid-area: who; justify-self: stretch; justify-content: flex-end; margin-left: 0; }
  .topbar .in:has(.tabs > a:nth-child(5)) .tabs { grid-area: tabs; min-width: 0; margin-left: -10px; overflow-x: auto; border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); padding-top: 2px; }
  .topbar .in:has(.tabs > a:nth-child(5)) .tabs a { flex: none; white-space: nowrap; }
}

/* phones: logo and who on top, the tabs on their own row underneath */
@media (max-width: 640px) {
  .topbar .in { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "brand who" "tabs tabs"; gap: 6px 12px; padding: 10px 16px 6px; }
  .brand { grid-area: brand; font-size: 19px; gap: 10px; white-space: nowrap; }
  .brand i { width: 28px; height: 28px; }
  /* (who fills its cell and lines up on the right, so a long email shortens with "..." instead of
     pushing Sign out past the screen's edge: justify-self: end sized it to the whole email, TT-193) */
  .who { grid-area: who; justify-self: stretch; justify-content: flex-end; max-width: 100%; margin-left: 0; font-size: 11.5px; }
  /* The tab row never makes the page wider than the screen (TT-193, Mike Nov 29 2026: with the Pro shop
     tab the page scrolled sideways). Where the tabs still don't fit, the row scrolls on its own, with no
     scrollbar, and fades at the edge that has more (nav.js sets .more and .back and brings the page's
     own tab into view). */
  .tabs { grid-area: tabs; min-width: 0; margin-left: 0; justify-content: space-between; border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); padding-top: 2px;
    overflow-x: auto; }
  .tabs a { flex: none; padding: 9px 4px; font-size: 11px; letter-spacing: .16em; white-space: nowrap; }
  /* five tabs (course staff get Pro shop): a little smaller and tighter, so all five fit from 390px */
  .tabs:has(> a:nth-child(5)) { gap: 0; }
  .tabs:has(> a:nth-child(5)) a { padding: 9px 3px; font-size: 10.5px; letter-spacing: .08em; }
}
/* the smallest phones (iPhone SE, 360px Androids): four tabs still fit on one row; five scroll in the row,
   with room between them so each still reads as its own tab */
@media (max-width: 380px) {
  .tabs { gap: 0; }
  .tabs a { padding: 9px 2px; font-size: 10.5px; letter-spacing: .1em; }
  .tabs:has(> a:nth-child(5)) a { padding: 9px 6px; }
  .tabs:has(> a:nth-child(5)) a:first-child { padding-left: 2px; }
}

/* ---- the share panel (share.js): the link, then ways to send it */
.share-panel { position: fixed; z-index: 2000; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(440px, calc(100vw - 32px));
  background: var(--panel); border: 1px solid var(--gold); border-radius: 18px; padding: 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, .6); display: grid; gap: 12px; }
.share-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.share-head b { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.share-x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; padding: 2px 4px; }
.share-url { width: 100%; font: 500 14px/1.2 var(--body); padding: 10px 12px; border-radius: 12px; }
.share-ways { display: flex; flex-wrap: wrap; gap: 8px; }
.share-ways a, .share-ways button { flex: 1 1 auto; text-align: center; text-decoration: none; cursor: pointer; font: 600 13.5px/1 var(--body); color: var(--gold-hi); padding: 11px 14px; border-radius: 999px; border: 1px solid var(--gold); background: transparent; }
.share-ways a:hover, .share-ways button:hover { background: var(--gold-soft); }
.share-msg { color: var(--muted); font-size: 13px; }
.share-msg:empty { display: none; }
button.share { cursor: pointer; background: transparent; border: 1px solid var(--line-2); color: var(--muted); border-radius: 999px; padding: 6px 12px; font: 500 13px/1 var(--body); }
button.share:hover { border-color: var(--gold); color: var(--gold); }

/* ---- Stripe test mode (PRD "Stripe payments"): a band on every page that takes a card, so a test is never taken for a real charge */
.testband { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 8px 16px; background: rgba(231, 181, 92, .14); color: #e7b55c; font: 600 12.5px/1.4 var(--body); border-bottom: 1px solid rgba(231, 181, 92, .25); }
.testband b { letter-spacing: .12em; text-transform: uppercase; font-size: 10.5px; border: 1px solid currentColor; border-radius: 4px; padding: 2px 6px; }
/* (hidden when the business takes real money: the display above would otherwise beat the hidden attribute, and a live
   payment page said "No money moves", found on production Nov 19 2026) */
.testband[hidden] { display: none; }

/* Every button: a press you can feel, and while it waits on the server (busy.js) a spinner, no second press. */
button { transition: transform .08s ease, filter .08s ease; }
button:active:not(:disabled) { transform: translateY(1px) scale(.98); filter: brightness(.92); }
button.busy, button.busy:disabled { opacity: 1; cursor: progress; }
button.busy::before { content: ""; display: inline-block; width: .9em; height: .9em; margin-right: .5em; vertical-align: -.12em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: tt-spin .7s linear infinite; }
@keyframes tt-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { button { transition: none; } button.busy::before { animation: none; border-right-color: currentColor; opacity: .6; } }

/* Messages people must notice (TT-322, TT-323, web/notice.js): the shared toast (the search toast's look) and
   in-page callouts with a way out. Never only a line of small text (implementation skill, 2a). A one-line toast is a
   pill (21px radius on a 42px line); a long one wraps into a rounded box the screen's width, not a narrow circle
   (left: 50% alone shrank it to half the screen; width: max-content fixes that, TT-279).  */
.ntoast { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translate(-50%, 0); z-index: 1000;
  display: flex; align-items: center; gap: 12px; width: max-content; max-width: min(560px, calc(100vw - 32px)); box-sizing: border-box; padding: 11px 12px 11px 18px; border-radius: 21px;
  background: var(--panel); color: var(--text); border: 1px solid var(--gold); box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  font: 500 14.5px/1.35 var(--body); transition: opacity .25s, transform .25s; }
.ntoast[hidden] { display: flex; opacity: 0; transform: translate(-50%, 20px); pointer-events: none; }
.ntoast.bad { border-color: var(--bad); }
.ntoast .txt { min-width: 0; }
.ntoast .act { flex: 0 0 auto; font: 600 14px/1 var(--body); color: #14110a; background: var(--gold); border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.ntoast .act[hidden] { display: none; }
.ntoast .x { flex: 0 0 auto; background: none; border: 0; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }
.ntoast .spin, .spin-i { width: 14px; height: 14px; flex: 0 0 auto; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--gold); animation: tt-spin .8s linear infinite; display: inline-block; }
.ntoast:not(.busy) .spin { display: none; }
@keyframes tt-spin { to { transform: rotate(360deg); } }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin: 10px 0; padding: 14px 18px;
  border: 1px solid var(--gold); border-radius: 14px; background: var(--gold-soft); color: var(--text); font: 500 15px/1.45 var(--body); }
.callout[hidden] { display: none; }
.callout.bad { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.callout .act { flex: 0 0 auto; font: 600 14px/1 var(--body); color: #14110a; background: var(--gold); border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer; text-decoration: none; }
.callout.bad .act { background: var(--text); }
.callout .busy { display: inline-flex; align-items: center; gap: 10px; }
