:root {
  --ink: #0f3d18;      /* deep green, from the logo */
  --ink-2: #178b19;    /* logo green */
  --paper: #f3f5f1;
  --card: #ffffff;
  --line: #cfd8d0;
  --sand: #e6d9b3;
  --flag: #c23b2e;
  --text: #1b2420;
  --muted: #5d6a63;
  --ok: #1f7a4d;
  --warn: #9a5b00;
  --num: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 17px/1.5 var(--body); }
a { color: var(--ink-2); }
a:hover { color: var(--flag); }
:focus-visible { outline: 3px solid var(--flag); outline-offset: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: 28px; padding-bottom: 40px; min-height: 70vh; }

/* Bar at the very top for moving between the golfer side, the HCAP Club office and the back office */
.switcher { background: var(--ink); color: #cfe0d6; font-size: 13px; }
.switcher-in { display: flex; gap: 4px 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; min-height: 38px; }
.switcher .parts { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
/* Who is logged in */
.whoami { display: flex !important; align-items: center; gap: 9px; padding: 4px 0 !important; border: 0 !important; background: none !important; color: #fff !important; text-decoration: none; }
.whoami .av { width: 28px; height: 28px; border-radius: 50%; background: var(--sand); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font: 700 12px var(--body); letter-spacing: .02em; flex: none; }
.whoami .who-t { display: flex; flex-direction: column; line-height: 1.15; }
.whoami b { font-size: 14px; color: #fff; }
.whoami small { font-size: 11.5px !important; color: #cfe0d6 !important; }
.whoami:hover b { text-decoration: underline; }
.whoami.none { color: #9fbfae; font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.switcher a { color: #cfe0d6; text-decoration: none; padding: 6px 12px; font-size: 13px; display: flex; gap: 6px; align-items: baseline; border-bottom: 2px solid transparent; }
.switcher a small { font-size: 12px; color: #9fbfae; }
.switcher a:hover { color: #fff; background: rgba(255,255,255,.06); }
.switcher a[aria-current] { color: #fff; font-weight: 700; border-bottom-color: var(--sand); background: rgba(255,255,255,.08); }
.switcher a[aria-current] small { color: var(--sand); font-weight: 400; }
@media (max-width: 520px) { .switcher .parts a { padding: 6px 8px; } .switcher .parts a small { display: none; } .whoami small { display: none; } .whoami b { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
@media print { .switcher { display: none; } }

/* Header: white, like the old site, with the stick-golfer logo */
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 84px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { height: 64px; width: auto; }
.brand span { font: 600 44px/1 var(--num); letter-spacing: .01em; color: var(--text); }
.brand small { font: 400 17px var(--body); color: var(--text); margin-left: 4px; }
.brand:hover span { color: var(--ink-2); }
#nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
#nav a { color: #555; text-decoration: none; padding: 8px 10px; font-size: 16px; }
#nav a:hover { color: var(--ink-2); }
#nav a[aria-current] { color: var(--text); box-shadow: inset 0 -3px 0 var(--ink-2); }
.menu-btn { display: none; margin-left: auto; background: #fff; border: 1px solid var(--line); color: var(--text); padding: 6px 12px; border-radius: 6px; font: inherit; }
/* The tagline fits beside the short public and club menus; the golfer and back-office menus are longer */
.area-golfer .brand small, .area-admin .brand small { display: none; }
.area-club:has(.who-h) .brand small { display: none; } /* the club's name is in the badge */

@media (max-width: 1040px) {
  .menu-btn { display: block; }
  #nav { display: none; width: 100%; flex-direction: column; padding-bottom: 10px; }
  #nav.open { display: flex; }
  #nav a[aria-current] { box-shadow: inset 3px 0 0 var(--ink-2); }
}
@media (max-width: 420px) { .brand img { height: 52px; } .brand span { font-size: 36px; } .top-in { min-height: 70px; } }

/* Landing hero: a fairway photo if assets/hero.jpg exists, otherwise a green sky-to-grass wash */
.hero { position: relative; margin: -28px calc(50% - 50vw) 28px; min-height: 440px; display: flex; align-items: flex-end;
  background: linear-gradient(180deg, #b9c9d3 0%, #cdd6c9 38%, #5d8f3a 40%, #2f6b22 100%) center/cover; color: #fff; }
.hero.has-photo { background-size: cover; background-position: center; }
.hero { overflow: hidden; min-height: clamp(400px, 39vw, 620px); }
.hero .slide { position: absolute; inset: 0; background: center top/cover no-repeat; opacity: 0; transition: opacity 1s ease; }
.hero .slide.on { opacity: 1; }
.slide-btn { position: absolute; z-index: 3; top: 45%; transform: translateY(-50%); background: none; border: 0; color: #fff; font-size: 64px; line-height: 1; padding: 10px 18px; cursor: pointer; opacity: .75; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.slide-btn:hover { opacity: 1; }
.slide-btn.prev { left: 2%; } .slide-btn.next { right: 2%; }
.dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; }
.dots button { width: 36px; height: 4px; border: 0; padding: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.dots button[aria-current] { background: #fff; }
@media (max-width: 600px) { .slide-btn { display: none; } .hero { min-height: 400px; } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(0,0,0,.6), rgba(0,0,0,0) 55%), linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,0) 55%); }
.hero-in { position: relative; z-index: 2; max-width: 1080px; width: 100%; margin: 0 auto; padding: 0 20px 52px; }
.hero h1 { color: #fff; font: 600 clamp(38px, 6vw, 64px)/1.05 var(--num); margin: 0 0 8px; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero p { font-size: 22px; margin: 0 0 20px; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero .btn-light { border-color: #fff; }
.hero a:not(.btn) { color: #fff; }

/* Type */
h1, h2, h3 { font-family: var(--num); font-weight: 700; line-height: 1.1; color: var(--ink); margin: 0 0 12px; }
h1 { font-size: 40px; }
h2 { font-size: 27px; margin-top: 32px; }
h3 { font-size: 21px; }
p { margin: 0 0 12px; max-width: 72ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.lead { font-size: 19px; color: var(--muted); }

/* Notices */
.note { padding: 12px 16px; border-radius: 8px; margin: 0 0 18px; border-left: 5px solid var(--ok); background: #e5f2ea; }
.note-err { border-color: var(--flag); background: #f8e5e2; }
.note-warn { border-color: var(--warn); background: #f7eedb; }

/* The scoreboard: the one loud thing */
.board { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: var(--ink); color: #fff; border-radius: 14px; padding: 26px 30px; }
.board .big { background: var(--sand); color: var(--ink); border-radius: 10px; padding: 12px 26px 8px; text-align: center; min-width: 190px; }
.board .big b { display: block; font: 700 96px/0.95 var(--num); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.board .big span { font: 600 18px var(--num); }
.board h1 { color: #fff; margin-bottom: 6px; }
.board .facts { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 10px; color: #dfe8e2; }
.board .facts b { font: 700 24px var(--num); color: #fff; display: block; }
.board a { color: var(--sand); }
@media (max-width: 640px) { .board { grid-template-columns: 1fr; padding: 20px; } .board .big b { font-size: 80px; } }

/* 20-round strip, read like a scorecard row */
.strip { display: grid; grid-template-columns: repeat(20, 1fr); gap: 1px; background: var(--line); border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; }
.cell { background: var(--card); text-align: center; padding: 8px 0 6px; min-width: 0; min-height: 50px; }
.cell b { display: block; font: 700 19px/1 var(--num); font-variant-numeric: tabular-nums; }
.cell i { display: block; font: normal 12px var(--body); color: var(--muted); margin-top: 3px; }
.cell.on { background: var(--ink-2); color: #fff; }
.cell.on i { color: #cfe0d6; }
.cell.empty { background: repeating-linear-gradient(135deg, #fff 0 6px, #eef1ec 6px 12px); }
@media (max-width: 900px) { .strip { grid-template-columns: repeat(10, 1fr); } }
@media (max-width: 480px) { .strip { grid-template-columns: repeat(5, 1fr); } .cell b { font-size: 21px; } }
.key { display: flex; gap: 18px; font-size: 14px; color: var(--muted); margin: 8px 0 0; flex-wrap: wrap; }
.key span.k::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; border: 1px solid var(--line); }
.key .k-on::before { background: var(--ink-2); border-color: var(--ink-2); }

/* Panels, tables, forms */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; margin: 0 0 20px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 15px var(--num); letter-spacing: .02em; color: var(--muted); background: #f7f9f6; white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.counts td { background: #e8f1ec; }
tr.counts td:first-child { box-shadow: inset 4px 0 0 var(--ink-2); }
tr.out td { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.3); }
tr.out td.why { text-decoration: none; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 20px; background: #eef1ec; color: var(--muted); white-space: nowrap; }
.tag-ink { background: var(--ink-2); color: #fff; }
.tag-flag { background: #f8e5e2; color: var(--flag); }
.tag-sand { background: var(--sand); color: var(--ink); }

form.stack { display: grid; gap: 14px; max-width: 520px; align-content: start; }
label { display: grid; gap: 4px; font-weight: 600; font-size: 15px; }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; font-weight: 400; padding: 9px 11px; border: 1px solid #b5c1b8; border-radius: 7px; background: #fff; color: var(--text); width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--ink-2); outline: 2px solid rgba(31,90,67,.25); outline-offset: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row3 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.check input { width: auto; margin-top: 5px; }
.hint { font-size: 14px; color: var(--muted); font-weight: 400; }
.btn { display: inline-block; background: var(--ink); color: #fff; border: 0; border-radius: 7px; padding: 10px 18px; font: 600 16px var(--body); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--ink-2); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
.btn-light:hover { background: #eef3ef; color: var(--ink); }
.btn-flag { background: var(--flag); }
.btn-flag:hover { background: #a3291e; }
.btn-sm { padding: 5px 11px; font-size: 14px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; cursor: pointer; font: inherit; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hp { position: absolute; left: -9999px; }

/* Stats on back-office dashboard */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.stat b { display: block; font: 700 36px/1 var(--num); color: var(--ink); }
.stat span { color: var(--muted); font-size: 14px; }

/* Chart */
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart text { font: 12px var(--body); fill: var(--muted); }
.chart .line { fill: none; stroke: var(--ink-2); stroke-width: 2.5; stroke-linejoin: round; }
.chart .dot { fill: var(--flag); }

/* Course handicap cards */
.tees { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tee { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; }
.tee b { font: 700 40px/1 var(--num); color: var(--ink); }
.tee .t { font-weight: 700; }

/* Search picker */
.picker { position: relative; }
.picker ul { position: static; margin: 4px 0 0; padding: 4px 0; list-style: none; background: #fff; border: 1px solid #b5c1b8; border-radius: 7px; max-height: 240px; overflow: auto; box-shadow: 0 4px 12px rgba(19,55,42,.12); }
.picker li { padding: 7px 12px; cursor: pointer; font-size: 15px; }
.picker li[aria-selected="true"], .picker li:hover { background: #e8f1ec; }
.picker li small { color: var(--muted); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; color: var(--muted); font-size: 14px; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid var(--line); }
.pager { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.pager a, .pager span { padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; background: #fff; }
.pager span { background: var(--ink); color: #fff; border-color: var(--ink); }
@media print { .top, .foot, .actions, .btn { display: none !important; } body { background: #fff; } }
td.nw { white-space: nowrap; }

/* Club page sections */
.tabs { display: flex; gap: 4px; margin: 22px 0 16px; border-bottom: 2px solid var(--line); flex-wrap: wrap; }
.tabs a { padding: 9px 16px; text-decoration: none; color: var(--muted); font-weight: 600; margin-bottom: -2px; border-bottom: 3px solid transparent; }
.tabs a:hover { color: var(--ink-2); }
.tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--ink-2); }
.actions a[aria-current] { font-weight: 700; color: var(--ink); text-decoration: none; }
input[readonly] { background: #eef1ec; color: var(--muted); cursor: default; }
input[readonly]:focus { outline: none; border-color: #b5c1b8; }
[hidden] { display: none !important; }
.homeclub { display: grid; gap: 10px; }
.btn { white-space: nowrap; }
.members-table td { padding-left: 6px; padding-right: 6px; }
.members-table input[name=member_no] { width: 90px !important; }
.members-table select[name=to] { max-width: 130px !important; }
.members-table th { white-space: normal; }
.log-table td { font-size: 14px; }
.log-table tr.log-bad td { background: #fbeeec; }
.log-table details summary { cursor: pointer; color: var(--ink-2); }
.share-link { padding: 14px 16px; }
.link-new { border-color: var(--ink-2); box-shadow: 0 0 0 2px rgba(23,139,25,.2); }
button:disabled, .btn:disabled { opacity: .7; cursor: wait; }
.is-busy { display: inline-flex; align-items: center; gap: 8px; }
.spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2s; } }
.email-type summary { cursor: pointer; list-style: none; }
.email-type summary::-webkit-details-marker { display: none; }
.email-type[open] summary { margin-bottom: 4px; }

/* Logged-in person at the right of the header: circle, name, and Log out under the name */
.who-h { display: flex; align-items: center; gap: 8px; margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--line); }
.who-h-av { text-decoration: none; display: flex; }
.who-h .av { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font: 700 13px var(--body); flex: none; }
.who-h-t { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.who-h-name { font-size: 14px; font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.who-h-name:hover { color: var(--ink-2); text-decoration: underline; }
.who-h-out { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.who-h-out:hover { color: var(--flag); }
#nav a.nav-logout { display: none; }
#nav { margin-left: auto; }
@media (max-width: 1200px) and (min-width: 1041px) { #nav a { padding: 8px 7px; } .who-h { margin-left: 8px; padding-left: 8px; } .who-h-name { max-width: 105px; } }
@media (max-width: 1040px) {
  .who-h { order: 2; margin-left: 10px; padding-left: 0; border-left: 0; }
  .menu-btn { order: 3; margin-left: 10px; }
  .who-h-t { display: none; }                                             /* phone: circle only; Log out is in the menu */
  #nav { order: 4; }
  #nav a.nav-logout { display: block; }
  .top-in .brand { margin-right: auto; }
}

/* Small links to the parts of HCAP (footer, and the bottom of the phone menu) */
.foot-parts { display: flex; gap: 14px; flex-wrap: wrap; }
.foot-parts a, .nav-parts a { color: var(--muted); text-decoration: none; font-size: 13px; }
.foot-parts a:hover, .nav-parts a:hover { color: var(--ink-2); text-decoration: underline; }
.foot-parts a[aria-current], .nav-parts a[aria-current] { color: var(--text); font-weight: 700; }
.nav-parts { display: none; }
@media (max-width: 1040px) {
  #nav .nav-parts { display: flex; gap: 16px; padding: 12px 10px 4px; margin-top: 6px; border-top: 1px solid var(--line); }
  #nav .nav-parts a { padding: 0; font-size: 13px; box-shadow: none; }
}

/* ===== Front page ===== */
.lp-hero { min-height: clamp(480px, 46vw, 660px); align-items: center; }
.lp-hero::after { background: linear-gradient(90deg, rgba(8,30,12,.78) 0%, rgba(8,30,12,.45) 45%, rgba(0,0,0,0) 75%), linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,0) 45%); }
.lp-hero .hero-in { padding-top: 56px; padding-bottom: 80px; max-width: 1080px; }
.lp-hero h1 { font: 700 clamp(40px, 5.6vw, 72px)/1.0 var(--num); letter-spacing: -.01em; max-width: 17ch; margin-bottom: 14px; }
.lp-kicker { display: inline-block; font: 600 13px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--sand); margin: 0 0 12px; text-shadow: none; }
.lp-sub { font-size: clamp(18px, 2vw, 22px) !important; max-width: 36ch; line-height: 1.45; margin-bottom: 26px !important; }
.lp-btn { padding: 14px 24px; font-size: 17px; border-radius: 10px; }
.lp-hero .btn:not(.btn-light) { background: var(--ink-2); }
.lp-hero .btn:not(.btn-light):hover { background: #1fa322; }
.lp-hero .btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.7); backdrop-filter: blur(4px); }
.lp-hero .btn-light:hover { background: #fff; color: var(--ink); }
.lp-note { font-size: 14px !important; margin: 20px 0 0 !important; color: #dfe8e2; max-width: 52ch; }
.lp-note a { color: #fff; font-weight: 600; }

.lp-numbers { position: relative; z-index: 4; margin: -44px auto 0; max-width: 980px; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border-radius: 16px; box-shadow: 0 14px 40px rgba(15,61,24,.14); border: 1px solid var(--line); overflow: hidden; }
.lp-numbers div { padding: 20px 18px; text-align: center; border-right: 1px solid var(--line); }
.lp-numbers div:last-child { border-right: 0; }
.lp-numbers b { display: block; font: 700 clamp(28px, 3.4vw, 40px)/1 var(--num); color: var(--ink); }
.lp-numbers span { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .lp-numbers { grid-template-columns: 1fr 1fr; margin-top: -30px; } .lp-numbers div:nth-child(2) { border-right: 0; } .lp-numbers div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

.lp-section { margin: 80px 0 0; }
.lp-eyebrow { font: 600 13px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 8px; }
.lp-eyebrow-light { color: var(--sand); }
.lp-h2 { font: 700 clamp(30px, 3.6vw, 44px)/1.05 var(--num); color: var(--ink); margin: 0 0 28px; max-width: 22ch; }

.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.lp-steps li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px 22px; position: relative; }
.lp-num { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: var(--sand); color: var(--ink); align-items: center; justify-content: center; font: 700 20px var(--num); margin-bottom: 14px; }
.lp-steps h3, .lp-feat h3 { font-size: 22px; margin-bottom: 6px; }
.lp-steps p, .lp-feat p { color: var(--muted); margin: 0; font-size: 16px; }
@media (max-width: 760px) { .lp-steps { grid-template-columns: 1fr; } }

.lp-split { margin: 90px 0 0; display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.lp-split-text p { font-size: 18px; color: var(--muted); }
.lp-ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.lp-ticks li { padding-left: 30px; position: relative; font-weight: 600; }
.lp-ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink-2); }
.lp-ticks li::after { content: ""; position: absolute; left: 7px; top: 7px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.lp-preview { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 20px 50px rgba(15,61,24,.12); transform: rotate(-1deg); }
.lp-board { display: flex; gap: 18px; align-items: center; background: var(--ink); color: #fff; border-radius: 12px; padding: 16px 18px; }
.lp-big { background: var(--sand); color: var(--ink); border-radius: 9px; padding: 8px 18px 6px; text-align: center; }
.lp-big b { display: block; font: 700 54px/0.95 var(--num); }
.lp-big span { font: 600 13px var(--num); }
.lp-name { font: 700 24px var(--num); }
.lp-facts { display: flex; gap: 16px; color: #dfe8e2; font-size: 13px; margin-top: 4px; }
.lp-facts b { color: #fff; font: 700 18px var(--num); margin-right: 3px; }
.lp-strip { display: grid; grid-template-columns: repeat(10, 1fr); gap: 1px; background: var(--line); border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; margin-top: 14px; }
.lp-strip span { background: #fff; text-align: center; font: 700 15px/1 var(--num); padding: 10px 0; }
.lp-strip span.on { background: var(--ink-2); color: #fff; }
.lp-cap { font-size: 13px; color: var(--muted); margin: 10px 2px 0; }
@media (max-width: 860px) { .lp-split { grid-template-columns: 1fr; gap: 28px; } .lp-preview { transform: none; } }

.lp-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lp-feat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.lp-feat svg { width: 38px; height: 38px; color: var(--ink-2); background: #e8f1ec; border-radius: 10px; padding: 7px; margin-bottom: 12px; }
@media (max-width: 960px) { .lp-features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .lp-features { grid-template-columns: 1fr; } }

.lp-clubs { margin: 90px calc(50% - 50vw) 0; padding: 56px max(20px, calc(50vw - 520px)); background: var(--ink); color: #dfe8e2; display: flex; gap: 28px 48px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background-image: radial-gradient(circle at 85% 20%, rgba(230,217,179,.14), transparent 40%), radial-gradient(circle at 10% 120%, rgba(23,139,25,.35), transparent 45%); }
.lp-clubs h2 { color: #fff; font: 700 clamp(30px, 3.6vw, 44px)/1.05 var(--num); margin: 0 0 10px; }
.lp-clubs p { max-width: 56ch; margin: 0; font-size: 17px; }
.lp-btn-sand { background: var(--sand) !important; color: var(--ink) !important; }
.lp-btn-sand:hover { background: #fff !important; }
.lp-link-light { color: #fff; font-weight: 600; }
.lp-end { text-align: center; margin: 80px 0 20px; }
.lp-end .lp-h2 { margin: 0 auto 22px; }
.lp-end p { margin: 14px auto 0; }
@media (max-width: 1100px) { .area-public .brand small { display: none; } }
@media (max-width: 640px) {
  .lp-hero { min-height: 0; }
  .lp-hero .hero-in { padding-top: 40px; padding-bottom: 64px; }
  .lp-hero .slide-btn { display: none; }
  .lp-strip { grid-template-columns: repeat(5, 1fr); }
  .lp-board { flex-wrap: wrap; }
  .lp-section, .lp-split { margin-top: 56px; }
  .lp-clubs { margin-top: 64px; padding-top: 40px; padding-bottom: 40px; }
}
.lp-hero .dots { bottom: 62px; }
@media (max-width: 640px) { .lp-hero .dots { bottom: 44px; } }
.lp-welcome { font-size: 17px !important; margin: 0 0 18px !important; color: #fff !important; }
.lp-welcome b { color: var(--sand); }

/* ===== Log in / Register: split screen ===== */
.auth { display: grid; grid-template-columns: minmax(300px, 0.9fr) 1.1fr; margin: -28px calc(50% - 50vw) 0; min-height: calc(100vh - 85px); }
.auth-side { position: relative; background: var(--ink) center/cover no-repeat; color: #fff; display: flex; align-items: flex-end; }
.auth-side::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,30,12,.92) 0%, rgba(8,30,12,.55) 55%, rgba(8,30,12,.35) 100%); }
.auth-side-in { position: relative; padding: 48px max(28px, calc(50vw - 540px)) 56px 48px; max-width: 520px; margin-left: auto; width: 100%; }
.auth-side h2 { color: #fff; font: 700 clamp(34px, 3.4vw, 48px)/1.02 var(--num); margin: 0 0 18px; }
.auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.auth-points li { padding-left: 30px; position: relative; color: #e4ede7; font-size: 16px; }
.auth-points li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--sand); }
.auth-points li::after { content: ""; position: absolute; left: 7px; top: 6px; width: 5px; height: 9px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.auth-main { display: flex; flex-direction: column; justify-content: center; padding: 48px max(24px, calc(50vw - 540px)) 48px 56px; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 34px 34px 30px; box-shadow: 0 18px 50px rgba(15,61,24,.10); max-width: 560px; width: 100%; }
.auth-card h1 { font: 700 40px/1 var(--num); margin: 0 0 8px; color: var(--ink); }
.auth-sub { color: var(--muted); margin: 0 0 22px; }
.auth-form { max-width: none; gap: 16px; }
.auth-form input, .auth-form select { padding: 12px 13px; font-size: 16px; border-radius: 10px; }
.auth-btn { width: 100%; justify-content: center; padding: 14px 20px; font-size: 17px; border-radius: 10px; margin-top: 4px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: -4px; }
.auth-step { font: 600 12px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 10px 0 -4px; padding-top: 12px; border-top: 1px solid var(--line); }
.auth-step:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.auth-below { max-width: 560px; width: 100%; text-align: center; margin-top: 18px; color: var(--muted); font-size: 15px; }
.auth-first { background: #f6f1e2; border: 1px solid #e6d9b3; border-radius: 12px; padding: 16px 18px; margin-bottom: 20px; }
.auth-first p { margin: 6px 0 12px; font-size: 15px; }
.auth-first .hint { margin: 10px 0 0; }
.auth-number { background: var(--ink); color: #fff; border-radius: 12px; padding: 16px 20px; margin: 4px 0 16px; display: flex; align-items: center; justify-content: space-between; }
.auth-number span { color: #cfe0d6; } .auth-number b { font: 700 40px/1 var(--num); color: var(--sand); }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 70px !important; }
.pw-show { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--ink-2); font: 600 14px var(--body); cursor: pointer; padding: 6px 8px; }
.area-public:has(.auth) .foot { margin-top: 0; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth-side { min-height: 150px; }
  .auth-side-in { padding: 28px 20px 22px; margin: 0; max-width: none; }
  .auth-side h2 { font-size: 30px; margin: 0; }
  .auth-points { display: none; }
  .auth-main { padding: 22px 16px 34px; align-items: center; }
  .auth-card { padding: 24px 20px; }
}

/* ===== Ordinary page header ===== */
.page-head { margin: 8px 0 24px; }
.page-head h1 { font: 700 clamp(36px, 4.4vw, 54px)/1.02 var(--num); color: var(--ink); margin: 0 0 8px; }
.page-lead { font-size: 18px; color: var(--muted); margin: 0; max-width: 62ch; }

/* ===== Course handicap ===== */
.calc-form { display: grid; grid-template-columns: 2fr 1fr 1.6fr 1fr; gap: 14px; align-items: end; border-radius: 14px; padding: 18px 20px; }
.calc-form select, .calc-form input { padding: 11px 12px; border-radius: 9px; }
@media (max-width: 860px) { .calc-form { grid-template-columns: 1fr 1fr; } .calc-club { grid-column: 1 / -1; } }
.calc-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 30px 0 14px; }
.calc-head h2 { margin: 0; font: 700 30px var(--num); color: var(--ink); }
.calc-tees { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.calc-tees .tee { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; transition: box-shadow .15s, transform .15s; }
.calc-tees .tee:hover { box-shadow: 0 10px 28px rgba(15,61,24,.10); transform: translateY(-2px); }
.calc-tees .tee-mine { border-color: var(--ink-2); box-shadow: 0 0 0 2px rgba(23,139,25,.18); }
.tee-top { display: flex; align-items: center; gap: 9px; }
.tee-top .t { font-weight: 700; font-size: 17px; margin-right: auto; }
.tee-dot { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.25); flex: none; }
.tee-play { display: flex; align-items: center; gap: 10px; margin: 12px 0 10px; }
.tee-play b { font: 700 54px/0.9 var(--num); color: var(--ink); min-width: 1.2ch; }
.tee-play span { font-size: 13px; line-height: 1.2; color: var(--muted); }
.tee-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.tee-facts b { color: var(--text); }
.calc-note { font-size: 13px; color: var(--muted); margin-top: 18px; }
.empty-state { text-align: center; padding: 38px 20px; margin-top: 24px; border-radius: 14px; }
.empty-state svg { width: 42px; height: 42px; color: var(--ink-2); background: #e8f1ec; border-radius: 12px; padding: 8px; margin-bottom: 10px; }
.empty-state b { display: block; font-size: 18px; } .empty-state p { color: var(--muted); margin: 6px auto 0; }

/* ===== Help ===== */
.help-search { position: relative; max-width: 640px; }
.help-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.help-search input { padding: 14px 14px 14px 44px; font-size: 17px; border-radius: 12px; box-shadow: 0 6px 20px rgba(15,61,24,.06); }
.help-topics { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 6px; }
.help-topics a { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; text-decoration: none; color: var(--text); }
.help-topics a:hover { border-color: var(--ink-2); color: var(--ink-2); }
.help-group { margin-top: 34px; max-width: 820px; scroll-margin-top: 20px; }
.help-group h2 { font: 700 26px var(--num); color: var(--ink); margin: 0 0 10px; }
.help-q { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.help-q summary { list-style: none; cursor: pointer; padding: 15px 50px 15px 18px; font-weight: 600; position: relative; }
.help-q summary::-webkit-details-marker { display: none; }
.help-q summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: #e8f1ec; color: var(--ink-2); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.help-q[open] summary::after { content: "–"; background: var(--ink-2); color: #fff; }
.help-q[open] { border-color: #cfe0d6; box-shadow: 0 8px 22px rgba(15,61,24,.06); }
.help-a { padding: 0 18px 16px; color: var(--muted); line-height: 1.6; }
.help-contact { margin: 44px 0 10px; background: var(--ink); color: #dfe8e2; border-radius: 16px; padding: 26px 28px; display: flex; gap: 16px 30px; align-items: center; justify-content: space-between; flex-wrap: wrap; max-width: 820px; }
.help-contact h2 { color: #fff; margin: 0 0 4px; font: 700 28px var(--num); } .help-contact p { margin: 0; }
.help-contact .btn { background: var(--sand); color: var(--ink); }
/* fixes: optional note on the label line, boxes lined up; tee facts small; calc boxes one height */
.auth-form .opt { display: inline; margin-left: 6px; font-size: 13px; }
.auth-form .row2 { align-items: end; }
.auth-form label > .hint { display: block; margin-top: 6px; }
.tee-facts span { display: flex; justify-content: space-between; gap: 6px; }
.tee-facts b { font: 700 13px var(--body) !important; color: var(--text); }
.calc-form input, .calc-form select { height: 46px; box-sizing: border-box; }
.auth-form label .opt { display: inline !important; margin: 0 0 0 6px !important; }
.auth-form input:not([type=checkbox]):not([type=radio]), .auth-form select { height: 48px; box-sizing: border-box; }

/* ===== Header: always on top, modern ===== */
:root { --head-h: 74px; }
.top { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(15,61,24,.08);
       backdrop-filter: saturate(170%) blur(12px); -webkit-backdrop-filter: saturate(170%) blur(12px); transition: box-shadow .2s, background .2s; }
.top.scrolled { background: rgba(255,255,255,.82); box-shadow: 0 6px 24px rgba(15,61,24,.10); }
.top-in { min-height: var(--head-h); gap: 16px; transition: min-height .2s; }
.top.scrolled .top-in { min-height: 60px; }
.brand img { height: 52px; transition: height .2s; }
.brand span { font-size: 38px; transition: font-size .2s; }
.top.scrolled .brand img { height: 42px; }
.top.scrolled .brand span { font-size: 32px; }
.brand small { font-size: 15px; color: var(--muted); }
#nav { gap: 4px; align-items: center; }
#nav a { color: #3d4a43; padding: 8px 13px; border-radius: 999px; font-size: 15.5px; font-weight: 500; box-shadow: none !important; transition: background .15s, color .15s; }
#nav a:hover { background: #eef3ef; color: var(--ink); }
#nav a[aria-current] { background: #e3efe6; color: var(--ink); font-weight: 700; }
.who-h { border-left-color: rgba(15,61,24,.12); }
.who-h .av { box-shadow: 0 0 0 3px #e3efe6; }
@media (max-width: 1200px) and (min-width: 1041px) { #nav a { padding: 8px 9px; font-size: 15px; } }
/* page jumps (e.g. Help topics) land below the header */
[id] { scroll-margin-top: 90px; }
.auth { min-height: calc(100vh - var(--head-h)); }

/* Phone: burger button and a drop-down panel */
.burger { display: inline-flex; flex-direction: column; gap: 4px; margin-right: 8px; vertical-align: middle; }
.burger i { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1040px) {
  :root { --head-h: 64px; }
  .brand img { height: 44px; } .brand span { font-size: 32px; }
  .top.scrolled .top-in { min-height: 56px; }
  .menu-btn { display: inline-flex; align-items: center; border-radius: 999px; padding: 8px 16px; font-weight: 600; border-color: rgba(15,61,24,.18); }
  .menu-btn[aria-expanded="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
  #nav { gap: 2px; padding: 8px 0 14px; align-items: stretch; }
  #nav a { border-radius: 10px; padding: 12px 14px; font-size: 16px; }
  #nav a[aria-current] { box-shadow: none !important; }
  #nav.open { max-height: calc(100vh - 70px); overflow-y: auto; }
}
/* open phone menu: solid white, easy to read */
.top.menu-open, .top:has(#nav.open) { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 12px 30px rgba(15,61,24,.14); }
#nav .nav-parts a, #nav .nav-parts a[aria-current] { background: none !important; padding: 0 !important; border-radius: 0; font-size: 13px; }
#nav .nav-parts a[aria-current] { font-weight: 700; color: var(--text); }

/* ===== Course handicap calculator ===== */
.calc-wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: stretch; }
.calc-panel { background: var(--ink); color: #dfe8e2; border-radius: 18px; padding: 24px; display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
  background-image: radial-gradient(circle at 100% 0%, rgba(230,217,179,.12), transparent 45%), radial-gradient(circle at 0% 120%, rgba(23,139,25,.35), transparent 50%); }
.calc-panel label, .calc-panel legend { color: #cfe0d6; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.calc-idx label { display: block; margin-bottom: 8px; }
.idx-row { display: flex; align-items: center; gap: 8px; }
.idx-row input { width: 128px; height: 74px; text-align: center; font: 700 44px/1 var(--num); border-radius: 14px; border: 0; color: var(--ink); background: var(--sand); padding: 0; }
.idx-step { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.idx-step:hover { background: rgba(255,255,255,.2); }
.idx-hint { display: block; font-size: 12.5px; color: #a9c2b4; margin-top: 10px; max-width: 30ch; }
.calc-fields { display: grid; gap: 12px; }
.calc-fields select { height: 44px; border-radius: 10px; border: 0; margin-top: 6px; }
.seg { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: rgba(255,255,255,.1); border-radius: 10px; padding: 4px; }
.seg legend { padding: 0; margin-bottom: 6px; float: left; width: 100%; }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 8px 6px; border-radius: 8px; color: #dfe8e2; font-size: 14px; cursor: pointer; font-weight: 600; }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.seg input:focus-visible + span { outline: 2px solid var(--sand); }
.calc-answer { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px; display: flex; flex-direction: column; justify-content: center; box-shadow: 0 14px 40px rgba(15,61,24,.08); }
.ans-lead { margin: 0; color: var(--muted); font-size: 17px; }
.ans-lead b { color: var(--text); }
.ans-big { margin: 6px 0 4px; display: flex; align-items: baseline; gap: 10px; }
.ans-big b { font: 700 88px/0.9 var(--num); color: var(--ink); }
.ans-big span { font: 600 24px var(--num); color: var(--ink-2); }
.ans-sub { margin: 0; color: var(--muted); font-size: 14px; }
.ans-sub b { color: var(--text); }
@media (max-width: 980px) { .calc-wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .calc-panel { grid-template-columns: 1fr; padding: 20px; } .idx-row input { width: 110px; height: 64px; font-size: 38px; } .ans-big b { font-size: 72px; } }

.calc-tees { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.calc-tees .tee { font: inherit; color: inherit; text-align: left; cursor: pointer; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s, border-color .15s; }
.calc-tees .tee:hover { box-shadow: 0 10px 28px rgba(15,61,24,.10); transform: translateY(-2px); }
.calc-tees .tee.tee-pick { border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(23,139,25,.18); }
.tee-play span { font-size: 14px; }
.tee-bar { display: block; height: 6px; border-radius: 3px; background: #edf1ed; margin: 0 0 12px; overflow: hidden; }
.tee-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ink-2), #53b957); border-radius: 3px; transition: width .35s ease; }
.calc-how { margin-top: 20px; max-width: 760px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; }
.calc-how summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.calc-how p { color: var(--muted); font-size: 15px; }
.seg label { position: relative; } .seg input { left: 0; top: 0; width: 1px; height: 1px; }
.seg-label { display: block; color: #cfe0d6; font-size: 13px; font-weight: 600; margin-bottom: 6px; }

/* Calculator before an index is typed */
.idx-row input::placeholder { color: rgba(15,61,24,.4); font: 600 18px var(--body); }
.ans-empty { display: none; }
.calc-wrap.no-index .ans-lead, .calc-wrap.no-index .ans-big, .calc-wrap.no-index .ans-sub { display: none; }
.calc-wrap.no-index .ans-empty { display: flex; flex-direction: column; gap: 6px; }
.ans-empty b { font: 700 30px/1.1 var(--num); color: var(--ink); }
.ans-empty span:last-child { color: var(--muted); font-size: 16px; max-width: 34ch; }
.ans-arrow { width: 40px; height: 40px; border-radius: 50%; background: #e3efe6; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; margin-bottom: 6px; }
@media (max-width: 980px) { .ans-arrow { transform: rotate(90deg); } }
.calc-tees .tee.no-index .tee-play b { color: #b7c4bb; font-size: 40px; }
.calc-tees .tee.no-index .tee-play span { color: #9aa79f; }
/* tee markers: small rounded squares, not radio buttons */
.tee-dot { width: 14px; height: 18px; border-radius: 4px; border: 1.5px solid rgba(0,0,0,.28); box-shadow: inset 0 -3px 0 rgba(0,0,0,.08); }

/* ===== Course handicap: everything in one card ===== */
.calc-card { display: grid; grid-template-columns: 340px 1fr; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(15,61,24,.12); }
.calc-card .calc-side { background: var(--ink); color: #dfe8e2; padding: 28px 26px; display: flex; flex-direction: column; gap: 18px; border-radius: 0; grid-template-columns: none;
  background-image: radial-gradient(circle at 100% 0%, rgba(230,217,179,.12), transparent 45%), radial-gradient(circle at 0% 110%, rgba(23,139,25,.35), transparent 50%); }
.calc-side label, .calc-side .seg-label { color: #cfe0d6; font-size: 13px; font-weight: 600; }
.calc-side select { height: 46px; border-radius: 10px; border: 0; margin-top: 6px; width: 100%; }
.calc-card .calc-main { padding: 26px 28px 24px; min-width: 0; }
.calc-top h2 { margin: 0; font: 700 30px/1.05 var(--num); color: var(--ink); }
.calc-card .calc-answer { background: linear-gradient(135deg, #f3f8f3, #eef4ee); border: 0; box-shadow: none; border-radius: 16px; padding: 18px 22px; margin: 16px 0 18px; min-height: 140px; }
.calc-card .ans-big b { font-size: 80px; }
.calc-card .ans-empty { align-items: center; gap: 14px; flex-direction: row !important; }
.calc-card .ans-empty > div { display: flex; flex-direction: column; gap: 4px; }
.calc-card .ans-arrow { margin: 0; flex: none; }
/* tees as rows */
.calc-card .calc-tees { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.calc-card .calc-tees .tee { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 18px; background: #fff; transform: none; box-shadow: none; }
.calc-card .calc-tees .tee:last-child { border-bottom: 0; }
.calc-card .calc-tees .tee:hover { background: #f6f9f6; transform: none; box-shadow: none; }
.calc-card .calc-tees .tee.tee-pick { background: #eef6ef; box-shadow: inset 4px 0 0 var(--ink-2); border-color: var(--line); }
.tee-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tee-name .t { font-weight: 700; font-size: 16px; }
.tee-meta { font-size: 13px; color: var(--muted); }
.tee-meta b { color: var(--text); font: 700 13px var(--body) !important; }
.calc-card .tee-bar { margin: 5px 0 0; height: 5px; max-width: 320px; }
.calc-card .tee-play { margin: 0; flex-direction: column; align-items: flex-end; gap: 0; }
.calc-card .tee-play b { font-size: 44px; line-height: .95; }
.calc-card .tee-play span { font-size: 12px; }
.calc-card .calc-how { margin-top: 16px; max-width: none; background: none; border: 0; padding: 0; }
.calc-card .empty-state { border: 0; margin: 40px 0; }
@media (max-width: 900px) {
  .calc-card { grid-template-columns: 1fr; }
  .calc-card .calc-side { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  .calc-card .calc-idx, .calc-card .calc-club { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .calc-card .calc-side { grid-template-columns: 1fr; padding: 22px 18px; }
  .calc-card .calc-main { padding: 20px 16px; }
  .calc-card .ans-big b { font-size: 64px; }
  .calc-card .calc-tees .tee { padding: 12px 14px; gap: 10px; }
  .calc-card .tee-play b { font-size: 36px; }
}

/* ===== Help: search banner + one card with topics and questions ===== */
.help-hero { background: var(--ink); color: #fff; border-radius: 22px; padding: 38px 36px 34px; margin: 6px 0 22px;
  background-image: radial-gradient(circle at 92% 10%, rgba(230,217,179,.16), transparent 42%), radial-gradient(circle at 0% 120%, rgba(23,139,25,.4), transparent 50%); }
.help-hero h1 { color: #fff; font: 700 clamp(36px, 4.4vw, 54px)/1 var(--num); margin: 0 0 20px; }
.help-hero .help-search { max-width: 680px; }
.help-hero .help-search input { border: 0; height: 56px; font-size: 17px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.help-card { display: grid; grid-template-columns: 250px 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 60px rgba(15,61,24,.10); }
.help-side { border-right: 1px solid var(--line); padding: 22px 14px; position: sticky; top: 76px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.help-side-t { font: 600 12px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 10px 8px; }
.help-side a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 15px; transition: background .15s, color .15s; }
.help-side a svg { width: 20px; height: 20px; color: var(--ink-2); flex: none; }
.help-side a em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); background: #eef3ef; border-radius: 999px; padding: 1px 8px; }
.help-side a:hover { background: #f3f7f3; }
.help-side a.on { background: #e3efe6; color: var(--ink); }
.help-side a.on em { background: #fff; }
.help-side a.dim { opacity: .4; }
.help-main { padding: 12px 30px 28px; min-width: 0; }
.help-card .help-group { margin: 18px 0 0; max-width: none; }
.help-card .help-group h2 { font: 700 24px var(--num); margin: 0 0 8px; color: var(--ink); }
.help-list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.help-card .help-q { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; background: #fff; box-shadow: none; }
.help-card .help-q:last-child { border-bottom: 0; }
.help-card .help-q summary { padding: 16px 56px 16px 18px; font-weight: 600; }
.help-card .help-q summary:hover { background: #f7faf7; }
.help-card .help-q[open] { background: #f7faf7; box-shadow: inset 4px 0 0 var(--ink-2); }
.help-card .help-a { padding: 0 22px 18px 18px; color: #4b5852; line-height: 1.65; }
.help-card .help-a a { color: var(--ink-2); font-weight: 600; }
.help-card .help-contact { margin: 28px 0 0; max-width: none; border-radius: 16px; }
.help-card .help-contact .btn { background: var(--sand); color: var(--ink); }
@media (max-width: 860px) {
  .help-hero { padding: 28px 20px 24px; border-radius: 18px; }
  .help-card { grid-template-columns: 1fr; }
  .help-side { position: sticky; top: 64px; z-index: 5; background: rgba(255,255,255,.96); flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; border-radius: 22px 22px 0 0; scrollbar-width: none; }
  .help-side::-webkit-scrollbar { display: none; }
  .help-side-t { display: none; }
  .help-side a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font-size: 14px; }
  .help-side a svg { width: 16px; height: 16px; }
  .help-main { padding: 6px 16px 20px; }
}
.help-side { border-right: 0; }
.help-main { border-left: 1px solid var(--line); }
@media (max-width: 860px) { .help-main { border-left: 0; } }

/* ===== Modern cards, tables, fields and buttons (all areas) ===== */
.panel { border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 8px 26px rgba(15,61,24,.06); }
.form-card { max-width: 720px; padding: 24px 26px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea { border-radius: 10px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]):focus, select:focus, textarea:focus { border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(23,139,25,.15); outline: none; }
.btn { border-radius: 10px; }
.btn-sm { border-radius: 8px; }
.scroll { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 26px rgba(15,61,24,.05); }
.scroll table { margin: 0; }
.scroll th { background: #f5f8f5; font-size: 13px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); }
.scroll th:first-child, .scroll td:first-child { padding-left: 16px; }
.scroll th:last-child, .scroll td:last-child { padding-right: 16px; }
.scroll tbody tr:hover td { background: #fafcfa; }
.scroll tbody tr:last-child td { border-bottom: 0; }
.area-club main h2, .area-admin main h2 { font: 700 26px var(--num); color: var(--ink); margin: 34px 0 12px; }
.area-club .panel h3 { font: 700 20px var(--num); color: var(--ink); }
.back-link { margin: 4px 0 0; } .back-link a { text-decoration: none; font-weight: 600; color: var(--ink-2); }
.note { border-radius: 12px; }

/* ===== Club office dashboard ===== */
.dash-alert { display: flex; align-items: center; gap: 14px; background: #fff7e6; border: 1px solid #f1d9a6; border-radius: 14px; padding: 14px 18px; text-decoration: none; color: var(--text); margin: 0 0 18px; }
.dash-alert:hover { border-color: #e1b861; }
.dash-alert-n { width: 36px; height: 36px; border-radius: 50%; background: #d98e04; color: #fff; display: inline-flex; align-items: center; justify-content: center; font: 700 18px var(--num); flex: none; }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ink); border-radius: 18px; overflow: hidden; color: #cfe0d6;
  background-image: radial-gradient(circle at 100% 0%, rgba(230,217,179,.14), transparent 40%), radial-gradient(circle at 0% 120%, rgba(23,139,25,.35), transparent 45%); }
.dash-stats div { padding: 22px 22px 20px; border-right: 1px solid rgba(255,255,255,.1); }
.dash-stats div:last-child { border-right: 0; }
.dash-stats b { display: block; font: 700 44px/1 var(--num); color: #fff; margin-bottom: 4px; }
.dash-stats div:first-child b { color: var(--sand); }
.dash-stats span { font-size: 14px; }
.dash-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.dash-tile { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 4px; transition: box-shadow .15s, transform .15s, border-color .15s; }
.dash-tile:hover { box-shadow: 0 12px 30px rgba(15,61,24,.10); transform: translateY(-2px); border-color: #cfe0d6; }
.dash-tile svg { width: 40px; height: 40px; color: var(--ink-2); background: #e8f1ec; border-radius: 11px; padding: 8px; margin-bottom: 8px; }
.dash-tile b { font-size: 17px; } .dash-tile span { font-size: 14px; color: var(--muted); }
.dash-h2 { margin-top: 34px !important; }
@media (max-width: 900px) { .dash-stats, .dash-tiles { grid-template-columns: 1fr 1fr; } .dash-stats div:nth-child(2) { border-right: 0; } .dash-stats div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); } }
@media (max-width: 420px) { .dash-tiles { grid-template-columns: 1fr; } .dash-stats b { font-size: 36px; } }
.scroll td { vertical-align: middle; padding-top: 10px; padding-bottom: 10px; }
.scroll input:not([type=checkbox]):not([type=radio]), .scroll select { height: 36px; padding: 6px 10px; font-size: 14px; }
.auth-side h2 { color: #fff !important; font: 700 clamp(34px, 3.4vw, 48px)/1.02 var(--num) !important; margin: 0 0 18px !important; }
@media (max-width: 900px) { .auth-side h2 { font-size: 30px !important; margin: 0 !important; } }

/* ===== Club office: its own colour (blue) so it's clear you're not on the golfer pages ===== */
.area-badge { font-style: normal; font: 700 12px var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; margin-left: 4px; align-self: center; white-space: nowrap; }
.area-club .area-badge { background: #e3edf7; color: #184a78; }
.area-admin .area-badge { background: #fbe9e6; color: var(--flag); }
.area-club { --club: #123a5e; --club-2: #1f6fb0; --club-soft: #e3edf7; }
.area-club .top { border-bottom-color: rgba(31,111,176,.18); box-shadow: inset 0 3px 0 var(--club-2); }
.area-club #nav a[aria-current] { background: var(--club-soft); color: var(--club); }
.area-club #nav a:hover { background: #eef3f9; color: var(--club); }
.area-club .who-h .av { background: var(--club); box-shadow: 0 0 0 3px var(--club-soft); }
.area-club main a:not(.btn):not(.dash-tile):not(.dash-alert) { color: var(--club-2); }
.area-club .btn:not(.btn-light):not(.lp-btn-sand), .area-club .auth-btn { background: var(--club-2); border-color: var(--club-2); color: #fff; }
.area-club .btn:not(.btn-light):not(.lp-btn-sand):hover { background: var(--club); border-color: var(--club); }
.area-club .btn-light { color: var(--club); border-color: rgba(31,111,176,.45); }
.area-club .lp-eyebrow { color: var(--club-2); }
.area-club .page-head h1, .area-club main h2, .area-club .panel h3, .area-club .auth-card h1 { color: var(--club); }
.area-club .dash-stats { background-color: var(--club); background-image: radial-gradient(circle at 100% 0%, rgba(160,200,240,.18), transparent 40%), radial-gradient(circle at 0% 120%, rgba(31,111,176,.5), transparent 45%); }
.area-club .dash-stats div:first-child b { color: #bcd8f2; }
.area-club .dash-tile svg { color: var(--club-2); background: var(--club-soft); }
.area-club .dash-tile:hover { border-color: #bcd3ea; }
.area-club .auth-side::before { background: linear-gradient(0deg, rgba(10,32,56,.92) 0%, rgba(14,48,84,.62) 55%, rgba(18,58,94,.40) 100%); }
.area-club .auth-points li::before { background: #bcd8f2; }
.area-club .auth-points li::after { border-color: var(--club); }
.area-club .lp-kicker { color: #bcd8f2; }
.area-club .auth-step { color: var(--club-2); }
.area-club .auth-number { background: var(--club); } .area-club .auth-number b { color: #bcd8f2; }
.area-club input:not([type=checkbox]):not([type=radio]):not([type=file]):focus, .area-club select:focus, .area-club textarea:focus { border-color: var(--club-2); box-shadow: 0 0 0 3px rgba(31,111,176,.15); }
.area-club .scroll th { background: #f3f7fb; }
.area-club .note:not(.note-err):not(.note-warn) { border-left-color: var(--club-2); background: #eef4fa; }
.area-club .foot-parts a[aria-current] { color: var(--club); }
@media (max-width: 1040px) { .area-club .menu-btn[aria-expanded="true"] { background: var(--club); border-color: var(--club); } }
@media (max-width: 480px) { .area-badge { display: none; } }

/* badge sits under "HCAP" so it takes no extra width */
.brand-badged { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 10px; align-items: end; }
.brand-badged img { grid-row: 1 / 3; align-self: center; }
.brand-badged span { line-height: .95; }
.brand-badged small { display: none; }
.brand-badged .area-badge { grid-column: 2; justify-self: start; align-self: start; margin: 3px 0 0; font-size: 10px; padding: 3px 8px; letter-spacing: .08em; }
@media (max-width: 480px) { .brand-badged .area-badge { display: inline-block; } }
.area-club .pw-show { color: var(--club-2); }
.brand-badged { align-items: center; align-content: center; row-gap: 2px; }
.brand-badged span { line-height: 1; font-size: 34px !important; }
.top.scrolled .brand-badged span { font-size: 30px !important; }
.brand-badged .area-badge { margin: 0; }
.auth-card .note { margin: 0 0 18px; font-size: 15px; }
.auth-side-in { padding: 48px 56px 56px 48px; max-width: 520px; }
@media (max-width: 900px) { .auth-side-in { padding: 28px 20px 22px; max-width: none; } }

/* ===== My handicap ===== */
.me-hero { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--ink); color: #dfe8e2; border-radius: 22px; padding: 30px 32px; margin-top: 6px;
  background-image: radial-gradient(circle at 92% 0%, rgba(230,217,179,.16), transparent 42%), radial-gradient(circle at 0% 120%, rgba(23,139,25,.42), transparent 50%); }
.me-hero h1 { color: #fff; font: 700 clamp(36px, 4.4vw, 54px)/1 var(--num); margin: 0 0 6px; }
.me-sub { margin: 0; color: #cfe0d6; }
.me-clubs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.me-clubs a { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; text-decoration: none; border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.me-clubs a:hover { background: rgba(255,255,255,.2); }
.me-actions { margin-top: 20px; }
.me-ghost { background: rgba(255,255,255,.1) !important; color: #fff !important; border-color: rgba(255,255,255,.6) !important; }
.me-ghost:hover { background: #fff !important; color: var(--ink) !important; }
.me-index { background: var(--sand); color: var(--ink); border-radius: 18px; padding: 18px 28px 16px; text-align: center; min-width: 200px; box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.me-index span { font: 600 14px var(--body); letter-spacing: .06em; text-transform: uppercase; }
.me-index b { display: block; font: 700 88px/0.95 var(--num); margin: 4px 0 6px; }
.me-index em { font-style: normal; font-size: 14px; font-weight: 600; color: #5c5238; }
.me-index em.down { color: #137a16; } .me-index em.up { color: #b3402f; }
.me-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.me-stats div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: 0 8px 22px rgba(15,61,24,.05); min-width: 0; }
.me-stats b { display: block; font: 700 32px/1 var(--num); color: var(--ink); margin-bottom: 4px; }
.me-stats span { font-size: 14px; color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-card, .me-all { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; margin-top: 18px; box-shadow: 0 10px 30px rgba(15,61,24,.06); min-width: 0; }
.me-all { background: none; border: 0; box-shadow: none; padding: 0; margin-top: 30px; }
.me-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.me-card-head h2 { margin: 0 !important; font: 700 24px var(--num); color: var(--ink); }
.me-card .strip { border-radius: 12px; }
.me-explain { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.me-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.me-grid .me-card { margin-top: 18px; }
.me-recent { list-style: none; margin: 0; padding: 0; }
.me-recent li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.me-recent li:last-child { border-bottom: 0; }
.me-r-date { width: 44px; text-align: center; background: #f1f5f1; border-radius: 10px; padding: 4px 0; font-size: 12px; color: var(--muted); line-height: 1.1; }
.me-r-date b { display: block; font: 700 20px var(--num); color: var(--ink); }
.me-r-course { font-weight: 600; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-r-course small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.me-r-diff { font: 700 18px var(--num); background: #f1f5f1; border-radius: 8px; padding: 4px 10px; min-width: 52px; text-align: center; }
.me-r-diff.on { background: var(--ink-2); color: #fff; }
@media (max-width: 900px) { .me-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .me-hero { grid-template-columns: 1fr; padding: 24px 20px; }
  .me-index { order: -1; min-width: 0; }
  .me-index b { font-size: 72px; }
  .me-stats { grid-template-columns: 1fr 1fr; } .me-stats div:last-child { grid-column: 1 / -1; }
  .strip { grid-template-columns: repeat(10, 1fr); }
}
@media (max-width: 700px) {
  .me-card .strip { grid-template-columns: repeat(5, 1fr); }
  .me-card .strip .cell b { font-size: 18px; }
  .me-card { padding: 18px 16px; }
  .me-stats span { white-space: normal; }
  .me-actions .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
  .me-card .key { gap: 6px 16px; }
}

/* ===== Back office: Scores ===== */
.range-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: -6px 0 14px; }
.range-chips a { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; text-decoration: none; color: var(--text); }
.range-chips a:hover { border-color: var(--ink-2); }
.range-chips a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.sc-filter { display: grid; grid-template-columns: 1fr 1fr 1.3fr 1.3fr auto; gap: 12px; align-items: end; }
.sc-filter input { height: 44px; box-sizing: border-box; }
.sc-btns { display: flex; gap: 8px; }
.sc-btns .btn { height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 1000px) { .sc-filter { grid-template-columns: 1fr 1fr; } .sc-btns { grid-column: 1 / -1; } }
.sc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 16px 0 18px; }
.sc-stats div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; box-shadow: 0 8px 22px rgba(15,61,24,.05); }
.sc-stats b { display: block; font: 700 30px/1 var(--num); color: var(--ink); margin-bottom: 4px; }
.sc-stats span { font-size: 14px; color: var(--muted); }
@media (max-width: 700px) { .sc-stats { grid-template-columns: 1fr 1fr; } }
.sc-table tr.day-row td { background: #eef4ef !important; font-weight: 700; color: var(--ink); font-size: 14px; padding-top: 9px; padding-bottom: 9px; }
.sc-table tr.day-row span { font-weight: 400; color: var(--muted); margin-left: 8px; }
.sc-golfer { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.sc-golfer .av { width: 32px; height: 32px; border-radius: 50%; background: #e3efe6; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font: 700 12px var(--body); flex: none; }
.sc-golfer b { display: block; font-size: 14.5px; } .sc-golfer small { color: var(--muted); font-size: 12px; }
.sc-golfer:hover b { color: var(--ink-2); text-decoration: underline; }
.sc-course { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); flex-wrap: wrap; }
.sc-course:hover { color: var(--ink-2); text-decoration: underline; }
.sc-course .tee-dot { width: 11px; height: 14px; }
.diff-chip { display: inline-block; min-width: 52px; text-align: center; font: 700 15px var(--num); background: #f1f5f1; border-radius: 8px; padding: 3px 8px; }
.diff-chip.on { background: var(--ink-2); color: #fff; }
.sc-table tr.out td { opacity: .55; }
.pcc-card { margin-top: 30px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; padding: 24px 26px; }
.pcc-intro h2 { margin: 0 0 8px !important; }
.pcc-intro p { color: var(--muted); margin: 0; }
.pcc-form { display: grid; gap: 14px; }
.pcc-form select, .pcc-form input { height: 44px; box-sizing: border-box; margin-top: 6px; width: 100%; }
.pcc-seg { grid-template-columns: repeat(5, 1fr) !important; background: #eef3ef !important; }
.pcc-seg span { color: var(--text) !important; line-height: 1.1; }
.pcc-seg span small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.pcc-seg input:checked + span { background: var(--ink) !important; color: #fff !important; }
.pcc-seg input:checked + span small { color: #cfe0d6; }
.pcc-card .seg-label { color: var(--text); font-size: 15px; font-weight: 600; }
@media (max-width: 860px) { .pcc-card { grid-template-columns: 1fr; } }

/* ===== Add a score ===== */
.sf-card { display: grid; grid-template-columns: 1fr 340px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(15,61,24,.10); max-width: 1000px; }
.sf-main { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sf-step { display: flex; align-items: center; gap: 10px; margin: 8px 0 -2px; font: 700 20px var(--num); color: var(--ink); }
.sf-step:first-child { margin-top: 0; }
.sf-step span { width: 28px; height: 28px; border-radius: 50%; background: var(--sand); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font: 700 15px var(--num); }
.sf-when { display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; align-items: end; }
.sf-when .seg-wrap { grid-column: 1 / -1; }
.sf-main input:not([type=radio]):not([type=checkbox]) { height: 46px; box-sizing: border-box; }
.sf-quick { display: flex; gap: 6px; }
.sf-quick button { height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: #f5f8f5; font: 600 14px var(--body); color: var(--text); cursor: pointer; }
.sf-quick button:hover { border-color: var(--ink-2); color: var(--ink); }
.sf-seg { background: #eef3ef !important; max-width: 360px; }
.sf-seg span { color: var(--text) !important; }
.sf-seg input:checked + span { background: var(--ink) !important; color: #fff !important; }
.sf-main .seg-label { color: var(--text); font-size: 15px; font-weight: 600; }
.sf-tee { display: flex; gap: 8px; flex-wrap: wrap; margin-top: -4px; }
.sf-tee:empty { display: none; }
.sf-tee span { background: #f1f5f1; border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--muted); }
.sf-tee b { color: var(--text); }
.sf-manual summary { cursor: pointer; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.sf-manual-in { background: #f7faf7; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 10px; display: grid; gap: 10px; }
.sf-gross { display: flex; align-items: center; gap: 10px; }
.sf-gross input { width: 150px; height: 80px !important; text-align: center; font: 700 52px/1 var(--num); color: var(--ink); background: var(--sand); border: 0; border-radius: 16px; padding: 0; }
.sf-gross input::placeholder { font: 600 18px var(--body); color: rgba(15,61,24,.4); }
.sf-step-btn { border-color: var(--line) !important; background: #f5f8f5 !important; color: var(--ink) !important; }
.sf-step-btn:hover { background: #e3efe6 !important; }
.sf-gross-l { font-size: 13px; color: var(--muted); line-height: 1.2; margin-left: 4px; }
.sf-save { margin-top: 10px; }
.sf-side { background: var(--ink); color: #dfe8e2; padding: 26px 24px; display: flex; flex-direction: column; gap: 14px;
  background-image: radial-gradient(circle at 100% 0%, rgba(230,217,179,.14), transparent 45%), radial-gradient(circle at 0% 110%, rgba(23,139,25,.4), transparent 50%); }
.sf-side-t { font: 600 12px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--sand); margin: 0; }
.sf-empty { color: #b9cdc1; font-size: 15px; border: 1px dashed rgba(255,255,255,.25); border-radius: 14px; padding: 18px; }
.sf-result b { display: block; font: 700 76px/0.95 var(--num); color: #fff; }
.sf-result > span { color: #b9cdc1; font-size: 14px; }
.sf-result p { margin: 10px 0 0; font-weight: 600; color: #e8d9b0; }
.sf-result p.good { color: #9be39d; }
.sf-count { display: inline-block; border-radius: 999px; padding: 5px 12px; font-size: 13px; }
.sf-count.yes { background: rgba(83,185,87,.25); color: #c9f5ca !important; }
.sf-count.no { background: rgba(255,255,255,.1); color: #cfe0d6 !important; }
.sf-note9 { margin: 0; font-size: 13px; color: #b9cdc1; }
.sf-note9:empty { display: none; }
.sf-tip { margin-top: auto; background: rgba(255,255,255,.07); border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.45; }
.sf-tip b { display: block; color: #fff; margin-bottom: 2px; }
.sf-now { font-size: 14px; color: #b9cdc1; } .sf-now b { color: var(--sand); font: 700 20px var(--num); margin-left: 4px; }
.sf-delete { margin-top: 18px; max-width: 1000px; }
@media (max-width: 860px) { .sf-card { grid-template-columns: 1fr; } .sf-side { order: -1; } .sf-tip { margin-top: 0; } }
@media (max-width: 520px) { .sf-main { padding: 20px 16px 22px; } .sf-when { grid-template-columns: 1fr; } .sf-gross input { width: 120px; height: 70px !important; font-size: 44px; } }

.sf-now-card { background: var(--sand); color: var(--ink); border-radius: 16px; padding: 14px 18px 12px; box-shadow: 0 12px 30px rgba(0,0,0,.22); display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sf-now-card span { font: 600 13px var(--body); letter-spacing: .08em; text-transform: uppercase; }
.sf-now-card b { font: 700 64px/0.95 var(--num); }
.sf-now-card small { width: 100%; font-size: 12.5px; color: #5c5238; }
.sf-side .sf-side-t { margin-top: 6px; }
.area-club .sf-now-card, .area-admin .sf-now-card { background: #f1e8cc; }

/* ===== Profile ===== */
.pf-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; background: var(--ink); color: #dfe8e2; border-radius: 22px; padding: 26px 30px; margin-top: 6px;
  background-image: radial-gradient(circle at 92% 0%, rgba(230,217,179,.16), transparent 42%), radial-gradient(circle at 0% 120%, rgba(23,139,25,.42), transparent 50%); }
.pf-av { width: 92px; height: 92px; border-radius: 50%; background: var(--sand); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font: 700 36px var(--num); box-shadow: 0 0 0 5px rgba(255,255,255,.12); }
.pf-who h1 { color: #fff; font: 700 clamp(30px, 3.6vw, 44px)/1 var(--num); margin: 0 0 6px; }
.pf-meta { display: flex; gap: 6px 16px; flex-wrap: wrap; margin: 0; color: #cfe0d6; font-size: 15px; }
.pf-meta b { color: #fff; }
.pf-who .me-clubs { margin-top: 10px; }
.pf-fix { margin: 10px 0 0; font-size: 13px; color: #a9c2b4; }
.pf-idx { background: var(--sand); color: var(--ink); border-radius: 18px; padding: 14px 24px; text-align: center; min-width: 170px; box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.pf-idx span { font: 600 13px var(--body); letter-spacing: .06em; text-transform: uppercase; }
.pf-idx b { display: block; font: 700 64px/0.95 var(--num); margin: 4px 0; }
.pf-idx a { font-size: 13px; font-weight: 600; color: var(--ink); }
.pf-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-top: 18px; align-items: start; }
.pf-side { display: grid; gap: 18px; }
.pf-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; box-shadow: 0 10px 30px rgba(15,61,24,.06); display: grid; gap: 14px; min-width: 0; }
.pf-card h2 { margin: 0 !important; font: 700 24px var(--num); color: var(--ink); }
.pf-group { font: 600 12px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 6px 0 -4px; }
.pf-card input:not([type=checkbox]):not([type=radio]), .pf-card select { height: 46px; box-sizing: border-box; }
.pf-card .homeclub select { margin-top: 6px; }
.pf-save { justify-self: start; padding-left: 22px; padding-right: 22px; }
.pf-clubs { list-style: none; margin: 0; padding: 0; }
.pf-clubs li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pf-clubs li:last-child { border-bottom: 0; }
.pf-clubs a { font-weight: 600; text-decoration: none; color: var(--text); } .pf-clubs a:hover { color: var(--ink-2); text-decoration: underline; }
.pf-clubs span { color: var(--muted); font-size: 14px; }
.pf-link { font-weight: 600; color: var(--ink-2); text-decoration: none; font-size: 15px; }
@media (max-width: 900px) { .pf-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .pf-hero { grid-template-columns: auto 1fr; padding: 22px 20px; gap: 16px; }
  .pf-av { width: 64px; height: 64px; font-size: 26px; }
  .pf-idx { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; text-align: left; min-width: 0; }
  .pf-idx b { font-size: 44px; margin: 0; }
  .pf-card { padding: 18px 16px; }
}
.pf-card label .opt { display: inline !important; margin: 0 0 0 6px !important; font-size: 13px; }

.pf-current { display: flex; flex-direction: column; gap: 6px; background: #f3f7f3; border-radius: 12px; padding: 12px 14px; }
.pf-current > span { font: 600 12px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pf-current a, .pf-current b { font: 700 20px var(--num); color: var(--ink); text-decoration: none; }
.pf-current a small { font: 400 13px var(--body); color: var(--muted); margin-left: 6px; }
.pf-current a:hover { color: var(--ink-2); }
.pf-pending { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff7e6; border: 1px solid #f1d9a6; border-radius: 12px; padding: 10px 14px; }
.pf-pending span { font-size: 13px; color: var(--muted); } .pf-pending b { display: block; color: var(--text); font-size: 15px; }
.pf-transfer summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.pf-transfer-in { display: grid; gap: 12px; margin-top: 12px; }
.pf-transfer-in button { justify-self: start; }

/* ===== HCAP Clubs (golfer side) in the HCAP Club blue ===== */
.club-theme { --club: #123a5e; --club-2: #1f6fb0; --club-soft: #e3edf7; }
.club-theme a:not(.btn):not(.cl-card) { color: var(--club-2); }
.club-theme h2 { font: 700 26px var(--num); color: var(--club); margin: 34px 0 12px; }
.club-theme .btn:not(.btn-light) { background: var(--club-2); border-color: var(--club-2); color: #fff; }
.club-theme .btn:not(.btn-light):hover { background: var(--club); border-color: var(--club); }
.club-theme .btn-light { color: var(--club); border-color: rgba(31,111,176,.45); }
.cl-hero { background: var(--club); color: #d6e5f3; border-radius: 22px; padding: 34px 34px 28px; margin-top: 6px;
  background-image: radial-gradient(circle at 92% 0%, rgba(160,200,240,.2), transparent 42%), radial-gradient(circle at 0% 120%, rgba(31,111,176,.55), transparent 50%); }
.cl-hero .lp-eyebrow { color: #bcd8f2; }
.cl-hero h1 { color: #fff; font: 700 clamp(36px, 4.4vw, 54px)/1 var(--num); margin: 0 0 10px; }
.cl-lead { max-width: 62ch; margin: 0 0 20px; font-size: 16px; }
.cl-hero .cl-lead a { color: #fff !important; font-weight: 600; }
.cl-search { position: relative; max-width: 640px; }
.cl-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: #7a8a99; }
.cl-search input { height: 56px; padding-left: 46px !important; border: 0 !important; border-radius: 14px !important; font-size: 17px; box-shadow: 0 10px 30px rgba(0,0,0,.2); width: 100%; box-sizing: border-box; }
.cl-prov { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.cl-prov button { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #fff; border-radius: 999px; padding: 6px 13px; font: 500 13.5px var(--body); cursor: pointer; }
.cl-prov button:hover { background: rgba(255,255,255,.2); }
.cl-prov button[aria-pressed="true"] { background: #fff; color: var(--club); font-weight: 700; }
.cl-facts { display: flex; gap: 22px; margin-top: 18px; font-size: 14px; }
.cl-facts b { color: #fff; font: 700 22px var(--num); margin-right: 4px; }
.cl-invite { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; background: #fff; border: 1px solid #bcd3ea; border-left: 5px solid var(--club-2); border-radius: 16px; padding: 16px 18px; margin-top: 16px; box-shadow: 0 10px 26px rgba(18,58,94,.08); }
.cl-invite b { display: block; font-size: 17px; color: var(--club); } .cl-invite div span { font-size: 14px; color: var(--muted); }
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.cl-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text); transition: box-shadow .15s, transform .15s, border-color .15s; min-width: 0; }
.cl-card:hover { box-shadow: 0 12px 30px rgba(18,58,94,.12); border-color: #bcd3ea; transform: translateY(-2px); }
.cl-av { width: 44px; height: 44px; border-radius: 12px; background: var(--club-soft); color: var(--club); display: inline-flex; align-items: center; justify-content: center; font: 700 17px var(--num); flex: none; margin-bottom: 8px; }
.cl-mine .cl-av { background: var(--club); color: #fff; }
.cl-name { font-size: 17px; line-height: 1.25; } .cl-name a { color: var(--text) !important; text-decoration: none; } .cl-name a:hover { color: var(--club-2) !important; text-decoration: underline; }
.cl-place { font-size: 13.5px; color: var(--muted); }
.cl-about { font-size: 13.5px; color: #53606a; margin-top: 4px; }
.cl-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; font-size: 13.5px; color: var(--muted); }
.cl-tag { background: var(--club-soft); color: var(--club); }
.cl-one { background: #f6f8fa; }
.cl-cancel { grid-column: 1 / -1; margin-top: -6px; }
.cl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cl-empty { background: #f3f7fb; border: 1px dashed #bcd3ea; border-radius: 14px; padding: 16px 18px; color: #3f4d58; }
.cl-run { margin-top: 40px; background: var(--club); color: #d6e5f3; border-radius: 20px; padding: 26px 28px; display: flex; gap: 16px 30px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cl-run h2 { color: #fff !important; margin: 0 0 4px !important; } .cl-run p { margin: 0; max-width: 56ch; }
.cl-run .cl-run-btn { background: #fff !important; color: var(--club) !important; border-color: #fff !important; }
.cl-run .cl-run-link { color: #fff !important; font-weight: 600; }
@media (max-width: 640px) { .cl-hero { padding: 26px 20px 22px; } .cl-invite { grid-template-columns: auto 1fr; } .cl-invite form { grid-column: 1 / -1; } }

/* Home icon at the start of the golfer menu */
#nav a.nav-home { display: inline-flex; align-items: center; justify-content: center; padding: 8px 10px; }
#nav a.nav-home svg { width: 20px; height: 20px; }
#nav a.nav-home span { display: none; }
@media (max-width: 1040px) { #nav a.nav-home { justify-content: flex-start; gap: 10px; } #nav a.nav-home span { display: inline; } }
.auth-back { display: inline-block; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; margin: -6px 0 12px; }
.auth-back:hover { text-decoration: underline; }

/* Switch between the three log-ins */
.auth-switch { max-width: 560px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.auth-switch span { font-size: 13px; color: var(--muted); margin-right: 4px; }
.auth-switch a { font-size: 13.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text) !important; text-decoration: none; }
.auth-switch a:hover { border-color: var(--ink-2); }
.auth-switch a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff !important; font-weight: 600; }
.area-club .auth-switch a[aria-current] { background: var(--club); border-color: var(--club); }
/* back office log-in uses the same green as the back office */

/* ===== Club office: Members ===== */
.mb-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.mb-top .page-head { margin-bottom: 10px; }
.mb-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.mb-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 0 0 8px; }
.mb-tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted) !important; font-weight: 600; font-size: 15px; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.mb-tabs a b { color: var(--text); margin-right: 3px; font-family: var(--num); font-size: 18px; }
.mb-tabs a:hover { color: var(--club) !important; border-bottom-color: #bcd3ea; }
.mb-tabs a.hot b { background: #d98e04; color: #fff; border-radius: 999px; padding: 0 8px; }
.mb-av { width: 38px; height: 38px; border-radius: 50%; background: var(--club-soft, #e3edf7); color: var(--club, #123a5e); display: inline-flex; align-items: center; justify-content: center; font: 700 13px var(--body); flex: none; }
.mb-av-soft { background: #f1f3f5; color: #6b7680; }
.mb-req-list { display: grid; gap: 10px; }
.mb-req { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; background: #fff; border: 1px solid #f1d9a6; border-left: 5px solid #d98e04; border-radius: 14px; padding: 14px 16px; }
.mb-req-who { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; min-width: 0; }
.mb-req-who b { font-size: 16px; } .mb-req-who > span:not(.tag) { font-size: 13.5px; color: var(--muted); }
.mb-req-who q { font-size: 14px; color: #3f4d58; font-style: italic; }
.mb-idx { text-align: center; font: 700 26px/1 var(--num); color: var(--club, #123a5e); }
.mb-idx small { display: block; font: 600 11px var(--body); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2px; }
.mb-req-btns { display: flex; gap: 6px; }
.mb-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 14px; }
.mb-search { position: relative; flex: 1; min-width: 220px; }
.mb-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.mb-search input { padding-left: 38px !important; height: 44px; width: 100%; box-sizing: border-box; }
.mb-sort { display: flex; align-items: center; gap: 4px; margin-left: auto; font-size: 14px; }
.mb-sort span { color: var(--muted); margin-right: 8px; }
.mb-sort a { padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--text) !important; border: 1px solid var(--line); background: #fff; font-size: 13.5px; }
.mb-sort a[aria-current] { background: var(--club, #123a5e); color: #fff !important; border-color: var(--club, #123a5e); }
.mb-who { display: flex; align-items: center; gap: 10px; }
.mb-who b { display: block; font-size: 14.5px; } .mb-who small { color: var(--muted); font-size: 12.5px; }
.mb-no { display: flex; align-items: center; gap: 4px; }
.mb-no input { width: 90px !important; }
.mb-save { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: #f5f8fb; color: var(--club-2, #1f6fb0); font-weight: 700; cursor: pointer; }
.mb-save:hover { background: var(--club-2, #1f6fb0); color: #fff; }
.mb-chip { display: inline-block; min-width: 46px; text-align: center; font: 700 15px var(--num); background: var(--club-soft, #e3edf7); color: var(--club, #123a5e); border-radius: 8px; padding: 3px 8px; }
.mb-row-btns { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.mb-remove { color: #9aa4ad !important; font-size: 13px; }
.mb-remove:hover { color: var(--flag) !important; }
.mb-move { display: flex; gap: 6px; } .mb-move select { max-width: 170px; }
.mb-empty { background: #f3f7fb; border: 1px dashed #bcd3ea; border-radius: 14px; padding: 16px 18px; color: #3f4d58; }
.mb-bottom { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin-top: 30px; align-items: start; }
.mb-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; box-shadow: 0 10px 30px rgba(18,58,94,.06); }
.mb-card h2 { margin: 0 0 6px !important; }
.mb-tools-in { background: none; border: 0; padding: 0; margin: 8px 0 12px; }
.mb-list { display: grid; }
.mb-li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mb-li:last-child { border-bottom: 0; }
.mb-li-who b { display: block; font-size: 14.5px; } .mb-li-who small { color: var(--muted); font-size: 12.5px; }
.mb-li > form:only-of-type { justify-self: end; }
#invited .mb-li { grid-template-columns: auto 1fr auto; }
@media (max-width: 900px) { .mb-bottom { grid-template-columns: 1fr; } .mb-req { grid-template-columns: auto 1fr; } .mb-idx { text-align: left; } .mb-req-btns { grid-column: 1 / -1; } .mb-sort { margin-left: 0; } }

/* Members: blue banner */
.mb-hero { background: var(--club, #123a5e); color: #d6e5f3; border-radius: 22px; padding: 28px 30px 0; margin: 6px 0 22px;
  background-image: radial-gradient(circle at 92% 0%, rgba(160,200,240,.2), transparent 42%), radial-gradient(circle at 0% 120%, rgba(31,111,176,.55), transparent 50%); }
.mb-hero-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; }
.mb-hero .lp-eyebrow { color: #bcd8f2 !important; margin-bottom: 6px; }
.mb-hero h1 { color: #fff !important; font: 700 clamp(36px, 4.4vw, 54px)/1 var(--num); margin: 0; }
.mb-hero .mb-actions { margin: 0; }
.mb-btn-white { background: #fff !important; color: var(--club, #123a5e) !important; border-color: #fff !important; }
.mb-btn-white:hover { background: #e3edf7 !important; }
.mb-btn-ghost { background: rgba(255,255,255,.08) !important; color: #fff !important; border-color: rgba(255,255,255,.45) !important; }
.mb-btn-ghost:hover { background: rgba(255,255,255,.2) !important; }
.mb-hero .mb-tabs { border-bottom: 0; margin: 22px 0 0; gap: 2px; }
.mb-hero .mb-tabs a { color: #bcd8f2 !important; border-bottom: 3px solid transparent; padding: 12px 14px 14px; }
.mb-hero .mb-tabs a b { color: #fff; }
.mb-hero .mb-tabs a:hover { color: #fff !important; border-bottom-color: rgba(255,255,255,.5); }
.mb-hero .mb-tabs a:first-child { border-bottom-color: #fff; color: #fff !important; }
.mb-info { background: #eef4fa; border: 1px solid #cfe0f0; border-left: 5px solid var(--club-2, #1f6fb0); border-radius: 12px; padding: 14px 18px; color: #2b3d4d; margin: 0 0 18px; max-width: 760px; }
@media (max-width: 640px) { .mb-hero { padding: 22px 18px 0; } .mb-hero .mb-tabs a { padding: 10px 10px 12px; font-size: 14px; } }

/* Club admin: logins */
.ua-list { display: grid; gap: 10px; }
.ua-row { display: grid; grid-template-columns: auto 1.6fr 1fr 1fr auto; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; box-shadow: 0 6px 18px rgba(18,58,94,.04); }
.ua-me { border-color: #bcd3ea; box-shadow: inset 4px 0 0 var(--club-2, #1f6fb0); }
.ua-av-admin { background: var(--club, #123a5e) !important; color: #fff !important; }
.ua-who { min-width: 0; } .ua-who b { display: block; font-size: 16px; } .ua-who span { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.ua-seen { font-size: 14px; } .ua-seen small { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.ua-role select { height: 38px; border-radius: 999px; padding: 0 30px 0 14px; background-color: #f3f7fb; border-color: #cfe0f0; font-weight: 600; color: var(--club, #123a5e); }
.ua-pill { display: inline-block; border-radius: 999px; padding: 6px 14px; background: #f3f7fb; color: var(--club, #123a5e); font-weight: 600; font-size: 14px; }
.ua-pill-admin { background: var(--club, #123a5e); color: #fff; }
.ua-end { min-width: 60px; text-align: right; }
.ua-form { display: grid; gap: 12px; }
.ua-form input:not([type=checkbox]), .ua-form select { height: 44px; box-sizing: border-box; }
.ua-btn { justify-self: start; }
.mb-bottom { margin-top: 24px; }
@media (max-width: 860px) { .ua-row { grid-template-columns: auto 1fr; } .ua-seen, .ua-role, .ua-end { grid-column: 2; text-align: left; } }
.ua-who b .tag { display: inline-block !important; white-space: nowrap; font-size: 11.5px; margin-left: 6px; vertical-align: middle; }
.ua-role select { font-size: 14px; }

/* Club details */
.cd-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.cd-form { display: grid; gap: 12px; }
.cd-form h2 { margin: 0 !important; }
.cd-form input:not([type=checkbox]), .cd-form select { height: 44px; box-sizing: border-box; }
.cd-form label .opt { display: inline !important; margin-left: 6px; font-size: 13px; }
.cd-form .pf-group { color: var(--club-2, #1f6fb0); }
.cd-about { position: relative; }
.cd-count { position: absolute; right: 10px; bottom: 8px; font-size: 12px; color: var(--muted); background: rgba(255,255,255,.9); padding: 0 4px; }
.cd-side { position: sticky; top: 90px; background: var(--club, #123a5e); border-radius: 18px; padding: 20px; color: #d6e5f3;
  background-image: radial-gradient(circle at 100% 0%, rgba(160,200,240,.18), transparent 45%); }
.cd-side-t { font: 600 12px var(--body); letter-spacing: .12em; text-transform: uppercase; color: #bcd8f2; margin: 0 0 12px; }
.cd-preview { pointer-events: none; box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.cd-side-note { font-size: 13px; color: #bcd8f2; margin: 12px 0 0; }
@media (max-width: 900px) { .cd-grid { grid-template-columns: 1fr; } .cd-side { position: static; } }

/* ===== Back office dashboard ===== */
.bo-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; background: var(--ink); border-radius: 22px; padding: 28px 30px; margin-top: 6px; color: #dfe8e2;
  background-image: radial-gradient(circle at 92% 0%, rgba(230,217,179,.16), transparent 42%), radial-gradient(circle at 0% 120%, rgba(23,139,25,.42), transparent 50%); }
.bo-hero h1 { color: #fff; font: 700 clamp(34px, 4.2vw, 52px)/1 var(--num); margin: 0; }
.bo-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.bo-attn { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.bo-clear { flex: 1; display: flex; align-items: center; gap: 10px; background: #eaf5ea; border: 1px solid #cfe6cf; border-radius: 14px; padding: 12px 16px; color: #2f5a33; }
.bo-clear span { width: 26px; height: 26px; border-radius: 50%; background: var(--ink-2); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.bo-alert { flex: 1 1 220px; display: flex; align-items: center; gap: 12px; border-radius: 14px; padding: 12px 16px; text-decoration: none; color: var(--text); border: 1px solid; transition: transform .15s, box-shadow .15s; }
.bo-alert:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.bo-alert b { font: 700 28px/1 var(--num); }
.bo-alert span { flex: 1; font-size: 14.5px; font-weight: 600; } .bo-alert em { font-style: normal; font-weight: 700; }
.bo-warn { background: #fff7e6; border-color: #f1d9a6; } .bo-warn b { color: #b56f00; }
.bo-bad { background: #fbeeec; border-color: #efc4bc; } .bo-bad b { color: var(--flag); }
.bo-info { background: #eef4fa; border-color: #cfe0f0; } .bo-info b { color: #1f6fb0; }
.bo-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.bo-stats a { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; text-decoration: none; color: var(--text); box-shadow: 0 8px 22px rgba(15,61,24,.05); transition: transform .15s, box-shadow .15s; }
.bo-stats a:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,61,24,.1); }
.bo-stats b { display: block; font: 700 32px/1 var(--num); color: var(--ink); margin-bottom: 4px; }
.bo-stats span { font-size: 13px; color: var(--muted); }
.bo-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; box-shadow: 0 10px 30px rgba(15,61,24,.06); min-width: 0; }
.bo-chart-card { margin-top: 18px; }
.bo-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; height: 180px; align-items: end; }
.bo-bar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.bo-bar i { width: 100%; max-width: 44px; background: linear-gradient(180deg, #53b957, var(--ink-2)); border-radius: 8px 8px 3px 3px; min-height: 2px; }
.bo-bar:last-child i { background: linear-gradient(180deg, #e8d9b0, var(--sand)); }
.bo-bar-n { font: 700 13px var(--num); color: var(--ink); min-height: 15px; }
.bo-bar small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.bo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.bo-list { list-style: none; margin: 0; padding: 0; }
.bo-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.bo-list li:last-child { border-bottom: 0; }
.bo-av { width: 34px !important; height: 34px !important; background: #e3efe6 !important; color: var(--ink) !important; font-size: 12px !important; }
.bo-li-main { min-width: 0; } .bo-li-main a { text-decoration: none; color: var(--text); } .bo-li-main a:hover b { color: var(--ink-2); text-decoration: underline; }
.bo-li-main b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bo-li-main small { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bo-act li { grid-template-columns: auto 1fr; }
.bo-dot { width: 10px; height: 10px; border-radius: 50%; background: #9aa79f; }
.bo-dot-golfer { background: var(--ink-2); } .bo-dot-club { background: #1f6fb0; } .bo-dot-admin { background: #7a2418; } .bo-dot-bad { background: var(--flag); box-shadow: 0 0 0 3px #fbe1dc; }
.bo-bad-t { color: var(--flag); font-weight: 600; }
.bo-h2 { margin-top: 30px !important; }
.bo-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bo-tool { display: flex; flex-direction: column; gap: 8px; }
.bo-tool svg { width: 40px; height: 40px; color: var(--ink-2); background: #e8f1ec; border-radius: 11px; padding: 8px; }
.bo-tool h3 { margin: 4px 0 0; font: 700 19px var(--num); color: var(--ink); }
.bo-tool p { margin: 0; font-size: 14px; color: var(--muted); flex: 1; }
.bo-tool button { align-self: flex-start; }
.bo-tool-row { display: flex; gap: 8px; } .bo-tool-row input { flex: 1; min-width: 0; height: 38px; }
@media (max-width: 1100px) { .bo-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .bo-grid, .bo-tools { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .bo-stats { grid-template-columns: 1fr 1fr; } .bo-bars { gap: 4px; height: 150px; } .bo-bar small { font-size: 9px; } .bo-hero { padding: 22px 18px; } }
.bo-bars { min-width: 0; } .bo-bar { min-width: 0; } .bo-bar small { overflow: hidden; max-width: 100%; }
@media (max-width: 560px) { .bo-bar small { writing-mode: vertical-rl; transform: rotate(180deg); height: 36px; } .bo-bar-n { font-size: 11px; } }
.bo-stats span { display: block; line-height: 1.3; }

/* ===== Back office: its own colours (charcoal + amber), so it never looks like the golfer pages ===== */
.area-admin { --ink: #1f2933; --ink-2: #b45309; --adm-soft: #fbf1e3; --adm-soft-2: #f6f3ee; --line: #e6e2dc; }
.area-admin { background: #f6f5f2; }
.area-admin .top { box-shadow: inset 0 3px 0 #b45309; border-bottom-color: #e6e2dc; }
.area-admin .area-badge { background: #1f2933; color: #fcd9a4; }
.area-admin #nav a[aria-current] { background: var(--adm-soft); color: #7c3a06; }
.area-admin #nav a:hover { background: #f7efe4; color: #7c3a06; }
.area-admin .who-h .av { background: #1f2933; box-shadow: 0 0 0 3px var(--adm-soft); }
.area-admin main a:not(.btn):not(.bo-alert):not(.dash-tile) { color: #9a4a0a; }
.area-admin .lp-eyebrow { color: #b45309; }
.area-admin .lp-eyebrow-light { color: #fcd9a4 !important; }
/* banners: charcoal with a warm glow */
.area-admin .bo-hero, .area-admin .me-hero, .area-admin .mb-hero, .area-admin .help-hero, .area-admin .cl-hero {
  background-color: #1f2933; background-image: radial-gradient(circle at 92% 0%, rgba(252,217,164,.16), transparent 42%), radial-gradient(circle at 0% 120%, rgba(180,83,9,.38), transparent 50%); }
.area-admin .me-ghost { background: rgba(255,255,255,.08) !important; border-color: rgba(255,255,255,.5) !important; }
.area-admin .lp-btn-sand { background: #fcd9a4 !important; color: #1f2933 !important; }
/* buttons */
.area-admin .btn:not(.btn-light):not(.lp-btn-sand):not(.me-ghost) { background: #1f2933; border-color: #1f2933; color: #fff; }
.area-admin .btn:not(.btn-light):not(.lp-btn-sand):not(.me-ghost):hover { background: #b45309; border-color: #b45309; }
.area-admin .btn-light { color: #1f2933; border-color: #cfc8bd; background: #fff; }
.area-admin .btn-light:hover { border-color: #b45309; color: #7c3a06; }
/* soft backgrounds that were light green */
.area-admin .scroll th { background: var(--adm-soft-2); }
.area-admin .scroll tbody tr:hover td { background: #fbf9f5; }
.area-admin .sc-table tr.day-row td { background: var(--adm-soft) !important; color: #7c3a06; }
.area-admin .sc-golfer .av, .area-admin .bo-av { background: var(--adm-soft) !important; color: #7c3a06 !important; }
.area-admin .diff-chip { background: #f3efe9; }
.area-admin .diff-chip.on { background: #b45309; color: #fff; }
.area-admin .range-chips a[aria-current] { background: #1f2933; border-color: #1f2933; }
.area-admin .bo-tool svg, .area-admin .dash-tile svg, .area-admin .lp-feat svg, .area-admin .empty-state svg { color: #b45309; background: var(--adm-soft); }
.area-admin .bo-bar i { background: linear-gradient(180deg, #f59e0b, #b45309); }
.area-admin .bo-bar:last-child i { background: linear-gradient(180deg, #d6dbe1, #9aa5b1); }
.area-admin .bo-bar-n { color: #1f2933; }
.area-admin .bo-stats b, .area-admin .sc-stats b, .area-admin .me-card-head h2, .area-admin main h2, .area-admin .page-head h1, .area-admin h1 { color: #1f2933; }
.area-admin .bo-hero h1 { color: #fff; }
.area-admin .bo-clear { background: #f2f7ee; border-color: #d8e7cf; }
.area-admin .pcc-seg { background: var(--adm-soft-2) !important; }
.area-admin .pcc-seg input:checked + span { background: #1f2933 !important; }
.area-admin .seg input:checked + span { background: #1f2933; color: #fff; }
.area-admin .tag-ink { background: #1f2933; }
.area-admin .note:not(.note-err):not(.note-warn) { background: #fbf4ea; border-left-color: #b45309; }
.area-admin input:not([type=checkbox]):not([type=radio]):not([type=file]):focus, .area-admin select:focus, .area-admin textarea:focus { border-color: #b45309; box-shadow: 0 0 0 3px rgba(180,83,9,.15); }
.area-admin .pager a:hover, .area-admin .pager [aria-current] { border-color: #b45309; }
/* back office log-in */
.area-admin .auth-side::before { background: linear-gradient(0deg, rgba(20,26,33,.94) 0%, rgba(31,41,51,.66) 55%, rgba(31,41,51,.42) 100%); }
.area-admin .auth-points li::before { background: #fcd9a4; }
.area-admin .auth-points li::after { border-color: #1f2933; }
.area-admin .lp-kicker { color: #fcd9a4; }
.area-admin .auth-card h1 { color: #1f2933; }
.area-admin .auth-card .auth-btn { background: #1f2933; border-color: #1f2933; }
.area-admin .auth-card .auth-btn:hover { background: #b45309; border-color: #b45309; }
.area-admin .auth-switch a[aria-current] { background: #1f2933 !important; border-color: #1f2933 !important; }
.area-admin .pw-show { color: #b45309; }
.area-admin .foot-parts a[aria-current] { color: #1f2933; }
@media (max-width: 1040px) { .area-admin .menu-btn[aria-expanded="true"] { background: #1f2933; border-color: #1f2933; } }
.area-admin .range-chips a[aria-current], .area-admin .auth-switch a[aria-current], .area-admin .bo-hero a { color: #fff !important; }
.area-admin .bo-hero .lp-btn-sand { color: #1f2933 !important; }

/* ===== Back office: Golfers ===== */
.gl-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.gl-top .page-head { margin-bottom: 14px; }
.gl-actions { display: flex; gap: 8px; margin-bottom: 20px; }
.gl-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.gl-filters a { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 8px 7px 14px; font-size: 14px; text-decoration: none; color: var(--text) !important; }
.gl-filters a b { background: var(--adm-soft-2, #f3f3f3); border-radius: 999px; padding: 1px 9px; font: 700 13px var(--num); }
.gl-filters a:hover { border-color: #b45309; }
.gl-filters a[aria-current] { background: #1f2933; border-color: #1f2933; color: #fff !important; }
.gl-filters a[aria-current] b { background: #fcd9a4; color: #1f2933; }
.gl-filters a.gl-warn:not([aria-current]) b { background: #fde7c7; color: #9a4a0a; }
.gl-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.gl-tools select { height: 44px; width: auto; max-width: 280px; }
.gl-clear { font-size: 14px; }
.gl-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 14px 2px 10px; font-size: 14px; color: var(--muted); }
.gl-sort { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.gl-sort a { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--text) !important; font-size: 13px; }
.gl-sort a[aria-current] { background: #1f2933; border-color: #1f2933; color: #fff !important; }
.gl-table tbody tr { cursor: pointer; }
.gl-clubs { display: flex; flex-wrap: wrap; gap: 4px; }
.gl-chip { display: inline-block; font-size: 12.5px; background: var(--adm-soft, #fbf1e3); color: #7c3a06 !important; border-radius: 999px; padding: 2px 9px; text-decoration: none; white-space: nowrap; }
.gl-chip:hover { background: #fde7c7; }
.gl-chip-one { background: #f1f1ef; color: #6b6f75 !important; }
.gl-contact span { display: block; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-start { display: block; font-size: 11px; color: var(--muted); }
.gl-table td:first-child { min-width: 230px; }
.gl-table .sc-golfer b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.area-admin .sc-golfer, .area-admin .sc-golfer b { color: var(--text) !important; }
.area-admin .sc-golfer:hover b { color: #9a4a0a !important; }
.gl-contact span { max-width: 190px; }
.gl-table td.small:nth-child(2) { max-width: 150px; }
.gl-table td:last-child { white-space: nowrap; }
.gl-table td:first-child { min-width: 260px; } .gl-table .sc-golfer small { display: block; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Golfers: dashboard look */
.gl-stats { margin: 16px 0 18px; }
.gl-stats a[aria-current] { background: #1f2933; border-color: #1f2933; box-shadow: 0 12px 28px rgba(31,41,51,.25); }
.gl-stats a[aria-current] b { color: #fcd9a4 !important; } .gl-stats a[aria-current] span { color: #e5e7eb; }
.gl-stats a.gl-warn:not([aria-current]) b { color: #b45309 !important; }
.gl-card { padding: 16px 18px 18px; }
.gl-card .gl-tools { background: none; border: 0; padding: 0; }
.gl-card .gl-bar { margin: 14px 2px 12px; }
.gl-card .gl-bar b { color: var(--text); font-family: var(--num); font-size: 17px; }
.gl-card .scroll { box-shadow: none; }
/* Golfers on a phone: each golfer as a small stacked card instead of a wide table */
@media (max-width: 700px) {
  .gl-card { padding: 14px 12px; }
  .gl-card .scroll { border: 0; background: none; overflow: visible; }
  .gl-table thead { display: none; }
  .gl-table, .gl-table tbody { display: block; }
  .gl-table tbody tr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
  .gl-table tbody tr td { display: block; padding: 0 !important; border: 0 !important; text-align: left !important; min-width: 0 !important; max-width: none !important; }
  .gl-table td:nth-child(1), .gl-table td:nth-child(2), .gl-table td:nth-child(3) { grid-column: 1 / -1; }
  .gl-table td:nth-child(2):empty, .gl-table td:nth-child(2) .gl-clubs:empty { display: none; }
  .gl-table .sc-golfer b { max-width: none; white-space: normal; }
  .gl-table .sc-golfer small { max-width: 100%; white-space: normal; }
  .gl-contact span { max-width: 100%; }
  .gl-table td:nth-child(4), .gl-table td:nth-child(5), .gl-table td:nth-child(6) { border-top: 1px solid var(--line) !important; padding-top: 8px !important; font-size: 14px; white-space: normal; }
  .gl-table td:nth-child(4)::before, .gl-table td:nth-child(5)::before, .gl-table td:nth-child(6)::before { display: block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
  .gl-table td:nth-child(4)::before { content: "HCP Index"; }
  .gl-table td:nth-child(5)::before { content: "Rounds"; }
  .gl-table td:nth-child(6)::before { content: "Last log-in"; }
  .gl-table td:nth-child(4) .gl-start { display: inline; margin-left: 4px; }
  .gl-table tbody tr:hover td { background: none; }
}

/* Scores: dashboard look */
.sc-stats4 { grid-template-columns: repeat(4, 1fr); margin: 16px 0 18px; }
.sc-card { padding: 18px 20px 20px; }
.sc-card .range-chips { margin: 0 0 12px; }
.sc-card .sc-filter { grid-template-columns: 1fr 1fr 1.3fr 1.3fr auto; }
.sc-period { margin: 16px 2px 12px; color: var(--muted); font-size: 14px; }
.sc-period b { color: var(--text); font: 700 17px var(--num); }
.sc-card .scroll { box-shadow: none; }
.sc-card + .pcc-card { margin-top: 22px; }
@media (max-width: 1000px) { .sc-stats4 { grid-template-columns: 1fr 1fr; } .sc-card .sc-filter { grid-template-columns: 1fr 1fr; } }
/* Scores on a phone: each round as a small stacked card */
@media (max-width: 700px) {
  .sc-card { padding: 14px 12px; }
  .sc-card .scroll { border: 0; background: none; overflow: visible; }
  .sc-table thead { display: none; }
  .sc-table, .sc-table tbody { display: block; }
  .sc-table tbody tr { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
  .sc-table tbody tr.day-row { display: block; background: none; border: 0; padding: 10px 2px 4px; margin: 4px 0 2px; }
  .sc-table tbody tr.day-row td { background: none !important; padding: 0 !important; border: 0 !important; font-size: 13px; }
  .sc-table tbody tr td { display: block; padding: 0 !important; border: 0 !important; text-align: left !important; }
  .sc-table td:nth-child(1), .sc-table td:nth-child(2) { grid-column: 1 / -1; }
  .sc-table td:nth-child(7) { grid-column: 1 / -1; font-size: 12.5px; }
  .sc-table td:nth-child(7)::before { content: "Entered by "; }
  .sc-table td:nth-child(n+3):nth-child(-n+6) { border-top: 1px solid var(--line) !important; padding-top: 8px !important; font-size: 14px; }
  .sc-table td:nth-child(n+3):nth-child(-n+6)::before { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
  .sc-table td:nth-child(3)::before { content: "Gross"; }
  .sc-table td:nth-child(4)::before { content: "PCC"; }
  .sc-table td:nth-child(5)::before { content: "Diff"; }
  .sc-table td:nth-child(6)::before { content: "Index after"; }
  .sc-table tbody tr:hover td { background: none; }
  .sc-table tr.out { opacity: .6; }
  .sc-table tr.out td { opacity: 1; }
  .sc-course { font-size: 14px; }
}
/* Courses: dashboard look */
.cs-stats { grid-template-columns: repeat(5, 1fr); }
.cs-stats .cs-info { background: #f6f3ee; }
.cs-note { background: #fbf4ea; border-left: 4px solid #b45309; border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; font-size: 14.5px; }
.cs-table tbody tr[data-href] { cursor: pointer; }
.cs-table tr.cs-club td { background: var(--adm-soft, #fbf1e3) !important; font-weight: 700; color: #1f2933; padding-top: 9px; padding-bottom: 9px; }
.cs-table tr.cs-club span { font-weight: 400; color: var(--muted); margin-left: 8px; font-size: 13px; }
.cs-tee { display: inline-flex; align-items: center; gap: 8px; }
.cs-tee b { font-weight: 600; }
@media (max-width: 1000px) { .cs-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) {
  .cs-stats { grid-template-columns: 1fr 1fr; }
  .cs-card .scroll { border: 0; background: none; overflow: visible; }
  .cs-table thead { display: none; }
  .cs-table, .cs-table tbody { display: block; }
  .cs-table tbody tr { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 6px 8px; align-items: end; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
  .cs-table tbody tr.cs-club { display: block; background: none; border: 0; padding: 12px 2px 4px; margin: 0; }
  .cs-table tbody tr.cs-club td { background: none !important; padding: 0 !important; font-size: 15px; }
  .cs-table tbody tr td { display: block; padding: 0 !important; border: 0 !important; text-align: left !important; }
  .cs-table td:nth-child(1) { grid-column: 1 / -1; }
  .cs-table td:nth-child(n+2):nth-child(-n+5)::before { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .cs-table td:nth-child(2)::before { content: "Rating"; }
  .cs-table td:nth-child(3)::before { content: "Slope"; }
  .cs-table td:nth-child(4)::before { content: "Par"; }
  .cs-table td:nth-child(5)::before { content: "Rounds"; }
  .cs-table tbody tr:hover td { background: none; }
}
@media (min-width: 701px) { .cs-table { table-layout: fixed; width: 100%; } .cs-table th:nth-child(1) { width: 38%; } .cs-table th:nth-child(n+2):nth-child(-n+5) { width: 12%; } .cs-table th:last-child { width: 14%; } .cs-table td.why { text-align: right; } }

/* ===== Back office: HCAP Clubs ===== */
.ac-stats { grid-template-columns: repeat(4, 1fr); margin: 16px 0 18px; }
.ac-hero-sub { margin: 10px 0 0; color: #e5e7eb; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ac-decide { display: flex; gap: 8px; }
.ac-av { border-radius: 10px !important; }
.ac-table tr.ac-pending td { background: #fffaf0; }
.ac-logins > span { display: block; max-width: 330px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: start; }
.ac-details h2, .ua-form h2 { margin: 0 0 10px !important; }
.ac-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 0; }
.ac-dl div { min-width: 0; } .ac-dl dt { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); } .ac-dl dd { margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; }
.ac-about { background: #f6f3ee; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 14px 0 0; }
.ac-rename { display: flex; gap: 8px; align-items: end; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ac-rename label { flex: 1; } .ac-rename input { height: 40px; }
.ac-section { margin-top: 18px; }
.ac-login { grid-template-columns: auto 1.4fr 1fr auto !important; }
.ac-login-btns { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.ac-email { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.ac-email select { width: auto; height: 38px; } .ac-email input { flex: 1; min-width: 200px; height: 38px; }
.ac-link { background: #fbf4ea; border: 1px solid #f0d9b5; border-left: 5px solid #b45309; border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; }
.ac-link-row { display: flex; gap: 8px; margin-top: 8px; } .ac-link-row input { flex: 1; height: 38px; }
.ac-mem tbody tr { cursor: pointer; }
@media (max-width: 900px) { .ac-grid { grid-template-columns: 1fr; } .ac-login { grid-template-columns: auto 1fr !important; } .ac-login-btns { grid-column: 1 / -1; justify-content: flex-start; } }
@media (max-width: 700px) {
  .ac-stats { grid-template-columns: 1fr 1fr; }
  .ac-dl { grid-template-columns: 1fr; }
  .ac-table td:nth-child(n+2), .ac-mem td:nth-child(n+2) { border-top: 0 !important; padding-top: 0 !important; }
  .ac-table tbody tr, .ac-mem tbody tr { grid-template-columns: 1fr 1fr; }
  .ac-table td:nth-child(1), .ac-table td:nth-child(2) { grid-column: 1 / -1; }
  .ac-table td:nth-child(3)::before { content: "Members: "; display: inline !important; text-transform: none; font-size: 13px; letter-spacing: 0; }
  .ac-table td:nth-child(4)::before, .ac-table td:nth-child(5)::before, .ac-table td:nth-child(6)::before { content: none !important; }
  .ac-table td:nth-child(5) { grid-column: 1 / -1; font-size: 12.5px; }
  .ac-table td:nth-child(5)::before { content: "Registered " !important; display: inline !important; text-transform: none; font-size: 12.5px; letter-spacing: 0; color: var(--muted); }
  .ac-logins > span { max-width: 100%; white-space: normal; }
  .ac-mem td:nth-child(1) { grid-column: 1 / -1; }
  .ac-mem td:nth-child(2)::before { content: "HCP Index "; display: inline !important; text-transform: none; font-size: 13px; letter-spacing: 0; }
  .ac-mem td:nth-child(3)::before { content: none !important; }
}
.area-admin .ua-av-admin { background: #1f2933 !important; color: #fcd9a4 !important; } .area-admin .mb-av:not(.ua-av-admin) { background: var(--adm-soft); color: #7c3a06; }

/* Back office: Admins */
.am-stats { grid-template-columns: repeat(3, 1fr); }
.am-row { grid-template-columns: auto 1.6fr 0.8fr 0.9fr auto !important; }
.am-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; align-items: start; }
.am-side { display: grid; gap: 18px; }
.am-grid .ua-form h2 { margin: 0 !important; }
@media (max-width: 900px) { .am-grid { grid-template-columns: 1fr; } .am-row { grid-template-columns: auto 1fr !important; } .am-row .ua-seen, .am-row .ua-end { grid-column: 2; text-align: left; } }
@media (max-width: 700px) { .am-stats { grid-template-columns: 1fr 1fr; } }
.area-admin .ua-me { border-color: #f0d9b5; box-shadow: inset 4px 0 0 #b45309; }

/* Back office: Email settings */
.em-stats { grid-template-columns: repeat(4, 1fr); }
.em-stats b small { font: 600 15px var(--body); color: var(--muted); }
.em-stats a.em-bad b { color: var(--flag) !important; }
.em-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; align-items: start; }
.em-grid h2, .em-test h2 { margin: 0 !important; }
.em-side { display: grid; gap: 18px; }
.em-status { display: flex; gap: 10px; align-items: flex-start; background: #f2f7ee; border: 1px solid #d8e7cf; border-radius: 12px; padding: 10px 12px; }
.em-status-warn { background: #fbf4ea; border-color: #f0d9b5; }
.em-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-2, #1a8a1d); margin-top: 6px; flex: none; }
.area-admin .em-dot { background: #2f8a3a; } .em-status-warn .em-dot { background: #d98e04 !important; }
.em-status b { display: block; font-size: 14.5px; } .em-status small { color: var(--muted); font-size: 12.5px; }
.em-row3 { display: grid; grid-template-columns: 2fr 0.8fr 1.4fr; gap: 12px; }
.em-test { display: grid; gap: 10px; }
.em-test-row { display: flex; gap: 8px; } .em-test-row input { flex: 1; min-width: 0; height: 44px; }
.em-types { margin-top: 18px; }
.em-intro { max-width: 80ch; margin: -6px 0 12px; }
.em-type { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; background: #fff; }
.em-type summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; }
.em-type summary::-webkit-details-marker { display: none; }
.em-type summary:hover { background: #fbf9f5; border-radius: 14px; }
.em-type[open] { box-shadow: inset 4px 0 0 #b45309; }
.em-type[open] summary { border-bottom: 1px solid var(--line); border-radius: 14px 14px 0 0; }
.em-ic svg { width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: var(--adm-soft, #fbf1e3); color: #b45309; }
.em-ic-off svg { background: #f1f1ef; color: #9aa0a6; }
.em-what { min-width: 0; } .em-what b { display: block; font-size: 15px; } .em-what small { display: block; color: var(--muted); font-size: 13px; }
.em-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.em-form { display: grid; gap: 12px; padding: 14px 16px 16px; }
@media (max-width: 900px) { .em-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .em-stats { grid-template-columns: 1fr 1fr; } .em-row3 { grid-template-columns: 1fr 1fr; } .em-row3 label:first-child { grid-column: 1 / -1; } .em-type summary { grid-template-columns: auto 1fr; } .em-tags { grid-column: 2; justify-content: flex-start; } }
.gl-stats.em-stats a.em-bad:not([aria-current]) b { color: var(--flag) !important; } .gl-stats.em-stats a.em-bad { background: #fbeeec; border-color: #efc4bc; }

/* Back office: Activity log */
.lg-alert { margin: 16px 0 0; }
.lg-stats { grid-template-columns: repeat(5, 1fr); }
.lg-stats span .bo-dot { display: inline-block; margin-right: 6px; vertical-align: middle; }
.lg-filter { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr 1fr auto; gap: 12px; align-items: end; }
.lg-filter input { height: 44px; box-sizing: border-box; }
.lg-table td { vertical-align: top !important; }
.lg-table tr.day-row td { vertical-align: middle !important; }
.lg-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.lg-part { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.lg-part .bo-dot { width: 8px; height: 8px; }
.lg-what b { font-weight: 600; font-size: 14px; }
.lg-details summary { color: #9a4a0a; cursor: pointer; font-size: 12.5px; }
.lg-details div { font-size: 12.5px; color: #4b5563; word-break: break-word; }
.lg-problem { display: inline-block; background: #fbe1dc; color: var(--flag); border-radius: 999px; padding: 1px 8px; font-weight: 700; font-size: 11.5px; margin-right: 4px; }
.lg-table tr.log-bad td { background: #fff8f6; }
.lg-trim { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding: 14px 18px; }
.lg-trim select { width: auto; height: 38px; }
@media (max-width: 1000px) { .lg-stats { grid-template-columns: repeat(3, 1fr); } .lg-filter { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  .lg-stats { grid-template-columns: 1fr 1fr; }
  .lg-card .scroll { border: 0; background: none; overflow: visible; }
  .lg-table thead { display: none; }
  .lg-table, .lg-table tbody { display: block; }
  .lg-table tbody tr { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
  .lg-table tbody tr.day-row { display: block; background: none; border: 0; padding: 10px 2px 4px; margin: 0; }
  .lg-table tbody tr.day-row td { background: none !important; padding: 0 !important; border: 0 !important; font-weight: 700; }
  .lg-table tbody tr td { display: block; padding: 0 !important; border: 0 !important; }
  .lg-table .lg-what, .lg-table .lg-result { grid-column: 1 / -1; }
  .lg-table .lg-who { grid-column: 1 / -1; order: 3; }
  .lg-table .lg-ip { grid-column: 1 / -1; order: 6; color: var(--muted); font-size: 12px; }
  .lg-table .lg-what { order: 4; } .lg-table .lg-result { order: 5; }
}
/* part colours everywhere: golfers green, club office blue, back office amber */
.bo-dot-golfer { background: #1a8a1d !important; }
.bo-dot-club { background: #1f6fb0 !important; }
.bo-dot-admin { background: #b45309 !important; }
.gl-stats.lg-stats a.em-bad:not([aria-current]) b { color: var(--flag) !important; }
.gl-stats.lg-stats a.em-bad:not([aria-current]) { background: #fbeeec; border-color: #efc4bc; }

/* PCC shown wherever a score is */
.pcc-tag { display: inline-block; background: #e6effa; color: #1d4f8a; border-radius: 999px; padding: 0 7px; font: 700 11.5px/1.6 var(--body); white-space: nowrap; }
.sf-pcc { margin: 0; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 10px; padding: 8px 10px; font-size: 13px; color: #fff; }

.sf-pccbox { display: grid; gap: 6px; background: #f7faf7; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.sf-pccbox label { font-weight: 600; } .sf-pccbox label .opt { display: inline !important; margin-left: 6px; }
.sf-pccbox select { height: 44px; max-width: 320px; }
.sf-pcc-set { color: #1d4f8a !important; font-weight: 600; }
.area-club .sf-pccbox { background: #f3f7fb; } .area-admin .sf-pccbox { background: #faf8f4; }

/* Type-to-search dropdowns: course and tee, clubs and every long list */
.picker, .combo { position: relative; }
.picker input[type=text], .combo-input { padding-right: 42px !important; }
.pick-arrow { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer; border-radius: 8px; }
.picker .pick-arrow { top: 23px; }
.pick-arrow::before { content: ""; position: absolute; left: 11px; top: 10px; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); color: #6b7280; }
.pick-arrow:hover { background: #f1f3f1; }
.combo-select { position: absolute !important; opacity: 0 !important; pointer-events: none !important; width: 1px !important; height: 1px !important; left: 0; bottom: 0; }
.combo-input { width: 100%; box-sizing: border-box; }
.combo-list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px 0; list-style: none; background: #fff; border: 1px solid #b5c1b8; border-radius: 10px; max-height: 280px; overflow: auto; box-shadow: 0 12px 30px rgba(19,55,42,.18); color: var(--text); text-align: left; font-weight: 400; }
.combo-list li { padding: 8px 12px; cursor: pointer; font-size: 15px; }
.combo-list li.on { font-weight: 700; }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: #e8f1ec; }
.combo-list li.none { color: var(--muted); cursor: default; background: none; }
.area-club .combo-list li[aria-selected="true"], .area-club .combo-list li:hover { background: #e3edf7; }
.area-admin .combo-list li[aria-selected="true"], .area-admin .combo-list li:hover { background: #fbf1e3; }
/* the course list opens over the page instead of pushing it down, and isn't cut off by the card */
.picker ul { position: absolute !important; z-index: 40; left: 0; right: 0; top: 50px; max-height: 300px !important; }
.sf-card { overflow: visible !important; }
.sf-card .sf-side { border-radius: 0 22px 22px 0; }
@media (max-width: 860px) { .sf-card .sf-side { border-radius: 22px 22px 0 0; } }

/* ===== Handicap card ===== */
.hc-wrap { display: grid; grid-template-columns: minmax(0, 560px) 1fr; gap: 28px; align-items: start; }
.hc-public { grid-template-columns: 1fr; justify-items: center; margin-top: 18px; }
.hc-card { position: relative; aspect-ratio: 1200 / 756; width: 100%; max-width: 560px; border-radius: 22px; color: #fff; padding: 5.2% 5.3%; box-sizing: border-box; display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(135deg, #0f3d18, #16571f); box-shadow: 0 30px 60px rgba(15,61,24,.35), 0 2px 0 rgba(255,255,255,.08) inset; container-type: inline-size; }
.hc-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 95% 0%, rgba(230,217,179,.28), transparent 55%), radial-gradient(circle at 0% 115%, rgba(40,160,45,.45), transparent 52%); pointer-events: none; }
.hc-card > * { position: relative; }
.hc-top { display: flex; align-items: center; gap: 2.2cqw; }
.hc-logo { width: 8.5cqw; height: 8.5cqw; object-fit: contain; background: rgba(255,255,255,.92); border-radius: 50%; padding: .8cqw; box-sizing: border-box; }
.hc-brand { font: 700 5.4cqw/1 var(--num); }
.hc-kind { margin-left: auto; font: 600 2.1cqw var(--body); letter-spacing: .14em; text-transform: uppercase; color: #e6d9b3; }
.hc-mid { flex: 1; display: grid; grid-template-columns: 1fr auto; gap: 3cqw; align-items: center; }
.hc-who { display: flex; flex-direction: column; gap: .8cqw; min-width: 0; }
.hc-name { font: 700 6cqw/1.02 var(--num); overflow: hidden; text-overflow: ellipsis; }
.hc-who > span { font-size: 2.6cqw; color: #cfe0d6; }
.hc-line { display: flex; flex-direction: column; margin-top: 1.2cqw; color: #fff !important; font-size: 2.6cqw !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-line em { font-style: normal; font-weight: 700; font-size: 1.7cqw; letter-spacing: .1em; text-transform: uppercase; color: #e6d9b3; }
.hc-idx { background: #e6d9b3; color: #0f3d18; border-radius: 2.6cqw; padding: 2.2cqw 3.4cqw 2cqw; text-align: center; min-width: 26cqw; box-shadow: 0 1.5cqw 3cqw rgba(0,0,0,.25); }
.hc-idx span { font: 700 2cqw var(--body); letter-spacing: .08em; text-transform: uppercase; }
.hc-idx b { display: block; font: 700 12.5cqw/1 var(--num); margin: .6cqw 0; }
.hc-idx small { font: 600 2.2cqw var(--body); color: #5c5238; }
.hc-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 2cqw; border-top: 1px solid rgba(255,255,255,.14); padding-top: 2cqw; font-size: 2cqw; color: #cfe0d6; }
.hc-qr { width: 14cqw; height: 14cqw; background: #fff; border-radius: 1cqw; flex: none; }
.hc-qr svg { width: 100%; height: 100%; display: block; }
.hc-qr svg path, .hc-qr svg rect[fill="black"] { fill: #0f3d18; }
.hc-share { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; box-shadow: 0 10px 30px rgba(15,61,24,.06); display: grid; gap: 12px; }
.hc-share h2 { margin: 0; font: 700 24px var(--num); color: var(--ink); }
.hc-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.hc-wa { background: #1faa53 !important; border-color: #1faa53 !important; color: #fff !important; }
.hc-new { margin: 0; } .hc-new .linkbtn { color: var(--muted); font-size: 13.5px; }
.hc-public-note { max-width: 560px; text-align: center; color: var(--muted); font-size: 14.5px; }
.card-gone { max-width: 520px; margin: 40px auto; }
@media (max-width: 900px) { .hc-wrap { grid-template-columns: 1fr; } .hc-card { margin: 0 auto; } }
.hc-share .share-link { display: flex; gap: 8px; align-items: center; margin: 0; padding: 0; background: none; border: 0; } .hc-share .share-link input { flex: 1; min-width: 0; height: 42px; margin: 0; } .hc-share .share-link .btn { white-space: nowrap; height: 42px; }

/* Handicap card page: everything in one card */
.hc-box { display: grid; grid-template-columns: 1.25fr 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 60px rgba(15,61,24,.10); overflow: hidden; }
.hc-stage { background: linear-gradient(160deg, #eef5ef, #dfeee2); padding: 36px 32px; display: flex; align-items: center; justify-content: center; }
.hc-box .hc-card { max-width: 560px; }
.hc-box .hc-share { border: 0; border-radius: 0; box-shadow: none; padding: 30px 28px; align-content: start; }
.hc-tip { background: #f3f7f3; border-radius: 12px; padding: 12px 14px; font-size: 14px; color: #3f4d44; }
.hc-tip b { display: block; color: var(--ink); margin-bottom: 2px; }
.hc-box-public { grid-template-columns: 1fr; max-width: 680px; margin: 18px auto 0; }
.hc-box-public .hc-stage { padding: 32px 28px 20px; }
.hc-box-public .hc-public-note { margin: 0; padding: 16px 24px 22px; max-width: none; }
@media (max-width: 900px) { .hc-box { grid-template-columns: 1fr; } .hc-stage { padding: 22px 16px; } .hc-box .hc-share { padding: 20px 18px; } }

/* Golfer hero banner (same shape as the other banners, in golfer green) */
.gf-hero { margin-bottom: 22px; }
.gf-lead { margin: 10px 0 0; color: #cfe0d6; font-size: 16.5px; max-width: 60ch; }
.area-public .gf-hero, .area-golfer .gf-hero { background-color: var(--ink); }

/* About HCAP: not an official handicap */
.lp-about { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; margin: 70px 0 0; background: #fbf8ef; border: 1px solid #eadfbf; border-radius: 20px; padding: 26px 28px; }
.lp-about-ic { width: 46px; height: 46px; border-radius: 50%; background: var(--sand); color: var(--ink); display: flex; align-items: center; justify-content: center; font: 700 26px Georgia, serif; font-style: italic; }
.lp-about h2 { font: 700 clamp(26px, 3vw, 34px)/1.1 var(--num); color: var(--ink); margin: 0 0 10px; }
.lp-about p { margin: 0 0 10px; font-size: 17px; max-width: 75ch; }
.lp-about p:last-child { margin: 0; }
.foot-note { max-width: 46ch; }
.foot-note a { color: inherit; font-weight: 600; }
.auth-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
@media (max-width: 640px) { .lp-about { grid-template-columns: 1fr; padding: 20px; } }

/* Privacy on the register page */
.pv-box { background: #f5f8f5; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 8px; }
.pv-box ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; color: #3f4d44; }
.pv-agree { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 600; font-size: 14.5px; margin-top: 4px; }
.pv-agree input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--ink-2); }
/* Privacy page */
.pv-page { max-width: 820px; }
.pv-page section { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin-bottom: 14px; }
.pv-page h2 { font: 700 24px var(--num); color: var(--ink); margin: 0 0 8px; }
.pv-page p, .pv-page li { font-size: 16px; line-height: 1.6; color: #374151; }
.pv-page ul { padding-left: 20px; margin: 6px 0; }
.pv-page table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pv-page th, .pv-page td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pv-page th { background: #f5f8f5; font-size: 13px; color: var(--muted); }
.pv-summary { background: #fbf8ef !important; border-color: #eadfbf !important; }

/* Header: solid, no blur and no resizing (the blur and the resize made pages flicker on some computers) */
.top, .top.scrolled { background: #fff !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; transition: box-shadow .2s; }
.top.scrolled .top-in, .top-in { transition: none !important; }
.top.scrolled .top-in { min-height: var(--head-h) !important; }
.brand img, .brand span { transition: none !important; }
.top.scrolled .brand img { height: 52px !important; }
.top.scrolled .brand span { font-size: 38px !important; }
.top.scrolled .brand-badged span { font-size: 34px !important; }
@media (max-width: 1040px) { .top.scrolled .brand img { height: 44px !important; } .top.scrolled .brand span { font-size: 32px !important; } .top.scrolled .top-in { min-height: 64px !important; } }
.lp-hero .btn-light { backdrop-filter: none !important; }

/* Install HCAP as an app */
.install-card { position: fixed; z-index: 90; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(560px, calc(100% - 24px)); display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; box-shadow: 0 20px 50px rgba(15,61,24,.25); animation: install-in .3s ease-out; box-sizing: border-box; }
@keyframes install-in { from { transform: translate(-50%, 30px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.install-card img { width: 48px; height: 48px; border-radius: 12px; }
.install-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.install-t > b { font-size: 16px; color: var(--ink); } .install-t > span { font-size: 14px; color: var(--muted); }
.install-b { display: flex; gap: 10px; align-items: center; }
.install-b .btn { background: var(--ink) !important; border-color: var(--ink) !important; color: #fff !important; }
.ios-share { display: inline-block; width: 13px; height: 16px; vertical-align: -2px; border: 2px solid #1a73e8; border-top: 0; border-radius: 0 0 3px 3px; position: relative; margin: 0 2px; }
.ios-share::before { content: ""; position: absolute; left: 3.5px; top: -7px; width: 2px; height: 11px; background: #1a73e8; }
.ios-share::after { content: ""; position: absolute; left: 1.5px; top: -8px; width: 5px; height: 5px; border: solid #1a73e8; border-width: 2px 0 0 2px; transform: rotate(45deg); }
@media (max-width: 520px) { .install-card { grid-template-columns: auto 1fr; } .install-b { grid-column: 1 / -1; justify-content: flex-end; } }
.dup-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; } .dup-btns form { margin: 0; }

/* Live form checks */
.field-err { display: block; color: #b42318; font-size: 13.5px; font-weight: 600; margin-top: 5px; }
.field-err[hidden] { display: none; }
.field-err::before { content: "! "; display: inline-flex; width: 16px; height: 16px; border-radius: 50%; background: #b42318; color: #fff; font-size: 11px; align-items: center; justify-content: center; margin-right: 5px; vertical-align: 1px; }
input.is-bad, select.is-bad, textarea.is-bad { border-color: #d92d20 !important; box-shadow: 0 0 0 3px rgba(217,45,32,.12) !important; background: #fffafa; }
input.is-ok:not([type=checkbox]), select.is-ok { border-color: #2f8a3a !important; }
input[type=checkbox].is-bad { outline: 2px solid #d92d20; outline-offset: 2px; }
.pw-meter { display: flex; align-items: center; gap: 10px; margin-top: 7px; font-size: 13px; font-weight: 600; }
.pw-meter[hidden] { display: none; }
.pw-bars { display: flex; gap: 4px; }
.pw-bars i { width: 38px; height: 6px; border-radius: 3px; background: #e5e7eb; }
.pw-meter[data-level="0"] span, .pw-meter[data-level="1"] span { color: #b42318; }
.pw-meter[data-level="2"] span { color: #b45309; } .pw-meter[data-level="3"] span { color: #2f8a3a; }
.pw-meter[data-level="0"] .pw-bars i:nth-child(1), .pw-meter[data-level="1"] .pw-bars i:nth-child(1) { background: #d92d20; }
.pw-meter[data-level="2"] .pw-bars i:nth-child(-n+2) { background: #f59e0b; }
.pw-meter[data-level="3"] .pw-bars i { background: #2f8a3a; }
.form-sum { margin-bottom: 14px; }
.dup-live { margin: 0; }
/* Forms with checks: box names on one line (with "optional" beside them), rows lined up at the top, so messages below never shift the boxes */
.auth-form .row2, .auth-form .row3 { align-items: start !important; }
.auth-form label:not(.check):not(.pv-agree):not(.hp) { display: block; }
.auth-form label:not(.check):not(.pv-agree) > input:not([type=checkbox]):not([type=radio]),
.auth-form label:not(.check):not(.pv-agree) > select, .auth-form label:not(.check):not(.pv-agree) > textarea,
.auth-form label > .pw-wrap, .auth-form label > .combo, .auth-form label > .homeclub { display: block; width: 100%; margin-top: 6px; box-sizing: border-box; }
.auth-form label .opt { display: inline !important; margin: 0 0 0 6px !important; font-weight: 400; }
.auth-form label > .hint { display: block; margin-top: 6px; }
@media (max-width: 480px) { .auth-form .row2, .auth-form .row3 { grid-template-columns: 1fr !important; } }

/* SweetAlert2 in HCAP's look */
.hc-swal { border-radius: 20px !important; font-family: var(--body) !important; padding: 1.4em 1.4em 1.2em !important; }
.hc-swal .swal2-title { font: 700 26px/1.2 var(--num) !important; color: var(--ink) !important; }
.hc-swal .swal2-html-container { color: #4b5563 !important; font-size: 16px !important; }
.hc-swal-actions { gap: 10px; margin-top: 1.2em !important; }
.hc-swal-actions .btn { min-width: 110px; justify-content: center; padding: 11px 20px; font-size: 16px; }
.btn-danger { background: #c0392b !important; border-color: #c0392b !important; color: #fff !important; }
.btn-danger:hover { background: #a93226 !important; border-color: #a93226 !important; }
.hc-toast { border-radius: 14px !important; font-family: var(--body) !important; box-shadow: 0 14px 34px rgba(15,61,24,.18) !important; }
.hc-toast .swal2-html-container { font-size: 15px !important; color: #1d2b22 !important; margin: .2em .6em !important; }
.hc-toast .swal2-timer-progress-bar { background: var(--ink-2) !important; }
.area-club .hc-swal .swal2-title { color: var(--club, #123a5e) !important; }
.area-club .hc-swal-actions .btn:not(.btn-light):not(.btn-danger) { background: #1f6fb0; border-color: #1f6fb0; color: #fff; }
.area-club .hc-toast .swal2-timer-progress-bar { background: #1f6fb0 !important; }
.area-admin .hc-swal .swal2-title { color: #1f2933 !important; }
.area-admin .hc-swal-actions .btn:not(.btn-light):not(.btn-danger) { background: #1f2933; border-color: #1f2933; color: #fff; }
.area-admin .hc-toast .swal2-timer-progress-bar { background: #b45309 !important; }

/* "HCAP has been upgraded" banner */
.upg { background: linear-gradient(90deg, #fbf5e2, #f4ecd2); border-bottom: 1px solid #e8dcb4; transition: opacity .25s, transform .25s; }
.upg-in { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.upg-ic { font-size: 22px; line-height: 1; }
.upg p { margin: 0; flex: 1; font-size: 15px; color: #3d3521; line-height: 1.45; }
.upg p b { color: var(--ink); }
.upg p a { color: var(--ink-2); font-weight: 700; white-space: nowrap; }
.upg-x { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #e0d2a6; background: #fffaf0; font-size: 20px; line-height: 1; color: #6b5b2e; cursor: pointer; }
.upg-x:hover { background: #fff; color: var(--ink); }
.upg-club { background: linear-gradient(90deg, #eaf2fa, #dde9f5); border-bottom-color: #c4d8ec; }
.upg-club p { color: #243b52; } .upg-club p b { color: #123a5e; } .upg-club p a { color: #1f6fb0; }
.upg-club .upg-x { background: #f5f9fd; border-color: #c4d8ec; color: #123a5e; }
.upg-bye { opacity: 0; transform: translateY(-6px); }
@media (max-width: 640px) { .upg p { font-size: 14px; } .upg-in { align-items: flex-start; } }
.upg p { max-width: none !important; }

/* Contact page */
.ct-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.ct-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px; box-shadow: 0 18px 50px rgba(15,61,24,.08); }
.ct-card h2, .ct-side h2 { margin: 0 0 4px; font: 700 26px var(--num); color: var(--ink); }
.ct-card textarea { min-height: 150px; width: 100%; box-sizing: border-box; }
.ct-side { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; }
.ct-side ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 2px; }
.ct-side li a { display: block; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 15px; }
.ct-side li a::after { content: " →"; color: var(--ink-2); }
.ct-side li a:hover { background: #f3f7f3; color: var(--ink); }
.ct-mail { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; }
.ct-mail b { display: block; margin-bottom: 2px; }
.ct-done { text-align: center; padding: 38px 30px; }
.ct-tick { width: 64px; height: 64px; border-radius: 50%; background: var(--ink-2); color: #fff; font-size: 34px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.ct-done p { color: #4b5563; font-size: 16.5px; max-width: 52ch; margin: 8px auto; }
.ct-ref { font-size: 15px !important; } .ct-ref b { font-family: var(--num); font-size: 20px; color: var(--ink); }
.ct-done .actions { justify-content: center; margin-top: 18px; }
.area-club .ct-card h2, .area-club .ct-side h2 { color: var(--club, #123a5e); }
@media (max-width: 900px) { .ct-grid { grid-template-columns: 1fr; } }
/* Back office inbox */
.ms-stats { grid-template-columns: repeat(5, 1fr); }
.ms-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ms-list li { border-bottom: 1px solid var(--line); }
.ms-list li:last-child { border-bottom: 0; }
.ms-list a { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 13px 16px; text-decoration: none; color: var(--text) !important; background: #fff; }
.ms-list a:hover { background: #fbf9f5; }
.ms-unread a { background: #fffaf2; box-shadow: inset 4px 0 0 #b45309; }
.ms-unread b { font-weight: 800; }
.ms-li-main { min-width: 0; } .ms-li-main b { display: block; font-size: 15px; } .ms-li-main b small { font-weight: 400; color: var(--muted); font-size: 13px; }
.ms-li-main > span { display: block; color: #6b7280; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-li-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; } .ms-li-end small { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.ms-new { background: #b45309 !important; color: #fff !important; } .ms-replied { background: #e6effa !important; color: #1d4f8a !important; } .ms-done { background: #eef1ee !important; color: #6b7280 !important; }
.ms-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 18px; align-items: start; margin-top: 18px; }
.ms-thread { display: grid; gap: 12px; }
.ms-msg { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.ms-out { background: #fbf8f2; border-color: #eadfc7; margin-left: 40px; }
.ms-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; } .ms-head b { display: block; } .ms-head small { color: var(--muted); font-size: 12.5px; }
.ms-body { font-size: 15.5px; line-height: 1.6; color: #1f2933; white-space: normal; overflow-wrap: anywhere; }
.ms-reply { display: grid; gap: 10px; } .ms-reply textarea { min-height: 130px; width: 100%; box-sizing: border-box; }
.ms-reply .actions { align-items: center; gap: 14px; }
.ms-side h2 { margin: 0 0 10px !important; } .ms-dl { grid-template-columns: 1fr !important; margin-bottom: 14px; }
.bo-quick form { display: inline; margin: 0; }
@media (max-width: 900px) { .ms-grid { grid-template-columns: 1fr; } .ms-out { margin-left: 16px; } .ms-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .ms-list a { grid-template-columns: auto 1fr; } .ms-li-end { grid-column: 2; flex-direction: row; align-items: center; } }
.ct-card.auth-form { max-width: none; width: auto; margin: 0; }
/* Keyboard focus ring: in each part's own colour (red now only means "problem") */
:focus-visible { outline: 3px solid #2f8a3a; outline-offset: 2px; }
.area-club :focus-visible { outline-color: #1f6fb0; }
.area-admin :focus-visible { outline-color: #b45309; }
.lp-about-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px !important; }
@media (min-width: 1041px) { .area-golfer #nav:has(a[href$="logout.php"]) > a[href$="contact.php"] { display: none; } }
.ms-to { margin: 12px 2px 0; font-size: 14px; color: var(--muted); } .em-grid > .ua-form + .ua-form, .em-grid > form#contact { margin-top: 0; }
/* Back office and club forms: grey hints beside the box's name, like the golfer forms */
.ua-form label:not(.check), .cd-form label:not(.check), .em-form label:not(.check), .ms-reply label { display: block; }
.ua-form label:not(.check) > input:not([type=checkbox]), .ua-form label:not(.check) > select, .ua-form label:not(.check) > textarea, .ua-form label > .pw-wrap, .ua-form label > .combo,
.cd-form label:not(.check) > input, .cd-form label:not(.check) > select, .cd-form label > textarea, .cd-form label > .combo,
.em-form label:not(.check) > input, .em-form label > textarea, .ms-reply label > textarea { display: block; width: 100%; margin-top: 6px; box-sizing: border-box; }
.ua-form label .opt, .cd-form label .opt, .em-form label .opt, .ms-reply label .opt { display: inline !important; margin: 0 0 0 6px !important; font-weight: 400; }
.ua-form .row2, .cd-form .row2, .em-row3 { align-items: start; }
