/* Hey Bath design system — hb.css v1 (3 Oct 2026)
   The one stylesheet for heybath.uk. Documented with live examples at https://heybath.uk/design/
   Rules: no new colours, fonts, radii or components outside this file. Add here, document there. */

/* ---------- 1. Tokens ---------- */
:root {
  /* colour: ink */
  --ink: #121214;          /* headlines, wordmark */
  --ink-2: #3a3a40;        /* strong body */
  --grey: #6b6b72;         /* body copy */
  --muted: #9a9aa2;        /* meta, stamps, placeholders */
  --line: #e6e8ee;         /* thin borders, dividers */
  --line-2: #d9dce5;       /* input borders, hover */
  /* colour: surfaces */
  --white: #ffffff;
  --paper: #f4f4f6;        /* feature cards, quiet panels */
  --page-a: #dfe9f2;       /* page gradient start (top-left, sky) */
  --page-b: #e3e0f3;       /* page gradient end (bottom-right, lilac) */
  /* colour: accents */
  --blue: #3d55cc;         /* eyebrows, links, focus */
  --blue-2: #4a6cf7;       /* pill gradient start */
  --violet: #7a52f4;       /* pill gradient end */
  --grad-pill: linear-gradient(90deg, var(--blue-2), var(--violet));
  --panel-pink: linear-gradient(135deg, #fde7fb, #f1e6fd);
  --panel-blue: linear-gradient(135deg, #e3ecfd, #c9d2f5);
  /* colour: pastels (tinted cards, icon squares, tags) */
  --sky: #d2eef8;   --sky-ink: #0e3c46;
  --lilac: #cab7f6; --lilac-ink: #2d1f63;
  --peach: #fad1c4; --peach-ink: #4a1e12;
  --mint: #a9dcb8;  --mint-ink: #0f3b22;
  --pink: #fdeefc;  --pink-ink: #7a2d8a;
  --sky-soft: #e7f7ff; --peach-soft: #feece9; --mint-soft: #e6f6ea; --lilac-soft: #efe9fd;
  /* colour: states */
  --ok: #1f8a4c; --warn: #b7791f; --bad: #c0392b; --bad-soft: #fdecea;
  /* type */
  --font-head: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-hero: clamp(40px, 7vw, 72px);   /* home H1 */
  --fs-1: clamp(32px, 5vw, 56px);      /* page H1 */
  --fs-2: clamp(26px, 3.6vw, 40px);    /* section title */
  --fs-3: 24px;                        /* card title, quote */
  --fs-4: 20px;                        /* row title, tile title */
  --fs-lede: 18px; --fs-body: 17px; --fs-small: 14px; --fs-tiny: 12px;
  --fs-num: clamp(40px, 6vw, 64px);    /* big number on a tile */
  --lh-tight: 1.05; --lh-head: 1.15; --lh-body: 1.6;
  --track-head: -0.03em; --track-tight: -0.02em;
  /* space (8-point) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --gutter: 24px; --gap: 24px;
  --section: 96px;                      /* vertical rhythm between sections, desktop */
  /* shape */
  --r-sm: 10px; --r: 16px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;
  --shadow: 0 1px 2px rgba(18,18,20,.04), 0 8px 24px rgba(18,18,20,.06);
  --shadow-lift: 0 2px 4px rgba(18,18,20,.05), 0 16px 40px rgba(18,18,20,.10);
  /* layout */
  --max: 1200px; --max-text: 720px; --nav-h: 72px; --tap: 44px;
}
@media (max-width: 767px) { :root { --gutter: 16px; --gap: 16px; --section: 56px; --nav-h: 64px; --fs-3: 22px; --fs-4: 18px; --fs-lede: 17px; --fs-body: 16px; } }

/* ---------- 2. Fonts (self-hosted, latin subsets; never a third-party stylesheet) ---------- */
@font-face { font-family: "Inter Tight"; font-weight: 700; font-style: normal; font-display: swap; src: url(/assets/fonts/inter-tight-700.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 800; font-style: normal; font-display: swap; src: url(/assets/fonts/inter-tight-800.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url(/assets/fonts/inter-400.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url(/assets/fonts/inter-500.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url(/assets/fonts/inter-600.woff2) format("woff2"); }

/* ---------- 3. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: linear-gradient(135deg, var(--page-a), var(--page-b)) fixed; color: var(--grey); font: var(--fs-body)/var(--lh-body) var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: var(--r-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 4. Layout: sheet, container, section, grid, bento ---------- */
.sheet { background: var(--white); border-radius: var(--r-xl); margin: var(--s-5) auto; max-width: calc(var(--max) + 2 * var(--s-8)); box-shadow: var(--shadow); overflow: clip; }
@media (max-width: 767px) { .sheet { margin: 0; border-radius: 0; box-shadow: none; } }
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container-text { max-width: var(--max-text); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: calc(var(--section) / 2) 0; }
.section-head { max-width: var(--max-text); margin-bottom: var(--s-6); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(12, 1fr); }
.col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; } .col-6 { grid-column: span 6; } .col-8 { grid-column: span 8; } .col-12 { grid-column: span 12; }
.cards-2 { display: grid; gap: var(--gap); grid-template-columns: repeat(2, 1fr); }
.cards-3 { display: grid; gap: var(--gap); grid-template-columns: repeat(3, 1fr); }
.cards-4 { display: grid; gap: var(--gap); grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } .cards-3 { grid-template-columns: repeat(2, 1fr); } .col-3, .col-4 { grid-column: span 6; } }
@media (max-width: 767px) { .cards-2, .cards-3, .cards-4 { grid-template-columns: 1fr; } .col-3, .col-4, .col-6, .col-8 { grid-column: span 12; } }
/* Bento: 4 columns × 2 rows on desktop; tiles span with .b-wide (2 cols) and .b-tall (2 rows). Always square-ish cells. */
.bento { display: grid; gap: var(--gap); grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(200px, 1fr); }
.b-wide { grid-column: span 2; } .b-tall { grid-row: span 2; }
@media (max-width: 1023px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(150px, 1fr); } .b-tall { grid-row: span 1; } }
.split { display: grid; gap: var(--s-8); grid-template-columns: 1.1fr .9fr; align-items: center; }
@media (max-width: 767px) { .split { grid-template-columns: 1fr; gap: var(--s-6); } }
.stack > * + * { margin-top: var(--s-4); }
.row-flex { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.right { margin-left: auto; }

/* ---------- 5. Typography ---------- */
.eyebrow { display: block; color: var(--blue); font: 600 var(--fs-small)/1.3 var(--font-body); letter-spacing: 0; margin-bottom: var(--s-3); }
.h-hero, .h-1, .h-2, .h-3, .h-4 { font-family: var(--font-head); color: var(--ink); font-weight: 800; letter-spacing: var(--track-head); text-wrap: balance; }
.h-hero { font-size: var(--fs-hero); line-height: var(--lh-tight); }
.h-1 { font-size: var(--fs-1); line-height: 1.08; }
.h-2 { font-size: var(--fs-2); line-height: 1.1; }
.h-3 { font-size: var(--fs-3); line-height: 1.2; font-weight: 700; letter-spacing: var(--track-tight); }
.h-4 { font-size: var(--fs-4); line-height: 1.25; font-weight: 700; letter-spacing: var(--track-tight); }
.lede { font-size: var(--fs-lede); line-height: 1.55; color: var(--grey); max-width: var(--max-text); margin-top: var(--s-4); }
.body { font-size: var(--fs-body); color: var(--grey); }
.strong { color: var(--ink-2); font-weight: 600; }
.small { font-size: var(--fs-small); line-height: 1.5; }
.tiny { font-size: var(--fs-tiny); line-height: 1.4; }
.muted { color: var(--muted); }
.num { font-family: var(--font-head); font-weight: 800; letter-spacing: var(--track-head); color: var(--ink); font-size: var(--fs-num); line-height: 1; font-variant-numeric: tabular-nums; }
.prose > * + * { margin-top: var(--s-4); }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { list-style: disc; padding-left: 1.25em; }
.link { color: var(--blue); font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-arrow::after { content: " \2197"; font-weight: 400; }

/* ---------- 6. Buttons, pills, tags ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: var(--tap); padding: 0 var(--s-5); border-radius: var(--r-pill); border: 1px solid transparent; font: 600 16px/1 var(--font-body); cursor: pointer; white-space: nowrap; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.btn:hover { transform: translateY(-1px); } .btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad-pill); color: var(--white); box-shadow: 0 6px 16px rgba(74,108,247,.28); }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(74,108,247,.36); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink); padding: 0 var(--s-3); }
.btn-ghost:hover { background: var(--paper); }
.btn-sm { min-height: 36px; padding: 0 var(--s-4); font-size: 14px; }
.btn-lg { min-height: 52px; padding: 0 var(--s-6); font-size: 17px; }
.btn-block { width: 100%; }
.btn-icon { width: var(--tap); padding: 0; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
/* Tags: tinted pills for topic, area, status */
.tag { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 12px; border-radius: var(--r-pill); font: 500 13px/1 var(--font-body); background: var(--paper); color: var(--ink-2); }
.tag-sky { background: var(--sky); color: var(--sky-ink); } .tag-lilac { background: var(--lilac-soft); color: var(--lilac-ink); }
.tag-peach { background: var(--peach-soft); color: var(--peach-ink); } .tag-mint { background: var(--mint-soft); color: var(--mint-ink); } .tag-pink { background: var(--pink); color: var(--pink-ink); }
.tag-ok { background: var(--mint-soft); color: var(--ok); } .tag-warn { background: #fff4e0; color: var(--warn); } .tag-bad { background: var(--bad-soft); color: var(--bad); }
.chips { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.chips .tag { min-height: 36px; padding: 0 14px; font-size: 14px; }
.chips .tag[aria-current], .chips .tag.on { background: var(--ink); color: var(--white); }

/* ---------- 7. Cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); }
.card-pad { padding: var(--s-6); }
.card-link { display: block; transition: transform .15s ease, box-shadow .15s ease; }
.card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: var(--s-4); margin-top: var(--s-4); border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); }
/* Tinted card: one big number or quote on a pastel; content bottom-left; optional photo bottom-right */
.card-tint { position: relative; border: 0; border-radius: var(--r-lg); padding: var(--s-5); min-height: 260px; display: flex; flex-direction: column; justify-content: flex-start; overflow: hidden; }
/* Tints carry a soft gradient: lighter top-left, a touch deeper bottom-right (the reference does this; flat tints look printed). */
.card-tint.sky { background: linear-gradient(160deg, color-mix(in srgb, var(--sky), #fff 22%), var(--sky) 50%, color-mix(in srgb, var(--sky), #1a6a80 9%)); color: var(--sky-ink); }
.card-tint.lilac { background: linear-gradient(160deg, color-mix(in srgb, var(--lilac), #fff 18%), var(--lilac) 50%, color-mix(in srgb, var(--lilac), #4a2fb0 10%)); color: var(--lilac-ink); }
.card-tint.peach { background: linear-gradient(160deg, color-mix(in srgb, var(--peach), #fff 20%), var(--peach) 50%, color-mix(in srgb, var(--peach), #d9603a 9%)); color: var(--peach-ink); }
.card-tint.mint { background: linear-gradient(160deg, color-mix(in srgb, var(--mint), #fff 20%), var(--mint) 50%, color-mix(in srgb, var(--mint), #1f7a45 10%)); color: var(--mint-ink); }
/* A person on a tinted card: cut-out, bottom-right, running off the bottom edge; head top sits around 30% down. Text keeps the top-left 55%. */
.card-tint.has-person { min-height: 340px; }
.card-tint .person { position: absolute; right: -4%; bottom: 0; height: 96%; max-width: 86%; width: auto; object-fit: contain; object-position: bottom right; pointer-events: none; }
.card-tint .quote, .card-tint .num, .card-tint .by { position: relative; z-index: 1; }
.card-tint.has-person .quote { max-width: 52%; }
@media (max-width: 767px) { .card-tint.has-person { min-height: 300px; } }
.card-tint .h-3, .card-tint .num, .card-tint .quote { color: inherit; }
.card-tint .quote { font: 500 var(--fs-3)/1.3 var(--font-head); letter-spacing: var(--track-tight); max-width: 16ch; }
.card-tint .quote::before { content: "\201C"; display: block; font: 800 40px/1 var(--font-head); margin-bottom: var(--s-3); }
.card-tint .by { margin-top: auto; padding-top: var(--s-5); font-size: var(--fs-small); font-weight: 600; } .card-tint .by span { display: block; font-weight: 400; opacity: .75; }
.card-tint .photo { position: absolute; right: 0; bottom: 0; width: 55%; max-height: 80%; object-fit: contain; object-position: bottom right; }
/* Photo card: image fills, text sits on a bottom gradient */
.card-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--paper); min-height: 200px; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.card-photo .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s-5); color: var(--white); background: linear-gradient(transparent, rgba(0,0,0,.55)); font: 600 var(--fs-4)/1.25 var(--font-head); letter-spacing: var(--track-tight); }
/* Feature card: icon square + title + body on quiet paper */
.card-feature { display: flex; gap: var(--s-4); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); }
.card-feature .h-4 { margin-bottom: var(--s-2); }
.icon-sq { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--white); color: var(--blue); }
.icon-sq svg { width: 22px; height: 22px; }
.icon-sq.pink { background: var(--pink); color: var(--pink-ink); } .icon-sq.peach { background: var(--peach-soft); color: var(--peach-ink); }
.icon-sq.sky { background: var(--sky-soft); color: var(--sky-ink); } .icon-sq.mint { background: var(--mint-soft); color: var(--mint-ink); } .icon-sq.lilac { background: var(--lilac-soft); color: var(--lilac-ink); }
.icon-sq.lg { width: 64px; height: 64px; border-radius: 18px; } .icon-sq.lg svg { width: 28px; height: 28px; }
/* Panel: a big tinted gradient surface that holds a composition (image, phone, map) */
.panel { border-radius: var(--r-xl); padding: var(--s-7); overflow: hidden; }
.panel.pink { background: var(--panel-pink); } .panel.blue { background: var(--panel-blue); }
@media (max-width: 767px) { .panel { padding: var(--s-5); border-radius: var(--r-lg); } }

/* ---------- 8. Data tiles (live values) ---------- */
.tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); min-height: 180px; }
.tile .eyebrow { margin-bottom: 0; }
.tile .h-4 { color: var(--ink); }
.tile .value { display: flex; align-items: baseline; gap: var(--s-2); margin-top: var(--s-2); }
.tile .value .num { font-size: clamp(36px, 4vw, 48px); }
.tile .unit { font: 600 var(--fs-small)/1 var(--font-body); color: var(--muted); }
.tile .meaning { color: var(--ink-2); font-weight: 500; }
.tile .meta { margin-top: auto; padding-top: var(--s-3); }
.tile.down .value, .tile.down .meaning { opacity: .35; }
.tile.down .state { color: var(--bad); font-weight: 600; }
.tile.stale .state { color: var(--warn); font-weight: 600; }
.sparkline { width: 100%; height: 36px; margin-top: var(--s-2); }
.sparkline path { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sparkline .area { fill: var(--blue); opacity: .08; stroke: none; }
/* Source and stamp: on every section that shows data */
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--fs-tiny); color: var(--muted); line-height: 1.5; }
.meta a { text-decoration: underline; text-underline-offset: 2px; }
.meta .ok::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; }
.meta .bad::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); margin-right: 6px; vertical-align: 1px; }
.notice { border-radius: var(--r); padding: var(--s-3) var(--s-4); font-size: var(--fs-small); background: var(--paper); color: var(--ink-2); }
.notice.bad { background: var(--bad-soft); color: var(--bad); } .notice.warn { background: #fff4e0; color: var(--warn); }

/* ---------- 9. Listings ---------- */
.list { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 1fr auto; gap: var(--s-2) var(--s-4); align-items: start; padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; padding-top: 0; }
.row-title { color: var(--ink); font: 600 var(--fs-body)/1.35 var(--font-body); }
.row a.row-title:hover { color: var(--blue); }
.row-line { grid-column: 1; color: var(--grey); font-size: var(--fs-small); }
.row-meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: var(--fs-tiny); }
.row-side { grid-column: 2; grid-row: 1 / span 3; text-align: right; color: var(--muted); font-size: var(--fs-small); white-space: nowrap; }
.row-side .num { font-size: 24px; }
.row-thumb { grid-column: 2; grid-row: 1 / span 3; width: 72px; height: 72px; border-radius: var(--r-sm); object-fit: cover; background: var(--paper); }
.row-in-card .row { padding-left: var(--s-5); padding-right: var(--s-5); } .row-in-card .row:first-child { padding-top: var(--s-4); }
.more { display: flex; justify-content: space-between; align-items: center; padding-top: var(--s-4); border-top: 1px solid var(--line); margin-top: var(--s-2); }
.empty { padding: var(--s-6); text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r); }
.pager { display: flex; gap: var(--s-2); justify-content: center; margin-top: var(--s-6); }
.pager .btn { min-width: var(--tap); }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-2) var(--s-5); margin: 0; }
dl.facts dt { color: var(--muted); font-size: var(--fs-small); } dl.facts dd { margin: 0; color: var(--ink-2); }
@media (max-width: 480px) { dl.facts { grid-template-columns: 1fr; gap: 2px; } dl.facts dd { margin-bottom: var(--s-3); } }

/* ---------- 10. Heroes and page heads ---------- */
.hero { padding: var(--s-8) 0 var(--s-7); }
.hero .lede { margin-top: var(--s-5); }
.hero-home { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-8); align-items: center; padding: var(--s-8) 0; }
@media (max-width: 1023px) { .hero-home { grid-template-columns: 1fr; gap: var(--s-6); } }
.page-head { padding: var(--s-7) 0 var(--s-5); }
.page-head .h-1 { max-width: 20ch; }
.item-head .tags { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-4); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-small); color: var(--muted); padding: var(--s-4) 0 0; }
.crumbs a { color: var(--blue); } .crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }

/* ---------- 11. Forms (postcode box first) ---------- */
.input, .select, .textarea { width: 100%; min-height: var(--tap); padding: 0 var(--s-4); border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white); color: var(--ink); font-size: var(--fs-body); }
.input::placeholder { color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 3px rgba(61,85,204,.15); }
.textarea { padding: var(--s-3) var(--s-4); min-height: 120px; resize: vertical; }
.label { display: block; font: 600 var(--fs-small)/1.3 var(--font-body); color: var(--ink); margin-bottom: var(--s-2); }
.help { font-size: var(--fs-tiny); color: var(--muted); margin-top: var(--s-2); }
.field + .field { margin-top: var(--s-4); }
.postcode { display: flex; gap: var(--s-2); }
.postcode .input { text-transform: uppercase; letter-spacing: .04em; font-weight: 600; max-width: 220px; }
.postcode-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--shadow); }
.check { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-small); color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }
.consent { display: flex; gap: var(--s-3); align-items: center; justify-content: center; flex-wrap: wrap; padding: var(--s-3) var(--gutter); font-size: var(--fs-small); color: var(--ink-2); background: var(--paper); border-top: 1px solid var(--line); }

/* ---------- 12. Navigation ---------- */
.nav { display: flex; align-items: center; gap: var(--s-6); min-height: var(--nav-h); padding: 0 var(--gutter); max-width: var(--max); margin: 0 auto; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 800 24px/1 var(--font-head); letter-spacing: -0.03em; }
.logo svg { width: 22px; height: 22px; }
.nav-links { display: flex; gap: var(--s-5); margin-left: var(--s-2); }
.nav-links a { font: 500 15px/1 var(--font-body); color: var(--ink-2); padding: 10px 0; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; gap: var(--s-2); align-items: center; }
.nav-burger { display: none; margin-left: auto; width: var(--tap); height: var(--tap); border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--white); place-items: center; }
.menu { display: none; }
@media (max-width: 1023px) {
  .nav-links, .nav-cta { display: none; } .nav-burger { display: grid; }
  .menu[open] { display: block; border-top: 1px solid var(--line); padding: var(--s-4) var(--gutter) var(--s-5); }
  .menu a { display: block; padding: 12px 0; font: 600 18px/1.3 var(--font-head); color: var(--ink); letter-spacing: var(--track-tight); }
  .menu .menu-sub a { font: 500 16px/1.3 var(--font-body); color: var(--ink-2); padding: 10px 0; }
}
.tabs { display: flex; gap: var(--s-5); border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: var(--s-3) 0; font: 500 15px/1 var(--font-body); color: var(--grey); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a[aria-current], .tabs a.on { color: var(--ink); border-color: var(--ink); }
.footer { border-top: 1px solid var(--line); padding: var(--s-7) 0 var(--s-6); margin-top: var(--section); font-size: var(--fs-small); color: var(--grey); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: var(--s-6); }
@media (max-width: 767px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { font: 600 13px/1 var(--font-body); color: var(--ink); text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--s-3); }
.footer a { display: block; padding: 5px 0; } .footer a:hover { color: var(--ink); }
.footer-base { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-tiny); }

/* ---------- 13. Images and maps ---------- */
.img { display: block; width: 100%; background: var(--paper); border-radius: var(--r); overflow: hidden; }
.img img { width: 100%; height: 100%; object-fit: cover; }
.r-1x1 { aspect-ratio: 1; } .r-4x3 { aspect-ratio: 4 / 3; } .r-3x4 { aspect-ratio: 3 / 4; } .r-16x9 { aspect-ratio: 16 / 9; } .r-21x9 { aspect-ratio: 21 / 9; }
.img.sky { background: var(--sky); } .img.lilac { background: var(--lilac); } .img.peach { background: var(--peach); } .img.mint { background: var(--mint); }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--paper); }
.avatars { display: flex; } .avatars .avatar { border: 2px solid var(--white); margin-left: -10px; } .avatars .avatar:first-child { margin-left: 0; }
.map { position: relative; background: var(--sky-soft); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.map .pin { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); border: 3px solid var(--white); box-shadow: 0 2px 6px rgba(0,0,0,.25); transform: translate(-50%, -50%); }
.map .pin.me { background: var(--ink); width: 16px; height: 16px; }

/* ---------- 14. Utilities ---------- */
.mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); } .mt-8 { margin-top: var(--s-8); }
.mb-4 { margin-bottom: var(--s-4); } .mb-5 { margin-bottom: var(--s-5); } .mb-6 { margin-bottom: var(--s-6); }
.center { text-align: center; } .nowrap { white-space: nowrap; }
.hide-m { } .hide-d { display: none; }
@media (max-width: 767px) { .hide-m { display: none; } .hide-d { display: initial; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
@media print { body { background: #fff; } .nav, .footer, .btn, .consent { display: none; } .sheet { box-shadow: none; } }

/* ---------- 15. Added 3 Oct after the showcase build: code, tables, flush cards, tag buttons, 3:2 ---------- */
pre, code, kbd { font: 14px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
pre { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-4) var(--s-5); overflow-x: auto; color: var(--ink-2); }
code { background: var(--paper); padding: 1px 5px; border-radius: 6px; } pre code { background: none; padding: 0; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.table th { text-align: left; font-weight: 600; color: var(--ink); padding: var(--s-3) var(--s-3) var(--s-3) 0; border-bottom: 1px solid var(--line-2); }
.table td { padding: var(--s-3) var(--s-3) var(--s-3) 0; border-bottom: 1px solid var(--line); color: var(--grey); vertical-align: top; }
.table td:first-child { color: var(--ink-2); font-weight: 500; }
.card-flush { padding: 0; } .card-flush > .list { padding: 0 var(--s-5); }
button.tag { border: 0; cursor: pointer; } button.tag:hover { filter: brightness(.97); }
.r-3x2 { aspect-ratio: 3 / 2; }
