/* Move Teach Forward year-end campaign (page-move-teach-forward*.php)
   Palette and type follow the campaign creative: deep navy to teal gradient,
   cyan highlight pill, heavy italic headlines, double chevrons. */

.mtf {
  --mtf-ink: #13215c;
  --mtf-navy: #0b2a63;
  --mtf-blue: #0b5592;
  --mtf-teal: #128aa8;
  --mtf-cyan: #3fd9f0;
  --mtf-cyan-soft: #d3f6fc;
  --mtf-wash: #f1fafd;
  --mtf-coral: #f27b7f;
  --mtf-text: #1c2440;
  --mtf-muted: #4a5270;
  --mtf-radius: 16px;
  --mtf-gradient: linear-gradient(115deg, #0b2563 0%, #0b4c80 48%, #15a7c3 100%);
  color: var(--mtf-text);
}

.mtf *,
.mtf *::before,
.mtf *::after {
  box-sizing: border-box;
}

/* Brand bits */
.mtf-pill {
  display: inline-block;
  padding: 0.02em 0.28em 0.06em;
  border-radius: 0.18em;
  background: var(--mtf-cyan);
  color: var(--mtf-ink);
}

.mtf-chevrons {
  display: inline-block;
  width: 1.1em;
  height: 0.72em;
  background: currentColor;
  vertical-align: -0.04em;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 16'%3E%3Cpath d='M0 0h7l7 8-7 8H0l7-8zM12 0h7l7 8-7 8h-7l7-8z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 16'%3E%3Cpath d='M0 0h7l7 8-7 8H0l7-8zM12 0h7l7 8-7 8h-7l7-8z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Buttons */
.mtf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 34px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.mtf-btn:hover {
  transform: translateY(-1px);
}

.mtf a:focus-visible,
.mtf video:focus-visible {
  outline: 3px solid var(--mtf-blue);
  outline-offset: 3px;
}

.mtf-hero a:focus-visible {
  outline-color: var(--mtf-cyan);
}

.mtf-btn--donate {
  background: var(--mtf-cyan);
  color: var(--mtf-ink);
}

.mtf-btn--donate:hover,
.mtf-btn--donate:focus-visible {
  background: #fff;
  color: var(--mtf-ink);
}

.mtf-btn--outline {
  border-color: #fff;
  color: #fff;
}

.mtf-btn--outline:hover,
.mtf-btn--outline:focus-visible {
  background: #fff;
  color: var(--mtf-ink);
}

.mtf-btn--outline-dark {
  border-color: var(--mtf-navy);
  color: var(--mtf-navy);
}

.mtf-btn--outline-dark:hover,
.mtf-btn--outline-dark:focus-visible {
  background: var(--mtf-navy);
  color: #fff;
}

/* Hero */
.mtf-hero {
  color: #fff;
  text-align: center;
}

.mtf-banner {
  background: linear-gradient(90deg, #f4f8fc 0%, #0b4c80 55%, #35d0ea 100%);
}

.mtf-banner__image {
  display: block;
  width: 100%;
  max-width: 2172px;
  height: auto;
  margin: 0 auto;
}

.mtf-banner--words {
  position: relative;
}

/* Sizes are in cqw (1cqw = 1% of the banner width) so the live text lines up with the art at every width */
.mtf-banner__stage {
  position: relative;
  max-width: 2172px;
  margin: 0 auto;
  container-type: inline-size;
}

.mtf-banner__headline {
  position: absolute;
  top: 42.6%;
  left: 28.4%;
  margin: 0;
  color: #fff;
  font-family: "Montserrat", "proxima-nova", "Helvetica Neue", Arial, sans-serif;
  font-size: 4.5cqw;
  font-style: italic;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-align: left;
  text-shadow: 0 0.06em 0.25em rgba(0, 10, 50, 0.35);
  transform: translateY(-50%);
}

.mtf-banner__line {
  display: block;
}

.mtf-banner__pill {
  display: grid;
  width: max-content;
  margin: 0.06em 0 0.08em -0.08em;
  overflow: hidden;
  border-radius: 0.2em;
  background: linear-gradient(90deg, #9fe5f2 0%, #bdf4fb 35%, #b9f5fc 100%);
  box-shadow: 0 0.08em 0.3em rgba(0, 10, 50, 0.25);
  color: #0b1a5c;
  text-shadow: none;
}

.mtf-banner--words.is-animated .mtf-banner__pill {
  transition: width 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}

.mtf-banner__word {
  grid-area: 1 / 1;
  justify-self: start;
  padding: 0.04em 0.32em 0.1em 0.24em;
  white-space: nowrap;
}

.mtf-banner--words.is-animated .mtf-banner__word {
  opacity: 0;
  transform: translateY(0.45em);
  transition: opacity 0.35s ease, transform 0.35s ease-in;
}

.mtf-banner--words.is-animated .mtf-banner__word.is-leaving {
  transform: translateY(-0.35em);
}

.mtf-banner--words.is-animated .mtf-banner__word.is-active {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease 0.3s, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.mtf-banner--words:not(.is-animated) .mtf-banner__word:not(.is-active) {
  visibility: hidden;
}

/* !important: the theme sets button padding and font-size with !important */
.mtf .mtf-banner__toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0 !important;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 37, 99, 0.7);
  color: #fff;
  font-size: 12px !important;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 640px) {
  .mtf .mtf-banner__toggle {
    right: 6px;
    bottom: 6px;
    width: 26px;
    height: 26px;
    font-size: 10px !important;
  }
}

.mtf-banner__toggle:hover {
  background: var(--mtf-ink);
}

.mtf-banner__toggle:focus-visible {
  outline: 3px solid var(--mtf-cyan);
  outline-offset: 2px;
}

.mtf-hero__band,
.mtf-hero--state {
  position: relative;
  overflow: hidden;
  background: var(--mtf-gradient);
}

.mtf-hero__band {
  padding: 48px 0 56px;
}

.mtf-hero--state {
  padding: 88px 0 72px;
}

/* Oversized brand chevrons behind the state hero */
.mtf-hero--state::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -6%;
  width: 46%;
  height: 120%;
  background: var(--mtf-cyan);
  opacity: 0.12;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 16'%3E%3Cpath d='M0 0h7l7 8-7 8H0l7-8zM12 0h7l7 8-7 8h-7l7-8z'/%3E%3C/svg%3E") no-repeat right center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 16'%3E%3Cpath d='M0 0h7l7 8-7 8H0l7-8zM12 0h7l7 8-7 8h-7l7-8z'/%3E%3C/svg%3E") no-repeat right center / contain;
  pointer-events: none;
}

/* Soft coral glow, as in the creative's lower-left corner */
.mtf-hero__band::after,
.mtf-hero--state::after {
  content: "";
  position: absolute;
  bottom: -160px;
  left: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 123, 127, 0.45) 0%, rgba(242, 123, 127, 0) 70%);
  pointer-events: none;
}

.mtf-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.mtf-hero__eyebrow {
  margin: 0 0 16px;
  color: var(--mtf-cyan);
  font-size: 1rem;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mtf-hero__eyebrow a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.mtf-hero__eyebrow a:hover {
  color: #fff;
}

.mtf-hero__logo {
  display: inline-block;
  margin: 0 0 24px;
  padding: 12px 20px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(4, 20, 60, 0.25);
}

.mtf-hero__logo img {
  display: block;
  width: auto;
  height: 52px;
}

.mtf-hero__title {
  margin: 0;
  color: #fff;
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  font-style: italic;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.mtf-hero__title .mtf-pill {
  margin: 0.06em 0;
}

.mtf-hero__subtitle {
  max-width: 720px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.25rem;
  line-height: 1.5;
}

.mtf-hero__copy {
  max-width: 760px;
  margin: 0 auto 36px;
}

.mtf-hero__kicker {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mtf-hero__lead {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-style: italic;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.mtf-hero__body {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  line-height: 1.6;
}

.mtf-hero__closing {
  margin: 0;
  color: #fff;
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 800;
}

.mtf-hero__match {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 0;
  padding: 12px 20px 12px 12px;
  border-radius: 14px;
  background: var(--mtf-cyan);
  box-shadow: 0 10px 28px rgba(4, 20, 60, 0.3);
  color: var(--mtf-ink);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1.3;
  text-align: left;
}

.mtf-hero__match-badge {
  flex: none;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--mtf-ink);
  color: var(--mtf-cyan);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.mtf-nowrap {
  white-space: nowrap;
}

.mtf-hero__closing .mtf-pill {
  margin: 0 0.1em;
}

.mtf-hero__progress {
  max-width: 720px;
  margin: 32px auto 0;
}

.mtf-hero__band .mtf-hero__progress:first-child {
  margin-top: 0;
}

.mtf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.mtf-donate-fallback {
  flex-basis: 100%;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.mtf-donate-fallback a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

/* Fundraise Up Goal Meter elements (styled in the Fundraise Up dashboard) */
.mtf-goal-meter {
  width: 100%;
  min-height: 1px;
}

.mtf-goal-meter iframe {
  max-width: 100%;
}

/* State Goal Meters use dark text in Fundraise Up and the national one uses white,
   so each sits on a panel it can be read on. */
.mtf--state .mtf-hero__progress {
  padding: 20px 24px;
  border-radius: var(--mtf-radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(4, 20, 60, 0.25);
}

.mtf-national__summary .mtf-goal-meter {
  padding: 20px 24px;
  border-radius: var(--mtf-radius);
  background: var(--mtf-gradient);
}

/* Intro content */
.mtf-intro {
  padding: 64px 0;
}

.mtf-content {
  max-width: 860px;
  font-size: 1.125rem;
  line-height: 1.7;
}

/* Sections */
.mtf-section-title {
  margin: 0 0 12px;
  color: var(--mtf-ink);
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
}

.mtf-section-title--brand {
  font-style: italic;
  letter-spacing: -0.01em;
}

.mtf-section-intro {
  max-width: 720px;
  margin: 0 auto;
  color: var(--mtf-muted);
  font-size: 1.125rem;
}

/* States grid */
.mtf-states {
  padding: 72px 0 88px;
  background: var(--mtf-wash);
  text-align: center;
}

.mtf-states__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.mtf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0;
  border-radius: var(--mtf-radius);
  background: #fff;
  box-shadow: 0 4px 18px rgba(11, 42, 99, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.mtf-card::before {
  content: "";
  height: 6px;
  background: linear-gradient(90deg, var(--mtf-navy) 0%, var(--mtf-teal) 55%, var(--mtf-cyan) 100%);
}

.mtf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(11, 42, 99, 0.16);
}

.mtf-card__media {
  display: block;
}

.mtf-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.mtf-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.mtf-card__title {
  margin: 0;
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 800;
}

.mtf-card__title a {
  color: var(--mtf-ink);
  text-decoration: none;
}

.mtf-card__title a:hover {
  color: var(--mtf-blue);
}

.mtf-card__title--logo a {
  display: inline-block;
}

.mtf-card__logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 60px;
  object-fit: contain;
  object-position: left center;
}

.mtf-card__summary {
  margin: 0;
  color: var(--mtf-muted);
  line-height: 1.5;
}

.mtf-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--mtf-blue);
  font-style: italic;
  font-weight: 800;
  text-decoration: none;
}

.mtf-card__cta .mtf-chevrons {
  color: var(--mtf-teal);
  transition: transform 0.2s;
}

.mtf-card__cta:hover {
  color: var(--mtf-ink);
}

.mtf-card:hover .mtf-card__cta .mtf-chevrons {
  transform: translateX(4px);
}

/* Reel + campaign pillars */
.mtf-pillars {
  padding: 80px 0 96px;
  background: #fff;
  text-align: center;
}

.mtf-pillars__layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-top: 40px;
}

.mtf-reel {
  position: relative;
  padding: 6px;
  border-radius: 26px;
  background: linear-gradient(160deg, var(--mtf-cyan) 0%, var(--mtf-blue) 100%);
  box-shadow: 0 18px 40px rgba(11, 42, 99, 0.22);
}

.mtf-reel__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  background: var(--mtf-navy);
  object-fit: cover;
}

.mtf-pillars__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mtf-pillar {
  margin: 0;
  overflow: hidden;
  border-radius: var(--mtf-radius);
  box-shadow: 0 8px 24px rgba(11, 42, 99, 0.14);
}

.mtf-pillar img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1670 / 941;
  object-fit: cover;
}

/* State page: combined progress + other states */
.mtf-national {
  padding: 64px 0 88px;
  background: var(--mtf-wash);
}

.mtf-national__inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 48px;
  align-items: start;
}

.mtf-national__summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.mtf-national__summary .mtf-goal-meter {
  max-width: 560px;
}

.mtf-national__states-title {
  margin: 0 0 12px;
  color: var(--mtf-ink);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 800;
}

.mtf-national__states ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mtf-national__states li {
  margin: 0;
  border-bottom: 1px solid rgba(11, 42, 99, 0.15);
}

.mtf-national__states a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 4px;
  color: var(--mtf-ink);
  font-weight: 700;
  text-decoration: none;
}

.mtf-national__states a:hover {
  color: var(--mtf-blue);
}

/* Editor-only setup hints */
.mtf-editor-status {
  display: inline-block;
  margin: 28px auto 0;
  padding: 8px 14px;
  border-radius: 6px;
  background: #fff8e1;
  color: #5c4400;
  font-size: 0.875rem;
  text-align: left;
}

.mtf-editor-status__note {
  margin-left: 6px;
  opacity: 0.7;
}

@media (max-width: 991px) {
  .mtf-states__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mtf-pillars__layout {
    grid-template-columns: 1fr;
  }

  .mtf-reel {
    width: min(300px, 80%);
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .mtf-hero__band {
    padding: 36px 0 44px;
  }

  .mtf-hero--state {
    padding: 56px 0 48px;
  }

  .mtf-hero--state::before {
    width: 70%;
    opacity: 0.08;
  }

  .mtf-hero__actions .mtf-btn {
    width: 100%;
  }

  .mtf-pillars {
    padding: 56px 0 64px;
  }

  .mtf-pillars__grid,
  .mtf-states__grid {
    grid-template-columns: 1fr;
  }

  .mtf-national__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mtf-btn,
  .mtf-card,
  .mtf-card__cta .mtf-chevrons {
    transition: none;
  }

  .mtf-btn:hover,
  .mtf-card:hover {
    transform: none;
  }

  .mtf-card:hover .mtf-card__cta .mtf-chevrons {
    transform: none;
  }

  .mtf-banner__pill,
  .mtf-banner--words.is-animated .mtf-banner__word {
    transition: none;
  }
}
