/* LawDB home page on desktop screens: the layout fills the width. Full-width bands, each with its content in one wide column (up to 1720px)
   instead of a narrow strip in the middle; the hero text and the case types are split in two. The newer sections (firms, insights, how it works,
   why LawDB, for law firms, questions) are in home-v6.css and use the same --hw-pad.
   Only acts at 1100px and up. Phones and tablets keep the layout in index.html. Colors are the site palette (scripts/palette.mjs). */

@media (min-width: 1100px) {
  body.pg-home { --hw-pad: max(48px, calc((100vw - 1720px) / 2)); }

  /* header and footer line up with the page */
  body.pg-home .site-header { padding-left: var(--hw-pad) !important; padding-right: var(--hw-pad) !important; }
  body.pg-home .site-footer { padding-left: var(--hw-pad); padding-right: var(--hw-pad); }
  body.pg-home .site-footer .foot-grid, body.pg-home .site-footer .foot-bottom { max-width: none !important; }

  /* hero: the text sits on the left edge of the page, the photo takes the rest */
  body.pg-home .hero5 { display: flex; align-items: center; min-height: 700px; padding: 96px var(--hw-pad) 84px; }
  body.pg-home .h5-inner { width: 100%; max-width: none; margin: 0; }
  body.pg-home .h5-inner > * { max-width: 660px; }
  body.pg-home .hero5 h1 { font-size: clamp(54px, 3.9vw, 78px); max-width: 9.5em; }
  body.pg-home .h5-sub { font-size: 20px; max-width: 26em; }
  body.pg-home .h5-eyebrow { font-size: 14px; }
  body.pg-home .hero5::before { background: linear-gradient(90deg, rgba(42,42,42,0.92) 0%, rgba(42,42,42,0.7) 38%, rgba(42,42,42,0.15) 100%); }
  body.pg-home .hero5 .ls-field { height: 62px; }
  body.pg-home .h5-go { height: 58px; }

  /* the numbers */
  body.pg-home .h5-stats { padding: 44px var(--hw-pad); }
  body.pg-home .h5-stats-in { max-width: none; }
  body.pg-home .h5-stats b { font-size: 58px; }
  body.pg-home .h5-stats span { margin-top: 12px; font-size: 13px; }

  /* every band: full width, content in one wide column. (site.css caps every home section at 1440px; with this much side padding on a screen wider
     than about 2500px that cap would squeeze the content to nothing, so each band lifts it.) */
  body.pg-home section.h5-stats, body.pg-home section.h4-cases, body.pg-home section.bs, body.pg-home section.bsl, body.pg-home section.hv {
    max-width: none !important; margin: 0;
  }
  body.pg-home section.h4-cases { padding-left: var(--hw-pad); padding-right: var(--hw-pad); }

  /* case types: the tiles on the left, the banner as a tall panel on the right */
  body.pg-home section.h4-cases { padding-top: 8px; padding-bottom: 96px; }
  body.pg-home .h4-wrap { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: stretch; }
  body.pg-home .h4-cases-card { padding: 30px; }
  body.pg-home .h4-cases-head { padding-bottom: 20px; }
  body.pg-home .h4-cases-head h2 { font-size: 13px; }
  body.pg-home .h4-case-grid a { min-height: 128px; }
  body.pg-home .h4-cl { font-size: 15.5px; }
  body.pg-home .h4-banner { flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 18px; margin-top: 0; padding: 38px 30px 28px 40px; }
  body.pg-home .h4-banner::before { left: 22px; top: 40px; bottom: auto; height: 56px; }
  body.pg-home .h4-banner b { font-size: 34px; }
  body.pg-home .h4-gavel { width: 210px; align-self: flex-end; margin: 12px -10px -8px 0; }
}

/* a notch narrower than the biggest screens: tighten the busiest band */
@media (min-width: 1100px) and (max-width: 1399px) {
  body.pg-home .h4-wrap { grid-template-columns: minmax(0, 1fr) 320px; }
}

/* very wide screens (a 4K monitor at 100%): let the content use more of the width than the 1720px column */
@media (min-width: 2400px) {
  body.pg-home { --hw-pad: max(48px, calc((100vw - 2200px) / 2)); }
}
