/* TEVCO 6.15.2 — conservation-first refinements to the original storefront. */
/* The historical store is the default, including 5-slide hero campaigns and
   merchandised category art. These rules repair header grid geometry and type. */
body.tevco-retail-restored-v6152 :is(a,button,input,select,textarea):focus-visible{
  outline:2px solid #a60517!important;outline-offset:3px;
}
/* Logo, search, city, controls: four *actual* columns (old sheets specified 3). */
@media(min-width:1101px){
  body.tevco-retail-restored-v6152 .tevco-header-main{
    display:grid!important;
    grid-template-columns:minmax(155px,184px) minmax(250px,1fr) minmax(136px,160px) max-content!important;
    align-items:center!important;gap:clamp(10px,1.4vw,22px)!important;
    min-height:90px!important;
  }
  body.tevco-retail-restored-v6152 .tevco-location-entry{grid-column:3;min-width:0}
  body.tevco-retail-restored-v6152 .tevco-head-actions{grid-column:4;min-width:0;gap:8px!important;white-space:nowrap}
  body.tevco-retail-restored-v6152 .tevco-search-wrap{grid-column:2;min-width:0}
  body.tevco-retail-restored-v6152 .tevco-logo{grid-column:1}
}
/* Tablet: prioritize product search while keeping all four header widgets. */
@media(min-width:781px) and (max-width:1100px){
  body.tevco-retail-restored-v6152 .tevco-header-main{
    display:grid!important;grid-template-columns:minmax(135px,1fr) minmax(140px,auto) max-content!important;
    gap:10px 15px!important;padding-block:9px!important;
  }
  body.tevco-retail-restored-v6152 .tevco-logo{grid-column:1;grid-row:1}
  body.tevco-retail-restored-v6152 .tevco-location-entry{grid-column:2;grid-row:1}
  body.tevco-retail-restored-v6152 .tevco-head-actions{grid-column:3;grid-row:1;gap:5px!important}
  body.tevco-retail-restored-v6152 .tevco-search-wrap{grid-column:1/-1;grid-row:2;width:100%;max-width:none}
}
/* Mobile: avoid phantom third/fourth auto-placed columns and horizontal overflow. */
@media(max-width:780px){
  body.tevco-retail-restored-v6152 .tevco-header-main{
    display:grid!important;grid-template-columns:minmax(0,1fr) max-content!important;
    gap:8px!important;
  }
  body.tevco-retail-restored-v6152 .tevco-logo{grid-column:1;grid-row:1;min-width:0}
  body.tevco-retail-restored-v6152 .tevco-head-actions{grid-column:2;grid-row:1;min-width:0;gap:2px!important}
  body.tevco-retail-restored-v6152 .tevco-search-wrap{grid-column:1/-1;grid-row:2;min-width:0}
  body.tevco-retail-restored-v6152 .tevco-location-entry{grid-column:1/-1;grid-row:3;justify-self:start;max-width:100%}
  body.tevco-retail-restored-v6152 .tevco-location-trigger{min-height:40px}
}
/* Restore useful readable typography in the original dark footer. */
body.tevco-retail-restored-v6152 .tevco-footer{background:#0b2f4f!important;color:#dce7f0!important}
body.tevco-retail-restored-v6152 .tevco-footer :is(h3){color:#fff!important;font-size:15px!important;line-height:1.6}
body.tevco-retail-restored-v6152 .tevco-footer section>a{
  color:#e0e8f0!important;font-size:13px!important;line-height:1.85!important;
  margin-bottom:7px!important;
}
body.tevco-retail-restored-v6152 .tevco-footer section>a:hover{color:#fff!important;text-decoration:underline}
body.tevco-retail-restored-v6152 .tevco-footer-about p{
  color:#c9d7e5!important;font-size:13px!important;line-height:1.85!important;
}
body.tevco-retail-restored-v6152 .tevco-footer-contact-row :is(a,span){font-size:12px!important;line-height:1.7!important}
body.tevco-retail-restored-v6152 .tevco-footer :is(a,button):focus-visible{outline-color:#fff!important}
@media(max-width:780px){
  body.tevco-retail-restored-v6152 .tevco-footer-grid{gap:24px!important}
}
