/* =========================================================
   1. Site-wide colors, sizing, reset, and page background
   ========================================================= */

:root {
  --navy: #0e3355;
  --red: #8e171a;
  --cream: #f7f0e4;
  --paper: #f1e1c5;
  --content-width: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #28231e;
  background-color: var(--cream);
  background-image: url("/images/334ab0_bac5776715ca45a685cb138ac1c67cdf~mv2.avif");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}


/* =========================================================
   2. Shared header and brand
   ========================================================= */

.site-header {
  color: var(--cream);
  background: var(--navy);
  border-bottom: 4px solid #d5c8ad;
}

.header-inner {
  width: min(90%, 1050px);
  margin: 0 auto;
  padding: 22px 0 18px;
  text-align: center;
}

.site-header .brand {
  display: inline-block;
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: normal;
  text-decoration: none;
  animation: brandFadeIn 1.2s ease-out both;
}

@keyframes brandFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.site-header .tagline {
  margin: 32px 0 36px;
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: normal;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

/* Home-page header banner */

.header-banner-link {
  display: block;
  width: 100%;
  margin: 0 auto 22px;
}

.header-banner {
  display: block;
  width: 100%;
  max-width: 1050px;
  height: auto;
  margin: 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  .site-header .brand {
    animation: none;
    opacity: 1;
  }
}


/* =========================================================
   3. Shared navigation and dropdown menus
   ========================================================= */

.main-nav {
  display: flex;
  width: 90%;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 6px;
  margin: 0 auto;
}

.main-nav > a,
.main-nav > .nav-dropdown > summary {
  display: block;
  padding: 8px 12px;
  border: 2px solid var(--red);
  background: var(--cream);
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: normal;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease;
}

.main-nav > a:hover,
.main-nav > a:focus-visible,
.main-nav > .nav-dropdown > summary:hover,
.main-nav > .nav-dropdown > summary:focus-visible {
  background: var(--cream);
  color: var(--red);
}

.main-nav > a[aria-current="page"],
.main-nav > .nav-dropdown.is-active > summary,
.dropdown-menu a[aria-current="page"] {
  color: var(--red);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > summary {
  list-style: none;
}

.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.dropdown-menu {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  display: none;
  min-width: 230px;
  padding: 5px;
  border: 1px solid var(--red);
  background: var(--cream);
  text-align: left;
}

.nav-dropdown[open] .dropdown-menu {
  display: grid;
}

.dropdown-menu a {
  display: block;
  padding: 8px 10px;
  background: var(--cream);
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: var(--cream);
  color: var(--red);
}


/* =========================================================
   4. Homepage sections and centered artwork
   ========================================================= */

.hero {
  width: 100%;
  background: transparent;
  text-align: center;
}

.hero-art {
  display: block;
  width: min(90%, 1050px);
  height: auto;
  margin: 0 auto;
}

.section-inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.red-divider {
  height: 36px;
  background: var(--red);
}

.image-section {
  padding: 8px 12px;
  background: transparent;
}

.about-feedback {
  padding: 0 20px;
  background: transparent;
}

.wide-art {
  display: block;
  width: 90%;
  max-width: 1050px;
  height: auto;
  margin: 0 auto;
}

.about-feedback-art {
  display: block;
  width: 94%;
  max-width: 1150px;
  height: auto;
  margin: 0 auto;
}


/* =========================================================
   5. Homepage artwork and image hotspots
   ========================================================= */

.artwork-wrap {
  position: relative;
  isolation: isolate;
  margin: 0 auto;
}

.county-map,
.resources-map,
.about-map {
  width: min(90%, 1050px);
}

.artwork-wrap > img {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: auto;
}

.image-hotspot,
.image-label {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 7px;
  border: 1px solid #d8cbb3;
  border-radius: 2px;
  background: var(--navy);
  color: var(--cream);
  font: bold 14px/1.15 Georgia, "Times New Roman", serif;
  text-align: center;
  text-decoration: none;
}


/* County Assemblies image hotspots */

.county-allegheny {
  top: 29%;
  left: 32%;
  width: 36%;
  height: 8%;
}

.county-chester {
  top: 40%;
  left: 32%;
  width: 36%;
  height: 8%;
}

.county-lancaster {
  top: 51%;
  left: 32%;
  width: 36%;
  height: 8%;
}

.county-montgomery {
  top: 62%;
  left: 32%;
  width: 36%;
  height: 8%;
}

.county-more {
  top: 73%;
  left: 32%;
  width: 36%;
  height: 8%;
}

.county-map a.image-hotspot {
  border-color: #662037;
  background: var(--navy);
  color: #fff;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.county-map a.image-hotspot:hover,
.county-map a.image-hotspot:focus-visible {
  border-color: #662037;
  background: transparent;
  color: var(--navy);
}


/* Optional county seals within county hotspots */

.county-link-content {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.county-link-content > span:first-child {
  padding: 0 52px;
  text-align: center;
}

.county-seal {
  position: absolute;
  top: 50%;
  right: 10px;
  width: clamp(30px, 3vw, 44px);
  height: clamp(30px, 3vw, 44px);
  max-width: none;
  object-fit: contain;
  transform: translateY(-50%);
}


/* Additional Resources image hotspots */

.resource-facts,
.resource-nla,
.resource-events,
.resource-dave,
.resource-poison-tree,
.resource-handbook,
.resource-private-book {
  top: auto;
  width: 28%;
  height: 16.5%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(16px, 1vw, 14px);
  font-weight: normal;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
}

.resource-facts,
.resource-nla,
.resource-events,
.resource-dave {
  left: 33.2%;
}

.resource-poison-tree,
.resource-handbook,
.resource-private-book {
  left: 66.3%;
}

.resource-facts,
.resource-poison-tree {
  top: 22%;
}

.resource-nla,
.resource-handbook {
  top: 39.5%;
}

.resource-events,
.resource-private-book {
  top: 57%;
}

.resource-dave {
  top: 74.5%;
}

.resources-map a.image-hotspot {
  background: transparent;
  color: var(--cream);
  font-weight: normal;
  text-decoration: none;
}

.resources-map a.image-hotspot:hover,
.resources-map a.image-hotspot:focus-visible {
  background: transparent;
  color: #fff;
  outline: 2px solid #fff;
  outline-offset: 2px;
}


/* About Us and Feedback image hotspots */

.about-link {
  top: 60%;
  left: 15%;
  width: 23%;
  height: 9%;
}

.feedback-link {
  top: 60%;
  left: 63%;
  width: 23%;
  height: 9%;
}

.about-map a.image-hotspot.about-link:hover,
.about-map a.image-hotspot.about-link:focus-visible,
.about-map a.image-hotspot.feedback-link:hover,
.about-map a.image-hotspot.feedback-link:focus-visible {
  border-color: #d8cbb3;
  background: var(--red);
  color: #fff;
}


/* =========================================================
   6. Shared interior-page font and content styling
   ========================================================= */

@font-face {
  font-family: "EnglishTowne";
  src: url("/assets/EnglishTowne.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.about-page {
  display: grid;
  width: min(100%, 1050px);
  min-height: 600px;
  place-items: center;
  margin: 0 auto;
  padding: 48px 28px;
  background: transparent;
  color: var(--navy);
  text-align: center;
}

.about-content {
  width: min(100%, 720px);
}

.about-content h1 {
  margin: 0 0 8px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: normal;
  line-height: 1.15;
}

#about-title,
.about-content h1.shared-page-title {
  color: var(--navy);
  font-family: "EnglishTowne", serif;
  font-size: 62px;
  font-weight: 400;
  line-height: 1.15;
}

.about-subtitle {
  margin: 0 0 30px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: bold;
  text-decoration: underline;
}

.about-description {
  margin: 0 auto;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.5;
}

.about-contact-prompt {
  margin: 42px 0 24px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.4;
  text-transform: uppercase;
}

.about-contact-button {
  display: inline-block;
  min-width: 185px;
  padding: 10px 20px;
  border: 2px solid var(--cream);
  background: var(--navy);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.about-contact-button:hover,
.about-contact-button:focus-visible {
  background: var(--red);
  color: #fff;
}


/* =========================================================
   7. County Assemblies overview and county-page buttons
   ========================================================= */

.county-selection {
  display: grid;
  width: min(80%, 420px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 22px;
  margin: 25px auto 0;
}

.county-button {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  letter-spacing: 1px;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.county-button:hover,
.county-button:focus-visible {
  background: transparent;
  color: var(--navy);
}

/* Main county overview links: larger resting size and modest hover enlargement. */
.county-selection .county-button {
  position: relative;
  min-height: 44px;
  padding: 8px 10px;
  font-size: clamp(12px, 3vw, 14px);
  letter-spacing: 0.5px;
  white-space: nowrap;
  transform-origin: center;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.county-selection .county-button:hover,
.county-selection .county-button:focus-visible {
  z-index: 2;
  border: 2px solid var(--navy);
  background: var(--paper);
  color: var(--navy);
  font-weight: bold;
  transform: scale(1.15);
}

/* County-name heading on each individual county page. */
body.county-page .about-content > h1.county-button:hover,
body.county-page .about-content > h1.county-button:focus-visible {
  border: 2px solid var(--navy) !important;
  background: transparent !important;
  color: var(--navy) !important;
}

/* Settlement Covenant and Photo Gallery controls on county pages. */
body.county-page .about-content > div .county-button:hover,
body.county-page .about-content > div .county-button:focus-visible {
  border: 2px solid var(--navy);
  background: var(--paper);
  color: var(--navy);
}

.county-content-page.about-page {
  display: block;
  width: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 38px 16px 32px;
}

.county-content-page .about-content {
  width: min(100%, 600px);
  margin: 0 auto;
}

.county-content-page .about-content h1.shared-page-title {
  margin: 0 0 13px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: normal;
  line-height: 1.15;
}

.county-content-page .county-description {
  max-width: 350px;
  margin: 0 auto;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.3;
}

.county-content-page .about-contact-button {
  min-width: 0;
  margin-top: 12px;
  padding: 4px 9px;
  border: 1px solid var(--cream);
  font-size: 12px;
  font-weight: normal;
  letter-spacing: 0.02em;
  text-transform: none;
}


/* =========================================================
   8. Newsletter page
   ========================================================= */

.newsletter-main {
  min-height: 1320px;
  padding: 24px 20px 30px;
  background: transparent;
}

.newsletter-page {
  width: min(100%, 1050px);
  margin: 0 auto;
}

.newsletter-current {
  margin: 0 0 36px 12%;
}

.newsletter-heading {
  margin: 0 0 12px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: normal;
}

.newsletter-page > .newsletter-heading {
  margin-bottom: 28px;
  margin-left: 10%;
}

.newsletter-current .newsletter-link {
  width: 180px;
}

.newsletter-grid {
  display: grid;
  width: 84%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 42px 8px;
  margin-left: 8%;
}

.newsletter-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #28231e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.newsletter-link:hover,
.newsletter-link:focus-visible {
  text-decoration: none;
}

.newsletter-pdf-icon {
  display: block;
  width: 120px;
  height: 150px;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
  transform-origin: center;
  transition: transform 0.3s ease;
}

.newsletter-pdf-icon:hover,
.newsletter-pdf-icon:focus-visible {
  position: relative;
  z-index: 10;
  transform: scale(3.0);
}


/* =========================================================
   9. Shared footer
   ========================================================= */

.site-footer {
  padding: 24px 20px;
  border-bottom: 5px solid var(--red);
  background: var(--paper);
}

.footer-inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.footer-links {
  display: grid;
  width: min(100%, 1100px);
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 0 auto;
}

.footer-link-column {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 10px;
  min-width: 0;
}

.footer-link-column a {
  display: block;
  width: 100%;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-align: left;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-link-column a:hover,
.footer-link-column a:focus-visible {
  color: var(--red);
  text-decoration: underline;
}

.footer-link-column a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}


/* =========================================================
   10. Accessibility helper
   ========================================================= */

.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;
}


/* =========================================================
   11. Responsive layouts
   ========================================================= */

@media (max-width: 1100px) {
  .footer-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner {
    width: 100%;
    padding: 8px 0 3px;
  }

  .site-header .brand {
    font-size: 17px;
  }

  .site-header .tagline {
    margin: 8px 0 13px;
    font-size: 17px;
  }

  .main-nav {
    width: 90%;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 3px;
  }

  .main-nav > a,
  .main-nav > .nav-dropdown > summary {
    padding: 4px 3px;
    font-size: 10px;
    white-space: nowrap;
  }

  .image-section {
    padding: 8px;
  }

  .about-feedback {
    padding: 0 8px;
  }

  .image-hotspot,
  .image-label {
    padding: 2px 3px;
    font-size: 9px;
  }

  .about-page {
    min-height: 520px;
    padding: 36px 18px;
  }

  .about-content h1 {
    font-size: 30px;
  }

  .about-description {
    font-size: 18px;
  }

  .newsletter-main {
    min-height: 390px;
    padding: 12px 16px 24px;
  }

  .newsletter-current {
    margin-left: 10%;
  }

  .newsletter-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 8px;
    margin-left: 0;
  }

  .county-selection {
    width: min(90%, 420px);
    column-gap: 32px;
  }

  .county-content-page.about-page {
    padding-top: 38px;
    padding-bottom: 32px;
  }

  .site-footer {
    padding: 16px 14px;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
  }
}

@media (max-width: 480px) {
  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-header .tagline {
    font-size: 15px;
  }

  .county-selection {
    width: min(94%, 420px);
    column-gap: 26px;
    row-gap: 20px;
  }

  .county-selection .county-button {
    min-height: 42px;
  }

  .county-selection .county-button:hover,
  .county-selection .county-button:focus-visible {
    transform: scale(1.08);
  }

  .county-content-page .about-content h1.shared-page-title {
    font-size: 25px;
  }

  .county-content-page .county-description {
    font-size: 12px;
  }
}


/* Keep resource labels readable on touchscreens. */

@media (hover: none) {
  .resources-map a.image-hotspot {
    color: var(--cream);
  }
}
