/* Indigo on a soft off-white, light purple, and a forest green for action. Red is kept for warnings only. */
:root {
  --cream: #fbfbf6;
  --cream-2: #f0f2e9;
  --ink: #2a2f55;          /* indigo */
  --ink-soft: #5b5f7e;
  --lavender: #ece5f6;
  --lavender-2: #d9cdee;
  --plum: #6a5299;
  --accent: #2f6044;       /* forest green: buttons, links that act, small labels */
  --accent-dark: #234a34;
  --danger: #a3322a;       /* warnings and errors only */
  --danger-dark: #862720;
  --rust: #b5622f;
  --line: #dde1d3;
  --ok: #3f6b4f;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
}
a { color: var(--plum); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: 2.3rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }

/* header */
.top {
  background: linear-gradient(180deg, var(--lavender) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  max-width: 960px; margin: 0 auto; padding: 18px 16px 14px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--lavender-2), var(--plum));
  box-shadow: 14px 0 0 -4px var(--accent);
  margin-right: 12px;
}
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-grid .card { margin: 0; }
.stat-big { font-family: var(--serif); font-size: 2.2rem; line-height: 1.1; color: var(--ink); }
.stat-of { font-size: 1.1rem; color: var(--ink-soft); }
.admin-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.admin-search input { flex: 1 1 220px; }
.member-actions { flex-wrap: wrap; align-items: flex-start; }
.freeze summary { list-style: none; cursor: pointer; }
.freeze summary::-webkit-details-marker { display: none; }
.freeze[open] form { margin-top: 8px; min-width: 260px; }
.center-row { border-top: 1px solid var(--line); padding: 10px 0; }
.center-row > summary { cursor: pointer; }
.center-form { display: grid; gap: 10px; margin-top: 12px; }
.snippet { width: 100%; font: .8rem/1.4 ui-monospace, Menlo, monospace; }
.pick-list { display: grid; gap: 6px; margin: 8px 0 10px; }
.pick { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.checkin { border-left: 4px solid var(--plum); }
body.embed { background: transparent; }
body.embed main { padding-top: 8px; }
.embed-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 18px 0 4px; }
.npi { margin-top: 8px; padding: 8px 10px; border-left: 3px solid var(--line); background: #fff; border-radius: 6px; }
.npi form { margin: 6px 0 2px; }
.npi-number { border-left-color: var(--plum); }
.npi-error, .npi-none { border-left-color: var(--danger); }
.brand-logo { height: 80px; width: auto; display: block; }
@media (max-width: 640px) { .brand-logo { height: 56px; } }
.brand-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.brand-sub { display: block; font-size: .8rem; color: var(--ink-soft); letter-spacing: .04em; }
nav { display: flex; flex-wrap: wrap; gap: 4px; }
nav a {
  text-decoration: none; color: var(--ink); padding: 6px 12px; border-radius: 999px;
}
nav a:hover { background: var(--lavender); }
nav a.on { background: var(--ink); color: var(--cream); }
nav { align-items: center; }
nav .count {
  display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; margin-left: 2px;
  background: var(--accent); color: #fff; font-size: .78rem; font-weight: 600; text-align: center; line-height: 20px;
}
.menu { position: relative; }
.menu > summary {
  list-style: none; cursor: pointer; color: var(--ink); padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover, .menu[open] > summary { background: var(--lavender); }
.menu > summary.on { border-color: var(--ink); }
.menu-list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 220px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px;
  box-shadow: 0 10px 30px rgba(42, 47, 85, .14); display: grid;
}
.menu-list a, .menu-out {
  display: block; text-align: left; padding: 8px 12px; border-radius: 10px; border: 0; background: none;
  font: inherit; color: var(--ink); text-decoration: none; cursor: pointer; width: 100%;
}
.menu-list a:hover, .menu-out:hover { background: var(--lavender); }
.menu-who { margin: 4px 12px 8px; font-size: .85rem; color: var(--ink-soft); }
.menu-list form { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
/* On a phone the menu opens full width under the nav, wherever the name button wrapped to. */
@media (max-width: 640px) {
  nav { position: relative; }
  .menu { position: static; }
  .menu-list { left: 0; right: 0; min-width: 0; }
}
.as { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-soft); white-space: nowrap; }
.as select { font: inherit; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); }

main { max-width: 960px; margin: 0 auto; padding: 28px 16px 64px; }

/* cards */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin-bottom: 18px;
  box-shadow: 0 1px 0 rgba(42, 47, 85, .04);
}
.card.soft { background: var(--lavender); border-color: var(--lavender-2); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* flash */
.flash { border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; }
.flash.ok { background: #e7f0e9; color: var(--ok); }
.flash.error { background: #f7e3e0; color: var(--danger-dark); }

/* buttons */
.btn {
  display: inline-block; font: 600 1rem var(--sans); border: 0; cursor: pointer;
  padding: 10px 20px; border-radius: 999px; text-decoration: none;
  background: var(--accent); color: #fff;
}
.btn:hover { background: var(--accent-dark); }
.btn.quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.quiet:hover { background: var(--lavender); }
/* Red is for the one main thing to do on a page. Everything else is quiet or ink. */
.btn.ink { background: var(--ink); }
.btn.ink:hover { background: #1d2140; }
form.inline { display: inline; }

/* toggle */
.toggle-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.switch {
  position: relative; width: 62px; height: 34px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--lavender-2); transition: background .2s;
}
.switch::after {
  content: ""; position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.switch.on { background: var(--accent); }
.switch.on::after { left: 32px; }
.pill {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .85rem;
  background: var(--lavender); color: var(--plum); margin: 0 4px 4px 0;
}
.pill.red { background: #f7e3e0; color: var(--danger-dark); }
.pill.ok { background: #e7f0e9; color: var(--ok); }
.pill.founder { background: #f6ecd2; color: #6b4a08; font-weight: 600; font-size: .78rem; letter-spacing: .02em; margin: 0; }
/* Earned badges: from facts on record, never bought. */
.pill.earned { background: #e9f1ee; color: #24493f; font-weight: 600; font-size: .78rem; letter-spacing: .02em; margin: 0; }
.pill.earned.new { background: #e6eef8; color: #2f4a76; }
.pill.earned.quick { background: #efe9f7; color: #4b3a78; }
.pf-badges { margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 6px; }

/* community counts */
.hero { text-align: center; padding: 18px 0 8px; }
.hero p { max-width: 560px; margin: 0 auto 1em; }
.states { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 18px; }
.state { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; }
.state .abbr { font-family: var(--serif); font-size: 1.4rem; color: var(--ink-soft); }
.state .big { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--accent); }
.state .of { font-size: .9rem; color: var(--ink-soft); }
.circle { display: flex; justify-content: center; margin: 10px 0 4px; }
.circle span {
  width: 14px; height: 14px; border-radius: 50%; margin: 0 -2px;
  background: var(--lavender-2); border: 2px solid #fff;
}
.circle span.on { background: var(--plum); }

/* referrals */
.ref { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.ref + .ref { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.ref .note { font-style: italic; color: var(--ink-soft); margin: 6px 0 0; }
.empty { text-align: center; padding: 28px 12px; color: var(--ink-soft); }
.empty .mark { font-family: var(--serif); font-size: 2.4rem; color: var(--lavender-2); }

/* forms */
fieldset { border: 0; padding: 0; margin: 0 0 20px; }
legend, label.lbl { font-weight: 600; display: block; margin-bottom: 8px; }
select, textarea {
  font: inherit; width: 100%; max-width: 420px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
textarea { max-width: 100%; min-height: 90px; resize: vertical; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer;
}
.checks input:checked + span { color: var(--plum); font-weight: 600; }
.checks label:has(input:checked) { background: var(--lavender); border-color: var(--lavender-2); }
.hint { font-size: .9rem; color: var(--ink-soft); margin-top: 6px; }

footer { text-align: center; color: var(--ink-soft); font-size: .85rem; padding: 0 16px 32px; }

@media (max-width: 600px) {
  h1 { font-size: 1.9rem; }
  .card { padding: 18px; }
}

/* ---------- public directory and profiles ---------- */
input[type=text], input:not([type]) {
  font: inherit; width: 100%; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.pill.quiet { background: var(--cream-2); color: var(--ink-soft); }
.avatar {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 1.3rem var(--serif); letter-spacing: .02em; color: #fff;
  background: radial-gradient(circle at 35% 30%, #8b74bd, var(--plum));
}
.avatar.initials { background: var(--lavender); color: var(--plum); border: 1px solid var(--lavender-2); }
.avatar.big { width: 96px; height: 96px; font-size: 2.2rem; }

.filters { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; }
.filters select { max-width: none; }
.filter-end { display: flex; flex-direction: column; gap: 10px; }
.check-line { display: flex; gap: 8px; align-items: center; font-size: .95rem; }

a.person { display: flex; gap: 18px; align-items: flex-start; text-decoration: none; color: inherit; }
a.card.person:hover { border-color: var(--lavender-2); box-shadow: 0 4px 14px rgba(106, 82, 153, .12); }
.person-main { flex: 1; min-width: 0; }
.person-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; }
.person-head h3 { margin: 0; }
.cred { font-family: var(--sans); font-size: .95rem; font-weight: 400; color: var(--ink-soft); }
.person-bio { margin: 8px 0; }
a.person.mini { padding: 12px 0; align-items: center; }
a.person.mini + a.person.mini { border-top: 1px solid var(--lavender-2); }
a.person.mini .avatar { width: 44px; height: 44px; font-size: 1.05rem; }

.profile-top { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.profile-top h1 { margin-bottom: 4px; }
.profile-cta { margin-left: auto; }
.profile-body { display: grid; gap: 18px; grid-template-columns: 1fr; }
.profile-body h3 { margin-top: 4px; }
@media (min-width: 760px) { .profile-body { grid-template-columns: 3fr 2fr; } }
@media (max-width: 600px) { .profile-cta { margin-left: 0; width: 100%; text-align: center; } }
.profile-body { margin-bottom: 18px; }
.profile-body .card { margin-bottom: 0; }

/* ---------- brand ribbon, sign-in, three statuses ---------- */
.ribbon {
  background: var(--ink); color: var(--cream); text-align: center;
  font: 600 .95rem/1.3 var(--sans); letter-spacing: .06em; padding: 8px 16px;
}
.ribbon::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 6px 0 0 var(--lavender-2); margin-right: 14px; vertical-align: 1px; }
.tld { color: var(--accent); }
.eyebrow { font: 600 .85rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .6em; }
.footer-mark { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); margin-bottom: 6px; }
.who { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--ink-soft); flex-wrap: wrap; }
.small-btn { padding: 6px 14px; font-size: .9rem; }
.narrow { max-width: 520px; margin: 0 auto; }
input[type=email], input[type=tel] {
  font: inherit; width: 100%; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.why { margin-top: 24px; }
/* A form's button or next label never sits right against the box above it (Lex, 29 Nov 2026: the
   Sign in button touched the code box). Only where nothing else already spaces them. */
form.card > :is(input:not([type=hidden], [type=checkbox], [type=radio]), select, textarea) + :is(.btn, button) { margin-top: 16px; }
form.card > :is(input:not([type=hidden], [type=checkbox], [type=radio]), select, textarea) + label { display: block; margin-top: 12px; }
/* The sidebar's hills shrink in a short window instead of running over the menu. */
.side-art { min-height: 0; overflow: hidden; }

.pill.wait { background: var(--lavender-2); color: #4b3a78; }
.status-pick { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 8px 0 14px; }
.status-opt {
  font: inherit; text-align: left; cursor: pointer; padding: 14px 16px; border-radius: 12px;
  background: #fff; color: var(--ink); border: 2px solid var(--line);
  display: flex; flex-direction: column; gap: 2px;
}
.status-opt span { font-size: .9rem; color: var(--ink-soft); }
.status-opt:hover { border-color: var(--lavender-2); }
.status-opt.on.accepting { border-color: var(--ok); background: #eef5f0; }
.status-opt.on.waitlist { border-color: var(--plum); background: var(--lavender); }
.status-opt.on.closed { border-color: var(--ink-soft); background: var(--cream-2); }
.status-note { line-height: 1.7; }

/* ---------- rich profiles ---------- */
img.avatar { object-fit: cover; background: var(--lavender); }
.avatar.big { width: 112px; height: 112px; }
.profile-top { align-items: flex-start; }
.profile-id { flex: 1; min-width: 240px; }
.profile-id h1 { font-size: 2.2rem; }
.headline { font-family: var(--serif); font-size: 1.35rem; color: var(--plum); margin: 2px 0 6px; }
.badges { margin-top: 10px; }
.profile-actions { display: flex; flex-direction: column; gap: 8px; min-width: 200px; }
.profile-actions .btn { text-align: center; }
.pill.verified { background: #e6eef8; color: #2f4a76; }
.pill.focus { background: var(--plum); color: #fff; }
.focus-band {
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: baseline;
  padding: 14px 22px; margin-bottom: 18px; border-radius: var(--radius);
  background: linear-gradient(90deg, var(--lavender), #f7e8e6);
}
.focus-band .eyebrow { margin: 0; }
.focus-item { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.focus-item + .focus-item::before { content: "·"; color: var(--accent); margin-right: 18px; }
.profile-body > div > .card, .profile-body aside > .card { margin-bottom: 18px; }
.profile-body { gap: 0 18px; margin-bottom: 0; }
.profile-body .card { margin-bottom: 18px; }
@media (min-width: 760px) { .profile-body { grid-template-columns: 3fr 2fr; } }
.facets h3 { margin-bottom: 10px; }
.facet h4 { font: 600 .8rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 12px 0 4px; }
.facet p { margin: 0; }
.person-headline { font-family: var(--serif); font-size: 1.15rem; color: var(--plum); margin: 6px 0 0; }
@media (max-width: 600px) { .profile-actions { width: 100%; } }

/* editor */
.own-words { margin-top: 10px; max-width: 520px; }
/* Specialties in groups: the editor lists every group; the forms fold them */
.cg-h { margin: 14px 0 6px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #6b6577); }
.cgroup-flat:first-of-type .cg-h { margin-top: 4px; }
.cgroups { display: grid; gap: 6px; }
.rx-select { width: 100%; max-width: 420px; padding: 10px 12px; border-radius: 10px; }
.cgroup { border: 1px solid var(--lavender-2); border-radius: 12px; padding: 8px 12px; background: #fff; }
.cgroup > summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.cgroup[open] > summary { margin-bottom: 8px; }
.photo-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.link-edit { display: grid; gap: 8px; grid-template-columns: 2fr 1fr; margin-bottom: 10px; }
@media (max-width: 600px) { .link-edit { grid-template-columns: 1fr; } }
.check-stack { display: flex; flex-direction: column; gap: 10px; justify-content: flex-end; }
.save-bar { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(180deg, transparent, var(--cream) 40%); }
.search-wide { grid-column: 1 / -1; }
input[type=file] { font: inherit; }


/* My page: caseload first, setup as a strip, small cards side by side */
.setup-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-bottom: 18px;
  background: var(--lavender); border: 1px solid var(--lavender-2); border-radius: var(--radius); padding: 14px 22px;
}
.setup-left { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.setup-left li::before { content: "○"; color: var(--plum); margin-right: 6px; }
.setup-left a { color: var(--plum); font-weight: 600; }
.me-pair { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; margin-bottom: 18px; align-items: start; }
.me-pair > .card { margin-bottom: 0; }
@media (max-width: 760px) { .me-pair { grid-template-columns: 1fr; } }


/* supervision */
.sv-row { align-items: center; }
.sv-row .pill { margin-top: 6px; }
.sv-actions { display: flex; gap: 8px; }
.sv-form { margin-top: 18px; }
.sv-form input[type=email], .sv-form textarea { max-width: 420px; }
.setup-list { margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: var(--lavender-2); }
.setup-list p { margin: 0 0 6px; }
.setup-list ul { list-style: none; margin: 0; padding: 0; }
.setup-list li { padding: 2px 0; }
.setup-list li.done { color: var(--muted, #5b5b66); }
.sv-line { margin-top: 6px; color: var(--ink-soft); }
.sv-line a { color: var(--plum); font-weight: 600; }

/* ---------- directory: big photos, big filters, list or map ---------- */
.dir-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.dir-head h1 { margin: 0 0 4px; }
.view-switch { display: inline-flex; padding: 5px; gap: 4px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.view-switch a { padding: 8px 16px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; }
.view-switch a.on { background: var(--lavender); color: var(--plum); }

.quick-filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 14px; }
.qf {
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 26px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--ink); font-weight: 600; font-size: 1.02rem; text-decoration: none; cursor: pointer;
}
.qf:hover { border-color: var(--lavender-2); background: var(--lavender); }
.qf.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.qf .dot-ok { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.qf.on .dot-ok { background: #9fd8b0; }
.all-filters { padding: 0; border: 0; background: none; box-shadow: none; margin-bottom: 18px; }
.all-filters > summary { list-style: none; display: inline-flex; }
.all-filters > summary::-webkit-details-marker { display: none; }
.all-filters[open] > summary { margin-bottom: 14px; }
.all-filters .filters { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }

.tcard { display: grid; grid-template-columns: 170px 1fr 210px; gap: 24px; align-items: start; }
.tc-photo { display: block; }
.avatar.portrait { width: 170px; height: 214px; border-radius: 14px; font-size: 3.4rem; }
.avatar.thumb { width: 72px; height: 72px; border-radius: 12px; font-size: 1.6rem; }
.tc-main h2, .tc-main h3 { margin: 0 0 4px; }
.tc-main h2 a, .tc-main h3 a { text-decoration: none; color: var(--plum); }
.tc-main h2 a:hover, .tc-main h3 a:hover { text-decoration: underline; }
.tc-cred { color: var(--ink); margin-bottom: 4px; }
.tc-cred .check { display: inline-flex; width: 18px; height: 18px; margin-right: 6px; border-radius: 50%; background: var(--ok); color: #fff; font-size: .7rem; align-items: center; justify-content: center; vertical-align: 1px; }
.tc-where { color: var(--ink-soft); font-size: .95rem; margin-bottom: 8px; }
.tc-status { margin-bottom: 6px; }
.tc-bio { color: var(--ink); margin: 8px 0 10px; line-height: 1.55; }
.tc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-actions { display: flex; flex-direction: column; gap: 10px; }
.big-btn { display: flex; justify-content: center; min-height: 50px; align-items: center; font-size: 1rem; }

.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.map-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.map-list .card { margin: 0; }
.tcard.compact { grid-template-columns: 72px 1fr; gap: 12px 14px; padding: 16px; }
.tcard.compact .tc-bio, .tcard.compact .tc-tags, .tcard.compact .note, .tcard.compact .sv-actions { grid-column: 1 / -1; margin: 0; font-size: .93rem; }
.tcard.compact h3 { font-size: 1.15rem; }
.map-wrap { position: sticky; top: 16px; }
#map { height: 640px; border-radius: 18px; border: 1px solid var(--line); }
.map-note { margin: 8px 4px 0; }

@media (max-width: 860px) {
  .tcard { grid-template-columns: 110px 1fr; }
  .avatar.portrait { width: 110px; height: 140px; font-size: 2.4rem; }
  .tc-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .tc-actions .btn { flex: 1 1 140px; }
  .map-layout { grid-template-columns: 1fr; }
  .map-wrap { position: static; order: -1; }
  #map { height: 360px; }
  .qf { min-height: 46px; padding: 0 18px; }
}

/* Phones: a short header, filters in one swipeable row, and cards that give the words full width. */
@media (max-width: 600px) {
  .ribbon { font-size: .8rem; padding: 5px 12px; }
  .top-inner { padding: 10px 16px; gap: 8px; }
  .brand-logo { height: 44px; }
  .brand-sub { display: none; }
  nav a, .menu > summary { padding: 5px 10px; font-size: .95rem; }
  .quick-filters { flex-wrap: nowrap; overflow-x: auto; margin: 14px -16px 10px; padding: 2px 16px 6px; scrollbar-width: none; }
  .quick-filters::-webkit-scrollbar { display: none; }
  .qf { flex: none; min-height: 42px; padding: 0 14px; font-size: .95rem; }
  .tcard { grid-template-columns: 64px 1fr; gap: 6px 14px; }
  .tcard .tc-photo { grid-row: 1 / span 3; }
  .avatar.portrait { width: 64px; height: 64px; border-radius: 12px; font-size: 1.4rem; }
  .tc-main { display: contents; }
  .tc-main > * { grid-column: 2; }
  .tc-main > .tc-status, .tc-main > .person-headline, .tc-main > .tc-bio, .tc-main > .tc-tags,
  .tc-actions { grid-column: 1 / -1; }
  .tc-main h2 { font-size: 1.35rem; }
  .tc-actions .btn { flex: 1 1 auto; white-space: nowrap; padding: 10px 14px; }
  .tc-actions .btn:first-child { flex-basis: 100%; white-space: normal; }
}

/* My page insights */
.insights-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.funnel { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: stretch; }
.funnel-step { background: var(--lavender); border-radius: 14px; padding: 18px 16px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.funnel-step:nth-child(3) { background: #e9e1f4; }
.funnel-step:nth-child(5) { background: #f4e6e8; }
.funnel-icon { font-size: 1.4rem; color: var(--plum); }
.funnel-title { font-weight: 600; }
.big-num { font: 600 2.8rem/1 var(--serif); color: var(--ink); }
.funnel-arrow { align-self: center; color: var(--ink-soft); font-size: 1.3rem; }
@media (max-width: 700px) {
  .funnel { grid-template-columns: 1fr; }
  .funnel-arrow { transform: rotate(90deg); justify-self: center; }
}

/* ---------- referral cards: one shape everywhere ---------- */
.paste-box textarea { width: 100%; }
.paste-box .btn { margin-top: 10px; }
.paste-warnings { margin: 10px 0 0; padding-left: 20px; color: var(--danger-dark); font-size: .92rem; }
.iso-card { min-width: 260px; }
.iso-card.preview { border: 1px dashed var(--lavender-2); border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; }
.iso-label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--plum); margin-bottom: 6px; }
.iso-rows { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; }
.iso-rows > div { display: contents; }
.iso-rows dt { color: var(--ink-soft); font-size: .9rem; }
.iso-rows dd { margin: 0; font-weight: 600; }

/* ---------- the board ---------- */
.qf-count { display: inline-block; min-width: 1.4em; padding: 0 6px; border-radius: 99px; background: var(--lavender); color: var(--plum); font-size: .8rem; text-align: center; }
.board-search { margin-bottom: 18px; }
.post-card h2, .post-card h1 { margin: 6px 0 10px; }
.post-card .iso-rows { margin-bottom: 10px; }
.post-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.kind-tag { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; background: var(--lavender); color: var(--plum); }
.kind-office { background: #e7f0e9; color: var(--ok); }
.kind-training { background: #fbeedd; color: #8a5a1f; }
.kind-hiring { background: #e3ecf6; color: #2f5680; }
.post-body { white-space: pre-line; }
.post-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.report summary { cursor: pointer; }
.report form { margin-top: 8px; display: grid; gap: 6px; max-width: 420px; }
.reply { border-top: 1px solid var(--line); padding: 12px 0; }
.reply p { margin: 4px 0 0; white-space: pre-line; }

/* ---------- digest ---------- */
.digest-pick { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.digest-pick .qf { cursor: pointer; font: inherit; }
.email-preview { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: #fff; }
.email-subject { font-weight: 600; margin-bottom: 12px; }
.email-preview pre { white-space: pre-wrap; font-family: inherit; margin: 0; line-height: 1.55; }

/* ---------- review ---------- */
.report-list { background: #faf3f2; border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.report-list ul { margin: 4px 0 0; padding-left: 18px; }
.review-form { display: grid; gap: 8px; max-width: 560px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- onboarding ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: baseline; }
.checklist li > span:first-child { width: 1.2em; color: var(--plum); font-weight: 700; }
.checklist li.done { color: var(--ink-soft); }
.checklist li.done > span:first-child { color: var(--ok); }

/* ---------- contact form ---------- */
.msg-head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.msg-head h1 { margin: 0 0 6px; }
.crisis { margin: 14px 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy-note { border-left: 4px solid var(--plum); }
.opening-field { grid-column: 1 / -1; margin-top: 6px; max-width: 360px; }
.opening-field input[type=date], #away-until { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }

/* ---------- client requests ---------- */
.wide-narrow { max-width: 760px; }
.place-row { margin-bottom: 4px; }

/* ---------- home page ---------- */
:root { --gold: #a9bfab; --script: "Caveat", "Segoe Print", cursive; }
.nowrap { white-space: nowrap; }

/* public header: logo, four links, search, Log In, Join; a menu button below 900px */
.top.public { background: var(--cream); border-bottom: 0; position: relative; z-index: 30; }
.top.public .top-inner { max-width: 1200px; padding: 16px 28px; flex-wrap: nowrap; }
.top.public .brand { flex-direction: column; align-items: flex-start; gap: 2px; flex: none; }
.top.public .brand-logo { height: 64px; }
.top.public .brand-sub { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; padding-left: 6px; }
.public-menu { flex: 1; display: flex; align-items: center; gap: 20px; }
.public-nav { flex: 1; justify-content: center; gap: 4px; flex-wrap: nowrap; }
.public-nav a { white-space: nowrap; font-size: .98rem; }
.top-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.top-actions .small-btn { padding: 8px 18px; }
.search-link { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink); }
.search-link:hover { background: var(--lavender); }
.search-link svg, .with-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; margin: 0 auto; position: relative; transition: transform .25s, opacity .25s; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle .bars::before { top: -6px; }
.menu-toggle .bars::after { top: 6px; }
.menu-open .menu-toggle .bars { background: transparent; }
.menu-open .menu-toggle .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle .bars::after { transform: translateY(-6px) rotate(-45deg); }

main.home { max-width: none; padding: 0 0 56px; }
.h-inner { max-width: 1200px; margin: 0 auto; padding: 0 28px; position: relative; }
.home h2 { font-size: clamp(2.1rem, 3.6vw, 3rem); font-weight: 700; line-height: 1.04; letter-spacing: -.005em; }
.home .eyebrow { color: var(--accent); font-size: .8rem; }
.h-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.home .big-btn { display: inline-flex; padding: 0 30px; min-height: 54px; font-size: 1.05rem; }
.home .btn span[aria-hidden] { margin-left: 10px; }
.btn.outline-red { color: var(--accent); border: 1.5px solid #b5d0bd; background: rgba(255, 255, 255, .6); }
.btn.outline-red:hover { background: #eef5ef; }
.ic { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ic svg, .demo-side svg, .demo-actions svg, .demo-tiles svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* hero */
.h-hero { position: relative; background: var(--cream); }
.h-spiral { position: absolute; width: 640px; left: 34%; top: 30px; opacity: .22; pointer-events: none; }
.h-hills { position: absolute; left: 0; bottom: 0; width: 100%; height: 240px; object-fit: cover; object-position: bottom; pointer-events: none; }
.h-hero h1 { font-size: clamp(2.7rem, 5vw, 4.4rem); font-weight: 700; line-height: .98; letter-spacing: -.015em; margin: 6px 0 0; }
.h-lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft); max-width: 31em; margin: 0; }
.h-note { position: absolute; top: 6px; right: -6px; margin: 0; font: 1.55rem/1.1 var(--script); color: var(--ink-soft); transform: rotate(-6deg); }

.dot-ok { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }

/* search */
.h-search-wrap { margin-top: 48px; z-index: 3; }
.h-search { background: rgba(255, 255, 255, .96); border: 1px solid #e4e8dd; border-radius: 24px; padding: 34px 36px 26px; box-shadow: 0 24px 60px rgba(42, 47, 85, .1); }
.h-search-head { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: end; margin-bottom: 24px; }
.h-search-head h2 { margin: 0; }
.h-search-head > p { margin: 0; color: var(--ink-soft); }
.h-search-form { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr auto; gap: 12px; align-items: stretch; }
.field { display: flex; flex-direction: column; justify-content: center; gap: 4px; border: 1px solid #dfe3d7; border-radius: 14px; padding: 10px 14px; background: #fff; }
.field:focus-within { border-color: var(--plum); box-shadow: 0 0 0 3px var(--lavender); }
.field .lbl { font-size: .82rem; margin: 0; }
.with-ic { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); }
.field input, .field select { border: 0; padding: 2px 0; background: transparent; width: 100%; max-width: none; font: inherit; font-size: .95rem; color: var(--ink); box-shadow: none; }
.h-search-form .btn { min-height: 60px; padding: 0 26px; white-space: nowrap; font-size: 1.02rem; }
.h-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.h-chips a { padding: 7px 15px; border-radius: 999px; background: #f4eff8; color: var(--ink); font-size: .86rem; font-weight: 600; text-decoration: none; }
.h-chips a:hover { background: var(--lavender-2); }
.h-search-foot { margin: 14px 0 0; }

/* availability */
.h-avail { display: grid; grid-template-columns: .85fr 1.4fr; gap: 56px; align-items: center; margin-top: 100px; margin-bottom: 100px; }
.h-avail p { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.6; }
.h-more summary { color: var(--accent); font-weight: 600; cursor: pointer; list-style: none; }
.h-more summary::-webkit-details-marker { display: none; }
.h-more p { font-size: .98rem; margin-top: 10px; }
.h-flows { display: grid; grid-template-columns: 1fr 60px 1fr; align-items: center; }
.h-flow { border-radius: 20px; padding: 22px 24px; position: relative; }
.h-flow.old { background: #f1eeef; }
.h-flow.new { background: #e6f0e7; box-shadow: 0 16px 36px rgba(47, 96, 68, .1); }
.h-flow-label { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 14px; }
.h-flow.new .h-flow-label { color: var(--accent); }
.h-flow ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.h-flow li { display: flex; align-items: center; gap: 14px; font-size: .9rem; color: #5f5c75; }
.h-flow li small { display: block; font-size: .8rem; }
.h-flow .ic { width: 38px; height: 38px; border-radius: 50%; background: #e6e1e5; color: #5f5c75; }
.h-flow .ic svg { width: 20px; height: 20px; }
.h-flow.new ol { gap: 22px; }
.h-flow.new li { color: var(--ink); font-weight: 600; font-size: 1rem; }
.h-flow.new li small { font-weight: 400; color: var(--ink-soft); }
.h-flow.new .ic { width: 52px; height: 52px; background: #cfe3d4; color: var(--accent); }
.h-flow.new .ic svg { width: 26px; height: 26px; }
.h-flow.new .ic.ok { background: #6f9e7d; color: #fff; }
.h-flow-arrow svg { width: 60px; height: 120px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; }
.h-flow-sprig { position: absolute; right: -36px; bottom: -20px; width: 70px; transform: rotate(18deg); }

/* for therapists */
.h-pros { position: relative; overflow: hidden; padding: 90px 0 130px; background: linear-gradient(180deg, #f4eef7 0%, #eef4ec 100%); }
.h-pros-land { position: absolute; left: 0; bottom: 0; width: 60%; height: 50%; opacity: .85; object-fit: cover; object-position: bottom;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%); mask-image: linear-gradient(180deg, transparent, #000 35%); }
.h-pros-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.h-dash { margin: 0; display: grid; grid-template-columns: 150px 1fr; background: #fff; border-radius: 20px; border: 1px solid #e4e8dd;
  box-shadow: 0 26px 60px rgba(42, 47, 85, .16); overflow: hidden; position: relative; }
.h-dash figcaption { grid-column: 1 / -1; text-align: center; font-size: .78rem; color: var(--ink-soft); padding: 8px; border-top: 1px solid #e6e9df; background: #fafbf7; }
.demo-side { display: flex; flex-direction: column; gap: 4px; padding: 16px 10px; border-right: 1px solid #e6e9df; background: #fafbf7; }
.demo-logo { width: 110px; margin: 0 0 12px 4px; }
.demo-side span { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; font-size: .8rem; color: var(--ink-soft); }
.demo-side span.on { background: var(--lavender); color: var(--ink); font-weight: 600; }
.demo-side svg { width: 16px; height: 16px; }
.demo-main { padding: 20px 22px; }
.demo-hi { font: 700 1.45rem var(--serif); margin: 0; }
.demo-sub { font-size: .82rem; color: var(--ink-soft); margin: 2px 0 14px; }
.demo-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.demo-tiles span { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 6px; border-radius: 12px;
  border: 1px solid #e4e8dd; font-size: .74rem; font-weight: 600; }
.demo-tiles span.ok { background: #eef5ef; border-color: #d8e8dc; }
.demo-tiles b { font: 700 1.5rem var(--serif); color: var(--plum); line-height: 1; }
.demo-tiles .ok b { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--ok); color: #fff; align-items: center; justify-content: center; }
.demo-tiles .ok svg { width: 18px; height: 18px; }
.demo-tiles small { font-weight: 400; color: var(--ink-soft); font-size: .68rem; }
.demo-h { font-weight: 700; font-size: .85rem; margin: 18px 0 10px; }
.demo-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.demo-actions span { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 14px 6px; border-radius: 12px;
  border: 1px solid #e4e8dd; font-size: .74rem; color: var(--ink); }
.demo-actions svg { width: 22px; height: 22px; color: var(--plum); }
.h-pros-copy > p { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.6; }
.h-benefits { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 20px; }
.h-benefits li { display: flex; gap: 16px; align-items: flex-start; color: var(--ink-soft); font-size: .96rem; }
.h-benefits strong { display: block; color: var(--ink); font-size: 1.04rem; margin-bottom: 2px; }
.h-benefits .ic { width: 44px; height: 44px; border-radius: 12px; background: #e6f0e7; color: var(--accent); }

/* trust */
.h-trust { text-align: center; margin-top: 96px; margin-bottom: 80px; }
.h-trust ul { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.h-trust li { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink-soft); font-size: .92rem; line-height: 1.5; }
.h-trust strong { color: var(--ink); font-size: 1.02rem; }
.h-trust .ic { width: 64px; height: 64px; border-radius: 50%; background: #e6f0e7; color: var(--accent); margin-bottom: 6px; }
.h-trust .ic svg { width: 30px; height: 30px; }

/* closing band */
.h-cta { position: relative; overflow: hidden; border-radius: 26px; min-height: 380px; display: flex; align-items: center;
  background: linear-gradient(90deg, #f3eff8 0%, #e6f0e6 100%); }
.h-cta-land { position: absolute; right: 0; top: 0; width: 62%; height: 100%; object-fit: cover; object-position: center bottom;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
.h-cta-copy { position: relative; padding: 48px 52px; max-width: 54%; }
.h-cta-copy p { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }
.h-note.cta { top: auto; bottom: 40px; right: 46px; color: #fff; font-size: 1.7rem; text-shadow: 0 1px 8px rgba(42, 47, 85, .35); }

/* gentle motion: sections rise in as they scroll into view */
html.motion .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s ease; }
html.motion .reveal.in { opacity: 1; transform: none; }

/* tablet */
@media (max-width: 960px) {
  .h-avail, .h-pros-grid { grid-template-columns: 1fr; }
  .h-search-head { grid-template-columns: 1fr; gap: 10px; }
  .h-search-form { grid-template-columns: 1fr 1fr; }
  .h-search-form .field.wide, .h-search-form .btn { grid-column: 1 / -1; }
  .h-avail { gap: 32px; }
  .h-pros-grid { gap: 40px; }
  .h-pros-copy { order: -1; }
  .h-trust ul { grid-template-columns: repeat(3, 1fr); }
  .h-cta-copy { max-width: 60%; }
}

/* phone */
@media (max-width: 600px) {
  .top.public .top-inner { padding: 10px 16px; }
  .top.public .brand-logo { height: 46px; }
  .top.public .brand-sub { display: block; font-size: .56rem; }
  .h-inner { padding: 0 16px; }
  .h-lead { font-size: 1.05rem; }
  .h-actions .big-btn { flex: 1 1 100%; justify-content: center; }
  .h-search-wrap { margin-top: 30px; }
  .h-search { padding: 24px 18px 20px; border-radius: 20px; }
  .h-search-form { grid-template-columns: 1fr; }
  .h-avail { margin: 72px auto; }
  .h-flows { grid-template-columns: 1fr; gap: 14px; }
  .h-flow-arrow { justify-self: center; height: 60px; }
  .h-flow-arrow svg { height: 60px; transform: rotate(-20deg); }
  .h-flow-sprig { display: none; }
  .h-pros { padding: 64px 0 150px; }
  .h-dash { grid-template-columns: 1fr; }
  .demo-side { display: none; }
  .demo-tiles, .demo-actions { grid-template-columns: 1fr 1fr; }
  .h-pros-land { width: 100%; height: 26%; }
  .h-trust ul { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .h-trust li:last-child { grid-column: 1 / -1; }
  .h-cta { flex-direction: column; align-items: stretch; min-height: 0; }
  .h-cta-copy { max-width: none; padding: 32px 22px 200px; }
  .h-cta-land { top: auto; bottom: 0; width: 100%; height: 55%; -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%); mask-image: linear-gradient(180deg, transparent, #000 35%); }
  .h-note.cta { display: none; }
}

/* ---------- pricing page ---------- */
.p-hero { position: relative; overflow: hidden; padding: 56px 0 40px; text-align: center;
  background: radial-gradient(50% 80% at 50% 0%, #efe6f6 0%, transparent 70%), var(--cream); }
.p-hero .h-spiral { left: 50%; transform: translateX(-50%); top: -40px; opacity: .18; }
.p-hero h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 700; line-height: 1; margin: 8px 0 18px; }
.p-hero .h-lead { margin: 0 auto; }
.p-plans { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: stretch; margin-top: 20px; }
.p-plan { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid #e4e8dd; border-radius: 24px; padding: 32px; }
.p-plan.main { border: 2px solid #b5d0bd; box-shadow: 0 24px 60px rgba(47, 96, 68, .1); }
.p-plan h2 { margin: 0; }
.p-plan-for { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0; }
.p-price { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 0; }
.p-price strong { font: 700 3.6rem/1 var(--serif); color: var(--ink); }
.p-price span { color: var(--ink-soft); }
.p-plan-sum { color: var(--ink-soft); margin: 0; }
.p-list { list-style: none; padding: 0; margin: 8px 0 18px; display: grid; gap: 10px; flex: 1; align-content: start; }
.p-list li { display: flex; gap: 10px; align-items: flex-start; }
.p-list li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #e8f1ea; color: var(--ok);
  font-size: .8rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.p-plan .big-btn { align-self: flex-start; }
.p-rules { margin-top: 80px; }
.p-rules ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.p-rules li { background: #fff; border: 1px solid #e4e8dd; border-radius: 18px; padding: 20px 22px; color: var(--ink-soft); }
.p-rules strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }
.p-faq { margin-top: 70px; max-width: 820px; }
.p-faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.p-faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.p-faq details p { color: var(--ink-soft); margin: 10px 0 0; }
.footer-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin: 0 0 10px; }
.footer-links a { color: var(--ink); }
.plan-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.plan-card h2 { margin: 0 0 4px; }
@media (max-width: 760px) {
  .p-plans { grid-template-columns: 1fr; }
  .p-plan { padding: 24px 20px; }
  .p-plan .big-btn { align-self: stretch; justify-content: center; }
}

/* ---------- the signed-in app: sidebar, top bar, tab bar ---------- */
body.app-body { background: var(--cream); }
body { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, #fdfaf3 0%, #f6eff8 100%); border-right: 1px solid var(--line); padding: 22px 14px 0; }
.side-brand { display: block; text-decoration: none; color: var(--ink); padding: 0 8px 18px; }
.side-brand img { width: 170px; height: auto; display: block; }
.side-brand span { display: block; margin: 2px 0 0 6px; font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.side-nav { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 4px; align-items: stretch; }
.side-nav a { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 12px; font-weight: 600; color: var(--ink); text-decoration: none; }
.side-nav a:hover { background: var(--lavender); }
.side-nav a.on { background: #f3e2de; color: var(--ink); }
.side-nav .ico { width: 22px; height: 22px; color: var(--ink-soft); }
.side-nav a.on .ico { color: var(--accent); }
.side-nav .count { margin-left: auto; }
.ico { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.side-art { position: relative; margin-top: auto; height: 250px; margin-left: -14px; margin-right: -14px; pointer-events: none; }
.side-art img { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; object-fit: cover; object-position: bottom left; opacity: .9; }
.side-art p { position: absolute; left: 22px; bottom: 90px; margin: 0; font: 1.35rem/1.1 var(--script); color: var(--ink-soft); transform: rotate(-8deg); }

.app-col { min-width: 0; display: flex; flex-direction: column; overflow-x: clip; }
.app-top { position: relative; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 18px 32px 0; width: 100%; max-width: 1320px; margin: 0 auto; }
.top-logo, .search-only { display: none; }
.app-search { flex: 1; max-width: 480px; margin-right: auto; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 0 18px; height: 46px; color: var(--ink-soft); }
.app-search:focus-within { border-color: var(--plum); box-shadow: 0 0 0 3px var(--lavender); }
.app-search .ico { width: 20px; height: 20px; }
.app-search input { border: 0; padding: 0; background: transparent; font: inherit; width: 100%; max-width: none; box-shadow: none; color: var(--ink); }
.icon-link { position: relative; display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.icon-link:hover { background: var(--lavender); }
.icon-link .ico { width: 22px; height: 22px; }
.dot { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff;
  font: 700 .7rem/18px var(--sans); text-align: center; font-style: normal; }
.avatar-menu > summary { display: flex; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; position: relative; }
.avatar-menu > summary:hover { background: transparent; }
.avatar-menu .avatar { width: 44px; height: 44px; font-size: 1.05rem; }
.avatar-menu .caret { font-size: .8rem; color: var(--ink-soft); }
.app-col main { max-width: 1320px; width: 100%; margin: 0 auto; padding: 14px 32px 56px; }
.app-col main.dash { max-width: 1320px; }
.app-col footer { padding-bottom: 36px; }
.tabbar { display: none; }

/* ---------- the dashboard ---------- */
.dash-head { position: relative; min-height: 170px; padding: 18px 0 10px; margin-bottom: 8px; }
.dash-land { position: absolute; right: -32px; top: -34px; width: 62%; height: 215px; object-fit: cover; object-position: center bottom; opacity: .8; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.dash-spiral { position: absolute; right: 8%; top: -24px; width: 300px; opacity: .55; pointer-events: none; }
.rings { position: absolute; right: 24px; top: 20px; width: 96px; fill: none; pointer-events: none; opacity: .75; }
.rings circle:first-child { stroke: var(--lavender-2); stroke-width: 2; }
.rings circle:last-child { stroke: #e6b4aa; stroke-width: 2; }
.dash-hello { position: relative; max-width: 640px; }
.dash-hello h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 700; line-height: 1.02; margin: 0 0 8px; }
.dash-hello p { font-family: var(--serif); font-size: 1.6rem; color: var(--ink-soft); margin: 0; }
.dash-h { font-size: 1.5rem; margin: 26px 0 12px; }

.dash-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dcard { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #e4e8dd; border-radius: 18px; padding: 18px 16px;
  text-decoration: none; color: var(--ink); box-shadow: 0 10px 28px rgba(42, 47, 85, .06); transition: transform .2s, box-shadow .2s; }
a.dcard:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(42, 47, 85, .12); }
.dcard.locked { opacity: .7; }
.dc-ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 54px; height: 54px; border-radius: 50%; background: #ece5f6; color: var(--plum); }
.dc-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dc-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.dc-label { font-size: .92rem; color: var(--ink-soft); }
.dc-title { font: 700 1.3rem/1.1 var(--serif); }
.dc-num { font: 700 2.5rem/1 var(--serif); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.dc-sub { font-size: .82rem; color: var(--ink-soft); }
.dc-go { color: var(--ink-soft); }
.dc-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dcard.avail { background: linear-gradient(135deg, #fff 40%, #eef5ef 100%); }
.dcard.avail .dc-ic, .avail-panel .dc-ic { background: #d9eadf; color: var(--ok); }
.dcard.refs { background: linear-gradient(135deg, #fff 40%, #fcebe7 100%); }
.dcard.refs .dc-ic { background: #cfe3d4; color: var(--accent); }
.dcard.msgs { background: linear-gradient(135deg, #fff 40%, #efe9f8 100%); }
.dcard.comm { background: linear-gradient(135deg, #fff 40%, #fbf1df 100%); }
.dcard.comm .dc-ic { background: #f3e0b8; color: #a9792a; }
.dcard.avail.waitlist .dc-ic, .avail-panel.waitlist .dc-ic { background: #e2d6f3; color: var(--plum); }
.dcard.avail.away .dc-ic, .avail-panel.away .dc-ic { background: #f3e0b8; color: #a9792a; }
.dcard.avail.lapsed .dc-ic, .avail-panel.lapsed .dc-ic { background: #f9dfc9; color: #94491f; }
.dcard.avail.closed .dc-ic, .avail-panel.closed .dc-ic, .dcard.avail.pending .dc-ic, .avail-panel.pending .dc-ic { background: #ebe6ef; color: var(--ink-soft); }
.dcard.avail.lapsed .dc-title { color: #94491f; }

.qactions { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.qa { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #e4e8dd; border-radius: 18px; padding: 16px 18px;
  text-decoration: none; color: var(--ink); box-shadow: 0 8px 22px rgba(42, 47, 85, .05); }
.qa:hover { box-shadow: 0 14px 30px rgba(42, 47, 85, .12); }
.qa-ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 50px; height: 50px; border-radius: 50%; background: #ece5f6; color: var(--plum); }
.qa-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.qa.refer .qa-ic { background: #cfe3d4; color: var(--accent); }
.qa.post .qa-ic { background: #f3e0b8; color: #a9792a; }
.qa strong { display: block; font-size: 1rem; }
.qa small { color: var(--ink-soft); font-size: .84rem; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; margin-top: 26px; }
.dash-grid .card { margin-bottom: 0; }
.dash-side { display: grid; gap: 18px; }
.feed { position: relative; padding: 24px 26px; }
.feed h2 { font-size: 1.6rem; margin-bottom: 12px; }
.feed-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.feed-chips button { font: 600 .85rem var(--sans); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.feed-chips button.on { background: var(--lavender); border-color: var(--lavender-2); color: var(--plum); }
.feed-list { list-style: none; margin: 0; padding: 0; }
.feed-list li[hidden] { display: none; }
.feed-list a { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto 18px; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid #e6e9df; text-decoration: none; color: var(--ink); }
.feed-list a:hover .fi-body strong { text-decoration: underline; }
.fi { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #ece5f6; color: var(--plum); }
.fi svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fi.referral { background: #cfe3d4; color: var(--accent); }
.fi.commons { background: #f3e0b8; color: #a9792a; }
.fi.reminder { background: #d9eadf; color: var(--ok); }
.fi-body { min-width: 0; }
.fi-body strong { display: block; }
.fi-body small { display: block; color: var(--ink-soft); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fi-when { font-size: .8rem; color: var(--ink-soft); white-space: nowrap; }
.fi-go svg { width: 16px; height: 16px; fill: none; stroke: var(--ink-soft); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.unread-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: 8px; vertical-align: middle; }

.pcard { padding: 22px 22px 18px; }
.pc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.pc-head h2 { font-size: 1.45rem; margin: 0; }
.pc-head a, .pc-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.pc-link { display: inline-block; margin-top: 14px; }
.pc-status { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.pc-status strong { display: block; font: 700 1.2rem var(--serif); color: var(--ok); }
.avail-panel.waitlist .pc-status strong { color: var(--plum); }
.avail-panel.closed .pc-status strong, .avail-panel.pending .pc-status strong { color: var(--ink); }
.avail-panel.lapsed .pc-status strong { color: #94491f; }
.pc-status p { margin: 2px 0 0; font-size: .9rem; color: var(--ink-soft); }
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 16px; padding: 12px 0; border-top: 1px solid #e6e9df; border-bottom: 1px solid #e6e9df; }
.dates dt { font-size: .8rem; color: var(--ink-soft); }
.dates dd { margin: 2px 0 0; font-weight: 700; }
.avail-panel .big-btn { width: 100%; }
.quick-status { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.qs-label { font-size: .8rem; color: var(--ink-soft); width: 100%; }
.quick-status button, .quick-status a { flex: 1; text-align: center; font: 600 .86rem var(--sans); padding: 8px 6px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; }
.quick-status .on { background: var(--lavender); border-color: var(--lavender-2); color: var(--plum); }
.pc-profile { display: flex; gap: 14px; align-items: center; }
.pc-profile .avatar { width: 76px; height: 76px; font-size: 1.7rem; }
.pc-profile strong { display: block; }
.pc-profile small { color: var(--ink-soft); }
.pc-tags { margin: 8px 0 0; }
.meter { height: 8px; border-radius: 999px; background: #ece5f6; margin-top: 16px; overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #6f9e7d, #8fbf9d); }
.meter-note { margin: 6px 0 0; font-size: .85rem; color: var(--ink-soft); text-align: right; }
.todo { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.todo li::before { content: "○"; color: var(--plum); margin-right: 8px; }
.todo a { color: var(--plum); font-weight: 600; }

/* Messages */
.msg { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 0; border-top: 1px solid #e6e9df; text-decoration: none; color: var(--ink); }
.card > .msg:first-child { border-top: 0; }
.msg:hover .msg-text { text-decoration: underline; }
.msg-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; background: transparent; }
.msg.unread .msg-dot { background: var(--accent); }
.msg.unread strong { font-weight: 700; }
.msg-body strong { display: block; }
.msg-body small { display: block; color: var(--ink-soft); }
.msg-text { display: block; margin-top: 4px; }

/* tablet */
@media (max-width: 1180px) {
  .dash-cards { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-spiral { display: none; }
}

/* phone and small tablet: the sidebar becomes a tab bar */
@media (max-width: 860px) {
  .app { display: block; }
  .side { display: none; }
  .app-top { padding: 10px 16px 0; gap: 8px; }
  .top-logo { display: block; margin-right: auto; }
  .top-logo img { height: 44px; width: auto; display: block; }
  .app-search { display: none; }
  .search-only { display: inline-flex; }
  .icon-link { width: 42px; height: 42px; }
  .app-col main { padding: 10px 16px 96px; }
  .app-col footer { padding-bottom: 96px; }
  .dash-head { min-height: 0; padding: 8px 0 4px; }
  .dash-land { opacity: .55; right: -60px; top: -20px; width: 70%; height: 150px; }
  .dash-hello h1 { font-size: 2.2rem; }
  .dash-hello p { font-size: 1.25rem; }
  .dash-cards { grid-template-columns: 1fr; gap: 10px; }
  .dcard { padding: 12px 14px; border-radius: 16px; }
  .dc-ic { width: 46px; height: 46px; }
  .dc-ic svg { width: 22px; height: 22px; }
  .dc-body { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
  .dc-label { grid-column: 2; grid-row: 1; font-size: .95rem; color: var(--ink); }
  .dc-num { grid-column: 1; grid-row: 1 / span 2; font-size: 2rem; }
  .dc-sub { grid-column: 2; grid-row: 2; }
  .dcard.avail .dc-body { display: flex; align-items: flex-start; text-align: left; }
  .dcard.avail .dc-label { font-size: .85rem; color: var(--ink-soft); order: -1; }
  .dash-h { font-size: 1.3rem; margin: 20px 0 10px; }
  .qactions { grid-template-columns: repeat(4, 1fr); gap: 8px; grid-auto-flow: column; grid-auto-columns: 1fr; }
  .qa { flex-direction: column; text-align: center; gap: 6px; padding: 12px 4px; border-radius: 14px; }
  .qa small { display: none; }
  .qa strong { font-size: .75rem; line-height: 1.15; font-weight: 600; }
  .qa-ic { width: 42px; height: 42px; }
  .dash-grid { margin-top: 20px; gap: 16px; }
  .feed { padding: 18px 16px; }
  .feed-list a { grid-template-columns: 40px minmax(0, 1fr) 16px; gap: 12px; }
  .feed-list .fi-when { grid-column: 2; grid-row: 2; font-size: .76rem; }
  .feed-list .fi-go { grid-column: 3; grid-row: 1 / span 2; }
  .fi { width: 40px; height: 40px; }
  .fi-body small { white-space: normal; }
  .pcard { padding: 18px 16px; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(42, 47, 85, .08); }
  .tabbar a, .tabbar summary { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border: 0; border-radius: 12px;
    background: transparent; color: var(--ink-soft); font-size: .72rem; font-weight: 600; text-decoration: none; list-style: none; cursor: pointer; }
  .tabbar a.on, .tabbar summary.on { color: var(--accent); background: transparent; }
  .tabbar .ico { width: 24px; height: 24px; }
  .tabbar .dot { top: 0; right: calc(50% - 22px); }
  .tabbar .more { position: relative; }
  .tabbar .more > summary::-webkit-details-marker { display: none; }
  .tabbar .more .menu-list { top: auto; bottom: calc(100% + 10px); right: 4px; left: auto; min-width: 210px; }
  .tabbar .menu-list a { display: block; padding: 10px 12px; border-radius: 10px; font-size: 1rem; font-weight: 400; color: var(--ink); text-align: left; }
  .tabbar .menu-list a:hover { background: var(--lavender); }
}

/* The serif's default numerals are old-style (a 1 looks like a small I). Use lining figures
   wherever a number is shown big, because the font shorthand resets the body setting. */
.big-num, .stat-big, .p-price strong, .dc-title, .demo-hi, .demo-tiles b, .hcard-initials { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }

/* ---------- the public directory ---------- */
.dirpage { padding-bottom: 64px; }
.d-hero { position: relative; padding: 34px 0 40px;
  background: radial-gradient(60% 80% at 90% 10%, #efe9f6 0%, transparent 70%), radial-gradient(45% 70% at 0% 70%, #eaf2ea 0%, transparent 70%), var(--cream); }
.d-hero-top { display: grid; grid-template-columns: 1fr minmax(0, 500px); gap: 48px; align-items: center; margin-bottom: 26px; }
.d-hero .h-inner { position: relative; }
.d-hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); font-weight: 700; line-height: 1; letter-spacing: -.01em; margin: 6px 0 12px; }
.d-sub { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.75rem); color: var(--ink-soft); margin: 0; }
.d-search { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr auto; gap: 12px; align-items: stretch; background: rgba(255, 255, 255, .96);
  border: 1px solid #e4e8dd; border-radius: 22px; padding: 14px; box-shadow: 0 22px 54px rgba(42, 47, 85, .12); }
.d-search .btn { min-height: 60px; padding: 0 26px; white-space: nowrap; font-size: 1.02rem; }
.d-warn { margin: 10px 4px 0; color: var(--danger-dark); font-weight: 600; }
.d-chips { margin-top: 16px; }
.d-reading { flex-basis: 100%; margin: 4px 0 0; font-size: .95rem; }
.d-reading b { font-weight: 600; }
.d-crisis { flex-basis: 100%; margin: 8px 0; padding: 14px 16px; border-radius: 12px;
            background: #fff4ef; border: 1px solid #e7b9a6; color: var(--ink); }
.d-crisis p { margin: 0 0 6px; }
.d-crisis p:last-child { margin: 0; }
.d-crisis a { font-weight: 600; }
.d-reading .muted { display: block; font-size: .85rem; }
.h-chips a.on { background: var(--ink); color: #fff; }
.h-chips .more-link { background: transparent; border: 1px solid var(--lavender-2); }
.h-chips .chip-x { margin-left: 6px; font-weight: 400; opacity: .8; }
.h-chips .chips-clear { background: transparent; text-decoration: underline; padding-left: 4px; padding-right: 4px; }

.d-sticky, .d-float { display: none; }
.d-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: -48px; position: relative; }

/* filters: a sidebar on desktop */
.d-filters { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border: 1px solid #e4e8dd; border-radius: 20px;
  box-shadow: 0 14px 40px rgba(42, 47, 85, .08); }
.sheet-backdrop, .sheet-close, .sheet-grab { display: none; }
.sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 20px 6px; }
.sheet-head h2 { margin: 0; font-size: 1.5rem; }
.sheet-head .clear { color: var(--accent); font-weight: 600; font-size: .9rem; margin-left: auto; }
.sheet-body { padding: 0 20px 6px; }
.sheet-foot { padding: 8px 20px 18px; }
.sheet-foot .btn { width: 100%; background: transparent; color: var(--ink); border: 1px solid var(--line); min-height: 44px; }
.sheet-foot .btn:hover { background: var(--lavender); }
.fs { border-top: 1px solid #e6e9df; padding: 12px 0; }
.fs > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; padding: 2px 0 6px; }
.fs > summary::-webkit-details-marker { display: none; }
.fs > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.fs[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.fs .lbl { font-size: .85rem; margin: 8px 0 4px; }
.fs select { width: 100%; max-width: none; }
.fs .hint { font-size: .8rem; margin: 8px 0 0; }
.chk { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; font-size: .95rem; }
.chk:hover span { color: var(--plum); }
.chk input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; margin: 0; }
.chk span { display: inline-flex; align-items: center; gap: 8px; }
.sd { width: 9px; height: 9px; border-radius: 50%; background: #9a93a8; display: inline-block; }
.sd.accepting { background: #3f8a5c; } .sd.waitlist { background: #8a74c0; } .sd.unconfirmed { background: #c9922f; }
.fs .more { margin-top: 4px; }
.fs .more > summary { cursor: pointer; color: var(--plum); font-weight: 600; font-size: .9rem; padding: 4px 0; }
/* counts, the number chosen, and Clear in each section */
.fs-c { margin-left: auto; color: var(--ink-soft); font-size: .8rem; font-variant-numeric: tabular-nums; }
.chk .fs-c { padding-left: 8px; }
.fs-n { margin: 0 auto 0 8px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .75rem; display: inline-grid; place-items: center; }
.fs-clear { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--plum); margin: 0 0 4px; }
.fs-links { list-style: none; margin: 0; padding: 0; }
.fs-links a { display: flex; gap: 8px; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.fs-links a:hover { background: #f4eff8; }
.fs-links a.on { background: var(--ink); color: #fff; }
.fs-links a.on .fs-c { color: #fff; opacity: .8; }
.fs-sub { font-size: .8rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; margin: 10px 0 2px; }
.pe-about-note { background: #f4eff8; border-radius: 10px; padding: 12px 14px; font-size: .92rem; margin: 0 0 14px; }
/* the Popular row */
.fs-pop { padding: 4px 0 14px; }
.fs-pop h3 { font-size: .95rem; margin: 0 0 8px; }
.pop-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pop-chips a { padding: 6px 12px; border-radius: 999px; background: #f4eff8; color: var(--ink); font-size: .85rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.pop-chips a:hover { background: var(--lavender-2); }
.pop-chips a.on { background: var(--ink); color: #fff; }
.pop-chips .fs-c { margin: 0; font-weight: 400; }
.pop-chips a.on .fs-c { color: #fff; opacity: .8; }
.pop-chips .chip-x { font-weight: 400; opacity: .8; }
.range { display: grid; gap: 6px; }
.range input[type=range] { width: 100%; accent-color: var(--accent); }
.range output { font-weight: 700; font-size: .92rem; }
.rank-note { background: #f4eff8; border-radius: 16px; padding: 14px 16px; margin: 6px 0 14px; font-size: .86rem; color: var(--ink-soft); }
.rank-note h3 { display: flex; align-items: center; gap: 8px; font: 700 .95rem var(--sans); color: var(--ink); margin: 0 0 8px; }
.rank-note h3 .ico { width: 18px; height: 18px; }
.rank-note ul { margin: 0 0 8px; padding-left: 18px; display: grid; gap: 4px; }
.rank-note p { margin: 0; }

/* results */
.d-results { min-width: 0; padding-top: 52px; }
.d-results-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 12px; }
.d-results-head h2 { margin: 0 auto 0 0; font-size: 1.7rem; }
.rank-pop { position: relative; }
.rank-pop > summary { cursor: pointer; color: var(--plum); font-weight: 600; font-size: .92rem; list-style: none; }
.rank-pop > summary::-webkit-details-marker { display: none; }
.rank-pop > div { position: absolute; right: 0; top: calc(100% + 8px); z-index: 12; width: 340px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px rgba(42, 47, 85, .16); }
.rank-pop .rank-note { margin: 0; }
.d-results .view-switch a { display: inline-flex; align-items: center; gap: 6px; }
.d-results .view-switch .ico { width: 16px; height: 16px; }
.d-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.d-sort-q { font-weight: 700; color: var(--plum); margin-right: 4px; }
.d-sort a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: .9rem; font-weight: 600; text-decoration: none; }
.d-sort a:hover { background: var(--lavender); }
.d-sort a.on { background: var(--lavender); border-color: var(--lavender-2); color: var(--plum); }
.d-active { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.d-active a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--lavender-2); color: var(--ink); font-size: .85rem; font-weight: 600; text-decoration: none; }
.d-active a:hover { background: var(--lavender); }
.d-active .ico { width: 13px; height: 13px; color: var(--ink-soft); }
.d-active .clear-li a { border: 0; background: transparent; color: var(--accent); }
.d-legend { margin: 0 0 16px; font-size: .86rem; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.vcheck { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 18px; height: 18px; margin-left: 8px; border-radius: 50%; background: #3b6fb6; color: #fff; font-size: .68rem; font-weight: 700; vertical-align: 3px; }
.d-legend .vcheck, .rank-note .vcheck { margin-left: 0; vertical-align: 0; }

/* the therapist card */
.d-cards { display: grid; gap: 18px; }
.tc { display: grid; grid-template-columns: 200px minmax(0, 1fr) 236px; gap: 24px; align-items: start; background: #fff; border: 1px solid #e4e8dd; border-radius: 22px;
  padding: 18px; box-shadow: 0 10px 30px rgba(42, 47, 85, .06); transition: transform .2s, box-shadow .2s, border-color .2s; }
.tc:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(42, 47, 85, .13); border-color: var(--lavender-2); }
.tc .tc-photo { display: block; }
.tc .avatar.portrait { width: 200px; height: 240px; border-radius: 16px; object-fit: cover; font-size: 3.6rem; }
.tc .tc-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 8px; }
.sp { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.sp i { width: 8px; height: 8px; border-radius: 50%; }
.sp.ok { background: #e6f1e9; color: #2f6b46; } .sp.ok i { background: #3f8a5c; }
.sp.wait { background: #ece5f6; color: #4b3a78; } .sp.wait i { background: #8a74c0; }
.sp.unc { background: #fbf0dc; color: #8a5d12; } .sp.unc i { background: #c9922f; }
.sp.full { background: #efeaee; color: #5b5f7e; } .sp.full i { background: #9a93a8; }
.tc-conf { font-size: .8rem; color: var(--ink-soft); }
.tc h2 { margin: 0; font-size: 1.75rem; line-height: 1.1; }
.tc h2 a { color: var(--ink); text-decoration: none; }
.tc h2 a:hover { color: var(--plum); text-decoration: underline; }
.tc h2 .cred { font: 400 1rem var(--sans); color: var(--ink-soft); }
.tc-headline { font-family: var(--serif); font-size: 1.2rem; color: var(--plum); margin: 6px 0 10px; line-height: 1.25; }
.tc-meta { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.tc-meta li { display: flex; align-items: flex-start; gap: 10px; font-size: .93rem; color: var(--ink); }
.tc-meta .ico { width: 18px; height: 18px; margin-top: 2px; color: var(--ink-soft); }
.tc-meta .pill { font-style: normal; font-size: .75rem; margin: 0 0 0 4px; }
.tc .tc-tags { margin: 0; }
.tc .tc-actions { display: flex; flex-direction: column; gap: 10px; }
.tc .tc-actions .btn { width: 100%; justify-content: center; }
.tc-book { text-align: center; font-size: .88rem; color: var(--plum); font-weight: 600; }
.tc.full .tc-photo, .tc.away .tc-photo { opacity: .85; }
.tc.compact { grid-template-columns: 76px minmax(0, 1fr); gap: 10px 14px; padding: 14px; border-radius: 18px; }
.tc.compact .avatar.portrait { width: 76px; height: 76px; border-radius: 14px; font-size: 1.6rem; }
.tc.compact h2 { font-size: 1.25rem; }
.tc.compact .tc-headline, .tc.compact .tc-tags, .tc.compact .tc-meta li:nth-child(n+3) { display: none; }
.tc.compact .tc-actions { grid-column: 1 / -1; flex-direction: row; }
.tc.compact .tc-actions .btn { min-height: 42px; font-size: .9rem; padding: 0 12px; }
.tc.compact .tc-book { display: none; }
.d-maplayout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.d-maplist { display: grid; gap: 14px; }

/* empty and loading */
.d-empty { position: relative; overflow: hidden; text-align: center; background: #fff; border: 1px solid #e4e8dd; border-radius: 24px; padding: 48px 28px 36px; }
.d-empty > img { position: absolute; left: 50%; top: -90px; width: 420px; transform: translateX(-50%); opacity: .6; pointer-events: none; }
.d-empty > * { position: relative; }
.d-empty h2 { font-size: 2rem; margin-bottom: 8px; }
.d-empty .h-actions { justify-content: center; }
.d-sug { list-style: none; max-width: 520px; margin: 14px auto 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.d-sug a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--lavender-2); border-radius: 14px; background: #faf7fd; color: var(--ink); font-weight: 600; text-decoration: none; }
.d-sug a:hover { background: var(--lavender); }
.d-sug span { color: var(--plum); font-size: .85rem; }
.d-skeleton { display: none; }
.d-results.loading .d-cards { display: none; }
.d-results.loading .d-skeleton { display: grid; gap: 18px; }
.tc-skel { display: grid; grid-template-columns: 200px 1fr; gap: 24px; background: #fff; border: 1px solid #e4e8dd; border-radius: 22px; padding: 18px; }
.sk-photo, .sk-lines i { display: block; border-radius: 14px; background: linear-gradient(90deg, #efe9f4 25%, #f8f4fb 37%, #efe9f4 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
.sk-photo { height: 240px; }
.sk-lines { display: grid; gap: 12px; align-content: start; padding-top: 6px; }
.sk-lines i { height: 16px; } .sk-lines i:nth-child(1) { width: 40%; height: 22px; } .sk-lines i:nth-child(2) { width: 70%; } .sk-lines i:nth-child(3) { width: 55%; } .sk-lines i:nth-child(4) { width: 80%; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .sk-photo, .sk-lines i { animation: none; } .tc { transition: none; } .tc:hover { transform: none; } }

/* tablet and phone: filters become a bottom sheet, with a sticky search bar and a thumb-reach pill */
@media (max-width: 1000px) {
  .d-search { grid-template-columns: 1fr 1fr; }
  .d-search .field.wide, .d-search .btn { grid-column: 1 / -1; }
  .d-layout { display: block; margin-top: -40px; }
  .d-results { padding-top: 14px; }
  .d-sticky { display: flex; gap: 10px; position: sticky; top: 0; z-index: 35; padding: 10px 16px; background: rgba(253, 250, 243, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
  .d-sticky-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); text-decoration: none; }
  .d-sticky-search span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .d-sticky .ico, .d-float .ico { width: 20px; height: 20px; }
  .d-filter-btn, .d-view-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 999px; font-weight: 700; color: var(--ink); text-decoration: none; }
  .d-sticky .d-filter-btn { background: var(--ink); color: #fff; }
  .d-filter-btn b { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .75rem; }
  .d-float { display: flex; position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 34; gap: 4px; padding: 5px;
    background: var(--ink); border-radius: 999px; box-shadow: 0 14px 34px rgba(42, 47, 85, .35); }
  .d-float .d-filter-btn, .d-float .d-view-btn { color: #fff; height: 48px; }
  .d-float .d-view-btn { background: rgba(255, 255, 255, .14); }
  #filters:target ~ .d-float { display: none; }
  .d-filters { position: fixed; inset: 0; z-index: 60; max-height: none; overflow: visible; background: transparent; border: 0; border-radius: 0; box-shadow: none;
    visibility: hidden; opacity: 0; transition: opacity .25s ease, visibility .25s; }
  .d-filters:target { visibility: visible; opacity: 1; }
  .sheet-backdrop { display: block; position: absolute; inset: 0; background: rgba(42, 47, 85, .5); }
  .sheet { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; max-height: 88vh; background: #fff; border-radius: 26px 26px 0 0;
    box-shadow: 0 -20px 50px rgba(42, 47, 85, .25); transform: translateY(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
  .d-filters:target .sheet { transform: none; }
  .sheet-grab { display: block; width: 44px; height: 5px; border-radius: 999px; background: #d9d2e3; margin: 10px auto 0; }
  .sheet-head { padding: 12px 20px 8px; }
  .sheet-head h2 { margin-right: auto; }
  .sheet-head .clear { margin-left: 0; }
  .sheet-close { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: var(--lavender); color: var(--ink); }
  .sheet-close .ico { width: 20px; height: 20px; }
  .sheet-body { overflow-y: auto; padding-bottom: 12px; -webkit-overflow-scrolling: touch; }
  .sheet-foot { padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid #e6e9df; background: #fff; }
  .sheet-foot .btn { background: var(--accent); color: #fff; border: 0; min-height: 54px; font-size: 1.05rem; }
  .sheet-foot .btn:hover { background: var(--accent-dark); }
  .chk { padding: 9px 0; }
  .rank-pop > div { right: auto; left: 0; width: min(340px, 86vw); }
  .tc { grid-template-columns: 170px minmax(0, 1fr); }
  .tc .avatar.portrait { width: 170px; height: 210px; }
  .tc .tc-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .tc .tc-actions .btn { flex: 1 1 200px; }
  .tc .tc-book { flex: 1 1 100%; }
  .tc-skel { grid-template-columns: 170px 1fr; }
  .sk-photo { height: 210px; }
  .d-maplayout { grid-template-columns: 1fr; }
  .d-maplayout .map-wrap { position: static; order: -1; }
  .dirpage { padding-bottom: 110px; }
}
@media (max-width: 640px) {
  .d-hero { padding: 24px 0 90px; }
  .d-hero h1 { font-size: 2.5rem; }
  .d-search { grid-template-columns: 1fr; padding: 12px; }
  .d-results-head h2 { font-size: 1.4rem; }
  .tc { grid-template-columns: 1fr; padding: 0 0 16px; overflow: hidden; gap: 14px; }
  .tc .tc-photo { margin: 0; }
  .tc .avatar.portrait { width: 100%; height: 250px; border-radius: 22px 22px 0 0; }
  .tc .tc-body, .tc .tc-actions { padding: 0 16px; }
  .tc .tc-actions { flex-direction: column; }
  .tc .tc-actions .btn { flex: none; min-height: 54px; }
  .tc.compact { grid-template-columns: 76px minmax(0, 1fr); padding: 14px; }
  .tc.compact .avatar.portrait { height: 76px; border-radius: 14px; }
  .tc.compact .tc-body, .tc.compact .tc-actions { padding: 0; }
  .tc.compact .tc-actions { flex-direction: row; }
  .tc-skel { grid-template-columns: 1fr; }
  .sk-photo { height: 200px; }
  .d-empty { padding: 36px 18px 28px; }
  .d-empty h2 { font-size: 1.6rem; }
}

/* ---------- the public therapist profile ---------- */
.profile-page { padding-bottom: 56px; }
.pf-preview { max-width: 1100px; margin: 12px auto 0; padding: 12px 18px; border-radius: 12px;
  background: var(--lavender); border: 1px solid var(--lavender-2); color: var(--ink, #2c2540); font-size: 15px; }
.pf-preview a { font-weight: 600; margin-left: 4px; }
@media (max-width: 1140px) { .pf-preview { margin: 12px 16px 0; } }
.pf-hero { position: relative; overflow: hidden; padding: 24px 0 64px;
  background: radial-gradient(55% 70% at 88% 25%, #eee3f6 0%, transparent 70%), radial-gradient(40% 55% at 0% 90%, #f6ecee 0%, transparent 70%), var(--cream); }
.pf-land { position: absolute; right: 0; top: 0; width: 54%; height: 100%; object-fit: cover; object-position: right bottom; opacity: .6; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.pf-sprig { position: absolute; left: 6px; top: 150px; width: 96px; transform: rotate(-18deg); opacity: .85; pointer-events: none; }
.pf-note { right: 5%; top: 22px; }
.pf-hero .h-inner { position: relative; }
.pf-crumbs { display: flex; gap: 10px; align-items: center; font-size: .88rem; color: var(--ink-soft); margin-bottom: 22px; }
.pf-crumbs a { color: var(--plum); font-weight: 600; }
.pf-hero-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 44px; align-items: center; }
.pf-portrait { width: 300px; height: 380px; border-radius: 28px; overflow: hidden; background: #efe6f6;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold), 0 28px 60px rgba(42, 47, 85, .2); }
.pf-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-monogram { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font: 700 6.4rem var(--serif); color: var(--plum); letter-spacing: .02em;
  background: radial-gradient(circle at 30% 25%, #f6ecf8 0%, #e3d4f0 55%, #d3bfe8 100%); }
.pf-intro h1 { font-size: clamp(2.5rem, 4.8vw, 4rem); font-weight: 700; line-height: 1; letter-spacing: -.01em; margin: 0 0 10px; }
.pf-cred { font-weight: 700; }
.vcheck.big { width: 30px; height: 30px; font-size: .95rem; margin-left: 12px; vertical-align: 12px; text-decoration: none; }
.pf-title { font-size: 1.2rem; font-weight: 600; margin: 0 0 2px; }
.pf-where { color: var(--ink-soft); margin: 0 0 14px; }
.pf-headline { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.95rem); line-height: 1.22; color: var(--plum); max-width: 24em; margin: 0 0 14px; }
.pf-fine { font-size: .86rem; color: var(--ink-soft); margin: 6px 0 0; }
.pf-fine a { color: var(--plum); }
.pf-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.pf-formats { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.pf-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .85); border: 1px solid var(--lavender-2); font-size: .86rem; font-weight: 600; }
.pf-pill .ico { width: 16px; height: 16px; color: var(--plum); }
.pf-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.pf-ctas .btn { padding: 0 28px; }
.pf-ctas .btn .ico { width: 20px; height: 20px; margin-right: 8px; }
.pf-share { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--lavender-2); border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--ink); font: 600 .95rem var(--sans); cursor: pointer; padding: 11px 18px; }
.pf-share:hover { color: var(--plum); }
.pf-share .ico { width: 20px; height: 20px; }

.pf-tabs { display: block; position: sticky; top: 0; z-index: 25; background: rgba(253, 250, 243, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.pf-tabs .h-inner { display: flex; gap: 30px; overflow-x: auto; scrollbar-width: none; }
.pf-tabs .h-inner::-webkit-scrollbar { display: none; }
.pf-tabs a { flex: none; padding: 15px 0; color: var(--ink-soft); font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; }
.pf-tabs a:hover { color: var(--ink); border-bottom-color: var(--lavender-2); }

.pf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px 26px; align-items: start; margin-top: 28px; }
.pf-layout > .pf-card { grid-column: 1; }
.pf-layout > .pf-side { grid-column: 2; grid-row: 1 / span 5; display: grid; gap: 22px; align-content: start; }
.pf-card { background: #fff; border: 1px solid #e4e8dd; border-radius: 24px; padding: 30px 32px; box-shadow: 0 10px 30px rgba(42, 47, 85, .05); scroll-margin-top: 70px; margin: 0; }
.pf-card h2 { font-size: 2rem; margin: 0 0 8px; }
.pf-card > .muted { margin: 0 0 18px; }
.pf-about p { line-height: 1.75; font-size: 1.04rem; }
.pf-about p.lead { font-family: var(--serif); font-size: 1.45rem; line-height: 1.45; color: var(--ink); margin-top: 14px; }
.pf-sub { margin-top: 22px; padding-top: 18px; border-top: 1px solid #e6e9df; }
.pf-sub.first { margin-top: 0; padding-top: 0; border: 0; }
.pf-sub h3 { font-size: 1.45rem; margin: 0 0 6px; }
.pf-sub p { line-height: 1.7; }
.pf-sub p.lead { font-family: var(--serif); font-size: 1.3rem; }

.pf-specs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.pf-specs li { position: relative; display: grid; align-content: start; gap: 6px; padding: 18px 18px 22px; min-height: 130px; border: 1px solid #e4e8dd; border-radius: 18px; overflow: hidden;
  background: #faf7fd; }
@media (min-width: 701px) { .pf-specs { grid-template-columns: repeat(3, 1fr); } .pf-specs.folded > li:nth-child(n+7) { display: none; } }
@media (max-width: 700px) { .pf-specs.folded > li:nth-child(n+5) { display: none; } }
.pf-more { margin-top: 14px; }
/* the scenes a therapist can pick for their header: a matching tint behind the drawing */
.pf-hero.scene-rainbow { background: radial-gradient(55% 70% at 88% 25%, #f3ecfa 0%, transparent 70%), radial-gradient(40% 55% at 0% 90%, #eef4fb 0%, transparent 70%), var(--cream); }
.pf-hero.scene-cultures { background: radial-gradient(55% 70% at 88% 25%, #f8e6d2 0%, transparent 70%), radial-gradient(40% 55% at 0% 90%, #e9f1ef 0%, transparent 70%), var(--cream); }
.pf-hero.scene-blue { background: radial-gradient(55% 70% at 88% 25%, #e3edf8 0%, transparent 70%), radial-gradient(40% 55% at 0% 90%, #edf2f8 0%, transparent 70%), var(--cream); }
.pf-hero.scene-green { background: radial-gradient(55% 70% at 88% 25%, #e6f0e1 0%, transparent 70%), radial-gradient(40% 55% at 0% 90%, #f0f4ea 0%, transparent 70%), var(--cream); }
.pf-hero.scene-pink { background: radial-gradient(55% 70% at 88% 25%, #fae3ea 0%, transparent 70%), radial-gradient(40% 55% at 0% 90%, #f9ecef 0%, transparent 70%), var(--cream); }
.pf-hero.scene-winter { background: radial-gradient(55% 70% at 88% 25%, #e8eef6 0%, transparent 70%), radial-gradient(40% 55% at 0% 90%, #eef2f7 0%, transparent 70%), var(--cream); }
.pf-hero.scene-summer { background: radial-gradient(55% 70% at 88% 25%, #fcefcf 0%, transparent 70%), radial-gradient(40% 55% at 0% 90%, #eef5e6 0%, transparent 70%), var(--cream); }
.pe-scenes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 10px 0; }
.pe-scene { position: relative; display: grid; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff; }
.pe-scene input { position: absolute; opacity: 0; }
.pe-scene img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: right bottom; border-radius: 10px; background: #f7f3ee; }
.pe-scene span { font-weight: 600; font-size: .92rem; }
.pe-scene small { display: block; font-weight: 400; color: var(--ink-soft); }
.pe-scene:has(input:checked) { border-color: var(--plum); box-shadow: 0 0 0 2px var(--plum) inset; }
.pe-scene:has(input:focus-visible) { outline: 2px solid var(--plum); outline-offset: 2px; }
.pf-specs li.top { border-color: #e6d3a3; background-color: #fdf8ec; }
.pf-specs strong { font: 700 1.3rem/1.15 var(--serif); }
.pf-specs span:not(.pf-top) { font-size: .88rem; color: var(--ink-soft); line-height: 1.45; max-width: 84%; }
.pf-top { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7d5a14; }

.pf-approaches { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.pf-approaches details, .pf-approaches .plain { display: block; border: 1px solid #e4e8dd; border-radius: 14px; background: #fff; }
.pf-approaches summary, .pf-approaches .plain { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; font-weight: 600; list-style: none; }
.pf-approaches .plain { cursor: default; }
.pf-approaches summary::-webkit-details-marker { display: none; }
.pf-approaches summary:hover { color: var(--plum); }
.pf-approaches details[open] { background: #faf7fd; border-color: var(--lavender-2); }
.pf-approaches details p { margin: 0; padding: 0 16px 14px 52px; font-size: .9rem; color: var(--ink-soft); line-height: 1.5; }
.tick { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #e8f1ea; color: var(--ok); font-size: .72rem; font-weight: 700; }

.pf-practical dl, .pf-bg { margin: 8px 0 0; }
.pf-practical dl > div, .pf-bg > div { padding: 14px 0; border-top: 1px solid #e6e9df; }
.pf-practical dl > div:first-child { border-top: 0; }
.pf-practical dt, .pf-bg dt { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem; margin-bottom: 4px; }
.pf-practical dt .ico, .pf-bg dt .ico { width: 20px; height: 20px; color: var(--plum); }
.pf-practical dd, .pf-bg dd { margin: 0 0 0 30px; }
.pf-practical dd small, .pf-bg dd small { display: block; color: var(--ink-soft); font-size: .84rem; margin-top: 2px; line-height: 1.4; }

.pf-started ol, .pf-next ol { list-style: none; margin: 14px 0 20px; padding: 0; display: grid; gap: 16px; }
.pf-started li, .pf-next li { display: flex; gap: 14px; align-items: flex-start; font-size: .95rem; color: var(--ink-soft); line-height: 1.5; }
.pf-started li strong, .pf-next li strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 2px; }
.pf-started .n, .pf-next .n { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; }
.pf-started .btn { display: flex; width: 100%; margin-bottom: 10px; }
.pf-started .btn .ico { width: 20px; height: 20px; margin-right: 8px; }
.pf-next { margin-bottom: 18px; }
.pf-next h2 { font-size: 1.5rem; margin-bottom: 0; }

.pf-lics { list-style: none; margin: 14px 0 18px; padding: 0; display: grid; gap: 14px; }
.pf-lics li { display: flex; gap: 16px; align-items: flex-start; }
.pf-lic-ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: #efeaee; color: var(--ink-soft); }
.pf-lic-ic.ok { background: #e3ecf8; color: #3b6fb6; }
.pf-lic-ic .ico { width: 24px; height: 24px; }
.pf-lic-body strong { display: block; font-size: 1.05rem; }
.pf-lic-body small { display: block; color: var(--ink-soft); }
.pf-ver { display: inline-block; margin-top: 4px; font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.pf-ver.ok { color: #2f5f9f; }
.pf-look { display: block; margin-top: 2px; font-size: .85rem; color: var(--plum); }
.pf-verify { background: #f1f5fb; border: 1px solid #dbe5f3; border-radius: 16px; padding: 16px 18px; margin: 4px 0 8px; }
.pf-verify h3 { display: flex; align-items: center; gap: 8px; font: 700 1rem var(--sans); margin: 0 0 6px; color: #2f4a76; }
.pf-verify h3 .ico { width: 20px; height: 20px; }
.pf-verify p { margin: 0; font-size: .92rem; color: var(--ink-soft); line-height: 1.55; }

.pf-video { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: linear-gradient(160deg, #e9ddf3, #d3bfe8 60%, #f0d6cf); }
.pf-video::before { content: ""; position: absolute; inset: 0; background: url("art/landscape.svg") center bottom / cover; opacity: .7; }
.pf-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pf-play { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border: 0; background: transparent; cursor: pointer; color: var(--ink); font: 700 1rem var(--sans); }
.pf-play-ic { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 14px 34px rgba(47, 96, 68, .4); transition: transform .2s; }
.pf-play-ic .ico { width: 32px; height: 32px; fill: currentColor; margin-left: 4px; }
.pf-play:hover .pf-play-ic, .pf-play:focus-visible .pf-play-ic { transform: scale(1.08); }
.pf-play:focus-visible { outline: 3px solid var(--plum); outline-offset: -6px; }
.pf-play-text { background: rgba(255, 255, 255, .9); padding: 5px 14px; border-radius: 999px; }
/* an uploaded introduction video: its own still first, then the browser's player */
.pf-video-up { aspect-ratio: 16 / 9; background: #1d1a22; }
.pf-video-up.tall { max-width: min(300px, 100%); margin: 0 auto; }
.pf-video-up::before { display: none; }
.pf-video-poster, .pf-video-up video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; background: #1d1a22; }
.pf-video-text { margin: 14px 0 0; padding: 12px 16px; border-left: 3px solid var(--plum); background: var(--lavender); border-radius: 0 10px 10px 0; }
.pf-video-text h3 { margin: 0 0 4px; font: 700 .82rem var(--sans); letter-spacing: .02em; color: var(--plum); }
.pf-video-text p { margin: 0; white-space: pre-line; line-height: 1.55; }
.pf-others { margin: 22px 0 0; }
.pf-cta-bar { display: none; }

@media (max-width: 1000px) {
  .pf-hero-grid { grid-template-columns: 230px minmax(0, 1fr); gap: 30px; }
  .pf-portrait { width: 230px; height: 300px; }
  .pf-monogram { font-size: 4.6rem; }
  .pf-layout { grid-template-columns: 1fr; }
  .pf-layout > .pf-side { grid-column: 1; grid-row: auto; }
  .pf-sprig, .pf-note { display: none; }
}
@media (max-width: 700px) {
  .pf-hero { padding: 14px 0 40px; }
  .pf-land { width: 100%; opacity: .5; }
  .pf-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .pf-portrait { width: 100%; height: 330px; border-radius: 24px; }
  .pf-intro h1 { font-size: 2.3rem; }
  .vcheck.big { width: 26px; height: 26px; vertical-align: 8px; }
  .pf-ctas .btn { flex: 1 1 100%; }
  .pf-share { margin: 0 auto; }
  .pf-tabs .h-inner { gap: 22px; }
  .pf-card { padding: 22px 20px; border-radius: 20px; }
  .pf-card h2 { font-size: 1.65rem; }
  .pf-about p.lead { font-size: 1.25rem; }
  .pf-specs { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pf-specs li { padding: 14px 14px 18px; min-height: 120px; }
  .pf-approaches { grid-template-columns: 1fr; }
  .profile-page { padding-bottom: 110px; }
  .pf-cta-bar { display: flex; align-items: center; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(42, 47, 85, .1); }
  .pf-cta-bar .btn { flex: 1; min-height: 52px; }
  .pf-cta-msg { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid #b5d0bd; color: var(--accent); background: #fff; }
  .pf-cta-msg .ico { width: 22px; height: 22px; }
}


/* ---------- For Therapists ---------- */
.ft-hero { position: relative; overflow: hidden; padding: 48px 0 110px; background: linear-gradient(180deg, #f1f6ee 0%, #f3eefb 100%); }
.ft-hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.ft-copy h1 { font-size: clamp(2.8rem, 5.4vw, 4.6rem); line-height: 1.02; font-weight: 700; margin: 10px 0 18px; }
.ft-dash { margin-top: 48px; text-align: center; }
.ft-dash .h-dash { max-width: 860px; margin: 14px auto 0; text-align: left; box-shadow: 0 30px 70px rgba(80, 60, 140, .16); }
.ft-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 56px; }
.ft-benefits article { display: flex; flex-direction: column; gap: 10px; }
.ft-benefits h2 { font-size: 1.5rem; line-height: 1.2; margin: 6px 0 0; }
.ft-benefits p { color: var(--ink-soft); margin: 0; flex: 1; }
.ft-benefits a { color: var(--accent); font-weight: 600; text-decoration: none; }
.ft-benefits .ring { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; color: var(--accent);
  background: radial-gradient(circle at 35% 30%, #fff, #e6f0e7); border: 1px solid #c9dfcf; box-shadow: 0 0 0 8px rgba(230, 240, 231, .6); }
.ft-benefits .ring svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ft-pricing { margin-top: 88px; }
.ft-pricing h2, .ft-compare h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 6px; }
.ft-sub { color: var(--ink-soft); margin: 0 0 28px; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; margin-top: 24px; }
.tier { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid #e4e8dd; border-radius: 22px; padding: 28px 26px; }
.tier.mid { border: 2px solid #b5d0bd; box-shadow: 0 24px 60px rgba(47, 96, 68, .1); }
.tier h3 { margin: 0; font-size: 1.4rem; text-align: center; }
.tier-tag { text-align: center; color: var(--ink-soft); margin: 0; }
.tier-price { display: flex; justify-content: center; align-items: baseline; gap: 6px; margin: 10px 0 0; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.tier-price strong { font: 700 2.8rem/1 var(--serif); color: var(--navy, var(--ink)); font-variant-numeric: lining-nums; }
.tier-price span { color: var(--ink-soft); }
.tier-prop { text-align: center; margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.tier .p-list { margin-top: 14px; }
.tier-terms { margin: 0 0 16px; padding: 14px 0 0; border-top: 1px solid #e6e9df; display: grid; gap: 8px; font-size: .9rem; }
.tier-terms div { display: grid; grid-template-columns: 82px 1fr; gap: 8px; }
.tier-terms dt { font-weight: 700; color: var(--ink); }
.tier-terms dd { margin: 0; color: var(--ink-soft); }
.tier .big-btn { justify-content: center; }
.tier-founding { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; background: #eef4ec; border: 1px solid #cfe0d2; border-radius: 22px; padding: 22px 26px; text-align: left; }
.tier-founding p { margin: 0; flex: 1 1 320px; font-size: 1.05rem; color: var(--ink); }
.tier-split { text-align: center; margin: 22px auto 0; font-weight: 700; color: var(--ink); }
.tier-wide { flex-direction: row; align-items: center; gap: 32px; margin-top: 22px; }
.tier-wide-head { flex: 0 0 240px; display: flex; flex-direction: column; gap: 6px; }
.tier-wide-body { flex: 1; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.tier-wide .p-list { margin-top: 0; }
.tier-wide .big-btn { align-self: flex-start; }
.tier-note { max-width: 780px; margin: 20px auto 0; text-align: center; font-size: .9rem; color: var(--ink-soft); }
.ft-practice-link { margin: 14px 0 0; color: var(--ink-soft); }
.ft-practice-link a { color: var(--accent); font-weight: 600; text-decoration: none; }
.tier-lane { margin: 44px 0 0; font-size: 1.5rem; text-align: left; }
.tier-toggle { display: inline-flex; gap: 4px; margin-top: 14px; padding: 4px; border: 1px solid #d9e2d6; border-radius: 999px; background: #fff; }
.tier-toggle button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font: 600 .92rem var(--sans); color: var(--ink-soft); cursor: pointer; }
.tier-toggle button.on { background: var(--accent); color: #fff; }
.tier-toggle button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tier-plain { max-width: 780px; margin: 8px auto 0; text-align: center; color: var(--ink-soft); }
.tier-plus { text-align: center; margin: 0; color: var(--ink-soft); font-size: .95rem; }
.tier-wide-body > p { margin: 0; }
.pc { display: grid; gap: 8px; background: #f2f7f1; border: 1px solid #d3e3d6; border-radius: 16px; padding: 18px 20px; text-align: left; }
.pc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pc label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--ink); align-content: space-between; }
.pc input { width: 100%; max-width: 120px; padding: 9px 10px; border: 1px solid #c4d3c6; border-radius: 10px; font: inherit; font-variant-numeric: lining-nums; background: #fff; }
.pc-out { margin: 6px 0 0; display: flex; align-items: baseline; gap: 6px; }
.pc-out strong { font: 700 2.2rem/1 var(--serif); color: var(--navy, var(--ink)); font-variant-numeric: lining-nums; }
.pc-out span, .pc-sub { color: var(--ink-soft); }
.pc-sub { margin: 0; font-size: .92rem; }
.pc .tier-prop { text-align: left; margin-top: 4px; }
.gp-cost { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; text-align: left; }
.gp-cost .pc { background: none; border: 0; padding: 0; margin-top: 12px; }
.gp-cost .pc-fields { grid-template-columns: 1fr; }
.gp-without { margin: 0; font-size: .9rem; color: var(--ink-soft); }
/* The institutions page */
.in-promise { margin-top: 56px; padding: 34px 38px; border-radius: 22px; background: #e6f0e7; border: 1px solid #c9dfcf; text-align: center; }
.in-promise h2 { margin: 4px 0 10px; }
.in-promise p:last-child { max-width: 720px; margin: 0 auto; color: var(--ink-soft); }
.in-stand { margin-top: 56px; }
@media (min-width: 961px) { .in-steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .in-promise { padding: 26px 20px; } }
.gp-table { max-width: 720px; margin: 32px auto 0; font-variant-numeric: lining-nums; }
.gp-table caption { text-align: left; font-weight: 700; padding: 0 12px 8px; }
.ft-compare { margin-top: 88px; }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
/* Us versus them, row by row */
.cmp-table { margin-top: 22px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #fff; }
.cmp-row { display: grid; grid-template-columns: minmax(150px, .7fr) 1fr 1.25fr; border-top: 1px solid var(--line); }
.cmp-row:first-child { border-top: 0; }
.cmp-row > span { padding: 14px 20px; }
.cmp-what { font-weight: 700; }
.cmp-them { color: var(--ink-soft); background: #f7f4f3; }
.cmp-us { background: #e6f0e7; }
.cmp-head > span { font: 700 1.1rem/1.3 var(--serif); }
.cmp-head .cmp-us { color: var(--ok); }
.wj-compare { margin-top: 40px; }
.h-inst { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: center; margin-top: 88px; margin-bottom: 88px; }
.h-inst h2 { margin: 0 0 12px; max-width: 24em; }
.h-inst p:not(.eyebrow) { max-width: 40em; margin: 0 0 20px; }
.ab-lede { font-size: 1.12rem; max-width: 44em; margin: 0 0 22px; }
.ab-stats + .ab-lede { margin-top: 24px; }
.ab-money h2 { max-width: 26em; }
@media (max-width: 760px) {
  .cmp-row { grid-template-columns: 1fr; }
  .cmp-head { display: none; }
  .cmp-row > span { padding: 10px 16px; }
  .cmp-what { padding-bottom: 4px; }
  .cmp-them::before { content: "Typical directory: "; font-weight: 700; }
  .cmp-us::before { content: "Here Is Therapy: "; font-weight: 700; color: var(--ok); }
  .h-inst { grid-template-columns: 1fr; gap: 16px; }
  .h-inst img { width: 140px; height: auto; }
}
.cmp-col { border-radius: 22px; padding: 26px 28px; border: 1px solid #e4e8dd; background: #f7f4f3; }
.cmp-col.ours { background: #e6f0e7; border-color: #c9dfcf; box-shadow: 0 16px 36px rgba(47, 96, 68, .08); }
.cmp-col h3 { margin: 0; }
.cmp-sub { margin: 2px 0 14px; color: var(--ink-soft); }
.cmp-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cmp-col li { display: flex; gap: 10px; align-items: flex-start; }
.cmp-col.flat li::before { content: "–"; flex: none; width: 22px; text-align: center; color: var(--ink-soft); }
.cmp-col.ours li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--ok); text-align: center; font-size: .8rem; line-height: 22px; }
.ft-copy .h-actions { margin-top: 8px; }
@media (max-width: 960px) {
  .ft-hero-grid, .cmp { grid-template-columns: 1fr; }
  .ft-benefits { grid-template-columns: 1fr 1fr; }
  .tiers { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .tier-wide { flex-direction: column; align-items: stretch; gap: 14px; max-width: 520px; margin-left: auto; margin-right: auto; }
  .tier-wide-head { flex: none; }
  .tier-wide .big-btn { align-self: stretch; }
  .tier-founding { max-width: 520px; margin-left: auto; margin-right: auto; }
  .tier-founding .big-btn { flex: 1 1 100%; justify-content: center; }
  .tier-lane, .tier-toggle { text-align: center; }
  .gp-cost { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 600px) {
  .ft-hero { padding: 28px 0 90px; }
  .ft-benefits { grid-template-columns: 1fr; gap: 22px; }
  .ft-copy .h-actions .btn { justify-content: center; width: 100%; }
  .ft-dash .h-dash { grid-template-columns: 1fr; }
  .ft-dash .demo-side { display: none; }
}


/* ---------- Referral exchange ---------- */
[hidden] { display: none !important; }
.rx { max-width: 920px; margin: 0 auto; }
.rx-head h1 { margin-bottom: 4px; }
.rx-crumb { margin: 0 0 8px; font-size: .92rem; }
.rx-paste { margin: 14px 0 18px; border: 1px dashed var(--line); border-radius: 14px; padding: 10px 16px; background: #fffdfa; }
.rx-paste summary { cursor: pointer; color: var(--ink-soft); }
.rx-paste form { margin-top: 10px; display: grid; gap: 8px; }
.rx-progress { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 0; margin: 8px 0 18px; }
.rx-progress li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .78rem; color: var(--ink-soft); cursor: pointer; }
.rx-progress .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); background: #fff; font-weight: 700; }
.rx-progress .on .n { background: var(--plum, #2e2a6b); border-color: var(--plum, #2e2a6b); color: #fff; }
.rx-progress .done .n { background: #e7f0e9; border-color: #b9d3bf; color: var(--ok); }
.rx-progress .on .t { color: var(--ink); font-weight: 700; }
.rx-warn { background: #f1eefa; border: 1px solid #ddd5f2; border-radius: 12px; padding: 12px 16px; margin: 0 0 18px; font-size: .92rem; }
.rx-step { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.rx-step legend { font: 600 1.45rem var(--serif); padding: 0; margin-bottom: 10px; }
.rx-step.need legend::after { content: " (choose one to continue)"; font: 600 .85rem var(--sans); color: var(--danger); }
.rx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.rx-cards.four { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.rx-cards.two { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.rx-card { display: block; position: relative; cursor: pointer; }
.rx-card > input { position: absolute; opacity: 0; inset: 0; }
.rx-card > span { display: flex; flex-direction: column; gap: 2px; justify-content: center; min-height: 64px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font-weight: 600; }
.rx-card.sm > span { min-height: 52px; }
.rx-card > span small { font-weight: 400; color: var(--ink-soft); }
.rx-card:hover > span { border-color: #c9bfe8; }
.rx-card > input:focus-visible + span { outline: 3px solid #b7aadf; outline-offset: 2px; }
.rx-card > input:checked + span { border-color: var(--plum, #2e2a6b); background: #f1eefa; box-shadow: 0 0 0 1px var(--plum, #2e2a6b) inset; }
.rx-card.wide > span b { font-weight: 700; }
/* The miles menu and ZIP box sit inline in the sentence ("within 25 miles of ZIP 14850"). */
.rx-card small select, .rx-card small input { display: inline-block; width: auto; max-width: none; padding: 3px 8px; margin: 2px 2px; border-radius: 8px; font-weight: 600; vertical-align: baseline; }
.rx-card small input[name=client_zip] { width: 6.5em; }
.rx-how { display: grid; gap: 10px; }
.rx-confirm { display: flex; gap: 10px; align-items: flex-start; margin: 12px 2px 0; cursor: pointer; }
.rx-confirm input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--plum, #2e2a6b); }
.rx-sub { font-weight: 700; margin: 18px 0 8px; }
.rx-review { display: grid; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.rx-review > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 10px 16px; border-top: 1px solid #e6e9df; }
.rx-review > div:first-child { border-top: 0; }
.rx-review dt { color: var(--ink-soft); }
.rx-review dd { margin: 0; font-weight: 600; text-transform: capitalize; }
.rx-legal { font-size: .85rem; color: var(--ink-soft); margin: 12px 0 0; }
.rx-nav { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.rx-nav .rx-end { margin-left: auto; display: flex; gap: 10px; }
.rx-nav [data-next] { margin-left: auto; }
.rx-form:not(.js) .rx-step { margin-bottom: 28px; }
.rx-form:not(.js) .rx-nav [data-back], .rx-form:not(.js) .rx-nav [data-next] { display: none; }
.rx-form:not(.js) .rx-progress { display: none; }
.rx-state { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 4px 12px; border-radius: 999px; font: 700 .78rem var(--sans); background: #f1eefa; color: #4b3a78; }
.rx-state.open { background: #fdf0d8; color: #8a5a00; }
.rx-state.interested { background: #e1f0f4; color: #1c5d70; }
.rx-state.arranged { background: #e7f0e9; color: var(--ok); }
.rx-state.closed, .rx-state.expired { background: #eee9e8; color: #6b5f5d; }
.rx-track { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 20px; }
.rx-track li { padding: 6px 14px; border-radius: 999px; background: #f4efe9; color: var(--ink-soft); font-size: .85rem; }
.rx-track .done { background: #e7f0e9; color: var(--ok); }
.rx-track .on { background: var(--plum, #2e2a6b); color: #fff; font-weight: 700; }
.rx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.rx-who { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 10px; }
.rx-who li { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rx-who form { margin-left: auto; }
.rx-matches ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.rx-pick { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.rx-pick:has(input:checked) { border-color: var(--plum, #2e2a6b); background: #f1eefa; }
.rx-pick input { width: 22px; height: 22px; flex: none; }
.rx-pick-body { flex: 1; display: grid; gap: 6px; }
.rx-why { display: flex; flex-wrap: wrap; gap: 6px; }
.rx-why i { font-style: normal; font-size: .78rem; padding: 3px 10px; border-radius: 999px; background: #eef4ef; color: #3a5e44; }
.rx-nav.sticky { position: sticky; bottom: 0; background: linear-gradient(transparent, #fffdfa 30%); padding: 18px 0 8px; flex-wrap: wrap; }
.iso-card.compact { margin: 6px 0 14px; }
.rx-reply { display: grid; gap: 8px; align-content: start; justify-items: start; }
.rx-reply form { display: flex; gap: 8px; flex-wrap: wrap; }
.rx-ask summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--accent); }
.rx-ask form { display: grid; gap: 8px; margin-top: 8px; width: min(320px, 100%); }
.ref .rx-why { margin-top: 8px; }
@media (max-width: 720px) {
  .rx-grid { grid-template-columns: 1fr; }
  .rx-progress .t { display: none; }
  .rx-cards, .rx-cards.four { grid-template-columns: 1fr 1fr; }
  .rx-cards.two { grid-template-columns: 1fr; }
  .rx-card > span { min-height: 60px; }
  .rx-review > div { grid-template-columns: 1fr; gap: 2px; }
  .rx-nav, .rx-nav.sticky { position: sticky; bottom: 69px; z-index: 5; background: #fffdfa; padding: 12px 0; flex-wrap: wrap; }
  .rx-nav .btn { flex: 1; justify-content: center; }
  .rx-nav .rx-end { margin-left: 0; width: 100%; }
  .rx-pick { flex-wrap: wrap; }
}


/* ---------- Messaging center ---------- */
.mc-main { max-width: none; }
.mc { display: grid; grid-template-columns: 340px minmax(0, 1fr) 320px; gap: 0; background: #fff; border: 1px solid #e4e8dd; border-radius: 20px; overflow: hidden; min-height: 640px; max-height: calc(100vh - 140px); }
.mc > * { min-width: 0; overflow-y: auto; }
.mc-list { background: #fafbf7; border-right: 1px solid #e6e9df; display: flex; flex-direction: column; }
.mc-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 18px 6px; }
.mc-top h1 { margin: 0; font-size: 1.8rem; }
.mc-search { padding: 6px 18px 10px; }
.mc-search input { width: 100%; border-radius: 12px; }
.mc-tabs { display: flex; gap: 12px; padding: 0 18px; border-bottom: 1px solid #e6e9df; overflow-x: auto; }
.mc-tabs a { padding: 10px 0; text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .9rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.mc-tabs a.on { color: var(--ink); border-color: var(--accent); }
.mc-tabs .mc-count { margin-left: 6px; background: var(--accent); color: #fff; border-radius: 999px; padding: 0 7px; font-size: .72rem; }
.mc-rows { list-style: none; padding: 0; margin: 0; }
.mc-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-bottom: 1px solid #e6e9df; text-decoration: none; color: var(--ink); position: relative; }
.mc-row:hover { background: #f6f1ff; }
.mc-row.on { background: #f1eefa; box-shadow: inset 3px 0 0 var(--accent); }
.mc-row .unread-dot { margin-top: 6px; flex: none; }
.mc-body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.mc-line { display: flex; gap: 8px; align-items: center; }
.mc-line b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-row.unread .mc-line b { font-weight: 800; }
.mc-when { margin-left: auto; font-size: .75rem; color: var(--ink-soft); white-space: nowrap; }
.mc-kind { font-style: normal; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #e9ecf6; color: #2e3a73; }
.mc-kind.ref { background: #e6f0e7; color: var(--accent-dark); }
.mc-kind.com { background: #f1eefa; color: #4b3a78; }
.mc-kind.sys { background: #eee9e8; color: #6b5f5d; }
.mc-sub { font-weight: 600; font-size: .85rem; }
.mc-snip { color: var(--ink-soft); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar.initials.sys { background: #eee9e8; color: #6b5f5d; }
.avatar.initials.big { width: 48px; height: 48px; font-size: 1.1rem; }
.mc-foot { padding: 12px 18px; margin: auto 0 0; }
.mc-thread { display: flex; flex-direction: column; overflow: hidden; }
.mc-th-head { display: flex; gap: 12px; align-items: center; padding: 14px 20px; border-bottom: 1px solid #e6e9df; }
.mc-th-head h2 { margin: 0; font-size: 1.2rem; }
.mc-th-head p { margin: 0; }
.mc-more { margin-left: auto; }
.mc-more summary { cursor: pointer; list-style: none; padding: 6px 12px; border-radius: 10px; letter-spacing: 2px; font-weight: 800; }
.mc-back { display: none; font-size: 1.4rem; text-decoration: none; }
.mc-msgs { flex: 1; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; background: linear-gradient(#fffdfa, #fbf8ff); }
.mc-note { align-self: center; max-width: 520px; text-align: center; font-size: .8rem; color: var(--ink-soft); background: #f1eefa; border-radius: 999px; padding: 6px 16px; margin: 0; }
.bubble { max-width: min(520px, 82%); padding: 12px 16px; border-radius: 18px; }
.bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.them { align-self: flex-start; background: #eeeaf8; color: var(--ink); border-bottom-left-radius: 6px; }
.bubble.me { align-self: flex-end; background: #2e2a6b; color: #fff; border-bottom-right-radius: 6px; }
.b-meta { display: block; margin-top: 6px; font-size: .72rem; opacity: .7; }
.mc-compose { border-top: 1px solid #e6e9df; padding: 12px 18px; display: grid; gap: 8px; background: #fff; }
.mc-compose textarea { width: 100%; resize: vertical; border-radius: 12px; }
.mc-actions { display: flex; gap: 10px; align-items: center; }
.mc-actions select { max-width: 220px; }
.mc-actions .btn { margin-left: auto; }
.mc-empty { margin: auto; }
.mc-context { border-left: 1px solid #e6e9df; padding: 20px; background: #fafbf7; display: grid; gap: 10px; align-content: start; }
.mc-ctx-head { display: flex; justify-content: space-between; align-items: center; }
.mc-ctx-head h2 { margin: 0; font-size: 1.3rem; }
.mc-context h3 { margin: 12px 0 0; font-size: 1rem; }
.wide-btn { width: 100%; justify-content: center; }
.switch-row { display: flex; justify-content: space-between; align-items: center; }
.switch-row input { width: 22px; height: 22px; }
.pf-colleague { display: inline; }
@media (max-width: 1100px) {
  .mc { grid-template-columns: 300px minmax(0, 1fr); }
  .mc-context { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #e6e9df; }
}
@media (max-width: 760px) {
  .mc { display: block; border-radius: 0; border-left: 0; border-right: 0; max-height: none; min-height: 0; }
  .mc.open .mc-list { display: none; }
  .mc:not(.open) .mc-thread, .mc:not(.open) .mc-context { display: none; }
  .mc-back { display: block; }
  .mc-thread { min-height: 70vh; }
  .mc-msgs { max-height: 55vh; }
  .mc-compose { position: sticky; bottom: 69px; z-index: 5; }
  .bubble { max-width: 88%; }
}


/* ---------- The Commons ---------- */
.cm-main { max-width: 1180px; }
.hue-plum { --h-bg: #efeaf9; --h-fg: #4b3a78; }
.hue-rose { --h-bg: #e6f0e7; --h-fg: #a3322a; }
.hue-sage { --h-bg: #e7f0e9; --h-fg: #3a5e44; }
.hue-gold { --h-bg: #fbf0d9; --h-fg: #8a5a00; }
.hue-sky { --h-bg: #e4eff5; --h-fg: #1c5d70; }
.hue-stone { --h-bg: #eee9e8; --h-fg: #5a4f4d; }
.cm-banner { position: relative; overflow: hidden; border-radius: 22px; background: linear-gradient(120deg, #f6efff, #fdf3ee); padding: 30px 32px 26px; margin-bottom: 18px; }
.cm-art { position: absolute; right: 0; top: 0; height: 100%; width: 58%; object-fit: cover; object-position: right bottom; opacity: .55; pointer-events: none; }
.cm-banner-in { position: relative; }
.cm-banner h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin: 0 0 4px; }
.cm-banner p { margin: 0; font: 1.25rem var(--serif); color: var(--ink); }
.cm { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.cm > *, .cm-feed > * { min-width: 0; }
.cm-tabs { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.cm-tabs > a { padding: 10px 0; text-decoration: none; color: var(--ink-soft); font-weight: 600; border-bottom: 2px solid transparent; }
.cm-tabs > a.is-on { color: var(--accent); border-color: var(--accent); }
.cm-search { margin-left: auto; min-width: 220px; flex: 0 1 280px; }
.cm-search input { width: 100%; border-radius: 999px; }
.cm-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 18px; }
.cm-cat { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--h-bg); color: var(--h-fg); text-decoration: none; border: 1.5px solid transparent; }
.cm-cat strong { font-size: .92rem; }
.cm-cat small { font-size: .74rem; opacity: .85; line-height: 1.25; }
.cm-cat em { position: absolute; top: 8px; right: 10px; font-style: normal; font-size: .72rem; font-weight: 700; }
.cm-cat.on { border-color: var(--h-fg); box-shadow: 0 6px 18px rgba(60, 40, 90, .12); }
.cm-active { color: var(--ink-soft); margin: 0 0 12px; }
.cm-card { background: #fff; border: 1px solid #e4e8dd; border-radius: 18px; padding: 20px 22px; margin-bottom: 14px; }
.cm-card:hover { box-shadow: 0 10px 28px rgba(60, 40, 90, .08); }
.cm-card-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cm-by { margin-left: auto; display: flex; gap: 8px; align-items: center; font-size: .88rem; font-weight: 600; }
.cm-by .avatar { width: 28px; height: 28px; font-size: .7rem; }
.cm-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; background: var(--h-bg); color: var(--h-fg); text-decoration: none; }
.cm-card h2 { margin: 10px 0 6px; font-size: 1.45rem; line-height: 1.2; }
.cm-card h2 a { color: var(--ink); text-decoration: none; }
.cm-card h2 a:hover { text-decoration: underline; }
.cm-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 8px; font-size: .88rem; color: var(--ink-soft); }
.cm-facts b { color: var(--ink); font-weight: 600; }
.cm-desc { margin: 0 0 12px; color: var(--ink-soft); }
.cm-card-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cm-loc { display: inline-flex; gap: 4px; align-items: center; font-size: .85rem; color: var(--ink-soft); margin-right: 4px; }
.cm-loc svg, .cm-replies svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.cm-pill { font-size: .78rem; padding: 3px 11px; border-radius: 999px; background: #f1eefa; color: #4b3a78; text-decoration: none; }
.cm-why { font-size: .75rem; padding: 3px 10px; border-radius: 999px; background: #eef4ef; color: #3a5e44; }
.cm-replies { margin-left: auto; display: inline-flex; gap: 5px; align-items: center; color: var(--ink-soft); text-decoration: none; font-size: .88rem; }
.cm-more { text-align: center; display: grid; gap: 6px; justify-items: center; margin: 22px 0; }
.cm-end { text-align: center; margin: 22px 0; }
.cm-rail { display: grid; gap: 16px; position: sticky; top: 76px; }
.cm-new { justify-content: center; }
.cm-panel { background: #fff; border: 1px solid #e4e8dd; border-radius: 18px; padding: 18px 20px; }
.cm-panel h2 { margin: 0 0 6px; font-size: 1.2rem; }
.cm-sum, .cm-sug { list-style: none; padding: 0; margin: 10px 0 4px; display: grid; gap: 10px; }
.cm-sum a { text-decoration: none; color: var(--ink); }
.cm-sum b { color: var(--accent); }
.cm-sug li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cm-sug small { display: block; color: var(--ink-soft); font-size: .75rem; }
.cm-panel.guide { background: #f6f2ff; }
.cm-follow h2 { margin-top: 0; }
.cm-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 8px 0 12px; }
.cm-chips button { border: 1px solid #d9d0ee; background: #fff; border-radius: 999px; padding: 5px 12px; cursor: pointer; font: 600 .85rem var(--sans); color: #4b3a78; }
.cm-add { display: flex; gap: 8px; flex-wrap: wrap; }
.cm-add input { flex: 1; min-width: 160px; }
.cm-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 8px 0 18px; }
.cm-type { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); }
.cm-type small { color: var(--ink-soft); font-size: .76rem; }
.cm-type.on { background: var(--h-bg); border-color: var(--h-fg); color: var(--h-fg); }
.cm-type.on small { color: var(--h-fg); }
.cm-submit { display: flex; gap: 10px; justify-content: flex-end; }
.cm-state { border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: #f1eefa; }
.cm-state.hidden, .cm-state.removed { background: #fbe8e4; }
.cm-state.closed { background: #eee9e8; }
.cm-state form.inline { margin-left: 4px; }
.cm-status { font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: #f1eefa; color: #4b3a78; white-space: nowrap; }
.cm-status.open { background: #e7f0e9; color: var(--ok); }
.cm-status.hidden, .cm-status.removed { background: #fbe8e4; color: var(--danger-dark); }
.cm-status.closed { background: #eee9e8; color: #6b5f5d; }
.cm-rules { display: grid; gap: 12px; padding-left: 20px; margin: 18px 0; }
.cm-rules li { padding-left: 4px; }
.cm-detail h1 { margin-top: 10px; }
@media (max-width: 1000px) {
  .cm { grid-template-columns: 1fr; }
  .cm-rail { position: static; order: -1; grid-template-columns: 1fr 1fr; }
  .cm-rail .cm-new { grid-column: 1 / -1; }
  .cm-cats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .cm-banner { padding: 22px 18px; border-radius: 0 0 22px 22px; margin: -8px -8px 14px; }
  .cm-cats { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; scroll-snap-type: x mandatory; }
  .cm-cat { flex: 0 0 150px; scroll-snap-align: start; }
  .cm-search { flex: 1 1 100%; margin-left: 0; order: 5; padding-bottom: 8px; }
  .cm-rail { grid-template-columns: 1fr; }
  .cm-rail .cm-panel { display: none; }
  .cm-rail .cm-new { display: flex; position: sticky; top: 64px; z-index: 4; }
  .cm-tabs { gap: 4px 16px; overflow-x: auto; flex-wrap: nowrap; }
  .cm-tabs > a { white-space: nowrap; }
  .cm-card { padding: 16px; }
  .cm-by { margin-left: 0; width: 100%; }
}


/* ---------- Availability and listing ---------- */
.av-main { max-width: 1180px; }
.av-banner { position: relative; overflow: hidden; border-radius: 22px; background: linear-gradient(120deg, #fdf3ee, #f6efff); padding: 26px 30px; margin-bottom: 18px; }
.av-banner h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin: 0 0 4px; }
.av-banner p { margin: 0; font: 1.2rem var(--serif); }
.av { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; margin-bottom: 22px; }
.av > * { min-width: 0; }
.av-q { background: #fff; border: 1px solid #e4e8dd; border-radius: 22px; padding: 26px 26px 20px; }
.av-q h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0 0 6px; }
.av-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 14px; }
.av-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 22px 16px 18px; border-radius: 18px; border: 2px solid var(--line); background: #fff; cursor: pointer; text-decoration: none; color: var(--ink); }
.av-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.av-radio { position: absolute; top: 14px; left: 14px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c9bfb2; background: #fff; }
.av-card input:checked ~ .av-radio { border-color: var(--h); background: radial-gradient(var(--h) 45%, #fff 50%); }
.av-card.accepting { --h: #2f7a4d; --bg: #eaf5ee; }
.av-card.waitlist { --h: #b9791a; --bg: #fdf3df; }
.av-card.closed { --h: #8a7f7b; --bg: #f1eeed; }
.av-icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--h); }
.av-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.av-card strong { font: 600 1.35rem/1.15 var(--serif); }
.av-help { color: var(--ink-soft); font-size: .92rem; }
.av-checks { display: grid; gap: 6px; width: 100%; margin-top: 6px; padding: 12px; border-radius: 12px; background: var(--bg); font-size: .85rem; text-align: left; }
.av-checks span::before { content: "✓ "; font-weight: 800; color: var(--h); }
a.av-card .av-checks span::before { content: ""; }
.av-bill { display: block; width: 100%; margin-top: 8px; font-size: .8rem; line-height: 1.4; color: var(--muted, #6b6480); text-align: left; }
.av-card:has(input:checked) { border-color: var(--h); background: var(--bg); box-shadow: 0 10px 26px rgba(60, 40, 90, .1); }
.av-card:has(input:focus-visible) { outline: 3px solid #b7aadf; outline-offset: 2px; }
.av-open { margin: 6px 0 14px; max-width: 440px; }
.av-confirm { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 16px; align-items: center; margin-top: 18px; padding: 18px 22px; background: #fff; border: 1px solid #e4e8dd; border-radius: 18px; }
.av-confirm > div { display: grid; gap: 2px; }
.av-lbl { font-size: .78rem; color: var(--ink-soft); }
.av-confirm strong { font-size: 1.15rem; }
.av-go { width: 100%; justify-content: center; background: #2a2f55; }
.av-go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; margin-right: 8px; }
.av-confirm form p { margin: 6px 0 0; text-align: center; }
.av-none { grid-column: span 1; margin: 0; }
.av-note { border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; background: #f1eefa; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.av-note.warn { background: #fdf3df; }
.av-note.paused { background: #eee9e8; }
.av-side { display: grid; gap: 16px; }
.av-pill { display: inline-block; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; background: #eee9e8; color: #5a4f4d; }
.av-pill.accepting { background: #eaf5ee; color: #2f7a4d; }
.av-pill.waitlist, .av-pill.lapsed { background: #fdf3df; color: #8a5a00; }
.av-facts { margin: 8px 0; display: grid; gap: 10px; }
.av-facts > div { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; }
.av-facts dt { color: var(--ink-soft); }
.av-facts dd { margin: 0; font-weight: 600; text-align: right; }
.av-facts .good::before { content: "● "; color: #2f7a4d; font-size: .7em; }
.av-facts .bad::before { content: "● "; color: #8a7f7b; font-size: .7em; }
.av-link { display: grid; gap: 2px; text-decoration: none; color: var(--ink); }
.av-list { padding-left: 20px; display: grid; gap: 12px; margin: 10px 0; }
.av-list.ok { list-style: none; padding: 0; }
.av-list.ok li::before { content: "✓ "; color: var(--ok); font-weight: 800; }
.av-billing { margin-top: 16px; }
.av-billing h3 { margin: 0 0 4px; }
.av-done { text-align: center; }
.av-done .card, .av-done .card ul { text-align: left; }
.av-big { width: 72px; height: 72px; margin: 6px auto 10px; border-radius: 50%; display: grid; place-items: center; background: #eaf5ee; color: #2f7a4d; }
.av-big svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2; }
.av-done .rx-nav { justify-content: center; }
@media (max-width: 1000px) {
  .av { grid-template-columns: 1fr; }
  .av-side { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .av-banner { padding: 20px 18px; }
  .av-q { padding: 20px 16px; }
  .av-cards { grid-template-columns: 1fr; }
  .av-card { flex-direction: row; flex-wrap: wrap; text-align: left; justify-content: flex-start; padding: 16px 16px 16px 46px; align-items: center; }
  .av-icon { width: 44px; height: 44px; }
  .av-icon svg { width: 22px; height: 22px; }
  .av-card strong { font-size: 1.15rem; flex: 1; }
  .av-help, .av-checks { flex: 1 1 100%; }
  .av-confirm { grid-template-columns: 1fr 1fr; }
  .av-confirm form, .av-none { grid-column: 1 / -1; }
  .av-side { grid-template-columns: 1fr; }
}


/* ---------- Profile editor ---------- */
.pe-main { max-width: 1320px; }
.pe-banner { position: relative; overflow: hidden; border-radius: 22px; background: linear-gradient(120deg, #fdf3ee, #f6efff); padding: 24px 30px; margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.pe-banner h1 { font-size: clamp(2rem, 3.4vw, 2.7rem); margin: 0 0 4px; }
.pe-banner p { margin: 0; font: 1.15rem var(--serif); }
.pe-banner-end { position: relative; margin-left: auto; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
/* Keep the words off the art: the intro wraps before it, the art fades in from the left,
   and the status and button sit on solid chips so they read over the landscape. */
.pe-banner .cm-banner-in { position: relative; max-width: 30rem; }
.pe-banner .cm-art { width: 52%; opacity: .4;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }
.pe-banner-end .pe-status { margin-right: 0; padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.92);
  border: 1px solid var(--lavender-2); color: var(--ink, #2c2540); }
.pe-banner-end .btn.quiet { background: #fff; color: var(--ink, #2c2540); border-color: var(--lavender-2); }
.pe-banner-end .btn.quiet:hover { background: var(--lavender); }
.pe { display: grid; grid-template-columns: 230px minmax(0, 1fr) 400px; gap: 22px; align-items: start; }
.pe > * { min-width: 0; }
.pe-nav { position: sticky; top: 76px; background: #fff; border: 1px solid #e4e8dd; border-radius: 18px; padding: 16px; max-height: calc(100vh - 100px); overflow-y: auto; }
.pe-comp h2 { margin: 0 0 8px; font-size: 1rem; }
.pe-bar { height: 8px; border-radius: 999px; background: #ece6f6; overflow: hidden; }
.pe-bar span { display: block; height: 100%; background: linear-gradient(90deg, #2a2f55, #6b5bb5); border-radius: 999px; transition: width .4s; }
.pe-comp p { margin: 8px 0 12px; }
.pe-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
/* a long label wraps beside its dot instead of running into it (walkthrough item 17) */
.pe-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink-soft); font-size: .9rem; line-height: 1.3; }
.pe-nav-l { flex: 1; min-width: 0; }
.pe-nav a:hover { background: #f6f1ff; }
.pe-nav a.on { background: #f1eefa; color: var(--ink); font-weight: 600; }
/* three states: done (filled), to do (a ring; it counts toward the percentage), optional (a dashed ring) */
.pe-dot { flex: none; box-sizing: border-box; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid #a99f92; }
.pe-dot.done { background: #2f7a4d; border-color: #2f7a4d; }
.pe-dot.opt { border: 1.5px dashed #b4aec2; }
.pe-comp .pe-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: -4px 0 12px; font-size: .78rem; color: var(--ink-soft); }
.pe-legend span { display: inline-flex; align-items: center; gap: 5px; }
/* the headline: whether it fits a search card in two lines (item 16) */
.pe-hl-fit { color: var(--ok); }
.pe-hl-fit::before { content: "✓ "; }
.pe-hl-fit.long { color: #8a5a00; }
.pe-hl-fit.long::before { content: "! "; }
/* communities: up to 5 (item 19); at 5 the rest grey out */
.checks label.off { opacity: .45; cursor: not-allowed; }
.pe-comm-count { margin: 6px 0 0; font-weight: 600; }
.pe-comm-count:empty { display: none; }
.pe-comm-note { margin: 4px 0 0; color: #8a5a00; }
.pe-form { display: grid; gap: 14px; }
/* the name in parts (first, middle, last) side by side, and its "Show my name as" choices kept on one line */
.pe-name-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 14px; }
#name-style .checks label span { white-space: nowrap; }
/* office hours: a row per day, the times showing once the day is ticked (item 7) */
.pe-hours-days { display: grid; gap: 6px; margin: 4px 0 10px; }
.pe-hours-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.pe-hours-row .check-line { min-width: 120px; margin: 0; }
.pe-hours-times { display: none; align-items: center; gap: 8px; }
.pe-hours-row.on .pe-hours-times { display: inline-flex; }
.pe-body .pe-hours-times input[type=time] { width: auto; padding: 6px 8px; }
.pe-private { margin-top: 8px; }
/* office address suggestions from Google (places.py), with "Google Maps" under them as Google requires */
.pe-suggest-wrap { position: relative; }
.pe-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(40, 30, 80, .15); overflow: hidden; }
.pe-suggest ul { list-style: none; margin: 0; padding: 4px 0; }
.pe-suggest li { padding: 8px 12px; cursor: pointer; display: flex; flex-direction: column; }
.pe-suggest li small { color: var(--ink-soft); }
.pe-suggest li:hover, .pe-suggest li[aria-selected="true"] { background: var(--lavender); }
.pe-suggest-by { margin: 0; padding: 6px 12px 8px; font: 500 .78rem var(--sans); color: #5f6368; text-align: right;
  border-top: 1px solid var(--line); white-space: nowrap; }
/* each license in the editor: its type, number, and what can be done about it */
.pe-lic { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.pe-lic-h { margin: 0 0 6px; font-size: 1rem; }
.pe-lic-h .pe-ok { font-size: .85rem; font-weight: 600; margin-left: 6px; }
.pe-lic-type { margin: 4px 0 0; }
.pe-lic .lic-type-other { margin-top: 8px; }
.pe-lic-note { color: var(--plum); }
.pe-lic-fix { margin-top: 8px; }
.pe-lic-fix summary { cursor: pointer; font-size: .92rem; color: var(--ink-soft); text-decoration: underline; }
.pe-lic-fix-in { padding: 8px 0 0; }
.pe-lic-fix-in .lbl { margin-top: 8px; }
.pe-sec { background: #fff; border: 1px solid #e4e8dd; border-radius: 18px; padding: 0; scroll-margin-top: 80px; }
.pe-sec > summary { list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 18px 22px 8px; cursor: default; }
.pe-sec > summary::-webkit-details-marker { display: none; }
.pe-sec h2 { margin: 0; font-size: 1.5rem; }
.pe-opt { font-size: .78rem; color: var(--ink-soft); }
.pe-body { padding: 4px 22px 20px; display: grid; gap: 12px; }
.pe-f { border: 0; padding: 0; margin: 0; min-width: 0; }
.pe-f legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.pe-body input:not([type=checkbox]):not([type=range]), .pe-body textarea, .pe-body select { width: 100%; }
.pe-ro { margin: 0; padding: 10px 14px; background: #faf7f2; border-radius: 10px; font-weight: 600; }
.pe-ok { color: var(--ok); font-weight: 600; }
.pe-photo { position: relative; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
/* .pe-body made it 100% wide, of the window since nothing held it, and the editor scrolled sideways */
.pe-body .pe-photo input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pe-btns { display: flex; gap: 14px; align-items: center; margin: 0 0 6px; }
.pe-with-btn { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.pe-with-btn .lbl { margin: 0; }
/* the specialty and insurance searches looked like a bare browser box (walkthrough item 10) */
.pe-body input.pe-search { -webkit-appearance: none; appearance: none; font: inherit; padding: 10px 14px 10px 42px; border: 1px solid var(--line);
  border-radius: 999px; color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b5f7e' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 15px center / 18px; }
.pe-body input.pe-search:focus { border-color: var(--plum); }
.pe-spec-total { margin: -4px 0 0; font-weight: 600; }
.pe-spec-total:empty { display: none; }
.pe-spec-also { margin: 0; }
/* specialty groups fold away: an arrow pointing right when closed, down when open, and a count */
.pe-groups { display: grid; gap: 8px; }
.pe-cg { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.pe-cg > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 11px 14px; cursor: pointer; font-weight: 600; }
.pe-cg > summary::-webkit-details-marker { display: none; }
.pe-cg > summary::before { content: ""; flex: none; width: 7px; height: 7px; margin: 0 2px; border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft); transform: rotate(-45deg); transition: transform .15s; }
.pe-cg[open] > summary::before { transform: rotate(45deg); }
.pe-cg > summary:hover { background: #faf8fd; border-radius: 12px; }
.pe-cg-n { margin-left: auto; font-size: .8rem; font-weight: 700; color: var(--plum); background: var(--lavender); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.pe-cg-n:empty { display: none; }
.pe-cg .checks { padding: 2px 14px 14px; }
.pe-cg .pe-cg-in { padding: 2px 14px 14px; }
.pe-cg .pe-cg-in .checks { padding: 0; }
/* examples in empty boxes read as examples, not as filled-in answers (item 15) */
.pe-form ::placeholder { color: #8a8799; opacity: 1; }
/* fees: a $ in the box, and − and + either side that move by $5 */
.pe-money { display: flex; align-items: stretch; max-width: 230px; }
.pe-step { flex: none; width: 44px; min-height: 44px; border: 1px solid var(--line); background: #faf8fd; color: var(--ink);
  font: 600 1.25rem/1 var(--sans); cursor: pointer; }
.pe-step:hover { background: var(--lavender); }
.pe-step:first-child { border-radius: 10px 0 0 10px; border-right: 0; }
.pe-step:last-child { border-radius: 0 10px 10px 0; border-left: 0; }
.pe-money-in { position: relative; flex: 1; min-width: 0; display: flex; }
.pe-money-in > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
.pe-body .pe-money input[type=number] { font: inherit; width: 100%; padding: 9px 10px 9px 26px; border: 1px solid var(--line); border-radius: 0;
  background: #fff; color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.pe-money input::-webkit-inner-spin-button, .pe-money input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pe-floor { display: grid; gap: 0; margin-top: 10px; }
.pe-fee-hint { margin: -6px 0 0; }
/* "More sections" in the editor (item 12): each folds to its heading; add from an idea, move, delete */
.pe-owns { display: grid; gap: 8px; }
.pe-owns:empty { display: none; }
.pe-own { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.pe-own > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 11px 14px; cursor: pointer; font-weight: 600; }
.pe-own > summary::-webkit-details-marker { display: none; }
.pe-own > summary::before { content: ""; flex: none; width: 7px; height: 7px; margin: 0 2px; border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft); transform: rotate(-45deg); transition: transform .15s; }
.pe-own[open] > summary::before { transform: rotate(45deg); }
.pe-own > summary:hover { background: #faf8fd; border-radius: 12px; }
.pe-own-in { display: grid; padding: 0 14px 14px; }
.pe-own-in .lbl { margin: 8px 0 4px; }
.pe-own-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pe-own-tools .pe-own-del { margin-left: auto; color: var(--danger-dark); }
.pe-own-tools button:disabled { opacity: .45; cursor: default; }
.pe-own-add { display: grid; gap: 8px; justify-items: start; }
.pe-own-ideas { display: grid; gap: 6px; }
.pe-own-ideas .hint { margin: 0; }
.pe-ideas { display: flex; flex-wrap: wrap; gap: 8px; }
.pe-idea { border: 1px dashed var(--lavender-2); border-radius: 999px; background: #fff; color: var(--plum); padding: 6px 14px; font: 600 .9rem var(--sans); cursor: pointer; }
.pe-idea:hover { background: var(--lavender); border-style: solid; }
.pe-idea.own { color: var(--ink); border-color: var(--line); }
/* a list in a bio or section ("- " lines, core.text_blocks) */
.pf-list { margin: 0 0 1em; padding-left: 1.3em; }
.pf-list li { margin: 2px 0; }
.pf-about .pf-list { line-height: 1.75; font-size: 1.04rem; }
.pe-err { display: block; color: var(--danger-dark); font-size: .82rem; min-height: 0; }
.pe-err:empty { display: none; }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.pe-errors { background: #fbe8e4; color: var(--danger-dark); border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.pe-welcome { background: linear-gradient(120deg, #f6efff, #fdf3ee); border-radius: 18px; padding: 18px 22px; }
.pe-welcome h2 { margin: 0 0 4px; }
.pe-welcome ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.pe-bar-foot { position: sticky; bottom: 0; z-index: 6; display: flex; gap: 12px; align-items: center; background: rgba(255, 253, 250, .96); border: 1px solid #e4e8dd; border-radius: 16px; padding: 12px 16px; backdrop-filter: blur(6px); }
.pe-bar-foot .btn:last-child { margin-left: 0; }
.pe-status { display: inline-flex; gap: 8px; align-items: center; font-size: .88rem; font-weight: 600; margin-right: auto; }
.pe-status i { width: 10px; height: 10px; border-radius: 50%; background: #2f7a4d; }
.pe-status.unsaved i { background: #d79a1f; }
.pe-status.saving i { background: #6b5bb5; animation: pulse 1s infinite; }
.pe-status.error i { background: var(--danger); }
.pe-status.error { color: var(--danger-dark); }
@keyframes pulse { 50% { opacity: .3; } }
.pe-prev-btn, .pe-float { display: none; }
.pe-preview { position: sticky; top: 76px; background: #fff; border: 1px solid #e4e8dd; border-radius: 18px; padding: 16px; max-height: calc(100vh - 100px); overflow-y: auto; }
.pe-pv-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pe-pv-head h2 { margin: 0; font-size: 1.3rem; }
.pe-pv-close { display: none; border: 0; background: transparent; font-size: 1.8rem; cursor: pointer; }
.pe-toggle { display: inline-flex; border: 1px solid #ddd5f2; border-radius: 10px; overflow: hidden; }
.pe-toggle button { border: 0; background: #fff; padding: 7px 16px; font: 600 .85rem var(--sans); cursor: pointer; color: var(--ink-soft); }
.pe-toggle button.on { background: #f1eefa; color: var(--ink); }
.pv { position: relative; border-radius: 16px; overflow: hidden; background: #fffdfa; border: 1px solid #e4e8dd; text-align: center; padding: 0 22px 22px; margin: 0 auto; transition: max-width .25s; }
.pv[data-view="mobile"] { max-width: 270px; border-radius: 26px; border-width: 4px; border-color: #2a2f55; }
.pv-art { height: 110px; margin: 0 -22px; background: linear-gradient(120deg, #e9e1fa, #f9e8e4); }
.pv-photo { width: 104px; height: 104px; margin: -52px auto 8px; border-radius: 50%; overflow: hidden; border: 4px solid #fff; box-shadow: 0 0 0 2px #a9bfab; background: #e9e1fa; display: grid; place-items: center; position: relative; }
.pv-photo img { width: 100%; height: 100%; object-fit: cover; }
.pv-mono { font: 600 2rem var(--serif); color: #4b3a78; }
.pv-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #eaf5ee; color: #2f7a4d; }
.pv-pill.waitlist, .pv-pill.lapsed { background: #fdf3df; color: #8a5a00; }
.pv-pill.closed, .pv-pill.away { background: #eee9e8; color: #5a4f4d; }
.pv-name { font: 600 1.45rem/1.2 var(--serif); margin: 10px 0 6px; }
.pv-headline { font-size: 1rem; color: var(--ink-soft); margin: 0 0 8px; }
.pv .is-empty { color: #766e68; font-style: italic; }
.pv-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: .82rem; color: var(--ink-soft); margin: 0 0 12px; }
.pv-meta span[hidden] { display: none; }
.pv-btns { display: flex; gap: 8px; justify-content: center; margin: 0 0 12px; flex-wrap: wrap; }
.pv[data-view="mobile"] .pv-btns { flex-direction: column; }
.pv-b { padding: 9px 14px; border-radius: 10px; border: 1px solid #2a2f55; font-size: .82rem; font-weight: 600; color: #2a2f55; }
.pv-b.main { background: #2a2f55; color: #fff; }
.pv-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0 0 14px; }
.pv-tags span { font-size: .76rem; padding: 3px 10px; border-radius: 999px; background: #f1eefa; color: #4b3a78; }
.pv h4 { font: 600 1.15rem var(--serif); margin: 6px 0; }
.pv-bio { text-align: left; font-size: .88rem; color: var(--ink-soft); margin: 0 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.pv-line { font-size: .82rem; color: var(--ink-soft); margin: 4px 0; }
.pv-line:empty { display: none; }
.pe-dlg { border: 0; border-radius: 20px; padding: 24px; width: min(440px, 92vw); box-shadow: 0 30px 80px rgba(40, 30, 80, .3); }
.pe-dlg::backdrop { background: rgba(40, 30, 80, .4); }
.pe-dlg h2 { margin: 0 0 8px; }
.pe-dlg-end { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
/* overflow: hidden keeps the ring's white veil (its wide box-shadow) on the photo; without it the
   veil spread over the whole dialog and made "Use photo" look disabled */
.crop-box { position: relative; width: 320px; max-width: 100%; margin: 10px auto; overflow: hidden; border-radius: 10px; }
.crop-box canvas { width: 100%; touch-action: none; cursor: grab; border-radius: 10px; background: #fff; display: block; }
.crop-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(255, 255, 255, .55); pointer-events: none; border: 2px solid #fff; outline: 1px solid #a9bfab; }
@media (max-width: 1200px) {
  .pe { grid-template-columns: minmax(0, 1fr) 360px; }
  .pe-nav { display: none; }
}
@media (max-width: 900px) {
  .pe { display: block; }
  .pe-banner { padding: 18px; }
  .pe-banner-end { margin-left: 0; width: 100%; }
  .pe-sec > summary { cursor: pointer; padding: 16px 18px; }
  .pe-sec > summary::after { content: "›"; font-size: 1.6rem; color: var(--ink-soft); transform: rotate(90deg); }
  .pe-sec[open] > summary::after { transform: rotate(-90deg); }
  .pe-sec h2 { font-size: 1.2rem; }
  .pe-body { padding: 0 18px 18px; }
  .pe-form { gap: 10px; }
  .pe-preview { display: none; }
  .pe.show-pv .pe-preview { display: block; position: fixed; inset: 0; z-index: 40; max-height: none; border-radius: 0; border: 0; padding: 16px; }
  .pe.show-pv .pe-pv-close { display: block; }
  .pe-bar-foot { bottom: 69px; }
  .pe-prev-btn { display: inline-flex; }
  .pe-bar-foot .btn { flex: 0 0 auto; }
}


/* ---------- Legal pages ---------- */
.lg { max-width: 780px; margin: 0 auto; }
.lg h1 { margin-bottom: 6px; }
.lg h2 { margin: 34px 0 8px; font-size: 1.5rem; scroll-margin-top: 80px; }
.lg-lead { font-size: 1.15rem; color: var(--ink); }
.lg-draft { background: #fdf3df; border: 1px solid #f0d9a8; border-radius: 12px; padding: 12px 16px; margin: 10px 0; color: #5b3d00; }
.lg-meta { color: var(--ink-soft); font-size: .92rem; margin: 6px 0 14px; }
.lg-blank { background: #fdf3df; border-radius: 4px; padding: 0 4px; }
.lg-toc { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0 6px; padding: 12px 16px; background: #f6f2ff; border-radius: 12px; font-size: .9rem; }
.lg ul { display: grid; gap: 10px; padding-left: 22px; }
.lg-note { background: #f1eefa; border-radius: 12px; padding: 12px 16px; font-size: .95rem; }
.lg-table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: .95rem; }
.lg-table th, .lg-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lg-table th { background: #faf7f2; }
.lg-links { margin-top: 30px; color: var(--ink-soft); }
.lg-crisis { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 18px 0; }
.lg-crisis section { background: #fff; border: 2px solid #e2b1aa; border-radius: 16px; padding: 16px 18px; }
.lg-crisis h2 { margin: 0 0 6px; font-size: 1.15rem; }
.lg-crisis p { margin: 0; }
.lg-agree { margin: 10px 0; display: flex; gap: 8px; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
@media (max-width: 600px) { .lg-table { font-size: .88rem; } }

/* Accessibility: skip link, visible keyboard focus everywhere, headings that look like another level */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible, .btn:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; }
.btn:focus-visible { box-shadow: 0 0 0 5px #fff; }
.as-h1 { font-size: 2.3rem; }
.as-h3 { font-size: 1.25rem; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* Not a fit: reasons */
.rx-nofit form { gap: 6px; }
.rx-nofit .btn { text-align: left; }
.rx-hint { background: var(--lavender); border-radius: 10px; padding: 10px 14px; font-size: .95rem; color: var(--ink); }
.rx-fair { background: #f4eff8; border-left: 4px solid var(--plum); border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; font-size: .95rem; }
.rx-nudge { margin: 0 0 8px; font-size: .9rem; color: var(--ink); background: #fff6e5; border-radius: 8px; padding: 8px 12px; }
.rx-sub { margin: 18px 0 4px; }
/* the checks on an "available" answer: gray sent/delivered, blue opened, green in a circle passed on */
.ck { display: inline-grid; place-items: center; width: 26px; height: 18px; vertical-align: middle; border-radius: 999px; }
.ck svg { width: 22px; height: 13px; fill: none; stroke: #8a8f98; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ck.opened svg { stroke: #1f6fd1; }
.ck.passed { background: #2f7a4a; width: 30px; height: 20px; }
.ck.passed svg { stroke: #fff; }
.ck-word { font-size: .78rem; color: var(--ink-soft); margin: 0 4px 0 2px; }
.ck-help { display: inline-block; position: relative; vertical-align: middle; font-size: .9rem; font-weight: 400; font-family: var(--sans, inherit); }
.ck-help > summary { list-style: none; cursor: pointer; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--ink-soft); color: var(--ink-soft);
  display: grid; place-items: center; font-size: .75rem; font-weight: 700; font-style: italic; }
.ck-help > summary::-webkit-details-marker { display: none; }
.ck-pop { position: absolute; z-index: 5; left: -8px; top: 26px; width: min(300px, 80vw); background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 8px 22px rgba(0,0,0,.1); padding: 12px 14px; color: var(--ink); line-height: 1.45; }
.ck-pop p { margin: 0 0 8px; font-size: .88rem; }
.ck-pop ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rx-who li.passed { opacity: .6; }
.rx-who li.passed b { text-decoration: none; }
.rx-tick { display: inline-block; }
.rx-cap { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.rx-cap select { width: auto; }
.rx-mark { display: inline-flex; align-items: center; gap: 2px; }
.rx-pool-on { background: var(--lavender); border-radius: 10px; padding: 10px 14px; font-size: .95rem; }
.rx-widen .check-line { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; font-size: .95rem; }

/* Openings */
.av-openings { margin-top: 14px; max-width: 360px; }
.av-openings select { width: 100%; }

/* ---------- photographs: the home slider and the page heroes ---------- */
.h-hero { padding: 0; }
.h-slider { position: relative; }
.h-slides { position: relative; aspect-ratio: 2 / 1; overflow: hidden; background: #dfe6da; }
.h-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.h-slides img.was { opacity: 1; z-index: 1; }
.h-slides img.on { opacity: 1; z-index: 2; }
.h-say { padding: 20px 16px 0; text-align: center; }
.h-slide-cap { margin: 0; font: 600 2.3rem/1.05 var(--serif); color: var(--ink); }
.h-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; min-height: 46px; padding: 0 24px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; }
.h-go:hover { background: var(--accent-dark); }
.h-slider-bar { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; min-height: 44px; }
.h-dots { display: none; gap: 2px; }
.h-slider.ready .h-dots { display: flex; }
.h-dots button { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.h-dots button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #c3cdbf; transition: background .3s, transform .3s; }
.h-dots button[aria-current="true"]::before { background: var(--accent); transform: scale(1.35); }
.h-pause { display: none; width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; place-items: center; padding: 0; }
.h-slider.ready .h-pause { display: grid; }
.h-pause svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.h-pause .i-play, .h-slider.paused .i-pause { display: none; }
.h-slider.paused .i-play { display: block; }
.h-scroll { display: none; }

/* wide screens: the photo fills the top of the page and the menu sits on it */
@media (min-width: 901px) {
  .home-body { position: relative; }
  .h-slides { max-height: 100vh; min-height: 560px; width: 100%; }
  .h-slides::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
    background: linear-gradient(180deg, rgba(251, 251, 246, .35) 0, rgba(251, 251, 246, 0) 18%, rgba(251, 251, 246, 0) 80%, rgba(251, 251, 246, .9) 97%, var(--cream) 100%); }
  .h-say { position: absolute; z-index: 4; left: 50%; top: 21%; transform: translateX(-50%); padding: 0; width: max-content; max-width: 60vw; }
  .h-slide-cap { font-size: clamp(2.3rem, 3.9vw, 4.2rem); color: #fff; text-shadow: 0 2px 22px rgba(20, 40, 28, .6), 0 1px 3px rgba(20, 40, 28, .45); }
  .h-go { margin-top: 16px; background: rgba(255, 255, 255, .92); color: var(--accent-dark); box-shadow: 0 8px 26px rgba(20, 40, 28, .22); }
  .h-go:hover { background: #fff; }
  .h-slider-bar { position: absolute; z-index: 4; right: 40px; bottom: 26px; margin: 0; }
  .h-scroll { position: absolute; z-index: 4; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px;
    font: italic 600 1.25rem/1 var(--serif); color: var(--plum); text-decoration: none; }
  .h-scroll span { display: flex; align-items: center; gap: 22px; white-space: nowrap; }
  .h-scroll span::before, .h-scroll span::after { content: ""; width: 110px; height: 1px; background: currentColor; opacity: .55; transform: translateY(26px); }
  .h-scroll svg { width: 32px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
}
@media (prefers-reduced-motion: reduce) { .h-slides img { transition: none; } }

.pg-hero { padding: 40px 0 8px; }
.pg-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.pg-hero h1 { font-size: clamp(2.5rem, 4.6vw, 4rem); font-weight: 700; line-height: 1.02; letter-spacing: -.01em; margin: 8px 0 18px; }
.pg-photo, .d-photo { width: 100%; height: auto; display: block; border-radius: 24px; box-shadow: 0 26px 60px rgba(42, 60, 50, .16); }

/* ---------- How It Works ---------- */
.hw-tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 56px; }
.hw-track { display: flex; flex-direction: column; background: #f2f7f1; border: 1px solid #d3e3d6; border-radius: 26px; padding: 36px 38px; }
.hw-track + .hw-track { background: #f5f1fa; border-color: var(--lavender-2); }
.hw-track + .hw-track .eyebrow { color: var(--plum); }
.hw-track h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin: 0; }
.hw-steps { list-style: none; counter-reset: step; padding: 0; margin: 24px 0 0; display: grid; gap: 22px; flex: 1; align-content: start; }
.hw-steps li { counter-increment: step; position: relative; padding-left: 60px; color: var(--ink-soft); }
.hw-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff;
  font: 700 1.35rem/42px var(--serif); text-align: center; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.hw-track + .hw-track .hw-steps li::before { background: var(--plum); }
.hw-steps strong { display: block; color: var(--ink); font-size: 1.1rem; margin-bottom: 2px; }
.hw-note { margin: 24px 0 0; font-weight: 600; }
.hw-track .h-actions { margin-top: 20px; }
.hw-plain { max-width: 760px; margin: 0 auto; text-align: center; color: var(--ink-soft); }

/* ---------- Our Community ---------- */
.oc-room, .oc-share, .oc-care { margin-top: 84px; }
.oc-lead { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.6; max-width: 46em; }
.oc-stats { margin: 18px 0 0; }
.oc-share .ft-benefits { margin-top: 30px; }
.ft-benefits h3 { font-size: 1.5rem; line-height: 1.2; margin: 6px 0 0; }
.oc-care { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; margin-bottom: 84px; }
.oc-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.oc-rules li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; color: var(--ink-soft); }
.oc-rules strong { color: var(--ink); }

@media (max-width: 960px) {
  .pg-hero-grid, .d-hero-top, .hw-tracks, .oc-care { grid-template-columns: 1fr; gap: 24px; }
  .oc-room, .oc-share, .oc-care { margin-top: 64px; }
}
@media (max-width: 600px) {
  .pg-hero { padding-top: 22px; }
  .pg-photo, .d-photo { border-radius: 18px; }
  .hw-track { padding: 26px 22px; }
  .hw-steps li { padding-left: 52px; }
}

/* ---------- wordmark: the name in plum under a gold swirl ---------- */
.brand-word { display: block; height: 62px; width: auto; }
.top.public .brand { gap: 4px; }
.top.public .brand-sub { padding-left: 2px; }
@media (min-width: 901px) {
  .home-body .top.public .brand-sub { display: none; }
}
@media (max-width: 600px) { .brand-word { height: 46px; } }

/* ---------- top bar (2026-11-22): a frosted bar that reads over the photo, four items, clients first ---------- */
html { scroll-padding-top: 96px; }
.top.public { position: sticky; top: 0; z-index: 50; background: rgba(251, 251, 246, .9);
  -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid rgba(42, 47, 85, .09); transition: box-shadow .25s ease, background-color .25s ease; }
.top.public.scrolled { background: rgba(251, 251, 246, .97); box-shadow: 0 8px 30px rgba(42, 47, 85, .1); }
.top.public .top-inner { max-width: 1320px; padding: 12px 32px; gap: 28px; }
.top.public .brand-word { height: 54px; }
.public-menu { gap: 22px; }
.public-nav { display: flex; align-items: center; justify-content: center; gap: 4px; }
.nav-top { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border: 0; border-radius: 999px;
  background: none; font: 600 1.02rem/1.2 var(--sans); color: var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap; }
.nav-top:hover, .nav-group.open > .nav-top { background: rgba(236, 229, 246, .9); color: var(--ink); }
/* The page you're on: green words and a green underline. The background is set here on purpose:
   the older `nav a.on` rule (navy fill, for the colleague-network bar) also matches this link, and
   without it "Looking for Therapy" showed dark green on navy (Lex, 2026-11-24). */
.nav-top.on, .nav-group.on > .nav-top { color: var(--accent-dark); background: transparent; }
.nav-top.on:hover, .nav-group.on.open > .nav-top { background: rgba(236, 229, 246, .9); }
.nav-top.on::after, .nav-group.on > .nav-top::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--accent); }
.chev { width: 11px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.nav-group { position: relative; }
.nav-group.open .chev { transform: rotate(180deg); }
.nav-drop { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); width: 330px; display: none; gap: 2px; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 10px; box-shadow: 0 28px 70px rgba(42, 47, 85, .18); }
.nav-drop::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-group.open .nav-drop { display: grid; }
.nav-drop a { display: block; padding: 11px 14px; border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; white-space: normal; }
.nav-drop a small { display: block; margin-top: 2px; font-weight: 400; font-size: .86rem; color: var(--ink-soft); }
.nav-drop a:hover, .nav-drop a:focus-visible { background: #f5f1fa; }
.top-actions { gap: 10px; }
.top.public .top-actions .small-btn { padding: 10px 20px; font-size: .98rem; }
.top.public .top-actions .btn.quiet { background: #fff; }
.top.public .top-actions .btn.quiet:hover { background: var(--lavender); }
@media (hover: hover) and (min-width: 1121px) {
  .nav-group:hover .nav-drop { display: grid; }
  .nav-group:hover .chev { transform: rotate(180deg); }
}
/* wide screens: on the home page the bar floats over the photo and stays as you scroll */
@media (min-width: 901px) {
  .home-body .top.public { position: fixed; top: 0; left: 0; right: 0; background: rgba(251, 251, 246, .8); }
  .home-body .top.public.scrolled { background: rgba(251, 251, 246, .97); }
  .home-body .top.public .top-inner { max-width: 1440px; padding: 12px 40px; }
  .home-body .brand-word { height: 60px; }
}
@media (min-width: 1121px) and (max-width: 1260px) {
  .top.public .top-inner, .home-body .top.public .top-inner { padding-left: 20px; padding-right: 20px; gap: 16px; }
  .top.public .brand-sub { display: none; }
  .top.public .brand-word, .home-body .brand-word { height: 48px; }
  .public-menu { gap: 10px; }
  .nav-top { padding: 9px 11px; font-size: .95rem; }
  .nav-top.on::after, .nav-group.on > .nav-top::after { left: 11px; right: 11px; }
  .top.public .top-actions .small-btn { padding: 9px 14px; font-size: .92rem; }
  .search-link { display: none; }
}
@media (min-width: 1261px) and (max-width: 1420px) {
  .top.public .top-inner, .home-body .top.public .top-inner { padding-left: 24px; padding-right: 24px; gap: 20px; }
  .top.public .brand-sub { display: none; }
  .search-link { display: none; }
}
/* below 1120px the menu button opens a panel; the two menus show as labelled lists */
@media (max-width: 1120px) {
  .menu-toggle { display: block; }
  .public-menu { display: none; position: absolute; left: 16px; right: 16px; top: calc(100% - 6px); flex-direction: column; align-items: stretch; gap: 14px;
    background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: 0 20px 50px rgba(42, 47, 85, .16);
    max-height: calc(100vh - 96px); overflow-y: auto; }
  .menu-open .public-menu { display: flex; }
  .public-nav { flex-direction: column; align-items: stretch; }
  .public-nav a { padding: 12px 14px; font-size: 1.05rem; border-radius: 12px; }
  .top-actions { flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; }
  .top-actions .btn { flex: 1; text-align: center; padding: 12px; }
  .search-link { display: none; }
  .top.public .top-inner { padding: 10px 24px; }
  .top.public .brand-sub { display: none; }
  .nav-top { width: 100%; justify-content: flex-start; padding: 12px 14px; font-size: 1.05rem; border-radius: 12px; }
  .nav-top.on::after, .nav-group.on > .nav-top::after { display: none; }
  a.nav-top.on { background: #e6f0e7; color: var(--accent-dark); }   /* in the menu panel: a soft green row */
  .nav-group-btn { pointer-events: none; padding: 14px 14px 4px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
  .nav-group.on > .nav-group-btn { color: var(--ink-soft); }
  .nav-group-btn .chev { display: none; }
  .nav-drop { position: static; transform: none; display: grid; width: auto; border: 0; box-shadow: none; padding: 0; background: none; }
  .nav-drop::before { display: none; }
  .nav-drop a { padding: 10px 14px; font-size: 1.05rem; }
  .nav-drop a small { display: none; }
}
@media (min-width: 701px) and (max-width: 1120px) { .public-menu { left: auto; width: 380px; right: 24px; } }
@media (max-width: 1120px) { .public-nav > .nav-group { order: 1; } }   /* How It Works sits with Looking for Therapy, above the two lists */
@media (max-width: 600px) {
  .top.public .brand-word { height: 44px; }
  .top.public .top-inner { padding: 10px 16px; }
  .top.public .top-actions .btn { flex: 1 1 100%; }
}
/* keep the sprig decoration inside the page so the home page never scrolls sideways */
@media (max-width: 1340px) { .h-flow-sprig { right: -4px; } }

/* ---------- Insights (/me/insights) and the Call page ---------- */
.insights-page { display: grid; gap: 18px; }
.in-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.in-head p { margin: 0; }
.in-range { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; background: #fff; }
.in-range a { padding: 7px 14px; text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .92rem; }
.in-range a.on { background: var(--plum); color: #fff; }
.in-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.in-tile { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.in-tile-label { font-weight: 600; }
.in-delta { color: var(--ink-soft); }
.in-delta.up { color: var(--ok); }
.in-delta.down { color: var(--rust); }
.in-chart { display: flex; align-items: flex-end; gap: 2px; height: 160px; margin-top: 12px; border-bottom: 1px solid var(--line); }
.in-day { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; position: relative; min-width: 2px; }
.in-day .bar { position: absolute; bottom: 0; left: 0; right: 0; border-radius: 3px 3px 0 0; }
.in-day .bar.view { background: var(--lavender-2); }
.in-day .bar.reach { background: var(--plum); left: 25%; right: 25%; }
.in-axis { display: flex; justify-content: space-between; margin-top: 4px; }
.in-phone { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 12px 0; padding: 10px 12px; border: 1px solid var(--line, #e3dfe6); border-radius: 10px; }
.info-pop { margin: 4px 0 12px; }
.info-pop > summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: .9rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.info-pop > summary::-webkit-details-marker { display: none; }
.info-pop .info-i { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1.5px solid currentColor; border-radius: 50%; font: italic 700 .8rem Georgia, serif; text-decoration: none; }
.info-pop > div { margin-top: 8px; padding: 12px 14px; border: 1px solid var(--line, #e3dfe6); border-radius: 10px; font-size: .9rem; }
.info-pop > div p { margin: 0 0 8px; }
.info-pop > div p:last-child { margin-bottom: 0; }
.in-legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 8px 0 0; }
.in-legend .key { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.in-legend .key:first-child { margin-left: 0; }
.in-legend .key.view { background: var(--lavender-2); }
.in-legend .key.reach { background: var(--plum); }
.in-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.in-cols > .card { margin: 0; }
.in-bars { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 10px; }
.in-bars li { display: grid; grid-template-columns: minmax(0, 11em) 1fr 2.5em; gap: 10px; align-items: center; }
.in-bar { height: 10px; background: var(--cream-2); border-radius: 99px; overflow: hidden; }
.in-bar > span { display: block; height: 100%; background: var(--plum); border-radius: 99px; }
.in-bars strong { text-align: right; }
.in-colleagues { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.in-colleagues > div { background: var(--lavender); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.mid-num { font: 600 2rem/1 var(--serif); color: var(--ink); }
.in-sub { margin-top: 18px; font-size: 1.2rem; }
.in-people { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.in-privacy { margin: 0; }
@media (max-width: 900px) {
  .in-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .in-colleagues { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .in-cols { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .in-bars li { grid-template-columns: 1fr 2.5em; }
  .in-bars .in-bar { grid-column: 1 / -1; grid-row: 2; }
}
.call-card { text-align: center; display: grid; gap: 12px; justify-items: center; }
.call-label { margin: 0; font-weight: 600; }
.call-number { font: 600 2.4rem/1.1 var(--serif); color: var(--ink); text-decoration: none; }

/* Referral walkthrough, community pitch and the states note on the therapist page. */
.ft-walk { margin-top: 88px; }
.ft-walk h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 6px; }
.ft-walk .h-flows { margin-top: 28px; }
.ft-plain { color: var(--ink-soft); margin: 16px 0 0; }
.ft-states { display: flex; gap: 22px; align-items: center; max-width: 760px; margin: 36px auto 0; padding: 22px 26px; text-align: left;
  background: #f2f7f1; border: 1px solid #d3e3d6; border-radius: 20px; }
.ft-states .ring { flex: 0 0 60px; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: var(--accent);
  background: radial-gradient(circle at 35% 30%, #fff, #e6f0e7); border: 1px solid #c9dfcf; }
.ft-states .ring svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ft-states h3 { font-size: 1.3rem; margin: 0 0 4px; }
.ft-states p { margin: 0; color: var(--ink-soft); }
.tier-gets { font-weight: 700; }
.tier-art { width: 150px; height: auto; margin: 0 0 6px; }

/* Sample practice page and sample board: pictures of the product, not live parts of it. */
.gp-sample { margin-top: 72px; }
.gp-demo, .cm-demo { margin: 14px auto 0; max-width: 760px; background: #fff; border: 1px solid #e4e8dd; border-radius: 20px; overflow: hidden;
  text-align: left; box-shadow: 0 30px 70px rgba(80, 60, 140, .16); }
.gp-demo figcaption, .cm-demo figcaption { text-align: center; font-size: .78rem; color: var(--ink-soft); padding: 8px 12px; border-top: 1px solid #e6e9df; background: #fafbf7; }
.gp-demo-body { display: grid; grid-template-columns: .9fr 1.1fr; }
.gp-demo-head { padding: 26px 28px; background: #f5f1fa; }
.gp-demo-head p { margin: 0 0 10px; }
.gp-demo-name { font: 700 1.6rem/1.15 var(--serif); }
.gp-demo-meta, .gp-demo-about { color: var(--ink-soft); font-size: .92rem; }
.gp-demo-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.gp-demo-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px !important; }
.gp-demo-btns span { font-size: .85rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.gp-demo-btns span.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.gp-demo-list { padding: 12px 24px 20px; }
.gp-demo-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #eef0e8; }
.gp-demo-row .avatar { flex: 0 0 38px; width: 38px; height: 38px; font-size: .85rem; }
.gp-demo-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gp-demo-who small { color: var(--ink-soft); font-size: .8rem; }
.gp-demo-row .pill { margin: 0; white-space: nowrap; }
.oc-board { margin-top: 84px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.oc-board h2 { margin-top: 0; }
.cm-demo { margin: 0; max-width: none; }
.cm-demo-body { padding: 18px; background: var(--cream); }
.cm-demo .cm-cats { grid-template-columns: repeat(4, 1fr); }
.cm-demo .cm-card { margin-bottom: 12px; padding: 16px 18px; }
.cm-demo .cm-card:last-child { margin-bottom: 0; }
.cm-demo .cm-card h3 { margin: 10px 0 6px; font-size: 1.2rem; line-height: 1.2; }

/* Share your profile, on Insights. */
.in-share textarea { width: 100%; margin: 4px 0 8px; }
.in-share-tabs { display: inline-flex; gap: 4px; padding: 4px; margin: 4px 0 12px; border-radius: 999px; background: var(--lavender); }
.in-share-tabs button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font: 600 .88rem var(--sans); color: var(--ink); cursor: pointer; }
.in-share-tabs button.on { background: #fff; box-shadow: 0 1px 4px rgba(60, 40, 90, .15); }
.in-share label { display: block; font-weight: 600; }
.in-share-link { margin: 0 0 12px; overflow-wrap: anywhere; }
.in-share-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }

/* About page. */
.ab-photo { margin: 0; }
.ab-photo img { width: 100%; height: auto; display: block; border-radius: 24px; box-shadow: 0 26px 60px rgba(42, 60, 50, .16); }
.ab-photo figcaption { margin-top: 10px; font-size: .82rem; color: var(--ink-soft); text-align: right; }
.ab-letter { margin-top: 72px; max-width: 760px; }
.ab-letter p:not(.eyebrow) { font-size: 1.18rem; line-height: 1.7; margin: 0 0 1.1em; }
.ab-sign { font: 600 1.3rem/1.5 var(--serif); }
.ab-sign a { font: 600 1rem var(--sans); color: var(--accent); text-decoration: none; }
.ab-facts { margin: 72px auto; }
.ab-facts h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 24px; max-width: 22em; }
.ab-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ab-stats article { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px 26px; }
.ab-stats strong { display: block; font: 700 2.3rem/1.1 var(--serif); color: var(--accent); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.ab-stats p { margin: 8px 0 0; }
@media (max-width: 900px) {
  .oc-board, .gp-demo-body, .ab-stats { grid-template-columns: 1fr; }
  .oc-board { gap: 24px; margin-top: 64px; }
  .cm-demo .cm-cats { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .cm-demo .cm-cat { flex: none; }
  .ft-states { flex-direction: column; align-items: flex-start; }
  .ft-walk { margin-top: 64px; }
}

/* Staff pages: a referral team's search, shared lists, team and activity. */
.inst-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.inst-tabs .qf { text-decoration: none; }
.inst-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 18px; }
.inst-more { border-top: 1px solid var(--line); padding: 10px 0 4px; }
.inst-more summary { cursor: pointer; font-weight: 600; }
#inst-filters fieldset { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.inst-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.inst-row > div { flex: 1; min-width: 0; }
.inst-pick { padding-top: 4px; cursor: pointer; }
.inst-pick input { width: 22px; height: 22px; accent-color: var(--accent); margin: 0; }
.inst-share { position: sticky; bottom: 12px; box-shadow: 0 10px 30px rgba(42, 47, 85, .14); }
.inst-share-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.inst-share-row select { width: auto; }
.inst-share textarea { width: 100%; margin-top: 10px; }
.table-scroll { overflow-x: auto; }
.inst-table { width: 100%; border-collapse: collapse; }
.inst-table th, .inst-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.inst-table thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.sheet { max-width: 720px; margin: 0 auto; }
.sheet .card { margin-bottom: 14px; }
@media (max-width: 640px) { .inst-share { position: static; } }

/* The pass cards: Founding members and early passes. Plain since 2026-11-21 (Lex: "a little too
   cute"); each links to the founding page. */
.pass-cards { display: flex; flex-direction: column; gap: 14px; }
.pass-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px 16px; }
.pass-card.early { background: #faf8fd; border-color: var(--lavender-2); }
.pass-card > p { margin: 0; }
.pass-kind { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.pass-card.early .pass-kind { color: var(--plum); }
.pass-card > .pass-count { margin-top: 6px; display: flex; align-items: baseline; gap: 4px 8px; flex-wrap: wrap; }
.pass-num { font: 600 2.6rem/1 var(--serif); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.pass-of { color: var(--ink-soft); font-size: .95rem; }
.pass-claimed { font-size: .85rem; color: var(--ink-soft); }
.pass-card > .pass-deal { margin-top: 10px; font-size: .95rem; line-height: 1.45; }
.pass-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; letter-spacing: .04em;
  background: var(--lavender); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.pass-go { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--accent); text-decoration: none; }
.pass-go:hover { text-decoration: underline; }
.pass-card > .pass-mine { margin-top: 10px; font-size: .88rem; font-weight: 700; color: var(--accent); }
.pass-mine[hidden] { display: none; }
.pass-card.done .pass-num { color: var(--ink-soft); }
.pass-num.tick { animation: pass-tick .6s ease-out; }
@keyframes pass-tick { 0% { color: var(--accent); transform: translateY(-3px); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .pass-num.tick { animation: none; } }

/* The founding page */
.fo-hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: center; }
.fo-section { margin-top: 72px; }
.fo-section h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 18px; max-width: 26em; }
.fo-section h3 { font-size: 1.35rem; margin: 28px 0 8px; }
.fo-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.fo-grid h3 { margin-top: 0; }
.fo-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.fo-box.early { background: #faf8fd; border-color: var(--lavender-2); }
.fo-box p { margin: 0 0 8px; }
.fo-big { font: 600 3rem/1.05 var(--serif); color: var(--accent); }
.fo-code { display: inline-block; font: 700 1.6rem/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .06em;
  background: var(--lavender); color: var(--ink); padding: 8px 14px; border-radius: 10px; }
.fo-steps { margin-top: 12px; max-width: 44em; }
.fo-note { max-width: 44em; margin: 22px 0; padding: 14px 18px; background: var(--cream-2); border-radius: 12px;
  font-size: .95rem; color: var(--ink-soft); }
.fo-note strong { color: var(--ink); }
.fo-rules ul { max-width: 46em; padding-left: 20px; display: grid; gap: 8px; }
@media (max-width: 860px) {
  .fo-hero, .fo-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .fo-passes .pass-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .fo-section { margin-top: 52px; }
}

/* Why Join: the comparison, with the two pass cards on its right */
.wj-split { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 28px; align-items: start; }
.wj-split .wj-table { grid-column: 1; grid-row: 1; min-width: 0; }
.wj-split .wj-passes { grid-column: 2; grid-row: 1; position: sticky; top: 24px; margin-top: 22px; }
@media (max-width: 1060px) {
  .wj-split { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .wj-split .wj-table, .wj-split .wj-passes { grid-column: 1; grid-row: auto; }
  .wj-split .wj-passes { position: static; }
  .wj-passes .pass-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* The join page: a big title, the form, and a slim Founder counter on the right */
.join-page { max-width: 940px; margin: 0 auto; }
.join-head { margin: 4px 0 26px; }
.join-kicker { margin: 0 0 4px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.join-head h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: .15em; }
.join-head p { max-width: 600px; margin: 0; font-size: 1.05rem; }
.join-grid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 36px; align-items: start; }
.join-main { grid-column: 1; grid-row: 1; min-width: 0; }
.join-side { grid-column: 2; grid-row: 1; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 10px; }
.join-side .pass-card { padding: 14px 16px; }
.join-side .pass-num { font-size: 2.2rem; }
.join-side .pass-card > .pass-deal { font-size: .88rem; }
.join-side-note { margin: 0; font-size: .85rem; line-height: 1.4; color: var(--ink-soft); text-align: center; }
.join-go { display: block; width: 100%; padding: 14px 18px; font-size: 1.08rem; }
@media (max-width: 760px) {
  .join-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .join-main, .join-side { grid-column: 1; grid-row: auto; }
  .join-side { position: static; }
  .join-side .pass-cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .join-side .pass-card { padding: 12px; }
  .join-side .pass-kind { font-size: .66rem; letter-spacing: .08em; }
  .join-side .pass-num { font-size: 1.8rem; }
  .join-side .pass-of, .join-side .pass-claimed, .join-side .pass-card > .pass-deal { font-size: .8rem; }
}

/* A group practice's public page. Rebuilt 2026-11-24 (Lex: "more robust and pretty"): a wider page,
   an "At a glance" panel in the hero's right column, the team, clinicians' videos, and what the practice
   offers rolled up from its clinicians' own profiles (core.practice_offer). A sticky "How to get
   started" card fills the right column below the hero. */
main.pp-page { max-width: 1180px; }
.pp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink-soft); margin: 0 0 14px; }
.pp-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px 40px; align-items: start;
  padding: 34px; margin-bottom: 36px; border: 1px solid var(--lavender-2); border-radius: 26px;
  background: linear-gradient(135deg, var(--lavender) 0, #fff 50%, #f2f6ef 100%);
  box-shadow: 0 24px 60px -44px rgba(42, 47, 85, .55); }
.pp-hero-main { min-width: 0; }
.pp-hero.solo { grid-template-columns: minmax(0, 1fr); }   /* no clinicians listed: nothing to sum up */
.pp-id { display: flex; gap: 22px; align-items: center; margin-bottom: 20px; }
.pp-id h1 { font-size: 2.7rem; margin-bottom: .08em; }
.pp-id .eyebrow { margin-bottom: .25em; }
.pp-meta { color: var(--ink-soft); margin: 0; }
.pp-id .badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pp-id .badges .pill { margin: 0; }
.pill.pp-pill-video { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--lavender-2);
  color: var(--plum); font-weight: 600; text-decoration: none; }
.pill.pp-pill-video:hover { background: var(--lavender); }
.pp-pill-video .ico { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.pp-logo { width: 104px; height: 104px; flex: none; border-radius: 20px; object-fit: contain; background: #fff;
  border: 1px solid var(--line); padding: 8px; box-shadow: 0 10px 24px -18px rgba(42, 47, 85, .6); }
.pp-mono { display: grid; place-items: center; font: 600 2.3rem var(--serif); color: #fff; padding: 0;
  background: linear-gradient(135deg, var(--plum), var(--ink)); border: 0; }
.pp-about { margin: 0 0 20px; max-width: 64ch; white-space: pre-line; font-size: 1.04rem; line-height: 1.65; }
.pp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pp-actions .btn.quiet { background: rgba(255, 255, 255, .8); }
.pp-actions .btn.quiet:hover { background: var(--lavender); }

.pp-glance { background: rgba(255, 255, 255, .88); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px 22px;
  box-shadow: 0 14px 34px -28px rgba(42, 47, 85, .5); }
.pp-glance h2 { font: 700 .76rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.pp-glance ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pp-glance li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; }
.pp-glance li > .ico { width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: #e6f0e7; color: var(--accent); stroke-width: 1.8; }
.pp-glance strong { display: block; font-size: .98rem; line-height: 1.3; }
.pp-glance small { display: block; margin-top: 2px; color: var(--ink-soft); font-size: .87rem; line-height: 1.4; overflow-wrap: anywhere; }

.pp-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.pp-col { min-width: 0; }
.pp-side { position: sticky; top: 100px; display: grid; gap: 16px; }
.pp-section { margin-bottom: 40px; }
.pp-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 14px; }
.pp-sec-head h2 { margin: 0; font-size: 2rem; }
.pp-sec-head p { margin: 0; }
.pp-sub { font: 700 .76rem var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-soft); margin: 24px 0 10px; }
.pp-sec-head + .pp-sub { margin-top: 4px; }
.pp-stack { display: grid; gap: 14px; }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.pp-person { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 18px; transition: box-shadow .2s ease, border-color .2s ease; }
.pp-person:hover { border-color: var(--lavender-2); box-shadow: 0 16px 36px -28px rgba(42, 47, 85, .55); }
.pp-person.big { grid-template-columns: 140px minmax(0, 1fr); gap: 26px; padding: 26px; border-color: var(--lavender-2);
  box-shadow: 0 16px 40px -30px rgba(42, 47, 85, .55); }
.pp-person.big .avatar { width: 140px; height: 140px; font-size: 2.6rem; }
.pp-person h3 { margin: 0; font-size: 1.3rem; }
.pp-person.big h3 { font-size: 1.75rem; }
.pp-person h3 a { color: var(--ink); text-decoration: none; }
.pp-person h3 a:hover { text-decoration: underline; }
.pp-role { font: 600 .76rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 2px; }
.pp-cred { color: var(--ink-soft); font-size: .92rem; margin: 2px 0 8px; }
.pp-cred .check { color: var(--accent); margin-right: 4px; }
.pp-bio { font-size: .97rem; margin: 10px 0 8px; }
.pp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.pp-tags .pill { margin: 0; }
.pp-facts-row { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--ink-soft); }
.pp-facts-row li { display: inline-flex; align-items: center; gap: 6px; }
.pp-facts-row .ico { width: 16px; height: 16px; color: var(--plum); }
.pp-facts-row a { display: inline-flex; align-items: center; gap: 6px; color: var(--plum); font-weight: 600; }
.pp-facts-row a .ico { fill: currentColor; stroke: none; width: 13px; height: 13px; }
.pp-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: .92rem; margin: 14px 0 0; }
.pp-links .btn { font-size: .92rem; }

.pp-vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; align-items: start; }
.pp-vid { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 12px; }
.pp-vid .pf-video { border-radius: 14px; }
.pp-vid .pf-video-up.tall { max-width: none; width: 100%; margin: 0; }   /* the profile's auto margins would shrink it to nothing in a grid */
.pp-vid .pf-play-ic { width: 60px; height: 60px; }
.pp-vid .pf-play-ic .ico { width: 26px; height: 26px; }
.pp-vid figcaption { display: grid; gap: 2px; padding: 12px 6px 4px; }
.pp-vid figcaption a { color: var(--ink); text-decoration: none; }
.pp-vid figcaption a:hover { text-decoration: underline; }
.pp-vid-text summary { cursor: pointer; color: var(--plum); font-weight: 600; font-size: .9rem; margin-top: 4px; }
.pp-vid-text p { margin: 8px 0 0; padding: 10px 14px; border-left: 3px solid var(--plum); background: var(--lavender);
  border-radius: 0 10px 10px 0; font-size: .94rem; white-space: pre-line; }
/* One video: the clip beside its caption, so a phone-shaped video doesn't leave half the column empty */
.pp-vids.one { grid-template-columns: minmax(0, 1fr); }
.pp-vids.one .pp-vid.tall { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: center; padding: 16px; }
.pp-vids.one .pp-vid.tall figcaption { padding: 0; align-self: center; }
.pp-vids.one .pp-vid.tall figcaption a strong { font: 600 1.5rem var(--serif); }

.pp-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px 30px; }
.pp-card h2 { font-size: 1.8rem; margin-bottom: .15em; }
.pp-card > .muted { margin: 0; }
.pp-chips { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pp-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--lavender); color: var(--ink); font-weight: 600; font-size: .93rem; }
.pp-chips.soft li { background: var(--cream-2); font-weight: 500; }
.pp-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: #fff; color: var(--plum); font-size: .76rem; font-weight: 700; }
.pp-more summary { cursor: pointer; color: var(--plum); font-weight: 600; margin-top: 12px; }
.pp-dl { margin: 14px 0 0; }
.pp-dl > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); }
.pp-dl > div:first-child { border-top: 0; padding-top: 4px; }
.pp-dl dt { display: flex; align-items: center; gap: 10px; font-weight: 700; align-self: start; }
.pp-dl dt .ico { width: 20px; height: 20px; color: var(--plum); }
.pp-dl dd { margin: 0; }
.pp-dl dd small { display: block; margin-top: 3px; color: var(--ink-soft); font-size: .88rem; }

.pp-start, .pp-coord { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.pp-start { border-color: #b5d0bd; box-shadow: 0 20px 46px -34px rgba(47, 96, 68, .6); }
.pp-start h2 { font-size: 1.55rem; margin-bottom: .7em; }
.pp-start ol { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.pp-start li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; font-size: .95rem; line-height: 1.45; }
.pp-start li strong { display: block; }
.pp-start .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: .86rem; }
.pp-start .btn { width: 100%; margin: 0 0 8px; text-align: center; gap: 6px; }
.pp-start .btn.quiet { background: #fff; }
.pp-start .btn.quiet:hover { background: var(--lavender); }
.pp-coord { border-color: var(--lavender-2); }
.pp-coord-q { font: 600 1.25rem var(--serif); margin-bottom: 10px; }
.pp-coord-who { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.pp-coord-who small { display: block; color: var(--ink-soft); }
.pp-foot { margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.pm-logo { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.pm-logo-edit { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pm-title { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pm-title input[name="title_own"], .pm-title input[name="title"] { max-width: 180px; }
@media (max-width: 1000px) {
  .pp-hero { grid-template-columns: minmax(0, 1fr); padding: 28px; }
  .pp-glance ul { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .pp-body { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pp-side { position: static; margin-bottom: 36px; }
}
@media (max-width: 760px) {
  .pp-hero { padding: 20px; border-radius: 20px; margin-bottom: 28px; }
  .pp-id { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 16px; }   /* the name gets the full width */
  .pp-id h1 { font-size: 2rem; }
  .pp-logo { width: 64px; height: 64px; border-radius: 16px; padding: 6px; }
  .pp-mono { font-size: 1.6rem; padding: 0; }
  .pp-about { font-size: 1rem; }
  .pp-actions .btn { flex: 1 1 100%; text-align: center; }
  .pp-glance { padding: 18px; }
  .pp-sec-head h2 { font-size: 1.7rem; }
  .pp-grid { grid-template-columns: minmax(0, 1fr); }
  .pp-person { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .pp-person .avatar.thumb { width: 56px; height: 56px; }
  .pp-person.big { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 18px; }
  .pp-person.big .avatar { width: 84px; height: 84px; font-size: 1.8rem; }
  .pp-person.big h3 { font-size: 1.45rem; }
  .pp-links .btn { flex: 1 1 100%; text-align: center; }
  .pp-vids { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .pp-vids.one .pp-vid.tall { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pp-vids.one .pp-vid.tall .pf-video { max-width: 300px; width: 100%; margin: 0 auto; }
  .pp-card { padding: 20px; border-radius: 18px; }
  .pp-dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* The private invite card on a member's own home page */
.inv-card { display: grid; gap: 8px; }
.inv-card .inv-count { display: inline-block; }
.inv-card progress { width: 100%; max-width: 320px; height: 8px; accent-color: var(--accent, #2f6f5e); }
.inv-card .inv-link { flex: 1 1 220px; min-width: 0; font-size: .85rem; }
.inv-card form { margin: 0; }

/* Report a problem: one reason per line */
.report-reasons label { display: flex; gap: 8px; align-items: center; margin: 6px 0; }

/* The invite page: invite by email, then who joined, each with a green check (Lex, 2026-11-20) */
.inv-page { display: grid; gap: 18px; }
.inv-hero { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 24px; align-items: center; }
.inv-hero h1 { margin: 0 0 10px; }
.inv-hero p { margin: 0 0 10px; font-size: 1.05rem; }
.inv-art { width: 100%; max-width: 170px; height: auto; justify-self: end; }
.inv-art .a-bg { fill: var(--lavender); }
.inv-art .a-back { fill: #4f3a7a; }
.inv-art .a-paper { fill: #fff; stroke: var(--ink); stroke-width: 2.5; }
.inv-art .a-line { stroke: var(--lavender-2); stroke-width: 4; stroke-linecap: round; fill: none; }
.inv-art .a-check { fill: #2e9b57; }
.inv-art .a-tick { stroke: #fff; stroke-width: 3.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.inv-art .a-front { fill: var(--plum); }
.inv-art .a-spark { fill: #e3a826; }
.inv-send { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; margin: 0; }
.inv-send input { min-width: 0; padding: 14px 16px; font-size: 1rem; }
.inv-send .btn { min-width: 170px; padding: 14px 22px; font-size: 1.05rem; }
.inv-fine { margin: -6px 0 0; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.inv-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
  border-top: 1px solid var(--line); padding-top: 20px; }
.inv-tile { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 12px; align-content: start; }
.inv-tile svg { grid-row: span 2; width: 32px; height: 32px; fill: none; stroke: var(--accent);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.inv-tile b { color: var(--ink); font-size: 1.05rem; }
.inv-tile p { margin: 0; color: var(--ink-soft); }
.inv-joined h2 { display: flex; align-items: center; gap: 10px; }
.inv-n { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px;
  background: #e3f3e8; color: #1f6b3d; font: 700 .9rem var(--sans); }
.inv-list { list-style: none; margin: 0; padding: 0; }
.inv-person { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 14px 0; border-top: 1px solid var(--line); }
.inv-person:first-child { border-top: 0; padding-top: 4px; }
.inv-tick { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: #2e9b57; color: #fff; font-weight: 700; font-size: 1rem; line-height: 1; }
.inv-who { display: grid; gap: 2px; min-width: 0; }
.inv-when { text-align: right; color: var(--ink-soft); }
.inv-ok { color: #1f6b3d; font-weight: 600; }
@media (max-width: 760px) {
  .inv-hero { grid-template-columns: minmax(0, 1fr) 96px; gap: 14px; }
  .inv-send { grid-template-columns: 1fr; }
  .inv-send .btn { width: 100%; }
  .inv-tiles { grid-template-columns: 1fr; gap: 16px; }
  .inv-person { grid-template-columns: 34px minmax(0, 1fr); }
  .inv-when { grid-column: 2; text-align: left; }
}

/* Support page (the App Store support URL) and the footer's ownership line (Apple, 2026-11-20) */
.sp-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 18px 0; }
.sp-ways section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.sp-ways h2 { margin: 0 0 4px; font-size: 1.1rem; }
.sp-ways p { margin: 0; overflow-wrap: anywhere; }
.sp-page h3 { margin: 18px 0 4px; font-size: 1.05rem; }
.sp-crisis { margin: 24px 0 14px; padding: 14px 18px; border: 2px solid #e2b1aa; border-radius: var(--radius); background: #fff; }
.footer-legal { max-width: 760px; margin: 10px auto 0; line-height: 1.6; }
.footer-legal-links { white-space: nowrap; }

/* the website badge page (/me/badge) */
.pc-link + .pc-link { margin-left: 18px; }
.badge-page { max-width: 760px; }
.badge-page h2 { font-size: 1.4rem; margin-top: 26px; }
.badge-pick { border: 0; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 14px; }
.badge-pick legend { font-weight: 600; margin-bottom: 8px; }
.badge-opt { display: grid; gap: 6px; justify-items: start; cursor: pointer; font-size: .95rem; color: var(--ink-soft); }
.badge-opt input { position: absolute; opacity: 0; }
.badge-frame { display: block; padding: 14px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; }
.badge-opt.dark .badge-frame { background: #1d2140; }
.badge-opt img { display: block; max-width: 100%; height: auto; }
.badge-opt input:checked + .badge-frame { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 96, 68, .18); }
.badge-opt input:focus-visible + .badge-frame { outline: 2px solid var(--plum); outline-offset: 2px; }
.badge-code { display: grid; gap: 10px; justify-items: start; }
.badge-code textarea { width: 100%; font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--cream-2); color: var(--ink); resize: vertical; }
.badge-steps { padding-left: 1.3em; }
.badge-steps li { margin-bottom: 6px; }
.badge-visits { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- fit matching: /fit, /fit/results, "How you work" and "How I work" ---------- */
main.fitpage { max-width: none; padding: 0 0 64px; }
.fit-top { padding-top: 32px; padding-bottom: 8px; max-width: 980px; }
.fit-top .lead { font-size: 1.1rem; color: var(--ink-soft); }
.fit-private { background: #e9f1ee; color: #24493f; border-radius: 12px; padding: 10px 14px; font-size: .95rem; }
.fit-notices .fit-adult { margin: 14px 0 0; padding: 12px 16px; font-size: .95rem; }
.fit-wrap { max-width: 980px; display: grid; gap: 18px; padding-top: 6px; }
.fit-filters h2, .fit-answers > h2 { margin-bottom: 10px; }
.fit-row { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.fit-row:last-child { margin-bottom: 0; }
.fit-row .lbl { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.fit-row select { min-width: 200px; }
.fit-answers { display: grid; gap: 14px; margin: 0; }
.fit-answers > .muted { margin: 0 0 4px; }
.fit-q { margin: 0; padding: 18px 20px; min-width: 0; }
.fit-q legend { font-weight: 600; font-size: 1.05rem; padding: 0; float: left; width: 100%; margin-bottom: 10px; }
.fit-q legend + * { clear: both; }
.fit-scale { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.fit-pole { font-size: .92rem; color: var(--ink-soft); }
.fit-pole:first-child { text-align: right; }
.fit-dots { display: inline-flex; gap: 10px; }
.fit-dots label { display: inline-flex; cursor: pointer; }
.fit-scale .fit-dots input[type="radio"] { flex: none; min-width: 30px; padding: 0; appearance: none; -webkit-appearance: none; width: 30px; height: 30px; margin: 0; border-radius: 50%;
  border: 2px solid var(--lavender-2); background: #fff; cursor: pointer; transition: background .15s, border-color .15s; }
.fit-scale .fit-dots input[type="radio"]:hover { border-color: var(--plum); }
.fit-scale .fit-dots input[type="radio"]:checked { background: var(--plum); border-color: var(--plum); box-shadow: inset 0 0 0 4px #fff; }
.fit-scale .fit-dots input[type="radio"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.fit-imp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; font-size: .92rem; }
.fit-imp select { width: auto; max-width: 100%; padding: 6px 10px; }
.fit-clear { background: none; border: 0; color: var(--plum); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; padding: 4px; }
.fit-go { display: flex; flex-wrap: wrap; gap: 12px; }
.fit-fine { margin: 0; }
.fit-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 18px 0 8px; }
.fit-note { margin: 0 0 10px; font-size: .95rem; }
.fit-note:empty { display: none; }
.fit-how summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.fit-how ul { margin-top: 8px; }
#fit-list { padding-top: 6px; }
.tc-fit { display: grid; gap: 2px; margin: 8px 0 6px; }
.tc-fit p { margin: 0; font-size: .92rem; }
.tc-fit .fit-gentle { color: var(--ink-soft); }
.fit-chip { justify-self: start; display: inline-block; border-radius: 999px; padding: 3px 12px; font-size: .82rem; font-weight: 700; letter-spacing: .02em; margin-bottom: 4px; }
.fit-chip.strong { background: #e7f0e9; color: var(--ok); }
.fit-chip.good { background: #e6eef8; color: #2f4a76; }
.fit-chip.some { background: var(--cream-2); color: var(--ink-soft); }
.fit-dlg p { color: var(--ink-soft); }
/* "How you work" in the editor (walkthrough item 13): each question folds away; inside, one slider.
   The five stops are the usual-spot radios; the two range inputs on top are the comfortable range.
   Stops and range thumbs share one width (--k), so they line up at every width. */
.fit-list { display: grid; gap: 8px; }
.fit-edit { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.fit-edit > summary { list-style: none; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; padding: 12px 14px; cursor: pointer; }
.fit-edit > summary::-webkit-details-marker { display: none; }
.fit-edit > summary::before { content: ""; grid-row: 1 / 3; align-self: start; margin: 8px 2px 0; width: 7px; height: 7px;
  border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: rotate(-45deg); transition: transform .15s; }
.fit-edit[open] > summary::before { transform: rotate(45deg); }
.fit-edit > summary:hover { background: #faf8fd; border-radius: 12px; }
.fit-ask { font-weight: 600; }
.fit-state { font-size: .86rem; color: var(--ink-soft); }
.fit-edit.answered .fit-state { color: var(--plum); }
.fit-edit[open] .fit-state { display: none; }   /* open, the sentence under the slider says it */
.fit-in { padding: 0 14px 14px 35px; }
.fit-hint { margin: 0 0 6px; }
.fit-how-to { margin: 0 0 10px; }
.fit-likert { --k: 30px; position: relative; display: grid; height: var(--k); max-width: 440px; margin: 4px 0 6px; }
.fit-likert > * { grid-area: 1 / 1; }
.fit-line { align-self: center; height: 4px; margin: 0 calc(var(--k) / 2); border-radius: 2px; background: var(--cream-2); }
.fit-band { display: none; align-self: center; justify-self: start; height: 8px; border-radius: 4px; background: var(--lavender-2);
  margin-left: calc(var(--k) / 2 + (var(--lo) - 1) * (100% - var(--k)) / 4); width: calc((var(--hi) - var(--lo)) * (100% - var(--k)) / 4); }
.fit-edit.answered .fit-band { display: block; }
.fit-stops { display: flex; justify-content: space-between; align-items: center; }
.fit-stops label { display: inline-flex; cursor: pointer; }
.pe-body .fit-stops input[type="radio"] { -webkit-appearance: none; appearance: none; flex: none; width: var(--k); height: var(--k); min-width: 0;
  margin: 0; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: radial-gradient(circle, #c9c5d6 0 5px, transparent 6px); }
.pe-body .fit-stops label.in input { background: radial-gradient(circle, #a594c9 0 5px, transparent 6px); }
.pe-body .fit-stops input[type="radio"]:hover { background: radial-gradient(circle, var(--plum) 0 6px, transparent 7px); }
.pe-body .fit-stops input[type="radio"]:checked { background: radial-gradient(circle, var(--plum) 0 9px, transparent 10px); }
.fit-stops input[type="radio"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; }
/* the two ends: only their thumbs take a pointer, so a tap between them reaches the stops underneath */
.pe-body .fit-end { -webkit-appearance: none; appearance: none; width: 100%; height: var(--k); margin: 0; padding: 0; background: transparent; pointer-events: none; }
.fit-edit:not(.answered) .fit-end { visibility: hidden; }
.fit-end::-webkit-slider-runnable-track { background: transparent; border: 0; height: var(--k); }
.fit-end::-moz-range-track { background: transparent; border: 0; }
.fit-end::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; width: var(--k); height: var(--k); border-radius: 50%;
  border: 3px solid var(--plum); background: transparent; box-shadow: 0 0 0 2px #fff; cursor: grab; }
.fit-end::-moz-range-thumb { pointer-events: auto; width: calc(var(--k) - 6px); height: calc(var(--k) - 6px); border-radius: 50%;
  border: 3px solid var(--plum); background: transparent; box-shadow: 0 0 0 2px #fff; cursor: grab; }
.fit-end:focus-visible { outline: none; }
.fit-end:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--accent); outline-offset: 1px; }
.fit-end:focus-visible::-moz-range-thumb { outline: 3px solid var(--accent); outline-offset: 1px; }
.fit-edit .fit-ends { max-width: 440px; }
.fit-edit .fit-says { margin: 8px 0 0; font-size: .92rem; }
.fit-edit .fit-says:empty { display: none; }
.fit-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 10px; max-width: 440px; }
/* an on/off switch: a checkbox underneath, for "Public" */
.pe-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: .95rem; position: relative; }
.pe-switch input { position: absolute; opacity: 0; width: 44px; height: 26px; margin: 0; cursor: pointer; }
.pe-switch span { flex: none; position: relative; width: 44px; height: 26px; border-radius: 13px; background: #c9c5d6; transition: background .15s; }
.pe-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s; }
.pe-switch input:checked + span { background: var(--accent); }
.pe-switch input:checked + span::after { transform: translateX(18px); }
.pe-switch input:focus-visible + span { outline: 3px solid #b7aadf; outline-offset: 2px; }
.pv-how h4 { margin: 14px 0 6px; }
.pv-how ul { margin: 0; padding-left: 18px; font-size: .82rem; color: var(--ink-soft); display: grid; gap: 4px; }
.pf-how-list { list-style: none; margin: 14px 0 6px; padding: 0; display: grid; gap: 18px; }
.pf-how-list li { display: grid; gap: 6px; }
.fit-meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 360px; }
.fit-meter i { height: 10px; border-radius: 6px; background: var(--cream-2); }
.fit-meter i.in { background: var(--lavender-2); }
.fit-meter i.at { background: var(--plum); }
.fit-ends { display: flex; justify-content: space-between; max-width: 360px; font-size: .82rem; color: var(--ink-soft); gap: 12px; }
.fit-ends span:last-child { text-align: right; }
.fit-says { font-size: .98rem; }
@media (max-width: 760px) {
  .fit-scale { grid-template-columns: 1fr 1fr; }
  .fit-scale .fit-dots { grid-column: 1 / -1; grid-row: 1; justify-content: space-between; }
  .fit-pole:first-child { text-align: left; }
  .fit-pole:last-child { text-align: right; }
  .fit-dots { gap: 6px; }
  .fit-q { padding: 16px; }
  .fit-go .btn { width: 100%; justify-content: center; }
}

/* ---------- the pool mailbox (templates/_mailbox.html, static/mailbox.js; Lex's spec v0.7) ---------- */
/* Add to pool: a toggle with words and a check mark, never color alone. */
.pool-add { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border: 1.5px solid var(--accent); border-radius: 999px; background: #fff; color: var(--accent); font: 700 .95rem var(--sans); cursor: pointer; }
.pool-add:hover { background: #eef5f0; }
.pool-add:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; }
.pool-add-ic { position: relative; width: 16px; height: 16px; flex: none; }
.pool-add-ic::before, .pool-add-ic::after { content: ""; position: absolute; left: 7px; top: 1px; width: 2px; height: 14px; border-radius: 1px; background: currentColor; }
.pool-add-ic::after { transform: rotate(90deg); }
/* In the mailbox: a blue check with words (Lex, 2026-11-24). */
.pool-add.on { background: #2f6fcf; border-color: #2f6fcf; color: #fff; }
.pool-add.on:hover { background: #2559a8; }
.pool-add.on .pool-add-ic::before { left: 9px; top: 0; width: 2px; height: 12px; transform: rotate(40deg); }
.pool-add.on .pool-add-ic::after { left: 3px; top: 6px; width: 2px; height: 7px; transform: rotate(-45deg); }
.tc .tc-actions .pool-add { width: 100%; }
.tc.compact .tc-actions .pool-add { width: auto; flex: 1 1 100%; min-height: 42px; }
.pf-pick { margin-top: 0; }

/* the mailbox itself: a panel at the bottom right on a computer, a dock on a phone */
.mbx { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 52; width: 196px; padding: 8px 12px 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 16px 40px rgba(42, 47, 85, .18); text-align: center; }
.mbx-btn { display: block; width: 100%; min-height: 44px; padding: 0; border: 0; border-radius: 14px; background: none; cursor: pointer; }
.mbx-btn:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; }
.mbx-art { display: block; width: 100%; height: auto; overflow: visible; }
.mbx-text p { margin: 0; line-height: 1.3; }
.mbx-status { font-size: .88rem; color: var(--ink); }
.mbx-count { font-size: .8rem; font-weight: 700; color: var(--accent); margin-top: 4px !important; }
.mbx-btn { position: relative; }
.mbx-badge { position: absolute; top: -4px; right: -4px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px;
  background: #2f6fcf; color: #fff; font: 700 .82rem/24px var(--sans); box-shadow: 0 0 0 2px #fff; }
.mbx-fly { position: fixed; z-index: 60; pointer-events: none; border-radius: 14px; overflow: hidden; background: var(--lavender);
  box-shadow: 0 10px 30px rgba(40, 30, 80, .3); transition: transform .55s cubic-bezier(.5, 0, .75, .3), opacity .55s ease-in; }
.mbx-fly img, .mbx-fly .avatar { width: 100%; height: 100%; object-fit: cover; }
.mbx-wait { font-size: .8rem; color: var(--ink-soft); }
body.has-mbx main { padding-bottom: 120px; }

/* the drawing (section 15): the post, the body, the flag on its pivot, the drop-down door */
.mbx-post { fill: #7a5c3e; }
.mbx-side { fill: var(--accent); }
.mbx-band { fill: var(--accent-dark); }
.mbx-shine { fill: none; stroke: rgba(255, 255, 255, .38); stroke-width: 4; stroke-linecap: round; }
.mbx-arm { fill: var(--ink); }
.mbx-pennant { fill: #c8463a; }
.mbx-hub { fill: var(--ink); } .mbx-hub-dot { fill: var(--cream); }
.mbx-flag { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.mbx-art[data-flag="down"] .mbx-flag { transform: rotate(90deg); }
.mbx-inside { fill: #1d2140; }
.mbx-door { transition: transform .55s ease-in-out; }
.mbx-door-face { fill: #3b7553; stroke: var(--accent-dark); stroke-width: 2; }
.mbx-door-shade { fill: #000; opacity: 0; transition: opacity .55s ease-in-out; }
.mbx-handle { fill: var(--cream); stroke: var(--accent-dark); stroke-width: 1.5; }
.mbx-hinge { fill: var(--accent-dark); }
.mbx-art[data-door="open"] .mbx-door { transform: scaleY(-.5); }
.mbx-art[data-door="open"] .mbx-door-shade { opacity: .3; }
.mbx-env { opacity: 0; transform: translate(-18px, -26px); transition: opacity .4s ease, transform .4s ease; }
.mbx-env rect { fill: var(--cream); stroke: #b9b2a0; stroke-width: 1.5; }
.mbx-env path { fill: none; stroke: #b9b2a0; stroke-width: 1.5; stroke-linejoin: round; }
.mbx-env.on { opacity: 1; transform: none; }
.mbx-art.nudge { animation: mbx-nudge .4s ease; }
@keyframes mbx-nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* the two message boxes */
.mbx-dlg { border: 0; border-radius: 22px; padding: 26px 24px 22px; width: min(560px, 94vw); max-height: 92vh; overflow: auto; box-shadow: 0 30px 80px rgba(40, 30, 80, .3); color: var(--ink); }
.mbx-dlg::backdrop { background: rgba(40, 30, 80, .45); }
.mbx-dlg h2 { margin: 0 40px 6px 0; }
.mbx-dlg fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.mbx-dlg textarea { width: 100%; }
.mbx-x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--cream-2); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.mbx-x:hover { background: var(--lavender); }
.mbx-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 12px 0 16px; padding: 0; }
.mbx-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 2px 2px 14px; border-radius: 999px; background: #eef5f0; border: 1px solid #cfe0d4; font-size: .9rem; font-weight: 600; }
.mbx-chip small { margin-left: 4px; font-weight: 400; color: var(--danger-dark); }
.mbx-chip-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--ink-soft); font-size: 1.25rem; cursor: pointer; }
.mbx-chip-x:hover { background: #dfeee4; color: var(--ink); }
.mbx-err { min-height: 0; margin: 6px 0 0; color: var(--danger-dark); font-weight: 600; font-size: .92rem; }
.mbx-err:empty { display: none; }
form[aria-busy="true"] .mbx-err { color: var(--ink-soft); font-weight: 400; }
.mbx-988 { margin: 4px 0 12px; font-size: .9rem; color: var(--ink-soft); }
.mbx-988 a { font-weight: 700; color: var(--ink); }
.mbx-dlg .btn.big-btn { width: 100%; }
.mbx-dlg [data-step="done"]:focus { outline: none; }

/* the profile sheet over the list (spec 4.6): a panel beside the list on a computer, from the bottom on a phone */
html.mbx-lock { overflow: hidden; scrollbar-gutter: stable; }      /* no reflow, so the list stays put */
html.mbx-lock body { overflow-anchor: none; }
.mbx-sheet-back { position: fixed; inset: 0; z-index: 50; background: rgba(40, 30, 80, .28); opacity: 0; transition: opacity .3s; }
.mbx-sheet-back.on { opacity: 1; }
/* the mailbox stays live beside it: the panel stops short of the mailbox on a computer, above the dock on a phone */
.mbx-sheet { position: fixed; z-index: 51; top: 16px; right: 232px; bottom: 16px; width: min(620px, calc(100vw - 500px)); display: flex; flex-direction: column; overflow: hidden;
  background: var(--cream); border-radius: 20px; box-shadow: 0 20px 60px rgba(40, 30, 80, .28); opacity: 0; transform: translateX(40px); transition: transform .3s ease, opacity .3s ease; }
.mbx-sheet.on { opacity: 1; }
.mbx-sheet.on { transform: none; }
.mbx-sheet.dragging { transition: none; }
.mbx-sheet-grab { display: none; }
.mbx-sheet-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.mbx-sheet-close { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 700 .95rem var(--sans); cursor: pointer; }
.mbx-sheet-close .ico { width: 18px; height: 18px; }
.mbx-sheet-close:hover { background: var(--lavender); }
.mbx-sheet-pos { flex: 1; font-size: .88rem; color: var(--ink-soft); }
.mbx-sheet-nav { display: flex; gap: 8px; }
.mbx-sheet-nav .btn { min-height: 44px; }
.mbx-sheet-shared { margin: 14px 20px 0; }
.mbx-sheet-fit { margin: 14px 20px 0; }
.mbx-sheet-fit .fit-why { margin: 0; font-size: .92rem; }
.mbx-sheet-body { flex: 1; overflow: auto; padding: 16px 20px 24px; overscroll-behavior: contain; }
.mbx-sheet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.mbx-sheet-actions .btn { flex: 1 1 160px; }
.mbx-sheet-full { font-weight: 600; }
.sh-top { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 10px; }
.sh-portrait img, .sh-portrait .pf-monogram { width: 96px; height: 110px; border-radius: 14px; object-fit: cover; }
.sh-portrait .pf-monogram { display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.sh h2 { font-size: 1.7rem; margin: 0 0 4px; }
.sh h2:focus { outline: none; }
.sh .pf-title, .sh .pf-where { margin: 0 0 4px; font-size: .92rem; color: var(--ink-soft); }
.sh-sec { margin-top: 18px; }
.sh-sec h3 { margin-bottom: 6px; }
.sh-sec h4 { margin: 12px 0 4px; font-family: var(--sans); font-size: 1rem; }
.sh-dl { display: grid; gap: 10px; margin: 0; }
.sh-dl div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; }
.sh-dl dt { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; font-size: .92rem; }
.sh-dl dt .ico { width: 18px; height: 18px; color: var(--ink-soft); }
.sh-dl dd { margin: 0; }
.sh-dl small { display: block; color: var(--ink-soft); }
.sh-lics, .sh-how { margin: 0 0 8px; padding-left: 18px; }
.pill.top { background: #e6f1e9; }

/* press and hold to peek (spec 4.7) */
.d-cards[data-ranked] .tc { cursor: pointer; -webkit-touch-callout: none; }
.d-cards[data-ranked] .tc img { -webkit-user-drag: none; }
@media (hover: none), (pointer: coarse) { .d-cards[data-ranked] .tc { -webkit-user-select: none; user-select: none; } }
.mbx-peek { position: fixed; z-index: 48; width: min(360px, calc(100vw - 32px)); padding: 18px; background: #fff; border: 1px solid var(--lavender-2);
  border-radius: 20px; box-shadow: 0 24px 60px rgba(40, 30, 80, .28); opacity: 0; transform: scale(.96); transition: opacity .16s, transform .16s; }
.mbx-peek.on { opacity: 1; transform: none; }
.mbx-peek h2 { font-size: 1.35rem; margin: 0 0 6px; }
.mbx-peek-fit { margin-bottom: 6px; } .mbx-peek-fit .fit-why { margin: 0; font-size: .88rem; }
.mbx-peek-bio { font-size: .92rem; margin-bottom: 8px; }
.mbx-peek-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mbx-peek-actions > * { min-height: 44px; }
.mbx-hint { position: fixed; right: 20px; bottom: calc(236px + env(safe-area-inset-bottom)); z-index: 44; display: flex; align-items: center; gap: 10px;
  margin: 0; padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .92rem; box-shadow: 0 10px 30px rgba(42, 47, 85, .25); }
.mbx-hint-x { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font: 700 .88rem var(--sans); cursor: pointer; }

@media (max-width: 1000px) {
  .mbx { left: 0; right: 0; bottom: 0; width: auto; display: flex; align-items: center; gap: 12px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0; border-width: 1px 0 0; text-align: left; }
  .mbx-btn { flex: none; width: 92px; }
  .mbx-text { flex: 1; min-width: 0; }
  .dirpage .d-float { bottom: calc(96px + env(safe-area-inset-bottom)); }
  body.has-mbx main { padding-bottom: 170px; }
  .mbx-sheet { top: 5vh; left: 0; right: 0; bottom: calc(84px + env(safe-area-inset-bottom)); width: auto; border-radius: 22px 22px 0 0; opacity: 1; transform: translateY(110vh); box-shadow: 0 -20px 60px rgba(40, 30, 80, .22); }
  .mbx-sheet-grab { display: block; padding: 8px 0 2px; background: #fff; border-radius: 22px 22px 0 0; touch-action: none; }
  .mbx-sheet-grab span { display: block; width: 44px; height: 5px; margin: 0 auto; border-radius: 3px; background: var(--line); }
  .mbx-sheet-bar { touch-action: none; }
  .mbx-sheet-nav { width: 100%; }
  .mbx-sheet-nav .btn { flex: 1; }
  .sh-dl div { grid-template-columns: 1fr; gap: 2px; }
  .mbx-hint { right: auto; left: 50%; transform: translateX(-50%); bottom: calc(176px + env(safe-area-inset-bottom)); white-space: nowrap; }
}
/* ---------- phones (Lex, 2026-11-24): small cards about four to a screen, a blue check on each one in the
   mailbox, and the mailbox up in the right corner. Hold a card for the whole profile. With core.SLIDE_TO_ADD on,
   sliding a card (or the whole profile) to the right puts that therapist in the mailbox. ---------- */
@media (max-width: 700px) {
  .small-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .small-cards > .tc { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; border-radius: 16px; overflow: hidden;
    touch-action: pan-y; transition: transform .2s ease, box-shadow .2s; }
  .small-cards > .tc:hover { transform: none; }
  .small-cards > .tc.sliding { transition: none; box-shadow: 0 16px 40px rgba(42, 47, 85, .25); z-index: 2; }
  .small-cards > .tc .tc-photo { display: block; text-decoration: none; }
  .small-cards > .tc .avatar.portrait { display: flex; align-items: center; justify-content: center; width: 100%; height: 150px; border: 0; border-radius: 0; font-size: 2.4rem; }
  .small-cards > .tc .cred-sep { display: none; }
  .small-cards > .tc .tc-body { padding: 8px 10px 12px; }
  .small-cards > .tc .tc-status { gap: 4px; margin-bottom: 4px; }
  .small-cards > .tc .tc-status .sp { padding: 2px 8px; font-size: .7rem; }
  .small-cards > .tc .tc-status > :not(.sp) { display: none; }
  .small-cards > .tc h2 { font-size: 1.1rem; line-height: 1.15; }
  .small-cards > .tc h2 .cred { display: block; font-size: .8rem; margin-top: 2px; }
  .small-cards > .tc h2 .vcheck { width: 15px; height: 15px; margin-left: 4px; font-size: .6rem; }
  .small-cards > .tc .tc-headline, .small-cards > .tc .tc-meta, .small-cards > .tc .fit-why, .small-cards > .tc .fit-gentle { display: none; }
  .small-cards > .tc .tc-fit .fit-chip { margin: 6px 0 0; font-size: .72rem; padding: 2px 8px; }
  .small-cards > .tc .tc-tags { margin-top: 6px; }
  .small-cards > .tc .tc-tags .pill { font-size: .72rem; }
  .small-cards > .tc .tc-tags .pill:nth-child(n+2) { display: none; }
  .small-cards > .tc .tc-actions { position: absolute; top: 8px; right: 8px; display: block; }
  .small-cards > .tc .tc-actions > :not(.pool-add) { display: none; }
  .small-cards > .tc .pool-add { width: 44px; height: 44px; min-height: 44px; padding: 0; border: 2px solid #fff; background: rgba(255, 255, 255, .94);
    box-shadow: 0 4px 14px rgba(42, 47, 85, .25); }
  .small-cards > .tc .pool-add .pool-add-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .small-cards > .tc .pool-add .pool-add-ic { transform: scale(1.15); }
  .small-cards > .tc .pool-add.on { background: #2f6fcf; border-color: #fff; }

  /* the mailbox, up in the right corner: in the header bar, beside the menu button, so it covers no card */
  .mbx { top: calc(6px + env(safe-area-inset-top)); right: 70px; bottom: auto; left: auto; width: 66px; display: block; padding: 3px 5px;
    border: 1px solid var(--line); border-radius: 14px; text-align: center; box-shadow: 0 6px 18px rgba(42, 47, 85, .14); }
  .mbx-btn { width: 100%; }
  .mbx-text { display: none; position: absolute; top: calc(100% + 8px); right: 0; width: min(280px, calc(100vw - 32px)); padding: 10px 12px;
    background: var(--ink); color: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(42, 47, 85, .3); text-align: left; }
  .mbx-text p { color: #fff; }
  .mbx.talk .mbx-text { display: block; }
  .mbx-count { color: #cfe6d7; }
  .mbx-wait { color: #d9cdee; }
  html.mbx-lock .mbx { top: calc(8px + env(safe-area-inset-top)); right: 10px; }
  body.has-mbx main { padding-bottom: 90px; }
  .dirpage .d-float { bottom: calc(16px + env(safe-area-inset-bottom)); }
  .profile-page .mbx { bottom: auto; }
  .mbx-sheet { top: 0; bottom: 0; border-radius: 0; }
  .mbx-sheet-grab { border-radius: 0; }
  .mbx-sheet-bar { padding-right: 84px; }
  .mbx-sheet.sliding { transition: none; }
  .mbx-sheet-body { touch-action: pan-y; }
  .mbx-hint { bottom: calc(90px + env(safe-area-inset-bottom)); white-space: normal; width: max-content; max-width: calc(100vw - 32px); }
}
@media (prefers-reduced-motion: reduce) {
  .mbx-flag, .mbx-door, .mbx-door-shade, .mbx-env, .mbx-sheet, .mbx-sheet-back, .mbx-peek { transition: none !important; }
  .mbx-art.nudge { animation: none; }
}
.many-who { margin-bottom: 6px; }
.many-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.many-row:last-of-type { border-bottom: 0; }
.many-row input { width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.many-row:has(input:not(:checked)) { opacity: .55; }
.many-left { margin: 0 0 14px; padding-left: 20px; }
.many-row .avatar.thumb { width: 52px; height: 52px; border-radius: 10px; font-size: 1.15rem; }

/* ---------- town and topic pages: /therapists/<state>/<town>[/<topic>] (2026-11-22) ---------- */
.lp { padding-top: 18px; padding-bottom: 40px; }
.lp-crumbs { display: block; margin-bottom: 10px; color: var(--ink-soft); }
.lp-crumbs a { display: inline; padding: 0; border-radius: 0; color: var(--ink-soft); text-decoration: underline; }
.lp-crumbs a:hover { background: none; color: var(--ink); }
.lp-head h1 { font: 600 clamp(1.8rem, 4vw, 2.6rem)/1.1 var(--serif); margin: 0 0 10px; }
.lp-lead { font-size: 1.08rem; margin: 0 0 6px; max-width: 760px; }
.lp-note { color: var(--ink-soft); margin: 0; max-width: 760px; }
.lp .d-crisis { margin: 16px 0 0; }
.lp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 20px 0 10px; }
.lp-stats .card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; margin: 0; }
.lp-plans { margin: 0 0 14px; max-width: 760px; }
.lp-search { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 22px; }
.lp-online, .lp-topics, .lp-elsewhere, .lp-how { margin-top: 32px; }
.lp-online h2, .lp-topics h2, .lp-elsewhere h2, .lp-how h2 { font: 600 1.3rem var(--serif); margin: 0 0 8px; }
.lp-online .d-cards { margin-top: 12px; }
.lp-topic-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-topic-list li a { display: inline-block; padding: 6px 12px; border: 1px solid var(--lavender-2); border-radius: 999px; background: #fff; text-decoration: none; }
.lp-place { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; max-width: 620px; }
.lp-place .field { flex: 1 1 260px; }
.lp-place .btn { min-height: 56px; }
.lp-how { max-width: 760px; }
@media (max-width: 640px) {
  .lp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lp-stats .card { padding: 12px 14px; }
  .lp-stats .mid-num { font-size: 1.6rem; }
  .lp-search .btn, .lp-place .btn { width: 100%; justify-content: center; text-align: center; }
}

/* fees as numbers: the editor's dollar boxes look like its other boxes, and the out-of-network note */
.pe-body input[type=number] {
  font: inherit; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.pf-oon summary { cursor: pointer; font-size: .84rem; margin-top: 6px; color: var(--plum); }
.pf-oon p { margin: 4px 0 0; }

/* the office: photos on the profile, and the editor's list of them */
.pf-gal { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.pf-gal figure { margin: 0; }
.pf-gal a { display: block; border-radius: 14px; overflow: hidden; }
.pf-gal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.pf-gal figcaption { font-size: .88rem; color: var(--ink-soft); margin-top: 6px; }
.pe-body h3 .muted { font-weight: 400; }
.pe-gallery { list-style: none; padding: 0; margin: 8px 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.pe-gal-item { display: flex; flex-direction: column; min-width: 0; }
.pe-gal-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin-bottom: 4px; }
.pe-gal-item .lbl, .pe-gal-add .lbl { font-size: .85rem; margin: 8px 0 4px; }
.pe-gal-item .btn { align-self: flex-start; margin-top: 10px; }
.pe-gal-add { max-width: 460px; }
.pe-gal-add .btn { margin-top: 12px; }
.pe-body .pe-gal-add input[type=file] { max-width: 100%; font: inherit; }
/* one Photos section (walkthrough item 9): a styled drop zone in place of the browser's file button */
.pe-sub { font-size: 1.05rem; margin: 4px 0 8px; }
.pe-sub + .hint { margin-top: 0; }
.pe-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  padding: 22px 16px; border: 2px dashed var(--lavender-2); border-radius: 14px; background: #fbfaff; cursor: pointer; }
.pe-drop:hover, .pe-drop.over { border-color: var(--plum); background: var(--lavender); }
.pe-drop:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.pe-drop-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem;
  color: var(--plum); background: #fff; border: 1px solid var(--lavender-2); }
.pe-drop-pick { color: var(--plum); text-decoration: underline; }
.pe-body .pe-drop input.pe-drop-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.pe-drop-target.over { outline: 2px dashed var(--plum); outline-offset: 6px; border-radius: 14px; }
.pe-gal-kind { display: flex; gap: 6px 16px; flex-wrap: wrap; margin: 6px 0 0; padding: 0; border: 0; }
.pe-gal-kind .check-line { margin: 0; font-size: .9rem; white-space: nowrap; }
.pe-body .pe-gal-kind input[type=radio] { width: auto; flex: none; }
.pe-gal-add .pe-gal-kind { margin-top: 12px; }
.pe-gal-add .pe-gal-kind legend { width: 100%; }
.pe-err.ok { color: var(--ok); }

/* photo looks: the color picker in the crop dialog and the office photo box */
.pe-looks { border: 0; padding: 0; margin: 12px 0 0; min-width: 0; }
.pe-looks legend { font-weight: 600; font-size: .85rem; margin-bottom: 6px; }
.pe-look-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.pe-look { position: relative; margin: 0; }
.pe-look input[type=radio], .pe-body .pe-look input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.pe-look span { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; cursor: pointer; background: #fff; }
.pe-look input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pe-look input:focus-visible + span { outline: 2px solid var(--plum); outline-offset: 2px; }
.pe-gal-preview { display: block; max-width: 100%; height: auto; border-radius: 10px; margin: 10px 0 0; }

/* introduction video box in the editor */
.pe-video-now { margin: 6px 0 14px; }
.pe-video-clip { display: block; width: auto; max-width: 100%; max-height: 360px; height: auto; border-radius: 12px; background: #1d1a22; margin-bottom: 6px; }
.pe-video-now .btn { margin-top: 6px; }
.pe-video-add { max-width: 460px; }
.pe-video-add .lbl { font-size: .85rem; margin: 8px 0 4px; }
.pe-video-add .btn { margin-top: 12px; }
.pe-body .pe-video-add input[type=file] { max-width: 100%; font: inherit; }
.pe-video-add progress { display: block; width: 100%; margin-top: 10px; accent-color: var(--accent); }
.pe-body textarea#video_text { width: 100%; }

/* "Talk to us" forms on the practice, group and institution pages (Lex, 2026-11-23: a form, not an email link) */
.talk { margin-top: 56px; margin-bottom: 24px; scroll-margin-top: 90px; }
.talk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; align-items: start; }
.talk-copy h2 { font-size: 2rem; }
.talk-form fieldset { margin-bottom: 14px; min-width: 0; }
.talk-form input, .talk-form textarea { width: 100%; }
.talk-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.talk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 760px) { .talk-grid, .talk-two { grid-template-columns: 1fr; } }

/* For Groups page */
.gr-who { margin-top: 56px; }
.gr-kinds { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gr-kinds li { background: var(--lavender); color: var(--plum); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .95rem; }

/* A group's steps to bring it over (signed in) */
.ob-progress { height: 8px; border-radius: 999px; background: var(--cream-2); overflow: hidden; margin: 14px 0 22px; }
.ob-progress b { display: block; height: 100%; background: var(--accent); }
.ob-steps { list-style: none; counter-reset: ob; padding: 0; margin: 0; }
.ob-steps > li { counter-increment: ob; position: relative; padding: 0 0 22px 46px; border-left: 2px solid var(--line); margin-left: 15px; padding-left: 34px; scroll-margin-top: 90px; }
.ob-steps > li:last-child { border-left-color: transparent; }
.ob-steps > li::before { content: counter(ob); position: absolute; left: -16px; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--lavender); color: var(--plum); font-weight: 700; font-size: .9rem; }
.ob-steps > li.done::before { content: "\2713"; background: #e7f0e9; color: var(--ok); }
.ob-steps > li.now::before { background: var(--plum); color: #fff; }
.ob-steps > li.ours::before { background: var(--cream-2); color: var(--ink-soft); }
.ob-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 4px; }
.ob-head h2 { font-size: 1.3rem; margin: 0; }
.ob-steps details > summary { cursor: pointer; color: var(--accent); font-weight: 600; margin: 4px 0 10px; }
.ob-form { margin-top: 6px; }
.ob-form fieldset { min-width: 0; }
.ob-form input, .ob-form select { width: 100%; }
.ob-radio { display: flex; gap: 8px; align-items: baseline; margin: 6px 0; font-weight: 400; }
.ob-radio input { width: auto; }

/* A group's public page */
.gp-preview { background: var(--lavender); color: var(--ink); }
.gp-head { margin-bottom: 22px; }
.gp-head h1 { margin-bottom: 8px; }
.gp-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.gp-grid .card { margin: 0; }
.gp-standing { width: 100%; border-collapse: collapse; font-size: .95rem; }
.gp-standing th, .gp-standing td { text-align: left; vertical-align: top; padding: 9px 8px; border-top: 1px solid var(--line); }
.gp-standing th { width: 42%; color: var(--ink-soft); font-weight: 600; }
.gp-leader { margin: 0 0 6px; }
.gp-sub { margin-top: 18px; font-size: 1.05rem; }
.gp-slots { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.gp-slots li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.gp-members { margin-top: 30px; }
.gp-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 14px 0; }
.gp-person { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); margin: 0; }
.gp-person:hover { box-shadow: 0 0 0 2px var(--lavender-2); }
.gp-person .pill { align-self: flex-start; margin-top: 4px; }
.gp-rel { margin-top: 28px; }
@media (max-width: 760px) { .gp-grid { grid-template-columns: 1fr; } }

/* ---------- a group's own pages (site and editor) ---------- */
.gs-eyebrow { margin-bottom: 6px; }
.gs-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; padding: 8px 0 10px; margin: 0 0 22px; border-bottom: 1px solid var(--line); }
.gs-nav a { text-decoration: none; color: var(--ink); padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.gs-nav a:hover { background: var(--lavender); }
.gs-nav a.on { background: var(--plum); color: #fff; }
.gs-nav .gs-home { font-family: var(--serif); font-size: 1.05rem; }
.gs-lock { font-weight: 400; font-size: .8rem; opacity: .8; }
.gs-page { max-width: 46em; }
.gs-front { margin-bottom: 28px; }
.gs-blocks h2 { margin: 1.4em 0 .4em; }
.gs-blocks p, .gs-blocks ul { line-height: 1.6; }
.gs-blocks hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
.gs-note { background: var(--lavender); border-left: 4px solid var(--plum); border-radius: 10px; padding: 4px 18px; margin: 16px 0; }
.gs-links { list-style: none; padding: 0; }
.gs-links li { padding: 8px 0; border-top: 1px solid var(--line); }
.gs-links li:first-child { border-top: 0; }
.gs-links a { font-weight: 600; }
.gs-links a::after { content: " \2192"; }
.gs-edit { margin-top: 24px; }
.gs-foot { margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--line); }

.gpe-start { margin-bottom: 18px; }
.gpe-list { list-style: none; padding: 0; margin: 0 0 18px; }
.gpe-list > li { margin: 0 0 10px; }
.gpe-row { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; align-items: center; }
.gpe-what { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gpe-title { font-weight: 700; font-size: 1.08rem; }
.gpe-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.gpe-new { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.gpe-new label { flex-basis: 100%; }
.gpe-new input { flex: 1 1 260px; min-width: 0; }
.gpe-bin { list-style: none; padding: 0; margin: 0; }
.gpe-bin li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.gpe-headline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.gpe-headline h1 { margin-bottom: 4px; }
.gpe-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.gpe-bar .gpe-publish { background: var(--plum); border-color: var(--plum); }
.gpe-settings input:not([type=radio]) { width: 100%; }
.gpe-slug { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.gpe-slug input { flex: 1 1 180px; width: auto !important; min-width: 0; }
.gpe-vis { border: 0; padding: 0; margin: 12px 0 0; min-width: 0; }
.gpe-vis legend { font-weight: 600; padding: 0; }
.gpe-h2 { margin-top: 26px; scroll-margin-top: 90px; }
.gpe-block { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 12px; margin: 0 0 12px; background: #fff; scroll-margin-top: 90px; min-width: 0; }
.gpe-block legend { font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); padding: 0 6px; }
.gpe-block input, .gpe-block textarea { width: 100%; }
.gpe-heading input { font-weight: 700; font-size: 1.1rem; }
.gpe-note { background: #faf8fd; }
.gpe-block-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gpe-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 12px 0; }
.gpe-more { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.gpe-history ol { list-style: none; padding: 0; margin: 0; }
.gpe-history li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.gs-figure { margin: 20px 0; }
.gs-figure img { display: block; max-width: 100%; height: auto; border-radius: 12px; }
.gs-figure figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: 6px; }
.gpe-image { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; align-items: start; }
.gpe-image img { width: 140px; height: 105px; object-fit: cover; border-radius: 8px; background: var(--cream-2); }
.gpe-image label { display: block; font-size: .9rem; margin-top: 4px; }
.gpe-add-image { border-top: 1px dashed var(--line); }
.gpe-add-image p { flex-basis: 100%; margin: 0; }
@media (max-width: 560px) { .gpe-image { grid-template-columns: 1fr; } }

/* ---------- replies to clients (templates/client_replies.html) ---------- */
.cr-pick fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.cr-item { display: block; }
.cr-body { white-space: pre-line; margin: 4px 0 6px 28px; font-size: .92rem; }
.cr-acts { display: flex; gap: 8px; margin: 0 0 4px 28px; }
.cr-draft { border: 1px dashed var(--lavender-2); border-radius: 14px; padding: 12px 16px 14px; margin: 0 0 16px; }
.cr-contacts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 6px 0 12px; }
#cr-body { width: 100%; font: inherit; }

/* A group's email list: adding people and the member list */
.gl-choice fieldset { border: 0; padding: .5rem 0; margin: 0; border-top: 1px solid var(--line); }
.gl-choice legend { padding: 0; margin-bottom: .25rem; }
.gl-choice label.check { display: block; }
.gl-add { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; }
.gl-add label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; min-width: 0; }
.gl-add input[name=name], .gl-add input[name=email] { width: min(260px, 100%); }
.gl-add input[name=license] { width: 110px; }
.gl-add p { margin: 0; }
#members textarea { width: 100%; box-sizing: border-box; font: inherit; }
.gl-people { list-style: none; padding: 0; margin: 8px 0; }
.gl-people li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--line, #e5e5e5); overflow-wrap: anywhere; }
.gl-search { margin: 8px 0; }

.arch-list { list-style: none; padding: 0; margin: 0; }
.arch-item { border-top: 1px solid var(--line); padding: 12px 0; }
.arch-item:first-child { border-top: 0; }
.arch-item h3 { margin: 0 0 2px; font-size: 1rem; overflow-wrap: anywhere; }
.arch-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0 8px; }
.arch-card { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 4px 0 0; }
.arch-card dt { color: var(--ink-soft); }
.arch-card dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* "Does this look right?" before a license is added (build brief, 28 Nov 2026) */
.lc-page { max-width: 560px; margin: 0 auto; }
.lc-card { display: grid; gap: 12px; margin: 18px 0 12px; }
.lc-card div { display: grid; grid-template-columns: 11em 1fr; gap: 8px; }
.lc-card dt { color: var(--muted, #666); }
.lc-card dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .lc-card div { grid-template-columns: 1fr; gap: 2px; } }
.lc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.gl-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
