/* JUPACH section surfaces: quiet framing inspired by editorial site previews.
   Keep the existing React cards, photographs, controls and content intact. */
html body {
  background: #f5f7f9;
}

/* Replace the thick yellow/green/blue strips on the large content panels. */
html body main > .section,
html body main > .section.container,
html body main > #jupach-news-section,
html body main > .detail,
html body main > .community-finder,
html body main > .jupach-calendar {
  border: 0 !important;
  border-image: none;
  border-radius: 28px;
  background: #fffefa !important;
  box-shadow: 0 12px 40px #102c4d08;
}

html body main > .section {
  width: calc(100% - 48px);
  max-width: 1240px;
  margin: 34px auto;
  padding: 44px 0;
}

html body main > .section.container {
  padding: 44px 36px;
  border-radius: 28px;
}

html body main > #jupach-news-section {
  padding: 44px 36px;
  border-radius: 28px;
}

html body main > .detail {
  width: calc(100% - 48px);
  max-width: 900px;
  margin: 34px auto;
  padding: 40px 36px;
}

html body main > :is(.community-finder, .jupach-calendar) {
  width: calc(100% - 48px);
  max-width: 1240px;
  margin: 34px auto;
  padding: 40px 0;
}

html body main > .page-hero {
  border-bottom: 0;
}

/* Balanced section headings; individual card typography remains unchanged. */
html body main .section-title h2,
html body main .intro h2,
html body main .cm-heading h2 {
  font-size: clamp(30px, 3.25vw, 44px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.04em;
  text-wrap: balance;
}

html body main #jupach-news-section .section-title h2 {
  font-size: clamp(30px, 3.25vw, 44px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.04em;
  text-wrap: balance;
}

html body main .intro > div:first-child > h2 {
  max-width: 20ch;
}

html body main .intro > div:first-child > p:not(.eyebrow) {
  max-width: 58ch;
  color: #40536b;
  font-size: 15px;
  line-height: 1.85;
}

html body main .section-title {
  margin-bottom: 32px;
}

/* Remove the extra colored frame around the coordination cards. */
html body main .coordinations-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html body main .history-note {
  border: 0;
  border-radius: 20px;
  background: #f2f5f8;
}

html body main .detail .facts div {
  border: 0;
  background: #f2f5f8;
}

/* Functional panels keep their controls and selected-state brand colors. */
html body main .form {
  border: 1px solid #e0e6ed;
  border-radius: 20px;
  background: #fff;
  box-shadow: none;
}

html body main .community-finder :is(.cm-sidebar, .contact-googleMap) {
  border-top: 0;
}

html body main .community-finder .cm-selection {
  background: #fff;
}

html body main .jupach-calendar::before {
  background: none;
}

html body main .jupach-calendar :is(.jupach-calendar__main, .jupach-calendar__sidebar) {
  border: 1px solid #e0e6ed;
  box-shadow: none;
}

@media (max-width: 680px) {
  html body main > .section,
  html body main > .section.container,
  html body main > #jupach-news-section,
  html body main > .detail,
  html body main > .community-finder,
  html body main > .jupach-calendar {
    width: calc(100% - 24px);
    margin-block: 24px;
    border-radius: 22px;
  }

  html body main > .section {
    padding: 30px 0;
  }

  html body main > .section.container,
  html body main > #jupach-news-section,
  html body main > .detail {
    padding: 30px 20px;
  }

  html body main > .section.container { border-radius: 22px; }
  html body main > #jupach-news-section { border-radius: 22px; }

  html body main > :is(.community-finder, .jupach-calendar) {
    padding-block: 30px;
  }

  html body main .section-title {
    margin-bottom: 26px;
  }

  html body main .intro > div:first-child > p:not(.eyebrow) {
    font-size: 14px;
  }
}
