/* =====================================================
   ROOT VARIABLES
   ===================================================== */

:root {
    --bg-main: #1D3176;
    --bg-header: #27356f;
    --text-light: #ffffff;
    --text-accent: #99ffff;
    --text-section: #ffcc66;
    --link-normal: #99ffff;
    --link-visited: #ff3399;
    --link-hover: #66ffff;
    --error-red: #f91308;
    --font-main: Verdana, Geneva, Arial, Helvetica, sans-serif;
}

/* =====================================================
   BASE BODY
   ===================================================== */

body,
.site-body {
    margin: 0;
    background-color: var(--bg-main);
    color: var(--text-light);
    font-family: var(--font-main);
    font-size: 14px;
}

p, div {
    color: inherit;
}

/* =====================================================
   LOGIN PAGE (legacy support)
   ===================================================== */

.login-page {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.login-title {
    font-size: 26px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
}

.login-subtitle {
    font-size: 16px;
    font-style: italic;
    margin-bottom: 20px;
}

.login-page h5 {
    font-size: 14px;
    margin: 10px 0;
}

.login-link {
    margin: 6px 0;
    font-size: 14px;
}

.login-link a {
    font-size: 14px;
    color: #99ffff;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

.login-page .error {
    color: yellow;
    font-size: 14px;
    margin: 10px 0;
}

/* =====================================================
   TEXT UTILITIES (replaces old .styleXX)
   ===================================================== */

.text-white { color: var(--text-light); }
.text-red   { color: var(--error-red); }

.fs-11 { font-size: 11px; }
.fs-14 { font-size: 14px; }
.fs-16 { font-size: 16px; }
.fs-18 { font-size: 18px; }
.fs-20 { font-size: 20px; }
.fs-25 { font-size: 25px; }

.center { text-align: center; }
.italic { font-style: italic; }

/* =====================================================
   LINKS (GLOBAL — NORMALIZED)
   ===================================================== */

a {
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--link-normal);
    text-decoration: none;
}

a:visited {
    color: var(--link-visited);
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* =====================================================
   HEADINGS
   ===================================================== */

h1, h2, h3, h4, h5 {
    background-color: transparent;
    color: var(--text-light);
    font-family: var(--font-main);
    font-style: normal;
}

h1 {
    font-size: 30px;
    font-weight: bold;
    text-align: center;
}

h2 {
    font-size: 18px;
}

h5 {
    font-size: 14px;
}

/* =====================================================
   TABLES (legacy)
   ===================================================== */

table,
th,
td,
tr {
    background-color: var(--bg-main);
    color: var(--text-light);
    font-family: var(--font-main);
}

table {
    font-size: 12px;
    border: 0;
}

th {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
}

td,
tr {
    font-size: 12px;
}

/* =====================================================
   FOOTER (legacy + new)
   ===================================================== */

.footer,
.site-footer {
    text-align: center;
    font-size: 11px;
    margin-top: 20px;
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.4);
}

/* =====================================================
   REPORT / LIST MODE (formerly *list classes)
   ===================================================== */

.body-list {
    background-color: #ffffff;
    color: #000000;
}
.report-controls button:hover svg {
    stroke: #ffd700;   /* gold on hover */
    transition: 0.2s ease-in-out;
}
.h1-list,
.h2-list,
.h3-list {
    background-color: #ffffff;
    color: #000000;
    font-family: var(--font-main);
}

.h1-list {
    font-size: 20px;
    text-align: center;
}

.h2-list {
    font-size: 16px;
    text-align: left;
}

.h3-list {
    font-size: 14px;
    text-align: left;
}

.table-list,
.tr-list,
.td-list,
.th-list {
    background-color: #ffffff;
    color: #000000;
    font-family: var(--font-main);
    font-size: 12px;
    border: 1px solid #000;
}

.th-list {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

/* =====================================================
   MESSAGES
   ===================================================== */

.error-msg {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-light);
}

/* =====================================================
   HEADER / BRANDING / USER INFO
   ===================================================== */

.site-header {
    display: flex;
    align-items: flex-start;
    padding: 6px 10px;
    background-color: var(--bg-main);
}

.site-brand {
    line-height: 1.2;
    margin-right: 20px;
}

.site-title {
    font-size: 14px;
    font-weight: bold;
}

.site-subtitle {
    font-size: 11px;
}

/* Logged-in user indicator (top-left under logo) */
.site-user {
    font-size: 12px;
    color: var(--text-accent);
    margin-bottom: 2px;
}

.admin-badge {
    color: #ffcc66;
    font-weight: bold;
    margin-left: 4px;
}

.last-login {
    font-size: 11px;
    color: #cceeff;
}

.profile-link {
    font-size: 12px;
    color: #99ffff;
    text-decoration: none;
}

.profile-link:hover {
    text-decoration: underline;
}

.logout-link {
    color: #ff9999;
    font-size: 13px;
    text-decoration: none;
}

.logout-link:hover {
    text-decoration: underline;
}

/* =====================================================
   HAMBURGER (MOBILE ONLY)
   ===================================================== */

.nav-toggle {
    display: none;
    margin-left: 10px;
    padding: 6px 10px;
    background: #f0d000;
    color: #000;
    border: none;
    font-size: 14px;
    cursor: pointer;
}

/* =====================================================
   NAVIGATION (LEFT COLUMN LOOK)
   ===================================================== */

.site-nav {
    margin-top: 10px;
}

.site-nav .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav .nav-item {
    margin: 0;
    padding: 0;
}

.site-nav .nav-item a {
    display: block;
    padding: 3px 4px;
    font-size: 14px;
    color: var(--text-accent);
    text-decoration: none;
}

.site-nav .nav-item a:hover {
    text-decoration: underline;
}

/* Section titles in nav (e.g. "SECURE AREA") */
.site-nav .nav-section-title {
    margin-top: 6px;
    font-size: 11px;
    font-weight: bold;
    color: var(--text-section);
}

.site-nav .nav-auth a {
    font-weight: bold;
}

/* =====================================================
   HOME PAGE INTRO
   ===================================================== */

.home-intro {
    max-width: 960px;
    margin: 20px auto 10px auto;
}

.page-banner {
    background-color: var(--bg-header);
    padding: 14px;
    text-align: center;
}

.page-banner h1 {
    margin: 0;
    font-size: 30px;
}

.home-text {
    margin: 15px 20px;
    font-size: 15px;
    line-height: 1.6;
}

/* =====================================================
   HOME PAGE NAV POSITION
   (nav appears below the intro text)
   ===================================================== */

.home-page .site-nav {
    margin-top: 40px;
}

/* =====================================================
   MAIN CONTENT WRAPPER
   ===================================================== */

.site-main {
    max-width: 960px;
    margin: 10px auto 40px auto;
    padding: 0 10px;
}

/* =====================================================
   RETIREMENT LINKS PAGE
   ===================================================== */

.retirement-item {
    max-width: 900px;
    margin: 18px auto;
    padding: 14px 18px;
    background-color: var(--bg-header);
    border-radius: 4px;
}

.retirement-desc {
    font-size: 15px;
    margin-bottom: 6px;
}

.retirement-link a {
    font-size: 16px;
    font-weight: bold;
    word-break: break-word;
}

/* =====================================================
   MOBILE LAYOUT
   ===================================================== */

@media (max-width: 768px) {

    .site-header {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: inline-block;
    }

    .site-nav {
        display: none;
        width: 100%;
        margin-top: 8px;
    }

    .site-nav.open {
        display: block;
    }

    .site-nav .nav-item a {
        padding: 6px 0;
        font-size: 15px;
    }

    .page-banner h1 {
        font-size: 24px;
    }

    .home-text {
        font-size: 14px;
        margin: 12px;
    }
}

/* ============================================================
   PRINT SUPPORT
   - Hide navigation while printing
   - Force footer to bottom of printed pages
   ============================================================ */
@media print {

    /* Hide navigation + menu */
    .site-nav,
    .site-nav-bottom,
    #site-nav,
    .nav-toggle,
    .site-header .site-nav {
        display: none !important;
    }

    /* Footer formatting for print */
    .site-footer {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;

        background: #ffffff !important;
        color: #000000 !important;
        border-top: 1px solid #000000 !important;

        padding: 6px 0 !important;
        margin: 0 !important;
        text-align: center !important;

        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Prevent content from printing under footer */
    body {
        padding-bottom: 40px !important;
    }
}

/* ==========================
   Report Controls (shared)
   ========================== */
.report-controls{
  text-align:center;
  margin: 10px 0;
}

.report-controls .report-link{
  color:#ffffff;
  font-weight:700;
  text-decoration:none;
  margin-right:16px;
}

.report-controls .report-link:hover{
  text-decoration:underline;
}

.print-icon-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  border:1px solid rgba(255,255,255,0.6);
  padding:6px 10px;
  background:transparent;
  color:#ffffff;              /* key: icon is bright */
  font-weight:700;
}

.print-icon-btn:hover{
  border-color: rgba(255,255,255,0.9);
}

.print-icon-btn svg{
  display:block;
}




/* ==========================================
   HOME PAGE 2-COLUMN LAYOUT (Index Only)
   ========================================== */

.home-grid{
    display:grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items:start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 12px;
}

/* left menu column */
.home-nav{
    padding-top: 10px;
}

/* keep nav looking like your normal nav */
.home-nav .site-nav{
    margin-top: 0;
}

/* right column */
.home-content{
    min-width: 0;
}

/* ==========================================
   HOME IMAGE SWAP (Wildcat 500 -> Class 1000)
   ========================================== */

.home-image-wrap{
    width:100%;
    text-align:center;
    margin: 22px 0 10px 0;
}

.home-swap{
    position:relative;
    display:inline-block;
    width:500px; /* wildcat width */
}

.home-swap img{
    display:block;
    height:auto;
}

.wildcat-img{
    width:500px;
}

/* class photo centered, wider */
.class-img{
    position:absolute;
    top:0;
    left:50%;
    transform:translateX(-50%);
    width:1000px;
    max-width:95vw;
    display:none;
}

/* swap: completely remove wildcat */
.home-swap:hover .wildcat-img,
.home-swap:focus-within .wildcat-img{
    display:none;
}

.home-swap:hover .class-img,
.home-swap:focus-within .class-img{
    display:block;
}

/* ==========================================
   MOBILE: STACK MENU ABOVE CONTENT
   ========================================== */
@media (max-width: 900px){
    .home-grid{
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* ==========================================
   HOME PAGE 2-COLUMN LAYOUT (Index Only)
   ========================================== */
.home-grid{
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 12px;
}

.home-nav{
    padding-top: 10px;
}

.home-nav .site-nav{
    margin-top: 0;
}

.home-content{
    min-width: 0;
}

/* ==========================================
   HOME IMAGE SWAP (no overlap, centered)
   Wildcat displays ~500px max
   Class photo displays ~1000px max
   ========================================== */
.home-image-wrap{
    text-align: center;
    margin: 18px 0 30px 0;
}

.home-swap-img{
    display: block;
    margin: 0 auto;
    height: auto;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 10px;
}

.home-swap-hint{
    margin-top: 8px;
    font-size: 14px;
    opacity: 0.9;
}

/* MOBILE: stack menu above content */
@media (max-width: 900px){
    .home-grid{
        grid-template-columns: 1fr;
        gap: 14px;
    }
}





