/* ─────────────────────────────────────────────────────────────
   RxShift — signed-in app base
   ─────────────────────────────────────────────────────────────
   Shared design tokens and typography for the application pages (dashboard, and the employee / punch pages as they adopt it).

   Deliberately NOT linked from the marketing pages — index, pharmacy, restaurant, demo — nor from the auth pages. Those keep
   their own typography.

   Load order matters: this file is linked *before* each page's inline <style>, so any page can override a token locally and win
   at equal specificity. Page-specific tokens (--top-bar-height, --sidebar-width, …) stay in the page, not here.
   ───────────────────────────────────────────────────────────── */

/* ── Typefaces ────────────────────────────────────────────────
   Self-hosted variable fonts, latin subset.

   @font-face is lazy: the browser only downloads a face that is actually referenced by --font-ui below, so keeping both declared
   costs nothing. Only ever one font file is fetched.

     Inter            weights 100-900
     IBM Plex Sans    weights 100-700   (no 800 — see --font-ui note)

   To change the app's typeface, edit --font-ui. Nothing else. Bump the ?v= here and on the <link> when a file changes.
   ───────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-variable.woff2?v=20261009.0') 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+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin-variable.woff2?v=20261009.0') 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+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand */
  --accent:        #057007;
  --accent-hover:  #045a06;
  --accent-light:  #eaf4ea;
  --accent-mid:    #c8e6c8;

  /* Publish state (schedule) — amber, --publish is the marker/badge accent; 
     --publish-strong fills the button and keeps badge text legible on the pale background. */
  --publish:        #d97706;
  --publish-strong: #ad4b0d;
  --publish-hover:  #92400e;
  --publish-light:  #fef3c7;

  /* Holiday display (schedule + portal) — magenta, the colour Publish used before the swap */
  --holiday:        #c2185b;
  --holiday-light:  #fce4ec;
  --holiday-border: #f48fb1;

  /* Text */
  --text:          #1a1a1a;
  --text-muted:    #555;
  --text-faint:    #aaa;

  /* Surfaces */
  --border:        #e0e0e0;
  --surface:       #f7f7f7;
  --white:         #ffffff;

  /* Shape + elevation */
  --radius:        10px;
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.09);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.13);

  /* Typography — the app's typeface is defined here. Change the first family to switch faces; the rest is system fallback.
     Note: IBM Plex Sans has no 800 weight (it caps at 700) */
  --font-ui: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

body {
  font-family: var(--font-ui);
}

/* Form controls do NOT inherit font-family from body — without this, every button, select, input and textarea would stay 
   on the system font and the swap would look half-finished. */
button, input, select, textarea {
  font-family: inherit;
}

/* The schedule prints in portrait at 9px, where IBM Plex Sans's metrics push shift text onto a second line. Reverting the 
   custom property here restores the original system stack for print only, leaving on-screen typography untouched. */
@media print {
  :root {
    --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  }
}
