/* page section wrapper baseline */
.section-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
  box-sizing: border-box;
}

/* Cemetery header banner */
.cemetery-header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 1rem;
  text-align: center;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
}
.cemetery-header-title {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.1;
  letter-spacing: 0.2px;
  color: var(--text-heading, #222);
}

/* Video and media tweaks (complements existing rules) */
.cemetery-video-wrapper {
  display: block;
  margin: 0 auto 1.5rem;
}
.cemetery-video {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  max-width: 900px;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(20,20,20,0.06);
}

/* Download button (keeps your existing look; add focus/disabled states) */
.download-button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0.5rem 0;
  padding: 0.45rem 0.9rem;
  background-color: var(--primary-green);
  color: var(--white);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
}
.download-button:focus,
.download-button:hover {
  filter: brightness(0.95);
  text-decoration: none;
}
.download-button[aria-disabled="true"],
.download-button.disabled {
  background-color: #e6e6e6;
  color: #9a9a9a;
  pointer-events: none;
}

/* Link blocks and sublabels */
.cemetery-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.link-block {
  display: inline-block;
}
.link-button {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}
.link-sublabel {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #666;
}

/* Revolutionary war subsections: two column layout */
.revolutionary-subsection {
  margin: 1.25rem 0;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(0,0,0,0.04);
}
.revolutionary-subsection .subheader {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: var(--text-strong, #111);
}

/* two column content area */
.two-col {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.col-left {
  flex: 1 1 0;
  min-width: 0;
}
.col-right {
  flex: 0 0 320px;
  max-width: 320px;
}

/* ===========================
   Layout Baseline
   =========================== */
.section-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
  box-sizing: border-box;
}

/* ===========================
   Cemetery Header Banner
   =========================== */
.cemetery-header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 1rem;
  text-align: center;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
}
.cemetery-header-title {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: 0.2px;
  font-weight: 700;
  color: var(--text-heading, #222);
}

/* ===========================
   Video / Media
   =========================== */
.cemetery-video-wrapper {
  display: block;
  margin: 0 auto 1.5rem;
}
.cemetery-video {
  width: 100%;
  aspect-ratio: 16/9;
  max-width: 900px;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(20,20,20,0.08);
  overflow: hidden;
}

/* ===========================
   Download Button
   =========================== */
.download-button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0.5rem 0;
  padding: 0.5rem 1rem;
  background-color: var(--primary-green);
  color: var(--white);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.2s ease, filter 0.2s ease;
}
.download-button:hover,
.download-button:focus {
  filter: brightness(0.95);
  text-decoration: none;
}
.download-button[aria-disabled="true"],
.download-button.disabled {
  background-color: #e6e6e6;
  color: #9a9a9a;
  pointer-events: none;
}

/* ===========================
   Link Blocks
   =========================== */
.cemetery-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.link-block {
  display: inline-block;
}
.link-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  background-color: var(--primary-green, #2a7);
  color: var(--white, #fff);
  transition: background-color 0.2s ease;
}
.link-button:hover,
.link-button:focus {
  background-color: var(--primary-green-hover, #268);
}
.link-sublabel {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #666;
}

/* ===========================
   Revolutionary War Subsections
   =========================== */
.revolutionary-subsection {
  margin: 1.25rem 0;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.revolutionary-subsection .subheader {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-strong, #111);
}

/* ===========================
   Two Column Layout
   =========================== */
.two-col {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.col-left {
  flex: 1 1 0;
  min-width: 0;
}
.col-right {
  flex: 0 0 320px;
  max-width: 320px;
}

/* ===========================
   Names List
   =========================== */
.names-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.name-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(0,0,0,0.06);
  align-items: center;
}
.name {
  font-weight: 600;
  color: var(--text, #222);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.years {
  color: #666;
  font-size: 0.95rem;
  flex: 0 0 auto;
  margin-left: .5rem;
}

/* ===========================
   Subsection Images
   =========================== */
.subsection-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.image-caption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #666;
  text-align: center;
}

/* ===========================
   Civil War Section
   =========================== */
.cemetery-civil-war .section-head {
  margin-bottom: 0.75rem;
}
.cemetery-civil-war .section-title {
  margin: 0 0 0.25rem;
  font-weight: 700;
}
.cemetery-civil-war .section-subtitle {
  margin: 0 0 0.75rem;
  color: #555;
  font-size: 0.98rem;
}

/* Civil War List */
.civil-war-list {
  margin-top: 0.5rem;
}

/* Soldier List */
.soldier-list {
  list-style: none;
  margin: 0;
  padding: 0;
  column-gap: 2rem;
  column-fill: balance;
  column-width: 280px;
}
.soldier-item {
  break-inside: avoid;
  padding: 0.25rem 0;
}
.soldier-name {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  line-height: 1.3;
}
.name-surname {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-strong, #111);
}
.name-comma {
  color: #999;
}
.name-given {
  color: var(--text, #222);
  font-weight: 500;
}
.name-honorific {
  font-style: italic;
  font-weight: 600;
  color: #4b5;
  margin-right: 0.25rem;
}
.cemetery-civil-war .name-given abbr,
.cemetery-civil-war .name-given .initials {
  letter-spacing: 0.2px;
}
.soldier-item:hover .name-surname,
.soldier-item:focus-within .name-surname {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

/* ===========================
   Responsive Adjustments
   =========================== */
@media (max-width: 860px) {
  .col-right {
    display: none;
  }
  .two-col {
    flex-direction: column;
  }
  .cemetery-header-title {
    font-size: 1.35rem;
  }
  .download-button,
  .link-button {
    width: 100%;
    text-align: center;
  }
}
@media (max-width: 640px) {
  .soldier-list {
    column-width: auto;
    column-count: 1;
  }
}

/* ===========================
   Accessibility
   =========================== */
.cemetery-header:focus-within,
.revolutionary-subsection:focus-within {
  outline: 3px solid rgba(0,120,80,0.12);
  outline-offset: 4px;
}
