/* Caddy Souq — heritage clubhouse look: deep forest green, cream paper, restrained gold.
   Headings and wordmark in Fraunces (serif), UI and body in Figtree (sans). One light theme. */
:root {
  color-scheme: light;

  /* Greens */
  --green-950: #0C2B1E;   /* demo strip, deepest band */
  --green-900: #123D2B;   /* header, hero, footer */
  --green-800: #184A35;   /* hover on green */
  --green-700: #1F5A40;   /* primary buttons, links */
  --green-100: #E3E9DC;   /* tinted fills on cream */

  /* Paper */
  --cream-50: #F7F2E6;    /* page */
  --cream-100: #EFE8D4;   /* category band, quiet fills */
  --cream-200: #E6DCC2;   /* image placeholder */
  --surface: #FFFDF7;     /* inputs, panels, cards that need a surface */

  /* Text and lines */
  --ink: #1B2A22;
  --muted: #56635A;       /* 5.1:1 on cream-100, 5.6:1 on cream-50 */
  --line: #DDD4BE;
  --line-strong: #C7BB9C;
  --on-green: #F7F2E6;    /* cream text on green */
  --on-green-muted: #BFC8B9;

  /* Gold */
  --gold: #B8963E;        /* rules, outlines, marks on green */
  --gold-bright: #C9A74E; /* gold text on green-900 (5.3:1) */
  --gold-ink: #7E6420;    /* gold text on cream (5.0:1 cream-50, 4.6:1 cream-100) */

  /* Semantic */
  --ok: #2F6B3F;
  --warn: #8A5A12;
  --bad: #A33A2E;

  --shadow: 0 1px 2px rgba(27, 42, 34, .06), 0 8px 24px rgba(27, 42, 34, .08);

  --serif: "Fraunces", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-xs: .78rem; --fs-sm: .9rem; --fs-md: 1rem; --fs-lg: 1.2rem; --fs-xl: 1.6rem; --fs-2xl: clamp(1.9rem, 3.6vw, 2.5rem);
  --fs-hero: clamp(2.6rem, 7.2vw, 5.4rem);
  --r: 4px;               /* cards, panels, images */
  --r-btn: 3px;
  --wrap: 1180px;
  --tabbar: 0px;
  --header-h: 92px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--cream-50); }
body {
  margin: 0; background: var(--cream-50); color: var(--ink);
  font: 400 var(--fs-md)/1.55 var(--sans);
  padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.12; text-wrap: balance; }
p { margin: 0; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.mono { font-family: var(--sans); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.eyebrow { font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.serif { font-family: var(--serif); }

/* ---------- Demo strip ---------- */
.demo-strip { background: var(--green-950); color: var(--on-green-muted); font-size: var(--fs-xs); border-bottom: 1px solid rgba(184, 150, 62, .28); }
.demo-strip .wrap { padding-block: 6px; display: flex; gap: 4px 12px; flex-wrap: wrap; align-items: center; justify-content: center; text-align: center; }
.demo-strip b { color: var(--gold-bright); font-weight: 600; letter-spacing: .04em; }
@media (max-width: 720px) { .demo-long { display: none; } }
.demo-strip button { background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 2px 0; color: var(--on-green); font-size: inherit; }

/* ---------- Header ---------- */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--green-900); color: var(--on-green); }
.topbar-in {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "nav brand right";
  align-items: center; gap: 8px 20px; padding-block: 18px;
}
.brand {
  grid-area: brand; display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--on-green);
  font: 500 1.6rem/1 var(--serif); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  font-variation-settings: "opsz" 72;
}
.brand:hover { color: var(--on-green); }
.brand svg { width: auto; height: 56px; aspect-ratio: 620 / 832; flex: none; color: var(--gold); }
.nav { grid-area: nav; display: flex; gap: 2px; justify-self: start; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--on-green-muted); font: 500 var(--fs-sm)/1 var(--sans); padding: 10px 10px; border-radius: var(--r-btn); letter-spacing: .01em; }
.nav a:hover { color: var(--on-green); }
.nav a[aria-current="page"] { color: var(--on-green); box-shadow: inset 0 -1px 0 var(--gold); border-radius: 0; }
.nav-right { grid-area: right; justify-self: end; display: flex; align-items: center; gap: 18px; }
.login { color: var(--on-green); text-decoration: none; font: 500 1.1rem/1 var(--serif); letter-spacing: .01em; padding: 10px 2px; }
.login:hover { color: var(--gold-bright); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--green-900); color: var(--on-green); text-decoration: none; font: 500 1rem/1 var(--serif); letter-spacing: .04em; flex: none; }
.topbar .avatar { background: var(--cream-50); color: var(--green-900); box-shadow: 0 0 0 1px var(--gold); }
.topbar .avatar:hover { color: var(--green-900); }

@media (max-width: 1100px) {
  :root { --header-h: 132px; }
  .topbar-in { grid-template-areas: ". brand right" "nav nav nav"; padding-block: 14px 6px; }
  .nav { justify-self: center; }
  .nav a { padding: 8px 10px; }
}

/* ---------- Bottom tab bar (phones) ---------- */
.tabbar { display: none; }
@media (max-width: 720px) {
  :root { --tabbar: 62px; --header-h: 70px; }
  .nav, .nav-right .sell-top { display: none; }
  .topbar-in { grid-template-areas: ". brand right"; padding-block: 12px; column-gap: 8px; }
  .brand { font-size: 1.12rem; gap: 9px; letter-spacing: .07em; }
  .brand svg { height: 42px; }
  .login { font-size: 1rem; }
  .avatar { width: 36px; height: 36px; font-size: .92rem; }
  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--cream-50); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px);
  }
  .tabbar a { position: relative; display: grid; justify-items: center; gap: 3px; padding: 9px 0 7px; text-decoration: none; color: var(--muted); font: 500 .7rem/1.1 var(--sans); letter-spacing: .01em; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--green-700); font-weight: 600; }
  .tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: -1px; left: 30%; right: 30%; height: 2px; background: var(--gold); }
  .tabbar a.tab-sell[aria-current="page"]::before { display: none; }
  .tabbar a.tab-sell span.dot { width: 42px; height: 42px; margin-top: -16px; border-radius: 50%; background: var(--green-700); color: var(--on-green); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--cream-50), 0 0 0 4px var(--gold); }
}

/* ---------- Buttons and controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: var(--r-btn); border: 1px solid transparent; font: 500 var(--fs-md)/1 var(--sans); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--green-700); color: var(--on-green); }
.btn-primary:hover { background: var(--green-900); color: var(--on-green); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--green-700); color: var(--green-900); background: var(--surface); }
.btn-cream { background: var(--cream-50); color: var(--green-900); border-color: var(--cream-50); }
.btn-cream:hover { background: #FFFFFF; color: var(--green-900); }
.btn-gold-line { background: transparent; color: var(--on-green); border-color: var(--gold); }
.btn-gold-line:hover { background: rgba(184, 150, 62, .14); color: var(--on-green); }
.btn-flag { background: var(--gold); color: var(--green-950); }
.btn-danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn-danger:hover { background: #FBEDEA; color: var(--bad); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: var(--fs-sm); }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--green-700); text-decoration: underline; cursor: pointer; text-underline-offset: 3px; font-size: inherit; }

.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.field .hint { font-size: var(--fs-xs); color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r-btn);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
}
.input::placeholder, .textarea::placeholder { color: #857C68; }
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(184, 150, 62, .35); }
.row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-btn); padding: 3px; background: var(--surface); flex-wrap: wrap; gap: 2px; justify-self: start; max-width: 100%; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 8px 14px; border-radius: 2px; cursor: pointer; font-size: var(--fs-sm); font-weight: 500; color: var(--muted); }
.seg label:hover { color: var(--ink); }
.seg input:checked + label { background: var(--green-700); color: var(--on-green); }
.seg input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green-700); flex: none; }

/* Badges: outlined rectangles, no dots */
.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px; border-radius: 3px;
  border: 1px solid var(--gold); background: transparent; color: var(--gold-ink);
  font: 500 var(--fs-xs)/1.15 var(--sans); letter-spacing: .02em; white-space: nowrap;
}
.pill.s-sold { color: var(--bad); border-color: var(--bad); }
.pill.s-active { color: var(--ok); border-color: var(--ok); }
.pill.s-removed { color: var(--muted); border-color: var(--line-strong); }
.pill.swap { color: var(--green-700); border-color: var(--green-700); background: var(--green-100); }
.pill.swap::before { content: "⇄"; font-size: .9em; line-height: 1; }
.pill.sample { color: var(--muted); border-color: var(--line-strong); border-style: dashed; }

/* ---------- Home: hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--green-900); color: var(--on-green); padding-block: clamp(56px, 9vw, 116px) clamp(64px, 9vw, 112px); text-align: center; isolation: isolate; }
.hero-mark { position: absolute; left: 50%; top: 50%; width: min(560px, 92vw); transform: translate(-50%, -52%); color: var(--on-green); opacity: .032; z-index: -1; pointer-events: none; }
.hero-mark svg { width: 100%; height: auto; display: block; }
.hero-mark svg circle { fill: var(--green-900); }
.hero-in { display: grid; justify-items: center; }
.hero h1 {
  font: 500 var(--fs-hero)/1.06 var(--serif); letter-spacing: 0; color: var(--on-green); max-width: 14em;
  font-variation-settings: "opsz" 72;
}
@media (max-width: 560px) { .hero h1 .hb { display: none; } }
.hero .lede { margin-top: clamp(18px, 2.4vw, 26px); font: 400 clamp(1.05rem, 1.8vw, 1.32rem)/1.5 var(--sans); color: var(--on-green); opacity: .92; max-width: 32em; }
.hero-cta { margin-top: clamp(28px, 3.6vw, 40px); display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 480px) { .hero-cta { display: grid; grid-template-columns: 1fr; width: 100%; max-width: 340px; } .hero-cta .btn { width: 100%; } }

/* ---------- Home: category strip ---------- */
.catstrip { background: var(--cream-100); border-bottom: 1px solid var(--line); }
.catstrip-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); scroll-snap-type: x proximity; }
.catstrip-scroll::-webkit-scrollbar { display: none; }
.catstrip-row { list-style: none; margin: 0 auto; padding: 18px 0 16px; display: flex; gap: clamp(8px, 3.2vw, 44px); width: max-content; }
.catstrip-row a { display: grid; justify-items: center; gap: 8px; min-width: 76px; padding: 4px 6px; text-decoration: none; color: var(--ink); font: 500 var(--fs-sm)/1.1 var(--sans); scroll-snap-align: start; border-radius: var(--r-btn); }
.catstrip-row a svg { width: 34px; height: 34px; color: var(--green-700); transition: transform .15s; }
.catstrip-row a:hover { color: var(--green-900); }
.catstrip-row a:hover span { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.catstrip-row a.more { color: var(--gold-ink); }
.catstrip-row a.more svg { color: var(--gold-ink); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(36px, 5vw, 60px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2, .section-head h1 { font: 500 var(--fs-2xl)/1.1 var(--serif); }
.section-title { font: 500 clamp(1.8rem, 3.4vw, 2.4rem)/1.1 var(--serif); text-align: center; margin-bottom: clamp(20px, 3vw, 32px); font-variation-settings: "opsz" 96; }
.more-link { text-align: center; margin-top: 26px; }
.more-link a { font-weight: 500; color: var(--green-700); text-decoration-color: var(--gold); }
.band { background: var(--cream-100); border-block: 1px solid var(--line); }

/* Trust row */
.trust { padding-block: 4px 8px; }
.trust-row { list-style: none; margin: 0; padding: 18px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; font-size: 1rem; color: var(--ink); }
.trust-row svg { width: 18px; height: 18px; color: var(--green-700); flex: none; }

/* Closing CTA */
.cta-band { text-align: center; padding-block: clamp(44px, 6vw, 72px) clamp(52px, 7vw, 84px); }
.cta-band h2 { font: 500 clamp(1.7rem, 3.4vw, 2.35rem)/1.15 var(--serif); max-width: 20em; margin: 0 auto 26px; font-variation-settings: "opsz" 96; }

/* ---------- Listing cards ---------- */
.grid { display: grid; gap: 28px 20px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; } }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.card-link:hover { color: inherit; }
.card-img { position: relative; aspect-ratio: 6 / 5; background: var(--cream-200); border-radius: 5px; overflow: hidden; max-width: 100%; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card-link:hover .card-img img { transform: scale(1.025); }
.sold-tag { position: absolute; left: 10px; top: 10px; background: var(--bad); color: #FFFFFF; font: 600 .74rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 6px 9px; border-radius: 2px; }
.card-body { padding: 12px 0 0; display: grid; gap: 7px; flex: 1; align-content: start; min-width: 0; }
.card-title { font: 500 1.06rem/1.3 var(--sans); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.card-link:hover .card-title { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.spec { font: 400 var(--fs-xs)/1.4 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.card-foot { margin-top: 2px; display: flex; justify-content: space-between; align-items: baseline; gap: 4px 8px; flex-wrap: wrap; }
.price { font: 500 1.08rem/1.1 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); letter-spacing: .005em; }
.loc { font-size: var(--fs-xs); color: var(--muted); }
.fav { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 253, 247, .9); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 3px rgba(27, 42, 34, .12); }
.fav:hover { color: var(--green-900); background: var(--surface); }
.fav svg { width: 18px; height: 18px; }
.fav.on { color: var(--bad); }
.fav.on svg path { fill: currentColor; }

/* ---------- Browse ---------- */
.browse { display: grid; gap: 28px; grid-template-columns: 264px minmax(0, 1fr); align-items: start; padding-block: 28px 56px; }
@media (max-width: 860px) { .browse { grid-template-columns: minmax(0, 1fr); gap: 18px; } }
.filters { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 16px); display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; }
@media (max-width: 860px) { .filters { position: static; padding: 14px 16px; } }
.filters details summary { cursor: pointer; font: 500 1.15rem/1.2 var(--serif); list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 28px; }
.filters details summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--gold-ink); border-bottom: 1.5px solid var(--gold-ink); transform: rotate(45deg); margin: -4px 4px 0 auto; transition: transform .15s; }
.filters details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.filters details summary .muted { font: 500 var(--fs-sm)/1 var(--sans); margin-left: 8px; color: var(--gold-ink); }
.filters details summary::-webkit-details-marker { display: none; }
.filters .f-body { display: grid; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.results-head { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.results-head h1 { font: 500 var(--fs-2xl)/1.05 var(--serif); }
.results-head .select { background-color: var(--surface); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; gap: 6px; align-items: center; min-height: 34px; padding: 6px 12px; border-radius: var(--r-btn); border: 1px solid var(--line-strong); background: var(--surface); font-size: var(--fs-sm); cursor: pointer; color: var(--ink); text-decoration: none; }
.chip:hover { border-color: var(--green-700); }
.chip[aria-pressed="true"], .chip.on { background: var(--green-900); color: var(--on-green); border-color: var(--green-900); }
.empty { padding: 44px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--r); display: grid; gap: 10px; justify-items: center; color: var(--muted); background: rgba(255, 253, 247, .5); }
.empty h3 { color: var(--ink); font: 500 var(--fs-xl)/1.15 var(--serif); }

/* ---------- Listing detail ---------- */
.detail { display: grid; gap: 28px 40px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: "g i" "d i"; grid-template-rows: auto 1fr; padding-block: 22px 56px; align-items: start; }
.detail > :first-child { grid-area: g; min-width: 0; }
.d-info { grid-area: i; min-width: 0; }
.d-desc { grid-area: d; min-width: 0; border-top: 1px solid var(--line); padding-top: 20px; }
.d-desc .desc { margin-top: 10px; }
@media (max-width: 900px) { .detail { grid-template-columns: minmax(0, 1fr); grid-template-areas: "g" "i" "d"; grid-template-rows: auto; gap: 24px; } }
.crumbs { font-size: var(--fs-sm); color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; padding-top: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green-700); text-decoration: underline; }
.crumbs span { color: var(--gold); }
.gallery-main { aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--cream-200); max-width: 100%; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 2px 2px 4px; }
.thumbs button { flex: none; width: 80px; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); padding: 0; cursor: pointer; background: var(--cream-200); opacity: .75; }
.thumbs button:hover { opacity: 1; }
.thumbs button[aria-current="true"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.d-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.d-title { font: 500 clamp(1.8rem, 3.2vw, 2.45rem)/1.1 var(--serif); letter-spacing: -.01em; overflow-wrap: anywhere; font-variation-settings: "opsz" 96; }
.d-price { font: 600 1.6rem/1 var(--sans); margin-top: 14px; font-variant-numeric: tabular-nums; color: var(--ink); }
.d-meta { display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; font-size: var(--fs-sm); color: var(--muted); }
/* Spec table (kept the "scorecard" class name for the markup) */
.scorecard { width: 100%; border-collapse: collapse; margin-top: 22px; font-size: var(--fs-sm); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.scorecard th, .scorecard td { padding: 11px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.scorecard th { width: 38%; font: 600 var(--fs-xs)/1.5 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding-right: 12px; }
.scorecard td { font-variant-numeric: tabular-nums; color: var(--ink); overflow-wrap: anywhere; }
.scorecard tr:last-child th, .scorecard tr:last-child td { border-bottom: 0; }
.actions { display: grid; gap: 10px; margin-top: 22px; }
.actions .two { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.actions .btn { min-height: 48px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.seller { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; margin-top: 22px; }
.seller .avatar { width: 48px; height: 48px; font-size: 1.1rem; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--gold); }
.seller b { font: 500 1.08rem/1.2 var(--serif); }
.desc { margin-top: 18px; white-space: pre-wrap; max-width: 65ch; line-height: 1.65; }
.note { font-size: var(--fs-xs); color: var(--muted); }
.wa-num { font-variant-numeric: tabular-nums; user-select: all; }

/* ---------- Forms and wizards ---------- */
.narrow { max-width: 760px; margin: 0 auto; padding-block: 32px 64px; }
.page-title { font: 500 var(--fs-2xl)/1.08 var(--serif); letter-spacing: -.01em; font-variation-settings: "opsz" 96; }
.progress { display: flex; gap: 6px; margin: 18px 0 22px; }
.progress span { flex: 1; height: 3px; border-radius: 0; background: var(--line); }
.progress span.done { background: var(--green-700); }
.progress span.cur { background: var(--gold); }
.step-label { font: 600 var(--fs-xs)/1 var(--sans); color: var(--gold-ink); text-transform: uppercase; letter-spacing: .14em; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 3.4vw, 32px); display: grid; gap: 20px; min-width: 0; }
.form-card h2 { font: 500 var(--fs-xl)/1.15 var(--serif); }
.form-card > .page-title { margin-bottom: -4px; }
.form-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 4px; padding-top: 18px; border-top: 1px solid var(--line); }
.cat-pick { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(142px, 1fr)); }
.cat-pick label { display: grid; gap: 10px; justify-items: start; padding: 14px 12px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; font-size: var(--fs-sm); font-weight: 500; background: var(--cream-50); min-width: 0; }
.cat-pick label:hover { border-color: var(--line-strong); background: var(--surface); }
.cat-pick label svg { width: 30px; height: 30px; color: var(--green-700); }
.cat-pick input { position: absolute; opacity: 0; pointer-events: none; }
.cat-pick input:checked + label { border-color: var(--green-700); background: var(--green-100); box-shadow: inset 0 0 0 1px var(--green-700); }
.cat-pick input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.cond-pick { display: grid; gap: 8px; }
.cond-pick label { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; background: var(--cream-50); align-items: center; }
.cond-pick label:hover { border-color: var(--line-strong); }
.cond-pick label:has(input:checked) { border-color: var(--green-700); background: var(--green-100); }
.cond-pick label b { font-weight: 600; }
.cond-pick label small { grid-column: 2; color: var(--muted); font-size: var(--fs-xs); }
.cond-pick input { accent-color: var(--green-700); width: 18px; height: 18px; }
.photo-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
.photo-tile { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--cream-200); max-width: 100%; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile .x { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(18, 61, 43, .85); color: var(--on-green); cursor: pointer; }
.photo-tile .cover { position: absolute; left: 6px; bottom: 6px; background: var(--green-900); color: var(--gold-bright); font: 600 .68rem/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; padding: 5px 7px; border-radius: 2px; }
.drop { display: grid; place-items: center; gap: 6px; aspect-ratio: 4 / 3; border: 1.5px dashed var(--line-strong); border-radius: var(--r); cursor: pointer; color: var(--muted); font-size: var(--fs-sm); text-align: center; padding: 8px; max-width: 100%; background: var(--cream-50); }
.drop svg { width: 24px; height: 24px; color: var(--gold-ink); }
.drop:hover, .drop.over { border-color: var(--green-700); color: var(--green-700); }
.pricecheck { background: var(--cream-50); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--r); padding: 14px 16px; font-size: var(--fs-sm); display: grid; gap: 8px; }
.pc-bar { position: relative; height: 6px; border-radius: 3px; background: var(--line); margin-top: 8px; }
.pc-bar i { position: absolute; top: -5px; width: 4px; height: 16px; border-radius: 1px; background: var(--ink); }
.pc-bar b { position: absolute; top: 0; height: 6px; border-radius: 3px; background: var(--green-700); opacity: .55; }
.pc-scale { display: flex; justify-content: space-between; gap: 8px; font: 500 var(--fs-xs)/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.review { display: grid; gap: 18px; grid-template-columns: 220px minmax(0, 1fr); }
@media (max-width: 600px) { .review { grid-template-columns: minmax(0, 1fr); } }
.error { color: var(--bad); font-size: var(--fs-sm); }
.error:empty { display: none; }

/* ---------- Messages ---------- */
.inbox { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); margin-block: 28px 56px; min-height: 520px; }
@media (max-width: 760px) { .inbox { grid-template-columns: minmax(0, 1fr); margin-block: 16px 32px; } .inbox.has-thread .threads { display: none; } .inbox:not(.has-thread) .thread { display: none; } }
.threads { border-right: 1px solid var(--line); overflow-y: auto; max-height: 72vh; min-width: 0; }
.threads a { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; border-left: 3px solid transparent; }
.threads a:hover { background: var(--cream-50); }
.threads a[aria-current="true"] { background: var(--cream-100); border-left-color: var(--gold); }
.threads img { width: 56px; height: 46px; object-fit: cover; border-radius: 3px; }
.threads .t-top { display: flex; justify-content: space-between; gap: 8px; font-size: var(--fs-sm); font-weight: 600; }
.threads .t-top span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.threads .t-last { font-size: var(--fs-xs); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; max-height: 72vh; }
.thread-head { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.thread-head img { width: 56px; height: 46px; object-fit: cover; border-radius: 3px; flex: none; }
.thread-head .grow { min-width: 0; flex: 1; }
.thread-head .grow a { font: 500 1.05rem/1.25 var(--serif); color: var(--ink); text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-head .grow a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.msgs { overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; background: var(--cream-50); min-height: 260px; }
.msg { max-width: min(78%, 46ch); padding: 10px 13px; border-radius: 6px 6px 6px 2px; background: var(--surface); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.me { align-self: flex-end; background: var(--green-700); color: var(--on-green); border-color: var(--green-700); border-radius: 6px 6px 2px 6px; }
.msg time { display: block; font: 500 .68rem/1 var(--sans); opacity: .72; margin-top: 5px; font-variant-numeric: tabular-nums; }
.composer { padding: 12px; border-top: 1px solid var(--line); display: grid; gap: 8px; min-width: 0; }
.composer form { display: flex; gap: 8px; min-width: 0; }
.composer .input { flex: 1; min-width: 0; }
.quick { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.quick .chip { flex: none; background: var(--cream-50); }

/* ---------- My listings ---------- */
.mine { display: grid; gap: 10px; }
.mine-row { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
.mine-row img { width: 104px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.mine-row > div:nth-child(2) { display: grid; gap: 5px; justify-items: start; }
.mine-row > div:nth-child(2) a { font: 500 1.05rem/1.25 var(--serif) !important; }
.mine-row .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 600px) { .mine-row { grid-template-columns: 80px minmax(0, 1fr); } .mine-row img { width: 80px; } .mine-row .acts { grid-column: 1 / -1; justify-content: flex-start; } }

/* ---------- Legal and info ---------- */
.prose { max-width: 68ch; }
.prose h1 { font: 500 var(--fs-2xl)/1.08 var(--serif); margin-bottom: 10px; letter-spacing: -.01em; font-variation-settings: "opsz" 96; }
.prose h2 { font: 500 1.3rem/1.25 var(--serif); margin: 30px 0 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.prose p, .prose li { color: var(--ink); line-height: 1.7; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; display: grid; gap: 6px; }
.prose li::marker { color: var(--gold); }
.prose .updated { font: 600 var(--fs-xs)/1 var(--sans); color: var(--gold-ink); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }

/* ---------- Footer ---------- */
.footer { background: var(--green-900); color: var(--on-green); margin-top: 56px; border-top: 1px solid rgba(184, 150, 62, .35); }
.home-page + .footer, .footer.flush { margin-top: 0; }
.footer .wrap { padding-block: 44px 36px; display: grid; gap: 28px; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .footer .wrap { grid-template-columns: 1fr 1fr; padding-block: 36px 28px; } .footer .wrap > :first-child { grid-column: 1 / -1; } }
.footer .brand { font-size: 1.2rem; gap: 10px; }
.footer-brand { display: inline-block; color: var(--gold-bright); line-height: 0; }
.footer-brand:hover { color: var(--gold-bright); }
.footer .brand-lockup { display: block; width: 168px; height: auto; }
.footer .brand-lockup .lk-text { fill: var(--on-green); }
@media (max-width: 760px) { .footer .brand-lockup { width: 148px; } }
.footer h4 { font: 600 var(--fs-xs)/1 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--gold-bright); margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--fs-sm); }
.footer a { color: var(--on-green); text-decoration: none; }
.footer a:hover { color: var(--on-green); text-decoration: underline; text-decoration-color: var(--gold); }
.footer .small { font-size: var(--fs-xs); color: var(--on-green-muted); }
.footer .wa-num { color: var(--on-green); }

/* ---------- Modal and toast ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(12, 43, 30, .55); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.modal { width: min(480px, 100%); background: var(--surface); border-radius: 6px; border-top: 3px solid var(--gold); padding: 24px; display: grid; gap: 14px; box-shadow: 0 20px 60px rgba(12, 43, 30, .3); max-height: 90vh; overflow-y: auto; }
.modal h3 { font: 500 var(--fs-xl)/1.15 var(--serif); }
.modal .btns { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.modal .cond-pick label { grid-template-columns: auto minmax(0, 1fr); }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + 20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 70; background: var(--green-900); color: var(--on-green); padding: 12px 18px; border-radius: var(--r-btn); border-left: 3px solid var(--gold); font-size: var(--fs-sm); font-weight: 500; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.loading { padding: 64px 0; text-align: center; color: var(--muted); font-family: var(--serif); font-style: italic; }

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lede, .hero-cta { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .lede { animation-delay: .08s; } .hero-cta { animation-delay: .16s; }
  .catstrip-row a:hover svg { transform: translateY(-2px); }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Mockup alignment: deep-green closing CTA, narrower featured row */
.cta-band .btn-primary { background: var(--green-900); }
.cta-band .btn-primary:hover { filter: brightness(1.15); }
#featured { max-width: 940px; margin-inline: auto; }

/* ---- icons.css: modern icon presentation ---- */
/* ---------- Icons (icons.js) ---------- */
/* Duotone tint layer: tuned per context, removed entirely in forced-colors */
svg .dt { opacity: .16; }
@media (forced-colors: active) { svg .dt { display: none; } }

/* Home category strip: icon sits in a soft squircle badge */
.catstrip-row a svg {
  box-sizing: border-box; width: 58px; height: 58px; padding: 12px;
  border-radius: 18px; background: var(--cream-50); color: var(--green-700);
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(27, 42, 34, .05);
  transition: transform .18s cubic-bezier(.2, .7, .2, 1), box-shadow .18s, background-color .18s, color .18s;
}
.catstrip-row a:hover svg { background: var(--surface); color: var(--green-900); box-shadow: inset 0 0 0 1px var(--gold), 0 6px 14px rgba(27, 42, 34, .10); }
.catstrip-row a:focus-visible { outline: none; }
.catstrip-row a:focus-visible svg { box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 3px var(--cream-100), 0 0 0 5px var(--gold); }
.catstrip-row a.more svg { background: transparent; color: var(--gold-ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.catstrip-row a.more:hover svg { background: var(--cream-50); box-shadow: inset 0 0 0 1.5px var(--gold); }
@media (max-width: 720px) {
  .catstrip-row a { min-width: 68px; }
  .catstrip-row a svg { width: 52px; height: 52px; padding: 11px; border-radius: 16px; }
}

/* Sell wizard category picker */
.cat-pick label svg {
  box-sizing: border-box; width: 46px; height: 46px; padding: 9px; border-radius: 14px;
  background: var(--green-100); color: var(--green-700); box-shadow: inset 0 0 0 1px rgba(31, 90, 64, .12);
  transition: background-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.cat-pick label:hover svg { background: var(--cream-100); box-shadow: inset 0 0 0 1px var(--line-strong); }
.cat-pick input:checked + label svg { background: var(--green-700); color: var(--on-green); box-shadow: inset 0 0 0 1px var(--green-900), 0 0 0 2px var(--surface), 0 0 0 3px var(--gold); }
.cat-pick input:checked + label svg .dt { opacity: .22; }

/* Phone tab bar: a touch larger, tint only on the active tab */
@media (max-width: 720px) {
  .tabbar a svg { width: 24px; height: 24px; stroke-width: 1.8; transition: transform .15s; }
  .tabbar a svg .dt { opacity: 0; transition: opacity .15s; }
  .tabbar a[aria-current="page"] svg .dt { opacity: .2; }
  .tabbar a.tab-sell span.dot svg { width: 22px; height: 22px; stroke-width: 2.1; }
}

/* Small inline contexts: drop the tint so 18px icons stay crisp */
.btn svg, .trust-row svg, .fav svg { stroke-width: 1.85; }
.btn svg .dt, .fav svg .dt { display: none; }
.trust-row svg { width: 20px; height: 20px; color: var(--green-700); }
.trust-row svg .dt { opacity: .14; }
.btn-primary svg .dt { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .catstrip-row a:hover svg { transform: translateY(-3px); }
  .catstrip-row a:active svg { transform: translateY(-1px) scale(.97); }
  .tabbar a:active svg { transform: scale(.92); }
}
@media (prefers-reduced-motion: reduce) {
  .catstrip-row a:hover svg { transform: none; }
}

/* ---- Logo refinements: simplified header mark, approved wordmark style, readable footer tagline ---- */
.brand .brand-word { text-transform: none; font-variant-caps: small-caps; font-size: 1.32em; letter-spacing: .05em; line-height: 1; }
.brand svg.mark-sm { height: 56px; width: auto; aspect-ratio: 200 / 240; color: var(--gold); }
@media (max-width: 720px) { .brand svg.mark-sm { height: 44px; } .brand .brand-word { font-size: 1.22em; } }
.footer-brand { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; line-height: 1; text-decoration: none; }
.footer-brand > svg:first-child { height: 92px; width: auto; color: var(--gold-bright); }
.footer-brand .wordmark { width: 176px; height: auto; color: var(--on-green); }
.footer-tagline { display: flex; align-items: center; gap: 8px; font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--on-green); opacity: .85; white-space: nowrap; }
.footer-tagline::before, .footer-tagline::after { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .6; }

/* =====================================================================
   Profiles: nationality flags + golf societies; Advertise & sponsor page;
   Admin inbox. (Added with migration 002.)
   ===================================================================== */
/* Flags: SVGs from flags/ (flag-icons, MIT). Hairline outline so white-edged flags read on cream. */
img.flag { display: inline-block; vertical-align: -2px; width: 20px; height: 15px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(27, 42, 34, .18); background: var(--cream-200); flex: none; }
.seller-name { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; overflow-wrap: anywhere; }
.seller-name img.flag { width: 22px; height: 16.5px; vertical-align: 0; }
.seller-soc { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; margin: 4px 0 2px; font-size: var(--fs-sm); color: var(--ink); overflow-wrap: anywhere; min-width: 0; }
.pill.soc { color: var(--green-700); border-color: var(--green-700); }
.nat-field .nat-q { min-height: 40px; }
.nat-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.nat-flag { width: 40px; display: grid; place-items: center; min-height: 30px; }
.nat-flag img.flag { width: 32px; height: 24px; border-radius: 3px; }
.nat-flag:empty::before { content: ""; width: 32px; height: 24px; border: 1px dashed var(--line-strong); border-radius: 3px; }
.nat-field .check { margin-top: 4px; }
.check input[disabled] + span { opacity: .6; }
.soc-other[hidden] { display: none; }
.soc-other { margin-top: 4px; }

/* Profile page: public preview and side cards */
.pub-preview { margin-bottom: 18px; display: grid; gap: 10px; }
.pub-preview .seller { margin-top: 0; border: 0; padding: 0; background: none; }
.side-cards { display: grid; gap: 12px; margin-top: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.link-card { display: grid; gap: 6px; text-decoration: none; color: var(--ink); border-left: 3px solid var(--gold); transition: border-color .15s, background-color .15s; }
.link-card b { font: 500 1.12rem/1.25 var(--serif); }
.link-card:hover { color: var(--ink); background: var(--cream-100); border-color: var(--line-strong); border-left-color: var(--green-700); }
.link-card:hover b { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* Advertise & sponsor */
.adv { padding-block: 32px 64px; }
.adv-head { max-width: 62ch; display: grid; gap: 12px; margin-bottom: 28px; }
.lede-sm { font-size: 1.06rem; line-height: 1.6; color: var(--ink); }
.adv-grid { display: grid; gap: 28px 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; }
@media (max-width: 900px) { .adv-grid { grid-template-columns: minmax(0, 1fr); } }
.adv-h2 { font: 500 var(--fs-xl)/1.15 var(--serif); margin-bottom: 14px; }
.adv-offers { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--ink); }
.adv-offers li { display: grid; gap: 4px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.adv-offers li b { font: 600 var(--fs-md)/1.3 var(--sans); }
.adv-offers li b::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; background: var(--gold); transform: rotate(45deg) translateY(-2px); }
.adv-offers li span { font-size: var(--fs-sm); color: var(--muted); }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
#enq-form { position: relative; }
#enq-form .form-nav { align-items: center; }
#enq-form .form-nav .note { max-width: 36ch; }
[aria-invalid="true"] { border-color: var(--bad) !important; }
.adv-done { justify-items: start; }
.adv-check { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--green-700); color: var(--on-green); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--gold); }
.adv-check svg { width: 24px; height: 24px; }
.adv-done .form-nav { width: 100%; }
@media (max-width: 480px) { #enq-form .seg label { padding: 8px 10px; } #enq-form .form-nav .btn, .adv-done .form-nav .btn { width: 100%; } }

/* Admin inbox */
.adm-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.adm-tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.adm-tabs a:hover { color: var(--ink); }
.adm-tabs a[aria-selected="true"] { color: var(--green-900); border-bottom-color: var(--gold); }
.adm-tabs .count { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--green-700); color: var(--on-green); font: 600 .72rem/20px var(--sans); text-align: center; }
.adm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.adm-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 8px; min-width: 0; }
.adm-top { display: flex; gap: 6px 8px; flex-wrap: wrap; align-items: center; }
.adm-top .note { margin-left: auto; }
.adm-who { font-size: 1.02rem; overflow-wrap: anywhere; }
.adm-who b, .adm-who a { font: 500 1.08rem/1.3 var(--serif); }
.adm-contact { font-size: var(--fs-sm); color: var(--muted); overflow-wrap: anywhere; }
.adm-msg { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; font-size: var(--fs-sm); background: var(--cream-50); border-left: 2px solid var(--line-strong); padding: 8px 12px; }
.adm-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.adm-status { width: auto; min-width: 150px; min-height: 40px; }
.pill.st-new { color: var(--green-700); border-color: var(--green-700); background: var(--green-100); }
.pill.st-contacted { color: var(--warn); border-color: var(--warn); }
.pill.st-closed { color: var(--muted); border-color: var(--line-strong); }

/* =====================================================================
   REDESIGN 2026-10 (marked blocks). Sources: marketing/competitor-review.md
   (recs 2, 3, 4, 9, 10), marketing/site-audit.md (fixes 1, 2, 6, 7, 10–12, 15),
   marketing/landing-copy.md (claim-safe copy, variant B).
   ===================================================================== */

/* ---- R1. Self-hosted fonts (audit fix 6). Latin files are preloaded in index.html; latin-ext
   only downloads when a page uses those characters (e.g. "Łukasz"). ---- */
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/figtree-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/figtree-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/fraunces-latin-opsz-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/fraunces-latin-ext-opsz-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---- R2. Layout stability (audit fix 2): main keeps a screen of height while data loads, so the
   footer never jumps; skeleton cards hold the real cards' shape. ---- */
#main { min-height: 100vh; }
.skel .card-img { background: linear-gradient(100deg, var(--cream-200) 30%, var(--cream-100) 50%, var(--cream-200) 70%) 0 0 / 300% 100%; }
.skel .card-body i { display: block; height: 12px; border-radius: 2px; background: var(--cream-200); }
.skel .card-body i:nth-child(1) { width: 52%; }
.skel .card-body i:nth-child(2) { width: 88%; height: 16px; }
.skel .card-body i:nth-child(3) { width: 40%; height: 16px; }
@media (prefers-reduced-motion: no-preference) { .skel .card-img { animation: skel 1.4s linear infinite; } @keyframes skel { to { background-position: -150% 0; } } }

/* ---- R3. Accessibility (audit §3, fixes 12 and 15) ---- */
/* Focus ring: green on light surfaces (about 7:1 on cream), bright gold on green ones. */
:focus-visible { outline-color: var(--green-700); }
.topbar :focus-visible, .hero :focus-visible, .footer :focus-visible, .demo-strip :focus-visible { outline-color: var(--gold-bright); }
.hero .qs :focus-visible { outline-color: var(--green-700); }
.seg input:focus-visible + label, .cat-pick input:focus-visible + label { outline-color: var(--green-700); }
.catstrip-row a:focus-visible svg { box-shadow: inset 0 0 0 1px var(--green-700), 0 0 0 3px var(--cream-100), 0 0 0 5px var(--green-700); }
.cond-pick label:has(input:focus-visible) { outline: 2px solid var(--green-700); outline-offset: 2px; }
/* Footer headings are h2 now (heading order), styled as before. */
.footer .footer-h { font: 600 var(--fs-xs)/1 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--gold-bright); margin-bottom: 12px; }
.footer ul a { display: inline-block; padding-block: 5px; }
/* Profile setup step title is the page's h1. */
.form-card .wz-title { font: 500 var(--fs-xl)/1.15 var(--serif); }
/* Comfortable tap targets */
.fav { width: 44px; height: 44px; top: 6px; right: 6px; }
.login { min-height: 44px; display: inline-flex; align-items: center; }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; }

/* ---- R4. Home hero with quick search (competitor rec 4, audit fix 7) ---- */
.hero.hero-search { padding-block: clamp(36px, 6.4vw, 84px) clamp(36px, 5.6vw, 72px); }
.hero .hero-claim { display: inline-block; color: var(--gold-bright); margin-bottom: clamp(16px, 2.2vw, 24px); padding: 9px 14px 8px; border: 1px solid var(--gold); border-radius: 2px; letter-spacing: .16em; }
.hero-search h1 { font-size: clamp(2.2rem, 6vw, 4.6rem); max-width: 15em; }
.qs { margin-top: clamp(24px, 3.2vw, 36px); width: 100%; max-width: 880px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 8px; background: var(--cream-50); border-radius: var(--r); box-shadow: 0 0 0 1px rgba(184, 150, 62, .5), 0 18px 40px rgba(6, 26, 17, .35); }
.qs-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.qs .select { min-height: 50px; border-color: var(--line); background-color: var(--surface); font-weight: 500; text-overflow: ellipsis; }
.qs .select:disabled { color: var(--muted); background-color: var(--cream-100); cursor: not-allowed; }
.qs-go { min-height: 50px; padding: 0 26px; font-size: 1.05rem; font-weight: 600; }
.qs-go svg { width: 20px; height: 20px; stroke-width: 2.2; }
.qs-more { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 22px; }
.qs-tiles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.qtile { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--gold); border-radius: 20px; color: var(--on-green); text-decoration: none; font: 500 var(--fs-sm)/1 var(--sans); letter-spacing: .01em; }
.qtile:hover { background: rgba(201, 167, 78, .16); color: var(--on-green); }
.hero-sell { display: inline-flex; align-items: center; gap: 2px; min-height: 40px; color: var(--gold-bright); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(201, 167, 78, .5); text-underline-offset: 4px; }
.hero-sell:hover { color: var(--on-green); }
.hero-sell svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: no-preference) { .hero .hero-claim, .qs, .qs-more { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; } .qs { animation-delay: .2s; } .qs-more { animation-delay: .26s; } }
@media (max-width: 760px) {
  .qs { grid-template-columns: minmax(0, 1fr); }
  .qs-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qs-go { width: 100%; }
}
@media (max-width: 520px) {
  .hero.hero-search { padding-block: 26px 28px; }
  .hero .hero-claim { font-size: .68rem; letter-spacing: .08em; padding: 7px 10px 6px; margin-bottom: 14px; }
  .hero-search h1 { font-size: clamp(2rem, 9.4vw, 2.5rem); }
  .hero-search .lede { display: none; }
  .qs { margin-top: 20px; padding: 6px; gap: 6px; }
  .qs-fields { gap: 6px; }
  .qs .select { min-height: 46px; padding: 8px 10px; font-size: .95rem; }
  .qs-go { min-height: 48px; }
  .qs-more { margin-top: 14px; gap: 10px 14px; }
  .qtile { min-height: 38px; padding: 0 13px; }
}

/* Just listed + seller recruitment panel (competitor rec 9 / review §J) */
.section.just { padding-block: clamp(28px, 4vw, 52px); }
#featured { max-width: 1000px; }
@media (max-width: 520px) { #featured > .card:nth-child(n+5) { display: none; } }
.seed-panel { max-width: 720px; margin: 0 auto; text-align: center; display: grid; justify-items: center; gap: 12px; padding: clamp(28px, 4vw, 44px) clamp(18px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--r); }
.seed-title { font: 500 clamp(1.7rem, 3.4vw, 2.3rem)/1.12 var(--serif); font-variation-settings: "opsz" 96; }
.seed-panel p:not(.eyebrow) { color: var(--muted); max-width: 46ch; }
.seed-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
@media (max-width: 480px) { .seed-cta { display: grid; width: 100%; } }

/* Search smarter cards */
.smart-grid { list-style: none; margin: 0 auto; padding: 0; max-width: 1040px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .smart-grid { grid-template-columns: 1fr; max-width: 560px; gap: 14px; } }
.smart-card { background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: var(--r); padding: 24px 22px 26px; }
.smart-card svg { width: 32px; height: 32px; color: var(--green-700); }
.smart-card h3 { font: 500 1.3rem/1.2 var(--serif); margin: 14px 0 8px; color: var(--ink); }
.smart-card p { color: var(--muted); }
.smart-note { text-align: center; margin-top: 24px; font: 600 var(--fs-sm)/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }

/* Gold banner */
.claim-banner { background: var(--gold-bright); color: var(--green-950); text-align: center; padding-block: clamp(30px, 4.4vw, 52px); border-block: 1px solid var(--gold); }
.claim-banner h2 { font: 500 clamp(1.55rem, 3.4vw, 2.5rem)/1.15 var(--serif); max-width: 24em; margin: 0 auto; font-variation-settings: "opsz" 96; }
.claim-banner h2 span { font-style: italic; white-space: nowrap; }

/* Comparison table: a real table on wide screens, one card per row on phones, collapsed by default there */
.cmp-details { max-width: 960px; margin: 0 auto; }
.cmp-details > summary { display: none; }
.cmp-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.cmp-table th, .cmp-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cmp-table tbody tr:last-child > * { border-bottom: 0; }
.cmp-table thead th { font: 600 var(--fs-sm)/1.2 var(--sans); color: var(--ink); background: var(--cream-50); }
.cmp-table thead th:nth-child(2) { background: var(--green-900); color: var(--on-green); }
.cmp-table tbody th { font: 500 1rem/1.35 var(--serif); color: var(--ink); width: 28%; }
.cmp-table td:nth-of-type(1) { background: var(--green-100); }
.cmp-v { display: flex; gap: 8px; align-items: flex-start; color: var(--ink); line-height: 1.4; }
.cmp-v svg { width: 18px; height: 18px; flex: none; margin-top: 1px; stroke-width: 2.2; }
.cmp-yes svg { color: var(--ok); }
.cmp-no svg { color: var(--bad); }
.cmp-some { color: var(--muted); }
.cmp-some i { flex: none; width: 18px; height: 18px; position: relative; }
.cmp-some i::before { content: ""; position: absolute; left: 4px; right: 4px; top: 9px; height: 2px; border-radius: 1px; background: var(--line-strong); }
.cmp-note { margin: 14px auto 0; max-width: 70ch; font-size: var(--fs-sm); color: var(--muted); text-align: center; }
@media (max-width: 720px) {
  .cmp-details > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px; cursor: pointer; list-style: none; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-btn); font-weight: 600; color: var(--green-900); }
  .cmp-details > summary::-webkit-details-marker { display: none; }
  .cmp-details > summary::after { content: "+"; font: 400 1.5rem/1 var(--sans); color: var(--gold-ink); }
  .cmp-details[open] > summary { margin-bottom: 14px; }
  .cmp-details[open] > summary::after { content: "\2212"; }
}
@media (max-width: 640px) {
  .cmp-box { background: none; border: 0; overflow: visible; }
  .cmp-table, .cmp-table tbody, .cmp-table tr, .cmp-table th, .cmp-table td { display: block; width: auto; }
  .cmp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp-table tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; overflow: hidden; }
  .cmp-table tbody th { width: auto; padding: 12px 14px 10px; border-bottom: 1px solid var(--line); background: var(--cream-50); }
  .cmp-table td { display: grid; grid-template-columns: 8.4em minmax(0, 1fr); gap: 10px; padding: 10px 14px; }
  .cmp-table td::before { content: attr(data-label); content: attr(data-label) / ""; font-weight: 600; color: var(--ink); line-height: 1.4; }
  .cmp-table tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
  .cmp-table tbody tr > td:last-child { border-bottom: 0; }
}
.cta-band { border-top: 1px solid var(--line); }

/* ---- R5. Golf-first listing cards (competitor rec 2) ---- */
.card-body { gap: 5px; }
.spec-top { font: 600 .8rem/1.3 var(--sans); color: var(--green-700); letter-spacing: .02em; text-transform: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .price { font-size: 1.14rem; font-weight: 600; }
.card-link > .card-img { order: -1; }
.card-body > .spec-top { order: -1; }
.empty .empty-h { color: var(--ink); font: 500 var(--fs-xl)/1.15 var(--serif); }
.card-tags { margin-top: 2px; }
.cgrade { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: baseline; gap: 1px; padding: 5px 8px 4px; border-radius: 3px; background: rgba(255, 253, 247, .95); color: var(--ink); font: 500 .72rem/1 var(--sans); font-variant-numeric: tabular-nums; box-shadow: 0 1px 3px rgba(27, 42, 34, .16); white-space: nowrap; }
.cgrade b { font-weight: 700; font-size: .86rem; color: var(--green-900); }
.cgrade-l { color: var(--muted); }
.cphotos { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border-radius: 3px; background: rgba(12, 43, 30, .78); color: #FFFDF7; font: 600 .72rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.cphotos svg { width: 13px; height: 13px; stroke-width: 2; }
@media (max-width: 380px) { .cgrade-l { display: none; } }

/* Result count is the h2 under the page h1 (heading order), styled as a quiet line. */
.r-count { margin-bottom: 12px; font: 400 var(--fs-sm)/1.4 var(--sans); color: var(--muted); }

/* ---- R6. Browse empty states (competitor rec 9, audit fix 11) ---- */
.empty-acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.soon { margin-left: 8px; padding: 3px 6px; border-radius: 2px; background: var(--cream-100); border: 1px dashed var(--line-strong); color: var(--gold-ink); font: 600 .66rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }

/* ---- R7. Listing page (competitor rec 10, rec 3; audit fix 10) ---- */
.g-note { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.g-note svg { width: 15px; height: 15px; color: var(--green-700); }
.d-spec { font: 600 .9rem/1.3 var(--sans); color: var(--green-700); margin-bottom: 8px; letter-spacing: .02em; }
a.cgrade-pill { color: var(--green-900); border-color: var(--green-700); background: var(--green-100); text-decoration: none; font-weight: 600; min-height: 28px; }
a.cgrade-pill:hover { background: var(--surface); color: var(--green-900); }
.cond-note { display: grid; gap: 8px; margin-top: 16px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font-size: var(--fs-sm); }
.cond-note p { line-height: 1.5; }
.cond-note a { white-space: nowrap; }
.cbar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; max-width: 220px; }
.cbar i { height: 6px; border-radius: 1px; background: var(--line); }
.cbar i.on { background: var(--green-700); }
.scorecard.grouped tbody + tbody .sg-h th { padding-top: 18px; }
.scorecard .sg-h th { width: auto; padding: 12px 4px 6px; font: 600 var(--fs-xs)/1 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--gold-ink); border-bottom: 1px solid var(--line-strong); }
.scorecard td a { color: var(--green-700); }
.safe-meet { margin-top: 16px; border-left: 3px solid var(--green-700); }
.sm-h { display: flex; align-items: center; gap: 8px; font: 500 1.12rem/1.2 var(--serif); }
.sm-h svg { width: 20px; height: 20px; color: var(--green-700); }
.safe-meet ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 5px; font-size: var(--fs-sm); }
.safe-meet li::marker { color: var(--gold); }
.sm-links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-top: 10px; font-size: var(--fs-sm); }
.sm-links a, .sm-links .linkbtn { display: inline-flex; align-items: center; min-height: 44px; }
.sm-links span { color: var(--gold); }
.rail { margin-top: clamp(28px, 4vw, 44px); padding-top: 22px; border-top: 1px solid var(--line); }
.rail + .rail { margin-top: 28px; }
.rail-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.rail-title { font: 500 var(--fs-xl)/1.15 var(--serif); }
.rail-head a { font-weight: 500; font-size: var(--fs-sm); text-decoration-color: var(--gold); }
.rail-row { display: grid; gap: 22px 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.detail + #rails { padding-bottom: 8px; }
@media (max-width: 720px) {
  .rail-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(150px, 44%); gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: thin; }
  .rail-row > .card { scroll-snap-align: start; }
}
/* Sticky contact bar on phones, above the tab bar */
.buybar { display: none; }
@media (max-width: 720px) {
  /* The tab bar is exactly --tabbar tall, so the bar above it (and body padding) line up. */
  .tabbar { min-height: calc(var(--tabbar) + env(safe-area-inset-bottom, 0px)); }
  .buybar { display: block; position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom, 0px)); z-index: 25; background: var(--surface); border-top: 1px solid var(--line-strong); box-shadow: 0 -6px 18px rgba(27, 42, 34, .08); }
  .buybar-in { display: flex; align-items: center; gap: 10px; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); }
  .bb-txt { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
  .bb-txt b { font: 600 1.06rem/1.2 var(--sans); font-variant-numeric: tabular-nums; }
  .bb-txt span { font-size: var(--fs-xs); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .buybar .btn { min-height: 46px; padding: 0 16px; }
  .buybar .bb-wa { width: 46px; padding: 0; }
  body.has-buybar { padding-bottom: calc(var(--tabbar) + 64px + env(safe-area-inset-bottom, 0px)); }
  body.has-buybar .toast { bottom: calc(var(--tabbar) + 80px + env(safe-area-inset-bottom, 0px)); }
}

/* ---- R8. Condition guide page (competitor rec 3) ---- */
.cg { max-width: 920px; padding-block: 32px 64px; }
.cg-head { display: grid; gap: 12px; max-width: 64ch; }
.cg-flag { display: flex; gap: 10px; align-items: flex-start; margin-top: 6px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--r); font-size: var(--fs-sm); }
.cg-flag svg { width: 20px; height: 20px; flex: none; color: var(--green-700); margin-top: 1px; }
.cg-scale { margin: 28px 0 8px; }
.cg-scale ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.cg-step { display: grid; gap: 4px; padding: 14px 10px 12px; border-radius: 2px; text-align: center; color: var(--on-green); }
.cg-step.g-fair { background: #4A6E59; } .cg-step.g-good { background: #3F6A52; } .cg-step.g-very-good { background: #2F6448; } .cg-step.g-mint { background: var(--green-700); } .cg-step.g-new { background: var(--green-900); box-shadow: inset 0 -3px 0 var(--gold); }
.cg-score { font: 500 clamp(1.5rem, 4vw, 2.2rem)/1 var(--serif); font-variant-numeric: tabular-nums; }
.cg-lab { font: 600 var(--fs-xs)/1.2 var(--sans); letter-spacing: .04em; }
.cg-list { display: grid; gap: 0; margin-top: 18px; border-top: 1px solid var(--ink); }
.cg-grade { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 18px; padding: 22px 2px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.cg-badge { width: 72px; height: 72px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong), 0 0 0 3px var(--cream-50), 0 0 0 4px var(--gold); color: var(--green-900); }
.cg-badge b { font: 500 1.6rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.cg-badge span { font: 600 .68rem/1 var(--sans); color: var(--muted); margin-top: 2px; }
.cg-grade h2 { font: 500 var(--fs-xl)/1.15 var(--serif); }
.cg-sum { margin-top: 6px; font-weight: 500; }
.cg-grade dl { margin: 12px 0 0; display: grid; grid-template-columns: minmax(120px, 210px) minmax(0, 1fr); gap: 8px 16px; font-size: var(--fs-sm); }
.cg-grade dt { font: 600 var(--fs-xs)/1.5 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.cg-grade dd { margin: 0; line-height: 1.55; }
@media (max-width: 600px) {
  .cg-grade { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cg-badge { width: 58px; height: 58px; } .cg-badge b { font-size: 1.3rem; }
  .cg-grade dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .cg-grade dd + dt { margin-top: 8px; }
  .cg-step { padding: 10px 2px 9px; } .cg-lab { font-size: .64rem; letter-spacing: 0; }
}
.cg-check { margin-top: 32px; padding: clamp(18px, 3vw, 28px); display: grid; gap: 10px; border-top: 3px solid var(--green-700); }
.cg-check h2 { font: 500 var(--fs-xl)/1.15 var(--serif); }
.cg-checks { margin: 6px 0 0; padding: 0; list-style: none; counter-reset: ck; display: grid; gap: 10px; }
.cg-checks li { counter-increment: ck; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 10px; font-size: var(--fs-sm); line-height: 1.5; }
.cg-checks li::before { content: counter(ck); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--green-100); color: var(--green-900); font: 600 .8rem/1 var(--sans); }
.cg-checks b { font-weight: 600; }
.cg-checks span { color: var(--muted); }
.cg-more { font-size: var(--fs-sm); margin-top: 4px; }
.cg-sell { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }

/* ---- R9. Sell wizard: grade next to each condition ---- */
.cscore { margin-left: 6px; font: 600 var(--fs-xs)/1 var(--sans); color: var(--green-700); font-variant-numeric: tabular-nums; }
/* Footer logo: a hidden text span now comes first in the link, so target the mark by type. */
.footer-brand > svg:first-of-type { height: 92px; width: auto; color: var(--gold-bright); }
/* ===================== END REDESIGN 2026-10 ===================== */

/* ---- Header logo, larger (16 Oct 2026) ---- */
.topbar .brand { font-size: 2rem; gap: 18px; }
.topbar .brand svg.mark-sm { height: 76px; }
.topbar-in { padding-block: 14px; }
@media (min-width: 721px) { :root { --header-h: 104px; } }
@media (max-width: 720px) {
  /* The bottom tab bar already carries Sign in / Profile, so the header shows only the logo, centred. */
  .topbar-in { grid-template-columns: 1fr; grid-template-areas: "brand"; justify-items: center; padding-block: 12px; }
  .topbar .nav-right { display: none; }
  .topbar .brand { font-size: 1.45rem; gap: 12px; }
  .topbar .brand svg.mark-sm { height: 60px; }
  :root { --header-h: 84px; }
}

/* ---------- Admin: member numbers ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 2px; min-width: 0; }
.stat-num { font: 600 2rem/1.1 var(--serif, Georgia, serif); color: var(--green-900); font-variant-numeric: tabular-nums; }
.stat-label { font-weight: 600; color: var(--ink); }
.adm-h2 { font-size: 1.15rem; margin: 26px 0 4px; }
.wk-chart { list-style: none; margin: 12px 0 0; padding: 12px 8px 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.wk { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; height: 160px; }
.wk-bar { width: 100%; max-width: 34px; background: var(--green-700); border-radius: 4px 4px 0 0; flex: none; }
.wk-now .wk-bar { background: var(--gold); }
.wk-n { font: 600 .78rem/1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.wk-d { font-size: .68rem; color: var(--muted); white-space: nowrap; padding-bottom: 6px; }
@media (max-width: 720px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-num { font-size: 1.6rem; }
  .wk-d { font-size: .6rem; line-height: 14px; height: 20px; visibility: hidden; }
  .wk:nth-child(3n) .wk-d, .wk-now .wk-d { visibility: visible; }
  .wk-n { font-size: .7rem; }
}
