/* ==========================================================================
   VARIABLES & GLOBAL CONFIGURATIONS
   ========================================================================== */
:root {
    --black: #0a0a0a;
    --gold: #c5a059;
    --silver: #ffffff;
    --gray-link: #a0a0a0;
    --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;
    flex-direction: column;
    min-height: 100vh;
}

/* Global Hyperlink Configuration */
a:link {
    color: var(--gray-link);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

a:hover, a:active {
    color: var(--silver);
}

/* ==========================================================================
   UNIFIED TOP HEADER INDUSTRIAL NAVIGATION BAR
   ========================================================================== */
.global-site-header {
    width: 100%;
    height: 70px;
    border-bottom: 1px solid var(--border);
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    position: sticky;
    top: 0;
    z-index: 100;
}

.global-header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

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

.global-header-brand {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--silver);
    white-space: nowrap;
}

.global-header-brand span {
    color: var(--gold);
}

/* Top Horizontal Navigation Links */
.top-nav-links {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.top-nav-links a {
    font-size: 0.7rem;
    letter-spacing: 3px;
    font-weight: 700;
    color: var(--silver);
    position: relative;
    transition: color 0.3s ease;
}

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

/* Optional subtle active indicator underline */
.top-nav-links a.active-link {
    color: var(--gold);
}

/* ==========================================================================
   MAIN VIEWPORT BASE
   ========================================================================== */
main {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* ==========================================================================
   UNIFIED UNIFORM HERO SYSTEM (ADAPTIVE FLEX MODEL)
   ========================================================================== */
.page-hero {
    display: flex;
    width: 100%;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #0a0a0a 0%, #111111 100%);
    min-height: 280px;
}

.page-hero-text {
    flex: 1 1 50%;
    padding: 4rem 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;
    text-transform: uppercase;
}

.page-hero-text h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

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

.page-hero-text p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 650px;
}

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

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

/* Responsive Image Container Side-Pane */
.page-hero-media {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    border-left: 1px solid var(--border);
    padding: 2rem;
    overflow: hidden;
}

.featured-image-placeholder, .featured-logo {
    width: 100%;
    max-width: 360px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(197, 160, 89, 0.15));
}

.featured-logo {
    animation: float 6s ease-in-out infinite;
}

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

/* ==========================================================================
   MINIMAL UTILITY NAVIGATION METRIC WORKSPACES (GRID OVERHAUL)
   ========================================================================== */
.grid-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    min-height: 300px;
}

.clean-grid {
    gap: 1.5rem; /* Replaces rigid structural dividers with fluid canvas space */
    padding: 3rem 4%;
}

.clean-grid-item {
    border: 1px solid rgba(255, 255, 255, 0.05) !important; /* Muted borders bounding elements */
    background: rgba(255, 255, 255, 0.01);
    border-radius: 4px;
    align-items: flex-start !important; /* Forces the control tags to the absolute top bounds */
    padding: 2rem !important;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    transition: background 0.3s ease, border-color 0.3s ease;
}

.clean-grid-item:hover {
    background: rgba(197, 160, 89, 0.03);
    border-color: var(--gold) !important;
}

.widget-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-body);
    line-height: 1.5;
    margin-top: auto; /* Locks text blocks firmly down to the lower margins */
}

/* ==========================================================================
   OPERATIONAL INTEGRITY LANDING FOOTER HOOKS
   ========================================================================== */
.system-footer {
    margin-top: auto;
    padding: 2rem 4%;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.65rem;
    font-family: var(--font-body);
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.3);
}

.footer-pulse {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
}

.footer-pulse::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--gold);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--gold);
}

/* ==========================================================================
   DATA ELEMENTS & TABULAR STORAGE INTERFACES
   ========================================================================== */
.table-container {
    padding: 2rem 5%;
    width: 100%;
    overflow-x: auto; 
}

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

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

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

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

/* ==========================================================================
   CONSOLE WORKSPACE LAYOUT PANELS
   ========================================================================== */
.entry-container {
    padding: 4rem 5%;
}

.information-entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.entry-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.entry-card h3 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.entry-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* --- State Interlinked Nav Pagination Footer --- */
.state-nav-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.state-nav-arrow {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1;
}

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

.state-pagination-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    gap: 1rem;
}

.pag-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
}

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

/* ==========================================================================
   DOCUMENT VIEW ARCHITECTURE STRUCTURING
   ========================================================================== */
.document-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 4rem;
    align-items: start;
}

.document-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
}

.document-body p {
    margin-bottom: 2rem;
}

.document-body h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: var(--gold);
    margin: 3.5rem 0 1.5rem 0;
    text-transform: uppercase;
}

.document-body h2:first-of-type {
    margin-top: 0;
}

.process-callout {
    border-left: 2px solid var(--gold);
    background: rgba(197, 160, 89, 0.03);
    padding: 2.5rem;
    margin: 3rem 0;
    font-style: italic;
    color: var(--silver);
}

.meta-panel {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border);
    padding: 2rem;
    position: sticky;
    top: 2rem;
}

.meta-panel h3 {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
}

.meta-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.meta-list li {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-list strong {
    color: var(--silver);
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 1px;
}

/* ==========================================================================
   REPOSITORY FILE TRACKING BLOCKS
   ========================================================================== */
.repo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.repo-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.repo-card:hover {
    border-color: var(--gold);
    background: rgba(197, 160, 89, 0.02);
}

.repo-card-content h3 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.repo-card-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.meta-tag {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.5rem;
    display: block;
}

/* ==========================================================================
   CONTACT LOGISTICS AND COMPONENT NODES
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.info-block h3 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.info-block p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.info-block a:link, .info-block a:visited {
    color: var(--silver);
    text-decoration: none;
    border-bottom: 1px dashed var(--border);
    padding-bottom: 2px;
    transition: color 0.3s;
}

.info-block a:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.interactive-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.form-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.interactive-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.interactive-field label {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

.interactive-field input,
.interactive-field select,
.interactive-field textarea {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border);
    color: var(--silver);
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 1rem;
    width: 100%;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.3s, background 0.3s;
}

.interactive-field input:focus,
.interactive-field select:focus,
.interactive-field textarea:focus {
    border-color: var(--gold);
    background: rgba(197, 160, 89, 0.02);
}

.interactive-field select option {
    background-color: var(--black);
    color: var(--silver);
}

.interactive-field textarea {
    height: 160px;
    resize: none;
}

.submit-btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 1.25rem 2.5rem;
    width: fit-content;
    cursor: pointer;
    transition: 0.4s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: var(--gold);
    color: var(--black);
}

/* ==========================================================================
   UNIFIED RESPONSIVE SYSTEM (MEDIA BREAKPOINTS)
   ========================================================================== */
@media (max-width: 1200px) {
    .document-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .meta-panel {
        position: relative;
        top: 0;
    }
}

@media (max-width: 992px) {
    .page-hero {
        flex-direction: column;
        min-height: auto;
    }
    .page-hero-media {
        flex: 1 1 100%;
        border-left: none;
        border-top: 1px solid var(--border);
        padding: 4rem 5%;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .info-sidebar {
        order: 2; 
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        display: grid;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .global-site-header {
        height: auto;
        flex-direction: column;
        padding: 1.5rem 5%;
        gap: 1.2rem;
        position: relative;
    }
    .global-header-left {
        width: 100%;
        justify-content: center;
    }
    .top-nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.2rem;
    }
    .clean-grid {
        grid-template-columns: 1fr;
    }
    .j2-data-table th, 
    .j2-data-table td {
        padding: 0.8rem;
        font-size: 0.8rem;
    }
    .system-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .page-hero-text {
        padding: 3rem 1.5rem;
    }
    .page-hero-text h1 {
        font-size: 1.6rem;
    }
    .form-row-split {
        grid-template-columns: 1fr;
    }
    .info-sidebar {
        grid-template-columns: 1fr;
    }
    .submit-btn {
        width: 100%;
        text-align: center;
    }
}