/* AfterLife site stylesheet. JBM build.
   One stylesheet for every new page. The brand tokens are today's, from
   css/style.css, unchanged; the additions are the design basics signed off on
   4 October 2026 (field border, status colours, focus rings).
   The site is light only (ruled 25 August 2026).

   Sections: 1 fonts, 2 tokens, 3 base, 4 layout, 5 type, 6 icons, 7 buttons,
   8 fields, 9 notices, 10 panels and dialogs, 11 header, 12 footer,
   13 components, 14 motion, 15 print.

   Breakpoint: 980px (--content-default, rule R4) for every layout change,
   except the header menu, which needs 73.75em (1180px at normal text size)
   for seven items, Log in and Ask AfterLife side by side ("if the width
   carries it", brief section 6). In em, so it moves with the browser's text
   size and larger text never pushes the header off the screen. */

/* ---------- 1. Fonts ----------
   Served by the site itself, so no visitor's address goes to a font company
   before they have agreed to anything. Plus Jakarta Sans, SIL Open Font
   Licence (/assets/fonts/OFL.txt).
   Erode, the heading face, is not here yet: it is downloadable only from
   fontshare.com. Until its files are added, headings use Georgia. */
@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-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: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-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: 'Plus Jakarta Sans'; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-latin-wght-italic.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: 'Plus Jakarta Sans'; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-latin-ext-wght-italic.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;
}

/* ---------- 2. Tokens ---------- */
:root {
  color-scheme: light;

  /* Surfaces: warm cream, "first light" paper */
  --color-bg: #F6EFE1;
  --color-surface: #FBF6EC;
  --color-surface-2: #FFFDF9;
  --color-surface-offset: #EEE2C6;
  --color-border: #E1D3AF;
  --color-divider: #E9DBBC;

  /* Text: warm charcoal */
  --color-text: #23241E;
  --color-text-muted: #6B6558;
  --color-text-faint: #A69C87;
  --color-text-inverse: #FBF6EC;

  /* Primary: sage */
  --color-primary: #3D544F;
  --color-primary-hover: #2C3E3A;
  --color-primary-highlight: #DDE5DF;

  /* Accent: terracotta */
  --color-accent: #B06434;
  --color-accent-hover: #8F4F27;
  --color-accent-highlight: #F1DECB;
  --color-accent-ink: #7A4120;

  /* Soft secondary accents, used sparingly */
  --color-blush: #BE7E72;
  --color-blush-highlight: #F3E2DB;
  --color-gold: #B8863C;
  --color-gold-highlight: #F1E4C2;

  /* Fixed tokens for elements on photography or the dark band */
  --color-onhero-bg: #FBF6EC;
  --color-onhero-text: #2C3E3A;
  --color-ink-surface: #2C3B35;
  --color-onphoto: #FBF6EC;
  --color-ondark-muted: #CFC8B6;

  /* Design basics, signed off 4 October 2026 */
  --color-field-border: #8A806C;
  --color-success: #2E6545;
  --color-success-highlight: #E1EEE3;
  --color-warning: #7A5314;
  --color-warning-highlight: var(--color-gold-highlight);
  --danger: #A13544;
  --color-danger-highlight: #F6E0E0;
  --focus-ring: 2px solid var(--color-primary);
  --focus-ring-on-dark: 2px solid var(--color-text-inverse);
  --focus-offset: 3px;

  --radius-sm: 0.4rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-full: 9999px;

  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 90 / 0.06);
  --shadow-md: 0 8px 24px oklch(0.2 0.02 90 / 0.08);
  --shadow-lg: 0 20px 48px oklch(0.2 0.02 90 / 0.14);

  --content-narrow: 640px;
  --content-default: 980px;
  --content-wide: 1600px;

  --font-display: 'Erode', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;

  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.83rem + 0.2vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.1rem, 1rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
  --text-2xl: clamp(1.9rem, 1.5rem + 2vw, 2.75rem);
  --text-3xl: clamp(2.4rem, 1.6rem + 3vw, 3.75rem);
  --text-hero: clamp(2.75rem, 1.6rem + 4.5vw, 5rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 4.5rem;
  /* Always 0 since 16 October: the cookie banner sits on top of the page and
     no room is made for it. Kept so the rules that use it read the same.
     --banner-pad (set while it shows) is only the scroll room for focus. */
  --banner-h: 0px;
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
  scroll-padding-bottom: calc(var(--banner-pad, 0px) + var(--space-4));
}
body {
  min-height: 100dvh; display: flex; flex-direction: column;
  font-family: var(--font-body); font-size: var(--text-base); line-height: 1.6;
  color: var(--color-text); background: var(--color-bg);
}
main { flex: 1 0 auto; }
main:focus { outline: none; }
img, picture, video, canvas { display: block; max-width: 100%; height: auto; }
svg { flex: none; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; text-wrap: balance; }
h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); font-weight: 600; }
/* Headings sit at 500 and 600, never heavier (brand guide; site review GLB1-22) */
h3 { font-family: var(--font-body); font-size: var(--text-base); font-weight: 600; line-height: 1.3; }
p, li, figcaption, dd { text-wrap: pretty; }
a { color: var(--color-primary); text-underline-offset: 4px; text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); }
a:hover { color: var(--color-primary-hover); text-decoration-color: currentColor; }
::selection { background: color-mix(in oklab, var(--color-primary) 25%, transparent); color: var(--color-text); }
[hidden] { display: none !important; }

/* Focus: one ring everywhere, sage on light, cream on dark. */
:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); border-radius: var(--radius-sm); }
.on-dark :focus-visible { outline: var(--focus-ring-on-dark); }
/* The homepage question is a light card inside the dark hero: the sage ring. */
.on-dark .home-question :focus-visible { outline: var(--focus-ring); }
/* Headings and regions the page moves focus to (so screen readers start in
   the right place) are not controls, so they show no ring. */
:where(h1, h2, h3, p, div, section)[tabindex="-1"]:focus { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 200;
  background: var(--color-primary); color: var(--color-text-inverse); font-weight: 600;
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-full); text-decoration: none;
}
.skip-link:focus { top: var(--space-3); color: var(--color-text-inverse); }

/* ---------- 4. Layout ---------- */
.wrap { width: 100%; max-width: var(--content-wide); margin-inline: auto; padding-inline: var(--gutter); }
/* More room between sections everywhere (Ricky, 20 October: too tight). */
.section { padding-block: clamp(var(--space-12), 7vw, var(--space-24)); }
.section--tight { padding-block: clamp(var(--space-8), 5vw, var(--space-16)); }
.stack { display: grid; gap: var(--space-4); align-content: start; }
/* Let wide children (a sideways-scrolling row, a long word) shrink to the column. */
.stack > * { min-width: 0; }
.stack--sm { gap: var(--space-2); }
.stack--lg { gap: var(--space-8); }
.stack--xl { gap: clamp(var(--space-8), 5vw, var(--space-16)); }
/* The one gap between sections that share a column (Ricky, 20 October: one
   spacing everywhere, not page by page). */
.stack--sections { --sections-gap: clamp(var(--space-12), 6vw, var(--space-20)); gap: var(--sections-gap); }
/* "See every area we cover" on a town page: in the middle of the space under
   the opening words, with half the usual gap each side (Ricky, 21 October).
   The blocks either side pull in, as a line this short can't. */
.place-head { margin-bottom: calc(var(--sections-gap) / -2); }
.place-up + section { margin-top: calc(var(--sections-gap) / -2); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.cluster--end { justify-content: flex-end; }
.cluster--between { justify-content: space-between; }
.grid-auto { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.measure { max-width: 65ch; }

/* A screen with the list on the right (R3). Below 980px the list leaves the
   page and becomes the floating button and bottom sheet (R4). */
.with-list { display: grid; gap: var(--space-8); align-items: start; }
.with-list > * { min-width: 0; }
@media (min-width: 980px) {
  .with-list { grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem); gap: var(--space-10); }
}

/* ---------- 5. Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent-ink);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); }
.lead { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 60ch; }
.muted { color: var(--color-text-muted); }
.small { font-size: var(--text-sm); }
.xsmall { font-size: var(--text-xs); }
.prose { display: grid; gap: var(--space-4); max-width: 65ch; }
.prose h2 { margin-top: var(--space-6); }
.prose ul, .prose ol { padding-left: 1.25rem; display: grid; gap: var(--space-2); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- 6. Icons ----------
   Lucide line icons (ISC licence), one sprite at /assets/icons/sprite.svg.
   20px beside text, 24px on their own, stroke 1.5. */
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: middle; }
.ic--16 { width: 16px; height: 16px; stroke-width: 1.75; }
.ic--24 { width: 24px; height: 24px; }

/* ---------- 7. Buttons ---------- */
/* A button label never breaks onto two lines (Ricky, 18 October): keep labels short enough to fit. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); white-space: nowrap;
  min-height: 48px; padding: 0.85rem 1.6rem; border-radius: var(--radius-full); border: 1.5px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm); line-height: 1.1;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.btn--primary { background: var(--color-primary); color: var(--color-text-inverse); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--color-primary-hover); color: var(--color-text-inverse); box-shadow: var(--shadow-md); }
/* Cream on the brand terracotta is 4.1:1, short of the 4.5:1 text needs, so the button uses the darker terracotta. */
.btn--accent { background: var(--color-accent-hover); color: var(--color-text-inverse); box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: var(--color-accent-ink); color: var(--color-text-inverse); }
.btn--ghost { background: transparent; color: var(--color-text); border-color: var(--color-field-border); }
.btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn--onhero { background: var(--color-onhero-bg); color: var(--color-onhero-text); box-shadow: var(--shadow-md); }
.btn--onhero:hover { background: #FFFFFF; color: var(--color-onhero-text); }
.btn--quiet { background: transparent; color: var(--color-primary); padding-inline: var(--space-3); text-decoration: underline; text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); text-underline-offset: 4px; }
.btn--quiet:hover { text-decoration-color: currentColor; }
.btn--sm { min-height: 44px; padding: 0.6rem 1.15rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.on-dark .btn--ghost { color: var(--color-onphoto); border-color: color-mix(in oklab, var(--color-onphoto) 55%, transparent); }
.on-dark .btn--ghost:hover { border-color: var(--color-onphoto); }
.on-dark .btn--quiet { color: var(--color-onphoto); }
.btn .ic { margin-inline: -0.1rem; }
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after {
  content: ""; position: absolute; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  border: 2px solid var(--color-text-inverse); border-right-color: transparent; animation: spin 0.8s linear infinite;
}
.btn--ghost.is-busy::after { border-color: var(--color-primary); border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 8. Fields ---------- */
.form { display: grid; gap: var(--space-5); }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field > .label, legend.label { font-size: var(--text-sm); font-weight: 600; }
.field .optional { font-weight: 400; color: var(--color-text-muted); }
.hint { font-size: var(--text-xs); color: var(--color-text-muted); }
.input {
  width: 100%; min-height: 48px; padding: 0.75rem 1rem;
  background: var(--color-surface-2); color: var(--color-text);
  border: 1.5px solid var(--color-field-border); border-radius: var(--radius-md);
}
.input::placeholder { color: var(--color-text-muted); opacity: 1; }
.input:focus-visible { outline: var(--focus-ring); outline-offset: 2px; border-color: var(--color-primary); }
select.input {
  appearance: none; padding-right: 2.75rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-text-muted) 50%), linear-gradient(135deg, var(--color-text-muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat;
}
textarea.input { min-height: 6.5rem; resize: vertical; }
.input[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.input:disabled { background: var(--color-surface-offset); color: var(--color-text-muted); border-style: dashed; cursor: not-allowed; }
.field-error { display: flex; gap: 8px; align-items: flex-start; font-size: var(--text-sm); font-weight: 600; color: var(--danger); }
.field-error .ic { width: 18px; height: 18px; margin-top: 2px; }
.fieldset { border: 0; padding: 0; display: grid; gap: var(--space-3); min-width: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--text-sm); cursor: pointer; }
.check input {
  appearance: none; flex: none; width: 24px; height: 24px; margin: 1px 0 0; display: grid; place-content: center; cursor: pointer;
  border: 1.5px solid var(--color-field-border); border-radius: 6px; background: var(--color-surface-2);
}
.check input[type="radio"] { border-radius: 50%; }
.check input::before {
  content: ""; width: 12px; height: 12px; transform: scale(0); transition: transform var(--transition);
  background: var(--color-text-inverse); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.check input[type="radio"]::before { clip-path: circle(50%); width: 10px; height: 10px; }
.check input:checked { background: var(--color-primary); border-color: var(--color-primary); }
.check input:checked::before { transform: scale(1); }
.check input:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
/* A choice that cannot be made (a question already with someone else). */
.check input:disabled { opacity: 0.5; background: var(--color-surface-offset); cursor: not-allowed; }
.check:has(input:disabled) { cursor: not-allowed; color: var(--color-text-muted); }
/* An on/off switch, for the cookie settings. */
.switch { display: flex; gap: var(--space-4); align-items: flex-start; justify-content: space-between; }
.switch input {
  appearance: none; flex: none; position: relative; width: 52px; height: 30px; border-radius: var(--radius-full); cursor: pointer;
  background: var(--color-surface-offset); border: 1.5px solid var(--color-field-border); transition: background var(--transition);
}
.switch input::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%;
  background: var(--color-surface-2); box-shadow: var(--shadow-sm); transition: transform var(--transition);
}
.switch input:checked { background: var(--color-primary); border-color: var(--color-primary); }
.switch input:checked::before { transform: translateX(22px); }
.switch input:disabled { opacity: 0.7; cursor: not-allowed; }
.switch input:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.switch-state { font-size: var(--text-xs); font-weight: 700; color: var(--color-text-muted); white-space: nowrap; }
/* Spam trap: present for robots, hidden from people and screen readers. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 9. Notices and pills ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--radius-md); padding: 14px 16px; border: 1px solid transparent; }
.notice > .ic { margin-top: 2px; }
.notice strong { display: block; }
.notice--info { background: var(--color-primary-highlight); border-color: color-mix(in oklab, var(--color-primary) 25%, transparent); }
.notice--info > .ic { color: var(--color-primary); }
.notice--success { background: var(--color-success-highlight); border-color: color-mix(in oklab, var(--color-success) 30%, transparent); }
.notice--success > .ic { color: var(--color-success); }
.notice--warning { background: var(--color-warning-highlight); border-color: color-mix(in oklab, var(--color-warning) 30%, transparent); }
.notice--warning > .ic { color: var(--color-warning); }
.notice--error { background: var(--color-danger-highlight); border-color: color-mix(in oklab, var(--danger) 30%, transparent); }
.notice--error > .ic { color: var(--danger); }
.pill { display: inline-flex; gap: 6px; align-items: center; font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700; line-height: 1.3; border-radius: var(--radius-full); padding: 4px 12px 4px 9px; }
/* A pill in a stack keeps to the width of its words. */
.stack > .pill { justify-self: start; }
.pill .ic { width: 16px; height: 16px; stroke-width: 1.75; }
.pill--partner { background: var(--color-primary-highlight); color: var(--color-primary-hover); }
.pill--listed { background: var(--color-surface-offset); color: var(--color-text-muted); }
.pill--urgent { background: var(--color-danger-highlight); color: var(--danger); }
.pill--soon { background: var(--color-warning-highlight); color: var(--color-warning); }
.pill--done { background: var(--color-success-highlight); color: var(--color-success); }
/* Marked "Come back to this" (Ricky, 22 October): a flag wherever it shows. */
.pill--flag { background: var(--color-accent-highlight); color: var(--color-accent-ink); }
.flagged-panel { border-left: 4px solid var(--color-accent); }
.flagged-panel h2 .ic, .stage-marked .ic { color: var(--color-accent); }
.stage-marked .flag-mark { margin-right: var(--space-2); vertical-align: -2px; }
.badge { display: inline-flex; align-items: center; font-size: var(--text-xs); font-weight: 600; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 2px 8px; background: var(--color-surface-2); }

/* ---------- 10. Panels and dialogs ---------- */
/* A floating panel: set in from the edges, soft shadow (brief section 7). */
.panel { background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(var(--space-5), 3vw, var(--space-8)); }
.panel--quiet { background: var(--color-surface); box-shadow: none; }
.band { background: var(--color-ink-surface); color: var(--color-onphoto); border-radius: var(--radius-lg); padding: clamp(var(--space-5), 3vw, var(--space-8)); }
.band .muted { color: var(--color-ondark-muted); }

/* Dialogs use the browser's own <dialog>: it keeps keyboard focus inside,
   closes on Escape and makes the page behind it inert. */
.dialog {
  border: 0; padding: 0; color: var(--color-text); background: var(--color-surface-2);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  width: min(100% - 2rem, 34rem); max-height: min(100dvh - 2rem, 48rem);
  margin: auto; /* the reset above removes the browser's own centring */
}
.dialog::backdrop { background: oklch(0.2 0.02 90 / 0.45); }
/* Room for a form two fields wide (a list page's callback and PDF pop-ups). */
.dialog--wide { width: min(100% - 2rem, 46rem); }
/* In a pop-up the PDF box is the pop-up itself, not a box inside a box. */
.dialog .email-gate.panel { padding: 0; border: 0; background: none; box-shadow: none; }
.dialog-inner { display: grid; gap: var(--space-5); padding: clamp(var(--space-5), 4vw, var(--space-8)); }
.dialog-head { display: flex; gap: var(--space-4); align-items: flex-start; justify-content: space-between; }
.dialog-head--end { justify-content: flex-end; margin-bottom: calc(-1 * var(--space-5)); }
.dialog-close {
  display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; margin: -8px -8px 0 0;
  border-radius: var(--radius-full); color: var(--color-text);
}
.dialog-close:hover { background: var(--color-surface-offset); }
/* Below the breakpoint a dialog becomes a bottom sheet. */
@media (max-width: 979.98px) {
  .dialog--sheet {
    width: 100%; max-width: 100%; margin: auto 0 0; max-height: 88dvh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}
.dialog[open] { animation: dialog-in var(--transition) both; }
.dialog--sheet[open] { animation-name: sheet-in; }
@media (min-width: 980px) { .dialog--sheet[open] { animation-name: dialog-in; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes sheet-in { from { transform: translateY(100%); } }

/* ---------- 11. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklab, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; border-radius: var(--radius-sm); }
.brand img { height: 32px; width: auto; }
.site-nav { display: none; }
.site-nav ul { list-style: none; padding: 0; display: flex; align-items: center; gap: clamp(var(--space-4), 1.6vw, var(--space-6)); }
.site-nav a { position: relative; display: inline-block; padding-block: var(--space-2); font-size: var(--text-sm); font-weight: 500; color: var(--color-text); text-decoration: none; white-space: nowrap; }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: 2px; height: 1.5px; width: 0; background: currentColor; transition: width var(--transition); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { width: 100%; }
/* The journey is the core product: terracotta, bolder, with a standing rule (as today).
   The words use the darker terracotta: the brand one is 3.9:1 on cream, short of 4.5:1. */
.site-nav a.nav-journey { color: var(--color-accent-hover); font-weight: 700; }
.site-nav a.nav-journey::after { width: 100%; height: 2px; background: var(--color-accent); }
.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.account-link { display: none; align-items: center; gap: var(--space-2); min-height: 44px; padding-inline: var(--space-3); font-size: var(--text-sm); font-weight: 500; color: var(--color-text); text-decoration: none; border-radius: var(--radius-full); max-width: 14rem; }
.account-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-link:hover { color: var(--color-primary); }
.ask-button { padding-inline: 1rem 1.25rem; }
.menu-button { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-full); color: var(--color-text); border: 1.5px solid var(--color-border); }
.menu-button:hover { border-color: var(--color-primary); }
@media (max-width: 420px) {
  .ask-button { padding-inline: 0.85rem 1rem; }
  .brand img { height: 28px; }
}
/* The smallest phones: the button stays on one line. */
@media (max-width: 374px) {
  .ask-button { padding-inline: 0.7rem 0.8rem; gap: 0.35rem; font-size: 0.8125rem; white-space: nowrap; }
  .ask-button .ic { width: 18px; height: 18px; }
  .brand img { height: 26px; }
  .header-actions { gap: var(--space-1); }
  .site-header .wrap { gap: var(--space-2); }
}
@media (min-width: 73.75em) {
  .site-nav { display: block; }
  .account-link { display: inline-flex; }
  .menu-button { display: none; }
}

/* The full menu panel, below 73.75em (1180px at normal text size). */
.menu-panel {
  width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0;
  background: var(--color-surface); box-shadow: none;
}
.menu-panel[open] { display: flex; flex-direction: column; }
.menu-panel .dialog-inner { gap: var(--space-4); padding: 0 var(--gutter) var(--space-8); }
.menu-panel .menu-top { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.menu-panel ul { list-style: none; padding: 0; display: grid; }
.menu-panel li a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-4) 0; min-height: 56px; font-size: var(--text-lg); color: var(--color-text); text-decoration: none;
  border-bottom: 1px solid var(--color-divider);
}
.menu-panel li a .ic { color: var(--color-text-faint); }
.menu-panel li a[aria-current="page"] { font-weight: 600; color: var(--color-primary-hover); background: var(--color-primary-highlight); padding-inline: var(--space-4); }
.menu-panel li a.nav-journey { color: var(--color-accent-hover); font-weight: 700; border-left: 3px solid var(--color-accent); padding-left: var(--space-4); }
.menu-panel .menu-account { display: flex; flex-wrap: wrap; gap: var(--space-3); padding-top: var(--space-4); }

/* Ask AfterLife: the ways to reach a person. */
.ask-routes { list-style: none; padding: 0; display: grid; gap: var(--space-4); }
.ask-route { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-5) var(--space-6); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
@media (max-width: 600px) { .ask-route { padding: var(--space-4); } }
.ask-route > .ic { color: var(--color-primary); margin-top: 2px; }
.ask-route .stack { flex: 1; min-width: 0; }
.ask-phone { font-size: var(--text-xl); font-weight: 700; color: var(--color-text); text-decoration: none; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.ask-phone:hover { color: var(--color-primary); }
.ask-email { font-weight: 600; overflow-wrap: anywhere; }

/* ---------- 12. Footer ---------- */
.site-footer { background: var(--color-ink-surface); color: var(--color-onphoto); padding-block: var(--space-16) calc(var(--space-8) + var(--banner-pad, 0px)); margin-top: auto; }
.footer-grid { display: grid; gap: var(--space-10); grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1.5fr 1fr; gap: var(--space-8); } }
.footer-grid > * { min-width: 0; }
.footer-brand { display: grid; gap: var(--space-4); align-content: start; }
.footer-brand img { height: 26px; width: auto; }
.footer-brand p { font-size: var(--text-sm); color: var(--color-ondark-muted); max-width: 26rem; }
.site-footer h2 { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-ondark-muted); margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: var(--space-1); }
.site-footer a, .site-footer .link-button {
  display: inline-flex; align-items: center; min-height: 32px; gap: var(--space-2);
  color: color-mix(in oklab, var(--color-onphoto) 90%, transparent); font-size: var(--text-sm); text-decoration: none;
  overflow-wrap: anywhere;
}
.site-footer a:hover, .site-footer .link-button:hover { color: var(--color-gold-highlight); text-decoration: underline; }
.site-footer :focus-visible { outline: var(--focus-ring-on-dark); }
.footer-bottom {
  margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid color-mix(in oklab, var(--color-onphoto) 18%, transparent);
  font-size: var(--text-xs); color: var(--color-ondark-muted); display: grid; gap: var(--space-2);
}

/* ---------- 13. Components ---------- */

/* 13.1 Answer tiles: answers are buttons, not checkboxes (brief section 7). */
.tiles { display: grid; gap: var(--space-3); }
@media (min-width: 640px) { .tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile {
  display: flex; gap: var(--space-3); align-items: center; width: 100%; min-height: 56px; text-align: left;
  padding: 0.85rem 1.1rem; border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--color-surface-2); color: var(--color-text); box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), background var(--transition);
}
.tile:hover { border-color: var(--color-accent); }
/* Read-only while someone else has the question (sharing). */
.tile:disabled { cursor: not-allowed; color: var(--color-text-muted); background: var(--color-surface-offset); border-style: dashed; }
.tile:disabled:hover { border-color: var(--color-field-border); }
.tile:disabled[aria-pressed="true"] { color: var(--color-text); background: var(--color-surface-offset); }
.tile[aria-pressed="true"], .tile[aria-checked="true"] { border-color: var(--color-accent); background: var(--color-accent-highlight); font-weight: 600; }
.tile .tile-mark { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--color-field-border); color: var(--color-text-inverse); }
.tile[aria-pressed="true"] .tile-mark, .tile[aria-checked="true"] .tile-mark { background: var(--color-accent-ink); border-color: var(--color-accent-ink); }
.tile .tile-mark .ic { width: 16px; height: 16px; stroke-width: 2.25; visibility: hidden; }
.tile[aria-pressed="true"] .tile-mark .ic, .tile[aria-checked="true"] .tile-mark .ic { visibility: visible; }
.tile--multi .tile-mark { border-radius: 6px; }
.tile-text { display: grid; gap: 2px; min-width: 0; }
.tile-help { font-size: var(--text-xs); font-weight: 400; color: var(--color-text-muted); }
/* On a chosen tile's tint the muted grey falls short of 4.5:1; the body colour does not. */
.tile[aria-pressed="true"] .tile-help, .tile[aria-checked="true"] .tile-help { color: var(--color-text); }

/* 13.2 Question screen: one card, Next and Back always visible (brief section 7). */
.question { display: grid; gap: var(--space-6); }
.question-progress { display: grid; gap: var(--space-2); }
.question-progress .bar { height: 6px; border-radius: var(--radius-full); background: var(--color-surface-offset); overflow: hidden; }
.question-progress .bar span { display: block; height: 100%; background: var(--color-primary); border-radius: inherit; transition: width var(--transition); }
.question-card { display: grid; gap: var(--space-5); overflow-wrap: anywhere; } /* a long one-word name wraps, not the page */
.question-card h1, .question-card h2 { font-size: var(--text-xl); font-weight: 500; }
.question-card .question-help { color: var(--color-text-muted); max-width: 60ch; }
.question-nav { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; padding-top: var(--space-2); }
.question-nav .btn--primary { min-width: 9rem; }
.question-aside { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: center; }
/* Come back to this and Ask someone else side by side, one (i) after them
   opening a note on both (Ricky, 20 October). On a phone the three keep to
   one line where they fit. */
@media (max-width: 639.98px) { .question-aside { column-gap: var(--space-2); } .question-aside [data-park] { padding-inline: var(--space-3); } .question-aside .aside-ask { padding-inline: 0; } .question-aside .aside-ask .ic { display: none; } .question-aside .info-btn { width: 28px; height: 28px; margin-left: -4px; } }
.info-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--color-text-muted); cursor: pointer; }
.info-btn:hover, .info-btn[aria-expanded="true"] { color: var(--color-primary); background: var(--color-primary-highlight); }
.info-note { flex-basis: 100%; max-width: 68ch; margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--color-surface-offset); color: var(--color-text); display: grid; gap: var(--space-2); }
/* "Flagged for later" under Come back to this, once pressed (Ricky, 20 October). */
.park-note { flex-basis: 100%; display: flex; gap: var(--space-2); align-items: center; margin: 0; color: var(--color-success); font-weight: 600; }
.question-card.is-entering-next { animation: card-next var(--transition) both; animation-duration: 320ms; }
.question-card.is-entering-back { animation: card-back var(--transition) both; animation-duration: 320ms; }
/* Journey version 3: screens of several parts, Yes / No / Not sure rows,
   red alerts to acknowledge, and the decision point. */
.q-parts { display: grid; gap: var(--space-6); }
.q-part { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: var(--space-3); }
.q-part-label { font-weight: 600; padding: 0; }
.q-part .label { font-weight: 600; }
.q-row { display: grid; gap: var(--space-2); padding-block: var(--space-3); border-top: 1px solid var(--color-divider, var(--color-border)); }
.q-row:first-child { border-top: 0; padding-top: 0; }
.q-row-label { font-weight: 600; }
.q-row > .pill, .q-part > .pill { justify-self: start; }
.tiles--row { grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: var(--space-2); }
.tiles--row .tile { padding-block: 10px; }
.alert-head { display: flex; gap: 8px; align-items: center; font-weight: 700; color: var(--danger); text-transform: none; }
.alert-head .ic { color: var(--danger); }
.alert { display: grid; gap: var(--space-3); border-radius: var(--radius-md); padding: 16px; background: var(--color-danger-highlight); border: 1.5px solid color-mix(in oklab, var(--danger) 45%, transparent); }
.alert p { margin: 0; }
.alert-ack { border: 1.5px solid var(--danger); color: var(--danger); background: var(--color-surface, #fff); }
.alert-ack .ic { visibility: hidden; }
.alert-ack[aria-pressed="true"] { background: var(--danger); color: var(--color-text-inverse); }
.alert-ack[aria-pressed="true"] .ic { visibility: visible; }
.question-card--alert { border-color: color-mix(in oklab, var(--danger) 45%, transparent); }
/* A safety check's heading sits in a red block, like the banners, so it cannot be missed. */
.alert-block { background: var(--color-danger-highlight); border: 1.5px solid color-mix(in oklab, var(--danger) 45%, transparent); border-radius: var(--radius-md); padding: 16px 18px; }
.alert-block .question-help { color: var(--color-text); }
.question-nav .btn--primary.is-waiting { opacity: .55; }
.decision-point .lead { max-width: 60ch; }
.decision-call .btn--lg { min-height: 52px; padding-inline: 22px; font-size: var(--text-lg, 1.125rem); }
.decision-more { gap: var(--space-3); }
.gate-feature h2 { font-size: var(--text-lg, 1.125rem); }
@keyframes card-next { from { opacity: 0; transform: translateX(24px); } }
@keyframes card-back { from { opacity: 0; transform: translateX(-24px); } }
@media (max-width: 639.98px) {
  /* Ricky, 19 October: Back and Next in a bar fixed along the bottom, the
     list button kept in its own place at the bar's right, so neither moves. */
  .question-nav:not(.question-nav--card):not(.home-question .question-nav) { position: fixed; left: 0; right: 0; bottom: var(--banner-h); z-index: 80; flex-wrap: nowrap; gap: var(--space-2); margin: 0; padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom, 0px)); background: var(--color-surface-2); border-top: 1px solid var(--color-border); box-shadow: 0 -6px 18px rgb(35 36 30 / 0.07); }
  body:has(.list-fab:not([hidden])) .question-nav:not(.question-nav--card):not(.home-question .question-nav) { padding-right: calc(var(--space-4) + 76px + var(--space-2)); }
  /* In the journey and Planning ahead the list button is the same small
     button on every screen, in the same place: the list icon and the count. */
  :is([data-journey-shell], [data-pa-shell]) .list-fab { bottom: calc(var(--banner-h) + var(--space-3) + env(safe-area-inset-bottom, 0px)); width: 76px; min-height: 48px; padding: 0; gap: 6px; justify-content: center; transition: none; }
  :is([data-journey-shell], [data-pa-shell]) .list-fab > span:not(.list-badge) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html:has(.question-nav:not(.question-nav--card):not(.home-question .question-nav)) body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .question-nav .btn { flex: 1 1 auto; min-width: 0; white-space: nowrap; }
  /* "Your list is ready": the way on sits beside Back (JRN2-22), on one line like every button. */
  .question-nav--decision { flex-wrap: nowrap; }
  /* Keep a focused answer clear of the floating Back and Next bar. */
  html:has(.question-nav) { scroll-padding-bottom: max(calc(var(--banner-pad, 0px) + var(--space-4)), 6rem); }
  /* The task list button rides above the bar (see .list-fab), so leave room for both. */
  html:has(.question-nav):has(.list-fab:not([hidden])) { scroll-padding-bottom: max(calc(var(--banner-pad, 0px) + var(--space-4)), 9.75rem); }
}
/* While the cookie banner is open on a phone there is no room in the journey
   for the task list button as well: it waits until a cookie choice is made.
   On a short phone the bar stays in the page too, so the question shows above
   the banner. */
@media (max-width: 639.98px) {
  /* A stage screen's save box ("Create a free account") comes first for anyone
     without an account, so the bar stays in the page under it, never on it. */
  .stage-gate:has(.save-nudge) ~ .question-nav { position: static; box-shadow: none; }
}

/* 13.3 Option cards (R5): stacked, all visible, four lines each. */
.option-cards { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .option-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.option-card { display: grid; gap: var(--space-4); align-content: start; grid-template-rows: auto 1fr auto; }
.option-card :is(h2, h3) { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; line-height: 1.3; }
.option-lines { display: grid; gap: var(--space-3); align-content: start; }
.option-lines div { display: grid; gap: 2px; }
.option-lines dt { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); }
.option-lines dd { font-size: var(--text-sm); }
.option-card .btn { justify-self: start; }

/* 13.4 The Concierge band: under every set of cards, never a card itself (R5),
   and in the list from the start (R2). */
.concierge-band { display: grid; gap: var(--space-4); align-items: center; }
.concierge-band h2, .concierge-band h3 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 500; color: var(--color-onphoto); }
.concierge-band p { color: var(--color-ondark-muted); max-width: 52ch; }
.concierge-band .fit { display: inline-flex; gap: var(--space-2); align-items: center; font-size: var(--text-sm); font-weight: 600; color: var(--color-gold-highlight); }
@media (min-width: 980px) { .concierge-band--wide { grid-template-columns: minmax(0, 1fr) auto; } }
.concierge-band .btn { justify-self: start; }
.concierge-band .band-link { color: var(--color-onphoto); }
/* Ask AfterLife: a call button on phones only, where a tap can dial (Ricky, 18 October). */
.ask-call { display: none; }
@media (hover: none) and (pointer: coarse) { .ask-call { display: block; } }
/* The help box at the top of every side panel (Ricky, 18 October): a free call, then the other ways in. */
.help-box .phone-reveal .btn { width: 100%; justify-content: center; }
.help-box .phone-number { color: var(--color-onphoto); font-size: var(--text-xl); font-weight: 600; }
.help-box .phone-reveal .muted { color: var(--color-ondark-muted); }
.help-box button.band-link { background: none; border: 0; padding: 0; font: inherit; font-size: var(--text-sm); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; justify-self: start; text-align: left; }
.concierge-band--compact { padding: var(--space-5); gap: var(--space-3); }
/* Ricky, 19 October: more room in the side box, the estimate set apart. */
.help-box.concierge-band--compact { padding: var(--space-6); gap: var(--space-5); }
.help-box > .stack--sm { gap: var(--space-3); }
.help-box .help-estimate { padding-top: var(--space-5); border-top: 1px solid rgb(255 255 255 / 0.14); }
.concierge-band--compact h2, .concierge-band--compact h3 { font-size: var(--text-lg); }
/* The journey's sidebar card, first in the list: a clear heading and a full-width button. */
.list-panel .concierge-band--compact { box-shadow: var(--shadow-md); }
.list-panel .concierge-band--compact h3 { font-size: var(--text-xl); }
.list-panel .concierge-band--compact .btn { justify-self: stretch; justify-content: center; }
.save-nudge p { margin: 0; }
/* The full breakdown: getting it first on a phone, beside the list on a computer. */
.breakdown-grid { display: grid; gap: var(--space-6); }
@media (min-width: 980px) {
  .breakdown-grid { grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem); align-items: start; }
  .breakdown-get { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h) + var(--space-6)); }
  .breakdown-list { grid-column: 1; grid-row: 1; }
}

/* 13.5 Supplier card, two types (M0). Holds together with no photo or description. */
.supplier-cards { display: grid; gap: var(--space-5); align-items: start; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
/* The vetted partners in a block of their own, each card as tall as its own
   content; below them the other firms, every card the same size with every
   part in the same place: the name two lines high whether it needs them or
   not, the service and the area a line each, the description two lines, the
   buttons along the bottom (Ricky, 30 October). */
.supplier-cards + .supplier-cards { margin-top: var(--space-5); }
.supplier-cards--listed { align-items: stretch; grid-auto-rows: 1fr; }
.supplier-card--listed h3 { line-height: 1.25; height: 2.5em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.supplier-card--listed .supplier-service, .supplier-card--listed .supplier-place { line-height: 1.5; height: 1.5em; }
.supplier-card--listed .supplier-service, .supplier-card--listed .supplier-place > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.supplier-card--listed .supplier-desc { line-height: 1.5; height: 3em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.supplier-card { display: flex; flex-direction: column; overflow: hidden; background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
/* Pick several: a box in the card's top right corner, no word beside it (Ricky, 21 October). */
.supplier-card { position: relative; }
.supplier-select { position: absolute; top: var(--space-3); right: var(--space-3); z-index: 1; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--color-surface-2); box-shadow: var(--shadow-sm); cursor: pointer; }
.supplier-card:has(> .supplier-select:not([hidden])) .supplier-body > :first-child { padding-right: 40px; }
.supplier-card--partner { box-shadow: var(--shadow-md); }
.supplier-media { position: relative; aspect-ratio: 16 / 9; width: 100%; display: grid; place-items: center; background: var(--color-surface-offset); overflow: hidden; }
.supplier-initial { font-family: var(--font-display); font-size: 3rem; font-weight: 600; line-height: 1; color: var(--color-text-muted); opacity: .6; }
.supplier-media .supplier-photo { position: absolute; inset: 0; height: 100%; }
.supplier-photo { aspect-ratio: 16 / 9; width: 100%; max-width: 100%; object-fit: cover; background: var(--color-surface-offset); }
/* One column that never grows past the card, so a long line (thirty areas) is cut short with "…" instead of pushing every line off the edge (Daniel, 19 November). */
.supplier-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); padding: var(--space-5); flex: 1; align-content: start; min-width: 0; overflow-wrap: anywhere; }
.supplier-card h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; }
.supplier-card h3 a { color: inherit; text-decoration: none; }
.supplier-card h3 a:hover { text-decoration: underline; }
.supplier-service { font-size: var(--text-sm); font-weight: 600; color: var(--color-text-muted); }
.supplier-place { display: flex; gap: var(--space-1); align-items: center; font-size: var(--text-sm); color: var(--color-text-muted); }
.supplier-place .ic { width: 16px; height: 16px; }
.supplier-desc { font-size: var(--text-sm); }
.supplier-badges { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; }
.supplier-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0 var(--space-5) var(--space-5); }
.supplier-actions .btn { flex: 1 1 auto; }
.supplier-actions .btn[aria-pressed="true"] { background: var(--color-success-highlight); color: var(--color-success); border-color: var(--color-success); box-shadow: none; }

/* 13.6 The list component (R3, R4). */
.list-panel { position: sticky; top: calc(var(--header-h) + var(--space-6)); display: none; }
/* Never taller than the window, so the next steps and Concierge stay in reach (scrolls inside). */
@media (min-width: 980px) { .list-panel { display: grid; gap: var(--space-5); max-height: calc(100vh - var(--header-h) - 2 * var(--space-6) - var(--banner-h)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--color-border) transparent; } }
.list-panel-head { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); align-items: baseline; justify-content: space-between; }
.list-panel-head h2 { white-space: nowrap; }
.list-panel-head h2 { font-family: var(--font-body); font-size: var(--text-base); font-weight: 600; }
.list-count { font-size: var(--text-sm); color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.list-items { list-style: none; padding: 0; display: grid; gap: var(--space-2); max-height: 40vh; overflow-y: auto; }
/* One scroll bar in a side panel (Ricky, 19 October): the panel scrolls as a
   whole, help box first, so the list inside it never has a bar of its own. */
@media (min-width: 980px) { .list-panel:not(.list-panel--pin) .list-items { max-height: none; overflow: visible; } }
.list-item { display: flex; gap: var(--space-3); align-items: center; justify-content: space-between; padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-surface); font-size: var(--text-sm); }
.list-item span { min-width: 0; overflow-wrap: anywhere; }
.list-item button { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: var(--radius-full); color: var(--color-text-muted); }
.list-item button:hover { background: var(--color-danger-highlight); color: var(--danger); }
/* A list item that opens to say what it involves (the journey, Ricky, 20 October). */
.list-hint { margin: 0; }
.list-item--more { display: block; padding: 0; }
.list-item--more summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3); cursor: pointer; list-style: none; border-radius: var(--radius-md); }
.list-item--more summary::-webkit-details-marker { display: none; }
.list-item--more summary:hover { color: var(--color-primary); }
.list-item--more summary .ic { flex: none; color: var(--color-text-muted); transition: transform var(--transition); }
.list-item--more details[open] summary .ic { transform: rotate(90deg); }
.list-item-more { display: grid; gap: var(--space-1); padding: 0 var(--space-3) var(--space-3); color: var(--color-text-muted); }
.list-item-more .small-heading { color: var(--color-primary); }
.list-empty { font-size: var(--text-sm); color: var(--color-text-muted); }
.list-group, .list-group-items { display: grid; gap: var(--space-2); }
.list-group-items { list-style: none; padding: 0; }
.list-ctas { display: grid; gap: var(--space-2); }
.list-ctas .btn { width: 100%; }
/* MKT1-16 (Ricky, 16 October): on computers the Concierge box stays at the
   panel's foot, flush with its edge (the negative bottom is the panel's
   padding), while the list scrolls above it (the panel stops above the
   cookie banner, 13.6); a list with next steps gets a smaller box, and focus is
   kept clear of the box. On short windows it shows its heading and button. */
@media (min-width: 980px) {
  .list-panel--pin { scroll-padding-bottom: calc(17rem + var(--space-3)); }
  /* The ring, in the panel's colour, covers what scrolls past the box's rounded corners. */
  .list-panel--pin [data-list-body] > .concierge-band:last-child { position: sticky; bottom: calc(-1 * clamp(var(--space-5), 3vw, var(--space-8))); z-index: 1; box-shadow: 0 0 0 9px var(--color-surface-2); }
  .list-panel--pin:has(.list-ctas) .list-items { max-height: 24vh; }
}
@media (min-width: 980px) and (max-height: 800px) {
  .list-panel--pin { scroll-padding-bottom: calc(11.5rem + var(--space-3)); }
  .list-panel--pin [data-list-body] > .concierge-band:last-child p { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
}
/* The shortest laptop windows: a smaller list box, so two next steps stay clear of the box. */
@media (min-width: 980px) and (max-height: 700px) {
  .list-panel--pin:has(.list-ctas) .list-items { max-height: 11vh; }
}
/* Below 980px: the floating button, from the first item only (R4). It is
   lifted clear of a Back and Next bar in its way (--fab-clear, set by
   ui/list-panel.mjs), so it never covers Next or Back. */
.list-fab {
  position: fixed; right: var(--space-4); z-index: 90;
  bottom: max(calc(var(--space-4) + var(--banner-h) + env(safe-area-inset-bottom, 0px)), var(--fab-clear, 0px));
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 56px; padding: 0 var(--space-5);
  border-radius: var(--radius-full); background: var(--color-primary); color: var(--color-text-inverse);
  font-weight: 600; box-shadow: var(--shadow-lg); transition: bottom var(--transition);
}
.list-fab:hover { background: var(--color-primary-hover); }
/* Out of sight while it would land on the save box's buttons (ui/list-panel.mjs). */
.list-fab.is-tucked { visibility: hidden; }
.list-fab .list-badge { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: var(--radius-full); background: var(--color-surface-2); color: var(--color-primary-hover); font-size: var(--text-xs); font-weight: 800; font-variant-numeric: tabular-nums; }
@media (min-width: 980px) { .list-fab { display: none !important; } }
/* While the floating button shows, leave room under the footer so it never covers the last line. */
@media (max-width: 979px) {
  body:has(.with-list:not(.no-list) .list-fab:not([hidden])) .site-footer,
  body:has(:is(.plan-side, .sup-side) .list-fab:not([hidden])) .site-footer { padding-bottom: calc(var(--space-8) + max(calc(var(--space-4) + 56px + env(safe-area-inset-bottom, 0px)), var(--banner-pad, 0px))); }
}
.list-sheet .dialog-inner { gap: var(--space-5); }
.list-sheet .list-items { max-height: none; }
/* The split panel (marketplace and area pages, Ricky, 20 October): the help
   box on its own above the list's box; only the list's box scrolls. */
.list-panel--split .list-body { display: grid; gap: var(--space-5); }
@media (min-width: 980px) {
  .list-panel--split { display: flex; flex-direction: column; overflow: visible; }
  .list-panel--split > .list-body { display: flex; flex-direction: column; gap: var(--space-5); min-height: 0; max-height: 100%; }
  .list-panel--split > .list-body > :first-child { flex: none; }
  .list-panel--split .list-card { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--color-border) transparent; }
}
.list-sheet .list-card { padding: 0; border: 0; background: none; box-shadow: none; }
/* On a phone the help box shows in the page (the list is the floating
   button and its sheet), so it is not lost with the side panel (Ricky, 20 October). */
@media (max-width: 979.98px) {
  .list-panel--split { display: block; position: static; }
  .list-panel--split .list-card { display: none; }
}

/* 13.7 Email capture with consent (R1, G10). */
.email-gate { display: grid; gap: var(--space-5); }
.email-gate .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* 13.8 Callback form. */
.callback { display: grid; gap: var(--space-5); container-type: inline-size; }
/* Two fields a row once there is room (Ricky, 22 October, from his design);
   one a row in the Ask AfterLife panel and on phones. */
.callback-grid { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr); }
@container (min-width: 34rem) {
  .callback-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .callback-wide { grid-column: 1 / -1; }
}
/* "Request a callback": a page's last section, above the photo band. */
.callback-section { display: grid; gap: var(--space-8); justify-items: center; }
.callback-section-head { text-align: center; justify-items: center; max-width: 46rem; }
.callback-section-head h2 { font-size: var(--text-2xl); }
.callback-section-head .lead { margin-inline: auto; }
.callback-card { width: 100%; max-width: 68rem; padding: clamp(var(--space-5), 4vw, var(--space-10)); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); }

/* 13.9 Phone reveal (R6): the number, in place, on whatever screen. */
.phone-reveal { display: inline-grid; gap: var(--space-1); justify-items: start; }
.phone-reveal .phone-number { font-size: var(--text-xl); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--color-text); text-decoration: none; }
.phone-reveal .phone-number:hover { color: var(--color-primary); }
.on-dark .phone-reveal .phone-number { color: var(--color-onphoto); }

/* While the banner shows, the floating list button behind it is out of the
   way of Tab too (it cannot be seen, so nothing on screen changes). */
html:has([data-cookie-banner]:not([hidden])) .list-fab { visibility: hidden; }

/* 13.10 Cookie banner (G9). Fixed at the bottom, on top of everything, and
   the page makes no room for it (--banner-h stays 0): nothing moves when it
   opens or closes (Ricky, 16 October). Reject is as prominent as accept. */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  padding: var(--space-3) var(--space-3) calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
}
.cookie-banner-inner {
  max-width: var(--content-wide); margin-inline: auto; display: grid; gap: var(--space-4);
  background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: var(--space-5);
}
.cookie-banner h2 { font-family: var(--font-body); font-size: var(--text-base); font-weight: 600; }
.cookie-banner p { font-size: var(--text-sm); max-width: 75ch; }
/* On a phone: accept and reject side by side, the same size; the third button below. */
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.cookie-actions .btn { padding-inline: var(--space-3); }
.cookie-actions .span-all { grid-column: 1 / -1; }
/* The banner on a phone is compact, so the first screen still shows the page
   (Ricky, 21 November 2026): the heading is for screen readers only, and
   "Choose cookies" joins accept and reject on one row, at its own width, while
   accept and reject share the rest exactly equally. Below 375px the row cannot
   fit, so "Choose cookies" goes back to a row of its own. */
@media (max-width: 979.98px) {
  .cookie-banner-inner { padding: var(--space-4); gap: var(--space-3); }
  .cookie-banner h2 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .cookie-banner .cookie-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .cookie-banner .cookie-actions .btn { padding-inline: var(--space-2); }
}
@media (max-width: 374.98px) {
  .cookie-banner .cookie-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cookie-banner .cookie-actions [data-open-cookie-settings] { grid-column: 1 / -1; }
}
@media (min-width: 980px) {
  .cookie-banner-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: var(--space-5) var(--space-6); }
  .cookie-actions { display: flex; flex-wrap: nowrap; }
  .cookie-actions .btn { flex: 0 0 auto; padding-inline: 1.6rem; }
}
.cookie-options { display: grid; gap: var(--space-3); }
.cookie-option { display: grid; gap: var(--space-2); padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.cookie-option .switch label, .cookie-option .switch .label { font-weight: 700; }

/* 13.11 Waiting, empty and error states (G12 to G14). */
.state { display: grid; gap: var(--space-4); justify-items: start; padding: var(--space-8); text-align: left; }
.state .ic--24 { color: var(--color-primary); }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--color-primary-highlight); border-top-color: var(--color-primary); animation: spin 0.9s linear infinite; }

/* 13.12 Screen preview: a still picture of a tool under way, beside its
   start button (Builder and Planning ahead starts). Computers only. */
.screen-preview { display: none; }
@media (min-width: 980px) {
  .screen-preview { display: grid; gap: var(--space-3); }
  .sp-frame { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; pointer-events: none; user-select: none; }
  .sp-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-4); padding: var(--space-5); font-size: var(--text-xs); line-height: 1.4; }
  .sp-main, .sp-list, .sp-question, .sp-cards { display: grid; gap: var(--space-2); align-content: start; }
  .sp-heading { font-family: var(--font-display); font-size: var(--text-base); font-weight: 600; }
  .sp-card { display: grid; gap: var(--space-2); justify-items: start; padding: var(--space-3); background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-md); font-weight: 600; }
  .sp-pill { display: inline-flex; align-items: center; gap: var(--space-1); padding: 3px var(--space-3); border-radius: var(--radius-full); background: var(--color-primary); color: var(--color-text-inverse); font-weight: 600; }
  .sp-pill--on { background: var(--color-success-highlight); color: var(--color-success); border: 1px solid var(--color-success); }
  .sp-progress { color: var(--color-text-muted); }
  .sp-track { height: 4px; border-radius: var(--radius-full); background: var(--color-surface-offset); }
  .sp-track span { display: block; height: 100%; border-radius: inherit; background: var(--color-primary); }
  .sp-question { padding: var(--space-4); background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-top: var(--space-2); }
  .sp-option { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface); }
  .sp-option.is-picked { border-color: var(--color-primary); background: var(--color-primary-highlight); }
  .sp-box { display: inline-grid; place-items: center; flex: none; width: 14px; height: 14px; border: 1.5px solid var(--color-field-border); border-radius: 3px; background: var(--color-surface-2); }
  .is-picked .sp-box { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-text-inverse); }
  .sp-list { padding: var(--space-3); background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
  .sp-list-head { display: flex; justify-content: space-between; gap: var(--space-2); font-weight: 600; }
  .sp-count, .sp-group { color: var(--color-text-muted); font-weight: 400; }
  .sp-group { margin-top: var(--space-1); }
  .sp-item { padding: var(--space-2); border-radius: var(--radius-sm); background: var(--color-surface); }
  .sp-button { display: flex; justify-content: center; align-items: center; gap: var(--space-1); margin-top: var(--space-1); padding: var(--space-2); border-radius: var(--radius-full); background: var(--color-primary); color: var(--color-text-inverse); font-weight: 600; white-space: nowrap; }
}

/* ---------- 14. Motion ----------
   Calm: nothing bounces. Reduced motion gets a simple fade (brief section 7). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .question-card.is-entering-next, .question-card.is-entering-back, .dialog[open] { animation: fade-in 160ms ease both !important; }
  .btn.is-busy::after, .spinner { animation-duration: 2.4s; }
}
@keyframes fade-in { from { opacity: 0; } }

/* ---------- 15. Print (G17) ----------
   Breakdowns and checklists print cleanly: black on white, no furniture,
   link addresses shown, nothing split across a page break. */
@media print {
  @page { margin: 16mm 14mm; }
  :root { --color-bg: #fff; --color-surface: #fff; --color-surface-2: #fff; --color-text: #000; --color-text-muted: #333; }
  html, body { background: #fff !important; color: #000 !important; font-size: 11pt; }
  body { display: block; }
  .site-header, .site-footer, .cookie-banner, .list-fab, .list-panel, .dialog, .skip-link,
  .question-nav, .no-print, .list-branch, button, .btn { display: none !important; }
  .print-only { display: block !important; }
  .wrap { max-width: none; padding: 0; }
  .with-list { display: block; }
  .panel, .band, .supplier-card, .option-card, .notice { box-shadow: none !important; border: 1px solid #999 !important; background: #fff !important; color: #000 !important; }
  .band *, .concierge-band * { color: #000 !important; }
  h1, h2, h3 { break-after: avoid; page-break-after: avoid; color: #000; }
  li, tr, .supplier-card, .option-card, .panel, .notice { break-inside: avoid; page-break-inside: avoid; }
  a { color: #000; text-decoration: underline; }
  /* Only full web addresses are worth printing; a path such as /suppliers/x is not. */
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #333; word-break: break-all; }
  a[href^="tel:"]::after, a[href^="mailto:"]::after, a[href^="/api/go"]::after { content: ""; }
  img { max-width: 50% !important; }
  /* Lists with option cards: blocks, not grids, so the Concierge band never prints over a card. */
  .summary-grid > * + * { margin-top: 24pt; }
  .stack:has(> .option-cards), .option-cards { display: block; }
  .option-cards > li + li, .option-cards + .concierge-band { margin-top: 12pt; }
  .concierge-band { break-inside: avoid; }
  /* Account checklists: no menu control, ticks and the progress bar print, and a group heading stays with its first record. */
  .account-nav { display: none !important; }
  .check input, .bar, .bar > span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .keep-together { break-inside: avoid; page-break-inside: avoid; }
  /* Planning ahead checklist: blocks, not grids, so a group heading never sits alone at the foot of a page. */
  #pa-main .stack { display: block; }
  #pa-main .stack > * + * { margin-top: 8pt; }
  /* Records checklists in the account too: plain blocks, so headings never print over cards and whole groups are not pushed to a new page. The note box, its hint and Save note stay on screen. */
  .stack:has(.record) { display: block; }
  .stack:has(.record) > * + * { margin-top: 12pt; }
  .record .field, .record .cluster { display: none !important; }
}
.print-only { display: none; }

/* ---------- 16. Pages: log in, register, reset (G1 to G3) ---------- */
.auth { display: grid; gap: var(--space-6); align-items: stretch; }
/* Logged in and choosing between two journeys or checklists: no reasons to
   make an account beside it (Ricky, 20 October); the choice takes the width. */
.auth:has([data-two-journeys]:not([hidden]), [data-two-checklists]:not([hidden])) .auth-aside { display: none; }
@media (min-width: 980px) { .auth:has([data-two-journeys]:not([hidden]), [data-two-checklists]:not([hidden])) { grid-template-columns: minmax(0, 1fr); max-width: 64rem; margin-inline: auto; } }
@media (min-width: 980px) { .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); } }
.auth-main { display: grid; gap: var(--space-6); align-content: start; }
.auth-main h1 { font-size: var(--text-2xl); }
.auth-aside {
  display: grid; align-content: end; min-height: 18rem; border-radius: var(--radius-lg); overflow: hidden;
  padding: clamp(var(--space-6), 4vw, var(--space-10)); color: var(--color-onphoto); box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, oklch(0.25 0.03 160 / 0.35), oklch(0.2 0.03 160 / 0.88)), url(/images/dusk_gate.webp) center / cover, var(--color-ink-surface);
}
.auth-aside h2 { font-size: var(--text-xl); color: var(--color-onphoto); }
.auth-points { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.auth-points li { display: flex; gap: var(--space-3); align-items: flex-start; }
.auth-points .ic { color: var(--color-gold-highlight); margin-top: 3px; }
.auth-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-size: var(--text-sm); }
.choice-cards { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .choice-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choice-card { display: grid; gap: var(--space-3); align-content: start; }
.choice-card .label { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); }
.state--error .ic--24 { color: var(--danger); }
.state--done .ic--24 { color: var(--color-success); }

/* ---------- 17. Pages: content (About, Contact, Help, 404) ---------- */
.page-head { display: grid; gap: var(--space-4); padding-block: clamp(var(--space-10), 6vw, var(--space-16)) var(--space-6); }
.page-head h1 { font-size: var(--text-3xl); max-width: 22ch; }
.page-head-photo { width: 100%; max-width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }
/* More room between the words and the photo (Ricky, 22 October: Concierge). */
@media (min-width: 980px) { .page-head--media { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(var(--space-12), 6vw, var(--space-20)); } }
.split { display: grid; gap: var(--space-8); align-items: start; }
@media (min-width: 980px) { .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-12); } }
.split > * { min-width: 0; }
/* A start page's heading beside its preview (Builder, Planning ahead; Ricky, 19 October). */
@media (min-width: 980px) { .split--hero { align-items: center; } }
.stage-list.stage-list--four { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .stage-list.stage-list--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .stage-list.stage-list--four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .feature-list.feature-list--five { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.feature-list { list-style: none; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.feature-list li { display: grid; gap: var(--space-2); align-content: start; }
/* Five items: five across on desktop, never four and one left over. */
.feature-list--five { grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.ticks { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.ticks li { display: flex; gap: var(--space-3); align-items: flex-start; }
.ticks .ic { color: var(--color-primary); margin-top: 3px; }
/* Plain display text, not pills, so the questions never look like buttons. */
.quote-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.quote-list li { font-family: var(--font-display); font-size: var(--text-lg); font-style: italic; color: var(--color-text-muted); }
.contact-number { font-size: var(--text-2xl); font-weight: 700; color: var(--color-text); text-decoration: none; font-variant-numeric: tabular-nums; }
.contact-number:hover { color: var(--color-primary); }
.faq-nav { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; }
.faq-nav a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-full); background: var(--color-surface-2); text-decoration: none; color: var(--color-text); font-size: var(--text-sm); font-weight: 600; }
.faq-nav a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.faq-group { display: grid; gap: var(--space-5); }
.faq-item { display: grid; gap: var(--space-2); align-content: start; padding-top: var(--space-5); border-top: 1px solid var(--color-divider); }
.faq-item h3 { font-size: var(--text-lg); font-family: var(--font-display); font-weight: 600; }
.faq-item p { max-width: 68ch; }
/* Wide screens: the questions two across, so the page uses the width (Ricky, 19 October). */
@media (min-width: 1100px) { .faq-group { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-12); } .faq-group > :first-child { grid-column: 1 / -1; } .with-list .faq-group { grid-template-columns: minmax(0, 1fr); } }
.btn--danger { background: var(--danger); color: var(--color-text-inverse); }
.btn--danger:hover { background: #7E2735; color: var(--color-text-inverse); }
.notice[data-status] { padding: var(--space-3) var(--space-4); font-size: var(--text-sm); }

/* ---------- 18. Pages: the journey ---------- */
.btn[aria-pressed="true"] { background: var(--color-accent-highlight); border-color: var(--color-accent); color: var(--color-text); }
.stage-list { list-style: none; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); counter-reset: none; }
.stage-list li { display: flex; gap: var(--space-4); align-items: flex-start; }
/* The journey intro's six stage cards: three by two from tablet width, never five and one. */
@media (min-width: 768px) { .stage-list--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* As cards in a row, the number sits above the words, so the words use the card's full width. */
.stage-list li.panel:has(p) { flex-direction: column; gap: var(--space-3); }
.stage-num { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--color-primary-highlight); color: var(--color-primary-hover); font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; }
.with-list.no-list { grid-template-columns: minmax(0, 1fr); }
.with-list.no-list > .list-panel, .with-list.no-list > .list-fab { display: none !important; }
/* PLA1-18: the records keep a comfortable line length where there is no panel beside them. */
@media screen { #pa-main .record .option-lines { max-width: 70ch; } }
.journey-main { display: grid; gap: var(--space-5); align-content: start; min-width: 0; }
.journey-bar { display: grid; gap: var(--space-3); }
.journey-bar-row { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: center; justify-content: space-between; min-height: 44px; }
.journey-cheer { font-size: var(--text-sm); font-weight: 600; color: var(--color-success); min-height: 1.4em; }
/* The stages as a line of steps (Ricky, 19 October): as the account's step by
   step, the line after the current stage filling as it is answered. */
.pipeline { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pipe { position: relative; display: grid; justify-items: start; align-content: start; gap: var(--space-2); }
.pipe-dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--color-surface-offset); color: var(--color-text-muted); font-size: var(--text-xs); font-weight: 700; }
.pipe.is-done .pipe-dot { background: var(--color-success); color: var(--color-text-inverse); }
.pipe.is-now .pipe-dot { background: var(--color-primary); color: var(--color-text-inverse); box-shadow: 0 0 0 4px var(--color-primary-highlight); }
.pipe.is-done[aria-current] .pipe-dot { box-shadow: 0 0 0 4px var(--color-success-highlight); }
.pipe-name { font-size: var(--text-xs); font-weight: 600; line-height: 1.3; color: var(--color-text-muted); padding-right: var(--space-3); }
.pipe[aria-current] .pipe-name { color: var(--color-text); }
.pipe:not(:last-child)::before, .pipe:not(:last-child)::after { content: ""; position: absolute; left: 28px; top: 13px; height: 2px; }
.pipe:not(:last-child)::before { right: 0; background: var(--color-divider); }
.pipe:not(:last-child)::after { width: 0; background: var(--color-success); }
.pipe.is-done:not(:last-child)::after { width: calc(100% - 28px); }
.pipe.is-now:not(:last-child)::after { width: calc((100% - 28px) * var(--fill, 0)); background: var(--color-primary); }
@media (max-width: 639.98px) {
  .pipeline { grid-template-columns: repeat(5, minmax(0, 1fr)) auto; }
  .pipe-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* The dots show how far through the stage they are, so just the words here. */
  [data-journey-shell] .question-progress .bar { display: none; }
}
/* The line of steps says where they are, so the bar above a question is for phones only. */
@media (min-width: 640px) { [data-journey-shell] .question-progress { display: none; } }
/* The stage complete screen's "2 of 6 stages complete": phones only, where the stage names are hidden. */
.gate-progress { margin: 0; }
@media (min-width: 640px) { .gate-progress { display: none; } }
.journey-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--color-divider); }
.journey-actions--prominent { border-top: 0; padding-top: 0; }
@media (max-width: 639.98px) {
  .journey-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .journey-actions .btn { flex-direction: column; gap: 4px; min-height: 56px; padding: var(--space-2) 0; font-size: var(--text-xs); white-space: nowrap; }
}
/* Stage complete: the other things to do as cards, then one feature or the Concierge reminder. */
/* The other things to do, in one box with a line between each (Ricky, 19 October). */
.action-cards { display: grid; grid-template-columns: 1fr; background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
@media (min-width: 600px) { .action-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .action-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.action-card { display: flex; gap: var(--space-3); align-items: flex-start; width: 100%; padding: var(--space-4) var(--space-5); text-align: left; font: inherit; color: var(--color-text); text-decoration: none; cursor: pointer; background: none; border: 0; border-top: 1px solid var(--color-divider); border-radius: 0; }
.action-cards > :first-child { border-top: 0; }
@media (min-width: 600px) { .action-cards > :nth-child(2) { border-top: 0; } .action-cards > :nth-child(even) { border-left: 1px solid var(--color-divider); } }
@media (min-width: 1100px) { .action-cards > * { border-top: 0; } .action-cards > :not(:first-child) { border-left: 1px solid var(--color-divider); } }
.action-card:hover { background: var(--color-primary-highlight); }
/* Things to tap, not notes (Ricky, 20 October): the title in the link colour
   with an arrow, the arrow moving on hover. */
.action-card strong { color: var(--color-primary); }
.action-card .action-go { display: inline-block; margin: 0 0 0 4px; vertical-align: -3px; color: var(--color-primary); transition: transform var(--transition); }
.action-card:hover .action-go { transform: translateX(3px); }
.action-card:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.action-card .ic { flex: none; margin-top: 2px; color: var(--color-primary); }
.action-card > span { display: grid; gap: 2px; min-width: 0; }
.action-card strong { font-weight: 700; }
.action-card .small { color: var(--color-text-muted); }
.gate-band [data-plan-band] { display: none; }
/* Your files: one compact row each (AC7). */
.doc-head { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; }
.doc-list { list-style: none; margin: 0; padding: 0; }
/* Rows wrap on the space they have (the account column is narrower than the screen). */
.doc-row { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); align-items: center; padding: var(--space-4) var(--space-5); border-top: 1px solid var(--color-border); }
.doc-row:first-child { border-top: 0; }
.doc-file { flex: 1 1 16rem; display: flex; gap: var(--space-3); align-items: flex-start; min-width: 0; }
.doc-file .ic { flex: none; margin-top: 3px; color: var(--color-primary); }
.doc-file > div { min-width: 0; }
.doc-name { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.doc-file .small { margin: 0; }
.doc-share { flex: 0 1 auto; display: flex; gap: var(--space-3); align-items: center; justify-content: flex-start; }
.doc-share input { flex: none; }
.doc-share label { font-weight: 600; font-size: var(--text-sm); }
.doc-share p { margin: 0; }
.doc-state { color: var(--color-text-muted); }
.doc-state.is-on { color: var(--color-primary); font-weight: 600; }
.doc-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.small-heading { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; color: var(--color-text-muted); }
.stage-gate h1 { font-size: var(--text-2xl); }
/* Stage complete (Ricky, 19 October): a tick beside the heading, then the
   save box and Back and Continue inside the same card. */
.gate-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.gate-mark { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--color-success-highlight); color: var(--color-success); }
.gate-head--hold .gate-mark { background: var(--color-warning-highlight); color: var(--color-warning); }
.gate-head--builder .gate-mark { background: var(--color-primary-highlight); color: var(--color-primary); }
.stage-gate .save-nudge { background: none; border: 0; border-top: 1px solid var(--color-divider); border-radius: 0; padding: var(--space-5) 0 0; }
.question-nav--card { padding-top: var(--space-5); border-top: 1px solid var(--color-divider); }
.question-nav--card .btn--quiet { padding-inline: 0; }
@media (max-width: 639.98px) { .gate-head { grid-template-columns: minmax(0, 1fr); } .gate-mark { width: 40px; height: 40px; } }
.summary-grid { display: grid; gap: var(--space-8); align-items: start; }
/* MKT2-07: from 980px the options sit beside the list, so no jump link. */
@media (min-width: 980px) { .list-jump { display: none; } }
@media (min-width: 980px) { .summary-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.summary-grid > * { min-width: 0; }
/* Planning ahead's three options, across when there is room (Ricky, 19 October). */
@media (min-width: 640px) { .pa-options .option-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); } }
/* The detailed checklist's heading with the quick ways to keep it beside it (Ricky, 20 October). */
.pa-records-head { display: grid; gap: var(--space-4); align-items: center; padding-top: var(--space-6); border-top: 1px solid var(--color-divider); }
@media (min-width: 980px) { .pa-records-head { grid-template-columns: auto minmax(0, 1fr); } .pa-quick { justify-content: flex-end; } }
.pa-quick { gap: var(--space-2); }
/* The Builder list's call band (Ricky, 19 October): on a computer the
   buttons and the three ways of help side by side, no empty space; on a
   phone the ways fold under "How we can help" and the buttons go full width. */
.talk-band { display: grid; gap: var(--space-4); }
.talk-band > * { min-width: 0; }
.talk-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: flex-start; padding-top: var(--space-2); }
.talk-toggle { justify-self: start; display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; font-weight: 600; font-size: var(--text-sm); color: var(--color-primary); }
.talk-toggle .ic { transition: transform var(--transition); }
.talk-toggle[aria-expanded="true"] .ic { transform: rotate(90deg); }
.talk-ways { display: grid; gap: var(--space-4); }
.talk-band:not(.is-open) .talk-ways { display: none; }
.talk-ways dt { font-weight: 600; }
.talk-ways dd { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-1); }
@media (max-width: 979.98px) { .talk-actions > * { flex: 1 1 100%; } .talk-actions .btn { width: 100%; justify-content: center; } }
@media (min-width: 980px) {
  .talk-band { grid-template-columns: minmax(18rem, 1.25fr) minmax(0, 3fr); gap: var(--space-8); align-items: start; }
  .talk-toggle { display: none; }
  .talk-band .talk-ways, .talk-band:not(.is-open) .talk-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
  .talk-ways > div { padding-left: var(--space-6); border-left: 1px solid var(--color-divider); }
}
/* The options beside a list: two by two where the column has room, so all
   four sit higher up the page (Ricky, 20 October); one column only in the
   narrow in-between widths. */
@media (min-width: 980px) and (max-width: 1099.98px) { .summary-grid .option-cards { grid-template-columns: minmax(0, 1fr); } }
/* Your list's options (Ricky, 20 October): the PDF over the call on the
   left, "We contact the suppliers for you" with Concierge down the right. */
@media (min-width: 640px) {
  .option-cards--list { grid-template-areas: "pdf help" "call help"; }
  .option-cards--list .oc-pdf { grid-area: pdf; }
  .option-cards--list .oc-call { grid-area: call; }
  .option-cards--list .oc-help { grid-area: help; grid-template-rows: auto auto auto 1fr; }
}
@media (min-width: 980px) and (max-width: 1099.98px) {
  .summary-grid .option-cards--list { grid-template-areas: none; }
  .summary-grid .option-cards--list > li { grid-area: auto; }
}
.oc-help .concierge-band { align-self: end; margin-top: var(--space-2); }
.oc-help .concierge-band h4 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; color: var(--color-onphoto); }
.oc-call .cluster { align-items: center; }
.todo-list { list-style: none; padding: 0; display: grid; gap: var(--space-4); }
.todo-list li { display: grid; gap: var(--space-2); padding-bottom: var(--space-4); border-bottom: 1px solid var(--color-divider); }
.todo-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.todo-list li .pill { justify-self: start; }
.todo-list h3 { font-size: var(--text-base); }
.answers summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; gap: var(--space-3); list-style: none; }
/* The fold's arrow, as on the account menu (SHR1-25). */
.answers summary::-webkit-details-marker { display: none; }
.answers summary .ic { margin-left: auto; flex: none; transition: transform var(--transition); }
.answers[open] summary .ic { transform: rotate(90deg); }
.answer-list { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
.answer-list div { display: grid; gap: 2px; padding-bottom: var(--space-3); border-bottom: 1px solid var(--color-divider); }
.answer-list dt { font-size: var(--text-sm); color: var(--color-text-muted); }
.answer-list dd { display: flex; gap: var(--space-3); justify-content: space-between; align-items: baseline; font-weight: 600; }
.answer-list dd a { font-weight: 500; font-size: var(--text-sm); white-space: nowrap; }
.answer-list__by { display: block; font-weight: 400; font-size: var(--text-sm); color: var(--color-text-muted); }
.flag-list { list-style: none; display: grid; gap: var(--space-3); }
.flag-item { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; padding-bottom: var(--space-3); border-bottom: 1px solid var(--color-divider); }
.flag-item:last-child { border-bottom: 0; padding-bottom: 0; }
.flag-item span { min-width: 0; flex: 1 1 16rem; }
@media print { .journey-bar, .journey-actions, .no-print { display: none !important; } .summary-grid { display: block; } }

/* ---------- 19. Pages: sharing ---------- */
.grid-2 { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.person { border: 1px solid var(--color-border); }
.person-head { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: baseline; justify-content: space-between; }
.person-head h2 { font-size: var(--text-lg); }
.picker { display: grid; gap: var(--space-2); }
.picker-stage { border: 1px solid var(--color-divider); border-radius: var(--radius-md); background: var(--color-surface); padding: var(--space-2) var(--space-4); }
.picker-stage summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; gap: var(--space-2); }
.picker-stage[open] summary { margin-bottom: var(--space-2); }
.quote { border-left: 3px solid var(--color-accent); padding: var(--space-2) var(--space-4); background: var(--color-surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; overflow-wrap: anywhere; }
.share-rows { display: grid; gap: var(--space-4); }
.share-row { display: grid; gap: var(--space-3); }
.share-row .cluster .btn { flex: 0 0 auto; }

/* ---------- 20. Pages: the marketplace ---------- */
.mp-hero { background: var(--color-ink-surface); color: var(--color-onphoto); padding-block: clamp(var(--space-10), 6vw, var(--space-16)); }
/* With results showing, the box has moved down: a shorter top section (M8). */
.mp-hero--short, .mp-has-area .mp-hero { padding-block: clamp(var(--space-8), 4vw, var(--space-12)); }
/* What happens once there is a list (Ricky, 21 October): a photo band, the
   words and buttons on the left, the three steps on the right. */
.mp-concierge-grid { display: grid; gap: var(--space-10); align-items: center; }
@media (min-width: 980px) { .mp-concierge-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-16); } }
.mp-concierge .btn--ghost { color: var(--color-onphoto); border-color: color-mix(in oklab, var(--color-onphoto) 55%, transparent); }
.mp-steps { list-style: none; padding: 0; display: grid; gap: var(--space-4); }
.mp-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--space-4); align-items: start; padding: var(--space-5); border-radius: var(--radius-lg); background: color-mix(in oklab, var(--color-onphoto) 10%, transparent); border: 1px solid color-mix(in oklab, var(--color-onphoto) 22%, transparent); color: var(--color-onphoto); }
.mp-steps h3 { color: var(--color-onphoto); }
.mp-steps p { color: color-mix(in oklab, var(--color-onphoto) 88%, transparent); }
.mp-step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--color-onhero-bg); color: var(--color-onhero-text); font-family: var(--font-display); font-size: var(--text-lg); }
/* Before the script has drawn a search from the address: no start-screen box, the results area already there. */
.mp-has-area [data-place-home], .mp-hero--short [data-place-home] { display: none; }
.mp-has-area [data-browse][hidden] { display: block !important; }
/* A photo to the right of the words on computers (Ricky, 20 October). */
.mp-hero-grid { display: grid; gap: var(--space-8); align-items: center; }
.mp-hero-photo { display: none; }
@media (min-width: 980px) {
  .mp-hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--space-12); }
  .mp-hero-photo { display: block; width: 100%; height: 100%; max-height: 22rem; object-fit: cover; border-radius: var(--radius-xl, 1.5rem); box-shadow: var(--shadow-lg); }
  /* After a search: the photo as tall as the words beside it, the contact line
     included (Ricky, 30 October: capped at 15rem it looked shrunk). */
  .mp-hero--short .mp-hero-photo, .mp-has-area .mp-hero-photo { align-self: stretch; max-height: none; aspect-ratio: auto; contain: size; }
}
.mp-hero h1 { font-size: var(--text-3xl); color: var(--color-onphoto); max-width: 20ch; }
.mp-hero .lead, .mp-hero .hint { color: var(--color-ondark-muted); }
.mp-for { color: var(--color-onphoto); font-weight: 600; }
.mp-hero label { color: var(--color-onphoto); }
.mp-hero .field-error { color: #F3C5CB; }
.postcode-form { max-width: 34rem; }
.postcode-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.postcode-row .input { flex: 1 1 10rem; min-width: 0; }
/* The marketplace once a place is chosen (Ricky, 30 October): the search box,
   then the place and count under it, with the Concierge box beside both; then
   the firms beside the list's box, level with the first row. On a phone: the
   search, the place, the firms, then the Concierge box. */
.mp-browse { row-gap: var(--space-6); }
.mp-browse > .mp-help { order: 5; }
.mp-browse > .list-panel { order: 6; }
.mp-help .help-box :is(h2, h3) { font-size: var(--text-xl); }
@media (min-width: 980px) { .mp-help .help-box :is(h2, h3) { font-size: var(--text-lg); } .mp-help .help-box p { font-size: var(--text-sm); } }
@media (min-width: 980px) {
  .mp-browse { grid-template-areas: "filters help" "meta help" "results list"; grid-template-rows: auto 1fr auto; }
  .mp-browse > .filters { grid-area: filters; }
  .mp-browse > .mp-help { grid-area: help; }
  .mp-browse > .mp-meta { grid-area: meta; align-self: start; }
  .mp-browse > .mp-results-col { grid-area: results; }
  .mp-browse > .list-panel { grid-area: list; }
  /* Shorter, to sit beside the search box (the two small links side by side). */
  .mp-help .help-box { justify-content: center; padding: var(--space-5) var(--space-6); }
}
.help-links { gap: var(--space-2) var(--space-5); }
.mp-area { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: center; font-weight: 600; }
.mp-area h2 { font: inherit; letter-spacing: inherit; color: inherit; margin: 0; }
.mp-journey-top { padding-top: var(--space-6); }
.filters { display: grid; gap: var(--space-3); }
.filters > summary { list-style: none; justify-self: start; }
.filters > summary::-webkit-details-marker { display: none; }
@media (min-width: 980px) { .filters > summary { display: none; } }
.filter-body { display: grid; gap: var(--space-4); padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
/* The search box, once moved down (M8): its hint across the top, then the
   box beside the service and the partners tick. */
.filter-hint:empty, .filter-place:empty { display: none; }
.filter-hint .hint { margin: 0; }
.filter-place .postcode-form { max-width: none; }
.filter-place .btn--onhero { background: var(--color-primary); color: var(--color-text-inverse); border-color: var(--color-primary); }
.filter-body > fieldset { grid-column: 1 / -1; }
@media (min-width: 980px) {
  .filter-body { grid-template-columns: minmax(20rem, 1.8fr) minmax(12rem, 1fr) auto; align-items: end; column-gap: var(--space-6); }
  .filter-hint { grid-column: 1 / -1; }
  .filter-body:has(.filter-place:empty) { grid-template-columns: minmax(12rem, 18rem) auto; }
}
/* Vetted partners only (M3): beside the service box on a computer, level with it. */
.filter-partners { align-items: center; min-height: 44px; font-weight: 600; }
@media (min-width: 980px) { .filter-partners { align-self: end; min-height: 48px; } }
.faith-tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-4); border-radius: var(--radius-full); border: 1.5px solid var(--color-border); background: var(--color-surface-2); font-size: var(--text-sm); font-weight: 600; color: var(--color-text); }
.chip:hover { border-color: var(--color-primary); }
.chip[aria-pressed="true"] { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-text-inverse); }
/* Needed now, from the plan: the brand's one red for urgent markers (the words stay too). */
.ic--urgent { color: var(--danger); }
.chip[aria-pressed="true"] .ic--urgent { color: inherit; }
.mp-bulk { position: sticky; top: var(--header-h); z-index: 5; background: var(--color-bg); padding-block: var(--space-2); }
.supplier-select { font-size: var(--text-sm); }
.supplier-select .sel { appearance: none; flex: none; width: 24px; height: 24px; border: 1.5px solid var(--color-field-border); border-radius: 6px; background: var(--color-surface-2); display: grid; place-content: center; cursor: pointer; }
.supplier-select .sel::before { content: ""; width: 12px; height: 12px; transform: scale(0); transition: transform var(--transition); background: var(--color-text-inverse); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
.supplier-select .sel:checked { background: var(--color-primary); border-color: var(--color-primary); }
.supplier-select .sel:checked::before { transform: scale(1); }
.category-grid { list-style: none; padding: 0; display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.category-grid a { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); min-height: 48px; height: 100%; padding: var(--space-2) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-2); color: var(--color-text); text-decoration: none; font-weight: 600; font-size: var(--text-sm); }
.category-grid a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.journey-band { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; }
.journey-tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.saved-list { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.saved-item { display: grid; gap: var(--space-2); padding: var(--space-4) var(--space-5); box-shadow: var(--shadow-sm); }
.saved-item h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; }
.saved-item h3 a { color: inherit; }
/* Remove stays on the right of every row; a long name wraps in its own space. */
.saved-item .person-head { flex-wrap: nowrap; align-items: center; }
.saved-item .person-head > h3 { flex: 1 1 auto; min-width: 0; }
.saved-item .person-head > .btn { flex: none; }
.list-branch { scroll-margin-top: calc(var(--header-h) + var(--space-4)); }

/* ---------- 21. Pages: the Builder ---------- */
.h3 { font-family: var(--font-body); font-size: var(--text-base); font-weight: 600; line-height: 1.3; }
.item-cards { list-style: none; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); align-items: start; }
.item-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-3); align-items: start; padding: var(--space-3) var(--space-3) var(--space-3) var(--space-5); box-shadow: var(--shadow-sm); }
.item-card summary { display: flex; align-items: center; gap: var(--space-2); min-height: 44px; cursor: pointer; list-style: none; }
.item-card summary::-webkit-details-marker { display: none; }
.item-card summary .ic { transition: transform var(--transition); }
.item-card details[open] summary .ic { transform: rotate(90deg); }
.item-card details[open] summary { margin-bottom: var(--space-3); }
.item-name { font-weight: 700; }
.item-card .btn { justify-self: start; }
.item-card .btn[aria-pressed="true"] { background: var(--color-success-highlight); color: var(--color-success); border-color: var(--color-success); box-shadow: none; }
/* The Builder's small add button beside each name (Ricky, 19 October). */
.item-add { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: var(--radius-full); background: var(--color-primary); color: var(--color-text-inverse); border: 1px solid var(--color-primary); transition: background var(--transition); }
.item-add:hover { background: var(--color-primary-hover); }
.item-add[aria-pressed="true"] { background: var(--color-success-highlight); color: var(--color-success); border-color: var(--color-success); }
/* The Builder's top section: heading and the groups drop-down, with the help box beside them on a computer. */
.builder-top { display: grid; gap: var(--space-5); }
.builder-top > * { min-width: 0; }
.builder-top > .help-box { box-shadow: var(--shadow-md); }
.builder-top > .help-box .btn { justify-self: stretch; justify-content: center; }
/* On a computer the box runs wide and low beside the heading, words on the
   left and the buttons on the right, so the two sides marry up (Ricky, 19 October). */
@media (min-width: 980px) { .builder-top { grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem); column-gap: var(--space-10); align-items: center; } }
@media (min-width: 1340px) {
  .builder-top { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .builder-top > .help-box { grid-template-columns: minmax(0, 1fr) minmax(12rem, 14rem); column-gap: var(--space-8); row-gap: var(--space-3); align-content: center; padding: var(--space-6) var(--space-8); }
  .builder-top > .help-box > :first-child { grid-row: span 2; align-self: center; }
  .builder-top > .help-box > :nth-child(2) { align-self: end; }
  .builder-top > .help-box > :nth-child(3) { grid-column: 2; align-self: start; }
  .builder-top > .help-box h3 { font-size: var(--text-xl); }
}
/* A clear line between the top section and the list below it (Ricky, 19 October). */
.builder-divider { border: 0; border-top: 1px solid var(--color-divider); margin: 0; }
.builder-filter { max-width: 22rem; }
.builder-talk { padding: var(--space-4); border: 1px solid var(--color-divider); border-radius: var(--radius-md); background: var(--color-surface); }

/* The top of the journey, Planning ahead and Builder start pages: a photo band
   like the homepage's, the words light on it and the card or preview beside
   them (Ricky, 20 October: they were too plain for pages that should draw
   people in). */
.hero-band {
  color: var(--color-onphoto); padding-block: clamp(var(--space-10), 6vw, var(--space-16));
  background: linear-gradient(90deg, oklch(0.22 0.03 160 / 0.88), oklch(0.22 0.03 160 / 0.6)), var(--hero-photo) center / cover, var(--color-ink-surface);
}
.hero-copy h1 { color: var(--color-onphoto); }
.hero-copy h2 { color: var(--color-onphoto); }
.hero-copy .lead, .hero-copy p, .hero-copy li { color: color-mix(in oklab, var(--color-onphoto) 90%, transparent); }
.hero-copy .muted { color: var(--color-ondark-muted); }
.hero-copy a:not(.btn) { color: var(--color-onphoto); }
.hero-copy .ticks .ic { color: var(--color-gold-highlight); }
.hero-copy .btn--primary { background: var(--color-onhero-bg); color: var(--color-onhero-text); }
.hero-copy .btn--primary:hover { background: #FFFFFF; color: var(--color-onhero-text); }
.hero-copy .notice { color: var(--color-text); }
.hero-copy .notice span { color: var(--color-text); }
.hero-band .screen-preview figcaption { color: var(--color-ondark-muted); }
.hero-band .sp-frame, .hero-band .home-question { color: var(--color-text); }
/* The journey's two opening paragraphs on desktop: a step smaller, and kept
   clear of the first question beside them (Ricky, 21 October). */
@media (min-width: 980px) { .hero-text { font-size: 1.125rem; max-width: 34rem; } }
/* Its heading on two lines at any desktop width, broken as at 1280px:
   “What to do after a / death, one step at a time” (Ricky, 21 October). */
@media (min-width: 980px) { #journey-h1 { max-width: 12em; text-wrap: balance; } }

/* ---------- 22. Pages: the homepage ---------- */
.home-hero {
  color: var(--color-onphoto); padding-block: clamp(var(--space-10), 7vw, var(--space-20));
  background: linear-gradient(90deg, oklch(0.22 0.03 160 / 0.82), oklch(0.22 0.03 160 / 0.45)), url(/images/hero_first_light.webp) center / cover, var(--color-ink-surface);
}
.home-hero-grid { display: grid; gap: var(--space-8); align-items: center; }
/* On a laptop the words and the first question share one column on the left,
   and the tint fades out to the right, so the robin on the branch shows
   (Ricky, 22 October: the question covered it). Phones keep the stacked
   layout that shows the question without scrolling (GLB1-05). */
@media (min-width: 980px) {
  .home-hero { padding-block: var(--space-12); background: linear-gradient(90deg, oklch(0.22 0.03 160 / 0.88) 0%, oklch(0.22 0.03 160 / 0.78) 45%, oklch(0.22 0.03 160 / 0.15) 66%, oklch(0.22 0.03 160 / 0) 100%), url(/images/hero_first_light.webp) center / cover, var(--color-ink-surface); }
  /* Ricky's tweaks, 22 October: a slightly smaller headline, a wider
     question card, no call line beside the words (it stays under the
     question on phones) and a little more room above the card. */
  .home-hero-grid { grid-template-columns: minmax(0, min(44rem, 57%)); gap: var(--space-8); }
  .home-hero .home-hook { gap: var(--space-4); }
  .home-hero .home-hook h1 { font-size: clamp(2.5rem, 1.2rem + 2.4vw, 3.6rem); max-width: none; text-wrap: balance; }
  .home-hero .home-hook .lead { max-width: none; }
  .home-hero .home-question { max-width: 40rem; }
  .home-hero .home-question .question-card h2 { max-width: 12em; text-wrap: balance; }
}
.home-hook h1 { font-size: var(--text-hero); color: var(--color-onphoto); max-width: 14ch; line-height: 1.05; }
.home-hook .lead { color: color-mix(in oklab, var(--color-onphoto) 88%, transparent); }
.home-hook a { color: var(--color-onphoto); }
.home-question { background: var(--color-surface-2); color: var(--color-text); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: clamp(var(--space-5), 3vw, var(--space-8)); display: grid; gap: var(--space-3); }
.home-question .question-card { box-shadow: none; border: 0; padding: 0; background: transparent; }
.home-question .question-card h2 { font-size: var(--text-xl); }
.home-question .question-nav { position: static; box-shadow: none; padding: 0; margin: 0; background: transparent; justify-content: flex-start; }
/* GLB1-05: on a phone the first question and both its answers show without
   scrolling, down to a 375 by 667 screen: a smaller headline, less space,
   and the phone line under Continue, where the wireframe puts it. */
.home-talk-card { display: none; }
@media (max-width: 599px) {
  .home-hero { padding-block: var(--space-5) var(--space-10); }
  .home-hero-grid { gap: var(--space-5); }
  .home-hook { gap: var(--space-3); }
  /* The headline uses the full width, as on the product pages: three even lines, not four short ones. */
  .home-hook h1 { font-size: clamp(1.9rem, 8.6vw, 2.4rem); max-width: none; }
  .home-hook .lead { font-size: var(--text-base); }
  .home-talk-card { display: block; }
  .home-question { gap: var(--space-2); padding: var(--space-4) var(--space-5) var(--space-5); }
}
/* The questions nobody should have to piece together alone (Ricky, 19 October: from About to here). */
.home-questions { justify-items: center; text-align: center; }
.home-questions .quote-list { justify-content: center; }
.home-questions .lead { max-width: 60ch; }
/* On phones one question a line, a tidy column rather than two, one and two. */
@media (max-width: 599px) { .home-questions .quote-list { flex-direction: column; align-items: center; gap: var(--space-1); } }
/* How we can help you: the overview, then the five products (Ricky, 19 October). */
.help-overview { display: grid; gap: var(--space-8); }
@media (min-width: 980px) { .help-overview { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-12); align-items: start; } }
.help-pillars { list-style: none; padding: 0; display: grid; gap: var(--space-6); }
@media (min-width: 768px) { .help-pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.help-pillars li { display: grid; gap: var(--space-3); align-content: start; }
@supports (grid-template-rows: subgrid) { @media (min-width: 768px) { .help-pillars li { grid-row: span 2; grid-template-rows: subgrid; } } }
.help-pillars .ic { width: 48px; height: 48px; padding: 12px; border-radius: var(--radius-full); background: var(--color-primary-highlight); color: var(--color-primary); }
.help-pillars h3 { font-size: var(--text-base); font-weight: 600; }
/* On phones the icon sits beside the words, as on the product pages, so it no
   longer floats on a line of its own (Ricky, 19 November). */
@media (max-width: 767.98px) {
  .help-pillars li { grid-template-columns: 44px minmax(0, 1fr); gap: var(--space-4); }
  .help-pillars .ic { width: 44px; height: 44px; }
}
/* The five products start a new group: a full section's room above their
   heading, so it sits with its cards (Ricky, 19 November). */
@media (max-width: 979.98px) { .home-help { gap: var(--space-16); } }
/* The products' cards: every line level across the row, however a name wraps. */
.product-cards { list-style: none; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
@media (min-width: 1100px) { .product-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.product-card { display: flex; flex-direction: column; gap: var(--space-3); box-shadow: var(--shadow-sm); }
@supports (grid-template-rows: subgrid) { .product-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; } }
.product-card .pill { justify-self: start; align-self: start; }
.product-card h4 { font-size: var(--text-lg); }
/* Each card's one link is 44px tall to tap, as the site's small buttons and
   chips already are (Ricky, 19 November). */
.product-go { margin-top: auto; align-self: end; min-height: 44px; display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 600; text-decoration: none; }
.product-go:hover { text-decoration: underline; }
/* How it works: three starting points side by side, on a band of their own. */
.home-paths { background: var(--color-surface); border-block: 1px solid var(--color-divider); }
.path-cards { list-style: none; padding: 0; display: grid; gap: var(--space-5); }
@media (min-width: 980px) { .path-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.path-card { display: flex; flex-direction: column; gap: var(--space-3); box-shadow: var(--shadow-sm); }
@supports (grid-template-rows: subgrid) { @media (min-width: 980px) { .path-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; } } }
.path-card h3 { font-size: var(--text-xl); }
.path-steps { list-style: none; padding: 0; display: grid; gap: var(--space-3); counter-reset: path; margin-top: var(--space-2); }
.path-steps li { counter-increment: path; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-3); align-items: start; font-size: var(--text-sm); }
.path-steps li::before { content: counter(path); display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-full); background: var(--color-primary); color: var(--color-text-inverse); font-weight: 700; font-size: var(--text-xs); }
.path-go { display: grid; gap: var(--space-3); justify-items: start; align-content: start; margin-top: var(--space-3); }
/* The full service line under the three cards: a card like the ones above it
   (the panel corners, not a pill, so four lines on a phone never sit in an
   oval), the icon in the same sage circle as the product pages, and the link
   on a line of its own on phones (Ricky, 19 November). */
.path-both { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--space-4); align-items: start; text-align: left; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--color-surface-2); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.path-both .ic { width: 44px; height: 44px; padding: 12px; border-radius: var(--radius-full); background: var(--color-primary-highlight); color: var(--color-primary); }
.path-both a { display: flex; align-items: center; width: fit-content; min-height: 44px; }
@media (min-width: 980px) {
  .path-both { justify-self: center; align-items: center; }
  .path-both a { display: inline; min-height: 0; }
}
/* Who you are trusting: the points two across on wider screens. */
@media (min-width: 768px) { .trust-ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-10); row-gap: var(--space-5); } }
.h-display { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; }
.two-ways { display: grid; gap: var(--space-5); }
@media (min-width: 768px) { .two-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.two-ways .pill { justify-self: start; }
.home-closing {
  color: var(--color-onphoto); padding-block: clamp(var(--space-16), 9vw, var(--space-24));
  background: linear-gradient(180deg, oklch(0.2 0.03 160 / 0.6), oklch(0.2 0.03 160 / 0.85)), url(/images/dusk_gate.webp) center / cover, var(--color-ink-surface);
}
.home-closing h2 { font-size: var(--text-3xl); color: var(--color-onphoto); font-weight: 500; }
.home-closing .lead, .home-closing .small { color: color-mix(in oklab, var(--color-onphoto) 88%, transparent); max-width: 60ch; }
.home-closing .small a { color: var(--color-onphoto); }
/* The photo band before the footer on the main pages (Ricky, 19 October). */
.closing-band { color: var(--color-onphoto); padding-block: clamp(var(--space-16), 9vw, var(--space-24)); background: linear-gradient(180deg, oklch(0.2 0.03 160 / 0.55), oklch(0.2 0.03 160 / 0.85)), var(--closing-photo) center / cover, var(--color-ink-surface); }
.closing-band--gate { --closing-photo: url(/images/dusk_gate.webp); }
.closing-band--light { --closing-photo: url(/images/hero_first_light.webp); }
.closing-band h2 { font-size: var(--text-3xl); color: var(--color-onphoto); font-weight: 500; max-width: 22ch; }
.closing-band .lead { color: color-mix(in oklab, var(--color-onphoto) 88%, transparent); max-width: 60ch; }
.closing-band .phone-number { color: var(--color-onphoto); font-size: var(--text-xl); font-weight: 600; }
.closing-band .phone-reveal .muted { color: var(--color-ondark-muted); }
.closing-actions { align-items: flex-start; }
/* Ways to talk under a page's first button (Ricky, 30 October). */
.hero-contact-lead { margin: 0; font-size: var(--text-sm); max-width: 52ch; }
.on-dark .hero-contact-lead { color: color-mix(in oklab, var(--color-onphoto) 88%, transparent); }
.hero-contact .cluster { align-items: flex-start; }
.on-dark .hero-contact .phone-reveal .muted { color: var(--color-ondark-muted); }
/* A button that reads as a link, in running text (it opens a pop-up). */
.link-button { padding: 0; border: 0; background: none; font: inherit; color: var(--color-primary); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); cursor: pointer; }
.link-button:hover { color: var(--color-primary-hover); text-decoration-color: currentColor; }
.eyebrow--light { color: var(--color-gold-highlight); }
.eyebrow--light::before { background: var(--color-gold-highlight); }

/* ---------- 23. Pages: Concierge ---------- */
.steps { list-style: none; padding: 0; display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); counter-reset: step; }
.steps li { counter-increment: step; padding-top: var(--space-4); border-top: 2px solid var(--color-primary); }
.steps li::before { content: counter(step); font-family: var(--font-display); font-size: var(--text-2xl); color: var(--color-primary); line-height: 1; font-variant-numeric: lining-nums; }
/* Three steps: stacked, then three across, never two and one left over. */
.steps--three { grid-template-columns: 1fr; }
@media (min-width: 768px) { .steps--three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* A smaller "How it works" (the marketplace, Ricky, 19 October), so the
   services sit closer to the search above them. */
.how--compact { padding-block: var(--space-8) var(--space-2); gap: var(--space-5); }
.how--compact > h2 { font-size: var(--text-xl); }
.how--compact .steps li { padding-top: var(--space-3); }
.how--compact .steps li::before { font-size: var(--text-xl); }
.plan-cards { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .plan-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .plan-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plan-card { display: flex; flex-direction: column; gap: var(--space-4); }
.plan-card > * { min-width: 0; }
.plan-card .pill { align-self: flex-start; }
/* The buttons sit along the bottom of every card, so they line up across the row. */
.plan-card > .cluster:last-child { margin-top: auto; }
/* The call option beside the callback form: a quiet panel, centred against the form. */
.callback-aside { align-self: center; }
/* Concierge: the callback form and calling now in one box (Ricky, 19 October). */
.callback-split { display: grid; gap: var(--space-8); }
.callback-split > * { min-width: 0; }
@media (min-width: 980px) {
  .callback-split { grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); }
  .callback-now { align-self: stretch; align-content: center; padding-left: var(--space-8); border-left: 1px solid var(--color-divider); }
}
@media (max-width: 979.98px) { .callback-now { padding-top: var(--space-6); border-top: 1px solid var(--color-divider); } }
/* Someone already under way: one band, text beside the button. */
/* The words sit level with the middle of the question beside them (Ricky, 22 October). */
#your-plan .split { align-items: center; }
#your-plan.is-under-way .split { grid-template-columns: minmax(0, 1fr); }
#your-plan.is-under-way .discover-text { padding: clamp(var(--space-5), 3vw, var(--space-8)); background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
@media (min-width: 768px) { #your-plan.is-under-way [data-under-way] { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-8); } }
.plan-card--free { background: var(--color-surface); }
.plan-card--recommended { border: 2px solid var(--color-primary); box-shadow: var(--shadow-md); }
/* The main option on a list's options, as the recommended plan (BLD1-20) */
.option-card--main { border: 2px solid var(--color-primary); box-shadow: var(--shadow-md); }
@media (max-width: 979px) { .plan-card--recommended { order: -1; } }
.plan-price { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; line-height: 1.1; }
.ticks--no .ic { color: var(--color-text-muted); }
/* What each package includes (Ricky, 22 October, from his design): a rounded
   card, grouped rows, a tick in a circle or a dash. Stays a table on phones. */
.compare-section { display: grid; gap: var(--space-8); justify-items: center; }
.compare-head { text-align: center; justify-items: center; max-width: 46rem; }
.compare-head h2 { font-size: var(--text-2xl); }
.compare-head .lead { margin-inline: auto; }
.compare-wrap { width: 100%; max-width: 64rem; overflow-x: auto; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--color-divider); font-size: var(--text-sm); vertical-align: middle; }
.compare tbody:last-child tr:last-child > * { border-bottom: 0; }
.compare thead th { background: var(--color-surface-offset); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; text-align: center; }
.compare thead th:first-child { text-align: left; }
.compare-price { display: block; margin-top: 2px; font-weight: 700; letter-spacing: 0; }
.compare .compare-group th { padding-block: var(--space-3); background: color-mix(in oklab, var(--color-surface-offset) 45%, var(--color-surface)); color: var(--color-text-muted); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-align: left; }
.compare tbody th[scope="row"] { font-weight: 400; text-align: left; border-right: 1px solid var(--color-divider); }
.compare td { text-align: center; width: 9rem; }
.compare-mark { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; color: var(--color-text-faint); }
.compare-mark.is-yes { background: var(--color-primary-highlight); color: var(--color-primary); }
.compare-note { max-width: 46rem; text-align: center; }
@media (max-width: 639.98px) {
  .compare th, .compare td { padding: var(--space-3) var(--space-1); }
  .compare tbody th[scope="row"], .compare thead th:first-child, .compare .compare-group th { padding-inline: var(--space-3); }
  .compare thead th { font-size: 0.6875rem; letter-spacing: 0.02em; }
  .compare td, .compare thead th[data-plan-col] { width: 3.6rem; }
  .compare-mark { width: 1.5rem; height: 1.5rem; }
}
@media (max-width: 359.98px) {
  .compare tbody th[scope="row"] { font-size: var(--text-xs); }
  .compare thead th { font-size: 0.625rem; letter-spacing: 0; }
  .compare td, .compare thead th[data-plan-col] { width: 3.25rem; }
}
.plan-detail { display: grid; gap: var(--space-8); align-items: start; }
.plan-detail > * { min-width: 0; }
@media (min-width: 980px) {
  .plan-detail { grid-template-columns: minmax(0, 7fr) minmax(16rem, 4fr); gap: var(--space-12); }
  .plan-buy { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h) + var(--space-6)); }
  .plan-body { grid-column: 1; grid-row: 1; }
}
/* A firm's own page, partner or not (Daniel, 19 November): the firm first.
   A big photo as the main picture, the name and a short contact box beside
   it, then the whole write-up in larger type. The facts, the Concierge help
   and the list come after, beside the words on wide screens and below them on
   a phone. (Was a 16rem photo, Ricky, 20 October, and a contact box that took
   half the page.) With no photo, the name sits on its own. */
.sup-page { display: grid; gap: var(--space-8); align-items: start; }
.sup-page > * { min-width: 0; }
.sup-intro, .sup-main { overflow-wrap: anywhere; }
.sup-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); background: var(--color-surface-offset); }
.sup-photo--hero { aspect-ratio: 3 / 2; max-height: 34rem; }
.sup-contact { padding: var(--space-5); }
.sup-contact-more { display: grid; gap: var(--space-3); }
@media (min-width: 480px) { .sup-contact-more { grid-template-columns: 1fr 1fr; } }
/* The words run the full width of the photo above them (Daniel, 19 November). */
.sup-about { max-width: none; }
.sup-about h2 { font-size: var(--text-xl); }
.sup-about p { font-size: var(--text-lg); line-height: 1.7; }
.sup-facts { display: grid; gap: var(--space-6); }
@media (min-width: 640px) and (max-width: 979.98px) { .sup-facts { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); } }
@media (min-width: 980px) {
  .sup-page { grid-template-columns: minmax(0, 8fr) minmax(18rem, 4fr); column-gap: var(--space-12); row-gap: var(--space-10); }
  .sup-photo--hero { grid-column: 1; grid-row: 1; }
  .sup-intro { grid-column: 2; grid-row: 1; align-self: end; }
  .sup-page:not(:has(> .sup-photo--hero)) .sup-intro { grid-column: 1; align-self: start; }
  .sup-main { grid-column: 1; grid-row: 2; }
  .sup-side { grid-column: 2; grid-row: 2; }
  .sup-contact-more { grid-template-columns: 1fr; }
  /* Not the Concierge plan pages' contact box, which sits in its own column. */
  .sup-page .plan-buy { grid-column: auto; grid-row: auto; position: static; }
  /* The list shows at its full height in the side column (Ricky, 30 October). */
  .sup-side .list-panel { position: static; max-height: none; overflow: visible; }
  .sup-side .list-panel--split > .list-body { max-height: none; }
  .sup-side .list-panel--split .list-card { overflow: visible; }
}
.sup-up a { display: inline-flex; align-items: center; gap: var(--space-1); }
/* Links on from the SEO pages: one a line, the arrow after the last word even when a link wraps. */
.seo-related .cluster { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.seo-related a .ic { vertical-align: -0.15em; margin-left: var(--space-1); }
.order-summary { display: grid; gap: var(--space-2); }
.order-summary .plan-price { font-size: var(--text-xl); }
.fieldset legend { padding: 0; margin-bottom: var(--space-2); }
.plan-buy .btn--quiet, .concierge-talk .btn { justify-self: start; }
/* A quiet link-style button lines up with the content above it. */
.concierge-talk .btn--quiet, .plan-buy .btn--quiet { padding-inline: 0; }
.concierge-talk { align-self: start; }
/* Checkout (Ricky, 19 October): the chosen package and a warm, dark "talk
   first" box on the left, the form on the right. */
.checkout-grid { display: grid; gap: var(--space-8); align-items: start; }
.checkout-grid > * { min-width: 0; }
@media (min-width: 980px) {
  .checkout-grid { grid-template-columns: minmax(18rem, 5fr) minmax(0, 7fr); }
  .checkout-side { grid-column: 1; grid-row: 1; position: sticky; top: calc(var(--header-h) + var(--space-6)); }
  .checkout-grid > [data-checkout], .checkout-grid > [data-has-plan] { grid-column: 2; grid-row: 1; }
}
.checkout-package h1 { font-size: var(--text-2xl); }
.checkout-talk { box-shadow: var(--shadow-md); }
.checkout-talk h2 { font-size: var(--text-xl); }
.checkout-talk .btn { justify-self: stretch; justify-content: center; }
.checkout-pay { display: flex; gap: var(--space-2); align-items: flex-start; }
.checkout-pay .ic { flex: none; margin-top: 3px; }

/* ---------- 24. Pages: the account area ---------- */
.account { display: grid; gap: var(--space-6); align-items: start; }
.account > * { min-width: 0; }
.account-main { overflow-wrap: anywhere; }
@media (min-width: 980px) { .account { grid-template-columns: 15rem minmax(0, 1fr); gap: var(--space-10); } }
.account-menu { border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface-2); }
.account-menu summary { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--space-1) var(--space-3); min-height: 48px; padding: var(--space-2) var(--space-4); cursor: pointer; list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary .ic { margin-left: auto; transition: transform var(--transition); }
/* On the smallest phones the section name wraps in its own space; the arrow stays on the first line. */
.account-menu summary .small-heading, .account-menu summary .ic { flex: none; }
.account-menu[open] summary .ic { transform: rotate(90deg); }
.account-menu-current { font-weight: 700; min-width: 0; }
.account-menu ul { list-style: none; margin: 0; padding: 0 var(--space-2) var(--space-2); display: grid; gap: 2px; }
.account-menu a, .account-log-out { display: flex; align-items: center; min-height: 44px; padding: 0 var(--space-3); border-radius: var(--radius-md); text-decoration: none; color: var(--color-text); font-size: var(--text-sm); font-weight: 600; }
.account-menu a:hover, .account-log-out:hover { background: var(--color-surface-offset); color: var(--color-primary); }
.account-log-out { width: 100%; border: 0; background: none; font-family: inherit; text-align: left; cursor: pointer; }
.account-menu a[aria-current="page"] { background: var(--color-primary-highlight); color: var(--color-primary-hover); }
@media (min-width: 980px) {
  .account-nav { position: sticky; top: calc(var(--header-h) + var(--space-6)); }
  .account-menu { border: 0; background: transparent; }
  .account-menu summary { display: none; }
  .account-menu ul { padding: 0; }
}
.account-cards { list-style: none; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
/* Card headings at card size, so they do not break awkwardly in a narrow card. */
.account-cards h2 { font-size: var(--text-xl); line-height: 1.2; }
.attention { border-left: 4px solid var(--color-accent); }
.stage-list:has(> .stage-row) { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
.stage-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-2); }
.stage-row.is-current { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.stage-num { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--color-surface-offset); font-size: var(--text-sm); font-weight: 700; }
.stage-name { flex: 1; min-width: 0; font-weight: 600; }
/* People helping you: each question's stage under it (Ricky, 21 October). */
.share-q { display: inline; }
.share-stage { display: block; margin-top: 2px; }
.stage-row { scroll-margin-top: calc(var(--header-h) + var(--space-4)); }
/* The Concierge questions' parts: what each covers, and done, next or to do. */
.intake-parts .stage-name { display: grid; gap: 2px; }
.intake-parts .stage-name .small { font-weight: 400; }
.intake-parts .pill { flex: none; }
.pill--next { background: var(--color-primary); color: var(--color-text-inverse); }
.pill--todo { background: var(--color-surface-offset); color: var(--color-text-muted); }
.record-head, .task-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: var(--space-3); }
.task-list { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.task { padding: var(--space-4); border: 1px solid var(--color-divider); border-radius: var(--radius-md); background: var(--color-surface-2); }
/* Folding rows (Ricky, 19 October): the records checklist's categories and
   records, and the journey's stages, open in place. The chevron turns. */
:is(.rec-group, .rec-body, .stage-row > details) > summary { display: flex; align-items: center; gap: var(--space-3); cursor: pointer; list-style: none; }
:is(.rec-group, .rec-body, .stage-row > details) > summary::-webkit-details-marker { display: none; }
:is(.rec-group, .rec-body, .stage-row > details) > summary > .ic { flex: none; color: var(--color-text-muted); transition: transform var(--transition); }
:is(.rec-group, .rec-body, .stage-row > details)[open] > summary > .ic { transform: rotate(90deg); }
/* Your records checklist: the tick and Sorted or To do on every closed row,
   so nobody opens a record to see whether it is done. */
.rec-groups { display: grid; gap: var(--space-3); }
.rec-group { border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface-2); }
.rec-group > summary { min-height: 60px; padding: var(--space-3) var(--space-5); }
.rec-group-name { flex: 1; min-width: 0; font-size: var(--text-xl); }
.rec-group > .rec-list { list-style: none; padding: 0 var(--space-3) var(--space-3); display: grid; gap: var(--space-2); }
.rec { position: relative; border: 1px solid var(--color-divider); border-radius: var(--radius-md); background: var(--color-surface); }
.rec.is-sorted { border-color: color-mix(in srgb, var(--color-success) 30%, transparent); background: color-mix(in srgb, var(--color-success-highlight) 45%, var(--color-surface-2)); }
.rec-tick { position: absolute; left: var(--space-2); top: 6px; width: 44px; height: 44px; align-items: center; justify-content: center; z-index: 1; }
.rec-tick input { margin: 0; border-radius: 50%; }
.rec-tick input:checked { background: var(--color-success); border-color: var(--color-success); }
.rec-body > summary { min-height: 56px; padding: var(--space-2) var(--space-4) var(--space-2) 56px; }
.rec-title { flex: 1; min-width: 0; font-weight: 600; }
.rec.is-sorted .rec-title { color: var(--color-text-muted); }
.rec-open { padding: var(--space-2) var(--space-4) var(--space-4); border-top: 1px solid var(--color-divider); }
.rec-lines { gap: var(--space-4) var(--space-8); }
@media (min-width: 768px) { .rec-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rec-open { padding-left: 56px; } }
/* Your journey: each stage opens to its answers and what is still to answer. */
.stage-row:has(> details) { display: block; padding: 0; }
.stage-row > details > summary { min-height: 56px; padding: var(--space-3) var(--space-4); }
.stage-name { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--space-3); }
.stage-counts { font-weight: 400; }
.stage-name .pill--flag { align-self: center; font-weight: 600; }
.stage-open { padding: var(--space-4); border-top: 1px solid var(--color-divider); }
@media (min-width: 768px) { .stage-open { padding-left: calc(var(--space-4) + 28px + var(--space-3)); } }
.stage-open .answer-list { margin-top: 0; }
.stage-left { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.stage-left li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); padding-bottom: var(--space-3); border-bottom: 1px solid var(--color-divider); }
.stage-left a { flex: none; font-size: var(--text-sm); font-weight: 500; }
.stage-open .ic--16 { vertical-align: -3px; color: var(--color-success); }
/* Your Concierge package (Ricky, 19 October): the five steps with where it
   has got to, what happens next, then the package beside the adviser. */
.cp-steps { list-style: none; padding: 0; display: grid; gap: var(--space-5); }
.cp-step { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--space-3); align-items: start; align-content: start; }
.cp-dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--color-surface-offset); color: var(--color-text-muted); font-size: var(--text-sm); font-weight: 700; }
.cp-step.is-done .cp-dot { background: var(--color-success); color: var(--color-text-inverse); }
.cp-step.is-now .cp-dot { background: var(--color-primary); color: var(--color-text-inverse); box-shadow: 0 0 0 4px var(--color-primary-highlight); }
.cp-step-title { font-weight: 700; line-height: 1.3; padding-top: 5px; }
.cp-step.is-now .cp-step-title { color: var(--color-primary); }
.cp-step:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: calc(-1 * var(--space-5)); width: 2px; background: var(--color-divider); }
.cp-step.is-done:not(:last-child)::before { background: var(--color-success); }
@media (min-width: 980px) {
  .cp-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-4); }
  .cp-step { grid-template-columns: minmax(0, 1fr); }
  .cp-step-title { padding-top: 0; }
  .cp-step:not(:last-child)::before { left: 32px; right: calc(-1 * var(--space-4)); top: 15px; bottom: auto; width: auto; height: 2px; }
}
.cp-steps + .cp-next { padding-top: var(--space-5); border-top: 1px solid var(--color-divider); }
.cp-grid, .cp-tasks { display: grid; gap: var(--space-6); align-items: start; }
.cp-grid > *, .cp-tasks > * { min-width: 0; }
/* Side by side, the two columns end level whichever package it is; each box
   keeps its words together at the top (the link straight under the list). */
@media (min-width: 1100px) {
  .cp-grid { grid-template-columns: minmax(0, 7fr) minmax(18rem, 5fr); align-items: stretch; }
  .cp-side { display: flex; flex-direction: column; }
  .cp-side > :last-child { flex: 1; }
  .cp-tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.cp-package-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-4); }
.cp-package-head .plan-price { font-size: var(--text-xl); }
.cp-adviser h2 { font-size: var(--text-xl); }
.cp-adviser .btn { justify-content: center; }
/* Two balanced columns on computers. */
@media (min-width: 980px) { .cp-good { display: block; columns: 2; column-gap: var(--space-8); } .cp-good > li { break-inside: avoid; margin-bottom: var(--space-3); } }
/* What to do when someone dies: the guide, with the journey beside it. */
.guide-first { list-style: none; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.guide-first h3 { font-size: var(--text-base); font-weight: 600; }
.guide-steps { list-style: none; padding: 0; display: grid; gap: var(--space-8); }
.guide-steps > li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.guide-steps h3 { font-size: var(--text-xl); font-family: var(--font-display); font-weight: 600; line-height: 1.25; }
.guide-steps .stage-num { margin-top: 2px; }
.guide-steps a .ic { vertical-align: -3px; margin-left: 0.25rem; }
/* Ricky, 19 October: on phones the whole journey box sits after the first
   calls (and not again at the end); on computers it stays beside the guide. */
@media (max-width: 979.98px) { .guide-aside-journey { display: none; } }
@media (min-width: 980px) { .guide-aside { position: sticky; top: var(--space-6); } .guide-early { display: none; } }
/* The photo beside the heading, computers only (the phone gets no download). */
.guide-photo { display: none; }
@media (min-width: 980px) { .guide-photo { display: block; } }
/* The questions at the foot: the heading on the left, tap-to-open answers on
   the right; one column on phones. */
/* More about a product, under how it works and its parts (Journey,
   Planning ahead, Builder; Ricky, 20 October): what it is for beside what
   you can do, then the features on a sage band, icon beside the words (not
   a second set of cards: the tiles above are cards). */
.more-intro { display: grid; gap: var(--space-6); }
@media (min-width: 980px) { .more-intro { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-12); align-items: start; } }
.more-intro > .stack > p:not(.lead) { max-width: 68ch; }
.more-can { background: var(--color-surface-2); }
.more-band { background: var(--color-primary-highlight); padding-block: clamp(var(--space-12), 6vw, var(--space-20)); }
.more-grid { list-style: none; padding: 0; display: grid; gap: var(--space-8); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-10); } }
@media (min-width: 980px) { .more-grid:not(.more-grid--four) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .more-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.more-grid > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--space-4); row-gap: var(--space-1); align-content: start; }
.more-grid > li > :not(.more-icon) { grid-column: 2; }
.more-grid .more-icon { grid-row: 1 / span 2; background: var(--color-surface-2); }
.more-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--color-primary-highlight); color: var(--color-primary); }
/* Concierge's four areas: cards two by two under a centred heading, the
   full width of the page (Ricky, 20 October). On a phone the icon sits
   beside the words, so the cards stay short. */
.c-does-head { justify-items: center; text-align: center; }
.c-does-head .lead { max-width: 60ch; }
.c-does-grid { list-style: none; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .c-does-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); } }
@media (max-width: 639px) {
  .c-does-grid > li { grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--space-4); row-gap: var(--space-1); }
  .c-does-grid .more-icon { grid-row: 1 / span 2; }
  .c-does-grid > li > :not(.more-icon) { grid-column: 2; }
}
.more-faq { padding-bottom: clamp(var(--space-12), 7vw, var(--space-24)); }
/* Contact (Ricky, 20 October): call and email side by side, the form under
   them, and the Concierge panel down the right of both. */
.contact-body { padding-bottom: clamp(var(--space-12), 7vw, var(--space-24)); }
.contact-grid { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); grid-template-areas: "call" "email" "ad"; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "call email" "ad ad"; } }
@media (min-width: 980px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "call ad" "email ad"; } }
.contact-call { grid-area: call; }
.contact-email { grid-area: email; }
.contact-ad { grid-area: ad; align-content: start; padding: clamp(var(--space-6), 3vw, var(--space-10)); border-radius: var(--radius-lg); color: var(--color-onphoto); background: linear-gradient(180deg, oklch(0.22 0.03 160 / 0.78), oklch(0.22 0.03 160 / 0.94)), url(/images/dusk_gate.webp) center / cover, var(--color-ink-surface); }
.contact-ad h2 { color: var(--color-onphoto); }
.contact-ad p, .contact-ad li { color: color-mix(in oklab, var(--color-onphoto) 90%, transparent); }
.contact-ad .eyebrow { color: var(--color-gold-highlight); }
.contact-ad .ticks .ic { color: var(--color-gold-highlight); }
.contact-ad .btn--primary { justify-self: start; background: var(--color-onhero-bg); color: var(--color-onhero-text); }
.contact-ad .btn--primary:hover { background: #FFFFFF; color: var(--color-onhero-text); }
.guide-faq { display: grid; gap: var(--space-6); }
@media (min-width: 980px) { .guide-faq { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-12); align-items: start; } }
.faq-list { border-top: 1px solid var(--color-divider); }
.faq-acc { border-bottom: 1px solid var(--color-divider); }
.faq-acc > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 56px; padding-block: var(--space-4); cursor: pointer; list-style: none; }
.faq-acc > summary::-webkit-details-marker { display: none; }
.faq-acc > summary h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; line-height: 1.3; }
.faq-acc > summary .ic { flex: none; color: var(--color-text-muted); transition: transform var(--transition); }
.faq-acc[open] > summary .ic { transform: rotate(90deg); }
.faq-acc > p { max-width: 68ch; padding-bottom: var(--space-5); }
/* Legal pages: today's words (src/pages/_legal.mjs) in the new frame. */
.legal .wrap--narrow, .legal .wrap--default { max-width: var(--content-wide); }
.legal .page-hero { padding-block: clamp(var(--space-10), 6vw, var(--space-16)) var(--space-2); }
.legal .page-hero .wrap { display: grid; gap: var(--space-4); }
.legal .page-hero h1 { font-size: var(--text-3xl); max-width: 22ch; }
.legal .page-hero h1 em { font-style: normal; }
.legal .lede { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 60ch; }
.legal .updated-note { font-size: var(--text-sm); color: var(--color-text-muted); }
.legal .section { padding-block: var(--space-6) clamp(var(--space-10), 6vw, var(--space-20)); }
.legal-layout { display: grid; gap: var(--space-8); align-items: start; }
.legal-layout > * { min-width: 0; }
.legal-toc ul { list-style: none; padding: 0; display: grid; gap: var(--space-2); font-size: var(--text-sm); }
.legal-toc { padding: var(--space-5); border: 1px solid var(--color-divider); border-radius: var(--radius-md); background: var(--color-surface); }
@media (min-width: 980px) {
  .legal-layout { grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr); gap: var(--space-12); }
  .legal-toc { position: sticky; top: var(--space-6); }
}
.legal .prose { max-width: 70ch; }
.legal .prose h2 { font-size: var(--text-xl); scroll-margin-top: var(--space-6); }
.legal .prose h3 { font-size: var(--text-lg); margin-top: var(--space-2); }
.legal .prose ul { list-style: disc; }
.legal .prose blockquote { margin: var(--space-4) 0 0; padding: var(--space-5); border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-divider); }
.legal .prose table { font-size: var(--text-sm); display: block; overflow-x: auto; }
.legal .prose th, .legal .prose td { text-align: left; vertical-align: top; padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--color-divider); }
/* On phones each row stacks, every value under its column's name (Ricky, 2 November). */
@media (max-width: 600px) {
  .legal .prose table, .legal .prose tbody, .legal .prose tr, .legal .prose td { display: block; }
  .legal .prose table { overflow: visible; }
  .legal .prose tr.legal-head { display: none; }
  .legal .prose tr { padding: var(--space-3) 0; border-bottom: 1px solid var(--color-divider); }
  .legal .prose td { border: 0; padding: var(--space-1) 0; }
  .legal .prose td[data-label]::before { content: attr(data-label); display: block; font-weight: 600; font-size: var(--text-xs, 0.8rem); color: var(--color-text-muted); }
}
/* The guide's first calls read as one list, in one box, a line between each. */
.guide-first.panel { grid-template-columns: minmax(0, 1fr); gap: 0; padding: var(--space-2) clamp(var(--space-5), 3vw, var(--space-6)); }
.guide-first > li { padding-block: var(--space-4); }
.guide-first > li + li { border-top: 1px solid var(--color-divider); }
.guide-first h3 { max-width: none; }
.guide-steps .stage-num { width: 34px; height: 34px; font-size: var(--text-base); background: var(--color-primary-highlight); color: var(--color-primary-hover); font-family: var(--font-display); }
/* On phones the number sits beside the step's heading and the words use the full width. */
@media (max-width: 639.98px) {
  .guide-steps > li { column-gap: var(--space-3); row-gap: var(--space-3); }
  .guide-steps > li > .prose { display: contents; }
  .guide-steps > li > .prose > h3 { align-self: center; }
  .guide-steps > li > .prose > :not(h3) { grid-column: 1 / -1; }
}
/* Builder: the section chips wrap where there is room; the call link sits left like the button above it. */
.builder-talk > .btn--quiet { justify-self: start; padding-inline: 0; }
/* Category pages: the areas covered, as a compact list in columns. */
.area-list { list-style: none; padding: 0; columns: 4 11rem; column-gap: var(--space-8); }
.area-list li { display: flex; gap: var(--space-2); align-items: center; break-inside: avoid; padding-block: var(--space-1); }
.area-list .ic { color: var(--color-primary); flex: none; }
/* The category page (Ricky, 20 October): the words and the search in the top
   band, the towns, the guide as boxes two across, then the Q&A. */
.hub-hero-grid { display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 980px) { .hub-hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-12); } }
.hub-crumbs a { color: var(--color-onphoto); }
.mp-hero .hub-search, .mp-hero .hub-search h2, .mp-hero .hub-search label { color: var(--color-text); }
.mp-hero .hub-search .hint { color: var(--color-text-muted); }
.hub-search .postcode-form { max-width: none; }
.hub-guide { display: grid; gap: var(--space-6); }
.hub-guide-row { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .hub-guide-row--2, .hub-guide-row--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .hub-guide-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hub-guide section { align-content: start; }
.seo-questions .ic { color: var(--color-primary); }
@media (min-width: 768px) { .hub-guide > section .seo-questions { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-8); } }
@media (max-width: 559px) { .area-list { columns: 2; column-gap: var(--space-4); font-size: var(--text-sm); } .area-list li { align-items: flex-start; } .area-list .ic { margin-top: 3px; } }
/* Today's partner page (and any kept page without the legal layout): space between its paragraphs. */
.legal .section > .wrap { display: grid; gap: var(--space-4); }
/* A text button that wraps under a heading lines up with it. */
.person-head > .btn--quiet { padding-inline: 0; }
/* The quiet line under the share link's thank-you, with room above it. */
.share-quiet { margin-top: var(--space-5); }
/* Builder list: firms under each item (Ricky, 19 October) */
.bl-find h2 { font-size: var(--text-lg); }
.bl-find [data-coverage-result]:empty { display: none; }
.bl-find [data-coverage-result] .state { padding: var(--space-4); gap: var(--space-3); }
.bl-firms { display: grid; gap: var(--space-2); margin-top: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--color-divider); min-width: 0; }
.bl-firms:empty { display: none; }
.bl-firms > .spinner { width: 20px; height: 20px; border-width: 2px; }
.bl-firms .state { padding: var(--space-4); gap: var(--space-3); }
.bl-firm-list { list-style: none; padding: 0; display: grid; }
.bl-firm { display: grid; gap: var(--space-1); padding-block: var(--space-3); min-width: 0; }
.bl-firm:first-child { padding-top: var(--space-1); }
.bl-firm + .bl-firm { border-top: 1px solid var(--color-divider); }
.bl-firm-name { font-weight: 600; overflow-wrap: anywhere; }
.bl-firm-actions { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: center; margin-top: var(--space-1); }
.bl-firm-actions .btn--quiet { padding-inline: 0; }
.bl-see-all { display: inline-flex; align-items: center; gap: var(--space-1); font-weight: 600; }
/* Contact: from the Call us box down to "Request a callback" (Ricky, 22 October). */
.contact-jump { font-weight: 600; }

/* Enquiries to firms and the firm form (Ricky, 23 October). The enquiry
   sheet is the callback form's layout, a little wider; the firm form is a
   column of panels. */
.enquiry-dialog { width: min(100% - 2rem, 40rem); }
.enquiry-form { gap: var(--space-4); }
.enquiry-routes { gap: var(--space-3); }
.enquiry-route { padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.enquiry-route:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary-highlight); }
.enquiry-form .check span strong { font-weight: 700; }
.field > .enquiry-consent { font-weight: 400; line-height: 1.45; }
.enquiry-consent span { font-size: var(--text-xs); }
.firm-page { max-width: 52rem; }
.firm-form .ff-section { gap: var(--space-4); }
.ff-faiths { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.ff-photo-now { display: grid; gap: var(--space-2); }
.ff-photo-now img { width: 100%; max-width: 20rem; height: auto; border-radius: var(--radius-md); border: 1px solid var(--color-border); }

/* Your list (Ricky, 24 October): "Enquire with all" above the firms, and the
   options in two columns, each as tall as its own cards: the PDF over the
   call on the left; Concierge, then "We contact the suppliers for you", on
   the right. */
.list-all { align-items: center; }
.list-options { display: grid; gap: var(--space-4); align-items: start; }
.list-options .option-cards--stack { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .list-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) and (max-width: 1099.98px) { .summary-grid .list-options { grid-template-columns: minmax(0, 1fr); } }
.list-options .concierge-band h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; color: var(--color-onphoto); }
.enquire-all-dialog { width: min(100% - 2rem, 40rem); }
/* The enquiry sheets keep their top edge still while "Required*" messages
   appear (Ricky, 24 October: the fields moved up): from the top on wide
   screens, full height on phones, with their own scroll. */
.enquiry-dialog, .enquire-all-dialog { margin-top: max(1rem, 6vh); margin-bottom: auto; }
@media (max-width: 979.98px) { .enquiry-dialog, .enquire-all-dialog { height: 88dvh; margin: auto 0 0; } }

/* ---------- 25. Pages: paid search landing pages (/go/..., src/pages/_landing.mjs) ----------
   Mobile first: the heading, a short line, then the one action on the first
   screen of a phone, with what happens next (.go-note) and the number
   (.go-talk) under it; then the trust strip (.go-trust), the points, the
   questions and the action once more at the end (.go-end).
   Design pass (lp2-design, 17 November 2026), made by looking at the pages:
   the opening sits on the robin photo with the homepage's sage tint and the
   action in a light card set into it, so it looks like the homepage and the
   action is the brightest thing on the screen; the words and the card share
   one column on wide screens, so the robin shows beside them (as Ricky set
   the homepage on 22 October). The trust lines are a strip of their own, the
   points are cards with an icon each, the questions sit beside their heading
   on wide screens, and the closing action is on the gate photo, as the
   homepage closes. Only the site's tokens and its two photos. */
.site-header--bare { position: static; }
.site-header--bare .wrap { min-height: 3.5rem; }
/* No sticky header here, so a jump to the action needs no room for one. */
html:has(.site-header--bare) { scroll-padding-top: var(--space-4); }

/* A photo behind a band: the img fills it, the tint sits between the photo
   and the words. */
.go-hero, .go-end { position: relative; isolation: isolate; overflow: hidden; background: var(--color-ink-surface); color: var(--color-onphoto); }
/* On a phone the robin would only peep in at the edge beside the card, so
   the photo is moved to show the mist and the branch; on wide screens it
   shows whole beside the words. */
.go-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; }
@media (max-width: 979.98px) { .go-hero .go-photo { object-position: 20% 50%; } }
.go-hero::before, .go-end::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.go-hero::before { background: linear-gradient(180deg, oklch(0.22 0.03 160 / 0.82), oklch(0.22 0.03 160 / 0.66)); }
.go-end::before { background: linear-gradient(180deg, oklch(0.2 0.03 160 / 0.5), oklch(0.2 0.03 160 / 0.8)); }
/* A light card on the photo keeps the sage focus ring. */
.on-dark :is(.go-card, .go-end-card) :focus-visible { outline: var(--focus-ring); }

/* The opening */
.go-hero { padding-block: var(--space-4) var(--space-10); }
.go-hero-grid { display: grid; gap: var(--space-5); }
.go-hook { gap: var(--space-2); }
.go-hook h1 { font-size: clamp(1.6rem, 7.6vw, 2.25rem); color: var(--color-onphoto); line-height: 1.1; }
.go-hook .lead { font-size: var(--text-base); color: color-mix(in oklab, var(--color-onphoto) 94%, transparent); }
.go-card { background: var(--color-surface-2); color: var(--color-text); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: var(--space-5); display: grid; gap: var(--space-3); align-content: start; }
.go-card.home-question { padding: var(--space-5); }
.go-card .question-card { gap: var(--space-4); }
.go-card .question-card h2 { font-size: var(--text-lg); }
/* Planning ahead's Continue is the page's action: the same size as the others. */
.go-card .question-nav .btn--primary { min-height: 56px; font-size: var(--text-base); box-shadow: var(--shadow-md); }
.go-prompt { font-size: var(--text-lg); font-weight: 500; }
.go-card .postcode-form, .go-end .postcode-form { max-width: none; }
/* The action: taller and a size larger than the site's buttons, so it is the
   first thing the eye finds. */
.go-cta { min-height: 56px; font-size: var(--text-base); box-shadow: var(--shadow-md); }
.go-card .postcode-row .btn, .go-end .postcode-row .btn { min-height: 52px; font-size: var(--text-base); box-shadow: var(--shadow-md); }
.go-card .postcode-row .input, .go-end .postcode-row .input { min-height: 52px; }
/* On a phone the search button takes the full width under the box, like the
   other pages' action, rather than half a line. */
@media (max-width: 479.98px) { .go-card .postcode-row .btn, .go-end .postcode-row .btn { flex: 1 1 100%; } }
.go-note { margin: 0; }
/* The number under the action: a phone mark, then the line, set off by a rule. */
.go-talk { display: flex; gap: var(--space-2); align-items: flex-start; margin: 0; padding-top: var(--space-3); border-top: 1px solid var(--color-divider); }
.go-talk .ic { flex: none; margin-top: 0.2em; color: var(--color-primary); }

/* The trust strip */
.go-trust-band { background: var(--color-surface); border-bottom: 1px solid var(--color-divider); }
.go-trust-band > .wrap { padding-block: var(--space-5); }
.go-trust { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.go-trust li { display: flex; gap: var(--space-3); align-items: center; font-size: var(--text-sm); font-weight: 500; }
/* An icon in a soft sage circle: the trust strip, the points and the callback. */
.go-ic { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-full); background: var(--color-primary-highlight); color: var(--color-primary); }
.go-ic--lg { width: 52px; height: 52px; }

/* The points */
.go-points { list-style: none; padding: 0; display: grid; gap: var(--space-4); }
/* On a phone the icon sits beside the heading, so three cards stay short. */
.go-point { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-2) var(--space-4); align-content: start; align-items: center; background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-5); }
.go-point h2 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; line-height: 1.25; }
.go-point p { grid-column: 1 / -1; }

/* The Concierge pages' callback */
.go-second { scroll-margin-top: var(--space-4); padding-top: 0; }
.go-second .callback-card { max-width: none; display: grid; gap: var(--space-6); background: var(--color-surface-2); box-shadow: var(--shadow-md); }
.go-second-head { gap: var(--space-3); align-content: start; }
.go-second-head h2 { font-size: var(--text-xl); font-weight: 500; }

/* The questions */
.go-faq { background: var(--color-surface); border-block: 1px solid var(--color-divider); }
.go-faq-grid { display: grid; gap: var(--space-6); }
.go-faq-grid > h2 { font-size: var(--text-xl); font-weight: 500; }
.go-faq-list { display: grid; gap: var(--space-5); }
.go-faq .faq-item { padding-top: var(--space-5); }
.go-faq .faq-item h3 { font-size: var(--text-lg); font-weight: 500; line-height: 1.3; }
.go-faq .faq-item p { color: var(--color-text-muted); }

/* The action once more, on the gate photo */
.go-end { padding-block: clamp(var(--space-12), 9vw, var(--space-24)); }
.go-end-inner { display: grid; gap: var(--space-6); justify-items: center; text-align: center; }
.go-end-inner > h2 { font-size: var(--text-2xl); font-weight: 500; color: var(--color-onphoto); max-width: 20ch; }
.go-end-card { width: 100%; max-width: 34rem; display: grid; gap: var(--space-3); text-align: start; background: var(--color-surface-2); color: var(--color-text); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: var(--space-5); }
.go-end-card .go-cta { width: 100%; }
.go-end-card .go-note { text-align: center; }

/* The smallest phones: a little less room round the action, so it all shows. */
@media (max-width: 374.98px) {
  .go-hero-grid { gap: var(--space-4); }
  .go-card, .go-card.home-question { padding: var(--space-4); gap: var(--space-2); }
  /* The longest labels ("Get help arranging the funeral") keep clear of the edges. */
  .go-cta, .go-card .question-nav .btn--primary { font-size: var(--text-sm); padding-inline: var(--space-4); }
}
@media (min-width: 640px) {
  .go-trust { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), max-content)); justify-content: center; column-gap: var(--space-10); }
  .go-end-card { padding: var(--space-6); }
}
@media (min-width: 768px) {
  .go-points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
  .go-point { grid-template-columns: minmax(0, 1fr); align-items: start; gap: var(--space-3); padding: var(--space-6); }
  .go-point h2 { margin-top: var(--space-1); }
  .go-second .callback-card { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-10); }
}
@media (min-width: 980px) {
  /* Words and action on the left, the tint fading out so the robin shows.
     Kept compact, so the action stays above the cookie banner on a laptop. */
  .go-hero { padding-block: var(--space-8) var(--space-16); }
  /* The tint holds to the end of the words' column (56%), so the line under
     the heading reads at 4.5:1 or more over the lightest part of the mist. */
  .go-hero::before { background: linear-gradient(90deg, oklch(0.22 0.03 160 / 0.88) 0%, oklch(0.22 0.03 160 / 0.8) 56%, oklch(0.22 0.03 160 / 0.15) 72%, oklch(0.22 0.03 160 / 0) 100%); }
  .go-hero-grid { grid-template-columns: minmax(0, min(42rem, 56%)); }
  .go-hook h1 { font-size: clamp(2.4rem, 1.2rem + 2vw, 3.1rem); }
  .go-hook .lead { font-size: var(--text-lg); }
  .go-card, .go-card.home-question { padding: var(--space-8); gap: var(--space-4); }
  /* The question's own heading gives room above it. */
  .go-card.home-question { padding-top: var(--space-5); }
  /* Planning ahead's two answers side by side. */
  .go-card .tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
  .go-faq-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-12); align-items: start; }
  .go-faq-grid > h2 { position: sticky; top: var(--space-8); }
  .go-end-card { padding: var(--space-8); }
}

/* The landing footer: the logo and one line, the legal links, the company details. */
.site-footer--bare { padding-block: var(--space-12) calc(var(--space-8) + var(--banner-pad, 0px)); }
.site-footer--bare .footer-brand { gap: var(--space-3); }
.site-footer--bare .footer-note { font-size: var(--text-sm); color: var(--color-ondark-muted); }
.site-footer--bare .footer-legal { display: flex; flex-wrap: wrap; gap: 0 var(--space-6); }
.site-footer--bare .footer-legal :is(a, .link-button) { min-height: 44px; }
.site-footer--bare .footer-bottom { margin-top: var(--space-4); }
@media (min-width: 980px) {
  .site-footer--bare .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: var(--space-10); }
  .site-footer--bare .footer-bottom { grid-column: 1 / -1; }
}
