/* Goldline compliance page overrides (server script v4.12.19, brand 1.7). Light and dark follow the
   visitor's system setting; both use Goldline navy (#0F1B2F, #0A1628) and gold (#C4A265). Every text
   pair below is at least 4.5:1 (WCAG AA), checked 17 November 2026. */

/* 1. Hide the software vendor's "Powered by" footer (also removed at build time) */
footer:has(a[aria-label="Probo"]) { display: none !important; }

/* 2. Light: white surfaces, navy text, a darker gold for text (gold #C4A265 is kept for fills).
   navy #0A1628 on #F9F9F8 17.2:1; slate #3D4A5F on #F9F9F8 8.5:1; gold text #7A5C1E on #F9F9F8 5.9:1. */
html:root {
  color-scheme: light;
  --sand-11: #3D4A5F; --sand-12: #0A1628;
  --gold-8: #B08D4F; --gold-9: #C4A265; --gold-10: #B8955A; --gold-11: #7A5C1E; --gold-12: #4A3810;
  --indigo-9: #C4A265; --indigo-10: #B8955A; --indigo-11: #7A5C1E; --indigo-12: #4A3810;
}

/* 3. Dark: the navy palette used since server script v3.5. White on navy 17.2:1; gold on navy 7.2:1;
   #B8C2D3 on #0F1B2F 9.6:1. */
@media (prefers-color-scheme: dark) {
  html:root {
    color-scheme: dark;
    --sand-1: #0A1628; --sand-2: #0F1B2F; --sand-3: #16243B; --sand-4: #1B2B47;
    --sand-5: #223352; --sand-6: #2A3D5E; --sand-7: #354A6E; --sand-8: #44597F;
    --sand-9: #6B7A93; --sand-10: #7D8BA2; --sand-11: #B8C2D3; --sand-12: #FFFFFF;
    --sand-a1: rgba(255,255,255,.01); --sand-a2: rgba(255,255,255,.03); --sand-a3: rgba(255,255,255,.07);
    --sand-a4: rgba(255,255,255,.10); --sand-a5: rgba(255,255,255,.13); --sand-a6: rgba(255,255,255,.17);
    --sand-a7: rgba(255,255,255,.23); --sand-a8: rgba(255,255,255,.33); --sand-a9: rgba(255,255,255,.45);
    --sand-a10: rgba(255,255,255,.52); --sand-a11: rgba(255,255,255,.72); --sand-a12: rgba(255,255,255,.93);
    --gold-1: #0F1B2F; --gold-2: #14213A; --gold-3: rgba(196,162,101,.14); --gold-4: rgba(196,162,101,.20);
    --gold-5: rgba(196,162,101,.28); --gold-6: rgba(196,162,101,.36); --gold-7: rgba(196,162,101,.48);
    --gold-8: #9C8150; --gold-9: #C4A265; --gold-10: #D1B37C; --gold-11: #C4A265; --gold-12: #EADBBE;
    --indigo-9: #C4A265; --indigo-10: #D1B37C; --indigo-11: #C4A265; --indigo-12: #EADBBE;
    --green-11: #4CC38A;
    --lime-9: #C4A265;
  }
}

/* 4. Top bar: gold rule underneath, gold "Request Access" button with navy text (navy on gold 7.5:1) */
#root > div > header { border-bottom: 1px solid rgba(196,162,101,.35); }
#root > div > header .bg-sand-12,
.gl-header-card .bg-sand-12 { background-color: #C4A265 !important; color: #0A1628 !important; }

/* 5. The uploaded logo is the navy square with the white GL (v4.5): show it as it is, no tile */
#root > div > header a img { object-fit: contain; }

/* 6. Brand 1.7 layout: gold rule on the header card, gold initials with navy letters (7.5:1) in both modes,
   green ticks (#218358 on #FDFDFC 4.6:1 in light; #4CC38A on navy 8.2:1 in dark) */
.gl-header-card { border-top: 3px solid #C4A265; }
.gl-initials { background-color: #C4A265 !important; color: #0A1628 !important; }

/* 7. One "Request access" button: on pages with the header card, the card holds it and the top bar's is hidden */
body:has(.gl-header-card) #root > div > header .bg-sand-12 { display: none !important; }
