/* residence-hub.css — Residence Hub rebuild. Residence-only components layered on the shared onh-* system
   (notarial-hub.css) + card-system + typography. COLOUR POLICY: only existing sitewide tokens (shell --gs-* +
   card-system --ok-*, via the --onh-* pass-throughs defined in notarial-hub.css). No hardcoded HEX/RGB/gradient,
   no residence sub-brand, no photos. */

/* route-map hero diagram (no photo) */
.res-map { display:flex; flex-direction:column; gap:12px; background:var(--onh-tint); border:1px solid var(--onh-line); border-radius:18px; padding:22px; }
.res-map__node { background:var(--onh-surface); border:1px solid var(--onh-line); border-radius:12px; padding:12px 14px; }
.res-map__node b { display:block; font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--onh-accent); margin-bottom:3px; }
.res-map__node span { font-size:14.5px; color:var(--onh-ink); font-weight:700; }
.res-map__arrow { align-self:center; color:var(--onh-accent); font-size:18px; line-height:1; }

/* situation selector */
.res-scn-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.res-scn { display:flex; flex-direction:column; gap:8px; text-align:left; background:var(--onh-surface); border:1.5px solid var(--onh-line);
  border-radius:16px; padding:20px; cursor:pointer; font-family:inherit; transition:border-color .15s, box-shadow .15s; }
.res-scn:hover { border-color:var(--onh-accent); }
.res-scn:focus-visible { outline:2px solid var(--onh-accent); outline-offset:2px; }
.res-scn[aria-pressed="true"] { border-color:var(--onh-accent); box-shadow:0 0 0 1px var(--onh-accent) inset; background:var(--onh-band); }
.res-scn__ic { width:40px; height:40px; display:inline-flex; align-items:center; justify-content:center; border-radius:11px; background:var(--onh-tint); color:var(--onh-accent); }
.res-scn__ic svg { width:22px; height:22px; }
.res-scn__t { font-size:16px; font-weight:800; color:var(--onh-navy); }
.res-scn__s { font-size:14px; color:var(--onh-muted); line-height:1.5; }
.res-scn__tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:2px; }
.res-scn__tag { font-size:12px; font-weight:800; color:var(--onh-accent); background:var(--onh-tint); border-radius:999px; padding:3px 9px; }
.res-scn__cta { margin-top:auto; font-size:14px; font-weight:800; color:var(--onh-accent); }
.res-scn[aria-pressed="true"] .res-scn__cta::after { content:" ✓"; }

/* route cards (extend onh-card) */
.res-route__grp { font-size:12px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:var(--onh-muted); margin-bottom:8px; display:block; }
.res-route__meta { margin:0 0 14px; display:grid; grid-template-columns:auto 1fr; gap:2px 10px; }
.res-route__meta dt { font-size:12px; font-weight:800; color:var(--onh-muted); }
.res-route__meta dd { font-size:13px; color:var(--onh-ink); margin:0; }
.res-route__foot { gap:8px; }
.res-route__2nd { font-size:13px; font-weight:700; color:var(--onh-accent); text-decoration:none; }
.res-route__2nd:hover { text-decoration:underline; }
.onh-card.res-route.is-rec { border-color:var(--onh-accent); box-shadow:0 0 0 2px var(--onh-accent) inset; }

/* comparison matrix -> responsive */
.res-cmp { border:1px solid var(--onh-line); border-radius:14px; overflow:hidden; background:var(--onh-surface); }
.res-cmp__row { display:grid; grid-template-columns:1.1fr 1.4fr 1.6fr 1.4fr; gap:14px; padding:12px 16px; border-top:1px solid var(--onh-line); }
.res-cmp__row:first-child { border-top:none; background:var(--onh-band); }
.res-cmp__row:first-child span { font-weight:800; color:var(--onh-navy); font-size:13px; }
.res-cmp__row span { font-size:14px; color:var(--onh-ink); }
.res-cmp__row span b { color:var(--onh-navy); }
.res-cmp__lbl { display:none; }

/* consultation outcome checklist */
.res-check { background:var(--onh-band); border:1px solid var(--onh-line); border-radius:16px; padding:24px; }
.res-check ul { list-style:none; padding:0; margin:0 0 18px; display:grid; grid-template-columns:1fr 1fr; gap:10px 22px; }
.res-check li { position:relative; padding-left:26px; font-size:15px; line-height:1.45; color:var(--onh-ink); }
.res-check li::before { content:""; position:absolute; left:0; top:4px; width:16px; height:16px; border-radius:50%; background:var(--onh-tint);
  border:2px solid var(--onh-accent); }

/* product cards price */
.res-prod__price { font-size:16px; font-weight:800; color:var(--onh-accent); }

@media (max-width:1000px){
  .res-scn-grid { grid-template-columns:repeat(2,1fr); }
  .res-cmp__row { grid-template-columns:1fr 1fr; }
}
@media (max-width:640px){
  .res-scn-grid { grid-template-columns:1fr; }
  .res-check ul { grid-template-columns:1fr; }
  .res-cmp__row { grid-template-columns:1fr; gap:6px; padding:14px 16px; }
  .res-cmp__row:first-child { display:none; }
  .res-cmp__row span { display:flex; justify-content:space-between; gap:12px; }
  .res-cmp__lbl { display:inline; font-weight:800; color:var(--onh-muted); font-size:12.5px; }
}
