/* ==========================================================================
   VARIABLES & GLOBAL CONFIGURATIONS
   ========================================================================== */
:root {
    --black: #0a0a0a;
    --gold: #c5a059;
    --silver: #ffffff;
    --border: rgba(255, 255, 255, 0.2);
    --font-heading: 'Syncopate', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--black);
    color: var(--silver);
    font-family: var(--font-body);
    display: flex; /* Supports sidebar layouts across all pages */
}

/* Global Hyperlink Pseudoclass Color Configurations */
a:link {
    color: var(--gray-link); /* Unclicked links default globally to clean gray code profiles */
}

a:visited {
    color: var(--gold); /* Visited paths drop down cleanly to branded gold */
}

a:hover, a:active {
    color: var(--silver); /* Elevates line element clarity instantly upon hover activation */
}

/* ==========================================================================
   NAVIGATION PANEL COMPONENTS
   ========================================================================== */
.side-nav {
    width: 160px;
    height: 100vh;
    border-right: 1px solid var(--border);
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 0;
    z-index: 100;
    background-color: var(--black);
}

.mini-logo {
    width: 120px;
    height: auto;
    filter: brightness(1.1) drop-shadow(0 0 10px rgba(197, 160, 89, 0.1)); 
    transition: transform 0.4s ease;
}

.mini-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    transform: rotate(-90deg);
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--silver);
    font-size: 0.7rem;
    letter-spacing: 3px;
    font-weight: 700;
    transition: color 0.3s;
}

.nav-links a:hover { 
    color: var(--gold); 
}

.social-tags { 
    font-size: 0.6rem; 
    opacity: 0.5; 
}

/* ==========================================================================
   MAIN COMPONENT TEMPLATES (GLOBAL BASE)
   ========================================================================== */
main {
    margin-left: 160px;
    width: calc(100% - 160px);
}

.hero-split {
    display: flex;
    height: 80vh;
    border-bottom: 1px solid var(--border);
}

.hero-text {
    flex: 1;
    padding: 10% 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.label {
    color: var(--gold);
    font-size: 0.8rem;
    letter-spacing: 5px;
    margin-bottom: 1rem;
    display: block;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1;
    margin-bottom: 2rem;
}

.outline {
    color: transparent;
    -webkit-text-stroke: 1px var(--silver);
}

.cta-arrow {
    margin-top: 2rem;
    text-decoration: none;
    color: var(--gold);
    font-weight: 700;
    border: 1px solid var(--gold);
    padding: 1rem 2rem;
    width: fit-content;
    transition: 0.4s;
}

.cta-arrow:hover {
    background: var(--gold);
    color: var(--black);
}

/* --- Base Image/Logo Section --- */
.hero-image {
    flex: 1;
    background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.featured-logo {
    width: 80%;
    max-width: 400px;
    filter: drop-shadow(0 0 30px rgba(197, 160, 89, 0.2));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* --- Navigation & Strategy Metric Grid Layouts --- */
.grid-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 400px;
}

.grid-item {
    border-right: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    cursor: pointer;
}

.grid-item:hover {
    background: linear-gradient(to top, rgba(89, 197, 197, 0.1), transparent);
}

.overlay {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* ==========================================================================
   DATA ELEMENTS & PREMIUM INTERFACE RENDERS
   ========================================================================== */
.page-header {
    padding: 6rem 5% 3rem 5%;
    border-bottom: 1px solid var(--border);
}

.table-container {
    padding: 0 5%;
}

.j2-data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 4rem 0;
    font-family: var(--font-body);
}

th, td {
    background-color: var(--black);
    color: var(--silver);
    text-align: left;
}

.j2-data-table th {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--gold);
    text-transform: uppercase;
    padding: 1.5rem;
    border-bottom: 2px solid var(--border);
}

.j2-data-table td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    transition: background 0.3s ease;
}

.j2-data-table tr:hover td {
    background: rgba(197, 160, 89, 0.05);
    color: var(--silver);
}

.status-dot {
    height: 8px;
    width: 8px;
    background-color: var(--gold);
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    box-shadow: 0 0 10px var(--gold);
}

/* --- Floating Overlay Cards (Process Page Variants) --- */
.hero-image-pane {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.info-overlay-card {
    background: radial-gradient(circle, #242b35 0%, #1c222a 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    width: 100%;
    max-width: 480px;
    border-radius: 4px;
    overflow: hidden;
    animation: floatingCard 7s ease-in-out infinite;
}

.card-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    text-align: center;
}

.card-header h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: #d4af37;
    margin: 0;
}

.card-table {
    width: 100%;
    border-collapse: collapse;
}

.card-table td {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-body);
    position: relative;
    transition: background 0.3s ease;
}

.card-table tr:last-child td {
    border-bottom: none;
}

.card-table td:hover {
    background: rgba(212, 175, 55, 0.02);
}

.step-num {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    display: block;
    margin-bottom: 0.25rem;
}

.card-table h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
}

.card-table p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin: 0;
    font-weight: 300;
}

@keyframes floatingCard {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(0.5deg); }
}

/* ==========================================================================
   CONSOLE ENTRY PAGE SPECIFIC STYLES (.data-page isolated scope)
   ========================================================================== */
.data-page main {
    background: linear-gradient(180deg, #0a0a0a 0%, #111 100%);
    min-height: 100vh;
}

.data-page .hero-split {
    height: 350px;
}

/* --- Optimized Compact Header Architecture --- */
.data-page .hero-split-compact {
    height: 240px; 
    display: flex;
}

.data-page .hero-split-compact .hero-text {
    flex: 1; 
    padding: 1.5rem 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.data-page .hero-split-compact .hero-text h1 {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    margin-bottom: 0.5rem;
}

.data-page .hero-split-compact .hero-text p {
    font-size: 0.85rem;
    line-height: 1.4;
}

.data-page .hero-split-compact .hero-image-pane {
    flex: 0 0 auto; 
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: var(--black); 
    border-left: 1px solid var(--border);
    height: 100%;
}

.data-page .hero-split-compact .featured-image-placeholder {
    width: auto;
    height: 100%; 
    max-width: 100%;
    aspect-ratio: 1024 / 768; 
    object-fit: contain; 
    border: none;
    filter: grayscale(100%) brightness(0.75);
    transition: filter 0.5s ease;
}

.data-page .hero-split-compact .hero-image-pane:hover .featured-image-placeholder {
    filter: grayscale(20%) brightness(0.9);
}

.data-page .hero-text {
    padding: 3rem 5% 2rem 5%;
    border-right: 1px solid var(--border);
}

.data-page .label {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

/* --- State Inline Pagination (Option 1) --- */
.state-nav-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.state-nav-arrow {
    font-family: var(--font-body);
    font-size: 1.5rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.3s ease, transform 0.3s ease;
    line-height: 1;
}

.state-nav-arrow:hover {
    color: var(--gold);
    transform: scale(1.1);
}

/* --- Entry Interface Layout Blocks --- */
.data-page .entry-container {
    padding: 4rem 5%; 
}

/* Fluid responsive grid calculation template */
.data-page .information-entry-grid {
    display: grid;
    /* Automatically switches layout configurations depending on horizontal container parameters */
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.data-page .entry-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.015);
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.data-page .entry-field-group:focus-within {
    border-color: var(--gold);
    background: rgba(197, 160, 89, 0.02);
}

.data-page .entry-field-group label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--gold);
    text-transform: uppercase;
}

.data-page .entry-field-group input,
.data-page .entry-field-group textarea {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    color: var(--silver);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.9rem;
    width: 100%;
    height: 150px; 
    box-sizing: border-box;
    outline: none;
    resize: none; 
    transition: border-color 0.3s ease;
}

.data-page .entry-field-group input:focus,
.data-page .entry-field-group textarea:focus {
    border-color: rgba(212, 175, 55, 0.4);
}

/* --- State Pagination Footer (Option 2) --- */
.state-pagination-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.pag-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.pag-btn:hover {
    color: var(--gold);
}

.next-btn {
    margin-left: auto; /* Keeps correct placement if a state misses a prev link */
    flex-direction: row;
}

.prev-btn {
    flex-direction: row-reverse; /* Mirrors the layout cleanly */
}

/* ==========================================================================
   UNIFIED RESPONSIVE VIEWP0RTS (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 992px) {
    .data-page .hero-split, 
    .data-page .hero-split-compact {
        flex-direction: column;
        height: auto;
    }
    .data-page .hero-text {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 4rem 5% 2.5rem 5%;
    }
    .data-page .hero-split-compact .hero-text {
        padding: 3rem 5% 2rem 5%;
    }
    .data-page .hero-image-pane {
        width: 100%;
        height: 240px;
        padding: 0;
        justify-content: center; 
    }
}

/* Hard breakout target specifically for narrow mobile screen configurations */
@media (max-width: 480px) {
    .data-page .information-entry-grid {
        grid-template-columns: 1fr; /* Drops track constraints entirely if browser boundary dips below 400px ceiling */
    }
    .data-page .entry-field-group {
        padding: 1.25rem; /* Reduces padding variables to optimize smaller displays */
    }
}

@media (max-width: 900px) {
    .j2-data-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    .side-nav {
        width: 100%;
        height: auto;
        position: relative;
        flex-direction: row;
        padding: 1.5rem 2rem;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .mini-logo {
        width: 80px; 
    }
    .nav-links {
        transform: none;
        flex-direction: row;
    }
    main {
        margin-left: 0;
        width: 100%;
    }
}