/* --- UNIVERSAL VARIABLES --- */
:root {
    --primary-gold: #CECE00; 
    --bg-black: #000000;
    --card-bg: #111111;
    --text-white: #eeeeee;
    --text-muted: #888888;
    --accent-grey: #333333;
}

/* --- UNIVERSAL RESET --- */
*, *::before, *::after {
    box-sizing: border-box;
}

/* --- BASE STYLES --- */
body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
}

/* --- LAYOUT WRAPPERS (The Missing Links) --- */
.page-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px 80px 40px;
}

.dossier-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: flex-start;
}

.sidebar-left {
    flex: 1;
    min-width: 300px;
}

.main-content {
    flex: 1.8;
    min-width: 380px;
}



/* --- HEADER & LOGO --- */
.site-header {
    width: 100%;
    padding: 30px 0;
    text-align: center;
    background-color: var(--bg-black);
}

.brand-logo {
    max-width: 500px;
    width: 90%; 
    height: auto;
    display: block;
    margin: 0 auto;
}

.page-title {
    text-align: center;
    color: var(--primary-gold);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin: 40px 0;
}

/* --- ARCHETYPE CONTENT STYLES --- */
.archetype-image {
    width: 100%;
    border: 1px solid var(--accent-grey);
    margin-bottom: 20px;
}

.archetype-directory {
    margin: 20px 0 20px 40px;
    list-style-type: square;
}

.resource-footnotes {
    background: #111;
    padding: 20px;
    border: 1px solid #222;
}

.resource-footnotes h4 {
    color: var(--primary-gold);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-top: 0;
}

.resource-links {
    list-style: none;
    padding: 0;
}

.resource-links li { margin-bottom: 12px; }

.resource-links a {
    color: #9AE4E4; /* Tactical Teal */
    text-decoration: none;
    font-size: 0.8rem; 
    font-weight: bold;
}

.vault-directive {
    background: rgba(255, 215, 0, 0.03);
    padding: 20px;
    border: 1px dashed var(--primary-gold);
    margin-top: 30px;
}

/* --- MEMBERSHIP GALLERY SECTION --- */
/* Note: Use /* for comments in CSS */

.membership-body {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
}

.gallery-container {
    width: 92%;
    max-width: 1200px;
    margin: 40px auto;
}

.archetype-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.gallery-item {
    background: #fff;
    border: 1px solid #eee;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Positioning the bar at the bottom */
.gallery-item h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    height: 50px;
    background-color: var(--primary-gold);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid #222;
}

/* --- AUDIT & QUIZ REALIGNMENT --- */
#audit-container, .result-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--card-bg);
    border: 1px solid var(--accent-grey);
    text-align: center; /* Forces everything to center */
}

#scenario-img, .result-main-img {
    max-width: 500px !important; /* Prevents the scenario images from being too huge */
    margin: 0 auto 30px auto;
    border: 1px solid var(--accent-grey);
}

.option-btn {
    display: block;
    width: 80%;
    margin: 10px auto;
    text-align: left; /* Keeps text readable inside a centered button */
}

/* --- AUDIT & RESULT ALIGNMENT RECOVERY --- */

/* Centers the main white/black box on Audit and Result pages */
.container {
    width: 92%;
    max-width: 800px;
    margin: 40px auto;
    background-color: var(--card-bg);
    border: 1px solid var(--accent-grey);
    padding: 40px;
    box-sizing: border-box;
    text-align: center; /* This centers the titles and buttons */
    display: block;
}

/* Ensures Scenario and Result images are centered and sized correctly */
.scenario-image, .result-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 30px auto; /* The 'auto' on left/right forces centering */
    border: 1px solid var(--accent-grey);
}

/* Fixes the alignment of the radio button options */
#options {
    text-align: left !important;
    max-width: 500px;
    margin: 0 auto !important;
    padding: 20px;
}

/* Centers the result content while keeping text left-aligned for readability */
.result-content {
    text-align: left;
    max-width: 700px;
    margin: 0 auto 40px auto !important;
    line-height: 1.8;
}

/* Ensures the header logo is always centered */
header {
    text-align: center;
    padding: 30px 0;
}



/* --- INTEL REQUEST POP-UP --- */
.intel-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.intel-modal {
    background: #111;
    border: 1px solid var(--primary-gold);
    padding: 40px;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 0 50px rgba(206, 206, 0, 0.2);
}

.intel-modal h3 {
    color: var(--primary-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.intel-modal p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 25px;
}


/* --- DOWNLOAD HUB STYLING --- */
.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border: none;
}

.download-btn .icon {
    margin-right: 15px;
    font-size: 1.1rem;
}

/* Harmonized Color Scheme */
.teal-btn { 
    background-color: #175555; 
    color: #D7F4F4; 
}
.teal-btn:hover { 
    background-color: #7EB6B5; 
    color: #000; 
    transform: translateY(-2px);
}

.gold-btn { 
    background-color: #CECE00; 
    color: #000; 
}
.gold-btn:hover { 
    background-color: #E6E600; 
    transform: translateY(-2px);
}

.grey-btn { 
    background-color: #333; 
    color: #ccc; 
}
.grey-btn:hover { 
    background-color: #555; 
    color: #fff; 
    transform: translateY(-2px);
}

/* Mobile Responsiveness for the Image Container */
@media (max-width: 600px) {
    .briefing-image-container {
        max-width: 100% !important;
        padding: 0 10px;
    }
    .download-btn {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
}


header {
    background: #000;
    text-align: center;
    padding: 40px 20px;
    border-bottom: 2px solid var(--gladiator-gold);
}

/* Default styling (Desktop/Tablet) */
.dossier-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    transition: max-width 0.3s ease; /* Optional: smooth resizing */
}

/* Mobile specific styling */
@media (max-width: 480px) {
    .dossier-logo {
        max-width: 250px; 
    }
    header {
        padding: 20px 10px; /* Optional: reduces padding on small screens too */
    }
}