/* GLOBAL STYLES */
body {
    background-color: #0d0d0d;
    color: #00ff41; /* Classic Terminal Green */
    font-family: 'Courier New', Courier, monospace;
    padding: 30px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

header {
    border-bottom: 2px solid #00ff41;
    margin-bottom: 30px;
    padding-bottom: 10px;
}

h1 { font-size: 2.2em; text-transform: uppercase; letter-spacing: 2px; margin: 0; }
h2 { border-left: 4px solid #ff4100; padding-left: 10px; color: #fff; margin-top: 0;}

/* LAYOUT */
.container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.main-content {
    flex: 2;
    min-width: 300px;
}

/* SIDEBAR: THE ARMORY */
.sidebar {
    flex: 1;
    min-width: 250px;
    background: #111;
    border: 1px solid #ff4100;
    padding: 20px;
    height: fit-content;
}

.manifesto {
    background: #1a1a1a;
    padding: 20px;
    border: 1px dashed #00ff41;
    margin-bottom: 40px;
}

.section { margin-bottom: 40px; }
.links-list { list-style: none; padding: 0; }
.links-list li { margin-bottom: 15px; }

/* TACTICAL LINKS & BUTTONS */
a { 
    color: #00ff41; 
    text-decoration: none; 
    border: 1px solid #00ff41; 
    padding: 5px 10px;
    transition: 0.3s;
    display: inline-block;
}

a:hover { 
    background: #00ff41; 
    color: #0d0d0d; 
    font-weight: bold;
}

/* ARMORY SPECIFIC */
.armory-item {
    margin-bottom: 25px;
    font-size: 0.9em;
}

.armory-link {
    color: #ff4100;
    border-color: #ff4100;
    font-weight: bold;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
    text-align: center;
}

.armory-link:hover {
    background: #ff4100;
    color: #fff;
}

.footer { 
    font-size: 0.8em; 
    margin-top: auto; 
    border-top: 1px solid #333;
    padding-top: 20px;
    opacity: 0.6; 
}

/* REPORT SPECIFIC STYLES */
.report-meta {
    font-size: 0.8em;
    color: #888;
    margin-bottom: 20px;
    border-left: 2px solid #00ff41;
    padding-left: 15px;
}

.report-body {
    background: rgba(0, 255, 65, 0.05);
    padding: 20px;
    border: 1px solid #333;
}

.back-link {
    margin-bottom: 20px;
    display: inline-block;
    font-size: 0.8em;
    text-transform: uppercase;
}

/* MOBILE & FIELD DEVICE OPTIMIZATION */
@media screen and (max-width: 768px) {
    body {
        padding: 15px; /* Tighter padding for smaller screens */
        font-size: 14px; /* Slightly smaller base text */
    }

    header h1 {
        font-size: 1.5em; /* Prevent title from wrapping awkwardly */
    }

    .container {
        flex-direction: column; /* Stack main content and sidebar vertically */
        gap: 20px;
    }

    .main-content, .sidebar {
        min-width: 100%; /* Ensure content fills the screen width */
        flex: none;
    }

    .sidebar {
        order: 2; /* Move the Armory below the main intelligence report */
    }

    .report-body {
        padding: 15px;
    }

    /* Improve touch targets for mobile users */
    a {
        padding: 10px 15px;
        margin-bottom: 5px;
        display: block; /* Make links full-width for easier tapping */
        text-align: center;
    }

    /* Ensure images/canvas don't overflow the screen */
    canvas, img {
        max-width: 100%;
        height: auto !important;
    }
}