/* =========================================================
   1. CORE THEME & VARIABLES
   ========================================================= */
   :root {
    --bg-dark: #1a1c1a;      
    --accent-gold: #FFD700;
    --parchment: #fdfbd3;
    --border-stone: #4a5568;
    --map-navy: #242f3e;
    --text-main: #2d3748;
  }
  
  html, body {
    margin: 0; padding: 0; height: 100%; width: 100%;
    font-family: "Georgia", serif;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    overflow: hidden; 
  }
  
  /* =========================================================
     2. THE SKELETON (Header - Main - Footer)
     ========================================================= */
/* =========================================================
   HEADER: Balanced Desktop Layout
   ========================================================= */
   header {
    flex: 0 0 auto;
    height: 75px;
    padding: 0 30px;
    background: var(--bg-dark);
    border-bottom: 2px solid var(--accent-gold);
    display: grid; /* Using Grid for perfect centering */
    grid-template-columns: 1fr auto 1fr; /* Left, Center, Right */
    align-items: center;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  }
  
  /* 1. Left Column (Empty to push title to center) */
  header::before { content: ""; }
  
  /* 2. Center Column (Title) */
  .header-title {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    font-size: 18px;
    color: var(--parchment);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  }
  
  .header-title span {
    display: block;
    font-size: 11px;
    opacity: 0.8;
    letter-spacing: 1px;
  }
  
  /* 3. Right Column (Navigation) */
  .header-nav {
    display: flex;
    justify-content: flex-end; /* Align buttons to the right */
    gap: 12px;
  }
  
  /* The Gilded Button Style (Applying to the links) */
  .header-nav a {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold) !important; /* Forces the gold, kills the blue link color */
    padding: 8px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .header-nav a:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
  }
  
  .header-nav a:active {
    transform: scale(0.95);
    background: var(--accent-gold);
    color: var(--bg-dark) !important;
  }
  
  /* Hide Hamburger on Desktop */
  .hamburger { display: none; }
  
  /* =========================================================
     MOBILE RESPONSIVE
     ========================================================= */
  @media (max-width: 800px) {
    header {
      display: flex; /* Switch back to flex for mobile simplicity */
      justify-content: space-between;
      height: 60px;
      padding: 0 15px;
    }
    
    header::before { display: none; } /* Remove the centering placeholder */
    
    .header-nav {
      display: none; /* JS will toggle 'active' to show this as a dropdown */
      flex-direction: column;
      position: absolute;
      top: 60px;
      right: 0;
      background: var(--bg-dark);
      border: 1px solid var(--accent-gold);
      padding: 20px;
    }
    
    .header-nav.active { display: flex; }
    .hamburger { display: block; }
  }
  
/* =========================================================
   REFINED SKELETON: Layout Only
   ========================================================= */
   main {
    flex: 1 1 auto;
    overflow-y: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    /* Personality (colors/dots) removed from here */
  }
  
  /* =========================================================
   FOOTER: Standardized (Menu, Contributor, Privacy)
   ========================================================= */
footer {
  flex: 0 0 auto;
  display: flex; 
  flex-direction: column; 
  background: var(--map-navy);
  border-top: 2px solid var(--border-stone);
}

/* Top Section: Prominent Socials & Navigation */
.footer-row-main {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 15px;
  gap: 20px;
}

/* Styling the "Back to Map" and Socials to match Gilded Buttons */
.footer-row-main a {
  background: rgba(255, 215, 0, 0.05);
  border: 1.5px solid var(--accent-gold);
  color: var(--parchment);
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-row-main a:hover {
  background: rgba(255, 215, 0, 0.15);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
  transform: translateY(-1px);
}

.footer-row-main a:active {
  transform: scale(0.95);
  background: var(--accent-gold);
  color: #000;
}

/* Bottom Ribbon: Subtle Legal & Privacy */
.footer-ribbon-sub {
  width: 100%;
  border-top: 1px solid rgba(74, 85, 104, 0.3);
  padding: 6px 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  background: rgba(0, 0, 0, 0.4);
}

.footer-ribbon-sub a, 
.footer-copy {
  color: var(--accent-gold) !important;
  text-decoration: none;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.6;
}

.footer-ribbon-sub a:hover {
  opacity: 1;
  text-decoration: underline;
}