/* Site CSS File */

/* DISABLED legacy nav CSS (kept for reference). If needed later, change .legacy-nav-disabled back to .site-nav etc. */
.legacy-nav-disabled {
/* legacy nav block start */
.site-nav * { box-sizing: border-box; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }

/* Matches the existing patriotic nav background */
.site-nav{
  background:#cc0000;
  position: relative;
  z-index: 1000;
}
/* Shared patriotic background (used site-wide) */
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(204, 0, 0, .22), transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(0, 51, 102, .16), transparent 55%),
    #f4f4f4;
  color: #000;
}

/* Top row */
.nav-root{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  justify-content:center;
  align-items:center;
  padding: 10px 12px;
}

.site-nav a,
.site-nav .nav-btn{
  color:#fff;
  text-decoration:none;
  font: inherit;
  cursor:pointer;
  border: 1px solid rgba(255,255,255,.18);
  background: transparent;
  padding: 10px 12px;
  border-radius: 10px;
  display:inline-flex;
  align-items:center;
  gap: 6px;
  line-height: 1;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav .nav-btn:hover,
.site-nav .nav-btn:focus{
  outline:none;
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.35);
}

.has-sub{ position: relative; }
.caret{ font-size: 12px; opacity: .95; }

/* Dropdown menus */
.sub{
  display:none;
  position:absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background:#fff;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
  padding: 8px;
}

.has-sub.open > .sub{ display:block; }

.sub a,
.sub .nav-btn{
  width: 100%;
  color: #111;
  border: 1px solid transparent;
  justify-content: space-between;
  border-radius: 10px;
  background: transparent;
  padding: 10px 10px;
}

.sub a:hover,
.sub a:focus,
.sub .nav-btn:hover,
.sub .nav-btn:focus{
  background: rgba(204,0,0,.08);
  border-color: rgba(204,0,0,.20);
}

/* Nested dropdown (flies out on desktop) */
.sub-nested{ position: relative; }
.sub-nested > .sub{
  top: 0;
  left: calc(100% + 8px);
}

/* Desktop hover support */
@media (hover:hover) and (pointer:fine){
  .has-sub:hover > .sub{ display:block; }
  .sub-nested:hover > .sub{ display:block; }
}

/* Mobile behavior: keep dropdowns from going off-screen */
@media (max-width: 720px){
  .sub{
    left: 50%;
    transform: translateX(-50%);
    min-width: min(92vw, 340px);
  }
  .sub-nested > .sub{
    left: 0;
    top: calc(100% + 8px);
    transform: none;
    min-width: 100%;
  }
}
}
/* legacy nav block end */

/* =========================
   MAIN SITE NAVIGATION
   ========================= */
   


.site-nav {
  background: var(--accent);
  border-bottom: 3px solid var(--accent2);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav .nav-root {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.site-nav li {
  position: relative;
}

.site-nav a,
.site-nav .nav-btn {
  display: block;
  padding: 10px 14px;
  color: var(--accent2); /* navy blue */
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}

.site-nav a:hover,
.site-nav .nav-btn:hover {
  background: rgba(31,58,95,0.12);
  border-radius: 8px;
}

/* Dropdowns */
.site-nav .sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  z-index: 1000;
}

.site-nav .sub a {
  color: var(--text);
  padding: 10px 14px;
  font-weight: 500;
}

.site-nav .sub a:hover {
  background: rgba(31,58,95,0.08);
}

/* Show dropdown on hover (desktop) */
.site-nav .has-sub:hover > .sub {
  display: block;
}

/* Nested dropdowns */
.site-nav .sub-nested > .sub {
  left: 100%;
  top: 0;
}

/* Carets */
.site-nav .caret {
  margin-left: 6px;
  font-size: 12px;
}

/* Mobile fallback */
@media (max-width: 900px) {
  .site-nav .nav-root {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav .sub {
    position: static;
    box-shadow: none;
    border-radius: 0;
  }
}

/* Home page photo */
.hero-photo{
  max-width: 1100px;
  margin: 18px auto 0;
  padding: 0 18px;
}


.hero-caption{
  margin: 10px 4px 0;
  color: #1a1a1a;
  font-weight: 600;
  font-size: 14px;
}
/* =========================
   Home page two-column intro
   ========================= */

.home-intro{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 18px;
  align-items: start;
}

.home-image img{
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 12px 40px rgba(0,0,0,.10);
}

.home-image{
  text-align: center;
}

.home-text h2,
.home-text h3{
  color: var(--accent2);
  margin-top: 0;
}

.home-text p{
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

/* Mobile stacking */
@media (max-width: 900px){
  .home-intro{
    grid-template-columns: 1fr;
  }
}
.info-box {
  margin-top: 16px;
  padding: 14px 16px;
  background: #f8f9fb;
  border-left: 4px solid var(--accent2);
  border-radius: 8px;
}

.meeting-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.meeting-group p{
  margin-top: 0;
}


.centered {
  text-align: center;
}
/* ===== Responsive Nav (Desktop + Mobile Hamburger) ===== */

.site-header{
  background:#003366;
  color:#fff;
  padding:18px 12px;
}

.site-brand{
  text-align:center;
  max-width:1100px;
  margin:0 auto;
}

.site-brand h1{
  margin:0;
  font-size:clamp(22px, 4vw, 44px);
  line-height:1.1;
}

.site-brand p{
  margin:10px 0 0;
  font-size:clamp(14px, 2vw, 20px);
  opacity:.95;
}

/* Toggle button (hidden on desktop) */
.nav-toggle{
  display:none;
  margin:14px auto 0;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.10);
  color:#fff;
  font-weight:700;
  cursor:pointer;
}

/* Nav default (desktop) */
.site-nav{
  max-width:1100px;
  margin:14px auto 0;
  display:flex;
  gap:14px;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
}

.nav-link,
.nav-group > summary,
.nav-sublink{
  color:#fff;
  text-decoration:none;
  font-weight:700;
  padding:10px 12px;
  border-radius:10px;
}

.nav-link:hover,
.nav-group > summary:hover,
.nav-sublink:hover{
  background:rgba(255,255,255,.12);
}

/* Desktop: show details dropdown as a menu */
.nav-group{
  position:relative;
}

.nav-group > summary{
  list-style:none;
  cursor:pointer;
}

.nav-group > summary::-webkit-details-marker{ display:none; }

.nav-group[open]{
  background:rgba(255,255,255,.08);
  border-radius:12px;
}

.nav-group .nav-sublink{
  display:block;
  white-space:nowrap;
}

/* Make the dropdown float on desktop */
@media (min-width: 801px){
  .nav-group{
    padding:0;
  }
  .nav-group[open]{
    background:transparent;
  }
  .nav-group[open] > summary{
    background:rgba(255,255,255,.12);
  }
  .nav-group[open] .nav-sublink{
    background:#ffffff;
    color:#111;
    border-radius:10px;
    margin:6px 0;
    font-weight:600;
  }
  .nav-group[open]{
    position:relative;
  }
  .nav-group[open] .nav-sublink:hover{
    background:#f2f2f2;
  }
  .nav-group[open]{
    z-index:10;
  }
  .nav-group[open]::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    top:44px;
    height:1px;
  }
  .nav-group[open] .nav-sublink{
    min-width:240px;
  }
  .nav-group[open]{
    padding-bottom:6px;
  }
}
/* ===== Dropdown gap bridge (desktop) ===== */
@media (min-width: 801px){
  .nav-group{
    position: relative;
  }

  /* Invisible bridge between summary and dropdown panel */
  .nav-group::before{
    content:"";
    position:absolute;
    left: 0;
    right: 0;
    top: 36px;          /* adjust if needed */
    height: 14px;       /* this is the gap coverage */
    background: transparent;
  }

  /* Make sure the panel sits close enough */
  .nav-panel{
    top: 44px;          /* you already have this working */
  }
}

/* Mobile: hamburger + slide-down menu */
@media (max-width: 800px){
  .nav-toggle{
    display:block;
  }

  .site-nav{
    display:none;            /* hidden until opened */
    flex-direction:column;
    align-items:stretch;
    gap:8px;
    margin-top:12px;
    padding:12px;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.18);
    border-radius:16px;
  }

  body.nav-open .site-nav{
    display:flex;
  }

  .nav-link,
  .nav-group > summary{
    text-align:center;
    background:rgba(255,255,255,.10);
    padding: 14px 12px;
    border-radius: 12px;
  }

  .nav-group{
    background:transparent;
  }

  .nav-group[open] .nav-sublink{
    text-align:center;
    background:rgba(255,255,255,.12);
    margin-top:6px;
    padding: 12px 12px;
  }
  }
  .nav-group { position: relative; }
  .nav-group[open] { padding-bottom: 6px; }

  }

/* Hover + focus states for nav items */
.nav-link:hover,
.nav-group > summary:hover,
.nav-sublink:hover{
  background: rgba(255,255,255,.18);
}

.nav-link:focus-visible,
.nav-group > summary:focus-visible,
.nav-sublink:focus-visible{
  outline: 3px solid rgba(255,255,255,.55);
  outline-offset: 2px;
}

/* Desktop dropdown items are white; give them a strong hover */
@media (min-width: 801px){
  .nav-group[open] .nav-sublink:hover{
    background: #e9eef6;   /* light blue-gray */
  }
}
/* Prevent header from changing height when dropdown opens (desktop) */
@media (min-width: 801px){
  .site-header{
    position: relative;
    overflow: visible;
  }

  .site-nav{
    position: relative;
  }

  /* Turn <details> into a hover dropdown that does not affect layout */
  .nav-group{
    position: relative;
  }

  /* Keep only the summary in the normal flow */
  .nav-group > summary{
    display: inline-block;
  }

  /* Dropdown panel */
  .nav-group .nav-sublink{
    display: none; /* hidden until open */
  }

  .nav-group[open] .nav-sublink{
    display: block;
  }

  /* Float the dropdown so header height stays fixed */
  .nav-group[open]{
    padding-bottom: 0;
  }

  .nav-group[open] .nav-sublink{
    position: relative; /* each item is normal inside the panel */
  }

  /* Create the floating panel */
  .nav-group[open]::part(content){
    /* no-op; browser support varies */
  }

  .nav-group[open]{
    z-index: 50;
  }

  .nav-group[open] .nav-sublink{
    background: #ffffff;
    color: #111;
    border-radius: 10px;
    margin: 6px 0;
    font-weight: 600;
  }

  /* The panel container trick: make the details behave like a floating menu */
  .nav-group[open]{
    position: relative;
  }

  .nav-group[open] .nav-sublink:first-of-type{
    margin-top: 10px;
  }

  /* Float the whole dropdown list */
  .nav-group[open]{
    --drop-top: 46px;
  }

  .nav-group[open] .nav-sublink{
    min-width: 240px;
  }

  /* Key line: take the dropdown out of layout */
  .nav-group[open]{
    display: inline-block;
  }

  .nav-group[open] summary{
    background: rgba(255,255,255,.12);
  }

  .nav-group[open] .nav-sublink{
    /* panel visually drops below summary */
  }

  /* This is what stops layout shift: make the dropdown list absolutely positioned */
  .nav-group[open] a.nav-sublink{
    position: relative;
  }

  .nav-group[open]{
    overflow: visible;
  }

  /* Wrapper panel: use a pseudo-element container */
  .nav-group[open]{
    padding: 0;
  }

  .nav-group[open] > summary + .nav-sublink{
    /* kept for clarity */
  }

  /* The actual fix: make the links sit in an absolutely-positioned panel */
  .nav-group[open]{
    position: relative;
  }
  .nav-group[open] .nav-sublink{
    position: relative;
  }

  .nav-group[open]{
    /* nothing */
  }

  .nav-group[open]{
    /* nothing */
  }

  /* Float the link list as a group */
  .nav-group[open]{
    /* no-op */
  }

  /* Simple and effective: put the dropdown items in an absolute container */
  .nav-group[open] .nav-sublink{
    position: relative;
  }

  /* Use this approach: absolutely position the entire open details content */
  .nav-group[open]{
    position: relative;
  }
  .nav-group[open] .nav-sublink{
    display: block;
  }
  .nav-group[open] .nav-sublink{
    /* keep */
  }
}
@media (min-width: 801px){
  .nav-group{ position: relative; }
  .nav-panel{
    position: absolute;
    top: 48px;
    left: 0;
    display: none;
    padding: 10px;
    border-radius: 14px;
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(6px);
    min-width: 260px;
  }
  .nav-group[open] .nav-panel{ display: block; }

  .nav-panel .nav-sublink{
    display:block;
    background:#fff;
    color:#111;
    border-radius:10px;
    padding:10px 12px;
    margin:6px 0;
    font-weight:600;
    text-decoration:none;
  }
  .nav-panel .nav-sublink:hover{
    background:#e9eef6;
  }
}
   .nav-panel .nav-sublink:hover,
   .nav-panel .nav-sublink:focus-visible{
     background: #cc0000 !important;
     color: #fff !important;
  }
@media (min-width: 801px){
  .nav-panel{
    top: 44px; /* bring panel closer to summary */
  }
}
/* =========================
   GENERIC PAGE LAYOUT
   ========================= */

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 18px 36px;
}

.page-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 18px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
}

.page-card h2,
.page-card h3 {
  margin-top: 0;
  color: var(--accent2);
}

.page-card p {
  font-size: 15px;
  line-height: 1.65;
  margin: 14px 0;
}

/* Centered helper (already used elsewhere) */
.centered {
  text-align: center;
}

/* Footer spacing consistency */
.site-footer {
  max-width: 1100px;
  margin: 24px auto 0;
  padding: 16px 18px 32px;
  text-align: center;
  font-size: 13px;
  color: #555;
}
/* =========================
   CTA BUTTONS (CONTENT AREA)
   White default, red hover
   ========================= */

.page a.cta,
.page-card a.cta,
.home-text a.cta{
  display: inline-block;
  min-width: 280px;
  padding: 14px 18px;
  margin: 8px 0;

  background-color: #ffffff;
  color: #111111;
  border: 2px solid #111111;

  border-radius: 14px;
  font-weight: 800;
  letter-spacing: .2px;
  text-decoration: none;
  text-align: center;

  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  
  transition: background-color .2s ease,
              color .2s ease,
              border-color .2s ease,
              transform .15s ease,
              box-shadow .15s ease;
}

.page a.cta:hover,
.page-card a.cta:hover,
.home-text a.cta:hover,
.page a.cta:focus-visible,
.page-card a.cta:focus-visible,
.home-text a.cta:focus-visible{
  background-color: #cc0000;
  color: #ffffff;
  border-color: #770000;

  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0,0,0,.28);
  outline: none;
}

.page a.cta:active,
.page-card a.cta:active{
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0,0,0,.22);
}
/* =========================
   Simple top nav for subpages
   ========================= */

.simple-nav{
  justify-content: center;
}

/* The Back button */
.simple-nav a.back{
  display: inline-block;
  padding: 12px 18px;
  border-radius: 14px;

  background: #ffffff;
  color: #111111;
  border: 2px solid #111111;

  font-weight: 800;
  text-decoration: none;
  text-align: center;

  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  transition: background-color .2s ease,
              color .2s ease,
              border-color .2s ease,
              transform .15s ease,
              box-shadow .15s ease;
}

/* Hover = Legion red */
.simple-nav a.back:hover,
.simple-nav a.back:focus-visible{
  background: #cc0000;
  color: #ffffff;
  border-color: #770000;

  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0,0,0,.28);
  outline: none;
}

/* Click */
.simple-nav a.back:active{
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0,0,0,.22);
}
/* =========================
   SIMPLE NAV OVERRIDES
   ========================= */

/* Reset nav link styling ONLY for simple nav */
.site-nav.simple-nav a.back{
  background-color: #ffffff !important;
  color: #111111 !important;
  border: 2px solid #111111 !important;

  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;

  display: inline-block;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);

  transition: background-color .2s ease,
              color .2s ease,
              border-color .2s ease,
              transform .15s ease,
              box-shadow .15s ease;
}

/* Hover = Legion red */
.site-nav.simple-nav a.back:hover,
.site-nav.simple-nav a.back:focus-visible{
  background-color: #cc0000 !important;
  color: #ffffff !important;
  border-color: #770000 !important;

  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0,0,0,.28);
  outline: none;
}

/* Click */
.site-nav.simple-nav a.back:active{
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0,0,0,.22);
}
/* =========================
   SIMPLE NAV OVERRIDES
   ========================= */

/* Reset nav link styling ONLY for simple nav */
.site-nav.simple-nav a.back{
  background-color: #ffffff !important;
  color: #111111 !important;
  border: 2px solid #111111 !important;

  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;

  display: inline-block;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);

  transition: background-color .2s ease,
              color .2s ease,
              border-color .2s ease,
              transform .15s ease,
              box-shadow .15s ease;
}

/* Hover = Legion red */
.site-nav.simple-nav a.back:hover,
.site-nav.simple-nav a.back:focus-visible{
  background-color: #cc0000 !important;
  color: #ffffff !important;
  border-color: #770000 !important;

  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0,0,0,.28);
  outline: none;
}

/* Click */
.site-nav.simple-nav a.back:active{
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0,0,0,.22);
}
/* =========================
   TOP BACK BUTTON (FINAL FIX)
   ========================= */

/* Force the simple nav to center content */
.site-nav.simple-nav{
  justify-content: center;
  padding: 12px 0;
}

/* Make Back link look like a real button */
.site-nav.simple-nav a.back{
  display: inline-block !important;

  background-color: #ffffff !important;
  color: #111111 !important;

  border: 2px solid #111111 !important;
  border-radius: 14px;

  padding: 10px 18px;
  font-weight: 800;
  text-decoration: none !important;

  box-shadow: 0 8px 18px rgba(0,0,0,.15);

  transition:
    background-color .2s ease,
    color .2s ease,
    border-color .2s ease,
    transform .15s ease,
    box-shadow .15s ease;
}

/* Hover = Legion red button */
.site-nav.simple-nav a.back:hover,
.site-nav.simple-nav a.back:focus-visible{
  background-color: #cc0000 !important;
  color: #ffffff !important;
  border-color: #770000 !important;

  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0,0,0,.28);

  text-decoration: none;
  outline: none;
}

/* Click */
.site-nav.simple-nav a.back:active{
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0,0,0,.22);
}
/* =========================
   BACK BUTTON (FORCE STYLE)
   Works even if simple-nav class is missing
   ========================= */

.site-header .site-nav a.back{
  display: inline-block !important;
  background: #ffffff !important;
  color: #111111 !important;

  border: 2px solid #111111 !important;
  border-radius: 14px !important;

  padding: 10px 18px !important;
  font-weight: 800 !important;

  text-decoration: none !important;

  box-shadow: 0 8px 18px rgba(0,0,0,.15) !important;

  transition: background-color .2s ease,
              color .2s ease,
              border-color .2s ease,
              transform .15s ease,
              box-shadow .15s ease;
}

.site-header .site-nav a.back:hover,
.site-header .site-nav a.back:focus-visible{
  background: #cc0000 !important;
  color: #ffffff !important;
  border-color: #770000 !important;

  transform: translateY(-1px) !important;
  box-shadow: 0 14px 30px rgba(0,0,0,.28) !important;
  outline: none !important;
}

.site-header .site-nav a.back:active{
  transform: translateY(0) !important;
  box-shadow: 0 6px 14px rgba(0,0,0,.22) !important;
}
/* Calendar page background override */
body.calendar-page {
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(178, 34, 34, .08), transparent 65%),
    radial-gradient(900px 500px at 90% 20%, rgba(31, 58, 95, .08), transparent 65%),
    var(--bg, #f2f4f7);
}
/* Hover and click feedback for calendar day cells */
.cell:hover {
  background: rgba(0, 0, 0, 0.04);
}

.cell.selected {
  background: rgba(0, 0, 0, 0.06);
  outline: 2px solid rgba(0, 0, 0, 0.18);
  outline-offset: -2px;
}

/* If the selected day is also today, keep the "today" feel */
.cell.today.selected {
  background: rgba(31, 58, 95, 0.10);
  outline-color: rgba(31, 58, 95, 0.55);
}
/* ===== GLOBAL SITE BACKGROUND (FINAL OVERRIDE) ===== */
:root{
  --bg: #f2f4f7;
}

html, body{
  min-height: 100%;
}

body{
  margin: 0;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(204, 0, 0, .22), transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(0, 51, 102, .16), transparent 55%),
    var(--bg);
}
/* ===== Dropdown gap bridge (desktop) ===== */
@media (min-width: 801px){
  .nav-group{ position: relative; }

  /* Invisible bridge between summary and dropdown panel */
  .nav-group::before{
    content:"";
    position:absolute;
    left: 0;
    right: 0;
    top: 36px;
    height: 24px;
    background: transparent;
    pointer-events: auto;
  }

  /* Keep panel close */
  .nav-panel{ top: 44px; }
}



