/* Ensure rich text headings are visually distinct. */
.page-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 1.5rem 0 0.75rem;
}

.page-content h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 1.25rem 0 0.75rem;
}

.page-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 1rem 0 0.5rem;
}

.page-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0.75rem 0 0.5rem;
}

.page-content h5,
.page-content h6 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0.75rem 0 0.5rem;
}

nav.navbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.input.form-control-box,
.select.form-control-box,
.textarea.form-control-box {
  background-color: #ffffff;
  border: 1px solid #dbdbdb;
  border-radius: 0.75rem;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04);
  color: #363636;
  display: block;
  line-height: 1.35;
  max-width: 100%;
  min-height: 2.7rem;
  padding: 0.65rem 0.95rem;
  width: 100%;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

select.form-control-box {
  padding-right: 2.25rem;
}

select[multiple].form-control-box {
  min-height: 7.25rem;
  padding-right: 0.95rem;
}

textarea.form-control-box {
  min-height: 7rem;
  resize: vertical;
}

@media screen and (max-width: 768px) {
  .input.form-control-box,
  .select.form-control-box,
  .textarea.form-control-box {
    min-height: 2.5rem;
    padding: 0.6rem 0.85rem;
  }
}

.input.form-control-box:hover,
.select.form-control-box:hover,
.textarea.form-control-box:hover {
  border-color: #b5b5b5;
}

.input.form-control-box:focus,
.select.form-control-box:focus,
.textarea.form-control-box:focus {
  border-color: #485fc7;
  box-shadow: 0 0 0 0.125em rgba(72, 95, 199, 0.2);
}

body {
  scroll-padding-top: 5rem;
}

.pinned-post-carousel {
  --pinned-carousel-height: 360px;
  clear: both;
  isolation: isolate;
  margin: 1.25rem auto 3rem;
  max-width: 960px;
}

.pinned-post-slides {
  height: var(--pinned-carousel-height);
  overflow: hidden;
  position: relative;
}

.pinned-post-slide {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  display: block;
  left: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  top: 0;
  transform: translateX(100%);
  transition:
    transform 360ms ease,
    opacity 360ms ease;
  height: 100%;
  width: 100%;
}

.pinned-post-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.pinned-post-layout {
  display: grid;
  grid-template-columns: minmax(220px, 40%) 1fr;
  gap: 1rem;
  height: 100%;
}

.pinned-post-image {
  background: #f5f5f5;
  min-height: 0;
  overflow: hidden;
}

.pinned-post-image,
.pinned-post-image img {
  display: block;
  height: 100%;
  width: 100%;
}

.pinned-post-image img {
  object-fit: cover;
}

.pinned-post-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  padding: 2rem;
}

.pinned-post-content .subtitle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin-bottom: 1rem;
}

.pinned-post-summary {
  line-height: 1.6;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}


.pinned-post-layout {
  display: grid;
  grid-template-columns: minmax(220px, 40%) 1fr;
  height: 100%;
}

.pinned-post-image {
  background: #f5f5f5;
  min-height: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.pinned-post-image,
.pinned-post-image img {
  display: block;
  height: 100%;
  width: 100%;
}

.pinned-post-image img {
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
  background: #f5f5f5;
}

.pinned-post-image img.is-fallback,
.post-image-fallback {
  background: #f5f5f5;
  object-fit: contain;
  padding: 2rem;
}

.pinned-post-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  padding: 2rem;
}

.pinned-post-content .subtitle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin-bottom: 1rem;
}

.pinned-post-content .title {
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.pinned-post-summary {
  line-height: 1.6;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.pinned-post-controls {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.pinned-post-control {
  height: 2rem;
  padding-left: 0;
  padding-right: 0;
  width: 2rem;
}

.pinned-post-indicators {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.pinned-post-indicator {
  background: #cfcfcf;
  border-radius: 999px;
  display: block;
  height: 0.625rem;
  width: 0.625rem;
}

.pinned-post-indicator.is-active {
  background: #363636;
}

@media screen and (max-width: 768px) {
  .pinned-post-carousel {
    --pinned-carousel-height: 560px;
  }

  .pinned-post-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 42% minmax(0, 58%);
  }

  .pinned-post-image {
    min-height: 0;
  }

  .pinned-post-content {
    padding: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pinned-post-slide {
    transition: none;
  }
}

/* Events calendar */
.events-header {
  max-width: 760px;
}

.events-month {
  position: sticky;
  top: 6rem;
}

.events-weekdays,
.events-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.events-weekdays {
  color: #6b7280;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  text-align: center;
  text-transform: uppercase;
}

.events-day,
.events-day-spacer {
  aspect-ratio: 1;
}

.events-day {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #363636;
  cursor: pointer;
  display: flex;
  font: inherit;
  justify-content: center;
  min-width: 0;
  position: relative;
}

.events-day:hover,
.events-day:focus-visible {
  background: #eef3ff;
  outline: 2px solid transparent;
}

.events-day.has-events {
  color: #164a9f;
  font-weight: 700;
}

.events-day.has-events::after {
  background: #2866c7;
  border-radius: 999px;
  bottom: 11%;
  content: "";
  height: 0.3rem;
  position: absolute;
  width: 0.3rem;
}

.events-day.is-selected {
  background: #2866c7;
  color: #fff;
}

.events-day.is-selected::after {
  background: #fff;
}

.events-list {
  display: grid;
  gap: 1rem;
}

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

.event-list-card {
  border: 1px solid #e7eaf0;
  box-shadow: 0 0.35rem 1.5rem rgba(25, 43, 74, 0.07);
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.event-list-card:hover,
.event-list-card:focus-within {
  border-color: #aac4ed;
  box-shadow: 0 0.65rem 1.8rem rgba(25, 43, 74, 0.14);
  transform: translateY(-2px);
}

.event-card-button {
  align-items: center;
  background: #fff;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 1.25rem;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  padding: 1.35rem;
  text-align: left;
  width: 100%;
}

.event-card-button:focus-visible {
  outline: 3px solid #2866c7;
  outline-offset: -3px;
}

.event-date-tile {
  align-items: center;
  background: #eef3ff;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 4.5rem;
}

.event-date-month {
  color: #2866c7;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-date-day {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.05;
}

.event-card-copy,
.event-card-title,
.event-card-summary,
.event-card-location {
  display: block;
}

.event-card-meta {
  gap: 0.5rem 0.75rem;
}

.event-card-meta time,
.event-card-summary,
.event-card-location {
  color: #667085;
}

.event-time-lines,
.event-time-lines time,
.event-time-lines [data-event-user-time] {
  display: block;
}

.event-time-lines [data-event-local-time] {
  color: #344054;
  font-weight: 600;
}

.event-time-lines [data-event-user-time],
.event-modal-user-time {
  color: #667085;
  margin-top: 0.25rem;
}

.event-modal-user-time {
  font-size: 0.95rem;
}

.event-card-arrow {
  color: #2866c7;
}

.event-modal-description {
  overflow-wrap: anywhere;
}

.previous-events-section {
  border-top: 1px solid #e7eaf0;
  margin-top: 4rem;
  padding-top: 4rem;
}

[data-previous-events-sentinel] {
  height: 1px;
}

@media screen and (max-width: 1049px) {
  .events-month {
    position: static;
  }

  .events-calendar > .columns {
    display: block;
    margin-left: 0;
    margin-right: 0;
  }

  .events-calendar > .columns > .column {
    flex: none;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
  }

  .events-calendar > .columns > .column + .column {
    margin-top: 1.5rem;
  }
}

@media screen and (max-width: 560px) {
  body > section.section {
    padding: 2rem 1rem;
  }

  .events-header .title.is-1 {
    font-size: clamp(2.25rem, 12vw, 3rem);
    line-height: 1.08;
    overflow-wrap: normal;
    word-break: normal;
  }

  .events-header .subtitle.is-5 {
    font-size: 1.1rem;
    line-height: 1.45;
  }

  .events-list-heading {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 0.75rem;
  }

  .event-card-button {
    align-items: start;
    gap: 0.85rem;
    grid-template-columns: 3.75rem minmax(0, 1fr);
    padding: 1rem;
  }

  .event-date-tile {
    min-height: 3.75rem;
  }

  .event-card-arrow {
    display: none;
  }

  .modal-card-foot {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .modal-card-foot .button {
    width: 100%;
  }

  .modal-card {
    margin: 0 0.5rem;
    width: calc(100% - 1rem);
  }
}

@media screen and (max-width: 768px) {
  nav.navbar,
  .navbar-brand {
    max-width: 100vw;
    min-width: 0;
    width: 100%;
  }

  .navbar-brand {
    align-items: stretch;
  }

  .navbar-logo-link {
    flex: 0 1 6.5rem;
    min-width: 5rem;
    padding: 0.5rem 0.25rem 0.5rem 0.5rem;
  }

  .navbar-logo-link svg {
    height: auto;
    max-width: 100%;
  }

  .mobile-nav-link {
    flex: 1 1 0;
    font-size: 0.875rem;
    height: 4rem !important;
    justify-content: center;
    min-width: 0;
    padding: 0 0.15rem;
    white-space: nowrap;
  }

  .mobile-nav-burger {
    flex: 0 0 2.75rem;
    height: 4rem !important;
    margin-left: 0;
    width: 2.75rem;
  }
}

@media screen and (min-width: 769px) {
  nav.navbar {
    align-items: stretch;
    display: flex;
    max-width: 100vw;
    width: 100%;
  }

  .navbar-brand {
    display: flex;
    flex-shrink: 0;
  }

  nav.navbar:not(.has-overflow) .mobile-nav-burger {
    display: none;
  }

  nav.navbar.has-overflow .mobile-nav-burger {
    display: block;
    flex: 0 0 3.25rem;
    margin-left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 3.25rem;
    z-index: 1;
  }

  nav.navbar.has-overflow .navbar-menu {
    padding-right: 3.25rem;
  }

  nav.navbar .navbar-menu {
    align-items: stretch;
    display: flex;
    flex-grow: 1;
    min-width: 0;
    padding: 0;
  }

  nav.navbar .navbar-start,
  nav.navbar .navbar-end {
    align-items: stretch;
    display: flex;
  }

  nav.navbar .navbar-start {
    flex-grow: 1;
    min-width: 0;
  }

  nav.navbar .navbar-end {
    flex-shrink: 0;
  }

  nav.navbar .navbar-item {
    align-items: center;
    display: flex;
  }

  nav.navbar .navbar-dropdown {
    background: #fff;
    box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
    left: 0;
    min-width: 100%;
    position: absolute;
    top: 100%;
  }

  .navbar-overflow-menu {
    background: #fff;
    box-shadow: 0 8px 16px rgba(10, 10, 10, 0.12);
    display: none;
    max-height: calc(100vh - 5rem);
    min-width: 15rem;
    overflow-y: auto;
    padding: 0.5rem;
    position: absolute;
    right: 0;
    top: 100%;
  }

  .navbar-overflow-menu.is-active {
    display: flex;
    flex-direction: column;
  }

  .navbar-overflow-start,
  .navbar-overflow-end {
    align-items: stretch;
    display: flex;
    flex-direction: column;
  }

  nav.navbar .navbar-overflow-menu .navbar-item {
    display: block;
    flex: none;
    text-align: left !important;
    width: 100%;
  }

  nav.navbar .navbar-overflow-menu .navbar-dropdown {
    box-shadow: none;
    min-width: 0;
    position: static;
    width: 100%;
  }

  .navbar-overflow-menu .buttons {
    display: block;
    margin: 0;
  }

  .navbar-overflow-menu .buttons .button {
    display: flex;
    width: 100%;
  }
}

@media screen and (max-width: 360px) {
  .navbar-logo-link {
    flex-basis: 5.25rem;
  }

  .mobile-nav-link {
    font-size: 0.8rem;
  }

  .mobile-nav-burger {
    flex-basis: 2.5rem;
    width: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-list-card {
    transition: none;
  }
}

/* Contact page */
.contact-page {
  margin: 0 auto;
  max-width: 960px;
  padding: clamp(1rem, 4vw, 3rem) 0;
}

.contact-page__intro {
  margin-bottom: 2.5rem;
  max-width: 720px;
}

.contact-page__eyebrow {
  color: #2866c7;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

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

.contact-card {
  align-items: center;
  background: #fff;
  border: 1px solid #e1e7f0;
  border-radius: 0.85rem;
  box-shadow: 0 0.35rem 1.4rem rgba(25, 43, 74, 0.07);
  color: #1f2937;
  display: grid;
  gap: 1rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 7.5rem;
  padding: 1.25rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

a.contact-card:hover,
a.contact-card:focus-visible {
  border-color: #8db0e7;
  box-shadow: 0 0.65rem 1.8rem rgba(25, 43, 74, 0.14);
  color: #164a9f;
  transform: translateY(-2px);
}

a.contact-card:focus-visible {
  outline: 3px solid rgba(40, 102, 199, 0.3);
  outline-offset: 3px;
}

.contact-card--primary {
  background: #164a9f;
  border-color: #164a9f;
  color: #fff;
}

a.contact-card--primary:hover,
a.contact-card--primary:focus-visible {
  background: #123f89;
  color: #fff;
}

.contact-card__icon {
  align-items: center;
  background: #eef3ff;
  border-radius: 999px;
  color: #2866c7;
  display: flex;
  font-size: 1.3rem;
  height: 3rem;
  justify-content: center;
  width: 3rem;
}

.contact-card--primary .contact-card__icon {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.contact-card__label,
.contact-card__value {
  display: block;
}

.contact-card__label {
  color: #6b7280;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.contact-card--primary .contact-card__label {
  color: #dce8fb;
}

.contact-card__value {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-card__arrow {
  opacity: 0.6;
}

@media screen and (max-width: 680px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    min-height: 6.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-card {
    transition: none;
  }
}
.petition-signature-pad-wrap {
  background: #fff;
  border: 1px solid #b5b5b5;
  border-radius: 6px;
  overflow: hidden;
}

.petition-signature-pad {
  cursor: crosshair;
  display: block;
  height: 180px;
  touch-action: none;
  width: 100%;
}

.petition-drawn-signature {
  background: #fff;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  display: block;
  max-height: 180px;
  max-width: 100%;
}

[data-signature-identity-fields] {
  opacity: 1;
  transition: opacity 180ms ease;
}

[data-signature-identity-fields].is-anonymous {
  opacity: 0.35;
}

[data-signature-identity-fields].is-anonymous .petition-signature-pad {
  cursor: not-allowed;
}
