/* Directory (v0.4): horizontal cards, pill filter bar, still-looking band, profile extras, online therapy page. */

/* ---- Layout widths ---- */
.container-mid { max-width: calc(940px + 2 * var(--g)); }
.container-wide { max-width: calc(1320px + 2 * var(--g)); }

/* ---- Therapist card: horizontal, photo left, chips under ----
   The grid is a size container: in a wide grid (home, directory) the cards take the large
   complicated.life scale (160 x 190 photo, 22px name, 16px text); in narrow places (related
   therapists under a profile, tablets) they stay medium. */
.t-grid { container: tgrid / inline-size; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .t-grid { grid-template-columns: 1fr 1fr; } }
.t-card {
	position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: 1fr auto;
	gap: 14px 18px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
	transition: border-color .2s, box-shadow .2s;
}
.t-card:hover { border-color: #cfe9df; box-shadow: 0 6px 22px rgba(21, 92, 74, .06); }
.home-network .t-card { background: #fafaf8; }
.t-card-photo { display: block; grid-row: 1; align-self: start; border-radius: 12px; overflow: hidden; }
.t-card .avatar-card { width: 120px; height: 144px; border-radius: 12px; font-size: 1.9rem; }
.t-card-body { min-width: 0; padding-top: 2px; padding-inline: 0 34px; }
.t-card-kicker { margin: 0 0 6px; font-size: 11px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: #4f6b63; line-height: 1.4; }
.t-card-name { font-size: 1.15rem; font-weight: 500; margin: 0 0 2px; letter-spacing: -.01em; line-height: 1.3; overflow-wrap: anywhere; }
.t-card-name a { color: var(--ink); text-decoration: none; }
.t-card-name a:hover { color: var(--green-dark); }
.t-card-name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.t-card-title { margin: 0 0 8px; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.t-card-issues { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.t-card-chips { grid-column: 1 / -1; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.t-card-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--pill); background: var(--mint-softer); color: #2c4a42; font-size: 13px; line-height: 1.5; }
.t-card-chips .icon { width: 14px; height: 14px; }
.t-chip-icons { display: inline-flex; gap: 2px; }
.t-chip-cur { font-weight: 500; }
.t-chip-licence.is-none { background: #f3f3ef; color: var(--muted); }
.t-card .save-btn { top: 12px; inset-inline-end: 12px; z-index: 1; }
@container tgrid (min-width: 960px) {
	.t-card { grid-template-columns: 160px minmax(0, 1fr); gap: 18px 24px; padding: 20px; }
	.t-card .avatar-card { width: 160px; height: 190px; font-size: 2.4rem; }
	.t-card-body { padding-top: 4px; }
	.t-card-kicker { font-size: 11.5px; margin-bottom: 8px; }
	.t-card-name { font-size: 22px; }
	.t-card-title { font-size: 16px; margin-bottom: 12px; }
	.t-card-issues { font-size: 16px; line-height: 1.6; }
	.t-card-chips li { font-size: 14px; padding: 5px 14px; }
	.t-card .save-btn { top: 16px; inset-inline-end: 16px; }
}
@media (max-width: 420px) {
	.t-card { grid-template-columns: 92px minmax(0, 1fr); gap: 12px 14px; padding: 12px; }
	.t-card .avatar-card { width: 92px; height: 112px; font-size: 1.5rem; }
	.t-card-name { font-size: 1.05rem; }
	.t-card-title, .t-card-issues { font-size: 14px; }
	.t-card-chips { gap: 6px; }
	.t-card-chips li { font-size: 12.5px; padding: 3px 10px; }
}

/* ---- Filter bar: beige pills + keyword search ---- */
.pillbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px; margin: 0 0 28px; background: #f4f4f1; border-radius: var(--pill); position: relative; z-index: 6; }
.pill { position: relative; display: inline-flex; align-items: center; }
.pill select, summary.pill {
	min-height: 44px; padding: 10px 40px 10px 22px; padding-inline: 22px 40px; border: 0; border-radius: var(--pill);
	background-color: var(--beige); color: var(--ink); font: 500 16px/1.3 var(--sans); cursor: pointer; box-shadow: none;
	background-position: right 16px center; background-size: 15px; max-width: 240px; text-overflow: ellipsis;
	field-sizing: content; width: auto;
}
html[dir="rtl"] .pill select { background-position: left 16px center; }
.pill select:hover, summary.pill:hover { background-color: #e8dfb6; }
.pill select:focus { box-shadow: 0 0 0 2px var(--green); }
.pill.is-set select, summary.pill.is-set { background-color: var(--mint); color: var(--mint-ink); }
.pill-more { position: static; }
summary.pill { list-style: none; display: inline-flex; align-items: center; gap: 8px; padding-inline: 22px 18px; }
summary.pill::-webkit-details-marker { display: none; }
summary.pill .icon { width: 15px; height: 15px; transition: transform .2s; }
.pill-more[open] summary.pill .icon { transform: rotate(180deg); }
.pill-panel {
	position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 20; width: min(560px, calc(100vw - 2 * var(--g)));
	display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px; background: var(--surface);
	border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 16px 40px rgba(0, 0, 0, .08);
}
.pill-panel select, .pill-panel input { min-height: 42px; }
.pill-checks { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }
.pill-checks legend { width: 100%; margin-bottom: 4px; }
.pill-panel-foot { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.pill-search { flex: 1 1 240px; min-width: 0; display: flex; align-items: center; gap: 8px; padding-inline: 18px 6px; background: #fff; border: 1px solid #e3e3dd; border-radius: var(--pill); min-height: 44px; }
.pill-search > .icon { width: 17px; height: 17px; color: var(--muted); }
.pill-search input { border: 0; min-height: 40px; padding: 4px 2px; background: transparent; font-size: 16px; box-shadow: none !important; }
.pill-go { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--mint); color: var(--mint-ink); cursor: pointer; }
.pill-go .icon { width: 15px; height: 15px; }
html[dir="rtl"] .pill-go .icon { transform: scaleX(-1); }
@media (max-width: 760px) {
	.pillbar { border-radius: 22px; }
	.pillbar { gap: 8px; padding: 8px; }
	.pill select, summary.pill { min-height: 40px; max-width: 170px; font-size: 15px; padding-inline: 16px 34px; }
	summary.pill { padding-inline: 16px 14px; }
	html[dir="rtl"] .pill select { background-position: left 12px center; }
	.pill select { background-position: right 12px center; }
	.pill-search { flex-basis: 100%; }
	.pill-panel { grid-template-columns: 1fr; position: fixed; top: auto; bottom: 0; inset-inline: 0; width: auto; border-radius: 22px 22px 0 0; max-height: 80vh; overflow: auto; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
}

/* ---- "Still looking for the right match?" band (spans the grid) ---- */
.still-band {
	grid-column: 1 / -1; display: flex; align-items: center; gap: 28px; padding: 24px 32px;
	border-radius: var(--r); background: linear-gradient(100deg, var(--beige-soft), #eaf3e4);
}
.still-illus { flex: none; width: 170px; height: auto; }
.still-title { font-size: 1.3rem; font-weight: 500; letter-spacing: -.01em; margin-bottom: 6px; }
.still-copy p { font-size: 14px; color: #4a4a4a; margin-bottom: 14px; max-width: 520px; }
@media (max-width: 600px) {
	.still-band { flex-direction: column; text-align: center; padding: 22px 20px; gap: 12px; }
	.still-illus { width: 130px; }
}

/* ---- Directory extras ---- */
.dir-empty { display: flex; flex-direction: column; align-items: center; }
.dir-empty img { margin-bottom: 8px; }
.dir-empty h2 { font-size: 1.4rem; }
.dir-empty p { max-width: 460px; }
.dir-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.dir-empty-clear { margin: 16px 0 0; font-size: 14px; }

/* ---- Profile: Good to know, no-commission note, mobile contact bar ---- */
.gtk-list { margin: 0; display: grid; grid-template-columns: 1fr; }
.gtk-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.gtk-row:last-child { border-bottom: 0; }
.gtk-row dt { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.gtk-icon { display: inline-flex; color: var(--teal); }
.gtk-icon .icon { width: 16px; height: 16px; }
.gtk-row dd { margin: 2px 0 0 24px; color: var(--ink); font-weight: 500; }
@media (min-width: 600px) {
	.gtk-list { grid-template-columns: 1fr 1fr; column-gap: 28px; }
	.gtk-row:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}

.no-commission { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 12px 14px; border-radius: var(--r); background: var(--teal-soft); color: var(--teal-dark); font-size: 14px; line-height: 1.5; }
.no-commission .icon { margin-top: 2px; color: var(--teal); }
#enquire { scroll-margin-top: 96px; }

.contact-bar, .contact-bar-spacer { display: none; }
@media (max-width: 960px) {
	.contact-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; gap: 10px; padding: 10px var(--g) calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: var(--shadow); }
	.contact-bar .btn { flex: 1 1 0; min-width: 0; padding: 12px 14px; white-space: nowrap; }
	.contact-bar-spacer { display: block; height: calc(72px + env(safe-area-inset-bottom, 0px)); }
	body:has(.contact-bar) .palette-switch { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}
@media print { .contact-bar, .contact-bar-spacer { display: none; } }

/* ---- Online therapy landing ---- */
.ot-hero { padding: 28px 0 44px; }
.ot-hero .breadcrumbs ol { margin-bottom: 22px; }
.ot-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ot-intro { display: grid; grid-template-columns: 1fr; gap: 18px; }
.ot-block { padding: 22px; }
.ot-block h2 { font-size: 1.25rem; margin-bottom: 10px; }
.ot-block p { color: var(--ink); }
.ot-block p:last-child { margin-bottom: 0; }
.ot-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); }
.ot-content { max-width: 760px; margin-top: 36px; }
.ot-results { margin-top: 56px; }
.ot-results .section-head { align-items: flex-end; }
.ot-results .dir-count { margin-top: 6px; }
.ot-more { margin: 24px 0 0; text-align: center; }
.ot-faq { margin-top: 64px; }
.ot-faq-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.ot-faq-item { padding: 22px; }
.ot-faq-item h3 { font-size: 1.12rem; }
.ot-faq-item p { margin: 0; color: var(--muted); }
@media (min-width: 820px) {
	.ot-intro, .ot-faq-grid { grid-template-columns: repeat(3, 1fr); }
}
