/* ==========================================================================
   RUFAIDI "GREEN PAPER" — v9 visual layer (2026-11-13). Replaces the v8 file.
   Loaded last, after every other stylesheet. Visual rules only: no id, data-*
   hook or behaviour changes. paper.js builds the More and Admin menus.
   To go back: remove the paper.css <link> from index.html, welcome.html,
   signin.html and pricing.html, and the paper.js <script> from index.html.

   2026-11-24: the green became the RufaidiQB brand navy and cyan (brand.css holds the logo).
   Look: green and white with a yellow highlighter. A green gradient band holds
   the menu and each page's heading; cards are white and lift on hover; the page
   uses the full width and folds to one column on phones.
   The green belongs to the Medicine track; Nursing and Dentistry keep their own
   colours through the same --au-* variables.
   ========================================================================== */

@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("fonts/source-serif-4-latin.woff2") format("woff2"); }

/* ------------------------------------------------------------------ tokens */
:root, :root[data-theme="light"] {
  --font-sans: "Schibsted Grotesk", "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", "IBM Plex Sans Arabic", "Noto Sans Arabic", system-ui, sans-serif;
  --font-display: var(--font-sans);
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --qp-stem: "Source Serif 4", Georgia, "Times New Roman", "IBM Plex Sans Arabic", "Noto Sans Arabic", serif;

  --bg: #FFFFFF; --bg-subtle: #F1F8FA; --bg-sidebar: #FFFFFF;
  --surface: #FFFFFF; --surface-2: #F1F8FA; --surface-3: #E7F4F7; --surface-4: #CFE4EA;
  --glass-bg: #FFFFFF; --glass-border: #CFE4EA;
  --bg-backdrop: rgba(7, 29, 53, 0.50); --scrim: rgba(7, 29, 53, 0.50);

  --text: #071D35; --text-2: #3B5169; --text-3: #51667D;
  --inverse: #071D35; --inverse-text: #FFFFFF; --ink-4: #6E8499;

  --border: #CFE4EA; --border-2: #A3CDD6; --border-subtle: #CFE4EA; --border-default: #A3CDD6; --border-strong: #5E9EAD;

  --shadow-xs: 0 1px 2px rgba(7, 29, 53, 0.05);
  --shadow-sm: 0 2px 4px rgba(7, 29, 53, 0.05), 0 8px 18px -10px rgba(0, 109, 120, 0.25);
  --shadow-md: 0 2px 4px rgba(7, 29, 53, 0.05), 0 20px 44px -20px rgba(0, 109, 120, 0.30);
  --shadow-lg: 0 2px 4px rgba(7, 29, 53, 0.06), 0 28px 56px -18px rgba(0, 109, 120, 0.38);
  --shadow-xl: 0 30px 70px -20px rgba(7, 29, 53, 0.50);

  --r-xs: 6px; --r-sm: 10px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px;
  --radius-xs: 6px; --radius-sm: 10px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 22px;
  --r-card: 22px; --r-tile: 18px; --r-ctl: 12px;

  --card-bg: var(--surface); --card-border: var(--border);
  --card-shadow: var(--shadow-md); --card-shadow-hover: var(--shadow-lg);
  --chrome-bg: #FFFFFF; --chrome-border: var(--border); --page-glow: 0;

  --mark: #FFE44D; --mark-strong: #FFD21F; --mark-text: #071D35; --st-hl: #FFE44D;
  --qp-yellow: #FFE44D;
  --qp-band-ink: #FFFFFF; --qp-band-ink-2: #E0F6F8;
  --qp-page: linear-gradient(180deg, #E7F4F7 0, #FFFFFF 520px);
}
:root[data-theme="dark"] {
  --bg: #061426; --bg-subtle: #0A1E35; --bg-sidebar: #0C2440;
  --surface: #0C2440; --surface-2: #0F2B4A; --surface-3: #143657; --surface-4: #1B3F63;
  --glass-bg: #0C2440; --glass-border: #1B3F63;
  --bg-backdrop: rgba(0, 0, 0, 0.65); --scrim: rgba(0, 0, 0, 0.65);

  --text: #E8F1F8; --text-2: #C3D6E6; --text-3: #A3BDD3;
  --inverse: #E8F1F8; --inverse-text: #061426; --ink-4: #7F9CB6;

  --border: #1B3F63; --border-2: #2A5A85; --border-subtle: #1B3F63; --border-default: #2A5A85; --border-strong: #3A73A3;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.40);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.40), 0 10px 22px -10px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.40), 0 22px 48px -20px rgba(0, 0, 0, 0.70);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.45), 0 30px 60px -18px rgba(0, 0, 0, 0.80);
  --shadow-xl: 0 34px 76px -20px rgba(0, 0, 0, 0.85);

  --card-bg: var(--surface); --card-border: var(--border);
  --card-shadow: var(--shadow-md); --card-shadow-hover: var(--shadow-lg);
  --chrome-bg: #0C2440; --chrome-border: var(--border); --page-glow: 0;

  --mark: #FFE44D; --mark-strong: #FFD21F; --mark-text: #071D35; --st-hl: #FFE44D;
  --qp-page: linear-gradient(180deg, #0A1E35 0, #061426 520px);
}

/* Medicine track: the brand navy #071D35 and cyan #00B8C4 (brand kit 2026-11-24; was green). */
:root:not([data-track="nursing"]):not([data-track="dentistry"]),
:root[data-theme="light"]:not([data-track="nursing"]):not([data-track="dentistry"]) {
  --accent: #006D78; --accent-2: #007A85; --accent-text: #006D78; --accent-hover: #071D35; --accent-active: #071D35; --accent-on: #FFFFFF;
  --accent-soft: rgba(0, 109, 120, 0.08); --accent-soft-2: rgba(0, 109, 120, 0.14); --accent-line: rgba(0, 109, 120, 0.28);
  --accent-border: rgba(0, 109, 120, 0.30); --accent-ring: rgba(0, 109, 120, 0.18);
  --focus-ring: 0 0 0 3px rgba(0, 184, 196, 0.45);
  --track-medicine: #006D78;
  --au-1: #006D78; --au-2: #007A85; --au-3: #071D35; --au-glow: #00B8C4; --au-glow-2: #00B8C4;
}
:root[data-theme="dark"]:not([data-track="nursing"]):not([data-track="dentistry"]) {
  --accent: #00B8C4; --accent-2: #00A3AE; --accent-text: #5EDDE4; --accent-hover: #8BE8EE; --accent-active: #00A3AE; --accent-on: #071D35;
  --accent-soft: rgba(0, 184, 196, 0.12); --accent-soft-2: rgba(0, 184, 196, 0.18); --accent-line: rgba(0, 184, 196, 0.34);
  --accent-border: rgba(0, 184, 196, 0.35); --accent-ring: rgba(0, 184, 196, 0.24);
  --focus-ring: 0 0 0 3px rgba(0, 184, 196, 0.40);
  --track-medicine: #00B8C4;
  --au-1: #0A2E4F; --au-2: #006D78; --au-3: #04101F; --au-glow: #00B8C4; --au-glow-2: #00B8C4;
}

:root {
  --aurora: linear-gradient(125deg, var(--au-3) 0%, var(--au-1) 55%, var(--au-2) 100%);
  --aurora-btn: linear-gradient(120deg, var(--au-1) 0%, var(--au-2) 100%);
  /* the band: one left-to-right gradient pinned to the window, so the menu bar and the heading band join without a seam */
  --qp-band: linear-gradient(90deg, var(--au-3) 0%, var(--au-1) 55%, var(--au-2) 100%);
}

/* ------------------------------------------------------------- page & type */
body { background: var(--qp-page) no-repeat var(--bg) !important; font-family: var(--font-sans); overflow-x: clip; }
body::before, body::after { display: none !important; }
.sidebar, main > header, header#topNavbar, .drawer, .drawer-backdrop, .cmd-palette-backdrop, .modal-backdrop,
.reader-modal-backdrop, .user-dropdown, .top-options-panel, #toast, .phone-tabbar, .cmd-palette-card,
.reader-modal-dialog, .modal-card { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
h1, h2, h3 { font-family: var(--font-sans); letter-spacing: -0.02em; }
.match .question-text, .st-stem, .rb-stem { font-family: var(--qp-stem); }
.match .question-text { font-size: 19px; line-height: 1.6; }
.st-stem { font-size: calc(19.5px * var(--sts, 1)); line-height: 1.6; }
:focus-visible { outline: 3px solid #0097A3; outline-offset: 2px; }

/* ------------------------------------------------------------------ buttons */
.primary, .btn-primary, .ta2-btn.primary {
  position: relative; overflow: hidden; border: 0 !important; border-radius: 12px !important; color: #FFFFFF !important; font-weight: 700;
  background-color: var(--au-1) !important;
  background-image: linear-gradient(120deg, var(--au-1) 0%, var(--au-2) 50%, var(--au-1) 100%) !important;
  background-size: 200% 100% !important; background-position: 0% 0 !important;
  box-shadow: 0 2px 6px rgba(0, 109, 120, 0.30) !important;
  transition: background-position .5s ease, box-shadow .25s ease, transform .25s ease;
}
.primary::after, .btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.35), rgba(255,255,255,0)); transform: skewX(-20deg); transition: left .6s ease;
}
.primary:hover:not(:disabled), .btn-primary:hover:not(:disabled), .ta2-btn.primary:hover:not(:disabled) {
  background-position: 100% 0 !important; box-shadow: 0 10px 24px -6px rgba(0, 109, 120, 0.55) !important; transform: translateY(-2px);
}
.primary:hover:not(:disabled)::after, .btn-primary:hover:not(:disabled)::after { left: 120%; }
.primary:active:not(:disabled), .btn-primary:active:not(:disabled) { transform: translateY(0); box-shadow: 0 2px 6px rgba(0, 109, 120, 0.5) !important; }
.primary svg, .btn-primary svg { color: #FFFFFF; }

.ghost, .same-btn {
  border: 1.5px solid var(--border-2) !important; border-radius: 12px !important; color: var(--accent-hover); font-weight: 600;
  background-color: var(--surface) !important;
  background-image: linear-gradient(120deg, var(--surface-3), var(--surface-2)) !important; background-size: 0% 100% !important; background-repeat: no-repeat !important;
  box-shadow: none !important;
  transition: background-size .35s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.ghost:hover:not(:disabled), .same-btn:hover:not(:disabled) {
  background-size: 100% 100% !important; border-color: var(--accent) !important; transform: translateY(-1px); box-shadow: var(--shadow-sm) !important;
}

/* -------------------------------------------------------------------- cards */
.card, .match, .home-card, .em-month-tile, .hy-grid-card, .as-lib-card, .admin-op-card, .st-tile, .source-row {
  border-radius: 22px; border: 1px solid var(--border) !important; background-color: var(--surface); box-shadow: var(--shadow-md);
  transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
.match:hover, .home-card:hover, .em-month-tile:hover, .hy-grid-card:hover, .as-lib-card:hover, .admin-op-card:hover, .st-tile:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-2) !important;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { border-radius: 12px; transition: box-shadow .25s ease, border-color .25s ease; }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus, select:focus, textarea:focus { box-shadow: 0 0 0 4px var(--accent-ring); border-color: var(--accent); }

/* =====================================================================
   FRAME (wide screens): the sidebar is the green menu bar
   ===================================================================== */
@media (min-width: 901px) {
  body { flex-direction: column !important; }
  aside.sidebar {
    position: sticky !important; inset: 0 auto auto 0 !important; width: 100% !important; min-width: 0 !important; max-width: none !important;
    height: auto !important; max-height: none !important; box-sizing: border-box; margin: 0 !important; padding: 8px 316px 8px clamp(16px, 4vw, 56px) !important;
    display: flex !important; flex-direction: row !important; align-items: center !important; flex-wrap: nowrap; gap: 6px 18px !important;
    border: 0 !important; border-radius: 0 !important; box-shadow: none !important; z-index: 60; overflow: visible !important; transform: none !important;
    background: var(--qp-band) fixed !important; color: var(--qp-band-ink);
  }
  aside.sidebar::before, aside.sidebar::after { display: none !important; }
  .sidebar .sidebar-toggle, .sidebar .privacy, .sidebar .sidebar-quick-search, .sidebar .brand small,
  .sidebar nav > .nav-pod > .nav-group-label:not(summary), .sidebar .nav > span:first-child, .sidebar .nav .nav-count,
  .sidebar .nav small, .sidebar .nav kbd, .sidebar-tooltip { display: none !important; }
  .sidebar .brand { display: flex !important; align-items: center; gap: 10px; padding: 0 !important; margin: 0 !important; border: 0 !important; flex: 0 0 auto; min-width: 0; }
  .sidebar .brand .mark { width: 34px !important; height: 34px !important; border-radius: 10px !important; background: #FFFFFF !important; color: var(--au-1) !important; box-shadow: none !important; }
  .sidebar .brand .brand-copy, .sidebar .brand .brand-title-row, .sidebar .brand .brand-title-row * { font-family: var(--font-sans); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF; }
  .sidebar nav { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; align-items: center !important; gap: 0 2px !important; flex: 1 1 auto; min-width: 0; padding: 0 !important; margin: 0 !important; overflow: visible !important; max-height: none !important; }
  .sidebar nav > .nav-pod:not(details) { display: contents !important; }
  html[data-theme] body aside.sidebar nav .nav, .sidebar details.nav-pod > summary {
    width: auto !important; min-height: 44px; box-sizing: border-box; margin: 0 !important; padding: 11px 11px !important; gap: 0 !important;
    border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
    background-color: transparent !important; background-image: linear-gradient(#FFFFFF, #FFFFFF) !important; background-size: 0% 2px !important; background-position: 50% 100% !important; background-repeat: no-repeat !important;
    color: var(--qp-band-ink-2) !important; font-family: var(--font-sans); font-size: 15px !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important; white-space: nowrap;
    transition: background-size .3s ease, color .2s ease;
  }
  .sidebar .nav::before, .sidebar .nav::after { display: none !important; }
  .sidebar .nav .nav-label, .sidebar .nav b { font-weight: inherit !important; color: inherit !important; opacity: 1 !important; width: auto !important; }
  html[data-theme] body aside.sidebar nav .nav:hover, .sidebar details.nav-pod > summary:hover { background-size: 70% 2px !important; color: #FFFFFF !important; }
  html[data-theme] body aside.sidebar nav .nav.active, .sidebar details.nav-pod.qp-has-active > summary {
    color: #FFFFFF !important; font-weight: 700 !important; background-image: linear-gradient(var(--qp-yellow), var(--qp-yellow)) !important; background-size: 100% 2px !important;
  }
  .sidebar details.nav-pod { position: relative; display: block !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
  .sidebar details.nav-pod > summary { display: flex !important; align-items: center; gap: 4px; list-style: none; cursor: pointer; }
  .sidebar details.nav-pod > summary::-webkit-details-marker { display: none; }
  .sidebar details.nav-pod > .qp-menu {
    position: absolute; top: calc(100% + 8px); left: 0; z-index: 70; min-width: 230px; padding: 8px; display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-xl);
  }
  .sidebar details.nav-pod > .qp-menu .nav-pod { display: contents !important; }
  .sidebar details.nav-pod > .qp-menu .nav-group-label { display: none !important; }
  html[data-theme] body aside.sidebar nav .qp-menu .nav {
    width: 100% !important; justify-content: flex-start; text-align: left; padding: 10px 12px !important; border-radius: 10px !important;
    color: var(--text) !important; font-weight: 500 !important;
    background-image: linear-gradient(90deg, var(--surface-3), var(--surface-2)) !important; background-size: 0% 100% !important; background-position: 0 0 !important;
    transition: background-size .35s ease, padding-left .25s ease;
  }
  html[data-theme] body aside.sidebar nav .qp-menu .nav:hover { background-size: 100% 100% !important; color: var(--text) !important; padding-left: 16px !important; }
  html[data-theme] body aside.sidebar nav .qp-menu .nav.active { background-size: 100% 100% !important; color: var(--accent-text) !important; font-weight: 700 !important; }

  /* An open answer drawer covers the menu bar. At its usual layer (50) its own header -- the title, Split view and
     Close -- sat underneath the bar (60), so a guideline or textbook answer showed no way to close it. */
  .drawer { z-index: 75; }
  .drawer-backdrop { z-index: 74; }

  main > header#topNavbar {
    position: fixed !important; top: 0 !important; right: clamp(16px, 4vw, 56px) !important; left: auto !important; z-index: 61; width: auto !important; height: 60px; min-height: 0 !important;
    margin: 0 !important; padding: 0 !important; display: flex !important; align-items: center; background: none !important; border: 0 !important; box-shadow: none !important;
  }
  header#topNavbar .header-title-block, header#topNavbar #topModeDock, header#topNavbar #peakStatus, header#topNavbar #cmdPaletteToggle { display: none !important; }
  header#topNavbar .header-tools { display: flex !important; flex-wrap: nowrap !important; align-items: center; gap: 8px !important; margin: 0 !important; }
  #trackSwitch { padding: 3px !important; gap: 2px !important; border-radius: 12px !important; background: rgba(255,255,255,.14) !important; border: 1px solid rgba(255,255,255,.35) !important; box-shadow: none !important; }
  #trackSwitch button { border-radius: 9px !important; padding: 6px 9px !important; min-height: 32px; box-shadow: none !important; background: none !important; color: #FFFFFF !important; transition: background-color .2s ease, transform .2s ease; }
  #trackSwitch button:hover { background: rgba(255,255,255,.18) !important; transform: translateY(-1px); }
  #trackSwitch button:not([aria-pressed="true"]) span { display: none !important; }
  #trackSwitch button[aria-pressed="true"] { background: #FFFFFF !important; color: var(--au-3) !important; font-weight: 700; }
  #userMenuBtn .user-name, #userMenuBtn .user-role-badge { display: none !important; }
  header#topNavbar .top-options-toggle {
    border-radius: 12px !important; background: rgba(255,255,255,.14) !important; border: 1px solid rgba(255,255,255,.35) !important; color: #FFFFFF !important;
    box-shadow: none !important; min-height: 40px; padding: 4px 9px !important; transition: background-color .2s ease, transform .2s ease;
  }
  header#topNavbar .top-options-toggle:hover { background: rgba(255,255,255,.26) !important; transform: translateY(-1px); }
  header#topNavbar .top-options-toggle svg { color: #FFFFFF; }
  header#topNavbar .user-avatar-icon { background: #FFFFFF !important; color: var(--au-3) !important; }
  #topOptionsToggle { font-size: 0 !important; }
  #topOptionsToggle svg { width: 16px; height: 16px; }
  #topOptionsToggle .top-options-chevron { font-size: 12px; }

  /* full width */
  main { margin: 0 !important; padding: clamp(16px, 3vw, 36px) clamp(16px, 4vw, 56px) 84px !important; width: 100% !important; max-width: none !important; box-sizing: border-box; }
}

/* =====================================================================
   HEADING BAND: the green continues under the menu on Home and Find
   ===================================================================== */
.home-hero, html body section#single #singleHomeHero {
  position: relative; z-index: 0; --hero-ink: #FFFFFF; --hero-ink-2: #E0F6F8;
  background: none !important; color: #FFFFFF !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  margin: 0 0 clamp(16px, 2.4vw, 28px) !important; padding: 0 0 clamp(26px, 3.4vw, 44px) !important; min-height: 0 !important; overflow: visible !important; max-width: none !important;
}
.home-hero::after, html body section#single #singleHomeHero::after { display: none !important; }
.home-hero::before, html body section#single #singleHomeHero::before {
  content: "" !important; display: block !important; position: absolute; z-index: -1; top: -200px; bottom: 0; left: -100vw; right: -100vw; opacity: 1 !important;
  background: radial-gradient(60vw 420px at 100% 0, rgba(0, 184, 196, .28) 0, rgba(0, 184, 196, 0) 70%) fixed, var(--qp-band) fixed !important;
  border: 0 !important; border-radius: 0 !important; transform: none !important; filter: none !important; inset-inline: -100vw;
}
.home-hero > svg, .home-hero-glyph { display: none !important; }

/* ---- Home ---- */
#home > .home-root { max-width: none !important; }
.home-bento { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)) !important; gap: clamp(14px, 2vw, 24px) !important; }
.home-bento > * { grid-row: auto !important; grid-column: auto !important; }
.home-bento > .home-hero, .home-bento > .home-months-card, .home-bento > .home-tiles { grid-column: 1 / -1 !important; }
.home-bento > .home-resume { grid-column: span 2 !important; }
@media (max-width: 620px) { .home-bento > .home-resume { grid-column: 1 / -1 !important; } }

.home-hero { display: flex !important; flex-wrap: wrap; align-items: flex-end; gap: 18px clamp(24px, 4vw, 56px); }
.home-hero .home-head { flex: 1 1 320px; min-width: 0; }
.home-hero .home-head h2 { font-family: var(--font-sans); font-weight: 800 !important; font-size: clamp(30px, 4.6vw, 54px) !important; line-height: 1.05; letter-spacing: -0.03em !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF; margin: 6px 0 !important; }
.home-hero .home-head p { color: #E0F6F8 !important; -webkit-text-fill-color: #E0F6F8; font-size: 17px; }
.home-hero .home-track { display: inline-flex; background: rgba(255,255,255,.14) !important; border: 1px solid rgba(255,255,255,.35) !important; border-radius: 999px !important; padding: 4px 12px !important; color: #FFFFFF !important; }
.home-hero .home-track * { color: #FFFFFF !important; }
.home-hero .home-search, :root[data-theme="dark"] .home-hero .home-search {
  flex: 2 1 360px; min-width: 0; box-sizing: border-box; background: var(--surface) !important; border: 0 !important; border-radius: 18px !important; padding: 8px !important;
  box-shadow: 0 18px 40px -16px rgba(7, 29, 53, .6) !important; transition: box-shadow .3s ease, transform .3s ease;
}
.home-hero .home-search:hover, .home-hero .home-search:focus-within { box-shadow: 0 0 0 4px rgba(255,255,255,.28), 0 22px 44px -14px rgba(7, 29, 53, .6) !important; transform: translateY(-1px); }
.home-hero .home-search svg { color: var(--accent) !important; }
.home-hero .home-search input, :root[data-theme="dark"] .home-hero .home-search input { color: var(--text) !important; background: transparent !important; box-shadow: none !important; border: 0 !important; font-size: 17px; min-height: 48px; }
.home-hero .home-search input::placeholder, :root[data-theme="dark"] .home-hero .home-search input::placeholder { color: var(--text-3) !important; }
.home-hero .home-search .primary { min-height: 48px; padding: 0 28px !important; }

.home-card { border-radius: 22px !important; }
.home-card.home-resume {
  border: 0 !important; color: #FFFFFF !important;
  background: radial-gradient(80% 120% at 100% 100%, rgba(0, 184, 196, .28) 0, rgba(0, 184, 196, 0) 60%), linear-gradient(135deg, var(--au-3), var(--au-1)) !important;
  box-shadow: 0 20px 44px -20px rgba(0, 109, 120, .55) !important;
}
.home-resume h3 { color: #FFFFFF !important; font-weight: 800; letter-spacing: -0.02em; font-size: clamp(22px, 2.2vw, 30px); }
.home-resume .home-kicker, .home-resume .home-muted { color: #E0F6F8 !important; }
.home-resume .home-bar { background: rgba(255,255,255,.22) !important; border-radius: 999px; height: 10px; overflow: hidden; }
.home-resume .home-bar i { background: var(--qp-yellow) !important; border-radius: 999px; }
.home-resume .home-ring, .home-resume .home-ring * { color: #FFFFFF !important; }
.home-resume .home-cta { background-image: none !important; background-color: #FFFFFF !important; color: var(--au-3) !important; box-shadow: none !important; }
.home-resume .home-cta svg { color: var(--au-3) !important; }
.home-resume .home-cta:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 8px 18px -6px rgba(0,0,0,.4) !important; }

.home-kicker { font-weight: 700; color: var(--text-2); }
.home-stats b { font-family: var(--font-sans); font-weight: 800 !important; letter-spacing: -0.02em; color: var(--accent-text) !important; }
.home-stat-icon, .home-tile-icon, .fc-deck-icon, .file-icon {
  background: var(--aurora-btn) !important; color: #FFFFFF !important; border-radius: 12px !important; box-shadow: none !important; transition: transform .3s ease;
}
.home-stat-icon svg, .home-tile-icon svg { color: #FFFFFF !important; }
.home-card:hover .home-stat-icon, .home-tile:hover .home-tile-icon { transform: rotate(-6deg) scale(1.08); }
.home-tile {
  border: 1px solid var(--border) !important; border-radius: 18px !important; background-color: var(--surface) !important; box-shadow: none !important;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.home-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm) !important; border-color: var(--border-2) !important; }
.home-card.home-tiles { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; transform: none !important; }
.home-month { border-radius: 14px !important; transition: background-size .4s ease, transform .25s ease; background-image: linear-gradient(90deg, var(--surface-3), var(--surface-2)) !important; background-size: 0% 100% !important; background-repeat: no-repeat !important; }
.home-month:hover { background-size: 100% 100% !important; transform: translateX(4px); }
.home-month-bar { background: var(--surface-3) !important; border-radius: 999px; overflow: hidden; }
.home-month-bar i { background: var(--aurora-btn) !important; border-radius: 999px; }

/* ---- Find a question: heading band and search box ---- */
section#single { max-width: none !important; }
html body section#single #singleHomeHero { text-align: left !important; align-items: flex-start !important; }
html body section#single #singleHomeHero h2.rq-clean-title {
  color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; background: none !important; text-shadow: none !important; text-align: left !important;
  font-family: var(--font-sans); font-weight: 800 !important; font-size: clamp(30px, 4.6vw, 54px) !important; line-height: 1.05; letter-spacing: -0.03em !important; margin: 8px 0 6px !important;
}
html body section#single #singleHomeHero .rq-clean-subtitle { color: #E0F6F8 !important; -webkit-text-fill-color: #E0F6F8 !important; text-align: left !important; margin-left: 0 !important; font-size: 17px; }
html body section#single #singleHomeHero .rq-clean-badge { background: rgba(255,255,255,.14) !important; border: 1px solid rgba(255,255,255,.35) !important; border-radius: 999px !important; padding: 4px 12px !important; box-shadow: none !important; }
html body section#single #singleHomeHero .rq-clean-badge, html body section#single #singleHomeHero .rq-clean-badge * { color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; }
#single .search-layout { max-width: none !important; }
#single .composer, #single .rq-clean-composer {
  background: var(--surface) !important; border: 1px solid var(--border) !important; border-radius: 22px !important; box-shadow: var(--shadow-md) !important; outline: 0 !important;
  transition: box-shadow .3s ease, transform .3s ease;
}
#single .composer:focus-within { box-shadow: 0 0 0 4px var(--accent-ring), var(--shadow-lg) !important; }
#single .rq-clean-card { border: 1px solid var(--border) !important; border-radius: 18px !important; box-shadow: none !important; background-color: var(--surface) !important; transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease; }
#single .rq-clean-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm) !important; border-color: var(--border-2) !important; }
#single .rq-quick-pill, #single .history-chip { border-radius: 999px !important; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
#single .rq-quick-pill:hover, #single .history-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: no-preference) {
  @keyframes qp-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .view.active { animation: qp-rise .35s ease; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---- fitted against the running app (2026-11-13) ---- */
html { overflow-x: clip; }
:root, :root[data-theme="light"], :root[data-theme="dark"] { --ink-tile: var(--surface); --ink-tile-text: var(--text); --ink-tile-text-2: var(--text-2); }
.home-card.home-flash { background: var(--surface) !important; color: var(--text) !important; }
.home-flash .home-kicker, .home-flash span { color: var(--text-2) !important; }
.home-flash .home-link, .home-card .home-link { color: var(--accent-text) !important; }
/* studio.css gives this link the dark --au-1 in dark mode, made for its light ink tile; here the tile is the dark card
   (#0F2A22 then), where #064836 read at 1.45 : 1. Medicine's light accent (now #5EDDE4) reads at 9.6 : 1 (Nursing #BFDBFE 10.8,
   Dentistry #DDD6FE 11.0). For a student; the admin's Home is as before (the owner may extend it to the admin). */
:root[data-theme="dark"][data-role="student"] .home-flash .home-link { color: var(--accent-text) !important; }
.home-resume .home-ring { background: conic-gradient(var(--qp-yellow) calc(var(--p, 0) * 1%), rgba(255, 255, 255, .22) 0) !important; }
.home-resume .home-ring > span { background: var(--au-3) !important; color: #FFFFFF !important; border-radius: 50% !important; }
.home-resume .home-cta, .home-resume .home-cta:hover { color: var(--au-3) !important; -webkit-text-fill-color: var(--au-3); }
.home-bento > .home-stat, .home-bento > .home-flash { min-width: 0; }
section#single { overflow: visible !important; }
html body section#single #singleHomeHero h2.rq-clean-title { font-family: var(--font-sans) !important; }
@media (min-width: 901px) {
  #trackSwitch button:not([aria-pressed="true"]), #trackSwitch button:not([aria-pressed="true"]) svg { color: #FFFFFF !important; stroke: #FFFFFF !important; }
  .sidebar .brand .mark, .sidebar .brand .mark * { color: var(--au-1) !important; -webkit-text-fill-color: var(--au-1) !important; }
  .sidebar .brand .mark svg rect { fill: #FFFFFF !important; }
  .sidebar .brand .mark svg path { stroke: var(--au-1) !important; }
  html[data-theme] body aside.sidebar nav .nav.active, .sidebar details.nav-pod.qp-has-active > summary { background-position: 50% 100% !important; background-repeat: no-repeat !important; }
}

/* ---- medium-width windows: keep the menu on one line where possible ---- */
@media (min-width: 901px) and (max-width: 1320px) {
  aside.sidebar { padding-right: 232px !important; gap: 6px 12px !important; }
  .sidebar .brand .brand-copy { display: none !important; }
  html[data-theme] body aside.sidebar nav .nav, .sidebar details.nav-pod > summary { padding: 11px 8px !important; font-size: 14px !important; }
}

/* ---- the space the menu leaves for the fixed tools at its right (launch 2026-11-23) ----
   The tools (Options, the account button and, for the admin, the exam-track switch) sit over the right end of the bar,
   so the bar keeps that much free on its right, whatever the width. The admin's exam-track switch shows all three
   tracks as icons at every wide width: at 901-1320 px it used to hide the two other tracks, so the admin could not
   switch at laptop widths. Each icon keeps its track's name as a tooltip, and the filled one is the track on view.
   A student has no track switch, so the menu may come closer to the tools. */
@media (min-width: 901px) {
  html[data-role="admin"] #trackSwitch button span { display: none !important; }
  html[data-role="admin"] #trackSwitch button { padding: 6px 7px !important; }
  html[data-role="admin"] aside.sidebar { padding-right: calc(clamp(16px, 4vw, 56px) + 252px) !important; }
  html[data-role="student"] aside.sidebar { padding-right: calc(clamp(16px, 4vw, 56px) + 148px) !important; }
}
/* the admin's eight menu items fit one row down to about 1000 px with a little less space around each */
@media (min-width: 901px) and (max-width: 1100px) {
  html[data-role="admin"] body aside.sidebar nav .nav, html[data-role="admin"] .sidebar details.nav-pod > summary { padding: 11px 7px !important; }
}
