/* /public/css/brand.css — Oakhearth brand (design system v1)
   Step 1: the Oakhearth oak leaf logo and the new typography.
   Loaded LAST in every page's <head> (just before </head>) so it wins over app.css, mobile.css,
   the page's own <style> and the page-specific studio sheets.
   Fonts: Plus Jakarta Sans for everything; Lora only for life stories, memories and quotes.
   Profile "lettering" choices still apply to the owner's NAME only. */

/* fonts are served from /vendor/fonts (downloaded by get-vendor-files.ps1), no outside requests */
@font-face{font-family:"Plus Jakarta Sans";font-style:normal;font-weight:400;font-display:swap;src:url("../vendor/fonts/plus-jakarta-sans-v12-latin_latin-ext-regular.woff2") format("woff2")}
@font-face{font-family:"Plus Jakarta Sans";font-style:normal;font-weight:500;font-display:swap;src:url("../vendor/fonts/plus-jakarta-sans-v12-latin_latin-ext-500.woff2") format("woff2")}
@font-face{font-family:"Plus Jakarta Sans";font-style:normal;font-weight:600;font-display:swap;src:url("../vendor/fonts/plus-jakarta-sans-v12-latin_latin-ext-600.woff2") format("woff2")}
@font-face{font-family:"Plus Jakarta Sans";font-style:normal;font-weight:700;font-display:swap;src:url("../vendor/fonts/plus-jakarta-sans-v12-latin_latin-ext-700.woff2") format("woff2")}
@font-face{font-family:"Plus Jakarta Sans";font-style:normal;font-weight:800;font-display:swap;src:url("../vendor/fonts/plus-jakarta-sans-v12-latin_latin-ext-800.woff2") format("woff2")}
@font-face{font-family:"Plus Jakarta Sans";font-style:italic;font-weight:400;font-display:swap;src:url("../vendor/fonts/plus-jakarta-sans-v12-latin_latin-ext-italic.woff2") format("woff2")}
@font-face{font-family:"Plus Jakarta Sans";font-style:italic;font-weight:500;font-display:swap;src:url("../vendor/fonts/plus-jakarta-sans-v12-latin_latin-ext-500italic.woff2") format("woff2")}
@font-face{font-family:"Plus Jakarta Sans";font-style:italic;font-weight:700;font-display:swap;src:url("../vendor/fonts/plus-jakarta-sans-v12-latin_latin-ext-700italic.woff2") format("woff2")}
@font-face{font-family:"Lora";font-style:normal;font-weight:400;font-display:swap;src:url("../vendor/fonts/lora-v37-latin_latin-ext-regular.woff2") format("woff2")}
@font-face{font-family:"Lora";font-style:normal;font-weight:500;font-display:swap;src:url("../vendor/fonts/lora-v37-latin_latin-ext-500.woff2") format("woff2")}
@font-face{font-family:"Lora";font-style:normal;font-weight:600;font-display:swap;src:url("../vendor/fonts/lora-v37-latin_latin-ext-600.woff2") format("woff2")}
@font-face{font-family:"Lora";font-style:normal;font-weight:700;font-display:swap;src:url("../vendor/fonts/lora-v37-latin_latin-ext-700.woff2") format("woff2")}
@font-face{font-family:"Lora";font-style:italic;font-weight:400;font-display:swap;src:url("../vendor/fonts/lora-v37-latin_latin-ext-italic.woff2") format("woff2")}
@font-face{font-family:"Lora";font-style:italic;font-weight:700;font-display:swap;src:url("../vendor/fonts/lora-v37-latin_latin-ext-700italic.woff2") format("woff2")}

:root{
  --fp-sans:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --fp-serif:Lora,Georgia,"Times New Roman",serif;
  /* Bootstrap / AdminKit read these */
  --bs-font-sans-serif:var(--fp-sans);
  --bs-body-font-family:var(--fp-sans);
  --bs-body-font-size:1.0625rem;   /* body 17px (was 14px) */
  --bs-body-line-height:1.53;      /* 26px */
  --bs-body-font-weight:400;
}


/* ------------------------------------------------------------------ the shared palette (design system tokens)
   Every page's own color variables (--hm-card, --ct-ink, --gl-line, …) now point at these.
   Change a color here and the whole site follows. Profile accents and event-kind colors stay separate. */
:root{
  --fp-surface:#f8f7f4;--fp-card:#ffffff;--fp-sunken:#f0eee9;--fp-line:#e4e0d8;--fp-line-strong:#8a8494;
  --fp-ink:#1d1a22;--fp-muted:#5b5562;--fp-faint:#8a8494;
  --fp-violet:#5b35c4;--fp-violet-strong:#3d1f8f;--fp-violet-soft:#ece6fb;--fp-on-violet:#ffffff;
  --fp-gold:#e9b949;--fp-on-gold:#2a1d00;--fp-success:#1d7a52;--fp-danger:#c2412d;
  --fp-brand:#5b35c4;--fp-brand-strong:#3d1f8f; /* Portal Violet that stays the same in dark mode (page accents used as fills) */
}
html.theme-dark{
  --fp-surface:#17161a;--fp-card:#222026;--fp-sunken:#121114;--fp-line:#36333c;--fp-line-strong:#77717f;
  --fp-ink:#f1eef5;--fp-muted:#b9b3c2;--fp-faint:#77717f;
  --fp-violet:#a48bff;--fp-violet-strong:#c9b8ff;--fp-violet-soft:#2c2445;--fp-on-violet:#160c33;
  --fp-gold:#f0c75e;--fp-success:#4cc28a;--fp-danger:#f07a63;
}

/* ------------------------------------------------------------------ the type scale */
html body,body :is(h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6,p,input,select,textarea,button,.btn,.form-control,.form-select,.dropdown-menu,.modal,.tooltip,.popover,.toast){font-family:var(--fp-sans)}
body{font-size:17px;line-height:26px;font-weight:400;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}

/* display 48 · title 32 · heading 22 — headings are 700–800 */
.fp-display,.display-1,.display-2,.display-3{font-size:48px;line-height:52px;font-weight:800;letter-spacing:-.02em}
h1,.h1{font-size:32px;line-height:38px;font-weight:800;letter-spacing:-.01em}
h2,.h2{font-size:26px;line-height:32px;font-weight:800;letter-spacing:-.01em}
h3,.h3{font-size:22px;line-height:28px;font-weight:700}
h4,.h4{font-size:19px;line-height:26px;font-weight:700}
h5,.h5,h6,.h6,.card-title,.modal-title{font-size:17px;line-height:24px;font-weight:700}
/* the page title in the top bar */
.navbar h3{font-size:22px;line-height:28px;font-weight:800}

/* body-lg 19 · body 17 · label 15 · caption 14 · overline 12 */
.lead,.fp-body-lg{font-size:19px;line-height:28px;font-weight:500}
.btn,.form-label,.nav-tabs .nav-link,.fp-label{font-size:15px;line-height:20px;font-weight:700}
.btn-sm{font-size:14px}
.btn-lg{font-size:17px}
.form-control,.form-select{font-size:17px}
small,.small,.form-text,.text-muted.small,.fp-caption{font-size:14px;line-height:20px}
.sidebar-header,.fp-overline{font-size:12px;line-height:16px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.sidebar-link,a.sidebar-link{font-size:15px;font-weight:600}
b,strong{font-weight:700}

/* ------------------------------------------------------------------ Lora: stories, memories and quotes only */
blockquote,.blockquote,.fp-story,.fp-quote{font-family:var(--fp-serif)}
.fp-story{font-size:20px;line-height:34px}
.fp-quote,blockquote p,.blockquote p{font-family:var(--fp-serif);font-size:24px;line-height:34px;font-style:italic}

/* person page (ancestor-story.css): prose stays in Lora; headings, chips, map labels move to the sans */
.as{--as-head-font:var(--fp-sans)!important;--as-name-font:var(--fp-sans);--as-read:var(--fp-serif)}
.as :is(.as-dates small,.as-prose .as-ask,.as-chip,.as-kicker,.as-ch-n){font-family:var(--fp-sans)}
.as .as-pol span{font-family:var(--fp-sans);font-size:14px;font-weight:600}
.as :is(.sm-lab,.as-jy-lab,.as-jy-sub){font-family:var(--fp-sans)}

/* gallery (gallery-studio.css): the storybook serif titles become the sans */
:is(.gh-title,.gs-family,.gs-pb-name,.gs-prompts-h h3){font-family:var(--fp-sans)!important;letter-spacing:-.01em}

/* profile (profile-studio.css): lettering choices apply to the owner's name only */
[class*="pr-font-"] :is(.ap-card-h h3,.pr-motto),
:is(.ap-card-h h3,.pr-line,.pr-motto){font-family:var(--fp-sans)!important}
.pr-font-handwritten .ap-card-h h3{font-size:1.1rem!important;font-weight:800!important}

/* ------------------------------------------------------------------ the logo in the side menu */
.sidebar-brand{padding:1.25rem 1.5rem 1rem}
.sidebar-brand:hover{text-decoration:none}
.fp-brand{display:flex;align-items:center;gap:12px;color:#fff}
.fp-brand-mark{width:44px;height:auto;aspect-ratio:173/187;flex:none;display:block}
.fp-brand-word{font-family:var(--fp-serif);font-weight:600;font-size:27px;line-height:1;letter-spacing:-.01em;color:#fff}
/* the leaf drifts into place once when a page opens, swinging on its stem (never with Calm screen or reduced motion) */
@keyframes fpLeafIn{from{opacity:0;transform:translateY(-8px) rotate(-22deg)}60%{opacity:1;transform:rotate(5deg)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:no-preference){
  html:not(.fp-calm) .fp-brand-mark{transform-origin:3% 97%;animation:fpLeafIn .9s cubic-bezier(.2,.7,.2,1) backwards .1s}
}

/* the Oakhearth name on the sign-in, privacy and password pages: the wordmark's Lora SemiBold */
.au-title,.sa-top b{font-family:var(--fp-serif)!important;font-weight:600!important;letter-spacing:-.01em!important;color:#3d1f8f}

/* ------------------------------------------------------------------ fit fixes for the larger body text */
.fp-search-watermark{font-size:15px;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:calc(100% - 32px)}
.fp-search-input{font-size:16px}

/* ------------------------------------------------------------------ step 2: Portal Violet + one set of neutrals
   Hard-coded colors across the site were moved onto the design system palette:
   violet #5b35c4 · violet-strong #3d1f8f · violet-soft #ece6fb (dark #2c2445) · dark violet #a48bff
   light: surface #f8f7f4 · card #fff · sunken #f0eee9 · line #e4e0d8 · ink #1d1a22 · muted #5b5562
   dark:  surface #17161a · card #222026 · line #36333c · ink #f1eef5 · muted #b9b3c2
   These rules cover what the variables alone can't reach (Bootstrap from the CDN, AdminKit's buttons). */
:root{
  --bs-primary:#5b35c4;--bs-primary-rgb:91,53,196;
  --bs-link-color:#5b35c4;--bs-link-color-rgb:91,53,196;--bs-link-hover-color:#3d1f8f;--bs-link-hover-color-rgb:61,31,143;
  --bs-body-bg:#f8f7f4;--bs-body-color:#1d1a22;--bs-emphasis-color:#1d1a22;
  --bs-secondary-color:#5b5562;--bs-border-color:#e4e0d8;
  --bs-focus-ring-color:rgba(91,53,196,.3);
}
html.theme-dark{--bs-body-bg:#17161a;--bs-body-color:#f1eef5;--bs-emphasis-color:#f1eef5;--bs-secondary-color:#b9b3c2;--bs-border-color:#36333c;--bs-link-color:#a48bff;--bs-link-hover-color:#c9b8ff}
html:not(.theme-dark) :is(.sidebar,.sidebar-content){background:#5b35c4}
.btn-primary{--bs-btn-bg:#5b35c4;--bs-btn-border-color:#5b35c4;--bs-btn-hover-bg:#3d1f8f;--bs-btn-hover-border-color:#3d1f8f;--bs-btn-active-bg:#3d1f8f;--bs-btn-active-border-color:#3d1f8f;--bs-btn-disabled-bg:#5b35c4;--bs-btn-disabled-border-color:#5b35c4;background-color:#5b35c4;border-color:#5b35c4;color:#fff}
.btn-primary:is(:hover,:focus-visible,:active,.active){background-color:#3d1f8f;border-color:#3d1f8f;color:#fff}
.btn-outline-primary{--bs-btn-color:#5b35c4;--bs-btn-border-color:#5b35c4;--bs-btn-hover-bg:#5b35c4;--bs-btn-hover-border-color:#5b35c4;--bs-btn-active-bg:#3d1f8f}
html.theme-dark .btn-outline-primary{color:#c9b8ff;border-color:#a48bff}
html.theme-dark .btn-outline-primary:hover{background:#5b35c4;border-color:#5b35c4;color:#fff}
.form-check-input:checked{background-color:#5b35c4;border-color:#5b35c4}
.form-control:focus,.form-select:focus,.form-check-input:focus{border-color:#a48bff;box-shadow:0 0 0 .2rem rgba(91,53,196,.25)}
.text-primary{color:#5b35c4!important}
html.theme-dark .text-primary{color:#a48bff!important}
.bg-primary{background-color:#5b35c4!important}
.border-primary{border-color:#5b35c4!important}
a{color:var(--bs-link-color)}
::selection{background:#ece6fb;color:#1d1a22}

/* ------------------------------------------------------------------ step 3: Feather icons in place of emoji (js/brand-icons.js) */
.fp-emi{display:inline-flex;align-items:center;justify-content:center;flex:none;vertical-align:-.18em;margin-right:.45em;line-height:1}
.fp-emi svg{width:1.1em;height:1.1em;stroke-width:2}
.fp-emi-only .fp-emi{margin-right:0}
:is(h1,h2,h3,.h1,.h2,.h3) .fp-emi svg{width:.95em;height:.95em;stroke-width:2.25}

/* ------------------------------------------------------------------ step 4: one set of shapes
   Corners come from four sizes only: 8px small marks · 12px rows, inputs, menus, popovers · 20px cards & panels · 28px page headers.
   Buttons are always pills. Circles (avatars) and pills stay as they are. */
.btn,.btn-sm,.btn-lg{--bs-btn-border-radius:999px;--bs-btn-border-radius-sm:999px;--bs-btn-border-radius-lg:999px;border-radius:999px}
.btn-link{border-radius:12px}
.btn-group>.btn:not(:first-child),.btn-group>.btn-group:not(:first-child)>.btn{border-top-left-radius:0;border-bottom-left-radius:0}
.btn-group>.btn:not(:last-child):not(.dropdown-toggle),.btn-group>.btn-group:not(:last-child)>.btn{border-top-right-radius:0;border-bottom-right-radius:0}
.card{--bs-card-border-radius:20px;--bs-card-inner-border-radius:19px;border-radius:20px}
.card>.card-header:first-child{border-radius:19px 19px 0 0}
.card>.card-footer:last-child{border-radius:0 0 19px 19px}
.form-control,.form-select,.input-group-text{border-radius:12px}
.input-group>:not(:first-child):not(.dropdown-menu){border-top-left-radius:0;border-bottom-left-radius:0}
.input-group>:not(:last-child):not(.dropdown-menu):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}
.dropdown-menu,.popover,.toast,.alert,.list-group{border-radius:12px}
.modal-content{--bs-modal-border-radius:20px;border-radius:20px}
.modal-header{border-top-left-radius:19px;border-top-right-radius:19px}
.modal-footer{border-bottom-left-radius:19px;border-bottom-right-radius:19px}
.badge{border-radius:999px}
.progress{border-radius:999px}
.img-thumbnail{border-radius:12px}

/* ------------------------------------------------------------------ step 5: dark mode, soft lavender fills
   In dark mode, solid Portal Violet fills (buttons, selected tabs, today's date, badges, page headers) turn a soft
   lavender with deep-plum text, so they glow less on a dark page. The side menu stays deep violet.
   Profile accents and family-name themes keep the colors their owners chose.
   (Selectors below were collected from every page and script that fills with violet and writes in white.) */
html.theme-dark{--fp-fill:#a48bff;--fp-fill-hover:#c9b8ff;--fp-on-fill:#160c33}
html.theme-dark .btn-primary{--bs-btn-bg:#a48bff;--bs-btn-border-color:#a48bff;--bs-btn-color:#160c33;--bs-btn-hover-bg:#c9b8ff;--bs-btn-hover-border-color:#c9b8ff;--bs-btn-hover-color:#160c33;--bs-btn-active-bg:#c9b8ff;--bs-btn-active-color:#160c33;background-color:#a48bff;border-color:#a48bff;color:#160c33}
html.theme-dark .btn-primary:is(:hover,:focus-visible,:active,.active){background-color:#c9b8ff;border-color:#c9b8ff;color:#160c33}
html.theme-dark .btn-outline-primary:hover{background:#a48bff;border-color:#a48bff;color:#160c33}
html.theme-dark :is(.bg-primary,.badge.bg-primary,.form-check-input:checked){background-color:#a48bff!important;border-color:#a48bff!important}
html.theme-dark .bg-primary{color:#160c33!important}
html.theme-dark .fpa-tab.on,
html.theme-dark .fpa-chip.on,
html.theme-dark .cs-tab.on,
html.theme-dark .cs-dot[aria-current="step"],
html.theme-dark .in-letters button.active,
html.theme-dark .in-badge.is-you,
html.theme-dark .gl-tabs button.active,
html.theme-dark .gv-label .gv-num,
html.theme-dark .gv-label.is-lit,
html.theme-dark .gv-pad-go,
html.theme-dark .gv-row-n,
html.theme-dark .gv-sure-b[aria-checked="true"],
html.theme-dark .hm-when.is-today,
html.theme-dark span.hm-when.is-today,
html.theme-dark .im-view[aria-pressed="true"],
html.theme-dark .au-letter-ic,
html.theme-dark .au-tabs .nav-link.active,
html.theme-dark .au-btn,
html.theme-dark .modal-footer .btn,
html.theme-dark .rg-step h3::before,
html.theme-dark .ct-pill.on,
html.theme-dark .ct-cell.is-today .ct-num,
html.theme-dark .ct-rel,
html.theme-dark .ct-up-d.is-today,
html.theme-dark .ct-ag-day.is-today .ct-ag-date,
html.theme-dark .ap-pill.is-rel,
html.theme-dark .ap-tab[aria-selected="true"],
html.theme-dark .dc-type.active,
html.theme-dark .fm-tag.is-mine,
html.theme-dark .fm-tabs button.active,
html.theme-dark .qb-mode.is-on,
html.theme-dark .qb-chip.is-on,
html.theme-dark .qb-pill input:checked+span,
html.theme-dark .sa-btn,
html.theme-dark .ft-tabs button.active,
html.theme-dark .ft-orient button.active,
html.theme-dark .ped-tg,
html.theme-dark .ped-fam-tag,
html.theme-dark .ft-help[aria-expanded="true"],
html.theme-dark .fp-ribbon,
html.theme-dark .ft-pills button[aria-pressed="true"],
html.theme-dark .ft-time-play,
html.theme-dark .ft-ck-quest,
html.theme-dark #ftMiniBtn[aria-pressed="true"],
html.theme-dark .fv-kinds button[aria-pressed="true"],
html.theme-dark .ct-jump a.on,
html.theme-dark .ct-badge,
html.theme-dark .ct-miniseg button.on,
html.theme-dark .ct-block-h .cnt,
html.theme-dark .tl-play.on,
html.theme-dark .tl-play[aria-pressed="true"],
html.theme-dark .tl-lives-guide span,
html.theme-dark .gs-pb-rel,
html.theme-dark .gs-chip.is-on,
html.theme-dark .list-group-item.active,
html.theme-dark .btn-primary,
html.theme-dark .btn-primary.disabled,
html.theme-dark .btn-primary:disabled,
html.theme-dark .btn-check:checked+.btn-outline-primary,
html.theme-dark .btn-outline-primary.active,
html.theme-dark .btn-outline-primary.dropdown-toggle.show,
html.theme-dark .,
html.theme-dark .dropdown-item.active,
html.theme-dark .dropdown-menu-dark .dropdown-item.active,
html.theme-dark .nav-link,
html.theme-dark .nav-item .indicator,
html.theme-dark .flatpickr-calendar.inline .flatpickr-day.selected,
html.theme-dark .flatpickr-calendar.inline .flatpickr-day.selected:focus,
html.theme-dark .flatpickr-calendar.inline .flatpickr-day.,
html.theme-dark .fp-switch[aria-checked="true"],
html.theme-dark .fp-a11y-seg button[aria-checked="true"],
html.theme-dark .ach-tab[aria-pressed="true"],
html.theme-dark .gl-btn,
html.theme-dark .hn-chip.on,
html.theme-dark .hn-more,
html.theme-dark .dp-btn,
html.theme-dark .dp-view button[aria-pressed="true"],
html.theme-dark .mk-steps li.now,
html.theme-dark .wz-steps .now button span,
html.theme-dark .ed-nav-btn[aria-current="true"],
html.theme-dark .fp-invite-btn,
html.theme-dark .fp-inv-b.is-main,
html.theme-dark .on-cta,
html.theme-dark .pw-go,
html.theme-dark .fp-idle-stay,
html.theme-dark " + ".fp-ig-btn,
html.theme-dark #fpGate button,
html.theme-dark .vc-play,
html.theme-dark .vc-rec-btn{background:#a48bff!important;border-color:#a48bff!important;color:#160c33!important}
html.theme-dark .gv-label:hover,
html.theme-dark .gv-pad-go:hover,
html.theme-dark .gv-fine[aria-pressed="true"],
html.theme-dark #glApp .btn-outline-primary:hover,
html.theme-dark .gl-viewer .btn-outline-primary:hover,
html.theme-dark .hm-spot .btn-outline-primary:hover,
html.theme-dark .sa-btn:hover,
html.theme-dark #ftApp .btn-outline-primary:hover,
html.theme-dark .ft-ck-quest:hover,
html.theme-dark .gs-prompt-btn:hover,
html.theme-dark .btn-primary.dropdown-toggle,
html.theme-dark .btn-outline-primary:hover,
html.theme-dark .btn-check:active+.btn-outline-primary,
html.theme-dark .dropdown-item:active,
html.theme-dark .dropdown-menu-dark .dropdown-item:active,
html.theme-dark .list-group-item-primary.list-group-item-action.active,
html.theme-dark .fp-skip,
html.theme-dark .fp-upd,
html.theme-dark .pw-go:hover{background:#c9b8ff!important;border-color:#c9b8ff!important;color:#160c33!important}
html.theme-dark .fm-hero,
html.theme-dark .qb-mark,
html.theme-dark .hn-share-big,
html.theme-dark .gtv-hero,
html.theme-dark .ss-theme{background:linear-gradient(135deg,#a48bff 0%,#c9b8ff 100%)!important;color:#160c33!important}
html.theme-dark :is(.btn-primary) svg{color:inherit}
html.theme-dark .ct-block.is-today .ct-block-h{background:#a48bff!important}
html.theme-dark :is(.ct-block.is-today .ct-block-h :is(.dow,.num,.mon),.gtv-hero h3,.list-group-item.active span,.list-group-item.active .text-muted,.wz-steps .now button span,.fp-upd b,.fp-upd span,.fp-upd .later){color:#160c33!important}
/* Family spotlight (Dashboard): the name sits on a dark shade over the photo, so it stays white in dark mode */
html.theme-dark .hm-spot .hm-spot-over{background:linear-gradient(0deg,rgba(18,10,40,.92),rgba(18,10,40,.6) 55%,rgba(18,10,40,0))!important}
html.theme-dark .hm-spot .hm-spot-over :is(.hm-spot-name){color:#fff!important}
html.theme-dark .hm-spot .hm-spot-over :is(.hm-spot-years){color:rgba(255,255,255,.92)!important}
html.theme-dark :is(.fm-hero,.gtv-hero,.qb-mark,.hn-share-big,.ss-theme) :is(h1,h2,h3,h4,h5,p,span,small,b,strong,i,label):not(.btn *){color:#160c33!important}

/* ------------------------------------------------------------------ the loading screen: the oak leaf sways on its stem
   (every page's #pageLoader; the old spinner element becomes the logo). A still logo for Calm screen / reduced motion. */
#pageLoader{background:rgba(23,22,26,.45);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
#pageLoader .loader-card{width:min(380px,calc(100vw - 32px));background:#fff;color:#1d1a22;border:1px solid #e4e0d8;border-radius:20px;padding:28px 24px 24px;box-shadow:0 16px 40px rgba(29,26,34,.16);text-align:center}
#pageLoader .loader-top{flex-direction:column;gap:14px}
#pageLoader .spinner{width:72px;height:72px;border:0;border-radius:0;animation:none;background:url("../img/brand/oak-loader.svg") center/contain no-repeat}
#pageLoader .status-title{font-family:var(--fp-sans);font-size:19px;line-height:26px;font-weight:800;color:#1d1a22}
#pageLoader .status-sub{font-family:var(--fp-sans);font-size:15px;line-height:22px;color:#5b5562;margin-top:4px}
#pageLoader.is-success .spinner{background-image:url("../img/brand/oak-leaf.svg")}
html.theme-dark #pageLoader{background:rgba(0,0,0,.55)}
html.theme-dark #pageLoader .loader-card{background:#222026;border-color:#36333c;color:#f1eef5;box-shadow:0 16px 40px rgba(0,0,0,.6)}
html.theme-dark #pageLoader .status-title{color:#f1eef5}
html.theme-dark #pageLoader .status-sub{color:#b9b3c2}
html.theme-dark #pageLoader .spinner{background-image:url("../img/brand/oak-loader-dark.svg")}
html.theme-dark #pageLoader.is-success .spinner{background-image:url("../img/brand/oak-leaf-dark.svg")}
@media (prefers-reduced-motion:reduce){#pageLoader .spinner{background-image:url("../img/brand/oak-leaf.svg")}html.theme-dark #pageLoader .spinner{background-image:url("../img/brand/oak-leaf-dark.svg")}}
html.fp-calm #pageLoader .spinner{background-image:url("../img/brand/oak-leaf.svg")}
html.fp-calm.theme-dark #pageLoader .spinner{background-image:url("../img/brand/oak-leaf-dark.svg")}

/* ------------------------------------------------------------------ accessibility fixes (audit, v1.27) */
.navbar h3,.navbar .h3{color:var(--fp-muted)!important}
.fp-search-watermark{color:var(--fp-muted)!important}
html.theme-dark .btn-primary,html.theme-dark .btn-primary:is(:hover,:focus-visible,:active,.active){color:#160c33!important}
html.theme-dark .btn-primary .fp-emi,html.theme-dark .btn-primary svg{color:#160c33}
/* pages without a dark mode (sign-in, privacy, reset password) keep the light link color */
html.theme-dark:not(:has(#appShell)){--bs-link-color:#5b35c4;--bs-link-hover-color:#3d1f8f;--bs-link-color-rgb:91,53,196}
