/* Shared site chrome: the navbar and footer that bookend every page.
   Both use the same light-grey to dark-grey gradient, mirrored so the page
   opens and closes on the lighter tone. Loaded by every layout, which is why
   these rules live here rather than in a per-layout stylesheet. */

:root {
    --chrome-light: #f5f5f5;
    --chrome-dark: #b8b8b8;
    --chrome-edge: #a6a6a6;
    /* Navbar and footer share one flat colour in light mode; the dark theme
       swaps both tokens for its gradients. */
    --navbar-bg: #bcede9;
    --footer-bg: #bcede9;
}

/* --- Navbar --- */

.new-navbar {
    background: var(--navbar-bg);
    color: var(--tla-ink, #1f2330);
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--chrome-edge);
    box-shadow:
        rgba(0, 0, 0, 0.06) 0px 2px 1px,
        rgba(0, 0, 0, 0.07) 0px 4px 2px,
        rgba(0, 0, 0, 0.07) 0px 8px 4px,
        rgba(0, 0, 0, 0.06) 0px 16px 8px;
}

.new-navbar .navbar-brand,
.new-navbar .nav-link,
.new-navbar .navbar-toggler {
    color: var(--tla-ink, #1f2330);
}

.new-navbar .navbar-brand {
    font-weight: 700;
}

.new-navbar .navbar-toggler {
    border: 0;
    font-size: 1.5rem;
}

.new-navbar .nav-link:hover,
.new-navbar .nav-link:focus-visible,
.new-navbar .nav-link.active {
    color: #000;
}

/* --- Responsive behaviour -----------------------------------------------
   The navbar expands at 1400px (navbar-expand-xxl in the two nav partials);
   below that every link is a stacked menu behind the hamburger, so nothing
   can overflow. Expanded, the bar spans the viewport (container-fluid) and
   the links keep one size and spacing at every width: the text is never
   shrunk and the icons never dropped (the customer found the compact
   version tiny and cramped, 2026-11-04). When the row does not fit, as it
   will not on a 1366-1700px screen once an admin is signed in, it wraps
   onto a second line rather than pushing the page sideways. */
.new-navbar .navbar-nav {
    gap: 0.25rem 0.75rem;
}

.new-navbar .navbar-brand span {
    white-space: nowrap;
}

@media (min-width: 1400px) {
    .new-navbar .navbar-nav {
        flex-wrap: wrap;
    }

    .new-navbar .navbar-nav > .nav-item > .nav-link {
        white-space: nowrap;
        padding: 0.45rem 0.55rem;
        font-size: 1.05rem;
    }
}

/* --- Footer --- */

.footer-bg {
    background: var(--footer-bg);
    color: var(--tla-ink, #1f2330);
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid var(--chrome-edge);
    box-shadow:
        rgba(0, 0, 0, 0.06) 0px -2px 1px,
        rgba(0, 0, 0, 0.07) 0px -4px 2px,
        rgba(0, 0, 0, 0.07) 0px -8px 4px,
        rgba(0, 0, 0, 0.06) 0px -16px 8px;
}

.footer-bg a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-bg a:hover,
.footer-bg a:focus-visible {
    color: #000;
    text-decoration: underline;
}

/* The accent reads as a highlight against the grey rather than as body text. */
.footer-bg .fa-envelope {
    color: var(--tla-accent-dark, #d9a800);
}

.footer-copyright {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* The group's college logos, one row, bottom centre, as a single strip in
   one ink: brightness(0) flattens every mark to black whatever its brand
   colour, and the dark theme inverts that to white (dark-theme.css). */
.footer-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem 1.75rem;
    padding: 0.5rem 1rem 1rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
}

.footer-logo img {
    display: block;
    height: 26px;
    width: auto;
    filter: brightness(0);
    opacity: 0.85;
}

@media (max-width: 575.98px) {
    .footer-logos {
        gap: 0.5rem 1rem;
    }

    .footer-logo img {
        height: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-bg a {
        transition: none;
    }
}
