/* The IDX search and listing pages. Brand tokens, header, footer and the listing-page classes
   (.lp-*) come from site.css and listing.css -- exact copies of marketing/weaverrealty-site/assets,
   kept identical by test_idx_search (TheSiteDesign). Only what those two files do not have lives
   here: the search band, the result cards, and the full-screen photo viewer. */

/* ---- The search band ---- */
.sx-head { background: var(--ink); color: #fff; padding: 34px 0 26px; }
.sx-head h1 { margin: 0 0 16px; font-size: clamp(28px, 3.6vw, 42px); text-transform: uppercase; }
.sx-form { display: grid; gap: 10px; grid-template-columns: 2.2fr repeat(3, 1fr) auto; align-items: end; }
.sx-form .sx-drawer label, .sx-drawer label { color: var(--ink); }
.sx-form label { display: block; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.62); margin: 0 0 5px; }
.sx-form input, .sx-form select {
  width: 100%; padding: 12px 12px; font: inherit; font-size: 15px; color: var(--ink);
  background: #fff; border: 0; border-radius: 2px; }
.sx-form input:focus, .sx-form select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.sx-form button, .sx-ai button { font-family: Oswald, sans-serif; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; font-size: 16px; padding: 12px 26px; border: 0; border-radius: 2px;
  background: var(--gold); color: #000; cursor: pointer; }
.sx-more { grid-column: 1 / -1; color: rgba(255,255,255,.8); font-size: 14px; }
.sx-more summary { cursor: pointer; list-style: none; display: inline-block; padding: 4px 0;
  color: var(--gold); font-weight: 600; }
.sx-more summary::-webkit-details-marker { display: none; }
.sx-more__grid { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); margin-top: 10px; }
.sx-tabs { display: flex; gap: 8px; margin: 18px 0 0; flex-wrap: wrap; }
.sx-tabs a { font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .05em;
  font-size: 14px; padding: 7px 16px; border: 1px solid rgba(255,255,255,.3); border-radius: 2px;
  text-decoration: none; color: #fff; }
.sx-tabs a.on { background: var(--gold); border-color: var(--gold); color: #000; }
.sx-join { margin: 14px 0 0; font-size: 14px; color: rgba(255,255,255,.75); }
.sx-join a { color: var(--gold); }

/* ---- Results ---- */
.sx-body { padding: 26px 0 64px; min-height: 50vh; }
.sx-count { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }
.sx-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.sx-card { background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 4px; overflow: hidden;
  text-decoration: none; color: var(--ink); display: flex; flex-direction: column;
  transition: box-shadow .15s, transform .15s; }
.sx-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.12); transform: translateY(-2px); }
.sx-ph { position: relative; aspect-ratio: 4 / 3; background: #ded8cd; overflow: hidden; }
.sx-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sx-badge { position: absolute; left: 10px; top: 10px; background: rgba(18,17,15,.82); color: #fff;
  font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .05em; font-size: 12px;
  padding: 4px 10px; border-radius: 2px; }
.sx-badge--gold { background: var(--gold); color: #000; }
.sx-n { position: absolute; right: 10px; bottom: 10px; background: rgba(18,17,15,.65); color: #fff;
  font-size: 12px; padding: 3px 9px; border-radius: 999px; }
.sx-b { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.sx-price { font-family: Oswald, sans-serif; font-weight: 600; font-size: 25px; line-height: 1.15; }
.sx-facts { font-size: 15px; }
.sx-addr { font-size: 15px; color: var(--muted); }
/* 18.3.3 / 19.18: the listing firm at the size of the listing facts, never smaller. */
.sx-firm { font-size: 15px; margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(0,0,0,.08); }
.sx-empty { background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 4px; padding: 26px; }
.sx-pager { display: flex; gap: 12px; justify-content: center; align-items: center; margin: 34px 0 0; }
.sx-pager a { font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .04em;
  text-decoration: none; padding: 11px 22px; border: 1px solid var(--ink); border-radius: 2px; }
.sx-pager a:hover { background: var(--ink); color: #fff; }
.sx-pager span { color: var(--muted); font-size: 14px; }

/* ---- Listing page additions ---- */
.lp-crumb { margin: 18px 0 14px; font-size: 14px; }
.lp-crumb a { color: var(--muted); text-decoration: none; }
.lp-crumb a:hover { color: var(--ink); }
.lp-firmline { font-size: 15px; color: rgba(255,255,255,.86); margin: 10px 0 0; }
.lp-status { display: inline-block; background: var(--gold); color: #000; font-family: Oswald, sans-serif;
  text-transform: uppercase; letter-spacing: .05em; font-size: 13px; padding: 3px 10px;
  border-radius: 2px; margin-bottom: 10px; }
.lp-stage { cursor: zoom-in; }
.lp-county { background: #fff; border: 1px solid rgba(0,0,0,.09); border-left: 4px solid var(--gold);
  border-radius: 3px; padding: 18px 20px; }
.lp-county h2 { margin: 0 0 4px; }
.lp-county .lp-spec { margin-top: 12px; }
.lp-src { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.lp-msg { background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 4px; padding: 26px;
  margin: 34px 0 60px; }

/* ---- The full-screen photo viewer ---- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(10,10,9,.96); display: none;
  align-items: center; justify-content: center; }
.lb.is-open { display: flex; }
.lb img { max-width: 94vw; max-height: 86vh; object-fit: contain; display: block; }
.lb__btn { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; font-size: 32px; line-height: 1; display: grid;
  place-items: center; }
.lb__btn:hover { background: rgba(255,255,255,.24); }
.lb__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb__close { right: 18px; top: 18px; font-size: 28px; }
.lb__count { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); color: #fff;
  font-size: 14px; letter-spacing: .04em; }
body.lb-on { overflow: hidden; }

@media (max-width: 900px) {
  .sx-form { grid-template-columns: 1fr 1fr; }
  .sx-form .sx-kw { grid-column: 1 / -1; }
  .sx-form .sx-go { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .lb__prev, .lb__next { width: 44px; height: 44px; font-size: 28px; }
  .lb__prev { left: 8px; } .lb__next { right: 8px; }
}

/* ---- Sign up, sign in, terms, account: the forms on the site's paper background ---- */
.auth { max-width: 620px; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 4px;
  padding: 28px 30px; }
.auth h1 { font-size: 24px; margin: 0 0 12px; }
.auth label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 5px; }
.auth input[type=text], .auth input[type=email], .auth input[type=tel] { width: 100%; padding: 11px 12px;
  font: inherit; font-size: 15px; border: 1px solid rgba(0,0,0,.18); border-radius: 2px; }
.auth input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.auth button { margin-top: 18px; font-family: Oswald, sans-serif; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; font-size: 16px; padding: 12px 26px; border: 0; border-radius: 2px;
  background: var(--gold); color: #000; cursor: pointer; }
.auth .bad { color: #8a2318; }
.auth .note { color: var(--muted); font-size: 14px; }
.auth pre { white-space: pre-wrap; font: inherit; font-size: 15px; }
.auth a { color: #8a6a1f; }

/* ---- The phone menu (Will, 2026-10-26). Pure CSS: a hidden checkbox and its label, so it works
   with no script and under a no-inline-script policy. Phones and iPads (to 900px); desktop unchanged. ---- */
.nav__t { position: absolute; opacity: 0; pointer-events: none; }
.nav__burger { display: none; margin-left: auto; cursor: pointer; color: #fff; font-size: 30px;
  line-height: 1; padding: 6px 4px; user-select: none; }
@media (max-width: 900px) {
  .nav__inner { flex-wrap: wrap; gap: 0; padding: 12px 0; }
  .nav__burger { display: block; }
  .nav__links { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0;
    margin: 10px 0 4px; border-top: 1px solid rgba(255,255,255,.14); }
  .nav__links a { padding: 13px 2px; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav__links .btn { margin-top: 12px; text-align: center; border-bottom: 0; }
  .nav__t:checked ~ .nav__links { display: flex; }
  .nav__t:checked ~ .nav__burger { color: var(--gold); }
}

/* ---- Cards dropped into the site's own pages (/idx/<tenant>/cards) ---- */
.sx-note { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }
.sx-slot:empty::before { content: "Loading listings\2026"; color: var(--muted); font-size: 14px; }

/* ---- Listing page, 2026-10-26: share, map, rooms, open houses, calculator, the agent card ---- */
.lp-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0 0; }
.lp-share span { font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .14em;
  font-size: 12px; color: rgba(255,255,255,.6); margin-right: 4px; }
.lp-share a, .lp-share button { font: inherit; font-size: 13.5px; color: #fff; text-decoration: none;
  border: 1px solid rgba(255,255,255,.3); background: transparent; border-radius: 2px; padding: 6px 12px;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.lp-share a:hover, .lp-share button:hover { background: var(--gold); border-color: var(--gold); color: #000; }
.lp-map { position: relative; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #e8e4dc; }
.lp-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lp-rooms { width: 100%; border-collapse: collapse; font-size: 15px; }
.lp-rooms th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 600; padding: 0 0 8px; border-bottom: 1px solid rgba(0,0,0,.12); }
.lp-rooms td { padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,.07); }
.lp-oh ul { list-style: none; padding: 0; margin: 0; }
.lp-oh li { background: #fff; border: 1px solid rgba(0,0,0,.08); border-left: 4px solid var(--gold);
  border-radius: 3px; padding: 12px 16px; margin: 0 0 8px; }
.lp-calc { background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 4px; padding: 20px 22px; }
.lp-calc__grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.lp-calc label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.lp-calc input, .lp-calc select { display: block; width: 100%; margin-top: 4px; padding: 9px 10px;
  font: inherit; font-size: 15px; border: 1px solid rgba(0,0,0,.18); border-radius: 2px; background: #fff; }
.lp-calc__out { font-size: 18px; margin: 16px 0 0; }
.lp-calc__total { font-family: Oswald, sans-serif; font-size: 28px; color: var(--ink); }
.lp-calc__pi { display: block; font-size: 13.5px; color: var(--muted); }
.lp-cta .btn { display: block; text-align: center; margin: 0 0 10px; }
.lp-cta .btn--line { border: 1px solid var(--ink); color: var(--ink); }
.lp-cta .btn--line:hover { background: var(--ink); color: #fff; }
.lp-agent__listedby { background: var(--paper); border-left: 3px solid var(--gold); padding: 10px 12px;
  font-size: 14px; margin: 0 0 14px; }
.lp-agent__email { font-size: 14px; color: var(--muted); text-align: center; margin: -2px 0 12px;
  word-break: break-all; }

/* ---- WSW off-market homes, above the MLS results ---- */
.sx-om { margin: 0 0 34px; padding: 0 0 30px; border-bottom: 1px solid rgba(0,0,0,.1); }
.sx-om h2 { margin: 0 0 6px; }
.sx-om__lede { color: var(--muted); margin: 0 0 18px; }
.sx-card--om { border-color: rgba(201,162,75,.6); }

/* Columns never grow past the screen: a 1fr track is as wide as its longest word, and on a phone
   an email address or a features list pushed the page wider than the glass (2026-10-26). */
.lp-body > * { min-width: 0; }
@media (max-width: 820px) { .lp-body { grid-template-columns: minmax(0, 1fr); } }

/* On a phone the agent's card is far below the photos, so the two things a visitor wants -- a
   tour and a call -- ride along at the bottom of the screen. */
.lp-mbar { display: none; }
@media (max-width: 820px) {
  .lp-mbar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(18,17,15,.96);
    box-shadow: 0 -8px 24px rgba(0,0,0,.25); }
  .lp-mbar a { flex: 1; text-align: center; font-family: Oswald, sans-serif; text-transform: uppercase;
    letter-spacing: .04em; font-size: 14px; padding: 12px 8px; border-radius: 2px; text-decoration: none; }
  .lp-mbar .go { background: var(--gold); color: #000; }
  .lp-mbar .call { border: 1px solid rgba(255,255,255,.4); color: #fff; }
  body:has(.lp-mbar) .foot { padding-bottom: 96px; }
}
/* listing.css gives .lp-map a fixed height (and 260px on phones); with an aspect ratio that made
   the browser derive the WIDTH from the height -- 604px, wider than a phone. Height follows width. */
@media (max-width: 720px) { .lp-map { height: auto; } }

/* ==== Search bar v2 (2026-10-26): Classic | AI, the All-filters drawer, applied-filter chips ==== */
.sx-lab { display: block; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.62); margin: 0 0 5px; }
.sx-modes { display: inline-flex; margin: 0 0 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 3px; overflow: hidden; }
.sx-mode { position: absolute; opacity: 0; pointer-events: none; }
.sx-modes label { font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .05em; font-size: 15px;
  padding: 9px 18px; cursor: pointer; color: rgba(255,255,255,.8); margin: 0; }
.sx-mode:checked + label { background: var(--gold); color: #000; }
.sx-mode:focus-visible + label { outline: 2px solid #fff; outline-offset: -3px; }
.sx-new { font-size: 10px; letter-spacing: .08em; padding: 1px 5px; border-radius: 2px; background: #000; color: var(--gold); vertical-align: 2px; }
.sx-mode:not(:checked) + label .sx-new { background: var(--gold); color: #000; }
/* One row at a time; a browser without :has() shows both, which still works. */
.sx-bar:has(#sxm-c:checked) .sx-ai { display: none; }
.sx-bar:has(#sxm-ai:checked) .sx-form { display: none; }
.sx-go { display: flex; gap: 8px; }
.sx-allbtn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.45); border-radius: 2px; color: #fff; text-decoration: none;
  font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: .04em; font-size: 15px; }
.sx-allbtn:hover { border-color: var(--gold); color: var(--gold); }
.sx-on { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--gold);
  color: #000; font-size: 12px; font-weight: 700; text-align: center; font-family: 'Open Sans', sans-serif; }

.sx-ai__row { display: flex; gap: 8px; }
.sx-ai__row input { flex: 1; min-width: 0; font: inherit; font-size: 17px; padding: 14px 16px; border: 0; border-radius: 2px; background: #fff; color: var(--ink); }
.sx-ai__row input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.sx-ai__row button { white-space: nowrap; }
.sx-ai__eg { margin: 10px 0 0; font-size: 13.5px; color: rgba(255,255,255,.62); line-height: 1.7; }
.sx-ai__eg a { color: var(--gold); }
.sx-note { margin: 14px 0 0; padding: 10px 14px; border-left: 3px solid var(--gold); background: rgba(208,157,74,.14); font-size: 14px; color: #fff; }

.sx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; align-items: center; }
.sx-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.12); color: #fff; text-decoration: none; font-size: 13.5px; line-height: 1.2; }
.sx-chip span { opacity: .7; font-size: 16px; }
.sx-chip:hover { background: rgba(255,255,255,.22); }
.sx-chips__clear { color: var(--gold); font-size: 13.5px; margin-left: 4px; }

/* The drawer: a panel from the right on a desktop, the whole screen on a phone. Opened by the
   #sx-all link (CSS :target), so it needs no script; Back or the X closes it. */
.sx-drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none; }
.sx-drawer:target { visibility: visible; pointer-events: auto; }
.sx-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .25s; }
.sx-drawer:target .sx-scrim { opacity: 1; }
.sx-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); background: #fff;
  color: var(--ink); display: flex; flex-direction: column; transform: translateX(100%);
  transition: transform .28s cubic-bezier(.2,.7,.3,1); box-shadow: -12px 0 40px rgba(0,0,0,.25); }
.sx-drawer:target .sx-drawer__panel { transform: none; }
.sx-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px;
  border-bottom: 1px solid rgba(0,0,0,.08); }
.sx-drawer__head h2 { margin: 0; font-size: 22px; text-transform: uppercase; }
.sx-x { font-size: 32px; line-height: 1; text-decoration: none; color: var(--ink); padding: 0 6px; }
.sx-drawer__body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 4px 20px 20px; }
.sx-drawer__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px;
  padding-bottom: max(12px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(0,0,0,.08); background: #fff; }
.sx-drawer__foot a { color: var(--ink); font-size: 14.5px; }
.sx-drawer__foot button { flex: 1; max-width: 260px; }
.sx-sec { padding: 16px 0; border-bottom: 1px solid rgba(0,0,0,.07); }
.sx-sec h3 { margin: 0 0 12px; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.sx-grp summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.sx-grp summary::-webkit-details-marker { display: none; }
.sx-grp summary h3 { margin: 0; flex: 1; }
.sx-grp summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); }
.sx-grp[open] summary::after { content: "\2212"; }
.sx-grp[open] summary { margin-bottom: 12px; }
.sx-fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.sx-f label { display: block; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.sx-f input, .sx-f select { width: 100%; padding: 11px 10px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid rgba(0,0,0,.2); border-radius: 2px; }
.sx-chks { display: flex; flex-wrap: wrap; gap: 8px; }
.sx-chk { display: inline-flex; align-items: center; cursor: pointer; margin: 0; }
.sx-chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sx-chk span { display: inline-block; padding: 8px 13px; border: 1px solid rgba(0,0,0,.2); border-radius: 999px;
  font-size: 14px; line-height: 1.25; color: var(--ink); text-transform: none; letter-spacing: 0; }
.sx-chk input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.sx-chk input:checked + span::before { content: "\2713  "; color: var(--gold); }
.sx-chk input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.sx-drawer__foot button { font-family: Oswald, sans-serif; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; font-size: 16px; padding: 13px 22px; border: 0; border-radius: 2px; background: var(--gold); color: #000; cursor: pointer; }
html.sx-locked, html.sx-locked body { overflow: hidden; }
.nav__n { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 3px; border-radius: 999px;
  background: var(--gold); color: #000; font-size: 11px; font-weight: 700; text-align: center; }
.sx-om-empty h2 { margin: 0 0 8px; }
.sx-om-empty .btn { margin: 8px 8px 0 0; }

@media (max-width: 900px) {
  .sx-go { flex-wrap: wrap; }
  .sx-go button { flex: 1 1 140px; }
  .sx-allbtn { flex: 1 1 140px; justify-content: center; }
}
@media (max-width: 560px) {
  .sx-drawer__panel { width: 100vw; }
  .sx-modes { display: flex; width: 100%; }
  .sx-modes label { flex: 1; text-align: center; padding: 10px 8px; font-size: 14px; }
  .sx-ai__row { flex-direction: column; }
  .sx-fgrid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .sx-drawer__panel, .sx-scrim { transition: none; } }

/* ==== The AI search as a conversation (2026-10-26) ==== */
.sx-chat { max-width: 860px; }
.sx-thread { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; max-height: 340px; overflow-y: auto;
  -webkit-overflow-scrolling: touch; padding: 2px 2px 4px; }
.sx-msg { max-width: 82%; padding: 11px 15px; border-radius: 16px; font-size: 15.5px; line-height: 1.45; }
.sx-msg--ai { align-self: flex-start; background: rgba(255,255,255,.1); color: #fff; border-bottom-left-radius: 4px; }
.sx-msg--ai::before { content: "WSW"; display: block; font-family: Oswald, sans-serif; font-size: 11px; letter-spacing: .1em;
  color: var(--gold); margin: 0 0 3px; }
.sx-msg--me { align-self: flex-end; background: var(--gold); color: #000; border-bottom-right-radius: 4px; }
#sx-reply { border: 1px solid rgba(208,157,74,.45); }
.sx-ai .sx-mic { flex: 0 0 auto; width: 52px; min-height: 48px; border: 1px solid rgba(255,255,255,.45); border-radius: 2px; background: transparent;
  color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.sx-ai .sx-mic:hover { border-color: var(--gold); color: var(--gold); }
.sx-ai .sx-mic.on { background: #c0392b; border-color: #c0392b; color: #fff; animation: sx-pulse 1.2s ease-in-out infinite; }
@keyframes sx-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(192,57,43,.6); } 50% { box-shadow: 0 0 0 10px rgba(192,57,43,0); } }
.sx-say__tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 10px 0 0; min-height: 20px; }
.sx-listen { color: #ff8a7a; font-size: 14px; font-weight: 600; }
.sx-ai .sx-voice { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer;
  color: rgba(255,255,255,.7); font-family: 'Open Sans', sans-serif; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 13.5px; }
.sx-ai .sx-voice[aria-pressed="true"] { color: var(--gold); }
.sx-voice[aria-pressed="true"] span::after { content: " \2014 on"; }
.sx-restart { color: var(--gold); font-size: 13.5px; margin-left: auto; }
@media (max-width: 560px) {
  .sx-ai__row { flex-direction: row; flex-wrap: wrap; }
  .sx-ai__row input { flex: 1 1 calc(100% - 60px); }
  .sx-ai__row button[type=submit] { flex: 1 1 100%; }
  .sx-msg { max-width: 90%; font-size: 15px; }
  .sx-thread { max-height: 300px; }
}
@media (prefers-reduced-motion: reduce) { .sx-ai .sx-mic.on { animation: none; } }
.sx-typing { display: inline-flex; gap: 5px; align-items: center; padding: 14px 16px; }
.sx-typing::before { display: none; }
.sx-typing i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.75); animation: sx-dot 1.1s infinite ease-in-out; }
.sx-typing i:nth-child(2) { animation-delay: .15s; } .sx-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes sx-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.sx-ai button[disabled] { opacity: .75; cursor: progress; }

/* The listing firm on a search card: required nowhere on a card (18.3.3's thumbnail exemption --
   the card links to the listing page, which carries it in full), shown anyway, and kept quiet.
   Will, 2026-10-26: "really light ... by no means does it need to draw any attention". */
.sx-card .sx-firm--quiet { font-size: 12.5px; line-height: 1.35; color: rgba(18,17,15,.42); border-top: 0;
  padding-top: 8px; font-weight: 400; }
.sx-ai .sx-hear { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; padding: 5px 12px 5px 9px;
  border: 1px solid rgba(208,157,74,.6); border-radius: 999px; background: transparent; color: var(--gold);
  font: 600 13px/1 'Open Sans', sans-serif; text-transform: none; letter-spacing: 0; cursor: pointer; }
.sx-ai .sx-hear:hover { background: rgba(208,157,74,.14); }
.sx-ai .sx-hear[hidden] { display: none; }
.sx-reply__t { display: block; }

/* The hero stable gallery (idx/hero_stock.py) */
.hs-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.hs-card { margin: 0; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 4px; overflow: hidden; }
.hs-card img, .hs-card video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #ddd; }
.hs-card figcaption { padding: 10px 12px; font-size: 14.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hs-card figcaption b { font-family: Oswald, sans-serif; font-size: 18px; color: #a87a2c; }
.hs-mode { margin-left: auto; font-size: 11.5px; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(0,0,0,.15); color: var(--muted); }
.sx-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.sx-ai .sx-tap { font: 600 14px/1.2 'Open Sans', sans-serif; text-transform: none; letter-spacing: 0; padding: 8px 14px;
  border-radius: 999px; border: 1px solid var(--gold); background: var(--gold); color: #000; cursor: pointer; }
.sx-ai .sx-tap + .sx-tap { background: transparent; color: var(--gold); }
