/* The University of Greenwich look for the Denning Portal (tools/portal/build-greenwich.php copies this to
   public/portal/gw/css/greenwich.css and links it after every other sheet). Colours and typeface from gre.ac.uk
   (30 Oct 2026): navy #00033D, blue #0058AA, mint #89E9D7, sky #61CCF3; Cooper Hewitt (SIL Open Font Licence), the
   two weights the university serves — 500 for text, 600 for anything bolder, so no weight is faked. The portal's own
   screens are unchanged: only its colour ramps, typeface and logo swap. */
@font-face {
  font-family: "Cooper Hewitt"; font-style: normal; font-weight: 100 549; font-display: swap;
  src: url("../fonts/cooperhewitt-medium-webfont.woff2") format("woff2");
}
@font-face {
  font-family: "Cooper Hewitt"; font-style: normal; font-weight: 550 950; font-display: swap;
  src: url("../fonts/cooperhewitt-semibold-webfont.woff2") format("woff2");
}

:root, :root[data-brand] {
  --font: 'Cooper Hewitt', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --p-900: #000229;
  --p-800: #00033D;   /* Greenwich navy: sidebar, hero, app plate */
  --p-700: #0A1660;
  --p-600: #0D2A80;
  --p-500: #0058AA;   /* Greenwich blue: the interactive accent */
  --p-400: #2F7CC6;
  --p-300: #7FB0E0;
  --p-200: #C2DAF2;
  --p-100: #E3EEF9;
  --p-50:  #F2F7FC;

  /* the second colour: Greenwich mint */
  --g-700: #136B5F;
  --g-600: #1B8A7B;
  --g-500: #24A895;
  --g-400: #4CCDB8;
  --g-200: #BFF3EA;
  --g-100: #E1F9F5;
  --g-50:  #F1FCFA;

  --n-25:  #FAFBFD;
  --n-50:  #F5F6FA;
  --n-100: #EEF0F6;
  --n-150: #E5E8F0;
  --n-200: #DCE0EA;
  --n-300: #C3C9D9;
  --n-400: #687089;
  --n-500: #525A73;
  --n-700: #323A52;
  --n-900: #121833;

  --brand: var(--p-800);
  --accent: #0058AA;
  --accent-hover: #004A8F;
  --accent-tint: #E3EEF9;
  --accent-ring: rgba(0, 88, 170, .24);
  --info: #0058AA;  --info-tint: #E3EEF9;
  --pink: #0075E3;  --pink-tint: #E3EEF9;
  --bar: rgba(245, 247, 252, .84);
  --toast-bg: #0E1638;
  --hero-ink: #89E9D7;
  --hero-glow: rgba(97, 204, 243, .30);
  --shadow-xs: 0 1px 2px rgba(0, 3, 61, .05);
  --shadow-sm: 0 1px 3px rgba(0, 3, 61, .07), 0 1px 2px rgba(0, 3, 61, .03);
  --shadow-md: 0 6px 16px rgba(0, 3, 61, .09), 0 2px 5px rgba(0, 3, 61, .04);
  --shadow-lg: 0 24px 56px rgba(0, 2, 41, .22), 0 6px 16px rgba(0, 2, 41, .08);
}
:root[data-theme="dark"], :root[data-theme="dark"][data-brand] {
  --bg: #070A17;
  --card: #0F1426;
  --surface-2: #141A30;
  --fill: #1A2138;
  --fill-2: #222B47;
  --brand: #89E9D7;
  --accent: #3D8FE0;
  --accent-hover: #61A7EC;
  --accent-tint: #13223F;
  --accent-ring: rgba(61, 143, 224, .42);
  --info: #61CCF3;  --info-tint: #12263A;
  --pink: #61A7EC;  --pink-tint: #13223F;
  --g-700: #BFF3EA; --g-600: #9CEBDD; --g-500: #89E9D7; --g-400: #6FDCC8;
  --g-200: #1F4A47; --g-100: #12302F; --g-50: #0E2324;
  --p-50: #0E1427; --p-100: #13223F; --p-200: #233A66;
  --brand-50: var(--p-50); --brand-100: var(--p-100); --brand-200: var(--p-200);
  --bar: rgba(10, 14, 30, .84);
  --toast-bg: #1B2443;
}

/* Headings and the brand line in the university's semibold. */
h1, h2, h3, h4, .page-title, .brand-name { letter-spacing: -.005em; }
.brand-name { letter-spacing: .01em; font-size: 15px; font-weight: 600; text-transform: none; }
.brand-sub { letter-spacing: .01em; }

/* The compass mark is square; the lockups keep their own proportion (500 × 155). */
.brand-mark, .topbar-mark, .pf-about-mark { object-fit: contain; }
.brand-mark { width: 36px; height: 36px; }
.topbar-mark { width: 28px; height: 28px; }
.lc-lockup { width: 220px; max-width: 70%; height: auto; }
.vle-logo-mark { object-fit: contain; }

/* The sign-in page keeps its neutral buttons, in navy. */
#login-root { --accent: #00033D; --accent-hover: #0A1660; --accent-tint: #E3EEF9; --accent-ring: rgba(0, 3, 61, .22); }
:root[data-theme="dark"] #login-root { --accent: #3D8FE0; --accent-hover: #61A7EC; --accent-tint: #13223F; --accent-ring: rgba(61, 143, 224, .42); }

/* The VLE keeps its dark cinema canvas, in Greenwich navy with the mint accent. */
:root, :root[data-brand] {
  --vbg: #00021F;
  --vbg2: #0A0F33;
  --vbg3: #121A45;
  --vgold: #89E9D7;
  --vaccent-rgb: 137, 233, 215;
  --vviolet: #0A1E5C;
}
.vle-logo-word { letter-spacing: .02em; }

/* The two logos, University of Greenwich and GEMS (Adam, 30 Oct 2026): in the sidebar (white, on navy) and on the sign-in card
   (navy on light, white in the dark). Logo files: tools/portal/greenwich/brand (GEMS = the Suite's own wordmark). */
.gw-logos { display: flex; align-items: center; gap: 10px; padding: 4px 2px 0; max-width: 100%; }
.gw-logos img { display: block; height: auto; }
.gw-logos .gw-logo-uog { width: 104px; }
.gw-logos .gw-logo-gems { width: 70px; }
.gw-logos-rule { flex: none; width: 1px; height: 26px; background: rgba(255, 255, 255, .28); }
.gw-login-logos { display: flex; align-items: center; gap: 16px; margin: 0 0 22px; }
.gw-login-logos img { height: auto; }
.gw-login-logos .gw-logo-uog { width: 168px; max-width: 52%; }
.gw-login-logos .gw-logo-gems { width: 104px; max-width: 32%; }
.gw-login-logos .gw-logos-rule { height: 40px; background: var(--line-strong); }
.gw-login-logos .lc-on-dark { display: none; }
:root[data-theme="dark"] .gw-login-logos .lc-on-light { display: none; }
:root[data-theme="dark"] .gw-login-logos .lc-on-dark { display: block; }

/* Choosing your own password after a temporary one (js/password-change.js): the sign-in card, over everything */
.pwc-root { position: fixed; inset: 0; z-index: 3000; background: var(--bg); overflow: auto; display: grid; }
body.pwc-open { overflow: hidden; }
.pwc-root .login-wrap { min-height: 100%; }
.pwc-show { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); margin: 2px 0 14px; cursor: pointer; }
.pwc-show input { width: 15px; height: 15px; accent-color: var(--accent); }
.pwc-out { text-align: center; margin: 14px 0 0; font-size: 13px; }
.pwc-root .login-submit { width: 100%; }
