/* =====================================================================
   Transcript Web Portal — native stylesheet

   Mirrors the legacy design language (resources/views/public/include/
   style.blade.php + login/head.blade.php) with the same palette, type
   scale and components — but with no Bootstrap, no jQuery, no Font
   Awesome and no CDN. Fonts are self-hosted; icons are an inline SVG
   sprite.

   Layout: mobile-first, fluid, tested at 375 / 768 / 1280.
   ===================================================================== */

/* Self-hosted webfonts. The woff2 URLs inside resolve relative to that
   file, i.e. assets/fonts/ — no external host is contacted. */
@import url("../fonts/fonts.css");

/* Page components ported from the legacy per-page <style> blocks. */
@import url("components.css");

:root {
    /* Palette lifted verbatim from the legacy :root block */
    --teal:        #009688;
    --teal-dark:   #00796b;
    --teal-deep:   #004d40;
    --teal-light:  #e0f2f1;
    --teal-mid:    #26a69a;
    --notice-bg:   #1b4332;
    --notice-card: #f0faf6;
    --amber:       #f5a623;
    --white:       #ffffff;
    --off-white:   #f8fafa;
    --text-dark:   #1a2e2c;
    --text-mid:    #3d5a57;
    --text-light:  #6b8f8b;
    --border:      #d0eae8;
    --red-note:    #c0392b;

    --shadow-sm:   0 2px 8px rgba(0,150,136,.10);
    --shadow-md:   0 6px 24px rgba(0,150,136,.14);
    --shadow-lg:   0 22px 55px rgba(8,24,40,.14);
    --radius:      10px;

    --danger:      #c0392b;
    --danger-pale: #fdecea;
    --warning:     #b26a00;
    --warning-pale:#fff4e5;
    --success:     #1b7a3d;
    --success-pale:#eaf7ef;
    --info:        #0277bd;
    --info-pale:   #e3f2fd;

    --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

    --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    background: var(--off-white);
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.65;
    overflow-x: hidden;
}

a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--teal); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 600; }

/* Icon sprite sizing */
.ico {
    width: 1em; height: 1em;
    fill: currentColor;
    vertical-align: -.125em;
    flex: 0 0 auto;
}

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 2000;
    background: var(--teal-dark); color: #fff; padding: 10px 18px;
}
.skip-link:focus { left: 0; }

/* =====================================================================
   TOP BAR
   ===================================================================== */
.topbar {
    background: var(--teal-deep);
    color: rgba(255,255,255,.82);
    font-size: 12px;
    padding: 6px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.topbar a {
    color: rgba(255,255,255,.82);
    margin-left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.topbar a:hover { color: #fff; }
.topbar-group { display: flex; align-items: center; flex-wrap: wrap; }

@media (max-width: 1129px) {
    .topbar { padding: 6px 16px; }
    .topbar-tagline { display: none; }
    .topbar a { margin: 0 8px 0 0; }
    .topbar { justify-content: center; gap: 4px 14px; }
}

/* =====================================================================
   NAVBAR — white, sticky
   ===================================================================== */
nav.site-nav {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 999;
}
.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
    gap: 12px;
}
/* Metrics match the legacy header exactly: 50px logo mark (head.blade.php
   overrides style.blade.php's 40px), 11px gap, 18px/14px brand text, and
   a brand that does not shrink. No ellipsis — the original never
   truncated the title, and truncating it read as a rendering fault. */
.nav-brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-circle {
    width: 50px; height: 50px; flex: 0 0 auto;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.logo-circle img { width: 50px; height: 50px; object-fit: contain; }
/* The legacy markup used block-level <div>s here, so the two lines
   stacked. These are <span>s (valid inside the <a>), so they need an
   explicit block display or the title and sub-title run together on one
   line. */
.nav-brand-text { display: flex; flex-direction: column; justify-content: center; }
.nav-brand-text .title {
    display: block;
    font-size: 18px; font-weight: 600; color: var(--text-dark); line-height: 1.2;
}
.nav-brand-text .sub {
    display: block;
    font-size: 14px; color: var(--text-light); line-height: 1.3;
}

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
    color: var(--text-mid);
    font-size: 14px; font-weight: 500;
    padding: 8px 13px; border-radius: 6px;
    transition: background .2s, color .2s;
    display: flex; align-items: center; gap: 5px; white-space: nowrap;
}

/* Two label variants per link.
   Measured: the brand is ~582px and the full-label list ~692px, so with
   48px of gutter the full header needs ~1322px. Below that the shorter
   wording keeps it on one line; the legacy nav had no such fallback and
   overflowed horizontally on any laptop narrower than ~1320px. */
.nav-links .lbl-short { display: none; }
@media (max-width: 1379px) {
    .nav-links .lbl-full  { display: none; }
    .nav-links .lbl-short { display: inline; }
    .nav-links a { padding: 8px 11px; }
}
/* Reclaim brand width before giving up on a horizontal nav entirely. */
@media (max-width: 1199px) {
    .nav-brand-text .title { font-size: 15.5px; }
    .nav-brand-text .sub   { font-size: 12px; }
    .logo-circle, .logo-circle img { width: 44px; height: 44px; }
    .nav-links a { padding: 8px 9px; font-size: 13.5px; }
}
.nav-links a:hover, .nav-links a.active { background: var(--teal-light); color: var(--teal-dark); }

.nav-links .dropdown { position: relative; }
.nav-links .dropdown-menu {
    display: none; position: absolute; top: 100%; right: 0;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-md); min-width: 230px; overflow: hidden; padding: 4px;
}
.nav-links .dropdown:hover .dropdown-menu,
.nav-links .dropdown.is-open .dropdown-menu { display: block; }
.nav-links .dropdown-menu a { border-radius: 6px; padding: 10px 14px; font-size: 14px; }

/* Hamburger */
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 6px; border: none; background: transparent;
}
.hamburger span {
    display: block; width: 24px; height: 2.5px;
    background: var(--teal-dark); border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Positioned against the sticky <nav> rather than the viewport, so it sits
   flush under the bar even when the brand text wraps and the header grows
   past its nominal 64px. */
.mobile-menu {
    display: none; position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff; border-top: 2px solid var(--teal-light);
    box-shadow: var(--shadow-md); z-index: 998;
    padding: 8px 0 20px;
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; }
.mobile-menu li a {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 24px; color: var(--text-mid);
    font-size: 14px; font-weight: 500;
    border-bottom: 1px solid var(--teal-light);
}
.mobile-menu li a:hover, .mobile-menu li a.active { background: var(--teal-light); color: var(--teal-dark); }
.mobile-sub { padding-left: 16px; background: var(--off-white); }
.mobile-sub li a { font-size: 13px; padding: 11px 24px; }

/* Measured: brand ~514px + short-label list ~470px + 48px gutter = 1032px.
   The hamburger therefore takes over at 1079px and below, leaving the
   horizontal nav a comfortable margin rather than a 20px squeeze. */
@media (max-width: 1079px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
}
/* The legacy header dropped the topbar entirely on small screens. */
@media (max-width: 768px) {
    .topbar { display: none; }
    .nav-inner { padding: 0 16px; }
    .nav-brand-text .title { font-size: 13px; }
    .nav-brand-text .sub   { font-size: 11px; }
    .logo-circle, .logo-circle img { width: 42px; height: 42px; }

    /* The brand is flex-shrink:0 at desktop to match the original, but the
       title alone is ~366px, so keeping that below ~480px pushed the page
       into horizontal scroll. Here it may shrink and the title may wrap;
       the bar grows instead of the page. */
    .nav-brand      { flex-shrink: 1; min-width: 0; }
    .nav-brand-text { min-width: 0; }
    .nav-brand-text .title { white-space: normal; }
    .nav-inner { height: auto; min-height: var(--nav-h); padding-top: 8px; padding-bottom: 8px; }
}
@media (max-width: 420px) {
    .nav-inner { padding-left: 14px; padding-right: 14px; }
    .nav-brand-text .title { font-size: 12px; }
    .nav-brand-text .sub   { font-size: 10px; }
    .logo-circle, .logo-circle img { width: 38px; height: 38px; }
}

/* =====================================================================
   LAYOUT
   ===================================================================== */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 44px 0; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } .section { padding: 28px 0; } }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.split { display: grid; gap: 22px; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; } }

/* Grid and flex children default to min-width:auto, so they refuse to
   shrink below their content's intrinsic width. A wide table inside one
   then pushes the whole page into horizontal scroll and the
   `overflow-x: auto` on .table-wrap never gets a chance to engage.
   Resetting to 0 lets the wrapper do its job. */
.split > *, .grid > * { min-width: 0; }

/* =====================================================================
   CARDS / PANELS
   `.card`, `.card-header` and `.card-body` are defined in components.css
   to match the legacy markup. Only the extra `.card-head` variant used by
   the inner pages lives here, and it is a distinct class so it cannot
   collide.
   ===================================================================== */
.card-head {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
}
.card-head h2, .card-head h3 {
    font-family: var(--font-display);
    font-size: 18px; font-weight: 700; color: var(--teal-deep);
    display: flex; align-items: center; gap: 9px;
}
.card-head a { font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; }
.card-head + .card-body > :last-child { margin-bottom: 0; }

.card-teal .card-head { background: var(--teal-dark); border-bottom-color: var(--teal-dark); }
.card-teal .card-head h2, .card-teal .card-head h3 { color: #fff; }
.card-teal .card-head a { color: rgba(255,255,255,.92); }

/* =====================================================================
   NOTICES
   ===================================================================== */
.notice-list { list-style: none; }
.notice-list li { border-bottom: 1px solid var(--teal-light); }
.notice-list li:last-child { border-bottom: 0; }
.notice-list a {
    display: flex; gap: 14px; padding: 12px 6px;
    color: var(--text-mid); align-items: flex-start;
    transition: background .2s;
}
.notice-list a:hover { background: var(--notice-card); color: var(--teal-dark); }
/* Scoped to .notice-list: components.css styles the pill-shaped
   .notice-date inside the dark .notice-item panel, and an unscoped rule
   here would override it. */
.notice-list .notice-date {
    flex: 0 0 auto; font-size: 12px; color: var(--text-light);
    font-variant-numeric: tabular-nums; min-width: 82px; padding-top: 2px;
    background: none; padding-left: 0; padding-right: 0; border-radius: 0;
}
.notice-text { flex: 1 1 auto; font-size: 14px; }
.badge-new {
    background: var(--red-note); color: #fff;
    font-size: 9.5px; font-weight: 700; letter-spacing: .04em;
    padding: 2px 6px; border-radius: 3px; margin-left: 6px;
    vertical-align: middle; text-transform: uppercase;
}
@media (max-width: 520px) {
    .notice-list a { flex-direction: column; gap: 3px; }
    .notice-list .notice-date { min-width: 0; }
}

/* Officer cards live in components.css — a duplicate set here silently
   overrode them (CSS @import is hoisted, so later rules in this file win)
   and shrank the 140px photo to a 54px circle. */

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px;
    border: 1px solid transparent; border-radius: var(--radius);
    background: var(--teal-dark); color: #fff;
    font-family: inherit; font-size: 14px; font-weight: 600;
    cursor: pointer; text-align: center; line-height: 1.4;
    transition: background .3s, transform .2s, box-shadow .3s;
}
.btn:hover {
    background: linear-gradient(135deg, var(--teal), var(--teal-mid));
    color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.btn:disabled, .btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.btn-outline { background: transparent; color: var(--teal-dark); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal-light); color: var(--teal-deep); }
.btn-amber  { background: var(--amber); }
.btn-amber:hover { background: #d98f14; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #a3301f; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* =====================================================================
   FORMS
   ===================================================================== */
.field { margin-bottom: 16px; }
.field > label {
    display: block; font-size: 13.5px; font-weight: 600;
    color: var(--text-mid); margin-bottom: 6px;
}
.req { color: var(--red-note); }

.input, select.input, textarea.input {
    width: 100%; height: 46px;
    border: 1px solid #dceee6; border-radius: 13px;
    padding: 0 14px;
    font-family: inherit; font-size: 14px; color: var(--text-dark);
    background: #fff; transition: border-color .3s, box-shadow .3s;
}
textarea.input { height: auto; min-height: 100px; padding: 12px 14px; resize: vertical; }
select.input { padding-right: 34px; }
.input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 .2rem rgba(0,150,136,.15);
}
.input[aria-invalid="true"] { border-color: var(--red-note); }
.input::placeholder { color: #9db5b1; }

/* Icon-prefixed input, as the legacy login used */
.input-icon { position: relative; }
.input-icon > .ico {
    position: absolute; left: 16px; top: 50%;
    transform: translateY(-50%);
    color: var(--teal); font-size: 15px; z-index: 2; pointer-events: none;
}
.input-icon .input { padding-left: 44px; }

.field-error { color: var(--red-note); font-size: 12.5px; margin-top: 5px; display: block; }
.field-hint  { color: var(--text-light); font-size: 12.5px; margin-top: 5px; display: block; }

.check { display: flex; align-items: center; gap: 8px; }
.check input { width: 16px; height: 16px; accent-color: var(--teal); }
.check label { font-size: 14px; color: #5f6f68; }

.form-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }

/* =====================================================================
   ALERTS
   ===================================================================== */
.alert {
    padding: 12px 16px; border-radius: var(--radius);
    border-left: 4px solid; margin-bottom: 16px;
    font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start;
}
.alert .ico { margin-top: 3px; font-size: 15px; }
.alert-success { background: var(--success-pale); border-color: var(--success); color: #14532d; }
.alert-error   { background: var(--danger-pale);  border-color: var(--danger);  color: #7f1d1d; }
.alert-info    { background: var(--info-pale);    border-color: var(--info);    color: #01579b; }
.alert-warning { background: var(--warning-pale); border-color: var(--warning); color: #7c4a03; }
.alert a { color: inherit; text-decoration: underline; font-weight: 600; }

/* =====================================================================
   TABLES
   ===================================================================== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; }
table.data th, table.data td {
    padding: 11px 14px; text-align: left;
    border-bottom: 1px solid var(--teal-light); vertical-align: top;
}
table.data thead th {
    background: var(--teal-light); color: var(--teal-deep);
    font-weight: 600; white-space: nowrap;
}
table.data tbody tr:hover { background: var(--notice-card); }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .empty { text-align: center; color: var(--text-light); padding: 32px 16px; }

th[data-sort] { cursor: pointer; user-select: none; }
th[data-sort]::after { content: " ⇅"; opacity: .35; font-size: .8em; }
th[data-sort][aria-sort="ascending"]::after  { content: " ↑"; opacity: 1; }
th[data-sort][aria-sort="descending"]::after { content: " ↓"; opacity: 1; }

.table-tools { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 0; }
.table-info { font-size: 13px; color: var(--text-light); }
.pager { display: flex; gap: 4px; }
.pager button {
    border: 1px solid var(--border); background: #fff;
    padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 13px;
    font-family: inherit; color: var(--text-mid);
}
.pager button:disabled { opacity: .45; cursor: default; }
.pager button.is-current { background: var(--teal-dark); color: #fff; border-color: var(--teal-dark); }

/* =====================================================================
   BADGES
   ===================================================================== */
.badge {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: 11.5px; font-weight: 600; white-space: nowrap; line-height: 1.6;
}
.badge-muted   { background: #eceff1;             color: var(--text-mid); }
.badge-info    { background: var(--info-pale);    color: var(--info); }
.badge-primary { background: var(--teal-light);   color: var(--teal-dark); }
.badge-warning { background: var(--warning-pale); color: var(--warning); }
.badge-success { background: var(--success-pale); color: var(--success); }
.badge-danger  { background: var(--danger-pale);  color: var(--danger); }

/* Definition list */
.dl { display: grid; grid-template-columns: minmax(130px, 36%) 1fr; gap: 7px 14px; font-size: 14px; }
.dl dt { color: var(--text-light); font-weight: 500; }
.dl dd { color: var(--text-dark); word-break: break-word; }
@media (max-width: 520px) { .dl { grid-template-columns: 1fr; gap: 2px; } .dl dd { margin-bottom: 9px; } }

/* =====================================================================
   AUTH PAGES — photo background + glass card
   ===================================================================== */
.auth-body {
    min-height: 100vh;
    display: flex; flex-direction: column;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
.auth-student  { background-image: linear-gradient(rgba(0,0,0,.45), rgba(0,121,107,.45)), url("../img/bg/bg-student.jpg"); }
.auth-staff    { background-image: linear-gradient(rgba(0,0,0,.5),  rgba(0,77,64,.5)),   url("../img/bg/bg-admin.jpg"); }
.auth-school   { background-image: linear-gradient(rgba(0,0,0,.45), rgba(0,121,107,.45)), url("../img/bg/bg-school.jpg"); }
.auth-password { background-image: linear-gradient(rgba(0,0,0,.45), rgba(0,121,107,.45)), url("../img/bg/bg-password.jpg"); }

.auth-wrapper {
    flex: 1;
    display: flex; align-items: center;
    padding: 40px 0;
    position: relative; overflow: hidden;
}
.auth-grid {
    max-width: 1180px; margin: 0 auto; padding: 0 24px;
    display: grid; gap: 40px; align-items: center; width: 100%;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 420px);
}
@media (max-width: 940px) {
    .auth-grid { grid-template-columns: 1fr; gap: 26px; }
    .auth-side { text-align: center; }
    .auth-body { background-attachment: scroll; }
}

/* Floating decorative shapes, as the legacy login had */
.shape {
    position: absolute; border-radius: 50%;
    background: rgba(0,150,136,.10);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}
.shape-1 { width: 220px; height: 220px; top: 80px;  left: -80px; }
.shape-2 { width: 170px; height: 170px; right: -50px; bottom: 90px; animation-delay: 1.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }

.auth-side h1 {
    color: #fff; font-family: var(--font-display);
    font-weight: 700; font-size: clamp(28px, 4.4vw, 46px); line-height: 1.18;
}
.auth-side p {
    color: rgba(255,255,255,.92); font-size: 16px; line-height: 1.8;
    margin-top: 16px; max-width: 540px;
}
@media (max-width: 940px) { .auth-side p { margin-left: auto; margin-right: auto; } }
@media (max-width: 640px) { .auth-side { display: none; } }

.auth-card {
    width: 100%; max-width: 420px; margin: auto;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 30px 26px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,150,136,.18);
    position: relative;
    animation: fadeUp .8s ease;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(35px); } to { opacity: 1; transform: translateY(0); } }

.auth-icon {
    width: 62px; height: 62px;
    background: linear-gradient(135deg, var(--teal), #00bfa5);
    border-radius: 16px;
    display: grid; place-items: center;
    color: #fff; font-size: 26px;
    margin: 0 auto 16px;
    box-shadow: 0 12px 28px rgba(0,150,136,.28);
}
.auth-card h1 {
    color: var(--teal-dark); font-weight: 700; text-align: center;
    margin-bottom: 6px; font-size: 26px; font-family: var(--font-display);
}
.auth-card > p.sub { text-align: center; color: #6c757d; margin-bottom: 22px; font-size: 14px; }

.auth-foot {
    margin-top: 18px; padding-top: 16px;
    border-top: 1px solid var(--border);
    text-align: center; font-size: 13.5px; color: var(--text-light);
}
.auth-foot a { font-weight: 600; }

.auth-topbar {
    background: rgba(0,77,64,.55);
    backdrop-filter: blur(6px);
    padding: 12px 0;
}
.auth-topbar .nav-inner { height: auto; }
.auth-topbar .nav-brand-text .title { color: #fff; }
.auth-topbar .nav-brand-text .sub   { color: rgba(255,255,255,.75); }
.auth-topbar .nav-links a { color: rgba(255,255,255,.9); }
.auth-topbar .nav-links a:hover { background: rgba(255,255,255,.15); color: #fff; }

.forgot-link { color: var(--teal-dark); font-size: 14px; font-weight: 600; }
.forgot-link:hover { color: var(--teal); }

/* =====================================================================
   FOOTER
   ===================================================================== */
footer.site-footer { background: var(--teal-deep); color: rgba(255,255,255,.75); padding: 26px 0; margin-top: auto; }
.footer-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 18px; flex-wrap: wrap;
}
.footer-inner strong { color: #fff; font-size: 14px; }
.footer-copy { font-size: 12.5px; color: rgba(255,255,255,.6); margin-top: 3px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255,255,255,.12); color: #fff;
    display: grid; place-items: center; font-size: 13px;
    transition: background .25s;
}
.footer-social a:hover { background: var(--teal); color: #fff; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.footer-links a { color: rgba(255,255,255,.75); }
.footer-links a:hover { color: #fff; }
@media (max-width: 720px) { .footer-inner { flex-direction: column; text-align: center; } }

/* =====================================================================
   QUICK-LINK TILES
   ===================================================================== */
.tile {
    display: flex; gap: 13px; align-items: flex-start;
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 17px;
    box-shadow: var(--shadow-sm); color: var(--text-mid);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--teal); color: var(--text-mid); }
.tile-ico {
    width: 40px; height: 40px; border-radius: 10px; flex: 0 0 auto;
    background: var(--teal-light); color: var(--teal-dark);
    display: grid; place-items: center; font-size: 17px;
}
.tile-title { font-weight: 600; color: var(--text-dark); font-size: 14.5px; }
.tile-sub { font-size: 12.5px; color: var(--text-light); }
/* Counter tiles on the staff dashboards: the number is the headline. */
.tile-num {
    display: block; font-family: var(--font-display);
    font-size: 26px; font-weight: 700; line-height: 1.1; color: var(--text-dark);
}

/* Secondary link row — a compact alternative to a second grid of tiles. */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--teal-light); color: var(--teal-dark);
    border: 1px solid transparent; border-radius: 20px;
    padding: 6px 14px; font-size: 13px; font-weight: 500;
    transition: border-color .2s, background .2s;
}
.chip:hover { border-color: var(--teal); background: #fff; color: var(--teal-dark); }
.chip strong { font-family: var(--font-display); font-size: 14px; }

/* A counter tile a role can see but not filter on — no hover lift. */
.tile-static { cursor: default; }
.tile-static:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--border); }

/* A one-line form inside a table cell: input plus button, no wrapping gap. */
.row-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-form .input { margin: 0; min-width: 0; flex: 1 1 150px; font-size: 12.5px; padding: 5px 8px; }
.row-form .btn { flex: 0 0 auto; }

/* =====================================================================
   UTILITIES
   ===================================================================== */
.muted { color: var(--text-mid); }
.faint { color: var(--text-light); }
.small { font-size: 13px; }
.center { text-align: center; }
.justify { text-align: justify; }
.nowrap { white-space: nowrap; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.flex-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hidden { display: none !important; }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

/* Print */
@media print {
    .topbar, nav.site-nav, .mobile-menu, footer.site-footer,
    .hamburger, .btn, .table-tools, .skip-link, .shape { display: none !important; }
    body { background: #fff; font-size: 12px; }
    .card { box-shadow: none; border: 1px solid #999; break-inside: avoid; }
    .hero { background: none !important; color: #000; padding: 0 0 12px; }
    .hero h1 { color: #000; }
    a { color: #000; }
}
