/* Global Golf Club — tokens from BUILD_DECISIONS.md §3. Contrast pairings are in that table. */
:root {
  --ggc-fairway: #102D2A;
  --ggc-lime: #D4E252;
  --ggc-paper: #F3F0E8;
  --ggc-terracotta: #D27851;      /* decoration only on light surfaces */
  --ggc-terracotta-ink: #9E4E2C;  /* terracotta for text on light surfaces (5.2:1 on paper) */
  --ggc-card: #FFFFFF;
  --ggc-mist: #E3E7E0;
  --ggc-muted: #4A5A57;           /* 6.6:1 on paper */
  --ggc-line: #CFCBBF;
  --ggc-error: #A3261A;
  --radius: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; /* proxy until licensed faces are chosen */
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ggc-paper); color: var(--ggc-fairway); font: 1.0625rem/1.55 var(--font); }
a { color: var(--ggc-fairway); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--ggc-fairway); outline-offset: 2px; box-shadow: 0 0 0 6px var(--ggc-lime); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ggc-lime); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 8px; }

.topbar { background: var(--ggc-fairway); color: var(--ggc-paper); display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between; padding: .85rem clamp(1rem, 4vw, 2.5rem); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ggc-paper); text-decoration: none; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; font-size: 1rem; }
.mark { width: 34px; height: 34px; color: var(--ggc-lime); flex: none; }
.topbar nav { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; align-items: center; }
.topbar nav a, .topbar .link { color: var(--ggc-paper); font-weight: 600; text-decoration: none; }
.topbar nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ggc-lime); text-decoration-thickness: 3px; }
.topbar :focus-visible { outline-color: var(--ggc-lime); box-shadow: none; }

.page { max-width: 44rem; margin: 0 auto; padding: 2rem 1rem 3rem; }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.1; letter-spacing: -.02em; margin: .2rem 0 .6rem; }
h2 { font-size: 1.35rem; margin: 0 0 .5rem; }
.lede { font-size: 1.15rem; color: var(--ggc-muted); margin-top: 0; }
.muted, .hint { color: var(--ggc-muted); }
.hint { font-size: .92rem; margin: .1rem 0 .4rem; }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ggc-terracotta-ink); margin: 0 0 .35rem; }
.eyebrow-lime { color: var(--ggc-lime); } /* only on fairway */

.hero { background: var(--ggc-fairway); color: var(--ggc-paper); padding: clamp(3rem, 10vw, 7rem) 1rem; }
.hero-inner { max-width: 60rem; margin: 0 auto; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 5.5rem); color: var(--ggc-paper); max-width: 12ch; }
.hero .lede { color: #DCD8CD; max-width: 36rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.steps ol { padding-left: 1.2rem; }
.steps li { margin-bottom: .8rem; }

.btn { display: inline-block; border: 2px solid transparent; border-radius: 999px; padding: .7rem 1.35rem; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn-lime { background: var(--ggc-lime); color: var(--ggc-fairway); }
.btn-dark { background: var(--ggc-fairway); color: var(--ggc-paper); }
.btn-ghost { border-color: var(--ggc-paper); color: var(--ggc-paper); background: transparent; }
.btn-ghost-dark { border-color: var(--ggc-fairway); color: var(--ggc-fairway); background: transparent; }
.link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.inline { display: inline; margin: 0; }

.card { background: var(--ggc-card); border: 1px solid var(--ggc-line); border-radius: var(--radius); padding: clamp(1rem, 3vw, 1.75rem); margin: 1.25rem 0; }
.form .btn { margin: .5rem .5rem 0 0; }
.field { margin: 0 0 1.25rem; border: 0; padding: 0; }
label, legend { font-weight: 700; display: block; }
input:not([type=radio]):not([type=checkbox]), textarea { width: 100%; font: inherit; padding: .65rem .8rem; border: 2px solid var(--ggc-muted); border-radius: 10px; background: #fff; color: var(--ggc-fairway); }
.radios { display: grid; gap: .35rem; margin-top: .4rem; }
.radios label, .check { font-weight: 500; display: flex; gap: .55rem; align-items: center; }
input[type=radio], input[type=checkbox] { width: 1.2rem; height: 1.2rem; accent-color: var(--ggc-fairway); flex: none; }

.notice { background: var(--ggc-lime); border-radius: 10px; padding: .75rem 1rem; font-weight: 600; }
.error-summary { border: 3px solid var(--ggc-error); border-radius: 10px; padding: .75rem 1rem; background: #fff; color: var(--ggc-error); }
.error-summary ul { margin: .25rem 0 0; padding-left: 1.2rem; }

.passport-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.passport-head h2 { margin: 0; }
.passport-head p { margin: 0; }
.avatar { width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--ggc-fairway); color: var(--ggc-lime); display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; }
.chips { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.chips li { background: var(--ggc-mist); border-radius: 999px; padding: .3rem .8rem; font-weight: 600; font-size: .95rem; }
.trust { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.trust .is-yes { font-weight: 700; }
.trust .is-no { color: var(--ggc-muted); }
.passport h3 { margin-top: 1.1rem; }

.foot { border-top: 1px solid var(--ggc-line); padding: 1.5rem 1rem 2.5rem; color: var(--ggc-muted); font-size: .9rem; }
.foot p { max-width: 44rem; margin: 0 auto; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Find and Rounds */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.badge { display: inline-block; min-width: 1.4em; padding: 0 .4em; margin-left: .2em; border-radius: 999px; background: var(--ggc-lime); color: var(--ggc-fairway); font-size: .8rem; text-align: center; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0 1rem; }
.plain { list-style: none; padding: 0; margin: 0; }
.card.slim { padding: .75rem 1rem; margin: .5rem 0; display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; }
.small { font-size: .9rem; }
.reasons { list-style: none; padding: 0; margin: 0 0 .75rem; display: grid; gap: .3rem; }
.reasons li::before { content: "✓ "; font-weight: 800; }
.mismatch { padding-left: 1.2rem; margin: 0 0 .75rem; }
.unknown { color: var(--ggc-muted); font-style: italic; margin: 0 0 .75rem; }
.pill { display: inline-block; padding: .55rem 1rem; border-radius: 999px; background: var(--ggc-mist); font-weight: 700; }
.match h2 a { text-decoration: none; }
.summary dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; margin: 0; }
.summary dt { font-weight: 700; }
.summary dd { margin: 0; }
.note { margin: 1rem 0 0; padding-top: .75rem; border-top: 1px solid var(--ggc-line); }
details.suggest { margin: 1rem 0; }
details.suggest summary { cursor: pointer; font-weight: 700; }
.messages { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.messages li { padding: .55rem .8rem; border-radius: 12px; background: var(--ggc-mist); max-width: 36rem; }
.messages li.mine { background: var(--ggc-paper); border: 1px solid var(--ggc-line); justify-self: end; }
.messages .who { display: block; font-size: .8rem; font-weight: 800; }
@media (max-width: 30rem) { .summary dl { grid-template-columns: 1fr; } .summary dd { margin-bottom: .4rem; } }

/* Updates */
.card.is-new { border-left: 5px solid var(--ggc-fairway); }
.pill-new { background: var(--ggc-lime); color: var(--ggc-fairway); border-radius: 999px; padding: 0 .55rem; font-size: .8rem; font-weight: 800; }
.btn-danger { background: var(--ggc-error); color: #fff; }
.req { border-top: 1px solid var(--ggc-line); padding-top: .75rem; margin-top: .75rem; }
.req p { margin: 0 0 .4rem; }
button[disabled] { opacity: .45; cursor: not-allowed; }
/* The header's link colour must not override the lime button (was 1.24:1). */
.topbar nav a.btn-lime { color: var(--ggc-fairway); }
.topbar nav a.btn-lime:focus-visible { outline-color: var(--ggc-paper); }
[aria-invalid="true"] { border-color: var(--ggc-error) !important; }

/* Insights tables */
.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data th, .data td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--ggc-line); }
.data thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ggc-muted); }
.data tbody th { font-weight: 600; }
.data td { font-variant-numeric: tabular-nums; }
@media (max-width: 30rem) { .data { font-size: .85rem; } .data th, .data td { padding: .4rem .3rem; } }

/* Legal pages */
.notice.draft { background: var(--ggc-mist); border-left: 5px solid var(--ggc-terracotta-ink); }
.tbc { background: #FFF3C4; color: var(--ggc-fairway); font-style: normal; padding: 0 .25rem; border-radius: 4px; }
.foot-links { margin-top: .5rem !important; }
.foot-links a { color: var(--ggc-muted); }

/* Home page (Route 02 homepage concept) */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem; align-items: center; max-width: 72rem; }
.hero-grid h1 { max-width: 11ch; }
.route-art { position: relative; margin: 0; }
.route-art svg { width: 100%; height: auto; display: block; overflow: visible; }
.route-art .ring { fill: none; stroke: #1E4A45; stroke-width: 60; opacity: .55; }
.route-art .ring-inner { stroke: #24524C; stroke-width: 40; }
.route-art .route { fill: none; stroke: var(--ggc-lime); stroke-width: 20; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: ggc-draw 1.8s ease-out .2s both; }
.route-art .dot { fill: var(--ggc-lime); }
@keyframes ggc-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.pin { position: absolute; background: var(--ggc-paper); color: var(--ggc-fairway); border-radius: 12px; padding: .55rem .8rem; line-height: 1.3; box-shadow: 0 8px 24px rgba(0,0,0,.25); font-size: .92rem; }
.pin strong { display: block; }
.pin span { color: var(--ggc-muted); }
.pin-you { left: 2%; top: 6%; animation: ggc-pop .4s ease-out .1s both; }
.pin-fit { right: 0; bottom: 18%; animation: ggc-pop .4s ease-out 1.9s both; }
@keyframes ggc-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.band { background: var(--ggc-card); padding: clamp(2.5rem, 7vw, 4.5rem) 1rem; }
.band-paper { background: var(--ggc-paper); }
.band-dark { background: var(--ggc-fairway); color: var(--ggc-paper); }
.band-dark h2 { color: var(--ggc-paper); font-size: clamp(1.9rem, 5vw, 2.8rem); }
.band-dark .lede { color: #DCD8CD; }
.band-inner { max-width: 72rem; margin: 0 auto; }
.band-inner.narrow { max-width: 44rem; }
.band h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.15; letter-spacing: -.01em; margin-bottom: 1.5rem; max-width: 30ch; }
.centre { text-align: center; }
.centre h2 { margin-left: auto; margin-right: auto; }
.actions.centre { justify-content: center; }

.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.tile { background: var(--ggc-paper); border-radius: var(--radius); padding: 1.4rem; }
.tile h3 { margin: .6rem 0 .4rem; font-size: 1.2rem; }
.tile p { margin: 0; color: var(--ggc-muted); }
.num { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--ggc-fairway); color: var(--ggc-lime); font-weight: 800; }

.people { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .75rem; }
.people li { background: var(--ggc-mist); border-radius: 12px; padding: 1rem 1.1rem; }
.people strong { display: block; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; margin-bottom: .3rem; }
.people span { color: var(--ggc-fairway); }

.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.checks li { padding-left: 1.6rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: .75rem; height: .75rem; border-radius: 50%; background: var(--ggc-lime); box-shadow: 0 0 0 2px var(--ggc-fairway); }
.sample { position: relative; margin: 0; }
.sample-label { position: absolute; top: .9rem; right: 1rem; margin: 0; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ggc-muted); }
.sample-name { font-size: 1.35rem; font-weight: 700; margin: 0; }

@media (max-width: 52rem) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .route-art { max-width: 26rem; margin: 0 auto; }
  .nav-extra { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .route-art .route, .pin { animation: none !important; }
}

/* Clubs and The Starter's Box */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; margin: 0 0 .5rem; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.from-club { border-left: 5px solid var(--ggc-lime); }
.club-status { color: var(--ggc-muted); }
.status-managed, .status-partner { color: var(--ggc-fairway); font-weight: 600; }
@media (max-width: 30rem) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: .4rem; } }
.page .tile { background: var(--ggc-card); border: 1px solid var(--ggc-line); }
.page .tiles { margin: 1.5rem 0; }
