/* DMTB: page edge and shared footer; scoped to migrated pages. */
html:has(#dmtb-tilda),html:has(#dmtb-shop-top),body:has(#dmtb-tilda),body:has(#dmtb-shop-top){background:#f5f5db;overscroll-behavior-y:none}
body:has(#dmtb-tilda) #allrecords,body:has(#dmtb-shop-top) #allrecords{background:#f5f5db}
#allrecords #dmtb-tilda .footer{display:grid;grid-template-columns:1fr 1fr;align-items:start;column-gap:48px;row-gap:18px;max-width:1280px;margin:0 auto;padding:40px clamp(24px,4vw,60px) calc(24px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);box-sizing:border-box;background:var(--paper)}
#allrecords #dmtb-tilda .footer>.wordmark{grid-column:1;grid-row:1;width:145px}
#allrecords #dmtb-tilda .footer>.wordmark .brand-logo{width:100%;height:auto;aspect-ratio:555/150}
#allrecords #dmtb-tilda .footer>span{grid-column:1;grid-row:2;max-width:280px;font-size:14px;line-height:1.65;color:var(--muted)}
#allrecords #dmtb-tilda .footer-links{grid-column:2;grid-row:1/3;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;width:auto;font-size:14px}
#allrecords #dmtb-tilda .footer-links a{min-height:44px;align-items:center;width:fit-content;color:var(--ink);text-decoration:none}
#allrecords #dmtb-tilda .footer-links a:hover{text-decoration:underline;text-underline-offset:5px}
#allrecords #dmtb-tilda .footer-links a:focus-visible{outline:2px solid var(--blue);outline-offset:4px;border-radius:3px}
#allrecords #dmtb-tilda .footer small{grid-column:1/-1;display:block;width:100%;margin:8px 0 0;padding-top:20px;border-top:1px solid var(--line);font-size:12px;line-height:1.5;color:var(--muted)}
@media(max-width:700px){#allrecords #dmtb-tilda .footer{grid-template-columns:1fr;gap:14px;padding-top:30px}#allrecords #dmtb-tilda .footer>.wordmark{width:132px}#allrecords #dmtb-tilda .footer>span{max-width:none}#allrecords #dmtb-tilda .footer-links{grid-column:1;grid-row:3;width:100%;gap:0 24px}#allrecords #dmtb-tilda .footer small{grid-row:4;margin-top:12px}}
