/* @her Services public site (homeowners and Realtors).
   One idea: a big white rounded "front door" box floating over a Charlotte dusk sky, with the skyline
   showing beneath it. Same brand family as the back office (teal, gold, Cormorant + DM Sans), warmer and calmer.
   Light only. Content is left-aligned inside the box. */
:root {
  color-scheme: light;
  --sky-1: #F6C9A8;   /* peach, top of the sky */
  --sky-2: #EDB6C0;   /* rose */
  --sky-3: #A79AC6;   /* dusk lavender, near the horizon */
  --city: #1E4450;    /* skyline silhouette */
  --paper: #FFFFFF;
  --mist: #F2F6F6;    /* quiet fills inside the box */
  --ink: #17323B;
  --muted: #5B7076;
  --line: rgba(23, 50, 59, 0.13);
  --accent: #0F5C66;
  --accent-ink: #FFFFFF;
  --gold: #A06A1C;
  --bad: #A8322A;
  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --script: 'Yellowtail', 'Brush Script MT', cursive;
  --gap: clamp(12px, 3vw, 32px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; overflow-x: clip; }
body { overflow-x: clip; }
body {
  position: relative; min-height: 100vh; font-family: var(--body); font-size: 17px; line-height: 1.55; color: var(--ink);
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 42%, var(--sky-3) 100%);
  background-color: var(--sky-2);
}
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- The sky and the city ---------- */
.city { position: absolute; left: 0; right: 0; bottom: 0; height: 150px; z-index: 0; pointer-events: none; }
.city svg { width: 100%; height: 100%; display: block; }

/* ---------- The front-door box ---------- */
.door {
  position: relative; z-index: 1;
  width: min(1180px, calc(100% - 2 * var(--gap)));
  min-height: calc(100vh - 2 * var(--gap) - 70px);
  margin: var(--gap) auto calc(var(--gap) + 70px);
  background: var(--paper); border-radius: 32px;
  box-shadow: 0 30px 80px rgba(30, 68, 80, 0.28);
  display: flex; flex-direction: column;
  padding: clamp(22px, 4.5vw, 64px) clamp(20px, 5.5vw, 80px) clamp(18px, 3vw, 34px);
}
.door-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wordmark { display: inline-block; font-family: var(--display); font-weight: 600; font-size: clamp(34px, 3.6vw, 46px); line-height: 0.88; letter-spacing: -0.3px; color: var(--ink); text-decoration: none; text-align: center; }   /* stacked "@her / Services", lines centered on each other (Kevin, Oct 23) */
.wordmark i { color: var(--gold); }
.wordmark img { height: 40px; width: auto; display: block; }
.door-main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 6vh, 72px) 0 clamp(20px, 4vh, 48px); }
.door-foot { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; }
.door-foot a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.door-foot a:hover, .door-foot a[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.door-foot .spacer { flex: 1; }
.door-foot small { color: var(--muted); font-size: 13px; }
.door-foot a.login-link { color: var(--muted); font-size: 13px; font-weight: 500; }

/* ---------- Landing ---------- */
.welcome { font-family: var(--display); font-weight: 600; font-size: clamp(44px, 7.4vw, 96px); line-height: 0.98; letter-spacing: -0.5px; margin: 0; }
.welcome i { color: var(--gold); }
/* Landing headline (Kevin, Oct 23): "Welcome to" on top, the stacked logo centered under it, a little air below */
body[data-page="landing"] .welcome { display: inline-flex; flex-direction: column; align-items: center; margin-bottom: clamp(14px, 2.6vh, 30px); }
.welcome-logo { display: block; text-align: center; line-height: 0.9; margin-top: 2px; }
body[data-page="landing"] .door-main { justify-content: flex-start; padding-top: 0; }   /* sits higher on the page */
body[data-page="landing"] .door { padding-top: clamp(18px, 3.6vw, 50px); }
.mantra { font-family: var(--script); font-size: clamp(26px, 3.4vw, 40px); line-height: 1.2; color: var(--accent); margin: 18px 0 0; max-width: 30ch; }
.lede { color: var(--muted); max-width: 46ch; margin: 18px 0 0; }

.choose { margin-top: clamp(28px, 5vh, 52px); }
.choose-q { font-weight: 700; margin: 0 0 14px; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 16px; }
.choice {
  text-align: left; cursor: pointer; border: 2px solid var(--line); background: var(--paper);
  border-radius: 22px; padding: 20px 22px; display: grid; gap: 4px; transition: border-color .15s, background .15s;
}
.choice:hover { border-color: var(--accent); background: var(--mist); }
.choice b { font-family: var(--display); font-size: 30px; font-weight: 600; line-height: 1.1; }
.choice span { color: var(--muted); font-size: 15px; }
.choice.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.choice.primary span { color: rgba(255, 255, 255, 0.82); }
.choice.primary:hover { background: #0C4C55; }

.step { margin-top: clamp(28px, 5vh, 52px); max-width: 560px; }
.step h2 { font-family: var(--display); font-weight: 600; font-size: 34px; line-height: 1.1; margin: 0 0 6px; }
.step p { margin: 0 0 16px; color: var(--muted); }
.back { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font-size: 15px; margin-bottom: 14px; }
.back:hover { color: var(--accent); text-decoration: underline; }

.code-row { display: flex; gap: 12px; flex-wrap: wrap; }
.code-input {
  width: 9.6ch; font-family: var(--body); font-weight: 700; font-size: 34px; letter-spacing: 0.32em; text-transform: uppercase;
  padding: 10px 6px 10px 18px; border: 2px solid var(--line); border-radius: 16px; background: var(--mist);
}
.code-input:focus { border-color: var(--accent); background: var(--paper); outline: none; }
.btn { border: 0; border-radius: 14px; padding: 14px 24px; background: var(--accent); color: var(--accent-ink); font-weight: 700; cursor: pointer; font-size: 17px; }
.btn:hover { background: #0C4C55; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.quiet { background: var(--mist); color: var(--ink); }
.btn.quiet:hover { background: #E3ECEC; }
.err, .step .err { color: var(--bad); font-weight: 500; margin: 12px 0 0; }
.ok { font-weight: 500; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.form label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; font-size: 14px; font-weight: 500; min-width: 0; }
.form label > input, .form label > textarea { flex: 1 0 100%; width: 100%; min-width: 0; }
.form label.wide { grid-column: 1 / -1; }
.form input, .form textarea { border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; background: var(--paper); font-size: 16px; }
.form input:focus, .form textarea:focus { border-color: var(--accent); outline: none; }
.form textarea { min-height: 84px; resize: vertical; }
.form .opt { color: var(--muted); font-weight: 400; }
.form .actions { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Realtor sign-up */
.step.wide-step { max-width: 680px; }
.headshot { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.headshot .opt { font-weight: 400; font-size: 13px; }
.headshot-row { display: flex; align-items: center; gap: 14px; }
.hs-preview { width: 64px; height: 64px; border-radius: 50%; background: var(--mist); border: 1.5px dashed var(--line); overflow: hidden; flex: none; }
.hs-preview img { width: 100%; height: 100%; object-fit: cover; }
.hs-pick { position: relative; overflow: hidden; display: inline-block !important; font-size: 15px; padding: 10px 16px; }
.hs-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.hs-pick:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
.your-code { background: var(--mist); border-radius: 20px; padding: 22px 24px; }
.your-code p { color: var(--ink); margin: 0 0 10px; }
.your-code .code-big { font-weight: 700; font-size: clamp(40px, 8vw, 56px); letter-spacing: 0.22em; color: var(--accent); margin: 4px 0 14px !important; }

/* ---------- Browse ---------- */
.browse-top { display: grid; grid-template-columns: minmax(330px, 1fr) auto minmax(330px, 1fr); grid-template-areas: 'brand prov card'; align-items: center; gap: 20px; }
.browse-top > * { min-width: 0; }
.browse-top .wordmark { grid-area: brand; justify-self: start; }
.browse-top .wordmark { font-size: clamp(38px, 4.2vw, 54px); }
.browse-top .provided { grid-area: prov; justify-self: center; }
.browse-top .realtor { grid-area: card; justify-self: end; width: 330px; }
.realtor .who { min-width: 0; flex: 1 1 0; overflow-wrap: anywhere; }
.realtor { flex-wrap: wrap; }
.realtor .switch { flex-basis: 100%; background: none; border: 0; padding: 4px 0 0 70px; text-align: left; font-size: 12px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.realtor .switch:hover { color: var(--accent); }
.provided { margin: 0; text-align: center; font-family: var(--display); font-weight: 600; font-size: clamp(28px, 2.7vw, 40px); line-height: 1.05; color: var(--ink); }
.provided .pb { display: block; font-family: var(--script); font-weight: 400; font-size: 0.8em; color: var(--gold); margin-bottom: 2px; }
.provided .pb-firm { display: block; font-family: var(--body); font-size: 14px; font-weight: 500; color: var(--muted); margin-top: 4px; }
.realtor { display: flex; align-items: center; gap: 14px; background: var(--mist); border-radius: 20px; padding: 10px 18px 10px 10px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--display); font-size: 24px; font-weight: 600; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.realtor .who { line-height: 1.25; }
.realtor .who small { display: block; color: var(--muted); font-size: 13px; }
.realtor .who b { font-size: 17px; }
.realtor .firm { display: block; color: var(--muted); font-size: 13px; }
.realtor .reach { display: block; font-size: 14px; margin-top: 2px; }
.realtor .reach a { display: block; width: fit-content; max-width: 100%; overflow-wrap: anywhere; }   /* phone, then email on its own line */

.preview-note { margin: 16px 0 0; background: #FFF4E0; border-radius: 12px; padding: 8px 14px; font-size: 14px; color: #6B4A10; }

.empty { color: var(--muted); padding: 24px 0; }

/* ---------- Directory (A-Z) ---------- */
.door.compact { padding: clamp(16px, 2.6vw, 34px) clamp(16px, 3.2vw, 44px) clamp(14px, 2vw, 24px); }
.door.compact .door-foot { margin-top: 24px; }
.dir-wrap { display: grid; grid-template-columns: 200px minmax(0, 1fr) 22px; gap: clamp(16px, 2.4vw, 32px); align-items: start; padding-top: 22px; flex: 1; }
.dir-wrap.no-rail { grid-template-columns: minmax(0, 1fr) 22px; }
.dir { min-width: 0; font-size: 15px; }
.dir-tools { position: sticky; top: 0; z-index: 2; background: var(--paper); padding: 6px 0 10px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search { flex: 1 1 300px; display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 14px; background: var(--paper); }
.search:focus-within { border-color: var(--accent); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.search input { flex: 1; border: 0; outline: none; padding: 10px 0; font-size: 15px; background: none; min-width: 0; }
.zipf { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.zipf input { width: 6.5ch; border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 12px; font-size: 15px; color: var(--ink); }
.zipf input:focus { border-color: var(--accent); outline: none; }
.dir-note { margin: 2px 0 6px; font-size: 12.5px; color: var(--muted); }
.dir .notice { margin: 6px 0; font-size: 14px; padding: 7px 12px; }
.letter { font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--gold); margin: 18px 0 2px; scroll-margin-top: 70px; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.cat { margin: 8px 0 4px; }
.cat h3 { font-family: var(--display); font-weight: 600; font-size: 19px; margin: 6px 0 2px; display: flex; align-items: baseline; gap: 8px; }
.cat h3 .n { font-family: var(--body); font-size: 12px; font-weight: 500; color: var(--muted); }
.cat-note { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.pros { list-style: none; margin: 0; padding: 0; }
.pro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 16px; align-items: baseline; padding: 6px 10px; border-radius: 10px; }
.pro:nth-child(odd) { background: var(--mist); }
.pro-main { min-width: 0; }
.pro-name { font-weight: 700; font-size: 15px; }
.pro-bio { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.brok-info { display: block; font-size: 10.5px; line-height: 1.3; color: #8A9A9E; font-weight: 400; letter-spacing: 0; }
.agent .brok-info { grid-column: 2; align-self: start; margin-top: 1px; }
.pro-earn { display: block; font-size: 11.5px; font-style: italic; color: var(--muted); line-height: 1.35; margin-top: 1px; }
.pro .tag { display: inline-block; white-space: nowrap; font-size: 10.5px; font-weight: 700; color: var(--gold); border: 1px solid currentColor; border-radius: 999px; padding: 0 7px; margin-left: 6px; vertical-align: 1px; }
.pro-call { text-align: right; }
.pro .num { font-weight: 700; font-size: 15px; color: var(--accent); text-decoration: none; white-space: nowrap; }
.pro .num:hover { text-decoration: underline; }
.pro .num.soon { color: var(--muted); font-weight: 500; font-size: 13px; }
.pro .txt summary { font-size: 12.5px; padding: 1px 0 0; }
.pro .txt .form { padding: 12px 14px; border: 1px solid var(--line); background: var(--paper); }

/* Slim A-Z jump bar */
.az { position: sticky; top: 10px; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 11px; font-weight: 700; line-height: 1.25; }
.az a, .az span { width: 22px; text-align: center; border-radius: 6px; padding: 1px 0; }
.az a { color: var(--accent); text-decoration: none; }
.az a:hover, .az a:focus-visible { background: var(--accent); color: #fff; }
.az span { color: rgba(23, 50, 59, 0.22); }

/* RESPA partner rail (P16 advertising) */
.rail { position: sticky; top: 10px; display: grid; gap: 10px; }
.rail-ads { display: grid; gap: 10px; transition: opacity .26s ease; }
.rail-ads.swap { opacity: 0; }
.rail-note { margin: 0; font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.rail-fav { margin: 0; font-family: var(--script); font-size: 20px; line-height: 1.15; color: var(--gold); }
.ad { position: relative; background: var(--paper); border: 1px solid rgba(160, 106, 28, 0.32); border-radius: 14px; padding: 10px; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 6px 10px; align-items: center; font-size: 12.5px; box-shadow: 0 4px 14px rgba(30, 68, 80, 0.07); cursor: default; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.ad-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center 20%; background: var(--mist); transition: transform .18s ease; }
.ad-initials { display: grid; place-items: center; background: var(--accent); color: #fff; font-family: var(--display); font-weight: 600; font-size: 18px; }
.ad-text { min-width: 0; display: grid; gap: 1px; }
.ad-label { font-size: 10px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad b { font-family: var(--display); font-size: 17px; line-height: 1.1; }
.ad-cred { font-size: 11px; color: var(--muted); line-height: 1.3; }
/* Details drop down on hover / keyboard focus (desktop) */
.ad-more { grid-column: 1 / -1; display: grid; gap: 4px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .25s ease, opacity .2s ease; }
.ad:hover, .ad:focus-within { transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 30px rgba(30, 68, 80, 0.18); border-color: rgba(160, 106, 28, 0.6); z-index: 2; }
.ad:hover .ad-photo, .ad:focus-within .ad-photo { transform: scale(1.06); }
.ad:hover .ad-more, .ad:focus-within .ad-more { max-height: 260px; opacity: 1; }
.ad:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ad-head { font-family: var(--script); font-size: 15px; line-height: 1.15; color: var(--gold); margin-top: 2px; }
.ad-bio { color: var(--ink); line-height: 1.4; padding-top: 4px; border-top: 2px solid rgba(160, 106, 28, 0.3); }
.ad-links { display: grid; gap: 1px; }
.ad a { color: var(--accent); font-weight: 700; text-decoration: none; }
.ad a:hover { text-decoration: underline; }
.ad-tel { font-size: 14px; }
.ad .ad-mail { font-weight: 500; font-size: 11.5px; overflow-wrap: anywhere; }
.ad-call, .ad-callbtn { display: none; }
.ad.placeholder { border: 1.5px dashed var(--line); background: none; box-shadow: none; color: var(--muted); transform: none !important; }
.ad.placeholder .ad-initials { background: var(--mist); color: var(--muted); }
.ad.placeholder b { font-size: 15px; color: var(--muted); }

.form.one { grid-template-columns: 1fr; }
.form.one input { font-size: 15px; padding: 9px 12px; }
.consent { border: 0; margin: 0; padding: 0; min-width: 0; }
.consent legend { font-size: 14px; font-weight: 500; padding: 0; margin-bottom: 6px; }
.check { display: grid !important; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-weight: 400 !important; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); padding: 0; }
.check span { font-size: 13px; line-height: 1.5; color: var(--ink); }
.legal-links { font-size: 13px; margin: 2px 0 0; display: flex; gap: 16px; flex-wrap: wrap; }
.form .legal-links.wide { grid-column: 1 / -1; }
.form .consent.wide { grid-column: 1 / -1; }

/* "Or text if you prefer" drop-down under a Vendor card */
.txt { grid-column: 1 / -1; }
.txt summary { cursor: pointer; color: var(--accent); font-weight: 700; font-size: 15px; width: max-content; list-style: none; padding: 4px 0; }
.txt summary::-webkit-details-marker { display: none; }
.txt summary::after { content: ""; display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: 0 0 3px 9px; transition: transform .15s; }
.txt[open] summary::after { transform: rotate(-135deg); margin-bottom: -1px; }
.txt summary:hover { text-decoration: underline; }
.txt .form { margin-top: 10px; background: var(--mist); border-radius: 18px; padding: 16px 18px; max-width: 640px; }
.txt .form input, .txt .form textarea { font-size: 15px; padding: 9px 12px; }
.txt .note { font-size: 14px; color: var(--muted); margin: 0; }
.txt .form .wide { grid-column: 1 / -1; }
.txt .ok { margin: 10px 0 0; }

/* ---------- Info pages ---------- */
.prose { max-width: 64ch; }
.prose h1 { font-family: var(--display); font-weight: 600; font-size: clamp(40px, 6vw, 72px); line-height: 1; margin: 0 0 18px; }
.prose p, .prose li { font-size: 18px; line-height: 1.7; }
.prose h2 { font-family: var(--display); font-weight: 600; font-size: 28px; margin: 28px 0 6px; }
.prose .ph { background: #FFF4E0; border-radius: 4px; padding: 0 4px; }
.draft { background: #FFF4E0; color: #6B4A10; border-radius: 12px; padding: 10px 14px; font-size: 15px; }

@media (max-width: 1120px) {
  .browse-top { grid-template-columns: 1fr auto; grid-template-areas: 'brand card' 'prov prov'; }
  .browse-top .provided { margin-top: 6px; }
}

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  /* 16px+ on every field so phones never zoom in when you tap one */
  input, textarea, select, .search input, .txt .form input, .txt .form textarea, .form input, .form textarea { font-size: 16px !important; }
  body { font-size: 16px; }
  .door { border-radius: 24px; min-height: calc(100vh - 2 * var(--gap) - 50px); margin-bottom: calc(var(--gap) + 50px); }
  .city { height: 100px; }
  .choices { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .txt .form { grid-template-columns: 1fr; }
  .dir-wrap, .dir-wrap.no-rail { grid-template-columns: minmax(0, 1fr) 18px; gap: 8px; }
  /* RESPA partners: three small cards across the top, above the search */
  .rail { position: sticky; top: 0; z-index: 3; background: var(--paper); grid-column: 1 / -1; order: -1; gap: 4px; padding: 6px 0 2px; box-shadow: 0 8px 10px -10px rgba(30, 68, 80, 0.25); }
  .rail .dir-tools { position: static; padding: 4px 0 4px; }
  .rail .search input { padding: 8px 0; }
  .az { top: calc(var(--railH, 0px) + 6px); }
  .rail-note { font-size: 10px; line-height: 1.3; }
  .rail-fav { font-size: 15px; text-align: center; }
  .rail-ads { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .rail-ads .ad { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 2px; padding: 6px 4px 6px; align-content: start; box-shadow: none; }
  .rail-ads .ad:hover, .rail-ads .ad:focus-within { transform: none; box-shadow: none; }
  .rail-ads .ad:active { transform: scale(0.96); background: var(--mist); }
  .rail-ads .ad-photo { width: 36px; height: 36px; }
  .rail-ads .ad-initials { font-size: 14px; }
  .rail-ads .ad-text { justify-items: center; }
  .rail-ads .ad-label { font-size: 9px; max-width: 100%; }
  .rail-ads .ad b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .rail-ads .ad-cred, .rail-ads .ad-more { display: none; }
  /* The whole tile dials their own number */
  .rail-ads .ad-call { display: block; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
  .rail-ads .ad-callbtn { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; background: var(--accent); color: #fff; font-weight: 700; font-size: 11.5px; border-radius: 999px; padding: 3px 10px; }
  .rail-ads .ad-callbtn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; }
  .rail-ads .ad.placeholder b { font-size: 12px; }
  .az a, .az span { width: 18px; }
  .pro { grid-template-columns: 1fr; }
  .pro-call { text-align: left; }
  .realtor { width: 100%; }
  .browse-top { grid-template-columns: 1fr; grid-template-areas: 'brand' 'prov' 'card'; justify-items: start; }
  .browse-top .realtor { width: auto; }
  .browse-top .realtor { justify-self: stretch; }
  .provided { text-align: center; justify-self: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .agent:hover, .agent:focus-within { animation: none; } .ad:hover, .ad:focus-within { transform: none; } }
@media print { body { background: #fff; } .city { display: none; } .door { box-shadow: none; } }

/* Homeowner screen (S2-74): the featured agents fill the space to the right of the welcome, as a vertical carousel.
   Everything sits higher on this screen (top-aligned instead of vertically centered). */
.step.home-step { max-width: 560px; }
.door-main.home-mode { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 410px); gap: clamp(24px, 4vw, 56px);
  align-content: start; align-items: start; padding-top: clamp(18px, 3vh, 36px); }
.door-main.home-mode .welcome { font-size: clamp(42px, 6.2vw, 82px); }
.door-main.home-mode .step.home-step { margin-top: clamp(20px, 3vh, 32px); }
.home-code h2 { font-size: 28px; }
.home-agents { min-width: 0; align-self: start; background: linear-gradient(165deg, #E6F0F0, #F4EEE6); border: 1px solid rgba(15, 92, 102, 0.16);
  border-radius: 26px; padding: clamp(18px, 2.4vw, 26px); box-shadow: 0 16px 44px -26px rgba(15, 92, 102, 0.5); }
.home-agents h2 { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 3.4vw, 46px); line-height: 1; color: var(--accent); margin: 0 0 6px; }
.home-agents > p { margin: 0 0 14px; color: var(--ink); font-size: 17px; }
.agent-carousel { display: grid; justify-items: center; gap: 8px; }
.ag-viewport { overflow: hidden; width: 100%; min-width: 0; padding: 6px 16px; margin: -6px -16px; box-sizing: content-box; }
.ag-track { display: flex; flex-direction: column; gap: 12px; transition: transform .5s ease; will-change: transform; }
.ag-track.jump { transition: none; }
.agent {
  flex: 0 0 auto; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; box-shadow: 0 8px 20px -16px rgba(23, 50, 59, 0.55);
}
.agent .ag-photo { grid-row: 1 / span 3; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: center 20%; background: var(--mist);
  display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 28px; color: var(--accent);
  border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(160, 106, 28, 0.45); }
.agent b { grid-column: 2; align-self: end; font-family: var(--display); font-size: 23px; font-weight: 600; line-height: 1.05; overflow-wrap: anywhere; }
.agent .ag-brok { grid-column: 2; align-self: start; color: var(--muted); font-size: 13.5px; line-height: 1.25; overflow-wrap: anywhere; }
.agent .ag-call, .agent .ag-soon { grid-column: 3; grid-row: 1 / span 3; }
.agent .ag-call { display: inline-flex; align-items: center; gap: 7px; background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-weight: 700; font-size: 16px; border-radius: 999px; padding: 10px 18px; white-space: nowrap; }
.agent .ag-call:hover { background: #0C4C55; }
.agent .ag-call svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
.agent .ag-soon { font-size: 12.5px; color: var(--muted); max-width: 8ch; text-align: right; line-height: 1.2; }
/* "Bubble bounce" on hover: the card pops up, settles, and stays slightly lifted while the pointer is on it */
@keyframes agBounce { 0% { transform: scale(1); } 35% { transform: scale(1.07); } 60% { transform: scale(0.985); } 80% { transform: scale(1.045); } 100% { transform: scale(1.035); } }
.agent { position: relative; transition: box-shadow .2s ease; }
.agent:hover, .agent:focus-within { animation: agBounce .55s cubic-bezier(.3, .7, .4, 1) forwards; z-index: 1; box-shadow: 0 16px 30px -18px rgba(15, 92, 102, 0.6); }
.agent.placeholder { background: rgba(255, 255, 255, 0.55); border-style: dashed; box-shadow: none; }
.agent.placeholder .ag-photo { color: var(--muted); box-shadow: none; }
.ag-nav { width: 36px; height: 28px; border-radius: 999px; border: 1px solid rgba(15, 92, 102, 0.25); background: var(--paper); color: var(--accent);
  cursor: pointer; display: grid; place-items: center; padding: 0; box-shadow: 0 4px 12px -8px rgba(23, 50, 59, 0.5); }
.ag-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ag-nav:hover { background: var(--accent); color: #fff; }
@media (max-width: 900px) {
  .door-main.home-mode { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .home-agents { padding: 16px 12px; border-radius: 20px; }
  .ag-viewport { padding: 6px 10px; margin: -6px -10px; }
  .home-agents h2 { font-size: 30px; }
  .home-agents > p { font-size: 15px; }
  .agent { padding: 10px 10px; gap: 2px 10px; border-radius: 14px; }
  .agent .ag-photo { width: 54px; height: 54px; font-size: 20px; border-width: 2px; }
  .agent b { font-size: 18px; }
  .agent .ag-brok { font-size: 12px; }
  .agent .ag-call { font-size: 14px; padding: 8px 13px; gap: 5px; }
  .agent .ag-call svg { width: 14px; height: 14px; }
}
@media (prefers-reduced-motion: reduce) { .agent:hover, .agent:focus-within { animation: none; transform: none; } }

/* P11 Vendor sign-up (/join): short guided steps, phone-first */
.join { max-width: 720px; }
.join-title { font-family: var(--display); font-weight: 600; font-size: clamp(36px, 5vw, 56px); line-height: 1; margin: 0 0 10px; }
.join-lede { color: var(--muted); margin: 0 0 18px; max-width: 56ch; }
.join-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 0; margin: 0 0 22px; counter-reset: js; }
.join-steps li { counter-increment: js; font-size: 13px; font-weight: 500; color: var(--muted); border-top: 4px solid var(--line); padding-top: 6px; }
.join-steps li::before { content: counter(js) ". "; }
.join-steps li.done { color: var(--ink); border-color: rgba(15, 92, 102, 0.45); }
.join-steps li.on { color: var(--accent); border-color: var(--accent); font-weight: 700; }
.join-form h2 { grid-column: 1 / -1; font-family: var(--display); font-weight: 600; font-size: 28px; margin: 0; }
.jstep { display: contents; }
.join-form .wide { grid-column: 1 / -1; }
.jstep[hidden] { display: none !important; }
.join-form .note { font-size: 13.5px; color: var(--muted); margin: -4px 0 0; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 14px; }
.cat-grid .check { align-items: center; background: var(--mist); border-radius: 12px; padding: 9px 10px; }
.cat-grid .check span { font-size: 14.5px; }
.join-review { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; background: var(--mist); border-radius: 16px; padding: 16px 18px; }
.join-review dt { font-weight: 700; font-size: 14px; }
.join-review dd { margin: 0; font-size: 14.5px; overflow-wrap: anywhere; white-space: pre-line; }
.join-nav .saved { color: var(--muted); font-size: 13px; }
.join-done h1 { margin-bottom: 8px; }
@media (max-width: 760px) {
  .join-form { grid-template-columns: 1fr; }
  .join-steps li { font-size: 11.5px; }
  .join-review { grid-template-columns: 1fr; gap: 2px; }
  .join-review dd { margin-bottom: 8px; }
}

/* S2-84 assistant: front and center on the directory page; the A-Z directory opens from the button under it */
.assist { background: linear-gradient(165deg, #E6F0F0, #F4EEE6); border: 1px solid rgba(15, 92, 102, 0.16); border-radius: 24px;
  padding: clamp(18px, 2.4vw, 28px); box-shadow: 0 16px 44px -28px rgba(15, 92, 102, 0.5); margin-bottom: 14px; }
.assist h2 { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.02; color: var(--accent); margin: 0 0 4px; }
.assist-sub { margin: 0 0 14px; color: var(--ink); font-size: 16px; }
.assist-log { display: grid; gap: 10px; margin-bottom: 10px; }
.assist-log:empty { display: none; }
.msg { max-width: 92%; border-radius: 18px; padding: 10px 14px; font-size: 15.5px; line-height: 1.45; }
.msg p { margin: 0; }
.msg.you { justify-self: end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; white-space: pre-wrap; }
.msg.bot { justify-self: start; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 6px; width: 100%; max-width: 100%; }
.msg.bot.note { color: var(--muted); }
.assist-cat { margin-top: 12px; }
.assist-cat h3 { font-family: var(--display); font-weight: 600; font-size: 21px; margin: 0 0 4px; }
.assist-cat .pros { margin: 0; }
.assist-callnote { font-size: 12.5px; color: var(--muted); margin-top: 8px !important; }
.assist-emergency { background: #FBE3E1; color: var(--bad); font-weight: 700; border-radius: 10px; padding: 8px 10px; margin-bottom: 8px !important; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .4; animation: typingDot 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typingDot { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: .9; transform: translateY(-3px); } }
.assist-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.assist-chips .chip { border: 1px solid rgba(15, 92, 102, 0.3); background: var(--paper); color: var(--accent); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; cursor: pointer; }
.assist-chips .chip:hover { background: var(--accent); color: #fff; }
.assist-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.assist-form textarea { resize: none; border: 1.5px solid rgba(15, 92, 102, 0.3); border-radius: 16px; padding: 12px 14px; font: inherit; font-size: 16px; line-height: 1.4; background: var(--paper); min-height: 48px; }
.assist-form textarea:focus { border-color: var(--accent); outline: none; }
.assist-note { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.dir-toggle { display: block; width: 100%; margin: 0 0 14px; border: 1.5px solid rgba(15, 92, 102, 0.35); background: var(--paper); color: var(--accent);
  border-radius: 14px; padding: 12px 16px; font-weight: 700; font-size: 15.5px; cursor: pointer; }
.dir-toggle:hover { background: var(--mist); }
.dir-closed .dir-tools, .dir-closed #callNote, .dir-closed #list, .dir-closed #az { display: none !important; }
.dir-wrap.dir-closed > .dir { grid-column: span 2; }
.dir-wrap.dir-closed.no-rail > .dir { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .assist { border-radius: 18px; padding: 16px 14px; }
  .assist h2 { font-size: 28px; }
  .assist-chips .chip { font-size: 13.5px; padding: 6px 12px; }
  .msg { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .typing i { animation: none; } }

/* S2-87: partner sign-up */
.ad-co { font-weight: 700; font-size: 12.5px; }
.kind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.kind { position: relative; display: grid !important; align-content: start; gap: 2px; background: var(--mist); border: 2px solid transparent; border-radius: 14px; padding: 14px 14px 12px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.kind input { position: absolute; opacity: 0; pointer-events: none; }
.kind b { font-family: var(--display); font-size: 21px; line-height: 1.1; }
.kind span { font-size: 12.5px; color: var(--muted); }
.kind:hover { border-color: rgba(15, 92, 102, 0.35); }
.kind:has(input:checked) { border-color: var(--accent); background: #fff; box-shadow: 0 6px 18px rgba(30, 68, 80, 0.12); }
.kind:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.kind.full span { color: #8a5a12; }
.photo-pick { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center; }
.photo-pick img, .photo-empty { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: center 20%; background: var(--mist); }
.photo-empty { display: grid; place-items: center; font-size: 30px; color: var(--muted); border: 2px dashed var(--line); }
.photo-pick label.photo-btn { display: inline-flex; width: auto; cursor: pointer; margin-bottom: 6px; padding: 10px 18px; font-size: 14px; }
.photo-pick .note { margin: 0; }
.tile-review { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 18px; align-items: start; }
.tile-review .note { margin: 0 0 6px; }
.ad.preview { cursor: default; }
.ad.preview:hover, .ad.preview:focus-within { transform: none; box-shadow: 0 4px 14px rgba(30, 68, 80, 0.07); }
.ad.preview .ad-more { max-height: none; opacity: 1; }
@media (max-width: 720px) {
  .tile-review { grid-template-columns: 1fr; }
  .kind-grid { grid-template-columns: 1fr 1fr; }
  .kind b { font-size: 18px; }
}

/* S2-81: Call / Text buttons on vendor cards */
.cta { display: inline-flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.cta-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none;
  border-radius: 999px; padding: 7px 16px; border: 2px solid var(--accent); transition: transform .12s ease, background .12s ease; }
.cta-btn.alt { background: #fff; color: var(--accent); }
.cta-btn:hover { transform: translateY(-1px); }
.cta-btn:active { transform: scale(0.96); }
.cta-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.cta-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
.cta-num { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.cta-num a { color: var(--accent); font-weight: 700; font-size: 15px; white-space: nowrap; }
@media (max-width: 720px) {
  .cta { justify-content: flex-start; margin-top: 6px; }
  .cta-btn { padding: 9px 20px; font-size: 15px; }
}

/* S2-93: public category pages (built by the server so search engines can read them) */
.cat-page { max-width: 1040px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 6px 0 14px; }
.crumbs a { color: var(--muted); }
.preview-bar { background: #FFF4E0; border: 1px solid rgba(160,106,28,.35); color: #7a4f12; border-radius: 12px; padding: 8px 12px; font-size: 14px; margin: 0 0 12px; }
.cat-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .9fr); gap: 28px; align-items: start; }
.cat-hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 5vw, 54px); line-height: 1.02; margin: 0 0 12px; }
.cat-hero .lede { font-size: 17px; line-height: 1.6; margin: 0 0 14px; }
.cat-hero h2.small { font-family: var(--body); font-size: 16px; font-weight: 700; margin: 6px 0 4px; }
.does { columns: 2; gap: 24px; padding-left: 18px; margin: 0 0 8px; line-height: 1.7; }
.access { background: #fff; border: 1.5px solid rgba(160,106,28,.35); border-radius: 20px; padding: 18px; box-shadow: 0 10px 28px rgba(30,68,80,.10); }
.access h2 { font-family: var(--display); font-weight: 600; font-size: 26px; margin: 0 0 4px; }
.access p { margin: 0 0 12px; font-size: 14.5px; color: var(--muted); }
.mini-agents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.mini-agent { text-align: center; font-size: 12px; line-height: 1.25; }
.mini-agent img, .mini-agent .mi { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center 20%; display: grid; place-items: center; margin: 0 auto 4px; border: 2px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.12); background: var(--accent); color: #fff; font-weight: 700; }
.mini-agent b { display: block; font-size: 12.5px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 10px 18px; font-weight: 700; text-decoration: none; font-size: 14.5px; }
.pill-btn.main { background: var(--accent); color: #fff; }
.pill-btn.alt { border: 2px solid var(--accent); color: var(--accent); background: #fff; }
h2.sec { font-family: var(--display); font-weight: 600; font-size: 30px; margin: 34px 0 6px; }
.sec-sub { color: var(--muted); margin: 0 0 14px; }
.pros-teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.teaser { background: var(--mist); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; }
.teaser b { font-size: 17px; }
.teaser p { margin: 6px 0 10px; font-size: 14px; line-height: 1.45; flex: 1; }
.locked { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 9px; }
.locked svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 8px 0 0; line-height: 1.6; }
.related { display: flex; flex-wrap: wrap; gap: 8px; }
.related a { background: var(--mist); border-radius: 999px; padding: 7px 14px; text-decoration: none; font-weight: 500; }
.cat-index { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.cat-index a { display: block; background: var(--mist); border-radius: 14px; padding: 14px 16px; text-decoration: none; font-weight: 700; }
.cat-index span { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .cat-hero { grid-template-columns: 1fr; } .pros-teaser { grid-template-columns: 1fr; } .does { columns: 1; } }

/* ---------- S2-94: Vendor update page (phone first) ---------- */
.vu { max-width: 640px; justify-content: flex-start; }
.vu-h { font-family: var(--display); font-weight: 600; font-size: 26px; margin: 22px 0 10px; }
.vu-count { color: var(--gold); }
.vu-list { display: grid; gap: 12px; }
.vu-card { border: 1.5px solid var(--line); border-radius: 18px; padding: 16px; background: var(--paper); }
#vuDue .vu-card { border-color: rgba(15, 92, 102, 0.45); box-shadow: 0 6px 18px rgba(15, 92, 102, 0.08); }
.vu-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-size: 19px; }
.vu-stage { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--muted); background: var(--mist); border-radius: 999px; padding: 3px 10px; }
.vu-stage.s-working, .vu-stage.s-job_done { color: var(--accent); }
.vu-tag { font-size: 12px; font-weight: 700; color: var(--gold); border: 1px solid currentColor; border-radius: 6px; padding: 0 6px; }
.vu-meta { color: var(--muted); font-size: 15px; margin-top: 2px; }
.vu-meta a { color: var(--ink); font-weight: 500; }
.vu-q { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.vu-qt { font-weight: 700; margin: 0 0 10px; font-size: 18px; }
.vu-yn .btn { flex: 1 1 160px; }
.vu-q .note, .vu-inv .note { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.vu-why { display: block; margin-bottom: 10px; }
.vu-why textarea, .vu-inv-form input { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; font-size: 16px; background: var(--paper); }
.vu-why textarea:focus, .vu-inv-form input:focus { border-color: var(--accent); outline: none; }
.vu-inv { margin-top: 12px; }
.vu-inv summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.vu-inv-form { display: grid; gap: 10px; margin-top: 10px; }
.vu-inv-form label { display: grid; gap: 4px; font-size: 14px; font-weight: 500; }
.vu-inv-ok { margin: 10px 0 0; color: var(--accent); font-weight: 500; }
.vu-done { font-size: 18px; font-weight: 500; color: var(--accent); margin: 18px 0 0; }
.vu-foot { margin-top: 26px; color: var(--muted); font-size: 14px; }
.vu-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 500; z-index: 20; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
