/* ILIT Society — sub-page styles (typeahead, results, practitioner page).
   Loaded after style.css; reuses its tokens and components. */

[hidden] { display: none !important; } /* keep the hidden attribute authoritative over display rules below */
.nav a.active { color: var(--white); }

/* ---------- zip typeahead ---------- */
.searchwrap { position: relative; }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20;
  background: var(--white); border: 1px solid #E3E6EC; border-radius: 6px;
  box-shadow: 0 18px 40px rgba(27, 42, 74, 0.16); overflow: hidden;
}
.suggest-geo {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 14px 18px;
  border: 0; background: #FAF7F0; color: var(--ink); font-size: 15px; font-weight: 700; text-align: left; cursor: pointer;
}
.suggest-geo svg { color: var(--gold-text); }
.suggest-geo:hover { background: #F5EFE3; }
.suggest-label { padding: 12px 18px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-text); border-top: 1px solid #EEF0F4; }
.suggest-list { list-style: none; margin: 0; padding: 0 0 4px; }
.suggest-list a {
  display: grid; grid-template-columns: 62px 1fr auto; align-items: baseline; gap: 12px;
  padding: 11px 18px; color: var(--ink);
}
.suggest-list li.is-active a, .suggest-list a:hover { background: #F8FAFC; }
.suggest-list b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.suggest-list span { font-size: 14px; color: #7A8393; }
.suggest-list em { font-style: normal; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.suggest-list em.ok { color: #2E6B4F; }
.suggest-list em.none { color: #9A6B1E; }
.suggest-empty { padding: 20px 18px; border-top: 1px solid #EEF0F4; display: flex; flex-direction: column; gap: 4px; }
.suggest-empty b { font-size: 15px; }
.suggest-empty span { font-size: 13.5px; color: #7A8393; }
.suggest-hints { display: flex; gap: 20px; padding: 10px 18px; background: #FAF7F0; font-size: 11.5px; color: #9A9384; }

/* ---------- headshots + ratings ---------- */
.avatar {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream-tile); border: 1px solid #E2DAC7;
  font-size: 20px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink); object-fit: cover;
}
.avatar.sm { width: 44px; height: 44px; font-size: 14px; }
[data-shape="square"] .avatar { border-radius: 6px; }
.avatar.lg { width: 112px; height: 112px; font-size: 32px; }
.rating { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; color: #7A8393; }
.rating b { color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; }
.stars { position: relative; display: inline-block; font-size: 15px; line-height: 1; letter-spacing: 1px; color: #DCDFE6; white-space: nowrap; }
.stars .fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--gold); }
.card .foot .actions { display: flex; gap: 8px; }
.card.far .rating { margin-top: 0; }

/* ---------- results page ---------- */
.results-bar { padding: 26px 40px 24px; background: var(--cream); }
.results-bar .row { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.results-bar .searchbar { width: 640px; height: 54px; }
.results-bar .searchbar .field b { font-size: 16px; font-variant-numeric: tabular-nums; }
.results-bar .searchbar .field span { font-size: 16px; color: #7A8393; margin-left: 6px; }
.results-bar .searchbar .go { width: 108px; }
.sort { display: flex; align-items: center; gap: 11px; font-size: 13.5px; color: #7A7466; }
.sort b { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 15px; background: var(--white); border: 1px solid #D9D5CB; border-radius: 6px; font-size: 14.5px; color: var(--ink); }
.sort svg { color: #9AA2AF; }
.filters { display: flex; align-items: center; gap: 9px; margin-top: 18px; }
.filters > span { font-size: 12.5px; color: #7A7466; margin-right: 2px; }
.filters a { padding: 8px 14px; border: 1px solid #D9D5CB; border-radius: 5px; font-size: 13.5px; color: #4A4436; background: var(--white); }
.filters a.on { display: inline-flex; align-items: center; gap: 8px; background: var(--navy); border-color: var(--navy); color: var(--white); font-weight: 500; }

.results { display: flex; gap: 40px; padding: 34px 40px 52px; align-items: flex-start; }
.results .list { width: 812px; flex: none; }
.results .head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.results h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.results .head span { font-size: 13.5px; color: #7A8393; }

.card { display: flex; gap: 22px; padding: 24px; border: 1px solid #E7E3D9; border-radius: 6px; background: var(--white); margin-bottom: 14px; }
.dist { flex: none; width: 128px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding-top: 2px; }
.dist .avatar { width: 128px; height: 128px; margin-top: 14px; }
.card.far .dist .avatar { width: 72px; height: 72px; margin-top: 8px; }
.dist b { font-size: 26px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.dist small { font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold-text); font-weight: 700; }
.card .body { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.card h2 { margin: 0 0 4px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.card h2 a { color: var(--ink); }
.card h2 a:hover { color: var(--gold-text); }
.card .who { font-size: 14.5px; color: var(--ink-soft); }
.card .addr { font-size: 14px; color: #7A8393; }
.status { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 5px; font-size: 12px; font-weight: 700; }
.status.ok { background: #E8F1EA; color: #2E6B4F; }
.status.wait { background: #FAF0DD; color: #93731F; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.tags span { padding: 6px 12px; background: var(--cream); border-radius: 5px; font-size: 12.5px; color: #6B6552; }
.card .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 15px; border-top: 1px solid #F0EEE7; }
.card .foot span { font-size: 13px; color: #7A8393; }
.btn-xs { height: 38px; padding: 0 17px; font-size: 13.5px; }

.rule { display: flex; align-items: center; gap: 16px; margin: 30px 0 18px; }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: #E7E3D9; }
.rule span { font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-text); white-space: nowrap; }
.card.far { padding: 18px 24px; background: #FCFBF8; border-color: #EFEDE6; margin-bottom: 12px; }
.card.far .dist b { font-size: 19px; color: #7A8393; }
.card.far .dist small { color: #A79F8C; }
.card.far .body { flex-direction: row; justify-content: space-between; align-items: center; }
.card.far h2 { font-size: 17px; font-weight: 700; color: #3E4A63; margin: 0 0 3px; }
.card.far .who { font-size: 13.5px; color: #7A8393; }
.card.far a { font-size: 13.5px; font-weight: 700; white-space: nowrap; }

.nobody { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 30px 32px; margin-top: 26px; background: var(--navy); border-radius: 6px; color: var(--white); }
.nobody h3 { margin: 0 0 8px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.nobody p { margin: 0; font-size: 14.5px; line-height: 1.62; color: #B6C2D8; max-width: 62ch; }
.nobody .actions { display: flex; flex-direction: column; gap: 10px; flex: none; }
.btn-ghost { background: transparent; border: 1px solid #40506F; color: #E6EAF2; font-weight: 500; }
.btn-ghost:hover { background: rgba(255,255,255,0.06); color: var(--white); }

.mappanel { flex: 1; position: sticky; top: 20px; }
.mappanel .frame { border: 1px solid #E7E3D9; border-radius: 6px; overflow: hidden; }
.mappanel svg { display: block; width: 100%; height: auto; }
.mappanel p { margin: 12px 2px 0; font-size: 12.5px; line-height: 1.55; color: #9A9384; }

/* ---------- practitioner page ---------- */
.clinic-id { display: flex; gap: 24px; align-items: flex-start; }
.clinic-id h1 { margin-top: 0; }
.clinic-id .sub { margin-bottom: 10px; }
.clinic-id .rating { margin-top: 0; margin-bottom: 22px; }
.clinic-hero .col-l { background: var(--cream); padding: 26px 40px 44px; flex-basis: 860px; }
.clinic-hero .back { display: inline-block; margin-bottom: 22px; font-size: 13.5px; font-weight: 700; }
.clinic-hero h1 { margin: 12px 0 14px; font-size: 40px; line-height: 1.12; letter-spacing: -0.028em; font-weight: 700; max-width: 20ch; }
.clinic-hero .sub { margin: 0 0 22px; font-size: 17px; line-height: 1.55; color: var(--ink-soft); max-width: 56ch; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 5px; font-size: 13px; font-weight: 500; background: var(--white); border: 1px solid #D9D5CB; color: #6B6552; }
.badge.ok { background: #E8F1EA; border-color: #E8F1EA; color: #2E6B4F; font-weight: 700; }
.badge svg { flex: none; }
.clinic-hero .col-r { position: relative; min-height: 320px; background: #E4EAEC; }
.clinic-hero .col-r svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.clinic-body { display: flex; gap: 40px; padding: 40px 40px 8px; align-items: flex-start; }
.clinic-body .main { width: 812px; flex: none; display: flex; flex-direction: column; gap: 38px; }
.clinic-body h2 { margin: 12px 0 8px; font-size: 27px; letter-spacing: -0.02em; font-weight: 700; }
.clinic-body .intro { margin: 0 0 22px; font-size: 15.5px; line-height: 1.62; color: var(--ink-soft); max-width: 62ch; }
.clinic-body .stats { padding: 26px 0; }
.clinic-body .stats b { font-size: 40px; }
.spec { margin-top: 22px; border: 1px solid #E7E3D9; border-radius: 6px; overflow: hidden; }
.spec div { display: grid; grid-template-columns: 210px 1fr; }
.spec div + div { border-top: 1px solid #F0EEE7; }
.spec dt { padding: 14px 20px; font-size: 13.5px; font-weight: 700; color: #6B6552; background: #FAF7F0; margin: 0; }
.spec dd { padding: 14px 20px; font-size: 14.5px; margin: 0; }
.clinic-body .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 0; }
.clinic-body .tiles a { display: flex; gap: 14px; min-height: 0; padding: 18px 20px; }
.clinic-body .tiles svg { width: 24px; height: 24px; flex: none; margin-top: 1px; color: var(--gold-text); }
.clinic-body .tiles b { margin: 0; font-size: 16px; }
.clinic-body .tiles small { margin-top: 3px; font-size: 13.5px; }
.cost { display: flex; gap: 12px; }
.cost div { flex: 1; padding: 22px; border: 1px solid #E7E3D9; border-radius: 6px; }
.cost small { display: block; font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 10px; }
.cost b { display: block; font-size: 30px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.cost p { margin: 10px 0 0; font-size: 13.5px; color: #7A8393; }

.aside { flex: 1; position: sticky; top: 20px; }
.aside .panel { border: 1px solid #E7E3D9; border-radius: 6px; background: var(--white); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.aside .line { display: flex; gap: 12px; font-size: 14.5px; line-height: 1.5; }
.aside .line svg { flex: none; margin-top: 2px; color: var(--gold-text); }
.aside hr { border: 0; height: 1px; background: #F0EEE7; margin: 0; }
.aside .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.aside .grid small { display: block; font-size: 11.5px; color: var(--ink-faint); margin-bottom: 3px; }
.aside .grid span { font-size: 14px; }
.aside .actions { display: flex; flex-direction: column; gap: 9px; padding-top: 4px; }
.aside .actions .btn { height: 50px; width: 100%; font-size: 15.5px; }
.btn-outline { background: var(--white); border: 1px solid #D9D5CB; color: var(--ink); }
.btn-outline:hover { background: #FAF7F0; color: var(--ink); }
.aside .note { margin: 0; font-size: 12px; line-height: 1.55; color: #9A9384; }

.provenance { margin-top: 46px; padding: 40px 40px 44px; background: var(--blue); }
.provenance .inner { display: flex; gap: 56px; align-items: flex-start; }
.provenance .lead { width: 380px; flex: none; }
.provenance .lead .eyebrow { color: #2C4A76; }
.provenance .lead .eyebrow::before { background: #2C4A76; }
.provenance h2 { margin: 12px 0 0; font-size: 27px; line-height: 1.18; letter-spacing: -0.02em; font-weight: 700; }
.provenance .cards { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.provenance .cards div { padding: 20px 22px; background: var(--white); border-radius: 6px; }
.provenance .cards div.wide { grid-column: span 2; }
.provenance .cards b { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 15.5px; }
.provenance .cards p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- phone ---------- */
@media (max-width: 759px) {
  .results, .clinic-body { flex-direction: column; padding-left: 24px; padding-right: 24px; }
  .results .list, .clinic-body .main { width: 100%; }
  .results-bar { padding-left: 24px; padding-right: 24px; }
  .results-bar .row { flex-direction: column; align-items: stretch; }
  .results-bar .searchbar { width: 100%; }
  .filters { flex-wrap: wrap; }
  .card { flex-wrap: wrap; gap: 12px; }
  .card .body { flex-basis: 100%; }
  .card .foot { flex-direction: column; align-items: flex-start; gap: 10px; }
  .clinic-id { flex-direction: column; }
  .dist { flex-direction: row; align-items: center; gap: 12px; width: auto; }
  .dist .avatar, .card.far .dist .avatar { order: -1; margin-top: 0; width: 72px; height: 72px; }
  .nobody { flex-direction: column; align-items: stretch; }
  .mappanel, .aside { position: static; width: 100%; }
  .clinic-hero .col-l { padding: 24px; }
  .clinic-hero h1 { font-size: 30px; }
  .clinic-body .tiles, .cost, .aside .grid, .provenance .cards { grid-template-columns: 1fr; display: grid; }
  .provenance { padding: 32px 24px; }
  .provenance .inner { flex-direction: column; gap: 20px; }
  .provenance .lead { width: 100%; }
  .spec div { grid-template-columns: 1fr; }
  .spec dt { padding-bottom: 4px; }
}
