/* © 2026 Finfident PTY LTD (ABN 94 679 280 801). Confidential.
   31 Oct 2026 – Finfident Hub look: ties the abstract backgrounds (ff-backgrounds.css) into the portals' own styles.
   Load AFTER ff-theme.css / ff-app.css / staff-m.css and BEFORE ff-ios-stability.css (which is always last).
   Body classes are set by the page scripts:
     staff (web + phone)  body.ff-bg-mist, header/hero .ff-hero-tide
     client               body.ff-bg-dawn, home hero .ff-hero-tide
     partner              body.ff-bg-mist, home hero .ff-hero-navy
     app sign-in/offline  body.ff-bg-tide (the full-screen sign-in uses the tide image)
   Dark mode keeps its dark page: the light images fade to a hint (ff-theme.css sets the dark opacity). */

/* page backgrounds: keep the theme's page colour (so dark mode stays dark), swap the silk for the image */
body.ff-bg-mist, body.ff-bg-dawn { background-color: var(--page, #f3f7f6); }
body.ff-bg-mist::before, body.ff-bg-dawn::before, body.ff-bg-tide::before {
  opacity: 1; background-size: cover; background-position: center top; background-repeat: no-repeat;
}
body.ff-bg-mist::before { background-image: url("/img/bg/ff-mist-light.webp"); }
body.ff-bg-dawn::before { background-image: url("/img/bg/ff-dawn-light.webp"); }

/* hero bands: dark image + a soft shade so white text stays well above 4.5:1 */
#hero.ff-hero-tide, #hero.ff-hero-navy, .top.ff-hero-tide {
  background-size: cover !important; background-position: center 35% !important; background-repeat: no-repeat !important; color: #fff !important;
}
#hero.ff-hero-tide, .top.ff-hero-tide { background-color: #0e3a3f !important; background-image: linear-gradient(180deg, rgba(8, 36, 40, .30), rgba(8, 36, 40, .55)), url("/img/bg/ff-tide-dark.webp") !important; }
#hero.ff-hero-navy { background-color: #1c3c6e !important; background-image: linear-gradient(180deg, rgba(10, 26, 52, .25), rgba(10, 26, 52, .55)), url("/img/bg/ff-dusk-navy.webp") !important; }
#hero.ff-hero-tide::before, #hero.ff-hero-navy::before, #hero.ff-hero-tide::after, #hero.ff-hero-navy::after,
.top.ff-hero-tide::after { background: none !important; opacity: 0 !important; }
#hero.ff-hero-tide h1, #hero.ff-hero-navy h1 { color: #fff !important; }
#hero.ff-hero-tide h1 em, #hero.ff-hero-navy h1 em { background-image: linear-gradient(90deg, #ffc2c3, #ff8a8c) !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; }
#hero.ff-hero-tide .lede, #hero.ff-hero-navy .lede, #hero.ff-hero-tide .hero-in > div > p, #hero.ff-hero-navy .hero-in > div > p { color: #e2f1ee !important; }
#hero.ff-hero-tide .kicker { color: #9fe0d6 !important; }
#hero.ff-hero-navy .kicker { color: #ffc2c3 !important; }
#hero.ff-hero-tide .hero-stats span, #hero.ff-hero-navy .hero-stats span { background: rgba(255, 255, 255, .12) !important; color: #fff !important; border-color: rgba(255, 255, 255, .2) !important; }
#hero.ff-hero-tide .btn-ghost, #hero.ff-hero-navy .btn-ghost { background: rgba(255, 255, 255, .12) !important; color: #fff !important; border-color: rgba(255, 255, 255, .55) !important; }

/* phone app: the full-screen sign-in / splash uses the tide image */
html.ff-app body.ff-bg-tide .ffsi, html.ff-app .ffsi {
  background: linear-gradient(170deg, rgba(8, 42, 46, .55) 0%, rgba(14, 58, 63, .35) 45%, rgba(8, 42, 46, .7) 100%), #0e3a3f url("/img/bg/ff-tide-dark.webp") center 30% / cover no-repeat;
}
html.ff-app .ffsi::before { opacity: 0; }
html.ff-app body.ff-bg-tide { background-color: #0e3a3f; }

/* cards on the light backgrounds: solid where text is dense (default), frosted where asked */
body.ff-bg-mist .ff-glass, body.ff-bg-dawn .ff-glass { color: var(--ink, #0b1f3a); }
:root[data-theme="dark"] .ff-glass { background: rgba(17, 41, 44, .88); border-color: rgba(255, 255, 255, .08); }

/* 1 Nov 2026: staff portal title bar stays put while you scroll. .ff-hero-tide (ff-backgrounds.css) sets
   position:relative, which was overriding staff.css's fixed header, so only the quick-links bar stayed. */
header.top.ff-hero-tide { position: fixed !important; inset: 0 0 auto 0 !important; z-index: 50 !important; }
/* 1 Nov 2026: on the web (not the app) the hero is dark since 31 Oct, but ff-theme.css made the chip values dark text: keep them white */
#hero.ff-hero-tide .hero-stats b, #hero.ff-hero-navy .hero-stats b { color: #fff !important; }
