/* 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); }

/* 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; }

.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; }
.photo-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.section-edit { display: grid; gap: 8px; margin: 0 0 14px; padding: 14px; border: 1px dashed var(--lavender-2); border-radius: 12px; }
.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] { max-width: 420px; }
.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) {
  .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); }
  .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; }
  .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; }
.h-chips a.on { background: var(--ink); color: #fff; }
.h-chips .more-link { background: transparent; border: 1px solid var(--lavender-2); }

.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; }
.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-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 url("art/sprig.svg") no-repeat right -10px bottom -22px / 58px auto; }
.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; }
.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 colleges and 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; }
.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; }
.rx-how { display: grid; gap: 10px; }
.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; }
.pe-nav a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink-soft); font-size: .9rem; }
.pe-nav a:hover { background: #f6f1ff; }
.pe-nav a.on { background: #f1eefa; color: var(--ink); font-weight: 600; }
.pe-dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #c9bfb2; }
.pe-dot.done { background: #2f7a4d; border-color: #2f7a4d; }
.pe-form { display: grid; gap: 14px; }
.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 { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.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; }
.pe-search { margin-bottom: 4px; }
.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; }
.crop-box { position: relative; width: 320px; max-width: 100%; margin: 10px auto; }
.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); }

/* 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; }
  .home-body .top.public { position: absolute; top: 0; left: 0; right: 0; background: transparent; }
  .home-body .top.public .top-inner { max-width: 1560px; padding: 22px 44px; }
  .home-body .public-nav { justify-content: flex-end; gap: 10px; }
  .home-body .public-nav a { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; }
  .home-body .top-actions .btn.quiet { background: rgba(255, 255, 255, .55); }
  .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, .92) 0, rgba(251, 251, 246, .55) 12%, rgba(251, 251, 246, 0) 26%, 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 .brand-word { height: 84px; }
  .home-body .top.public .brand-sub { display: none; }
}
@media (max-width: 600px) { .brand-word { height: 46px; } }

/* five menu links: tighten the header on mid-width screens so Join stays on the page */
@media (min-width: 961px) and (max-width: 1340px) {
  .top.public .top-inner { padding-left: 20px; padding-right: 20px; }
  .public-menu { gap: 10px; }
  .public-nav { gap: 0; }
  .public-nav a { font-size: .9rem; padding-left: 10px; padding-right: 10px; }
  .top-actions { gap: 6px; }
  .top-actions .small-btn { padding: 8px 12px; font-size: .88rem; }
  .home-body .top.public .top-inner { padding-left: 24px; padding-right: 24px; }
  .home-body .public-nav { gap: 0; }
  .home-body .public-nav a { font-size: 1.02rem; }
}
@media (min-width: 961px) and (max-width: 1120px) {
  .top.public .brand-word { height: 50px; }
  .top.public .brand-sub { display: none; }
  .public-nav a { font-size: .84rem; padding-left: 7px; padding-right: 7px; }
  .home-body .public-nav a { font-size: .92rem; }
  .home-body .brand-word { height: 60px; }
}
@media (min-width: 1341px) and (max-width: 1600px) {
  .home-body .public-nav { gap: 2px; }
  .home-body .public-nav a { font-size: 1.08rem; }
}
@media (min-width: 961px) and (max-width: 1040px) {
  .search-link { display: none; }
  .public-nav a { font-size: .8rem; padding-left: 5px; padding-right: 5px; }
  .home-body .public-nav a { font-size: .84rem; }
  .top-actions .small-btn { padding: 8px 10px; font-size: .82rem; }
}
/* the home page menu is larger, so it steps down sooner */
@media (min-width: 1341px) and (max-width: 1460px) {
  .home-body .public-nav a { font-size: .98rem; }
}
@media (min-width: 1201px) and (max-width: 1340px) {
  .home-body .brand-word { height: 66px; }
  .home-body .public-nav a { font-size: .95rem; }
}
@media (min-width: 1041px) and (max-width: 1200px) {
  .home-body .brand-word { height: 60px; }
  .home-body .public-nav a { font-size: .92rem; padding-left: 7px; padding-right: 7px; }
}
@media (min-width: 1041px) and (max-width: 1120px) {
  .home-body .public-nav a { font-size: .86rem; padding-left: 5px; padding-right: 5px; }
}
/* keep the sprig decoration inside the page so the home page never scrolls sideways */
@media (max-width: 1340px) { .h-flow-sprig { right: -4px; } }
