/* Carrigtwohill & District Historical Society
   Palette: GAA blue + gold, Cork red accent */

:root {
  --blue: #0b3d6e;
  --blue-deep: #072a4f;
  --blue-mid: #155a96;
  --gold: #e2b84a;
  --gold-soft: #f3d98a;
  --cork-red: #b11f2c;
  --ink: #1c2430;
  --muted: #5a6573;
  --paper: #f7f4ec;
  --paper-2: #efe8d6;
  --white: #fffdf8;
  --line: rgba(11, 61, 110, 0.14);
  --shadow: 0 1px 0 rgba(11, 61, 110, 0.06);
  --font-display: "Fraunces", "Palatino Linotype", Palatino, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 68rem;
  --header-max: 76rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(226, 184, 74, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(11, 61, 110, 0.08), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  min-height: 100vh;
}

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

a {
  color: var(--blue-mid);
  text-underline-offset: 0.15em;
}

a:hover { color: var(--cork-red); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: white;
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--blue);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-bar {
  max-width: var(--header-max);
  margin: 0 auto;
  padding: 1.1rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--blue);
  min-width: 0;
  flex: 1 1 auto;
}

.brand-mark {
  /* Keep the larger emblem from increasing the header's flex footprint. */
  height: clamp(3.5rem, 12vw, 10rem);
  width: auto;
  max-width: none;
  max-height: none;
  flex-shrink: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  object-fit: contain;
  padding: 0;
  transform: translateX(-2.5rem) scale(1.3);
  transform-origin: left center;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.72rem, 1.85vw, 1.2rem);
  color: var(--blue);
  white-space: nowrap;
  max-width: none;
}

.header-actions {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.header-aside {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  flex: 0 1 24rem;
  min-width: 14rem;
  max-width: 26rem;
}

.header-contact {
  text-align: right;
  max-width: 100%;
}

.header-email {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--blue);
  text-decoration: none;
  word-break: break-word;
}

.header-email:hover {
  color: var(--cork-red);
  text-decoration: underline;
}

.header-note {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
  max-width: 24rem;
}

.header-connect {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.header-connect-label {
  margin: 0;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}

.social-nav-header .social-link {
  width: 2.25rem;
  height: 2.25rem;
}

/* Site search */
.header-search {
  position: relative;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-left: 0;
  flex: none;
  z-index: 60;
}

.header-search-form {
  margin: 0;
}

.header-search-field {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  padding: 0.2rem 0.35rem 0.2rem 0.65rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.header-search-field:focus-within {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(226, 184, 74, 0.35);
}

.header-search-icon {
  flex-shrink: 0;
  color: var(--muted);
}

.header-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.45rem 0.25rem;
  outline: none;
}

.header-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.header-search-submit {
  flex-shrink: 0;
  border: 0;
  border-radius: 0.25rem;
  background: var(--blue);
  color: white;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.header-search-submit:hover {
  background: var(--blue-mid);
}

.header-search-results {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  min-width: min(100vw - 2rem, 24rem);
  max-height: min(70vh, 28rem);
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  box-shadow: 0 12px 28px rgba(7, 42, 79, 0.18);
  padding: 0.5rem 0;
}

.header-search-status {
  margin: 0;
  padding: 0.35rem 0.9rem 0.55rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.header-search-options {
  display: flex;
  flex-direction: column;
}

.header-search-option {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.9rem;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid var(--line);
}

.header-search-option:hover,
.header-search-option.is-active {
  background: rgba(11, 61, 110, 0.06);
}

.header-search-option-title {
  font-weight: 700;
  color: var(--blue);
  font-size: 0.98rem;
  line-height: 1.3;
}

.header-search-option-excerpt {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.header-search-option-excerpt mark,
.search-result-excerpt mark {
  background: rgba(226, 184, 74, 0.45);
  color: inherit;
  padding: 0 0.1em;
  border-radius: 0.1em;
}

.header-search-view-all {
  display: block;
  margin: 0.35rem 0.65rem 0.15rem;
  padding: 0.55rem 0.75rem;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.3rem;
}

.header-search-view-all:hover {
  background: var(--paper-2);
  color: var(--cork-red);
}

/* Full search page */
.search-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.search-page-lead {
  margin: 0.35rem 0 0;
  color: var(--muted);
  max-width: 36rem;
}

.search-page-form {
  margin: 1.35rem 0 1rem;
}

.search-page-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  padding: 0.35rem 0.4rem 0.35rem 0.85rem;
  box-shadow: var(--shadow);
  max-width: 40rem;
}

.search-page-field:focus-within {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(226, 184, 74, 0.35);
}

.search-page-icon {
  flex-shrink: 0;
  color: var(--muted);
}

.search-page-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  padding: 0.55rem 0.25rem;
  outline: none;
}

.search-page-submit {
  flex-shrink: 0;
  border: 0;
  border-radius: 0.3rem;
  background: var(--blue);
  color: white;
  font: inherit;
  font-weight: 700;
  padding: 0.55rem 1rem;
  cursor: pointer;
}

.search-page-submit:hover {
  background: var(--blue-mid);
  color: white;
}

.search-page-status {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.search-page-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.search-result-link {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.95rem 1rem;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 0.35rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.search-result-link:hover {
  background: var(--paper);
  border-color: rgba(11, 61, 110, 0.28);
  color: inherit;
}

.search-result-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--blue);
  line-height: 1.3;
}

.search-result-excerpt {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.45;
}

.search-result-url {
  font-size: 0.8rem;
  color: var(--blue-mid);
  word-break: break-all;
}

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

.social-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  color: var(--blue);
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.social-link:hover {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}
.social-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}
.social-facebook:hover { background: #1877f2; border-color: #1877f2; }
.social-instagram:hover {
  background: #e1306c;
  border-color: #e1306c;
}
.social-youtube:hover { background: #ff0000; border-color: #ff0000; }
.social-vimeo:hover { background: #1ab7ea; border-color: #1ab7ea; }

.header-mobile-tools {
  display: none;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-mobile-panel {
  display: none;
}
.nav-chevron {
  display: none;
}
.btn-membership-mobile,
.btn-membership-nav {
  display: none;
}
.social-nav-footer {
  margin-top: 0.85rem;
}
.social-nav-footer .social-link {
  width: 2.85rem;
  height: 2.85rem;
  color: var(--blue);
  background: var(--paper);
  border-color: var(--line);
}
.social-nav-footer .social-icon {
  width: 1.45rem;
  height: 1.45rem;
}
.social-nav-footer .social-link:hover {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
  padding: 0.55rem 1rem;
  border: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-membership {
  background: var(--gold);
  color: var(--blue-deep);
  border-color: var(--blue);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.btn-membership:hover {
  background: var(--cork-red);
  color: white;
  border-color: var(--cork-red);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  background: var(--blue);
  color: white;
  border: 2px solid var(--gold);
  padding: 0.55rem 0.8rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 2px;
  min-height: 2.75rem;
}
.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 1.15rem;
}
.nav-toggle-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--gold-soft);
  border-radius: 1px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: var(--blue-mid);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.site-nav {
  background: var(--blue);
  color: white;
}

.nav-list {
  list-style: none;
  margin: 0 auto;
  padding: 0 0.5rem;
  max-width: var(--header-max);
  display: flex;
  flex-wrap: wrap;
}

.nav-item { position: relative; }

.nav-item > a,
.nav-parent,
.nav-map-link {
  display: block;
  color: white;
  text-decoration: none;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 600;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
}

.nav-label-sub {
  display: block;
  font-size: 0.72em;
  font-weight: 500;
  opacity: 0.85;
}

.nav-item > a:hover,
.nav-parent:hover,
.nav-map-link:hover,
.nav-item > a[aria-current="page"] {
  background: rgba(226, 184, 74, 0.22);
  color: var(--gold-soft);
}

.nav-map-link {
  color: var(--gold-soft);
}

.nav-sub {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 14rem;
  background: var(--white);
  color: var(--ink);
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  z-index: 60;
}

.nav-item.is-open > .nav-sub,
.nav-item:hover > .nav-sub { display: block; }

.nav-sub a {
  display: block;
  padding: 0.45rem 0.9rem;
  color: var(--blue);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav-sub a:hover {
  background: var(--paper);
  color: var(--cork-red);
}

/* Main */
.site-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3.5rem;
}

.page-with-section {
  display: grid;
  grid-template-columns: 15.75rem minmax(0, 1fr);
  gap: 1.5rem 1.75rem;
  align-items: start;
}
.section-nav {
  background: var(--blue);
  color: var(--white);
  border-radius: 0.3rem;
  border-top: 3px solid var(--gold);
  position: sticky;
  top: 0.75rem;
  overflow: hidden;
}
.section-nav-heading {
  margin: 0;
  padding: 0.85rem 1rem 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--cork-red);
}
.section-nav-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0.55rem;
}
.section-nav-list a,
.section-nav-list span {
  display: block;
  padding: 0.48rem 1rem;
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.3;
  border-left: 3px solid transparent;
}
.section-nav-item-disabled {
  opacity: 0.85;
}
.section-nav-list a:hover {
  background: rgba(226, 184, 74, 0.18);
  color: var(--gold-soft);
}
.section-nav-list a[aria-current="page"] {
  background: rgba(226, 184, 74, 0.28);
  color: var(--gold-soft);
  border-left-color: var(--gold);
  font-weight: 600;
}
.section-nav-summary {
  display: none;
  cursor: pointer;
  list-style: none;
  padding: 0.75rem 1rem;
  font-weight: 700;
  color: var(--white);
}
.section-nav-summary::-webkit-details-marker {
  display: none;
}
.section-nav-summary::after {
  content: "▾";
  float: right;
  color: var(--gold-soft);
}

@media (min-width: 901px) {
  .page-with-section {
    display: block;
  }
  .page-with-section .section-nav {
    position: static;
    margin-bottom: 1.25rem;
  }
  .page-with-section .section-nav-panel {
    display: block;
    width: 100%;
    background: var(--paper-2);
  }
  .page-with-section .section-nav-panel::details-content {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    overflow-x: auto;
    width: 100%;
  }
  .page-with-section .section-nav-heading {
    flex: 0 0 auto;
    padding: 0.75rem 1rem;
    white-space: nowrap;
    background: var(--gold);
    color: var(--blue-deep);
  }
  .page-with-section .section-nav-heading a {
    color: inherit;
    text-decoration: none;
  }
  .page-with-section .section-nav-heading span {
    margin-left: 0.25rem;
  }
  .page-with-section .section-nav-list {
    display: flex !important;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: stretch;
    padding: 0;
    margin: 0;
  }
  .page-with-section .section-nav-list li {
    flex: 0 0 auto;
  }
  .page-with-section .section-nav-list a,
  .page-with-section .section-nav-list span {
    height: 100%;
    padding: 0.75rem 1rem;
    color: var(--blue);
    border-left: 0;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
  }
  .page-with-section .section-nav-list a[aria-current="page"] {
    background: rgba(226, 184, 74, 0.28);
    color: var(--blue-deep);
    border-bottom-color: var(--gold);
  }
  .section-nav-heading,
  .section-nav-list {
    display: block !important;
  }
}

@media (max-width: 900px) {
  .page-with-section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .section-nav {
    position: static;
  }
  .section-nav-summary {
    display: block;
  }
  .section-nav-panel[open] .section-nav-summary::after {
    content: "▴";
  }
}

@media (max-width: 1200px) {
  .page-with-section {
    display: block;
  }
  .page-with-section .section-nav {
    position: static;
    margin-bottom: 1.25rem;
  }
  .interred-layout {
    display: block;
    width: 100%;
  }
  .interred-search {
    width: min(52rem, 100%);
    margin-bottom: 1rem;
  }
  .interred-results {
    width: 100%;
  }
  .interred-table {
    min-width: 72rem;
    table-layout: fixed;
    font-size: 0.72rem;
  }
  .interred-table th:nth-child(1),
  .interred-table td:nth-child(1) { width: 6%; }
  .interred-table th:nth-child(2),
  .interred-table td:nth-child(2) { width: 8%; }
  .interred-table th:nth-child(3),
  .interred-table td:nth-child(3) { width: 6%; }
  .interred-table th:nth-child(4),
  .interred-table td:nth-child(4) { width: 19%; }
  .interred-table th:nth-child(5),
  .interred-table td:nth-child(5) { width: 10%; }
  .interred-table th:nth-child(6),
  .interred-table td:nth-child(6) { width: 6%; }
  .interred-table th:nth-child(7),
  .interred-table td:nth-child(7) { width: 8%; }
  .interred-table th:nth-child(8),
  .interred-table td:nth-child(8) { width: 12%; }
  .interred-table th:nth-child(9),
  .interred-table td:nth-child(9) { width: 15%; }
  .interred-table th:nth-child(10),
  .interred-table td:nth-child(10) { width: 10%; }
  .interred-table th,
  .interred-table td {
    padding: 0.35rem 0.3rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 480px) {
  .interred-filter-grid {
    grid-template-columns: 1fr;
  }
}

.page-header { margin-bottom: 1.25rem; }
.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  color: var(--blue);
  margin: 0;
  line-height: 1.2;
}

.prose > *:first-child { margin-top: 0; }
.prose h1, .prose h2, .prose h3 {
  font-family: var(--font-display);
  color: var(--blue);
  line-height: 1.25;
}
/* Page title + immediate subtitle centred; later section headers stay left */
.prose > h1:first-of-type {
  text-align: center;
  margin-bottom: 0.35rem;
}
.prose > h1:first-of-type + h2 {
  text-align: center;
  margin-top: 0.15rem;
  font-size: 1.35rem;
  font-weight: 600;
}
.prose > h2,
.prose > h3 {
  text-align: left;
}
.prose > h1:first-of-type + h2 {
  text-align: center;
}
.prose p { margin: 0.85rem 0; text-align: justify; }

/* Ported from legacy Sitemaster.css — full content width, justified body copy (G1 / P7) */
.indentedText {
  margin: 0.85rem 0;
  width: 100%;
  max-width: none;
  text-align: justify;
}
.prose .IndentQuotes,
.prose blockquote,
.IndentQuotes {
  margin: 0.85rem 1.75rem;
  padding: 0.15rem 1rem;
  border-left: 3px solid var(--gold);
  color: var(--muted);
  font-style: italic;
  max-width: none;
  text-align: justify;
}

.prose .FigureCenter,
.prose figure.FigureCenter {
  float: none;
  display: block;
  width: 100%;
  max-width: 40rem;
  margin: 1.25rem auto;
  text-align: center;
}
.prose .FigureCenter img,
.prose .FigureCenter iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border: none;
}
.prose .FigureCenter.map-figure {
  max-width: 48rem;
}
.prose .FigureLeft,
.prose figure.FigureLeft {
  float: left;
  width: min(100%, 16rem);
  max-width: 16rem;
  margin: 0.35rem 1.25rem 1rem 0;
}
.prose .FigureLeft.headstone-sample {
  width: min(100%, 14rem);
  max-width: 14rem;
}
.prose .FigureLeft img {
  width: 100%;
  display: block;
  border: none;
}

.constitution-aims {
  list-style: none;
  margin: 0.75rem 0 1.25rem;
  padding: 0 0 0 0.25rem;
  max-width: 42rem;
}
.constitution-aims li {
  position: relative;
  margin: 0.55rem 0;
  padding-left: 3rem;
  line-height: 1.45;
}
.constitution-aims .aim-ref {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

/* Images: ignore legacy tiny pixel widths from ASP.NET migration.
   No opaque background — transparent PNGs (e.g. RIC barracks ExternalView) must keep alpha (P8). */
.prose img {
  width: auto !important;
  max-width: 100%;
  height: auto !important;
  display: block;
  border: none;
  background: transparent;
}

.prose .FigureRight,
.prose figure {
  float: right;
  clear: right;
  width: min(46%, 22rem);
  max-width: 22rem;
  margin: 0.25rem 0 1.25rem 1.5rem;
}
.prose .FigureRight img,
.prose figure img {
  width: 100% !important;
  max-width: 100%;
}
.prose figcaption {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.35rem;
  line-height: 1.35;
  text-align: center;
}
.st-davids-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  width: min(100%, 60rem);
  margin: 1.5rem auto 2rem;
}
.st-davids-plans figure {
  float: none;
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.st-davids-plans img {
  width: auto !important;
  max-width: 100%;
  height: auto;
  background: var(--white);
  border: 1px solid rgba(11, 61, 110, 0.2);
  box-shadow: 0 3px 10px rgba(7, 42, 79, 0.12);
}
@media (max-width: 700px) {
  .st-davids-plans {
    grid-template-columns: 1fr;
  }
}

/* Legacy custom tag used in migrated HTML — treat like figcaption (P9) */
.prose FigureCaption {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.35rem;
  line-height: 1.35;
  text-align: center;
}

/* Full-width figures in tables / stacked images */
.prose table img,
.prose td img {
  width: 100% !important;
  max-width: 100%;
  margin: 0 auto;
}

/* MTU interactive village map — large stage + clickable key */
body.mtu-map-page .site-main {
  max-width: min(76rem, 100%);
}
.mtu-village {
  margin: 0;
}
.mtu-village-header {
  margin-bottom: 0.5rem;
  max-width: none;
  text-align: center;
}
.mtu-village-header h1 {
  margin: 0;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
}
.mtu-village-lead {
  margin: 0 auto 1.25rem;
  color: var(--muted);
  font-size: 1.05rem;
  text-align: center;
  max-width: 40rem;
}
.mtu-village-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(16rem, 0.85fr);
  gap: 1.5rem 2rem;
  align-items: start;
}
.mtu-village-stage {
  position: relative;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  background: transparent;
  padding: 0;
  border: 0;
  box-shadow: none;
}
.prose .mtu-village-stage img.mtu-village-image,
.mtu-village-image {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  margin: 0;
  border: 0 !important;
  background: transparent;
}
.mtu-hotspot {
  position: absolute;
  z-index: 2;
  min-width: 2.4rem;
  min-height: 2.4rem;
  border-radius: 50%;
  background: rgba(226, 184, 74, 0.1);
  box-shadow: inset 0 0 0 2px rgba(226, 184, 74, 0.35);
  transform: translate(-12%, -12%);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.mtu-hotspot:hover,
.mtu-hotspot:focus-visible,
.mtu-hotspot.is-active {
  background: rgba(226, 184, 74, 0.42);
  box-shadow:
    inset 0 0 0 3px var(--gold),
    0 0 0 7px rgba(226, 184, 74, 0.25);
  transform: translate(-12%, -12%) scale(1.2);
  outline: none;
}
.mtu-village-key {
  position: sticky;
  top: 5.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  padding: 1.15rem 1.2rem 1.25rem;
}
.mtu-village-key-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--blue);
  margin: 0 0 0.85rem;
  letter-spacing: 0.02em;
}
.mtu-village-key-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.mtu-village-key-list li { margin: 0; }
.mtu-key-link {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.65rem;
  align-items: start;
  text-decoration: none;
  color: var(--ink);
  padding: 0.45rem 0.5rem;
  border-radius: 2px;
  transition: background 0.15s ease, color 0.15s ease;
}
.mtu-key-link:hover,
.mtu-key-link:focus-visible,
.mtu-key-link.is-active {
  background: rgba(11, 61, 110, 0.07);
  color: var(--blue-deep);
  outline: none;
}
.mtu-key-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--blue);
  color: var(--gold-soft);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
}
.mtu-key-link:hover .mtu-key-num,
.mtu-key-link.is-active .mtu-key-num {
  background: var(--cork-red);
  color: white;
}
.mtu-key-label {
  padding-top: 0.2rem;
  font-size: 0.98rem;
  line-height: 1.35;
}
.mtu-village-footnote {
  margin: 1.1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
.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;
}
@media (max-width: 900px) {
  .mtu-village-layout {
    grid-template-columns: 1fr;
  }
  .mtu-village-key {
    position: static;
  }
  .mtu-village-stage {
    max-width: none;
  }
}
.prose table {
  width: 100%;
  max-width: 100%;
  clear: both;
  margin: 1.25rem 0;
}

/* Home */
.home-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.home-greeting {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--blue);
  margin: 0 0 1rem;
  line-height: 1.05;
}

.home-lead p { font-size: 1.1rem; max-width: 38rem; }

.home-stone {
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0;
}
.home-stone img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
}
.home-stone figcaption {
  margin-top: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 36rem;
}

.home-panels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  padding: 1.1rem 1.15rem 1.25rem;
}
.panel-gold { border-top-color: var(--gold); }
.panel-red { border-top-color: var(--cork-red); }
.panel h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--blue);
}
.panel p { margin: 0 0 0.85rem; color: var(--muted); font-size: 0.98rem; }

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
}

.email-callout {
  background: var(--white);
  border-left: 5px solid var(--cork-red);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.email-callout strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
.email-callout a {
  font-size: 1.2rem;
  font-weight: 700;
  word-break: break-all;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin: 0.75rem 0 0.25rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  background: var(--white);
}
.contact-form button {
  margin-top: 1rem;
  background: var(--blue);
  color: white;
  border: none;
  padding: 0.65rem 1.2rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.contact-form button:hover { background: var(--cork-red); }

/* Membership */
.membership-banner {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 70%, #1a6aad 100%);
  color: white;
  padding: 1.5rem 1.4rem;
  margin-bottom: 1.5rem;
  border-bottom: 5px solid var(--gold);
}
.membership-banner h2 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  color: var(--gold-soft);
}
.membership-banner p { margin: 0 0 1rem; max-width: 40rem; }
.paypal-form {
  margin: 1rem 0 1.25rem;
}
.paypal-form input[type="image"] {
  width: auto;
  max-width: min(100%, 220px);
  height: auto;
  border: 0;
  cursor: pointer;
  background: transparent;
}
.paypal-form-banner {
  margin: 0 0 0.75rem;
}
.membership-banner-note {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.95;
}
.membership-banner-note a {
  color: var(--gold-soft);
}
.paypal-options {
  margin-bottom: 0.75rem;
}

/* Map — full-bleed jimmap-style MapLibre */
.site-main-map {
  max-width: none;
  padding: 0;
  margin: 0;
  width: 100%;
}
.map-page { max-width: none; }
.map-toolbar {
  max-width: var(--header-max);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
  justify-content: space-between;
}
.map-layer-hint {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.map-ctrl-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}
.map-ctrl-btn.is-active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--gold);
}
.map-toolbar-text { max-width: 42rem; }
.map-toolbar-text .page-title { margin-bottom: 0.35rem; }
.map-toolbar-text p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.map-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}
.map-ctrl-btn {
  background: var(--white);
  color: var(--blue);
  border: 1px solid var(--blue);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
}
.map-ctrl-btn:hover,
.map-ctrl-btn.is-active,
.map-ctrl-btn[aria-pressed="true"] {
  background: var(--blue);
  color: white;
}
.map-frame {
  position: relative;
  height: min(78vh, 720px);
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--blue);
  background: #000;
}
#chs-map { width: 100%; height: 100%; }
#chs-globe {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  background: #000;
}
.map-frame.is-globe #chs-globe {
  display: block !important;
}
.map-frame.is-globe #chs-map {
  visibility: hidden;
  pointer-events: none;
}
#chs-globe .cesium-viewer,
#chs-globe .cesium-widget,
#chs-globe .cesium-widget canvas {
  width: 100%;
  height: 100%;
}
#chs-globe .cesium-viewer-bottom {
  pointer-events: none;
}
#chs-globe .cesium-viewer-toolbar {
  top: 0.65rem;
  right: 0.65rem;
}
.map-globe-popup {
  position: absolute;
  z-index: 3;
  left: 0.75rem;
  bottom: 2.4rem;
  max-width: 280px;
  width: min(280px, calc(100% - 1.5rem));
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.7rem 0.85rem 0.8rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.map-globe-popup[hidden] {
  display: none !important;
}
.map-globe-popup-close {
  display: block;
  margin-top: 0.55rem;
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
}
.map-status {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: var(--white);
  color: var(--ink);
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  font-size: 0.95rem;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  max-width: var(--header-max);
  margin: 0.75rem auto 1.25rem;
  padding: 0 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
}
.legend-swatch {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.map-skip {
  max-width: var(--header-max);
  margin: 0.5rem auto 0;
  padding: 0 1.25rem;
  font-size: 0.95rem;
}
.map-skip a:focus {
  outline: 2px solid var(--cork-red);
  outline-offset: 2px;
}

.map-places-list {
  max-width: var(--header-max);
  margin: 0 auto 2rem;
  padding: 1rem 1.25rem 1.5rem;
  background: var(--white);
  border-top: 1px solid var(--line);
}
.map-places-list h2 {
  font-family: var(--font-display);
  color: var(--blue);
  margin: 0 0 0.5rem;
}
.map-places-list-intro {
  color: var(--muted);
  margin: 0 0 1.25rem;
  max-width: 40rem;
}
.map-places-ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.map-places-item {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.map-places-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.25rem;
}
.map-places-meta {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.map-places-preview {
  margin: 0;
  max-width: 40rem;
}
.map-places-preview-empty,
.map-places-photo-ph {
  color: var(--muted);
  font-style: italic;
}

.place-contribute {
  margin-top: 2rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  background: var(--white);
}
.place-contribute h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--blue);
  margin: 0 0 0.5rem;
}
.place-contribute-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.85rem 0 0;
}
.place-gallery {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.5rem;
}
.place-video-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}
.place-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.place-credit {
  display: block;
  font-size: 0.9em;
  color: var(--muted);
}
.place-tip-banner {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  background: #f7f3ea;
  border-left: 4px solid var(--gold);
}
.btn-secondary {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
}

.map-contribute {
  max-width: var(--header-max);
  margin: 0 auto 2rem;
  padding: 0 1.25rem 1.5rem;
}
.map-contribute-inner {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  padding: 1.15rem 1.25rem 1.25rem;
}
.map-contribute-inner h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--blue);
  margin: 0 0 0.5rem;
}
.map-contribute-inner p {
  margin: 0 0 0.75rem;
  max-width: 40rem;
  color: var(--ink);
}
.map-contribute-email a {
  font-weight: 700;
  word-break: break-word;
}
.map-contribute .social-nav-map {
  margin: 0.35rem 0 0.85rem;
  gap: 0.5rem;
}
.map-contribute .social-nav-map .social-link {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--blue);
  background: var(--paper);
  border-color: var(--blue);
}
.map-contribute .social-nav-map .social-link:hover {
  color: white;
  background: var(--blue);
}
.map-contribute-contact {
  margin: 0 !important;
  font-size: 0.95rem;
  color: var(--muted) !important;
}

/* Map page — Earth Pro–style full window + Places tree */
body.map-page-body {
  overflow: hidden;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
body.map-page-body .site-header {
  flex-shrink: 0;
}
body.map-page-body .header-aside {
  display: none !important;
}
body.map-page-body .header-bar {
  padding: 0.35rem 0.85rem;
  gap: 0.5rem;
}
body.map-page-body .brand-mark {
  height: 2.6rem;
  transform: none;
}
body.map-page-body .brand-name {
  font-size: 0.82rem;
  white-space: nowrap;
}
body.map-page-body .site-footer {
  display: none;
}
body.map-page-body .site-main-map {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
body.map-page-body .map-page {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
body.map-page-body .map-skip {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
body.map-page-body .map-skip a:focus {
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  display: block;
  z-index: 80;
  background: var(--white);
  padding: 0.4rem 0.75rem;
}
.map-places-toggle {
  display: none;
}
.map-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  background: #000;
}
.map-places-panel {
  flex: 0 0 20%;
  width: 20%;
  min-width: 15.5rem;
  max-width: 22rem;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-right: 1px solid var(--line);
  min-height: 0;
  z-index: 4;
}
.map-places-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 0.75rem 0.35rem;
  border-bottom: 1px solid var(--line);
}
.map-places-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--blue);
  margin: 0;
  line-height: 1.25;
}
.map-places-close {
  display: none;
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0.15rem 0.25rem;
}
.map-places-filter-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.map-places-filter {
  margin: 0.5rem 0.75rem 0.35rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  font: inherit;
  font-size: 0.9rem;
}
.map-places-tree {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0.15rem 0 0.5rem;
}
.map-places-folder {
  border-bottom: 1px solid var(--line);
}
.map-places-folder-head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.25rem 0.5rem 0.25rem 0.55rem;
  background: var(--paper);
}
.map-places-folder-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--blue);
  cursor: pointer;
  text-align: left;
  padding: 0.25rem 0;
}
.map-places-folder-toggle:hover,
.map-places-folder-toggle:focus-visible {
  color: var(--cork-red);
}
.map-places-folder-label {
  flex: 1;
  min-width: 0;
}
.map-places-count {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
}
.map-places-folder-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0.25rem;
}
.map-places-folder.is-collapsed .map-places-folder-list {
  display: none;
}
.map-places-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.12rem 0.5rem 0.12rem 1.15rem;
}
.map-places-row.is-selected {
  background: rgba(11, 61, 110, 0.12);
}
.map-places-row.is-filtered-out {
  display: none;
}
.map-places-check {
  flex-shrink: 0;
  margin: 0;
}
.map-places-item-btn {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 0.88rem;
  color: var(--ink);
  cursor: pointer;
  padding: 0.28rem 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-places-item-btn:hover,
.map-places-item-btn:focus-visible {
  color: var(--blue);
}
.map-places-swatch {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}
.map-places-layers {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.55rem 0.75rem;
  border-top: 1px solid var(--line);
}
.map-layers-heading {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.map-basemap-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  margin-bottom: 0.35rem;
}
.map-places-panel .map-ctrl-btn {
  width: 100%;
  text-align: center;
}
.map-places-panel .map-layer-hint {
  flex: none;
  padding: 0 0.75rem 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.map-licence-note {
  margin: 0;
  padding: 0 0.75rem 0.45rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}
.map-places-help {
  margin: 0;
  padding: 0.35rem 0.75rem 0.7rem;
  font-size: 0.82rem;
}
body.map-page-body .map-frame {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  border: 0;
}
body.map-page-body .map-toolbar,
body.map-page-body .map-legend,
body.map-page-body .map-places-list,
body.map-page-body .map-contribute {
  display: none;
}

@media (max-width: 700px) {
  .map-places-toggle {
    display: inline-flex;
    position: absolute;
    z-index: 8;
    top: 0.65rem;
    left: 0.65rem;
    background: var(--blue);
    color: white;
    border: 2px solid var(--gold);
    font: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    border-radius: 2px;
  }
  .map-places-panel {
    position: absolute;
    inset: 0 auto 0 0;
    width: min(22rem, 88vw);
    max-width: none;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: 8px 0 24px rgba(7, 42, 79, 0.28);
  }
  body.map-places-open .map-places-panel {
    transform: none;
  }
  body.map-places-open .map-places-toggle {
    display: none;
  }
  .map-places-close {
    display: inline-block;
  }
  .map-shell {
    position: relative;
  }
}

/* Circle markers — labels stay visible like Earth Pro placemarks */
.map-pin {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: visible;
}
.map-pin-dot {
  display: block;
  width: 14px;
  height: 14px;
  margin: 2px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--blue);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.map-pin-mtu .map-pin-dot {
  background: var(--cork-red);
  border-color: var(--gold-soft);
}
.map-pin-label {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.95), 0 0 6px rgba(0,0,0,0.75);
  pointer-events: none;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(7, 42, 79, 0.55);
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
}
#chs-map.show-pin-labels .map-pin-label {
  display: block;
}

.maplibregl-popup-content {
  font-family: var(--font-body);
  padding: 0.7rem 0.85rem 0.8rem;
  border-radius: 2px;
  min-width: 200px;
  max-width: 280px;
}
.map-popup h3 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--blue);
}
.map-popup-figure {
  margin: 0.45rem 0;
  float: none;
  width: 100%;
  max-width: none;
}
.map-popup-figure img {
  width: 100%;
  max-height: 7rem;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
}
.map-popup-info {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  line-height: 1.35;
}
.map-popup-meta {
  margin: 0 0 0.2rem !important;
  font-size: 0.75rem !important;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.map-popup-meta-empty { font-style: italic; text-transform: none; letter-spacing: 0; }
.map-popup p { margin: 0 0 0.35rem; font-size: 0.9rem; }
.map-popup-actions { margin: 0.5rem 0 0 !important; }
.map-popup-link {
  font-weight: 700;
  color: var(--blue);
}
.map-popup-sep { color: var(--muted); font-weight: 400; }

/* Place detail pages */
.place-back { margin: 0 0 0.75rem; font-size: 0.95rem; }
.place-meta { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.95rem; }
.place-meta-empty { font-style: italic; }
.place-hero {
  float: none;
  width: 100%;
  max-width: 36rem;
  margin: 0 0 1.25rem;
}
.place-hero img { width: 100%; border: none; }
.place-placeholder-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 14rem;
  background:
    repeating-linear-gradient(
      -45deg,
      var(--paper),
      var(--paper) 10px,
      var(--paper-2) 10px,
      var(--paper-2) 20px
    );
  border: 2px dashed rgba(11, 61, 110, 0.35);
  color: var(--muted);
  font-weight: 700;
}
.place-placeholder-text {
  padding: 1rem 1.1rem;
  background: var(--paper);
  border: 1px dashed rgba(11, 61, 110, 0.35);
  color: var(--muted);
}
.place-author {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.place-website-link {
  margin: 1.35rem 0 0;
}

.search-skeleton {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  background: var(--paper);
  border: 1px dashed var(--blue-mid);
}
.interred-layout {
  display: block;
  width: 100%;
}
.interred-search {
  display: grid;
  gap: 0.45rem;
  width: min(52rem, 100%);
  max-width: 100%;
  padding: 0.75rem;
  background: var(--paper-2);
  margin: 1.5rem 0;
}
.interred-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.interred-filter-grid > div {
  display: grid;
  gap: 0.45rem;
}
.interred-filter-grid label {
  font-weight: 700;
  color: var(--blue);
}
.interred-search label {
  font-weight: 700;
  color: var(--blue);
}
.interred-search select {
  width: 100%;
  max-width: 100%;
  min-height: 2.6rem;
  padding: 0.45rem 0.6rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 3px solid var(--gold);
  border-radius: 0.25rem;
}
.interred-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.interred-results {
  min-width: 0;
  margin-top: 1.5rem;
  padding: 0.75rem;
  background: var(--paper-2);
}
.interred-database-frame,
.ira-database-frame {
  width: 100%;
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.interred-database-frame iframe,
.ira-database-frame iframe {
  display: block;
  width: 100%;
  min-height: 56rem;
  border: 0;
}
.interred-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(11, 61, 110, 0.08);
  background: var(--white);
}
.interred-table {
  min-width: 100%;
  width: max-content;
  border-collapse: collapse;
  font-size: 0.82rem;
  table-layout: auto;
}
.interred-table th,
.interred-table td {
  padding: 0.35rem 0.45rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}
.interred-table th {
  position: sticky;
  top: var(--interred-sticky-top, 0px);
  z-index: 2;
  color: white;
  background: #1d6095;
  font-weight: 700;
  white-space: nowrap;
}
.interred-table th:nth-child(1),
.interred-table td:nth-child(1),
.interred-table th:nth-child(2),
.interred-table td:nth-child(2),
.interred-table th:nth-child(3),
.interred-table td:nth-child(3),
.interred-table th:nth-child(4),
.interred-table td:nth-child(4),
.interred-table th:nth-child(5),
.interred-table td:nth-child(5) {
  width: 1%;
}
.interred-table td:nth-child(3) {
  text-align: right;
}
.interred-detail-toggle {
  width: 1.35rem;
  height: 1.35rem;
  margin-right: 0.35rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.2rem;
  color: var(--blue);
  background: var(--paper-2);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.interred-detail {
  margin: 0.5rem 0 0.15rem 1.7rem;
  white-space: normal;
}
.interred-detail dl {
  display: grid;
  grid-template-columns: max-content minmax(10rem, 1fr);
  gap: 0.2rem 0.65rem;
  margin: 0;
  font-size: 0.78rem;
}
.interred-detail dt { font-weight: 700; }
.interred-detail dd { margin: 0; }
.interred-table th:nth-child(3) {
  text-align: center;
}
.interred-table tbody tr:nth-child(even) {
  background: var(--paper);
}
.interred-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.interred-page,
.interred-page-nav {
  min-width: 2rem;
  min-height: 2rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--blue-mid);
  border-radius: 0.2rem;
  background: var(--white);
  color: var(--blue);
  font: inherit;
  cursor: pointer;
}
.interred-page.is-current {
  background: var(--blue);
  color: white;
  font-weight: 700;
}
.interred-page:hover:not(.is-current),
.interred-page-nav:hover:not(:disabled) {
  background: var(--gold-soft);
}
.interred-page-nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
@media (max-width: 900px) {
}
.media-note {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(177, 31, 44, 0.06);
  border-left: 4px solid var(--cork-red);
}
.page-jump {
  margin: 0 0 1.1rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  font-size: 1rem;
}
.page-jump-foot {
  clear: both;
  margin: 2rem 0 0;
}
.page-jump a {
  font-weight: 700;
  color: var(--blue);
}
.section-index {
  margin: 1rem 0 1.5rem;
  padding-left: 1.25rem;
  max-width: 42rem;
  line-height: 1.55;
}
.section-index li {
  margin: 0.45rem 0;
}
.events-calendar {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1.75rem;
  font-size: 0.98rem;
  background: var(--white);
  border: 1px solid var(--line);
}
.events-calendar th,
.events-calendar td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  vertical-align: top;
  text-align: left;
}
.events-calendar thead th {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}
.events-calendar tbody tr:nth-child(even) {
  background: var(--paper);
}
.events-calendar td:first-child {
  white-space: nowrap;
  width: 8.5rem;
  font-weight: 600;
  color: var(--blue);
}
.events-calendar td:last-child {
  width: 12rem;
}
.project-cta {
  clear: both;
  margin: 2rem 0 0;
  padding: 1.25rem 1.35rem 1.35rem;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  color: white;
  border-bottom: 4px solid var(--gold);
}
.project-cta-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.45rem;
  color: var(--gold-soft);
}
.project-cta-text {
  margin: 0 0 1rem;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.05rem;
  line-height: 1.5;
}
.project-cta-actions {
  margin: 0;
}
.btn-project-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--blue-deep);
  border: 2px solid var(--gold-soft);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.7rem 1.15rem;
  text-decoration: none;
  border-radius: 2px;
}
.btn-project-cta:hover {
  background: white;
  color: var(--blue-deep);
  border-color: white;
}
.mtu-back {
  margin: 0 0 1rem;
  font-size: 0.98rem;
}
.mtu-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.mtu-back a:hover {
  color: var(--cork-red);
  border-bottom-color: var(--cork-red);
}
.prose .FigureCenter:has(video),
.prose figure:has(video) {
  float: none;
  width: 100%;
  max-width: 48rem;
  margin: 0 auto 1.25rem;
}
.prose figure video {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  background: #0a1624;
}

/* Footer — blue strip matches nav height; partners row on white */
.site-footer {
  margin-top: 2rem;
  padding: 0;
  background: var(--white);
  color: var(--ink);
  border-top: 0;
  overflow-x: hidden;
}
.footer-bar {
    min-width: max-content;
    width: max-content;
    table-layout: auto;
  border-bottom: 3px solid var(--gold);
}
.footer-body {
  max-width: var(--header-max);
  margin: 0 auto;
  padding: 1.75rem 1.35rem 1.5rem;
  box-sizing: border-box;
}
.footer-email {
  color: var(--ink);
    padding: 0.3rem 0.35rem;
    white-space: nowrap;
  color: var(--blue);
}
.footer-email a:hover {
  color: var(--cork-red);
}

.partner-list {
  list-style: none;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.15rem;
}
.partner-list > li {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.partner-link {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--ink);
  padding: 1.15rem 0.75rem 1rem;
  background: transparent;
  border: none;
  border-radius: 0.3rem;
  min-height: 11rem;
  width: 100%;
  box-sizing: border-box;
}
.partner-link:hover {
  background: var(--paper-2, #f0ebe3);
}
.partner-link img {
  width: auto;
  height: 4.5rem;
  max-width: 100%;
  object-fit: contain;
  background: transparent;
  border-radius: 2px;
  flex-shrink: 0;
  padding: 0;
}
.partner-list > li:nth-child(3) .partner-link img,
.partner-list > li:nth-child(4) .partner-link img {
  height: 6rem;
}
.partner-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.55rem 0.7rem;
  background: var(--blue);
  color: var(--white);
  font-size: 0.82rem;
  line-height: 1.3;
  text-align: center;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.partner-link:hover .partner-caption,
.partner-link:focus-visible .partner-caption {
  opacity: 1;
  transform: none;
}
@media (hover: none) {
  .partner-caption {
    position: static;
    opacity: 1;
    transform: none;
    background: transparent;
    color: var(--ink);
    padding: 0.35rem 0 0;
  }
  .partner-link {
    overflow: visible;
    gap: 0.15rem;
  }
}
.footer-note { font-size: 0.85rem; color: var(--muted); }
.footer-copy {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}
.website-credit {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.website-credit a {
  color: var(--blue);
  text-decoration: none;
}
.website-credit a:hover {
  color: var(--cork-red);
  text-decoration: underline;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 3rem 1rem;
}
.error-page h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--blue);
}

@media (max-width: 900px) {
  .home-hero,
  .contact-layout,
  .home-panels { grid-template-columns: 1fr; }
  .partner-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .partner-list > li {
    width: 100%;
  }
  .partner-link {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }
  .partner-link img {
    height: 2.75rem;
  }
  .partner-list > li:nth-child(3) .partner-link img,
  .partner-list > li:nth-child(4) .partner-link img {
    height: 3.75rem;
  }
  .prose .FigureRight,
  .prose figure {
    float: none;
    max-width: 100%;
    margin: 0 0 1rem;
  }

  body.nav-open {
    overflow: hidden;
  }

  .header-bar {
    padding: 0.65rem 0.85rem;
    flex-wrap: wrap;
    gap: 0.65rem;
  }
  .brand {
    min-width: 0;
    flex: 1 1 auto;
    gap: 0.45rem;
    flex-wrap: nowrap;
  }
  .brand-mark {
    height: clamp(3.25rem, 18vw, 6rem);
    width: auto;
    max-width: none;
    max-height: none;
    flex-shrink: 0;
    transform: translateX(1.5rem) scale(1.3);
    transform-origin: left center;
  }
  .brand-name {
    font-size: clamp(0.65rem, 2.8vw, 0.95rem);
    max-width: none;
    white-space: nowrap;
  }

  .header-aside {
    flex: 1 1 100%;
    max-width: none;
    min-width: 0;
    margin-left: 0;
    align-items: stretch;
    order: 3;
    gap: 0.55rem;
  }

  .header-contact {
    text-align: left;
  }

  .header-note {
    max-width: none;
  }

  .header-connect {
    justify-content: flex-start;
  }

  .header-search {
    flex: none;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin-left: 0;
    order: 0;
  }

  .header-search-results {
    left: 0;
    right: 0;
    min-width: 0;
    width: 100%;
  }

  .header-search-submit {
    padding: 0.4rem 0.6rem;
  }

  .header-actions { display: none; }
  .header-mobile-tools { display: flex; }
  .btn-membership-mobile {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.7rem;
    font-size: 0.85rem;
    min-height: 2.75rem;
  }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    max-height: min(78vh, 36rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--blue-deep);
    border-bottom: 4px solid var(--gold);
    box-shadow: 0 16px 32px rgba(7, 42, 79, 0.35);
  }
  .site-nav.is-open { display: block; }

  .nav-mobile-panel {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid rgba(243, 217, 138, 0.25);
  }
  .btn-membership-nav {
    display: block;
    text-align: center;
    width: 100%;
  }
  .social-nav-mobile {
    justify-content: center;
    gap: 0.55rem;
  }
  .social-nav-mobile .social-link {
    width: 2.6rem;
    height: 2.6rem;
    color: var(--gold-soft);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(243, 217, 138, 0.45);
  }
  .social-nav-mobile .social-link:hover {
    color: white;
  }

  .nav-list {
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 0.35rem 0 1rem;
    max-width: none;
  }
  .nav-item > a,
  .nav-parent,
  .nav-map-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    padding: 0.95rem 1.1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    min-height: 3.1rem;
  }
  .nav-map-link {
    color: var(--gold-soft);
  }
  .nav-item > a:hover,
  .nav-parent:hover,
  .nav-map-link:hover,
  .nav-item > a[aria-current="page"] {
    background: rgba(226, 184, 74, 0.28);
    color: #fff;
  }
  .nav-chevron {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid var(--gold-soft);
    border-bottom: 2px solid var(--gold-soft);
    transform: rotate(45deg);
    margin-left: 0.75rem;
    flex-shrink: 0;
    transition: transform 0.15s ease;
  }
  .nav-item.is-open > .nav-parent .nav-chevron {
    transform: rotate(-135deg);
  }

  .nav-sub {
    position: static;
    display: none;
    min-width: 0;
    border: 0;
    border-top: 0;
    background: rgba(0, 0, 0, 0.28);
    padding: 0.25rem 0 0.45rem;
  }
  .nav-item:hover > .nav-sub { display: none; }
  .nav-item.is-open > .nav-sub { display: block; }
  .nav-sub a {
    color: #fff;
    font-size: 1.02rem;
    font-weight: 600;
    padding: 0.8rem 1.1rem 0.8rem 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 2.85rem;
  }
  .nav-sub a:hover,
  .nav-sub a[aria-current="page"] {
    background: rgba(226, 184, 74, 0.22);
    color: var(--gold-soft);
  }

  .site-main {
    padding: 1.25rem 0.95rem 2.75rem;
  }
  .page-with-section {
    display: block;
  }
  .page-with-section .section-nav {
    position: static;
    margin-bottom: 1.25rem;
  }
  .prose table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.map-page-body .header-bar {
    padding: 0.3rem 0.7rem;
    flex-wrap: nowrap;
    gap: 0.4rem;
  }
  body.map-page-body .brand-mark {
    height: 2.35rem;
  }
  body.map-page-body .brand-name {
    font-size: 0.7rem;
  }
  body.map-page-body .site-main {
    padding: 0;
  }
}

@media (max-width: 420px) {
  .btn-membership-mobile { display: none; }
  .nav-toggle-label { min-width: 2.6rem; }
}

/* Lightbox — enlarge content photographs */
.lightbox-trigger {
  cursor: zoom-in;
}
.lightbox-trigger:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
body.lightbox-open {
  overflow: hidden;
}
.lightbox[hidden] {
  display: none !important;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 42, 79, 0.88);
  cursor: zoom-out;
}
.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(96vw, 68rem);
  max-height: 94vh;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 1fr auto;
  gap: 0.5rem 0.35rem;
  align-items: center;
}
.lightbox-figure {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #0a1624;
  border: 1px solid rgba(243, 217, 138, 0.35);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.lightbox-caption {
  margin-top: 0.65rem;
  color: var(--gold-soft);
  font-size: 0.98rem;
  line-height: 1.4;
  text-align: center;
  max-width: 42rem;
}
.lightbox-close,
.lightbox-nav {
  appearance: none;
  border: 1px solid rgba(243, 217, 138, 0.45);
  background: var(--blue);
  color: var(--gold-soft);
  cursor: pointer;
  font-family: var(--font-body);
  line-height: 1;
}
.lightbox-close {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.75rem;
  border-radius: 2px;
  z-index: 2;
}
.lightbox-nav {
  width: 2.75rem;
  height: 2.75rem;
  font-size: 2rem;
  border-radius: 50%;
}
.lightbox-prev { grid-column: 1; grid-row: 2; }
.lightbox-next { grid-column: 3; grid-row: 2; }
.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  background: var(--blue-mid);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.lightbox-counter {
  grid-column: 2;
  grid-row: 3;
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}
@media (max-width: 700px) {
  .lightbox-dialog {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto auto;
    width: 100%;
  }
  .lightbox-figure {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .lightbox-close {
    grid-column: 2;
    grid-row: 1;
  }
  .lightbox-prev {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
  }
  .lightbox-next {
    grid-column: 2;
    grid-row: 3;
    justify-self: end;
  }
  .lightbox-counter {
    grid-column: 1 / -1;
    grid-row: 4;
  }
}

/* Townlands / valuation tables — ported from legacy Sitemaster.css (P11 formatting) */
.CentreTable {
  width: 100%;
  max-width: 100%;
  margin: 1rem 0 1.5rem;
  border-collapse: collapse;
  vertical-align: top;
}
.CentreTable th,
.CentreTable td {
  padding: 0.4rem 0.55rem;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.TableHeaders,
.TableRowTitle {
  color: var(--blue-mid);
  text-align: left;
  font-size: 1.05rem;
}
.TableHeaders th {
  font-weight: 700;
  text-decoration: underline overline;
  height: auto;
  white-space: nowrap;
}
.TableRowTitle {
  font-style: italic;
  font-weight: 600;
}
.TableRowContent,
.TableNumbers {
  color: var(--ink);
  font-weight: 400;
  text-align: left;
}
.TableNumbers {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .CentreTable {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
