/* =========================================================
   ROOT / THEME VARIABLES
   ========================================================= */
	:root {
  /* BODY TEXT */
  --font-body: Georgia, "Times New Roman", serif;
  --font-body-size: 1rem;
  --font-body-line: 1.55;

  /* HEADINGS */
  --font-heading: "Libre Baskerville", Georgia, serif;
  --font-heading-weight: 700;
  --font-heading-line: 1.25;

  /* SUBHEADINGS / ACCENTS */
  --font-subhead: "Monotype Corsiva", "Times New Roman", serif;
  --font-subhead-size: 1.2rem;

  /* TABLES */
  --font-table: Georgia, "Times New Roman", serif;
  --font-table-size: 0.95rem;

  /* SMALL NOTES */
  --font-small: "Times New Roman", serif;
  --font-small-size: 0.85rem;
}



<!--:root{
  --font-body: Arial, Monotype Corsiva, Helvetica, sans-serif;
  --font-heading: "Monotype Corsiva", Arial, Helvetica, sans-serif;

  --bg-page: #e3e3e3;
  --bg-paper: #ffffff;

  --panel-bg: #f3efe9;
  --panel-note-bg: #e1d9cd;
  --panel-submit-bg: #f9f6ef;

  --text: #222;
  --link: #0b4b8a;

  --brand-red: #b00000;
  --header-bg: #e1d9cd;
  --header-border: #b6c6d4;

  --border: #d0d0d0;
  --shadow: 0 0 10px rgba(0,0,0,.25);

  --radius: 6px;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: 1rem;
  --space-4: 1.25rem;
}-->


/* =========================================================
   BASE
   ========================================================= */

body{
  margin:0;
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text);
}

.page{
  max-width:1000px;
  margin:1.5rem auto;
  padding:1rem 1.25rem;
  background: var(--bg-paper);
  box-shadow: var(--shadow);
}

/* =========================================================
   HEADER
   ========================================================= */

.site-title,
.site-subtitle {
  font-family: var(--font-heading);
}
.site-header{
  background: var(--header-bg);
  border-top:3px solid var(--header-border);
  border-bottom:3px solid var(--header-border);
  padding:1rem 0;
  text-align:center;
}

.header-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:1rem;
  flex-wrap:nowrap;
}

.header-col{
  width:160px;
  text-align:center;
  flex-shrink:0;
}

.header-col img{
  display:block;
  margin:0 auto .4rem;
}

.header-center{
  flex:1;
  min-width:300px;
}

.site-title{
  font-size:3rem;
  font-weight:bold;
  color: var(--brand-red);
  margin:.5rem 0 .25rem;
}

.site-subtitle,
.coord-info,
.updated-line{
  font-size:2rem;
  margin:.2rem 0;
}

/* =========================================================
   PANELS
   ========================================================= */

/* Base panel */
.panel{
  margin:1.25rem 0;
  padding:1rem 1.25rem;
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-bg);
}

/* Panel variants */
.panel.note{
  background: var(--panel-note-bg);
  border:1px dashed var(--border);
}

.panel.submit{
  background: var(--panel-submit-bg);
  border-left:4px solid #c9b89e;
}

/* Cemetery index panels (dense) */
.panel.cemetery{
  padding:.4rem .6rem;
  margin:.4rem 0;
}

.panel.cemetery h2{
  margin:0 0 .25rem 0;
  padding:0;
  border:none;
  font-size:1rem;
}

.panel.cemetery ul{
  margin:0;
  padding-left:1rem;
  columns:2;
  column-gap:2rem;
}

.panel.cemetery li{
  margin:0;
  line-height:1.15;
  break-inside:avoid;
}

/* Optional: tighten lists in ALL panels (retains your intent) */
.panel ul{
  margin:0;
  padding-left:1.2rem;
}

.panel > ul > li{
  margin-bottom:.5rem;
}

/* “Back to top” link styling (if you use <p class="back-top">) */
.back-top{
  margin:.15rem 0 0;
  font-size:.95rem;
  text-align:center;
  opacity:.6;
}

.back-top a{
  text-decoration:none;
}

.back-top a:hover{
  opacity:1;
}

/* Small helper often used inside panels */
.external-link{
  text-align:right;
  font-size:.75rem;
}

/* =========================================================
   OPTIONAL PANEL BACKGROUND IMAGE VARIANTS
   Uncomment the one you want to test
   ========================================================= */


/* -----------------------------------------
   1) IMAGE ONLY (replaces panel color)
----------------------------------------- */

/*
.panel {
  background: url("your-image.jpg") center/cover no-repeat;
}
*/


/* -----------------------------------------
   2) IMAGE + SOFT WHITE OVERLAY
   (best for readability)
----------------------------------------- */

/*
.panel {
  background:
    linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)),
    url("your-image.jpg") center/cover no-repeat;
}
*/


/* -----------------------------------------
   3) IMAGE BLENDED WITH PANEL COLOR
   (keeps your theme intact)
----------------------------------------- */

/*
.panel {
  background:
    var(--panel-bg) url("your-image.jpg") center/cover no-repeat;
  background-blend-mode: multiply;
}
*/


/* -----------------------------------------
   4) TILED TEXTURE (paper, fabric, stone)
----------------------------------------- */

/*
.panel {
  background: var(--panel-bg) url("your-image.jpg") repeat;
  background-size: auto;
}
*/


/* === LAYOUT HELPERS === */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* === PANEL LIST TIGHTENING === */
.panel ul {
  margin: 0;
  padding-left: 1.2rem;
}

.panel > ul > li {
  margin-bottom: .5rem;
}



/* =========================================================
   HEADINGS
   ========================================================= */

h1,h2,h3,h4{
  margin:0 0 .5rem 0;
  font-weight:bold;
}

h2{
  font-size:1.15rem;
  padding-bottom:.25rem;
  border-bottom:1px solid var(--border);
  color:#2f4a60;
}

h3{
  font-size:1rem;
  color:#444;
}

/* =========================================================
   LINKS
   ========================================================= */

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

a:hover{
  text-decoration:underline;
}

/* =========================================================
   NAVIGATION LISTS
   ========================================================= */

.nav-grid{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-wrap:wrap;
  gap:.5rem 2rem;
}

.nav-grid li{
  width:45%;
}

/* Jump to area navigation */
.jump-nav{
  columns:3;               /* try 2 if you prefer */
  column-gap:2rem;
  margin-top:.5rem;
}

.jump-nav a{
  display:block;
  margin:0 0 .35rem 0;
  text-decoration:none;
}


.jump-nav a:hover{
  background:#f2f2f2;
}


/* =========================================================
   SEARCH
   ========================================================= */

.search-box{
  text-align:center;
  background:#e0e0e0;
  padding:.75rem;
  border-radius:4px;
  display:inline-block;
}

.loc-line{
  display:flex;
  justify-content:space-between;
 /*align-items:right;*/
}


/* =========================================================
   TABLES (GENERIC + VARIANTS)
   ========================================================= */

.data-table{
  width:100%;
  border-collapse:collapse;
  margin-top:1.25rem;
  line-height:1.6;
  display: block;
  max-height: 600px; /* adjust to taste */
  overflow-y: auto;
}


.data-table th{
  background:#f2f2f2;
  border:1px solid #bbb;
  padding:8px;
  text-align:left;
}

/* ⭐ Freeze the header row */
.data-table thead th {
  position: sticky;
  top: 0;
  background: #f2f2f2; /* match your header color */
  z-index: 5;
}

.data-table td{
  border:1px solid #ddd;
  padding:8px;
  vertical-align:top;
}

/* Dense tables (cemetery, census) */
.data-table.compact th,
.data-table.compact td{
  padding:8px;
}

table td:nth-child(2),
table td:nth-child(3),
table td:nth-child(4){
  text-align:center;
}

/* =========================================================
   IMAGE OVERLAY (REFERENCE PANE)
   ========================================================= */

.img-overlay{
  position:fixed;
  inset:0;
  background: var(--bg-paper);
  display:none;                 /* hidden by default */
  align-items:center;
  justify-content:center;
  z-index:9999;
}

/* show overlay when JS adds .active */
.img-overlay.active{
  display:flex;
}

/* stage that holds the zoomable image */
.img-stage{
  position:relative;
  width:90vw;
  height:90vh;
  background: var(--bg-paper);
  overflow:hidden;
}

/* zoomable / pannable image */
.img-stage img{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%) scale(1);
  transform-origin:center center;
  cursor:grab;
  max-width:none;
  max-height:none;
}

/* zoom controls (touch friendly) */
.zoom-controls{
  position:absolute;
  bottom:.5rem;
  right:.5rem;
  display:flex;
  flex-direction:column;
  gap:.25rem;
  z-index:10;
}

.zoom-controls button{
  width:2rem;
  height:2rem;
  font-size:1.2rem;
  border:1px solid #666;
  background:#f8f8f8;
  cursor:pointer;
  opacity:0.9;
}

/* close button in top-right corner of screen */
.img-close{
  position:fixed;
  top:1rem;
  right:1rem;
  width:2.25rem;
  height:2.25rem;
  line-height:2.25rem;
  text-align:center;
  font-size:1.8rem;
  background:rgba(0,0,0,.6);
  border:1px solid #fff;
  border-radius:50%;
  color:#fff;
  cursor:pointer;
  z-index:10001;
}

/* optional caption under the zoomed image */
.img-caption{
  margin-top:.5rem;
  font-size:.9rem;
  color:#333;
  background:#f2f2f2;
  padding:.5rem .75rem;
  border-radius:4px;
}

/* links in text that open the overlay */
a.img-ref{
  cursor:pointer;
  text-decoration:none;
}

a.img-ref::after{
  content:" 📷";
  font-size:.85em;
  color:#444;
}

/* static plate image inside the page (NOT the overlay) */
figure.cemetery-plate{
  margin:0.5rem auto 1rem;
  text-align:center;
}

figure.cemetery-plate img{
  max-width:60%;
  height:auto;
}

figure.cemetery-plate figcaption{
  font-size:.85rem;
  color:#444;
  margin-top:.25rem;
}


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

.site-footer{
  text-align:center;
  margin-top:2rem;
  padding-top:1rem;
  border-top:1px solid var(--border);
  font-size:.8rem;
  color:#555;
}

.footer-awards{
  display:flex;
  justify-content:center;
  gap:2rem;
  flex-wrap:wrap;
}

/* === CEMETERIES: HIGH-DENSITY INDEX === */
/* ... your existing commented code ... */


/* =========================================================
   OPTIONAL PANEL BACKGROUND IMAGE VARIANTS
   Uncomment the one you want to test
   ========================================================= */

/* IMAGE ONLY */
/*
.panel {
  background: url("your-image.jpg") center/cover no-repeat;
}
*/

/* IMAGE + OVERLAY */
/*
.panel {
  background:
    linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)),
    url("your-image.jpg") center/cover no-repeat;
}
*/

/* BLEND */
/*
.panel {
  background:
    var(--panel-bg) url("your-image.jpg") center/cover no-repeat;
  background-blend-mode: multiply;
}
*/

/* TILED */
/*
.panel {
  background: var(--panel-bg) url("your-image.jpg") repeat;
  background-size: auto;
}
*/

/* === CEMETERIES: HIGH-DENSITY INDEX === */
/* ... your existing commented code ... */


/* =========================================================
   OPTIONAL PANEL BACKGROUND IMAGE VARIANTS
   Uncomment the one you want to test
   ========================================================= */

/*
.panel {
  background: url("your-image.jpg") center/cover no-repeat;
}
*/

/*
.panel {
  background:
    linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)),
    url("your-image.jpg") center/cover no-repeat;
}
*/

/*
.panel {
  background:
    var(--panel-bg) url("your-image.jpg") center/cover no-repeat;
  background-blend-mode: multiply;
}
*/

/*
.panel {
  background: var(--panel-bg) url("your-image.jpg") repeat;
  background-size: auto;
}
*/

/* === CEMETERIES: HIGH-DENSITY INDEX === */
/* ... your existing commented code ... */


/* =========================================================
   OPTIONAL PANEL BACKGROUND IMAGE VARIANTS
   Uncomment the one you want to test
   ========================================================= */

/*
.panel {
  background: url("your-image.jpg") center/cover no-repeat;
}
*/

/*
.panel {
  background:
    linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)),
    url("your-image.jpg") center/cover no-repeat;
}
*/

/*
.panel {
  background:
    var(--panel-bg) url("your-image.jpg") center/cover no-repeat;
  background-blend-mode: multiply;
}
*/

/*
.panel {
  background: var(--panel-bg) url("your-image.jpg") repeat;
  background-size: auto;
}
*/


/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width:700px){


/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width:700px){


/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width:700px){


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width:700px){

  .header-top{
    flex-wrap:wrap;
    justify-content:center;
  }

  .header-col{
    width:140px;
  }

  .header-center{
    min-width:100%;
  }

  .nav-grid li{
    width:100%;
  }

}

/* === CEMETERIES: DENSE LAYOUT (VISIBLE) === */
.panel.cemetery {
  padding: 0.4rem 0.6rem !important;
  margin: 0.5rem 0 !important;
}

.panel.cemetery h2 {
  margin-bottom: 0.3rem;
}

.panel.cemetery ul {
  margin: 0 !important;
  padding-left: 1rem !important;
}

.panel.cemetery li {
  margin: 0 !important;
  line-height: 1.2;
}


.panel.cemetery {
  background: #ecffe6 !important;
}

.back-top {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  text-align: center;
}



/* === CEMETERIES: HIGH-DENSITY INDEX === */

/*.panel.cemetery {
  padding: 0.4rem 0.6rem !important;
  margin: 0.4rem 0 !important;
}

.panel.cemetery h2 {
  margin: 0 0 0.25rem 0 !important;
  padding: 0 !important;
  border: none !important;
  font-size: 1rem;
}

.panel.cemetery ul {
  margin: 0 !important;
  padding-left: 1rem !important;
  columns: 2;
  column-gap: 2rem;
}

.panel.cemetery li {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.15;
  break-inside: avoid;
}


.back-top {
  margin: 0;
  font-size: 0.95rem;
  text-align: center;
  opacity: 0.6;
}

.back-top a {
  text-decoration: none;
}

.back-top a:hover {
  opacity: 1;
}
*/

