/* FAUNDA footer rhythm: a single consistent transition from content to footer. */
:root{--fn-footer-gap:clamp(24px,3.5vw,44px);--fn-footer-pad:clamp(24px,3vw,38px)}
/* The shared layout already carries bottom padding, so do not stack another margin. */
html body .fn-footer{margin:0;padding:var(--fn-footer-pad) 0 calc(var(--fn-footer-pad) + 4px);border-top:1px solid var(--line);}
html body .fn-footer .fn-container{display:flex;align-items:center;justify-content:space-between;column-gap:clamp(20px,3vw,44px);row-gap:16px;}
html body .fn-footer .fn-container>div{min-width:180px;}
html body .fn-footer .fn-container p{margin:9px 0 0;line-height:1.55;}
html body .fn-footer nav{gap:12px clamp(15px,2vw,28px);}
html body .fn-footer small{white-space:nowrap;}
/* Match the vertical space below content across all main archive views. */
html body #content>.layout{padding-bottom:var(--fn-footer-gap);}
html body #content>main:last-child{margin-bottom:var(--fn-footer-gap);}
html body #content>.layout:last-child{margin-bottom:0;}
@media(max-width:767px){
 :root{--fn-footer-gap:26px;--fn-footer-pad:24px;}
 html body .fn-footer .fn-container{align-items:flex-start;gap:18px 24px;}
 html body .fn-footer .fn-container>div{flex:1 1 100%;min-width:0;}
 html body .fn-footer nav{gap:10px 20px;flex:1 1 100%;}
 html body .fn-footer small{flex:1 1 100%;}
 /* Bottom navigation is fixed; keep existing body clearance rather than expanding footer. */
 html body .fn-footer{padding-bottom:22px;}
}
