/* ==========================================================================
   The system's own look (one code, two systems — docs/INSTANCES.md; Peter, 17 Nov 2026: "nowy login screen i
   kolorystyka pasująca do ich brandu"). feos:instance-brand puts <html class="feos-instance-<key>"> on every page of a
   system other than FEOS; FEOS has no such class and looks exactly as before.

   PAL System — ProActivLife Visual Identity Guide (Nov 2026; Resources/marketing/brand-kits.json PAL): Deep Navy
   #16273B (the darkest colour, never black), Navy Dark #0F1C2C, Soft Gold #C9A24B (lines and graphics, never text on a
   light background), Deep Gold #A07E32 (large text only), Claret #9E1B1B (rare accent), Warm Ivory #F7F4EF,
   Ivory Pale #F0EDE7, Slate #3A4654, Stone #8A93A0; Archivo (self-hosted, SIL Open Font License — fonts/OFL-Archivo.txt).
   ========================================================================== */
@font-face { font-family: 'Archivo'; font-weight: 400; font-style: normal; font-display: swap;
    src: url('../fonts/archivo-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; font-weight: 400; font-style: normal; font-display: swap;
    src: url('../fonts/archivo-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-weight: 500; font-style: normal; font-display: swap;
    src: url('../fonts/archivo-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; font-weight: 500; font-style: normal; font-display: swap;
    src: url('../fonts/archivo-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-weight: 700; font-style: normal; font-display: swap;
    src: url('../fonts/archivo-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; font-weight: 700; font-style: normal; font-display: swap;
    src: url('../fonts/archivo-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-weight: 800; font-style: normal; font-display: swap;
    src: url('../fonts/archivo-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; font-weight: 800; font-style: normal; font-display: swap;
    src: url('../fonts/archivo-latin-ext-800-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

html.feos-instance-pal {
    --feos-ink: #16273B;
    --feos-ink-2: #0F1C2C;
    --feos-accent: #16273B;
    --feos-accent-dark: #0F1C2C;
    --feos-accent-soft: #F0EDE7;
    --feos-sky: #C9A24B;
    --feos-canvas: #F7F4EF;
    --feos-line: #E4DED3;
    --feos-muted: #3A4654;
    --pal-gold: #C9A24B;
    --pal-gold-deep: #A07E32;
    --pal-claret: #9E1B1B;
    --pal-stone: #8A93A0;

    --font-family: 'Archivo', 'Hanken Grotesk', Arial, sans-serif;
    --body-bg: #F7F4EF;
    --brand-primary: #16273B;
    --brand-primary-5: #13223A;
    --brand-primary-10: #0F1C2C;
    --brand-primary-lighten-10: #2A3E57;
    --brand-primary-lighten-30: #C8CED6;
    --state-primary-bg: #F0EDE7;
    --state-primary-text: #16273B;
    --state-primary-border: #E4DED3;
    --btn-primary-bg: #16273B;
    --btn-primary-border: #16273B;
    --btn-primary-color: #ffffff;
    --btn-primary-hover-bg: #0F1C2C;
    --btn-primary-hover-border: #0F1C2C;
    --btn-primary-active-bg: #0F1C2C;
    --btn-primary-active-border: #0F1C2C;
    --link-color: #16273B;
    --link-hover-color: #0F1C2C;
    --text-color: #16273B;

    --navbar-bg: #16273B;
    --navbar-inverse-bg: #16273B;
    --navbar-inverse-bg-7: #0F1C2C;
    --navbar-inverse-border: #16273B;
    --navbar-inverse-link-color: #F7F4EF;
    --navbar-inverse-link-hover-color: #ffffff;
    --navbar-inverse-link-hover-bg: #0F1C2C;
    --navbar-inverse-link-active-bg: #0F1C2C;
    --navbar-inverse-link-icon-color: #C9A24B;
    --navbar-inverse-toggle-hover-bg: #0F1C2C;
    --navbar-inverse-color: #E4DED3;
    --navbar-link-color: #F7F4EF;
    --navbar-link-icon-color: #C9A24B;
    --navbar-link-hover-color: #ffffff;
    --navbar-link-hover-bg: #0F1C2C;
    --navbar-link-active-bg: #0F1C2C;
}

/* headings in Archivo's heavy weights, as the guide asks; the gold only as a line */
html.feos-instance-pal h1, html.feos-instance-pal h2, html.feos-instance-pal .page-header h3,
html.feos-instance-pal .header-title { font-weight: 800; letter-spacing: -.005em; color: #16273B; }
html.feos-instance-pal #navbar .tabs > li.active > a,
html.feos-instance-pal #navbar .tabs > li > a:focus { box-shadow: inset 0 -3px 0 #C9A24B; }
html.feos-instance-pal .nav-tabs > li.active > a,
html.feos-instance-pal .nav-tabs > li.active > a:hover,
html.feos-instance-pal .nav-tabs > li.active > a:focus { box-shadow: inset 0 -3px 0 #C9A24B; }
html.feos-instance-pal .panel { border-color: #E4DED3; }
html.feos-instance-pal .btn-primary:focus { box-shadow: 0 0 0 3px rgba(201,162,75,.45); }
html.feos-instance-pal .form-control:focus { border-color: #C9A24B; box-shadow: 0 0 0 3px rgba(201,162,75,.25); }

/* ---- PAL sign-in: navy with the gold lights, the white logo, an ivory card with a gold line --------------- */
html.feos-instance-pal body:has(.feos-login) { background: #0F1C2C; }
html.feos-instance-pal .feos-login { background: #0F1C2C url("../img/brands/pal/portal-bg.webp") center / cover no-repeat; }
html.feos-instance-pal .feos-login::before { background: linear-gradient(90deg, rgba(15,28,44,.80) 0%, rgba(15,28,44,.35) 55%,
    rgba(15,28,44,.55) 100%); }
html.feos-instance-pal .feos-login-logo { width: min(400px, 80%); margin-bottom: 30px; }
html.feos-instance-pal .feos-login-kicker { color: #C9A24B; letter-spacing: .28em; font-weight: 800; }
html.feos-instance-pal .feos-login-slogan { color: #F7F4EF; font-style: normal; font-weight: 500; font-size: 22px; }
html.feos-instance-pal .feos-login-hero-inner::after { content: ""; display: block; width: 72px; height: 3px;
    background: #C9A24B; margin-top: 28px; border-radius: 2px; }
html.feos-instance-pal .feos-login-card { background: rgba(247,244,239,.97); border-top: 4px solid #C9A24B; }
html.feos-instance-pal .feos-login-card h2 { font-weight: 800; color: #16273B; }
html.feos-instance-pal .feos-login-sub, html.feos-instance-pal .feos-login-help { color: #3A4654; }
html.feos-instance-pal .feos-login-help a { color: #16273B; text-decoration: underline; }
html.feos-instance-pal .feos-login-actions .btn-primary { background: #16273B; border-color: #16273B; }
html.feos-instance-pal .feos-login-actions .btn-primary:hover { background: #0F1C2C; border-color: #0F1C2C; }
html.feos-instance-pal .feos-login-start { color: #3A4654; }
html.feos-instance-pal .feos-login-start { background: #F0EDE7; color: #3A4654; border-left: 3px solid #C9A24B; }
html.feos-instance-pal .feos-login-start .fas { color: #A07E32; }

/* behind the app: ProActivLife's emblem in place of FEP's tree (Peter, 17 Nov 2026) — same place and size as feos.css */
html.feos-instance-pal body { background-image: url("../img/brands/pal/watermark.png"); }
