/* Lincoln KYGenWeb — master.css
   Cleaned 2026-09-05
   - one token set (legacy names aliased)
   - sticky footer via .page / .main / .site-footer
   - tables scoped to classes (no global th/td/tr)
   - duplicate PhotoSwipe / searchable / footer blocks removed
   - syntax errors fixed
*/

/* ==========================================================================
   TOKENS
   ========================================================================== */
:root {
  --bg: #faf8f5;
  --header: #f4efe6;
  --nav: #0d3520;
  --nav-text: #fff;
  --nav-hover: #b8975a;
  --accent: #b8975a;
  --accent-green: #032211;
  --text: #1e2e22;
  --muted: #4a5568;
  --link: #0d3250;
  --link-hover: #b8975a;
  --card: #ffffff;
  --border: #e2ddd5;
  --button-border: #bdb5a8;
  --max: 90rem;

  /* Legacy aliases so older class names keep working */
  --primary-deep: var(--nav);
  --primary: #3a684c;
  --primary-muted: #4a785c;
  --primary-soft: #5e8f74;
  --primary-accent: #6fa085;
  --primary-bg-soft: #eef5f1;
  --primary-whatsnew: #e0aa9c;
  --accent-gold: var(--accent);
  --accent-gold-deep: #8c6f3e;
  --bg-page: var(--bg);
  --bg-surface: #ffffff;
  --bg-muted: #f8f5ee;
  --bg-stripes: #d1cbbe;
  --text-main: var(--text);
  --text-inverse: #f9f6ef;
  --text-muted: var(--muted);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --btn-primary: #4a5d6e;
  --btn-primary-soft: #344657;
  --btn-second: #592d0b;
  --btn-second-soft: #7f4b23;

  --pswp-icon-color: #ffffff;
  --pswp-icon-color-secondary: #cccccc;
}

/* ==========================================================================
   RESET + STICKY PAGE SHELL
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

html {
  overflow-x: hidden;
}

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

.page {
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main,
.main {
  flex: 1 0 auto;
}

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

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
}

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

p {
  margin: 0 0 1.5em;
}

ul {
  padding-left: 2.5rem;
  margin-left: 0;
}

ul ul {
  padding-left: 1.875rem;
}

section {
  display: block;
}

.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: #fff;
  padding: 0.5rem;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: relative;
  background: var(--header);
  border-bottom: 4px solid var(--accent);
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/MapOfKY.jpg");
  background-position: center right;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.3;
  mix-blend-mode: multiply;
  filter: sepia(0.4) contrast(0.9);
  pointer-events: none;
}

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

.site-branding {
  flex: 1 1 auto;
  min-width: 12rem;
}

.site-branding a,
.brand-link,
.site-title,
.site-tagline,
.brand {
  text-decoration: none;
  color: inherit;
}

.brand {
  display: block;
}

.site-title {
  display: block;
  font-size: 1.85rem;
  font-weight: 700;
}

.site-tagline {
  display: block;
  font-size: 0.95rem;
  color: var(--muted);
}

.header-search {
  flex: 0 1 auto;
}

.search-form,
.header-search .search-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.search-form input[type="search"],
.header-search input[type="search"] {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  min-width: 12rem;
}

.search-form button,
.header-search button {
  background: var(--nav);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 40em) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .search-form {
    width: 100%;
  }

  .search-form input[type="search"] {
    flex: 1;
    min-width: 0;
  }
}

/* ==========================================================================
   NAV
   ========================================================================== */
.site-nav {
  background: var(--nav);
  border-bottom: 4px solid var(--accent);
}

.nav-toggle {
  display: none;
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--nav);
  color: var(--nav-text);
  border: 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 48px;
}

.nav-menu {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: var(--max);
}

.nav-menu a {
  display: block;
  padding: 0.85rem 1.1rem;
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 500;
  min-height: 44px;
  text-align: center;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--accent);
  background: #1e1714;
}

@media (max-width: 48em) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
  }

  .nav-menu.is-open {
    display: flex;
    align-items: stretch;
  }

  .nav-menu a {
    text-align: center;
  }
}

/* Legacy sticky sub-header / primary-nav (older templates) */
.sub-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary-deep);
  color: var(--text-inverse);
  padding: 0.75rem 0;
  border-bottom: 4px solid var(--accent);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  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,
.site-brand a:focus {
  color: var(--accent);
}

.primary-nav {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  position: relative;
}

.nav-link,
.dropdown-toggle {
  display: block;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  text-align: center;
  min-width: 120px;
}

.nav-link:hover,
.dropdown-toggle:hover,
.nav-link:focus,
.dropdown-toggle:focus {
  background: var(--accent);
  color: #fff;
}

.dropdown {
  position: relative;
}

.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;
  padding: 0.5rem 0;
  z-index: 1000;
}

.dropdown:hover > .dropdown-menu {
  display: block;
}

.dropdown-menu li a,
.submenu-label {
  display: block;
  padding: 0.6rem 1.2rem;
  color: #fff;
  text-decoration: none;
}

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

.menu-toggle {
  display: none;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 280px;
    margin: 0 auto 1rem;
    padding: 0.85rem 1.25rem;
    background: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 48px;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .nav-list.active {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.15);
  }

  .dropdown.open > .dropdown-menu {
    display: block;
  }

  .dropdown:hover > .dropdown-menu {
    display: none;
  }

  .header-container {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }
}

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

.county-intro,
.home-intro,
.page-intro {
  margin-bottom: 1.75rem;
}

.home-intro,
.main > h1:first-of-type,
.page-intro {
  text-align: center;
}

.page-intro p,
.home-intro p,
.county-intro {
  color: var(--muted);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* ==========================================================================
   CARDS + GRIDS
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.85rem 0.9rem;
}

.card-pension,
.card-civil-war {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.85rem 0.9rem;
  box-shadow: 0 2px 6px rgba(80, 55, 20, 0.12);
  margin-bottom: 20px;
}

.card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

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

.card p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  flex: 1 1 auto;
  font-size: 0.95rem;
}

.card .button {
  margin-top: auto;
  align-self: center;
}

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

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

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.section-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.section-link {
  display: block;
  padding: 1.1rem 1.15rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.section-link h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.section-link p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.home-feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0 0 2rem;
}

.home-feature-row .feature-item {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  line-height: 0;
}

.home-feature-row .feature-item img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
  display: block;
}

@media (max-width: 40em) {
  .home-feature-row {
    grid-template-columns: 1fr;
  }
}

.feature-figure {
  margin: 0;
  width: 100%;
}

.feature-figure figcaption,
figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

figure {
  margin: 1.5rem 0;
  text-align: center;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.button,
.button-grid .button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #f4efe6;
  color: var(--text);
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid var(--button-border);
  font-weight: 600;
  font-size: 0.95rem;
}

.button:hover,
.button-grid .button:hover,
.card:hover .button {
  background: #ebe4d8;
  border-color: #a89f90;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.button-grid .button {
  display: block;
  text-align: center;
}

.btn {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 10px;
}

.btn-primary {
  background-color: var(--btn-primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--btn-primary-soft);
}

.btn-second {
  background-color: var(--btn-second);
  color: #fff;
  border: 2px solid #351700;
}

.btn-search {
  background-color: var(--accent);
  color: #fff;
}

.back-button {
  display: inline-block;
  margin: 1.5rem 0.5rem;
  padding: 0.9rem 2rem;
  background: #8b4513;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
}

.home-button {
  background: #556b2f;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer,
#footer {
  background: var(--nav);
  color: var(--text-inverse);
  text-align: center;
  padding: 0;
  border-top: 4px solid var(--accent);
  width: 100%;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 2.5rem;
}

.footer-column {
  flex: 1 1 16rem;
  min-width: 0;
  text-align: center;
}

.footer-column h3,
.footer-column h4 {
  color: #fff;
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.no-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

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

.footer-column a:hover,
.footer-column a:focus {
  color: #fff;
}

.footer-logo img {
  height: auto;
}

.footer-copyright {
  width: 100%;
  margin: 0;
  padding: 1rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 48em) {
  .footer-row {
    flex-direction: column;
    gap: 1.5rem;
  }
}

.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 1000;
  display: none;
  padding: 0.55rem 0.9rem;
  background: var(--nav);
  color: #fff;
  border: 4px solid var(--nav-hover);
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.back-to-top.visible {
  display: block;
}

/* ==========================================================================
   TABLES — scoped classes only
   ========================================================================== */
.data-table,
.burial-table,
.postoffice-table,
.church-table,
.school-table,
.roster-table,
.table {
  width: 100%;
  border-collapse: separate; /* collapse; */
  border-spacing: 0;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.data-table th,
.data-table td,
.burial-table th,
.burial-table td,
.roster-table th,
.roster-table td,
.table th,
.table td {
  padding: 0.45rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: #f4efe6;
  color: var(--text);
  font-weight: 600;
}

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

.data-table tbody tr:hover {
  background: #f0ebe3;
}

.burial-table th,
.church-table th,
.school-table th,
.postoffice-table th {
  background: var(--primary-muted);
  color: #fff;
  font-weight: 600;
}

.burial-table td,
.church-table td,
.school-table td,
.postoffice-table td {
  border: 1px solid #ddd;
}

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

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

.roster-table th {
  background: #2c3e50;
  color: #fff;
}

.table thead th {
  border-bottom: 2px solid #dee2e6;
  background: #f8f9fa;
  color: var(--text);
  position: sticky;
  top: 0;
  z-index: 2;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.05);
}

.table-bordered,
.table-bordered th,
.table-bordered td {
  border: 1px solid #dee2e6;
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.075);
}

.table-responsive {
  overflow-x: auto;
}

/* ===================================================
 * Sortable — one icon method: library default arrows
/* Sortable — always-visible sort cue
 * ===================================================  */

.sorting-note {
	text-align: center;
}

.sortable th,
table.sortable th {
  cursor: pointer;
  user-select: none;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 0.2em;
}

.sortable th.no-sort {
  pointer-events: none;
  cursor: default;
  text-decoration: none;
}

.sortable th.no-sort::after {
  content: none;
}

.sortable th::after {
  margin-left: 0.35em;
  content: "\2195"; /* ↕ */
  color: inherit;
  opacity: 0.45;
  font-weight: 400;
}

.sortable th:hover::after {
  opacity: 0.8;
}

.sortable th.dir-u::after {
  content: "\2191"; /* ↑ */
  opacity: 1;
}

.sortable th.dir-d::after {
  content: "\2193"; /* ↓ */
  opacity: 1;
}

.sortable th.sort-asc::after {
  content: "\2191";
  opacity: 1;
}
.sortable th.sort-desc::after {
  content: "\2193";
  opacity: 1;
}

/* ================================================================
 * Searchable — keep searchable.css linked as well.
 * Do NOT hide [role="button"] — that also kills sortable headers. 
 * ================================================================ */

.table-search,
.global-search .table-search {
  width: 100%;
  max-width: 520px;
  padding: 0.7em 1em;
  margin: 1em auto 1.5em;
  border: 2px solid #b8860b;
  border-radius: 6px;
  font-size: 1.1em;
  background: #fffdf7;
  color: #333;
}

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

.searchable thead input {
  display: block;
  width: 100%;
  max-width: 800px;
  margin: 0.5em auto 1em;
  padding: 0.8em 1em;
  font-size: 1.1rem;
  border: 2px solid #b8860b;
  border-radius: 6px;
  background: #fffdf7;
}

.letter-nav,
.alphabet-jump,
.alphabet-jump-bride,
.alphabet-jump-groom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 0.8rem;
  margin: 1.5rem 0 1.75rem;
  font-weight: 600;
}

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

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

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

.letter-section h2,
.letter-section h3 {
  margin: 0 0 0.75rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
}

.muted {
  color: var(--muted);
  font-style: italic;
}

.global-search {
  display: flex;
  justify-content: center;
  margin: 0 0 2.25rem;
}

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

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

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

.photo-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.photo-item {
  flex: 1 1 300px;
  max-width: 45%;
  text-align: center;
}

@media (max-width: 768px) {
  .photo-item {
    max-width: 100%;
  }
}

.pswp__button--download-button,
.pswp__button--custom-zoom-button {
  width: auto !important;
  min-width: 78px !important;
  padding: 8px 6px !important;
  white-space: nowrap !important;
}

.single-image-container {
	display: flex;
	justify: center;
	text-align: center;
}

/* ==========================================================================
   PAGE BLOCKS
   ========================================================================== */

.content-block {
  max-width: 42rem;
  line-height: 1.6;
}

.source-note {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.obit-container {
  width: 100%;
  padding: 2rem 1rem;
}

.obit-card,
.obit-entry {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.obit-card {
  border-left: 4px solid var(--accent);
}

/*
.cemetery-notes,
.location-notes,
.birth-notes,
.death-notes,
.post-office-notes,
.clerk-notes,
.general-notes,
.geo-location,
.info-box {
  background: #f8f9fa;
  padding: 1.2rem 1.5rem;
  border-radius: 6px;
  margin: 1.5rem 0;
  border: 1px solid #d0d0d0;
  border-left: 5px solid var(--accent);
} */

.messagebox {
  margin: 1.5em 0;
  padding: 0.8em 1em;
  border: 1px solid #a2a9b1;
  border-left-width: 10px;
  border-left-color: #3366cc;
  background-color: #f8f9fa;
  border-radius: 4px;
  display: flex;
  gap: 1em;
}

.red-star {
  color: #b32134;
}

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

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

.hero-landing {
  width: 100%;
  max-width: 90rem;
}

.hero {
  position: relative;
  min-height: 500px;
  height: 80vh;
  max-height: 694px;
  background-image: url("../images/header.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-top: 4px solid var(--accent);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100%;
}

.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: #8b5a2b;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

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

.left {
  left: 0;
}

.right {
  left: 50%;
}

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

.site-notice {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff;
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 9999;
}

.page-title {
	color: var(--text-main)
}

.temp-holder,
.page-title,
.birth-table-header {
  text-align: center;
}

.search-page {
  --pagefind-ui-primary: #b8975a;
  --pagefind-ui-text: #1e2e22;
  --pagefind-ui-background: #faf8f5;
  margin-top: 1rem;
}

/* Freefind — scoped so it does not restyle every input on the site */
.freefind input {
  padding: 12px;
  width: 100%;
  border: 2px solid #cc0000;
  border-radius: 10px;
}

.citation-tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
  border-bottom: 1px dotted #007bff;
}

.citation-tooltip .tooltip-content {
  visibility: hidden;
  width: 300px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 10px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
}

.citation-tooltip:hover .tooltip-content {
  visibility: visible;
  opacity: 1;
}
/* =====================================================
 * Historical Markers CSS 09.04.26 lcjones
 * ===================================================== */

.marker-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 70rem;
  margin: 0 auto;
}

.marker {
  display: grid;
  grid-template-columns: minmax(14rem, 22rem) 1fr;
  gap: 1.25rem 1.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.marker-photo {
  margin: 0;
  background: #f4efe6;
}

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

.marker-body {
  padding: 1.25rem 1.5rem 1.5rem 0;
}

.marker-title {
  margin: 0 0 0.6rem;
  color: #8b0000;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.4rem;
}

.marker-text,
.marker-reverse {
  margin: 0 0 0.85rem;
  line-height: 1.55;
}

.marker-meta {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 48em) {
  .marker {
    grid-template-columns: 1fr;
  }
  .marker-body {
    padding: 0 1rem 1.25rem;
  }
}

.table-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 0.75rem 0;
}

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

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

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

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

/* =======================================
 * NEW BREADCRUMBS
 * ======================================= */

/* ==========================================================================
   Senior-Accessible Breadcrumb Navigation (Parchment & Brass Theme)
   ========================================================================== */

.breadcrumb-container {
  background-color: #f4eee1; /* Light parchment background box */
  border: 1px solid #dcd1ba; /* Subtle border */
  border-left: 4px solid #8b6b23; /* Brass accent left border */
  border-radius: 6px;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
  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;
}

/* ========================================================
 * CIVIL WAR JUMP LETTERS 09-11-26 lcjones
 * ======================================================== */
/*
.cw-jump-letters {
	text-align: center;
	margin: 1.5rem 0;
	font-size: 1.1rem;
	border: 1px solid var(--accent-gold);
	border-radius: 6px;
}

.cw-jump-letters a {
	color: var(--text-main);
}

.cw-jump-letters a:hover {
	color: var(--primary-soft);
}
*/

/* ========================================================
 * CIVIL WAR COMPANY JUMP NAVIGATION (Parchment & Brass Theme)
 * ======================================================== */

.cw-company-nav {
  background-color: #f4eee1; /* Light parchment background box */
  border: 1px solid #dcd1ba;
  border-left: 4px solid #8b6b23; /* Brass accent left border */
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.cw-company-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cw-company-list a {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #004080; /* High-contrast link color */
  text-decoration: underline;
  background-color: #ffffff;
  border: 1px solid #c8bc9e;
  border-radius: 4px;
  transition: all 0.15s ease-in-out;
}

/* Hover & Focus States (Fixes previous typo) */
.cw-company-list a:hover {
  color: #8b6b23;
  background-color: #e8deca;
  border-color: #8b6b23;
  text-decoration: none;
}

.cw-company-list a:focus {
  outline: 3px solid #8b6b23;
  outline-offset: 2px;
}

/* ================================================
 * CEMETERY PAGE LAYOUTS
 * ================================================ */

.cemetery-container {
}

.cemetery-header {
	text-align: center;
	margin-bottom: 2rem;
}

.cemetery-title {
	text-align: center;
	font-size: 2.25rem;
	color: #1e3a8a;
	margin-bottom: 0.5rem;
}

.cemetery-location-card {
	max-width: 1000px;
	margin: 1.5rem auto 2.5rem auto;
	padding 1.25rem;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background-color: #f8fafc;
	text-align: center;
	box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.h2-cemetery {
	font-size: 1.1rem;
	color: #1e293b;
	margin-top: 0;
	margin-bottom: 0.75rem;
	display: flex;
	text-align: center;
	justify-content: center;
	gap: 0.5rem;
}

.alternate-names {
	text-align: center;
	color: #6b7280;
	font-style: italic;
	margin-top: 0.25rem;
}






