/* Apex Benefits: the bundled client theme (AP1, 2026-10-29; cdt.identity.client_themes "apex").
   Loaded last, only on the pages of a client whose brand record names "apex", and only on the client app and its
   sign-in page (never /console). Every rule is under body.client-theme-apex. It follows the Apex deck reference
   (docs/orchestration/2026-10-29-forecast-pricing-meeting/private/apex-demo/deck-reference-apex-home.png): navy
   top bar with the white wordmark, a navy hero with a gold curve along its foot, gold actions with navy labels,
   Apex orange only in the wordmark's chevron, Public Sans (apexbg.com's face, SIL OFL, bundled here) throughout. */

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/public-sans-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Public Sans";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/public-sans-latin-wght-italic.woff2") format("woff2-variations");
}

body.client-theme-apex {
  --apex-navy: #00263A;
  --apex-navy-2: #0B3550;
  --apex-gold: #FFB71B;
  --apex-gold-hover: #F2A900;
  --apex-gold-soft: #FFF4DC;
  --apex-orange: #EE7623;
  --apex-canvas: #F5F6F8;
  --apex-line: #DCE1E7;
  --apex-ink: #13202B;
  --apex-muted: #55606B;
  --apex-font: "Public Sans", Arial, Verdana, sans-serif;

  /* The wider brand's tokens, given the theme's colours: every wl-wide rule in app.css paints with these. */
  --wb-band: var(--apex-navy);
  --wb-band-fg: #FFFFFF;
  --wb-band-soft: rgba(255, 255, 255, 0.78);
  --wb-action: var(--apex-gold);
  --wb-action-fg: var(--apex-navy);
  --wb-action-hover: var(--apex-gold-hover);
  --wb-ink: var(--apex-navy);
  --wb-ink-hover: var(--apex-navy-2);
  --wb-ink-rgb: 0, 38, 58;
  --wb-hue: var(--apex-navy);
  --wb-tint: #E8EEF2;
  --wb-sidebar: #F7F8FA;
  --primary: var(--apex-navy);
  --primary-hover: var(--apex-navy-2);
  --primary-rgb: 0, 38, 58;
  --accent: var(--apex-navy);
  --tenant-accent: var(--apex-navy);
  --action-bg: var(--apex-gold);
  --action-fg: var(--apex-navy);

  font-family: var(--apex-font);
  background: var(--apex-canvas);
  color: var(--apex-ink);
  letter-spacing: 0;
}
body.client-theme-apex button,
body.client-theme-apex input,
body.client-theme-apex select,
body.client-theme-apex textarea,
body.client-theme-apex .helper-panel,
body.client-theme-apex .help-menu { font-family: var(--apex-font); }

/* ---- top bar: navy, the white wordmark, a hairline of gold at its foot ---- */
[data-theme] body.client-theme-apex .topbar {
  background: var(--apex-navy);
  border-bottom: 2px solid var(--apex-gold);
  box-shadow: none;
}
[data-theme] body.client-theme-apex .brand-pill,
[data-theme] body.client-theme-apex .brand-pill:hover {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
body.client-theme-apex .brand-pill .brand-text,
body.client-theme-apex .brand-pill .brand-short { display: none !important; }
body.client-theme-apex .client-theme-logo {
  display: block;
  height: 32px;
  width: auto;
  margin-left: 14px;
}
[data-theme] body.client-theme-apex .topbar .icon-btn,
[data-theme] body.client-theme-apex .topbar .notif-btn[data-state] { color: #FFFFFF; }

/* ---- sessions rail ---- */
[data-theme] body.client-theme-apex .sidebar { background: var(--wb-sidebar); border-right: 1px solid var(--apex-line); }
body.client-theme-apex .sidebar-title { color: var(--apex-ink); font-weight: 600; letter-spacing: 0.08em; }
[data-theme] body.client-theme-apex .sidebar-new {
  background: var(--apex-gold);
  color: var(--apex-navy);
  border: 0;
  border-radius: 999px;
  font-weight: 700;
}
[data-theme] body.client-theme-apex .sidebar-new:hover { background: var(--apex-gold-hover); }
[data-theme] body.client-theme-apex .sidebar-item.active { background: var(--wb-tint); box-shadow: none; }

/* ---- the canvas and Home's card ---- */
[data-theme] body.client-theme-apex .screen-area { background: var(--apex-canvas); }
body.client-theme-apex .upload-card.home-card {
  background: #FFFFFF;
  border: 1px solid var(--apex-line);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 38, 58, 0.08);
  overflow: hidden;
}

/* The hero: the card's head, navy, bled to the card's edges, with the gold curve along its foot. The eyebrow is the
   client's name; the title is the brand record's sub-label (Client Setup "Sub-label"); a record with no sub-label
   shows the name as the title instead. */
body.client-theme-apex .home-card .home-head {
  position: relative;
  margin: -2rem -2.5rem 1.25rem;
  padding: 2.85rem 3rem 5.6rem;
  background: var(--apex-navy);
  color: #FFFFFF;
  text-align: left;
}
body.client-theme-apex .home-card .home-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 64px;
  background: url("hero-curve.svg") no-repeat bottom / 100% 100%;
  pointer-events: none;
}
body.client-theme-apex .home-card .home-head h1 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--apex-gold);
}
body.client-theme-apex .home-card .home-head h1 .upload-title-sub {
  display: block;
  margin: 0.55rem 0 0;
  font-size: 2.75rem;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #FFFFFF;
}
body.client-theme-apex .home-card .home-head h1:not(:has(.upload-title-sub)) {
  font-size: 2.75rem;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #FFFFFF;
}
body.client-theme-apex .home-card .home-head .subtitle {
  margin: 0.75rem 0 0;
  font-size: 1.12rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

/* ---- the job tabs: a quiet pill, the chosen one navy ---- */
body.client-theme-apex .mode-tabs {
  background: #FFFFFF;
  border: 1px solid var(--apex-line);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 38, 58, 0.06);
}
[data-theme] body.client-theme-apex .mode-tab { color: var(--apex-ink); font-weight: 600; border-radius: 999px; }
[data-theme] body.client-theme-apex .mode-tab[aria-selected="true"],
[data-theme] body.client-theme-apex .mode-tab.active {
  background: var(--apex-navy);
  color: #FFFFFF;
  box-shadow: none;
}

/* ---- the two drop zones and the built-in template box ---- */
[data-theme] body.client-theme-apex .upload-card .upload-zone {
  border: 2px dashed var(--apex-line);
  border-radius: 6px;
  background: #F4F6F9;
}
[data-theme] body.client-theme-apex .upload-card .upload-zone:hover,
[data-theme] body.client-theme-apex .upload-card .upload-zone.dragover { border-color: var(--apex-navy); background: #EEF2F6; }
body.client-theme-apex .upload-card .zone-title { color: var(--apex-ink); font-weight: 600; }
body.client-theme-apex .upload-card .zone-icon { color: var(--apex-ink); }
[data-theme] body.client-theme-apex .upload-card .bih-toggle-inline {
  background: var(--apex-gold-soft);
  border-bottom: 1px solid #F1E2BF;
  border-radius: 4px 4px 0 0;
}
body.client-theme-apex .upload-card .bih-toggle-label { font-weight: 400; white-space: normal; color: var(--apex-ink); }
body.client-theme-apex .upload-card .bih-toggle-label strong { font-weight: 700; }
[data-theme] body.client-theme-apex .upload-card .bih-toggle-inline input[type="checkbox"] { accent-color: var(--apex-gold); width: 16px; height: 16px; }
[data-theme] body.client-theme-apex #target-zone.bih-active .bih-toggle-inline {
  background: var(--apex-gold-soft);
  border-bottom-color: var(--apex-gold);
}
[data-theme] body.client-theme-apex #target-zone.bih-active { background: #FBFBFA; border-style: dashed; }
[data-theme] body.client-theme-apex #target-zone.bih-active { border-color: var(--apex-gold); }
/* While the box is ticked the picker steps aside and the card says which template the run uses. */
[data-theme] body.client-theme-apex #target-zone.bih-active .upload-picker { display: none; }
body.client-theme-apex .upload-card .home-format-in-use {
  align-self: center;
  justify-self: stretch;
  margin: 0;
  padding: 1.25rem 1.5rem;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  font-size: 0.95rem;
  color: var(--apex-navy);
  font-weight: 600;
}

/* ---- instructions and Start ---- */
body.client-theme-apex .instructions-label { color: var(--apex-ink); font-weight: 600; }
[data-theme] body.client-theme-apex #instructions {
  border: 1px solid var(--apex-line);
  border-radius: 6px;
  background: #FAFBFC;
}
[data-theme] body.client-theme-apex #instructions::placeholder { font-style: italic; color: #6B7580; }
[data-theme] body.client-theme-apex .upload-card #start-btn,
[data-theme] body.client-theme-apex .upload-card #start-btn:disabled {
  background: var(--apex-gold);
  color: var(--apex-navy);
  border: 0;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
}
[data-theme] body.client-theme-apex .upload-card #start-btn::after { content: " \203A"; }
[data-theme] body.client-theme-apex .upload-card #start-btn:hover:not(:disabled) { background: var(--apex-gold-hover); filter: none; }
/* Before any file is added Start cannot run: the same gold, quieter, so the bar still reads as Apex's. */
[data-theme] body.client-theme-apex .upload-card #start-btn:disabled { opacity: 0.8; cursor: not-allowed; }

/* ---- every primary action in the client app: gold with a navy label ---- */
[data-theme] body.client-theme-apex .btn.primary,
[data-theme] body.client-theme-apex button.primary,
[data-theme] body.client-theme-apex .approve-btn,
[data-theme] body.client-theme-apex .send-btn {
  background: var(--apex-gold);
  color: var(--apex-navy);
  border-color: var(--apex-gold);
  font-weight: 700;
}
[data-theme] body.client-theme-apex .btn.primary:hover:not(:disabled),
[data-theme] body.client-theme-apex .approve-btn:hover:not(:disabled),
[data-theme] body.client-theme-apex .send-btn:hover:not(:disabled) { background: var(--apex-gold-hover); border-color: var(--apex-gold-hover); }
[data-theme] body.client-theme-apex .btn.ghost { color: var(--apex-navy); border-color: #B9C3CC; }

/* The assistant's launcher: a navy disc with a white mark. */
[data-theme] body.client-theme-apex .helper-fab { background: var(--apex-navy); color: #FFFFFF; box-shadow: 0 6px 18px rgba(0, 38, 58, 0.28); }
[data-theme] body.client-theme-apex .helper-fab:hover,
[data-theme] body.client-theme-apex .helper-fab[aria-expanded="true"] { background: var(--apex-navy-2); }

/* ---- the Job page (run and results) ---- */
body.client-theme-apex .job-page { --job-accent: var(--apex-navy); --job-ink: var(--apex-ink); }
body.client-theme-apex .job-page .job-title { color: var(--apex-navy); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.9rem; font-weight: 700; }
body.client-theme-apex .job-page .job-headline { color: var(--apex-navy); font-weight: 600; }
body.client-theme-apex .job-page .job-status { border-bottom: 2px solid var(--apex-gold); }
body.client-theme-apex .job-page h2 { color: var(--apex-navy); }

/* ---- the sign-in page on the client's own address ---- */
body.client-theme-apex.is-brand { background: var(--apex-navy); }
body.client-theme-apex .ground { background: var(--apex-navy); }
body.client-theme-apex .ground .floor { opacity: 0.35; }
body.client-theme-apex .masthead .brand-lockup-text { display: none; }
body.client-theme-apex .client-theme-lockup { display: block; height: 38px; width: auto; }
body.client-theme-apex .signin {
  background: #FFFFFF;
  color: var(--apex-ink);
  border-radius: 14px;
  border-top: 6px solid var(--apex-gold);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}
body.client-theme-apex .signin h1 { color: var(--apex-navy); font-weight: 600; }
body.client-theme-apex .signin .btn-continue {
  background: var(--apex-gold);
  color: var(--apex-navy);
  border-radius: 999px;
  font-weight: 700;
}
body.client-theme-apex .signin .btn-continue:hover { background: var(--apex-gold-hover); }
body.client-theme-apex .legal .legal-links a { color: rgba(255, 255, 255, 0.72); }
body.client-theme-apex .legal .legal-links a:hover,
body.client-theme-apex .legal .legal-links a:focus-visible { color: #FFFFFF; }

/* ---- phones ---- */
@media (max-width: 768px) {
  body.client-theme-apex .client-theme-logo { height: 26px; margin-left: 6px; }
  body.client-theme-apex .home-card .home-head { margin: -1.25rem -1.25rem 1.5rem; padding: 1.9rem 1.5rem 3.6rem; }
  body.client-theme-apex .home-card .home-head::after { height: 36px; }
  body.client-theme-apex .home-card .home-head h1 .upload-title-sub,
  body.client-theme-apex .home-card .home-head h1:not(:has(.upload-title-sub)) { font-size: 1.85rem; }
  body.client-theme-apex .home-card .home-head .subtitle { font-size: 0.98rem; }
  body.client-theme-apex .job-page .job-head { margin: -20px -16px 22px; padding: 22px 16px 46px; }
  body.client-theme-apex .client-theme-lockup { height: 30px; }
}
