/* DataIT v244: content layout balance. Main content only: rails, nav, and footer are untouched. */

/* 1. Section kickers sit centered over the centered stamps (not in the two-column CTA plates). */
html body main#main-content .chassis-unit:not(.decomm-cta) .chassis-face > .chassis-kicker{
  text-align:center !important;justify-self:center !important;align-self:center !important;margin-inline:auto !important;width:auto !important;
}

/* 2. Intro and answer lines: centered, readable width, no empty right half. */
html body main#main-content .chassis-face > p.v223w-line,
html body main#main-content .chassis-face > p.v222-answer,
html body main#main-content .chassis-face > p.hf15-copy-lead,
html body main#main-content .chassis-face > p.v223-credit,
html body main#main-content .chassis-face > p.v223-respond,
html body main#main-content .decomm-hero:not(:has(.decomm-hero-copy)) .chassis-face > p:not([class]){
  max-width:880px !important;width:100% !important;margin-inline:auto !important;text-align:center !important;justify-self:center !important;
}
html body main#main-content .chassis-face > p.v222-answer{margin-top:6px !important;margin-bottom:12px !important}
html body main#main-content .chassis-face > p.v222-answer + p.v222-answer{margin-top:0 !important}
html body main#main-content .chassis-face > p.hf15-copy-lead{margin-top:12px !important;margin-bottom:14px !important}
html body main#main-content .chassis-face > .decomm-cta-row{margin-top:6px !important}

/* 3. Quote units: tight, centered header lines above the form. */
html body main#main-content .v222-quote-unit .chassis-face > p.v223-credit{margin:4px auto 2px !important}
html body main#main-content .v222-quote-unit .chassis-face > p.v223-respond{margin:0 auto 14px !important}

/* 4. Two-up FAQ cards: an odd last card spans the row instead of leaving a hole. */
html body main#main-content .hf15-copy-grid:not(.hf16-three) > article:last-child:nth-child(odd){grid-column:1 / -1 !important}
html body main#main-content .hf15-copy-grid.hf16-three > article:last-child:nth-child(3n+1){grid-column:1 / -1 !important}
html body main#main-content .hf15-copy-grid.hf16-three > article:last-child:nth-child(3n+2){grid-column:span 2 !important}
html body main#main-content .hf15-copy-grid > article p + p{margin-top:8px !important}

/* 5. Stat plates (25+ years / R2 Verified): equal height, contents centered. */
html body main#main-content .hf16-stats{align-items:stretch !important}
html body main#main-content .hf16-stats > article{display:flex !important;flex-direction:column !important}
html body main#main-content .hf16-stats > article > .chassis-led-readout{flex:1 1 auto !important;display:flex !important;flex-direction:column !important;justify-content:center !important;align-items:center !important}

/* 6. Case studies: the two case plates share the full panel width. */
html body main#main-content .hf13-cases{display:grid !important;grid-template-columns:1fr 1fr !important;gap:16px !important;max-width:100% !important;width:100% !important}
html body main#main-content .hf13-cases > article{width:auto !important;max-width:none !important;min-width:0 !important;text-align:center !important}
html body main#main-content .hf13-cases > article > p{max-width:none !important}
@media (max-width:640px){html body main#main-content .hf13-cases{grid-template-columns:1fr !important}}

/* 7. Southern California tiles: three per row on desktop so names do not wrap one word per line. */
@media (min-width:981px){
  html body main#main-content section.datait-socal-dc .chassis-face .datait-socal-grid{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:14px !important}
  html body main#main-content section.datait-socal-dc .chassis-face .datait-socal-grid > article{width:auto !important;max-width:none !important;min-width:0 !important}
}

/* 8. Contact console: left column balanced against the form. */
html body main#main-content .chassis-contact .chassis-console-status{
  display:flex !important;flex-direction:column !important;justify-content:space-between !important;align-items:center !important;gap:12px !important;height:100% !important;
}
html body main#main-content .chassis-contact .chassis-console-status > *{margin-block:0 !important}
html body main#main-content .chassis-contact .chassis-console-status .datait-r2-verified{margin:6px auto 0 !important}
html body main#main-content .chassis-contact .chassis-console-status .v244-hours{font-weight:600 !important}
html body main#main-content .chassis-contact .chassis-quote > .v244-form-head{grid-column:1 / -1 !important;margin:0 0 4px !important;text-align:left !important;font-weight:600 !important;color:#d7e3ea !important}
html body main#main-content .chassis-contact .chassis-quote-actions{justify-content:flex-start !important;text-align:left !important}
html body main#main-content .chassis-contact .chassis-quote > .chassis-legal{margin-top:6px !important;text-align:left !important}
@media (max-width:980px){
  html body main#main-content .chassis-contact .chassis-console-status{height:auto !important}
}

/* 9. Case studies: breathing room between the intro line and the client plates. */
html body main#main-content .chassis-face > ul.v223y-serve{margin-top:14px !important;margin-bottom:18px !important}
html body main#main-content .chassis-face > h2.v223-clients-stamp{margin-top:18px !important}

/* v245: mobile review fixes (phones only unless noted). */
html body main#main-content .decomm-cities .chassis-face p:not([class]){text-align:center !important;max-width:760px !important;margin-inline:auto !important}
@media (max-width:640px){
  /* split answer lines read as two lines, not one block */
  html body main#main-content .chassis-face > p.v222-answer + p.v222-answer{margin-top:8px !important}
  /* readable form labels and hints */
  html body main#main-content form.chassis-quote label{font-size:12px !important;letter-spacing:.04em !important}
  html body main#main-content form.chassis-quote legend{font-size:12px !important}
  html body main#main-content form.chassis-quote legend small{font-size:10.5px !important}
  html body main#main-content form.chassis-quote .chassis-hint{font-size:11px !important}
  html body main#main-content .chassis-contact .chassis-coverage{font-size:12px !important;line-height:1.4 !important}
  /* tap targets: 44px hit area with no layout shift */
  html body main#main-content details > summary{padding-block:10px !important;margin-block:-10px !important}
  html body main#main-content article h3 > a,html body main#main-content .hf15-copy-grid h3 > a{display:inline-block !important;padding-block:14px !important;margin-block:-14px !important}
  html body main#main-content .chassis-face a:not([class])[href]{padding-block:10px;margin-block:-10px}
  /* breathing room before a second stamp in the same panel (Related Services etc.) */
  html body main#main-content .chassis-face > :not(.chassis-kicker) + h2.chassis-stamp{margin-top:22px !important}
}
