/* Styles for the pieces that replaced WordPress plugins (forms, donate button, search). */
.cps-form { margin: 0 0 30px; }
.cps-form .cps-field { margin-bottom: 18px; }
.cps-form label, .cps-form legend { display: block; font-weight: 600; margin-bottom: 6px; }
.cps-form fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.cps-form .cps-check { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; margin-right: 18px; }
.cps-form .cps-check input { width: auto; }
.cps-form input[type=text], .cps-form input[type=email], .cps-form input[type=date], .cps-form textarea { width: 100%; }
.cps-form .required { color: #e80d8c; }
.cps-form .cps-form-required { font-size: 14px; opacity: .8; }
.cps-form .cps-form-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }
.cps-form .cps-form-error { color: #b00020; }
/* ---- Donation form (replaces GiveWP; checks out on PayPal) ---- */
.cps-donate { max-width: 560px; margin: 0 auto; padding: 4px 0 10px; text-align: left; }
.cps-donate-title { margin-bottom: 14px; }
.cps-donate fieldset { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.cps-donate legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.cps-amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cps-amounts legend { grid-column: 1 / -1; }
.cps-amt { position: relative; display: block; margin: 0; cursor: pointer; }
.cps-amt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cps-amt span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 6px;
  border: 2px solid #d5c6ee; border-radius: 8px; background: #fff; color: #1d1d1f; font-weight: 600; font-size: 16px;
  line-height: 1.2; text-align: center; transition: background-color .15s, border-color .15s, color .15s; }
.cps-amt:hover span { border-color: #8d3ff3; }
.cps-amt input:checked + span { background: #5b2a86; border-color: #5b2a86; color: #fff; }
.cps-amt input:focus-visible + span { outline: 3px solid #1d1d1f; outline-offset: 2px; }
.cps-amt-custom { grid-column: span 1; }
.cps-amt-custom span { font-size: 14px; }
.cps-custom-wrap { margin: 0 0 14px; }
.cps-custom-wrap label { display: block; font-weight: 600; margin-bottom: 6px; }
.cps-custom-field { display: flex; align-items: center; gap: 6px; max-width: 260px; padding: 0 12px; border: 2px solid #8d3ff3; border-radius: 8px; background: #fff; font-size: 18px; }
.cps-custom-field input { border: 0; padding: 12px 0; font-size: 18px; width: 100%; background: transparent; }
.cps-custom-field input:focus { outline: none; }
.cps-custom-field:focus-within { outline: 3px solid #1d1d1f; outline-offset: 2px; }
.cps-monthly { margin: 0 0 10px; }
.cps-monthly label { display: inline-flex; align-items: flex-start; gap: 10px; font-weight: 600; line-height: 1.45; cursor: pointer; }
.cps-monthly input { flex: 0 0 20px; width: 20px; height: 20px; margin: 3px 0 0; accent-color: #5b2a86; }
.cps-total { margin: 0 0 14px; font-size: 18px; }
.cps-donate-error { color: #b00020; font-weight: 600; margin: 0 0 12px; }
.cps-donate-button { font-size: 18px; padding: 16px 40px; width: 100%; }
.cps-donate-note { font-size: 14px; color: #595959; margin-top: 10px; }
.cps-donate-thanks { max-width: 560px; margin: 0 auto 24px; padding: 18px 22px; border-radius: 10px; background: #f1eafb; border-left: 4px solid #5b2a86; }
.cps-donate-thanks h3 { margin-bottom: 6px; }
@media (max-width: 480px) { .cps-amounts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cps-comments-closed { font-style: italic; opacity: .7; margin-top: 20px; }
#cps-search { --pagefind-ui-primary: #8a2be2; --pagefind-ui-font: inherit; }
.cps-form .cps-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.cps-form select { width: 100%; }
.cps-form .cps-form-required { font-size: inherit; opacity: 1; }
.cps-form .cps-hr { margin: 10px 0 20px; }
@media (max-width: 600px) { .cps-form .cps-row { grid-template-columns: 1fr; } }
#cps-search .pagefind-ui__search-clear { font-size: 14px; padding: 0 14px; height: auto; }
#cps-search .pagefind-ui__search-input { font-size: 18px; }

/* Accessibility: links in running text are underlined, not just coloured */
.entry-content :is(p, li, td, h2, h3, h4, h5, h6, blockquote, figcaption) a:not(.button):not(.btn):not(.sow-more-text),
.comment-content a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.entry-content a:hover { text-decoration-thickness: 2px; }
/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #8d3ff3;
  outline-offset: 2px;
}

.site-footer p a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer p, .site-footer p a { color: #595959; }
.cps-welcome #riane-sig { color: #6b6b6b; }

/* ---- Homepage hero slider ---- */
/* sit flush under the menu bar (the row had a 20px white top border) */
.home .hero-slider { border-top-width: 0 !important; }
@media (min-width: 781px) {
  /* let each slide grow with its image instead of a fixed 450px box that cropped them */
  .home .hero-slider .sow-slider-base ul.sow-slider-images,
  .home .hero-slider .sow-slider-base ul.sow-slider-images .sow-slider-image-wrapper {
    min-height: 0 !important;
    height: auto !important;
  }
  /* image cell stretches to the text cell so long captions never leave a gap or get clipped */
  .home .hero-slider .sow-slider-image-wrapper .panel-row-style { align-items: stretch !important; }
  .home .hero-slider .sow-slider-image-wrapper .panel-grid-cell:first-child {
    position: relative; align-self: stretch; overflow: hidden; }
  /* reserves a 3:2 area (capped at 680px) but lets the cell grow with the text beside it */
  .home .hero-slider .sow-slider-image-wrapper .panel-grid-cell:first-child::before {
    content: ''; display: block; padding-top: min(66.667%, 680px); }
  .home .hero-slider .sow-slider-image-wrapper .panel-grid-cell:first-child > .so-panel {
    position: absolute; inset: 0; margin: 0 !important; }
  .home .hero-slider .sow-slider-image-wrapper .panel-grid-cell:first-child > .so-panel * { height: 100%; }
  /* text column: vertically centred, with breathing room top and bottom */
  .home .hero-slider .sow-slider-image-wrapper .panel-grid-cell:last-child {
    display: flex; flex-direction: column; justify-content: center; align-self: stretch;
    padding-top: 28px; padding-bottom: 28px; box-sizing: border-box; }
  .home .hero-slider .sow-slider-image-wrapper .panel-grid-cell:last-child > .panel-cell-style {
    display: flex; flex-direction: column; justify-content: center; flex: 1; }
  .home .hero-slider .sow-slider-image-wrapper .panel-grid-cell:first-child img.so-widget-image {
    position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center; }
}


/* ---- Homepage: Community Voices / Take Action boxes ----
   The theme fixed both boxes at 1200px tall. Let them size to their content and
   stretch to match each other, so opening an accordion grows both together. */
.home .home-posts .box { height: auto; }
@media (min-width: 781px) {
  .home .home-posts.panel-row-style { align-items: stretch !important; }
  .home .home-posts > .panel-grid-cell { display: flex; flex-direction: column; }
  .home .home-posts > .panel-grid-cell > .so-panel { flex: 1; display: flex; flex-direction: column; margin-bottom: 0; }
  .home .home-posts > .panel-grid-cell > .so-panel > .box { flex: 1; }
}
.home .action-accordion .sow-accordion-panel-content a:hover,
.home .action-accordion .sow-accordion-panel-content a:focus-visible { color: #6a2fc4 !important; }

/* Take Action "By My Role" / "By Issue": the lists open as a floating panel
   over the box instead of pushing the box (and its gradient) taller. */
.home .action-accordion .sow-accordion-panel { position: relative; }
.home .action-accordion .sow-accordion-panel:has(.sow-accordion-panel-header[aria-expanded="true"]) { z-index: 40; }
.home .action-accordion .sow-accordion-panel-content {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.home .action-accordion .sow-accordion-panel-content ul {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0 !important;
  padding: 6px;
}
@media (min-width: 560px) {
  .home .action-accordion .sow-accordion-panel-content ul { grid-template-columns: 1fr 1fr; }
}
.home .action-accordion .sow-accordion-panel-content ul li {
  float: none !important;
  width: auto !important;
  border-bottom: 1px solid #eee;
}
.home .action-accordion .sow-accordion-panel-content ul li a {
  float: none !important;
  display: block;
  width: auto !important;
  padding: 0.55em 0.9em;
  font-size: 15px;
  line-height: 1.3;
  border-radius: 6px;
}
.home .action-accordion .sow-accordion-panel-content ul li a:hover,
.home .action-accordion .sow-accordion-panel-content ul li a:focus-visible { background: #f1eafb; }

/* ---- Homepage: balance the Community Voices and Take Action boxes ---- */
/* Community Voices slider: drop the fixed 740px height and trim each vignette
   so the slides are close in height and the box doesn't size to the longest. */
.home #community-voices .so-widget-sow-layout-slider,
.home #community-voices .sow-slider-base ul.sow-slider-images,
.home #community-voices .sow-slider-image-wrapper { min-height: 0 !important; height: auto; }
.home #community-voices .sow-slider-images img.so-widget-image {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 30%; }
.home #community-voices .sow-slider-images h3.widget-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home #community-voices .sow-slider-images .textwidget > p:first-child:not(:last-child) {
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 781px) {
  /* Take Action box: the photo grows to fill whatever height is left, so the
     text and buttons sit at the bottom like the Community Voices box */
  .home #news-events { display: flex; flex-direction: column; }
  .home #news-events > .panel-layout { flex: 1; display: flex; flex-direction: column; }
  .home #news-events > .panel-layout > .panel-grid:nth-child(2) { flex: 1; }
  .home #news-events > .panel-layout > .panel-grid:nth-child(2) > .panel-grid-cell { display: flex; flex-direction: column; }
  .home #news-events > .panel-layout > .panel-grid:nth-child(2) .widget_sow-image { flex: 1; display: flex; flex-direction: column; }
  .home #news-events > .panel-layout > .panel-grid:nth-child(2) .widget_sow-image > *,
  .home #news-events > .panel-layout > .panel-grid:nth-child(2) .widget_sow-image .sow-image-container { flex: 1; display: flex; flex-direction: column; }
  .home #news-events > .panel-layout > .panel-grid:nth-child(2) .widget_sow-image img {
    flex: 1; width: 100%; min-height: 260px; height: 0; object-fit: cover; object-position: center 40%; }
}
/* when there isn't room below, the list opens upward over the photo instead */
.home .action-accordion .sow-accordion-panel.cps-open-up .sow-accordion-panel-content {
  top: auto;
  bottom: calc(100% + 6px);
}

/* ---- Donate page: hero with the form, giving levels, info cards below ---- */
.page-id-743 .site-inner { margin-top: 0; padding-top: 0; }
.page-id-743 .content { padding-top: 0; }
.page-id-743 .entry { margin-bottom: 0; }
.cps-give-hero {
  width: 100vw; margin-left: calc(50% - 50vw); margin-bottom: 56px;
  background: linear-gradient(135deg, #f4eefe 0%, #eaf3fc 55%, #e9f8f2 100%);
}
.cps-give-hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 40px 24px 48px;
  display: grid; gap: 28px 48px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  grid-template-areas: "intro form" "impact form";
  grid-template-rows: auto 1fr;
  align-items: start;
}
.cps-give-intro { grid-area: intro; }
.cps-give-formcard { grid-area: form; }
.cps-give-impact { grid-area: impact; }
.cps-give-title { font-size: 46px; line-height: 1.1; margin: 0 0 14px !important; font-weight: 700; }
.cps-give-lede { font-size: 18px; line-height: 1.6; margin: 0; color: #333; }
.cps-give-formcard {
  background: #fff; border-radius: 16px; padding: 26px 28px 22px;
  box-shadow: 0 18px 40px rgba(60, 30, 110, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
}
.cps-give-formtitle { font-size: 24px; margin: 0 0 14px !important; padding: 0 !important; }
.cps-give-formcard .cps-donate { max-width: none; margin: 0; padding: 0; }
.cps-give-formcard .cps-donate legend { margin-bottom: 8px; }
.cps-give-formcard .cps-donate-button { padding: 14px 40px; }
.cps-give-formcard .cps-donate-note { margin-bottom: 0; }
.cps-give-formcard .cps-donate-thanks { margin: 0 0 18px; }
.cps-give-impact-title { margin-top: 8px !important; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: #5a5a5a; margin: 0 0 12px; font-weight: 600; }
.cps-give-levels { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.cps-give-levels .cps-give-level {
  display: flex; align-items: flex-start; gap: 14px;
  margin: 0 0 16px !important; padding: 0; list-style: none;
}
.cps-give-levels .cps-give-level:last-child { margin-bottom: 0 !important; }
.cps-give-level img { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 2px 8px rgba(60, 30, 110, 0.15); background: #fff; }
.cps-give-level h3 { margin: 2px 0 4px; color: #0861a8; font-size: 18px; line-height: 1.25; font-weight: 700; }
.cps-give-level p { margin: 0; color: #333; font-size: 15px; line-height: 1.55; }

.cps-give-info {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  margin: 0 0 40px;
}
.cps-give-card {
  background: #fff; border: 1px solid #e6dcf5; border-radius: 14px; padding: 24px 24px 20px;
}
.cps-give-card h2 { font-size: 21px; line-height: 1.3; margin: 0 0 12px; }
.cps-give-card p { font-size: 16px; line-height: 1.65; margin: 0 0 12px; }
.cps-give-card p:last-child { margin-bottom: 0; }
.cps-give-ein { font-size: 24px !important; font-weight: 700; letter-spacing: 0.04em; color: #1d1d1f; }
.cps-give-info { grid-auto-flow: row dense; }
.cps-give-card-wide { grid-column: span 2; }
.cps-letter { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #eee5f8; text-decoration: none !important; color: #1d1d1f !important; }
.cps-letter > span { display: flex; flex-direction: column; gap: 2px; }
.cps-letter-img { flex: 0 0 64px; width: 64px; height: 82px; object-fit: cover; object-position: top; border: 1px solid #e6dcf5; border-radius: 4px; margin: 0 !important; float: none !important; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.cps-letter-link { color: #6a2fc4; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cps-letter:hover .cps-letter-link { color: #4b1f7a; }

@media (max-width: 1023px) {
  .cps-give-hero-inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "form" "impact"; grid-template-rows: auto; padding: 28px 20px 36px; }
  .cps-give-title { font-size: 36px; }
  .cps-give-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cps-give-info { grid-template-columns: minmax(0, 1fr); }
  .cps-give-card-wide { grid-column: auto; }
  .cps-give-formcard { padding: 20px 16px 18px; }
  .cps-give-title { font-size: 32px; }
  .cps-give-lede { font-size: 16px; }
}

/* Pop-up (lightbox) for the non-discrimination letter */
.cps-lightbox { padding: 0; border: 0; border-radius: 12px; max-width: min(640px, 92vw); max-height: 92vh; overflow: auto; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.cps-lightbox::backdrop { background: rgba(20, 12, 40, 0.7); }
.cps-lightbox img { display: block; width: 100%; height: auto; margin: 0; }
.cps-lightbox-close {
  position: sticky; top: 10px; float: right; margin: 10px 10px -54px 0; z-index: 2;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: #1d1d1f !important; color: #fff !important; font-size: 28px; line-height: 44px; text-align: center; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.cps-lightbox-close:hover { background: #5b2a86 !important; }
.cps-lightbox-close:focus-visible { outline: 3px solid #8d3ff3; outline-offset: 2px; }

/* ---- Homepage: combined intro under the welcome heading ---- */
.home .cps-home-intro { margin: 6px 0 56px; }
.home .cps-home-intro > .panel-grid-cell { width: 100%; }
.home .cps-home-intro .textwidget { max-width: 860px; }
.home .cps-home-intro p { margin-bottom: 18px; }
.home .cps-home-intro .cps-home-intro-cta { margin: 26px 0 0; }

/* Post listings: circle thumbnail on the left, text on the right (Nov 2026) */
.cps-card { display: flex; align-items: center; gap: 40px; }
.cps-card-thumb { flex: 0 0 190px; }
.cps-card-thumb a, .cps-card-thumb img { display: block; }
.cps-card-thumb img { width: 190px; height: 190px; max-width: none; margin: 0; float: none; border-radius: 50%; object-fit: cover; }
.cps-card-body { flex: 1 1 auto; min-width: 0; }
@media (max-width: 600px) {
  .cps-card { flex-direction: column; align-items: flex-start; gap: 20px; }
  .cps-card-thumb { flex-basis: auto; }
  .cps-card-thumb img { width: 120px; height: 120px; }
}
.cps-card { margin-bottom: 70px; }
@media (max-width: 600px) { .cps-card { margin-bottom: 50px; } }

/* Former featured image, now shown at the top of the post */
.cps-moved-feature { margin: 0 0 40px; text-align: center; }
.cps-moved-feature img { max-width: 100%; height: auto; max-height: 640px; object-fit: contain; }

/* Posts whose leading date line was removed: keep the first paragraph as normal body text */
.single.cps-no-intro .content .entry-content > p:first-of-type { font-size: inherit; font-style: normal; font-weight: inherit; }
.entry-byline { white-space: normal; }
.single .content .entry-header .entry-meta { margin-bottom: 40px; }

/* Social icons (Phosphor, Nov 2026) */
.cps-social-icon { width: 20px; height: 20px; display: block; }
.navsocial a { text-decoration: none !important; }
.site-footer .navsocial a, .site-footer .navsocial a > span { display: inline-flex; align-items: center; }
.site-footer .navsocial span::after { display: none !important; }
.site-footer .navsocial > a { padding: 0 10px; }
.site-footer .navsocial::before { content: none !important; display: none !important; }
