/* One content column for the blue consultation strip and the company links. */
:root { --vacant-footer-content: min(1200px, calc(100% - 64px)); }
body > .j1-contact-footer-band, body > #consultation:has(> #j1-contact-entry),
body > #j1-site-footer { box-sizing:border-box; width:100%; max-width:none; padding-inline:0; }
body #j1-contact-entry,
body #j1-site-footer > nav.j1-reference-grid {
  box-sizing:border-box;
  width:var(--vacant-footer-content)!important;
  max-width:none!important;
  margin-inline:auto!important;
  padding-inline:0!important;
}
body #j1-contact-entry .j1-contact-banner { box-sizing:border-box; width:100%; }
body #j1-site-footer > nav.j1-reference-grid { justify-content:normal; }
@media (min-width:901px) {
  body #j1-site-footer > nav.j1-reference-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (max-width:900px) {
  :root { --vacant-footer-content:calc(100% - 40px); }
}
/* Episode 2 has a separate padded reader shell; use the same outer bounds for both footer parts. */
body[data-vacant-reader="episode-two"] > #j1-site-footer {margin-inline:0!important}

/* Approved shared mobile directory; PC and existing URLs are unchanged. */
@media (width > 640px) {
 .j1-reference-footer .j1-reference-mobile-title { display:none; }
}
@media(max-width:640px){
 .j1-reference-footer{padding-top:24px}
 .j1-reference-footer .j1-reference-grid{grid-template-columns:minmax(0,1fr);gap:0;margin-bottom:20px}
 .j1-reference-footer .j1-reference-col{padding:17px 0;border-top:1px solid #ddd5c8}
 .j1-reference-footer .j1-reference-col:first-child{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:none;padding:0 0 17px}
 .j1-reference-footer .j1-reference-logo{flex:0 0 116px;width:116px;margin:0}
 .j1-reference-footer .j1-reference-logo img{width:116px}
 .j1-reference-footer .j1-reference-col:first-child ul{margin:0}
 .j1-reference-footer .j1-reference-mobile-title{display:block}
 .j1-reference-footer h2{color:#17394b;font-weight:750;letter-spacing:.02em;margin:0 0 7px}
 .j1-reference-footer .j1-reference-col h2:not(:first-child){margin-top:12px}
 .j1-reference-footer .j1-reference-nested,.j1-reference-footer .j1-reference-major{margin:0;font-size:14px;font-weight:400;letter-spacing:normal}
 .j1-reference-footer .j1-reference-nested li,.j1-reference-footer .j1-reference-major li{padding:0;margin:0;min-width:0}
 .j1-reference-footer .j1-reference-nested li::before{display:none}
 .j1-reference-footer .j1-reference-nested a,.j1-reference-footer .j1-reference-major a{display:flex;align-items:center;min-height:36px;padding-block:5px;line-height:1.4}
 .j1-reference-footer .j1-reference-services{border-top:0}
 .j1-reference-footer .j1-reference-services .j1-reference-nested{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px}
 .j1-reference-footer .j1-reference-copyright{padding:18px 20px;font-size:12px}
}
