/* Sunward Circle directory — the three-pane master-detail layout for the public
   listing pages. Dark, on the Dawn Arc, matching the in-app Find Help screen.
   Brand tokens (--indigo, --gold, --cream, --ink, --leaf-deep, --on-dark*, --t-*)
   come from sunward.css, which loads first. This file only adds the layout.

   SEO note: every listing's content is in the HTML (cards link to real profile
   pages). The right-hand detail pane and the filters are progressive
   enhancement — a crawler or a no-JS visitor still sees and can reach everyone. */

body.dir-page { background: #0F0E22; }

.dir-shell { background: linear-gradient(168deg,#0F0E22 0,#1a163a 42%,#2f2758 100%); color: var(--on-dark); }
.dir-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* Sol framing bar */
.dir-sol { display: flex; gap: 14px; align-items: center; padding: 22px 0; }
.dir-sol .dir-wrap { display: flex; gap: 14px; align-items: center; width: 100%; }
.dir-sun { flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #FFE4A6, #FFC75A 45%, #F2A340 100%);
  box-shadow: 0 0 22px -4px rgba(251,176,52,.7); }
.dir-solname { font-size: var(--t-micro); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-mute); margin: 0 0 3px; }
.dir-solmsg { margin: 0; font-size: var(--t-lead); line-height: 1.45; max-width: 780px; }
.dir-solmsg b { color: #FFDFA0; }

/* clear page identity for cold visitors (the Psychology-Today / Zocdoc pattern:
   never a mystery CTA — say what this is) */
.dir-head { padding: 26px 0 6px; }
.dir-crumb { font-size: var(--t-fine); color: var(--on-dark-mute); margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dir-crumb a { color: var(--gold-soft); text-decoration: none; }
.dir-crumb a:hover { text-decoration: underline; }
.dir-crumb .sep { opacity: .5; }
.dir-crumb .here { color: var(--on-dark-soft); }
.dir-eyebrow { font-size: var(--t-micro); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; margin: 0 0 8px; }
.dir-h1 { font-family: var(--serif); font-weight: 600; font-size: 31px; letter-spacing: -.01em; color: var(--on-dark); margin: 0; }
.dir-sub { font-size: var(--t-lead); line-height: 1.5; color: var(--on-dark-soft); max-width: 66ch; margin: 12px 0 0; }
.dir-tip { display: flex; align-items: flex-start; gap: 10px; font-size: var(--t-fine); color: var(--on-dark-soft); margin: 16px 0 4px; max-width: 64ch; line-height: 1.45; }
.dir-tip b { color: #FFDFA0; font-weight: 600; }
.dir-sun.sm { width: 22px; height: 22px; margin-top: 1px; }

/* sticky controls bar: search + sort + count */
.controls { position: sticky; top: 0; z-index: 6; background: rgba(15,14,34,.86); backdrop-filter: blur(10px); border-top: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07); margin-top: 18px; }
.controls-in { display: flex; align-items: center; gap: 14px; padding: 12px 0; flex-wrap: wrap; }
.sort-ctl { display: flex; align-items: center; gap: 8px; font-size: var(--t-fine); color: var(--on-dark-mute); }
.sort-ctl select { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); border-radius: 10px; color: var(--on-dark); font-family: var(--sans); font-size: var(--t-fine); padding: 8px 12px; cursor: pointer; }

/* plain-language "what is this" for someone who arrived cold */
.dir-about { border-top: 1px solid rgba(255,255,255,.08); padding: 30px 0 10px; }
.dir-about h2 { font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--on-dark); margin: 0 0 8px; }
.dir-about p { font-size: var(--t-fine); line-height: 1.6; color: var(--on-dark-soft); max-width: 72ch; margin: 0 0 14px; }

/* three-pane grid */
.dir-grid { display: grid; grid-template-columns: 250px minmax(0,1fr) 340px; gap: 22px; align-items: start; padding-bottom: 30px; }
@media (max-width: 1040px) { .dir-grid { grid-template-columns: 1fr; } }

.dir-rail { display: flex; flex-direction: column; gap: 26px; }
.dir-center { min-width: 0; }
.dir-detail { position: sticky; top: 18px; }
/* the live preview pane is a desktop master-detail feature; on mobile a card tap
   goes straight to the full profile, so the pane is hidden */
@media (max-width: 1040px) { .dir-detail { display: none; } }

/* rail */
.rh { font-size: var(--t-micro); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-mute); margin: 0 0 12px; display: flex; justify-content: space-between; align-items: center; }
.rh a { color: var(--gold-soft); text-decoration: none; letter-spacing: 0; text-transform: none; font-size: var(--t-fine); }

.tailor { background: rgba(251,176,52,.10); border: 1px solid rgba(251,176,52,.28); border-radius: 16px; padding: 15px; }
.tailor p { margin: 0 0 12px; font-size: var(--t-fine); line-height: 1.5; color: var(--on-dark-soft); }
.tailor .btn { width: 100%; text-align: center; }

.roleopt { display: flex; flex-direction: column; gap: 3px; }
.ro { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 11px; font-size: var(--t-fine); color: var(--on-dark-soft); text-decoration: none; transition: background .15s; }
.ro:hover { background: rgba(255,255,255,.05); }
.ro .rd { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--on-dark-mute); flex: none; }
.ro.on { background: rgba(251,176,52,.12); color: var(--on-dark); font-weight: 600; }
.ro.on .rd { border-color: var(--gold); background: radial-gradient(circle, var(--gold) 45%, transparent 48%); }

.rng-label { font-size: var(--t-fine); color: var(--on-dark-mute); margin: 0 0 8px; }
.rng-label b { color: var(--on-dark-soft); font-weight: 600; }
input.rng { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 999px; background: rgba(255,255,255,.16); outline: none; }
input.rng::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: var(--gold); cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
input.rng::-moz-range-thumb { width: 15px; height: 15px; border: none; border-radius: 50%; background: var(--gold); cursor: pointer; }

.filt { display: flex; flex-direction: column; gap: 10px; }
.tg { display: flex; align-items: center; justify-content: space-between; font-size: var(--t-fine); color: var(--on-dark-soft); cursor: pointer; user-select: none; }
.sw { width: 36px; height: 21px; border-radius: 999px; background: rgba(255,255,255,.16); position: relative; flex: none; transition: background .15s; }
.sw.on { background: var(--leaf-deep); }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: left .15s; }
.sw.on::after { left: 17px; }

/* center */
.ch { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.ch h1 { font-family: var(--serif); font-weight: 600; font-size: 25px; margin: 0; color: var(--on-dark); letter-spacing: -.01em; }
.ch .sort { font-size: var(--t-fine); color: var(--on-dark-mute); white-space: nowrap; }
.ch .sort b { color: var(--on-dark-soft); font-weight: 600; }

.rescard { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid #EDE1CE; border-radius: 18px; padding: 16px; cursor: pointer; transition: transform .15s, box-shadow .15s; box-shadow: 0 14px 30px -24px rgba(0,0,0,.6); color: var(--ink); }
.rescard + .rescard { margin-top: 12px; }
.rescard:hover { transform: translateY(-1px); }
.rescard.sel { outline: 2px solid var(--gold); outline-offset: -2px; }
.rescard.hidden { display: none; }
.rc-top { display: flex; gap: 13px; align-items: flex-start; }
.avatar { flex: none; width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--ember-deep); background: linear-gradient(150deg, var(--cream-2), #e8d4b6); }
.rc-nm { font-family: var(--serif); font-weight: 600; font-size: 17px; margin: 0; color: var(--ink); line-height: 1.15; }
.rc-rl { font-size: var(--t-fine); color: var(--dusk-lift); font-weight: 600; margin: 3px 0 0; }
.rc-meta { margin-left: auto; text-align: right; font-size: var(--t-fine); color: var(--ink-soft); }
.rc-meta b { display: block; color: var(--ink); font-weight: 600; }
.vf { display: inline-flex; align-items: center; gap: 5px; margin-top: 9px; font-size: var(--t-fine); font-weight: 600; color: var(--leaf-deep); background: rgba(126,139,88,.14); border: 1px solid rgba(126,139,88,.4); padding: 4px 10px; border-radius: 999px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { font-size: var(--t-fine); color: var(--ink-soft); background: var(--cream-2); border: 1px solid rgba(34,30,43,.08); padding: 4px 9px; border-radius: 8px; }
.rc-link { margin: 12px 0 0; font-size: var(--t-fine); font-weight: 600; color: var(--ember-deep); }
.rc-link a { color: inherit; }

.also { margin-top: 22px; }
.also .rh { color: var(--on-dark-mute); }
.also-row { display: flex; align-items: center; gap: 11px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 10px 12px; text-decoration: none; }
.also-row + .also-row { margin-top: 7px; }
.also-row .avatar { width: 34px; height: 34px; border-radius: 9px; font-size: 13px; }
.also-nm { font-family: var(--serif); font-weight: 600; font-size: var(--t-fine); color: var(--on-dark); margin: 0; }
.also-rl { font-size: var(--t-micro); color: var(--on-dark-mute); margin: 2px 0 0; }
.also-d { margin-left: auto; font-size: var(--t-fine); color: var(--on-dark-mute); }

/* detail pane */
.dsec { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10); border-radius: 14px; padding: 14px; margin-bottom: 11px; }
.dsec.verified { background: rgba(126,139,88,.10); border-color: rgba(126,139,88,.35); }
.dtop { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 16px; }
.dtop .avatar { width: 54px; height: 54px; border-radius: 15px; font-size: 20px; }
.dtop .nm { font-family: var(--serif); font-weight: 600; font-size: 19px; margin: 0; color: var(--on-dark); line-height: 1.12; }
.dtop .rl { font-size: var(--t-fine); color: var(--on-dark-soft); margin: 4px 0 0; }
.dsec h3 { margin: 0 0 2px; font-size: var(--t-fine); font-weight: 700; color: var(--on-dark); display: flex; align-items: center; gap: 7px; }
.dsec .cap { font-size: var(--t-micro); color: var(--on-dark-mute); margin: 0 0 10px; }
.fact { display: flex; gap: 8px; align-items: flex-start; font-size: var(--t-fine); color: var(--on-dark-soft); padding: 8px 0; border-top: 1px solid rgba(255,255,255,.08); }
.fact:first-of-type { border-top: none; }
.fact .ck { color: #9ab06a; font-weight: 700; flex: none; }
.fact b { color: var(--on-dark); font-weight: 600; }
.fact .dt { display: block; color: var(--on-dark-mute); font-size: var(--t-micro); margin-top: 1px; }
.said { font-size: var(--t-fine); line-height: 1.55; color: var(--on-dark-soft); margin: 0; }
.selftag { display: inline-block; font-size: var(--t-fine); color: var(--on-dark-soft); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: 4px 9px; border-radius: 7px; margin: 4px 5px 0 0; }
.acts { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.dnote { font-size: var(--t-micro); line-height: 1.5; color: var(--on-dark-mute); margin-top: 12px; }

.dir-disc { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0 4px; }
.dir-disc p { margin: 0 auto; max-width: 70ch; text-align: center; font-size: var(--t-fine); color: var(--on-dark-mute); }
.dir-disc b { color: var(--on-dark-soft); font-weight: 600; }

/* ---- location-first search bar (Zillow / Zocdoc / Psychology Today pattern) ---- */
.locbar { background: rgba(0,0,0,.20); border-top: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07); }
.locbar-in { display: flex; align-items: center; gap: 16px; padding: 14px 0; flex-wrap: wrap; }
.loc-place { display: flex; align-items: center; gap: 10px; }
.loc-pin { flex: none; width: 20px; height: 20px; color: var(--gold-soft); }
.loc-lbl { display: block; font-size: var(--t-micro); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-mute); }
.loc-val { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--on-dark); }
.loc-change { color: var(--gold-soft); text-decoration: none; font-size: var(--t-fine); margin-left: 6px; }
.loc-search { flex: 1; min-width: 200px; max-width: 340px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: 10px 16px; color: var(--on-dark); font-family: var(--sans); font-size: var(--t-fine); }
.loc-search::placeholder { color: var(--on-dark-mute); }
.loc-count { margin-left: auto; font-size: var(--t-fine); color: var(--on-dark-mute); }
.loc-count b { color: var(--on-dark-soft); font-weight: 600; }

/* ---- photo tile (real headshot when data has one; monogram placeholder now) ---- */
.photo { flex: none; width: 68px; height: 68px; border-radius: 14px; object-fit: cover; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--ember-deep); background: linear-gradient(150deg, var(--cream-2), #e3cca6); overflow: hidden; }
.photo img, img.photo { width: 100%; height: 100%; object-fit: cover; }

/* richer Psychology-Today-style card */
.rc-body { flex: 1; min-width: 0; }
.rc-statement { margin: 9px 0 0; font-size: var(--t-fine); line-height: 1.45; color: var(--ink-soft); font-style: italic;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rc-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.rc-contact { font-size: var(--t-fine); font-weight: 600; color: #5a3d0a; background: linear-gradient(180deg, var(--gold-soft), var(--gold)); border: none; border-radius: 999px; padding: 7px 15px; cursor: pointer; white-space: nowrap; }

/* ---- rich profile page (the SEO asset, Psychology-Today-style) ---- */
.prof-head { padding: 28px 0 22px; }
.prof-crumb { font-size: var(--t-fine); color: var(--on-dark-mute); margin: 0 0 16px; }
.prof-crumb a { color: var(--gold-soft); text-decoration: none; }
.prof-top { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.prof-photo { flex: none; width: 128px; height: 148px; border-radius: 16px; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 40px; color: var(--ember-deep); background: linear-gradient(150deg, var(--cream-2), #e3cca6); overflow: hidden; }
.prof-photo img { width: 100%; height: 100%; object-fit: cover; }
.prof-id { flex: 1; min-width: 240px; }
.prof-id h1 { font-family: var(--serif); font-weight: 600; font-size: 30px; margin: 0; color: var(--on-dark); letter-spacing: -.01em; }
.prof-id .prof-role { font-size: var(--t-lead); color: var(--on-dark-soft); margin: 6px 0 0; }
.prof-id .prof-loc { font-size: var(--t-fine); color: var(--on-dark-mute); margin: 4px 0 0; }
.prof-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.prof-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 24px; align-items: start; padding-bottom: 60px; }
@media (max-width: 900px) { .prof-grid { grid-template-columns: 1fr; } }
.prof-main > section { margin-bottom: 28px; }
.prof-main h2 { font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--on-dark); margin: 0 0 10px; }
.prof-main p { font-size: var(--t-body); line-height: 1.6; color: var(--on-dark-soft); margin: 0; }
.prof-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.prof-tag { font-size: var(--t-fine); color: var(--on-dark-soft); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: 6px 12px; border-radius: 999px; }
.prof-side { position: sticky; top: 18px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 900px) { .prof-side { position: static; } }
.prof-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10); border-radius: 16px; padding: 16px; }
.prof-card.verified { background: rgba(126,139,88,.10); border-color: rgba(126,139,88,.35); }
.prof-card h3 { margin: 0 0 3px; font-size: var(--t-fine); font-weight: 700; color: var(--on-dark); display: flex; align-items: center; gap: 7px; }
.prof-card .cap { font-size: var(--t-micro); color: var(--on-dark-mute); margin: 0 0 10px; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: var(--t-fine); padding: 8px 0; border-top: 1px solid rgba(255,255,255,.08); }
.kv:first-of-type { border-top: none; }
.kv .k { color: var(--on-dark-mute); }
.kv .v { color: var(--on-dark); font-weight: 600; text-align: right; }

/* "In the Sunward Circle" membership chip */
.prof-circle { display: inline-flex; align-items: center; gap: 7px; font-size: var(--t-fine); font-weight: 600; color: var(--gold-soft); margin: 0 0 8px; }
.prof-circle .dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #FFE4A6, #FFC75A 45%, #F2A340 100%); box-shadow: 0 0 10px -2px rgba(251,176,52,.8); }
.prof-listed { display: inline-flex; align-items: center; gap: 7px; font-size: var(--t-fine); font-weight: 600; color: var(--on-dark-mute); margin: 0 0 8px; }
.prof-listed .dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.3); }

/* generic caption (small, muted) — scoped .dsec/.prof-card .cap rules still win inside those */
.cap { font-size: var(--t-fine); color: var(--on-dark-mute); }

/* contact card + button sizing — the sidebar CTA must be a normal full-width
   button, never btn-big (which overflowed and wrapped in a 320px rail) */
.contact-actions { display: flex; flex-direction: column; gap: 9px; margin: 2px 0; }
.contact-card .btn, .contact-actions .btn, .acts .btn { width: 100%; justify-content: center; padding: 12px 20px; font-size: 15.5px; }
.prof-back { display: block; text-align: center; font-size: var(--t-fine); color: var(--gold-soft); text-decoration: none; padding-top: 2px; }
.prof-back:hover { text-decoration: underline; }

/* listing tiers: verified vs claimed vs auto-seeded ("listed") */
.vf.listed, .vf.claimed { color: var(--ink-mute); background: rgba(34,30,43,.05); border-color: rgba(34,30,43,.12); }
.rescard.is-listed { border-style: dashed; border-color: #d8cbb3; box-shadow: none; background: #fbf7ef; }
.rescard.is-listed .photo { opacity: .82; }
.rc-statement.muted { color: var(--ink-mute); font-style: normal; }
.rc-contact.ghost { background: none; color: var(--dusk-lift); border: 1px solid rgba(74,61,126,.4); }

/* profile photo gallery — humanize with headshot + the room + the office */
.gallery { flex: none; width: 240px; }
.g-main { position: relative; width: 240px; height: 224px; border-radius: 16px; overflow: hidden; background: rgba(0,0,0,.15); }
.g-slide { position: absolute; inset: 0; display: none; }
.g-slide.on { display: block; }
.g-img { width: 100%; height: 100%; object-fit: cover; }
.g-ph { width: 100%; height: 100%; display: grid; place-items: center; position: relative; }
.g-icon { width: 54px; height: 54px; opacity: .85; }
.g-mono { font-family: var(--serif); font-weight: 600; font-size: 66px; }
.g-kind { position: absolute; bottom: 9px; left: 10px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.92); background: rgba(0,0,0,.32); padding: 3px 9px; border-radius: 999px; }
.g-caps { min-height: 34px; margin-top: 9px; }
.g-cap { display: none; font-size: var(--t-fine); line-height: 1.4; color: var(--on-dark-soft); font-style: italic; }
.g-cap.on { display: block; }
.g-thumbs { display: flex; gap: 8px; margin-top: 8px; }
.g-thumb { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: none; }
.g-thumb.on { border-color: var(--gold); }
.g-thumb .g-icon { width: 22px; height: 22px; }
.g-thumb .g-mono { font-size: 22px; }
.g-thumb .g-kind { display: none; }
@media (max-width: 900px) { .gallery, .g-main { width: 100%; } }
