/* ===========================================================================================================
   UniCheatSheet foundation (visual evolution, Stage 2): self-hosted type, design tokens, icon masks.
   Linked FIRST on every page (home, About, semester/type pages and the Course Hubs built from them), so one file is the
   single source of these definitions. Presentation only: it contains no layout and changes no behaviour.
   Fonts: Geist (SIL OFL 1.1, (c) 2024 The Geist Project Authors). Licence texts sit next to the files in fonts/.
   Files live under global/ on purpose: the paid pages (/access/<user>/...) only expose global|js|img|styles|scripts.
   =========================================================================================================== */

/* Geist (owner decision 2026-11-20: Marc Lou's type): variable 100-900, split like Google Fonts so the Rupee sign comes from Latin Extended.
   Line box pinned to the old one (96.88% + 24.12% = 1.21em) so `line-height: normal` text keeps its height. Licence: fonts/OFL-Geist.txt. */
@font-face {
  font-family: 'Geist';
  src: url(fonts/Geist-latin.1b5ebfb3a0.woff2) format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  ascent-override: 96.88%; descent-override: 24.12%; line-gap-override: 0%;
  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: 'Geist';
  src: url(fonts/Geist-latinext.f7604a53a0.woff2) format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  ascent-override: 96.88%; descent-override: 24.12%; line-gap-override: 0%;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Getai Grotesk Display (Black): the hero headline only (owner, 2026-11-20), via --f-display. */
/* Getai Grotesk Display: Black only, for ONE hero line (Stage 3). Declared now, requested only when something uses it. */
@font-face {
  font-family: 'Getai Grotesk';
  src: url(fonts/Getai-latin.woff2?v=0b5b33c7fb) format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched local fallback shown until Geist arrives (measured in Chrome: Geist is 101.3% of Arial's width). */
@font-face {
  font-family: 'Geist Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Helvetica');
  size-adjust: 101.3%; ascent-override: 95.64%; descent-override: 23.81%; line-gap-override: 0%;
}

:root {
  /* type */
  --f-ui: 'Geist', 'Geist Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-display: 'Getai Grotesk', 'Geist', 'Geist Fallback', system-ui, sans-serif;   /* the hero headline keeps Getai (owner, 2026-11-20) */

  /* surfaces (dark, brand navy) */
  --ucs-bg: #090C12;
  --ucs-s1: #10151F;
  --ucs-folder: #141B28;
  --ucs-s2: #1B2434;
  --ucs-s3: #253043;
  --ucs-line: rgba(255, 255, 255, .08);
  --ucs-line-2: rgba(255, 255, 255, .15);
  --ucs-paper: #F6F3EC;

  /* text */
  --ucs-text: #F3F6FA;
  --ucs-soft: #D3DAE4;
  --ucs-muted: #96A1B3;

  /* action / selected (cyan means "do" or "chosen", never a resource type) */
  --ucs-cyan: #22E5FF;
  --ucs-cyan-ledge: #0B8EA3;
  --ucs-on-cyan: #03252D;
  --ucs-ledge-dark: #05070B;

  /* "in session" sticker (yellow means this and nothing else) */
  --ucs-now: #FFE066;
  --ucs-on-now: #2B2200;

  /* resource types: text/dot, tint, hairline */
  --ucs-notes: #86B6FF; --ucs-notes-bg: rgba(134, 182, 255, .12); --ucs-notes-line: rgba(134, 182, 255, .32);
  --ucs-sol:   #67D6A8; --ucs-sol-bg:   rgba(103, 214, 168, .12); --ucs-sol-line:   rgba(103, 214, 168, .32);
  --ucs-pyq:   #BCA8FF; --ucs-pyq-bg:   rgba(188, 168, 255, .13); --ucs-pyq-line:   rgba(188, 168, 255, .34);

  /* geometry and motion */
  --ucs-r-ctl: 12px; --ucs-r-card: 16px; --ucs-r-panel: 22px;
  --ucs-ease: cubic-bezier(.3, .7, .4, 1.15);
}

/* Course icon tiles (used from Stage 3/4): one geometry for every course, colour from the subject family only. */
.ucs-ico {
  flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--hue, var(--ucs-cyan));
  background: color-mix(in srgb, var(--hue, var(--ucs-cyan)) 13%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hue, var(--ucs-cyan)) 26%, transparent);
}
.ucs-ico svg { width: 22px; height: 22px; }
.ucs-ico-s { width: 32px; height: 32px; border-radius: 10px; } .ucs-ico-s svg { width: 18px; height: 18px; }
.ucs-ico-l { width: 56px; height: 56px; border-radius: 16px; } .ucs-ico-l svg { width: 28px; height: 28px; }

/* The four icons this page uses, as CSS masks — no icon font, no cdnjs
   stylesheet, no 230 KB of webfonts. The class names stay the same, so
   script.js's fa-bars <-> fa-times toggle keeps working. */
.fas, .fab {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.fa-bars { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M0 96h448v64H0zm0 160h448v64H0zm0 160h448v64H0z'/%3E%3C/svg%3E"); }

.fa-times { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M105 73l151 151L407 73l32 32-151 151 151 151-32 32-151-151-151 151-32-32 151-151L73 105z'/%3E%3C/svg%3E"); }

.fa-search { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M208 48a160 160 0 1 1 0 320 160 160 0 0 1 0-320zm0-48C93 0 0 93 0 208s93 208 208 208c46 0 88-15 122-40l134 134 34-34-134-134c25-34 40-76 40-122C416 93 323 0 208 0z'/%3E%3C/svg%3E"); }

.fa-instagram { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M224 141a115 115 0 1 0 0 230 115 115 0 0 0 0-230zm0 190a75 75 0 1 1 0-150 75 75 0 0 1 0 150zm146-195a27 27 0 1 1-54 0 27 27 0 0 1 54 0zM400 96c-26-26-58-34-93-36-36-2-146-2-182 0-35 2-67 10-93 36S-2 154 0 189c-2 36-2 146 0 182 2 35 10 67 36 93s58 34 93 36c36 2 146 2 182 0 35-2 67-10 93-36s34-58 36-93c2-36 2-146 0-182-2-35-10-67-36-93zm-48 302c-8 20-23 35-43 43-30 12-101 9-134 9s-104 3-134-9c-20-8-35-23-43-43-12-30-9-101-9-134s-3-104 9-134c8-20 23-35 43-43 30-12 101-9 134-9s104-3 134 9c20 8 35 23 43 43 12 30 9 101 9 134s3 104-9 134z'/%3E%3C/svg%3E"); }
