/**
 * LCARS Global Stylesheet
 * 
 * Provides consistent LCARS styling across all sub-pages
 * Ensures navigation, footer, and panels match homepage design
 * 
 * Version: 1.0
 * Last Updated: 2025-01-XX
 */

/* ========================================
 * CSS Cascade Layers (Architecture Fix)
 * ========================================
 * Layer order: reset < legacy < lcars < overrides
 * This allows LCARS to override legacy without !important
 */
@layer reset, legacy, lcars, overrides;

/* LCARS Color Palette - Consistent across all pages */
:root {
    --lcars-orange: #ff9900;
    --lcars-gold: #ffcc00;
    --lcars-blue: #99ccff;
    --lcars-pink: #cc99cc;
    --lcars-bg: #000000;
    --alert-color: var(--lcars-blue);
    --alert-bg: rgba(0, 0, 0, 0);
    
    /* Canonical LCARS colors for banner overlays (TNG/SNW accurate) */
    --lcars-overlay-orange: #ff9c2a;
    --lcars-overlay-gold: #ffcc66;
    --lcars-overlay-purple: #cc99cc;
    --lcars-overlay-blue: #99ccff;
    --lcars-overlay-grey: #999999;
    --lcars-overlay-bg: rgba(0, 0, 0, 0.55);
}

/* ========================================
 * CTA Buttons (Primary / Secondary)
 * ======================================== */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.7rem 1.4rem;
    border-radius: 6px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
    letter-spacing: 0.06em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.cta-primary {
    background: var(--lcars-orange);
    border-color: var(--lcars-gold);
    color: #000000;
}

.cta-secondary {
    background: var(--lcars-gold);
    border-color: var(--lcars-blue);
    color: #000000;
}

.cta-compact {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.cta-large {
    padding: 1.1rem 2.1rem;
    font-size: 1.2rem;
}

.cta-primary:hover,
.cta-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.35);
    text-decoration: none;
}

.lcars-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    text-decoration: none !important;
    text-transform: uppercase;
    font-weight: bold;
    font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
    letter-spacing: 0.04em;
    background: var(--lcars-gold);
    color: #000000;
    border: 1px solid var(--lcars-blue);
    height: 32px; /* Fixed height prevents "jumping" on click */
    transition: background 0.1s ease, filter 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.lcars-action-button:hover,
.lcars-action-button:focus {
    background: var(--lcars-orange);
    border-color: var(--lcars-orange);
    color: #000000;
    text-decoration: none;
    filter: brightness(1.1);
}

.lcars-action-button:active {
    filter: brightness(0.8);
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateY(1px);
}

/* Header Banner - Simple container, let .stf-banner own layout */
.header-banner {
    display: block;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    margin-bottom: 6px; /* Screen-accurate: separate banner from nav */
    height: 300px;
    background: #000000;
}

/* Join Banner Video */
.banner-video {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #000000;
}

.banner-video-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-video .lcars-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
}

.banner-video .lcars-text {
    font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
    color: var(--lcars-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.banner-video .lcars-text h1 {
    margin: 0;
    font-size: 2rem;
}

.banner-video .lcars-text p {
    margin: 6px 0 0;
    font-size: 1rem;
    color: var(--lcars-blue);
    text-transform: none;
    letter-spacing: 1px;
}

@media (prefers-reduced-motion: reduce) {
    /* Override reduced-motion fallback so the join video still displays. */
    .banner-video-el {
        display: block;
    }
}

/* ========================================
 * LCARS Banner Overlay System
 * Reusable overlay for all banners with animated LCARS elements
 * ======================================== */

/* ========================================
 * STF Banner - Viewscreen Mode
 * Banner = viewscreen, not interface
 * Minimal framing only: anchor + label + optional horizon
 * ======================================== */
.stf-banner {
    position: relative;
    width: 100%;
    max-width: 1920px;
    height: 300px;
    overflow: hidden;
    background: #000;
    margin: 0 auto;
}

/* === SNW CALIBRATION OVERLAY (DEBUG ONLY) === */
/* Uncomment to see SNW-accurate proportions overlaid on your banner */
/* Red band = SNW left bar width (12px) */
/* Cyan band = SNW top rule height (5px) */
/* Turn it on → adjust → turn it off forever */
/*
.stf-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background-image:
        linear-gradient(to right,
            rgba(255,0,0,0.15) 0,
            rgba(255,0,0,0.15) 12px,
            transparent 12px
        ),
        linear-gradient(to bottom,
            rgba(0,255,255,0.12) 0,
            rgba(0,255,255,0.12) 5px,
            transparent 5px
        );
    mix-blend-mode: overlay;
}
*/

/* Production: No elbow in banner context */
.stf-banner::before {
    display: none; /* Elbows belong in panels/nav, not viewscreens */
}

/* Banner image - Static, no parallax (screen-accurate SNW) */
.stf-banner-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.stf-banner-image img,
.stf-banner-image picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* LCARS Overlay - Minimal, framing only (screen-accurate SNW/Picard) */
/* LCARS never competes with the image - right side is intentionally empty */
.stf-banner .lcars-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 12px 1fr; /* Screen-accurate: 8-12px bars */
    pointer-events: none;
    font-family: "Antonio", "Arial Narrow", sans-serif;
    text-transform: uppercase;
}

/* Left LCARS Vertical Bar - SNW accurate: thin, quiet, flat color, slightly translucent */
/* Rounded ONLY at the corner junction (bottom-left) */
.stf-banner-image .lcars-left-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 12px; /* Screen-accurate: 8-12px */
    background: rgba(255,153,0,0.85); /* Flat color, slightly translucent */
    border-radius: 0 0 0 18px; /* Rounded ONLY at bottom-left corner */
}

/* Top LCARS Rule - Frame hint, not header (screen-accurate SNW) */
/* Often broken, not continuous, rarely full width */
.stf-banner .lcars-overlay .lcars-top-rule {
    position: absolute;
    top: 0;
    left: 12px; /* Start after left bar */
    width: 35%; /* Not full width - screen-accurate */
    height: 5px; /* Screen-accurate: 3-5px */
    background: rgba(255,153,0,0.75);
}

/* Section Title - Floating, embedded (screen-accurate SNW) */
/* No box, no background, heavy letter-spacing, subtle glow */
.stf-banner .lcars-overlay .lcars-title {
    position: absolute;
    bottom: 42px; /* Screen-accurate positioning */
    left: 26px; /* Screen-accurate offset */
    font-family: 'Antonio', sans-serif;
    font-size: 22px; /* Screen-accurate */
    letter-spacing: 0.35em; /* Heavy letter-spacing */
    color: #ffd24d; /* Screen-accurate gold */
    background: none; /* No box, no background */
    padding: 0;
    border-radius: 0;
    text-shadow:
        0 0 6px rgba(255,210,77,0.35); /* Subtle glow, not glow effects */
}

/* Blips, telemetry, scanlines, animations - REMOVED */
/* Banner is a viewscreen - no widgets, no animations, no competing signals */

/* ========================================
 * Responsive Scaling (Mobile-Safe)
 * ======================================== */

/* Tablet and smaller screens */
@media (max-width: 900px) {
    .stf-banner {
        height: 240px;
    }

    .lcars-left-bar {
        width: 40px;
    }

    .stf-banner .lcars-title {
        font-size: 22px;
        left: 56px;
        bottom: 24px;
    }

    .lcars-top-rule {
        left: 56px;
    }
    
    .stf-banner::before {
        left: 40px;
        width: 100px;
        height: 56px;
        border-bottom-left-radius: 40px;
    }
    
    @keyframes lcars-scan {
        from { background-position-y: 0; }
        to   { background-position-y: 240px; }
    }
}

/* Mobile rules - Screen-accurate SNW behavior */
/* SNW hides decorative rails on small displays */
@media (max-width: 600px) {
    .stf-banner {
        height: 200px;
    }
    
    /* Hide decorative LCARS elements on mobile */
    .stf-banner-image .lcars-left-bar,
    .stf-banner .lcars-overlay .lcars-top-rule {
        display: none;
    }
    
    /* Reposition title for mobile */
    .stf-banner .lcars-overlay .lcars-title {
        left: 18px;
        bottom: 24px;
        font-size: 18px;
    }
}

/* ========================================
 * Page-Level LCARS Theme Colors
 * Optional: Override colors per section for visual identity
 * ======================================== */

.stf-banner.about {
    --lcars-overlay-orange: #ff9c2a;
    --lcars-overlay-blue: #99ccff;
}

.stf-banner.members {
    --lcars-overlay-orange: #cc99cc;
}

.stf-banner.archive {
    --lcars-overlay-orange: #ffcc66;
}

.stf-banner.fleet {
    --lcars-overlay-orange: #ff9c2a;
    --lcars-overlay-gold: #ffcc66;
}

/* Fleet-specific telemetry removed - banner is viewscreen, not panel */

.stf-banner.starfleet {
    --lcars-overlay-orange: #ff9c2a;
    --lcars-overlay-blue: #99ccff;
}

.stf-banner.academy {
    --lcars-overlay-gold: #ffcc66;
    --lcars-overlay-blue: #99ccff;
}

.stf-banner.mars {
    --lcars-overlay-orange: #ff9c2a;
    --lcars-overlay-purple: #cc99cc;
}

/* LCARS Panel - Unified border styling (fixes double-bar issue) */
.lcars-panel {
    background: 
        linear-gradient(rgba(153, 204, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(153, 204, 255, 0.02) 1px, transparent 1px),
        rgba(255, 255, 255, 0.03) !important;
    background-size: 20px 20px;
    position: relative;
    overflow: visible; /* To allow elbows to show */
    border-top: 15px solid var(--lcars-orange) !important;
    border-left: 15px solid var(--lcars-orange) !important;
    border-radius: 40px 0 0 0 !important;
    padding: 20px !important;
    margin: 20px 0 !important;
}

/* Create the iconic LCARS elbow on the top-left of each panel */
.lcars-panel::before {
    content: "";
    position: absolute;
    top: -15px;
    left: -15px;
    width: 60px;
    height: 30px;
    background: var(--lcars-orange); /* Default orange, will be overridden by border-color */
    border-radius: 25px 0 0 0;
    z-index: -1;
}

/* Override elbow color based on panel border color (inline styles) */
.lcars-panel[style*="border-color: var(--lcars-blue)"]::before {
    background: var(--lcars-blue) !important;
}

.lcars-panel[style*="border-color: var(--lcars-pink)"]::before {
    background: var(--lcars-pink) !important;
}

.lcars-panel[style*="border-color: var(--lcars-orange)"]::before {
    background: var(--lcars-orange) !important;
}

/* Override border color for specific panels (inline styles) */
.lcars-panel[style*="border-color: var(--lcars-blue)"] {
    border-left: 15px solid var(--lcars-blue) !important;
    border-top: 15px solid var(--lcars-blue) !important;
}

.lcars-panel[style*="border-color: var(--lcars-pink)"] {
    border-left: 15px solid var(--lcars-pink) !important;
    border-top: 15px solid var(--lcars-pink) !important;
}

.lcars-panel[style*="border-color: var(--lcars-orange)"] {
    border-left: 15px solid var(--lcars-orange) !important;
    border-top: 15px solid var(--lcars-orange) !important;
}

/* Override elbow and border color for class-based panel borders */
.lcars-panel.panel-border-blue::before {
    background: var(--lcars-blue) !important;
}

.lcars-panel.panel-border-blue {
    border-left: 15px solid var(--lcars-blue) !important;
    border-top: 15px solid var(--lcars-blue) !important;
}

.lcars-panel.panel-border-pink::before {
    background: var(--lcars-pink) !important;
}

.lcars-panel.panel-border-pink {
    border-left: 15px solid var(--lcars-pink) !important;
    border-top: 15px solid var(--lcars-pink) !important;
}

.lcars-panel.panel-border-orange::before {
    background: var(--lcars-orange) !important;
}

.lcars-panel.panel-border-orange {
    border-left: 15px solid var(--lcars-orange) !important;
    border-top: 15px solid var(--lcars-orange) !important;
}

.lcars-panel.panel-border-gold::before {
    background: var(--lcars-gold) !important;
}

.lcars-panel.panel-border-gold {
    border-left: 15px solid var(--lcars-gold) !important;
    border-top: 15px solid var(--lcars-gold) !important;
}

/* Panel border thickness */
.lcars-panel.panel-border-heavy {
    border-width: 8px !important;
}

.lcars-panel.panel-border-thick {
    border-width: 6px !important;
}

.lcars-panel h1,
.lcars-panel h2 {
    font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
    color: var(--lcars-gold);
    text-transform: uppercase;
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--lcars-blue);
    padding-bottom: 5px;
    letter-spacing: 1px;
}

/* 3-Column LCARS Info Grid - Homepage Layout */
.lcars-info-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 30px 0 !important;
    padding: 0 !important;
}

.lcars-info-grid .full-width-section {
    grid-column: 1 / -1;
}

.lcars-info-grid.lcars-two-column {
    display: block !important;
}

.lcars-two-column-wrap {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 25px;
    align-items: start;
}

.lcars-two-column-wrap.left-panel {
    grid-template-columns: 320px minmax(0, 1fr);
}

.lcars-primary-column,
.lcars-secondary-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

@media (max-width: 1024px) {
    .lcars-info-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

@media (max-width: 1024px) {
    .lcars-two-column-wrap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .lcars-two-column-wrap.left-panel {
        grid-template-columns: 1fr;
    }
}

/* Desktop Navigation - Default State */
/* Screen-accurate: Nav is control surface, separate from display */
.lcars-nav {
    display: flex !important; /* Default for desktop */
    margin-top: 12px; /* Visual separation from banner */
    padding-top: 10px;
    border-top: 2px solid rgba(153,204,255,0.25); /* Subtle LCARS divider */
}

/* Mobile Navigation (The Hamburger) - Hidden by default */
.mobile-nav-container {
    display: none; /* Hide on desktop */
}

/* Responsive Design */
@media (max-width: 1024px) {
    /* Show Mobile Menu, Hide Desktop Nav */
    .mobile-nav-container {
        display: block !important;
        position: sticky;
        top: 0;
        z-index: 1000;
        width: 100%;
    }
    
    /* Ensure narrative-header is not overlapped by mobile menu */
    .narrative-header {
        margin-top: 0;
        padding-top: 10px;
    }
    
    .diag-code {
        position: relative;
        z-index: 1;
    }
    
    /* Hide Desktop Navigation on mobile */
    header .lcars-nav,
    .lcars-nav {
        display: none !important;
    }
    
    /* Mobile Hamburger Button */
    .nav-button {
        background: var(--lcars-orange);
        color: #000;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
        cursor: pointer;
        font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
        font-weight: bold;
        text-transform: uppercase;
        border-bottom: 3px solid var(--lcars-orange);
        user-select: none;
    }
    
    .nav-icon {
        width: 30px;
        height: 3px;
        background: #000;
        position: relative;
        transition: all 0.3s ease;
    }
    
    .nav-icon::before,
    .nav-icon::after {
        content: '';
        position: absolute;
        width: 30px;
        height: 3px;
        background: #000;
        transition: all 0.3s ease;
    }
    
    .nav-icon::before {
        top: -10px;
    }
    
    .nav-icon::after {
        bottom: -10px;
    }
    
    /* Hamburger to X animation */
    .nav-toggle:checked ~ .nav-button .nav-icon {
        background: transparent;
    }
    
    .nav-toggle:checked ~ .nav-button .nav-icon::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .nav-toggle:checked ~ .nav-button .nav-icon::after {
        transform: rotate(-45deg);
        bottom: 0;
    }
    
    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        display: none;
        background: #000;
        border-top: 3px solid var(--lcars-orange);
        padding: 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-toggle:checked ~ .mobile-menu-overlay {
        display: block;
        max-height: 1000px;
    }
    
    .menu-header {
        color: var(--lcars-gold);
        font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--lcars-blue);
    }
    
    .nav-group-mobile {
        margin-bottom: 25px;
    }
    
    .nav-group-mobile .nav-item {
        display: block;
        padding: 12px 15px;
        margin: 5px 0;
        color: #000;
        text-decoration: none;
        font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
        font-weight: bold;
        text-transform: uppercase;
        border-radius: 4px;
        transition: background 0.2s ease;
    }
    
    .nav-group-mobile.command .nav-item {
        background: var(--lcars-orange);
    }
    
    .nav-group-mobile.science .nav-item {
        background: var(--lcars-blue);
    }
    
    .nav-group-mobile.operations .nav-item {
        background: var(--lcars-gold);
    }
    
    .nav-group-mobile .nav-item.highlight {
        background: var(--lcars-pink) !important;
        border-radius: 20px;
    }
    
    .nav-group-mobile .nav-item:hover,
    .nav-group-mobile .nav-item:focus {
        background: #fff;
        color: #000;
    }
}

/* Grouping Logic */
.nav-group {
    display: flex;
    gap: 3px; /* Reduced gap between buttons */
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping if needed on smaller screens */
}

/* Nav Bracket Elements - Decorative LCARS brackets */
.nav-bracket-top,
.nav-bracket-bottom {
    display: none; /* Hide decorative brackets for cleaner look */
    width: 0;
    height: 0;
}

/* Base Item Styling */
/* Screen-accurate: LCARS uses blocks, not candy - calm the saturation */
.nav-item {
    color: #000 !important;
    padding: 6px 12px; /* Reduced padding for more compact buttons */
    text-decoration: none !important;
    font-weight: bold;
    font-size: 0.9rem; /* Smaller font size */
    letter-spacing: 1px; /* Reduced letter spacing */
    transition: background 0.2s ease, filter 0.2s ease;
    border-radius: 4px; /* Standard block */
    display: inline-flex;
    align-items: center;
    white-space: nowrap; /* Prevents text wrapping */
    border: none;
    height: 28px; /* Reduced height for more compact buttons */
    filter: saturate(0.9); /* Calm nav colors - LCARS uses blocks, not candy */
}

/* Iconic LCARS Pill Shaping */
.nav-group .nav-item:first-of-type {
    border-radius: 20px 4px 4px 20px; /* Rounds the left edge of each group */
}

.nav-group .nav-item:last-of-type:not(.highlight) {
    border-radius: 4px 20px 20px 4px; /* Rounds the right edge of each group */
}

/* Departmental Color-Coding */
.command .nav-item {
    background-color: var(--lcars-orange);
}

.science .nav-item {
    background-color: var(--lcars-blue);
}

.operations .nav-item:not(.highlight) {
    background-color: var(--lcars-gold);
}

.operations .nav-item.highlight {
    background-color: var(--lcars-pink) !important;
    border-radius: 20px !important; /* Full pill shape */
    margin-left: 10px;
    color: #000000 !important; /* Ensure black text on pink */
    white-space: nowrap; /* Prevent text wrapping */
}

.nav-item:hover,
.nav-item:focus {
    background: #fff !important;
    color: #000 !important;
    filter: brightness(1.1);
}

.nav-item:active {
    filter: brightness(0.95);
    box-shadow: inset 0 2px 0 rgba(0,0,0,0.35);
    /* No transform - prevents layout movement and text jitter */
}

.nav-item.external::after {
    content: ' ↗';
    font-size: 0.9em;
}

/* LCARS Footer - Function Bar */
.lcars-footer {
    background: #000;
    border-top: 15px solid var(--lcars-orange);
    border-radius: 40px 0 0 0;
    padding: 20px;
    margin-top: 40px;
    font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
}

.footer-bar {
    height: 8px;
    background: var(--lcars-orange);
    border-radius: 0 8px 0 0;
    margin-bottom: 20px;
}

.footer-content {
    color: var(--lcars-blue);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--lcars-gold);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--lcars-pink);
}

.footer-status {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--lcars-blue);
    color: var(--lcars-pink);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

/* Single Column Layout for Sub-Pages */
.lcars-single-column {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Error Page Layout */
.lcars-error-layout {
    display: block;
    margin: 30px auto;
}

.lcars-error-panel {
    margin: 0;
}

.error-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
}

.error-title {
    margin: 0;
}

.error-content {
    color: var(--lcars-blue);
    font-size: 1rem;
    line-height: 1.6;
}

.error-lead {
    margin: 0 0 15px 0;
}

.error-detail {
    margin: 0 0 20px 0;
    color: var(--lcars-blue);
}

.error-actions {
    margin-top: 20px;
}

.error-actions h2 {
    margin: 0 0 10px 0;
    color: var(--lcars-gold);
    font-size: 1.1rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--lcars-blue);
    padding-bottom: 6px;
}

.error-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

/* Narrative Terminal Structure */
.narrative-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--lcars-blue);
}

.diag-code {
    color: var(--lcars-pink);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: bold;
}

.narrative-title {
    color: var(--lcars-gold);
    font-size: 1.4rem;
    margin: 5px 0;
    border-bottom: 3px solid var(--lcars-pink);
    padding-bottom: 5px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

/* About Quickstart Panels */
.about-quickstart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.about-quickstart-summary p {
    margin-top: 0;
}

.about-quickstart-list,
.about-steps {
    margin: 10px 0 0 0;
    padding-left: 20px;
    color: var(--lcars-blue);
}

.about-steps li {
    margin-bottom: 8px;
}

.about-quickstart-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.faq-actions {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 102, 0, 0.08);
    border-left: 4px solid var(--lcars-orange);
    border-radius: 0 6px 6px 0;
}

.faq-actions-text {
    margin: 0 0 10px 0;
    color: var(--lcars-blue);
}

.faq-action-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Academy Highlight Blocks */
.academy-journey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.academy-journey-step {
    padding: 16px;
    background: rgba(153, 204, 255, 0.05);
    border-left: 4px solid var(--lcars-blue);
    border-radius: 0 10px 10px 0;
}

.academy-journey-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--lcars-gold);
    color: #000;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.academy-journey-step h3 {
    margin: 0 0 8px 0;
    color: var(--lcars-gold);
    text-transform: uppercase;
    font-size: 1rem;
}

.academy-journey-step p {
    margin: 0 0 12px 0;
    color: var(--lcars-blue);
}

.academy-journey-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.academy-writing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.academy-writing-tips h3 {
    margin: 0 0 10px 0;
    color: var(--lcars-gold);
}

.academy-tip-list {
    margin: 0 0 12px 18px;
    color: var(--lcars-blue);
    line-height: 1.6;
}

.academy-writing-sample {
    background: rgba(153, 204, 255, 0.05);
    border-left: 4px solid var(--lcars-pink);
    border-radius: 0 10px 10px 0;
    padding: 16px;
}

.academy-excerpt-label {
    margin: 0 0 10px 0;
    color: var(--lcars-gold);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.academy-excerpt {
    margin: 0 0 12px 0;
    color: var(--lcars-blue);
    font-style: italic;
}

.academy-excerpt cite {
    display: block;
    margin-top: 8px;
    color: var(--lcars-gold);
    font-style: normal;
}

.academy-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 15px 0;
}

.academy-contact-note {
    margin: 0;
}

@media (max-width: 900px) {
    .academy-writing-grid {
        grid-template-columns: 1fr;
    }
}

/* Member/Admin Section Navigation */
.member-operations-nav,
.admin-operations-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    margin-bottom: 25px;
    background: rgba(153, 204, 255, 0.05);
    border-left: 10px solid var(--lcars-gold);
    border-radius: 0 10px 0 0;
}

.admin-operations-nav {
    border-left-color: var(--lcars-pink);
}

.member-operations-nav .nav-group,
.admin-operations-nav .nav-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.member-operations-nav .nav-item,
.admin-operations-nav .nav-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 18px;
    background: rgba(153, 204, 255, 0.12);
    color: var(--lcars-blue);
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: 1px solid rgba(153, 204, 255, 0.4);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.member-operations-nav .nav-item:hover,
.admin-operations-nav .nav-item:hover,
.member-operations-nav .nav-item:focus,
.admin-operations-nav .nav-item:focus {
    background: rgba(255, 102, 0, 0.2);
    color: var(--lcars-gold);
    border-color: var(--lcars-orange);
}

.member-operations-nav .nav-item.active,
.admin-operations-nav .nav-item.active {
    background: var(--lcars-gold);
    color: #000;
    border-color: var(--lcars-gold);
}

.member-operations-nav .nav-item.highlight {
    background: var(--lcars-pink);
    color: #000;
    border-color: var(--lcars-pink);
}

.admin-operations-nav .nav-item.highlight {
    background: var(--lcars-blue);
    color: #000;
    border-color: var(--lcars-blue);
}

.member-operations-nav .nav-item.admin-link {
    background: var(--lcars-orange);
    color: #000;
    border-color: var(--lcars-orange);
}

.member-nav-panel {
    border-color: var(--lcars-gold) !important;
}

.member-login-panel {
    border-top-color: var(--lcars-blue) !important;
    border-left-color: var(--lcars-blue) !important;
    color: var(--lcars-blue);
    font-size: 1rem;
    line-height: 1.6;
}

.member-login-panel::before {
    background: var(--lcars-blue);
}

.member-login-panel.member-login-aside {
    border-top-color: var(--lcars-gold) !important;
    border-left-color: var(--lcars-gold) !important;
}

.member-login-panel.member-login-aside::before {
    background: var(--lcars-gold);
}

.member-login-body {
    margin-top: 10px;
}

.member-login-alert {
    border: 2px solid var(--lcars-orange);
    background: rgba(255, 102, 0, 0.08);
    color: var(--lcars-orange);
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: bold;
    margin-bottom: 16px;
}

.member-login-form {
    padding: 10px 0;
}

.member-login-actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.member-login-links {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.member-login-link {
    color: var(--lcars-blue);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.member-login-link:hover,
.member-login-link:focus {
    color: var(--lcars-gold);
}

.member-login-note {
    margin-top: 15px;
    color: var(--lcars-blue);
    font-size: 0.9rem;
    line-height: 1.6;
}

.member-login-text {
    margin: 0 0 12px 0;
    color: var(--lcars-blue);
    font-size: 0.9rem;
}

.member-login-list {
    margin: 0 0 16px 18px;
    color: var(--lcars-gold);
    font-size: 0.9rem;
    line-height: 1.6;
}

.member-login-divider {
    height: 2px;
    background: rgba(153, 204, 255, 0.2);
    margin: 18px 0;
}

.member-login-cta h3 {
    margin: 0 0 6px 0;
    color: var(--lcars-gold);
}

.member-login-cta p {
    margin: 0 0 12px 0;
    color: var(--lcars-blue);
    font-size: 0.9rem;
}

.member-login-stardate {
    margin-top: 18px;
    color: var(--lcars-blue);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: right;
}

.community-panel {
    border-top-color: var(--lcars-blue) !important;
    border-left-color: var(--lcars-blue) !important;
}

.community-panel::before {
    background: var(--lcars-blue);
}

.community-content {
    color: var(--lcars-blue);
}

.community-content a {
    color: var(--lcars-gold);
    text-decoration: none;
}

.community-content a:hover,
.community-content a:focus {
    color: var(--lcars-orange);
}

.community-intro {
    margin: 0 0 18px 0;
    color: var(--lcars-blue);
}

.community-section {
    margin-top: 28px;
}

.community-section h2 {
    margin-bottom: 12px;
}

.community-subtitle {
    margin: 0 0 18px 0;
    color: var(--lcars-blue);
    font-size: 0.9rem;
}

.community-resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.community-card {
    padding: 18px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    border-left: 4px solid var(--lcars-gold);
}

.community-card h3 {
    margin-top: 0;
    color: var(--lcars-gold);
}

.community-card a {
    color: inherit;
    text-decoration: none;
}

.community-card p {
    margin: 8px 0 0 0;
    color: var(--lcars-blue);
}

.community-activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.community-quote-card {
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 4px solid var(--lcars-orange);
}

.community-quote-text {
    margin: 0 0 10px 0;
    color: var(--lcars-blue);
    font-style: italic;
}

.community-quote-meta {
    margin: 0;
    color: var(--lcars-gold);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.community-empty {
    margin: 0;
    color: var(--lcars-blue);
}

.community-two-column {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 24px;
    margin-top: 10px;
}

.community-list {
    margin: 0 0 20px 18px;
    color: var(--lcars-blue);
    line-height: 1.7;
}

.community-list strong {
    color: var(--lcars-gold);
}

.community-list-ordered {
    margin: 0 0 20px 22px;
}

.community-side-block {
    padding: 16px;
    background: rgba(153, 204, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--lcars-blue);
    margin-bottom: 18px;
}

.community-schedule-list {
    margin: 0 0 16px 18px;
    color: var(--lcars-blue);
    line-height: 1.6;
}

.community-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.community-contact-note {
    margin: 12px 0 0 0;
    color: var(--lcars-blue);
    font-size: 0.85rem;
}

.community-footer-note {
    margin-top: 24px;
    color: var(--lcars-blue);
}

@media (max-width: 980px) {
    .community-two-column {
        grid-template-columns: 1fr;
    }
}

.member-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.member-dashboard-card {
    background: rgba(153, 204, 255, 0.05);
    border-left: 4px solid var(--lcars-blue);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 180px;
}

.member-dashboard-card.card-gold {
    border-left-color: var(--lcars-gold);
}

.member-dashboard-card.card-orange {
    border-left-color: var(--lcars-orange);
}

.member-dashboard-card.card-blue {
    border-left-color: var(--lcars-blue);
}

.member-dashboard-card h3 {
    margin: 0;
    color: var(--lcars-gold);
    font-size: 1.05rem;
    text-transform: uppercase;
    font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
}

.member-dashboard-stat {
    font-size: 2.4rem;
    color: var(--lcars-gold);
    font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
    line-height: 1;
}

.member-dashboard-substat {
    color: var(--lcars-blue);
    font-size: 0.9rem;
}

.member-dashboard-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.member-dashboard-link {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(153, 204, 255, 0.4);
    color: var(--lcars-blue);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.member-dashboard-link:hover,
.member-dashboard-link:focus {
    background: rgba(255, 102, 0, 0.2);
    border-color: var(--lcars-orange);
    color: var(--lcars-gold);
}

.member-dashboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--lcars-blue);
    font-size: 0.85rem;
}

.member-dashboard-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.member-dashboard-empty {
    margin: 0;
    color: var(--lcars-blue);
    font-size: 0.85rem;
}

.member-update-name {
    font-weight: bold;
    color: var(--lcars-gold);
}

.member-update-meta {
    color: var(--lcars-blue);
    font-size: 0.75rem;
}

.member-profile-meter {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.member-profile-meter-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    overflow: hidden;
}

.member-profile-meter-fill {
    display: block;
    height: 100%;
    background: var(--lcars-gold);
    border-radius: 999px;
}

.member-profile-meter-label {
    color: var(--lcars-blue);
    font-size: 0.85rem;
}

.member-profile-checklist {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.member-profile-checklist li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(153, 204, 255, 0.05);
    color: var(--lcars-blue);
    font-size: 0.8rem;
}

.member-profile-status {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(153, 204, 255, 0.3);
    color: var(--lcars-blue);
}

.member-profile-checklist li.is-complete .member-profile-status {
    background: var(--lcars-gold);
    color: #000;
}

.member-profile-checklist li.is-missing .member-profile-status {
    background: var(--lcars-orange);
    color: #000;
}

.member-profile-notes {
    margin-top: 16px;
    color: var(--lcars-blue);
    font-size: 0.85rem;
}

.member-profile-notes ul {
    margin: 8px 0 0 18px;
}

.member-whats-new-meta {
    margin: 0;
    color: var(--lcars-blue);
    font-size: 0.85rem;
}

.member-update-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.member-update-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(153, 204, 255, 0.04);
    border-left: 4px solid var(--lcars-blue);
}

.member-update-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.member-update-tag {
    font-size: 0.7rem;
    color: var(--lcars-orange);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.member-update-date {
    font-size: 0.8rem;
    color: var(--lcars-blue);
}

@media (max-width: 768px) {
    .member-operations-nav,
    .admin-operations-nav {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Breadcrumb Navigation */
.breadcrumbs {
    margin: 12px 0 18px 0;
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item a,
.breadcrumb-current {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 14px;
    background: rgba(153, 204, 255, 0.12);
    color: var(--lcars-blue);
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 1px;
    border: 1px solid rgba(153, 204, 255, 0.4);
}

.breadcrumb-item a:hover,
.breadcrumb-item a:focus {
    background: rgba(255, 102, 0, 0.2);
    color: var(--lcars-gold);
    border-color: var(--lcars-orange);
}

.breadcrumb-current {
    background: var(--lcars-gold);
    color: #000;
    border-color: var(--lcars-gold);
}

.breadcrumb-separator {
    color: var(--lcars-blue);
    font-size: 0.7rem;
    margin: 0 2px;
}

/* Fleet Activity Panel */
.fleet-activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.fleet-activity-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    background: rgba(153, 204, 255, 0.05);
    border-left: 4px solid var(--lcars-orange);
    border-radius: 0 8px 8px 0;
}

.fleet-activity-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.fleet-activity-ship {
    color: var(--lcars-gold);
    font-weight: bold;
    text-transform: uppercase;
}

.fleet-activity-date {
    color: var(--lcars-blue);
    font-size: 0.85rem;
}

.fleet-activity-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.fleet-activity-open {
    color: var(--lcars-blue);
    font-size: 0.85rem;
}

/* Section Navigation */
.about-sub-nav,
.academy-sub-nav,
.history-sub-nav,
.starfleet-sub-nav,
.fleet-republic-sub-nav,
.fleet-hades-sub-nav,
.fleet-freedom-sub-nav,
.fleet-hub-sub-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.about-nav-link,
.academy-nav-link,
.history-nav-link,
.starfleet-nav-link,
.fleet-republic-nav-link,
.fleet-hades-nav-link,
.fleet-freedom-nav-link,
.fleet-hub-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 18px;
    background: rgba(153, 204, 255, 0.12);
    color: var(--lcars-blue);
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
    font-size: 0.85rem;
    font-weight: normal;
    letter-spacing: 1px;
    border: 1px solid rgba(153, 204, 255, 0.4);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.about-nav-link:hover,
.academy-nav-link:hover,
.history-nav-link:hover,
.starfleet-nav-link:hover,
.fleet-republic-nav-link:hover,
.fleet-hades-nav-link:hover,
.fleet-freedom-nav-link:hover,
.fleet-hub-nav-link:hover,
.about-nav-link:focus,
.academy-nav-link:focus,
.history-nav-link:focus,
.starfleet-nav-link:focus,
.fleet-republic-nav-link:focus,
.fleet-hades-nav-link:focus,
.fleet-freedom-nav-link:focus,
.fleet-hub-nav-link:focus {
    background: rgba(255, 102, 0, 0.2);
    color: var(--lcars-gold);
    border-color: var(--lcars-orange);
}

.about-nav-link.active,
.academy-nav-link.active,
.history-nav-link.active,
.starfleet-nav-link.active,
.fleet-republic-nav-link.active,
.fleet-hades-nav-link.active,
.fleet-freedom-nav-link.active,
.fleet-hub-nav-link.active {
    background: var(--lcars-gold) !important;
    color: #000000 !important;
    border-color: var(--lcars-gold) !important;
    font-weight: bold;
}

@media (max-width: 900px) {
    .about-sub-nav,
    .academy-sub-nav,
    .history-sub-nav,
    .starfleet-sub-nav,
    .fleet-republic-sub-nav,
    .fleet-hades-sub-nav,
    .fleet-freedom-sub-nav,
    .fleet-hub-sub-nav {
        gap: 8px;
    }

    .about-nav-link,
    .academy-nav-link,
    .history-nav-link,
    .starfleet-nav-link,
    .fleet-republic-nav-link,
    .fleet-hades-nav-link,
    .fleet-freedom-nav-link,
    .fleet-hub-nav-link {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

.starfleet-panel {
    border-top-color: var(--lcars-blue) !important;
    border-left-color: var(--lcars-blue) !important;
}

.starfleet-panel::before {
    background: var(--lcars-blue);
}

.starfleet-panel.is-gold {
    border-top-color: var(--lcars-gold) !important;
    border-left-color: var(--lcars-gold) !important;
}

.starfleet-panel.is-gold::before {
    background: var(--lcars-gold);
}

.starfleet-panel.is-pink {
    border-top-color: var(--lcars-pink) !important;
    border-left-color: var(--lcars-pink) !important;
}

.starfleet-panel.is-pink::before {
    background: var(--lcars-pink);
}

.starfleet-panel.is-orange {
    border-top-color: var(--lcars-orange) !important;
    border-left-color: var(--lcars-orange) !important;
}

.starfleet-panel.is-orange::before {
    background: var(--lcars-orange);
}

.starfleet-diag {
    position: absolute;
    top: -12px;
    right: 10px;
    font-size: 0.7rem;
    color: #000000;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 5px;
    background: var(--lcars-blue);
}

.starfleet-diag.is-gold {
    background: var(--lcars-gold);
}

.starfleet-diag.is-pink {
    background: var(--lcars-pink);
}

.starfleet-diag.is-orange {
    background: var(--lcars-orange);
}

.starfleet-subtitle {
    margin: 0 0 18px 0;
    color: var(--lcars-blue);
    font-size: 0.95rem;
    line-height: 1.5;
}

.starfleet-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.starfleet-video-wrap {
    text-align: center;
    margin: 20px 0;
}

.starfleet-video-wrap iframe {
    width: 100%;
    max-width: 560px;
    aspect-ratio: 16 / 9;
    height: auto;
    border: none;
}

.starfleet-department-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.starfleet-department-card {
    padding: 16px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    border-left: 4px solid var(--lcars-blue);
}

.starfleet-department-card h3 {
    margin: 0 0 8px 0;
    color: var(--lcars-gold);
    text-transform: uppercase;
    font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
}

.starfleet-department-card p {
    margin: 0 0 10px 0;
    color: var(--lcars-blue);
    line-height: 1.5;
}

.starfleet-department-meta {
    color: var(--lcars-gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.starfleet-rank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.starfleet-rank-grid h3 {
    margin: 0 0 10px 0;
    color: var(--lcars-gold);
    text-transform: uppercase;
    font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
}

.starfleet-list {
    margin: 0;
    padding-left: 18px;
    color: var(--lcars-blue);
    line-height: 1.6;
}

.starfleet-resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.starfleet-resource-card {
    padding: 16px;
    background: rgba(153, 204, 255, 0.08);
    border-radius: 8px;
    border-left: 4px solid var(--lcars-blue);
}

.starfleet-resource-card h3 {
    margin: 0 0 10px 0;
    color: var(--lcars-gold);
    font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
    text-transform: uppercase;
}

.starfleet-resource-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.starfleet-cta-note {
    margin-top: 22px;
    padding: 16px;
    border-radius: 8px;
    background: rgba(248, 164, 6, 0.1);
    border-left: 4px solid var(--lcars-gold);
    color: var(--lcars-blue);
}

.starfleet-cta-note strong {
    color: var(--lcars-gold);
}

.starfleet-cta-panel {
    text-align: center;
}

.starfleet-cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

@media (max-width: 900px) {
    .starfleet-cta-panel {
        text-align: left;
    }

    .starfleet-cta-row {
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
    .about-quickstart-grid {
        grid-template-columns: 1fr;
    }
}

/* Body styled as a data entry node */
.narrative-body {
    padding-left: 0;
    position: relative;
}

.narrative-content {
    position: relative;
}

.mission-image {
    float: right;
    max-width: 200px;
    width: auto;
    height: auto;
    margin: 0 0 15px 20px;
    border-radius: 4px;
    border: 2px solid var(--lcars-blue);
}

/* Scan Frame Overlay for Recruitment Images */
.scan-frame {
    position: relative;
    border: 2px solid var(--lcars-blue);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #000;
}

.recruitment-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.8) contrast(1.2);
    opacity: 0.9;
}

/* Academy Banner Image Size Fix */
.scan-frame .recruitment-img {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(153, 204, 255, 0.6);
    box-shadow: 0 0 12px var(--lcars-blue);
    animation: scan-loop 5s linear infinite;
}

@keyframes scan-loop {
    0% { top: 0; }
    100% { top: 100%; }
}

/* Recruitment Terminal Container */
.recruitment-terminal {
    width: 100%;
}

/* Terminal Diagnostic Text (Center Bar) */
.terminal-diag {
    color: var(--lcars-blue);
    font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    padding: 12px 15px;
    margin: 15px 0;
    background: rgba(153, 204, 255, 0.05);
    border-left: 10px solid var(--lcars-blue);
    border-radius: 0 10px 0 0;
    font-weight: bold;
}

/* Enlistment Group (Button Pillar) */
.enlistment-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-left: 15px solid var(--lcars-orange);
    padding-left: 10px;
    margin: 20px 0;
}

.enlist-btn {
    text-decoration: none !important;
    font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
    font-weight: bold;
    padding: 10px 15px;
    color: #000 !important;
    text-align: left;
    transition: background 0.1s ease, filter 0.1s ease; /* Remove 'transform' to prevent shifting */
    text-transform: uppercase;
    display: block;
    border: none;
    border-right: none !important; /* Use box-shadow for depth instead */
    box-shadow: inset -10px 0 0 rgba(0, 0, 0, 0.3); /* Depth effect without layout shift */
    position: relative;
    outline: none;
    -webkit-tap-highlight-color: transparent; /* Fixes blue flash on mobile */
}

.enlist-btn.primary {
    background-color: var(--lcars-gold) !important;
    border-radius: 0 20px 0 0;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.enlist-btn.secondary {
    background-color: var(--lcars-blue) !important;
    font-size: 0.95rem;
}

.enlistment-group .enlist-btn:last-of-type {
    border-radius: 0 0 20px 0;
}

.enlist-btn:hover,
.enlist-btn:focus {
    background: #fff !important;
    color: #000 !important;
    text-decoration: none !important;
    outline: none;
    filter: brightness(1.1);
}

/* The "Pressed" State - Subtle darken instead of a physical move */
.enlist-btn:active {
    filter: brightness(0.8);
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.4); /* Interior shadow mimics a press */
    transform: translateY(1px); /* Vertical move is safer than horizontal for LCARS */
}

/* Quick Links Terminal */
.quick-links-terminal {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--lcars-blue);
}

.readout-header {
    color: var(--lcars-pink);
    font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: bold;
}

.readout-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.readout-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.readout-col .label {
    color: var(--lcars-gold);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.readout-col a {
    color: var(--lcars-blue);
    text-decoration: none !important;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.readout-col a:hover {
    color: var(--lcars-gold);
    text-decoration: underline !important;
}

.mission-text {
    color: var(--lcars-blue);
    line-height: 1.6;
    font-size: 1.05rem;
    text-transform: none; /* Keep mission text readable */
    font-family: 'Verdana', 'Arial', sans-serif; /* Standard Starfleet readout font */
    margin-bottom: 20px;
}

.mission-text p {
    margin-bottom: 15px;
}

/* Attribution Footer */
.narrative-attribution {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 2px solid var(--lcars-blue);
    display: flex;
    align-items: center;
    gap: 15px;
}

.attr-stem {
    background: var(--lcars-pink);
    border-radius: 0 0 0 15px; /* The elbow curve connecting back to the sidebar */
    flex-shrink: 0;
    width: 8px;
    height: 60px;
}

.attr-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.attr-rank {
    color: var(--lcars-gold);
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.attr-name {
    color: var(--lcars-blue);
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.attr-post {
    color: var(--lcars-gold) !important;
}

.attr-contact a:hover {
    color: var(--lcars-gold) !important;
}

/* Responsive Narrative Terminal */
@media (max-width: 768px) {
    .mission-image {
        float: none;
        display: block;
        margin: 0 auto 15px auto;
        max-width: 100%;
    }
    
    .narrative-body {
        padding-left: 0;
    }
    
    .narrative-title {
        font-size: 1.1rem;
    }
}

/* Academy and Fleet nav blocks now share the unified section navigation styles. */

/* Academy Usage Tags (for guides) */
blockquote p em {
    display: block;
    background: rgba(153, 204, 255, 0.1);
    border-left: 3px solid var(--lcars-blue);
    font-size: 0.9rem !important; /* Prevent "zoomed-in" look */
    font-style: normal !important; /* Remove italic styling */
    padding: 10px;
    margin: 5px 0;
    color: var(--lcars-blue);
    font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
    letter-spacing: 1px;
    font-style: normal;
}

/* Deckplan Row Styling */
.deckplan-header {
    display: grid;
    grid-template-columns: 100px 20px 1fr 100px 150px;
    gap: 10px;
    padding: 12px;
    background: rgba(153, 204, 255, 0.1);
    border-left: 10px solid var(--lcars-blue);
    border-radius: 0 10px 0 0;
    font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--lcars-gold);
    margin-bottom: 2px;
}

.deckplan-row {
    border-left: 10px solid var(--lcars-blue);
    display: grid;
    grid-template-columns: 100px 20px 1fr 100px 150px;
    gap: 10px;
    padding: 10px;
    background: rgba(153, 204, 255, 0.03);
    margin-bottom: 2px;
    transition: background 0.2s ease;
}

.deckplan-row:hover {
    background: rgba(153, 204, 255, 0.08);
}

.deckplan-number {
    color: var(--lcars-gold);
    font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
}

.deckplan-description {
    color: var(--lcars-blue);
    font-family: 'Verdana', 'Arial', sans-serif;
}

/* Support Craft Row Styling */
.support-header {
    display: grid;
    grid-template-columns: 150px 20px 1fr;
    gap: 10px;
    padding: 12px;
    background: rgba(153, 204, 255, 0.1);
    border-left: 10px solid var(--lcars-blue);
    border-radius: 0 10px 0 0;
    font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--lcars-gold);
    margin-bottom: 2px;
}

.support-row {
    border-left: 10px solid var(--lcars-blue);
    display: grid;
    grid-template-columns: 150px 20px 1fr;
    gap: 10px;
    padding: 10px;
    background: rgba(153, 204, 255, 0.03);
    margin-bottom: 2px;
    transition: background 0.2s ease;
}

.support-row:hover {
    background: rgba(153, 204, 255, 0.08);
}

.support-type {
    color: var(--lcars-gold);
    font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
}

.support-description {
    color: var(--lcars-blue);
    font-family: 'Verdana', 'Arial', sans-serif;
}

/* Flagship Data Stream Styling */
.deckplan-row[style*="border-left-color: var(--lcars-gold)"],
.support-row[style*="border-left-color: var(--lcars-gold)"] {
    border-left-color: var(--lcars-gold) !important;
}

.deckplan-number[style*="color: var(--lcars-gold)"],
.support-type[style*="color: var(--lcars-gold)"] {
    color: var(--lcars-gold) !important;
}

/* Roster Tactical ID Cards */
.roster-department {
    margin-bottom: 30px;
}

.roster-department-header {
    background: var(--lcars-blue);
    color: #000;
    padding: 12px 20px;
    font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.1rem;
    border-bottom: 3px solid var(--lcars-blue);
    border-radius: 0 10px 0 0;
}

.roster-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.roster-tactical-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--lcars-blue);
    border-radius: 10px;
    padding: 15px;
    text-decoration: none;
    color: var(--lcars-blue);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.roster-tactical-card:hover {
    background: rgba(153, 204, 255, 0.1);
    border-color: var(--lcars-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(153, 204, 255, 0.2);
}

.roster-tactical-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.roster-tactical-card .card-name {
    font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    color: var(--lcars-gold);
    flex: 1;
}

.roster-tactical-card-type {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
}

.roster-tactical-card-type.pc {
    background: var(--lcars-blue);
    color: #000;
}

.roster-tactical-card-type.spc {
    background: var(--lcars-pink);
    color: #000;
    border: 2px solid var(--lcars-pink);
}

.card-rank-insignia {
    width: 30px;
    height: auto;
    flex-shrink: 0;
}

.roster-tactical-card .card-details-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 15px;
    font-size: 0.9rem;
    margin-top: 10px;
}

.roster-tactical-card .grid-label {
    color: var(--lcars-pink);
    font-weight: bold;
    font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.roster-tactical-card .grid-value {
    color: var(--lcars-blue);
    font-family: 'Verdana', 'Arial', sans-serif;
}

.roster-tactical-card .card-player {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(153, 204, 255, 0.2);
    color: var(--lcars-blue);
    font-size: 0.85rem;
    font-style: italic;
}

/* Flagship Republic Gold Accent for Roster Cards */
.roster-tactical-card[style*="border-top-color: var(--lcars-gold)"] {
    border-top-color: var(--lcars-gold) !important;
    border-top-width: 4px !important;
}

.roster-tactical-card[style*="border-top-color: var(--lcars-gold)"]::before {
    content: 'FLAGSHIP';
    position: absolute;
    top: -8px;
    right: 15px;
    background: var(--lcars-gold);
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
    text-transform: uppercase;
}

/* Command Status Marker for Admirals */
.command-status-marker {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--lcars-pink);
    border-radius: 50%;
    margin-left: 8px;
    animation: pulse-pink 2s ease-in-out infinite;
    box-shadow: 0 0 8px var(--lcars-pink);
}

@keyframes pulse-pink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

/* Aquarius Node Highlight */
.aquarius-node {
    background: rgba(255, 204, 0, 0.1) !important;
    border-left: 10px solid var(--lcars-gold) !important;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 10px 0 0;
}

.aquarius-node h3 {
    color: var(--lcars-gold);
    font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* Mobile Roster Optimization */
@media (max-width: 800px) {
    .roster-grid-container {
        grid-template-columns: 1fr;
    }
    
    .roster-tactical-card {
        border-top-width: 4px;
    }
    
    .card-rank-insignia {
        width: 45px; /* 1.5x size for mobile */
    }
    
    .roster-tactical-card .card-name {
        font-size: 1.2rem; /* Larger touch target */
    }
    
    .roster-tactical-card .card-player {
        font-size: 0.9rem; /* Ensure legibility */
    }
}

@media (min-width: 801px) {
    /* Hide tactical cards on desktop */
    .roster-tactical-card {
        display: none;
    }
}

/* ============================================
   FORCE SCALE NORMALIZATION - Anti-Zoom Patch
   ============================================ */
:root {
    font-size: 14px !important; /* Prevents "Massive Text" on high-res monitors */
}

@media (max-width: 768px) {
    :root { 
        font-size: 13px !important; 
    }
    
    /* Ensure no horizontal overflow causes zoom-out */
    .site-container, body, html {
        overflow-x: hidden !important;
        width: 100vw;
        max-width: 100vw;
    }

    /* Force panels to fit the phone width */
    .lcars-panel {
        margin: 10px 5px !important;
        width: calc(100% - 10px) !important;
        max-width: calc(100vw - 10px) !important;
    }
}

/* Mobile Grid Normalization - Force single column for 5-column grids */
@media (max-width: 800px) {
    /* Deckplan and Support Craft grids - Force single column on mobile */
    .deckplan-header,
    .deckplan-row,
    .support-header,
    .support-row {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    
    /* Hide separator column on mobile */
    .deckplan-header > :nth-child(2),
    .deckplan-row > :nth-child(2),
    .support-header > :nth-child(2),
    .support-row > :nth-child(2) {
        display: none;
    }
    
    /* Stack grid items vertically on mobile */
    .deckplan-number,
    .deckplan-description,
    .support-type,
    .support-description {
        display: block;
        width: 100%;
    }
}

/* ========================================
 * Homepage Specific Styles (index_new.php)
 * Organized and consolidated for better maintainability
 * ======================================== */

/* ----------------------------------------
 * Hero Section
 * ---------------------------------------- */
.hero-callout {
    background: rgba(153, 204, 255, 0.05);
    border-left: 8px solid var(--lcars-gold);
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 0 15px 0 0;
}

.hero-callout-title {
    color: var(--lcars-gold);
    font-size: 2rem;
    margin: 0 0 15px 0;
    font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
    text-transform: uppercase;
    line-height: 1.2;
}

.hero-callout-subhead {
    color: var(--lcars-blue);
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

/* ----------------------------------------
 * Primary CTA Sections
 * ---------------------------------------- */
.primary-cta {
    text-align: center;
    margin: 20px 0;
}

.primary-cta .lcars-action-button {
    margin-bottom: 10px;
}

.cta-note {
    color: var(--lcars-blue);
    margin: 10px 0 0 0;
    font-size: 0.9rem;
}

.cta-subnote {
    color: var(--lcars-gold);
    margin: 8px 0 0 0;
    font-size: 0.8rem;
    font-style: italic;
}

/* ----------------------------------------
 * Fleet Status Section
 * ---------------------------------------- */
.fleet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.fleet-header h2 {
    margin: 0;
}

.fleet-toggle {
    padding: 6px 12px;
    font-size: 0.8rem;
    background: var(--lcars-gold);
}

.fleet-toggle.is-active {
    background: var(--lcars-orange);
}

.fleet-section {
    margin-bottom: 25px;
}

.fleet-section:last-child {
    margin-bottom: 0;
}

.fleet-section h3 {
    color: var(--lcars-gold);
    font-size: 1.1rem;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    border-bottom: 2px solid var(--lcars-blue);
    padding-bottom: 8px;
    font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
}

.fleet-card {
    padding: 20px;
    background: rgba(153, 204, 255, 0.03);
    border-radius: 8px;
}

.fleet-actions {
    margin-top: 15px;
}

/* ----------------------------------------
 * Stardate Terminal
 * ---------------------------------------- */
.stardate-terminal {
    margin-bottom: 20px;
    text-align: center;
    padding: 15px;
    background: rgba(153, 204, 255, 0.05);
    border-radius: 8px;
    border: 2px solid var(--lcars-blue);
}

.stardate-label {
    color: var(--lcars-blue);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
}

.stardate-value {
    color: var(--lcars-gold);
    font-size: 1.8rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
}

/* ----------------------------------------
 * Census Display
 * ---------------------------------------- */
.census-legend {
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(153, 204, 255, 0.05);
    border-radius: 5px;
    font-size: 0.9rem;
    color: var(--lcars-blue);
    line-height: 1.6;
}

.census-label-title {
    color: var(--lcars-gold);
    font-weight: bold;
}

.census-container {
    margin: 20px 0;
}

.census-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.census-row:last-child {
    margin-bottom: 0;
}

.census-row .census-label {
    min-width: 50px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.census-label.pc {
    color: var(--lcars-orange);
}

.census-label.spc {
    color: var(--lcars-gold);
}

.bar-bg {
    flex: 1;
    height: 24px;
    background: rgba(153, 204, 255, 0.1);
    border-radius: 4px;
    border: 1px solid var(--lcars-blue);
    position: relative;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.bar-fill.orange {
    background: var(--lcars-orange);
}

.bar-fill.gold {
    background: var(--lcars-gold);
}

.status-value {
    min-width: 60px;
    text-align: right;
    color: var(--lcars-gold);
    font-weight: bold;
    font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
}

/* ----------------------------------------
 * Ship List / Tactical Grid
 * ---------------------------------------- */
.tactical-grid-container {
    margin: 20px 0;
}

.ship-list-overlay {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ship-row-terminal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: rgba(153, 204, 255, 0.05);
    border-left: 4px solid var(--lcars-blue);
    border-radius: 4px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ship-row-terminal:hover {
    background: rgba(153, 204, 255, 0.1);
    border-left-color: var(--lcars-gold);
}

.ship-row-link {
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.ship-name-text {
    color: var(--lcars-gold);
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00ff00;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
    animation: pulse-dot 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ----------------------------------------
 * Personnel Spotlight
 * ---------------------------------------- */
.spotlight-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.avatar-wrap.large-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--lcars-blue);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.avatar-wrap.large-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.spotlight-details {
    flex: 1;
    min-width: 200px;
}

.spotlight-name {
    color: var(--lcars-gold);
    font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.spotlight-role {
    color: var(--lcars-pink);
    margin-bottom: 3px;
    font-size: 0.95rem;
}

.spotlight-assignment {
    color: var(--lcars-blue);
    font-size: 0.9rem;
}

/* ----------------------------------------
 * Welcome Section
 * ---------------------------------------- */
.welcome-text {
    color: var(--lcars-blue);
    font-size: 0.95rem;
    line-height: 1.6;
}

.welcome-title {
    color: var(--lcars-gold);
    font-weight: bold;
    margin-right: 8px;
}

.welcome-names {
    color: var(--lcars-orange);
    font-weight: bold;
}

.welcome-status {
    color: var(--lcars-blue);
    margin-left: 8px;
}

/* ----------------------------------------
 * CTA Card Grid
 * ---------------------------------------- */
.cta-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.cta-card {
    padding: 15px;
    background: rgba(153, 204, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--lcars-blue);
    transition: background 0.2s ease, transform 0.2s ease;
}

.cta-card:hover {
    background: rgba(153, 204, 255, 0.1);
    transform: translateY(-2px);
}

.cta-card.orange {
    border-left-color: var(--lcars-orange);
    background: rgba(255, 102, 0, 0.05);
}

.cta-card.blue {
    border-left-color: var(--lcars-blue);
}

.cta-card.pink {
    border-left-color: var(--lcars-pink);
    background: rgba(204, 153, 204, 0.08);
}

.cta-card-title {
    color: var(--lcars-gold);
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
    text-transform: uppercase;
}

.cta-card-text {
    color: var(--lcars-blue);
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ----------------------------------------
 * Panel Dividers & Spacing
 * ---------------------------------------- */
.panel-divider {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--lcars-blue);
}

.panel-divider.blue {
    border-top-color: var(--lcars-blue);
}

.panel-lede {
    margin: 0 0 20px 0;
    font-size: 0.95rem;
    color: var(--lcars-blue);
    line-height: 1.6;
}

.panel-lede.compact {
    margin-bottom: 15px;
}

.panel-lede.text-italic {
    font-style: italic;
}

/* ----------------------------------------
 * Story Excerpt / Mission Quote
 * ---------------------------------------- */
.excerpt-card {
    background: rgba(153, 204, 255, 0.05);
    border-left: 4px solid var(--lcars-pink);
    padding: 20px;
    border-radius: 8px;
    margin-top: 10px;
}

.story-quote {
    color: var(--lcars-blue);
    font-size: 1.05rem;
    line-height: 1.8;
    font-style: italic;
    margin: 0 0 15px 0;
    padding-left: 20px;
    border-left: 4px solid var(--lcars-pink);
}

.story-quote cite {
    display: block;
    margin-top: 10px;
    color: var(--lcars-gold);
    font-style: normal;
    font-size: 0.9rem;
}

.excerpt-meta {
    color: var(--lcars-blue);
    font-size: 0.85rem;
    margin-top: 10px;
    font-style: italic;
}

/* ----------------------------------------
 * Details/Summary (Collapsible)
 * ---------------------------------------- */
details {
    margin: 20px 0;
}

.details-summary {
    cursor: pointer;
    color: var(--lcars-gold);
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    padding: 10px;
    background: rgba(153, 204, 255, 0.05);
    border-radius: 4px;
    user-select: none;
    transition: background 0.2s ease, color 0.2s ease;
    list-style: none;
}

.details-summary:hover {
    background: rgba(153, 204, 255, 0.1);
    color: var(--lcars-orange);
}

details[open] .details-summary {
    color: var(--lcars-orange);
}

.details-summary::-webkit-details-marker {
    display: none;
}

.details-summary::before {
    content: '▶ ';
    display: inline-block;
    margin-right: 8px;
    transition: transform 0.2s ease;
}

details[open] .details-summary::before {
    transform: rotate(90deg);
}

/* ----------------------------------------
 * Final Callout Section
 * ---------------------------------------- */
.final-callout {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 102, 0, 0.05);
    border: 3px solid var(--lcars-orange);
    border-radius: 10px;
    margin: 30px 0;
}

.final-callout-title {
    color: var(--lcars-gold);
    font-size: 1.8rem;
    margin: 0 0 20px 0;
    font-family: 'Antonio', 'Verdana', 'Arial', sans-serif;
    text-transform: uppercase;
    line-height: 1.2;
}

.final-callout-text {
    color: var(--lcars-blue);
    font-size: 1rem;
    margin: 15px 0 0 0;
}

/* ----------------------------------------
 * Additional Homepage Classes
 * ---------------------------------------- */
.home-left-panel {
    min-width: 0; /* Allow flex shrinking */
}

.secondary-cta {
    background: var(--lcars-gold) !important;
    border-color: var(--lcars-blue) !important;
    font-size: 0.9rem !important;
}

.cta-primary-action {
    display: inline-block;
    font-size: 1.1rem;
    padding: 12px 24px;
    background: var(--lcars-orange);
    border: 3px solid var(--lcars-gold);
    text-transform: uppercase;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

/* ----------------------------------------
 * Join Page Specific Styles
 * ---------------------------------------- */
.join-subhead {
    margin-bottom: 15px;
}

/* ----------------------------------------
 * Responsive Adjustments
 * ---------------------------------------- */
@media (max-width: 768px) {
    .hero-callout-title {
        font-size: 1.5rem;
    }
    
    .fleet-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .spotlight-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .cta-card-grid {
        grid-template-columns: 1fr;
    }
    
    .final-callout {
        padding: 30px 15px;
    }
    
    .final-callout-title {
        font-size: 1.5rem;
    }
    
    .stardate-terminal {
        padding: 12px;
    }
    
    .stardate-value {
        font-size: 1.4rem;
    }
}

/* ========================================
 * LCARS Banner Overlay - Force Override Fix
 * High-specificity rules to override conflicting CSS
 * Ensures all LCARS elements are visible and properly layered
 * ======================================== */


/* Right-side bracket removed - UI signals don't belong in viewscreen banners */
/* If it looks like data → it does not belong here */

/* ========================================
 * Fleet-Specific LCARS Elements
 * Operational, motion, status indicators
 * ======================================== */

/* Fleet telemetry removed - banner is viewscreen, not panel */
/* All widgets, blips, telemetry belong in panels, not hero banners */
