/* Shared footer: open typography, integrated search and the existing skyline. */
html body #content_text.footer_bottom:has(> .mm-site-footer) {
  max-width:80rem; width:calc(100% - 3rem); margin:0 auto;
  padding:clamp(4rem,7vw,6rem) 0 0!important; box-sizing:border-box;
}
.mm-site-footer { color:var(--color-text,#242424); font-family:inherit; text-align:left; }
.mm-site-footer *, .mm-site-footer *::before, .mm-site-footer *::after { box-sizing:border-box; }
.mm-site-footer a { color:inherit!important; text-decoration:none!important; }
.mm-site-footer button, .mm-site-footer input { font:inherit; }
.mm-site-footer a:focus-visible, .mm-site-footer button:focus-visible { outline:2px solid currentColor; outline-offset:5px; }
.mm-site-footer__top { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:clamp(3rem,8vw,8rem); align-items:start; padding-bottom:3.5rem; }
.mm-site-footer__brand { display:block; width:132px; }
.mm-site-footer__brand svg { display:block; width:100%; height:auto; }
.mm-site-footer .mm-site-footer__identity p { margin:1rem 0 1.5rem; font-size:1rem; line-height:1.6; opacity:.7; }
.mm-site-footer__button { display:inline-flex; align-items:center; gap:2rem; padding:.9rem 1.35rem; border:1px solid currentColor; border-radius:50px; font-size:.9rem; line-height:1.3; }
.mm-site-footer__button > .mm-button-content { display:inline-flex; gap:2rem; }
.mm-site-footer .mm-site-footer__search { position:relative; display:block; margin:0; width:auto; max-width:none; }
.mm-site-footer .mm-site-footer__search h2 { color:inherit!important; font-family:inherit; font-size:clamp(1.65rem,2.4vw,2.4rem)!important; font-weight:700; line-height:1.15; margin:0 0 1.2rem; letter-spacing:-.035em; text-transform:none; }
.mm-site-footer .mm-menu-search__form { display:flex; align-items:center; gap:.8rem; padding:.5rem 0 .7rem; margin:0; width:100%; min-height:58px; border:0; border-bottom:1px solid currentColor; border-radius:0; background:none; box-shadow:none; color:inherit; }
.mm-site-footer__search-icon { width:23px; height:23px; flex:none; opacity:.6; }
.mm-site-footer .mm-menu-search__input { flex:1; min-width:0; width:0; border:0!important; border-radius:0; padding:.5rem 0!important; background:none!important; box-shadow:none!important; color:inherit!important; font-size:1rem!important; line-height:1.4; height:auto; }
.mm-site-footer .mm-menu-search__input::placeholder { color:inherit; opacity:.5; }
.mm-site-footer .mm-menu-search__submit { flex:none; display:grid; place-items:center; width:42px; height:42px; min-height:0; padding:0; border:0; border-radius:50%; background:var(--pal-light-accent-1,#e8c766); color:#242424!important; font-size:1.4rem; box-shadow:none; }
.mm-site-footer__email { display:flex; flex-wrap:wrap; gap:.3rem .6rem; margin-top:1rem; font-size:.8rem; line-height:1.6; opacity:.65; }
.mm-site-footer__email span { white-space:nowrap; }
.mm-site-footer__navigation { display:grid; grid-template-columns:1fr 1fr 1.2fr; gap:clamp(2rem,5vw,5rem); padding:2.5rem 0 3rem; border-top:1px solid color-mix(in srgb,currentColor 17%,transparent); }
.mm-site-footer .mm-site-footer__column h3 { margin:0 0 1.2rem; color:inherit!important; font-size:.72rem!important; font-weight:600; line-height:1.4; letter-spacing:.13em; text-transform:uppercase; opacity:.55; }
.mm-site-footer__column { display:flex; flex-direction:column; align-items:flex-start; min-width:0; }
.mm-site-footer__column > a { display:block; width:100%; max-width:100%; padding:.3rem 0; font-size:1rem; line-height:1.5; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.mm-site-footer__label { display:block; margin:.1rem 0 .5rem; font-size:.8rem; opacity:.65; }
.mm-site-footer__choices { display:flex; flex-wrap:wrap; gap:.35rem 1rem; margin:0 0 1.25rem; }
.mm-site-footer__choices button { border:0; border-radius:0; background:none!important; color:inherit!important; box-shadow:none; padding:0 0 .2rem; font-size:.85rem; line-height:1.6; cursor:pointer; opacity:.6; }
.mm-site-footer__choices button[aria-current="true"], .mm-site-footer__choices button[aria-pressed="true"] { opacity:1; text-decoration:underline; text-underline-offset:5px; }
.mm-site-footer__bottom { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:1.5rem; border-top:1px solid color-mix(in srgb,currentColor 17%,transparent); padding:1.5rem 0 .5rem; }
.mm-site-footer__copyright { font-size:.75rem; opacity:.55; white-space:nowrap; }
.mm-site-footer__legal { display:flex; justify-content:center; flex-wrap:wrap; gap:.5rem 1.2rem; font-size:.75rem; line-height:1.7; }
.mm-site-footer__legal a { opacity:.65; }
.mm-site-footer__developer { display:flex; align-items:center; gap:.6rem; width:max-content; font-size:.8rem; line-height:1.5; }
.mm-site-footer__developer > img { display:block; width:34px; height:35px; object-fit:contain; border-radius:0; }
.mm-site-footer__developer small { display:block; font-size:.64rem; opacity:.55; font-weight:400; }
.mm-site-footer__developer strong { display:block; font-size:.78rem; font-weight:600; }
.mm-site-footer__developer > span[aria-hidden] { opacity:.5; padding-left:.3rem; }
.mm-site-footer .mm-menu-search__results { position:relative; inset:auto; z-index:3; width:100%; max-height:310px; overflow:auto; margin:.7rem 0 0; padding:.7rem; border:1px solid color-mix(in srgb,currentColor 15%,transparent); border-radius:1rem; background:var(--color-content,#f2ede4); box-shadow:none; }
.mm-site-footer .mm-menu-search__results[hidden] { display:none!important; }
.mm-site-footer .mm-menu-search__heading, .mm-site-footer .mm-menu-search__empty { margin:.3rem .5rem .6rem; font-size:.75rem; opacity:.6; }
.mm-site-footer .mm-menu-search__result { display:flex; align-items:center; gap:.75rem; width:100%; text-align:left; padding:.6rem; color:inherit!important; border:0; border-radius:.5rem; background:transparent; cursor:pointer; }
.mm-site-footer .mm-menu-search__result:hover, .mm-site-footer .mm-menu-search__result.is-active { background:color-mix(in srgb,currentColor 7%,transparent); }
.mm-site-footer .mm-menu-search__thumb { width:42px; height:42px; border-radius:.3rem; object-fit:cover; }
.mm-site-footer .mm-menu-search__result-copy { min-width:0; }
.mm-site-footer .mm-menu-search__result-title { display:block; font-size:.9rem; }
@media(hover:hover) {
  .mm-site-footer__column > a:hover, .mm-site-footer__legal a:hover, .mm-site-footer__developer:hover { text-decoration:underline!important; text-underline-offset:4px; }
}
@media(max-width:800px) {
  .mm-site-footer__top { grid-template-columns:1fr; gap:2.75rem; padding-bottom:2.5rem; }
  .mm-site-footer__navigation { grid-template-columns:1fr 1fr; gap:2rem; padding-block:2rem; }
  .mm-site-footer__preferences { grid-column:1 / -1; }
  .mm-site-footer__bottom { grid-template-columns:1fr; gap:1rem; }
  .mm-site-footer__legal { justify-content:flex-start; gap:.4rem 1rem; }
  .mm-site-footer__developer { margin-top:.4rem; }
  .mm-site-footer__brand { width:114px; }
}
@media(max-width:380px) {
  html body #content_text.footer_bottom:has(> .mm-site-footer) { width:calc(100% - 2rem); }
  .mm-site-footer__navigation { gap:1rem; }
  .mm-site-footer__column > a { font-size:.9rem; }
  .mm-site-footer .mm-menu-search__input { font-size:.9rem!important; }
}

.mm-site-footer__developer > .mm-button-content { display:flex; align-items:center; gap:.6rem; opacity:1; padding:0; }
.mm-site-footer__developer img { display:block; width:34px; height:35px; object-fit:contain; border-radius:0; }

.mm-site-footer__column > a > .mm-button-content { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* The old site styles every nav as a fixed drawer; footer navigation is in flow. */
html body .mm-site-footer nav {
  position:static!important; inset:auto!important; transform:none!important;
  opacity:1!important; visibility:visible!important; pointer-events:auto!important;
  width:auto!important; height:auto!important; max-height:none!important;
  margin:0!important; padding:0!important; overflow:visible!important;
  background:transparent!important; border:0!important; box-shadow:none!important;
  z-index:auto!important;
}
.mm-site-footer .mm-menu-search__input { letter-spacing:normal!important; text-transform:none!important; font-weight:400!important; }
.mm-site-footer .mm-menu-search__input::placeholder { color:color-mix(in srgb,var(--color-text,#242424) 65%,transparent)!important; opacity:1; }
.mm-site-footer__choices button { text-transform:none!important; letter-spacing:normal!important; }
html body .mm-site-footer nav {
  min-width:0!important; max-width:none!important; align-self:start!important;
  justify-content:flex-start!important; transition:none!important;
}
html body .mm-site-footer nav.mm-site-footer__legal { flex-direction:row!important; }
.mm-site-footer__navigation { align-items:start; }
html body .mm-site-footer__column > a > .mm-button-content {
  display:block!important; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}

/* Keep suggestions out of grid sizing and prevent them from stretching the footer. */
.mm-site-footer__top > * { min-width:0; }
.mm-site-footer__identity { align-self:start; }
.mm-site-footer__identity p { max-width:28rem; }
.mm-site-footer__button { white-space:nowrap; }
.mm-site-footer__search-field { position:relative; min-width:0; }
html body .mm-site-footer .mm-menu-search__results {
  position:absolute; inset:calc(100% + 8px) 0 auto; z-index:30;
  width:100%; max-width:100%; max-height:min(330px,45vh);
  margin:0; padding:.5rem; overflow-x:hidden; overflow-y:auto;
  background:var(--color-content,#f2ede4);
  box-shadow:0 12px 35px rgba(0,0,0,.18);
}
html body .mm-site-footer .mm-menu-search__input:focus,
html body .mm-site-footer .mm-menu-search__input:focus-visible {
  outline:none!important; box-shadow:none!important;
}
.mm-site-footer .mm-menu-search__form:focus-within {
  border-bottom-color:var(--pal-light-accent-1,#e8c766);
  box-shadow:0 1px 0 var(--pal-light-accent-1,#e8c766);
}
html body .mm-site-footer .mm-menu-search__result {
  display:flex!important; align-items:center; justify-content:flex-start;
  width:100%; min-width:0; min-height:60px; gap:.75rem; padding:.6rem;
  font-family:inherit; font-size:.9rem!important; font-weight:400;
  line-height:1.4; letter-spacing:normal!important; text-transform:none!important;
  white-space:normal; text-align:left; transform:none;
}
.mm-site-footer .mm-menu-search__result > i { flex:0 0 42px; text-align:center; }
.mm-site-footer .mm-menu-search__thumb { flex:0 0 42px; }
.mm-site-footer .mm-menu-search__result-copy { flex:1; min-width:0; overflow:hidden; }
.mm-site-footer .mm-menu-search__result-title {
  font-size:.9rem!important; font-weight:500; line-height:1.4;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  text-transform:none!important; letter-spacing:normal!important;
}
.mm-site-footer .mm-menu-search__result-copy small {
  display:block; margin-top:.15rem; opacity:.6; font-size:.75rem;
  line-height:1.4; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  text-transform:none!important; letter-spacing:normal!important;
}
html body .mm-site-footer__choices button[aria-current="true"] > .mm-button-content,
html body .mm-site-footer__choices button[aria-pressed="true"] > .mm-button-content {
  text-decoration:underline!important; text-underline-offset:5px;
}
@media(max-width:800px) {
  .mm-site-footer__top { grid-template-columns:minmax(0,1fr); }
}

/* Copyright and legal links share one text baseline. */
.mm-site-footer__utility { display:flex; align-items:baseline; flex-wrap:wrap; gap:.65rem 1.5rem; min-width:0; }
.mm-site-footer__copyright { line-height:1.7; }
html body .mm-site-footer__utility nav.mm-site-footer__legal { align-self:baseline!important; }
.mm-site-footer__utility .mm-site-footer__legal a { line-height:1.7; padding-block:0; margin-block:0; }

/* One shared three-column grid across the entire desktop footer. */
.mm-site-footer {
  --mm-footer-columns:repeat(3,minmax(0,1fr));
  --mm-footer-column-gap:clamp(2rem,5vw,5rem);
  --mm-footer-section-space:clamp(2rem,4vw,3rem);
  --mm-footer-logo-width:132px;
}
.mm-site-footer__top,
.mm-site-footer__navigation {
  grid-template-columns:var(--mm-footer-columns);
  column-gap:var(--mm-footer-column-gap);
}
.mm-site-footer__top { padding-bottom:var(--mm-footer-section-space); }
.mm-site-footer .mm-site-footer__search { grid-column:2 / -1; }
.mm-site-footer__navigation { padding-block:var(--mm-footer-section-space); }
.mm-site-footer__brand {
  width:var(--mm-footer-logo-width);
  margin-left:calc(var(--mm-footer-logo-width) * -.0372763);
}
.mm-site-footer__label {
  font-size:1rem; line-height:1.5; padding:.3rem 0; margin:0 0 .5rem;
}
.mm-site-footer__utility {
  display:grid; grid-template-columns:max-content max-content;
  align-items:center; justify-content:start; gap:1.5rem;
}
html body .mm-site-footer__utility nav.mm-site-footer__legal {
  width:max-content!important; flex:0 0 auto!important;
  align-self:center!important; flex-wrap:nowrap;
}
@media(max-width:800px) {
  .mm-site-footer { --mm-footer-logo-width:114px; }
  .mm-site-footer__top { grid-template-columns:minmax(0,1fr); row-gap:2rem; }
  .mm-site-footer .mm-site-footer__search { grid-column:auto; }
  .mm-site-footer__navigation { grid-template-columns:repeat(2,minmax(0,1fr)); gap:2rem; }
  .mm-site-footer__utility { grid-template-columns:minmax(0,1fr); gap:.65rem; }
  html body .mm-site-footer__utility nav.mm-site-footer__legal {
    width:auto!important; flex-wrap:wrap;
  }
}

/* Keep small footer information readable against charcoal surfaces. */
html[data-theme="dark"] .mm-site-footer :is(.mm-site-footer__email,.mm-site-footer__column h3,.mm-site-footer__label,.mm-site-footer__copyright,.mm-site-footer__legal a,.mm-site-footer__developer small) { opacity: .78; }
@media (prefers-color-scheme: dark) {
  :is(html:not([data-theme]), html[data-theme="auto"]) .mm-site-footer :is(.mm-site-footer__email,.mm-site-footer__column h3,.mm-site-footer__label,.mm-site-footer__copyright,.mm-site-footer__legal a,.mm-site-footer__developer small) { opacity: .78; }
}

/* Leave room for the magnetic text movement instead of clipping its first letters. */
html body .mm-site-footer__column > a,
html body .mm-site-footer__column > a.mm-button-hover > .mm-button-content {
  overflow: visible !important;
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
}
/* Section headings should remain readable in the selected display face. */
html body .mm-site-footer .mm-site-footer__column h3 {
  font-size: clamp(1rem, 1.2vw, 1.2rem) !important;
  line-height: 1.35 !important;
  opacity: .9 !important;
  letter-spacing: .01em !important;
  text-transform: none !important;
}

/* Match the primary website actions instead of the beige theme accent. */
html body .mm-site-footer .mm-menu-search__submit { background:#e8c766 !important; color:#242424 !important; }
html body .mm-site-footer .mm-menu-search__form:focus-within { border-bottom-color:#e8c766; box-shadow:0 1px 0 #e8c766; }

/* A slightly raised dark surface distinguishes suggestions from the footer. */
html[data-theme="dark"] body .mm-site-footer .mm-menu-search__results {
  background:#35393d;
  border-color:#50555b;
}
@media(prefers-color-scheme:dark) {
  html:not([data-theme]) body .mm-site-footer .mm-menu-search__results,
  html[data-theme="auto"] body .mm-site-footer .mm-menu-search__results {
    background:#35393d;
    border-color:#50555b;
  }
}

/* Share rows so the tagline and search text line up independently of heading height. */
@media (min-width:801px) {
  .mm-site-footer__top { row-gap:1rem; }
  .mm-site-footer__top > .mm-site-footer__identity,
  .mm-site-footer .mm-site-footer__top > .mm-site-footer__search {
    display:grid;
    grid-template-rows:subgrid;
    grid-row:1 / span 3;
    align-items:center;
  }
  .mm-site-footer__identity { grid-column:1; }
  .mm-site-footer .mm-site-footer__identity p,
  .mm-site-footer .mm-site-footer__search h2,
  .mm-site-footer .mm-site-footer__email { margin:0; }
  .mm-site-footer .mm-site-footer__search h2 { align-self:end; }
  .mm-site-footer__identity > .mm-site-footer__button,
  .mm-site-footer__search > .mm-site-footer__email { justify-self:start; }
  .mm-site-footer .mm-menu-search__form { padding-block:.5rem; }
}
