/* V7 footer. Loaded on V7 pages only (inc/v7/footer.php).
   1) the compact footer: prototype v49 .sg-foot CSS, verbatim, then the theme-leak guards it needs in WordPress;
   2) the old 2024 footer when it is switched back on (option sg_v7_footer_old): its links are set in sofia_pro*,
      which no longer loads on V7 pages (serif fallback), so every text in it uses the V7 font. */

/* ---- 1. compact footer (prototype v49) ---- */
.sg-foot{padding-block:clamp(56px,7cqi,96px) 40px;border-top:1px solid var(--line)}
.sg-foot__top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:20px 40px;padding-bottom:40px}
.sg-foot__top img{height:28px;width:auto}
.sg-foot__top p{margin:0;font:400 16px/1.45 var(--f);color:var(--ink-2)}
/* r38 B (Kriste 11-19, ec3771b5 + 4d5bac34): tagline on one line; link columns spread edge to edge (first at the left edge,
   middle centred, last ending at the right edge) so the footer reads across the full width */
@container site (min-width: 761px){
  .sg-foot__top p{white-space:nowrap}
  .sg-foot__cols{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
  .sg-foot__grp:nth-of-type(2){justify-self:center}
  .sg-foot__grp:nth-of-type(3){justify-self:end}
}
.sg-foot__cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;padding-block:36px;border-top:1px solid var(--line)}
.sg-foot__cols h3{font:500 14px/1 var(--f);color:var(--ink);margin:0 0 16px}
.sg-foot__vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.sg-foot__cols ul{list-style:none;margin:0;padding:0;display:grid;gap:11px}
.sg-foot__cols a{font:400 14.5px/1.3 var(--f);color:var(--mute);text-decoration:none;transition:color .2s ease}
.sg-foot__cols a:hover{color:var(--ink)}
.sg-foot__base{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;padding-top:24px;border-top:1px solid var(--line);font:400 13px/1.4 var(--f);color:var(--mute)}
@container site (max-width: 760px){ .sg-foot__cols{grid-template-columns:repeat(2,minmax(0,1fr))} }
.sg-foot__h{all:unset;display:flex;align-items:center;justify-content:space-between;width:100%;font:500 14px/1 var(--f);color:var(--ink);cursor:default}
.sg-foot__h .sg-nav__pm{display:none}
/* phone: the four link groups collapse (Kriste 10-16) */
@container site (max-width: 600px){
  .sg-foot__cols{grid-template-columns:minmax(0,1fr);gap:0;padding-block:8px 24px}
  .sg-foot__grp{border-bottom:1px solid var(--line-2)}
  .sg-foot__cols h3{margin:0}
  .sg-foot__h{min-height:54px;font-size:16px;cursor:pointer}
  .sg-foot__h .sg-nav__pm{display:block;color:var(--mute)}
  .sg-foot__h[aria-expanded="true"] .sg-nav__pm{color:var(--orange)}
  .sg-foot__h[aria-expanded="true"] .sg-nav__pm::after{transform:rotate(0deg);opacity:0}
  .sg-foot__grp ul{display:none;padding:0 0 16px;gap:0}
  .sg-foot__grp a{display:flex;align-items:center;min-height:44px;font-size:15.5px}
  .sg-foot__h[aria-expanded="true"] + ul, h3:has(> .sg-foot__h[aria-expanded="true"]) + ul{display:grid}
  .sg-foot__top{padding-bottom:28px}
}
.sg-foot__legal{display:inline-flex;flex-wrap:wrap;gap:6px 18px}.sg-foot__legal a{color:inherit;text-decoration:underline;text-underline-offset:3px}

/* r40 C (Kriste 11-19 phone alignment): logo, tagline, copyright and legal links on the centre axis; the link groups stay
   full-width rows */
@container site (max-width: 600px){
  .sg-foot__top{flex-direction:column;align-items:center;text-align:center;gap:14px}
  .sg-foot__base{flex-direction:column;align-items:center;text-align:center;gap:10px}
  .sg-foot__legal{justify-content:center}
}

/* ---- WordPress: the footer sits in its own .site box after the page's #site (base.css gives it tokens + the container) ---- */
.sg-foot-site{min-height:0}
/* theme leaks: main.css sets a{color:#000}, a:hover{color:#f27038}, h2/h3 sizes in sofia_probold; WP critical CSS underlines a:hover */
.sg-foot-site .sg-foot a:hover,.sg-foot-site .sg-foot a:focus{text-decoration:none}
.sg-foot-site .sg-foot .sg-foot__cols a:hover,.sg-foot-site .sg-foot .sg-foot__cols a:focus{color:var(--ink)}
.sg-foot-site .sg-foot .sg-foot__legal a,.sg-foot-site .sg-foot .sg-foot__legal a:hover{text-decoration:underline}
.sg-foot-site .sg-foot .sg-foot__legal a{color:inherit}
.sg-foot-site .sg-foot .sg-foot__legal a:hover{color:var(--ink)}
.sg-foot-site .sg-foot h2,.sg-foot-site .sg-foot h3{font-family:var(--f);text-transform:none;letter-spacing:normal}
.sg-foot-site .sg-foot li{margin:0;padding:0}
.sg-foot-site .sg-foot li::before{content:none}

/* ---- 2. the old 2024 footer on V7 pages (switch back): V7 font everywhere instead of the unloaded sofia_pro* ---- */
html body.sg-v7 footer.footer.footer-dark,
html body.sg-v7 footer.footer.footer-dark :is(p,a,span,div,nav,section){font-family:"Host Grotesk","Host Grotesk Fallback","Helvetica Neue",Arial,sans-serif!important}
html body.sg-v7 footer.footer.footer-dark .footer-section-title{font-family:"Host Grotesk","Host Grotesk Fallback","Helvetica Neue",Arial,sans-serif!important;font-weight:500}
