:root {
    --primary-navy: #0a192f;
    --primary-navy-dark: #060e1a;
    --primary-navy-light: #172a45;
    --accent-gold: #e5a823;
    --accent-gold-hover: #c99218;
    --bg-light: #f8fafc;
    --surface-white: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-light: #ffffff;
    --border-color: #cbd5e1;
    --error-red: #ef4444;
    --radius: 6px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

    /* Radii */
    --radius-sm: 4px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;

    /* Elevation Micro-Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 6px 16px -3px rgba(15, 23, 42, 0.09), 0 3px 8px -3px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 6px 12px -4px rgba(15, 23, 42, 0.06);

    /* Semantic Status Tokens */
    --status-success: #15803d;
    --status-success-bg: #f0fdf4;
    --status-success-border: #bbf7d0;

    --status-warning: #b45309;
    --status-warning-bg: #fffbeb;
    --status-warning-border: #fde68a;

    --status-danger: #b91c1c;
    --status-danger-bg: #fef2f2;
    --status-danger-border: #fecaca;

    --status-info: #1d4ed8;
    --status-info-bg: #eff6ff;
    --status-info-border: #bfdbfe;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-light);
    color: var(--text-body);
    line-height: 1.55;
}

/* Global Navbar Styling */
.navbar {
    background-color: var(--primary-navy);
    /* the header is wider than the page's own column: the logo sits near the left edge, the buttons near the right */
    padding: 16px clamp(24px, 4.5vw, 88px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--surface-white);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    text-decoration: none !important;
}

.navbar-brand .brand-badge {
    color: var(--accent-gold);
    display: block;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 16px;
    list-style: none;
    align-items: center;
    margin: 0 auto 0 44px;
    padding: 0;
}

.nav-links a {
    color: #cbd8ea;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 10px 18px;
    border-radius: 8px;
    transition: background-color .15s, color .15s;
}

.nav-links a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.09);
}

.nav-links a.active {
    color: #ffffff;
    background-color: transparent;
    box-shadow: inset 0 -3px 0 var(--accent-gold);
    border-radius: 8px 8px 2px 2px;
}

.auth-btns {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar .btn-outline-gold,
.navbar .btn-gold {
    padding: 10px 18px;
    border-radius: 10px;
    font-size: .9rem;
}
.navbar .btn-gold { font-weight: 800; }

.btn-outline-gold {
    border: 1.5px solid var(--accent-gold);
    color: var(--accent-gold);
    background: transparent;
    padding: 8px 18px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-outline-gold:hover, .btn-outline-gold:focus {
    background-color: rgba(229, 168, 35, 0.1);
    color: var(--accent-gold) !important;
    border-color: var(--accent-gold);
}

.btn-gold {
    background-color: var(--accent-gold);
    color: var(--primary-navy-dark) !important;
    border: none;
    padding: 8px 18px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.btn-gold:hover, .btn-gold:focus {
    background-color: var(--accent-gold-hover);
    color: var(--primary-navy-dark) !important;
}

.btn-gold:active {
    transform: translateY(1px);
}

/* ==========================================================================
   GLOBAL BUTTON SYSTEM — NO UNINTENDED UNDERLINES
   ========================================================================== */
.btn,
a.btn,
button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-family: inherit;
    font-size: .87rem;
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    cursor: pointer;
    vertical-align: middle;
    transition: all .16s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.btn:hover, a.btn:hover, button.btn:hover,
.btn:focus, a.btn:focus, button.btn:focus {
    text-decoration: none !important;
    transform: translateY(-1px);
}

.btn:active, a.btn:active, button.btn:active {
    text-decoration: none !important;
    transform: translateY(1px);
}

.btn:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }

.btn-primary {
    background-color: var(--primary-navy);
    color: var(--surface-white) !important;
    border-color: var(--primary-navy);
}
.btn-primary:hover {
    background-color: var(--primary-navy-light);
    border-color: var(--primary-navy-light);
    color: var(--surface-white) !important;
}

.btn-accent {
    background-color: var(--accent-gold);
    color: var(--primary-navy-dark) !important;
    border-color: var(--accent-gold);
}
.btn-accent:hover {
    background-color: var(--accent-gold-hover);
    border-color: var(--accent-gold-hover);
    color: var(--primary-navy-dark) !important;
}

.btn-quiet {
    background: var(--surface-white);
    color: var(--text-dark);
    border-color: var(--border-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.btn-quiet:hover {
    border-color: var(--primary-navy);
    background: #f8fafc;
    color: var(--text-dark);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.btn-danger {
    background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
    color: #fff !important;
    border-color: #991b1b;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 5px rgba(185, 28, 28, 0.25);
}
.btn-danger:hover {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    color: #fff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 12px rgba(185, 28, 28, 0.35);
}

.btn-sm { padding: 5px 11px; font-size: .78rem; }
.btn:disabled, a.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; transform: none !important; box-shadow: none !important; }

button,
[role="button"],
[role="tab"],
.btn,
a.btn,
button.btn,
.tab-btn,
a.tab-btn,
button.tab-btn,
.tab,
a.tab,
button.tab,
.sidebar-menu a,
.pill,
a.pill,
.badge,
a.badge,
.status-pill,
a.status-pill,
.btn-logout,
.notification-bell {
    text-decoration: none !important;
}

button:hover,
button:focus,
button:active,
[role="button"]:hover,
[role="button"]:focus,
[role="button"]:active,
[role="tab"]:hover,
[role="tab"]:focus,
[role="tab"]:active,
.btn:hover,
a.btn:hover,
button.btn:hover,
.tab-btn:hover,
a.tab-btn:hover,
button.tab-btn:hover,
.tab:hover,
a.tab:hover,
button.tab:hover,
.sidebar-menu a:hover,
.pill:hover,
a.pill:hover,
.badge:hover,
a.badge:hover,
.status-pill:hover,
a.status-pill:hover,
.btn-logout:hover {
    text-decoration: none !important;
}

button *,
[role="button"] *,
[role="tab"] *,
.btn *,
a.btn *,
.tab-btn *,
.tab * {
    text-decoration: none !important;
}

/* Prevent any strikethrough or underline leaking into action elements */
table tr td button,
table tr td a,
table tr td .btn,
table tr.void td button,
table tr.void td a,
table tr.void td .btn {
    text-decoration: none !important;
}

/* Global Containers */
.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.card {
    background: var(--surface-white);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    padding: 32px;
}

/* HERO BACKGROUND, shared by Home, the Transparency Portal and Contact (all three use .bp-hero).
   The campus photo is a faint layer over the navy (the same size and position on
   all three: it fills the width, is anchored to the top and is cut off at the hero's edge), and a field of small
   dots sits on top of it, fading out toward the bottom. Text sits above both. */
.bp-hero {
    position: relative;
    overflow: hidden;
}

.bp-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* One fixed size for the photo on every page: the heroes differ in height, and a photo fitted to each
       would be cropped and scaled differently on Home, the Portal and Contact. The layer is always at least
       as tall as the tallest hero and is anchored to the top, so all three show the same picture. */
    height: max(100%, 560px);
    background-image: url('../../assets/Facilities.jpg');
    background-size: cover;
    background-position: center top;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}

.bp-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
            mask-image: linear-gradient(180deg, #000, transparent 85%);
    z-index: 1;
    pointer-events: none;
}

.bp-hero>* {
    position: relative;
    z-index: 2;
}

/* ACCESSIBILITY
   Moved to its own file, public/css/base/a11y.css, and rewritten. What was here:

     .a11y-widget      pinned at top:100px, sitting on top of the first card
                       on every dashboard
     .a11y-large-text  zoom: 1.15 — one fixed step, scaling the picture rather
                       than letting the layout reflow
     .a11y-high-contrast *  black background and #ffcc00 text on EVERY element,
                       which flattened every status pill in the system to one
                       identical colour
     .a11y-highlight-links  a bright yellow background on every <a> AND every
                       <button>, which made "Verify & release" and "Reject"
                       pixel-identical

   a11y.css keeps the semantic colours, applies link styling to links only, and
   is loaded by every page including login, which never had any of this. */

/* ===========================================================================
   PUBLIC FOOTER
   Two lines and a row of links. The first version carried a paragraph of
   statute under every page, which is a lot of legal text to end a homepage on.
   =========================================================================== */
.site-footer {
    background: var(--primary-navy-dark, #060e1a);
    color: #aebfd6;
    padding: 44px max(24px, calc((100% - 1180px) / 2 + 24px)) 0;
    margin-top: 72px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;   /* the College, Explore, Transparency, the Office */
    gap: 36px 40px;
    padding-bottom: 34px;
}

.footer-brand { display: flex; align-items: flex-start; gap: 14px; }
.footer-brand img {
    width: 48px; height: 48px; flex: 0 0 auto;
    border-radius: 8px; object-fit: contain; background: #fff; padding: 3px;
}
.footer-brand strong { display: block; color: #fff; font-size: 1.05rem; line-height: 1.3; font-weight: 800; }
.footer-brand span { display: block; margin-top: 3px; font-size: .86rem; color: var(--accent-gold, #e5a823); font-weight: 700; letter-spacing: .02em; }
.footer-about { margin: 14px 0 0; max-width: 380px; font-size: .88rem; line-height: 1.65; color: #aebfd6; }

.footer-col h2 {
    margin: 0 0 14px;
    font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: var(--accent-gold, #e5a823);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-col a {
    display: inline-block; padding: 4px 0;
    color: #e2e8f0; font-size: .92rem; font-weight: 600; text-decoration: none;
    border-bottom: 1px solid transparent;
}
.footer-col a:hover,
.footer-col a:focus-visible { color: #fff; border-bottom-color: var(--accent-gold, #e5a823); }
.footer-col a:focus-visible { outline: 3px solid var(--accent-gold, #e5a823); outline-offset: 2px; }

.footer-contact { margin: 0; display: grid; gap: 12px; font-size: .9rem; }
.footer-contact dt { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7f93ad; }
.footer-contact dd { margin: 2px 0 0; color: #e2e8f0; line-height: 1.5; overflow-wrap: anywhere; }
.footer-contact a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.footer-contact a:hover { border-bottom-color: var(--accent-gold, #e5a823); }

.footer-base {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
    padding: 18px 0 22px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .8rem; line-height: 1.6; color: #8ea2bd;
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .site-footer { padding: 32px 16px 0; margin-top: 48px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 26px; }
}

/* ==========================================================================
   "Go" arrows after a link or a button. DRAWN with borders: a typed arrow is a font glyph, and on some machines a
   glyph turns into a coloured emoji. (The to-do rows of the dashboards have theirs in dash-theme.css.)
   ========================================================================== */
.pathway-link::after, .feed-more::after, .bp-file-go::after, .chip-action::after {
    content: ''; display: inline-block; width: .42em; height: .42em; margin-left: .5em;
    border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg) translateY(-.05em);
}
