/* ==========================================================================
   Ward Winning Pickleball - design system (2026-09 overhaul)
   One stylesheet for the public site, the member area and the admin.
   Tokens > reset > type > layout > components > chrome > responsive.
   ========================================================================== */

/* ------------------------------------------------------------ fonts (self-hosted, variable) */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-var.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('../fonts/dm-sans-var.woff2') format('woff2');
}

/* ------------------------------------------------------------ tokens */
:root {
  --green-950: #0d2418;
  --green-900: #163a26;
  --green-800: #1f4d33;
  --green-700: #285738;
  --green-600: #35704a;
  --green-500: #468c5c;
  --green-200: #c9dfd0;
  --green-100: #e3efe6;
  --green-50:  #f1f7f2;
  --gold-700:  #a87b1c;
  --gold-600:  #c9962a;
  --gold-500:  #e9b949;
  --gold-400:  #f2c86a;
  --gold-100:  #fbf1d4;
  --gold-50:   #fdf8e9;
  --cream:     #f8f5ec;
  --sand:      #efe9d9;
  --ink:       #14211a;
  --body:      #3f5046;
  --muted:     #66756c;
  --line:      #e3e8e4;
  --line-2:    #cfd8d2;
  --white:     #ffffff;
  --bg:        #f6f8f6;
  --ok:        #2f7d32; --ok-bg: #e8f4e9;
  --warn:      #8a5f06; --warn-bg: #fdf4e2;
  --bad:       #b3261e; --bad-bg: #fbeae9;
  --info:      #1b5e8c; --info-bg: #e6f0f7;
  --display: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --sans: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --radius-sm: 9px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 33, 26, .06);
  --shadow: 0 8px 24px -10px rgba(20, 33, 26, .22);
  --shadow-lg: 0 24px 60px -24px rgba(20, 33, 26, .35);
  --ring: 0 0 0 3px rgba(70, 140, 92, .35);
  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg, video { max-width: 100%; height: auto; display: block; }
.ic { width: 1.05em; height: 1.05em; flex: none; }
h1 .ic, h2 .ic, h3 .ic, p .ic, a .ic, button .ic, span .ic, label .ic, li .ic, dd .ic, td .ic, small .ic { display: inline-block; vertical-align: -.18em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--gold-100); }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------ type */
h1, h2, h3, h4, .display {
  font-family: var(--display);
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.12;
  margin: 0 0 .45em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; letter-spacing: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--body); max-width: 60ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-700); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 26px; height: 3px; border-radius: 3px; background: var(--gold-500); }
.eyebrow.center { justify-content: center; }
.eyebrow.center::before { display: none; }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark .lede, .on-dark p { color: #fff; }
.on-dark .eyebrow { color: var(--gold-400); }
.on-dark a { color: #fff; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.tiny { font-size: .82rem; }
.strong { font-weight: 700; color: var(--ink); }
.accent { color: var(--gold-600); }
.mark { background: linear-gradient(transparent 62%, var(--gold-100) 62%); padding: 0 .1em; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
ul.clean, ol.clean { list-style: none; margin: 0; padding: 0; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: .28em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4d33' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.on-dark .checklist li::before { background-color: rgba(255,255,255,.14); }
.on-dark .checklist li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e9b949' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
kbd { font-family: var(--sans); font-size: .8rem; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; background: #fff; color: var(--ink); }

/* ------------------------------------------------------------ layout */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), 780px); margin-inline: auto; }
.wrap-mid { width: min(100% - 2 * var(--gutter), 960px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(36px, 5vw, 64px) 0; }
.section-head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; }
.bg-cream { background: var(--cream); }
.bg-sand { background: var(--sand); }
.bg-green { background: var(--green-50); }
.bg-dark { background: var(--green-900); color: rgba(255,255,255,.86); }
.bg-white { background: #fff; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.rev > :first-child { order: 2; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.two-col-wide { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.stack { display: grid; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }
.grow { flex: 1 1 auto; min-width: 0; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.mb-0 { margin-bottom: 0; }

/* ------------------------------------------------------------ buttons */
.btn {
  --btn-bg: var(--green-800); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 10px 22px;
  font-family: var(--display); font-weight: 700; font-size: .96rem; letter-spacing: .005em;
  color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd);
  border-radius: 999px; text-decoration: none; white-space: nowrap; line-height: 1.15;
  transition: transform .18s var(--ease), background .18s, color .18s, box-shadow .18s, border-color .18s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: var(--btn-fg); background: var(--green-900); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn .ic { width: 18px; height: 18px; flex: none; }
.btn-primary { --btn-bg: var(--gold-500); --btn-fg: var(--ink); }
.btn-primary:hover { background: var(--gold-400); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--green-800); --btn-bd: var(--green-800); }
.btn-outline:hover { background: var(--green-50); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--green-800); }
.btn-ghost:hover { background: var(--green-50); box-shadow: none; transform: none; }
.btn-soft { --btn-bg: var(--green-100); --btn-fg: var(--green-900); }
.btn-soft:hover { background: var(--green-200); }
.btn-danger { --btn-bg: var(--bad); }
.btn-danger:hover { background: #8f1d16; }
.btn-danger-outline { --btn-bg: transparent; --btn-fg: var(--bad); --btn-bd: var(--bad); }
.btn-danger-outline:hover { background: var(--bad-bg); }
.on-dark .btn-outline, .btn-light-outline { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.55); }
.on-dark .btn-outline:hover, .btn-light-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-sm { min-height: 38px; padding: 6px 15px; font-size: .88rem; }
.btn-lg { min-height: 54px; padding: 13px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-wrap { white-space: normal; text-align: center; }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-btn { background: none; border: 0; padding: 0; color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 600; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow .ic { width: 16px; height: 16px; transition: transform .18s; }
.link-arrow:hover .ic { transform: translateX(3px); }

/* ------------------------------------------------------------ chips, badges, dots */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; line-height: 1.5; white-space: nowrap;
  background: var(--green-100); color: var(--green-900);
}
.chip .ic { width: 13px; height: 13px; }
.chip-ok { background: var(--ok-bg); color: var(--ok); }
.chip-warn { background: var(--warn-bg); color: var(--warn); }
.chip-bad { background: var(--bad-bg); color: var(--bad); }
.chip-info { background: var(--info-bg); color: var(--info); }
.chip-done { background: #e9ecea; color: #3b4a41; }
.chip-muted { background: #eef1ef; color: var(--muted); }
.chip-line { background: transparent; border: 1px solid var(--line-2); color: var(--body); }
.chip-gold { background: var(--gold-100); color: var(--gold-700); }
.chip-dark { background: var(--green-900); color: #fff; }
.chip-cream { background: var(--cream); color: var(--ink); }
.badge-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--gold-500); color: var(--ink); font-size: .74rem; font-weight: 800; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); display: inline-block; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green-100); color: var(--green-900); font-weight: 800; font-family: var(--display); font-size: .9rem; flex: none; }
.avatar.lg { width: 56px; height: 56px; font-size: 1.15rem; }
.avatar.sm { width: 32px; height: 32px; font-size: .75rem; }

/* ------------------------------------------------------------ cards & panels */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-sm); position: relative;
}
.card-hover { transition: transform .22s var(--ease), box-shadow .22s; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--green-100); color: var(--green-800); margin-bottom: 16px; }
.card-icon .ic { width: 24px; height: 24px; }
.card-icon.gold { background: var(--gold-100); color: var(--gold-700); }
.card-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--green-800); color: #fff; font-family: var(--display); font-weight: 800; margin-bottom: 14px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 1.1rem; }
.panel-body { padding: 22px; }
.panel-body.flush { padding: 0; }
.panel-foot { padding: 14px 22px; border-top: 1px solid var(--line); background: var(--bg); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.panel + .panel { margin-top: 20px; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
dl.kv dt { color: var(--muted); font-size: .9rem; }
dl.kv dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.list-row:first-child { border-top: 0; }
a.list-row:hover { background: var(--green-50); color: inherit; }
.list-row .grow b { color: var(--ink); display: block; }
.empty-state { text-align: center; padding: 44px 22px; color: var(--muted); }
.empty-state .ic { width: 44px; height: 44px; color: var(--green-200); margin: 0 auto 12px; }
.empty-state h3 { color: var(--ink); margin-bottom: 6px; }

/* ------------------------------------------------------------ alerts, flashes */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); border: 1px solid; font-size: .96rem; margin-bottom: 18px; }
.alert .ic { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.alert p { margin: 0; }
.alert-ok { background: var(--ok-bg); border-color: #cfe6d1; color: #1d5a20; }
.alert-warn { background: var(--warn-bg); border-color: #f3dfb0; color: #6d4a03; }
.alert-bad { background: var(--bad-bg); border-color: #f0c5c1; color: #8f1d16; }
.alert-info { background: var(--info-bg); border-color: #c6dbeb; color: #15486c; }
.flashes { position: sticky; top: calc(var(--header-h) + 8px); z-index: 60; width: min(100% - 2 * var(--gutter), 640px); margin: 12px auto -4px; }
.flashes .alert { box-shadow: var(--shadow); background-clip: padding-box; }

/* ------------------------------------------------------------ forms */
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field > label, .field-label { font-weight: 700; color: var(--ink); font-size: .95rem; }
.field .hint { color: var(--muted); font-size: .86rem; margin: 0; }
.field-error { color: var(--bad); font-size: .88rem; margin: 0; font-weight: 600; }
.input, .select, .textarea,
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="date"], input[type="time"], input[type="url"], input[type="search"], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f5046' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center/16px no-repeat; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-500); box-shadow: var(--ring); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--bad); }
input::placeholder, textarea::placeholder { color: #9aa79f; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--body); cursor: pointer; }
.check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; accent-color: var(--green-700); flex: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.input-with-btn { display: flex; gap: 8px; }
.input-with-btn > * { min-width: 0; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); padding: 8px; border-radius: 8px; }
.pw-toggle .ic { width: 20px; height: 20px; }
.pw-toggle .ic.hide { display: none; }
.pw-toggle.is-shown .ic.hide { display: block; }
.pw-toggle.is-shown .ic:not(.hide) { display: none; }
.pw-toggle:hover { color: var(--ink); background: var(--bg); }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
legend { font-weight: 700; color: var(--ink); padding: 0; margin-bottom: 10px; }
/* choice cards (radio buttons that look like cards) */
.choices { display: grid; gap: 12px; }
.choices.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice-box { display: block; position: relative; padding-right: 44px; border: 1.5px solid var(--line-2); border-radius: var(--radius); padding: 16px 18px; background: #fff; transition: border-color .15s, box-shadow .15s, background .15s; height: 100%; }
.choice-box b { display: block; color: var(--ink); font-family: var(--display); font-size: 1.02rem; }
.choice-box span { display: block; color: var(--muted); font-size: .9rem; }
.choice-box .price { display: block; margin-top: 8px; font-weight: 800; color: var(--green-800); font-family: var(--display); }
.choice input:checked + .choice-box { border-color: var(--green-700); background: var(--green-50); box-shadow: 0 0 0 1px var(--green-700) inset; }
.choice input:focus-visible + .choice-box { box-shadow: var(--ring); }
.choice-box .check-mark { position: absolute; right: 14px; top: 16px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; }
.choice input:checked + .choice-box .check-mark { border-color: var(--green-700); background: var(--green-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
/* pill radios (durations, group size) */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 16px; border: 1.5px solid var(--line-2); border-radius: 999px; font-weight: 700; color: var(--ink); background: #fff; cursor: pointer; transition: all .15s; }
.pill input:checked + span { background: var(--green-800); color: #fff; border-color: var(--green-800); }
.pill input:focus-visible + span { box-shadow: var(--ring); }
.pill span small { font-weight: 500; opacity: .8; }

/* ------------------------------------------------------------ tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; background: var(--bg); }
.table tbody tr:hover { background: var(--green-50); }
.table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.table a.row-link { color: var(--ink); font-weight: 700; text-decoration: none; }
.table a.row-link:hover { text-decoration: underline; }

/* ------------------------------------------------------------ tabs & stats */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--body); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.tab .n { background: #fff; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 0 7px; font-size: .74rem; min-width: 20px; text-align: center; }
.tab:hover { color: var(--ink); background: #fff; }
.tab.active { background: var(--green-800); color: #fff; }
.tab.active .n { background: rgba(255,255,255,.18); color: #fff; border-color: transparent; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; display: grid; gap: 4px; box-shadow: var(--shadow-sm); }
.stat-card .k { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.stat-card .k .ic { width: 16px; height: 16px; color: var(--green-600); }
.stat-card .v { font-family: var(--display); font-size: 2rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.stat-card .sub { color: var(--muted); font-size: .88rem; }
.stat-card.warm { background: var(--gold-50); border-color: var(--gold-100); }
.stat-card.dark { background: var(--green-900); border-color: var(--green-900); }
.stat-card.dark .v, .stat-card.dark .k, .stat-card.dark .sub { color: #fff; }
.stat-card.dark .k .ic { color: var(--gold-400); }

/* ------------------------------------------------------------ FAQ */
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--ink); font-family: var(--display); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-chev { width: 20px; height: 20px; color: var(--green-700); flex: none; transition: transform .2s; }
.faq-item[open] summary .faq-chev { transform: rotate(180deg); }
.faq-answer { padding: 0 20px 18px; color: var(--body); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ site header */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255,255,255,.88); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(20,33,26,.35); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; background: var(--green-800); color: var(--gold-400); display: grid; place-items: center; flex: none; box-shadow: 0 6px 14px -8px rgba(31,77,51,.7); }
.brand-mark svg { width: 26px; height: 26px; }
.brand-text { display: grid; line-height: 1.05; }
.brand-text b { font-family: var(--display); font-weight: 800; font-size: 1.08rem; letter-spacing: -.015em; color: var(--ink); }
.brand-text span { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--green-700); font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.site-nav a { padding: 9px 13px; border-radius: 999px; text-decoration: none; color: var(--body); font-weight: 600; font-size: .96rem; transition: background .15s, color .15s; }
.site-nav a:hover { background: var(--green-50); color: var(--ink); }
.site-nav a.active { color: var(--green-900); background: var(--green-100); }
.site-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.label-short { display: none; }
.site-actions .btn-ghost { padding-inline: 14px; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff; place-items: center; }
.nav-toggle .ic { width: 22px; height: 22px; }
.nav-toggle .ic-x { display: none; }
body.nav-open .nav-toggle .ic-menu { display: none; }
body.nav-open .nav-toggle .ic-x { display: block; }
.nav-drawer { display: none; }
.nav-backdrop { display: none; }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--green-950); color: rgba(255,255,255,.78); padding: 56px 0 28px; margin-top: auto; }
.site-footer a { color: rgba(255,255,255,.86); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-brand .brand-text b, .footer-brand .brand-text span { color: #fff; }
.footer-brand .brand-text span { color: var(--gold-400); }
.footer-brand p { margin-top: 16px; max-width: 34ch; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .96rem; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .ic { width: 18px; height: 18px; color: var(--gold-400); flex: none; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .86rem; color: rgba(255,255,255,.6); }
.footer-bottom a { color: rgba(255,255,255,.7); }
.social-links { display: flex; gap: 10px; margin-top: 18px; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.social-links a:hover { background: var(--gold-500); color: var(--ink); text-decoration: none; }
.social-links .ic { width: 18px; height: 18px; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; background: var(--cream); padding: clamp(40px, 6vw, 84px) 0 clamp(48px, 7vw, 96px); }
.hero::before { content: ''; position: absolute; inset: auto -10% -40% auto; width: 60vw; max-width: 760px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(70,140,92,.16), transparent 72%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; position: relative; }
.hero h1 { margin-bottom: 18px; }
.hero .lede { margin-bottom: 26px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.hero-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .86rem; font-weight: 600; color: var(--ink); }
.hero-badge .ic { width: 15px; height: 15px; color: var(--green-700); }
.hero-media { position: relative; }
.hero-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; background: var(--green-100); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.hero-card { position: absolute; left: -22px; bottom: 28px; background: #fff; border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); }
.hero-card .v { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--green-800); line-height: 1; }
.hero-card .l { font-size: .82rem; color: var(--muted); line-height: 1.2; }
.hero-card.top { left: auto; right: -18px; top: 28px; bottom: auto; background: var(--green-900); border-color: var(--green-900); }
.hero-card.top .v { color: var(--gold-400); font-size: 1.05rem; }
.hero-card.top .l { color: rgba(255,255,255,.75); }
.hero-card .ic { width: 22px; height: 22px; color: var(--gold-500); flex: none; }
.hero.on-dark { background: var(--green-900); }
.hero.on-dark::before { background: radial-gradient(closest-side, rgba(233,185,73,.18), transparent 72%); }
.hero.on-dark .hero-badge { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #fff; }
.hero.on-dark .hero-badge .ic { color: var(--gold-400); }
.page-hero { background: var(--cream); padding: clamp(36px, 5vw, 64px) 0; }
.page-hero h1 { margin-bottom: 10px; }
.page-hero .lede { margin: 0; }

/* stat bar */
.statbar { background: var(--green-900); color: #fff; }
.statbar .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.statbar .stat { padding: 22px 18px; text-align: center; border-left: 1px solid rgba(255,255,255,.1); }
.statbar .stat:first-child { border-left: 0; }
.statbar .v { font-family: var(--display); font-weight: 800; font-size: 1.7rem; color: var(--gold-400); line-height: 1.1; }
.statbar .l { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.72); margin-top: 4px; font-weight: 700; }

/* CTA band */
.cta-band { background: var(--green-900); color: #fff; padding: clamp(48px, 7vw, 88px) 0; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; right: -10%; top: -40%; width: 46vw; max-width: 560px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(233,185,73,.2), transparent 70%); pointer-events: none; }
.cta-band .btn-outline { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.55); }
.cta-band .btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.cta-band .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 28px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; }

/* info band (guarantee-style) */
.info-band { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; background: var(--gold-50); border: 1px solid var(--gold-100); border-radius: var(--radius); }
.info-band .ic { width: 22px; height: 22px; color: var(--gold-700); flex: none; margin-top: 2px; }

/* testimonials */
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: grid; gap: 14px; box-shadow: var(--shadow-sm); }
.quote-card .stars { display: flex; gap: 2px; color: var(--gold-500); }
.quote-card .stars .ic { width: 16px; height: 16px; }
.quote-card blockquote { margin: 0; font-size: 1.02rem; color: var(--ink); line-height: 1.55; }
.quote-card .who { display: flex; align-items: center; gap: 12px; }
.quote-card .who b { display: block; color: var(--ink); font-size: .95rem; }
.quote-card .who span { color: var(--muted); font-size: .84rem; }
.quote-scroller { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* photo frames */
.photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--green-100); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.tall { aspect-ratio: 4 / 5; }
.photo.wide { aspect-ratio: 16 / 10; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; counter-increment: step; position: relative; }
.step::before { content: counter(step); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--green-800); color: #fff; font-family: var(--display); font-weight: 800; margin-bottom: 14px; }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--body); margin: 0; font-size: .97rem; }

/* ------------------------------------------------------------ auth pages */
.auth-wrap { min-height: calc(100dvh - var(--header-h)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { background: var(--green-900); color: #fff; padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-side::after { content: ''; position: absolute; right: -30%; bottom: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(233,185,73,.22), transparent 70%); }
.auth-side h2 { color: #fff; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); }
.auth-side p { color: rgba(255,255,255,.8); max-width: 44ch; }
.auth-side .checklist { margin-top: 20px; color: rgba(255,255,255,.9); }
.auth-main { padding: clamp(28px, 5vw, 64px) var(--gutter); display: flex; align-items: center; justify-content: center; background: var(--bg); }
.auth-card { width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.auth-card h1 { font-size: 1.7rem; margin-bottom: 6px; }
.auth-card .lede { font-size: 1rem; margin-bottom: 22px; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 18px; font-size: .95rem; }

/* ------------------------------------------------------------ app shell (member + admin) */
.app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: calc(100dvh - var(--header-h)); }
.app-side { background: #fff; border-right: 1px solid var(--line); padding: 22px 16px; position: sticky; top: var(--header-h); height: calc(100dvh - var(--header-h)); overflow-y: auto; scrollbar-width: thin; }
.app-main-wrap { display: flex; flex-direction: column; min-width: 0; }
.app-main { padding: clamp(20px, 3vw, 36px); background: var(--bg); min-width: 0; flex: 1; }
.app-user { display: flex; align-items: center; gap: 12px; padding: 6px 8px 18px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.app-user b { display: block; color: var(--ink); font-size: .98rem; line-height: 1.2; }
.app-user span { color: var(--muted); font-size: .82rem; }
.app-nav { display: grid; gap: 2px; }
.app-nav .group { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 16px 12px 6px; }
.app-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--body); font-weight: 600; font-size: .95rem; }
.app-nav a .ic, .app-nav button .ic { width: 19px; height: 19px; color: var(--muted); flex: none; }
.app-nav button.link-btn:hover { background: var(--green-50); color: var(--ink); }
.side-backdrop { display: none; }
.app-nav a:hover { background: var(--green-50); color: var(--ink); }
.app-nav a.active { background: var(--green-100); color: var(--green-900); }
.app-nav a.active .ic { color: var(--green-800); }
.app-nav a .badge-count { margin-left: auto; }
.app-nav .sep { border-top: 1px solid var(--line); margin: 12px 8px; }
.page-title { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.page-title h1 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin: 0; }
.page-title p { margin: 4px 0 0; color: var(--muted); }
.app-topbar { display: none; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; margin-bottom: 12px; }
.back-link .ic { width: 16px; height: 16px; }
.back-link:hover { color: var(--ink); }

/* ------------------------------------------------------------ numbered steps list */
.next-steps { display: grid; gap: 12px; counter-reset: ns; margin-top: 8px; }
.next-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 4px 12px; counter-increment: ns; }
.next-steps li::before { content: counter(ns); grid-row: 1 / 3; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--green-100); color: var(--green-900); font-weight: 800; font-family: var(--display); font-size: .85rem; }
.next-steps b { color: var(--ink); }
.next-steps span { color: var(--muted); font-size: .92rem; grid-column: 2; }


/* ------------------------------------------------------------ misc components */
.notice-inline { font-size: .88rem; color: var(--muted); }
.divider-text { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 18px 0; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.copy-btn { font-size: .82rem; }
.progress { height: 8px; border-radius: 999px; background: #eef1ef; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--green-600); width: 0; transition: width .2s; }
details.more summary { cursor: pointer; color: var(--green-700); font-weight: 700; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.error-page { padding: clamp(60px, 10vw, 120px) 0; text-align: center; }
.error-page .code { font-family: var(--display); font-size: clamp(4rem, 10vw, 7rem); font-weight: 800; color: var(--green-100); line-height: 1; margin-bottom: 8px; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in, .no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col, .two-col-wide { grid-template-columns: 1fr; }
  .app { grid-template-columns: 232px minmax(0, 1fr); }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .site-nav, .site-actions .btn-ghost { display: none; }
  .site-actions { margin-left: auto; }
  .site-actions .btn { min-height: 40px; padding: 6px 14px; font-size: .88rem; }
  .nav-toggle { display: grid; margin-left: 0; }
  .nav-drawer {
    display: block; position: fixed; inset: var(--header-h) 0 0 auto; width: min(360px, 88vw); background: #fff; z-index: 99;
    transform: translateX(105%); visibility: hidden; transition: transform .28s var(--ease), visibility 0s .28s; box-shadow: var(--shadow-lg); overflow-y: auto;
    padding: 18px 18px 28px; display: flex; flex-direction: column; gap: 6px;
  }
  body.nav-open .nav-drawer { transform: none; visibility: visible; transition: transform .28s var(--ease), visibility 0s; }
  .nav-drawer a { display: flex; align-items: center; gap: 12px; padding: 14px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.12rem; }
  .nav-drawer a .ic { width: 20px; height: 20px; color: var(--green-700); }
  .nav-drawer a:hover, .nav-drawer a.active { background: var(--green-50); }
  .nav-drawer .drawer-cta { margin-top: auto; display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
  .nav-drawer .drawer-cta .btn { width: 100%; font-size: 1rem; min-height: 50px; }
  .nav-backdrop { display: block; position: fixed; inset: var(--header-h) 0 0 0; background: rgba(13,36,24,.45); z-index: 98; opacity: 0; pointer-events: none; transition: opacity .25s; }
  body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  .hero-grid, .split, .split.rev { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .hero-media { max-width: 520px; }
  .hero-photo { aspect-ratio: 5 / 4; }
  .hero-card { left: 12px; bottom: 12px; }
  .hero-card.top { right: 12px; top: 12px; }
  .grid-3, .grid-4, .steps, .quote-scroller { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statbar .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statbar .stat:nth-child(3) { border-left: 0; }
  .statbar .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
  .cta-band .wrap { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  /* app shell collapses to a top bar + drawer */
  .app { grid-template-columns: 1fr; }
  .app-side { position: fixed; inset: var(--header-h) auto 0 0; width: min(300px, 86vw); z-index: 97; transform: translateX(-105%); visibility: hidden; transition: transform .28s var(--ease), visibility 0s .28s; box-shadow: var(--shadow-lg); height: calc(100dvh - var(--header-h)); }
  body.side-open .app-side { transform: none; visibility: visible; transition: transform .28s var(--ease), visibility 0s; }
  .app-topbar { display: flex; align-items: center; gap: 10px; padding: 10px var(--gutter); background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: var(--header-h); z-index: 90; overflow-x: auto; scrollbar-width: none; }
  .app-topbar::-webkit-scrollbar { display: none; }
  .app-topbar .btn-sm { flex: none; }
  .app-topbar .crumbs { color: var(--muted); font-size: .9rem; white-space: nowrap; }
  .app-topbar .crumbs b { color: var(--ink); }
  .side-backdrop { display: block; position: fixed; inset: var(--header-h) 0 0 0; background: rgba(13,36,24,.45); z-index: 96; opacity: 0; pointer-events: none; transition: opacity .25s; }
  body.side-open .side-backdrop { opacity: 1; pointer-events: auto; }
  .app-main { padding: 18px var(--gutter) 40px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .label-full { display: none; }
  .label-short { display: inline; }
  .site-header .wrap { gap: 10px; }
  .brand { gap: 9px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
  .brand-mark svg { width: 23px; height: 23px; }
  .brand-text b { font-size: .98rem; }
  .brand-text span { font-size: .62rem; letter-spacing: .14em; }
  .site-actions { gap: 6px; }
  .nav-toggle { width: 42px; height: 42px; }
  .section { padding: 48px 0; }
  .grid-2, .grid-3, .grid-4, .steps, .quote-scroller, .choices.cols-2, .choices.cols-3, .field-row { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-card .v { font-size: 1.5rem; }
  .card { padding: 20px; border-radius: var(--radius); }
  .panel-head, .panel-body { padding: 16px; }
  .list-row { padding: 12px 16px; }
  .btn-row .btn, .form-actions .btn { width: 100%; }
  .hero { padding-top: 26px; }
  .hero-grid { gap: 26px; }
  .hero-media { order: -1; }
  .hero-photo { aspect-ratio: 4 / 4.2; }
  .hero-card { padding: 10px 14px; left: 10px; bottom: 10px; }
  .hero-card .v { font-size: 1.2rem; }
  .hero-card.top { right: 10px; top: 10px; padding: 8px 12px; }
  .hero-badges { gap: 6px; }
  .hero-badge { font-size: .8rem; padding: 5px 10px; }
  .statbar .v { font-size: 1.35rem; }
  .statbar .stat { padding: 16px 10px; }
  .tabs { border-radius: var(--radius); width: 100%; }
  .tab { padding: 7px 11px; font-size: .84rem; }
  dl.kv { grid-template-columns: 1fr; gap: 2px 0; }
  dl.kv dt { margin-top: 10px; }
  dl.kv dt:first-child { margin-top: 0; }
  .table th, .table td { padding: 10px 10px; }
  .flashes { top: calc(var(--header-h) + 6px); }
  .page-title { margin-bottom: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 400px) {
  .footer-grid { grid-template-columns: 1fr; }
  .brand-text b { font-size: .95rem; }
  .site-header .brand-text span { display: none; }
  .site-actions .btn-primary { padding-inline: 12px; }
  .site-actions .btn-primary .label-short { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .site-actions .btn-primary .ic { margin: 0; }
}
@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 48px; }
  .site-nav a { padding: 10px 14px; }
}

/* ------------------------------------------------------------ booking rows (member + admin lists) */
.booking-row { align-items: center; }
.date-block { width: 52px; flex: none; text-align: center; background: var(--green-50); border: 1px solid var(--green-100); border-radius: 12px; padding: 6px 4px; line-height: 1.1; }
.date-block b { display: block; font-family: var(--display); font-size: 1.25rem; color: var(--green-900); }
.date-block span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--green-700); font-weight: 700; }
.row-menu { position: relative; }
.row-menu summary { list-style: none; cursor: pointer; }
.row-menu summary::-webkit-details-marker { display: none; }
.row-menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: min(320px, 86vw); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.row-menu-pop p { margin-bottom: 8px; }
@media (max-width: 640px) {
  .booking-row { flex-wrap: wrap; }
  .booking-row .grow { flex-basis: calc(100% - 66px); }
  .booking-row .chip { margin-left: 66px; }
  .row-menu { margin-left: auto; }
}
