/* The product's own site (src/site.js, stage 10): Log in, Register, the beta request, help, legal, status, the
   therapists' directory pages, and the frame of every page (header, footer, buttons, fields). The home page and the
   topic pages add home.css. One look for all of it, "Strata" (docs/design-book.md section 10): porcelain and white,
   wine-dark ink, raspberry with apricot. Light only; every colour is a token below or a fixed value written out. */
@font-face { font-family: 'Red Hat Display'; src: url('/fonts/red-hat-display-latin.woff2') format('woff2'); font-weight: 300 900; font-display: optional; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Red Hat Display'; src: url('/fonts/red-hat-display-latin-ext.woff2') format('woff2'); font-weight: 300 900; font-display: optional; unicode-range: U+0100-02BA, U+1E00-1EFF, U+2C60-2C7F; }
@font-face { font-family: 'Red Hat Text'; src: url('/fonts/red-hat-text-latin.woff2') format('woff2'); font-weight: 300 700; font-display: optional; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Red Hat Text'; src: url('/fonts/red-hat-text-latin-ext.woff2') format('woff2'); font-weight: 300 700; font-display: optional; unicode-range: U+0100-02BA, U+1E00-1EFF, U+2C60-2C7F; }
@font-face { font-family: 'Red Hat Mono'; src: url('/fonts/red-hat-mono-latin.woff2') format('woff2'); font-weight: 300 700; font-display: optional; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2192, U+2212; }
@font-face { font-family: 'Red Hat Mono'; src: url('/fonts/red-hat-mono-latin-ext.woff2') format('woff2'); font-weight: 300 700; font-display: optional; unicode-range: U+0100-02BA, U+1E00-1EFF; }

:root {
  --bg: #f6f3f5;
  --paper: #ffffff;
  --ink: #1e1218;
  --ink-2: #5d4e56;
  --ink-3: #6b5b63;
  --line: #e8dfe4;
  --line-2: #e0d4da;
  --field-line: #8f7f87;
  --accent: #c2255c;
  --accent-deep: #a01d4b;
  --accent-ink: #8f1a43;
  --tint: #f7ebf0;
  --apricot: #ff9a5c;
  --coral: #e0503f;
  --wine: #1e1218;
  --good: #17663f;
  --good-soft: #e2f3e8;
  --warn: #8a4b00;
  --warn-soft: #fdeedd;
  --bad: #b3261e;
  --bad-soft: #fde4e2;
  --f-head: 'Red Hat Display', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Red Hat Text', 'Segoe UI', system-ui, sans-serif;
  --f-mono: 'Red Hat Mono', ui-monospace, Consolas, monospace;
  --shadow: 0 40px 90px -40px rgb(110 20 55 / 42%), 0 2px 6px rgb(110 20 55 / 5%);
  --shadow-soft: 0 24px 40px -32px rgb(110 20 55 / 40%);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f-body); font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.15; margin: 0 0 12px; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(22px, 3.2vw, 30px); font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 12px; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
code { font: .92em var(--f-mono); background: var(--tint); color: var(--accent-ink); padding: 1px 6px; border-radius: 6px; }
.small { font-size: 14px; }
.muted { color: var(--ink-3); }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.lead { font-size: 18px; color: var(--ink-2); max-width: 62ch; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 16px; color: var(--paper); }
/* A field people never see, which only a script fills; and text for screen readers only. */
.hp, .sr-only { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
mark.placeholder { background: var(--warn-soft); color: var(--warn); border-radius: 4px; padding: 0 4px; font-weight: 600; }
[hidden] { display: none !important; }

/* Buttons: a pill; the main one raspberry. */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 99px;
  border: 1px solid var(--field-line); background: var(--paper); color: var(--ink); font: 600 15px/1.2 var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: border-color .2s, background .2s, transform .15s, box-shadow .2s; }
.button:hover { border-color: var(--ink); color: var(--ink); }
.button.primary { background: linear-gradient(100deg, #b81f58, #c93048); border-color: transparent; color: #ffffff; box-shadow: 0 14px 30px -14px rgb(194 37 92 / 75%), inset 0 1px 0 rgb(255 255 255 / 25%); }
.button.primary:hover { color: #ffffff; transform: translateY(-1px); box-shadow: 0 20px 36px -14px rgb(194 37 92 / 80%), inset 0 1px 0 rgb(255 255 255 / 25%); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* Header: the mark and the name, five places, the other language, Log in and the main button. Under 1100px the five
   go into a menu; under 1000px the main button too (the home and topic pages' bar at the bottom has it). */
.top { position: sticky; top: 0; z-index: 50; background: rgb(246 243 245 / 88%); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgb(224 212 218 / 70%); }
.top-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font: 800 22px/1.2 var(--f-head); letter-spacing: -.02em; color: var(--ink); text-decoration: none; text-transform: lowercase; white-space: nowrap; }
.top .brand { flex: 0 1 auto; }
.top .brand .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.brand:hover { color: var(--ink); }
.mark { width: 24px; height: 24px; flex: none; background: url('/img/product-mark.svg') center / contain no-repeat; }
.top-main { flex: 1 0 auto; display: flex; align-items: center; gap: 16px; }
.top-links { list-style: none; margin: 0 auto; padding: 0; display: flex; gap: 26px; }
.top-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 0; white-space: nowrap; }
.top-links a:hover { color: var(--ink); }
.top-nav { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; align-items: center; gap: 14px; }
.top-nav .keep a:not(.login) { display: inline-block; font: 500 12.5px/1 var(--f-mono); color: var(--ink-2); text-decoration: none; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 99px; }
.top-nav .keep a:not(.login):hover { color: var(--ink); border-color: var(--ink-2); }
.top-nav .login { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 2px; }
.top-nav .login:hover { text-decoration: underline; }
.top-nav .button { min-height: 42px; padding: 8px 18px; }
.menu { display: none; position: relative; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; }
.menu[open] summary { margin: 0; }
.menu summary { list-style: none; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; border: 1px solid var(--field-line); border-radius: 99px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); }
.menu summary span { transform: translateY(-3px); }
.menu summary span::before { content: ''; transform: translateY(6px); }
.menu ul { list-style: none; margin: 0; position: absolute; right: 0; top: 54px; min-width: 230px; padding: 8px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 24px 50px -20px rgb(110 20 55 / 45%); }
.menu li a:not(.button) { display: block; padding: 12px 14px; color: var(--ink); text-decoration: none; font-weight: 600; border-radius: 10px; }
.menu li a:not(.button):hover { background: var(--tint); }
.menu .menu-go { padding: 8px 6px 4px; }
.menu .menu-go .button { width: 100%; }

/* Pages with a form, help and legal */
.page { padding: 48px 0 64px; }
.page > h1, .page > p:first-of-type { max-width: 30ch; }
.page > p:first-of-type { max-width: 62ch; color: var(--ink-2); font-size: 17px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; box-shadow: var(--shadow-soft); }
.card h2, .card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.ticks { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .32em; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #ffffff 0 2.5px, transparent 3px), linear-gradient(135deg, #c2255c, #ff9a5c); }
.table-wrap { overflow-x: auto; margin-bottom: 16px; border-radius: 16px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
th, td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
thead th { border-top: 0; font: 600 12px/1.3 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); background: var(--tint); }
tbody th { font-weight: 500; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
td.num { white-space: nowrap; }
.table-wrap:focus-visible { outline-offset: 4px; }
details { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin-bottom: 10px; }
summary { font-weight: 600; cursor: pointer; }
details[open] summary { margin-bottom: 8px; }
.form { display: grid; gap: 16px; margin-bottom: 16px; }
.field { display: grid; gap: 6px; }
.field > span:first-child { font-weight: 600; font-size: 14px; color: var(--ink-2); }
input, select, textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--field-line); border-radius: 12px; background: var(--paper); color: var(--ink); font: 16px/1.3 var(--f-body); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 2px solid rgb(194 37 92 / 25%); outline-offset: 0; }
textarea { min-height: 120px; resize: vertical; }
.address { display: flex; align-items: stretch; }
.address input { border-radius: 12px 0 0 12px; min-width: 0; }
.suffix { display: flex; align-items: center; padding: 0 14px; border: 1px solid var(--field-line); border-left: 0; border-radius: 0 12px 12px 0; background: var(--tint); color: var(--ink-2); white-space: nowrap; font-family: var(--f-mono); font-size: 14px; }
.check { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.check input { width: 20px; min-height: 20px; height: 20px; accent-color: var(--accent); }
.field > label:first-child { font-weight: 600; font-size: 14px; color: var(--ink-2); }
/* The phone: its country's code (the list names the country) beside the number, one field to the eye. */
.phone { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
.phone select { border-radius: 12px 0 0 12px; border-right: 0; text-overflow: ellipsis; background-color: var(--tint); }
.phone input { border-radius: 0 12px 12px 0; }
@media (max-width: 520px) { .phone { grid-template-columns: minmax(0, 1fr); gap: 8px; } .phone select, .phone input { border-radius: 12px; border-right: 1px solid var(--field-line); } }
.check.agree { align-items: flex-start; line-height: 1.5; }
.check.agree input { margin-top: 2px; flex: none; }
.form .button { justify-self: start; }
.ok { color: var(--good); background: var(--good-soft); border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.note { color: var(--warn); background: var(--warn-soft); border-radius: 12px; padding: 12px 16px; }
.find { margin-top: 12px; }
.find .card { border: 0; padding: 0; margin-top: 8px; box-shadow: none; }
.crumb { font-size: 14px; }
.help-list .card h2 { font-size: 19px; }
.help-list .card h2 a { color: var(--ink); text-decoration: none; }
.help-list .card h2 a:hover { color: var(--accent); }
/* The therapists' directory (ADR 0030): a card per profile, its photo and name as one link. */
.dir-list { margin: 8px 0 20px; }
.dir-link { display: flex; align-items: center; gap: 14px; min-height: 44px; margin-bottom: 8px; font-weight: 700; font-size: 18px; text-decoration: none; }
.dir-link img { width: 88px; height: 88px; flex: none; border-radius: 14px; object-fit: cover; border: 1px solid var(--line); }
.doc h2 { margin-top: 32px; font-size: 23px; }
.doc h3 { margin-top: 22px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 12px; display: grid; gap: 6px; }
.doc aside.note { margin: 12px 0; font-size: 14px; }
.doc .more { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 12px; }
.draft { border: 1px solid var(--warn); background: var(--warn-soft); color: var(--warn); border-radius: 14px; padding: 12px 16px; margin: 12px 0 20px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 99px; padding: 2px 9px; background: var(--warn-soft); color: var(--warn); }

/* Status */
.status-rows { list-style: none; padding: 0; margin: 0 0 12px; }
.status-rows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.status-rows li:first-child { border-top: 0; }
.pill { font-size: 13px; font-weight: 600; border-radius: 99px; padding: 3px 11px; }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.status-note { margin-bottom: 16px; border-left: 4px solid var(--warn); }
.status-note.resolved { border-left-color: var(--good); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 56px 0 28px; margin-top: 32px; font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 32px; }
.foot-brand p { color: var(--ink-2); margin-top: 14px; max-width: 26ch; }
.foot h2 { font: 600 12px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 9px; }
.foot ul a, .foot p > a { color: var(--ink-2); text-decoration: none; }
.foot ul a:hover, .foot p > a:hover { color: var(--ink); text-decoration: underline; }
/* "Cookie settings" in the footer: a button that looks like the links beside it. */
.foot-link { padding: 0; border: 0; background: none; color: var(--ink-2); font: inherit; cursor: pointer; text-align: left; }
.foot-link:hover { color: var(--ink); text-decoration: underline; }
/* The analytics question (Sivan, 2026-12-02): a small card in the bottom left corner, one sentence and two buttons of
   the same weight, over everything else until answered. Hidden until public/js/site.js shows it. */
.consent:not([hidden]) { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 90; width: min(340px, calc(100vw - 32px)); box-sizing: border-box;
  display: grid; gap: 10px; padding: 14px 16px; background: #ffffff; color: var(--ink); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgb(30 18 24 / 35%); font-size: 14px; line-height: 1.45; animation: consent-in .25s ease-out; }
.consent p { margin: 0; }
.consent p a { color: var(--ink); }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent .button { min-height: 38px; padding: 6px 12px; font-size: 14px; }
@keyframes consent-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .consent:not([hidden]) { animation: none; } }
@media (max-width: 700px) { .consent:not([hidden]) { left: 12px; right: 12px; width: auto; bottom: calc(12px + env(safe-area-inset-bottom)); } }
.foot-end { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-2); }
.foot-end p { margin: 0; }

@media (max-width: 1099px) {
  .top-links { display: none; }
  .menu { display: block; }
}
@media (max-width: 999px) {
  .top-nav .go { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
/* The phone: the page's title and its first line centred (not on legal texts, which read as documents), the form's
   button the full width, and every link a thumb can hit (44px; the small header pills keep their look and grow an
   invisible margin instead). */
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .top-row { gap: 10px; min-height: 62px; }
  .top-nav { gap: 8px; }
  .brand { font-size: 20px; }
  .top .brand, .top-nav .keep a { position: relative; }
  .top .brand::after, .top-nav .keep a::after { content: ''; position: absolute; inset: -10px -4px; }
  /* The menu opens as a sheet across the screen, the page dimmed behind it. */
  .menu ul { position: fixed; top: 70px; left: 12px; right: 12px; min-width: 0; max-height: calc(100dvh - 90px); overflow-y: auto; padding: 10px; text-align: center;
    box-shadow: 0 24px 50px -20px rgb(110 20 55 / 45%), 0 0 0 100vmax rgb(30 18 24 / 28%); }
  .menu li a:not(.button) { padding: 14px; font-size: 17px; }
  .menu .menu-go { padding: 8px 4px 4px; }
  body:has(.menu[open]) .sticky { visibility: hidden; }
  .page { padding: 32px 0 48px; }
  .page:not(.doc) > h1, .page:not(.doc) > h1 + p { margin-inline: auto; text-align: center; }
  .page:not(.doc) > h1 + p { margin-bottom: 20px; }
  .actions .button { flex: 1 1 100%; }
  .form .button { justify-self: stretch; }
  .suffix { font-size: 13px; padding: 0 8px; }
  .help-list .card { position: relative; }
  .help-list .card h2 a::after { content: ''; position: absolute; inset: 0; border-radius: 20px; }
  .help-list .card:has(a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
  .help-list .card h2 a:focus-visible { outline: 0; }
  .crumb a, .doc .more a { display: inline-block; padding: 10px 0; }
  .foot { padding-top: 44px; }
  .foot-brand { display: grid; justify-items: center; text-align: center; }
  .foot-brand p { margin-inline: auto; }
  .foot-grid { gap: 28px 20px; }
  .foot ul { gap: 0; }
  .foot ul a, .foot p > a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0; line-height: 1.3; }
  .foot-end { flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width: 380px) {
  .top-nav .keep:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
