/* /lead-services/residential-homes/ (layout d). Shared blocks live in d-pages.css. */

/* rent cases: a definition list read as a short ledger */
.rh-cases { display: grid; gap: 0; margin-top: var(--s5); border-top: 1px solid var(--line); }
.rh-cases > div { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.rh-cases dt { font: 700 1.05rem/1.25 var(--font-display); color: var(--em-900); }
.rh-cases dd { margin: 0; color: var(--muted); }
@media (min-width: 768px) { .rh-cases > div { grid-template-columns: 11rem 1fr; gap: var(--s4); } }

/* price: intro beside the price sheet */
.rh-price { display: grid; gap: var(--s6); align-items: start; }
.rh-price__intro > * + * { margin-top: var(--s4); }
.rh-price__lists { display: grid; gap: var(--s5); margin-top: var(--s5); }
.rh-price__lists h3 { font-size: 1.15rem; }
.rh-price__lists ul { margin-top: var(--s3); display: grid; gap: var(--s2); }
.rh-price__lists li { position: relative; padding-left: 22px; }
.rh-price__lists li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-400); }
.pricesheet .rh-right { text-align: right; }
.pricesheet td.price--quote a { font-weight: 700; }
@media (min-width: 768px) { .rh-price__lists { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) {
  .rh-price { grid-template-columns: 6fr 5fr; gap: var(--s8); }
  .rh-price .pricesheet { position: sticky; top: calc(var(--hdr-h) + 32px); }
}

/* prep: paper checklist beside the tenant-access card */
.rh-prep { display: grid; gap: var(--s6); align-items: start; }
.rh-prep__title { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); }
.sheet > .muted { margin-top: var(--s2); }
.rh-tenant { border-radius: var(--r-lg); overflow: hidden; background: var(--bg-soft); }
.rh-tenant img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.rh-tenant__body { padding: var(--s5); display: grid; gap: var(--s3); justify-items: start; }
.rh-tenant__body p + p { margin-top: 0; }
@media (min-width: 1100px) { .rh-prep { grid-template-columns: 7fr 4fr; gap: var(--s7); } }

/* homeowners (dark) */
.rh-live { display: grid; gap: var(--s7); }
.rh-live__main > * + * { margin-top: var(--s4); }
.rh-live__main .lede strong { color: #fff; }
.rh-live__help { padding: var(--s5); border-radius: var(--r-lg); background: rgba(0, 31, 8, .45); }
.rh-live__help h3 { font-size: 1.25rem; }
.rh-res { margin-top: var(--s4); display: grid; gap: var(--s4); }
.rh-res > li > a { font-weight: 700; }
.rh-res p { margin-top: 4px; font-size: .97rem; }
@media (min-width: 1100px) { .rh-live { grid-template-columns: 6fr 5fr; gap: var(--s8); align-items: start; } }

/* "from" sits on the same line as the price, so the rows stay even */
.page-residential .pricesheet td.price small { display: inline; margin: 0 6px 0 0; }

/* phones */
@media (max-width: 767px) {
  .rh-cases > div { padding: 10px 0; }
  .rh-price, .rh-prep, .rh-live { gap: var(--gap-block); }
  .rh-price__lists { gap: 16px; }
  .rh-tenant img { aspect-ratio: var(--ar-banner); }
  .rh-tenant__body { padding: var(--card-pad-sm); }
  .rh-live__help { padding: var(--card-pad-sm); }
  .rh-res { margin-top: var(--gap-stack); gap: 8px; }
  .rh-res p { margin-top: 0; }
  /* the whole row is the tap target for its title link; links inside the text stay on top */
  .rh-res > li { position: relative; }
  .rh-res > li > a::after { content: ""; position: absolute; inset: 0; }
  .rh-res p a { position: relative; z-index: 1; }
  /* a phone number inside a tappable row: its own 44px halo so a near miss dials, not opens the title link */
  .rh-res p a::after { content: ""; position: absolute; inset: -14px -6px; }
}
