:root {
  --ogc-beige: var(--ogc-color-beige);
  --ogc-turquoise: var(--ogc-color-turquoise);
  --ogc-salmon: var(--ogc-color-salmon);
  --ogc-white: var(--ogc-card-bg);
  --ogc-muted: var(--ogc-muted-ink);
  --ogc-black: var(--ogc-ink);
  --site-content-width: 88rem;
  --site-reading-width: 64rem;
  --site-radius: 0.9rem;
  --site-chapter-overlay: rgba(255, 251, 244, 0.8);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--ogc-page-bg);
}

body {
  display: flex;
  min-height: 100vh;
  margin: 0;
  flex-direction: column;
  background: var(--ogc-page-bg);
  color: var(--ogc-ink);
  font-family: var(--ogc-font-body);
  line-height: 1.5;
}

img,
svg,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header,
.site-footer {
  background: var(--ogc-turquoise);
}

.desktop-navigation {
  display: none;
  gap: 1rem;
}

.nav-link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  color: var(--ogc-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: var(--ogc-salmon);
  color: var(--ogc-white);
}

.nav-link.active {
  background: var(--ogc-beige);
  color: var(--ogc-black);
}

.mobile-navigation {
  display: flex;
  max-width: 80rem;
  margin-inline: auto;
  padding: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.mobile-brand {
  display: flex;
  align-items: center;
}

.mobile-brand img {
  display: block;
  width: 2rem;
  height: 2rem;
}

.menu-toggle {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: var(--ogc-salmon);
  outline: 2px solid var(--ogc-beige);
}

.menu-toggle svg {
  width: 1.25rem;
  fill: none;
  stroke: var(--ogc-beige);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.mobile-menu {
  width: 100%;
  margin-top: 1rem;
}

.mobile-menu[hidden] {
  display: none;
}

.page-content {
  width: 100%;
  margin-inline: auto;
  flex: 1 0 auto;
}

.display-title,
.display-subtitle {
  font-family: var(--ogc-font-display);
  font-weight: 400;
}

.display-title {
  margin: 1rem;
  font-size: 2.25rem;
  line-height: 2.5rem;
  text-align: center;
}

.display-subtitle {
  margin: 2rem 1rem;
  font-size: 1.5rem;
  line-height: 2rem;
  text-align: center;
}

.lead {
  font-family: var(--ogc-font-body);
  font-weight: 400;
}

.lead {
  margin: 2rem 1rem;
  font-size: 1.25rem;
  text-align: center;
}

.embed-grid {
  display: grid;
  gap: 0;
  padding: 1rem;
}

.embed-grid iframe {
  width: 100%;
  border: 0;
}

.home-submission {
  margin-block: 2rem;
}

.site-footer {
  color: var(--ogc-white);
}

.footer-content {
  display: grid;
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding: 1rem;
  align-items: center;
  font-size: 0.875rem;
  text-align: center;
}

.footer-content span {
  padding: 0.25rem;
}

.footer-content a:hover,
.footer-content a:focus-visible {
  color: var(--ogc-salmon);
}

.about-page {
  min-height: 20rem;
}

.about-copy {
  margin: 2rem 5%;
  font-size: 1.25rem;
  font-weight: 400;
  text-align: center;
}

.shows-page {
  padding-top: 2rem;
}

.show-grid {
  display: grid;
  grid-template-columns: 1fr;
  padding: 1rem;
}

.show-card {
  padding: 0.5rem;
  border-bottom: 2px solid var(--ogc-turquoise);
  text-align: center;
}

.show-card h3,
.show-card h4,
.spotify-show h3,
.spotify-show h4 {
  margin: 2rem 0;
  font-family: var(--ogc-font-body);
  font-size: 1.5rem;
  font-weight: 400;
  text-decoration: underline;
}

.show-card a:hover h3,
.show-card a:focus-visible h3,
.show-card a:hover h4,
.show-card a:focus-visible h4,
.spotify-show a:hover h3,
.spotify-show a:focus-visible h3,
.spotify-show a:hover h4,
.spotify-show a:focus-visible h4 {
  color: var(--ogc-salmon);
}

.show-card img {
  display: block;
  width: 320px;
  margin: 1rem auto;
}

.spotify-show {
  width: min(32rem, calc(100% - 2rem));
  margin: 0 auto 2rem;
  text-align: center;
}

.spotify-show iframe {
  border: 0;
  border-radius: 0.75rem;
}

/* Functional detail-page layout migrated from the source application. */
.chapter-detail,
.show-detail {
  padding: 1rem;
}

.chapter-detail > h1,
.chapter-detail > h2,
.show-detail > h1 {
  margin: 1rem auto;
  font-family: "Norwester", Impact, sans-serif;
  font-weight: 400;
  text-align: center;
}

.chapters-page.chapter-detail > h1,
.show-detail > h1 {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.chapter-detail > h2,
.show-detail > h2 {
  max-width: 64rem;
  margin: 1rem auto;
  font-size: 1.25rem;
  line-height: 1.75rem;
  text-align: center;
}

.chapter-detail > img {
  display: block;
  max-height: 30rem;
  margin: 1rem auto;
  object-fit: contain;
}

.chapter-detail > p {
  max-width: 64rem;
  margin: 1rem auto;
  font-size: 1.125rem;
  line-height: 1.75rem;
  text-align: center;
}

.chapter-detail > p a:hover,
.chapter-detail > p a:focus-visible {
  color: var(--ogc-salmon);
}

.show-detail .flex {
  display: flex;
}

.show-detail .justify-center {
  justify-content: center;
}

.show-detail > .flex iframe {
  width: min(52.5rem, 100%);
  max-width: 100%;
  border: 0;
}

.show-detail > .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem;
}

.show-detail > .grid iframe {
  width: 100%;
  border: 0;
}

.video-grid {
  display: grid;
  gap: 2rem;
  padding: 1rem 2rem;
}

.video-grid iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* Chapter page utilities retained from the source layout. */
.chapters-page .text-center {
  text-align: center;
}

.chapters-page .text-4xl,
.chapters-page .text-3xl,
.chapters-page article h2,
.chapters-page .text-xl,
.chapters-page a h2 {
  font-family: var(--ogc-font-display);
  font-weight: 400;
}

.chapters-page .text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.chapters-page .text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.chapters-page .text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.chapters-page .text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.chapters-page .text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.chapters-page .underline {
  text-decoration: underline;
}

.chapters-page a:hover h2,
.chapters-page a:focus-visible h2 {
  color: var(--ogc-salmon);
}

.chapters-page .my-4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.chapters-page .my-8 {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.chapters-page .mt-12 {
  margin-top: 3rem;
}

.chapters-page .mb-4 {
  margin-bottom: 1rem;
}

.chapters-page .mb-8 {
  margin-bottom: 2rem;
}

.chapters-page .mx-16 {
  margin-right: 4rem;
  margin-left: 4rem;
  font-family: var(--ogc-font-body);
  font-weight: 400;
}

.chapters-page .grid {
  display: grid;
}

.chapters-page .grid-cols-1 {
  grid-template-columns: 1fr;
}

.chapters-page .p-2 {
  padding: 0.5rem;
}

.chapters-page .p-4 {
  padding: 1rem;
}

.chapters-page .border-t-2 {
  border-top: 2px solid var(--ogc-turquoise);
}

.chapters-page .border-t-4 {
  border-top: 4px solid var(--ogc-turquoise);
}

.chapters-page .border-b-2 {
  border-bottom: 2px solid var(--ogc-turquoise);
}

.chapters-page .border-b-4 {
  border-bottom: 4px solid var(--ogc-turquoise);
}

.chapters-page .block {
  display: block;
}

.chapters-page .mx-auto {
  margin-right: auto;
  margin-left: auto;
}

.chapters-page img {
  max-height: 22rem;
  object-fit: contain;
}

.chapters-page .flex {
  display: flex;
}

.chapters-page .items-center {
  align-items: center;
}

.chapters-page .justify-center {
  justify-content: center;
}

.chapters-page .relative {
  position: relative;
}

.chapters-page .h-3\/4,
.chapters-page .w-3\/4 {
  width: 75%;
}

.chapter-bg-virginia,
.chapter-bg-new-england,
.chapter-bg-alabama,
.chapter-bg-florida {
  background-position: center;
  background-size: cover;
  background-color: rgba(255, 255, 255, 0.5);
  background-blend-mode: overlay;
}

.chapter-bg-virginia {
  background-image: url("/assets/media/virginia-bg.jpg");
}

.chapter-bg-new-england {
  background-image: url("/assets/media/new-england-bg.jpg");
  background-position: top;
}

.chapter-bg-alabama {
  background-image: url("/assets/media/alabama-bg.jpg");
  background-position: top;
}

.chapter-bg-florida {
  background-image: url("/assets/media/florida-bg.jpg");
}

/* Chapter map */
.map-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 1rem;
  padding: 0 1rem;
}

.map-result {
  text-align: center;
}

.map-result[hidden] {
  display: none;
}

.map-result h2 {
  margin: 0;
  font-family: var(--ogc-font-display);
  font-size: 1.25rem;
  font-weight: 400;
}

.map-result a {
  display: block;
  color: var(--ogc-turquoise);
  font-family: var(--ogc-font-body);
  text-decoration: underline;
}

.map-result a:hover,
.map-result a:focus-visible {
  color: var(--ogc-salmon);
}

.usa-map {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
}

.map-state {
  cursor: pointer;
  outline: none;
}

.map-state path {
  stroke: var(--ogc-salmon);
  transition: fill 0.3s, stroke 0.3s;
}

.map-state.has-chapters path {
  fill: var(--ogc-turquoise);
}

.map-state.no-chapters path {
  fill: var(--ogc-beige);
}

.map-state:hover path,
.map-state:focus-visible path,
.map-state.selected path {
  fill: var(--ogc-salmon);
  stroke: var(--ogc-turquoise);
  stroke-width: 2;
}

.map-state text {
  fill: #333;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
  text-anchor: middle;
  dominant-baseline: middle;
  user-select: none;
}

@media (min-width: 40rem) {
  .desktop-navigation {
    display: flex;
  }

  .mobile-navigation {
    display: none;
  }

  .embed-grid--two,
  .show-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-grid--standard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-grid--standard > iframe:last-child:nth-child(odd) {
    width: calc(50% - 0.625rem);
    grid-column: 1 / -1;
    justify-self: center;
  }

  .embed-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .show-detail > .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-submission {
    margin-block: 4rem;
  }

  .footer-content {
    display: flex;
    justify-content: space-between;
  }

  .about-copy {
    margin-inline: 20%;
  }

  .show-card:nth-child(odd) {
    border-right: 2px solid var(--ogc-turquoise);
  }

  .show-card:nth-child(even) {
    border-left: 2px solid var(--ogc-turquoise);
  }

  .chapters-page .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chapters-page .md\:border-r-2 {
    border-right: 2px solid var(--ogc-turquoise);
  }

  .chapters-page .md\:border-l-2 {
    border-left: 2px solid var(--ogc-turquoise);
  }

  .chapters-page .md\:border-t-2 {
    border-top: 2px solid var(--ogc-turquoise);
  }

  .chapters-page .md\:border-b-4 {
    border-bottom: 4px solid var(--ogc-turquoise);
  }

  .chapters-page .md\:border-b-0 {
    border-bottom: 0;
  }
}

@media (min-width: 64rem) {
  .embed-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .show-detail > .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 80rem) {
  .lead {
    margin-right: 16rem;
    margin-left: 16rem;
  }
}

/* Theme-backed application polish. Shared colors, typography, focus treatment,
   and dark mode come from the pinned jamestown-ogc-web-theme stylesheet. */

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.4rem;
  background: var(--ogc-button-bg);
  color: var(--ogc-button-ink) !important;
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 120ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--ogc-control-border);
  background: var(--ogc-menu-bg);
  box-shadow: 0 0.25rem 1.5rem var(--ogc-card-shadow);
  color: var(--ogc-ink);
  backdrop-filter: blur(0.8rem);
}

.desktop-header {
  display: none;
}

.site-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.7rem;
  color: var(--ogc-ink) !important;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
}

.site-brand img {
  display: block;
  width: 1.75rem;
  height: 2.5rem;
  flex: 0 0 1.75rem;
  object-fit: cover;
}

.desktop-navigation {
  align-items: center;
  gap: 0.2rem;
}

.nav-link {
  min-height: 2.5rem;
  padding: 0.62rem 0.78rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  color: var(--ogc-muted-ink) !important;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.nav-link:hover {
  border-color: var(--ogc-card-border);
  background: var(--ogc-surface-hover);
  color: var(--ogc-ink) !important;
}

.nav-link:focus-visible,
.site-brand:focus-visible,
.menu-toggle:focus-visible,
.footer-content a:focus-visible,
.show-card a:focus-visible,
.spotify-show a:focus-visible,
.chapters-page a:focus-visible,
.map-result a:focus-visible {
  outline: 2px solid var(--ogc-link);
  outline-offset: 3px;
}

.nav-link.active {
  border-color: var(--ogc-control-border);
  background: var(--ogc-surface-subtle);
  color: var(--ogc-ink) !important;
}

.mobile-navigation {
  max-width: var(--site-content-width);
  padding: 0.45rem 1rem;
}

.mobile-brand img {
  width: 1.75rem;
  height: 2.5rem;
}

.menu-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--ogc-control-border);
  border-radius: 0.5rem;
  background: var(--ogc-surface-3);
  color: var(--ogc-ink);
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: var(--ogc-surface-subtle);
  outline-color: var(--ogc-link);
}

.menu-toggle svg {
  stroke: currentColor;
}

.mobile-menu {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.45rem;
  padding: 0.55rem 0 0.3rem;
  border-top: 1px solid var(--ogc-control-border);
}

.page-content {
  max-width: var(--site-content-width);
  padding: 2.25rem clamp(1rem, 3vw, 2.5rem) 4rem;
}

.display-title,
.chapters-page .text-4xl {
  margin: 0 auto 1rem;
  color: var(--ogc-scope-ink);
  font-size: clamp(2.35rem, 1.7rem + 3vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
}

.display-subtitle {
  max-width: 56rem;
  margin: 1.25rem auto 2rem;
  color: var(--ogc-ink);
  font-size: clamp(1.35rem, 1.05rem + 1vw, 2rem);
  line-height: 1.25;
}

.lead {
  color: var(--ogc-muted-ink);
  line-height: 1.55;
}

.lead {
  max-width: var(--site-reading-width);
  margin: 2rem auto;
}

.embed-grid {
  gap: 1.25rem;
  padding: 1rem 0;
}

.embed-grid iframe,
.video-grid iframe,
.spotify-show iframe {
  border: 1px solid var(--ogc-card-border);
  border-radius: var(--site-radius);
  background: var(--ogc-card-bg);
  box-shadow: 0 0.65rem 1.8rem var(--ogc-card-shadow);
}

.home-submission {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--ogc-card-border);
  border-radius: var(--site-radius);
  background: var(--ogc-card-bg);
  box-shadow: 0 0.65rem 1.8rem var(--ogc-card-shadow);
  color: var(--ogc-ink);
}

.shows-page {
  padding-top: 2.25rem;
}

.show-grid {
  gap: 1rem;
  padding: 1rem 0;
}

.show-card {
  padding: 1.25rem;
  border: 1px solid var(--ogc-card-border) !important;
  border-radius: var(--site-radius);
  background: var(--ogc-card-bg);
  box-shadow: 0 0.65rem 1.8rem var(--ogc-card-shadow);
}

.show-card h3,
.show-card h4,
.spotify-show h3,
.spotify-show h4 {
  margin: 0.5rem 0 1.25rem;
  color: var(--ogc-ink);
  font-family: var(--ogc-font-body);
  font-weight: 700;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.show-card img {
  margin: 0 auto;
  border-radius: 0.65rem;
}

.spotify-show {
  padding: 1.25rem;
  border: 1px solid var(--ogc-card-border);
  border-radius: var(--site-radius);
  background: var(--ogc-card-bg);
  box-shadow: 0 0.65rem 1.8rem var(--ogc-card-shadow);
}

.video-grid {
  gap: 1.25rem;
  padding: 1rem 0;
}

.about-page {
  display: grid;
  min-height: min(65vh, 42rem);
  place-content: center;
}

.about-page .display-subtitle,
.about-copy {
  width: min(58rem, 100%);
  margin-right: auto;
  margin-left: auto;
}

.about-copy {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--ogc-card-border);
  border-radius: var(--site-radius);
  background: var(--ogc-card-bg);
  box-shadow: 0 0.65rem 1.8rem var(--ogc-card-shadow);
  color: var(--ogc-muted-ink);
  font-family: var(--ogc-font-body);
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  line-height: 1.65;
}

.chapters-page > h2,
.chapters-page > a > h2 {
  color: var(--ogc-ink);
}

.chapters-page > .founding-intro {
  max-width: 62ch;
  margin: 1.25rem auto 2.5rem;
  color: var(--ogc-muted-ink);
  font-family: var(--ogc-font-body);
  font-size: clamp(1rem, 0.94rem + 0.25vw, 1.15rem);
  font-weight: 400;
  hyphens: auto;
  line-height: 1.7;
  text-align: justify;
  text-wrap: pretty;
}

.chapters-page > .grid {
  gap: 1rem;
  padding: 0;
}

.chapters-page > .grid > div {
  overflow: hidden;
  padding: clamp(1rem, 2.5vw, 1.6rem);
  border: 1px solid var(--ogc-card-border) !important;
  border-radius: var(--site-radius);
  background-color: var(--ogc-card-bg);
  box-shadow: 0 0.65rem 1.8rem var(--ogc-card-shadow);
  text-align: center;
}

.chapter-bg-virginia,
.chapter-bg-new-england,
.chapter-bg-alabama,
.chapter-bg-florida {
  background-color: var(--site-chapter-overlay) !important;
  background-blend-mode: overlay;
}

.chapters-page > .grid > div h2 {
  margin-top: 0.75rem;
  color: var(--ogc-ink);
  font-size: clamp(1.35rem, 1.1rem + 0.7vw, 1.8rem);
}

.chapters-page > .grid > div h3 {
  max-width: 60ch;
  margin-right: auto;
  margin-left: auto;
  color: var(--ogc-muted-ink);
  font-family: var(--ogc-font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.chapters-page > .grid > div p.text-center {
  max-width: 72ch;
  margin-right: auto;
  margin-left: auto;
  color: var(--ogc-ink);
  hyphens: auto;
  line-height: 1.65;
  text-align: justify;
  text-wrap: pretty;
}

.chapters-page img {
  padding: 0.35rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.78);
}

.map-page {
  min-height: 70vh;
}

.map-results {
  gap: 0.75rem;
  padding: 0 0 1rem;
}

.map-result {
  padding: 0.85rem;
  border: 1px solid var(--ogc-card-border);
  border-radius: 0.65rem;
  background: var(--ogc-card-bg);
  box-shadow: 0 0.35rem 1rem var(--ogc-card-shadow);
}

.map-result h2 {
  color: var(--ogc-ink);
}

.map-result a {
  color: var(--ogc-link);
  font-family: var(--ogc-font-body);
}

.usa-map {
  padding: clamp(0.5rem, 2vw, 1.5rem);
  border: 1px solid var(--ogc-card-border);
  border-radius: var(--site-radius);
  background: var(--ogc-surface-1);
  box-shadow: 0 0.65rem 1.8rem var(--ogc-card-shadow);
}

.map-state.has-chapters path {
  fill: var(--ogc-color-turquoise);
}

.map-state.no-chapters path {
  fill: var(--ogc-surface-3);
}

.map-state text {
  fill: var(--ogc-ink);
}

.site-footer {
  border-top: 1px solid var(--ogc-control-border);
  background: var(--ogc-surface-1);
  color: var(--ogc-muted-ink);
}

.footer-content {
  max-width: var(--site-content-width);
  gap: 0.5rem 1.25rem;
  padding: 1.25rem clamp(1rem, 3vw, 2.5rem);
}

.footer-content a {
  color: var(--ogc-link);
}

.footer-content a:hover,
.footer-content a:focus-visible,
.show-card a:hover h3,
.show-card a:focus-visible h3,
.show-card a:hover h4,
.show-card a:focus-visible h4,
.spotify-show a:hover h3,
.spotify-show a:focus-visible h3,
.spotify-show a:hover h4,
.spotify-show a:focus-visible h4,
.chapters-page a:hover h2,
.chapters-page a:focus-visible h2,
.map-result a:hover,
.map-result a:focus-visible {
  color: var(--ogc-color-salmon);
}

/* Shared editorial hierarchy for index pages. */

.page-intro,
.page-section-intro,
.chapter-program-header p {
  color: var(--ogc-muted-ink);
  font-family: var(--ogc-font-body);
  font-weight: 400;
  line-height: 1.7;
  text-align: center;
  text-wrap: pretty;
}

.page-intro {
  width: min(62ch, 100%);
  margin: 1.25rem auto 2.5rem;
  font-size: clamp(1rem, 0.94rem + 0.25vw, 1.15rem);
}

.page-section {
  margin: 3rem auto 0;
  padding-top: 3rem;
  border-top: 1px solid var(--ogc-control-border);
}

.page-section-header {
  width: min(68rem, 100%);
  margin: 0 auto 1.25rem;
  text-align: center;
}

.page-section-title,
.chapter-program-title {
  color: var(--ogc-scope-ink);
  font-family: var(--ogc-font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-align: center;
  text-wrap: balance;
}

.page-section-title {
  margin: 0;
  font-size: clamp(1.9rem, 1.45rem + 1.7vw, 3rem);
}

.page-section-title::after {
  display: block;
  width: 4.5rem;
  height: 0.2rem;
  margin: 1rem auto 0;
  border-radius: 999px;
  background: var(--ogc-color-salmon);
  content: "";
}

.page-section-intro {
  width: min(62ch, 100%);
  margin: 1.25rem auto 0;
  font-size: clamp(1rem, 0.94rem + 0.25vw, 1.15rem);
}

.chapter-programs {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.chapter-program {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--ogc-card-border);
  border-radius: var(--site-radius);
  background: var(--ogc-surface-1);
  box-shadow: 0 0.65rem 1.8rem var(--ogc-card-shadow);
}

.chapter-program-title {
  margin: 0;
  font-size: clamp(1.55rem, 1.25rem + 1vw, 2.2rem);
}

.chapter-program-header p {
  width: min(58ch, 100%);
  margin: 0.85rem auto 0;
}

.chapter-program .show-grid {
  margin-top: 0.75rem;
}

.chapter-program .spotify-show {
  width: min(36rem, 100%);
  margin: 1.75rem auto 0;
}

.event-meta {
  margin: 0 0 0.75rem;
  color: var(--ogc-color-salmon);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.event-resource {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ogc-card-border);
}

.event-resource-title {
  margin: 0 auto 0.5rem;
  color: var(--ogc-ink);
  font-family: var(--ogc-font-body);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.45rem);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.map-intro {
  margin-bottom: 1.75rem;
}

/* Detail-page renovation. The migrated templates retain the source content;
   these semantic wrappers supply the deployment's theme-backed presentation. */

.chapter-detail,
.show-detail {
  min-height: 65vh;
}

.chapter-detail > h1,
.show-detail > h1 {
  max-width: 18ch;
  margin-bottom: 1.25rem;
  color: var(--ogc-scope-ink);
  font-family: var(--ogc-font-display);
  font-size: clamp(2.35rem, 1.7rem + 3vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.chapters-page.chapter-detail > h2,
.show-detail > h2,
.chapters-page.chapter-detail > h3 {
  width: min(64rem, 100%);
  margin: 1.25rem auto 2rem;
  color: var(--ogc-muted-ink);
  font-family: var(--ogc-font-body);
  font-size: clamp(1.05rem, 0.94rem + 0.55vw, 1.4rem);
  font-weight: 400;
  line-height: 1.65;
  text-align: center;
  text-wrap: pretty;
}

.chapters-page.chapter-detail > h2:empty {
  display: none;
}

.chapters-page.chapter-detail > img {
  width: auto;
  max-width: min(32rem, 100%);
  max-height: 32rem;
  margin: 1.75rem auto 2.25rem;
  padding: clamp(0.6rem, 2vw, 1rem);
  border: 1px solid var(--ogc-card-border);
  border-radius: var(--site-radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0.65rem 1.8rem var(--ogc-card-shadow);
}

.chapters-page.chapter-detail > p {
  width: min(68ch, 100%);
  margin: 1rem auto;
  color: var(--ogc-ink);
  font-size: clamp(1.02rem, 0.96rem + 0.22vw, 1.15rem);
  hyphens: auto;
  line-height: 1.75;
  text-align: justify;
  text-wrap: pretty;
}

.chapters-page.chapter-detail > p:first-of-type {
  margin-top: 2rem;
}

.chapters-page.chapter-detail > p:last-of-type {
  margin-bottom: 0;
}

.chapters-page.chapter-detail > p a {
  color: var(--ogc-link);
  font-weight: 700;
  text-underline-offset: 0.16em;
}

.chapter-detail > .grid {
  gap: 1rem;
  padding: 0;
}

.show-detail > h2 {
  max-width: 56rem;
}

.show-detail > .flex {
  width: min(58rem, 100%);
  margin: 0 auto;
  padding: clamp(0.5rem, 1.5vw, 0.85rem);
  border: 1px solid var(--ogc-card-border);
  border-radius: var(--site-radius);
  background: var(--ogc-card-bg);
  box-shadow: 0 0.65rem 1.8rem var(--ogc-card-shadow);
}

.show-detail > .flex iframe {
  display: block;
  border-radius: calc(var(--site-radius) - 0.3rem);
  background: var(--ogc-surface-3);
}

.show-detail > .flex iframe[src*="youtube.com"] {
  height: auto;
  aspect-ratio: 16 / 9;
}

.show-detail > .grid {
  gap: 1rem;
  padding: 0;
}

.show-detail > .grid > div {
  min-width: 0;
  padding: 0.5rem;
  border: 1px solid var(--ogc-card-border);
  border-radius: var(--site-radius);
  background: var(--ogc-card-bg);
  box-shadow: 0 0.65rem 1.8rem var(--ogc-card-shadow);
}

.show-detail > .grid iframe {
  display: block;
  min-width: 0;
  border-radius: calc(var(--site-radius) - 0.35rem);
  background: var(--ogc-surface-3);
}

@media (prefers-color-scheme: dark) {
  :root {
    --site-chapter-overlay: rgba(10, 26, 29, 0.82);
  }

  .chapters-page img {
    background: rgba(255, 255, 255, 0.88);
  }
}

@media (min-width: 40rem) {
  .desktop-header {
    display: flex;
    width: 100%;
    max-width: var(--site-content-width);
    min-height: 3.75rem;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-inline: auto;
    padding: 0.45rem clamp(1rem, 3vw, 2.5rem);
  }

  .show-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chapters-page > .grid.md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chapter-detail > .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 39.99rem) {
  .page-content {
    padding-top: 1.75rem;
  }

  .site-brand span {
    max-width: 12rem;
  }

  .embed-grid iframe {
    min-height: 34rem;
  }

  .chapters-page .mx-16 {
    margin-right: 0;
    margin-left: 0;
  }

  .chapters-page.chapter-detail > h1,
  .show-detail > h1 {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  .show-detail > .grid iframe {
    min-height: 38rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
