/* 4ey_nav.css
   ────────────────────────────────────────────────────────────────
   PURPOSE
   - Single source for theme variables (colors, breakpoint).
   - Non-conflicting base styles (no responsive/menu layout here).
   - All responsive/menu layout/dividers are injected by 4ey_nav.js to avoid
     the "two sources of truth" problem that caused overrides before.

   EDIT HERE when you want to change:
   - Colors (border vs divider)
   - Link colors, logo sizing, base nav palette
   - Breakpoint value (JS reads --nav-breakpoint from here)
*/

:root {
    /* Heights are actual occupied element sizes */
    --nav-banner-height: 75px;   /* banner box height (logo + padding) */
    --nav-button-height: 28px;   /* toggle button box height */

    --nav-breakpoint: 1060;  /* JS reads this and builds @media rules */

    /* THE TWO MAIN THEME VARIABLES YOU ASKED FOR */
    /* --border-color: #800020;    /* Burgundy *//* menu borders (banner + vertical) */
    /* --divider-color: #800020;   /* Burgundy *//* menu item separators; keep separate on purpose */
	/* --border-color: #B31017;  /* 4EY Dark Red */
	/* --divider-color: #B31017;

    /* other palette */
    /* --nav-bg: #333333;              /* Dark Charcoal */
    --nav-link: #98FF98;	        /* Mint */
    --nav-link-hover: #FF4040;      /* Coral Red */
    --nav-link-current-bg: #FFD700; /* Gold */
	
	
	/* Teal & Cream--"huge mid-century combo...mint links will glow against it, and the gold accent fits naturally." */
	--nav-bg: #2E4A46;         /* Teal */
	--border-color: #E3C799;   /* Cream */
	--divider-color: #E3C799;
	
	/* Warm Gray & Mustard--"muted gray lets the mint and red pop, mustard is very retro but distinct from highlight gold." */
	/* --nav-bg: #3C3B37;       /* Warm Gray */ 
	/* --border-color: #D4A017; /* Mustard */
	/* --divider-color: #D4A017; */
	
	/* Aqua & Mahogany--"mint + gold stand strong." */
	/* --nav-bg: #497C7D;        /* Aqua--"screams 50s kitchen chrome trim." */
	/* --border-color: #5A2E2E;  /* Mahogany--"frames [aqua] nicely w/o gettiong lost." */
	/* --divider-color: #5A2E2E; */
}

/* Base nav “banner shell” styles.
   NOTE: on narrow screens, JS-injected CSS will collapse <nav>
   to prevent double borders behind the slide-out drawer. */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 1000;
    background-color: var(--nav-bg);
    padding: 2px 20px;
    border-radius: 0 0 7px 7px;
    width: fit-content;
    min-width: 220px;

    /* borders intentionally only L/R/B, not top */
    border-left: 5px solid var(--border-color);
    border-right: 5px solid var(--border-color);
    border-bottom: 5px solid var(--border-color);
    border-top: none;
}

/* Base list and items */
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    min-width: 220px;
    flex-wrap: nowrap;
    box-sizing: border-box;
    background-color: var(--nav-bg);
    background-clip: padding-box;
    position: relative;
}

.nav-menu li {
    padding: 10px 15px;
    line-height: 1;
    position: relative;
}

.nav-menu li a {
    color: var(--nav-link);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    vertical-align: middle;
    display: block;
}

.nav-menu li a:hover {
    color: var(--nav-link-hover);
}

/* Current page styling */
.nav-menu li a[aria-current="page"] {
    color: #000000 !important;
    pointer-events: none;
    cursor: default;
    font-weight: bold;
}
.nav-menu li a[aria-current="page"] span.current-page {
    background-color: var(--nav-link-current-bg);
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}

/* Toggle button */
.menu-toggle {
    display: none;
    font-size: 16px;
    background: var(--nav-bg);
    border: 3px solid var(--border-color);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 5px 0 0 5px;
    margin-left: 0;
    position: fixed;
    z-index: 1001;
    top: 5px;
    left: 5px;
    transition: background-color 0.3s;
    color: var(--nav-link);
}
.menu-toggle:hover {
    background-color: #444444;
    color: var(--nav-link-hover);
}

/* Close button */
.menu-close {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 14px;
    background: var(--nav-bg);
    border: 3px solid var(--border-color);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 5px;
    color: var(--nav-link);
    transition: background-color 0.3s, color 0.3s;
    z-index: 1002;
}
.menu-close:hover {
    background-color: #444444;
    color: var(--nav-link-hover);
}

/* Logo sizing */
nav .nav-menu img.logo {
    background-color: #ffffff;
    width: 180px !important;
    max-width: 180px !important;
    min-width: 180px !important;
    height: 57px !important;
    max-height: 57px !important;
}

/* No @media blocks and no divider pseudo-elements here.
   Responsive + divider rules are injected by 4ey_nav.js
   so JS is the single source of truth for menu behavior/layout. */
