/* ==========================================================================
   Edmonton Acrobatic Gymnastics - design system
   Tokens and shared component styles. Edited in the child theme only.
   ========================================================================== */

:root {
  --eag-bg: #FFFFFF;
  --eag-surface: #F5F4F2;
  --eag-ink: #201D1B;
  --eag-accent: #E81119;
  --eag-accent-deep: #B81219;
  --eag-gold: #FECF05;
  --eag-night: #1B1A19;
  --eag-muted: #5C5651;
  --eag-hairline: #E4E1DD;

  --eag-radius-card: 20px;
  --eag-radius-media: 20px;
  --eag-radius-input: 12px;
  --eag-radius-pill: 999px;

  --eag-space-xs: 8px;
  --eag-space-sm: 16px;
  --eag-space-md: 28px;
  --eag-space-lg: 56px;
  --eag-space-xl: 96px;
  --eag-section: 104px;
  --eag-section-mobile: 64px;

  --eag-measure: 68ch;
}

/* --------------------------------------------------------------------------
   Typography rhythm
   -------------------------------------------------------------------------- */

body {
  color: var(--eag-ink);
  background: var(--eag-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.elementor-widget-heading .elementor-heading-title {
  color: var(--eag-ink);
  text-wrap: balance;
}

.entry-content p,
.eag-prose p,
.eag-prose li {
  max-width: var(--eag-measure);
}

.eag-lead {
  font-size: clamp(1.125rem, 0.95rem + 0.7vw, 1.375rem);
  line-height: 1.55;
  color: var(--eag-muted);
  max-width: 60ch;
}

.eag-eyebrow {
  display: inline-block;
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eag-accent-deep);
}

.eag-on-night .eag-eyebrow { color: var(--eag-gold); }

/* Italic descenders need room in display type. */
h1 em, h2 em, .eag-display em { line-height: 1.12; padding-bottom: 0.06em; display: inline-block; }

/* --------------------------------------------------------------------------
   Links
   -------------------------------------------------------------------------- */

.entry-content a:not(.elementor-button):not(.wp-block-button__link),
.eag-prose a {
  color: var(--eag-accent-deep);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

.entry-content a:not(.elementor-button):hover,
.eag-prose a:hover { color: var(--eag-ink); }

/* --------------------------------------------------------------------------
   Focus. Visible on every interactive element, on light and dark grounds.
   -------------------------------------------------------------------------- */

/* Two tone ring: a dark outline carries the contrast (16:1 on white,
   3.6:1 on the red button), the gold halo carries the brand. Gold alone
   on white measures 1.37:1 and would fail WCAG 2.2 focus appearance. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
.elementor-button:focus-visible {
  outline: 3px solid var(--eag-ink);
  outline-offset: 2px;
  border-radius: 4px;
  box-shadow: 0 0 0 6px rgba(254, 207, 5, 0.55);
}

/* On the dark band the relationship inverts: gold carries the contrast
   (12.7:1 on night) and the dark ring becomes the halo. */
.eag-on-night a:focus-visible,
.eag-on-night button:focus-visible,
.eag-on-night summary:focus-visible,
.eag-on-night .elementor-button:focus-visible {
  outline-color: var(--eag-gold);
  box-shadow: 0 0 0 6px rgba(27, 26, 25, 0.9);
}

/* Skip link */
.skip-link:focus {
  background: var(--eag-ink);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--eag-radius-input);
}

/* --------------------------------------------------------------------------
   Buttons. One pill scale, held everywhere.
   -------------------------------------------------------------------------- */

.elementor-button,
.wp-block-button__link,
.eag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 32px;
  border-radius: var(--eag-radius-pill);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.eag-btn--primary,
.elementor-button.eag-btn--primary {
  background: var(--eag-accent);
  color: #FFFFFF;
  border: 2px solid var(--eag-accent);
}

.eag-btn--primary:hover,
.eag-btn--primary:focus {
  background: var(--eag-accent-deep);
  border-color: var(--eag-accent-deep);
  color: #FFFFFF;
}

.eag-btn--secondary,
.elementor-button.eag-btn--secondary {
  background: transparent;
  color: var(--eag-ink);
  border: 2px solid var(--eag-ink);
}

.eag-btn--secondary:hover,
.eag-btn--secondary:focus {
  background: var(--eag-ink);
  color: #FFFFFF;
}

.eag-on-night .eag-btn--secondary {
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.eag-on-night .eag-btn--secondary:hover,
.eag-on-night .eag-btn--secondary:focus {
  background: #FFFFFF;
  color: var(--eag-ink);
}

.eag-btn:active { transform: translateY(1px); }

/* --------------------------------------------------------------------------
   Bands
   -------------------------------------------------------------------------- */

.eag-band-tint { background: var(--eag-surface); }

.eag-on-night,
.eag-band-night {
  background: var(--eag-night);
  color: #FFFFFF;
}

.eag-on-night h1,
.eag-on-night h2,
.eag-on-night h3,
.eag-on-night .elementor-heading-title { color: #FFFFFF; }

.eag-on-night p { color: #E9E6E2; }

/* --------------------------------------------------------------------------
   Program cards
   -------------------------------------------------------------------------- */

.eag-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--eag-bg);
  border: 1px solid var(--eag-hairline);
  border-radius: var(--eag-radius-card);
  overflow: hidden;
  height: 100%;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.eag-card:hover,
.eag-card:focus-within {
  transform: translateY(-3px);
  border-color: var(--eag-ink);
}

.eag-card__media {
  aspect-ratio: 16 / 10;
  background: var(--eag-surface);
  overflow: hidden;
}

.eag-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eag-card__body {
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}

.eag-card__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.18;
  margin: 0;
}

.eag-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.eag-card__meta li {
  font-family: 'Figtree', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--eag-ink);
  background: var(--eag-surface);
  border: 1px solid var(--eag-hairline);
  border-radius: var(--eag-radius-pill);
  padding: 5px 13px;
}

.eag-card__text {
  margin: 0;
  color: var(--eag-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.eag-card__link {
  margin-top: auto;
  padding-top: 14px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--eag-accent-deep);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eag-card__link::after { content: '\2192'; transition: transform 0.15s ease; }
.eag-card:hover .eag-card__link::after { transform: translateX(4px); }

/* Whole card is clickable, but the link is the real, readable target. */
.eag-card__link::before {
  content: '';
  position: absolute;
  inset: 0;
}

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

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

@media (max-width: 1024px) {
  .eag-grid,
  .eag-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .eag-grid,
  .eag-grid--3 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Statistics
   -------------------------------------------------------------------------- */

.eag-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.eag-stats li {
  padding: 8px 28px;
  border-left: 1px solid #443F3B;
}

.eag-stats li:first-child { border-left: 0; padding-left: 0; }

.eag-stat__value {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(2.75rem, 2rem + 3vw, 4.25rem);
  line-height: 1;
  color: var(--eag-gold);
  letter-spacing: -0.02em;
}

.eag-stat__label {
  display: block;
  margin-top: 10px;
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.4;
  color: #E9E6E2;
}

@media (max-width: 860px) {
  .eag-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 0; }
  .eag-stats li:nth-child(odd) { border-left: 0; padding-left: 0; }
}

@media (max-width: 460px) {
  .eag-stats { grid-template-columns: 1fr; gap: 28px; }
  .eag-stats li { border-left: 0; padding-left: 0; }
}

/* --------------------------------------------------------------------------
   FAQ. Native disclosure semantics, no card chrome.
   -------------------------------------------------------------------------- */

.eag-faq { border-top: 1px solid var(--eag-hairline); }

.eag-faq details {
  border-bottom: 1px solid var(--eag-hairline);
}

.eag-faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.1875rem;
  line-height: 1.35;
  color: var(--eag-ink);
  list-style: none;
  min-height: 48px;
}

.eag-faq summary::-webkit-details-marker { display: none; }

.eag-faq summary::after {
  content: '';
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 6px;
  border-right: 2.5px solid var(--eag-accent);
  border-bottom: 2.5px solid var(--eag-accent);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.eag-faq details[open] summary::after { transform: rotate(-135deg); margin-top: 10px; }

.eag-faq .eag-faq__answer {
  padding: 0 4px 24px;
  color: var(--eag-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: var(--eag-measure);
}

.eag-faq .eag-faq__answer > *:first-child { margin-top: 0; }
.eag-faq .eag-faq__answer > *:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Testimonial rail. Scroll-snap, keyboard reachable, no autoplay.
   -------------------------------------------------------------------------- */

.eag-rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 20px;
  margin: 0 -4px;
  scrollbar-width: thin;
}

.eag-rail > * {
  flex: 0 0 min(380px, 82vw);
  scroll-snap-align: start;
}

.eag-quote {
  background: var(--eag-bg);
  border: 1px solid var(--eag-hairline);
  border-radius: var(--eag-radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.eag-quote blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--eag-ink);
}

.eag-quote figcaption {
  margin-top: auto;
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--eag-muted);
}

/* --------------------------------------------------------------------------
   Staff cards
   -------------------------------------------------------------------------- */

.eag-staff {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

@media (max-width: 1024px) { .eag-staff { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .eag-staff { grid-template-columns: 1fr; } }

.eag-person {
  border: 1px solid var(--eag-hairline);
  border-radius: var(--eag-radius-card);
  overflow: hidden;
  background: var(--eag-bg);
  display: flex;
  flex-direction: column;
}

.eag-person__media {
  aspect-ratio: 4 / 3;
  background: var(--eag-surface);
}

.eag-person__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.eag-person__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--eag-surface);
  color: var(--eag-muted);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: 0.04em;
}

.eag-person__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }

.eag-person__name { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.3125rem; margin: 0; }

.eag-person__role { margin: 0; font-weight: 600; color: var(--eag-accent-deep); font-size: 0.9375rem; }

.eag-person__bio { margin: 0; color: var(--eag-muted); font-size: 1rem; line-height: 1.6; }

.eag-person__duties { margin: 6px 0 0; padding-left: 1.1em; color: var(--eag-ink); font-size: 0.9375rem; line-height: 1.55; }

.eag-person__duties li { margin-bottom: 3px; }

/* --------------------------------------------------------------------------
   Pathway rail
   -------------------------------------------------------------------------- */

.eag-pathway { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 900px) { .eag-pathway { grid-template-columns: 1fr; } }

.eag-step {
  border: 1px solid #443F3B;
  border-radius: var(--eag-radius-card);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eag-step__stage { font-family: 'Figtree', sans-serif; font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--eag-gold); }

.eag-step__title { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.25rem; margin: 0; color: #FFFFFF; }

.eag-step__text { margin: 0; color: #C9C4BF; font-size: 0.9875rem; line-height: 1.6; }

/* --------------------------------------------------------------------------
   Mobile sticky call to action
   -------------------------------------------------------------------------- */

.eag-mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(6px);
  border-top: 1px solid var(--eag-hairline);
  box-shadow: 0 -2px 16px rgba(32, 29, 27, 0.10);
}

@media (max-width: 921px) { .eag-mobile-cta { display: flex; } body { padding-bottom: 76px; } }

.eag-mobile-cta__btn {
  flex: 1 1 auto;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--eag-radius-pill);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}

.eag-mobile-cta__btn--primary { background: var(--eag-accent); color: #FFFFFF; }
.eag-mobile-cta__btn--secondary { background: transparent; color: var(--eag-ink); border: 2px solid var(--eag-ink); }
.eag-mobile-cta__btn--icon { flex: 0 0 48px; width: 48px; background: var(--eag-surface); color: var(--eag-ink); border: 1px solid var(--eag-hairline); }

/* --------------------------------------------------------------------------
   Composition helpers
   -------------------------------------------------------------------------- */

.eag-bleed-right { border-radius: var(--eag-radius-media) 0 0 var(--eag-radius-media); }

@media (max-width: 921px) { .eag-bleed-right { border-radius: var(--eag-radius-media); } }

.eag-underline-gold {
  background-image: linear-gradient(var(--eag-gold), var(--eag-gold));
  background-repeat: no-repeat;
  background-size: 100% 0.28em;
  background-position: 0 88%;
  padding-inline: 0.06em;
}

.eag-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .eag-rail { scroll-snap-type: none; }
}

/* Touch targets */
.main-header-menu a,
.ast-header-break-point .main-header-menu a { min-height: 44px; }
/* ==========================================================================
   Header and footer (Astra header/footer builder)
   ========================================================================== */

.ast-primary-header-bar .site-logo-img img { height: auto; }

.site-title { letter-spacing: -0.01em; }
.site-title a { max-width: 15ch; display: inline-block; }

@media (min-width: 922px) {
  .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link { border-radius: var(--eag-radius-pill); }
  .ast-builder-menu-1 .main-header-menu > .menu-item.current-menu-item > .menu-link,
  .ast-builder-menu-1 .main-header-menu > .menu-item.current-menu-ancestor > .menu-link {
    background: var(--eag-surface);
    color: var(--eag-accent-deep);
  }
}

.ast-builder-menu-1 .sub-menu { border-radius: 14px; overflow: hidden; padding: 6px 0; }
.ast-builder-menu-1 .sub-menu .menu-link { line-height: 1.35; padding-top: 12px; padding-bottom: 12px; }

.ast-header-break-point .main-header-menu .menu-link { font-size: 1.0625rem; }

.eag-drawer-contact { margin-top: 20px; font-size: 1rem; line-height: 1.6; }
.eag-drawer-contact a { color: var(--eag-accent-deep); font-weight: 600; text-decoration: underline; }
.eag-drawer-contact span { color: var(--eag-muted); font-weight: 400; }

/* Footer */
.eag-foot-brand img { max-width: 160px; height: auto; margin-bottom: 14px; }
.eag-foot-name { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.125rem; margin: 0 0 8px; color: var(--eag-ink); }
.eag-foot-desc { font-size: 0.9375rem; line-height: 1.6; color: var(--eag-muted); margin: 0 0 16px; max-width: 34ch; }
.eag-foot-address { font-style: normal; font-size: 0.9375rem; line-height: 1.7; }
.eag-foot-address a { color: var(--eag-ink); text-decoration: none; }
.eag-foot-address a:hover { color: var(--eag-accent-deep); text-decoration: underline; }
.eag-foot-address span { color: var(--eag-muted); }
.eag-foot-social { list-style: none; margin: 16px 0 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.eag-foot-social a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--eag-hairline); border-radius: var(--eag-radius-pill);
  background: #FFFFFF; color: var(--eag-ink); font-size: 0.875rem; font-weight: 600; text-decoration: none;
}
.eag-foot-social a:hover { border-color: var(--eag-ink); }

.eag-foot-heading { font-family: 'Outfit', sans-serif; font-size: 1.375rem; font-weight: 700; margin: 0 0 8px; }
.eag-foot-cta p { font-size: 0.9375rem; line-height: 1.6; color: var(--eag-muted); }
.eag-foot-btns { display: flex; flex-direction: column; gap: 10px; align-items: stretch; margin: 16px 0 12px; }
.eag-foot-btns .eag-btn { width: 100%; font-size: 0.9375rem; padding: 12px 20px; min-height: 48px; }
.eag-foot-note a { color: var(--eag-accent-deep); font-weight: 600; }

.site-footer .widget_nav_menu ul { list-style: none; margin: 0; padding: 0; }
.site-footer .widget_nav_menu li { margin-bottom: 10px; }
.site-footer .widget_nav_menu a { font-size: 0.9375rem; line-height: 1.5; text-decoration: none; display: inline-block; min-height: 24px; }
.site-footer .widget_nav_menu a:hover { text-decoration: underline; }
.site-footer .widget-title { margin-bottom: 16px; }

.ast-below-footer-wrap .ast-builder-menu ul { gap: 4px 20px; }

/* ==========================================================================
   Page section rhythm inside Elementor
   ========================================================================== */

.eag-section { padding-top: var(--eag-section); padding-bottom: var(--eag-section); }

@media (max-width: 921px) {
  .eag-section { padding-top: var(--eag-section-mobile); padding-bottom: var(--eag-section-mobile); }
}

.eag-section-head { max-width: 46ch; }
.eag-section-head h2 { margin: 0 0 14px; }
.eag-section-head p { margin: 0; }

/* Split layout: content column keeps its measure, media bleeds to the edge. */
.eag-split { align-items: center; }

@media (min-width: 1025px) {
  .eag-bleed-media { margin-right: calc((100vw - min(1200px, 100vw - 80px)) / -2); }
  .eag-bleed-media-left { margin-left: calc((100vw - min(1200px, 100vw - 80px)) / -2); }
}

/* Highlight list used for "why us" */
.eag-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 44px; list-style: none; margin: 0; padding: 0; }

@media (max-width: 780px) { .eag-points { grid-template-columns: 1fr; gap: 28px; } }

.eag-points li { border-top: 2px solid var(--eag-ink); padding-top: 18px; }
.eag-points h3 { font-size: 1.1875rem; margin: 0 0 8px; }
.eag-points p { margin: 0; color: var(--eag-muted); font-size: 1rem; line-height: 1.6; }

/* Steps for "how to register" style numbered flows */
.eag-steps { counter-reset: eagstep; list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.eag-steps li { display: grid; grid-template-columns: 46px 1fr; gap: 18px; align-items: start; }
.eag-steps li::before {
  counter-increment: eagstep; content: counter(eagstep);
  width: 46px; height: 46px; border-radius: var(--eag-radius-pill);
  background: var(--eag-accent); color: #FFFFFF;
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.25rem;
  display: grid; place-items: center;
}
.eag-steps h3 { margin: 8px 0 6px; font-size: 1.1875rem; }
.eag-steps p { margin: 0; color: var(--eag-muted); line-height: 1.6; }

/* Program detail table used on program pages */
.eag-facts { width: 100%; border-collapse: collapse; margin: 0 0 28px; }
.eag-facts th, .eag-facts td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--eag-hairline); vertical-align: top; font-size: 1rem; line-height: 1.55; }
.eag-facts th { width: 34%; font-family: 'Outfit', sans-serif; font-weight: 600; color: var(--eag-ink); }
.eag-facts td { color: var(--eag-muted); }

/* Notice / on-hold flag */
.eag-notice {
  border-left: 4px solid var(--eag-accent);
  background: var(--eag-surface);
  border-radius: 0 var(--eag-radius-input) var(--eag-radius-input) 0;
  padding: 18px 22px;
  margin: 0 0 28px;
  font-size: 1rem;
  line-height: 1.6;
}
.eag-notice strong { color: var(--eag-ink); }

/* Empty state for the review rail before real reviews are added */
.eag-empty {
  border: 2px dashed var(--eag-hairline);
  border-radius: var(--eag-radius-card);
  padding: 40px 32px;
  text-align: center;
  color: var(--eag-muted);
  max-width: 620px;
  margin: 0 auto;
}
.eag-empty h3 { margin: 0 0 10px; font-size: 1.1875rem; color: var(--eag-ink); }
.eag-empty p { margin: 0 auto; max-width: 46ch; }

/* Map */
.eag-map { border-radius: var(--eag-radius-media); overflow: hidden; border: 1px solid var(--eag-hairline); }
.eag-map iframe { display: block; width: 100%; height: 420px; border: 0; }

@media (max-width: 620px) { .eag-map iframe { height: 300px; } }
/* ==========================================================================
   Forms (Elementor Pro form widget)
   ========================================================================== */

.eag-form .elementor-field-group > label,
.eag-form .elementor-field-label {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--eag-ink);
  margin-bottom: 7px;
}

.eag-form .elementor-field-textual {
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid var(--eag-hairline);
  border-radius: var(--eag-radius-input);
  background: #FFFFFF;
  color: var(--eag-ink);
  font-family: 'Figtree', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

.eag-form textarea.elementor-field-textual { min-height: 150px; }

.eag-form .elementor-field-textual::placeholder { color: #7A736D; }

.eag-form .elementor-field-textual:focus {
  border-color: var(--eag-ink);
  outline: 3px solid var(--eag-ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(254, 207, 5, 0.55);
}

.eag-form .elementor-button[type="submit"] {
  background: var(--eag-accent);
  color: #FFFFFF;
  border: 2px solid var(--eag-accent);
  border-radius: var(--eag-radius-pill);
  min-height: 54px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
}

.eag-form .elementor-button[type="submit"]:hover {
  background: var(--eag-accent-deep);
  border-color: var(--eag-accent-deep);
}

.eag-form .elementor-message {
  font-size: 1rem;
  line-height: 1.55;
  border-radius: var(--eag-radius-input);
  padding: 14px 18px;
  margin-top: 14px;
}

.eag-form .elementor-message-success { background: #F5F4F2; color: var(--eag-ink); border-left: 4px solid var(--eag-ink); }
.eag-form .elementor-message-danger { background: #FDF0F0; color: var(--eag-accent-deep); border-left: 4px solid var(--eag-accent); }

.eag-form .elementor-field-required .elementor-field-label:after { color: var(--eag-accent-deep); }

/* ==========================================================================
   Elementor resets that keep the design system in charge
   ========================================================================== */

.elementor-widget-text-editor p:last-child { margin-bottom: 0; }

.elementor-widget-image img { border-radius: var(--eag-radius-media); }

.eag-card__media .elementor-widget-image img,
.eag-card__media img { border-radius: 0; }

.eag-card .elementor-widget:not(:last-child) { margin-block-end: 0; }

.eag-card__body > .elementor-element { margin-block-end: 0; }

/* Program card grid children must stretch, not centre. */
.eag-grid > .e-con { align-self: stretch; }

/* Hero image should not shrink below a usable size on tablet. */
@media (max-width: 1024px) and (min-width: 768px) {
  .eag-hero .eag-bleed-media img { min-height: 320px; object-fit: cover; }
}

/* Page hero spacing is tighter than a section, it sits under the header. */
.eag-page-hero h1 { margin-top: 0; }

/* Prose lists inherit the reading measure. */
.eag-prose ul, .eag-prose ol { max-width: var(--eag-measure); line-height: 1.65; }
.eag-prose li { margin-bottom: 8px; }
.eag-prose h2 { margin-top: 40px; }
.eag-prose h3 { margin-top: 28px; }
.eag-prose h2:first-child, .eag-prose h3:first-child { margin-top: 0; }

/* Anchor targets clear the sticky header. */
[id] { scroll-margin-top: 96px; }