/* Hallmark · v2.0.0 · redesign: full · scope: site and app · brand: kept (Golf Life scorecard: pine, fairway green, flag yellow; Barlow and Barlow Semi Condensed) · theme: brand · genre: modern-minimal · deal: none (brand kept) · imagery: product captures from the demo shop · sweep: by eye, sloplint not run
   critique: the scorecard idea carries the brand; the redesign shows the real screens instead of describing them, flattens cards inside cards, and moves the guide off the work.
   waive 48 chart.js: chart colours are set in SVG attributes, which cannot read CSS custom properties; they match the tokens by value. */
/* Barlow and Barlow Semi Condensed (SIL Open Font Licence, /fonts/OFL.txt), served from this site: no third-party font requests. */
@font-face { font-family: 'Barlow'; src: url('/fonts/Barlow-Regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/fonts/Barlow-Italic.woff') format('woff'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/fonts/Barlow-Medium.woff') format('woff'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/fonts/Barlow-SemiBold.woff') format('woff'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/fonts/Barlow-Bold.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; src: url('/fonts/BarlowSemiCondensed-Medium.woff') format('woff'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; src: url('/fonts/BarlowSemiCondensed-SemiBold.woff') format('woff'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; src: url('/fonts/BarlowSemiCondensed-Bold.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }

/* Golf Life Bag Manager.
   Built like a scorecard: a white card on a pale fairway, ruled rows, figures set in a condensed face like the numbers
   on a leaderboard. One green does the work. Flag yellow is kept for the one thing a shop does most (start a trade-in)
   and the one number that matters on a trade (what the customer pays). Each kind of club keeps a colour, but only as a
   thin stripe, like the coloured tag on a headcover. A shop's own colours replace --green (buttons) and --rough (the
   band across the top) on everything its customers see. */
:root {
  --green: #1E5B36; --green-dark: #164629; --tint: #EAF1EC;
  --pine: #13291C; --pine-2: #1C3A28; --pine-3: #2A4E38; --rough: #1E5B36; --fairway: #164629;
  --flag: #F5C400; --flag-dark: #DCAF00; --flag-tint: #FDF4CF;
  --sky: #2B5C9E; --sky-tint: #E8EEF6;
  --red: #B23A2A; --red-tint: #F8E7E3;
  --orange: #B5621B; --orange-tint: #F7ECE1;
  --purple: #5F4B8B; --purple-tint: #EEEBF4;
  --teal: #2C7A74; --teal-tint: #E3F0EE;
  --gold: #9A7A12;
  --ink: #15201A; --text: #2B342E; --muted: #5F6A63; --rule: #DDE3DD; --line: #C2CCC4; --bg: #F1F4F0; --chalk: #F1F4F0;
  --r: 6px; --r-lg: 8px; --tab-h: 64px;
  --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px;
  --frame: var(--pine-a12);
  --shadow: 0 1px 0 rgba(19, 41, 28, .06);
  --num: 'Barlow Semi Condensed', 'Barlow', system-ui, sans-serif;
  /* surfaces and inks the rest of the file reads, so no colour is written past this block */
  --flag-ink: #7A5D00; --on-pine: #C9D6CD; --on-pine-muted: #A6B8AC; --on-pine-strong: #D8E2DB; --orange-ink: #7E4310; --paper: #FFFFFF; --paper-hover: #F7F9F6; --skel-1: #E9EDE8; --skel-2: #F4F6F3; --sky-ink: #234D85;
  /* overlays and shadows */
  --black-a28: rgba(0, 0, 0, .28); --c12-26-18-a50: rgba(12, 26, 18, .5); --pine-a12: rgba(19, 41, 28, .12); --pine-a14: rgba(19, 41, 28, .14); --pine-a16: rgba(19, 41, 28, .16); --pine-a22: rgba(19, 41, 28, .22); --pine-a30: rgba(19, 41, 28, .3); --white-a06: rgba(255, 255, 255, .06); --white-a07: rgba(255, 255, 255, .07); --white-a09: rgba(255, 255, 255, .09); --white-a10: rgba(255, 255, 255, .1); --white-a12: rgba(255, 255, 255, .12); --white-a14: rgba(255, 255, 255, .14); --white-a25: rgba(255, 255, 255, .25); --white-a35: rgba(255, 255, 255, .35); --white-a40: rgba(255, 255, 255, .4); --white-a78: rgba(255, 255, 255, .78);
  /* one-off tints and inks used by single components */
  --hue-4a3a70: #4A3A70; --hue-4a3c00: #4A3C00; --hue-66716a: #66716A; --hue-6a5300: #6A5300; --hue-7a1e12: #7A1E12; --hue-7a1f12: #7A1F12; --hue-7a857e: #7A857E; --hue-7f9585: #7F9585; --hue-8a2618: #8A2618; --hue-8a958e: #8A958E; --hue-8e9b92: #8E9B92; --hue-8ea394: #8EA394; --hue-9aa59e: #9AA59E; --hue-a7b0aa: #A7B0AA; --hue-cbd8ea: #CBD8EA; --hue-cfe0d3: #CFE0D3; --hue-d3ded6: #D3DED6; --hue-d3e6d8: #D3E6D8; --hue-e2b7af: #E2B7AF; --hue-e3ebe5: #E3EBE5; --hue-e4e9e4: #E4E9E4; --hue-ecefec: #ECEFEC; --hue-eedb8e: #EEDB8E; --hue-eef3ef: #EEF3EF; --hue-f5f9f6: #F5F9F6; --hue-fafbf9: #FAFBF9; --hue-fafbfa: #FAFBFA; --hue-fff6c7: #FFF6C7;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; overflow-x: clip; font-synthesis: none; font-family: Barlow, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; font-size: 16.5px; line-height: 1.5; color: var(--text); background: var(--paper); }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--num); font-weight: 700; line-height: 1.1; letter-spacing: -0.005em; text-wrap: balance; }
h1 { font-size: clamp(30px, 4vw, 40px); }
h2 { font-size: clamp(21px, 2.4vw, 25px); font-weight: 600; }
h3 { font-size: 19px; font-weight: 600; }
h4 { font-size: 16.5px; font-family: Barlow, sans-serif; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1px; }
img { max-width: 100%; }
strong, b { color: var(--ink); font-weight: 600; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--flag); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.spread { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.muted { color: var(--muted); font-size: 15px; }
.small { font-size: 13.5px; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--text); max-width: 60ch; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--green); }
.num { font-family: var(--num); font-variant-numeric: tabular-nums lining-nums; font-weight: 700; color: var(--ink); white-space: nowrap; }
.hl { box-shadow: inset 0 -0.32em 0 var(--flag); padding: 0 .06em; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); padding: 10px 14px; border-radius: 6px; z-index: 90; }
.skip:focus { left: 8px; }
.icon { flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- buttons: green to act, outlined to choose, yellow only for starting a trade-in ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border: 1px solid var(--green); border-radius: var(--r);
  background: var(--green); color: var(--paper); font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; text-align: center; transition: background-color .12s, border-color .12s; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn.flag { background: var(--flag); border-color: var(--flag); color: var(--pine); }
.btn.flag:hover { background: var(--flag-dark); border-color: var(--flag-dark); color: var(--pine); }
.btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--bg); border-color: var(--ink); color: var(--ink); }
.btn.soft { background: var(--paper); border-color: var(--line); color: var(--green); }
.btn.soft:hover { background: var(--tint); border-color: var(--green); color: var(--green); }
.btn.dark { background: var(--pine); border-color: var(--pine); }
.btn.dark:hover { background: var(--pine-2); border-color: var(--pine-2); }
.btn.onpine { background: transparent; border-color: var(--white-a40); color: var(--paper); }
.btn.onpine:hover { background: var(--white-a10); border-color: var(--paper); color: var(--paper); }
.btn.quiet { background: transparent; border-color: transparent; color: var(--green); padding-left: 10px; padding-right: 10px; }
.btn.quiet:hover { background: var(--tint); }
.btn.danger { background: var(--paper); color: var(--red); border-color: var(--hue-e2b7af); }
.btn.danger:hover { background: var(--red-tint); border-color: var(--red); }
.btn.quiet.danger { border-color: transparent; background: transparent; }
.btn.small { min-height: 38px; padding: 6px 12px; font-size: 15px; }
.btn.block { display: flex; width: 100%; }
.btn.big-btn { min-height: 52px; font-size: 17.5px; padding: 12px 22px; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .5; cursor: default; pointer-events: none; }
.btn[aria-busy="true"]::after { content: ''; width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* filters, status tags, and the pick-one control used for condition and results */
.pill { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; }
.pill:hover { border-color: var(--ink); }
.pill b { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.pill[aria-pressed="true"], .pill[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pill[aria-pressed="true"] b { color: var(--flag); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 4px; background: var(--tint); color: var(--green-dark); font-size: 13.5px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.chip.wait { background: var(--flag-tint); color: var(--hue-6a5300); }
.chip.off { background: var(--hue-ecefec); color: var(--muted); }
.chip.bad { background: var(--red-tint); color: var(--hue-8a2618); }
.chip.info { background: var(--sky-tint); color: var(--sky-ink); }
.chip.hot { background: var(--orange-tint); color: var(--orange-ink); }
.chip.new { background: var(--purple-tint); color: var(--hue-4a3a70); }
.chip.excellent { background: var(--tint); color: var(--green-dark); }
.chip.good { background: var(--sky-tint); color: var(--sky-ink); }
.chip.fair { background: var(--orange-tint); color: var(--orange-ink); }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.status.wait::before { background: var(--flag-dark); }
.status.off::before { background: var(--hue-a7b0aa); }
.status.bad::before { background: var(--red); }
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); max-width: 100%; overflow: hidden; }
.seg button { min-height: 38px; padding: 6px 12px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--text); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg button:first-child { border-left: 0; }
.seg button:hover { background: var(--bg); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); font-weight: 600; }
.seg button[aria-pressed="true"].excellent, .seg button[aria-pressed="true"].accepted { background: var(--green); color: var(--paper); }
.seg button[aria-pressed="true"].good { background: var(--sky); color: var(--paper); }
.seg button[aria-pressed="true"].fair { background: var(--orange); color: var(--paper); }
.seg button[aria-pressed="true"].new { background: var(--purple); color: var(--paper); }
.seg button[aria-pressed="true"].declined { background: var(--hue-66716a); color: var(--paper); }
.seg button[aria-pressed="true"].quoted { background: var(--flag); color: var(--pine); }
.seg.wide { display: grid; }
.seg.wrap { display: flex; flex-wrap: wrap; }
.seg.wrap button { flex: 1 1 auto; }

/* ---------- forms ---------- */
label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; color: var(--ink); }
label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 16.5px; color: var(--text); cursor: pointer; }
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--ink); font: inherit; font-weight: 400; }
input:hover, select:hover, textarea:hover { border-color: var(--hue-8e9b92); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: -1px; border-color: var(--green); }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; min-height: 0; padding: 0; flex: none; accent-color: var(--green); margin: 0; }
input[type="number"] { font-variant-numeric: tabular-nums; }
input[type="file"] { padding: 9px; }
input[disabled], select[disabled] { background: var(--bg); color: var(--muted); border-color: var(--rule); }
::placeholder { color: var(--hue-7a857e); opacity: 1; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; align-items: end; }
.form-grid.top { align-items: start; }
.field-note { font-weight: 400; color: var(--muted); font-size: 14px; }
.money { position: relative; display: block; }
.money::before { content: '£'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-family: var(--num); font-weight: 600; color: var(--muted); pointer-events: none; }
.money input { padding-left: 26px; font-family: var(--num); font-weight: 600; font-size: 18px; }
.money input::placeholder { font-family: Barlow, sans-serif; font-weight: 400; font-size: 15px; }
.searchbox { position: relative; }
.searchbox > .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.searchbox input { padding-left: 42px; }
.msg { padding: 12px 14px; border-left: 3px solid var(--green); background: var(--tint); color: var(--ink); }
.msg.warn { background: var(--flag-tint); border-left-color: var(--flag-dark); }
.msg.info { background: var(--sky-tint); border-left-color: var(--sky); }
.msg.bad, [role="alert"] { background: var(--red-tint); color: var(--hue-7a1e12); padding: 12px 14px; border-left: 3px solid var(--red); }
p[role="status"]:empty { display: none; }

/* ---------- panels and lists: a white card with ruled rows, as on a scorecard ---------- */
.card, .panel { border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--paper); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.card.row { flex-direction: row; }
.card .card { border-radius: var(--r); padding: 14px; }
.panel.pine { background: var(--pine); border-color: var(--pine); color: var(--hue-d3ded6); }
.panel.pine h1, .panel.pine h2, .panel.pine h3, .panel.pine strong, .panel.pine b, .panel.pine .num { color: var(--paper); }
.panel.pine .muted { color: var(--on-pine-muted); }
.panel.sun { background: var(--flag-tint); border-color: var(--hue-eedb8e); }
.panel.sky { background: var(--sky-tint); border-color: var(--hue-cbd8ea); }
.panel.mint { background: var(--tint); border-color: var(--hue-cfe0d3); }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 14px; }
.panel-head h2 { display: flex; align-items: center; gap: 10px; }
.section { display: flex; flex-direction: column; gap: 12px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
select.set-pick { margin-top: 8px; }
/* small icons sit plainly beside their text; colour only says what kind of thing it is */
.disc { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--green); }
.disc.sun { color: var(--gold); } .disc.sky { color: var(--sky); } .disc.hot { color: var(--orange); }
.disc.purple { color: var(--purple); } .disc.teal { color: var(--teal); } .disc.off { color: var(--hue-8a958e); } .disc.solid { color: var(--green); }
.disc svg .cut { stroke: var(--paper); }
/* the kind of club: its shape in ink, and its colour as a stripe down the left edge */
.tile { --tile: var(--green); width: 42px; height: 42px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); box-shadow: inset 4px 0 0 var(--tile); padding-left: 3px; }
.tile.driver { --tile: var(--red); } .tile.fairway { --tile: var(--orange); } .tile.hybrid { --tile: var(--gold); }
.tile.irons { --tile: var(--sky); } .tile.wedge { --tile: var(--teal); } .tile.putter { --tile: var(--purple); }
.tile.small { width: 34px; height: 34px; }
.tile svg .cut { stroke: var(--paper); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; font-family: var(--num); font-weight: 600; font-size: 15px; background: var(--bg); color: var(--ink); border: 1px solid var(--rule); }
.avatar.big { width: 60px; height: 60px; font-size: 22px; }
.avatar.small { width: 32px; height: 32px; font-size: 13px; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--paper); overflow: hidden; }
.list > li, .list > a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--rule); background: var(--paper); text-decoration: none; color: inherit; min-height: 64px; }
.list > li:first-child, .list > a:first-child { border-top: 0; }
.list > a:hover { background: var(--paper-hover); }
.list > a:hover .who strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.list .who { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.list .who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .who span { color: var(--muted); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; }
.list .who .line { color: var(--text); font-size: 16.5px; white-space: normal; }
.list .amount { font-size: 20px; }
.chev { color: var(--hue-9aa59e); flex: none; }
a.who:hover .line strong { text-decoration: underline; }
@media (max-width: 560px) {
  .list > li, .list > a { padding: 12px; }
  /* a person on a phone: name and value on the first line, their status under the name */
  .list.people > a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 4px 12px; }
  .list.people > a .avatar { grid-row: 1 / 3; }
  .list.people > a .who { grid-column: 2; grid-row: 1; }
  .list.people > a .amount { grid-column: 3; grid-row: 1; }
  .list.people > a .chip { grid-column: 2 / 4; grid-row: 2; justify-self: start; }
  .list.people > a .chev { grid-column: 4; grid-row: 1 / 3; }
  .seg button { padding-left: 9px; padding-right: 9px; }
}
.empty { padding: 28px 18px; text-align: center; border: 1px solid var(--rule); border-radius: var(--r-lg); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); background: var(--paper); }
.empty strong { font-size: 18px; font-family: var(--num); font-weight: 600; }
.empty .disc { width: 40px; height: 40px; }

/* the figures: one ruled strip, like the totals row of a scorecard */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--paper); overflow: hidden; }
.stat { padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); min-width: 0; border-left: 1px solid var(--rule); }
.stat:first-child { border-left: 0; }
a.stat:hover { background: var(--paper-hover); }
.stat .label { font-size: 15px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.stat .label .icon { display: none; }
.stat .value { font-family: var(--num); font-size: 36px; line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.stat .note { font-size: 14px; color: var(--muted); }
.stat.sun { box-shadow: inset 0 3px 0 var(--flag); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--rule); } .stat { padding: 12px 14px; } .stat .value { font-size: 28px; } }

.skel { height: 64px; border-radius: var(--r-lg); background: linear-gradient(90deg, var(--skel-1) 25%, var(--skel-2) 50%, var(--skel-1) 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.rise { animation: rise .18s ease-out; }
@keyframes rise { from { opacity: 0; } }
details.more { border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--paper); padding: 0 16px; }
details.more summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 12px 0; min-height: 50px; display: flex; align-items: center; gap: 10px; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-left: auto; margin-right: 4px; transition: transform .15s; }
details.more[open] summary::after { transform: rotate(-135deg); }
details.more summary .disc { display: none; }
details.more > *:not(summary) { margin-bottom: 16px; }
details.guide { border-top: 1px solid var(--rule); }
details.guide summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 12px 0; }

/* tables: money on the right, totals picked out */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
thead th { font-size: 14px; font-weight: 600; color: var(--muted); padding-top: 6px; padding-bottom: 8px; white-space: nowrap; border-bottom-color: var(--line); }
tbody th { font-weight: 600; color: var(--ink); }
td:first-child, th:first-child { padding-left: 2px; }
td:last-child, th:last-child { padding-right: 2px; }
table.sum td:last-child, table.sum th:last-child, td.r, th.r { text-align: right; }
table.sum td:last-child, table.sum th:last-child { font-family: var(--num); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.sum tr:last-child td, table.sum tr:last-child th { border-bottom: 0; }
tr.total th, tr.total td { border-top: 2px solid var(--ink); border-bottom: 0; font-size: 18px; }

/* search boxes that suggest as you type */
.picker { position: relative; }
.picker ul { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 12px 32px var(--pine-a16); max-height: 340px; overflow-y: auto; font-weight: 400; }
.picker li { padding: 8px 10px; border-radius: 4px; display: flex; align-items: center; gap: 12px; cursor: pointer; min-height: 50px; }
.picker li .who { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.picker li[aria-selected="true"], .picker li[role="option"]:hover { background: var(--tint); }
.picker li.none { cursor: default; display: block; padding: 12px; }

/* ---------- public pages: top bar and footer ---------- */
.site-header { background: var(--pine); color: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); font-family: var(--num); font-weight: 700; font-size: 19px; line-height: 1.05; }
.brand .mark { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; position: relative; flex: none; background: var(--paper); }
.brand .mark img { position: absolute; width: 92px; height: 92px; max-width: none; left: -25px; top: -25px; }
.brand .words { display: flex; flex-direction: column; }
.brand .words small { font-family: Barlow, sans-serif; font-size: 13px; font-weight: 500; color: var(--muted); }
.site-header .brand { color: var(--paper); }
.site-header .brand .words small { color: var(--on-pine-muted); }
.brand .shop-logo { height: 40px; width: auto; max-width: 150px; object-fit: contain; }
footer.site-footer { background: var(--pine); padding: 28px 0 36px; color: var(--on-pine-muted); font-size: 14.5px; }
footer.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 30px; }
footer.site-footer a { color: var(--paper); }
footer.site-footer strong { color: var(--paper); }
main { display: block; }
.block { padding: 56px 0; }
.narrow { max-width: 560px; margin: 0 auto; }
body.plain { background: var(--bg); }

/* ---------- the shop app: a dark green menu on wide screens, a bar along the bottom on phones ---------- */
body.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; background: var(--bg); --rail-w: 236px; }
.rail { position: sticky; top: 0; align-self: start; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 18px 12px; background: var(--pine); color: var(--paper); view-transition-name: rail; overflow-y: auto; }
.rail .brand { padding: 2px 8px 16px; font-size: 18px; color: var(--paper); }
.rail .brand .words small { color: var(--on-pine-muted); }
.rail .go { margin: 0 0 14px; }
.rail nav { display: flex; flex-direction: column; gap: 1px; }
.rail nav a, .rail .rail-foot a, .rail .rail-foot button { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 9px 12px; border-radius: 4px; color: var(--on-pine); text-decoration: none; font: inherit; font-weight: 500; background: none; border: 0; cursor: pointer; width: 100%; text-align: left; position: relative; }
.rail nav a svg { width: 20px; height: 20px; opacity: .8; }
.rail nav a:hover, .rail .rail-foot a:hover, .rail .rail-foot button:hover { background: var(--white-a07); color: var(--paper); }
.rail nav a[aria-current="page"] { color: var(--paper); font-weight: 600; background: var(--white-a09); }
.rail nav a[aria-current="page"]::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 2px 2px 0; background: var(--flag); }
.rail nav a[aria-current="page"] svg { opacity: 1; }
.rail .badge, .tabbar .badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 4px; background: var(--flag); color: var(--pine); font-family: var(--num); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.rail .rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 1px; border-top: 1px solid var(--white-a12); padding-top: 10px; font-size: 15px; }
.rail .rail-foot a, .rail .rail-foot button { min-height: 40px; color: var(--on-pine-muted); }
.rail .made { padding: 10px 12px 0; font-size: 13px; color: var(--hue-8ea394); line-height: 1.35; }
.rail .made b { color: var(--paper); font-weight: 600; }
.topbar, .tabbar { display: none; }
body.app > main { min-width: 0; view-transition-name: main; }
.page { max-width: 1040px; margin: 0 auto; padding: 32px 36px 96px; display: flex; flex-direction: column; gap: 26px; }
.page.slim { max-width: 760px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.page-head .stack { gap: 4px; min-width: 0; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--green); font-weight: 600; text-decoration: none; margin-bottom: -14px; align-self: flex-start; }
.back:hover { text-decoration: underline; }
body.app footer.site-footer { display: none; }
@media (max-width: 900px) {
  body.app { display: block; padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
  .rail { display: none; }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 35; min-height: 56px; padding: 8px 14px; padding-top: calc(8px + env(safe-area-inset-top)); background: var(--pine); color: var(--paper); view-transition-name: topbar; }
  .topbar .brand { color: var(--paper); font-size: 16.5px; gap: 10px; min-width: 0; }
  .topbar .brand .mark { width: 34px; height: 34px; }
  .topbar .brand .mark img { width: 74px; height: 74px; left: -20px; top: -20px; }
  .topbar .brand .words { min-width: 0; }
  .topbar .brand .words span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar .brand .words small { color: var(--on-pine-muted); font-size: 12px; }
  .topbar button { background: transparent; color: var(--paper); border: 1px solid var(--white-a25); border-radius: var(--r); min-width: 44px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font: inherit; font-weight: 600; padding: 0 10px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--paper); border-top: 1px solid var(--line); view-transition-name: rail; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); text-decoration: none; font-size: 12.5px; font-weight: 500; position: relative; }
  .tabbar a[aria-current="page"] { color: var(--ink); font-weight: 700; }
  .tabbar a[aria-current="page"]::before { content: ''; position: absolute; top: -1px; left: 22%; right: 22%; height: 3px; background: var(--green); }
  .tabbar a.main span.ball { width: 46px; height: 36px; border-radius: var(--r); background: var(--flag); color: var(--pine); display: flex; align-items: center; justify-content: center; }
  .tabbar a.main { color: var(--ink); font-weight: 600; }
  .tabbar a.main[aria-current="page"]::before { display: none; }
  .tabbar a.main[aria-current="page"] span.ball { background: var(--green); color: var(--paper); }
  .tabbar .badge { position: absolute; top: 6px; left: 56%; margin: 0; min-width: 18px; height: 18px; font-size: 12px; }
  .page { padding: 20px 16px 40px; gap: 22px; }
  .page-head .btn { flex: 1 1 auto; }
}

/* Today: the date, the shop's name, and the things a shop does most */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 28px; align-items: end; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.hero h1 { color: var(--ink); font-size: clamp(32px, 4.2vw, 44px); }
.hero .hello { font-weight: 500; color: var(--muted); }
.hero .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.hero .acts .btn.onpine { background: var(--paper); border-color: var(--line); color: var(--ink); }
.hero .acts .btn.onpine:hover { border-color: var(--ink); background: var(--paper); }
.hero .acts .btn.big-btn { min-height: 48px; font-size: 16.5px; padding: 10px 16px; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } .hero .acts .btn { flex: 1 1 auto; } .hero .acts .btn.flag { flex-basis: 100%; } }

/* ---------- trade-in: the bag on the left, the running total on the right ---------- */
.trade { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.trade-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.whobar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--rule); }
.whobar .who { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.whobar .who span { color: var(--muted); font-size: 14.5px; }
.addbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.clubs { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--paper); overflow: hidden; }
.clubs:empty { display: none; }
.club { border-top: 1px solid var(--rule); background: var(--paper); }
.club:first-child { border-top: 0; }
.club.on { background: var(--hue-f5f9f6); box-shadow: inset 3px 0 0 var(--green); }
.club-top { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; }
.club-top .who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.club-top .who strong { font-size: 17px; }
.club-top .who span { color: var(--muted); font-size: 14.5px; }
.club-top .worth { text-align: right; line-height: 1.2; }
.club-top .worth small { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.club-top .worth .num { font-size: 21px; }
.pickbox { width: 26px; height: 26px; border-radius: 4px; border: 1.5px solid var(--line); background: var(--paper); display: inline-flex; align-items: center; justify-content: center; color: transparent; cursor: pointer; padding: 0; flex: none; }
.pickbox:hover { border-color: var(--green); }
.club.on .pickbox { background: var(--green); border-color: var(--green); color: var(--paper); }
.club-open { width: 38px; height: 38px; border-radius: 4px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.club-open:hover { background: var(--bg); color: var(--ink); }
.club-open svg { transition: transform .15s; }
.club.open .club-open svg { transform: rotate(90deg); }
.club-body { display: none; padding: 16px; border-top: 1px dashed var(--rule); background: var(--hue-fafbf9); gap: 14px; flex-direction: column; }
.club.open .club-body { display: flex; }
.club-body .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; align-items: end; }
.club-body .chartbox { max-width: 720px; }
.club-body .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.club-body .field > span { font-size: 14px; font-weight: 600; color: var(--ink); }
.club-body .field.span { grid-column: 1 / -1; }
.club-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.club.view .club-top { grid-template-columns: auto minmax(0, 1fr) auto auto; width: 100%; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; color: inherit; }
.club.view .club-top:hover { background: var(--paper-hover); }
.club.view .club-top .worth { text-align: right; }
.club-top .who .when, .myclub-top .who .when, .list .who .when { margin-top: 3px; color: var(--green); font-size: 13.5px; }
.club-top .who .when.soon, .myclub-top .who .when.soon, .list .who .when.soon { color: var(--flag-ink); }
.club-top .who .when.steady, .myclub-top .who .when.steady, .list .who .when.steady { color: var(--sky); }
.when.soon .icon { color: var(--flag-dark); }
.basket .acts .btn { padding-left: 10px; padding-right: 10px; }
/* the running total reads like the foot of a scorecard: lines, a ruled total, and the figure to pay in yellow */
.basket { position: sticky; top: 24px; border-radius: var(--r-lg); background: var(--pine); color: var(--on-pine); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.basket h2 { color: var(--paper); font-size: 21px; }
.basket .lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.basket .lines li { display: flex; justify-content: space-between; gap: 12px; font-size: 15.5px; padding: 7px 0; border-bottom: 1px solid var(--white-a10); }
.basket .lines li span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.basket .lines .num { color: var(--paper); }
.basket .sumline { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 6px; color: var(--paper); font-weight: 600; }
.basket .sumline .num { color: var(--paper); font-size: 21px; }
.basket .pay { background: var(--flag); color: var(--pine); border-radius: var(--r); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; }
.basket .pay .num { font-size: 36px; line-height: 1; color: var(--pine); }
.basket .hint { font-size: 14.5px; color: var(--on-pine-muted); }
.basket label { color: var(--paper); }
.basket .buy { border: 1px solid var(--white-a14); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.basket .buy .name { display: flex; align-items: center; gap: 10px; color: var(--paper); font-weight: 600; }
.basket .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.basket .acts .wide { grid-column: 1 / -1; }
.basket .quietlinks { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14.5px; }
.basket .quietlinks a, .basket .quietlinks button { color: var(--on-pine); background: none; border: 0; padding: 4px 0; font: inherit; font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.basket .quietlinks a:hover, .basket .quietlinks button:hover { color: var(--paper); }
.minibar { display: none; }
@media (max-width: 1100px) {
  .trade { grid-template-columns: 1fr; }
  .basket { position: static; }
  .minibar { display: flex; position: sticky; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 8px); z-index: 20; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: var(--r-lg); background: var(--pine); color: var(--paper); box-shadow: 0 8px 24px var(--pine-a30); }
  .minibar .tot { display: flex; flex-direction: column; line-height: 1.15; margin-right: auto; min-width: 0; }
  .minibar .tot span { font-size: 13px; color: var(--on-pine-muted); font-weight: 500; }
  .minibar .tot b { font-family: var(--num); font-size: 24px; color: var(--flag); font-variant-numeric: tabular-nums; }
}
@media (min-width: 901px) and (max-width: 1100px) { .minibar { bottom: 12px; } }
@media (max-width: 560px) {
  .club-top { grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 10px; padding: 12px 8px 12px 12px; }
  .club-top .worth { grid-column: 3 / 4; grid-row: 2; text-align: left; display: flex; align-items: baseline; gap: 8px; margin-top: -6px; }
  .club-top .worth small { display: inline; }
  .club-top .club-open { grid-column: 4; grid-row: 1 / 3; }
  .club.view .club-top { grid-template-columns: auto minmax(0, 1fr) auto; }
  .club.view .club-top .worth { grid-column: 3; grid-row: 1; display: block; text-align: right; margin-top: 0; }
  .club.view .club-top .club-open { display: none; }
  .addbar { grid-template-columns: 1fr; }
}

/* ---------- held offers and quick offers ---------- */
.offer { border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--paper); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.offer-top { display: flex; align-items: center; gap: 12px; }
.offer-top .who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.offer-top .who span { color: var(--muted); font-size: 14.5px; }
.offer-top .num { font-size: 24px; }
.meter { height: 6px; border-radius: 3px; background: var(--hue-e4e9e4); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--green); }
.meter.warn i { background: var(--flag-dark); }
.meter.bad i { background: var(--red); }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.choice { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); cursor: pointer; text-align: left; font: inherit; color: var(--text); }
.choice:hover { border-color: var(--ink); }
.choice[aria-pressed="true"] { border-color: var(--green); background: var(--tint); box-shadow: inset 0 0 0 1px var(--green); }
.choice strong { display: block; font-size: 17px; }
.choice span span { font-size: 14.5px; color: var(--muted); }

/* dialogs: centred on wide screens, a sheet from the bottom on phones */
dialog.dlg { border: 0; border-radius: 10px; padding: 0; width: min(500px, calc(100% - 32px)); max-height: calc(100dvh - 32px); color: var(--text); box-shadow: 0 24px 60px var(--pine-a30); }
dialog.dlg::backdrop { background: var(--c12-26-18-a50); }
dialog.dlg form, dialog.dlg .dlg-body { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
dialog.dlg h2 { font-size: 24px; }
dialog.dlg .dlg-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
dialog.dlg[open] { animation: pop .14s ease-out; }
dialog.dlg .menu { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; }
dialog.dlg .menu a, dialog.dlg .menu button { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; border: 0; border-top: 1px solid var(--rule); background: var(--paper); color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; text-align: left; }
dialog.dlg .menu > :first-child { border-top: 0; }
dialog.dlg .menu a:hover, dialog.dlg .menu button:hover { background: var(--bg); }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 560px) {
  dialog.dlg { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 12px 12px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  dialog.dlg[open] { animation: slideup .2s ease-out; }
  dialog.dlg .dlg-actions .btn { flex: 1 1 auto; }
}
@keyframes slideup { from { transform: translateY(100%); } }
#toast { position: fixed; z-index: 80; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: var(--pine); color: var(--paper); padding: 12px 18px; border-radius: var(--r); display: flex; gap: 14px; align-items: center; max-width: calc(100% - 24px); font-weight: 500; transition: transform .2s ease-out, opacity .2s ease-out; box-shadow: 0 10px 28px var(--pine-a30); border-left: 4px solid var(--flag); }
#toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
#toast a { color: var(--flag); white-space: nowrap; }
@media (max-width: 900px) { body.app #toast { bottom: calc(var(--tab-h) + 86px + env(safe-area-inset-bottom)); } }

/* ---------- what a shop's customer sees: the shop's name on top, one column, big buttons ---------- */
body.customer { background: var(--bg); }
.shopband { background: var(--rough); color: var(--paper); }
.shopband .inner { max-width: 620px; margin: 0 auto; padding: 14px 18px; display: flex; align-items: center; gap: 12px; min-height: 68px; }
.shopband img { height: 44px; width: auto; max-width: 150px; object-fit: contain; background: var(--paper); border-radius: 4px; padding: 4px; }
.shopband strong { color: var(--paper); font-family: var(--num); font-size: 21px; font-weight: 700; }
body.customer main { max-width: 620px; margin: 0 auto; padding: 20px 14px 10px; }
body.customer.wide main, body.customer.wide .shopband .inner, body.customer.wide + .powered { max-width: 960px; }
body.customer .card { padding: 22px; gap: 16px; }
body.customer .block, body.customer .wrap { padding: 0; max-width: none; }
body.customer h1 { font-size: 30px; }
.powered { max-width: 620px; margin: 0 auto; padding: 18px 20px 34px; text-align: center; font-size: 13.5px; color: var(--muted); }
.powered a { color: var(--muted); }
.answer { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .answer { grid-template-columns: 1fr; } }
.bigtick { width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: var(--paper); display: flex; align-items: center; justify-content: center; }
.bigtick.sun { background: var(--flag); color: var(--pine); }
.heldcard { border-radius: var(--r-lg); background: var(--flag); color: var(--pine); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.heldcard .num { font-size: 44px; line-height: 1; color: var(--pine); }
.mylist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--paper); overflow: hidden; }
.myclub { border-top: 1px solid var(--rule); background: var(--paper); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.myclub:first-child { border-top: 0; }
.myclub-top { display: flex; align-items: center; gap: 12px; }
.myclub-top .who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.myclub-top .who span { color: var(--muted); font-size: 14.5px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .pair { grid-template-columns: 1fr; } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: flex; flex-direction: column; gap: 14px; }
.stepno { width: 28px; height: 28px; border-radius: 4px; border: 1.5px solid var(--ink); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-family: var(--num); font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }

/* ---------- the QR poster for the counter ---------- */
.poster { border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; background: var(--paper); max-width: 520px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding-bottom: 20px; }
.poster-top { align-self: stretch; background: var(--rough); color: var(--paper); padding: 22px; display: flex; justify-content: center; align-items: center; min-height: 96px; }
.poster-top img { max-height: 84px; max-width: 70%; object-fit: contain; background: var(--paper); border-radius: 6px; padding: 8px 12px; }
.poster-top strong { color: var(--paper); font-family: var(--num); font-size: 30px; font-weight: 700; }
.poster h1 { font-size: 42px; font-weight: 700; padding: 6px 24px 0; }
.poster-lead { font-size: 18px; max-width: 30ch; }
.poster-qr { width: 62%; border: 6px solid var(--green); border-radius: 10px; padding: 8px; }
.poster-qr svg { display: block; width: 100%; height: auto; }
.poster-steps { margin: 0; padding: 0 24px; list-style: none; counter-reset: p; display: flex; flex-direction: column; gap: 8px; text-align: left; font-weight: 600; color: var(--ink); }
.poster-steps li { counter-increment: p; display: flex; gap: 12px; align-items: center; }
.poster-steps li::before { content: counter(p); width: 28px; height: 28px; border-radius: 4px; border: 1.5px solid var(--ink); color: var(--ink); display: flex; align-items: center; justify-content: center; flex: none; font-family: var(--num); font-variant-numeric: tabular-nums; font-weight: 700; }
.poster-foot { align-self: stretch; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 20px 0; margin-top: 4px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 13px; }
@media print { .poster { border: 0; box-shadow: none; max-width: none; min-height: 262mm; gap: 9mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; } .poster h1 { font-size: 46pt; } .poster-lead { font-size: 17pt; } .poster-steps { font-size: 14pt; gap: 4mm; } .poster-qr { width: 58%; } .poster-foot { margin-top: auto; font-size: 10pt; } .poster-top { min-height: 38mm; } .poster-top img { max-height: 30mm; } }


/* ---------- value graph and when is best to trade ---------- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chartbox { display: flex; flex-direction: column; gap: 10px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--muted); }
.legend i { display: inline-block; width: 22px; height: 0; border-top: 3px solid; vertical-align: middle; margin-right: 6px; }
.legend i.band { height: 12px; border: 0; border-radius: 2px; background: var(--hue-d3e6d8); }
.verdict { border-radius: var(--r-lg); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--tint); color: var(--text); border-left: 4px solid var(--green); }
.verdict.soon { background: var(--flag-tint); border-left-color: var(--flag-dark); }
.verdict.steady { background: var(--sky-tint); border-left-color: var(--sky); }
.verdict-top { display: flex; align-items: flex-start; gap: 10px; }
.verdict-top .disc { width: 26px; height: 26px; color: var(--green); }
.verdict.soon .verdict-top .disc { color: var(--flag-ink); }
.verdict.steady .verdict-top .disc { color: var(--sky); }
.verdict-top strong { display: block; font-family: var(--num); font-size: 20px; font-weight: 700; line-height: 1.2; }
.verdict-top p { font-size: 15px; margin-top: 2px; }
.verdict { container-type: inline-size; }
.waits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--pine-a12); border-radius: var(--r); background: var(--paper); overflow: hidden; }
@container (max-width: 430px) { .waits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.waits div { padding: 8px 10px; display: flex; flex-direction: column; line-height: 1.25; border-left: 1px solid var(--rule); }
.waits div:first-child { border-left: 0; }
.waits span { font-size: 13px; font-weight: 500; color: var(--muted); }
.waits b { font-family: var(--num); font-size: 21px; font-variant-numeric: tabular-nums; font-weight: 700; }
.waits small { font-size: 13px; color: var(--red); font-weight: 600; }
.when { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--green); }
.when.soon { color: var(--flag-ink); }
.when.steady { color: var(--sky); }

/* ---------- the trade-in sheet and report: built to be shown to the customer and printed ---------- */
.sheet { border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 22px; background: var(--paper); }
.sheet h2 { font-size: 22px; }
.sheet .sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin: -26px -26px 0; padding: 20px 26px; background: var(--rough); color: var(--hue-e3ebe5); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.sheet .sheet-head h1 { color: var(--paper); }
.sheet .sheet-head .muted { color: var(--white-a78); }
.sheet .sheet-head img { height: 60px; width: auto; max-width: 200px; object-fit: contain; border-radius: 4px; background: var(--paper); padding: 5px; }
.sheet .photo { width: 100%; max-height: 220px; object-fit: contain; border-radius: var(--r); background: var(--bg); }
.sheet .big { border-radius: var(--r); padding: 18px 22px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; color: var(--pine); font-weight: 600; background: var(--flag); }
.sheet .big .stack span + span { color: var(--hue-4a3c00); font-weight: 500; font-size: 15px; }
.sheet .big b { font-family: var(--num); font-size: 52px; line-height: 1; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--pine); }
.sheet .chartbox { max-width: 660px; }
.outlook { display: flex; flex-direction: column; gap: 12px; }
.sheet .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.sheet .clubhead { display: flex; align-items: center; gap: 12px; }
.sheet .clubhead .who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.grades { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.grades div { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; border-left: 1px solid var(--rule); margin-left: -1px; }
.grades div .row { justify-content: space-between; }
.sheetbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
@media (max-width: 560px) { .sheet { padding: 18px; } .sheet .sheet-head { margin: -18px -18px 0; padding: 16px 18px; } .sheet .big b { font-size: 42px; } }
@media print {
  @page { margin: 14mm; }
  body, body.app, body.customer { display: block; background: var(--paper); padding: 0; font-size: 12.5px; }
  .site-header, footer, .rail, .topbar, .tabbar, .no-print, .skip, #toast, .minibar, .shopband, .powered, .back { display: none !important; }
  .page, body.customer main, .wrap { max-width: none; padding: 0 !important; margin: 0; }
  /* plain blocks, so a long report breaks between cards and not in a heap at the top of the next page */
  .page, .sheet { display: block; }
  .sheet { border: 0; padding: 0; box-shadow: none; }
  .sheet > * + * { margin-top: 14px; }
  .sheet h2 { break-after: avoid; }
  .sheet .sheet-head { margin: 0; border-radius: 6px; }
  .sheet .cols { display: block; }
  .sheet .cols > .card { margin-bottom: 12px; padding: 14px 16px; gap: 10px; }
  .sheet .chartbox { max-width: none; }
  .outlook { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; align-items: start; }
  .sheet th, .sheet td { padding-top: 7px; padding-bottom: 7px; }
  .sheet .card, .sheet .big, .sheet table, .sheet .chartbox, .verdict { break-inside: avoid; }
  .sheet .sheet-head, .sheet .big, .hl, .sheet .photo, .tile, .chip, .verdict, .waits div, .grades div, .disc, .chart { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: inherit; text-decoration: none; }
}

/* ---------- moving between pages: the menu stays put, the page fades in ---------- */
@view-transition { navigation: auto; }
::view-transition-old(main) { animation: vt-out .1s ease-in both; }
::view-transition-new(main) { animation: vt-in .16s ease-out both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
.stack > .seg:not(.wide) { align-self: flex-start; }

/* getting started: a small tab at the bottom left that opens into the four steps */
.startbox { position: fixed; left: 20px; bottom: 20px; z-index: 39; }
.startbox.open { width: min(370px, calc(100% - 24px)); max-height: calc(100dvh - 40px); overflow-y: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: 0 16px 40px var(--pine-a22); display: flex; flex-direction: column; gap: 12px; animation: startup .18s ease-out; }
.startbox.open h2 { font-size: 22px; margin: 0; }
.startbox.open p { margin: 0; font-size: 15px; }
.startbox .steps { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.startbox .steps a { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--rule); background: var(--paper); color: var(--text); text-decoration: none; }
.startbox .steps a:first-child { border-top: 0; }
.startbox .steps a:hover { background: var(--bg); }
.startbox .steps a[aria-current] { background: var(--tint); }
.startbox .stepno { flex: none; width: 28px; height: 28px; }
.startbox .steps a.done .stepno { background: var(--green); border-color: var(--green); color: var(--paper); }
.startbox .steps a.done strong { text-decoration: line-through; text-decoration-color: var(--muted); }
.startbox .who { display: flex; flex-direction: column; gap: 2px; }
.startbox .who .muted { font-size: 14.5px; font-weight: 400; }
.startbox.min { display: flex; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 6px 18px var(--pine-a14); animation: startup .18s ease-out; }
.startbox.min .icon { color: var(--gold); }
.startpill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px 0 14px; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; border-radius: var(--r); }
.startx { width: 38px; height: 38px; margin-right: 3px; border: 0; border-radius: 4px; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.startx:hover { background: var(--bg); color: var(--ink); }
.startpill:focus-visible, .startx:focus-visible { outline: 3px solid var(--flag); outline-offset: 2px; }
@keyframes startup { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .startbox { animation: none !important; } }
/* On a computer the guide sits in the menu, above its footer links, so it never covers the screen being worked on. */
@media (min-width: 901px) {
  body.app .startbox:not(.open) { left: 12px; width: calc(var(--rail-w, 236px) - 24px); bottom: 150px; justify-content: flex-start; }
  body.app .startbox.min { background: var(--pine-2); border-color: var(--white-a14); box-shadow: none; }
  body.app .startbox.min .startpill { color: var(--paper); font-size: 14.5px; text-align: left; line-height: 1.25; padding: 8px 6px 8px 12px; }
  body.app .startbox.min .startx { color: var(--on-pine-muted); }
  body.app .startbox.min .icon { color: var(--flag); }
  body.app .startbox.open { left: calc(var(--rail-w, 236px) + 20px); }
}
@media (min-width: 901px) and (max-height: 680px) { body.app .startbox:not(.open) { left: calc(var(--rail-w, 236px) + 20px); width: auto; bottom: 20px; } }
@media (max-width: 900px) { body.app .startbox, .startbox { left: 12px; bottom: calc(var(--tab-h) + 14px); } .startbox.open { max-height: calc(100dvh - 180px); } }
/* help: a button on every shop page, and the chat it opens */
.helpfab { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 6px 18px var(--pine-a14); }
.helpfab svg { color: var(--green); }
.helpfab:hover { border-color: var(--ink); }
.helpfab:focus-visible { outline: 3px solid var(--flag); outline-offset: 3px; }
@media (max-width: 900px) { .helpfab { right: 12px; bottom: calc(var(--tab-h) + 14px); padding: 0 10px; } .helpfab span { display: none; } }
dialog.dlg.helpdlg { width: min(520px, calc(100% - 24px)); }
.helplog { display: flex; flex-direction: column; gap: 8px; height: min(46dvh, 420px); overflow-y: auto; padding: 4px 2px; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 10px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.assistant { align-self: flex-start; background: var(--bg); border-bottom-left-radius: 2px; }
.bubble.user { align-self: flex-end; background: var(--green); color: var(--paper); border-bottom-right-radius: 2px; }
.bubble.wait { color: var(--muted); }
.bubble.note { align-self: stretch; max-width: none; background: var(--flag-tint); font-weight: 500; font-size: 15px; }
.helpform { display: flex; gap: 8px; align-items: flex-end; }
.helpform textarea { flex: 1; resize: none; }
dialog.dlg .helpform { display: flex; flex-direction: row; width: 100%; margin: 0; padding: 0; max-width: none; }
dialog.dlg .helpform textarea { min-width: 0; width: auto; }
dialog.dlg .helpform .btn { flex: none; width: auto; }
.basket .btn[disabled] { opacity: 1; background: var(--white-a06); border-color: var(--white-a14); color: var(--hue-7f9585); }

/* review fixes: on a phone, Help and Getting started live in the top bar so nothing floats over the page */
.startpill .short { display: none; }
@media (max-width: 900px) {
  .topbar .brand { max-width: calc(100% - 178px); }
  body.app .helpfab { top: calc(9px + env(safe-area-inset-top)); bottom: auto; right: 66px; z-index: 36; width: 40px; min-height: 40px; padding: 0; justify-content: center; background: transparent; border-color: var(--white-a35); box-shadow: none; }
  body.app .helpfab svg { color: var(--paper); }
  body.app .startbox.min { top: calc(9px + env(safe-area-inset-top)); bottom: auto; left: auto; right: 114px; z-index: 36; background: transparent; border-color: var(--white-a35); box-shadow: none; animation: none; }
  body.app .startbox.min .startpill { min-height: 38px; padding: 0 10px; color: var(--paper); font-size: 14px; }
  body.app .startbox.min .startpill .long, body.app .startbox.min .startx { display: none; }
  body.app .startbox.min .startpill .short { display: inline; }
  body.app .startbox.open { left: 12px; right: 12px; width: auto; bottom: calc(var(--tab-h) + 12px); }
  .hero .acts .btn.onpine { flex: 1 1 0; min-width: 0; padding: 10px 8px; font-size: 15.5px; }
}
.offline { position: sticky; top: 0; z-index: 70; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; background: var(--hue-7a1f12); color: var(--paper); font-weight: 600; font-size: 15px; text-align: center; }
details.more > summary { cursor: pointer; font-weight: 600; color: var(--green); min-height: 44px; display: flex; align-items: center; }
details.more[open] > summary { color: var(--ink); }

/* trade-in in three numbered steps: who, their clubs, the offer */
.stephead { display: flex; align-items: center; gap: 10px; font-size: 19px; margin: 6px 0 -6px; }
.stephead .stepno, .basket h2 .stepno { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: var(--paper); font-size: 15px; font-weight: 700; display: inline-grid; place-items: center; }
.basket h2 { display: flex; align-items: center; gap: 10px; }
.basket h2 .stepno { background: var(--flag); color: var(--ink); }
.basket[hidden], .minibar[hidden] { display: none !important; }
/* settings: jump links to each section */
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.jump a:hover { border-color: var(--ink); }
section.panel[id] { scroll-margin-top: 76px; }

/* trade-in: prices checked at each resale place */
.places { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.places ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); }
.places li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 9px 12px; border-top: 1px solid var(--line); }
.places li:first-child { border-top: 0; }
.places li .num { font-weight: 700; }
.places li small { grid-column: 1 / -1; color: var(--muted); font-size: 13.5px; }
.places .guideline { margin: 4px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--flag-tint, var(--hue-fff6c7)); font-size: 14.5px; line-height: 1.45; }
/* admin: club database */
.clubtable { width: 100%; border-collapse: collapse; font-size: 15px; }
.clubtable th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: var(--paper, var(--paper)); }
.clubtable td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.clubtable td.num { text-align: right; white-space: nowrap; }
.clubtable tr.clubrow { cursor: pointer; }
.clubtable tr.clubrow:hover td, .clubtable tr.clubrow[aria-expanded="true"] td { background: var(--tint, var(--hue-eef3ef)); }
.clubtable tr.clubrow:focus-visible { outline: 3px solid var(--flag); outline-offset: -3px; }
.clubtable tr.detail > td { background: var(--hue-fafbfa); padding: 6px 10px 14px; }
.clubtable small.ok { color: var(--green); }
.clubtable .grades { display: inline-flex; gap: 6px; white-space: nowrap; font-size: 13.5px; }
.clubtable .grades span { padding: 1px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.listings { width: 100%; border-collapse: collapse; font-size: 14px; }
.listings th { text-align: left; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.listings td { padding: 6px 8px; border-bottom: 1px solid var(--line); }
.listings td.num { text-align: right; white-space: nowrap; }
.listings tr.isnew td { color: var(--muted); }
.clubfilters { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(130px, 1fr)); gap: 10px; align-items: center; }
.clubfilters input, .clubfilters select { width: 100%; min-width: 0; }
@media (max-width: 900px) { .clubfilters { grid-template-columns: 1fr 1fr; } .clubfilters input { grid-column: 1 / -1; } }
.trialbar { position: sticky; top: 0; z-index: 70; display: block; padding: 9px 14px; background: var(--flag); color: var(--ink); text-align: center; font-weight: 600; font-size: 15px; text-decoration: none; }
.trialbar:hover strong { text-decoration: underline; }

/* ---------- front page: one bag followed from the counter to the next trade, each stage shown by the real screen ---------- */
body.home .site-header { border-bottom: 1px solid var(--white-a10); }
.block { padding: 56px 0; }
.hm-hero { background: var(--pine); color: var(--on-pine); padding: var(--space-xl) 0 var(--space-2xl); }
.hm-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: var(--space-2xl); align-items: center; }
.hm-pitch { display: flex; flex-direction: column; gap: var(--space-lg); min-width: 0; }
.hm-pitch h1 { font-size: clamp(44px, 6vw, 80px); line-height: 0.98; letter-spacing: -0.01em; color: var(--paper); max-width: 12ch; overflow-wrap: break-word; min-width: 0; }
.hm-lead { font-size: clamp(19px, 1.9vw, 22px); color: var(--on-pine-strong); max-width: 34ch; }
.hm-note { color: var(--on-pine-muted); font-size: 15px; max-width: 46ch; }
.hm-link { font-weight: 600; color: var(--paper); padding: 0 var(--space-xs); }
.hm-link:hover { color: var(--flag); }
.hm-shot { margin: 0; min-width: 0; }
.hm-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); outline: 1px solid var(--frame); outline-offset: -1px; background: var(--bg); }
.hm-hero-shot img { outline-color: var(--white-a14); max-width: 360px; margin-left: auto; }

.hm-stages { padding: var(--space-3xl) 0 var(--space-2xl); }
.hm-section-head { font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; max-width: 22ch; margin-bottom: var(--space-xl); }
.hm-flow { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hm-stage { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-xl); align-items: start; padding: var(--space-2xl) 0; border-top: 1px solid var(--rule); }
.hm-stage:first-child { border-top: 2px solid var(--ink); }
.hm-says { display: flex; flex-direction: column; gap: var(--space-sm); position: sticky; top: var(--space-lg); }
.hm-says h3 { font-size: clamp(24px, 2.2vw, 30px); font-weight: 700; display: flex; align-items: baseline; gap: var(--space-sm); }
.hm-n { font-family: var(--num); font-variant-numeric: tabular-nums; color: var(--green); min-width: 1ch; }
.hm-says p { max-width: 36ch; font-size: 17.5px; }
.hm-shot.narrow { max-width: 400px; }
.hm-shot.phone { max-width: 340px; }

.hm-start { background: var(--bg); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: var(--space-3xl) 0; }
.hm-start-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: start; }
.hm-setup h2, .hm-price h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; margin-bottom: var(--space-lg); }
.hm-rows { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.hm-rows li { counter-increment: s; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: var(--space-md); padding: var(--space-md) 0; border-top: 1px solid var(--line); }
.hm-rows li::before { content: counter(s); grid-row: span 2; font-family: var(--num); font-size: 34px; font-weight: 700; line-height: 1; color: var(--green); }
.hm-rows li:last-child { border-bottom: 1px solid var(--line); }
.hm-rows h3 { font-size: 20px; }
.hm-rows p { max-width: 52ch; }
.hm-price { border-top: 2px solid var(--ink); padding-top: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm); align-items: flex-start; }
.hm-price h2 { margin-bottom: 0; }
.hm-price-main { font-size: 18px; color: var(--ink); font-weight: 600; display: flex; align-items: baseline; gap: var(--space-sm); flex-wrap: wrap; }
.hm-price-main .num { font-size: 76px; line-height: 0.9; color: var(--green); }
.hm-price-alt { color: var(--muted); }
.hm-price ul { margin: var(--space-xs) 0 var(--space-md); padding-left: 20px; display: flex; flex-direction: column; gap: var(--space-xs); }

.hm-faq { padding: var(--space-3xl) 0; }
.hm-faq h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; margin-bottom: var(--space-lg); }
.hm-faq-list { max-width: 820px; }
.hm-faq details { border-top: 1px solid var(--line); }
.hm-faq details:last-child { border-bottom: 1px solid var(--line); }
.hm-faq summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: var(--space-md) 0; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: var(--space-md); }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary::after { content: '+'; font-family: var(--num); font-size: 24px; line-height: 1; color: var(--green); }
.hm-faq details[open] summary::after { content: '–'; }
.hm-faq summary:hover { color: var(--green); }
.hm-faq details p { padding: 0 0 18px; max-width: 68ch; }

.hm-apply { background: var(--pine); padding: var(--space-3xl) 0; scroll-margin-top: var(--space-md); }
.hm-apply-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-2xl); align-items: start; }
.hm-apply-says { display: flex; flex-direction: column; gap: var(--space-sm); padding-top: var(--space-lg); }
.hm-apply-says h2 { color: var(--paper); font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; }
.hm-apply-says p { color: var(--on-pine-strong); max-width: 34ch; font-size: 17.5px; }
.hm-apply .card { border: 0; padding: 26px; }

@media (max-width: 900px) {
  .block { padding: 40px 0; }
  .hm-hero { padding: var(--space-lg) 0 var(--space-xl); }
  .hm-hero-grid, .hm-stage, .hm-start-grid, .hm-apply-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .hm-hero-shot img { max-width: 340px; margin: 0; }
  .hm-stages, .hm-start, .hm-faq, .hm-apply { padding: var(--space-2xl) 0; }
  .hm-stage { padding: var(--space-xl) 0; }
  .hm-says { position: static; }
  .hm-shot.phone { max-width: 300px; }
  .hm-apply-says { padding-top: 0; }
}
@media (max-width: 560px) { .hm-head-apply { display: none; } }
@media (max-width: 600px) { .hm-shot.wide { max-width: 340px; } }

/* ---------- Today: the queue leads, the numbers sit beside it as a scorecard ---------- */
.today-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 280px); gap: var(--space-xl); align-items: start; }
.today-side { position: sticky; top: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm); }
.today-side h2 { font-size: 21px; }
.today-side .stats { grid-template-columns: minmax(0, 1fr); border: 0; border-top: 2px solid var(--ink); border-radius: 0; background: none; }
.today-side .stat { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'label value' 'note value'; align-items: center; column-gap: var(--space-sm); padding: var(--space-sm) var(--space-xs); border-left: 0; border-bottom: 1px solid var(--rule); box-shadow: none; }
.today-side .stat .label { grid-area: label; color: var(--ink); }
.today-side .stat .note { grid-area: note; }
.today-side .stat .value { grid-area: value; font-size: 30px; }
.today-side .stat.sun .value { box-shadow: inset 0 -0.3em 0 var(--flag); }
.on-phone { display: none !important; }
@media (max-width: 900px) {
  .on-phone { display: inline-flex !important; }
  .today-grid { grid-template-columns: minmax(0, 1fr); }
  .today-side { position: static; order: -1; }
  .today-side .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .today-side .stat { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'label' 'value' 'note'; }
}

/* ---------- one surface at a time: inside a card, groups part with rules or sit in a well, never in another bordered box ---------- */
.card details.more, .panel details.more, .myclub details.more, .club details.more { border: 0; border-top: 1px solid var(--rule); border-radius: 0; background: none; padding: 0; }
.card details.more summary, .panel details.more summary, .myclub details.more summary, .club details.more summary { min-height: 44px; padding: var(--space-xs) 0; color: var(--green); }
.card .mylist { border: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); border-radius: 0; background: none; }
.card .myclub { padding: var(--space-md) 0; }
.card .choices, .panel .choices { gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.card .choice, .panel .choice { border: 0; border-radius: 0; border-left: 1px solid var(--line); box-shadow: none; }
.card .choice:first-child, .panel .choice:first-child { border-left: 0; }
.card .choice:hover, .panel .choice:hover { background: var(--paper-hover); border-color: var(--line); }
.card .choice[aria-pressed="true"], .panel .choice[aria-pressed="true"] { background: var(--tint); box-shadow: inset 0 -3px 0 var(--green); border-color: var(--line); }
@media (max-width: 700px) { .card .choice, .panel .choice { border-left: 0; border-top: 1px solid var(--line); } .card .choice:first-child, .panel .choice:first-child { border-top: 0; } }
.waits { border: 0; border-top: 1px solid var(--pine-a12); border-radius: 0; background: none; }
.waits div:first-child { padding-left: 0; }
.basket .buy { border: 0; border-top: 1px solid var(--white-a14); border-bottom: 1px solid var(--white-a14); border-radius: 0; padding: var(--space-sm) 0; }
/* public pages: the footer sits at the foot of the window however short the page */
body:not(.app):has(> footer.site-footer) { min-height: 100dvh; display: flex; flex-direction: column; }
body:not(.app):has(> footer.site-footer) > main { flex: 1 0 auto; }
