/*  ==========================================================================
   KYGenWeb - Lincoln County
   Antique Parchment & Brass Theme with Green Accent
   LCJones - County Coordinator - 2026 - lckygenweb@gmail.com
   ========================================================================== */

/* ====================================================
 * Used to VISUALIZE div's and containers
 * To use, remove top " /* " comment marker
 * ==================================================== */

*, *::before, *::after {
  box-sizing: border-box !important;
}

html {
	  overflow-x: hidden;
  }

/*
* { outline: 1px solid red; }
*/

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

/* ====================================================
 * SITE COLOR VARIABLES
 * ==================================================== */

:root {
  --parchment-header: 	#F4EFE6; /* Warm Antique Parchment Header */
  --parchment-bg: 	#FAF8F5; /* Soft Linen Page Background */
  --light-green: 	#305b44; /* Main Menu Bar Hover */
  --dark-green: 	#0d3520; /* Main Menu Bar, Upper Footer bg */
  --verydark-green: 	#032211; /* Bottom Footer bg */
  --bronze-hover: 	#1E1714; /* Darker Bronze Hover Accent */
  --gold-brass: 	#C59B27; /* Kentucky Brass / Gold Accent */
  --card-bg: 		#FFFFFF;
  --text-main: 		#1A202C;
  --text-muted: 	#4A5568;
  --link-blue: 		#0F4C81;
  --border-color: 	#E2DDD5;
}

/* ====================================================
 * GLOBAL RESET & TYPOGRAPHY
 * ==================================================== */

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: var(--parchment-bg);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

/* UNIFIED HEADER FONT RULE
   All headings share Georgia serif; variations use size, weight & margins */
h1, h2, h3, h4, h5, h6,
.page-header h2,
.family-section h2,
.memorial-card h2,
.deed-header h1,
.cemetery-header h1,
.info-box h3 {
  font-family: 'Georgia', serif;
}

body.site-wrapper {
	display: flex;
	flex-direction: column;
	min-height: 100vh; /* This will take full height of browser screem */
}

main.main-content,
.main {
	flex: 1 0 auto; /* This expands to push footer to bottom on short pages */
}

.site-footer,
#footer {
	flex-shrink: 0;
}

a {
  color: var(--link-blue);
  text-decoration: underline;
}

a:hover,
a:focus {
  color: var(--gold-brass);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.center {
	text-align: center;
}

/* =================================================
 * SITE HEADER & WATERMARK MAP
 * ================================================= */

.site-header {
  position: relative;
  background-color: var(--parchment-header);
  color: var(--text-main);
  border-bottom: 4px solid var(--gold-brass);
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("/lincoln/images/site-ui/MapOfKY.jpg"); 
  background-position: top right; /*center right;*/
  background-repeat: no-repeat;
  background-size: 100% auto; /*cover; */
  opacity: 0.30;
  mix-blend-mode: multiply;
  filter: sepia(0.4) contrast(0.9);
  pointer-events: none;
}

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

.brand-link {
  color: var(--dark-green);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.site-title h1 {
	font-family: 'Georgia',serif;
  font-size: 2.0rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.site-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Header Search Form */
.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-form input[type="search"] {
  padding: 0.55rem 0.8rem;
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: #FFFFFF;
}

.search-form button {
  background-color: var(--dark-green);
  color: #FFFFFF;
  border: none;
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-form button:hover {
  background-color: var(--gold-brass);
}

/* ====================================================
 * MAIN NAVIGATION BAR
 * ==================================================== */

.site-nav {
  background-color: var(--dark-green);
  position: relative;
  z-index: 500;
  border-top: 4px solid var(--gold-brass);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.nav-item {
  position: relative;
}

/*
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 1.25rem;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
}
*/

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 1.25rem;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  background-color: var(--bronze-hover);
  color: var(--gold-brass);
}

.nav-link.active {
  background-color: var(--bronze-hover);
  color: var(--gold-brass);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 6px; /* Position from the bottom of the nav bar */
  left: 50%;
  transform: translateX(-50%); /* Centers the dot precisely relative to the link text */
  width: 8px; /* 6px diameter */
  height: 8px; /* 6px diameter */
  background-color: var(--gold-brass);
  border-radius: 50%; /* Makes it a circle */
  pointer-events: none;
}

/* =====================================================
 * SITE BREADCRUMBS BELOW MAIN MENU
 * ===================================================== */

.breadcrumb-container {
  background-color: #f4eee1; /* Light parchment background box */
  border: 1px solid #dcd1ba; /* Subtle border */
  border-left: 5px solid var(--gold-brass); /* Brass accent left border */
  border-radius: 6px;
  padding: 0.75rem 1.25rem;
  margin-top: 1.5rem; /* Spacer from header */
  margin-bottom: 1.5rem; /* Spacer from page-title */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1.05rem; /* ~17px - 18px for clear legibility */
  line-height: 1.5;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  color: #2b261f;
}

/* Clear, Large Separator Arrow */
.breadcrumb-item + .breadcrumb-item::before {
  content: "→";
  font-weight: bold;
  color: #6c5a39; /* High-contrast separator */
  padding: 0 0.65rem;
  font-size: 1.1rem;
}

/* Breadcrumb Link Styling */
.breadcrumb-item a {
  color: #004080; /* High-contrast deep blue link */
  font-weight: 600;
  text-decoration: underline; /* Clear clickability indicator */
  padding: 0.25rem 0.35rem; /* Generous touch/click target area */
  border-radius: 4px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.breadcrumb-item a:hover {
  color: #8b6b23; /* Brass accent on hover */
  background-color: #e8deca; /* Parchment highlight */
}

/* Keyboard Focus State for Accessibility */
.breadcrumb-item a:focus {
  outline: 3px solid #8b6b23;
  outline-offset: 2px;
  background-color: #e8deca;
}

/* Home Icon Alignment */
.breadcrumb-item a i {
  margin-right: 0.35rem;
  font-size: 0.95rem;
}

/* Current Page (Non-clickable Text) */
.breadcrumb-item.active {
  color: #3b3328;
  font-weight: normal;
  text-decoration: none;
}

/* ======================================================
 * MAIN CONTENT CONTAINER & HEADERS
 * ====================================================== */

.main {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

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


.content-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 1rem 3rem 1rem;
}


.page-header {
  margin-bottom: 2rem;
}

.page-header h2 {
  color: var(--dark-green);
  margin-bottom: 0.5rem;
}

.page-header .subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0;
}

/* ======================================================
 * CARD GRID & DISPLAY CASE
 * ====================================================== */

/* ====================================================
 * INDEX CARD GRID (6 Cards Wide Configuration)
 * ==================================================== */

.index-card-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 0;
}

/* Tablet: 2 or 3 columns */
@media (min-width: 640px) {
  .index-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .index-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop: Force 6 cards wide on large viewports */
@media (min-width: 1400px) {
  .index-card-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.record-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--gold-brass);
  border-radius: 6px;
  padding: 1.75rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.record-deed-card,
.update-page-card,
.school-page-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1.75rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
}

.record-card:hover,
.update-page:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.record-card h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.35rem;
}

.record-card h3 a {
  color: var(--dark-green);
  text-decoration: none;
}

.record-card h3 a:hover {
  color: var(--link-blue);
}

.card-meta {
  color: #8C827A;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.record-card p {
  color: #4A4039;
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

/* ====================================================
 * Buttons
 * ==================================================== */

.button,
.button-secondary {
  display: inline-block;
  padding: 0.6rem 1rem;
  background-color: var(--parchment-header);
  color: var(--dark-green);
  text-decoration: none;
  border: 1px solid #D6D0C4;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.button:hover,
.button-secondary:hover {
  background-color: var(--dark-green);
  color: #FFFFFF;
  border-color: var(--dark-green);
}

.button-primary {
  background-color: var(--dark-green);
  color: #FFFFFF;
  border-color: var(--dark-green);
}

.button-primary:hover {
  background-color: var(--gold-brass);
  color: var(--dark-green);
}

.button-right {
  display: flex;
  justify-content: flex-end;
}

/* =============================================================
 * SEARCH TIP BOX
 * ============================================================= */

.search-tip {
  background-color: #FDFBF7;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--link-blue);
  padding: 1rem 1.25rem;
  border-radius: 4px;
  font-size: 0.95rem;
  color: #4A4039;
}

/* ==========================================================
 * GENERAL TABLE CONFIG
 * ========================================================== */

table {
	margin-top: 0.75rem;
}

.birth-table,
.burial-table,
.church-table,
.post-office-table,
.school-table {
  width: 100%;
 /* min-width: 800px; */
  table-layout: auto;
  border-collapse: collapse;   /* usually cleaner than separate for data tables */
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.birth-table th,
.burial-table th,
.church-table th,
.post-office-table th,
.school-table th,
.birth-table td,
.burial-table td,
.church-table td,
.post-office-table td,
.school-table td {
  padding: 0.4rem 0.5rem;
  text-align: left;
  border: 1px solid #ddd;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.birth-table th,
.burial-table th,
.church-table th,
.post-office-table th,
.school-table th, {
  background: var(--dark-green); /*primary-muted);*/
  color: #fff;
  font-weight: 600;
  border-bottom: 2px solid var(--border-color);
}

.birth-table tbody tr:nth-child(even),
.burial-table tbody tr:nth-child(even),
.church-table tbody tr:nth-child(even),
.post-office-table tbody tr:nth-child(even),
.school-table tbody tr:nth-child(even) {
  background: #f7f7f7;
}

.birth-table tbody tr:hover,
.burial-table tbody tr:hover,
.church-table tbody tr:hover,
.post-office-table tbody tr:hover,
.school-table tbody tr:hover {
  background: #f1f3f5;
}

.table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1.5rem;
}

.table-responsive,
#burial-table {
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-bottom: 1.5rem;
}

.table-center-container {
  display: block;
  width: 100%;
}

/* ==========================================================
 * GENEALOGY DATA TABLES
 * ========================================================== */

.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #FFFFFF;
  text-align: left;
  font-size: 0.95rem;
}

.data-table th {
  background-color: var(--dark-green);
  color: #FFFFFF;
  padding: 0.75rem 1rem;
  font-weight: 600;
  border-bottom: 2px solid var(--gold-brass);
  cursor: pointer;
  user-select: none;
}

.data-table th:hover {
  background-color: var(--bronze-hover);
  color: var(--gold-brass);
}

.data-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.data-table tbody tr:nth-child(even) {
  background-color: #FBF8F3;
}

.data-table tbody tr:hover {
  background-color: var(--parchment-header);
}

.sort-icon {
  font-size: 0.8rem;
  margin-left: 0.3rem;
  opacity: 0.7;
}

/* ===============================================
 * TABLE SEARCH INPUT
 * =============================================== */

.table-filter-container {
  margin-bottom: 1rem;
}

.table-search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: #FFFFFF;
  box-sizing: border-box;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.table-search-input:focus {
  outline: none;
  border-color: var(--gold-brass);
  box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.2);
}

/* --- CONTACT PAGE STYLES --- */
.single-column {
  max-width: 800px;
  margin: 0 auto;
}

.notice-card {
  border-left: 6px solid #922B21;
  background-color: #FDFBF7;
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
}

.divider {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 1.5rem 0;
}

.contact-email-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: var(--parchment-header);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  text-align: center;
}

.email-label {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--dark-green);
}

.email-subtext {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #666666;
}

.email-subtext code {
  background-color: #E2DDD5;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

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

.site-footer {
  background-color: var(--dark-green);
  color: #E2E8F0;
  margin-top: 4rem;
  border-top: 4px solid var(--gold-brass);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem 2rem 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-start;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col p {
  margin: 0 0 1rem 0;
  line-height: 1.6;
}

.footer-heading {
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
  color: #FFFFFF;
  text-align: center;
}

.site-footer a {
  color: #CBD5E0;
}

.site-footer a:hover {
  color: var(--gold-brass);
}

.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  width: 100%;
}

.footer-logo img {
  max-width: 180px;
  height: auto;
  display: block;
}

.footer-bottom {
  background-color: var(--verydark-green);
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #A0AEC0;
}

/* ===================================================
 * BACK TO TOP BUTTON
 * =================================================== */

.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  background-color: var(--dark-green);
  color: #FFFFFF;
  border: 2px solid var(--gold-brass);
  border-radius: 6px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background-color: var(--bronze-hover);
  color: var(--gold-brass);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* =================================================
 * RESPONSIVE ADJUSTMENTS 
 * ================================================= */

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ==================================================
 * TWO Grid Container Setup 
 * ================================================== */

.two-grid-container {
  display: grid;
  grid-template-columns: 1fr; /* 1 column on small mobile screens */
  gap: 1.5rem; /* Spacing between grid cells */
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* 2 Columns on Tablet / Desktop Screens */
@media (min-width: 640px) {
  .two-grid-container {
    grid-template-columns: repeat(2, 1fr); /* Exactly 2 columns per row */
  }
}

/* =======================================================
 * Family History Blocks
 * ======================================================= */

.family-section {
  margin-bottom: 2.5rem;
}

.family-section h2 {
  color: var(--dark-green);
  font-size: 1.45rem;
  margin: 2.25rem 0 1rem 0;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--gold-brass);
}

.family-block {
  background-color: #FDFBF7;
  border-left: 4px solid var(--gold-brass);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border-radius: 0 4px 4px 0;
}

.family-block h3 {
  margin: 0 0 0.35rem 0;
  font-size: 1.15rem;
  color: var(--dark-green);
}

.family-block .meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.family-block ul {
  margin: 0.5rem 0 0 1.1rem;
  padding: 0;
}

.family-block li {
  margin-bottom: 0.25rem;
}

/* ==================================================
 * Collapsible source / deed sections 
 * ================================================== */

details.family-details {
  background-color: #FDFBF7;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin: 1rem 0;
  padding: 0.75rem 1rem;
}

details.family-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--dark-green);
  list-style: none;
}

details.family-details summary::-webkit-details-marker {
  display: none;
}

details.family-details summary::before {
  content: "▸ ";
  color: var(--gold-brass);
}

details.family-details[open] summary::before {
  content: "▾ ";
}

details.family-details .details-content {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* --- Year link grid (Deaths index) --- */
.year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: 0.6rem;
  max-width: 42rem;
}

.year-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.5rem;
  background-color: #FDFBF7;
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--gold-brass);
  border-radius: 4px;
  color: var(--dark-green);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.year-link:hover,
.year-link:focus {
  background-color: var(--dark-green);
  color: var(--gold-brass);
  border-color: var(--dark-green);
  text-decoration: none;
}

/* ======================================
 * New Index
 * ====================================== */

/* Page intro */
.page-intro {
  text-align: left;
  margin-bottom: 2rem;
}

.page-intro .lead {
  font-size: 1.15rem;
  color: var(--text-muted, #555);
  max-width: 42rem;
  margin-inline: auto;
}

/* Short history blurb */
.county-intro {
  max-width: 48rem;
  margin: 0 auto 2.5rem;
  color: var(--text-muted, #555);
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
}

/* Responsive card grid */
.records-grid {
  display: grid;
  gap: 1.5rem;
  grid-auto-rows: auto;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  /*
  grid-template-columns: 1fr;
  */
}

@media (min-width: 40em) {
  .records-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64em) {
  .records-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 80em) {
  .records-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =================================================
 * MAIN INDEX PAGES CARD STYLING
 * ================================================= */

.card {
  background: var(--bg-alt, #f8f9fa);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  height: 100%;
}

.town-card {
  background: var(--bg-alt, #f8f9fa);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  box-sizing: border-box;
  display: flex !important;
  justify-content: center;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  height: 100%;
}

.card:hover,
.card:focus-within {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

/* Make the whole card the link */
.card-link {
  display: flex !important;
  flex-direction: column !important;
  flex: 1;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  height: 100%; 
}

.card h3.card-title  {
  margin: 0 0 0.35rem 0;
  font-size: 1.15rem;
}

.card p, 
.card-link p {
  color: var(--text-muted, #555);
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 1.25rem;
  flex-grow: 1 !important;
}

.card .button,
.card-link .button {
  align-self: flex-start;
  display: inline-block;
  margin-top: auto;
  font-weight: 500;
  font-size: 0.85rem;
}

/* ========================================
 * Photo gallery grid 
 * ======================================== */

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.photo-item {
  display: block;
  margin: 0;
  background: var(--bg-alt, #f8f9fa);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  transition: box-shadow 0.15s ease;
}

.photo-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.photo-item img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

/* ==========================================================================
   Funeral Notices – Memorial Cards
   ========================================================================== */
.memorial-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--gold-brass);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  transition: box-shadow 0.2s ease;
}

.memorial-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.memorial-card h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.15rem;
  color: var(--dark-green);
}

.memorial-card p {
  margin: 0 0 0.35rem 0;
  line-height: 1.5;
}

.memorial-card .source {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* 1. Hide the SVG search icon completely */
.pagefind-ui__form.svelte-e9gkc3:before {
    display: none !important;
}

/* 2. Reset the input's left padding back to normal text spacing */
input.pagefind-ui__search-input.svelte-e9gkc3 {
    padding-left: 1.25rem !important;
}

/* =================================================================at
   Print-Friendly Stylesheet (For Genealogy Binders)
   ============================================================= */
@media print {
  /* 1. Reset background and text colors for clean paper printing */
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 12pt;
    line-height: 1.5;
  }

  /* 2. Hide non-essential UI elements, navs, slide-outs, and buttons */
  header,
  footer,
  nav,
  .site-header,
  .site-footer,
  .slide-out-panel,
  .slide-out-trigger,
  .button,
  .search-container,
  .breadcrumb-nav {
    display: none !important;
  }

  /* 3. Expand the main content container to full page width */
  .content-container,
  main {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
  }

  /* 4. Ensure record cards and text boxes lose heavy UI borders/backgrounds */
  /*
  .record-card {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #ccc !important;
    border-radius: 0 !important;
    padding: 1rem 0 !important;
    page-break-inside: avoid;
  }
*/

  /* 5. Make links explicit so URLs appear in print if desired */
  a {
    color: #000 !important;
    text-decoration: underline;
  }

  /* 6. Append source URL text automatically after links (Optional bonus) */
  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555;
  }
}

/* ==========================================
 * Photo hover to expand text below photos.
 * ========================================== */

.photo-description {
  font-size: 0.85rem;
  color: var(--text-muted, #5a5347);
  margin: 0;
  /* Show only 3 lines by default */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* When the card is hovered or focused, expand to show full text */
.photo-card:hover .photo-description {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.wide-gallery-container {
  max-width: 1280px; /* Adjust this number to make it as wide as you want */
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

.photo-grid-4col {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* ====================================================
 * For Captions under photos
 * ==================================================== */

.photo-card {
  margin-bottom: 1.5rem;
}

.caption-toggle {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0;
  border: none;
  background: none;
  color: #0066cc;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
}

.caption-toggle:hover {
  color: #004499;
}

.photo-caption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #333;
  max-width: 40rem;
}

/* ============================================================
 * VARIOUS NOTE/MESSAGE BOXES
 * ============================================================ */

.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: 1.10rem;                   /* 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(--gold-brass);  /* 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);
}

.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;
}

.red-star {
        color: #b32134;
}

.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;
  }
}

/* ================================================================
 * 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 */
}

/* ==================================================
 * Only Used on Lincoln History Page
 * ================================================== */

.pswp-gallery.fort-logan img {
	width: 100%;
  max-width: 635px;
  height: auto;
  display: block;
}

.small-figcap {
	font-size: 0.85rem;
	color: var(--text-muted);
	background: var(--border-color);
}

.pswp__button--download-button {
  width: auto !important;
  height: 60px;
  padding: 0 14px;
  font-size: 1.0rem;
  line-height: 60px;
  margin-right: 12px;
  color: #fff;
}

/* ==========================================================================
   PHOTOSWIPE / GALLERIES
   ========================================================================== */

section.gallery-section {
  padding: 2rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

.pswp-gallery-schools {
        max-width: 1400px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        list-style: none;
        padding: 0;
        margin: 0;
}

.pswp-gallery {
	max-width: 100%;
	overflow-x: auto;
}

.pswp-gallery,
#my-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pswp-gallery a,
#my-gallery a {
  display: block;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
}

/*
.pswp-gallery img,
#my-gallery img {
  width: 100%;
  height: auto;
  display: block;
}
*/

.birth-gallery img {
  max-width: 300px;
  height: auto;
  border: 1px solid var(--border);
  cursor: pointer;
}

.pswp-gallery figcaption {
  padding: 0.8rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  background: #fff;
}

.pswp-gallery figure,
#my-gallery figure {
  display: flex;
  flex-direction: column;
  align-items: center;   /* centers the link + image horizontally */
  text-align: center;
}

.pswp-gallery img,
#my-gallery img {
  width: 100%;
  max-width: 100%;      /* move the constraint out of the inline styles if you want */
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;    /* centers the constrained image */
}

.bond-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.bond-item {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.bond-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.bond-caption {
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
}

/* ===============================================
 * TIMELINE PAGE - Two column, left & right
 * =============================================== */

.historical-container {
  width: 1400px;
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.two-columns {
  display: flex;
  flex-wrap: wrap;
}

.left-column,
.right-column {
  flex: 1 1 50%;
  min-width: 300px;
}

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

.timeline::before {
  content: "";
  position: absolute;
  width: 6px;
  background: var(--gold-brass);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

/* Timeline Icon Enhancements */
.content {
  position: relative;
  padding-top: 2.5rem !important; /* Make room for the icon above the year */
}

.timeline-icon {
  position: absolute;
  top: 15px;
  left: 30px;
  width: 36px;
  height: 36px;
  background-color: var(--dark-green);
  color: var(--gold-brass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  border: 2px solid var(--gold-brass);
}

.content h3 {
  color: var(--primary-deep);
  margin-top: 0.2rem;
  border-bottom: 2px solid var(--gold-brass);
  padding-bottom: 0.4rem;
  display: inline-block;
}

@media (max-width: 768px) {
  .timeline-icon {
    left: 20px;
  }
}

.container-timeline {
  padding: 10px 40px;
  position: relative;
  width: 50%;
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.timeline-content {
  padding: 20px 30px;
  background: #fff;
  position: relative;
  border-radius: 6px;
}

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

.two-cell-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
}

.anchor-section {
  scroll-margin-top: 120px;
}

/* =============================================
 * JUMP LETTER NAVIGATION - Death,
 * ============================================= */

.letter-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* centers the letters */
  gap: 0.3rem 0.55rem;
  margin: 1.5rem 0 1.75rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  border-radius: 25px;
  background: var(--parchment-header);
}

.letter-nav a {
  text-decoration: none;
  color: var(--text-main);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

.letter-nav a:hover {
  background: #f4efe6;
}

/* ====================================================
 * CEMETEREY. LAND/PROPERTY & DEED SHARED config
 * ==================================================== */

.deed-header,
.cemetery-header,
.school-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 1rem;
	border-bottom: 2px solid var(--gold-brass);
	padding-bottom: 1rem;
	margin-bottom: 2rem;
}

.deed-header h1,
.cemetery-header h1,
.school-header h1{
	color: var(--text-main);
	margin: 0 0 0.25rem 0;
	font-size: 1.25rem; /* 2rem; */
}

.deed-subtitle,
.cemetery-subtitle,
.school-subtitle,
.update-page-subtitle {
	margin: 0;
	font-weight: 600;
	color: var(--text-muted);
}

.deed-submitter-badge,
.school-submitter-badge {
	background-color: var(--parchment-header);
	border: 1px solid var(--border-color);
	padding: 0.5rem;
	border-radius: 4px;
	font-size: 0.9rem;
	color: var(--text-muted);
}

.deed-metadata,
.update-metadata,
.school-metadata {
	background-color: #fdfbf7;
	border: 1px solid var(--border-color);
	padding: 1rem;
	border-radius: 4px;
	margin-bottom: 1.5rem;
	font-family: monospace;
	font-size: 0.95rem;
}

.deed-body,
.school-body {
	line-height: 1.8;
	color: var(--text-main);
}

.deed-signature {
	margin-top: 2rem;
	font-weight: bold;
	text-align: right;
}

.deed-signature-header {
	color: var(--text-mutes);
	font-size: 0.95rem;
	text-align: right;
	margin-top: 2rem;
	margin-left: 2rem;
}

.deed-footer {
	margin-top: 3rem;
	padding-top: 1rem;
	border-top: 1px solid var(--border-color);
	font-size: 0.85rem;
	color: var(--text-muted);
	display: flex;
	justify-content: space-between;
}

/* Layout Wrapper for Text & Right-Aligned PhotoSwipe Thumb */
.deed-content-wrap {
  display: block;
  margin-top: 1rem;
}

/* Float PhotoSwipe Container to the Right with Strict 300px Sizing */
.deed-image-side {
  float: right;
  width: 500px;
  max-width: 100%;
  margin: 0 0 1.25rem 1.5rem;
}

.deed-image-side figure {
  margin: 0;
  width: 500px;
  max-width: 100%;
}

.deed-image-side a {
  display: block;
  width: 500px;
  max-width: 100%;
}

.deed-image-side img {
  width: 500px !important;
  height: 645px !important;
  max-width: 100%;
  object-fit: cover;
  border: 1px solid var(--border-color, #cbd5e1);
  border-radius: 4px;
  display: block;
}

.deed-image-side figcaption {
  font-size: 0.85rem;
  color: var(--text-muted, #4a5568);
  margin-top: 0.4rem;
  text-align: center;
}

/* Transcription Text Body */
.deed-text-body p {
  margin-top: 0;
  line-height: 1.65;
  font-size: 1.05rem;
}

/* Clearfix for Footer Elements */
.record-deed-card::after,
.deed-content-wrap::after {
  content: "";
  display: table;
  clear: both;
}

/* Responsive Collapse for Small Mobile Screens */
@media (max-width: 640px) {
  .deed-image-side {
    float: none;
    width: 100%;
    margin: 1rem auto;
  }

  .deed-image-side figure,
  .deed-image-side a,
  .deed-image-side img {
    width: 100% !important;
    height: auto !important;
  }
}

.no-cemeteries-listed {
	color: var(--text-muted);
	font-style: italic;
	padding: 0.5rem 0;
}

/* ===========================================
 * OLS HOMES PHOTO GALLERY CSS
 * =========================================== */

/* ===== Card-style galleries (homes + portraits) ===== */
.homes-gallery,
.portraits-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0;
}

@media (max-width: 1100px) {
  .homes-gallery,
  .portraits-gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .homes-gallery,
  .portraits-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .homes-gallery,
  .portraits-gallery { grid-template-columns: 1fr; }
}

.homes-gallery figure,
.portraits-gallery figure {
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  height: 100%;
}

.homes-gallery figure a,
.portraits-gallery figure a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f5f5f5;
}

.homes-gallery figure img,
.portraits-gallery figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.homes-gallery figure a:hover img,
.portraits-gallery figure a:hover img {
  transform: scale(1.03);
}

.homes-gallery figcaption,
.portraits-gallery figcaption {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 0.85rem 1rem 1rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-main);
  text-align: left;
  background: transparent;
}

.homes-gallery .caption-text,
.portraits-gallery .caption-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  margin: 0;
}

.homes-gallery .caption-text.expanded,
.portraits-gallery .caption-text.expanded {
  -webkit-line-clamp: unset;
  display: block;
}

.homes-gallery .more-btn,
.portraits-gallery .more-btn {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  background: var(--parchment-header);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  color: var(--dark-green);
  font-weight: 600;
}

.homes-gallery .more-btn:hover,
.portraits-gallery .more-btn:hover {
  background: var(--gold-brass);
  color: var(--dark-green);
}

/* ============================================
 * LINCOLN HISTORY PAGE
 * ============================================ */

.history-subtitle {
        margin: 0;
	text-align: left;
        font-weight: 600;
        color: var(--text-muted);
}

/* ===============================================
 * TOWNS & COMMUNITY PAGE
 * =============================================== */

.img-town img {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 400px;
	border: 1px solid #000;
}

/* ===============================================
 * HISTORICAL MARKER CSS
 * =============================================== */

.marker-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 1400px;
  margin: 0 auto 2rem;
}

.marker {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.marker-photo {
  flex: 0 0 280px;
  background: #f4efe6;
}

.marker-photo a {
  display: block;
}

.marker-photo img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.marker-body {
  flex: 1;
  padding: 1.1rem 1.4rem 1.2rem 0;
}

.marker-title {
  margin: 0 0 0.5rem;
  color: #8b0000;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.35rem;
  font-size: 1.3rem;
}

.marker-text {
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.marker-meta {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
}

@media (max-width: 700px) {
  .marker {
    flex-direction: column;
  }
  .marker-photo {
    flex: none;
    width: 100%;
  }
  .marker-photo img {
    height: 200px;
  }
  .marker-body {
    padding: 1rem 1.25rem 1.25rem;
  }
}

/* ===========================================
 * WHAT'S NEW BUTTON AND LIST CSS
 * =========================================== */

.whats-new-toggle {
    position: fixed;
    top: 50%;
    left: -42px;
    transform: translateY(-50%) rotate(90deg);
    background-color: var(--dark-green); /* bronze-dark, #5c4033); */
    color: #fff;
    border: 2px solid var(--gold-brass, #b5944f);
    border-bottom: none;
    padding: 10px 20px;
    font-family: Georgia, serif;
    font-size: 1.05rem;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    z-index: 999;
    box-shadow: 0px -4px 8px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease;
  }

.whats-new-toggle:hover {
    background-color: var(--gold-brass, #b5944f);
  }

.whats-new-panel {
    position: fixed;
    top: 0;
    left: -380px;
    width: 350px;
    height: 100vh;
    background-color: var(--card-bg, #f4ecd8);
    border-right: 4px solid var(--gold-brass, #b5944f);
    box-shadow: 5px 0 20px rgba(0,0,0,0.4);
    z-index: 1000;
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
  }

.whats-new-panel.is-open {
    left: 0;
  }

.panel-header {
    background-color: var(--parchment-header, #e8ddc5);
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid var(--border-color, #c8b99a);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

.panel-header h3 {
    margin: 0;
    color: var(--bronze-dark, #5c4033);
    font-family: Georgia, serif;
    font-size: 1.35rem;
  }

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--bronze-dark, #5c4033);
    cursor: pointer;
    padding: 0;
    line-height: 0.5;
  }

.close-btn:hover {
    color: var(--gold-brass, #b5944f);
  }

.panel-content {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
  }

.update-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

.update-list li {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px dashed var(--border-color, #c8b99a);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted, #5a5347);
  }

.update-list li:last-child {
    border-bottom: none;
  }

.update-list li strong {
    display: block;
    color: var(--bronze-dark, #5c4033);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.35rem;
  }

/* =================================================
 * TABLE FILTERr — birth lists and similar 
 * ================================================= */

.table-search-label {
  display: block;
  margin: 1.25rem 0 0.35rem;
  font-weight: 600;
  color: var(--text);
}

.table-search {
  display: block;
  width: 100%;
  max-width: 28rem;
  margin: 0 0 1rem;
  padding: 0.55rem 0.75rem;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.table-search:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent-gold-deep);
}

.table-search::placeholder {
  color: var(--muted);
}

/* ==================================================
 * TABLE SEARCH FEATURE - BIRTHS & OTHERS
 * ================================================== */

.table-tools {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: end;
  margin: 1.25rem 0 1rem;
}

.table-tools-search label,
.table-search-label {
	display: inline;
  margin-top: 0 0.5rem 0 0;
}

.table-tools-search .table-search {
	display: block;
	margin-top: 0.35rem;
}

.table-tools-reset {
  padding-bottom: 0.1rem;
}

.table-count {
	display: inline;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
}

.table-empty {
  margin: 0.5rem 0;
  font-weight: 600;
  color: var(--text);
}



@media (max-width: 40em) {
  .table-tools {
    grid-template-columns: 1fr;
  }
}

/* ==============================================================
 * THIS HIDES CAPTION UNDER <table> and is for screen readers
 * ============================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.pswp__filename-caption {
  position: absolute;
  top: 56px;
  right: 16px;
  left: auto;
  bottom: auto;
  color: #fff;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  z-index: 10;
}

.class-photo {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================
 * Table Grid for Pond School 1911
 * ========================================================= */

.two-column-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.grid-card {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.grid-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 1.25rem;
}

.card-body h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: #1e293b;
}

.card-body p {
  margin: 0;
  color: #475569;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .two-column-grid {
    grid-template-columns: 1fr;
  }
}
