/*
 * Dare Therapy — team pages (single profile + Our Team). One shared stylesheet.
 * Served from Cloudflare Pages (dare-portal-assets) as dt-team.css.
 * Markup comes from the dare-team-photos plugin: [dt_profile], [dt_team_card], [dt_team_header].
 * Fonts (Baskervville, Manrope) are already loaded by the site's Elementor kit.
 * No per-member colours anywhere.
 */
:root {
  --dt-bg: #FAFAF7;
  --dt-surface: #FFFFFF;
  --dt-divider: #E6E1D8;
  --dt-text: #2B2B2B;
  --dt-text-muted: #5F5A52;
  --dt-olive: #3D6B00;
  --dt-olive-dark: #2B4D00;
  --dt-olive-line: #C9D9AE;
  --dt-chip-bg: #EEF5E0;
  --dt-lime: #8FD400;
  --dt-gold-soft: #FFD378;
  --dt-radius: 12px;
  --dt-serif: 'Baskervville', Georgia, serif;
  --dt-sans: 'Manrope', sans-serif;
}

/* The general page template's title section duplicates the new "Our Team" heading */
body:has(.dt-team-header) .elementor-1977 .elementor-element-4597a29 { display: none; }

/* Page background on the two team pages only */
body:has(.dt-team-page), body:has(.dt-card) { background: var(--dt-bg); }

.dt-team-page, .dt-card { font-family: var(--dt-sans); color: var(--dt-text); box-sizing: border-box; }
.dt-team-page *, .dt-card * { box-sizing: border-box; }
.dt-team-page p, .dt-card p { margin: 0; }
.dt-team-page a, .dt-card a { color: var(--dt-olive); }
.dt-team-page a:hover, .dt-card a:hover { color: var(--dt-olive-dark); }
.dt-muted { color: var(--dt-text-muted); }

/* ── Buttons: colour flip with white halo on hover and keyboard focus ── */
.dt-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.dt-team-page .dt-btn, .dt-card .dt-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  border: 1.5px solid var(--dt-olive); border-radius: 999px; padding: 0 1.4em;
  font-family: var(--dt-sans); font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.dt-team-page .dt-btn--primary, .dt-card .dt-btn--primary { background: var(--dt-olive); color: #fff; }
.dt-team-page .dt-btn--secondary, .dt-card .dt-btn--secondary { background: #fff; color: var(--dt-olive); }
.dt-team-page .dt-btn--primary:hover, .dt-team-page .dt-btn--primary:focus-visible,
.dt-card .dt-btn--primary:hover, .dt-card .dt-btn--primary:focus-visible {
  background: #fff; color: var(--dt-olive); box-shadow: 0 0 0 3px #fff, 0 0 14px 4px rgba(255,255,255,.9);
}
.dt-team-page .dt-btn--secondary:hover, .dt-team-page .dt-btn--secondary:focus-visible,
.dt-card .dt-btn--secondary:hover, .dt-card .dt-btn--secondary:focus-visible {
  background: var(--dt-olive); color: #fff; box-shadow: 0 0 0 3px #fff, 0 0 14px 4px rgba(255,255,255,.9);
}
.dt-team-page .dt-btn:focus-visible, .dt-card .dt-btn:focus-visible { outline: 2px solid var(--dt-olive); outline-offset: 4px; }
.dt-team-page a:focus-visible, .dt-card a:focus-visible, .dt-team-page button:focus-visible { outline: 2px solid var(--dt-olive); outline-offset: 2px; }

/* ── Chips ── */
.dt-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dt-chips li { margin: 0; }
.dt-chips li[hidden] { display: none !important; }
.dt-chip { display: inline-block; border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; line-height: 1.3; }
.dt-chip--specialty { background: var(--dt-chip-bg); color: var(--dt-olive); }
.dt-chip--approach { background: #fff; color: var(--dt-olive); box-shadow: inset 0 0 0 1px var(--dt-olive-line); }
.dt-chips--insurance { gap: 12px; }
.dt-chip--insurance { background: var(--dt-chip-bg); color: var(--dt-olive); padding: 12px 22px; font-size: 17px; font-weight: 600; }
.dt-chips--sm { gap: 6px; }
.dt-chips--sm .dt-chip { padding: 5px 12px; font-size: 13px; font-weight: 600; }
.dt-team-page .dt-chip--more, .dt-card .dt-chip--more { background: none; color: var(--dt-olive); box-shadow: inset 0 0 0 1px var(--dt-olive); text-decoration: none; padding: 5px 12px; font-size: 13px; font-weight: 600; }
.dt-card .dt-chip--more:hover { background: var(--dt-olive); color: #fff; }

/* ── Availability (only one is ever printed) ── */
.dt-avail { display: inline-block; align-self: flex-start; border-radius: 999px; padding: 5px 14px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.dt-avail--yes { background: var(--dt-gold-soft); color: var(--dt-text); }
.dt-avail--waitlist { background: var(--dt-chip-bg); color: var(--dt-text); }
.dt-avail--no { background: #EFEDE8; color: var(--dt-text-muted); }

/* ── Boxes and headings ── */
.dt-box { background: var(--dt-surface); border: 1px solid var(--dt-divider); border-radius: var(--dt-radius); padding: 36px 40px; display: flex; flex-direction: column; gap: 18px; }
.dt-team-page .dt-h2 { margin: 0; font-family: var(--dt-serif); font-weight: 400; font-size: 26px; line-height: 1.25; color: var(--dt-olive); letter-spacing: 0; text-transform: none; }

/* ── Single profile ── */
.dt-profile { max-width: 1040px; margin: 0 auto; padding: 40px 16px 80px; display: flex; flex-direction: column; gap: 24px; }
.dt-team-page .dt-backlink { font-size: 15px; font-weight: 500; text-decoration: none; align-self: flex-start; }
.dt-hero { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 40px; padding: 40px; }
.dt-profile .dt-hero-photo, .dt-profile img.dt-hero-photo { flex: 0 0 300px; max-width: none; width: 300px; height: auto; aspect-ratio: 3 / 4; border-radius: var(--dt-radius); object-fit: cover; object-position: center 25%; display: block; }
.dt-photo-placeholder { background: var(--dt-chip-bg); color: var(--dt-olive); display: flex; align-items: center; justify-content: center; font-family: var(--dt-serif); font-size: 64px; }
.dt-hero-text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.dt-quote { display: flex; align-items: flex-start; gap: 10px; font-family: var(--dt-serif); font-style: italic; font-size: 19px; line-height: 1.4; color: var(--dt-text-muted); }
.dt-quote svg { flex: none; margin-top: 2px; color: var(--dt-lime); }
.dt-team-page .dt-name { margin: 0; font-family: var(--dt-serif); font-weight: 400; font-size: 44px; line-height: 1.1; color: var(--dt-olive); letter-spacing: 0; text-transform: none; }
.dt-name-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.dt-name-row .dt-name { order: 1; }
.dt-name-row .dt-avail { order: 2; white-space: nowrap; }
.dt-name-row .dt-cred { order: 3; flex: 0 0 100%; margin: 0; }
.dt-name-row.dt-stacked .dt-avail { order: 4; } /* badge didn't fit beside the name: after the credentials */
.dt-name-row .dt-avail, .dt-card-actions .dt-avail { align-self: center; cursor: default; user-select: none; } /* centred on the name line */
.dt-cred { font-size: 16px; line-height: 1.5; color: var(--dt-text-muted); }
.dt-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; font-size: 15px; padding-top: 4px; }
.dt-dot { color: #C9C3B8; }
.dt-hero .dt-btns { padding-top: 10px; }
.dt-label-strong { font-size: 17px; font-weight: 600; }
.dt-divided { border-top: 1px solid var(--dt-divider); padding-top: 18px; }
.dt-selfpay { display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 1.6; }
.dt-text, .dt-prose { font-size: 16px; line-height: 1.65; } /* same size as the Q&A answers */
.dt-prose p + p { margin-top: 16px; }
.dt-qa { display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 1.65; }
.dt-qa + .dt-qa { border-top: 1px solid var(--dt-divider); padding-top: 22px; }
.dt-team-page .dt-qa h3 { margin: 0; font-family: var(--dt-sans); font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--dt-text); text-transform: none; letter-spacing: 0; }
.dt-qa p + p { margin-top: 10px; }
#insurance { scroll-margin-top: 140px; }
.dt-sublabel { font-size: 15px; color: var(--dt-text-muted); scroll-margin-top: 140px; }
.dt-sublabel + .dt-chips { margin-top: -6px; }
.dt-chips + .dt-sublabel { margin-top: 8px; }
.dt-pair { display: flex; flex-wrap: wrap; gap: 24px; }
.dt-pair > .dt-box { flex: 1 1 420px; min-width: 0; font-size: 16px; line-height: 1.6; gap: 14px; }
.dt-row { display: flex; justify-content: space-between; gap: 16px; }
.dt-row + .dt-row { border-top: 1px solid var(--dt-divider); padding-top: 12px; }
.dt-row span:last-child { font-weight: 500; text-align: right; }
.dt-closing { align-items: center; text-align: center; padding: 44px 40px; }
.dt-team-page .dt-closing .dt-h2 { font-size: 30px; }
.dt-closing .dt-btns { justify-content: center; }

/* ── Our Team page ── */
.dt-team-header { width: 100%; max-width: 1280px; margin: 0 auto; padding: 48px 0 4px; display: flex; flex-direction: column; gap: 28px; }
/* The shortcode widget sits in a row-direction Elementor container; let it take the full width like the card grid */
.elementor-widget-shortcode:has(.dt-team-header) { width: 100%; max-width: 100%; flex: 1 1 100%; }
.dt-team-intro { display: flex; flex-direction: column; gap: 10px; }
.dt-team-page .dt-team-title { margin: 0; font-family: var(--dt-serif); font-weight: 400; font-size: 52px; line-height: 1.1; color: var(--dt-olive); letter-spacing: 0; text-transform: none; }
.dt-team-intro p { font-size: 17px; line-height: 1.6; }
.dt-filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(215px, 1.25fr); gap: 14px; align-items: end; padding: 20px; }
/* Availability (last) is a little wider so "Accepting new clients" always fits; narrower screens use 3, then 2 columns */
@media (max-width: 1100px) { .dt-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 719px) {
  .dt-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dt-filter:has([data-filter="payment"]), .dt-filter:has([data-filter="availability"]) { grid-column: 1 / -1; }
}
.dt-filter { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--dt-text-muted); margin: 0; }
.dt-team-page .dt-select { min-height: 44px; width: 100%; border: 1px solid #CFC8BB; border-radius: 10px; background-color: #fff; padding: 0 12px; font-family: var(--dt-sans); font-size: 15px; color: var(--dt-text); }
/* Provider type and Availability: drop the phone's built-in drop-down look (iPhones draw their own box) so all six boxes match */
.dt-team-page select.dt-select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235F5A52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px; padding-right: 36px; text-overflow: ellipsis; }
.dt-team-page label.dt-filter { color: var(--dt-text-muted); }
.dt-team-page .dt-select:focus { outline: 2px solid var(--dt-olive); outline-offset: 1px; border-color: var(--dt-olive); }
.dt-team-page .dt-filters button.dt-clear { min-height: 44px; width: auto; justify-self: start; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 0 !important; font-family: var(--dt-sans); font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap; color: var(--dt-olive) !important; text-decoration: underline; text-transform: none; letter-spacing: 0; cursor: pointer; }
.dt-team-page .dt-filters button.dt-clear:hover, .dt-team-page .dt-filters button.dt-clear:focus-visible { background: none !important; color: var(--dt-olive-dark) !important; }
.dt-notsure, .dt-noresults { font-size: 15px; }
.dt-notsure a { font-weight: 600; }

/* Loop Grid: equal-height cards (Loop Grid: 1 column, one full-width card per row) */
.e-loop-item:has(.dt-card), .e-loop-item:has(.dt-card) .e-con, .e-loop-item:has(.dt-card) .e-con-inner,
.e-loop-item:has(.dt-card) .elementor-widget-shortcode, .e-loop-item:has(.dt-card) .elementor-widget-container,
.e-loop-item:has(.dt-card) .elementor-shortcode { height: 100%; }
.e-loop-item:has(.dt-card) .e-con { padding: 0; }
.e-loop-item.dt-filtered-out { display: none !important; }

.dt-card { background: var(--dt-surface); border: 1px solid var(--dt-divider); border-radius: var(--dt-radius); overflow: hidden; display: flex; align-items: stretch; }
/* Photo: 200px wide, the full height of the card, face kept in frame */
.dt-card-photo-link { flex: 0 0 200px; position: relative; min-height: 220px; background: #fff; display: block; }
.dt-card .dt-card-photo, .dt-card img.dt-card-photo { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; max-height: 360px; object-fit: cover; object-position: center 25%; display: block; }
/* Full card height on a normal desktop (cards are 220-325px); on taller cards (narrower windows) the photo stops at 360px
   and stays at the top, instead of becoming a thin strip that blows up the face and cuts off the sides */
.dt-card-photo-link:hover .dt-card-photo { opacity: .92; }
.dt-card .dt-photo-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; font-size: 56px; }
.dt-card-body { flex: 1 1 auto; min-width: 0; padding: 22px 26px; display: flex; flex-direction: column; gap: 9px; }
/* Name line: name, then badge + Book + View Profile; the three wrap together below a long name */
.dt-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.dt-card-head .dt-card-name { order: 1; }
.dt-card-head .dt-card-actions { order: 2; }
.dt-card-head .dt-card-cred { order: 3; flex: 0 0 100%; margin: 0; }
.dt-card-head.dt-stacked .dt-card-actions { order: 4; } /* buttons didn't fit beside the name: put them after the credentials */
.dt-card .dt-card-name { margin: 0; font-family: var(--dt-serif); font-weight: 400; font-size: 32px; line-height: 1.2; letter-spacing: 0; text-transform: none; }
.dt-card .dt-card-name a { color: var(--dt-olive); text-decoration: none; }
.dt-card .dt-card-name a:hover { text-decoration: underline; }
.dt-card-actions { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; }
.dt-card-actions .dt-avail { min-height: 32px; display: inline-flex; align-items: center; padding: 0 14px; white-space: nowrap; flex-shrink: 0; font-size: 13px; font-weight: 700; cursor: default; user-select: none; }
.dt-card .dt-card-actions .dt-btn { min-height: 32px; min-width: 120px; font-size: 14px; padding: 0 18px; } /* Book matches View Profile */
.dt-card-cred { font-size: 13px; line-height: 1.4; color: var(--dt-text-muted); }
.dt-card-intro { font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dt-card-meta { font-size: 13px; color: var(--dt-text-muted); line-height: 1.5; }
.dt-card-meta strong { font-weight: 600; color: var(--dt-text); }
.dt-card-row { display: flex; align-items: flex-start; gap: 6px; }
.dt-card-row .dt-caps { flex: 0 0 104px; font-size: 11px; font-weight: 700; padding-top: 5px; }
.dt-card-row .dt-chips { flex: 1 1 0; min-width: 0; }
.dt-chips--sm .dt-chip, .dt-team-page .dt-chips--sm .dt-chip--more, .dt-card .dt-chips--sm .dt-chip--more { padding: 3px 10px; font-size: 12px; font-weight: 600; }
.dt-card-selfpay { font-size: 13px; color: var(--dt-text); padding-top: 3px; }
.dt-caps { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dt-text-muted); }

/* ── Phones ── */
@media (max-width: 640px) {
  .dt-profile { padding: 24px 16px 56px; gap: 18px; }
  .dt-box { padding: 24px 20px; }
  .dt-hero { padding: 24px 20px; gap: 22px; }
  .dt-profile .dt-hero-photo, .dt-profile img.dt-hero-photo { flex: 0 0 auto; width: 100%; max-width: 280px; height: auto; aspect-ratio: 3 / 4; }
  .dt-team-page .dt-name { font-size: 34px; }
  .dt-team-page .dt-team-title { font-size: 40px; }
  .dt-team-header { padding-top: 28px; gap: 20px; }
  .dt-hero .dt-btns .dt-btn, .dt-closing .dt-btns .dt-btn { flex: 1 1 100%; }
  .dt-pair > .dt-box { flex-basis: 100%; }
  .dt-chip--insurance { padding: 10px 18px; font-size: 16px; }
  /* Phones: photo on top in a 4:3 frame (same crop at every phone width, so heads that sit low in the
     picture aren't cut at the eyes), details below; badge and buttons wrap under the name */
  .dt-card { flex-direction: column; }
  .dt-card-photo-link { flex: none; height: auto; aspect-ratio: 4 / 3; min-height: 0; }
  .dt-card .dt-card-photo, .dt-card img.dt-card-photo { object-position: center 30%; max-height: none; }
  .dt-card-body { padding: 18px; }
  .dt-card .dt-card-name { font-size: 26px; }
  .dt-card-actions { flex-wrap: wrap; }
  .dt-card-row .dt-caps { flex-basis: 86px; }
}

@media (prefers-reduced-motion: reduce) {
  .dt-team-page .dt-btn, .dt-card .dt-btn { transition: none; }
}

/* ── Multi-select filters (Specialty, Approach, Language, Insurance): a checkbox list under a select-style button ── */
.dt-filter-label { display: block; }
.dt-multi { position: relative; }
.dt-team-page .dt-multi summary.dt-select { display: flex; align-items: center; justify-content: space-between; gap: 8px; list-style: none; cursor: pointer; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-multi summary::-webkit-details-marker { display: none; }
.dt-multi summary::after { content: ''; flex: 0 0 auto; width: 8px; height: 8px; border-right: 2px solid var(--dt-text-muted); border-bottom: 2px solid var(--dt-text-muted); transform: translateY(-2px) rotate(45deg); }
.dt-multi[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.dt-team-page .dt-multi summary.dt-select:focus-visible { outline: 2px solid var(--dt-olive); outline-offset: 1px; border-color: var(--dt-olive); }
.dt-team-page .dt-multi--active summary.dt-select { border-color: var(--dt-olive); color: var(--dt-olive); font-weight: 600; }
.dt-multi-panel { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; min-width: 100%; width: max-content; max-width: min(320px, 90vw); max-height: 300px; overflow-y: auto; padding: 6px; background: var(--dt-surface); border: 1px solid var(--dt-divider); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.dt-multi-option { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 10px; border-radius: 8px; font-size: 15px; font-weight: 400; color: var(--dt-text); cursor: pointer; }
.dt-multi-option:hover { background: var(--dt-chip-bg); }
.dt-multi-option input { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; accent-color: var(--dt-olive); }
/* Phones: an open list spans the whole filter box (anchored to the form, opening right under its button), not just its column */
@media (max-width: 640px) {
  .dt-filters { position: relative; }
  .dt-filters .dt-filter, .dt-multi { position: static; }
  .dt-multi-panel { top: auto; left: 12px; right: 12px; width: auto; min-width: 0; max-width: none; max-height: 60vh; margin-top: 4px; }
}

/* ── Selected filters line: count, removable chips (one line, then "+N more"), Clear filters ── */
.dt-active { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 14px; border-top: 1px solid var(--dt-divider); }
.dt-active[hidden] { display: none; }
.dt-count { flex: 0 0 auto; font-size: 14px; font-weight: 700; color: var(--dt-text); white-space: nowrap; }
.dt-active-chips { flex: 1 1 0; min-width: 0; list-style: none; margin: 0; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 6px; }
.dt-active-chips li { margin: 0; }
.dt-active-chips li[hidden] { display: none !important; }
.dt-team-page .dt-active-chip, .dt-team-page .dt-active-more { display: inline-flex; align-items: center; gap: 6px; min-height: 30px !important; margin: 0; padding: 0 10px 0 12px !important; border: 0 !important; border-radius: 999px !important; background: var(--dt-chip-bg) !important; color: var(--dt-olive) !important; font-family: var(--dt-sans); font-size: 13px; font-weight: 600; line-height: 1.2; letter-spacing: 0; text-transform: none; box-shadow: none !important; cursor: pointer; white-space: nowrap; }
.dt-team-page .dt-active-chip:hover, .dt-team-page .dt-active-chip:focus-visible { background: var(--dt-olive-line) !important; color: var(--dt-olive-dark) !important; }
.dt-active-x { font-size: 16px; line-height: 1; opacity: .75; }
/* A long name wraps inside its chip instead of pushing the page wider than a phone screen */
.dt-team-page .dt-active-chip { max-width: 100%; white-space: normal; text-align: left; }
.dt-active-chips li { max-width: 100%; }
.dt-team-page .dt-active-more { padding: 0 12px !important; background: transparent !important; border: 1px solid var(--dt-olive-line) !important; }
.dt-team-page .dt-active-more:hover, .dt-team-page .dt-active-more:focus-visible { background: var(--dt-chip-bg) !important; }
.dt-team-page .dt-active .dt-clear { min-height: 30px !important; }
@media (max-width: 640px) {
  .dt-active-chips { flex-basis: 100%; order: 3; }
  .dt-team-page .dt-active .dt-clear { margin-left: auto; }
}
