/* VF3-P78 — 21 subpages only. Home, Shop templates and Admin are not affected. */
/* Consistent 1280px content rail with fluid gutters and safe box sizing. */
body.auto-home-universal .vf3-p77-focused .auto-u-container,
body.auto-home-universal .vf3-p76-page-editorial {
  box-sizing:border-box;width:min(1280px,calc(100% - 32px));max-width:1280px;
  margin-inline:auto;min-width:0;
}
/* Native sections are separate siblings of the cloned Home blocks. Restore their own 1280 rail. */
body.auto-home-universal .vf3-p76-native :is(.p31-container,.vf3-glb-wrap,.vf3-p37-wrap,.vf3-p75-foot-container,.auto-container),
body.auto-home-universal .vf3-p76-native :is(.vf3-p75-next,.vf3-p75-home-discovery,.vf3-p75-home-hero) {
  box-sizing:border-box;width:min(1280px,calc(100% - 32px));max-width:1280px;
  margin-left:auto;margin-right:auto;min-width:0;
}
body.auto-home-universal .vf3-p76-native .vf3-p75 .p31-container,
body.auto-home-universal .vf3-p76-native .vf3-p75 .vf3-p37-wrap {max-width:1280px}
body.auto-home-universal .vf3-p76-native {box-sizing:border-box;width:100%;max-width:100%;margin:0 auto 48px;min-width:0}
body.auto-home-universal .vf3-p76-native :is(.p31-page,.vf3-p37,.vf3-glb,.vf3-p75) {min-width:0}
/* When site Body has class auto-home-universal, the old P31 layout class isn't guaranteed
   to survive Blade @section overrides. Native wrapper now supplies that class explicitly. */
body.auto-home-universal .vf3-p76-native.vf3-p31-specialized .p31-page {padding-top:22px}
/* P77 Hero: original 96px Home title works for VF3, not full subject headings. */
body.auto-home-universal .vf3-p77-focused .auto-u-hero-grid {
  width:min(1280px,calc(100% - 32px));max-width:1280px;
  grid-template-columns:minmax(0,1.06fr) minmax(0,1.24fr) minmax(260px,.88fr);
  gap:clamp(16px,1.6vw,26px);min-height:0;padding:42px 0 34px;
}
body.auto-home-universal .vf3-p77-focused .auto-u-hero-grid > * {min-width:0}
body.auto-home-universal .vf3-p77-focused .auto-u-hero-copy h1 {margin:9px 0 14px;line-height:1.15}
body.auto-home-universal .vf3-p77-focused .auto-u-hero-copy h1>b {
  font-size:clamp(29px,2.45vw,39px);line-height:1.16;letter-spacing:-.035em;
  font-weight:850;overflow-wrap:break-word;word-break:normal;
}
body.auto-home-universal .vf3-p77-focused .auto-u-hero-copy h1>small {
  font-size:clamp(13px,1.2vw,16px);line-height:1.5;letter-spacing:.005em;
}
body.auto-home-universal .vf3-p77-focused .auto-u-hero-copy>p {font-size:14px;line-height:1.72;max-width:470px}
body.auto-home-universal .vf3-p77-focused .auto-u-hero-car img {width:100%;max-width:490px;max-height:390px;object-fit:contain}
body.auto-home-universal .vf3-p77-focused .auto-u-offer-card {min-width:0;max-width:100%;padding:22px 19px}
body.auto-home-universal .vf3-p77-focused .auto-u-offer-card h2 {
  font-size:clamp(18px,1.65vw,23px);line-height:1.36;overflow-wrap:break-word;
}
body.auto-home-universal .vf3-p77-focused .auto-u-offer-card strong {font-size:clamp(22px,2vw,29px)}
body.auto-home-universal .vf3-p77-focused .auto-u-hero-benefits .auto-u-container {
  grid-template-columns:repeat(3,minmax(0,1fr));
}
body.auto-home-universal .vf3-p77-focused .auto-u-hero-benefits span {min-width:0}
/* Keep topic cards, calculator grids and tables inside their parent section. */
body.auto-home-universal .vf3-p77-focused .vf3-p77-section {min-width:0;max-width:100%;overflow-wrap:break-word}
body.auto-home-universal .vf3-p77-focused .vf3-p77-card-grid,
body.auto-home-universal .vf3-p77-focused .vf3-p77-spotlight,
body.auto-home-universal .vf3-p77-focused .vf3-p77-actions {min-width:0;max-width:100%}
body.auto-home-universal .vf3-p76-native :is(.p35-planner,.p35-fields,.p35-results,.p36-kind-grid,.p31-feature-grid,.p33-market,.vf3-glb-workspace,.vf3-glb-content) {min-width:0;max-width:100%}
body.auto-home-universal .vf3-p76-native :is(img,video,iframe) {max-width:100%}
body.auto-home-universal .vf3-p76-native :is(.p35-table-wrap,.vf3-glb-table-scroll,.p33-compare-scroll) {max-width:100%;overflow-x:auto}
/* Native sections look like Home panels, with consistent whitespace. */
body.auto-home-universal .vf3-p76-native .p31-page,
body.auto-home-universal .vf3-p76-native .vf3-glb,
body.auto-home-universal .vf3-p76-native .vf3-p37 {background:#f3faff}
@media(max-width:1100px){
  body.auto-home-universal .vf3-p77-focused .auto-u-hero-grid {
    grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);
    gap:18px;padding:28px 0 24px;
  }
  body.auto-home-universal .vf3-p77-focused .auto-u-offer-card {grid-column:1/-1}
  body.auto-home-universal .vf3-p77-focused .auto-u-hero-copy h1>b {font-size:clamp(28px,3.3vw,39px)}
}
@media(max-width:767px){
  body.auto-home-universal .vf3-p77-focused .auto-u-container,
  body.auto-home-universal .vf3-p76-page-editorial,
  body.auto-home-universal .vf3-p76-native :is(.p31-container,.vf3-glb-wrap,.vf3-p37-wrap,.vf3-p75-foot-container,.auto-container),
  body.auto-home-universal .vf3-p76-native :is(.vf3-p75-next,.vf3-p75-home-discovery,.vf3-p75-home-hero) {
    width:calc(100% - 24px);max-width:1280px;
  }
  body.auto-home-universal .vf3-p77-focused .auto-u-hero-grid {grid-template-columns:1fr;padding:22px 0 20px;gap:17px}
  body.auto-home-universal .vf3-p77-focused .auto-u-hero-copy h1>b {font-size:clamp(27px,7vw,36px)}
  body.auto-home-universal .vf3-p77-focused .auto-u-hero-car {justify-content:center;max-height:240px}
  body.auto-home-universal .vf3-p77-focused .auto-u-hero-car img {max-height:230px;transform:none}
  body.auto-home-universal .vf3-p77-focused .auto-u-offer-card {display:block;grid-column:auto}
  body.auto-home-universal .vf3-p77-focused .auto-u-hero-benefits .auto-u-container {grid-template-columns:1fr;gap:0}
  body.auto-home-universal .vf3-p77-focused .auto-u-hero-benefits span {border:0;border-bottom:1px solid rgba(255,255,255,.15);padding:9px 4px}
  body.auto-home-universal .vf3-p77-focused .auto-u-hero-benefits span:last-child {border-bottom:0}
  body.auto-home-universal .vf3-p76-native .p31-page {padding-top:10px}
  body.auto-home-universal .vf3-p76-native {margin-bottom:28px}
}
@media(max-width:480px){
  body.auto-home-universal .vf3-p77-focused .auto-u-hero-copy h1>b {font-size:clamp(26px,7.5vw,33px)}
  body.auto-home-universal .vf3-p77-focused .auto-u-hero-actions {display:grid;grid-template-columns:1fr 1fr}
  body.auto-home-universal .vf3-p77-focused .auto-u-hero-actions .auto-u-btn {width:100%;padding:10px;min-width:0;font-size:12px;text-align:center}
  body.auto-home-universal .vf3-p77-focused .auto-u-offer-card {padding:18px 16px}
  body.auto-home-universal .vf3-p76-native .p31-section,
  body.auto-home-universal .vf3-p76-native .p36-section,
  body.auto-home-universal .vf3-p76-native .p35-section {max-width:100%}
}
