:root {
  --page-background: #f7f8fa;
}

body,
main {
  background: var(--page-background);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 0;
}

.header-main {
  background: #fff;
  border-bottom: 1px solid rgba(32, 38, 79, .12);
}

.header-inner {
  height: 84px;
  gap: 18px;
}

.brand {
  flex: 0 0 auto;
  gap: 13px;
}

.brand-logo {
  width: 116px;
  height: 50px;
}

.brand-copy {
  padding-left: 13px;
}

.brand-copy strong {
  font-size: 1.04rem;
}

.brand-copy span {
  margin-top: 5px;
  font-size: .78rem;
}

.main-nav {
  position: static;
  display: flex;
  flex: 1;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.main-nav a::after {
  display: none;
}

.public-navigation {
  width: 100%;
  background: var(--primary);
  box-shadow: 0 3px 10px rgba(32, 38, 79, .08);
}

.public-navigation-inner {
  display: flex;
  min-height: 34px;
  align-items: stretch;
}

.public-navigation-link {
  position: relative;
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 4px 20px;
  color: #fff;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  transition: background .2s, box-shadow .2s;
}

.public-navigation-link:hover,
.public-navigation-link:focus-visible {
  background: rgba(255, 255, 255, .13);
}

.public-navigation-link.is-active {
  background: rgba(255, 255, 255, .2);
  box-shadow: inset 0 -3px #fff;
  font-weight: 700;
}

.public-empty-page {
  min-height: clamp(380px, 56vh, 680px);
  background: var(--page-background);
}

.public-page-section {
  padding: 58px 0 82px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(34px, 7vw, 92px);
}

.contact-intro {
  padding-top: 18px;
}

.contact-intro h1 {
  margin: 0 0 20px;
  color: var(--primary);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.contact-intro p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
}

.contact-form-card {
  padding: clamp(24px, 4vw, 42px);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--primary);
  font-size: .82rem;
  font-weight: 750;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd2de;
  border-radius: 8px;
}

.contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(32, 38, 79, .1);
}

.contact-form .button {
  justify-self: start;
  min-width: 170px;
}

.membership-intro {
  max-width: 850px;
  margin: 0 auto 42px;
  text-align: center;
}

.membership-intro h1 {
  margin: 0 0 20px;
  color: var(--primary);
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.membership-intro p {
  max-width: 790px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.membership-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.membership-card {
  position: relative;
  padding: clamp(26px, 4vw, 40px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 35px rgba(19, 24, 55, .06);
}

.membership-card-primary {
  background: var(--soft);
  border-top: 4px solid var(--accent);
}

.membership-card-label {
  display: inline-flex;
  padding: 6px 10px;
  color: var(--accent);
  background: #fff0f1;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.membership-card h2 {
  margin: 18px 0 13px;
  color: var(--primary);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.15;
}

.membership-card > p {
  margin: 0 0 24px;
  color: var(--muted);
}

.membership-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.membership-card li {
  position: relative;
  padding-left: 26px;
  color: #43475a;
  line-height: 1.5;
}

.membership-card li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--accent);
  font-weight: 900;
}

.membership-portal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  margin-top: 28px;
  padding: clamp(26px, 4vw, 38px);
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius);
}

.membership-portal .eyebrow {
  color: #ff8f94;
}

.membership-portal h2 {
  margin: 8px 0;
  color: #fff;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
}

.membership-portal p {
  margin: 0;
  color: #c9cce0;
}

.membership-portal-button {
  flex: 0 0 auto;
  min-width: 190px;
}

.local-nuclei-intro {
  max-width: 820px;
  margin: 0 auto 38px;
  text-align: center;
}

.local-nuclei-intro h1 {
  margin: 0 0 18px;
  color: var(--primary);
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.local-nuclei-intro p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.local-nuclei-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.local-nucleus-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(19, 24, 55, .055);
}

.local-nucleus-logos {
  display: grid;
  align-items: center;
  justify-content: center;
  justify-items: center;
  gap: 10px;
  height: 158px;
  min-height: 158px;
  padding: 22px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.local-nucleus-logos.logo-count-1 {
  grid-template-columns: minmax(0, 1fr);
}

.local-nucleus-logos.logo-count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.local-nucleus-logos.logo-count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.local-nucleus-logos.logo-count-many {
  grid-template-columns: repeat(auto-fit, minmax(72px, 104px));
  grid-auto-rows: minmax(0, 1fr);
}

.local-nucleus-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 104px;
  height: 112px;
  max-height: 112px;
  min-width: 0;
  padding: 7px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6e8ef;
  border-radius: 10px;
}

.local-nucleus-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  max-width: 100%;
  max-height: 100%;
}

.logo-count-many .local-nucleus-logo {
  height: 100%;
  max-height: 60px;
}

.local-nucleus-logo > span {
  color: #9a9eb0;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.local-nucleus-logo.is-fallback {
  background: repeating-linear-gradient(135deg, #fff, #fff 9px, #f3f4f8 9px, #f3f4f8 18px);
}

.local-nucleus-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 25px;
}

.local-nucleus-content h2 {
  margin: 0 0 22px;
  color: var(--primary);
  font-size: clamp(1.25rem, 2vw, 1.62rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.local-nucleus-people {
  display: grid;
  gap: 13px;
  margin: auto 0 0;
}

.local-nucleus-people div {
  display: grid;
  gap: 3px;
  padding-top: 13px;
  border-top: 1px solid #eceef3;
}

.local-nucleus-people dt {
  color: var(--accent);
  font-size: .69rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.local-nucleus-people dd {
  margin: 0;
  color: #35394b;
  font-weight: 750;
}

.local-nuclei-empty {
  padding: 55px 25px;
  text-align: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.local-nuclei-empty h2 {
  margin: 0 0 8px;
  color: var(--primary);
}

.local-nuclei-empty p {
  margin: 0;
  color: var(--muted);
}

.header-search {
  display: flex;
  width: min(330px, 31vw);
  height: 40px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #cfd2de;
  border-radius: 0;
  transition: border-color .2s, box-shadow .2s;
}

.header-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(32, 38, 79, .1);
}

.header-search input {
  width: 100%;
  min-width: 0;
  padding: 0 11px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: .82rem;
}

.header-search input:focus {
  outline: 0;
}

.header-search button {
  display: grid;
  flex: 0 0 40px;
  place-items: center;
  padding: 0;
  border: 0;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  transition: background .2s;
}

.header-search button:hover {
  background: #d7141c;
}

.header-search svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.nav-utilities {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

.mobile-menu-trigger {
  display: none;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  color: var(--primary);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: color .2s, background .2s;
}

.mobile-menu-trigger:hover,
.mobile-menu-trigger[aria-expanded="true"] {
  color: var(--accent);
  background: var(--soft);
}

.mobile-menu-trigger-line {
  display: block;
  width: 21px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform .25s ease, opacity .18s ease;
}

.mobile-menu-trigger[aria-expanded="true"] [data-menu-line="top"] {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-trigger[aria-expanded="true"] [data-menu-line="middle"] {
  opacity: 0;
}

.mobile-menu-trigger[aria-expanded="true"] [data-menu-line="bottom"] {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav .weather-widget {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 4px 3px;
  color: var(--primary);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.weather-widget[hidden] {
  display: none;
}

.weather-icon {
  display: grid;
  flex: 0 0 25px;
  place-items: center;
  color: var(--accent);
}

.weather-icon svg {
  width: 25px;
  height: 25px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.weather-copy {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.weather-copy strong {
  color: var(--primary);
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.account-menu {
  position: relative;
  flex: 0 0 auto;
}

.account-trigger {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  color: var(--primary);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: color .2s, background .2s;
}

.account-trigger:hover,
.account-trigger[aria-expanded="true"] {
  color: var(--accent);
  background: var(--soft);
}

.account-trigger svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.account-dropdown {
  position: absolute;
  z-index: 100;
  top: calc(100% + 12px);
  right: 0;
  width: min(330px, calc(100vw - 28px));
  padding: 20px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(19, 24, 55, .16);
}

.account-dropdown[hidden] {
  display: none;
}

.account-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 14px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  transform: rotate(45deg);
}

.account-dropdown-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 17px;
}

.account-dropdown-heading strong {
  color: var(--primary);
  font-size: 1.05rem;
}

.account-dropdown-heading span {
  color: var(--muted);
  font-size: .78rem;
}

.account-login-form {
  display: grid;
  gap: 8px;
}

.account-login-form label {
  margin-top: 3px;
  color: var(--primary);
  font-size: .75rem;
  font-weight: 750;
}

.account-login-form input {
  width: 100%;
  height: 41px;
  padding: 0 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd2de;
  border-radius: 7px;
}

.account-login-form input:focus {
  border-color: var(--primary);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(32, 38, 79, .1);
}

.account-login-error {
  margin-top: 4px;
  padding: 9px 10px;
  color: #9c171c;
  background: #fff0f1;
  border: 1px solid #ffcdd0;
  border-radius: 7px;
  font-size: .75rem;
  line-height: 1.4;
}

.account-login-error[hidden] {
  display: none;
}

.account-login-submit {
  min-height: 42px;
  margin-top: 6px;
  padding: 9px 14px;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 7px;
  font-weight: 750;
  cursor: pointer;
  transition: background .2s, opacity .2s;
}

.account-login-submit:hover {
  background: #d7141c;
}

.account-login-submit:disabled {
  opacity: .65;
  cursor: wait;
}

.main-nav .account-panel-link,
.account-logout {
  display: flex;
  width: 100%;
  min-height: 41px;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border-radius: 7px;
  font-size: .84rem;
  font-weight: 750;
}

.main-nav .account-panel-link {
  color: #fff;
  background: var(--accent);
}

.account-logout {
  margin-top: 8px;
  color: var(--primary);
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
}

.footer-intro {
  max-width: 650px;
}

.footer-description {
  max-width: 610px;
  margin-top: 14px;
  color: #aeb3ce;
  font-size: .86rem;
  line-height: 1.7;
}

.footer-description p {
  margin: 0;
}

.footer-description p + p {
  margin-top: 10px;
}

.home-page {
  padding-top: 28px;
}

.home-page-title {
  margin: 0 0 26px;
  color: var(--primary);
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -.045em;
  text-align: center;
}

.home-news-section {
  padding: 0 0 82px;
}

.home-search-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 12px 15px;
  color: var(--primary);
  background: var(--soft);
  border-radius: 9px;
  font-size: .84rem;
  font-weight: 700;
}

.home-search-summary a {
  flex: 0 0 auto;
  color: var(--accent);
  font-weight: 800;
}

.home-feature-card {
  min-height: 310px;
  margin-bottom: 38px;
  grid-template-columns: 1.18fr .82fr;
}

.home-feature-card .feature-media {
  height: 310px;
  min-height: 0;
  aspect-ratio: auto;
}

.home-feature-card .feature-content {
  padding: clamp(28px, 4vw, 46px);
}

.home-feature-card .feature-content h2 {
  margin: 12px 0 15px;
  font-size: clamp(1.8rem, 2.8vw, 2.75rem);
}

.home-feature-card .feature-content p {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 16px;
  font-size: .96rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-feature-card .text-link {
  margin-top: 20px;
}

.home-news-section .news-grid {
  gap: 22px;
}

.home-news-section .news-card-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 100%;
  border-radius: inherit;
  cursor: pointer;
}

.home-news-section .news-card:focus-within {
  border-color: transparent;
  box-shadow: var(--shadow);
}

.home-news-section .card-media {
  display: block;
  flex: 0 0 auto;
  aspect-ratio: 16 / 8.5;
}

.home-news-section .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-news-section .card-body {
  padding: 19px 20px;
}

.home-news-section .card-body h3 {
  margin: 0 0 9px;
  font-size: 1.22rem;
}

.home-feature-card h2,
.home-news-section .card-body h3,
.article-header h1,
.article-lead,
.article-body {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-layout > *,
.article-body {
  min-width: 0;
}

.article-body {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.article-body h2,
.article-body h3 {
  text-align: left;
}

.home-news-section .card-body > p {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 14px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-news-section .card-footer {
  align-items: stretch;
  flex-direction: column;
  gap: 5px;
  padding-top: 12px;
}

.home-news-section .card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.home-news-section .card-footer-row .card-read-more {
  flex: 0 0 auto;
  color: var(--primary);
  font-weight: 800;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(246px, 20vw, 254px);
  gap: 28px;
  align-items: start;
}

.home-layout .home-news-section {
  min-width: 0;
}

.home-layout .news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-sidebar {
  align-self: start;
  min-width: 0;
  padding: 0 0 82px;
}

.home-sidebar-content {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.sidebar-card {
  min-width: 0;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
}

.calendar-card {
  overflow-anchor: none;
}

.calendar-header {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
}

.calendar-header h2 {
  margin: 0;
  color: var(--primary);
  font-size: 1.04rem;
  line-height: 1.2;
  text-align: center;
  text-transform: capitalize;
}

.calendar-header button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  color: var(--primary);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}

.calendar-header button svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.calendar-header button:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.calendar-header button:disabled {
  opacity: .5;
  cursor: wait;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.calendar-weekdays {
  margin-bottom: 6px;
}

.calendar-weekdays span {
  color: var(--muted);
  font-size: .62rem;
  font-weight: 750;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day,
.calendar-blank {
  aspect-ratio: 1;
}

.calendar-day {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.calendar-day > span,
.calendar-day > button {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: .72rem;
  line-height: 1;
}

.calendar-day > button {
  cursor: pointer;
}

.calendar-day.has-events > button {
  color: #fff;
  background: var(--accent);
  font-weight: 800;
}

.calendar-day.is-today {
  box-shadow: inset 0 0 0 2px var(--primary);
}

.calendar-day.is-today.has-events {
  padding: 2px;
}

.calendar-day-events {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 13px;
  background: var(--soft);
  border-radius: 0;
}

.calendar-day-events[hidden] {
  display: none;
}

.calendar-day-events-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.calendar-day-events-header strong {
  color: var(--primary);
  font-size: .75rem;
  text-transform: capitalize;
}

.calendar-day-events-header button {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.calendar-day-events-header button:hover {
  color: #fff;
  background: var(--primary);
}

.calendar-day-events a {
  color: var(--primary);
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.35;
}

.calendar-day-events a:hover {
  color: var(--accent);
}

.calendar-error {
  margin: 12px 0 0;
  color: #9c171c;
  font-size: .72rem;
  line-height: 1.4;
}

.calendar-error[hidden] {
  display: none;
}

.upcoming-events > h2 {
  margin: 0;
  padding-bottom: 14px;
  color: var(--primary);
  border-bottom: 1px solid var(--line);
  font-size: 1.38rem;
  line-height: 1.15;
}

.upcoming-list {
  display: grid;
}

.upcoming-event {
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.upcoming-event:first-child {
  padding-top: 15px;
  border-top: 0;
}

.upcoming-event:last-child {
  padding-bottom: 0;
}

.upcoming-event time {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 650;
  line-height: 1.4;
}

.upcoming-event h3 {
  margin: 0 0 7px;
  color: var(--primary);
  font-size: .98rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.upcoming-event h3 a {
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}

.upcoming-event h3 a:hover {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-color: currentColor;
}

.upcoming-event p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sidebar-empty {
  margin: 0;
  padding: 16px 0 3px;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.5;
}

.article-header-simple {
  padding-top: 30px;
  text-align: left;
}

.article-header-simple h1 {
  margin: 0 0 12px;
  text-align: center;
}

.article-header-simple .article-lead {
  max-width: 730px;
  margin: 0 auto;
  text-align: center;
}

.article-figure-first {
  margin-top: clamp(34px, 5vw, 58px);
}

.article-layout {
  margin-top: 38px;
}

.article-layout-content {
  display: block;
  padding-left: 0;
}

.article-share-final {
  padding-left: 128px;
}

.share-panel-bottom {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 32px;
  padding-top: 0;
  border-top: 0;
  text-align: right;
}

.share-panel-bottom .share-buttons {
  flex-direction: row;
  flex-wrap: wrap;
}

.share-panel-bottom .share-buttons button img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  pointer-events: none;
}

.share-panel-bottom .share-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.share-panel-bottom .share-buttons button[data-platform="facebook"] img,
.share-panel-bottom .share-buttons button[data-platform="whatsapp"] img {
  width: 32px;
  height: 32px;
}

.share-panel-bottom .share-buttons button[data-platform="facebook"],
.share-panel-bottom .share-buttons button[data-platform="facebook"]:hover,
.share-panel-bottom .share-buttons button[data-platform="whatsapp"],
.share-panel-bottom .share-buttons button[data-platform="whatsapp"]:hover,
.share-panel-bottom .share-buttons button[data-platform="copy_link"]:hover {
  color: inherit;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.share-panel-bottom .share-buttons button:hover {
  opacity: .82;
  transform: translateY(-1px);
}

.share-panel-bottom .share-buttons button:active {
  transform: translateY(0);
}

.article-publication-meta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  margin-top: 52px;
  padding-top: 22px;
  color: var(--muted);
  border-top: 0;
  font-size: .82rem;
  text-align: right;
}

.article-publication-meta::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 128px;
  border-top: 1px solid var(--line);
}

.article-publication-meta strong {
  color: var(--primary);
}

.event-header {
  padding-top: 62px;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin: 0 0 26px;
  color: var(--primary);
}

.event-meta time,
.event-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--soft);
  border-radius: 8px;
  font-size: .82rem;
}

.event-meta time span {
  color: var(--accent);
  font-weight: 800;
}

.event-location::before {
  content: "•";
  color: var(--accent);
}

.event-content {
  margin-top: 55px;
}

@media (max-width: 1180px) {
  .home-layout .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1020px) {
  .local-nuclei-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-layout {
    grid-template-columns: minmax(0, 1fr) clamp(230px, 24vw, 246px);
    gap: 20px;
  }

  .home-feature-card {
    grid-template-columns: 1fr;
  }

  .home-feature-card .feature-media {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 900px) {
  .article-share-final {
    padding-left: 0;
  }

  .article-publication-meta::before {
    left: 0;
  }
}

@media (max-width: 820px) {
  .brand-copy {
    display: none;
  }

  .header-search {
    width: min(300px, 38vw);
  }

  .public-navigation-link {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 13px;
  }

  .home-layout {
    grid-template-columns: 1fr;
  }

  .home-sidebar {
    padding-top: 0;
    padding-bottom: 82px;
  }

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

  .membership-options {
    grid-template-columns: 1fr;
  }

  .membership-portal {
    align-items: flex-start;
    flex-direction: column;
  }

  .sidebar-card {
    width: 100%;
  }

  .calendar-day > span,
  .calendar-day > button {
    font-size: .82rem;
  }
}

@media (max-width: 620px) {
  .header-inner {
    display: grid;
    grid-template-areas:
      "brand utilities"
      "search search";
    grid-template-columns: minmax(0, 1fr) auto;
    height: auto;
    min-height: 70px;
    gap: 8px 12px;
    padding: 9px 0 12px;
  }

  .brand {
    grid-area: brand;
  }

  .brand-logo {
    width: 102px;
    height: 44px;
  }

  .main-nav {
    display: contents;
  }

  .header-search {
    grid-area: search;
    width: 100%;
    height: 42px;
  }

  .nav-utilities {
    grid-area: utilities;
    justify-self: end;
    gap: 3px;
  }

  .js-enabled .mobile-menu-trigger {
    display: inline-flex;
  }

  .main-nav .weather-widget {
    min-height: 38px;
  }

  .account-dropdown {
    top: calc(100% + 9px);
  }

  .public-navigation-inner {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
    min-height: 41px;
  }

  .public-navigation-link {
    grid-column: span 2;
    min-height: 41px;
    padding: 4px 5px;
    font-size: clamp(.68rem, 3vw, .78rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .public-navigation-link.is-active {
    box-shadow: inset 0 -2px #fff;
  }

  .js-enabled .public-navigation {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: max-height .32s ease, opacity .2s ease, transform .32s ease, visibility 0s linear .32s;
  }

  .js-enabled .public-navigation.is-open {
    max-height: 420px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: max-height .32s ease, opacity .2s ease, transform .32s ease, visibility 0s;
  }

  .js-enabled .public-navigation-inner {
    display: flex;
    width: min(100%, 620px);
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    padding-top: 7px;
    padding-bottom: 10px;
  }

  .js-enabled .public-navigation-link {
    min-height: 45px;
    flex: none;
    justify-content: flex-start;
    padding: 10px 14px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .83rem;
    line-height: 1.25;
    overflow-wrap: normal;
    text-align: left;
  }

  .js-enabled .public-navigation-link:first-child {
    border-top: 0;
  }

  .js-enabled .public-navigation-link.is-active {
    box-shadow: inset 3px 0 var(--accent);
  }

  .footer-links {
    flex-wrap: wrap;
    max-width: 100%;
    gap: 12px 18px;
  }

  .footer-intro,
  .footer-description {
    width: 100%;
    max-width: none;
  }

  .home-page {
    padding-top: 22px;
  }

  .home-search-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
  }

  .public-page-section {
    padding: 38px 0 58px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-intro {
    padding-top: 0;
  }

  .contact-intro h1 {
    font-size: 2.7rem;
  }

  .contact-form .button {
    width: 100%;
  }

  .membership-intro {
    margin-bottom: 30px;
  }

  .membership-intro h1 {
    font-size: 2.7rem;
  }

  .membership-intro p {
    font-size: 1rem;
  }

  .membership-card {
    padding: 24px;
  }

  .membership-portal-button {
    width: 100%;
  }

  .local-nuclei-intro {
    margin-bottom: 28px;
  }

  .local-nuclei-intro h1 {
    font-size: 2.7rem;
  }

  .local-nuclei-intro p {
    font-size: 1rem;
  }

  .local-nuclei-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .local-nucleus-logos {
    height: 138px;
    min-height: 138px;
    padding: 18px;
  }

  .local-nucleus-logo {
    height: 102px;
  }

  .home-feature-card {
    min-height: 0;
    margin-bottom: 32px;
    grid-template-columns: 1fr;
  }

  .home-feature-card .feature-media {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .home-feature-card .feature-content {
    padding: 24px;
  }

  .home-feature-card .feature-content h2 {
    font-size: 1.85rem;
  }

  .home-news-section .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .home-news-section .card-media {
    aspect-ratio: 16 / 9;
  }

  .home-news-section .card-body {
    padding: 18px;
  }

  .home-sidebar {
    padding-bottom: 58px;
  }

  .home-sidebar-content {
    gap: 18px;
  }

  .sidebar-card {
    padding: 16px;
  }

  .event-header {
    padding-top: 42px;
  }

  .article-header-simple {
    padding-top: 22px;
  }

  .article-figure-first {
    margin-top: 24px;
  }

  .article-layout {
    margin-top: 26px;
    row-gap: 22px;
  }

  .article-publication-meta {
    margin-top: 38px;
  }

  .share-buttons {
    flex-wrap: wrap;
  }

  .event-content {
    margin-top: 38px;
  }
}

.pwa-prompt {
  position: fixed;
  z-index: 2500;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  width: min(470px, calc(100% - 28px));
  max-height: calc(100dvh - 36px);
  padding: 22px;
  overflow-y: auto;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(32, 38, 79, .13);
  border-top: 4px solid var(--accent);
  border-radius: 5px;
  box-shadow: 0 22px 65px rgba(19, 24, 55, .24);
  transform: translateX(-50%);
}

.pwa-prompt[hidden] {
  display: none;
}

.pwa-prompt-icon,
.pwa-notification-symbol {
  width: 58px;
  height: 58px;
}

.pwa-prompt-icon {
  object-fit: cover;
}

.pwa-notification-symbol {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
}

.pwa-notification-symbol svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pwa-prompt-copy {
  min-width: 0;
  padding-right: 18px;
}

.pwa-prompt-copy > strong {
  display: block;
  color: var(--primary);
  font-size: 1.08rem;
  line-height: 1.25;
  font-weight: 600;
}

.pwa-prompt-copy > p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
}

.pwa-prompt-copy .pwa-ios-instructions {
  margin-top: 13px;
  padding: 11px 12px;
  color: var(--primary);
  background: #f1f2f7;
  border-left: 3px solid var(--accent);
}

.pwa-prompt-copy .pwa-prompt-feedback {
  color: #9c171c;
}

.pwa-prompt-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.pwa-prompt-actions button {
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
}

.pwa-prompt-primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent) !important;
}

.pwa-prompt-primary:hover {
  background: #cf161d;
}

.pwa-prompt-primary:disabled {
  opacity: .55;
  cursor: wait;
}

.pwa-prompt-secondary {
  color: var(--primary);
  background: transparent;
  border-color: var(--line) !important;
}

.pwa-prompt-close {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 520px) {
  .pwa-prompt {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 13px;
    padding: 18px;
  }

  .pwa-prompt-icon,
  .pwa-notification-symbol {
    width: 48px;
    height: 48px;
  }

  .pwa-notification-symbol svg {
    width: 24px;
    height: 24px;
  }

  .pwa-prompt-copy {
    padding-right: 10px;
  }

  .pwa-prompt-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .pwa-prompt-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-navigation,
  .mobile-menu-trigger-line {
    transition: none !important;
  }
}
