.therapists {
  --td-paper: #fff;
  --td-ink: #192e2b;
  --td-muted: #51655f;
  --td-accent: #155e50;
  --td-line: #d4e1db;
  --td-map: #e4efe7;
  --td-button-ink: #fff;
  color: var(--td-ink);
  container-type: inline-size;
}

.therapists:is(.therapists-directory, .therapists-registration) {
  color-scheme: only light;
}

.therapists [hidden] { display: none !important; }
.therapists a { color: var(--td-accent); text-decoration: underline; }
.therapists :is(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--td-accent); outline-offset: 2px; }
.therapists.therapists-directory {
  box-sizing: border-box;
  inline-size: 100%;
  min-inline-size: 0;
  max-inline-size: none;
  overflow-wrap: anywhere;
}
.therapists-search { margin-bottom: 1.5rem; }
.therapists-search-fields, .therapists-fields { display: grid; gap: 0.75rem; }
.therapists-actions, .therapists-contact { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; }
.therapists-actions { margin-top: 0.75rem; }

.therapists :is(.therapists-field, .therapists-search label) { display: grid; gap: 0.25rem; }
.therapists :is(input:not([type="checkbox"]):not([type="hidden"]), textarea, select) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 2.5rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--td-line);
  border-radius: 0.35rem;
  background: var(--td-paper);
  color: var(--td-ink);
  font: inherit;
}

.therapists .therapists-button {
  width: fit-content;
  border: 1px solid transparent;
  border-radius: 0.4rem;
  background: var(--td-accent);
  color: var(--td-button-ink);
  padding: 0.6rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.therapists-results { display: grid; gap: 1rem; grid-auto-rows: 1fr; grid-template-columns: minmax(0, 1fr); }
.therapists-pagination > ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
}
/* Override theme bullets only on the pagination list and its direct items. */
.therapists-pagination > ul,
.therapists-pagination > ul > li {
  list-style: none !important;
}
.therapists-pagination > ul > li::marker,
.therapists-pagination > ul > li::before {
  content: none !important;
}
.therapists-pagination :is(a, span) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 0.4rem;
}
.therapists-pagination a { border-color: var(--td-line); background: var(--td-paper); }
.therapists-pagination [aria-current] { background: var(--td-accent); color: var(--td-button-ink); font-weight: 600; }
.therapists-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--td-line);
  border-radius: 0.6rem;
  background: var(--td-paper);
  overflow-wrap: anywhere;
}
.therapists-results > .therapists-card, .therapists-preview .therapists-card {
  min-height: 21rem;
  background: #fcfbf7;
  border-color: #b7d4cc;
  box-shadow: 0 2px 8px rgb(25 46 43 / 8%);
}
.therapists-card :is(h2, h3, p) { margin: 0 0 0.5rem; }
.therapists-card h3 { font-size: 1.22rem; line-height: 1.2; }
.therapists-focus { white-space: pre-line; }
.therapists-muted { color: var(--td-muted); }
.therapists-map {
  display: grid;
  min-height: 5.75rem;
  place-content: center;
  justify-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding: 0.5rem;
  border-radius: 0.4rem;
  color: var(--td-accent);
  text-align: center;
  background:
    linear-gradient(128deg, transparent 37%, var(--td-paper) 38% 41%, transparent 42%),
    linear-gradient(20deg, transparent 52%, var(--td-paper) 53% 58%, transparent 59%),
    var(--td-map);
}
.therapists-map:has(iframe) { place-content: stretch; }
.therapists-map iframe { width: 100%; min-width: min(200px, 100%); height: 200px; border: 0; }
.therapists-map button, .therapists-map a {
  background: var(--td-paper);
  color: var(--td-accent);
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
}
.therapists-map button { border: 1px solid var(--td-line); cursor: pointer; font: inherit; }

.therapists-registration { display: grid; gap: 1.25rem; }
.therapists-form h2, .therapists-preview h2 { font-size: 1.35rem; }
.therapists-form fieldset, .therapists-admin-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--td-line);
  border-radius: 0.35rem;
}
.therapists-form legend, .therapists-admin-form legend { font-weight: 600; }
.therapists-check { display: flex; align-items: start; gap: 0.5rem; margin-bottom: 0.5rem; }
.therapists-check input { flex: none; margin-top: 0.27em; accent-color: var(--td-accent); }
.therapists-preview { align-self: start; }
.therapists-preview h2 { margin: 0 0 0.75rem; }
.therapists-privacy-link { margin: 0; grid-column: 1 / -1; }

@container (min-width: 29rem) {
  .therapists-results, .therapists-search-fields, .therapists-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@container (min-width: 49rem) {
  .therapists-results { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .therapists-search-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 58rem) {
  .therapists-registration { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .therapists-registration > p[role="status"] { grid-column: 1 / -1; }
}

.therapists-admin-form { color-scheme: light dark; display: grid; gap: 0.75rem; max-width: 44rem; }
.therapists-admin .therapists-table { margin: 0.8rem 0; }
.therapists-admin dt { font-weight: 600; margin-top: 0.5rem; }
.therapists-admin dd { margin-inline-start: 0; }
.therapists-import { margin: 1.25rem 0; }
.therapists-quick { display: inline-flex; align-items: center; gap: 0.25rem; margin-right: 0.4rem; }
.therapists-quick .therapists-approve { color: #146137; }
.therapists-quick .therapists-deny { color: #8a252a; }
.therapists-pending-dot { width: 0.7rem; height: 0.7rem; border: 1px solid #715600; border-radius: 50%; background: #f1c53d; }
.therapists-status { display: inline-block; border-radius: 999px; padding: 0.15rem 0.55rem; font-weight: 600; }
.therapists-approved { background: #daf0e3; color: #174d30; }
.therapists-inactive { background: #f9dcde; color: #782226; }
.therapists-pending { background: #fff0bd; color: #694c00; }
.therapists-denied { background: #e5e7eb; color: #343941; }
