/* ==========================================================================
   CampusConnect design system — light academic theme
   Loaded AFTER each layout's inline <style>, so the tokens below override the
   old per-page values and the shell rules unify the four role layouts.
   Static file on purpose: the app's views don't use Vite, so no build step.
   ========================================================================== */

@font-face {
  font-family: 'IBM Plex Sans Variable';
  src: url('../fonts/ibm-plex-sans-latin-wght.woff2') format('woff2-variations'),
       url('../fonts/ibm-plex-sans-latin-wght.woff2') format('woff2');
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colour: light academic palette — soft blue surfaces, navy for structure only */
  --navy: #25315C;               /* sidebar surface + strong headings on light */
  --navy-2: #2F3E70;
  --sky: #78B5E8;                /* banner gradient end, light accents */
  --sky-deep: #397FBE;           /* primary blue */
  --laurel: #1F6B45;             /* accessible green for text/badges */
  --laurel-soft: #4C9A70;        /* brand accent green: stat numbers, chart highlight */
  --paper: #F5F8FC;              /* main background */
  --ink: #263451;                /* primary text */
  --ink-2: #3C4A6B;
  --rule: #E5ECF4;               /* borders */
  --dark: var(--navy);

  --sidebar-bg: #FFFFFF;
  --sidebar-bg-2: #FFFFFF;
  --sidebar-ink: #3C4A6B;        /* nav text */
  --sidebar-hover: #F0F6FC;
  --sidebar-active: #EAF3FC;
  --sidebar-active-border: #CFE2F4;
  --sidebar-muted: #5B6A82;

  /* Logo: balanced mid-tones, readable on white */
  --side-tile: rgba(14, 52, 92, .12);          /* resting nav button */
  --side-tile-hover: rgba(14, 52, 92, .22);
  --side-tile-active: rgba(14, 52, 92, .34);
  --logo-blue: #2B78BA;
  --logo-green: #2F8A5C;

  /* Legacy token names, remapped so the existing var(--accent) etc. adapt */
  --bg: var(--paper);
  --surface: #FFFFFF;
  --surface2: #EAF3FC;           /* soft blue surface */
  --light-blue: #D7E9FA;
  --border: var(--rule);
  --text: var(--ink);
  --muted: #5B6A82;
  --accent: #397FBE;             /* primary blue */
  --accent2: #397FBE;
  --accent-light: #EAF3FC;       /* soft blue */
  --accent-ink: #2A6399;
  --green: var(--laurel);     --green-light: #E3F3EA;
  --yellow: #8F5A00;          --yellow-light: #FBF0D9;
  --red: #A93232;             --red-light: #F9E5E3;
  --purple: #5A4A9E;          --purple-light: #EEEBF7;

  --banner-start: #2E6DAD;
  --banner-end: #3477B8;

  /* Type */
  --font-display: 'IBM Plex Sans Variable', 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'IBM Plex Sans Variable', 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Shape and depth */
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 16px;
  --shadow-1: 0 1px 3px rgba(40, 65, 100, .07), 0 1px 2px rgba(40, 65, 100, .05);
  --shadow-pop: 0 20px 44px -16px rgba(40, 65, 100, .24), 0 0 0 1px rgba(40, 65, 100, .05);
  --ring: 0 0 0 3px rgba(57, 127, 190, .22);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---- Base ---------------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
input, select, textarea, button { font-family: inherit; }
::selection { background: #cfe3f4; color: var(--ink); }

/* Figures line up in columns and stat rows */
table, .stat-val, .stat-num, .num { font-variant-numeric: tabular-nums; }

/* The serif-weight display voice: page titles, section labels and big numbers */
body .page-title,
body .card-title,
body .hero-title,
body .welcome-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.012em;
}

/* Small uppercase section label above page titles (eyebrow) */
body .hero-eyebrow, body .page-eyebrow {
  display: block;
  color: var(--accent);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* ---- Focus (keyboard) ---------------------------------------------------- */
a:focus-visible, button:focus-visible, summary:focus-visible,
[role="button"]:focus-visible, [tabindex]:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
body .sidebar a:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

/* ---- Skip link ----------------------------------------------------------- */
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 1000;
  padding: 10px 14px; border-radius: var(--r-md);
  background: var(--navy); color: #fff; font-size: .875rem; font-weight: 600;
  text-decoration: none; transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

/* ---- Motion -------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   App shell (student, officer, faculty/adviser, SESS)
   One softened-navy rail serves all four roles; the main area stays a bright,
   pale blue-gray so the interface never reads as a dark dashboard.
   ========================================================================== */
body .sidebar {
  background: var(--logo-blue);
  color: #fff;
  border-right: 0;
  box-shadow: none;
}
body .sidebar .logo {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
}
body .sidebar .logo-seal { width: 38px; height: 38px; flex: none; border-radius: 50%; background: #fff; padding: 2px; }
body .sidebar .logo-text { display: flex; flex-direction: column; min-width: 0; }
body .sidebar .logo-name {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.12rem; line-height: 1.2; letter-spacing: -.01em; color: #fff;
}
body .sidebar .logo-name span { color: #fff; font-weight: 400; }
body .sidebar .logo-sub {
  margin-top: 3px; font-size: .76rem; font-weight: 500;
  text-transform: none; color: #fff;
}

body .sidebar .greeting-chip,
body .sidebar .org-chip {
  margin: 14px 14px 6px; padding: 11px 13px;
  background: var(--side-tile); border: 0; border-radius: var(--r-md);
}
body .sidebar .org-chip { transition: background-color .15s var(--ease); }
body .sidebar .org-chip:hover { background: var(--side-tile-hover); }
body .sidebar .greeting-chip .hi { color: #fff; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .68rem; }
body .sidebar .greeting-chip .name-text,
body .sidebar .org-chip .org-name { font-weight: 600; font-size: .95rem; color: #fff; }
body .sidebar .org-chip .org-meta { color: #fff; font-size: .78rem; }

/* Navigation buttons: one shape for all four roles.
   Resting < hover < active are three clearly separate blue tones, all with white text >= 5:1.
   The icon sits in a small rounded chip so every item reads as a button, not bare text. */
body .sidebar .nav { padding: 6px 12px 16px; gap: 4px; scrollbar-width: none; -ms-overflow-style: none; }
body .sidebar .nav::-webkit-scrollbar { display: none; }
body .sidebar .nav a {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 7px 12px 7px 8px;
  min-height: 44px;
  border: 0; border-radius: var(--r-md);
  background: var(--side-tile);
  color: #fff;
  font-size: .87rem; font-weight: 500; line-height: 1.3;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
body .sidebar .nav a svg {
  box-sizing: border-box;
  width: 30px; height: 30px; padding: 6px; flex: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, .16);
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
  color: #fff;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
body .sidebar .nav a:hover { background: var(--side-tile-hover); color: #fff; }
body .sidebar .nav a:hover svg { background: rgba(255, 255, 255, .26); }
body .sidebar .nav a.active { background: var(--side-tile-active); color: #fff; font-weight: 600; box-shadow: none; }
body .sidebar .nav a.active svg { background: #fff; color: var(--logo-blue); stroke-width: 2; }
body .sidebar .nav a.active::before {
  content: ''; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 4px;
  border-radius: 0 4px 4px 0; background: #fff;
}
body .sidebar .nav-section {
  padding: 18px 12px 6px; color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
body .sidebar .nav-section:first-child { padding-top: 10px; }
body .sidebar .nav .pill,
body .sidebar .nav .nav-badge {
  margin-left: auto; flex: none;
  background: #fff; color: var(--logo-blue);
  border-radius: 999px; font-size: .7rem; font-weight: 700; padding: 1px 7px;
}
body .sidebar .nav .nav-badge { color: var(--red); }

/* ---- Topbar -------------------------------------------------------------- */
body .topbar {
  background: var(--paper);
  box-shadow: none;
  border-bottom: 1px solid var(--rule);
}
body .page-title { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.15; color: var(--ink); }
body .topbar-search-input {
  background: var(--surface);
  border-color: var(--rule);
  border-radius: var(--r-md);
}
body .topbar-search-input:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
body .icon-btn, body .topbar-user-btn {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
body .icon-btn:hover, body .topbar-user-btn:hover { border-color: var(--accent); background: var(--accent-light); }
body .hamburger-btn { background: var(--surface); border-radius: var(--r-md); }
body .topbar-avatar { background: var(--accent); }

/* Dropdown menus: one shadow, soft border, generous radius */
body .notif-dropdown, body .user-dropdown, body .topbar-search-results {
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop);
}

@media (max-width: 900px) {
  body .sidebar { box-shadow: var(--shadow-pop); }
  body .page-title { font-size: 1.15rem; }
}

/* ==========================================================================
   Dashboards — welcome banner
   Plain, uncoloured greeting: dark text straight on the page background.
   ========================================================================== */
body .hero, body .welcome-banner {
  background: none;
  color: var(--ink);
  box-shadow: none;
  border: 0;
  border-radius: 0;
  padding: 4px 0 8px;
  margin-bottom: 4px;
  position: relative;
}
body .hero::before, body .hero::after, body .welcome-banner::before, body .welcome-banner::after { display: none; }
body .welcome-banner[style*="border-top"] { border-top: 0 !important; }
body .hero h2, body .welcome-banner h2, body .hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 1.05rem + 1.1vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -.012em;
  color: var(--ink);
  margin: 0 0 8px;
}
body .hero-title span { color: inherit; }
body .hero p, body .welcome-banner p, body .hero-desc {
  color: var(--ink-2);
  opacity: 1;
  font-size: .92rem;
  line-height: 1.6;
  max-width: 60ch;
}
body .hero strong, body .welcome-banner strong { color: var(--ink); font-weight: 700; }
body .hero a, body .welcome-banner a {
  color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px;
}
body .hero-eyebrow { color: var(--accent-ink); }
body .hero-tag, body .hero-chip {
  background: var(--accent-light); border: 1px solid #B9D6EE; color: var(--accent-ink);
}
/* SESS: the stat box inside the greeting becomes a plain bordered card */
body .hero-right { background: var(--surface); border: 1px solid var(--rule); }
body .hero-right .h-stat { border-right-color: var(--rule); }
body .hero-right .h-num, body .hero-right .h-num.warn { color: var(--accent); }
body .hero-right .h-lab { color: var(--muted); }

@media (max-width: 700px) {
  body .hero, body .welcome-banner { padding: 2px 0 6px; }
}

/* ==========================================================================
   Stat cards — white rounded tiles on the pale blue-gray background
   ========================================================================== */
body .stats, body .db-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border: 0;
  margin-bottom: 24px;
}
body .stat-card, body .db-stat-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 18px 20px;
}
body .stat-card:first-child, body .db-stat-card:first-child { padding-left: 20px; border-left: 1px solid var(--rule); }
/* Stat icons: a small tinted tile with an outline glyph, one radius for all roles */
body .stat-icon, body .stat-icon-box, body .ps-icon, body .db-stat-icon { border-radius: var(--r-md); flex: none; }
body .stat-icon-box, body .db-stat-top { margin-bottom: 10px; }
body .stat-val, body .stat-right .val, body .ps-val, body .h-num, body .db-stat-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
body .stat-label, body .stat-right .lbl, body .ps-lab, body .db-stat-label {
  color: var(--muted); font-size: .8rem; font-weight: 600; margin-top: 6px;
}
@media (max-width: 900px) {
  body .stats, body .db-stats { grid-template-columns: repeat(2, 1fr); }
  body .stat-card:first-child, body .db-stat-card:first-child { border-left: 1px solid var(--rule); }
}
@media (max-width: 480px) {
  body .stat-val, body .stat-right .val, body .ps-val, body .db-stat-val { font-size: 1.6rem; }
  body .stat-card, body .db-stat-card { padding: 14px 16px; }
  body .stats, body .db-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* SESS dashboard has its own header bar instead of the shared topbar */
body .dash-bar { background: var(--paper); box-shadow: none; border-bottom: 1px solid var(--rule); }
body .dash-bar-left h1 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; letter-spacing: -.012em; color: var(--ink); }
body .dash-bar-left p { color: var(--muted); }
body .bar-chip, body .bar-notif-btn {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md); color: var(--ink-2);
}
body .bar-chip.green { background: var(--green-light); border-color: #AFD3BD; color: var(--laurel); }

/* Small headings: a touch of word-spacing keeps the semi-bold display face legible below ~1.2rem */
body .card-title { letter-spacing: 0; word-spacing: .02em; }

/* Phones: page-specific topbar actions must not push the bar wider than the screen */
@media (max-width: 600px) {
  body .topbar-right > span:not([class]) { display: none; }
  body .topbar-right > a.btn-primary, body .topbar-right > .btn-primary {
    font-size: 0; padding: 9px 12px; white-space: nowrap; line-height: 1;
  }
  body .topbar-right > a.btn-primary::before, body .topbar-right > .btn-primary::before {
    content: '+ New'; font-size: .8rem; font-weight: 600;
  }
}

/* Trend chips on adviser/db stat cards */
body .db-trend { border-radius: 999px; }

/* Form pages: a light, airy header instead of a dark slab */
body .form-card-header {
  background: var(--accent-light); color: var(--ink); border-bottom: 1px solid var(--rule);
}
body .form-card-header h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; letter-spacing: -.01em; color: var(--ink); }
body .form-card-header p { color: var(--ink-2); opacity: 1; }
.upload-area .upload-icon { color: var(--accent); opacity: 1; display: flex; justify-content: center; }
.upload-area { background: var(--accent-light); border: 1.5px dashed #B9D6EE; border-radius: var(--r-md); }

/* Generic cards and surfaces used throughout the app pick up the new radius/shadow automatically via var(--r-lg)/var(--shadow-1) */

/* ==========================================================================
   Workflow status language (one set of colours for every role)
   Pending: amber (waiting)  Under review: sky (being looked at)
   Approved: laurel green    Rejected: red
   Revision requested: violet (returned to the officer)
   Every state also carries a text label and an icon shape.
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.st {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px 3px 8px; border: 1px solid transparent; border-radius: 999px;
  font-size: .78rem; font-weight: 600; line-height: 1.35; white-space: nowrap; vertical-align: middle;
}
.st-ico { flex: none; }
.st-sub { font-weight: 500; opacity: .85; padding-left: 6px; margin-left: 1px; border-left: 1px solid currentColor; border-left-color: color-mix(in srgb, currentColor 35%, transparent); }
.st-pending            { color: #7A4D00; background: #FBF0D9; border-color: #EBD6A4; }
.st-under_review       { color: #1F5686; background: #E4EFF9; border-color: #B9D6EE; }
.st-approved           { color: #14502C; background: #E1F0E7; border-color: #AFD3BD; }
.st-rejected           { color: #8F2A2A; background: #F9E5E3; border-color: #E8B7B2; }
.st-revision_requested { color: #4C3D8C; background: #EEEBF7; border-color: #CFC7E8; }

/* Older markup (status-pill / status-badge) takes the same colours, so pages not yet
   rebuilt around <x-status-badge> still agree with the ones that are. */
body .status-pill, body .status-badge {
  display: inline-flex; align-items: center; border: 1px solid transparent; border-radius: 999px;
  padding: 3px 10px; font-size: .75rem; font-weight: 600; letter-spacing: 0; text-transform: none; white-space: nowrap;
}
body .s-pending, body .sp-pending                       { color: #7A4D00; background: #FBF0D9; border-color: #EBD6A4; }
body .s-under_review, body .sp-under_review             { color: #1F5686; background: #E4EFF9; border-color: #B9D6EE; }
body .s-approved, body .sp-approved                     { color: #14502C; background: #E1F0E7; border-color: #AFD3BD; }
body .s-rejected, body .sp-rejected                     { color: #8F2A2A; background: #F9E5E3; border-color: #E8B7B2; }
body .s-revision_requested, body .sp-revision_requested { color: #4C3D8C; background: #EEEBF7; border-color: #CFC7E8; }

/* ---- Approval route ------------------------------------------------------ */
.wf { --wf-line: var(--rule); }
.wf-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.wf-step { position: relative; display: flex; flex-direction: column; gap: 10px; padding-right: 14px; min-width: 0; }
.wf-step::before {               /* connector to the next step */
  content: ''; position: absolute; top: 13px; left: 30px; right: 4px; height: 2px; background: var(--wf-line);
}
.wf-step:last-child::before { display: none; }
.wf-step.wf-done::before { background: var(--laurel); }
.wf-mark {
  position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 2px solid var(--wf-line); color: var(--muted);
  font-size: .72rem; font-weight: 700;
}
.wf-done .wf-mark      { background: var(--laurel); border-color: var(--laurel); color: #fff; }
.wf-current .wf-mark   { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px rgba(57, 127, 190, .16); }
.wf-stopped .wf-mark   { background: var(--red); border-color: var(--red); color: #fff; }
.wf-attention .wf-mark { background: var(--purple); border-color: var(--purple); color: #fff; }
.wf-skipped .wf-mark   { background: var(--surface2); border-style: dashed; color: var(--muted); }
.wf-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wf-label { font-size: .86rem; font-weight: 600; color: var(--ink); }
.wf-cap { font-size: .8rem; line-height: 1.4; color: var(--ink-2); overflow-wrap: anywhere; }
.wf-time { font-size: .76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.wf-upcoming .wf-label, .wf-skipped .wf-label { color: var(--muted); font-weight: 500; }
.wf-upcoming .wf-cap, .wf-skipped .wf-cap { color: var(--muted); }
.wf-current .wf-label { color: var(--accent-ink); }
.wf-stopped .wf-label { color: var(--red); }
.wf-attention .wf-label { color: var(--purple); }

.wf-note { margin-top: 16px; padding: 12px 14px; border-left: 3px solid var(--rule); background: var(--surface2); border-radius: 0 var(--r-md) var(--r-md) 0; }
.wf-note-h { font-size: .76rem; font-weight: 700; color: var(--ink-2); margin-bottom: 3px; }
.wf-note p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--ink); white-space: pre-line; }
.wf-note-done { border-left-color: var(--laurel); }
.wf-note-stopped { border-left-color: var(--red); background: var(--red-light); }
.wf-note-attention { border-left-color: var(--purple); background: var(--purple-light); }
.wf-next { margin: 16px 0 0; font-size: .88rem; line-height: 1.55; color: var(--ink-2); }
.wf-next strong { color: var(--ink); font-weight: 600; }

@media (max-width: 720px) {
  .wf-steps { grid-template-columns: 1fr; }
  .wf-step { flex-direction: row; align-items: flex-start; gap: 12px; padding: 0 0 18px; }
  .wf-step:last-child { padding-bottom: 0; }
  .wf-step::before { top: 26px; bottom: 0; left: 12px; right: auto; width: 2px; height: auto; }
  .wf-body { padding-top: 2px; }
}

/* ---- Empty state --------------------------------------------------------- */
.cc-empty { padding: 40px 20px; text-align: center; }
.cc-empty-title { margin: 0 0 4px; font-size: .98rem; font-weight: 600; color: var(--ink); }
.cc-empty-text { margin: 0 auto; max-width: 46ch; font-size: .88rem; line-height: 1.55; color: var(--muted); }
.cc-empty-action { margin-top: 14px; }

/* Approval route inside a permit's detail card */
.route-block { padding: 18px 20px 20px; border-bottom: 1px solid var(--rule); }
.route-block .m-label { margin-bottom: 14px; }
.foot-status { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.foot-note { font-size: .82rem; font-weight: 600; color: var(--accent-ink); }

/* ---- Permit work queue (dashboards) ------------------------------------- */
.pq { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); margin: 0 0 24px; box-shadow: var(--shadow-1); }
.pq-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--rule); }
.pq-title { margin: 0; font-size: 1rem; font-weight: 600; color: var(--ink); }
.pq-count { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; line-height: 1.6; vertical-align: 2px; }
.pq-all { font-size: .84rem; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.pq-all:hover { text-decoration: underline; text-underline-offset: 3px; }
.pq-list { list-style: none; margin: 0; padding: 0; }
.pq-list li + li { border-top: 1px solid var(--rule); }
.pq-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; align-items: center; gap: 14px; padding: 13px 20px; color: inherit; text-decoration: none; transition: background-color .15s var(--ease); }
.pq-row:hover { background: var(--accent-light); }
.pq-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pq-name { font-size: .93rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.pq-meta { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.pq-go { color: var(--muted); }
.pq-row:hover .pq-go { color: var(--accent); }
.pq-attn { border-left: 4px solid var(--accent); }
.pq-alert { border-left-color: var(--purple); }
@media (max-width: 560px) {
  .pq-row { grid-template-columns: minmax(0, 1fr) 14px; }
  .pq-row .st { grid-column: 1; justify-self: start; grid-row: 2; }
  .pq-go { grid-row: 1; grid-column: 2; }
}

/* ==========================================================================
   Light banners
   Detail headers, modal headers and info banners: white or soft-blue
   surfaces with a thin brand-blue top rule. White-on-blue text pairs from
   the old pages are restated here so nothing ends up white on white.
   ========================================================================== */
body .org-hero, body .an-header, body .info-banner {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--rule); border-top: 3px solid var(--sky-deep);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
body .org-hero-name, body .an-header-name, body .info-banner h3 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.012em; color: var(--ink);
}
body .org-hero-meta, body .org-hero-full, body .org-hero-hint, body .an-header-sub,
body .info-banner p, body .info-banner .b-stat-label, body .org-hero-stat .lbl {
  color: var(--muted); opacity: 1;
}
body .org-hero-stat .val, body .info-banner .b-stat { color: var(--ink); font-variant-numeric: tabular-nums; }
body .org-hero .org-avatar, body .org-modal-avatar {
  background: var(--accent-light); border-color: #B9D6EE; color: var(--accent-ink);
}
body .org-hero-badge, body .event-detail-status {
  background: var(--accent-light); border: 1px solid #B9D6EE; color: var(--accent-ink); border-radius: 999px;
}
body .org-hero .print-btn {
  background: var(--surface); color: var(--ink); border: 1px solid var(--rule); box-shadow: none; border-radius: var(--r-md);
}
body .org-hero .print-btn:hover { background: var(--accent-light); border-color: #B9D6EE; }

/* Event and announcement detail headers */
body .event-detail-header, body .ann-detail-header {
  background: var(--accent-light); color: var(--ink); border-bottom: 1px solid var(--rule);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
body .event-detail-title, body .ann-detail-title {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.012em; color: var(--ink);
}
body .event-detail-org, body .ann-detail-org { color: var(--accent-ink); opacity: 1; }

/* Import, e-signature and modal headers */
body .import-header, body .esig-header, body .esig-modal-header, body .org-modal-hero {
  background: var(--accent-light); border-bottom: 1px solid var(--rule);
}
body .org-modal-hero::before { display: none; }
body .import-header h2, body .esig-header-text .esig-title, body .esig-modal-header h3, body .org-modal-name { color: var(--ink); }
body .import-header p, body .esig-header-text .esig-sub, body .esig-modal-header p { color: var(--muted); }
body .org-modal-acronym { color: var(--accent-ink); }
body .esig-close, body .esig-modal-close, body .org-modal-close {
  background: var(--surface); border: 1px solid var(--rule); color: var(--ink-2); border-radius: var(--r-md);
}
body .esig-close:hover, body .esig-modal-close:hover, body .org-modal-close:hover { background: var(--accent-light); }

/* Profile card */
body .profile-card-banner { background: linear-gradient(120deg, var(--banner-start), var(--banner-end)); border-bottom: 0; }

/* Upload dropzones and icons stay legible on light surfaces */
body .upload-area { background: var(--accent-light); }

/* One soft scrim for every modal and overlay — never pure black */
body .esig-overlay, body .officer-modal-backdrop, body .edit-modal-backdrop, body .esig-modal-backdrop,
body .ann-modal-backdrop, body .org-modal-backdrop, body .sidebar-overlay.active {
  background: rgba(37, 49, 92, .45);
}
