/* The v2 site footer (Derek's design, 2026-11-23): paper, a green wave along the top, logo + line, three link columns
   (Product / Keyvex / Legal), back-to-top, then the copyright and the not-advice sentence. Markup: light/site/footer.txt
   (one copy, kept in sync on every page by scripts/refresh-v2-footer.ts; light/site/v2.html fetches it).
   Every rule is footer.kvf-scoped: landing.css carries bare footer / h2 / p rules sized for the home page. */
footer.kvf{position:relative;z-index:10;clear:both;box-sizing:border-box;display:block;width:100%;max-width:none;margin:64px 0 0;padding:0 0 34px;
  background:#f5f4ef;color:#1d261e;overflow:hidden;border:0;font:15px/1.5 Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,system-ui,sans-serif;text-align:left}
footer.kvf *{box-sizing:border-box}
footer.kvf a{color:inherit;text-decoration:none}
footer.kvf p,footer.kvf h2{margin:0}
footer.kvf .kvf-wave{height:150px;margin-bottom:6px;pointer-events:none}
footer.kvf .kvf-wave svg{display:block;width:100%;height:100%}
footer.kvf .kvf-in,footer.kvf .kvf-bottom{max-width:1440px;margin:0 auto;padding:0 5%}
/* desktop: brand | rule | three columns | back-to-top */
footer.kvf .kvf-in{display:grid;grid-template-columns:minmax(220px,300px) minmax(0,1fr) auto;column-gap:0;align-items:start;padding-bottom:30px}
footer.kvf .kvf-brand{padding-right:40px;min-height:220px;border-right:1px solid #d3dccb}
footer.kvf .kvf-logo{display:inline-flex;align-items:center;gap:13px}
footer.kvf .kvf-logo img{width:44px;height:48px;padding:4px;border-radius:9px;background:#2d4b2e;object-fit:contain;display:block}
footer.kvf .kvf-logo svg{display:block;width:172px;height:auto;overflow:hidden}
footer.kvf .kvf-brand p{margin-top:18px;max-width:250px;font-size:16px;line-height:1.6;color:#4f5d47}
footer.kvf .kvf-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding:0 4% 0 6%}
footer.kvf .kvf-cols h2{margin:0 0 16px;font:700 11px/1.2 Inter,Arial,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#365f32}
footer.kvf .kvf-cols a{display:block;width:max-content;max-width:100%;padding:6px 0;font-size:17px;line-height:1.5;color:#1d261e}
footer.kvf .kvf-cols a:hover{color:#365f32}
footer.kvf .kvf-top{display:grid;place-content:center;width:54px;height:54px;border-radius:50%;border:1px solid #cfdac4;background:#eef2e6;color:#2f5a27}
footer.kvf .kvf-top:hover{background:#e3ebd6;border-color:#a9bd96}
footer.kvf .kvf-top svg{width:24px;height:24px}
footer.kvf .kvf-bottom{position:relative;display:flex;justify-content:space-between;align-items:flex-start;gap:40px;padding-top:30px;font-size:15px;line-height:1.75;color:#4f5d47}
/* the rule above the bottom row, inset to the content edges */
footer.kvf .kvf-bottom::before{content:"";position:absolute;top:0;left:5%;right:5%;height:1px;background:#d3dccb}
footer.kvf .kvf-bottom span{flex:0 0 auto}
footer.kvf .kvf-bottom p{max-width:560px;text-align:right}
footer.kvf .kvf-bottom a{color:inherit}
footer.kvf .kvf-bottom a:hover{color:#365f32;text-decoration:underline}
footer.kvf a:focus-visible{outline:3px solid #5d8d45;outline-offset:4px;border-radius:4px}
@media (max-width:1000px){
  footer.kvf .kvf-cols{padding:0 3% 0 4%}
  footer.kvf .kvf-cols a{font-size:16px}
}
/* phone: logo with the back-to-top beside it, the line, Product + Keyvex side by side, then the legal links in one row */
@media (max-width:760px){
  footer.kvf{margin-top:44px;padding-bottom:calc(30px + env(safe-area-inset-bottom))}
  footer.kvf .kvf-wave{height:90px}
  footer.kvf .kvf-in,footer.kvf .kvf-bottom{padding:0 6%}
  footer.kvf .kvf-in{display:block;position:relative;padding-bottom:0}
  footer.kvf .kvf-brand{min-height:0;border-right:0;padding:0 0 22px;border-bottom:1px solid #d3dccb}
  footer.kvf .kvf-logo img{width:40px;height:44px}
  footer.kvf .kvf-logo svg{width:146px}
  footer.kvf .kvf-brand p{max-width:none;margin-top:16px;font-size:15px}
  footer.kvf .kvf-top{position:absolute;top:-4px;right:6%;width:50px;height:50px}
  footer.kvf .kvf-cols{grid-template-columns:1fr 1fr;gap:0 24px;padding:22px 0 0}
  footer.kvf .kvf-cols h2{margin-bottom:10px}
  footer.kvf .kvf-cols a{font-size:17px;padding:8px 0}
  footer.kvf .kvf-legal{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:4px 28px;margin-top:18px;padding:16px 0 8px;border-top:1px solid #d3dccb}
  footer.kvf .kvf-legal h2,footer.kvf .kvf-legal a span{display:none}
  footer.kvf .kvf-legal a{font-size:15px;color:#4f5d47}
  footer.kvf .kvf-bottom{display:block;padding-top:14px;font-size:14px}
  footer.kvf .kvf-bottom::before{display:none}
  footer.kvf .kvf-bottom p{margin-top:14px;text-align:left;max-width:none}
}
/* /about's last section already ends in the landing's wave, right above the footer: that wave is the footer's top
   there, so the footer's own would only double it */
/* THE STICKY WAVE (Derek 2026-11-28: "like we do it on the News page, where it scrolls with the page until it hits the
   bottom, then it stops"). On /docs-v2 and the datasets-v2 pages a copy of the footer's wave, .kvf-sticky-wave, sits
   right before the footer, sticky to the bottom of the window: while the reader scrolls it rides along the bottom of
   the screen, and at the end of the page it settles where the footer's own wave was. The footer's own wave is then
   hidden so it is not drawn twice. Markup: datasets-v2 pages carry it between <!--KV2:WAVE--> markers
   (scripts/refresh-v2-footer.ts keeps it equal to footer.txt's wave); /docs-v2 gets it from light/site/v2.html.
   The page content must be a layer ABOVE it (position + z-index >= 1) so the text passes over the wave rather than
   under it: datasets.css .content, dataset.css .ds-wrap, static.css html.sp2-docs .content. Same size and spacing
   as the /news one (pages.css .kvn-sticky-wave). */
.kvf-sticky-wave{position:sticky;bottom:0;z-index:0;display:block;height:150px;margin-top:64px;pointer-events:none}
.kvf-sticky-wave svg{display:block;width:100%;height:100%}
.kvf-sticky-wave ~ footer.kvf{margin-top:0}
.kvf-sticky-wave ~ footer.kvf .kvf-wave{display:none}
@media (max-width:760px){.kvf-sticky-wave{height:90px;margin-top:44px}}
body.ab2l footer.kvf{margin-top:0}
body.ab2l footer.kvf .kvf-wave{display:none}
body.ab2l footer.kvf .kvf-in{padding-top:28px}
