/* ============================================================
   Eurowind Energy — Board Portal
   Source: EWE Brand Guidelines v2.5.5 (Feb 2026)
   ------------------------------------------------------------
   One complete stylesheet per solution. The container picks one at start-up
   (docker-entrypoint.d/40-quorum-config.sh rewrites the <link> in index.html), so exactly one of
   these is ever loaded and nothing here is scoped or overridden.

   The board portal: the brand palette as published.

   KEEP THE FILES IN STEP. Everything outside the PRIMARY ramp is meant to be
   byte-identical across solutions: `diff bp.css ic.css` is the review. A change to the type
   scale, an element style or a semantic token has to be made in every file.
   ============================================================ */

@font-face { font-family:'Gellix'; font-weight:400; font-style:normal; font-display:swap; src:url('/fonts/Gellix-Regular.ttf') format('truetype'); }
@font-face { font-family:'Gellix'; font-weight:500; font-style:normal; font-display:swap; src:url('/fonts/Gellix-Medium.ttf') format('truetype'); }
@font-face { font-family:'Gellix'; font-weight:600; font-style:normal; font-display:swap; src:url('/fonts/Gellix-SemiBold.ttf') format('truetype'); }
@font-face { font-family:'Gellix'; font-weight:700; font-style:normal; font-display:swap; src:url('/fonts/Gellix-Bold.ttf') format('truetype'); }
@font-face { font-family:'Gellix'; font-weight:800; font-style:normal; font-display:swap; src:url('/fonts/Gellix-ExtraBold.ttf') format('truetype'); }

:root {
  /* ============== PRIMARY ==============
     The portal's identity. This block, and the login override at the foot of the file, are the
     only places {bp,ic}.css differ — `diff bp.css ic.css` should show nothing else.

     Pantone 282 C / 277 C, straight from the brand guidelines.

     The names are the brand's Pantone chips rather than roles, which is why `--ewe-dark-blue`
     can hold a green here. Renaming them is a separate job: they are a contract shared with
     ui/theme.ts and every component, so they cannot diverge between these files. */
  --ewe-dark-blue:      #041E42;
  --ewe-sky-blue:       #ABCAF6;
  --ewe-white:          #FFFFFF;

  /* Dark blue tints */
  --ewe-dark-blue-75:   #2A3F68;
  --ewe-dark-blue-50:   #667295;
  --ewe-dark-blue-25:   #ADB2C8;
  --ewe-dark-blue-15:   #CDCFDD;

  /* Sky blue tints */
  --ewe-sky-blue-75:    #CBE1F3;
  --ewe-sky-blue-50:    #DDEBF7;
  --ewe-sky-blue-25:    #EFF5FB;
  --ewe-sky-blue-15:    #F5F9FD;

  /* ============== SECONDARY ============== */
  --ewe-green:          #49D69D;   /* Pantone 2412 C */
  --ewe-green-50:       #C6E1C7;
  --ewe-brown:          #B46B5B;   /* Pantone 7522 C */
  --ewe-brown-50:       #E2B6A5;
  --ewe-yellow:         #F8B323;   /* Pantone 124 C */
  --ewe-yellow-50:      #FDD99B;
  --ewe-red:            #E03E57;   /* Pantone 710 C */
  --ewe-red-50:         #F4A9A1;

  /* ============== TERTIARY ============== */
  --ewe-dark-green:     #02463A;
  --ewe-dark-brown:     #5B3428;
  --ewe-dark-yellow:    #E19000;
  --ewe-dark-red:       #6F2740;
  --ewe-light-green:    #B6E4E5;
  --ewe-light-brown:    #F4D1C1;
  --ewe-light-yellow:   #FFD77A;
  --ewe-light-red:      #ECC8DB;

  --ewe-custom-grey-bg: #CDCFDD;
  --ewe-custom-grey-fg: #667295;

  /* ============== SEMANTIC ==============
     Literal values are page CONTENT: text, borders, page backgrounds. They are identical in every
     solution, and writing them out rather than deriving them from the ramp is what stops a portal
     from tinting its own body text.

     var(--ewe-*) values are portal IDENTITY: the shell, dark surfaces, the accent. They follow
     the ramp above, which is the whole point of a per-solution sheet. */
  --bg:                 var(--ewe-white);
  --bg-alt:             #EFF5FB;
  --bg-inverse:         var(--ewe-dark-blue);
  --bg-subtle:          #F5F9FD;

  --surface:            var(--ewe-white);

  --fg:                 #041E42;
  --fg-secondary:       #2A3F68;
  --fg-muted:           #667295;
  --fg-subtle:          #ADB2C8;
  --fg-inverse:         var(--ewe-white);
  --fg-on-dark:         var(--ewe-white);
  --fg-on-dark-muted:   #DDEBF7;

  --border:             #CDCFDD;
  --border-strong:      #ADB2C8;
  --border-on-dark:     var(--ewe-dark-blue-75);

  --accent:             var(--ewe-sky-blue);
  --accent-strong:      var(--ewe-dark-blue);
  --success:            var(--ewe-green);
  --success-bg:         var(--ewe-green-50);
  --success-fg:         var(--ewe-dark-green);
  --warning:            var(--ewe-yellow);
  --warning-bg:         var(--ewe-yellow-50);
  --warning-fg:         var(--ewe-dark-yellow);
  --danger:             var(--ewe-red);
  --danger-bg:          var(--ewe-red-50);
  --danger-fg:          var(--ewe-dark-red);
  --info-bg:            #EFF5FB;
  --info-fg:            #041E42;
  --warm-bg:            var(--ewe-brown-50);
  --warm-fg:            var(--ewe-dark-brown);
  --disabled-bg:        var(--ewe-custom-grey-bg);
  --disabled-fg:        var(--ewe-custom-grey-fg);

  /* Tints for pills and text on a dark-blue surface (drawer header, next-meeting card). */
  --on-dark-tint:       color-mix(in srgb, var(--accent) 18%, transparent);
  --on-dark-tint-muted: color-mix(in srgb, var(--accent) 12%, transparent);
  --fg-on-dark-dim:     color-mix(in srgb, var(--accent) 75%, transparent);

  --overlay:            rgba(4, 30, 66, 0.55);
  --overlay-soft:       rgba(4, 30, 66, 0.45);
  --overlay-deep:       rgba(6, 20, 44, 0.55);

  --link:               #041E42;
  --link-hover:         #2A3F68;

  /* ============== SHELL ==============
     The sidebar, mobile header and nav drawer. --solution-accent is the one per-solution setting:
     change it and the portal label, nav text and highlight, "New meeting" button and sign-out
     recolour together, so a member of two committees can tell the portals apart. */
  --solution-accent:    var(--accent);

  --shell-bg:           var(--accent-strong);
  --shell-fg:           var(--fg-on-dark);
  --shell-accent:       var(--solution-accent);
  --shell-nav-fg:       color-mix(in srgb, var(--solution-accent) 72%, transparent);
  --shell-nav-active-bg: color-mix(in srgb, var(--solution-accent) 16%, transparent);
  --shell-nav-active-fg: var(--fg-on-dark);

  /* ============== TYPE ============== */
  --font-sans: 'Gellix', 'Century Gothic', 'Apple Gothic', 'URW Gothic', 'ITC Avant Garde Gothic', 'Futura', 'Trebuchet MS', sans-serif;
  --font-display: 'Gellix', 'Century Gothic', 'Apple Gothic', 'URW Gothic', 'ITC Avant Garde Gothic', 'Futura', sans-serif;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  --text-display-1: 96px;
  --text-display-2: 72px;
  --text-h1:        56px;
  --text-h2:        40px;
  --text-h3:        28px;
  --text-h4:        22px;
  --text-highlight: 18px;
  --text-body:      16px;
  --text-small:     14px;
  --text-caption:   12px;

  --lh-display:     1.0;
  --lh-tight:       1.1;
  --lh-snug:        1.25;
  --lh-normal:      1.4;
  --lh-loose:       1.6;

  --ls-display: -0.02em;
  --ls-heading: -0.01em;
  --ls-body:    0;
  --ls-eyebrow: 0.08em;

  /* ============== SPACING ============== */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;

  /* ============== RADII ============== */
  --radius-none: 0;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* ============== SHADOWS ============== */
  --shadow-none: none;
  --shadow-sm:  0 1px 2px rgba(4, 30, 66, 0.06);
  --shadow-md:  0 4px 12px rgba(4, 30, 66, 0.08);
  --shadow-lg:  0 12px 32px rgba(4, 30, 66, 0.10);
  --shadow-xl:  0 24px 56px rgba(4, 30, 66, 0.14);
  --shadow-focus: 0 0 0 3px color-mix(in srgb, var(--accent) 60%, transparent);
  --shadow-knob: 0 1px 2px rgba(0, 0, 0, 0.25);

  /* ============== MOTION ============== */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:    cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:   150ms;
  --dur-normal: 240ms;
  --dur-slow:   480ms;
  --dur-helix:  900ms;
}

/* ============================================================
   BASE / SEMANTIC ELEMENTS
   ============================================================ */
html, body {
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: var(--text-body);
  line-height: var(--lh-normal);
}

h1, .h1 {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  color: var(--fg);
  margin: 0;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-heading);
  color: var(--fg);
  margin: 0;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-heading);
  color: var(--fg);
  margin: 0;
}
h4, .h4 {
  font-family: var(--font-display);
  font-size: var(--text-h4);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  color: var(--fg);
  margin: 0;
}
p, .body {
  font-size: var(--text-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--fg);
}
small, .small {
  font-size: var(--text-small);
  line-height: var(--lh-normal);
  color: var(--fg-muted);
}
.caption {
  font-size: var(--text-caption);
  line-height: var(--lh-normal);
  color: var(--fg-muted);
}
.eyebrow {
  font-size: var(--text-caption);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--fg-muted);
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--link-hover); }

*{ box-sizing: border-box; }
.focusring:focus{ box-shadow: var(--shadow-focus); outline: none; }
::-webkit-scrollbar{ width:11px; height:11px; }
::-webkit-scrollbar-thumb{ background:var(--ewe-dark-blue-25); border-radius:8px; border:3px solid transparent; background-clip:padding-box; }
::-webkit-scrollbar-track{ background:transparent; }

@keyframes helixDrift{ 0%{ transform:scale(1.02) translate(0,0); } 100%{ transform:scale(1.1) translate(-2%,-3%); } }
@keyframes ovIn{ from{ opacity:0; } to{ opacity:1; } }
@keyframes cardIn{ from{ opacity:0; transform:translateY(16px); } to{ opacity:1; transform:none; } }
@keyframes drawerIn{ from{ transform:translateX(30px); opacity:.4; } to{ transform:none; opacity:1; } }
@keyframes skeletonPulse{ 0%,100%{ opacity:.45; } 50%{ opacity:1; } }
.skeleton{ animation:skeletonPulse 1.4s ease-in-out infinite; }
