/* ══════════════════════════════════════════════════════════════════════
   THE FOOTER (27 November 2026)

   Every rule for the site footer, in one file, loaded on every page that
   has a footer. Until this date these rules sat inside concept-home.css
   and began body.mpx-concept, so only the new-design pages got them, and
   pages still on the older design (Privacy Policy, LatchBio) kept the old
   footer. Nicky asked for the new footer on those two as well.

   The rules were moved here unchanged and in the same order. The only
   difference is the first word: body.mpx-footer, a class every page now
   carries (set in app/concept.php), where it was body.mpx-concept.

   The clocks, the copyright line and the faded M are added by the small
   script in resources/views/parts/footer-script.blade.php.
   ══════════════════════════════════════════════════════════════════════ */

/* The two type files the footer uses. The new-design pages already load
   them under the same names; pages on the older design do not, so they
   are named here as well. A second mention costs nothing. */
@font-face{font-family:'Metric Gilroy ExtraBold'; font-style:normal; font-weight:800; font-display:swap;
  src:url('../../public/fonts/Gilroy-ExtraBold.woff2') format('woff2')}
@font-face{font-family:'Metric Gilroy Regular'; font-style:normal; font-weight:400; font-display:swap;
  src:url('../../public/fonts/Gilroy-Regular.woff2') format('woff2')}
/* On the new-design pages the footer takes its type from the page. Stated
   here so that it is the same on a page of the older design. */
body.mpx-footer .footer{--mp-type-head:'Metric Gilroy ExtraBold',sans-serif;
  font-family:'Metric Gilroy Regular','Metric Gilroy Light','Segoe UI',Arial,sans-serif}
/* The logo file is white on black. The script uses it as its own mask, so
   the black goes clear, and this stops the older blend from fighting it. */
body.mpx-footer .f-logo .mpx-logo-masked{mix-blend-mode:normal!important}

/* ── The footer: the column lines carry on into it, the logo large and
   grey, small capitals throughout, and a plain bottom row. ── */
body.mpx-footer .footer{position:relative; background:#161616; border-top:1px solid rgba(255,255,255,.075); overflow:hidden}
body.mpx-footer .footer::before{
  content:""; position:absolute; top:0; bottom:0; pointer-events:none;
  left:max(48px, calc((100% - 1400px) / 2 + 48px)); right:max(48px, calc((100% - 1400px) / 2 + 48px));
  background:linear-gradient(to right,rgba(255,255,255,.075) 0 1px,transparent 1px) 0 0 / 25% 100%;
  border-right:1px solid rgba(255,255,255,.075);
}
body.mpx-footer .fi2{position:relative; max-width:1400px; margin:0 auto; padding:96px 48px 28px}
body.mpx-footer .fg4{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0}
body.mpx-footer .fg4 > div{padding:0 24px 0 24px}
body.mpx-footer .fg4 > div:first-child{padding-left:0}
body.mpx-footer .f-logo img{height:44px; width:auto; opacity:.6}
/* Smaller on phones, where 44px read as oversized against the small
   footer type (Nicky, 27 November 2026). */
@media (width<=767px){
  body.mpx-footer .f-logo img{height:30px}
}
body.mpx-footer .f-tagline{margin-top:22px; font-size:.8125rem; line-height:1.6; color:rgba(255,255,255,.45)!important; max-width:30ch}
body.mpx-footer .f-col-label{margin:0 0 18px; font-size:.625rem; font-weight:600; letter-spacing:.18em; text-transform:uppercase; color:rgba(255,255,255,.4)!important}
body.mpx-footer .f-links{display:flex; flex-direction:column; gap:0}
body.mpx-footer .f-links a,
body.mpx-footer .f-email,
body.mpx-footer .f-soc{
  display:flex; align-items:center; padding:5px 0; font-size:.6875rem; font-weight:600; letter-spacing:.14em;
  text-transform:uppercase; color:#fff!important; text-decoration:none; transition:opacity .2s;
}
body.mpx-footer .f-links a:hover,
body.mpx-footer .f-email:hover,
body.mpx-footer .f-soc:hover{color:#fff!important; opacity:.55}
body.mpx-footer .f-email{margin-bottom:14px; word-break:break-all}
body.mpx-footer .f-soc-i{display:none}
body.mpx-footer .f-bottom{
  display:flex; justify-content:space-between; gap:24px; margin-top:96px; padding-top:22px;
  border-top:1px solid rgba(255,255,255,.075);
  font-size:.625rem; letter-spacing:.16em; text-transform:uppercase; color:rgba(255,255,255,.4)!important;
}
body.mpx-footer .f-bottom-links{display:flex; gap:28px}
body.mpx-footer .f-bottom-links a{color:rgba(255,255,255,.4)!important; text-decoration:none}
body.mpx-footer .f-bottom-links a:hover{color:#fff!important}
@media (width<=1023px){
  body.mpx-footer .fi2{padding:72px 28px 24px}
  body.mpx-footer .footer::before{left:28px; right:28px; background-size:50% 100%}
  body.mpx-footer .fg4{grid-template-columns:repeat(2,minmax(0,1fr))!important; row-gap:44px}
  body.mpx-footer .fg4 > div:nth-child(odd){padding-left:0}
}
@media (width<=767px){
  body.mpx-footer .fi2{padding:60px 20px 24px}
  body.mpx-footer .footer::before{left:20px; right:20px}
  body.mpx-footer .fg4 > div:first-child{grid-column:1 / -1}
  body.mpx-footer .fg4 > div:nth-child(even){padding-left:0}
  body.mpx-footer .fg4 > div:nth-child(odd):not(:first-child){padding-left:14px}
  body.mpx-footer .f-bottom{flex-direction:column; margin-top:56px}
}
/* ── 7. The footer clocks ── */
body.mpx-footer .mpx-clocks{display:flex; gap:28px}
body.mpx-footer .mpx-clocks b{font-weight:600; color:#fff; margin-left:8px; font-variant-numeric:tabular-nums}
@media (width<=767px){
  body.mpx-footer .mpx-clocks{flex-direction:column; gap:6px}
}
body.mpx-footer .mpx-foot-m{position:absolute; z-index:0; top:0; right:0; height:100%; width:auto; aspect-ratio:1982/1459; max-width:100%; pointer-events:none}
body.mpx-footer .fi2{z-index:1}
@media (width<=767px){
  body.mpx-footer .mpx-foot-m{top:auto; bottom:0; height:34%}
}
body.mpx-footer .footer::before{display:none}
body.mpx-footer .footer{font-synthesis:none}
/* Footer copyright line, larger than the rest of the bottom row (Nicky, 12 November 2026) */
body.mpx-footer .f-bottom{align-items:center}
body.mpx-footer .f-bottom .mpx-foot-copy{font-size:.8125rem; letter-spacing:.12em}
@media (width<=767px){
  body.mpx-footer .f-bottom{align-items:flex-start}
}
/* ══ Footer tidy-up (Nicky, 27 November 2026) ══
   Repairs from a review of the footer on desktop and phones. Nothing in
   it is redesigned and no link is added or removed.
   1. The old stylesheet's side padding on .footer was still applying on
      top of the padding on .fi2, so the footer sat inside the page's
      edges. It is taken off, and the logo and columns now start on the
      same line as the content above.
   2. The type was 10px and 11px. Links are now 13px, the column titles
      11px and the bottom row 12px.
   3. No grey type: the line under the logo, the copyright and Privacy
      Policy are white. The column titles and the city names by the
      clocks stay grey, as eyebrows do.
   4. The Connect links carried an older bottom margin and sat wider
      apart than the other columns. They now match.
   5. On phones each link is a full 44px tall, so it can be pressed with
      a thumb. The foot of the footer has its own note further down. */
body.mpx-footer .footer{padding:0}
/* The side padding also comes from a page gutter rule in mop-up.css that
   is marked important, so it has to be answered in kind. */
body.mpx-footer .footer.footer{padding-left:0!important; padding-right:0!important}
/* The same file narrows the footer's inner box to 1300px. The concept
   pages are 1400px wide, so the footer is too. */
body.mpx-footer .footer .fi2{max-width:1400px!important}
body.mpx-footer .f-links a,
body.mpx-footer .f-email,
body.mpx-footer .f-soc{font-size:.8125rem; letter-spacing:.12em}
body.mpx-footer .f-soc,
body.mpx-footer .f-email{margin:0; gap:0}
body.mpx-footer .f-col-label{font-size:.6875rem}
body.mpx-footer .f-tagline{font-size:.875rem; color:#fff!important}
/* The line under the logo was taken out on 27 November 2026 (Nicky), by
   emptying the Footer tagline setting. With nothing in it, it takes no room. */
body.mpx-footer .f-tagline:empty{display:none}
body.mpx-footer .f-bottom{font-size:.75rem}
body.mpx-footer .f-bottom .mpx-foot-copy,
body.mpx-footer .f-bottom-links a{color:#fff!important}
body.mpx-footer .f-bottom-links a:hover{opacity:.55}
@media (width<=767px){
  body.mpx-footer .f-links a,
  body.mpx-footer .f-email,
  body.mpx-footer .f-soc{min-height:44px; padding:0}
  body.mpx-footer .f-col-label{margin-bottom:8px}
  /* The foot of the footer on phones (Nicky, 27 November 2026). The rule
     above it is taken out, because it cut across the faded M behind. The
     three clocks sit side by side in one row, city above and time below,
     where they were three lines stacked on the left. Under them, on the
     left, the copyright line and then Privacy Policy. Two round buttons
     float in the bottom right corner (cookies, and back to top above
     it): the two lines of text stay left of them, and the space under
     the last row lifts the clocks above the higher of the two. */
  body.mpx-footer .f-bottom{display:grid; grid-template-columns:minmax(0,1fr); gap:0; margin-top:44px; padding-top:0; border-top:0}
  body.mpx-footer .f-bottom .mpx-clocks{grid-row:1; display:flex; flex-direction:row; justify-content:space-between; gap:12px; margin-bottom:30px}
  body.mpx-footer .f-bottom .mpx-clocks span{display:flex; flex-direction:column; gap:7px}
  body.mpx-footer .f-bottom .mpx-clocks b{margin-left:0}
  /* The copyright line a lot bigger on phones (Nicky, 27 November 2026):
     20px and bold, where it was 13px. */
  body.mpx-footer .f-bottom .mpx-foot-copy{grid-row:2; font-family:var(--mp-type-head); font-size:1.25rem; font-weight:800; letter-spacing:.06em; line-height:1.2; white-space:nowrap}
  body.mpx-footer .f-bottom .f-bottom-links{grid-row:3}
  body.mpx-footer .f-bottom .f-bottom-links a{display:inline-flex; align-items:center; min-height:44px}
  body.mpx-footer .fi2{padding-bottom:40px}
}

/* The cookie button on phones. On the new-design pages it sits in the
   bottom right corner (set in concept-home.css). On pages of the older
   design it sat bottom left, which with this footer is exactly where
   Privacy Policy is. It goes right there too, on any page that prints
   this footer. Pages with a footer of their own are left alone. */
@media (width<=767px){
  body.mpx-footer:not(.mpx-concept):has(footer.footer) .cky-btn-revisit-wrapper{left:auto!important; right:15px!important}
}
