@charset "utf-8";
/* ==========================================================================
   UC ELC — Redesign stylesheet (applied in place of the legacy main.css)
   --------------------------------------------------------------------------
   Source of truth: uc-redesign/mockups-final (approved mockups).
   This is a COSMETIC integration — no JSP markup was changed. The mockups
   were authored against the existing JSP DOM, so the same IDs/classes are
   reused verbatim.

   Two adaptations were made so the theme resolves without editing the JSP:

     1. Palette  — the mockup activates colors via [data-palette="heritage"]
        on <html>. The JSP has no such attribute, so the Heritage palette
        tokens are declared directly on :root below (site-wide default).

     2. Header   — the mockup switches header treatments via
        [data-header="..."] on <html>. The JSP can't carry that attribute,
        so school_header.jsp stamps the variant as a class on #header from
        the session:
           pre-auth  pages -> <div id="header" class="hdrClassic">
           post-auth pages -> <div id="header" class="hdrSplit">
        CSS keys on #header.hdrClassic / #header.hdrSplit (see PART 3). The
        variant is server-decided and depends on NO downstream DOM hook.
        (An earlier version keyed on #page:has(#logout), which broke when
        the logout bar was removed — do not recouple it.)

   navigation.css still loads after this file on every page; its legacy rules
   have been neutralized so they don't override the redesign.
   ========================================================================== */


/* ==========================================================================
   PART 1 — BASE (palette-agnostic), verbatim from ucelc-base.css
   ========================================================================== */

/* --------- Shape, motion and type scale (shared) --------- */
:root {
  --font-display: Georgia, 'Times New Roman', serif;
  --font-sans:    Arial, Helvetica, sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, 'SF Mono', Consolas, monospace;

  --fs-xs:   0.75rem;    /* 12 */
  --fs-sm:   0.8125rem;  /* 13 */
  --fs-base: 0.9375rem;  /* 15 */
  --fs-md:   1rem;       /* 16 */
  --fs-lg:   1.125rem;   /* 18 */
  --fs-xl:   1.375rem;   /* 22 */
  --fs-2xl:  1.75rem;    /* 28 */
  --fs-3xl:  2.25rem;    /* 36 */
  --fs-4xl:  3rem;       /* 48 */

  --s-0: 0;
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 2.5rem;
  --s-8: 3rem;
  --s-10: 4rem;
  --s-12: 6rem;

  --r-xs:   4px;
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   20px;
  --r-pill: 999px;

  --max-w: min(1760px, 96vw);
  --sidebar-w: 13.5rem;
  --help-rail-w: 15rem;

  --ease:      cubic-bezier(0.32, 0.72, 0.32, 1);
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast:  140ms;
  --dur:       220ms;
  --dur-slow:  420ms;

  /* Minimum touch target (WCAG 2.5.5 Target Size AAA = 44×44, AA = 24×24) */
  --hit: 44px;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-family: var(--font-sans);
  font-size: 100%;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  color: var(--text-primary);
  background-color: var(--bg-page);
  font-size: var(--fs-base);
  min-height: 100vh;
  font-feature-settings: "kern", "liga", "calt", "ss01";
  transition: background-color var(--dur-slow) var(--ease),
              color var(--dur-slow) var(--ease);
}

img, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--dur-fast) var(--ease);
}
a:hover, a:focus-visible { color: var(--link-hover); }
a:visited { color: var(--link-visited, var(--link)); }

/* Universal, theme-aware focus ring — not color-only */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection { background: var(--accent-soft); color: var(--primary-ink); }

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.05rem + 1.65vw, var(--fs-3xl));
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 60;
  margin: 0 0 var(--s-4);
  position: relative;
}
h1::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: var(--s-4);
}

h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-2xl);
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 36;
  margin: var(--s-6) 0 var(--s-3);
  color: var(--primary-ink);
}
h3 { font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-lg); color: var(--primary-ink); margin: var(--s-5) 0 var(--s-2); }
h4, h5, h6 { font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-md); color: var(--primary-ink); margin: var(--s-4) 0 var(--s-2); }

p { margin: 0 0 var(--s-4); color: var(--text-secondary); }
ul, ol { margin: 0 0 var(--s-4) var(--s-5); color: var(--text-secondary); }
ul li, ol li { margin: var(--s-1) 0; }

hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--divider) 20%, var(--divider) 80%, transparent);
  margin: var(--s-5) 0;
}

strong, b { font-weight: 600; color: var(--text-primary); }
em, i { font-style: italic; }


/* --------------------------------------------------------------------------
   Skip link (a11y — keyboard-first)
   -------------------------------------------------------------------------- */
#skipLinks { position: absolute; left: -9999px; top: auto; }
#skipLinks a:focus {
  position: fixed;
  left: var(--s-4);
  top: var(--s-4);
  z-index: 100;
  padding: var(--s-3) var(--s-5);
  background: var(--primary);
  color: var(--text-inverse);
  border-radius: var(--r-pill);
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  min-height: var(--hit);
  display: inline-flex;
  align-items: center;
}


/* --------------------------------------------------------------------------
   Page shell
   -------------------------------------------------------------------------- */
#pageContainer { min-height: 100vh; }
#page {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--s-5);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


/* --------------------------------------------------------------------------
   Header (palette-agnostic scaffold — header variants below override)
   -------------------------------------------------------------------------- */
#header {
  margin-top: var(--s-6);
  background: var(--header-bg);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), inset 0 -5px 0 0 var(--header-rule);
  isolation: isolate;
}
#headerWrap {
  max-width: calc(var(--max-w) - var(--s-10));
  margin: 0 auto;
  padding: var(--s-8) var(--s-8) var(--s-7);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
#logo_ucelc {
  /* Swap the legacy <img src="graphics/logo_uc_elc.png"> for the redesign
     wordmark without editing the shared header JSP. `content:` replaces the
     rendered image of the <img> element in all modern browsers; the element's
     alt text is preserved. Path is relative to this stylesheet (css/). */
  content: url("../graphics/uc-wordmark.png");
  height: 72px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  transition: transform var(--dur) var(--ease);
}
#portalTitle {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--header-ink);
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: 0.005em;
  white-space: nowrap;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  padding: 0;
  margin-left: -0.75rem;
}

/* The shared header JSP has no #portalTitle element, and JSP edits are out of
   scope, so the portal title is injected as a pseudo-element on #headerWrap.
   On the flex (classic) header it renders as a flex item right after the
   logo; the split header re-places it in the grid (see PART 3). */
#headerWrap::after {
  content: "ELC School Portal";
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--header-ink);
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: 0.005em;
  white-space: nowrap;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  margin-left: -0.75rem;
  position: relative;
  z-index: 1;
}


/* --------------------------------------------------------------------------
   Top nav
   -------------------------------------------------------------------------- */
#navigation {
  background: linear-gradient(180deg, var(--primary-ink) 0%, var(--primary) 100%);
  position: relative;
}
#navGradBot {
  max-width: calc(var(--max-w) - var(--s-10));
  margin: 0 auto;
  padding: 0 var(--s-7);
}
#navGradBot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}
#navGradBot li { margin: 0; }
#navGradBot a {
  display: inline-flex;
  align-items: center;
  min-height: var(--hit);
  padding: var(--s-3) var(--s-4);
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  position: relative;
  transition: color var(--dur-fast) var(--ease);
}
#navGradBot a::after {
  content: "";
  position: absolute;
  left: var(--s-4);
  right: var(--s-4);
  bottom: 6px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
#navGradBot a:hover,
#navGradBot a:focus-visible { color: #fff; }
#navGradBot a:hover::after,
#navGradBot a:focus-visible::after,
#navGradBot li.active a::after { transform: scaleX(1); }
#navGradBot li.active a { color: #fff; font-weight: 600; }

/* Public pages — navGradBot empty = slim accent rule (mockup markup) */
#navigation:not(:has(#navGradBot ul)) {
  background: transparent;
  padding: 0;
}
/* Public/pre-auth pages: no separate gold accent strip. The only gold band is
   the header's 5px bottom hairline (--header-rule), keeping it uniform with the
   post-auth pages. */
#navigation:not(:has(#navGradBot ul)) #navGradTop { display: none; }
#navigation:not(:has(#navGradBot ul)) #navGradBot { display: none; }
/* NOTE: #navigation/#navGradBot are only rendered on post-auth pages
   (school_top_menu.jsp); pre-auth pages include no nav at all. So there's no
   pre-auth nav to hide, and the header CLASSIC/SPLIT choice is driven by the
   #header.hdrClassic/.hdrSplit class (PART 3), not by detecting #logout. */


/* --------------------------------------------------------------------------
   Logout bar
   -------------------------------------------------------------------------- */
#logout {
  background: var(--primary-softer);
  border-left: 1px solid var(--divider);
  border-right: 1px solid var(--divider);
  padding: var(--s-3) var(--s-7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  gap: var(--s-4);
  flex-wrap: wrap;
}
#logout span { font-weight: 500; }
#logout a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  min-height: var(--hit);
  display: inline-flex;
  align-items: center;
  transition: all var(--dur-fast) var(--ease);
}
#logout a:hover, #logout a:focus-visible {
  background: var(--bg-surface);
  border-color: var(--primary);
  color: var(--primary-ink);
}
#logout a img { display: inline-block; margin-right: var(--s-2); }

/* --------------------------------------------------------------------------
   Logout — inline link variant anchored to the right edge of the nav row.
   -------------------------------------------------------------------------- */
#navGradBot.hasLogout {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--s-4);
}
#navGradBot.hasLogout > ul {
  flex: 1 1 auto;
  min-width: 0;
}
#navGradBot a#navLogout {
  margin-left: auto;
  margin-right: calc(-1 * var(--s-3));
  align-self: center;
  flex: 0 0 auto;
}


/* --------------------------------------------------------------------------
   Main shell
   -------------------------------------------------------------------------- */
#mainContent {
  flex: 1;
  display: flex;
  gap: var(--s-5);
  padding: var(--s-6) var(--s-6);
  background: var(--bg-surface);
  border-left: 1px solid var(--divider);
  border-right: 1px solid var(--divider);
  min-height: 420px;
  position: relative;
}

.flexColumn {
  flex-direction: column;
  
}


/* --------------------------------------------------------------------------
   Sidebars
   -------------------------------------------------------------------------- */
#menucontainer {
  flex: 0 0 var(--sidebar-w);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
#menucontainer > div,
#mainContent > ul.subNav {
  background: var(--bg-surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--divider);
  padding: var(--s-4) var(--s-2);
  position: relative;
}
#menucontainer > div::before,
#mainContent > ul.subNav::before {
  content: "Resources";
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 var(--s-3) var(--s-3);
  margin-bottom: var(--s-2);
  border-bottom: 1px solid var(--divider);
}
#menucontainer > div:nth-of-type(2)::before { content: "Help"; }

#mainContent > ul.subNav {
  flex: 0 0 var(--sidebar-w);
  align-self: flex-start;
  list-style: none;
  margin: 0;
  padding: var(--s-5) var(--s-3);
}

.subNav, .subNavLrgFont { list-style: none; margin: 0; padding: 0; }
.subNav li, .subNavLrgFont li { margin: 0; }
.subNav a, .subNavLrgFont a {
  display: block;
  padding: var(--s-3) var(--s-3);
  min-height: var(--hit);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.35;
  border-radius: var(--r-sm);
  position: relative;
  transition: all var(--dur-fast) var(--ease);
}
.subNav a::before, .subNavLrgFont a::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translate(-2px, -50%);
  width: 3px;
  height: 0;
  background: var(--accent);
  border-radius: 2px;
  transition: height var(--dur) var(--ease);
}
.subNav a:hover, .subNav a:focus-visible,
.subNavLrgFont a:hover, .subNavLrgFont a:focus-visible {
  background: var(--primary-softer);
  color: var(--primary-ink);
  padding-left: var(--s-4);
}
.subNav a:hover::before, .subNav a:focus-visible::before,
.subNavLrgFont a:hover::before, .subNavLrgFont a:focus-visible::before { height: 18px; }
.subNavLrgFont a { font-size: var(--fs-md); font-weight: 600; color: var(--primary); }


/* --------------------------------------------------------------------------
   Content
   -------------------------------------------------------------------------- */
#content { flex: 1; min-width: 0; padding: 0 var(--s-2); font-size: var(--fs-base); }
#content.threeCols { position: relative; }
#content.threeCols::after { content: ""; display: block; clear: both; }
#content.threeCols .questionBox,
#content.threeCols #questionContainer,
#content.threeCols .uploadFileTempDirection {
  float: right;
  width: var(--help-rail-w);
  margin: 0 0 var(--s-5) var(--s-5);
}


/* --------------------------------------------------------------------------
   Buttons — min 44px hit target, strong focus, non-color-only indicators
   -------------------------------------------------------------------------- */
.btnLink, a.btnLink, button.btnLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: var(--hit);
  padding: var(--s-3) var(--s-6);
  background: var(--primary);
  color: var(--text-inverse) !important;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.14);
  transition: transform var(--dur-fast) var(--ease),
              box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.btnLink::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), transparent 55%);
  pointer-events: none;
}
.btnLink:hover, .btnLink:focus-visible {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.18);
  color: var(--text-inverse) !important;
}
.btnLink:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.btnLink.secondary {
  background: transparent;
  color: var(--primary-ink) !important;
  border: 1.5px solid var(--primary);
  box-shadow: none;
}
.btnLink.secondary::before { display: none; }
.btnLink.secondary:hover, .btnLink.secondary:focus-visible {
  background: var(--primary-softer);
  border-color: var(--primary-ink);
  color: var(--primary-ink) !important;
  box-shadow: var(--shadow-sm);
}

.btnLink.accent {
  background: var(--accent);
  color: var(--accent-ink) !important;
}
.btnLink.accent:hover, .btnLink.accent:focus-visible {
  background: var(--accent-hover);
  color: var(--accent-ink) !important;
}

.btns_container {
	display:flex;
	flex-direction: row;
	gap: 2em;
}

.btn_container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
  margin: var(--s-4) 0;
}

#fileSubmitBtn_container {
	justify-content: space-around;
	margin: var(--s-6) 0 !important;
}

.btnHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}
.btnHeader h1 { flex: 1; min-width: 0; margin-bottom: 0; }
.btnHeader .btn_container { margin: var(--s-2) 0 0; }
/* #btns_container { display: flex; gap 10px; } */

.loginAlign { justify-content: flex-start; }
.registerAlign { justify-content: center; }
.textCenter { text-align: center; }
.textRight { text-align: right; }
.textLeft { text-align: left; }
.right { text-align: right; }


/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
fieldset {
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  background: var(--bg-surface);
  padding: var(--s-5) var(--s-6);
  margin: var(--s-4) 0 var(--s-5);
  box-shadow: var(--shadow-sm);
  max-width: 640px;
}
fieldset.nobox { border: none; background: transparent; box-shadow: none; padding: 0; max-width: none; }

legend {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 0 var(--s-2);
}

label {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--s-1);
}
.smallLabel, .longLabel, .leftlabel { 
	display: inline-block; 
	font-weight: 600; 
	color: var(--text-primary); 
}

.smallLabel {
	width: 7.5em;
}

.longLabel {
	width: 14em;
}

.tag { display: flex; flex-direction: column; gap: var(--s-1); margin-bottom: var(--s-4); }

input[type="text"], input[type="password"], input[type="email"], input[type="number"],
input[type="search"], input[type="tel"], input[type="textbox"], input[type="file"],
select, textarea {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--s-3) var(--s-4);
  width: 100%;
  max-width: 26rem;
  min-height: var(--hit);
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
input[type="checkbox"], input[type="radio"] {
  width: 1.1em; height: 1.1em;
  accent-color: var(--primary);
  margin-right: var(--s-2);
  vertical-align: middle;
}
input:hover:not(:disabled), select:hover:not(:disabled), textarea:hover:not(:disabled) {
  border-color: var(--border-strong);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); font-style: italic; }

input[type="file"] { padding: var(--s-4); font-size: var(--fs-sm); }
input[type="file"]::file-selector-button {
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: var(--s-2) var(--s-4);
  background: var(--primary);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--r-pill);
  margin-right: var(--s-3);
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-height: 36px;
}
input[type="file"]::file-selector-button:hover { background: var(--primary-hover); }

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23334' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right var(--s-4) center;
  padding-right: var(--s-8);
}

.requiredMessage {
  color: var(--error);
  font-weight: 600;
  margin-left: var(--s-1);
}
.errorMessage, .successMessage {
  display: inline-block;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  margin: var(--s-2) 0;
}
.errorMessage { background: var(--error-bg); color: var(--error); border-left: 3px solid var(--error); }
.successMessage { background: var(--success-bg); color: var(--success); border-left: 3px solid var(--success); }

/* Inline non-color-only error indicator: exclamation glyph */
.errorMessage::before {
  content: "⚠ ";
  font-weight: 700;
  margin-right: 2px;
}


/* --------------------------------------------------------------------------
   Welcome grid + help rail
   -------------------------------------------------------------------------- */
#welcome {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-4);
  margin: var(--s-6) 0;
}
.welcomeBox {
  background: var(--bg-surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.welcomeBox::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.welcomeBox:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.welcomeBox > p:first-child {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-xl);
  color: var(--primary-ink);
  margin-bottom: var(--s-4);
  letter-spacing: -0.01em;
  max-width: none;
}
.welcomeBox fieldset.nobox { padding: 0; margin: 0; }

.questionBox, #questionContainer {
  background: linear-gradient(180deg, var(--primary-softer), var(--bg-surface) 100%);
  border: 1px solid var(--primary-soft);
  border-radius: var(--r-md);
  padding: var(--s-5);
  box-shadow: var(--shadow-sm);
  font-size: var(--fs-sm);
  position: relative;
}
.questionBox::before, #questionContainer::before {
  content: "Need Help?";
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--s-3);
}
.questionBox h2, #questionContainer h2 {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  margin: 0 0 var(--s-3);
  color: var(--primary-ink);
}
.questionBox h3, #questionContainer h3 {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--primary-ink);
  margin: var(--s-3) 0 var(--s-1);
}
.questionBox p, #questionContainer p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-bottom: var(--s-3);
  max-width: none;
}
.questionBox hr, #questionContainer hr {
  margin: var(--s-3) 0;
  background: linear-gradient(90deg, transparent, var(--primary-soft) 20%, var(--primary-soft) 80%, transparent);
}
.questionBox .toggle, #questionContainer .toggle {
  margin: 0;
  border-bottom: 1px solid var(--primary-soft);
}
.questionBox .toggle:last-child, #questionContainer .toggle:last-child { border-bottom: none; }
/* Keep the .toggle border-bottom as the only divider. !important is needed
   because the "show when not collapsed" rule below (.toggle:not(...)>*:not(h3))
   has higher specificity and would otherwise re-display these <hr>s, producing
   a doubled divider. Hides the JSP's per-toggle <hr> without editing the JSP. */
.questionBox .toggle hr, #questionContainer .toggle hr { display: none !important; }
.questionBox .toggle h3, #questionContainer .toggle h3 { margin: 0; }
.questionBox .toggle h3 a, #questionContainer .toggle h3 a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: var(--s-3) 0;
  min-height: var(--hit);
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  font-size: var(--fs-sm);
  cursor: pointer;
  border-radius: var(--r-xs);
}
.questionBox .toggle h3 a::after, #questionContainer .toggle h3 a::after {
  content: "+";
  flex-shrink: 0;
  width: 1.25rem; height: 1.25rem;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 1.1rem; line-height: 1;
  color: var(--primary);
  transition: transform var(--dur-fast) var(--ease);
}
.questionBox .toggle.is-open h3 a::after, #questionContainer .toggle.is-open h3 a::after {
  content: "−";
  color: var(--primary-ink);
}
.questionBox .toggle > *:not(h3), #questionContainer .toggle > *:not(h3) { display: none; }
.questionBox .toggle.is-open > *:not(h3), #questionContainer .toggle.is-open > *:not(h3) { display: block; }
.questionBox .toggle:not(.is-collapsed):not(.is-open) > *:not(h3),
#questionContainer .toggle:not(.is-collapsed):not(.is-open) > *:not(h3) { display: block; }
.questionBox .toggle:not(.is-collapsed):not(.is-open) h3 a::after,
#questionContainer .toggle:not(.is-collapsed):not(.is-open) h3 a::after { content: ""; width: 0; }


/* --------------------------------------------------------------------------
   Instructional copy, stats strip
   -------------------------------------------------------------------------- */
.instructionText {
  background: var(--bg-raised);
  border: 1px solid var(--divider);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  padding: var(--s-4) var(--s-5);
  margin: var(--s-4) 0;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.55;
  max-width: 60rem;
}
.instructionText ul, .instructionText ol { margin-bottom: 0; }
.instructionText p { max-width: none; }

.arrowText {
  display: inline-block;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}
.arrowText::before {
  content: "›";
  color: var(--accent);
  font-weight: 700;
  margin-right: var(--s-2);
  font-size: 1.2em;
  line-height: 1;
}

.classSize {
  display: inline-block;
  min-width: 2.5rem;
  padding: 0 var(--s-2);
  margin-left: var(--s-2);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-xl);
  color: var(--primary-ink);
  letter-spacing: -0.01em;
}
.boldBlueText {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  color: var(--primary-ink);
  margin-bottom: var(--s-2);
}


/* --------------------------------------------------------------------------
   Data tables
   -------------------------------------------------------------------------- */
.reportTable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: var(--s-4) 0;
  background: var(--bg-surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: var(--fs-sm);
}
.reportTable caption {
  caption-side: top;
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 0 var(--s-3);
}
.reportTable thead th {
  background: var(--primary-softer);
  color: var(--primary-ink);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  padding: var(--s-4);
  border-bottom: 2px solid var(--primary-soft);
}
.reportTable tbody td {
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--divider);
  color: var(--text-primary);
  vertical-align: middle;
}
.reportTable tbody tr:nth-child(odd) td { background: var(--bg-raised); }
.reportTable tbody tr:hover td { background: var(--primary-softer); }
.reportTable tbody tr:last-child td { border-bottom: none; }
.reportTable a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}
.reportTable a:hover { color: var(--primary-ink); border-bottom-style: solid; }

/* Wide report tables (e.g. School Processing Status Report) can be wider than
   the content column; scroll the wrapper horizontally instead of spilling past
   #mainContent. The table still fills the width when it fits. */
.statusTable {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}


/* --------------------------------------------------------------------------
   Add student fieldsets
   -------------------------------------------------------------------------- */
#studentContacts { margin: var(--s-5) 0 var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); }
#studentContacts fieldset.studentInfoBlock, #studentContacts > fieldset {
  background: var(--bg-surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5) var(--s-3);
  margin: 0;
  box-shadow: var(--shadow-sm);
  max-width: none;
  transition: box-shadow var(--dur) var(--ease);
}
#studentContacts fieldset:hover { box-shadow: var(--shadow-md); }
#studentContacts fieldset.odd { background: var(--bg-raised); }
#studentContacts fieldset legend.entryNumber, #studentContacts fieldset > legend {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--primary-ink);
  background: var(--accent-soft);
  padding: 2px var(--s-3);
  border-radius: var(--r-pill);
  text-transform: none;
  display: inline-block;
  width: auto;
}
.studentContactData { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-1); }
.studentContactFields { display: flex; flex-wrap: wrap; gap: var(--s-4); margin: 0; }
.studentField { display: flex !important; flex-direction: column; gap: var(--s-1); min-width: 0; }
.studentField > span { display: block; }
.studentField label {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  width: auto !important;
  text-align: left !important;
}
.studentField input[type="text"] {
  max-width: none;
  min-width: 8rem;
  min-height: 2.25rem;
  padding: var(--s-2) var(--s-3);
  font-size: var(--fs-sm);
}
.studentField.firstName input { width: 11rem; }
.studentField.middleName input { width: 9rem; }
.studentField.lastName input { width: 12rem; }


/* --------------------------------------------------------------------------
   Upload / transcript sections
   -------------------------------------------------------------------------- */
.upload_section {
  background: var(--bg-surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  padding: var(--s-5) var(--s-6);
  margin: var(--s-4) 0;
  box-shadow: var(--shadow-sm);
  max-width: 60rem;
}
.upload_section h2.upload, .upload_section h2 {
  margin-top: 0;
  font-size: var(--fs-xl);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.upload_section h2::before {
  content: "";
  display: inline-block;
  width: 6px; height: 24px;
  background: var(--accent);
  border-radius: 3px;
}
.upload_section ul.upload {
  list-style: none;
  margin-left: 0;
  padding: var(--s-3) var(--s-4);
  background: var(--bg-raised);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--primary);
  max-width: 22rem;
}
.upload_section ul.upload li { margin: var(--s-1) 0; color: var(--text-secondary); }
.uploadFileTempDirection, #studFileTempDirectionContainer {
  background: linear-gradient(180deg, var(--primary-softer), var(--bg-surface));
  border: 1px solid var(--primary-soft);
  border-radius: var(--r-md);
  padding: var(--s-5);
  box-shadow: var(--shadow-sm);
}
.uploadFileTempDirection h2 { font-size: var(--fs-lg); margin: 0 0 var(--s-3); }
.uploadFileTempDirection ol { margin-left: var(--s-5); font-size: var(--fs-sm); color: var(--text-secondary); }
.uploadFileTempDirection .textCenter {
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--primary-soft);
  font-size: var(--fs-sm);
  color: var(--primary-ink);
  font-weight: 500;
}


/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
#footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: var(--s-6) var(--s-8) var(--s-7);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  margin-bottom: var(--s-8);
  font-size: var(--fs-sm);
  position: relative;
  box-shadow: var(--shadow-lg), inset 0 3px 0 0 var(--header-rule);
}
#footer ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: space-between;
  gap: var(--s-4); flex-wrap: wrap;
}

.inlineFooter { display: flex; justify-content: space-between;}
#footer p { color: #fff }
#footer ul + ul { margin-top: var(--s-4); }
#footer li { margin: 0; color: var(--footer-ink); }
#footer li.right { margin-left: auto; }
#footer a {
  color: #fff; text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.4);
}
#footer a:hover, #footer a:focus-visible { border-bottom-color: var(--accent); color: var(--accent); }
#footer > span {
  display: block;
/*   margin: var(--s-4) 0; */
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.7);
  font-style: italic;
  max-width: 72ch;
  line-height: 1.55;
}


/* --------------------------------------------------------------------------
   Confirm dialog
   -------------------------------------------------------------------------- */
.hidden { display: none !important; }
#overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 90;
}
#customConfirmDialog {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  background: var(--bg-surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  min-width: 360px; max-width: 440px;
  overflow: hidden;
}
#customConfirmDialog::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.confirm-content { padding: var(--s-6) var(--s-6) var(--s-5); }
#confirm-message {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  color: var(--primary-ink);
  margin: 0 0 var(--s-5);
}
.confirm-buttons { display: flex; gap: var(--s-3); justify-content: flex-end; }
.confirm-buttons button {
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  min-height: var(--hit);
  transition: all var(--dur-fast) var(--ease);
}
#confirm-yes { background: var(--primary); color: var(--text-inverse); }
#confirm-yes:hover { background: var(--primary-hover); }
#confirm-no { background: transparent; color: var(--primary-ink); border-color: var(--border); }
#confirm-no:hover { border-color: var(--primary); background: var(--primary-softer); }


/* --------------------------------------------------------------------------
   Reduced motion + print + color scheme
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
@media print {
  body { background: #fff; color: #000; }
  #header, #navigation, #logout, #menucontainer, #footer {
    background: #fff !important; color: #000 !important; box-shadow: none !important;
  }
}


/* ==========================================================================
   PART 2 — PALETTE (Heritage), declared on :root so it resolves without a
   [data-palette] attribute on <html>. From theme-heritage.css.
   ========================================================================== */
:root {
  /* Surfaces */
  --bg-page:       #FCFCFD;
  --bg-surface:    #FFFFFF;
  --bg-raised:     #F6F7F9;
  --bg-sunken:     #EEF1F5;

  /* Text */
  --text-primary:   #1A2B3F;
  --text-secondary: #3A4A5C;
  --text-muted:     #5C6776;
  --text-inverse:   #FFFFFF;

  /* Borders */
  --border:        #7B838E;
  --border-strong: #5A6470;
  --divider:       #A9B2BE;

  /* Brand */
  --primary:        #0B3B5C;
  --primary-hover:  #0F4B72;
  --primary-ink:    #072739;
  --primary-soft:   #CFDCE7;
  --primary-softer: #E8EEF5;

  --accent:        #F5C455;
  --accent-hover:  #E3AE2B;
  --accent-ink:    #5A3E00;
  --accent-soft:   #FBEBBF;

  /* Links */
  --link:         #0B3B5C;
  --link-hover:   #0F4B72;
  --link-visited: #4A2E6E;

  /* Focus (AA non-color-only 3px outline) */
  --focus-ring:   rgba(15, 75, 114, 0.45);

  /* Semantic */
  --success:      #0F6B29;
  --success-bg:   #E7F4EB;
  --warning:      #8A4B00;
  --warning-bg:   #FFF3D6;
  --error:        #B42318;
  --error-bg:     #FDECEA;
  --info:         #0B3B5C;
  --info-bg:      #E8EEF5;

  /* Header chrome */
  --header-bg:       linear-gradient(112deg, #051E2F 0%, #0B3B5C 45%, #0F4B72 100%);
  --header-ink:      #FFFFFF;
  --header-rule:     #F5C455;
  --header-pattern:  rgba(255,255,255,0.06);

  --footer-bg:       linear-gradient(180deg, #072739 0%, #0F4B72 100%);
  --footer-ink:      rgba(255,255,255,0.82);

  /* Shadows — navy-tinted */
  --shadow-sm: 0 1px 2px rgba(7, 39, 57, 0.06), 0 1px 3px rgba(7, 39, 57, 0.04);
  --shadow-md: 0 4px 6px -2px rgba(7, 39, 57, 0.08), 0 2px 4px -2px rgba(7, 39, 57, 0.05);
  --shadow-lg: 0 12px 24px -12px rgba(7, 39, 57, 0.20), 0 6px 12px -6px rgba(7, 39, 57, 0.09);
}


/* ==========================================================================
   PART 3 — HEADER VARIANTS, re-scoped from [data-header="..."] to a
   deterministic class that school_header.jsp stamps on #header from the
   session: pre-auth -> #header.hdrClassic (CLASSIC); post-auth ->
   #header.hdrSplit (SPLIT). No :has() / no dependency on any other element
   (it previously keyed on #logout, which coupled it to school_logout_bar.jsp).
   From headers.css.
   ========================================================================== */

/* ------------------------- CLASSIC (pre-auth) ------------------------- */
#header.hdrClassic {
  box-shadow: var(--shadow-lg), inset 0 -5px 0 0 var(--header-rule);
}
#header.hdrClassic::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 400px at 78% 20%, rgba(255,255,255,0.10), transparent 70%),
    radial-gradient(circle 260px at 8% 85%, rgba(255,255,255,0.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
#header.hdrClassic::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><circle cx='2' cy='2' r='1' fill='%23ffffff' fill-opacity='0.08'/></svg>");
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
}
#header.hdrClassic #headerWrap {
  padding: var(--s-8) var(--s-8) var(--s-7);
  min-height: 152px;
}
#header.hdrClassic #logo_ucelc { height: 80px; }


/* ------------------------- SPLIT (post-auth) ------------------------- */
/* Two-band composition. Slim utility strip on top, full brand band below.
   The top strip shows the School ATP/Name <span> rendered into #headerWrap by
   school_header.jsp (grid-placed below). */
#header.hdrSplit {
  box-shadow: var(--shadow-lg), inset 0 -5px 0 0 var(--header-rule);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
#header.hdrSplit::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 40px;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 0;
}
#header.hdrSplit #headerWrap {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 40px 1fr;
  padding: 0;
  min-height: 140px;
  gap: 0;
}
/* School ATP/Name span (added in school_header.jsp) into the dark top strip
   (row 1), right-aligned. z-index/position lift it above the ::before strip;
   color makes it legible on the dark band. */
#header.hdrSplit #headerWrap > span {
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  padding: 0 var(--s-8);
  color: var(--header-ink);
  font-size: var(--fs-sm);
  white-space: nowrap;
  position: relative;
  z-index: 2;
}
#header.hdrSplit #logo_ucelc {
  grid-column: 1; grid-row: 2;
  height: 72px;
  align-self: end;
  justify-self: start;
  margin: var(--s-6) 0 var(--s-5) var(--s-8);
  position: relative;
  z-index: 2;
}
#header.hdrSplit #portalTitle {
  grid-column: 2; grid-row: 2;
  height: 72px;
  align-self: end;
  margin: 0 0 var(--s-5) var(--s-3);
  position: relative;
  z-index: 2;
}
/* Injected title (#headerWrap::after) re-placed into the split grid. */
#header.hdrSplit #headerWrap::after {
  grid-column: 2; grid-row: 2;
  height: 72px;
  align-self: end;
  margin: 0 0 var(--s-5) var(--s-3);
  z-index: 2;
}

/* --------------------------------------------------------------------------
   Dialogs
   -------------------------------------------------------------------------- */
   
   .messageDialog {
	margin: 150px auto 0;
	padding: 15px;
	border: 3px solid #046ab3;
	border-radius: 5px;
}

.messageDialog p {
	color: black;
	font-size: 1.2em;
	text-align: left;
}

.messageDialogClose {
	width: 50px;
	height: 25px;
	margin: 5px;
	background-color: #D3D3D3;
	border: 1px solid black;
	border-radius: 3px;
}

#msgbtnbox {
	width: 60px;
	height:35px;
	margin: auto;
}

/* confirmation dialog */
.hidden {
	display: none;
}

#customConfirmDialog {
	position: fixed;
	top: 25%;
	left: 40%;
	/*transform: translate(-50%, -50%);*/ 
	background-color: white;
	border: 3px solid red;
	border-radius: 5px;
	padding: 20px;
	z-index: 1000;
}


#overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.2);
	z-index: 999;
}

.confirm-content {
	text-align: center;
}

.confirm-buttons button {
	width: 50px;
	height: 25px;
	margin: 10px;
	padding: 8px 15px;
	background-color: #d3d3d3;
	border: 1px solid black;
	border-radius: 3px;	
}

.boldRed {
	font-weight: bold;
	color: red;
}   


/* ==========================================================================
   PART 4 — RESPONSIVE / REFLOW (WCAG 1.4.10)
   Collapse the two-column shell to a single column and let the header + nav
   wrap so content reflows without horizontal scrolling down to a ~320px
   effective viewport (1280px @ 400% zoom). Appended last so these rules win
   over the base + PART 3 layout on equal specificity. Wide data tables remain
   in their own overflow-x containers (an allowed 1.4.10 exception).
   ========================================================================== */

/* Tablet / narrow: stack the main shell; let the header and nav wrap. */
@media (max-width: 960px) {
  #mainContent { flex-direction: column; padding: var(--s-4); }
  #menucontainer,
  #mainContent > ul.subNav {
    flex: 1 1 auto;
    width: 100%;
    align-self: stretch;
  }

  #headerWrap { flex-wrap: wrap; }
  #portalTitle,
  #headerWrap::after { white-space: normal; }

  /* Split header: relax the fixed grid so logo/title can stack. */
  #header.hdrSplit #headerWrap {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    min-height: 0;
  }
  #header.hdrSplit #headerWrap > span { padding: var(--s-2) var(--s-5); white-space: normal; }
  #header.hdrSplit #logo_ucelc,
  #header.hdrSplit #portalTitle,
  #header.hdrSplit #headerWrap::after {
    grid-column: 1;
    grid-row: auto;
    height: auto;
    margin: var(--s-3) var(--s-5);
  }

  /* Nav: wrap instead of forcing Logout onto the same line. */
  #navGradBot.hasLogout { flex-wrap: wrap; }
  #navGradBot.hasLogout > ul { flex: 1 1 100%; }
  #navGradBot a#navLogout { margin-left: 0; margin-right: 0; }
}

/* Mobile / 400% zoom: tighten gutters and cap fixed-width boxes/controls. */
@media (max-width: 600px) {
  #page { padding: 0 var(--s-3); }
  #header { margin-top: var(--s-4); }
  #headerWrap { padding: var(--s-4); gap: var(--s-3); }
  #header.hdrClassic #logo_ucelc,
  #header.hdrSplit #logo_ucelc { height: 56px; }
  #navGradBot { padding: 0 var(--s-3); }

  /* Keep fixed-width form controls and dialogs inside the viewport. */
  input, select, textarea { max-width: 100%; box-sizing: border-box; }
  #customConfirmDialog { min-width: 0; max-width: 100%; }
  .messageDialog { margin-top: var(--s-6); max-width: 92vw; }
}
