/* ==========================================================================
   VARIABLES – Forest green + gold theme
   ========================================================================== */
:root {
  --primary-deep:    #2f513f;     /* Slightly warmer/deeper green for headers/nav */
  --primary:         #3a684c;     /* Main brand green – softer than original */
  --primary-muted:   #4a785c;     /* Hover states, borders */
  --primary-soft:    #5e8f74;     /* Accents, links */
  --primary-accent:  #6fa085;     /* Brighter touch for buttons/CTAs */

  --accent-gold:     #b8975a;     /* Warmer, antique gold – less orange, more brass */
  --accent-gold-deep:#8c6f3e;     /* Deeper variant for shadows/gradients */

  --bg-page:         #fdfcf7;     /* Very light cream – almost parchment */
  --bg-surface:      #ffffff;     /* Pure white cards/tables for readability */
  --bg-muted:        #f8f5ee;     /* Subtle off-white sections */
  --bg-stripes:	     #d1cbbe;	  /* Darker subtle for table stipes */

  --text-main:       #1e2e22;     /* Darker charcoal-green for better contrast */
  --text-inverse:    #f9f6ef;     /* Off-white for dark backgrounds */
  --text-muted:      #4a4a4a;     /* Softer gray for secondary text */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-size:	    clamp(16px, 2.5vw + 0.5rem, 18px);

  --btn-primary:     #4a5d6e; /* e07a5f; /* #e06c4f; */
  --btn-primary-soft:#344657; /* d96a4c; /* #d1562a; */
 
}

/* ==========================================================================
   GLOBAL RESETS & TYPOGRAPHY
   ========================================================================== */

/*
div {
	outline: 1px solid #cc0000;
}
*/

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  color: var(--text-main);
}

p {
  text-indent: 0;
  margin: 0 0 1.5em 0;      /* space between paragraphs */
}

section {
	display: block;
}

/* ==========================================================================
   HEADERS – Landing (big) & Sub-pages (compact)
   ========================================================================== */

.landing-header {
  background: var(--primary-deep);
  color: var(--text-inverse);
  padding: 4rem 1rem 3rem;
  text-align: center;
}

.landing-header h1 {
  font-size: 3.5rem;
  margin: 0 0 1rem;
}

.landing-header p {
  font-size: 1.4rem;
  margin: 0 0 1.5rem;
}

.sub-header {
  background: var(--primary-deep);
  color: var(--text-inverse);
  padding: 0.75rem 0;
  border-bottom: 4px solid var(--accent-gold);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-brand h1 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.2;
}

.site-brand a {
  color: var(--text-inverse);
  text-decoration: none;
  font-weight: 600;
}

.site-brand a:hover {
  color: var(--accent-gold);
}

/* ==========================================================================
   PRIMARY NAVIGATION – Hover-only dropdowns
   ========================================================================== */
.primary-nav {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-main);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-main);
}

.nav-item {
  position: relative;
}

.nav-link,
.dropdown-toggle {
  display: block;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
  min-width: 120px;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.6;
}

.nav-link:hover,
.dropdown-toggle:hover,
.nav-link:focus,
.dropdown-toggle:focus {
  background: var(--accent-gold);
  color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}

/* Dropdown container – add invisible bridge */
.dropdown {
  position: relative;
}

/* Invisible bridge to prevent hover loss */
.dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 6px;                     /* adjust if needed – 4–8px is usually enough */
  z-index: 999;                    /* above other content but below menu */
}

/* Dropdown menu – hidden by default */
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #3c5a45;
  min-width: 240px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
  border-radius: 6px;
 /*  margin-top: 4px; */
  padding: 0.5rem 0;
  z-index: 1000;
}

/* Show on hover (pure CSS) */
.dropdown:hover > .dropdown-menu {
  display: block;
}

/* Dropdown items */
.dropdown-menu li a,
.submenu-label {
  display: block;
  padding: 0.6rem 1.2rem;
  color: white;
  text-decoration: none;
}

.dropdown-menu li a:hover {
  background: var(--accent-gold);
  color: white;
}

/* Sub-submenu (e.g. Vital Records children) */
.submenu-list {
  padding-left: 1rem;
  margin: 0.3rem 0;
}

.submenu-label {
  font-weight: bold;
  padding: 0.6rem 1.2rem;
  background: rgba(0,0,0,0.1);
  display: block;
  color: white;
  cursor: default;
}

/* Hamburger button – only appears on small screens */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  margin: 0 auto 1rem;
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */
.content-wrapper {
  background: var(--bg-page);
  min-height: calc(100vh - 200px);
}

.container {
	width: 90%;  
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.page-title {
	text-align: center;
	color: #2c3e50;
	margin-bottom: 30px;
}


/* ==========================================================================
   MOBILE RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .site-brand {
    margin-bottom: 0.75rem;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link,
  .dropdown-toggle {
    text-align: left;
    min-width: auto;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: transparent;
    padding-left: 1rem;
    margin-top: 0;
  }

  /* On mobile, hover doesn't work – tapping follows link if present */
  .dropdown:hover > .dropdown-menu {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */




/* ==========================================================================
   SUB-PAGE HEADER – Compact version with brand left + nav right
   ========================================================================== */
.sub-header {
	position: sticky; /* THESE LINES KEEP NAVIGATION */
        position: -webkit-sticky; /* AT TOP OD PAGE */
        top: 0; /*  DITTO */
        z-index: 1000; /* DITTO */
  background: var(--primary-deep);
  color: var(--text-inverse);
  padding: 0.75rem 0;                    /* small vertical padding – about half landing height */
  border-bottom: 5px solid var(--accent-gold); /* gold accent line for polish */
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-brand {
  flex: 0 0 auto;
}

.site-brand h1 {
  margin: 0;
  font-size: 1.6rem;                     /* smaller than landing page's 3.5rem */
  line-height: 1.2;
}

.site-brand a {
  color: var(--text-inverse);
  text-decoration: none;
  font-weight: 600;
}

.site-brand a:hover,
.site-brand a:focus {
  color: var(--accent-gold);
}

/* Make sure nav aligns right */
.primary-nav {
  flex: 1 1 auto;
  text-align: right;
}

/* Mobile – stack brand above nav */
@media (max-width: 900px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .site-brand {
    margin-bottom: 0.75rem;
    width: 100%;
  }

  .primary-nav {
    width: 100%;
    text-align: left;
  }

  .nav-list {
    justify-content: flex-start;
  }
}

/* ==========================================================================
 * BIRTH REGISTRY TABLE HEADER
 * ========================================================================== */

.birth-table-header {
	text-align: center;
}

/* =========================================================================
 * MARRIAGE SECTIONS
 * ========================================================================= */

.alphabet-jump-bride a {
  margin: 0 0.5rem;
  color: #d46a6a; /* var(--accent-gold); */
  text-decoration: none;
}

.alphabet-jump-bride a:hover {
  color: var(--text-inverse);
  background: #d46a6a; /* var(--accent-gold); */
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.alphabet-jump-groom a {
  margin: 0 0.5rem;
  color: #4a6e9c; /*var(--accent-gold); */
  text-decoration: none;
}

.alphabet-jump-groom a:hover {
  color: var(--text-inverse);
  background: #4a6e9c; /*var(--accent-gold);*/
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
/* ==========================================================================
   CSS FOR CEMETERY MAIN PAGE 02.11.2026
   ========================================================================== */

.letter-section {
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--bg-muted);
  border-radius: 6px;
  border: 1px solid var(--primary-muted);
}

.letter-section h3 {
  margin: 0 0 1rem;
  color: var(--primary-deep);
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 0.5rem;
}

.alphabet-jump a {
  margin: 0 0.5rem;
  color: var(--accent-gold);
  text-decoration: none;
}

.alphabet-jump a:hover {
  color: var(--text-inverse);
  background: var(--accent-gold);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

#cemetery-search {
  border: 1px solid var(--primary-muted);
  border-radius: 6px;
}

/* ===============================================================
 * CEMETERY BURIAL TABLE - 02.12.2026
 * =============================================================== */

.burial-table,
.postoffice-table,
.church-table,
.school-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.burial-table th,
.burial-table td {
  padding: 0.75rem;
  text-align: left;
  border: 1px solid #ddd;
}

.burial-table th {
  background: var(--primary-muted);
  color: white;
  font-weight: 600;
}

.burial-table tr:nth-child(even) {
  background: #f8f9fa;
}

.burial-table tr:hover {
  background: #f1f3f5;
}

.burial-table img {
  border-radius: 4px;
  transition: transform 0.2s;
}

.burial-table img:hover {
  transform: scale(1.1);
}

table.burial-table > thead > tr:first-child > th:first-child,
table.burial-table > thead > tr:first-child > td:first-child {
  border-top-left-radius: 6px;
}

table.burial-table > thead > tr:first-child > th:last-child,
table.burial-table > thead > tr:first-child > td:last-child {
  border-top-right-radius: 6px;
}

.table-responsive {
  overflow-x: auto; /* scroll horizontally on small screens */
}

.cemetery-notes,
.location-notes,
.birth-notes,
.death-notes,
.post-office-notes,
.clerk-notes,
.general-notes {
  background: #f8f9fa;               /* Keeps the soft, neutral panel feel */
  padding: 1.2rem 1.5rem;            /* A bit more breathing room inside */
  border-radius: 6px;                /* Soft corners – modern but not too pill-like */
  margin: 1.5rem 0;                  /* Vertical spacing; symmetric top/bottom */
  margin-bottom: 30px;
  font-size: 1rem;                   /* Bump from 0.95rem → easier for older eyes */
  line-height: 1.55;
  color: #333;                       /* Dark enough text on light bg */
  
  /* Core border options – pick one or combine */
  border: 1px solid #d0d0d0;         /* Option A: Full subtle gray border (clean, understated) */
  /* OR */
  /* border: 1px solid rgba(0,0,0,0.12); */  /* Even softer, modern "card" look */
  
  /* Keep/enhance the accent side for hierarchy */
  border-left: 5px solid var(--accent-gold);  /* Slightly thicker for emphasis */
  /* Optional: Add a faint shadow for depth without overdoing it */
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

/* ========================================================
 * Cemetery Maps - 02.12.2026
 * ======================================================== */

.maps-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.map-item {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.map-item h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

.map-item p {
  margin-bottom: 1rem;
  color: #555;
}

.map-item iframe,
.map-item img {
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (max-width: 900px) {
  .maps-container {
    grid-template-columns: 1fr;
  }
}

/* ==================================================
 * Under Photo Caption
 * ================================================= */
figure {
    margin: 1.5rem 0;
    text-align: center;
}

figcaption {
    font-size: 0.9rem;
    color: #666;
     font-style: italic;
    margin-top: 0.5rem;
}

/* ====================================================
 * TABLE SORTING - lcjones 02.13.2026
 * ================================================= */

.sortable th {
   cursor: pointer;
}

.sortable th.no-sort {
   pointer-events: none;
}

.sortable th::after,
.sortable th::before {
 transition: color 0.2s ease-in-out;
 font-size: 1.2em;
 color: transparent;
}

.sortable th::after {
   margin-left: 3px;
   content: '\025B8';
}

.sortable th:hover::after {
   color: inherit;
}

.sortable th.dir-d::after {
   color: inherit;
   content: '\025BE';
}

.sortable th.dir-u::after {
   color: inherit;
   content: '\025B4';
}

/* =================================================
 * MESSAGE BOXES
 * ============================================== */
.messagebox {
  margin: 1.5em 0;
  padding: 0.8em 1em;
  border: 1px solid #a2a9b1;          /* subtle gray border like modern Wikipedia */
  border-left-width: 10px;             /* thick left bar for visual cue */
  border-left-color: #3366CC;          /* Wikipedia info blue */
  background-color: #f8f9fa;           /* very light gray bg */
  border-radius: 4px;                  /* soft corners for modern feel */
  display: flex;
  align-items: flex-start;
  gap: 1em;
  font-size: 1.1rem;                   /* larger for older eyes */
  line-height: 1.5;
}

.messagebox-icon {
  flex-shrink: 0;
}

.messagebox-icon img {
  width: 80px;                         /* scale nicely */
  height: auto;
}

.messagebox-content {
  flex: 1;
}

.messagebox-content strong {
  color: #222;
}

/* Optional: Make it full-width on small screens */
@media (max-width: 600px) {
  .messagebox {
    flex-direction: column;
    gap: 0.5em;
  }
}

/* ================================================
 * Geo Location -lcjones 02.13.2026
 * ============================================= */
.geo-location {
  background: #f8f9fa;               /* Matches your notes panel */
  padding: 1.2rem 1.5rem;
  border-radius: 6px;
  margin: 1.5rem 0 2rem;
  border: 1px solid #d0d0d0;
  border-left: 5px solid var(--accent-gold);  /* Ties into your accent */
  font-size: 1rem;
  line-height: 1.55;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);     /* Optional subtle lift */
}

.geo-location h3 {
  margin-top: 0;
  font-size: 1.25rem;
  color: #333;
  margin-bottom: 0.8rem;
}

.geo-location .coord {
  font-family: monospace;            /* Clear, fixed-width for coords */
  font-weight: 500;
  color: #2c3e50;                    /* Darker for readability */
  letter-spacing: 0.5px;
}

.geo-location .note {
  font-size: 0.9rem;
  color: #666;
  margin: 0.8rem 0 1rem;
  font-style: italic;
}

.geo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.geo-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 500;
}

.geo-links a:hover {
  text-decoration: underline;
}

.geo-links i {
  font-size: 1.1rem;
}

/* ============================================================
 * CEMETERY OVERVIEW PHOTOS - lcjones 02.13.2026
 * ========================================================= */
.cemetery-photos {
  margin: 2rem 0;
  padding: 1rem;
  background-color: #f8f9fa; /* light background, optional */
  border-radius: 8px;
  border: 1px solid #ddd;
}

.cemetery-photos h2 {
  margin-top: 0;
  color: #333;
  text-align: center; /* or left, your preference */
}

.photo-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;          /* space between photos */
  justify-content: center;
}

.photo-item {
  flex: 1 1 300px;      /* grow/shrink, min ~300px wide */
  max-width: 45%;       /* cap at ~half on wide screens */
  text-align: center;
}

.photo-item img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* subtle shadow */
  border: 1px solid #ccc;
}

.photo-item .caption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #555;
  font-style: italic;
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
  .photo-item {
    max-width: 100%;
  }
}

/* ================================================================
 * LOCATION SECTION at TOP of CEMETERY PAGES - lcjones 02.03.2026
 * ============================================================= */
.info-box {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: #f8f9fa;          /* light gray background – common for notes */
  border: 1px solid #dee2e6;          /* subtle border */
  border-left: 5px solid var(--accent-gold); /*5px solid #007bff;     /* colored left bar – change color to match your theme (blue here as example) */
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08); /* soft shadow for depth */
}

.info-box h3 {
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #dee2e6;   /* optional underline under heading */
  color: #333;
  font-size: 1.4rem;
}

.info-box .box-content {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

.info-box .box-content p {
  margin: 0.75rem 0;
}

.info-box .small-note {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #ccc;        /* optional separator */
}

/* Optional: Make it stand out more like a warning/info box */
/*.location-box {
  border-left-color: #28a745;           /* green for location/safe-info, or match notes exactly */
/*  background-color: #e8f5e9;            /* very light green – or keep same as notes */
}

/* ===============================================================
 * SORTABLE ICON SWITCH to FONT AWESOME ICON lcjones -02.17.2026
 * ============================================================= */
/* Make room for the icon – adjust padding/right as needed */
table.sortable th {
  position: relative;          /* Needed for absolute positioning */
  padding-right: 1.8em;        /* Extra space on right for icon */
  cursor: pointer;
  user-select: none;
}

/* Hide the original arrow(s) from sortable.min.css / JS */
table.sortable th::after {
  content: none !important;    /* Kill the default arrow completely */
}

/* Neutral state (unsorted) – show a "sort" or "arrows up-down" icon */
table.sortable th::before {
  font-family: "Font Awesome 7 Free";   /* or "Font Awesome 5 Free" if using v5 */
  font-weight: 900;                      /* solid style */
  content: "\f0dc";                      /* fa-sort (↕ vertical arrows) */
  position: absolute;
  right: 0.5em;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.4;                          /* subtle when unsorted */
  color: inherit;                        /* match text color */
}

/* Ascending sort – up arrow (or chevron-up) */
table.sortable th.sort-asc::before {
  content: "\f0de";                      /* fa-sort-up / fa-sort-asc (↑) */
  opacity: 1;
  color: #000;                           /* or your accent color, e.g. #0066cc */
}

/* Descending sort – down arrow */
table.sortable th.sort-desc::before {
  content: "\f0dd";                      /* fa-sort-down / fa-sort-desc (↓) */
  opacity: 1;
  color: #000;
}

/* Optional: Make it look nicer on hover */
table.sortable th:hover::before {
  opacity: 0.8;
}

/*=========================================
 *

 /* Your header background stays dark green */
table.sortable th {
  background-color: var(--primary-accent); /*#355e3b; */
  color: white;
  padding: 0.8em 1em;
  font-weight: bold;
}

/* Ensure no default library arrows show up */
table.sortable th::after,
table.sortable th::before {
  content: none !important;
}

/* Base icon styling – starts subtle */
table.sortable th .sort-icon {
  margin-left: 0.6em;          /* space after header text */
  font-size: 0.95em;           /* fits nicely */
  opacity: 0.6;                /* muted when unsorted */
  color: #fdfaf5;              /* your gold accent color */
  transition: opacity 0.25s ease, transform 0.2s ease;  /* smooth fade/rotate */
}

/* When sorted (asc or desc): full visibility + brighter gold */
table.sortable th.sort-asc .sort-icon,
table.sortable th.sort-desc .sort-icon {
  opacity: 1;
  color: #d4a017;              /* slightly lighter/brighter gold variant for "active" state – optional but pops more */
  /* or keep exact #b8860b if you prefer consistency */
}

/* Optional: Add a tiny visual cue for direction (rotate the icon for descending) */
table.sortable th.sort-desc .sort-icon {
  transform: rotate(180deg);   /* turns fa-sort-up into a down arrow visually – if you change HTML to fa-sort-up */
}

/* Hover feedback – subtle gold glow on header */
table.sortable th:hover {
  background-color: #2e5033;   /* darker green hover */
}

table.sortable th:hover .sort-icon {
  opacity: 0.9;
}

/* ================================================
 * CSS For Searchable script. lcjones 02.17.2026
 * =============================================== */

.table-search {
  width: 100%;
  max-width: 500px;
  padding: 0.7em 1em;
  margin: 1em 0 1.5em;
  border: 2px solid #b8860b;      /* gold border */
  border-radius: 6px;
  font-size: 1.1em;
  background: #f9f9f9;
  color: #333;
}

.table-search:focus {
  outline: none;
  border-color: #d4a017;          /* brighter gold focus */
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.25);
}

/* Force the search input to always be visible */
.searchable thead input {
  display: block !important;          /* or inline-block if you prefer */
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;            /* ensure it's not collapsed */
  width: 100% !important;             /* full width, or set max-width: 400px; etc. */
  max-width: 800px !important;        /* adjust to your preference */
  margin: 0.5em auto 1em !important;  /* center it nicely above the table content */
  padding: 0.8em 1em !important;
  font-size: 1.2rem !important;       /* larger text for readability */
  border: 2px solid #b8860b !important;  /* your gold accent */
  border-radius: 6px !important;
  background: #fffdf7 !important;
}

/* Hide the toggle button completely (the small icon you click to show input) */
.searchable thead::before,              /* if button is pseudo-element */
.searchable thead button,               /* if injected as <button> */
.searchable .sb-search-btn,             /* possible class name */
.searchable [role="button"] {           /* accessibility role fallback */
  display: none !important;
}

/* Optional: Make the input look like a proper permanent search bar */
.searchable thead input:focus {
  border-color: #d4a017 !important;     /* brighter gold on focus */
  box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.25) !important;
}

.searchable thead input::placeholder {
  color: #888 !important;
  font-size: 1.1rem !important;
}

/* Hide the empty state message by default (when table has rows or search is empty) */
.searchable thead::after {
  content: none !important;          /* or '' to empty it */
  display: none !important;
}

/* Only show it when the tbody has NO visible rows (using :has() negation) */
.searchable tbody:not(:has(> tr:not([style*="display: none"]))) ~ thead::after,
.searchable tbody:has(> tr[style*="display: none"]):not(:has(> tr:not([style*="display: none"]))) ~ thead::after {
  content: 'No results found' !important;   /* your desired message */
  display: block !important;                /* or table-cell/flex etc. as needed */
  text-align: center;
  padding: 2em 1em;
  font-size: 1.3rem;
  color: #666;
  background: #f8f8f8;
  border-top: 1px solid #ddd;
  margin-top: 1em;
}

/* Optional: Make it nicer / match your theme */
.searchable thead::after {
  color: #b8860b !important;               /* gold accent for emphasis */
  font-weight: bold;
}

/* ===========================================
 * TABLE STRIPE
 * ========================================== */

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
}
th {
  background-color: var(--primary-muted);
  color: var(--text-inverse);
  padding: 0.75rem;
  text-align: left;
}
td {
  border: 1px solid #d4d4d4;
  padding: 0.6rem 0.8rem;
}
tr:nth-child(even) {
  background-color: var(--bg-muted);  /* very subtle stripe */
}
tr:hover {
  background-color: #f0f7f2;  /* light green hover for interactivity */
}

/* =======================================================
 * PhotoSwipe Gallery Styling for Document Scans 
 * ======================================================= */

/* Container for the whole section */
section.gallery-section {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* The gallery wrapper */
.pswp-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));  /* Responsive: 1 col mobile → 2–4 col desktop */
  gap: 1.5rem;  /* Space between thumbnails */
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Each thumbnail link/item */
.pswp-gallery a {
  display: block;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);  /* Soft shadow for depth */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: #f9f9f9;  /* Light bg to frame scans nicely */
}

/* Hover effect: lift + stronger shadow */
.pswp-gallery a:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

/* Thumbnails themselves */
.pswp-gallery img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;  /* Crops if needed, but keeps aspect for documents */
  transition: transform 0.3s ease;
}

/* Optional: Slight zoom on hover */
.pswp-gallery a:hover img {
  transform: scale(1.04);
}

/* Caption below each thumbnail (see markup update below) */
.pswp-gallery figcaption {
  padding: 0.8rem 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: #444;
  background: #fff;
  border-top: 1px solid #eee;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .pswp-gallery {
    grid-template-columns: 1fr;  /* Stack vertically on phones */
    gap: 1.2rem;
  }
}

/* ==============================================
 * PhotoSwipe toolbar icons color 
 * ============================================== */

:root {
  --pswp-icon-color: #ffffff;          /* white - good on dark overlay */
  --pswp-icon-color-secondary: #cccccc; /* for hover/active states */
}

/* Optional: remove the shadow/outline if you want flat icons */
.pswp__icn-shadow {
  display: none;
}

/* Make icons larger or adjust position if needed */
.pswp__button {
  width: 48px;
  height: 48px;
}
.pswp__icn {
  width: 28px;
  height: 28px;
}

/* ====================================================
 * Fix for custom Download button text being cut off 
 * ==================================================== */
.pswp__button--download-button {
  width: auto !important;
  min-width: 110px !important;   /* Adjust if needed */
  padding: 8px 12px !important;
  white-space: nowrap !important;
}

.pswp__button--download-button span {
  color: inherit;
}

/* Optional: Make other buttons a bit more compact if space is tight */
.pswp__top-bar .pswp__button {
  margin: 0 2px;
}

/* Make custom text buttons wide enough */
.pswp__button--custom-zoom-button,
.pswp__button--download-button {
  width: auto !important;
  min-width: 78px !important;     /* Adjust higher if needed (e.g. 85px) */
  padding: 8px 6px !important;
  white-space: nowrap !important;
  height: 44px;                   /* Matches default button height */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Optional: Slightly reduce spacing between all top-bar buttons */
.pswp__top-bar .pswp__button {
  margin: 0 3px;
}

/* Make text buttons look consistent with other controls */
.pswp__button--custom-zoom-button span,
.pswp__button--download-button span {
  color: inherit;
  line-height: 1;
}

/* ===============================================================
 * PHOTOSWIPE FOR GRID STYLE IMAGES - lcjones 03.28.2026
 * =============================================================== */

#my-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

#my-gallery a {
  display: block;
}

#my-gallery img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===============================================================
 * INDEX HEADER IMAGE & HERO TEXT
 * ============================================================= */
.hero {
  position: relative;
  min-height: 500px;          /* fallback height – adjust to taste */
  height: 80vh;               /* or 60-90vh depending on how tall you want it */
  max-height: 694px;          /* prevents it from growing taller than original */

  background-image: url('/images/header.jpg');
  background-size: cover;     /* key for responsiveness */
  background-position: center;
  background-repeat: no-repeat;
  border-top: 4px solid var(--accent-gold);

  /* Optional: subtle overlay to improve text readability */
  /* You can use ::before or background with blend */
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* dark overlay – 0.3 to 0.6 is common */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;                 /* above overlay */
  color: white;
  text-align: center;
  padding: 2rem;

  /* Center text both ways – modern & reliable */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100%;           /* fill the parent height */
}

/* Make text scale nicely on smaller screens */
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin: 0 0 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7); /* helps readability */
}

.hero p {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  max-width: 50ch;
  margin: 0 0 2rem;
}

/* Optional: mobile adjustments */
@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
    background-position: center 60%; /* shift focus if needed – test your image */
  }
}

/* =============================================================
 *  REVISED FOOTER -lcjones 02.18.2026
 *  ======================================================== */
/* Footer base styles – adjust colors/padding to match your site */
footer {
  background: var(--primary-deep);           /* dark background, or your preferred */
  color: var(--text-inverse);
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 0;              /* no gap if you fixed this earlier */
  border-top: 4px solid var(--accent-gold)
}

/* The row with three columns */
.footer-row {
  display: flex;                    /* magic starts here */
  flex-wrap: wrap;                  /* allows stacking on small screens */
  justify-content: space-between;   /* spreads them evenly */
  gap: 2rem;                        /* space between columns – adjust as needed */
  max-width: 1400px;                /* optional: center and constrain width */
  margin: 0 auto;                   /* centers the row */
}

/* Each equal column */
.footer-column {
  flex: 1 1 300px;                  /* grow equally, shrink if needed, min ~300px before stacking */
  min-width: 0;                     /* prevents overflow issues */
  text-align: center;                 /* left-align content inside columns */
}

/* Optional: Make headings and links pop */
.footer-column h4 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

/* Selectively remove Button From Unordered List lcjones 03.13.2026 */

.no-bullets {
	list-style-type: none;
	padding-left: 0;
	kargin-left: 0;
}

.footer-logo,
.footer-links {
        text-align: center;
}

.footer-column a {
  color: var(--accent-gold);
  text-decoration: underline;
  text-align: center;
}

.footer-column a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Small copyright line below the columns */
.footer-copyright {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Mobile: stack columns vertically when screen is narrow */
@media (max-width: 768px) {
  .footer-row {
    flex-direction: column;     /* stacks them top-to-bottom */
    gap: 1.5rem;
  }

  .footer-column {
    text-align: center;         /* center text on mobile for better look */
  }
}

/* =========================================================
 * TEMPLATE PLACE HOLDER
 * ========================================================= */

.temp-holder {
	text-align: center;
}

/* ============================================================
 * CITATION / TOOLTIP POPIP - lcjones 02.27.2026
 * =========================================================== */
.citation-tooltip {
      position: relative;
      display: inline-block;
      cursor: help; /* Question mark cursor to hint info */
      border-bottom: 1px dotted #007bff; /* Dotted underline like a link */
    }

    .citation-tooltip .tooltip-content {
      visibility: hidden;
      width: 300px; /* Adjust for longer citations */
      background-color: #333;
      color: #fff;
      text-align: left;
      border-radius: 6px;
      padding: 10px;
      position: absolute;
      z-index: 1;
      bottom: 125%; /* Positions above the word */
      left: 50%;
      transform: translateX(-50%);
      opacity: 0;
      transition: opacity 0.3s ease;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
      font-size: 0.9em;
    }

    /* Arrow pointing down to the word */
    .citation-tooltip .tooltip-content::after {
      content: "";
      position: absolute;
      top: 100%;
      left: 50%;
      margin-left: -8px;
      border-width: 8px;
      border-style: solid;
      border-color: #333 transparent transparent transparent;
    }

    .citation-tooltip:hover .tooltip-content {
      visibility: visible;
      opacity: 1;
    }

    /* ===============================================
     * IMAGE CONTAINER
     * ============================================== */
.image-container {
  /* Give the container fixed or relative dimensions */
  width:  400px;          /* or 100%, 50vw, etc. */
  height: 300px;          /* important – object-fit needs defined height */
  overflow: hidden;       /* optional – helps with cover */

  /* bonus: nice centering & rounded corners */
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  background: #f0f0f0;
}

.image-container img {
  width:  100%;
  height: 100%;

  /* The magic line – choose ONE: */
  object-fit: contain;    /* ← whole image visible, may have letterbox/pillarbox */
  /* object-fit: cover;   */   /* ← fills container, crops if needed – most popular for cards/hero */
  /* object-fit: fill;    */   /* ← stretches to fill (distorts aspect ratio) – rarely wanted */
  /* object-fit: scale-down; */ /* ← like contain, but never enlarges image */

  /* Optional: control which part is shown when cropping */
 /* object-position: center;     /* default */
  /* object-position: top left; */
}

/* ====================================================
 * GRID BOXES - lcjones 03.13.2026
 * ==================================================== */

.grid-table {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;     /* three equal columns */
  /* OR: you can use specific widths like:  2fr 1fr 1.5fr  */
  gap: 1px;                               /* line between cells */
  background-color: #e0e0e0;              /* this becomes grid line color */
  border: 1px solid #ccc;
  font-family: system-ui, sans-serif;
  max-width: 900px;
  margin: 1.5rem auto;
}

.grid-table > div {
  background-color: white;
  padding: 12px 16px;
  border: 1px solid #ddd;                 /* optional - cell border */
}

/* Header styling */
.grid-table > .header {
  background-color: #f5f5f5;
  font-weight: bold;
  text-align: left;
}

/* Optional: zebra stripes */
.grid-table > div:nth-child(6n+1),
.grid-table > div:nth-child(6n+2),
.grid-table > div:nth-child(6n+3) {
  background-color: #fafafa;
}

/* =======================================================
 * IMAGE MANIPULATION - Towns & Cities lcjones 03.14.2026
 * ======================================================= */

.image-left {
float: left;
width: 400px;
padding: 10px;
margin: 0 3rem 3rem 0;
}

/* =========================================================
 * HISTORICAL MARKER CSS - lcjones 03.14.2026
 * ========================================================= */
.historical-container {
      width: 1400px;
      max-width: 100%;               /* prevents overflow on smaller screens */
      margin: 0 auto;
      background: white;
      border: 1px solid #ddd;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
      overflow: hidden;
    }

    .two-columns {
      display: flex;
      flex-wrap: wrap;               /* stacks on very small screens */
    }

    .left-column,
    .right-column {
      flex: 1 1 50%;                 /* roughly 50/50 split */
      min-width: 300px;              /* prevents columns from getting too narrow */
    }

    .left-column {
      background: #f5f5f5;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1.5rem;
    }

    .left-column img {
      max-width: 100%;
      height: auto;
      border-radius: 6px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      display: block;
    }

    .right-column {
      padding: 2.5rem 2rem;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .marker-title {
      font-size: 1.6rem;
      font-weight: 700;
      margin: 0 0 1.2rem 0;
      color: #8b0000;                /* dark red – common for historical feel */
      border-bottom: 2px solid #eee;
      padding-bottom: 0.6rem;
    }

    .marker-text {
      font-size: 1.08rem;
      line-height: 1.58;
      margin: 0;
      white-space: pre-wrap;         /* preserves line breaks if you paste text */
    }

    .marker-meta {
      margin-top: 1.8rem;
      font-size: 0.92rem;
      color: #555;
      font-style: italic;
    }

/* ======================================================
 *  TRIVIA BUBBLES - lcjones 03.14.2026
 * ====================================================== */

.trivia-bubble {
  position: relative;
  cursor: help;           /* fun pointer */
  display: inline-block;
  background: #fff;
  padding: 0.8em 1.2em;
  border-radius: 1em;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* The bubble + tail (using clip-path or border tricks) */
.trivia-bubble::after,
.trivia-bubble::before {
  content: attr(data-trivia);
  position: absolute;
  bottom: 100%; left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 280px;
  background: #4a90e2;
  color: white;
  padding: 1em;
  border-radius: 1em;
  pointer-events: none;
  opacity: 0;
  transition: all 0.25s ease;
  clip-path: polygon(0% 0%, 100% 0%, 100% 85%, 60% 85%, 50% 100%, 40% 85%, 0% 85%); /* example tail shape */
}

.trivia-bubble:hover::after,
.trivia-bubble:hover::before {
  opacity: 1;
  bottom: calc(100% + 10px);
}

/* =============================================================
 * TIMELINE PAGE - lcjones 03.15.2026
 * ============================================================= */

.timeline { 
position: relative; 
max-width: 1200px; 
margin: 0 auto; 
}

.timeline::before { 
content: '';
position: absolute; 
width: 6px; 
background: #8b5a2b; 
top: 0;0
bottom: 0; 
left: 50%; 
margin-left: -3px; 
}
   
.container-timeline {
    padding: 10px 40px; 
position: relative; 
background: inherit; 
width: 50%; 
}

.left { 
left: 0; 
}
 
.right { 
left: 50%; 
}

.content { 
padding: 20px 30px; 
background: white; 
position: relative; 
border-radius: 6px; 
box-shadow: 0 3px 10px rgba(0,0,0,0.1); 
}

.content::after { 
content: ''; 
position: absolute; 
width: 25px; 
height: 25px; 
right: -17px; 
background: white; 
border: 4px solid #8b5a2b; 
top: 15px; 
border-radius: 50%; z-index: 1; 
}

.right .content::after { 
left: -16px; 
}

/* =========================================================
 * BUTTONS without using bootstrap - lcjones 03.29.2026
 * ======================================================= */

.btn {
      padding: 12px 24px;
      font-size: 16px;
      font-weight: 600;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.3s ease;
      text-decoration: none;
      display: inline-block;
    }

    /* Primary Button */
    .btn-primary {
      background-color: var(--btn-primary); /*#0066ff; */
      color: white;
    }
    .btn-primary:hover {
      background-color: var(--btn-primary-soft); /* #0052cc; */
      transform: translateY(-2px);
    }

    /* Secondary / Outline Button */
    .btn-secondary {
      background-color: transparent;
      color: #0066ff;
      border: 2px solid #0066ff;
    }
    .btn-secondary:hover {
      background-color: #0066ff;
      color: white;
    }

    /* Danger Button */
    .btn-danger {
      background-color: #ff4444;
      color: white;
    }
    .btn-danger:hover {
      background-color: #cc0000;
    }

    /* Disabled state */
    .btn:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
    }

    .btn-padding {
	margin-top: 10px;
	margin-bottom: 10px;
}
    /* ==========================================
     */

.grid {
  display: grid;
  grid-template-columns: 700px 700px;   /* Two equal 600px columns */
  gap: 0;
  width: 1400px;
  margin: 0 auto;
}

.header-cell {
  grid-column: 1 / -1;        /* This makes it span BOTH columns */
  width: 1400px;              /* Full width of the entire grid */
  background-color: #f8f9fa;  /* Light background - change as needed */
  padding: 20px;
  text-align: center;
  border-bottom: 2px solid #ddd;
  box-sizing: border-box;
}

.cell {
  width: 700px;
  box-sizing: border-box;
}

/* Optional: make the tables look nicer */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px;
  border: 1px solid #ccc;
}

/* =====================================================
 * <ul> INDENTATION
 * ===================================================== */
ul {
	padding-left: 40px;
	margin-left: 0;
]

ul ul {
	padding-left: 30px;
}

ul ul ul {
	padding-left: 25px;
}
