/* Hi-Res Homes 1125p122 — full-width live site (Master, 28 Nov 2026 2:43 PM).
   Ported from the widescreen preview (site-deploy-widescreen/assets/widescreen.css):
   WIDTH RULES ONLY. The preview's header, quote-builder and 1280px type-scale
   sections are intentionally NOT ported (live has newer versions).
   Loaded last in <head> on every page; ":root" prefix + !important beat the
   late-injected injector stylesheets. Phones/tablets (<1024px) are untouched:
   every rule below is scoped to min-width:1024px. */

:root { --ws-gutter: clamp(16px, 3vw, 56px); }

@media (min-width: 1024px) {
  /* ---------- 1. Full-bleed containers (no ~1152px caps) ---------- */
  :root .max-w-6xl,
  :root .max-w-5xl {
    max-width: 100% !important;
    padding-left: var(--ws-gutter) !important;
    padding-right: var(--ws-gutter) !important;
  }
  /* Injector-stylesheet caps (72rem / 1200px) */
  :root .hrh-stats-inner,
  :root .hrh-coverage-inner,
  :root .hrh-coverage-stage,
  :root .hrg-wrap,
  :root .hrg-panel-inner,
  :root .hrh-prep-wrap,
  :root .hrt-wrap,
  :root .hrt-affiliates-inner,
  :root .hrh-broker-strip__inner { max-width: 100% !important; }
  /* Header bar lines up with the full-width content (width only; live header styling untouched) */
  :root header.sticky .hrh-hdr-bar {
    max-width: 100% !important;
    padding-left: var(--ws-gutter) !important;
    padding-right: var(--ws-gutter) !important;
  }
  :root .hrh-coverage { padding-left: var(--ws-gutter); padding-right: var(--ws-gutter); }
  :root .hrt-wrap,
  :root .hrt-affiliates-inner,
  :root .hrh-prep-wrap,
  :root .hrg-wrap,
  :root .hrg-panel-inner,
  :root .hrh-broker-strip__inner {
    padding-left: var(--ws-gutter) !important;
    padding-right: var(--ws-gutter) !important;
  }
  /* Stats bar: navy panel inside the gutter, cards stretch across */
  :root section.hrh-stats { padding-left: var(--ws-gutter); padding-right: var(--ws-gutter); }
  :root .hrh-stats-grid { width: 100%; max-width: none; }

  /* ---------- 2. Text blocks stay readable (~75ch) inside full-width sections ---------- */
  :root main p:not([class*="max-w"]):not(.hrh-q-total) { max-width: 75ch; }
  :root main .text-center p:not([class*="max-w"]),
  :root main p.text-center:not([class*="max-w"]) { margin-left: auto; margin-right: auto; }
}

/* ---------- 3. Wider grids on very large screens so nothing looks sparse ---------- */
@media (min-width: 1600px) {
  /* 1125p124 — portfolio cover columns follow the item count so rows stay full
     (6 → 3×2, 8 → 4×2, 9 → 3×3). 4-across only when the count divides by 4.
     Video tiles stay at most 3-across; JS in rentals-galleries.js also sets
     --hrg-cols from the live count. Team 5-across (9 = 5+4 leftover) removed;
     team stays 3×3, see hrh-utils.css. */
  :root .hrg-covers:not(.hrg-video-covers) { gap: 1.25rem; }
  :root .hrg-covers:not(.hrg-video-covers) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  :root .hrg-covers:not(.hrg-video-covers):has(> :nth-child(3):last-child),
  :root .hrg-covers:not(.hrg-video-covers):has(> :nth-child(6):last-child),
  :root .hrg-covers:not(.hrg-video-covers):has(> :nth-child(9):last-child),
  :root .hrg-covers:not(.hrg-video-covers):has(> :nth-child(15):last-child),
  :root .hrg-covers:not(.hrg-video-covers):has(> :nth-child(18):last-child),
  :root .hrg-covers:not(.hrg-video-covers):has(> :nth-child(21):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  :root .hrg-covers:not(.hrg-video-covers):has(> :nth-child(2):last-child),
  :root .hrg-covers:not(.hrg-video-covers):has(> :nth-child(10):last-child),
  :root .hrg-covers:not(.hrg-video-covers):has(> :nth-child(14):last-child),
  :root .hrg-covers:not(.hrg-video-covers):has(> :nth-child(22):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  :root .hrg-videos-featured .hrg-video-covers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  :root .hrg-videos-featured .hrg-video-covers:has(> :nth-child(2):last-child),
  :root .hrg-videos-featured .hrg-video-covers:has(> :nth-child(4):last-child),
  :root .hrg-videos-featured .hrg-video-covers:has(> :nth-child(8):last-child),
  :root .hrg-videos-featured .hrg-video-covers:has(> :nth-child(10):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  :root .hrg-covers[style*="--hrg-cols"] {
    grid-template-columns: repeat(var(--hrg-cols), minmax(0, 1fr));
  }
  /* Coverage map uses the extra room */
  :root .hrh-coverage-frame { height: min(82vh, 980px); }
}

/* ---------- 4. Live-only adaptations (shipped after p113) ---------- */
@media (min-width: 1280px) {
  /* Realtor add-ons price list: two balanced columns instead of one 1800px row */
  :root .rounded-\[2rem\].border.border-line.bg-white > ul.divide-y.border-y {
    columns: 2; column-gap: 3.5rem; column-rule: 1px solid var(--color-line, #e4e0d6);
  }
  :root .rounded-\[2rem\].border.border-line.bg-white > ul.divide-y.border-y > li { break-inside: avoid; }
  /* Contact: the call-us photo no longer grows taller than the form */
  :root #contact aside .hrh-callus-frame { flex: 0 0 auto; height: clamp(300px, 24vw, 440px); }
  :root #contact aside .hrh-callus-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
}
@media (min-width: 1600px) {
  /* Realtor packages: 4 across (7-icon video banners still fit on one row) */
  :root .hrh-pkg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
