 /* ==========================================================================
   OAKDALE WAR MEMORIAL - CORE STYLES & MASTER DESIGN TOKENS (odw-core.css)
   Purpose: Global defaults, canvas reset, structural grid, header, footer, 
            and the SINGLE MASTER CONTROL PANEL for all archive variables.
   File Version: v2.2 (Centralized Token Architecture)
   ========================================================================== */

:root {
    /* --- 1. Core Brand & Theme Colors --- */
    --odw-red:#903;
    --odw-red-hover: #903;
    --odw-node-blue: #4f5e68;

    /* --- 2. Interactive Component & Button Palettes --- */
    --artifact-btn: #616e78;
    --artifact-btn-alt: #98877b;
    --artifact-btn-alt2: #828282;

    /* --- 3. Typography Family Stacks --- */
    --font-serif: Georgia, serif;
    --font-sans: Arial, sans-serif;
    --font-display: "Book Antiqua", Palatino, "Palatino Linotype", "Palatino LT STD", Georgia, serif;

    /* --- 4. Text & Structural Shades --- */
    --text-dark: #222222;
    --text-body: #444444;
    --text-muted: #666666;
    --bg-page: #e6e6e6;
    --bg-panel: #ffffff;
    --bg-note: #f9f9f9;
    --border-light: #d4d4d4;
    --border-dark: #a9a9a9;


    /* --- 5. Centralized Shadow Profiles --- */
    --shadow-subtle: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-lightbox: 0 6px 16px rgba(0, 0, 0, 0.4);

    /* --- 6. Timeline Engine Tokens --- */
    --timeline-bg: #f0f2f5;
    --year-spacer: rgba(255, 255, 255, 0.85);
    --year-text: rgba(79, 94, 104, 0.35);
    --node-color: rgba(231, 231, 231, 0.50);
    --node-color-alt: rgba(211, 211, 211, 0.50);
    --top-node-height: 306px; 
    --node-axis-band: rgba(79, 94, 104, 0.25);
    --node-axis-band-alt: rgba(212, 205, 198, 1.0);
    --node-axis-band-height: 68px; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    color: var(--odw-red);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--odw-red-hover);
    text-decoration: underline;
}

body {
    background-color: var(--bg-page);
    color: var(--text-body);
    font-family: var(--font-sans);
    min-width: 320px;
    -webkit-font-smoothing: antialiased;
}

.copyright {
    background: transparent !important;
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    font-family: Verdana, sans-serif;
    font-size: 12px; 
    text-align: center;
    padding: 10px 0;
    width: 100%;
    border: none; 
}

.copyright a {
    color: #ffffff !important;
}

.copyright a:hover {
    color: #ff0000 !important;
    text-decoration: underline;
}

.flexi-zone {
    flex-direction: row; 
    gap: 30px; 
    margin: 0;
    padding: 0;
    align-items: center; 
}

@media (max-width: 835px) {
    .flexi-zone {
        display: none; 
        flex-direction: column;
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
    }
    .flexi-zone[style*="display: flex"] {
        display: flex !important;
        flex-direction: column !important;
    }
    .flexi-zone .subnav-item {
        border-bottom: 1px solid #777;
    }
}

.footer-nav-inner-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0px;
    width: 100%;
    max-width: 900px;
    margin: auto;
}

@media (max-width: 545px) {
    .footer-nav-inner-flex {
        display: flex; 
        gap: 0 !important; 
        flex-direction: column !important; 
        align-items: center; 
    }
}

#footer-placeholder {
    grid-column: 1; 
    grid-row: 4 !important; 
    width: 100%;
    margin: 0 auto;
    align-self: end;
    display: flex;
    flex-direction: column; 
    align-items: center;
}

.footer-system-item {
    padding: 10px clamp(10px, 4vw, 40px); 
    transition: background-color 0.3s ease;
    text-align: center;
}

@media (max-width: 545px) {
    .footer-system-item {
        border: none !important; 
        border-bottom: 1px solid #444 !important; 
        width: 80%; 
        padding: 12px 15px !important; 
    }
    .footer-system-item:last-child {
        border-bottom: none !important;
    }
}

.footer-system-item a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-family: Verdana, sans-serif; 
    font-size: 13px; 
    transition: color 0.3s ease;
}

.footer-system-item:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.footer-system-item:hover a {
    color: #ff0000 !important;
}

.footer-system-row {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
    display: flex;
    width: 100%;
    margin-top: 0px;
    max-width: 820px;
}

.hamburger-toggle {
    display: none; 
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

@media (max-width: 835px) {
    .hamburger-toggle {
        display: flex !important; 
    }
    .hamburger-toggle span { background-color: #000; transition: all 0.3s ease; }
    .hamburger-toggle.menu-active span { background-color: var(--odw-red); }
    .hamburger-toggle.menu-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger-toggle.menu-active span:nth-child(2) { opacity: 0; }
    .hamburger-toggle.menu-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

.hamburger-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #000;
    transition: all 0.3s ease;
}

#header-socket {
    grid-row: 1; 
    width: 100%;
    margin-bottom: 0px; 
    display: block;
    /* Restores stacking context for injected subnav links */
    position: relative;
    z-index: 50;      
}

hr.basic {
   color: #000;
   background-color: var(--border-light); 
   width: 100%;
   height: 1px;
   border: 0px; 
   clear: both; 
   margin: 10px auto 20px auto;
}

hr.main {
   color: var(--border-light);
   background-color: var(--border-light); 
   width: 80%;
   height: 1px;
   border: 0px; 
   clear: both; 
   margin: 30px auto;
}

hr.main-half {
   color: var(--border-light);
   background-color: var(--border-light); 
   width: 50%;
   height: 1px;
   border: 0px; 
   clear: both; 
   margin: 30px auto;
}

html {
    overflow-y: scroll; 
    scroll-behavior: smooth; /* Makes all jump-links glide beautifully! */
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.main-container { 
    background-color: var(--bg-panel); 
    background-image: url('../images/NEW-poppies-bkgrd_01.jpg');
    background-repeat: no-repeat;
    background-position: center top;
    background-attachment: fixed; 
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    display: grid;
    grid-template-columns: 1fr; 
    grid-template-rows: auto 1fr auto auto; 
    margin: 0px auto;
    max-width: 960px; 
    min-width: 320px;    
    min-height: 100vh; 
    border: 0px solid #ff0000;
}

.mobile-nav-bar {
    display: flex;
    width: 100%;
    justify-content: center;
    position: static; 
}

@media (max-width: 835px) {
    .mobile-nav-bar { 
        display: flex !important; 
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px; 
        position: relative; 
    }
}

.page-core {
    grid-column: 1; 
    grid-row: 2; 
    width: 100%;
    max-width: 820px;
    margin: 0px auto;
    padding-left: clamp(16px, 4vw, 30px);
    padding-right: clamp(16px, 4vw, 30px);
    display: block;
    background-color: var(--bg-panel) !important; 
    box-shadow: 
    -16px 0 8px -12px rgba(0, 0, 0, 0.3),  
     16px 0 8px -12px rgba(0, 0, 0, 0.3);  
    box-sizing: border-box;
    overflow: visible;
    min-height: 50vh;  
    border: 0px solid #ff0000;
}

.profile-core-flush {
    padding-left: 0;
    padding-right: 0;
}

/* Forces the roster bridge container into Tier 3 */
.roster-photo-bridge {
    grid-column: 1; 
    grid-row: 3 !important;
    width: 100%;
    max-width: 820px;       
    margin: 0px auto;       
    padding: 0;
    display: block;
    overflow: hidden;       
    aspect-ratio: 820 / 220; 
    background-image: url('/oakdalewarmemorial/images/footer_image-ww1.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.roster-photo-bridge-2 {
    grid-column: 1; 
    grid-row: 3 !important;
    width: 100%;
    max-width: 820px;       
    margin: 0px auto;       
    padding: 0;
    display: block;
    overflow: hidden;       
    aspect-ratio: 820 / 220; 
    background-image: url('/oakdalewarmemorial/images/footer_image-ww2.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.subhead-core {
    width: 100%;
    max-width: 820px;
    margin: 0px auto;
    padding-top: clamp(16px, 4vw, 30px);
    padding-bottom: clamp(16px, 4vw, 30px);
    display: block;
    background-color: rgba(0, 0, 0, 0.65);
}

.subhead-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(32px, 7vw, 62px); 
    color: #ededed;
    text-align: center;
    letter-spacing: -1px;
    line-height: 1.2em;
}

.subhead-title a {
    color: #ededed;
    text-decoration: none;
}

.subhead-title a:hover {
    color: #fff;                        
    text-decoration: underline dashed 2px;
    text-underline-offset: 6px;
}

@media (max-width: 835px) {
    .subhead-title .subhead-core {
        margin-top: 0px; 
    }
}

.subhead-zone {
    background: transparent !important;
    position: relative; 
}

.subnav-item {
    width: auto;
    border: none; 
}

@media (max-width: 835px) {
    .subnav-item {
        width: 100%;
        border-bottom: 1px solid #777; 
        margin: 0 !important;
        padding: 0 !important;
    }
}

.subnav-item a {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px; 
    color: #000;
    text-decoration: none;
}

.subnav-item a:hover {
    color: var(--odw-red-hover);                        
    text-decoration: underline dashed 1px;
    text-underline-offset: 4px;
}

@media (max-width: 835px) {
    .subnav-item a {
        display: block;
        padding: 20px !important; 
        color: #ffffff !important;
        font-family: Verdana, sans-serif;
        font-size: 15px !important;
        text-decoration: none !important;
        text-align: left;
    }
    .subnav-item a:hover { 
        color: #ff0000 !important; 
        background-color: rgba(0, 0, 0, 0.9); 
    }
}

.subnav-menu {
    display: flex;
    flex-direction: row; 
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    position: static; 
    width: auto;
    background-color: transparent; 
    border: none;
}

@media (max-width: 835px) {
    .subnav-menu {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%; 
        left: 0;
        width: 200px; 
        background-color: rgba(0, 0, 0, 0.75); 
        border-right: 1px solid #444444;
        border-bottom: 1px solid #444444;
        z-index: 9999;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important; 
    }
    .subnav-menu.menu-active {
        display: flex !important;
    }
}
