/* Tendwell - main stylesheet
   Layout is mobile-first; breakpoints at 720px and 1024px.
   Colors live in :root so a rebrand is mostly a matter of editing the top of this file. */

:root {
  --ink: #1c2a33;
  --ink-soft: #4b5b64;
  --ink-faint: #6f7d85;
  --paper: #ffffff;
  --mist: #f1f5f3;
  --line: #d9e2df;
  --line-strong: #b9c7c2;
  --pine: #1f5c4f;
  --pine-deep: #16443a;
  --pine-wash: #e2eee9;
  --marigold: #d9a21b;
  --marigold-wash: #fbf0d2;
  --brick: #9c3346;
  --brick-wash: #f8e7ea;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 10px;
  --radius-small: 6px;
  --wrap: 1180px;
  --gutter: 16px;
}

@media (min-width: 720px) {
  :root { --gutter: 28px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a { color: var(--pine); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--pine-deep); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--pine);
  outline-offset: 2px;
  border-radius: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.muted { color: var(--ink-soft); }
.small { font-size: 0.875rem; }
.optional { color: var(--ink-faint); font-weight: 400; }

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  z-index: 100;
  border-radius: var(--radius-small);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1.5px solid var(--pine);
  border-radius: 999px;
  background: var(--pine);
  color: #fff;
  font: 600 0.95rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--pine-deep); border-color: var(--pine-deep); color: #fff; text-decoration: none; }
.btn--ghost { background: transparent; color: var(--pine); }
.btn--ghost:hover { background: var(--pine-wash); color: var(--pine-deep); }
.btn--light { background: #fff; border-color: #fff; color: var(--pine-deep); }
.btn--light:hover { background: var(--pine-wash); border-color: var(--pine-wash); color: var(--pine-deep); }
.btn--small { min-height: 38px; padding: 7px 16px; font-size: 0.875rem; }
.btn--large { min-height: 52px; padding: 12px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.link-btn {
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--pine);
  font: 600 0.875rem var(--sans);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.save-btn, .share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 600 0.875rem var(--sans);
  cursor: pointer;
}
.save-btn::before {
  content: "";
  width: 12px; height: 14px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%);
  opacity: 0.35;
}
.save-btn:hover, .share-btn:hover { border-color: var(--pine); }
.save-btn[aria-pressed="true"] { border-color: var(--pine); background: var(--pine-wash); color: var(--pine-deep); }
.save-btn[aria-pressed="true"]::before { opacity: 1; }

/* ---------- header ---------- */

.demo-bar {
  background: var(--marigold-wash);
  color: #5c4508;
  font-size: 0.85rem;
  text-align: center;
  padding: 7px var(--gutter);
  border-bottom: 1px solid #efdca5;
}
.demo-bar a { color: inherit; font-weight: 600; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: relative;
  z-index: 20;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  text-decoration: none;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand__mark { width: 30px; height: 30px; color: var(--pine); }

.nav-toggle {
  border: 1.5px solid var(--line-strong);
  background: #fff;
  border-radius: 999px;
  padding: 7px 16px;
  font: 600 0.9rem var(--sans);
  color: var(--ink);
  cursor: pointer;
}

.site-nav { display: none; }
.site-nav.is-open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 20px;
  box-shadow: 0 12px 24px -16px rgba(28, 42, 51, 0.35);
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li a {
  display: block;
  padding: 12px 0;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.site-nav a[aria-current="page"] { color: var(--pine); font-weight: 700; }
.crisis-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--brick);
  font-weight: 700;
  text-decoration: none;
}
.crisis-link:hover { color: var(--brick); text-decoration: underline; }

.saved-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--pine);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 2px;
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 28px; }
  .site-nav ul { display: flex; gap: 24px; }
  .site-nav li a { padding: 6px 0; border: 0; border-bottom: 2px solid transparent; }
  .site-nav li a:hover { border-bottom-color: var(--line-strong); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--pine); font-weight: 600; }
  .crisis-link {
    margin: 0;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--brick-wash);
  }
}

/* ---------- breadcrumbs / page heads ---------- */

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line-strong); }
.crumbs a { color: var(--ink-soft); }

.page-head { padding-bottom: 28px; }
.page-head h1 { margin-top: 18px; }
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 62ch; }

/* ---------- home hero ---------- */

.hero {
  background: var(--mist);
  border-bottom: 1px solid var(--line);
  padding: 44px 0 36px;
}
.hero__title { max-width: 18ch; margin-bottom: 12px; }
.hero__lede { max-width: 60ch; color: var(--ink-soft); font-size: 1.05rem; }

/* the sentence-style search: inputs sit inline in a line of serif text */
.finder {
  margin: 28px 0 18px;
  padding: 24px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.finder__sentence {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1rem + 1.6vw, 2.1rem);
  line-height: 1.7;
  margin: 0;
}
.finder__sentence label { color: var(--ink); }
.finder__sentence input {
  font: inherit;
  color: var(--pine-deep);
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--line-strong);
  background: transparent;
  padding: 0 2px 2px;
  margin: 2px 0 8px;
  border-radius: 0;
}
.finder__sentence input::placeholder { color: #9aa7ad; }
.finder__sentence input:focus { outline: none; border-bottom-color: var(--pine); }
.finder__sentence input::-webkit-search-cancel-button { display: none; }
.finder__place { position: relative; display: block; }
.finder__place input { padding-right: 44px; }
.finder__place .locate-btn { position: absolute; right: 0; top: 50%; transform: translateY(-60%); }

.finder__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 14px;
}

@media (min-width: 900px) {
  .finder { padding: 34px 38px; }
  .finder__sentence input { display: inline-block; width: auto; margin: 0 6px; }
  #hero-q { width: 12em; }
  .finder__near { white-space: nowrap; }
  .finder__place { display: inline-block; }
  #hero-loc { width: 8em; }
}

.locate-btn {
  width: 38px; height: 38px;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--pine);
  border-radius: 50%;
  cursor: pointer;
}
.locate-btn svg { width: 20px; height: 20px; }
.locate-btn:hover { background: var(--pine-wash); }
.locate-btn.is-busy { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.quick-links a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.9rem;
  text-decoration: none;
}
.quick-links a:hover { border-color: var(--pine); color: var(--pine-deep); }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  cursor: pointer;
  line-height: 1.4;
}
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--pine); flex: none; }

/* ---------- home sections ---------- */

.band--facts { border-bottom: 1px solid var(--line); }
.facts-row {
  display: grid;
  gap: 4px 32px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.facts-row p { margin: 0; color: var(--ink-soft); }
.facts-row strong { color: var(--ink); font-size: 1.1rem; }
@media (min-width: 720px) { .facts-row { grid-template-columns: repeat(3, auto); justify-content: start; } }

.section { padding: 56px 0; }
.section--tinted { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 62ch; margin-bottom: 24px; }
.section__head p { color: var(--ink-soft); }
.section__more { margin: 20px 0 0; font-weight: 600; }

.link-columns {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2 170px;
  column-gap: 32px;
}
.link-columns li {
  break-inside: avoid;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.link-columns a { color: var(--ink); text-decoration: none; font-weight: 500; }
.link-columns a:hover { color: var(--pine); text-decoration: underline; }
.link-columns--states { columns: 2 190px; }
@media (min-width: 1024px) {
  .link-columns { columns: 4; }
}
.count { color: var(--ink-faint); font-size: 0.85rem; font-variant-numeric: tabular-nums; }

.steps {
  list-style: none;
  counter-reset: step;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 28px;
}
.steps li { counter-increment: step; position: relative; padding-top: 52px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0; left: 0;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--pine);
  color: var(--pine);
  font: 600 1.05rem var(--serif);
}
.steps p { color: var(--ink-soft); margin: 0; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

.guide-links { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.guide-links a {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  text-decoration: none;
}
.guide-links a:hover h3 { color: var(--pine); text-decoration: underline; }
.guide-links h3 { margin-bottom: 4px; }
.guide-links p { margin: 0; color: var(--ink-soft); }
@media (min-width: 820px) {
  .guide-links { grid-template-columns: repeat(3, 1fr); gap: 36px; border-top: 0; }
  .guide-links a { border-top: 2px solid var(--pine); border-bottom: 0; }
}

.cta-band { background: var(--pine); color: #fff; padding: 44px 0; }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; color: #d3e6df; max-width: 56ch; }

/* ---------- listings (shared by search, state, city, profile) ---------- */

.listing-stack { border-top: 1px solid var(--line); }

.listing {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 4px 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.listing__photo { grid-row: span 2; text-decoration: none; }
.listing__body { min-width: 0; }
.listing__side { grid-column: 2; }
.listing__name { font-size: 1.2rem; margin: 0 0 2px; }
.listing__name a { color: var(--ink); text-decoration: none; }
.listing__name a:hover { color: var(--pine); text-decoration: underline; }
.listing__role { margin: 0 0 8px; color: var(--ink-soft); font-size: 0.925rem; }
.listing__quote {
  margin: 0 0 10px;
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.listing__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

@media (min-width: 820px) {
  .listing { grid-template-columns: 64px minmax(0, 1fr) 250px; gap: 0 22px; }
  .listing__photo { grid-row: auto; }
  .listing__side { grid-column: auto; padding-left: 22px; border-left: 1px solid var(--line); }
}

.avatar {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font: 600 1.15rem var(--serif);
  letter-spacing: 0.02em;
}
@media (min-width: 820px) { .listing .avatar { width: 64px; height: 64px; font-size: 1.3rem; } }
.avatar--large { width: 96px; height: 96px; font-size: 2rem; }
.avatar--1 { background: #dcebe5; color: #1f5c4f; }
.avatar--2 { background: #f3e3c4; color: #6b4a0e; }
.avatar--3 { background: #e0e4f2; color: #34406e; }
.avatar--4 { background: #f2dfe2; color: #7a2c3b; }
.avatar--5 { background: #e3ecd5; color: #3f5a1c; }
.avatar--6 { background: #dfe9ef; color: #274e63; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tags li {
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--mist);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.tags--strong li { background: var(--pine-wash); border-color: #c5dcd3; font-size: 0.9rem; padding: 5px 12px; }
.tags--strong a { color: var(--pine-deep); font-weight: 600; text-decoration: none; }
.tags--strong a:hover { text-decoration: underline; }

.availability {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.availability::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-faint);
}
.availability.is-open { color: var(--ink); }
.availability.is-open::before { background: var(--marigold); border-color: var(--marigold); box-shadow: 0 0 0 3px var(--marigold-wash); }

.facts { margin: 0; font-size: 0.875rem; }
.facts div { display: grid; grid-template-columns: 78px 1fr; gap: 8px; padding: 2px 0; }
.facts dt { color: var(--ink-faint); }
.facts dd { margin: 0; }

/* ---------- search page ---------- */

.search-top { background: var(--mist); border-bottom: 1px solid var(--line); padding: 18px 0; }
.searchbar { display: grid; gap: 10px; }
.searchbar__field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 4px; }
.searchbar input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-small);
  background: #fff;
  font: 1rem var(--sans);
  color: var(--ink);
}
.searchbar input:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px var(--pine-wash); }
.searchbar__place { position: relative; }
.searchbar__place input { padding-right: 46px; }
.searchbar__place .locate-btn { position: absolute; right: 4px; top: 4px; }
@media (min-width: 720px) {
  .searchbar { grid-template-columns: 1.4fr 1fr auto; align-items: end; }
  .searchbar .btn { min-height: 46px; border-radius: var(--radius-small); }
}

.search-layout { display: grid; gap: 28px; padding-top: 24px; padding-bottom: 56px; }
@media (min-width: 1024px) { .search-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 40px; } }

.filters__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 4px; }
.filters__head h2 { font-size: 1.2rem; margin: 0; margin-right: auto; }
.filters__close, .filters__foot { display: none; }

.filter-group { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 16px 0; min-width: 0; }
.filter-group legend { font-weight: 700; font-size: 0.9rem; padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.filter-group legend + * { clear: both; }
.filter-group select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-small);
  background: #fff;
  font: 0.95rem var(--sans);
  color: var(--ink);
}
.check-list { display: grid; gap: 9px; }
.check-list[data-collapsed="true"] .check:nth-child(n + 9) { display: none; }
.check-list .check .count { margin-left: auto; }
.check-list + .link-btn { margin-top: 8px; }

.segmented { display: flex; border: 1.5px solid var(--line-strong); border-radius: var(--radius-small); overflow: hidden; }
.segmented label { flex: 1; position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span { display: block; text-align: center; padding: 8px 4px; font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); }
.segmented label + label span { border-left: 1px solid var(--line); }
.segmented input:checked + span { background: var(--pine); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid var(--pine); outline-offset: -3px; }
.segmented--wrap { flex-wrap: wrap; }

.range-label { display: block; font-size: 0.9rem; margin-bottom: 4px; }
.range-label output { font-weight: 700; }
input[type="range"] { width: 100%; accent-color: var(--pine); margin: 0 0 12px; }
.filter-group .check + .check { margin-top: 8px; }

/* filters become a slide-over sheet below desktop */
@media (max-width: 1023px) {
  .filters {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(420px, 100%);
    background: #fff;
    z-index: 60;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.22s ease, visibility 0s linear 0.22s;
  }
  .filters.is-open { transform: none; visibility: visible; transition: transform 0.22s ease; }
  .filters__head { padding: 16px var(--gutter); border-bottom: 1px solid var(--line); align-items: center; }
  .filters__close { display: inline-block; border: 0; background: none; font: 600 0.9rem var(--sans); color: var(--ink); cursor: pointer; padding: 6px; }
  .filters__form { overflow-y: auto; padding: 0 var(--gutter); flex: 1; }
  .filters__form .filter-group:first-child { border-top: 0; }
  .filters__foot { display: block; padding: 12px var(--gutter); border-top: 1px solid var(--line); }
  .scrim:not([hidden]) { position: fixed; inset: 0; background: rgba(28, 42, 51, 0.45); z-index: 50; }
  body.filters-locked { overflow: hidden; }
}
@media (min-width: 1024px) {
  .filters-open { display: none; }
  .filters { position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); overflow-y: auto; padding-right: 6px; }
  .scrim { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .filters, .filters.is-open { transition: none; }
}

.results__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 20px;
  margin-bottom: 12px;
}
.results__title { font-size: 1.35rem; margin: 0; }
.results__note { margin: 4px 0 0; font-size: 0.9rem; color: var(--ink-soft); }
.results__tools { display: flex; gap: 10px; align-items: center; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--ink-soft); }
.sort select {
  min-height: 40px;
  padding: 6px 10px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-small);
  font: 600 0.9rem var(--sans);
  color: var(--ink);
  background: #fff;
}
.badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--pine);
  color: #fff;
  font-size: 0.75rem;
}
.btn--ghost .badge { background: var(--pine); color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 16px; padding: 0; }
.chips:empty { display: none; }
.chips button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px 5px 12px;
  border: 1px solid #c5dcd3;
  background: var(--pine-wash);
  color: var(--pine-deep);
  border-radius: 999px;
  font: 600 0.85rem var(--sans);
  cursor: pointer;
}
.chips button::after { content: "\00d7"; font-size: 1.1rem; line-height: 1; opacity: 0.7; }
.chips button:hover { border-color: var(--pine); }

.empty {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.empty h3 { font-size: 1.25rem; }
.empty ul { margin: 0 0 1em; padding-left: 1.2em; color: var(--ink-soft); }

.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 28px; }
.pager:empty { display: none; }
.pager button, .pager span {
  min-width: 42px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-small);
  background: #fff;
  font: 600 0.9rem var(--sans);
  color: var(--ink);
  cursor: pointer;
}
.pager span { border-color: transparent; cursor: default; color: var(--ink-faint); }
.pager button[aria-current="page"] { background: var(--pine); border-color: var(--pine); color: #fff; }
.pager button:disabled { opacity: 0.4; cursor: default; }

.notice { padding: 14px 16px; border-radius: var(--radius-small); background: var(--marigold-wash); }

/* ---------- state / city pages ---------- */

.area-layout { display: grid; gap: 32px; padding-bottom: 56px; }
@media (min-width: 1024px) { .area-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 44px; } }
.area-aside { font-size: 0.95rem; }
@media (min-width: 1024px) { .area-aside { position: sticky; top: 16px; align-self: start; } }

.area-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 24px; }
.area-stats div { background: #fff; padding: 12px 14px; }
.area-stats dt { font-size: 0.8rem; color: var(--ink-soft); }
.area-stats dd { margin: 0; font: 600 1.2rem var(--serif); }

.aside-title { font-family: var(--sans); font-size: 0.9rem; font-weight: 700; margin: 20px 0 6px; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.list-title { font-size: 1.3rem; }

.state-list { list-style: none; margin: 0 0 56px; padding: 0; display: grid; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .state-list { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
@media (min-width: 1024px) { .state-list { grid-template-columns: repeat(3, 1fr); } }
.state-list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.state-list__name { display: block; color: var(--ink); font-weight: 600; font-size: 1.05rem; }
.state-list a:hover .state-list__name { color: var(--pine); text-decoration: underline; }
.state-list__meta { display: block; color: var(--ink-soft); font-size: 0.875rem; }

/* ---------- profile ---------- */

.profile-head { padding: 24px 0 28px; border-bottom: 1px solid var(--line); }
.profile-head__inner { display: grid; gap: 18px; }
.profile-head h1 { margin: 0 0 4px; }
.profile-head__role { margin: 0; font-size: 1.05rem; }
.pronouns { color: var(--ink-soft); }
.profile-head__place { margin: 2px 0 0; color: var(--ink-soft); }
.sep { color: var(--line-strong); margin: 0 6px; }
.sample-flag { display: inline-block; margin: 10px 0 0; padding: 3px 10px; font-size: 0.8rem; border-radius: 999px; background: var(--marigold-wash); color: #5c4508; }
.profile-head__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.icon-actions { display: flex; gap: 8px; }
@media (min-width: 900px) {
  .profile-head__inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
  .profile-head__actions { flex-direction: column; align-items: stretch; }
  .icon-actions { justify-content: center; }
}

.profile-body { display: grid; gap: 32px; padding-top: 32px; padding-bottom: 40px; }
@media (min-width: 1024px) { .profile-body { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; } }
.profile-main { max-width: 70ch; }

.profile-quote {
  margin: 0 0 32px;
  padding: 0 0 0 20px;
  border-left: 3px solid var(--marigold);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.45;
}
.profile-quote p { margin: 0; }

.profile-section { padding: 26px 0; border-top: 1px solid var(--line); }
.profile-section h2 { font-size: 1.4rem; }
.profile-section h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin-top: 20px; }
.profile-section .tags + .muted { margin-top: 14px; }
.profile-section .muted.small { margin-bottom: 8px; }

.detail-list { margin: 0; }
.detail-list div { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.detail-list dt { font-weight: 600; font-size: 0.9rem; }
.detail-list dd { margin: 0; color: var(--ink-soft); }
@media (min-width: 620px) { .detail-list div { grid-template-columns: 180px 1fr; gap: 16px; } }

.bullets { columns: 2 180px; margin: 0 0 1em; padding-left: 1.2em; }

.glance { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--mist); }
@media (min-width: 1024px) { .profile-aside { position: sticky; top: 16px; align-self: start; } }
.glance .availability { font-size: 1rem; }
.glance__list { margin: 16px 0 0; }
.glance__list div { padding: 10px 0; border-top: 1px solid var(--line); }
.glance__list dt { font-size: 0.8rem; color: var(--ink-soft); }
.glance__list dd { margin: 0; font-weight: 600; }
.glance__sub { font-family: var(--sans); font-size: 0.8rem; font-weight: 400; color: var(--ink-soft); margin: 0; padding-top: 10px; border-top: 1px solid var(--line); }
.address { margin: 0; font-weight: 600; }

.contact-form { display: grid; gap: 14px; max-width: 560px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 10px 12px;
  min-height: 44px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-small);
  font: 1rem var(--sans);
  color: var(--ink);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px var(--pine-wash); }
.field [aria-invalid="true"] { border-color: var(--brick); }
.field-error { color: var(--brick); font-size: 0.85rem; margin: 4px 0 0; }
.field-row { display: grid; gap: 14px; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--brick); }
.form-status.is-ok { color: var(--pine-deep); background: var(--pine-wash); padding: 12px 14px; border-radius: var(--radius-small); }

.nearby { padding-bottom: 56px; }
.nearby h2 { font-size: 1.4rem; }

/* ---------- long-form content pages ---------- */

.prose { max-width: 70ch; padding-bottom: 56px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 700; border-bottom-color: var(--line-strong); }
.table-scroll { overflow-x: auto; }
.callout { padding: 16px 18px; border-radius: var(--radius); background: var(--mist); border: 1px solid var(--line); margin: 1.5em 0; }
.callout p:last-child { margin-bottom: 0; }

.help-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.help-list li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
@media (min-width: 720px) { .help-list li { grid-template-columns: 260px 1fr; gap: 24px; } }
.help-list h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin: 0; }
.help-list p { margin: 0; }
.help-contact { font-size: 1.1rem; font-weight: 700; }

.urgent {
  border-left: 4px solid var(--brick);
  background: var(--brick-wash);
  padding: 20px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 32px;
}
.urgent h2 { margin-top: 0; color: var(--brick); font-size: 1.4rem; }
.urgent p:last-child { margin-bottom: 0; }
.urgent .big { font: 600 clamp(1.4rem, 1.1rem + 1vw, 1.9rem) var(--serif); margin-bottom: 6px; }

.guide-index { list-style: none; padding: 0; margin: 0 0 56px; max-width: 70ch; border-top: 1px solid var(--line); }
.guide-index li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.guide-index h2 { font-size: 1.3rem; margin-bottom: 4px; }
.guide-index p { margin: 0; color: var(--ink-soft); }

.two-col { display: grid; gap: 40px; padding-bottom: 56px; }
@media (min-width: 1024px) { .two-col { grid-template-columns: minmax(0, 1fr) 460px; gap: 64px; } }
.form-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--mist); align-self: start; }
.form-panel h2 { font-size: 1.35rem; }

/* ---------- footer ---------- */

.site-footer { background: var(--ink); color: #c9d3d7; padding: 0 0 32px; font-size: 0.925rem; }
.site-footer a { color: #fff; }
.footer-crisis { border-bottom: 1px solid #34454f; padding: 22px 0; }
.footer-crisis p { margin: 0; max-width: 80ch; }
.footer-crisis strong { color: #fff; }
.footer-cols { display: grid; gap: 28px; padding: 32px 0; }
@media (min-width: 720px) { .footer-cols { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-brand { font: 600 1.3rem var(--serif); color: #fff; margin-bottom: 6px; }
.site-footer .muted { color: #a9b6bc; }
.site-footer h2 { font: 700 0.85rem var(--sans); color: #fff; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.site-footer li a { color: #c9d3d7; text-decoration: none; }
.site-footer li a:hover { color: #fff; text-decoration: underline; }
.footer-fine { border-top: 1px solid #34454f; padding-top: 20px; margin: 0; font-size: 0.825rem; color: #a9b6bc; max-width: 90ch; }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  z-index: 90;
}

@media print {
  .site-header, .site-footer, .demo-bar, .profile-head__actions, .contact-section, .nearby, .filters { display: none !important; }
}

.tags li.is-match { background: var(--pine-wash); border-color: #c5dcd3; color: var(--pine-deep); font-weight: 600; }

/* ---------- registry-backed search additions ---------- */

.finder__sentence select {
  font: inherit;
  color: var(--pine-deep);
  border: 0;
  border-bottom: 2px solid var(--line-strong);
  background: transparent;
  padding: 0 2px 2px;
  margin: 2px 0 8px;
  border-radius: 0;
  max-width: 100%;
  cursor: pointer;
}
.finder__sentence select:focus { outline: none; border-bottom-color: var(--pine); }
@media (min-width: 900px) { .finder__sentence select { margin: 0 6px; } }
.finder__alt { font-weight: 600; }

.type-grid { display: grid; gap: 0 40px; margin: 0; border-top: 1px solid var(--line-strong); }
@media (min-width: 720px) { .type-grid { grid-template-columns: 1fr 1fr; } }
.type-grid div { padding: 14px 0; border-bottom: 1px solid var(--line-strong); }
.type-grid dt { font-weight: 700; font-size: 1.05rem; }
.type-grid dt a { color: var(--ink); text-decoration: none; }
.type-grid dt a:hover { color: var(--pine); text-decoration: underline; }
.type-grid dd { margin: 2px 0 0; color: var(--ink-soft); font-size: 0.95rem; }

.listing__addr { margin: -4px 0 10px; font-size: 0.9rem; color: var(--ink-soft); }
.listing__phone { margin: 0 0 4px; font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.listing__phone a { color: var(--ink); text-decoration: none; }
.listing__phone a:hover { color: var(--pine); text-decoration: underline; }
@media (min-width: 820px) {
  .listing { grid-template-columns: 64px minmax(0, 1fr) 210px; }
  .listing__side { display: flex; flex-direction: column; justify-content: center; }
}

.listing--loading { align-items: center; }
.listing--loading .avatar { background: var(--mist); }
.bar { display: block; height: 12px; border-radius: 6px; background: var(--mist); margin: 8px 0; width: 45%; animation: pulse 1.2s ease-in-out infinite; }
.bar--wide { height: 16px; width: 60%; }
.bar--short { width: 30%; }
@media (prefers-reduced-motion: reduce) { .bar { animation: none; } }

.more-wrap { text-align: center; margin-top: 24px; }
.filter-note { border-top: 1px solid var(--line); padding-top: 16px; margin: 0; }

.searchbar--inline { max-width: 640px; margin-top: 20px; }
@media (min-width: 720px) { .searchbar--inline { grid-template-columns: 1fr auto; } }

.state-cols { display: grid; gap: 32px; padding-bottom: 56px; }
@media (min-width: 820px) { .state-cols { grid-template-columns: 1fr 1fr; gap: 56px; } }
.plain-list--links li { padding: 10px 0; }
.plain-list--links a { font-weight: 500; }

.services { max-width: 900px; padding-bottom: 56px; }
.service-group { padding: 28px 0 8px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.service-group h2 { font-size: 1.45rem; margin-bottom: 4px; }
.service-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 0 40px; }
@media (min-width: 720px) { .service-list { grid-template-columns: 1fr 1fr; } }
.service-list li { padding: 12px 0 14px; border-bottom: 1px solid var(--line); }
.service-list h3 { font-size: 1.1rem; margin: 0 0 2px; }
.service-list p { margin: 0; font-size: 0.95rem; }
.service-url { color: var(--ink-faint); font-size: 0.825rem !important; margin-top: 4px !important; }

.profile-section--first { border-top: 0; padding-top: 0; }
.loc-grid { display: grid; gap: 20px; }
@media (min-width: 620px) { .loc-grid { grid-template-columns: 1fr 1fr; } }
.loc-block p { margin: 0 0 4px; }
.bullets--single { columns: auto; }
.glance__list--first { margin-top: 0; }
.glance__list--first div:first-child { border-top: 0; padding-top: 0; }
.notice { margin-bottom: 20px; }
code { font-size: 0.9em; background: var(--mist); padding: 1px 6px; border-radius: 4px; }

/* ---------- practice services ---------- */

.offer-grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .offer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .offer-grid { grid-template-columns: repeat(4, 1fr); } }
.offer { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--pine); border-radius: var(--radius); padding: 20px; }
.offer h3 { font-size: 1.2rem; margin-bottom: 2px; }
.offer__price { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 8px; }
.offer__price strong { color: var(--ink); font: 600 1.35rem var(--serif); }
.offer p { font-size: 0.95rem; }
.offer .bullets { padding-left: 1.1em; margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.offer .bullets li { margin-bottom: 4px; }
#pricing { scroll-margin-top: 16px; margin-bottom: 16px; }
#inquiry { scroll-margin-top: 16px; }
.form-panel select { width: 100%; }

.promo {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  background: var(--pine-wash); border: 1px solid #c5dcd3; border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 28px; max-width: 70ch;
}
.promo h2 { font-size: 1.2rem; margin-bottom: 4px; }
.promo p { margin: 0; color: var(--ink-soft); }

.owner-note { margin-top: 8px; padding: 14px 16px; border-radius: var(--radius-small); background: var(--mist); border: 1px solid var(--line); font-size: 0.9rem; }
.owner-note p { margin: 0; }
