/* ============================================
   1. GLOBAL RESET & BODY
============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  padding: 70px 0 0 0; /* pushes content below fixed top-header */
  min-height: 100vh;
  color: #222;
  background: none; /* allows seasonal backgrounds */
}

body.has-global-nav {
  padding-top: 70px;
}


/* ============================================
   2. GLOBAL NAVIGATION (FINAL BLUE VERSION)
============================================ */

.u209-global-nav {
  width: 100%;
  background: #003366;
  border-bottom: 3px solid #00264d;
  padding: 10px 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  position: relative;
  z-index: 5000;
}

.u209-global-nav .u209-logo {
  height: 55px;
  width: auto;
  flex-shrink: 0;
}

.u209-global-nav .u209-nav-item {
  background: #0055aa;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: background 0.2s ease;
}

.u209-global-nav .u209-nav-item:hover {
  background: #003f7f;
}


/* ============================================
   3. TOP NAV (PAGE HEADER NAV)
============================================ */

.top-nav {
  display: flex;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 500;
}

.top-nav-item {
  color: #004a7f;
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
}

.top-nav-item:hover {
  background: #e6f2fa;
}

.top-nav-item.active {
  background: #004a7f;
  color: #ffffff;
}


/* ============================================
   4. CONTENT ROW (LEFT NAV + MAIN)
============================================ */

.content-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}


/* ============================================
   5. LEFT NAVIGATION (UNIT 209 STANDARD)
============================================ */

.left-nav {
  width: 240px;
  background: #ffffffcc;
  padding: 20px;
  border-right: 1px solid #ddd;
  border-radius: 8px;
}

.left-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.left-nav-item {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #004a7f;
  text-decoration: none;
}

.left-nav-item:hover {
  background: #e6f2fa;
}

.left-nav-item.active {
  background: #004a7f;
  color: #ffffff;
}


/* ============================================
   6. PANELS (GLOBAL)
============================================ */

.panel {
  background-color: rgba(255,255,255,0.58);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 3px 12px rgba(0,0,0,0.10);
}


/* ============================================
   7. SPOTLIGHT
============================================ */

#spotlight-content img {
  width: 100%;
  max-width: 220px;
  border-radius: 10px;
  margin-bottom: 0.75rem;
}

.spotlight-name {
  font-weight: 700;
  font-size: 1.25rem;
}

.spotlight-caption {
  color: #333;
  line-height: 1.45;
}


/* ============================================
   8. LOGOS
============================================ */

  height: clamp(60px, 12vw, 140px);
  width: auto;
  display: block;
  margin: 0 auto 1rem;
}

.counties-map {
  height: clamp(70px, 14vw, 160px);
  width: auto;
}


/* ============================================
   9. CALENDAR FRAME
============================================ */

#calendar-frame {
  width: 100%;
  min-height: 900px;
}


/* ============================================
   10. LEGACY CARD (DEPRECATED)
============================================ */

.card {
  flex-grow: 1;
  padding: 1rem;
  background: rgba(255,255,255,0.35);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}


/* ============================================
   11. TOOL PAGE LAYOUT
============================================ */

.center-wrapper {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.tool-card,
.points-card {
  max-width: 480px;
  width: 100%;
  padding: 30px 28px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  text-align: center;
}

.input-text {
  width: 70%;
  max-width: 260px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  text-align: center;
}

.btn-primary {
  background: #005bbb;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-primary:hover {
  background: #004999;
}


/* ============================================
   12. GAMES TABLE
============================================ */

#gamesTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: transparent !important;
}

#gamesTable thead th {
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 10px;
  text-align: left;
}

#gamesTable tbody td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(0,0,0,0.15);
}

#gamesTable tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.22);
}


/* ============================================
   13. MEMORIALS (CLEAN CONSOLIDATED VERSION)
============================================ */

/* Memorial card styling */
.memorial-entry {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  text-align: center;
}

.memorial-photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 0.75rem;
}

.memorial-text h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.25rem;
}

.memorial-years {
  font-style: italic;
  color: #555;
}

/* Unified grid for both recent and older memorials */
#memorials-recent,
#memorials-older {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
  width: 100%;
}

/* Ensure memorial cards shrink properly inside grid */
#memorials-recent .memorial-entry,
#memorials-older .memorial-entry {
  width: 100%;
  display: block;
}

/* Responsive behavior */
@media (max-width: 900px) {
  #memorials-recent,
  #memorials-older {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  #memorials-recent,
  #memorials-older {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   14. PHOTO GRID
============================================ */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.photo-grid img {
  width: 100%;
  border-radius: 4px;
}


/* ============================================
   15. BUTTONS
============================================ */

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}

.btn-primary {
  background: #0077cc;
  color: white;
}

.btn-secondary {
  background: #eee;
  color: #333;
}


/* ============================================
   16. FOOTER
============================================ */

.site-footer {
  background: #333;
  color: white;
  padding: 30px 20px;
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.footer-col {
  max-width: 300px;
}
.visit-counter {
  font-size: 0.85rem;
  color: #ddd;
  text-align: center;
  margin-top: 10px;
  opacity: 0.85;
}
.pop-hero {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--accent-light);
  border-radius: 10px;
  margin-bottom: 2rem;
}

.pop-title {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.pop-tagline {
  font-size: 1.25rem;
  opacity: 0.85;
}

.pop-section {
  margin: 2rem 0;
}

.pop-header {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  border-left: 6px solid var(--accent);
  padding-left: 0.75rem;
}

.pop-header.accent {
  color: var(--accent);
}

.pop-lead {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.pop-callout,
.pop-highlight {
  background: var(--accent-light);
  padding: 1rem;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  margin: 1.5rem 0;
}

.pop-highlight.soft {
  background: var(--soft-bg);
}

.pop-two-col {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.pop-list {
  margin: 0;
  padding-left: 1.2rem;
}

.pop-schedule {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.pop-schedule-card {
  flex: 1;
  min-width: 220px;
  background: var(--soft-bg);
  padding: 1rem;
  border-radius: 6px;
  border-left: 4px solid var(--accent);
}

.pop-cta {
  background: var(--accent);
  color: white;
  padding: 1.5rem;
  text-align: center;
  font-size: 1.4rem;
  border-radius: 8px;
  margin-top: 1.5rem;
}
.soft-note {
  opacity: 0.75;
  font-size: 0.95rem;
}

.older-memorials-toggle {
  text-align: center;
  margin: 2rem 0;
}

.btn-primary {
  background: var(--accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-dark);
}
#memorials-recent,
#memorials-older {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
