/* irsc-brand:start */
/* irsc-brand 1.2.1 (b2f1b28) - generated by irsc-brand/scripts/sync.py; do not edit */

/*
 * IRSC design tokens. Source of truth: irsc-brand/css/irsc-tokens.css.
 * Apps receive a copy through scripts/sync.py; edit here, never in an app.
 *
 * Brand colors come from the IRSC brand guide. Everything under "UI tints"
 * is derived from those colors for interface states; check every text or
 * control pairing with scripts/check_contrast.py before changing a value.
 *
 * Themes: light is the default. <html data-theme="dark"> forces dark, and
 * <html data-theme="auto"> follows the visitor's system setting. Pages ship
 * with data-theme="light"; js/irsc-theme.js swaps in the visitor's saved
 * choice from the theme switch before the first paint. The dark tokens apply
 * on screen only, so every page prints with the light tokens.
 */

/* Metronic Slab Pro is licensed. These faces only use copies installed on the
   visitor's computer; add licensed woff2 files here to serve it to everyone. */
@font-face {
  font-family: "Metronic Slab Pro";
  font-weight: 300;
  src: local("Metronic Slab Pro Light"), local("MetronicSlabPro-Light");
}
@font-face {
  font-family: "Metronic Slab Pro";
  font-weight: 400;
  src: local("Metronic Slab Pro"), local("Metronic Slab Pro Regular"), local("MetronicSlabPro-Regular");
}
@font-face {
  font-family: "Metronic Slab Pro";
  font-weight: 600;
  src: local("Metronic Slab Pro SemiBold"), local("Metronic Slab Pro Semibold"), local("MetronicSlabPro-SemiBold");
}

:root {
  /* Brand palette (IRSC brand guide) */
  --irsc-blue: #003da5;   /* River Blue, PMS 293C (primary) */
  --irsc-yellow: #fedb00; /* Peregrine Yellow, PMS 108C (primary) */
  --irsc-navy: #062551;   /* PMS 655C (secondary) */
  --irsc-gray: #cfd2d3;   /* PMS 427C (secondary) */
  --irsc-black: #000000;
  --irsc-white: #ffffff;

  /* Type. Headings use Metronic Slab Pro; body copy uses the brand's web fonts. */
  --irsc-font-display: "Metronic Slab Pro", Rockwell, "Roboto Slab", "Trebuchet MS", Verdana, Arial, sans-serif;
  --irsc-font-body: "Trebuchet MS", Verdana, Arial, "Liberation Sans", sans-serif;
  --irsc-font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --irsc-weight-light: 300;
  --irsc-weight-regular: 400;
  --irsc-weight-semibold: 600;

  --irsc-text-xs: 0.75rem;
  --irsc-text-sm: 0.875rem;
  --irsc-text-md: 1rem;
  --irsc-text-lg: 1.125rem;
  --irsc-text-xl: 1.375rem;
  --irsc-text-2xl: 1.75rem;
  --irsc-text-3xl: 2.25rem;
  --irsc-leading-tight: 1.2;
  --irsc-leading: 1.55;
  --irsc-measure: 70ch;

  /* Space, shape, depth, motion */
  --irsc-space-1: 0.25rem;
  --irsc-space-2: 0.5rem;
  --irsc-space-3: 0.75rem;
  --irsc-space-4: 1rem;
  --irsc-space-5: 1.5rem;
  --irsc-space-6: 2rem;
  --irsc-space-7: 3rem;
  --irsc-space-8: 4rem;
  --irsc-radius-sm: 4px;
  --irsc-radius-md: 8px;
  --irsc-radius-lg: 12px;
  --irsc-radius-pill: 999px;
  --irsc-control-height: 2.75rem; /* 44px touch target */
  --irsc-header-rule: 4px;        /* Peregrine Yellow rule under the header */
  --irsc-focus-width: 3px;
  --irsc-ease: cubic-bezier(0.2, 0, 0, 1);
  --irsc-duration: 150ms;

  /* UI tints and semantic roles: light theme */
  --irsc-bg: #f5f6f6;              /* page: PMS 427C at 20% */
  --irsc-surface: #ffffff;         /* cards, panels, inputs */
  --irsc-surface-sunken: #ecedee;  /* wells, table headers: PMS 427C at 40% */
  --irsc-text: #000000;
  --irsc-text-muted: #4a5157;
  --irsc-heading: #062551;
  --irsc-border: #cfd2d3;          /* decorative dividers only */
  --irsc-border-strong: #6b7278;   /* input and control outlines (3:1 or better) */
  --irsc-accent: #003da5;          /* primary buttons, selected states */
  --irsc-accent-hover: #062551;
  --irsc-on-accent: #ffffff;
  --irsc-accent-soft: #e6ecf6;     /* River Blue at 10%: selected rows, info */
  --irsc-link: #003da5;
  --irsc-link-hover: #062551;
  --irsc-highlight: #fedb00;       /* never as text or a line on light surfaces */
  --irsc-on-highlight: #000000;
  --irsc-highlight-soft: #fff8cc;  /* Peregrine Yellow at 20%: notices */
  --irsc-focus: #003da5;
  --irsc-focus-halo: #ffffff;
  --irsc-header-bg: #062551;
  --irsc-header-text: #ffffff;
  --irsc-header-muted: #c9d2e0;
  --irsc-header-accent: #fedb00;
  --irsc-header-focus: #fedb00;
  --irsc-danger: #b42318;
  --irsc-danger-soft: #fdecea;
  --irsc-success: #1a6b3a;
  --irsc-success-soft: #e7f4ec;
  --irsc-shadow-1: 0 1px 2px rgb(6 37 81 / 0.08), 0 1px 3px rgb(6 37 81 / 0.06);
  --irsc-shadow-2: 0 4px 12px rgb(6 37 81 / 0.12), 0 2px 4px rgb(6 37 81 / 0.08);
  color-scheme: light;
}

/* Dark theme, on screen only so pages print light. Keep this block and the
   auto block below identical. */
@media screen {
  :root[data-theme="dark"] {
    --irsc-bg: #031229;
    --irsc-surface: #062551;
    --irsc-surface-sunken: #04193a;
    --irsc-text: #ffffff;
    --irsc-text-muted: #bcc6d6;
    --irsc-heading: #ffffff;
    --irsc-border: #23406d;
    --irsc-border-strong: #8a9ab3;
    --irsc-accent: #fedb00;
    --irsc-accent-hover: #ffe75c;
    --irsc-on-accent: #062551;
    --irsc-accent-soft: #0e3470;
    --irsc-link: #a9c4f5;
    --irsc-link-hover: #fedb00;
    --irsc-highlight: #fedb00;
    --irsc-on-highlight: #000000;
    --irsc-highlight-soft: #3d3400;
    --irsc-focus: #fedb00;
    --irsc-focus-halo: #031229;
    --irsc-header-bg: #000000;
    --irsc-header-text: #ffffff;
    --irsc-header-muted: #c9d2e0;
    --irsc-header-accent: #fedb00;
    --irsc-header-focus: #fedb00;
    --irsc-danger: #ff9b91;
    --irsc-danger-soft: #4a1410;
    --irsc-success: #7fdc9f;
    --irsc-success-soft: #0f3a22;
    --irsc-shadow-1: 0 1px 2px rgb(0 0 0 / 0.4);
    --irsc-shadow-2: 0 4px 12px rgb(0 0 0 / 0.5);
    color-scheme: dark;
  }
}

@media screen and (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --irsc-bg: #031229;
    --irsc-surface: #062551;
    --irsc-surface-sunken: #04193a;
    --irsc-text: #ffffff;
    --irsc-text-muted: #bcc6d6;
    --irsc-heading: #ffffff;
    --irsc-border: #23406d;
    --irsc-border-strong: #8a9ab3;
    --irsc-accent: #fedb00;
    --irsc-accent-hover: #ffe75c;
    --irsc-on-accent: #062551;
    --irsc-accent-soft: #0e3470;
    --irsc-link: #a9c4f5;
    --irsc-link-hover: #fedb00;
    --irsc-highlight: #fedb00;
    --irsc-on-highlight: #000000;
    --irsc-highlight-soft: #3d3400;
    --irsc-focus: #fedb00;
    --irsc-focus-halo: #031229;
    --irsc-header-bg: #000000;
    --irsc-header-text: #ffffff;
    --irsc-header-muted: #c9d2e0;
    --irsc-header-accent: #fedb00;
    --irsc-header-focus: #fedb00;
    --irsc-danger: #ff9b91;
    --irsc-danger-soft: #4a1410;
    --irsc-success: #7fdc9f;
    --irsc-success-soft: #0f3a22;
    --irsc-shadow-1: 0 1px 2px rgb(0 0 0 / 0.4);
    --irsc-shadow-2: 0 4px 12px rgb(0 0 0 / 0.5);
    color-scheme: dark;
  }
}

/*
 * IRSC base: element defaults built only from irsc-tokens.css.
 *
 * Element rules sit inside :where() so they carry zero specificity; any rule
 * an app writes, even a bare element selector, wins without !important.
 * The utility classes and the print rules at the end use plain selectors on
 * purpose so an app's element rules cannot undo them.
 */

/* Box model */
:where(*),
::before,
::after {
  box-sizing: border-box;
}

:where(html) {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Page */
:where(body) {
  margin: 0;
  background: var(--irsc-bg);
  color: var(--irsc-text);
  font-family: var(--irsc-font-body);
  font-size: 1rem;
  line-height: var(--irsc-leading);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings: Metronic Slab Pro semibold where installed, brand fallbacks elsewhere */
:where(h1, h2, h3, h4) {
  margin: 0 0 var(--irsc-space-3);
  color: var(--irsc-heading);
  font-family: var(--irsc-font-display);
  font-weight: var(--irsc-weight-semibold);
  line-height: var(--irsc-leading-tight);
  text-wrap: balance;
}

:where(h1) {
  font-size: var(--irsc-text-3xl);
}

:where(h2) {
  font-size: var(--irsc-text-2xl);
}

:where(h3) {
  font-size: var(--irsc-text-xl);
}

:where(h4) {
  font-size: var(--irsc-text-lg);
}

/* Give a heading room when it follows running content */
:where(p, ul, ol, dl, blockquote, pre, table, figure) + :where(h2, h3, h4) {
  margin-top: var(--irsc-space-6);
}

:where(small) {
  font-size: var(--irsc-text-sm);
}

/* Links */
:where(a) {
  color: var(--irsc-link);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

:where(a:hover) {
  color: var(--irsc-link-hover);
  text-decoration-thickness: 2px;
}

/* Focus: a ring in the focus color with a halo on both sides, so it reads
   on light, dark and brand-colored backgrounds alike. */
:where(:focus-visible) {
  outline: var(--irsc-focus-width) solid var(--irsc-focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 calc(var(--irsc-focus-width) + 4px) var(--irsc-focus-halo);
}

/* The header and toasts sit on the header color, where River Blue vanishes (1.6:1) */
:where(.irsc-header :focus-visible, .irsc-toast :focus-visible) {
  outline-color: var(--irsc-header-focus);
  box-shadow: 0 0 0 calc(var(--irsc-focus-width) + 4px) var(--irsc-header-bg);
}

::selection {
  background: var(--irsc-highlight);
  color: var(--irsc-on-highlight);
}

/* Media */
:where(img, svg, video, canvas, picture) {
  max-width: 100%;
}

:where(img, video) {
  height: auto;
}

/* Tables */
:where(table) {
  border-collapse: collapse;
  border-spacing: 0;
}

:where(th) {
  background: var(--irsc-surface-sunken);
  color: var(--irsc-text);
  font-weight: var(--irsc-weight-semibold);
  text-align: start;
}

/* Form controls take the page font instead of the browser's. Color is left to
   the browser (or a component) so an unstyled control never inherits light
   text from a dark header, toast or app onto its light default background. */
:where(button, input, select, textarea) {
  font: inherit;
}

:where(button, [role="button"], label[for], select, summary) {
  cursor: pointer;
}

:where(input[type="checkbox"], input[type="radio"]) {
  accent-color: var(--irsc-accent);
}

/* Code */
:where(code, kbd, samp, pre) {
  font-family: var(--irsc-font-mono);
  font-size: 0.9em;
}

:where(pre) {
  overflow-x: auto;
  padding: var(--irsc-space-4);
  border-radius: var(--irsc-radius-md);
  background: var(--irsc-surface-sunken);
  color: var(--irsc-text);
}

:where(hr) {
  height: 0;
  margin: var(--irsc-space-6) 0;
  border: 0;
  border-top: 1px solid var(--irsc-border);
}

/* Utilities */

/* Skip link: off screen until a keyboard user tabs to it */
.irsc-skip-link {
  position: absolute;
  top: var(--irsc-space-3);
  left: var(--irsc-space-3);
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  min-height: var(--irsc-control-height);
  padding: var(--irsc-space-2) var(--irsc-space-4);
  border-radius: var(--irsc-radius-sm);
  background: var(--irsc-highlight);
  color: var(--irsc-on-highlight);
  font-weight: var(--irsc-weight-semibold);
  text-decoration: underline;
  transform: translateY(calc(-100% - var(--irsc-space-4)));
}

.irsc-skip-link:focus {
  transform: none;
}

/* Visually hidden, still read by screen readers */
.irsc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

/* Motion: honor the visitor's reduced-motion setting everywhere */
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Windows high contrast and other forced-color modes drop box shadows and
   backgrounds, so focus and control edges must come from outlines and borders. */
@media (forced-colors: active) {
  :where(:focus-visible),
  :where(.irsc-header :focus-visible, .irsc-toast :focus-visible) {
    outline: var(--irsc-focus-width) solid Highlight;
    box-shadow: none;
  }

  :where(hr) {
    border-top-color: CanvasText;
  }

  /* Its yellow fill is dropped, so give the skip link a visible edge */
  .irsc-skip-link {
    border: 2px solid CanvasText;
  }
}

/* Print: the dark tokens are screen-only, so pages print with the light theme
   and River Blue links. Browsers drop fills on paper by default, so the header
   prints dark on white, buttons and marks keep the fill their label needs (a
   highlight badge would otherwise print as a yellow hairline), and screen-only
   controls are left out. */
@media print {
  :root {
    --irsc-header-bg: var(--irsc-surface);
    --irsc-header-text: var(--irsc-text);
    --irsc-header-muted: var(--irsc-text-muted);
    --irsc-header-accent: var(--irsc-text);
  }

  .irsc-btn,
  .irsc-badge--highlight,
  .irsc-pagination [aria-current="page"],
  .irsc-notice::before {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* A primary button in the header is filled with the header accent, black here */
  .irsc-header .irsc-btn {
    --irsc-on-accent: var(--irsc-surface);
  }

  .irsc-skip-link,
  .irsc-theme-switch,
  .irsc-toast-region {
    display: none !important;
  }
}

/*
 * IRSC components. Every class starts with .irsc- and every color, size and
 * font comes from irsc-tokens.css. Mobile first: the base rules fit a 360px
 * screen and wider layouts are added with min-width media queries.
 */

/* ---------- Layout ---------- */

/* Container: centered page column with side padding */
.irsc-container {
  width: 100%;
  max-width: var(--irsc-container-max, 72rem);
  margin-inline: auto;
  padding-inline: var(--irsc-space-4);
}

@media (min-width: 48rem) {
  .irsc-container {
    padding-inline: var(--irsc-space-6);
  }
}

/* Stack: vertical rhythm between siblings; set --irsc-stack-gap to change it */
.irsc-stack {
  display: flex;
  flex-direction: column;
  gap: var(--irsc-stack-gap, var(--irsc-space-4));
}

.irsc-stack--sm {
  --irsc-stack-gap: var(--irsc-space-2);
}

.irsc-stack--lg {
  --irsc-stack-gap: var(--irsc-space-6);
}

/* Cluster: a wrapping row, for button groups and badge lists */
.irsc-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--irsc-cluster-gap, var(--irsc-space-3));
}

/* ---------- Header ---------- */

/* Header: navy bar, Peregrine Yellow rule, text wordmark, nav, actions.
   River Blue is 1.6:1 on the header, so a primary button in it turns
   Peregrine Yellow with black text (white on hover). Nothing is reordered:
   the parts wrap in source order (wordmark, nav, actions), so Tab follows
   what the eye reads at every width. */
.irsc-header {
  --irsc-accent: var(--irsc-header-accent);
  --irsc-accent-hover: var(--irsc-header-text);
  --irsc-on-accent: var(--irsc-on-highlight);
  background: var(--irsc-header-bg);
  color: var(--irsc-header-text);
  border-bottom: var(--irsc-header-rule) solid var(--irsc-header-accent);
}

.irsc-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--irsc-space-2) var(--irsc-space-5);
  padding-block: var(--irsc-space-3);
}

/* Plain links and headings on the header color (header, toast) use its text
   color; the page's River Blue links and navy headings would vanish there. */
.irsc-header :where(a),
.irsc-toast :where(a) {
  color: var(--irsc-header-text);
}

.irsc-header :where(h1, h2, h3, h4),
.irsc-toast :where(h1, h2, h3, h4) {
  color: inherit;
}

/* Wordmark: "Indian River State College" eyebrow over the app name (no logo) */
.irsc-wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: none;
  padding-block: var(--irsc-space-1);
  border-radius: var(--irsc-radius-sm);
  color: var(--irsc-header-text);
  text-decoration: none;
}

.irsc-wordmark:hover {
  color: var(--irsc-header-text);
}

.irsc-wordmark__eyebrow {
  color: var(--irsc-header-muted);
  font-family: var(--irsc-font-body);
  font-size: var(--irsc-text-xs);
  font-weight: var(--irsc-weight-semibold);
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.irsc-wordmark__name {
  font-family: var(--irsc-font-display);
  font-size: var(--irsc-text-xl);
  font-weight: var(--irsc-weight-semibold);
  line-height: 1.1;
}

/* Header actions: theme switch, sign-in state. They come last and hug the
   right edge on whichever row they land, and so does each row they wrap onto. */
.irsc-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--irsc-space-3);
  margin-left: auto;
  color: var(--irsc-header-muted);
  font-size: var(--irsc-text-sm);
  white-space: nowrap;
}

/* Plain links among the actions (Help, Sign out) get a full 44px target */
.irsc-header__actions :where(a:not(.irsc-btn)) {
  display: inline-flex;
  align-items: center;
  min-height: var(--irsc-control-height);
}

/* Nav: beside the wordmark when it fits, otherwise on the next row with its
   first link lined up under the wordmark. Links wrap rather than scroll out
   of sight. */
.irsc-nav {
  margin-inline: calc(var(--irsc-space-3) * -1);
}

.irsc-nav ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.irsc-nav a {
  display: flex;
  align-items: center;
  min-height: var(--irsc-control-height);
  padding-inline: var(--irsc-space-3);
  border-radius: var(--irsc-radius-sm);
  color: var(--irsc-header-muted);
  font-weight: var(--irsc-weight-semibold);
  text-decoration: none;
  white-space: nowrap;
}

.irsc-nav a:hover {
  color: var(--irsc-header-text);
  text-decoration: underline 1px var(--irsc-header-muted);
  text-underline-offset: 0.45em;
}

/* Current page: white text with a Peregrine Yellow underline marker */
.irsc-nav a[aria-current]:not([aria-current="false"]) {
  color: var(--irsc-header-text);
  text-decoration: underline 3px var(--irsc-header-accent);
  text-underline-offset: 0.45em;
}

/* Links sit edge to edge, so draw the focus ring inside */
.irsc-nav a:focus-visible {
  outline-offset: calc(var(--irsc-focus-width) * -1);
  box-shadow: none;
}

@media (min-width: 60rem) {
  .irsc-header__inner {
    flex-wrap: nowrap;
    min-height: 4.5rem;
    padding-block: 0;
  }

  /* A squeezed nav wraps to a second line before the wordmark or actions shrink */
  .irsc-nav {
    margin-inline: 0;
  }

  .irsc-header__actions {
    flex: none;
    flex-wrap: nowrap;
  }
}

/* ---------- Theme switch ---------- */

/* Theme switch: Light / Dark / Auto, remembered per browser by js/irsc-theme.js.
   Put it in .irsc-header__actions or on any page surface:
   <div class="irsc-theme-switch" role="group" aria-label="Color theme" data-irsc-theme-switch>
     <button type="button" data-irsc-theme-value="light" aria-pressed="true">Light</button>
     <button type="button" data-irsc-theme-value="dark" aria-pressed="false">Dark</button>
     <button type="button" data-irsc-theme-value="auto" aria-pressed="false">Auto</button>
   </div> */
.irsc-theme-switch {
  display: inline-flex;
  flex: none;
  gap: 2px;
  width: fit-content;
  padding: 3px;
  border: 1px solid var(--irsc-theme-switch-edge, var(--irsc-border-strong));
  border-radius: var(--irsc-radius-pill);
}

/* 36px segments; the ::after reaches the group's edge for a 44px touch target */
.irsc-theme-switch button {
  position: relative;
  min-height: 2.25rem;
  margin: 0;
  padding: 0 var(--irsc-space-3);
  border: 0;
  border-radius: var(--irsc-radius-pill);
  background: transparent;
  color: var(--irsc-theme-switch-text, var(--irsc-text-muted));
  font-family: var(--irsc-font-body);
  font-size: var(--irsc-text-sm);
  font-weight: var(--irsc-weight-semibold);
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.irsc-theme-switch button::after {
  content: "";
  position: absolute;
  inset-block: min(0px, calc((100% - var(--irsc-control-height)) / 2));
  inset-inline: min(0px, calc((100% - var(--irsc-control-height)) / 2));
}

.irsc-theme-switch button:hover {
  color: var(--irsc-theme-switch-hover, var(--irsc-text));
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

/* Selected: the accent fill. River Blue with white text on a light page, Peregrine
   Yellow with navy text on a dark one, and yellow with black text in the header. */
.irsc-theme-switch [aria-pressed="true"],
.irsc-theme-switch [aria-pressed="true"]:hover {
  background: var(--irsc-accent);
  color: var(--irsc-on-accent);
  text-decoration: none;
}

/* Segments sit edge to edge, so the focus ring goes inside, clear of the edge
   so it still reads on a filled segment. The selected segment is filled with
   the focus color, so its ring takes the label color. */
.irsc-theme-switch button:focus-visible {
  outline-offset: calc(var(--irsc-focus-width) * -1 - 2px);
  box-shadow: none;
}

.irsc-theme-switch [aria-pressed="true"]:focus-visible {
  outline-color: currentColor;
}

.irsc-header .irsc-theme-switch {
  --irsc-theme-switch-edge: var(--irsc-header-muted);
  --irsc-theme-switch-text: var(--irsc-header-muted);
  --irsc-theme-switch-hover: var(--irsc-header-text);
}

/* ---------- Buttons ---------- */

/* Button: River Blue primary (yellow with navy text in dark mode) */
.irsc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--irsc-space-2);
  min-height: var(--irsc-control-height);
  padding: var(--irsc-space-2) var(--irsc-space-5);
  border: 2px solid var(--irsc-accent);
  border-radius: var(--irsc-radius-md);
  background: var(--irsc-accent);
  color: var(--irsc-on-accent);
  font-family: var(--irsc-font-body);
  font-size: var(--irsc-text-md);
  font-weight: var(--irsc-weight-semibold);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--irsc-duration) var(--irsc-ease),
    border-color var(--irsc-duration) var(--irsc-ease),
    color var(--irsc-duration) var(--irsc-ease);
}

.irsc-btn:hover {
  border-color: var(--irsc-accent-hover);
  background: var(--irsc-accent-hover);
  color: var(--irsc-on-accent);
}

/* Secondary: outlined, for the second action in a group */
.irsc-btn--secondary {
  border-color: var(--irsc-border-strong);
  background: var(--irsc-surface);
  color: var(--irsc-text);
}

.irsc-btn--secondary:hover {
  border-color: var(--irsc-accent);
  background: var(--irsc-accent-soft);
  color: var(--irsc-text);
}

/* Ghost: text-only, for low-emphasis actions such as Cancel */
.irsc-btn--ghost {
  border-color: transparent;
  background: transparent;
  color: var(--irsc-link);
}

.irsc-btn--ghost:hover {
  border-color: transparent;
  background: var(--irsc-accent-soft);
  color: var(--irsc-link);
}

/* Danger: outlined in red, fills on hover; for destructive actions */
.irsc-btn--danger {
  border-color: var(--irsc-danger);
  background: var(--irsc-surface);
  color: var(--irsc-danger);
}

.irsc-btn--danger:hover {
  border-color: var(--irsc-danger);
  background: var(--irsc-danger);
  color: var(--irsc-surface);
}

/* Small: dense toolbars and table rows. 32px to the eye; the ::after
   extends the touch target to 44px without changing the layout. */
.irsc-btn--sm {
  position: relative;
  min-height: 2rem;
  padding: var(--irsc-space-1) var(--irsc-space-3);
  border-radius: var(--irsc-radius-sm);
  font-size: var(--irsc-text-sm);
}

.irsc-btn--sm::after {
  content: "";
  position: absolute;
  inset-block: min(0px, calc((100% - var(--irsc-control-height)) / 2));
  inset-inline: min(0px, calc((100% - var(--irsc-control-height)) / 2));
}

/* Disabled: muted and inert; applies to <button disabled> and aria-disabled links */
.irsc-btn:disabled,
.irsc-btn[aria-disabled="true"] {
  border-color: var(--irsc-border);
  background: var(--irsc-surface-sunken);
  color: var(--irsc-text-muted);
  cursor: not-allowed;
}

/* Secondary and ghost buttons on the header color (header, toast) */
.irsc-header .irsc-btn--secondary,
.irsc-header .irsc-btn--ghost,
.irsc-toast .irsc-btn--secondary,
.irsc-toast .irsc-btn--ghost {
  border-color: var(--irsc-header-muted);
  background: transparent;
  color: var(--irsc-header-text);
}

.irsc-header .irsc-btn--ghost,
.irsc-toast .irsc-btn--ghost {
  border-color: transparent;
}

.irsc-header .irsc-btn--secondary:hover,
.irsc-header .irsc-btn--ghost:hover,
.irsc-toast .irsc-btn--secondary:hover,
.irsc-toast .irsc-btn--ghost:hover {
  border-color: var(--irsc-header-text);
  background: transparent;
  color: var(--irsc-header-text);
}

/* ---------- Forms ---------- */

/* Field: label, optional hint, optional error, control; link them with aria-describedby */
.irsc-field {
  display: flex;
  flex-direction: column;
  gap: var(--irsc-space-1);
  min-width: 0;
}

.irsc-label,
.irsc-field > label {
  color: var(--irsc-text);
  font-weight: var(--irsc-weight-semibold);
}

/* "(optional)" or "(required)" after a label */
.irsc-label__note {
  color: var(--irsc-text-muted);
  font-weight: var(--irsc-weight-regular);
}

/* Hint: help text under the label */
.irsc-hint {
  margin: 0;
  color: var(--irsc-text-muted);
  font-size: var(--irsc-text-sm);
}

/* Error: what went wrong and how to fix it, shown above the control */
.irsc-error {
  margin: 0;
  color: var(--irsc-danger);
  font-size: var(--irsc-text-sm);
  font-weight: var(--irsc-weight-semibold);
}

/* Text inputs, selects, textareas: class them, or put them inside .irsc-field */
.irsc-input,
.irsc-select,
.irsc-textarea,
.irsc-field :where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="file"], [type="submit"], [type="button"], [type="reset"], [type="hidden"]), select, textarea) {
  display: block;
  width: 100%;
  min-height: var(--irsc-control-height);
  padding: var(--irsc-space-2) var(--irsc-space-3);
  border: 1px solid var(--irsc-border-strong);
  border-radius: var(--irsc-radius-sm);
  background: var(--irsc-surface);
  color: var(--irsc-text);
  font: inherit;
  transition: border-color var(--irsc-duration) var(--irsc-ease);
}

.irsc-textarea,
.irsc-field textarea {
  min-height: 7rem;
  resize: vertical;
}

/* Placeholder: muted text at full opacity so it keeps 4.5:1 (Firefox fades it) */
.irsc-input::placeholder,
.irsc-textarea::placeholder,
.irsc-field :where(input, textarea)::placeholder {
  color: var(--irsc-text-muted);
  opacity: 1;
}

.irsc-input:hover,
.irsc-select:hover,
.irsc-textarea:hover,
.irsc-field :where(input, select, textarea):hover {
  border-color: var(--irsc-text);
}

.irsc-input:focus-visible,
.irsc-select:focus-visible,
.irsc-textarea:focus-visible,
.irsc-field :where(input, select, textarea):focus-visible {
  border-color: var(--irsc-accent);
}

/* Invalid: red edge, doubled with an inset line so it is not color alone */
.irsc-input[aria-invalid="true"],
.irsc-select[aria-invalid="true"],
.irsc-textarea[aria-invalid="true"],
.irsc-field :where(input, select, textarea)[aria-invalid="true"] {
  border-color: var(--irsc-danger);
  box-shadow: inset 0 0 0 1px var(--irsc-danger);
}

.irsc-field--invalid {
  padding-left: var(--irsc-space-4);
  border-left: 4px solid var(--irsc-danger);
}

.irsc-input:disabled,
.irsc-select:disabled,
.irsc-textarea:disabled,
.irsc-field :where(input, select, textarea):disabled {
  border-color: var(--irsc-border);
  background: var(--irsc-surface-sunken);
  color: var(--irsc-text-muted);
  cursor: not-allowed;
}

/* Checkbox and radio rows: native controls tinted with accent-color */
.irsc-check {
  display: flex;
  align-items: flex-start;
  gap: var(--irsc-space-3);
  min-height: var(--irsc-control-height);
  padding-block: var(--irsc-space-2);
  cursor: pointer;
}

.irsc-check input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.125rem 0 0;
  accent-color: var(--irsc-accent);
  cursor: pointer;
}

/* Fieldset: groups radios, checkboxes or related fields under a legend */
.irsc-fieldset {
  min-width: 0;
  margin: 0;
  padding: var(--irsc-space-4);
  border: 1px solid var(--irsc-border);
  border-radius: var(--irsc-radius-md);
}

.irsc-fieldset > legend {
  padding-inline: var(--irsc-space-2);
  color: var(--irsc-heading);
  font-family: var(--irsc-font-display);
  font-size: var(--irsc-text-lg);
  font-weight: var(--irsc-weight-semibold);
}

/* Error summary: top of the form after a failed submit; give it tabindex="-1" and focus it */
.irsc-error-summary {
  padding: var(--irsc-space-4) var(--irsc-space-5);
  border: 2px solid var(--irsc-danger);
  border-left-width: 6px;
  border-radius: var(--irsc-radius-md);
  background: var(--irsc-surface);
  color: var(--irsc-text);
}

.irsc-error-summary > :first-child {
  margin-top: 0;
  color: var(--irsc-danger);
  font-size: var(--irsc-text-lg);
}

.irsc-error-summary ul {
  margin: var(--irsc-space-2) 0 0;
  padding-left: var(--irsc-space-5);
}

.irsc-error-summary a {
  color: var(--irsc-danger);
  font-weight: var(--irsc-weight-semibold);
}

.irsc-error-summary a:hover {
  color: var(--irsc-text);
}

/* ---------- Surfaces ---------- */

/* Card: white panel on the gray page */
.irsc-card {
  padding: var(--irsc-space-5);
  border: 1px solid var(--irsc-border);
  border-radius: var(--irsc-radius-lg);
  background: var(--irsc-surface);
  color: var(--irsc-text);
  box-shadow: var(--irsc-shadow-1);
}

.irsc-card > :last-child {
  margin-bottom: 0;
}

/* Notice: inline message with a left rule and a status mark; --info is the default */
.irsc-notice {
  position: relative;
  padding: var(--irsc-space-4) var(--irsc-space-4) var(--irsc-space-4) calc(var(--irsc-space-4) * 2 + 1.5rem);
  border-left: 4px solid var(--irsc-notice-rule, var(--irsc-accent));
  border-radius: var(--irsc-radius-md);
  background: var(--irsc-notice-bg, var(--irsc-accent-soft));
  color: var(--irsc-text);
}

.irsc-notice::before {
  content: "i";
  content: "i" / "";
  position: absolute;
  top: var(--irsc-space-4);
  left: var(--irsc-space-4);
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--irsc-radius-pill);
  background: var(--irsc-notice-mark-bg, var(--irsc-accent));
  color: var(--irsc-notice-mark-text, var(--irsc-on-accent));
  font-family: var(--irsc-font-display);
  font-size: var(--irsc-text-sm);
  font-weight: var(--irsc-weight-semibold);
  line-height: 1;
}

.irsc-notice :where(p, ul, ol) {
  margin: var(--irsc-space-2) 0 0;
}

.irsc-notice > :first-child,
.irsc-notice__title + * {
  margin-top: 0;
}

.irsc-notice > :last-child {
  margin-bottom: 0;
}

/* Notice title: one short line above the message */
.irsc-notice__title {
  display: block;
  margin-bottom: var(--irsc-space-1);
  color: var(--irsc-notice-title, var(--irsc-text));
  font-weight: var(--irsc-weight-semibold);
}

.irsc-notice--success {
  --irsc-notice-bg: var(--irsc-success-soft);
  --irsc-notice-rule: var(--irsc-success);
  --irsc-notice-mark-bg: var(--irsc-success);
  --irsc-notice-mark-text: var(--irsc-surface);
  --irsc-notice-title: var(--irsc-success);
}

.irsc-notice--success::before {
  content: "\2713";
  content: "\2713" / "";
}

/* Warning: pale yellow with a black (white in dark) rule; yellow never as a line on light */
.irsc-notice--warning {
  --irsc-notice-bg: var(--irsc-highlight-soft);
  --irsc-notice-rule: var(--irsc-text);
  --irsc-notice-mark-bg: var(--irsc-highlight);
  --irsc-notice-mark-text: var(--irsc-on-highlight);
}

.irsc-notice--warning::before,
.irsc-notice--danger::before {
  content: "!";
  content: "!" / "";
}

.irsc-notice--danger {
  --irsc-notice-bg: var(--irsc-danger-soft);
  --irsc-notice-rule: var(--irsc-danger);
  --irsc-notice-mark-bg: var(--irsc-danger);
  --irsc-notice-mark-text: var(--irsc-surface);
  --irsc-notice-title: var(--irsc-danger);
}

/* Badge: short status label */
.irsc-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--irsc-space-1);
  padding: 0.125rem var(--irsc-space-2);
  border: 1px solid var(--irsc-border);
  border-radius: var(--irsc-radius-pill);
  background: var(--irsc-surface-sunken);
  color: var(--irsc-text);
  font-size: var(--irsc-text-xs);
  font-weight: var(--irsc-weight-semibold);
  letter-spacing: 0.02em;
  line-height: 1.4;
  white-space: nowrap;
}

/* Accent: River Blue tint; stays distinct from the yellow highlight in dark mode */
.irsc-badge--accent {
  border-color: var(--irsc-link);
  background: var(--irsc-accent-soft);
  color: var(--irsc-link);
}

/* Highlight: Peregrine Yellow with black text, for "New" and "Action needed" */
.irsc-badge--highlight {
  border-color: var(--irsc-highlight);
  background: var(--irsc-highlight);
  color: var(--irsc-on-highlight);
}

.irsc-badge--success {
  border-color: var(--irsc-success-soft);
  background: var(--irsc-success-soft);
  color: var(--irsc-success);
}

.irsc-badge--danger {
  border-color: var(--irsc-danger-soft);
  background: var(--irsc-danger-soft);
  color: var(--irsc-danger);
}

/* ---------- Data ---------- */

/* Table wrap: scrolls wide tables sideways; add tabindex="0" role="region" aria-label */
.irsc-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--irsc-border);
  border-radius: var(--irsc-radius-lg);
  background: var(--irsc-surface);
}

/* Table: sunken header row, divided body rows, accent-soft selection */
.irsc-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--irsc-text);
  font-size: var(--irsc-text-sm);
}

.irsc-table caption {
  padding: var(--irsc-space-3) var(--irsc-space-4);
  color: var(--irsc-text-muted);
  text-align: start;
}

.irsc-table th,
.irsc-table td {
  padding: var(--irsc-space-3) var(--irsc-space-4);
  border-bottom: 1px solid var(--irsc-border);
  text-align: start;
  vertical-align: top;
}

.irsc-table thead th {
  background: var(--irsc-surface-sunken);
  color: var(--irsc-text);
  font-weight: var(--irsc-weight-semibold);
  white-space: nowrap;
}

.irsc-table tbody th {
  background: transparent;
}

.irsc-table tbody tr:last-child > * {
  border-bottom: 0;
}

.irsc-table tbody tr:hover > * {
  background: var(--irsc-bg);
}

/* Selected row: class it, or use aria-selected inside role="grid" */
.irsc-table tbody tr.irsc-is-selected > *,
.irsc-table tbody tr[aria-selected="true"] > * {
  background: var(--irsc-accent-soft);
}

/* Numeric column: right aligned, even digit widths */
.irsc-table .irsc-num {
  font-variant-numeric: tabular-nums;
  text-align: end;
}

/* Pagination: page links in a row; mark the current page with aria-current="page" */
.irsc-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--irsc-space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.irsc-pagination a,
.irsc-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--irsc-control-height);
  min-height: var(--irsc-control-height);
  padding-inline: var(--irsc-space-3);
  border: 1px solid transparent;
  border-radius: var(--irsc-radius-md);
  color: var(--irsc-link);
  font-weight: var(--irsc-weight-semibold);
  text-decoration: none;
}

.irsc-pagination a:hover {
  border-color: var(--irsc-border-strong);
  background: var(--irsc-accent-soft);
  color: var(--irsc-link);
}

.irsc-pagination a[aria-current="page"] {
  border-color: var(--irsc-accent);
  background: var(--irsc-accent);
  color: var(--irsc-on-accent);
}

.irsc-pagination span,
.irsc-pagination a[aria-disabled="true"] {
  color: var(--irsc-text-muted);
  pointer-events: none;
}

/* ---------- Navigation ---------- */

/* Tabs: role="tablist" row; the selected tab gets an accent bar */
.irsc-tabs__list {
  display: flex;
  gap: var(--irsc-space-1);
  overflow-x: auto;
  border-bottom: 1px solid var(--irsc-border);
  scrollbar-width: thin;
}

.irsc-tabs [role="tab"] {
  position: relative;
  flex: none;
  min-height: var(--irsc-control-height);
  margin: 0;
  padding: var(--irsc-space-2) var(--irsc-space-4);
  border: 0;
  border-radius: var(--irsc-radius-sm) var(--irsc-radius-sm) 0 0;
  background: transparent;
  color: var(--irsc-text-muted);
  font: inherit;
  font-weight: var(--irsc-weight-semibold);
  white-space: nowrap;
  cursor: pointer;
}

.irsc-tabs [role="tab"]:hover {
  background: var(--irsc-surface-sunken);
  color: var(--irsc-text);
}

.irsc-tabs [role="tab"][aria-selected="true"] {
  color: var(--irsc-heading);
  text-decoration: underline 3px var(--irsc-accent);
  text-underline-offset: 0.6em;
}

.irsc-tabs [role="tab"]:focus-visible {
  outline-offset: calc(var(--irsc-focus-width) * -1);
  box-shadow: none;
}

.irsc-tabs [role="tabpanel"] {
  padding-top: var(--irsc-space-5);
}

/* Breadcrumb: ordered list of ancestors; last item has aria-current="page" */
.irsc-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  color: var(--irsc-text-muted);
  font-size: var(--irsc-text-sm);
  list-style: none;
}

.irsc-breadcrumb li + li::before {
  content: "/";
  content: "/" / "";
  margin-inline: var(--irsc-space-2);
  color: var(--irsc-text-muted);
}

.irsc-breadcrumb a {
  color: var(--irsc-link);
}

.irsc-breadcrumb [aria-current="page"] {
  color: var(--irsc-text);
  font-weight: var(--irsc-weight-semibold);
}

/* ---------- Overlays ---------- */

/* Dialog: native <dialog> opened with showModal(); header, body and footer parts */
.irsc-dialog {
  width: min(32rem, calc(100vw - var(--irsc-space-4) * 2));
  max-height: calc(100dvh - var(--irsc-space-6) * 2);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--irsc-border);
  border-radius: var(--irsc-radius-lg);
  background: var(--irsc-surface);
  color: var(--irsc-text);
  box-shadow: var(--irsc-shadow-2);
}

/* Header color at 60%: navy in light, black in dark, so a navy dark-theme
   dialog still stands out. Older browsers don't pass custom properties to
   ::backdrop, hence the fallback. */
.irsc-dialog::backdrop {
  background: color-mix(in srgb, var(--irsc-header-bg, #062551) 60%, transparent);
}

.irsc-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--irsc-space-3);
  padding: var(--irsc-space-5) var(--irsc-space-5) 0;
}

.irsc-dialog__header > :first-child {
  margin: 0;
  font-size: var(--irsc-text-xl);
}

.irsc-dialog__body {
  padding: var(--irsc-space-3) var(--irsc-space-5) var(--irsc-space-5);
}

.irsc-dialog__body > :first-child {
  margin-top: 0;
}

.irsc-dialog__body > :last-child {
  margin-bottom: 0;
}

.irsc-dialog__footer {
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: flex-end;
  gap: var(--irsc-space-3);
  padding: var(--irsc-space-4) var(--irsc-space-5);
  border-top: 1px solid var(--irsc-border);
  background: var(--irsc-surface-sunken);
}

/* Toast region: fixed stack at the bottom; put role="status" on it */
.irsc-toast-region {
  position: fixed;
  right: var(--irsc-space-4);
  bottom: var(--irsc-space-4);
  left: var(--irsc-space-4);
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--irsc-space-2);
  pointer-events: none;
}

@media (min-width: 48rem) {
  .irsc-toast-region {
    left: auto;
    align-items: flex-end;
  }
}

/* Toast: brief confirmation on the header's navy with a yellow edge */
.irsc-toast {
  display: flex;
  align-items: center;
  gap: var(--irsc-space-3);
  width: 100%;
  max-width: 24rem;
  padding: var(--irsc-space-3) var(--irsc-space-4);
  border-left: 4px solid var(--irsc-header-accent);
  border-radius: var(--irsc-radius-md);
  background: var(--irsc-header-bg);
  color: var(--irsc-header-text);
  box-shadow: var(--irsc-shadow-2);
  pointer-events: auto;
  animation: irsc-toast-in 200ms var(--irsc-ease);
}

@keyframes irsc-toast-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
}

/* Empty state: centered message and next step when a list has nothing in it */
.irsc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--irsc-space-3);
  padding: var(--irsc-space-7) var(--irsc-space-5);
  border: 1px dashed var(--irsc-border-strong);
  border-radius: var(--irsc-radius-lg);
  background: var(--irsc-surface);
  color: var(--irsc-text-muted);
  text-align: center;
}

.irsc-empty__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--irsc-radius-pill);
  background: var(--irsc-accent-soft);
  color: var(--irsc-link);
}

.irsc-empty :where(h2, h3, h4) {
  margin: 0;
  color: var(--irsc-heading);
}

.irsc-empty p {
  max-width: 40ch;
  margin: 0;
}

/* ---------- Footer ---------- */

/* Footer: quiet closing band with college name and app links */
.irsc-footer {
  margin-top: var(--irsc-space-8);
  padding-block: var(--irsc-space-6);
  border-top: 1px solid var(--irsc-border);
  background: var(--irsc-surface);
  color: var(--irsc-text-muted);
  font-size: var(--irsc-text-sm);
}

.irsc-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--irsc-space-3) var(--irsc-space-5);
}

.irsc-footer a {
  color: var(--irsc-link);
}

/* ---------- Forced colors ---------- */

/* Keep component edges and markers visible when the system replaces colors */
@media (forced-colors: active) {
  .irsc-btn,
  .irsc-badge,
  .irsc-card,
  .irsc-notice,
  .irsc-toast,
  .irsc-empty,
  .irsc-table-wrap {
    border: 1px solid CanvasText;
  }

  .irsc-notice::before {
    forced-color-adjust: none;
    background: CanvasText;
    color: Canvas;
  }

  .irsc-pagination a[aria-current="page"] {
    border: 2px solid Highlight;
  }

  /* The accent fill is dropped, so the selected theme gets the system
     highlight plus an underline */
  .irsc-theme-switch [aria-pressed="true"],
  .irsc-theme-switch [aria-pressed="true"]:hover {
    forced-color-adjust: none;
    background: Highlight;
    color: HighlightText;
    text-decoration: underline 2px;
    text-underline-offset: 0.3em;
  }

  .irsc-btn:disabled,
  .irsc-btn[aria-disabled="true"] {
    border-color: GrayText;
    color: GrayText;
  }

  /* The selected-row tint is dropped, so mark the row with a system-color edge */
  .irsc-table tbody tr.irsc-is-selected > *,
  .irsc-table tbody tr[aria-selected="true"] > * {
    border-block: 2px solid Highlight;
  }
}
/* irsc-brand:end */

/* RiverBook styles (built on irsc-brand tokens above) */
@font-face {
  font-family: "Aleo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/aleo-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
}

:root {
  --rb-muted: var(--irsc-text-muted, #536270);
  --rb-hairline: var(--irsc-border, #d8e0e8);
  --rb-surface: var(--irsc-surface, #ffffff);
  --rb-bg: var(--irsc-bg, #f7f9fb);
  --rb-accent: var(--irsc-blue, #0052cc);
}

body {
  margin: 0;
  font-family: "Instrument Sans", system-ui, sans-serif;
  background: var(--rb-bg);
  color: var(--irsc-text, #16212c);
}

.rb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--rb-hairline);
  background: var(--rb-surface);
}
.rb-wordmark {
  display: grid;
  text-decoration: none;
  color: var(--irsc-heading, #062551);
}
.rb-wordmark__name {
  font-family: "Aleo", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}
.rb-wordmark__eyebrow {
  font-size: 0.75rem;
  color: var(--rb-muted);
}
.rb-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.rb-nav a {
  color: var(--irsc-heading, #062551);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.rb-nav a:hover { text-decoration: underline; }
.rb-auth { display: flex; align-items: center; gap: 10px; }
.rb-user-badge { font-size: 0.88rem; color: var(--rb-muted); }

.rb-main {
  width: min(1040px, calc(100vw - 32px));
  margin: 28px auto 72px;
}
.rb-main--narrow { width: min(520px, calc(100vw - 32px)); }

.rb-hero h1 {
  margin: 0 0 8px;
  font-family: "Aleo", Georgia, serif;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  color: var(--irsc-heading, #062551);
}
.rb-hero p {
  margin: 0 0 22px;
  color: var(--rb-muted);
  font-size: 1.02rem;
  max-width: 68ch;
}

.rb-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--rb-hairline);
  padding-bottom: 12px;
}
.rb-tab {
  padding: 9px 16px;
  border: 1px solid var(--rb-hairline);
  border-radius: 999px;
  background: var(--rb-surface);
  color: var(--irsc-heading, #062551);
  font: inherit;
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
}
.rb-tab[aria-selected="true"] {
  border-color: var(--rb-accent);
  background: var(--rb-accent);
  color: #fff;
}

.rb-filters {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 1px solid var(--rb-hairline);
  border-radius: 18px;
  background: var(--rb-surface);
}
.rb-campuses { display: flex; flex-wrap: wrap; gap: 8px; }
.rb-pill-btn {
  padding: 6px 13px;
  border: 1px solid var(--rb-hairline);
  border-radius: 999px;
  background: transparent;
  color: var(--irsc-heading, #062551);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}
.rb-pill-btn[aria-pressed="true"] {
  border-color: var(--irsc-heading, #062551);
  background: var(--irsc-heading, #062551);
  color: #fff;
}
.rb-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.rb-field { display: grid; gap: 5px; font-size: 0.85rem; color: var(--rb-muted); }
.rb-field input, .rb-field select, .rb-field textarea {
  padding: 9px 12px;
  border: 1px solid var(--rb-hairline);
  border-radius: 10px;
  background: var(--rb-bg);
  color: var(--irsc-heading, #062551);
  font: inherit;
  font-size: 0.95rem;
}

.rb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.rb-stack { display: grid; gap: 14px; }
.rb-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px 20px;
  border: 1px solid var(--rb-hairline);
  border-radius: 18px;
  background: var(--rb-surface);
}
.rb-card__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.rb-card__title { margin: 0; font-size: 1.15rem; color: var(--irsc-heading, #062551); }
.rb-card__desc { margin: 0; font-size: 0.92rem; color: var(--rb-muted); line-height: 1.45; }
.rb-card__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.rb-tag { font-size: 0.8rem; font-weight: 600; color: var(--rb-accent); }
.rb-cap { font-size: 0.78rem; color: var(--rb-muted); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--rb-hairline); }

.rb-subjects { display: flex; flex-wrap: wrap; gap: 6px; }
.rb-subject { font-size: 0.76rem; padding: 3px 8px; border-radius: 6px; background: color-mix(in srgb, var(--rb-accent) 10%, transparent); color: var(--irsc-heading, #062551); }

.rb-slots { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.rb-slot {
  padding: 7px 11px;
  border: 1px solid var(--rb-hairline);
  border-radius: 10px;
  background: var(--rb-bg);
  color: var(--irsc-heading, #062551);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}
.rb-slot:hover { border-color: var(--rb-accent); background: var(--rb-accent); color: #fff; }
.rb-closed { margin: 4px 0 0; font-size: 0.9rem; color: var(--rb-muted); font-style: italic; }

.rb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}
.rb-btn--sm { padding: 7px 13px; font-size: 0.85rem; }
.rb-btn--primary { background: var(--rb-accent); color: #fff; }
.rb-btn--primary:disabled { opacity: 0.5; cursor: not-allowed; }
.rb-btn--ghost { border-color: var(--rb-hairline); background: transparent; color: var(--irsc-heading, #062551); }

.rb-notice {
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, #1e7e4f 12%, var(--rb-surface));
  border: 1px solid color-mix(in srgb, #1e7e4f 35%, transparent);
  color: var(--irsc-heading, #062551);
  font-weight: 500;
}
.rb-error {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, #c0392b 12%, var(--rb-surface));
  color: #a93226;
  font-size: 0.9rem;
}
.rb-muted { color: var(--rb-muted); font-size: 0.9rem; }
.rb-empty { grid-column: 1 / -1; padding: 28px; text-align: center; color: var(--rb-muted); border: 1px dashed var(--rb-hairline); border-radius: 16px; }
.rb-link { color: var(--rb-accent); font-weight: 600; }

.rb-checkin-box { padding: 10px 12px; border-radius: 10px; background: var(--rb-bg); font-size: 0.9rem; }
.rb-code { font-family: ui-monospace, monospace; font-size: 1.05rem; letter-spacing: 0.08em; }
.rb-code-input { font-family: ui-monospace, monospace; font-size: 1.35rem; letter-spacing: 0.14em; text-transform: uppercase; text-align: center; }

.rb-hours-list { display: grid; gap: 10px; }
.rb-hours-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 16px;
  padding: 14px 16px;
  border: 1px solid var(--rb-hairline);
  border-radius: 14px;
  background: var(--rb-surface);
}
.rb-hours-right { text-align: right; display: grid; gap: 3px; }
.rb-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--rb-bg);
  color: var(--rb-muted);
}
.rb-badge--ok { background: color-mix(in srgb, #1e7e4f 15%, var(--rb-surface)); color: #1e7e4f; }
.rb-section-title { margin: 8px 0 4px; font-size: 1.2rem; color: var(--irsc-heading, #062551); }
.rb-admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.rb-admin-head h1 { margin: 0; font-family: "Aleo", Georgia, serif; color: var(--irsc-heading, #062551); }

.rb-dialog {
  width: min(460px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid var(--rb-hairline);
  border-radius: 20px;
  background: var(--rb-surface);
  color: var(--irsc-text, #16212c);
}
.rb-dialog::backdrop { background: rgb(6 37 81 / 0.55); }
.rb-dialog__inner { display: grid; gap: 14px; padding: 22px 24px; }
.rb-dialog__inner h2 { margin: 0; font-family: "Aleo", Georgia, serif; color: var(--irsc-heading, #062551); }
.rb-dialog__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }

.rb-footer {
  border-top: 1px solid var(--rb-hairline);
  padding: 20px 24px;
  background: var(--rb-surface);
}
.rb-footer__row {
  width: min(1040px, calc(100vw - 32px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--rb-muted);
  font-size: 0.9rem;
}
.rb-footer__row p { margin: 0; }

/* /how-to visual guide (RiverGuide / NDS editorial style) */
.rb-guide {
  width: min(980px, calc(100vw - 32px));
  margin: 0 auto 88px;
}

.rb-guide-hero {
  padding: clamp(44px, 8vw, 88px) 0 clamp(40px, 6vw, 72px);
  max-width: 680px;
}
.rb-guide-hero h1 {
  margin: 0 0 18px;
  font-family: "Aleo", Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--irsc-heading, #062551);
}
.rb-guide-hero p {
  margin: 0 0 26px;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.5;
  color: var(--rb-muted);
}
.rb-guide-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rb-stories {
  display: grid;
  gap: clamp(44px, 7vw, 84px);
}
.rb-story {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(24px, 5vw, 56px);
}
.rb-story--flip .rb-stage { order: 2; }
.rb-story__copy h2 {
  margin: 0 0 12px;
  font-family: "Aleo", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--irsc-heading, #062551);
}
.rb-story__copy p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--rb-muted);
}
.rb-story__copy code {
  font-family: ui-monospace, monospace;
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--rb-surface);
  border: 1px solid var(--rb-hairline);
  color: var(--irsc-heading, #062551);
}

/* Tactile stage tiles holding miniature UI scenes */
.rb-stage {
  border-radius: 28px;
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  place-items: center;
  min-height: 270px;
  overflow: hidden;
}
.rb-stage--sky {
  background: linear-gradient(145deg, #e7f0ff 0%, #d4e5ff 100%);
}
.rb-stage--navy {
  background: linear-gradient(145deg, #062551 0%, #0d3a78 100%);
}
.rb-stage--warm {
  background: linear-gradient(145deg, #fdf3dc 0%, #f7e4bc 100%);
}
.rb-stage--ink {
  background: linear-gradient(145deg, #101b2d 0%, #1c3152 100%);
}
.rb-stage--mint {
  background: linear-gradient(145deg, #e3f5ec 0%, #ccecd9 100%);
}
[data-theme="dark"] .rb-stage--sky { background: linear-gradient(145deg, #0e2444 0%, #13335e 100%); }
[data-theme="dark"] .rb-stage--warm { background: linear-gradient(145deg, #2d2514 0%, #3d3118 100%); }
[data-theme="dark"] .rb-stage--mint { background: linear-gradient(145deg, #102a1f 0%, #173d2d 100%); }

.rb-mock {
  width: 100%;
  max-width: 380px;
  padding: 20px;
  border-radius: 20px;
  background: var(--rb-surface);
  box-shadow: 0 18px 44px rgb(6 37 81 / 0.14), 0 1px 2px rgb(6 37 81 / 0.08);
  display: grid;
  gap: 10px;
}
.rb-mock--dark {
  background: rgb(255 255 255 / 0.09);
  border: 1px solid rgb(255 255 255 / 0.16);
  box-shadow: 0 18px 44px rgb(0 0 0 / 0.28);
  color: #fff;
}
.rb-mock__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.rb-mock__campus { font-size: 0.78rem; font-weight: 700; color: var(--rb-accent); text-transform: uppercase; letter-spacing: 0.04em; }
.rb-mock__pill { font-size: 0.76rem; color: var(--rb-muted); padding: 2px 9px; border-radius: 999px; border: 1px solid var(--rb-hairline); }
.rb-mock__title { margin: 0; font-weight: 700; font-size: 1.05rem; color: var(--irsc-heading, #062551); }
.rb-mock__sub { margin: 0; font-size: 0.84rem; color: var(--rb-muted); }
.rb-mock--dark .rb-mock__sub { color: rgb(255 255 255 / 0.74); }
.rb-mock__label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgb(255 255 255 / 0.72); font-weight: 600; }
.rb-mock__ok { font-size: 0.8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #1e7e4f; color: #fff; }
.rb-mock__code {
  margin: 4px 0 2px;
  font-family: ui-monospace, monospace;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
}
.rb-mock__meter {
  height: 6px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.18);
  overflow: hidden;
}
.rb-mock__meter-fill {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: 999px;
  background: #e9c46a;
}

.rb-mock__slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.rb-mock__slots span {
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--rb-hairline);
  background: var(--rb-bg);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--irsc-heading, #062551);
}
.rb-mock__slots .is-picked {
  background: var(--rb-accent);
  border-color: var(--rb-accent);
  color: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--rb-accent) 22%, transparent);
}

.rb-mock__search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--rb-bg);
  border: 1px solid var(--rb-hairline);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--irsc-heading, #062551);
}
.rb-mock__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.rb-mock__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--rb-hairline);
}
.rb-mock__list strong { display: block; font-size: 0.9rem; color: var(--irsc-heading, #062551); }
.rb-mock__list span { font-size: 0.8rem; color: var(--rb-muted); }
.rb-mock__list em {
  font-style: normal;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, #1e7e4f 14%, transparent);
  color: #1e7e4f;
}

.rb-mock--chat {
  background: transparent;
  box-shadow: none;
  padding: 0;
  gap: 12px;
}
.rb-mock__q {
  margin: 0;
  justify-self: end;
  padding: 11px 16px;
  border-radius: 18px 18px 4px 18px;
  background: var(--rb-accent);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
}
.rb-mock__a {
  padding: 14px 16px;
  border-radius: 18px 18px 18px 4px;
  background: var(--rb-surface);
  box-shadow: 0 14px 32px rgb(0 0 0 / 0.24);
  display: grid;
  gap: 10px;
}
.rb-mock__a p { margin: 0; font-size: 0.9rem; color: var(--irsc-text, #16212c); }
.rb-mock__deeplink {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--rb-accent) 12%, var(--rb-surface));
  color: var(--rb-accent);
  font-size: 0.85rem;
  font-weight: 700;
}

.rb-mock__cal {
  display: flex;
  align-items: center;
  gap: 14px;
}
.rb-mock__date {
  width: 52px;
  height: 54px;
  border-radius: 12px;
  background: var(--rb-bg);
  border: 1px solid var(--rb-hairline);
  display: grid;
  place-items: center;
  align-content: center;
  flex: none;
}
.rb-mock__date span { font-size: 0.68rem; font-weight: 700; color: var(--rb-accent); letter-spacing: 0.06em; }
.rb-mock__date strong { font-size: 1.3rem; line-height: 1; color: var(--irsc-heading, #062551); }
.rb-mock__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.rb-mock__btn {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--rb-hairline);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--irsc-heading, #062551);
}
.rb-mock__btn--primary { background: var(--rb-accent); border-color: var(--rb-accent); color: #fff; }

.rb-facts {
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: 32px;
  border-top: 1px solid var(--rb-hairline);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.rb-facts h3 { margin: 0 0 6px; font-size: 1.02rem; color: var(--irsc-heading, #062551); }
.rb-facts p { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--rb-muted); }

.rb-guide-end {
  margin-top: 56px;
  padding: 36px 28px;
  border-radius: 24px;
  background: var(--rb-surface);
  border: 1px solid var(--rb-hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.rb-guide-end h2 {
  margin: 0;
  font-family: "Aleo", Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--irsc-heading, #062551);
}

@media (max-width: 760px) {
  .rb-story { grid-template-columns: 1fr; }
  .rb-story--flip .rb-stage { order: 0; }
  .rb-facts { grid-template-columns: 1fr; gap: 20px; }
}
