/* Site footer following the mornebrabant.org footer layout on the guide's own coral band (--coral
   #d73550): white text and signature on the band, column groups on desktop and white disclosure cards
   on phones. White on #d73550 is 4.65:1. Every rule is scoped to the new footer. */
html body .mi-site-footer { display:block; margin:72px 0 0; padding:64px clamp(20px,5vw,72px) 30px; color:#fff; background:#d73550; border:0; font-family:inherit; font-size:16px; line-height:1.5; text-align:left; }
html body .mi-site-footer .mi-footer-shell { max-width:var(--wide,1360px); margin:0 auto; }
html body .mi-site-footer .mi-footer-discover { margin:0 0 40px; }
html body .mi-site-footer .mi-footer-discover p { max-width:600px; margin:0; color:#fff; font-size:17px; line-height:1.75; letter-spacing:0; }
html body .mi-site-footer .mi-footer-grid { display:grid; grid-template-columns:1.05fr .8fr 1.2fr; gap:64px; }
html body .mi-site-footer .mi-footer-logo-link { display:inline-flex; margin:24px 0 18px; }
html body .mi-site-footer .mi-footer-logo { display:block; width:180px; max-width:100%; height:auto; }
html body .mi-site-footer :is(p,a,button) { color:#fff; }
html body .mi-site-footer h2 { margin:0; color:#fff; font-size:16px; font-weight:500; line-height:1.4; letter-spacing:0; }
html body .mi-site-footer .mi-footer-desktop > h2 { display:flex; align-items:center; min-height:48px; margin-bottom:16px; }
html body .mi-site-footer .mi-footer-links { display:grid; justify-items:start; gap:6px 28px; margin:0; }
html body .mi-site-footer .mi-footer-group:last-child .mi-footer-links { grid-template-columns:repeat(2,minmax(0,1fr)); }
html body .mi-site-footer .mi-footer-links :is(a,button) { display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:6px 0; border:0; border-radius:0; background:none; box-shadow:none; font:inherit; font-size:14px; line-height:1.5; letter-spacing:0; text-align:left; text-decoration:none; cursor:pointer; }
html body .mi-site-footer small { color:#fff; font-size:11px; letter-spacing:.04em; }
html body .mi-site-footer :is(a,button):hover { color:#fff; text-decoration:underline; text-underline-offset:5px; }
/* The guide's global button hover paints a near-white fill that would hide white footer labels. */
html body .mi-site-footer button:is(:hover,:active,:focus,:focus-visible) { background-color:transparent !important; box-shadow:none !important; }
html body .mi-site-footer :is(a,button,summary):focus-visible,
html body .mi-site-footer #andeor-portfolio-settings:focus-visible { outline:2px solid #fff; outline-offset:4px; }
html body .mi-site-footer .mi-footer-links a[aria-current="page"] { color:#fff; text-decoration:underline; text-underline-offset:5px; }
html body .mi-site-footer .footer-meta { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:24px; margin:48px 0 0; font-size:12px; }
html body .mi-site-footer .footer-meta > :is(a,span),
html body .mi-site-footer .mi-footer-languages a { display:inline-flex; align-items:center; min-height:44px; font-size:12px; text-decoration:none; }
html body .mi-site-footer .footer-meta > a[data-portfolio-contact] { font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
html body .mi-site-footer .footer-meta > span { color:#fff; }
html body .mi-site-footer .mi-footer-languages { display:flex; flex-wrap:wrap; gap:6px 20px; margin:0; }
html body .mi-site-footer .mi-footer-languages a[aria-current="page"] { color:#fff; text-decoration:underline; text-underline-offset:4px; }
html body .mi-site-footer #andeor-portfolio-settings { color:#fff; }
html body .mi-site-footer .mi-footer-disclosure { display:none; }
/* Pages with a single link group give it the free width instead of the narrow middle column. */
html body .mi-site-footer .mi-footer-brand + .mi-footer-group:last-child { grid-column:2 / -1; }

@media (max-width:1000px) {
  html body .mi-site-footer .mi-footer-grid { grid-template-columns:1fr 1fr; gap:36px; }
  html body .mi-site-footer .mi-footer-brand { grid-column:1 / -1; }
  html body .mi-site-footer .mi-footer-brand + .mi-footer-group:last-child { grid-column:1 / -1; }
  html body .mi-site-footer .mi-footer-group:last-child .mi-footer-links { grid-template-columns:1fr; }
}

/* The phone dock floats over the page end. The footer carries the dock clearance itself, so the band
   reaches the bottom edge instead of leaving the body's dock padding as a white strip. Links the dock
   already offers are not repeated beside it. */
@media (max-width:760px) {
  html body:not(.map-page) .mi-site-footer { margin-bottom:-105px; padding-bottom:calc(30px + 105px + env(safe-area-inset-bottom)); }
  @supports selector(body:has(a)) {
    html body:has(> .mi-site-footer) { padding-bottom:0; }
    html body:not(.map-page) .mi-site-footer { margin-bottom:0; }
  }
  html body .mi-site-footer [data-dock-duplicate] { display:none !important; }
}

@media (max-width:600px) {
  html body .mi-site-footer { padding-top:40px; }
  html body .mi-site-footer .mi-footer-discover { margin-bottom:32px; text-align:center; }
  html body .mi-site-footer .mi-footer-discover p { margin-inline:auto; font-size:15px; }
  html body .mi-site-footer .mi-footer-grid { grid-template-columns:1fr; gap:12px; }
  html body .mi-site-footer .mi-footer-brand { margin-bottom:20px; text-align:center; }
  html body .mi-site-footer .mi-footer-logo-link { justify-content:center; }
  html body .mi-site-footer .mi-footer-desktop { display:none; }
  /* Phone panels are white cards on the coral band, so their labels switch to ink. */
  html body .mi-site-footer .mi-footer-disclosure { display:block; border-radius:16px; background:#fff; box-shadow:0 1px 3px rgb(34 37 42 / 8%), 0 6px 18px rgb(34 37 42 / 10%); }
  html body .mi-site-footer .mi-footer-disclosure > summary { display:flex; justify-content:space-between; align-items:center; min-height:60px; padding:16px 20px; color:#22252a; font-size:15px; font-weight:500; list-style:none; cursor:pointer; }
  html body .mi-site-footer .mi-footer-disclosure > summary::-webkit-details-marker { display:none; }
  html body .mi-site-footer .mi-footer-disclosure > summary svg { flex-shrink:0; transition:transform 180ms; }
  html body .mi-site-footer .mi-footer-disclosure[open] > summary svg { transform:rotate(180deg); }
  html body .mi-site-footer .mi-footer-disclosure > .mi-footer-links { grid-template-columns:1fr !important; padding:0 20px 16px; }
  html body .mi-site-footer .mi-footer-disclosure :is(a,button),
  html body .mi-site-footer .mi-footer-disclosure :is(a,button):hover,
  html body .mi-site-footer .mi-footer-disclosure .mi-footer-links a[aria-current="page"] { color:#22252a; }
  html body .mi-site-footer .mi-footer-disclosure :is(a,button,summary):focus-visible { outline-color:#22252a; }
  html body .mi-site-footer .mi-footer-links :is(a,button) { min-height:44px; }
  /* A group that keeps a single link beside the dock shows it directly instead of behind a disclosure. */
  html body .mi-site-footer [data-phone-flat] > .mi-footer-desktop { display:block; text-align:center; }
  html body .mi-site-footer [data-phone-flat] > .mi-footer-desktop > h2 { justify-content:center; margin-bottom:4px; }
  html body .mi-site-footer [data-phone-flat] > .mi-footer-desktop .mi-footer-links { justify-items:center; }
  html body .mi-site-footer [data-phone-flat] > .mi-footer-disclosure { display:none; }
  html body .mi-site-footer .footer-meta { justify-content:center; gap:12px; margin-top:32px; text-align:center; }
  html body .mi-site-footer .mi-footer-languages { justify-content:center; }
}

/* Forced-colour themes may repaint the band light, so the white signature keeps its own coral backing. */
@media (forced-colors:active) {
  html body .mi-site-footer .mi-footer-logo-link { forced-color-adjust:none; padding:6px 10px; border-radius:8px; background:#d73550; }
}

@media (prefers-reduced-motion:reduce) {
  html body .mi-site-footer .mi-footer-disclosure > summary svg { transition:none; }
}

/* Printers usually drop background colours, so print the footer as dark text on paper. */
@media print {
  html body .mi-site-footer { margin:24px 0 0; padding:16px 0 0; color:#22252a; background:none; }
  html body .mi-site-footer :is(p,a,button,span,h2,summary) { color:#22252a !important; }
  html body .mi-site-footer .mi-footer-logo { filter:invert(1); }
  html body .mi-site-footer .mi-footer-disclosure { display:none; }
}
