@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('/assets/fonts/source-serif-4-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
}

:root {
  --ink: #111419;
  --ink-2: #3A4049;
  --muted: #5E6570;
  --paper: #FFFFFF;
  --sand: #F7F5F0;
  --sand-2: #E9E6DE;
  --link: #26347A;
  --ok: #1D7451;
  --gold: #93631D;
  --gold-ink: #7A5218;
  --line: rgba(17, 20, 25, .12);
  --line-strong: rgba(17, 20, 25, .22);
  --wash: rgba(17, 20, 25, .05);
  /* Surfaces that stay dark in every appearance, and the colour of the main button. */
  --deep: #111419;
  --on-deep: #F7F5F0;
  --action: #111419;
  --on-action: #F7F5F0;
  /* Small accents. Neutral here; the Colorful appearance gives each a colour. */
  --accent: #5E6570;
  --tag-bg: rgba(17, 20, 25, .05);
  --avatar-bg: #E9E6DE;
  --card-edge: rgba(17, 20, 25, .12);
  --hero-bg: #F7F5F0;
  --cta-bg: #111419;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

/* Appearance. With no choice made, the system setting decides between light and dark. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
  --ink: #F2F0EA; --ink-2: #C9CCD2; --muted: #9AA1AC; --paper: #111419; --sand: #191D24; --sand-2: #2A303A;
  --link: #A9B6FF; --ok: #5FCB9E; --gold: #E0B25C; --gold-ink: #E0B25C;
  --line: rgba(247, 245, 240, .14); --line-strong: rgba(247, 245, 240, .28); --wash: rgba(247, 245, 240, .07);
  --deep: #0B0D11; --on-deep: #F2F0EA; --action: #F2F0EA; --on-action: #111419;
  --accent: #9AA1AC; --tag-bg: rgba(247, 245, 240, .07); --avatar-bg: #2A303A; --card-edge: rgba(247, 245, 240, .14); --hero-bg: #191D24; --cta-bg: #0B0D11;
  }
}
:root[data-theme='dark'] {
  --ink: #F2F0EA; --ink-2: #C9CCD2; --muted: #9AA1AC; --paper: #111419; --sand: #191D24; --sand-2: #2A303A;
  --link: #A9B6FF; --ok: #5FCB9E; --gold: #E0B25C; --gold-ink: #E0B25C;
  --line: rgba(247, 245, 240, .14); --line-strong: rgba(247, 245, 240, .28); --wash: rgba(247, 245, 240, .07);
  --deep: #0B0D11; --on-deep: #F2F0EA; --action: #F2F0EA; --on-action: #111419;
  --accent: #9AA1AC; --tag-bg: rgba(247, 245, 240, .07); --avatar-bg: #2A303A; --card-edge: rgba(247, 245, 240, .14); --hero-bg: #191D24; --cta-bg: #0B0D11;
}
/* Light, chosen outright: the same as the default, whatever the device says. */
:root[data-theme='light'] { color-scheme: light; }
:root[data-theme='dark'] { color-scheme: dark; }

/*
 * The colour themes. Each one is a palette used the same way everywhere:
 *   --ink       text, headings          --action    the thing to press
 *   --ok        checks, the Score       --accent    small labels
 *   --avatar-bg people                  --tag-bg    quiet surfaces
 *   --card      the surface of a card   --card-top  the coloured edge of a panel
 * Only ever chosen by the person; the system setting never selects one.
 */

/* Sunrise: warm cream, violet ink, an orange action. */
:root[data-theme='sunrise'] {
  color-scheme: light;
  --ink: #2B1A6B; --ink-2: #4A3A8C; --muted: #54498C; --paper: #FFFAF0; --sand: #F1EBFF; --sand-2: #E0D5FF;
  --link: #B5390A; --ok: #0E7C66; --gold: #D97706; --gold-ink: #92400E;
  --line: rgba(43, 26, 107, .18); --line-strong: rgba(43, 26, 107, .38); --wash: rgba(43, 26, 107, .07);
  --deep: #2B1A6B; --on-deep: #FFF6E0; --action: #C2410C; --on-action: #FFFFFF;
  --accent: #C2410C; --tag-bg: #E0D5FF; --avatar-bg: #FFD98A; --card-edge: #C9B8FF; --card: #FFFFFF; --card-top: #0E7C66;
  --hero-bg: linear-gradient(120deg, #FFE7B3 0%, #FFD2C2 50%, #DCD2FF 100%);
  --cta-bg: linear-gradient(120deg, #2B1A6B 0%, #5B2A9B 55%, #C2410C 100%);
  --note-bg: #FFE7B3;
}

/* Blueprint: crisp white and navy with a confident blue and a ledger green, after the look of modern finance software. */
:root[data-theme='blueprint'] {
  color-scheme: light;
  --ink: #0B1F3F; --ink-2: #33456B; --muted: #5C6B8A; --paper: #FFFFFF; --sand: #F0F4FA; --sand-2: #DDE7F7;
  --link: #0A5CD6; --ok: #108000; --gold: #B36B00; --gold-ink: #8A5200;
  --line: rgba(11, 31, 63, .14); --line-strong: rgba(11, 31, 63, .30); --wash: rgba(27, 95, 224, .06);
  --deep: #0B1F3F; --on-deep: #FFFFFF; --action: #1B5FE0; --on-action: #FFFFFF;
  --accent: #1B5FE0; --tag-bg: #E3ECFB; --avatar-bg: #CFE0FF; --card-edge: #C9D8F0; --card: #FFFFFF; --card-top: #1B5FE0;
  --hero-bg: linear-gradient(120deg, #E6F0FF 0%, #F7FAFF 55%, #E4F6E6 100%);
  --cta-bg: linear-gradient(120deg, #0B1F3F 0%, #123B8F 60%, #1B5FE0 100%);
  --note-bg: #E3ECFB;
}
:root[data-theme='blueprint'] .btn { border-radius: 999px; }
:root[data-theme='blueprint'] .panel, :root[data-theme='blueprint'] .result, :root[data-theme='blueprint'] .feature-card,
:root[data-theme='blueprint'] .browse, :root[data-theme='blueprint'] .stat, :root[data-theme='blueprint'] .search-box {
  border-radius: 14px; box-shadow: 0 2px 10px rgba(11, 31, 63, .06); }

/* Aurora: a deep night sky with glowing colour, soft shading and layered depth. */
:root[data-theme='aurora'] {
  color-scheme: dark;
  --ink: #EEF1FF; --ink-2: #C5CBF0; --muted: #949CCB; --paper: #0A0E1F; --sand: #111732; --sand-2: #1C2450;
  --link: #7CE7FF; --ok: #4ADE9F; --gold: #FFC766; --gold-ink: #FFC766;
  --line: rgba(160, 170, 255, .16); --line-strong: rgba(160, 170, 255, .34); --wash: rgba(160, 170, 255, .08);
  --deep: #070A16; --on-deep: #EEF1FF; --action: #6A49F2; --on-action: #FFFFFF;
  --accent: #7CE7FF; --tag-bg: rgba(124, 92, 255, .24); --avatar-bg: #2B2F6E; --card-edge: rgba(160, 170, 255, .20);
  --card: rgba(255, 255, 255, .045); --card-top: #7C5CFF;
  --hero-bg: radial-gradient(ellipse 60% 80% at 15% 0%, rgba(124, 92, 255, .50), transparent 60%),
    radial-gradient(ellipse 50% 70% at 90% 15%, rgba(34, 211, 238, .32), transparent 55%), #0A0E1F;
  --cta-bg: radial-gradient(ellipse 70% 120% at 0% 0%, rgba(124, 92, 255, .65), transparent 60%),
    radial-gradient(ellipse 60% 120% at 100% 100%, rgba(34, 211, 238, .40), transparent 60%), #0D1230;
  --note-bg: rgba(124, 92, 255, .18);
}
:root[data-theme='aurora'] body { background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124, 92, 255, .18), transparent 70%), var(--paper); background-attachment: fixed; }
:root[data-theme='aurora'] .panel, :root[data-theme='aurora'] .result, :root[data-theme='aurora'] .feature-card,
:root[data-theme='aurora'] .browse, :root[data-theme='aurora'] .stat, :root[data-theme='aurora'] .plan,
:root[data-theme='aurora'] .conversation, :root[data-theme='aurora'] .search-box {
  border-radius: 16px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 24px 60px rgba(0, 0, 0, .50), 0 0 40px rgba(124, 92, 255, .10); }
:root[data-theme='aurora'] .btn { border-radius: 10px; }
:root[data-theme='aurora'] .btn--solid { background: linear-gradient(135deg, #7C5CFF 0%, #22D3EE 100%); border-color: transparent;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .10) inset, 0 8px 28px rgba(124, 92, 255, .55); }
:root[data-theme='aurora'] .cta .btn--solid { color: #FFFFFF; }
:root[data-theme='aurora'] h1 { text-shadow: 0 0 42px rgba(124, 92, 255, .45); }
:root[data-theme='aurora'] .avatar { box-shadow: 0 0 0 1px rgba(160, 170, 255, .30), 0 0 22px rgba(124, 92, 255, .40); }
:root[data-theme='aurora'] .error { background: rgba(239, 68, 68, .14); color: #FFC9C9; }

/* Emerald: deep green and warm gold, with terracotta for small labels. */
:root[data-theme='emerald'] {
  color-scheme: light;
  --ink: #0F3D2E; --ink-2: #2E5A49; --muted: #446556; --paper: #FBFDF8; --sand: #EAF5EA; --sand-2: #D2EBD3;
  --link: #9A3412; --ok: #0B7A4B; --gold: #B7791F; --gold-ink: #8A5A12;
  --line: rgba(15, 61, 46, .16); --line-strong: rgba(15, 61, 46, .34); --wash: rgba(15, 61, 46, .06);
  --deep: #0F3D2E; --on-deep: #F4FBF2; --action: #0B7A4B; --on-action: #FFFFFF;
  --accent: #B45309; --tag-bg: #D2EBD3; --avatar-bg: #F4D58D; --card-edge: #B7DDBB; --card: #FFFFFF; --card-top: #B7791F;
  --hero-bg: linear-gradient(120deg, #DDF2DC 0%, #F3F8E6 50%, #FFF0CF 100%);
  --cta-bg: linear-gradient(120deg, #0F3D2E 0%, #0B7A4B 70%, #7A5210 100%);
  --note-bg: #FFF0CF;
}

/* What every colour theme does with its palette. */
:root:is([data-theme='sunrise'], [data-theme='blueprint'], [data-theme='aurora'], [data-theme='emerald']) .score, :root:is([data-theme='sunrise'], [data-theme='blueprint'], [data-theme='aurora'], [data-theme='emerald']) .count { background: var(--ok); color: #FFFFFF; }
:root:is([data-theme='sunrise'], [data-theme='blueprint'], [data-theme='aurora'], [data-theme='emerald']) .panel, :root:is([data-theme='sunrise'], [data-theme='blueprint'], [data-theme='aurora'], [data-theme='emerald']) .result, :root:is([data-theme='sunrise'], [data-theme='blueprint'], [data-theme='aurora'], [data-theme='emerald']) .feature-card, :root:is([data-theme='sunrise'], [data-theme='blueprint'], [data-theme='aurora'], [data-theme='emerald']) .browse, :root:is([data-theme='sunrise'], [data-theme='blueprint'], [data-theme='aurora'], [data-theme='emerald']) .stat, :root:is([data-theme='sunrise'], [data-theme='blueprint'], [data-theme='aurora'], [data-theme='emerald']) .plan, :root:is([data-theme='sunrise'], [data-theme='blueprint'], [data-theme='aurora'], [data-theme='emerald']) .conversation, :root:is([data-theme='sunrise'], [data-theme='blueprint'], [data-theme='aurora'], [data-theme='emerald']) .search-box { background: var(--card); }
:root:is([data-theme='sunrise'], [data-theme='blueprint'], [data-theme='aurora'], [data-theme='emerald']) .panel, :root:is([data-theme='sunrise'], [data-theme='blueprint'], [data-theme='aurora'], [data-theme='emerald']) .browse, :root:is([data-theme='sunrise'], [data-theme='blueprint'], [data-theme='aurora'], [data-theme='emerald']) .stat { border-top: 3px solid var(--card-top); }
:root:is([data-theme='sunrise'], [data-theme='blueprint'], [data-theme='aurora'], [data-theme='emerald']) .result, :root:is([data-theme='sunrise'], [data-theme='blueprint'], [data-theme='aurora'], [data-theme='emerald']) .feature-card { border-left: 4px solid var(--avatar-bg); }
:root:is([data-theme='sunrise'], [data-theme='blueprint'], [data-theme='aurora'], [data-theme='emerald']) .step { border-top-color: var(--action); }
:root:is([data-theme='sunrise'], [data-theme='blueprint'], [data-theme='aurora'], [data-theme='emerald']) .step__n { color: var(--ok); }
:root:is([data-theme='sunrise'], [data-theme='blueprint'], [data-theme='aurora'], [data-theme='emerald']) .site-footer { background: var(--sand); }
:root:is([data-theme='sunrise'], [data-theme='blueprint'], [data-theme='aurora'], [data-theme='emerald']) .badge { border-color: var(--card-edge); background: var(--card); }
:root:is([data-theme='sunrise'], [data-theme='blueprint'], [data-theme='aurora'], [data-theme='emerald']) .badge--example, :root:is([data-theme='sunrise'], [data-theme='blueprint'], [data-theme='aurora'], [data-theme='emerald']) .banner { background: var(--note-bg); }
:root:is([data-theme='sunrise'], [data-theme='blueprint'], [data-theme='aurora'], [data-theme='emerald']) .banner { border-color: var(--gold); }

html { scroll-padding-top: 96px; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
a { color: var(--link); }
a:hover { color: var(--ink); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.visually-hidden { position: absolute; left: -9999px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.fine { font-size: 13px; color: var(--muted); }
.ok { color: var(--ok); }
.band { border-bottom: 1px solid var(--line); }
.band--sand { background: var(--sand); }
.eyebrow { font-size: 11px; font-weight: 600; color: var(--accent); letter-spacing: .05em; text-transform: uppercase; }

/* Header */
.site-header { position: -webkit-sticky; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 75%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.site-header .wrap { padding-top: 12px; padding-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wordmark { text-decoration: none; color: var(--ink); display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1; font-family: var(--serif); font-weight: 600; }
.wordmark__name { font-size: 34px; letter-spacing: -.02em; }
.wordmark__by { font-size: 14px; margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: 15px; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
/* The sign-in button keeps its own colours inside the menu. */
.site-nav a.btn--solid, .site-nav a.btn--solid:hover { color: var(--on-action); text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 4px; border: 1px solid var(--ink); font: inherit; font-size: 15px; font-weight: 500; color: var(--ink); background: transparent; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--wash); color: var(--ink); }
.btn--solid { background: var(--action); border-color: var(--action); color: var(--on-action); font-weight: 600; }
.btn--solid:hover { background: var(--action); color: var(--on-action); opacity: .88; }
.btn--large { min-height: 48px; padding: 0 20px; font-size: 16px; }
.btn--grow { flex: 1; }

/* Hero */
.hero { background: var(--hero-bg); }
.hero .wrap { padding-top: 72px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 28px; }
/* The picture is on the right and behind: the text sits beside it and the search box laps over its lower edge. */
.hero--pictured .wrap { position: relative; }
.hero--pictured .wrap > * { position: relative; z-index: 1; }
.hero--pictured .hero__picture { position: absolute; z-index: 0; right: 64px; top: 16px; width: min(66%, 780px); height: auto; pointer-events: none; }
.hero__text { display: flex; flex-direction: column; gap: 16px; }
/* The text keeps to the left of the people in the picture; the search box laps over the picture's lower edge. */
.hero--pictured .hero__text { max-width: calc(34% - 40px); min-height: 400px; justify-content: center; }
.hero--pictured h1 { font-size: clamp(34px, 3.9vw, 50px); }
.hero--pictured .hero__lead { font-size: 18px; }
@media (max-width: 900px) {
  .hero--pictured .hero__picture { display: none; }
  .hero--pictured .hero__text { max-width: none; min-height: 0; }
}
.hero h1 { font-size: clamp(38px, 5.2vw, 58px); line-height: 1.04; letter-spacing: -.02em; max-width: 820px; }
.hero__lead { font-size: 20px; color: var(--ink-2); max-width: 820px; }
.search-box { background: var(--paper); border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px; display: flex; flex-wrap: wrap; gap: 10px; box-shadow: 0 18px 50px rgba(17, 20, 25, .08); }
.search-box label { display: flex; flex-direction: column; gap: 2px; padding: 6px 12px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.search-box label:first-of-type { flex: 3 1 340px; }
.search-box label:last-of-type { flex: 1 1 200px; }
.search-box input { font: inherit; font-size: 17px; font-weight: 400; color: var(--ink); text-transform: none; letter-spacing: 0; border: 0; padding: 4px 0; background: transparent; }
/* The fields take no outline of their own; the whole box shows that it has focus. */
.search-box input:focus, .search-box input:focus-visible { outline: none; }
.search-box:focus-within { border-color: var(--ink); }
.search-box__divider { width: 1px; background: var(--line); }
.search-box button { flex: 0 0 auto; width: 56px; min-height: 56px; padding: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { font-size: 14px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--paper); color: var(--ink); text-decoration: none; }
.chip:hover { border-color: var(--ink); }
.tag { font-size: 14px; padding: 4px 12px; border-radius: 4px; background: var(--tag-bg); }

/* Sections */
.section .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 28px; }
.section h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; letter-spacing: -.015em; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 20px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 32px; }

/* Triage explainer */
.explain { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 40px; align-items: start; }
.explain__quote { font-family: var(--serif); font-size: 22px; line-height: 1.4; }
.panel { border: 1px solid var(--card-edge); border-radius: 8px; background: var(--paper); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.panel dl { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.panel dt { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 4px; }
.panel dd { margin: 0; }

/* Browse */
.browse { border: 1px solid var(--card-edge); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.browse h3 { font-size: 24px; }
.browse ul { list-style: none; margin: 0; padding: 0; columns: 2 200px; column-gap: 24px; }
.browse li { padding: 5px 0; break-inside: avoid; }
.browse a { color: var(--ink); text-decoration: none; }
.browse a:hover { text-decoration: underline; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.step { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--ink); padding-top: 16px; }
.step__n { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--muted); }
.step h3 { font-size: 24px; }
.step p { color: var(--ink-2); }
.trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; }
.trust li::before { content: '✓ '; color: var(--ok); font-weight: 600; }

/* Call to action band */
.cta { background: var(--cta-bg); color: var(--on-deep); }
.cta .wrap { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.cta h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -.02em; }
.cta p { color: var(--on-deep); opacity: .82; font-size: 18px; max-width: 40em; }
.cta .btn { border-color: var(--on-deep); color: var(--on-deep); }
.cta .btn:hover { background: rgba(255, 255, 255, .1); }
.cta .btn--solid { background: var(--on-deep); border-color: var(--on-deep); color: var(--deep); }
.cta .eyebrow { color: var(--on-deep); opacity: .7; }

.site-footer { background: var(--paper); color: var(--ink-2); border-top: 1px solid var(--line); }
.site-footer__grid { max-width: 1200px; margin: 0 auto; padding: 56px 24px 40px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; }
.site-footer__slogan { margin-top: 16px; font-size: 14px; line-height: 1.7; max-width: 300px; color: var(--ink-2); }
.site-footer__email { margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); text-decoration: none; }
.site-footer__social { display: flex; gap: 8px; margin-top: 18px; }
.site-footer__social a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--ink-2); }
.site-footer__social a:hover { border-color: var(--ink); color: var(--ink); }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.site-footer__title { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.site-footer nav a { color: var(--ink-2); text-decoration: none; }
.site-footer nav a:hover, .site-footer__email:hover { color: var(--ink); text-decoration: underline; }
.site-footer__bottom { max-width: 1200px; margin: 0 auto; padding: 18px 24px 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.site-footer__legal { margin-left: 18px; display: inline-flex; gap: 14px; }
.site-footer__legal a { color: var(--muted); text-decoration: none; }
.site-footer__legal a:hover { color: var(--ink); text-decoration: underline; }
.appearance { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 13px; color: var(--muted); }
.appearance__options { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 4px; position: relative; }
.appearance__options > button, .appearance__colours > summary { font: inherit; font-size: 13px; padding: 6px 12px; border: 0; border-left: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); cursor: pointer; list-style: none; white-space: nowrap; }
.appearance__colours > summary::-webkit-details-marker { display: none; }
.appearance__options > button:first-child { border-left: 0; border-radius: 3px 0 0 3px; }
.appearance__colours > summary { border-radius: 0 3px 3px 0; }
.appearance__options > button:hover, .appearance__colours > summary:hover { background: var(--wash); }
.appearance__options > button[aria-pressed='true'], .appearance__colours > summary[aria-pressed='true'] { background: var(--action); color: var(--on-action); font-weight: 600; }
/* The colour themes open upwards from the footer. */
.appearance__popup { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 60; width: 300px; padding: 8px; display: flex; flex-direction: column; gap: 4px;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 18px 50px rgba(0, 0, 0, .22); }
.appearance__popup button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; font-size: 14px; padding: 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--ink); cursor: pointer; }
.appearance__popup button:hover { background: var(--wash); }
.appearance__popup button[aria-pressed='true'] { border-color: var(--action); }
.appearance__popup b { display: block; font-weight: 600; }
.appearance__popup small { display: block; font-size: 12px; color: var(--muted); }
.swatch { width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0; border: 1px solid rgba(0, 0, 0, .12); }
.swatch--sunrise { background: linear-gradient(135deg, #FFE7B3 0%, #C2410C 55%, #2B1A6B 100%); }
.swatch--blueprint { background: linear-gradient(135deg, #FFFFFF 0%, #1B5FE0 55%, #0B1F3F 100%); }
.swatch--aurora { background: radial-gradient(circle at 30% 25%, #22D3EE 0%, #7C5CFF 45%, #0A0E1F 100%); box-shadow: 0 0 14px rgba(124, 92, 255, .6); }
.swatch--emerald { background: linear-gradient(135deg, #F4D58D 0%, #0B7A4B 55%, #0F3D2E 100%); }

/* The signed-in person's menu */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; gap: 8px; }
.menu > summary::-webkit-details-marker { display: none; }
.menu__caret { font-size: 11px; }
.menu__list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 120; min-width: 220px; padding: 6px; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 18px 50px rgba(0, 0, 0, .18); }
.menu__list a, .menu__list button { display: block; width: 100%; text-align: left; font: inherit; font-size: 15px; padding: 9px 12px; border: 0; border-radius: 4px; background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; }
.menu__list a:hover, .menu__list button:hover { background: var(--wash); text-decoration: none; }
.menu__list form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--line); }

/* Choosing how to email us */
.email-dialog { width: min(520px, calc(100vw - 32px)); padding: 28px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.email-dialog::backdrop { background: rgba(10, 12, 16, .55); }
.email-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.email-dialog h2 { font-size: 24px; overflow-wrap: anywhere; }
.email-dialog__head .btn { min-height: 40px; width: 40px; padding: 0; }
.email-dialog__ways { display: flex; flex-direction: column; margin: 16px 0; border-top: 1px solid var(--line); }
.email-dialog__ways a, .email-dialog__ways button { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 14px 4px; font: inherit; font-size: 16px; text-align: left;
  border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--link); text-decoration: none; cursor: pointer; }
.email-dialog__ways button { color: var(--ink); }
.email-dialog__ways a:hover, .email-dialog__ways button:hover { background: var(--wash); }

@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 40px; } .site-footer__brand { grid-column: 1 / -1; } .site-footer__legal { margin-left: 0; display: flex; margin-top: 6px; } }

/* Practitioner cards */
.avatar { border-radius: 50%; background: var(--avatar-bg); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; color: var(--ink); }
.avatar--m { width: 72px; height: 72px; font-size: 22px; }
.avatar--xl { width: 140px; height: 140px; font-family: var(--serif); font-size: 44px; color: var(--muted); }
.score { font-family: var(--mono); font-weight: 500; font-size: 13px; padding: 2px 7px; border-radius: 4px; background: var(--ink); color: var(--sand); }
.stars { color: var(--gold); }
.badge { font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 4px; border: 1px solid var(--line-strong); color: var(--ink-2); white-space: nowrap; }
.badge--solid { background: var(--ink); color: var(--sand); border-color: var(--ink); font-weight: 600; }
.badge--sponsored { background: rgba(147, 99, 29, .14); color: var(--gold-ink); border-color: transparent; font-weight: 600; }
.badge--example { background: var(--sand-2); border-color: transparent; }
.name-link { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.15; color: var(--ink); text-decoration: none; }
.name-link:hover { text-decoration: underline; }
.facts { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 14px; }

.feature-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; background: var(--paper); }
.feature-card__photo { height: 190px; background: var(--avatar-bg); display: flex; align-items: center; justify-content: center; position: relative; font-family: var(--serif); font-weight: 600; font-size: 54px; color: var(--muted); }
.feature-card__photo .badge { position: absolute; top: 12px; left: 12px; }
.feature-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.feature-card__actions { display: flex; gap: 10px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }

.result { border: 1px solid var(--card-edge); border-radius: 8px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.result--sponsored { border-color: rgba(147, 99, 29, .35); background: rgba(147, 99, 29, .05); }
.result__top { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.result__main { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.result__title { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.result__quote { color: var(--ink-2); }
.result__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Search results page */
.results-search { padding-top: 24px; }
.results-search .search-box { box-shadow: none; }
.results-layout { padding-top: 24px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.filters { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.filters fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.filters legend { padding: 0; margin-bottom: 8px; }
.filters label { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.filters select { font: inherit; font-size: 15px; height: 40px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--paper); color: var(--ink); }
.results { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.results h1 { font-size: clamp(26px, 3vw, 34px); line-height: 1.12; letter-spacing: -.015em; }

/* Profile page */
.profile-head .wrap { padding-top: 28px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 22px; }
.profile-head__row { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.profile-head__main { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.profile-head h1 { font-size: clamp(34px, 4.4vw, 48px); line-height: 1.04; letter-spacing: -.02em; }
.profile-head__actions { display: flex; flex-direction: column; gap: 10px; flex: 0 1 240px; }
.profile-nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 15px; border-top: 1px solid var(--line); padding-top: 14px; }
.profile-nav a { color: var(--ink); text-decoration: none; }
.profile-layout { padding-top: 40px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.profile-main { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 44px; }
.profile-main section { display: flex; flex-direction: column; gap: 12px; }
.profile-main h2 { font-size: 28px; }
.profile-main .lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 38em; }
.profile-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.score-card { flex: 1 1 220px; border: 1px solid var(--line); border-radius: 8px; padding: 22px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.score-card__value { font-family: var(--mono); font-weight: 500; font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; }
.table { flex: 2 1 380px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 15px; }
.table > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.table > div:last-child { border-bottom: 0; }
.table .when { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; align-items: stretch; }
.plan { border: 1px solid var(--card-edge); border-radius: 8px; padding: 26px; display: flex; flex-direction: column; gap: 14px; background: var(--paper); }
.plan--lead { border: 2px solid var(--ink); }
.plan h2 { font-size: 30px; }
.plan__price { font-family: var(--serif); font-weight: 600; font-size: 28px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; flex: 1; }
.plan li::before { content: '✓ '; color: var(--ok); font-weight: 600; }
.plan li.plan__note { color: var(--muted); }
.plan li.plan__note::before { content: ''; }
.addons { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.addons > div { display: flex; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); align-items: center; flex-wrap: wrap; }
.addons > div:last-child { border-bottom: 0; }
.addons > div > div { flex: 1 1 260px; display: flex; flex-direction: column; }

.notice { max-width: 640px; margin: 0 auto; padding: 96px 24px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.notice h1 { font-size: 40px; line-height: 1.08; letter-spacing: -.02em; }

/* Staff view */
.staff-bar { background: var(--deep); color: var(--on-deep); }
.staff-bar .wordmark { color: var(--on-deep); }
.staff-main { padding-top: 32px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 20px; }
.staff-main h1 { font-size: 34px; line-height: 1.1; letter-spacing: -.015em; }
.staff-hidden { color: var(--gold-ink); }
.chip[aria-current='page'] { background: var(--ink); color: var(--sand); border-color: var(--ink); }
.staff-table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.staff-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.staff-table th { text-align: left; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.staff-table th, .staff-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.staff-table tr:last-child td { border-bottom: 0; }
.staff-detail > div > span:first-child { flex: 0 0 160px; }
.staff-detail > div { justify-content: flex-start; }
.staff-search { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.staff-search input[type='search'] { flex: 1 1 260px; min-width: 0; min-height: 44px; }
.staff-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
/* On a phone each profile is a short card, not a row to scroll sideways. */
@media (max-width: 640px) {
  .staff-table--cards thead { display: none; }
  .staff-table--cards, .staff-table--cards tbody, .staff-table--cards tr, .staff-table--cards td { display: block; width: 100%; }
  .staff-table--cards tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .staff-table--cards tr:last-child { border-bottom: 0; }
  .staff-table--cards td { padding: 2px 0; border-bottom: 0; }
  .staff-table--cards td[data-label]:not([data-label='Name'])::before { content: attr(data-label) ': '; color: var(--muted); font-size: 13px; }
  .staff-table--cards td[data-label='Consent'], .staff-table--cards td[data-label='Verification'] { display: none; }
  .staff-table-scroll { overflow-x: visible; }
}

@media (max-width: 640px) {
  .wordmark__name { font-size: 26px; }
  .wordmark__by { font-size: 11px; }
  .hero .wrap { padding-top: 40px; padding-bottom: 40px; }
  .section .wrap { padding-top: 48px; padding-bottom: 48px; }
  .search-box__divider { display: none; }
  .search-box button { width: 100%; }
  .site-nav { gap: 16px; }
  .profile-head__actions { flex: 1 1 100%; }
}

/* Accounts and messages */
.count { display: inline-block; margin-left: 6px; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--ink); color: var(--sand); font-size: 12px; font-weight: 600; text-align: center; }
.inline-form { display: inline; margin: 0; }
.link-button { font: inherit; background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; }
.link-button:hover { text-decoration: underline; }
.flow { max-width: 720px; margin: 0 auto; padding: 40px 24px 96px; display: flex; flex-direction: column; gap: 24px; }
.flow h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.08; letter-spacing: -.02em; }
.flow-steps { display: flex; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.flow-steps b { color: var(--ink); font-weight: 600; }
.to-line { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--sand); }
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 15px; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; color: var(--ink); padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--paper); width: 100%; }
.field textarea { min-height: 170px; resize: vertical; line-height: 1.5; }
.field input.code { font-family: var(--mono); font-size: 24px; letter-spacing: .3em; max-width: 220px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { margin-top: 4px; }
.error { border: 1px solid #B3261E; background: #FCEEEE; color: #7A1712; border-radius: 4px; padding: 12px 14px; font-size: 15px; }
.inbox { padding-top: 28px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.inbox__list { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.inbox__list h1 { font-size: 30px; }
.thread-link { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; }
.thread-link:hover { border-color: var(--ink); color: var(--ink); }
.thread-link[aria-current='true'] { background: var(--sand); border-color: var(--line-strong); }
.thread-link__text { display: flex; flex-direction: column; min-width: 0; }
.thread-link__name { font-weight: 600; }
.avatar--s { width: 44px; height: 44px; font-size: 15px; }
.conversation { flex: 999 1 520px; min-width: 0; border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; }
.conversation__head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.conversation__body { padding: 20px; display: flex; flex-direction: column; gap: 12px; background: var(--sand); }
.bubble { max-width: 80%; padding: 12px 14px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble--mine { align-self: flex-end; background: var(--ink); color: var(--sand); border-color: var(--ink); }
.bubble__when { display: block; margin-top: 6px; font-size: 12px; opacity: .7; }
.conversation__reply { padding: 16px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.conversation__reply textarea { font: inherit; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 4px; min-height: 90px; resize: vertical; }

/* Notices */
.prose { max-width: 720px; margin: 0 auto; padding: 48px 24px 96px; display: flex; flex-direction: column; gap: 16px; }
.prose h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.08; letter-spacing: -.02em; }
.prose h2 { font-size: 24px; margin-top: 16px; }
.prose p, .prose li { color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.prose ul { margin: 8px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }

/* Practitioner side */
.dash { padding-top: 32px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 24px; }
.dash h1 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; letter-spacing: -.015em; }
.dash__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; }
.stat { border: 1px solid var(--card-edge); border-radius: 8px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.stat__value { font-family: var(--mono); font-weight: 500; font-size: 34px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.line { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); }
.banner { border: 1px solid var(--line-strong); background: var(--sand); border-radius: 4px; padding: 12px 14px; }
.picker { border: 1px solid var(--line); border-radius: 8px; margin: 0; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.picker legend { font-weight: 500; font-size: 15px; padding: 0 6px; }
.picker__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 8px 16px; margin-top: 8px; }

.review { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.review p { color: var(--ink-2); }
.review__reply { border-left: 3px solid var(--line-strong); padding-left: 12px; }
.table.staff-detail > form { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }

.question-link { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.question-link:hover b { text-decoration: underline; }

.preview { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 14px; background: var(--sand); border: 1px solid var(--line); border-radius: 4px; padding: 12px; margin: 8px 0 0; }
.audit > div { flex-direction: column; gap: 2px; }

.perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.perks li::before { content: '✓ '; color: var(--ok); font-weight: 600; }

/* Contact page */
.contact { padding-top: 56px; padding-bottom: 80px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.contact__intro { display: flex; flex-direction: column; gap: 16px; }
.contact__intro h1 { font-size: clamp(40px, 5vw, 56px); line-height: 1.04; letter-spacing: -.02em; }
.contact__facts { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.contact__facts a { color: var(--ink); text-decoration: none; }
.contact__facts a:hover { text-decoration: underline; }
.contact__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 32px; } .contact__pair { grid-template-columns: 1fr; } }

/* Lists on the account pages */
.table.rows { flex: none; }
.table.rows > div { flex-wrap: wrap; }

/* Staff: the running length of a campaign message. */
.counter { font-size: 13px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.counter--over { color: var(--danger, #b3261e); }

/* Photographs. An avatar is the person's picture when there is one, their initials when not. */
img.avatar { object-fit: cover; }
.feature-card__photo { background-size: cover; background-position: center 25%; }
.photo-panel { flex-direction: row; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.picker__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.check--all { font-weight: 600; }

/* With no member to show, the hero keeps its picture, and on a wide screen it too fits the window:
   the picture is sized from the window's height, and the search box and topics sit over its foot
   instead of being pushed below it. */
@media (min-width: 901px) {
  .hero--pictured:not(.hero--people) { --hero-h: clamp(560px, calc(100svh - 77px), 960px); }
  .hero--pictured:not(.hero--people) .wrap { min-height: var(--hero-h); padding-top: 24px; padding-bottom: 28px; gap: clamp(14px, 2.4vh, 26px); }
  /* The picture stands on the search box: its foot is tucked just under the box's top edge, whatever the window's height. */
  .hero--pictured:not(.hero--people) .hero__picture { top: auto; bottom: 152px; right: 1%; width: auto; height: auto;
    max-width: 61%; max-height: calc(var(--hero-h) - 168px); }
  .hero--pictured:not(.hero--people) .hero__text { flex: 1 1 auto; justify-content: center; min-height: 0; max-width: 36%; gap: clamp(12px, 2.4vh, 24px); z-index: 2; }
  .hero--pictured:not(.hero--people) h1 { font-size: clamp(34px, min(3.6vw, 7.4vh), 60px); max-width: none; text-wrap: balance; }
  .hero--pictured:not(.hero--people) .hero__lead { font-size: clamp(16px, min(1.4vw, 2.8vh), 22px); }
}

/* The hero's people: members' photographs, one at a time, where the picture was. The photograph is
   large and unframed, so a cut-out portrait stands directly on the page. The person's name tag sits
   over the bottom of the picture, centred on it. */
.hero__people { position: relative; width: min(100%, 440px); aspect-ratio: 1; margin: 0 auto; }
.hero__person { position: absolute; inset: 0; text-decoration: none; color: inherit;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .9s ease, transform .9s ease, visibility .9s; }
.hero__person.is-shown { opacity: 1; visibility: visible; transform: none; }
.hero__person img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 18px; }
.hero__caption { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); width: max-content; max-width: 98%;
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; white-space: nowrap;
  padding: 8px 14px 9px; border-radius: 12px; font-size: 13px; line-height: 1.25; color: var(--ink);
  /* Mostly see-through: the picture shows through, with just enough of a veil for the words to read. */
  background: color-mix(in srgb, var(--paper) 34%, transparent); border: 1px solid color-mix(in srgb, var(--paper) 55%, transparent);
  -webkit-backdrop-filter: blur(6px) saturate(1.1); backdrop-filter: blur(6px) saturate(1.1);
  /* The veil is thin, so the words carry their own glow of the page colour and read over a dark jacket or a light one. */
  font-weight: 600; text-shadow: 0 0 2px var(--paper), 0 0 5px var(--paper), 0 0 10px var(--paper), 0 0 16px var(--paper); }
.hero__caption > b { font-family: var(--serif); font-size: clamp(18px, 2.5vh, 22px); line-height: 1.1; color: var(--ink); }
.hero__caption > b + span { margin-top: -2px; }
.hero__caption .badge, .hero__caption .tag, .hero__caption .score { text-shadow: none; }
.hero__caption .badge, .hero__caption .tag { background: color-mix(in srgb, var(--paper) 90%, transparent); color: var(--ink); border-color: transparent; }
.hero__caption .tag { font-size: 12px; padding: 1px 7px; }
.hero__marks, .hero__topics { display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 6px 8px; max-width: 100%; overflow: hidden; }
.hero__person:hover .hero__caption > b, .hero__person:focus-visible .hero__caption > b { text-decoration: underline; }
.hero__dots { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 80%, transparent); }
.hero__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); transition: background .4s, width .4s; }
.hero__dots i.is-shown { background: var(--ink); width: 18px; border-radius: 3px; }
/* On a narrow screen the photograph comes after the words and before the search box. */
.hero--people .hero__text { order: 1; }
.hero--people .hero__people { order: 2; }
.hero--people .search-box { order: 3; }
.hero--people .chips { order: 4; }
/* On a wide screen the whole hero fits the window: its height is the window's less the header, within
   bounds, and the photograph, the heading and the gaps are sized from that height. The photograph
   stands to the right and the search box laps over its lower edge. */
@media (min-width: 901px) {
  .hero--people { --hero-h: clamp(560px, calc(100svh - 77px), 960px); --photo: clamp(350px, calc(var(--hero-h) - 166px), 800px); }
  .hero--people .wrap { min-height: var(--hero-h); padding-top: 24px; padding-bottom: 28px; gap: clamp(14px, 2.4vh, 26px); }
  .hero--people .hero__text { flex: 1 1 auto; justify-content: center; min-height: 0; max-width: max(34%, calc(98% - var(--photo))); gap: clamp(12px, 2.4vh, 24px); }
  .hero--people h1 { font-size: clamp(36px, min(4.6vw, 8.4vh), 74px); max-width: none; text-wrap: balance; }
  .hero--people .hero__lead { font-size: clamp(17px, min(1.65vw, 3vh), 25px); max-width: 30em; }
  .hero__people { position: absolute !important; z-index: 0; right: 9%; top: 20px; width: var(--photo); height: var(--photo); margin: 0; }
  /* Clear of the search box that laps over the picture's foot. */
  .hero__caption { bottom: 36px; }
}
/* Common topics keep to one line; on a narrow screen the line can be swiped. */
.hero .chips { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.hero .chips::-webkit-scrollbar { display: none; }
.hero .chips > * { flex: 0 0 auto; }
@media (prefers-reduced-motion: reduce) { .hero__person, .hero__dots i { transition: none; } }
}

/* Tiers: what a professional's record has earned. */
.badge--tier { font-weight: 600; }
.badge--new { border-style: dashed; }
.badge--highly-rated, .badge--top-rated { border-color: var(--gold); color: var(--gold-ink); }

/* A chosen question topic: a chip that stays ticked until it is unticked. */
.chip--chosen { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
div.field { display: flex; flex-direction: column; gap: 6px; }
.chip--chosen input { padding: 0; width: auto; margin: 0; }

/* Aurora's green is light, so what sits on it is dark. */
:root[data-theme='aurora'] .score, :root[data-theme='aurora'] .count { color: #06231A; }

/* A pressed button, while the page it leads to is on its way. */
.is-working { position: relative; pointer-events: none; opacity: .8; }
.is-working::after { content: ''; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: working .7s linear infinite; }
@keyframes working { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .is-working::after { animation-duration: 2s; } }
/* The search button holds only an icon: the spinner takes its place. */
.search-box .is-working svg { display: none; }
.search-box .is-working::after { margin-left: 0; vertical-align: middle; }

/* ---------------------------------------------------------------------------
   Phones and small tablets. One slim header row; a hero that shows its picture
   (or the featured member) under the words, with the search box lapping over
   its foot; nothing wider than the screen.
   --------------------------------------------------------------------------- */
.menu--site { display: none; }
.btn--icon { min-height: 40px; width: 40px; padding: 0; position: relative; }
.menu__dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--action); }
@media (max-width: 760px) {
  .site-header .wrap { padding-top: 8px; padding-bottom: 8px; flex-wrap: nowrap; gap: 10px; }
  .wordmark__name { font-size: 23px; }
  .wordmark__by { font-size: 10px; margin-top: 2px; }
  .site-nav { gap: 8px; flex-wrap: nowrap; }
  .site-nav__link { display: none; }
  .menu--site { display: block; }
  .site-nav .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .site-nav .btn--icon { padding: 0; }
  .site-nav .menu > summary.btn:not(.btn--icon) { max-width: 132px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; line-height: 38px; }
  .menu__list { min-width: min(260px, calc(100vw - 32px)); }
  .search-box { padding: 6px; gap: 0; }
  .search-box label { padding: 8px 10px; }
  .search-box label:last-of-type { border-top: 1px solid var(--line); }
  .search-box button { width: 100%; min-height: 46px; margin-top: 6px; }
}
/* Below the wide layout, the hero stacks: words, then the picture or featured member, then the search box over its foot. */
@media (max-width: 900px) {
  .hero .wrap { padding-top: 24px; padding-bottom: 28px; gap: 18px; }
  .hero h1, .hero--pictured h1, .hero--people h1 { font-size: clamp(30px, 7vw, 46px); line-height: 1.06; text-wrap: balance; }
  .hero__lead, .hero--pictured .hero__lead { font-size: clamp(16px, 2.4vw, 19px); }
  .hero .hero__text { order: 1; gap: 10px; }
  .hero .search-box { order: 3; }
  .hero .chips { order: 4; }
  /* The stock picture comes back on a phone: under the words, with the search box over its foot. */
  .hero--pictured:not(.hero--people) .hero__picture { display: block; order: 2; position: relative; z-index: 0; right: auto; top: auto;
    width: 100%; max-width: 520px; margin: 0 auto -44px; }
  /* The featured member, the same way: full width, the name tag clear of the search box. */
  .hero--people .hero__people { order: 2; width: 100%; max-width: 440px; margin: 0 auto -44px; }
  .hero--people .hero__caption { bottom: 54px; }
}

/* The search filters: a plain column beside the results on a wide screen, one "Filters" button on a phone. */
.filters-panel { flex: 1 1 240px; min-width: 0; }
.filters-panel > summary { display: none; list-style: none; }
.filters-panel > summary::-webkit-details-marker { display: none; }
@media (max-width: 760px) {
  .filters-panel > summary { display: inline-flex; cursor: pointer; }
  .filters-panel[open] > summary { margin-bottom: 14px; }
  .filters-panel .filters fieldset { display: flex; flex-wrap: wrap; gap: 6px 16px; }
  .filters-panel .filters legend { width: 100%; }
}
