:root {
  --rxsu-primary: #7d8f6a;
  --rxsu-secondary: #007c72;
  --rxsu-text: #263126;
  --rxsu-muted: #65705f;
  --rxsu-surface: #f7f8f2;
  --rxsu-border: #dfe5da;
  /* A ground one step further from the sheet than --rxsu-surface, for the bands
     that group a section away from the prose around it. --rxsu-surface sits
     within two points of white and disappears when used that way. */
  --rxsu-band: #eef1e9;
}

.rxsu-content-section-v2 {
  width: min(1320px, calc(100% - 64px));
  margin-inline: auto;
  padding-block: 48px;
  color: var(--rxsu-text);
}

/* Homepage 2026 already provides a full-width Elementor host. Keep the
 * shortcode in normal document flow so it is centred inside that host at
 * every viewport width instead of breaking out against the browser window. */
.rxsu-home-programs-v2-host,
.rxsu-home-programs-v2-host .elementor-widget-shortcode,
.rxsu-home-programs-v2-host .elementor-widget-container {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.rxsu-home-programs-v2-host .elementor-widget-shortcode {
  align-self: stretch;
}

.rxsu-home-programs-v2-host .rxsu-content-section-v2 {
  width: min(1320px, calc(100% - 64px));
  max-width: 1320px;
  margin-inline: auto;
}

.rxsu-section-heading-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.rxsu-section-heading-v2 h2 {
  margin: 0;
  color: var(--rxsu-text);
  font-size: clamp(1.75rem, 2.4vw, 2.125rem);
  line-height: 1.25;
}

/* An eyebrow and a summary appear only where a managed page supplies editable
 * heading copy for them. The `[rxsu_news_section_v2]` shortcode passes no such
 * copy, so Page 22 keeps the single-line heading it renders today and never
 * matches these rules. */
/* With a summary present, a destination link pinned to the top right pulls the
 * eye off the sentence it is meant to follow, and the two other sections that
 * carry a summary - degree programs and the event listing - already place it
 * under the copy. The stacked heading matches them. */
.rxsu-section-heading-v2--stacked { display: block; }
.rxsu-section-heading-v2--stacked > a { margin-top: 14px; }
.rxsu-section-heading-v2__copy { min-width: 0; max-width: 760px; }
.rxsu-section-eyebrow-v2 {
  margin: 0 0 7px;
  color: var(--rxsu-secondary);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1.5;
  text-transform: uppercase;
}
.rxsu-section-summary-v2 {
  margin: 12px 0 0;
  color: var(--rxsu-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.rxsu-section-heading-v2 a,
.rxsu-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--rxsu-secondary);
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 4px;
}

.rxsu-section-heading-v2 a:hover,
.rxsu-section-heading-v2 a:focus-visible,
.rxsu-card-cta:hover,
.rxsu-card-cta:focus-visible {
  text-decoration: underline;
}

.rxsu-section-heading-v2 a:focus-visible,
.rxsu-card-cta:focus-visible,
.rxsu-program-card-v2 a:focus-visible,
.rxsu-news-layout-v2 a:focus-visible {
  outline: 3px solid #007c72;
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: 0 0 0 6px #fefefc;
}

.rxsu-programs-grid-v2 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 24px;
}

.rxsu-program-card-v2 {
  display: flex;
  height: 100%;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--rxsu-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(38, 49, 38, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.rxsu-single-news-cover {
  width: min(100%, 1100px);
  aspect-ratio: 16 / 9;
  margin: 0 auto 32px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--rxsu-surface);
  box-shadow: 0 8px 24px rgba(38, 49, 38, 0.06);
}

.rxsu-single-news-cover .rxsu-single-news-cover-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rxsu-program-card-v2:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--rxsu-primary) 55%, var(--rxsu-border));
  box-shadow: 0 12px 28px rgba(38, 49, 38, 0.1);
}

.rxsu-card-media,
.rxsu-news-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--rxsu-surface);
}

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

.rxsu-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.rxsu-card-body time,
.rxsu-program-date {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--rxsu-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.rxsu-card-body time span,
.rxsu-program-date > span {
  font-weight: 600;
}

.rxsu-chip {
  align-self: flex-start;
  margin-top: 14px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f0f4eb;
  color: #4f5f3b;
  font-size: 0.8125rem;
}

.rxsu-card-body h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin: 12px 0 8px;
  font-size: 1.125rem;
  line-height: 1.48;
}

.rxsu-card-body h3 a,
.rxsu-news-layout-v2 h3 a {
  color: var(--rxsu-text);
  text-decoration: none;
}

.rxsu-card-organizer {
  margin: 0;
  color: var(--rxsu-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.rxsu-card-spacer {
  flex: 1;
  min-height: 18px;
}

.rxsu-card-cta {
  justify-content: flex-end;
}

.rxsu-news-layout-v2 {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
  gap: 32px;
}

.rxsu-news-featured-v2 {
  overflow: hidden;
  border: 1px solid var(--rxsu-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(38, 49, 38, 0.05);
}

.rxsu-news-featured-v2.is-text-only {
  display: grid;
  min-height: 100%;
  align-content: center;
  background: var(--rxsu-surface);
}

.rxsu-news-featured-v2.is-text-only .rxsu-news-body {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px);
}

.rxsu-news-featured-v2.is-text-only .rxsu-card-cta { align-self: flex-start; }

.rxsu-news-body {
  padding: 24px;
}

.rxsu-news-body time,
.rxsu-news-list-v2 time {
  color: var(--rxsu-muted);
}

.rxsu-news-meta,
.rxsu-news-list-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.rxsu-news-meta .rxsu-chip,
.rxsu-news-list-meta .rxsu-chip {
  margin-top: 0;
}

.rxsu-news-meta time,
.rxsu-news-list-meta time {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 0.875rem;
}

.rxsu-news-meta time span,
.rxsu-news-list-meta time span {
  font-weight: 600;
}

.rxsu-date-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}

.rxsu-date-semantic,
.rxsu-news-published {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  line-height: 1.45;
}

/* The unit that owns the story, beside its dates. Quieter than the dates
   themselves: it answers "who is telling me this", which a reader wants
   available rather than announced. */
.rxsu-news-owner {
  color: var(--rxsu-muted);
  font-size: 0.875rem;
}

.rxsu-date-semantic {
  color: var(--rxsu-text);
}

.rxsu-news-published {
  color: var(--rxsu-muted);
}

.rxsu-date-pair time span {
  font-weight: 650;
}

.rxsu-single-news-dates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 0 0 24px;
  padding: 14px 16px;
  border-left: 3px solid var(--rxsu-secondary);
  border-radius: 4px 10px 10px 4px;
  background: var(--rxsu-surface);
  color: var(--rxsu-text);
  font-size: 0.9375rem;
}

.rxsu-single-news-dates time {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
}

.rxsu-single-news-dates time span {
  font-weight: 650;
}

.rxsu-news-body h3 {
  margin: 12px 0;
  font-size: clamp(1.35rem, 2vw, 1.625rem);
  line-height: 1.4;
}

.rxsu-news-body p {
  color: var(--rxsu-muted);
  line-height: 1.65;
}

.rxsu-news-list-v2 {
  display: grid;
  align-content: start;
  gap: 4px;
}

.rxsu-news-list-v2 article {
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) minmax(0, 1.7fr) 44px;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rxsu-border);
}

.rxsu-news-list-v2 article.has-image {
  grid-template-columns: 160px minmax(0, 1fr) 44px;
}

.rxsu-news-list-image {
  display: block;
  width: 160px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: var(--rxsu-surface);
}

.rxsu-news-list-v2 article.is-text-only {
  grid-template-columns: minmax(0, 1fr) 44px;
}

/* An outlined control, filled only on hover. It sits inside running prose, and
   a solid block there is the loudest thing in the article - louder than the
   photographs, which are the record of the event. Teal rather than olive keeps
   the one link in the body distinct from the olive the page uses structurally. */
.rxsu-document-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  margin-block: 8px;
  padding: 10px 16px;
  border: 1px solid var(--rxsu-secondary);
  border-radius: 9px;
  background: transparent;
  color: var(--rxsu-secondary) !important;
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none !important;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.rxsu-document-link::before {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--rxsu-secondary);
  content: attr(data-document-type);
  color: #fefefc;
  font-size: 0.625rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

/* The whole control inverts. Nothing moves: a button that lifts and casts a
   shadow is motion this body has no other use for, and it was the only
   animation a reader with reduce-motion set could still be shown. */
.rxsu-document-link:hover,
.rxsu-document-link:focus-visible {
  border-color: var(--rxsu-secondary);
  background: var(--rxsu-secondary);
  color: #fefefc !important;
}

.rxsu-document-link:hover::before,
.rxsu-document-link:focus-visible::before {
  background: #fefefc;
  color: var(--rxsu-secondary);
}

.rxsu-document-link:focus-visible {
  outline: 3px solid #007c72;
  outline-offset: 3px;
}

.rxsu-news-document-action {
  margin-block: 20px 0;
}

.rxsu-news-list-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rxsu-news-list-content {
  min-width: 0;
}

.rxsu-news-list-v2 h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.rxsu-news-list-v2 .rxsu-news-list-arrow {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  color: var(--rxsu-secondary);
  text-decoration: none;
}

@media (max-width: 1199px) {
  .rxsu-programs-grid-v2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 1023px) {
  .rxsu-content-section-v2 {
    width: calc(100% - 48px);
  }

  .rxsu-home-programs-v2-host .rxsu-content-section-v2 {
    width: calc(100% - 48px);
  }

  .rxsu-news-layout-v2 {
    grid-template-columns: 1fr;
  }

  .rxsu-news-list-v2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .rxsu-news-list-v2 article {
    grid-template-columns: minmax(140px, 0.8fr) minmax(0, 1.6fr) 44px;
    border: 1px solid var(--rxsu-border);
    border-radius: 12px;
    padding: 16px;
  }
}

@media (max-width: 900px) {
  .rxsu-news-list-v2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .rxsu-content-section-v2 {
    width: calc(100% - 32px);
    padding-block: 32px;
  }

  .rxsu-home-programs-v2-host .rxsu-content-section-v2 {
    width: calc(100% - 32px);
  }

  .rxsu-single-news-cover {
    margin-bottom: 24px;
    border-radius: 10px;
  }

  .rxsu-section-heading-v2 {
    align-items: flex-start;
    margin-bottom: 22px;
  }

  .rxsu-section-heading-v2 a {
    flex: 0 0 auto;
    font-size: 0.875rem;
  }

  .rxsu-news-list-v2 {
    grid-template-columns: 1fr;
  }

  /* Four stacked full-width cards is a screen and a half before anything below
     is reachable; a snap row shows one with the next peeking. Scroll-snap
     rather than a carousel library: momentum is native, the cards stay in the
     accessibility tree instead of being hidden and swapped, it costs no script,
     and it degrades to a plain scrollable strip where snapping is unsupported. */
  .rxsu-programs-grid-v2 {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* No negative margin to bleed past the section. The inset belongs to
       .rxsu-content-section-v2 and changes by breakpoint; a bleed guessed here
       overflowed the page by 4px at 390px wide, which is a horizontal
       scrollbar on every phone. The peek comes from the column width alone. */
    overscroll-behavior-x: contain;
  }

  .rxsu-programs-grid-v2 > * {
    scroll-snap-align: start;
  }

  /* Focus shows on the scroller itself: arrow keys scroll whatever holds it. */
  .rxsu-programs-grid-v2:focus-visible {
    outline: 3px solid var(--rxsu-secondary);
    outline-offset: 4px;
  }

  .rxsu-card-body {
    padding: 18px;
  }

  .rxsu-card-body h3 {
    -webkit-line-clamp: 4;
    font-size: 1.0625rem;
  }

  .rxsu-news-body {
    padding: 20px;
  }

  .rxsu-news-list-v2 article {
    grid-template-columns: 1fr 44px;
  }

  .rxsu-news-list-v2 article.has-image {
    grid-template-columns: 104px minmax(0, 1fr) 44px;
  }

  .rxsu-news-list-image {
    width: 104px;
  }

  .rxsu-news-list-meta {
    gap: 6px 10px;
  }

  .rxsu-date-pair,
  .rxsu-single-news-dates {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rxsu-program-card-v2 {
    transition: none;
  }
}

/* Less motion means the jump, not the glide. */
@media (prefers-reduced-motion: reduce) {
  .rxsu-programs-grid-v2 { scroll-behavior: auto; }
}
