/* The footer with the field (21 October 2026, Jordi; on every v8 page since that night). The logo and the service's name left, the
   five links in two columns right, "© Fennia" under them, then the field (app/sparkle-field.js) the full width of the column, fading
   toward the words and never behind them. Its background is the page's floor: sparkle-field.js reads the colour at the bottom of
   what comes before the footer and sets --qf-bg (mint on Home, white on most pages, gray after the paperwork band); the two :has()
   rules below are only the first paint, before the script has looked */
#v8 #app .qfoot.qfoot-field { position: relative; padding: var(--v8-9) 0 0 !important; background: var(--qf-bg, var(--v8-white)) !important; overflow: hidden; }
#v8 #app main.page:has(.v8-hm-floor) ~ .qfoot.qfoot-field { background: var(--qf-bg, var(--v8-mint)) !important; }
#v8 #app main.page:has(.v8-band) ~ .qfoot.qfoot-field { background: var(--qf-bg, var(--v8-gray)) !important; }
/* Where the page's own bottom padding still stands (nothing at the page's end cancels it), that padding is the gap, as with the old
   footer: 96 from the last card to the logo, not 96 and 64 */
#v8 #app main.page:not(:has(.v8-hm-floor, .v8-band, .v8-gm:last-child, .v8-hero:last-child)) ~ .qfoot.qfoot-field { padding-top: 0 !important; }
#v8 #app .qfoot-field > .qf-in { max-width: calc(var(--content-max) + 2 * var(--page-x)); margin: 0 auto; padding: 0 var(--page-x); }
#v8 #app .qfoot-field .qf-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--v8-8); align-items: start; }
#v8 #app .qfoot-field .qf-brand img { display: block; width: 108px; height: 40px; }
#v8 #app .qfoot-field .qf-brand p { margin: var(--v8-3) 0 0; color: var(--v8-ink-2); font-size: var(--v8-fs-16); line-height: var(--v8-lh-16); }
#v8 #app .qfoot-field .qf-cols { display: flex; gap: var(--v8-10); }
#v8 #app .qfoot-field .qf-h { margin: 0 0 var(--v8-2); color: var(--v8-ink); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; font-weight: 700; }
#v8 #app .qfoot-field .qf-cols ul { display: block; margin: 0; padding: 0; list-style: none; font-size: var(--v8-fs-16); line-height: var(--v8-lh-16); }
#v8 #app .qfoot-field .qf-cols a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--v8-green-t) !important; font-size: var(--v8-fs-16) !important; text-decoration: underline; text-decoration-color: rgba(0, 112, 11, .4); text-underline-offset: 3px; }
#v8 #app .qfoot-field .qf-cols a:hover { text-decoration-color: currentColor; background: none; }
#v8 #app .qfoot-field .qf-cols svg.i { width: 16px; height: 16px; color: currentColor !important; }
#v8 #app .qfoot-field .qf-c { margin: var(--v8-8) 0 0; color: var(--v8-ink-2); font-size: var(--v8-fs-16); line-height: var(--v8-lh-16); }
#v8 #app .qfoot-field .qf-field { display: block; width: 100%; height: clamp(170px, 18vw, 250px); margin-top: var(--v8-6); }
/* One column under 1100 (adopted 21 October 2026): beside the side menu a 1024 window left the brand column about 90 wide, and
   "Oma Fennia for business" broke over three lines */
@media (max-width: 1099px) {
  #v8 #app .qfoot-field .qf-top { grid-template-columns: 1fr; gap: var(--v8-6); }
}
/* push: also answers to the page area's width (branch ai-drawer README, the push layout) */
@container app (max-width: 1099px) {
  #v8 #app .qfoot-field .qf-top { grid-template-columns: 1fr; gap: var(--v8-6); }}
@media (max-width: 639px) {
  #v8 #app .qfoot.qfoot-field { padding-top: var(--v8-8) !important; }
  #v8 #app .qfoot-field .qf-cols { flex-direction: column; gap: var(--v8-5); }
  #v8 #app .qfoot-field .qf-cols a { min-height: 44px; }
  #v8 #app .qfoot-field .qf-field { height: 150px; }
}
