/* Opaque footer pills keep seasonal particles behind readable text. */
body{--footer-pill-bg:#fff;--footer-pill-ink:#415568;--footer-pill-border:#dce5ed;--footer-link:#155b97}
body.christmas-theme{--footer-pill-bg:#103c2a;--footer-pill-ink:#f1f7ed;--footer-pill-border:#38644a;--footer-link:#c9e9a6}
body.thanksgiving-theme{--footer-pill-bg:#fff5e8;--footer-pill-ink:#693a1a;--footer-pill-border:#ddc6a7;--footer-link:#864411}
body.valentines-theme{--footer-pill-bg:#fff0f5;--footer-pill-ink:#702a45;--footer-pill-border:#e5b7ca;--footer-link:#9b2453}
body footer{position:relative;z-index:2;isolation:isolate}
body footer p.footer-pill{position:relative;z-index:2;display:table;max-width:min(100%,960px);margin:8px auto;padding:9px 17px;border:1px solid var(--footer-pill-border);border-radius:999px;background:var(--footer-pill-bg)!important;color:var(--footer-pill-ink)!important;text-align:center!important;line-height:1.8;overflow-wrap:anywhere;box-shadow:0 2px 8px #00000006}
body footer p.footer-pill a{color:var(--footer-link)!important;text-decoration:underline;text-underline-offset:3px}
body footer p.footer-pill time{color:inherit!important}
body.repair-shop-body footer{display:block}
@media(max-width:600px){body footer p.footer-pill{padding:10px 14px;border-radius:18px;font-size:11px;max-width:100%}}

/* Desktop metadata shares one opaque pill; mobile keeps the stacked pills. */
@media(min-width:769px){
 body footer:has(>p.footer-pill){display:flex;align-items:center;gap:0;margin:20px auto;padding:16px 20px;border:1px solid var(--footer-pill-border);border-radius:999px;background:var(--footer-pill-bg)!important;color:var(--footer-pill-ink);box-shadow:0 2px 8px #00000006}
 body footer:has(>p.footer-pill)>p.footer-pill{display:block;flex:1 1 0;min-width:0;max-width:none;margin:0;padding:0 16px;border:0;border-radius:0;background:transparent!important;box-shadow:none;font-size:12px;line-height:1.65}
 body footer:has(>p.footer-pill)>p.footer-pill:first-child{flex-grow:1.6;padding-left:0}
 body footer:has(>p.footer-pill)>p.footer-pill:last-child{padding-right:0}
 body footer:has(>p.footer-pill)>p.footer-pill+p.footer-pill{border-left:1px solid var(--footer-pill-border)}
}
@media(min-width:769px){
 body footer:has(>p.footer-pill)>p.footer-pill:has(time){flex-grow:1.45}
 body footer:has(>p.footer-pill)>p.footer-version{flex-grow:.8}
}
@media(min-width:1200px){body footer:has(>p.footer-pill)>p.footer-version{flex:0 0 auto;white-space:nowrap}}
@media(min-width:1200px){
 body footer:has(>p.footer-pill){justify-content:center}
 body footer:has(>p.footer-pill)>p.footer-pill:first-child,
 body footer:has(>p.footer-pill)>p.footer-pill:has(time){flex:0 0 auto;white-space:nowrap}
}
@media(min-width:1200px) and (max-width:1399px){
 body footer:has(>#homepage-last-visit)>p.footer-pill:first-child{flex:1.8 1 0;white-space:normal}
 body footer:has(>#homepage-last-visit)>p.footer-pill:has(time){flex:1.1 1 0;white-space:normal}
}
@media(min-width:1200px){body footer:has(>p.footer-pill)>p.footer-pill:first-child{flex-shrink:1;white-space:normal}}
