/* Guest pages keep the same visual language while letting every section move in Gutenberg. */
.fifpa-story:has(.fifpa-profile) .fifpa-story__hero-inner {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
}
.fifpa-story:has(.fifpa-profile) .fifpa-story__hero-inner > .wp-block-post-featured-image {
  justify-self: end;
  max-width: 480px;
  max-height: 520px;
  aspect-ratio: 4 / 4.3;
}
.fifpa-story:has(.fifpa-profile) .fifpa-story__hero-inner > .wp-block-post-featured-image img {
  object-position: center 24%;
}
.fifpa-story:has(.fifpa-profile--francisco-mata-rosas) .fifpa-story__hero-inner > .wp-block-post-featured-image img {
  object-position: center;
}
.fifpa-profile {
  width: 100%;
}
.fifpa-profile__intro {
  display: grid;
  grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
  padding: 0 0 clamp(3rem, 6vw, 6rem);
}
.fifpa-profile__mode {
  display: inline-block;
  width: fit-content;
  margin: 0;
  padding: .55rem .8rem;
  background: var(--color-yellow);
  color: var(--color-ink);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.25;
  text-transform: uppercase;
}
.fifpa-profile__lead {
  max-width: 34ch;
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.28;
  text-wrap: balance;
}
.fifpa-profile__section {
  display: grid;
  grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr);
  gap: clamp(1.5rem, 6vw, 6rem);
  align-items: start;
  padding: clamp(2.5rem, 5vw, 5rem) 0;
  border-top: 1px solid var(--color-rule);
}
.fifpa-profile__section:first-of-type {
  border-top: 4px solid var(--color-navy);
}
.fifpa-profile__section > h2 {
  max-width: 16ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3.8vw, 4rem);
  font-weight: 400;
  line-height: 1.12;
  text-transform: uppercase;
  text-wrap: balance;
}
.fifpa-profile__section-body {
  max-width: 72ch;
  margin: 0;
  font-size: clamp(1.06rem, 1.22vw, 1.22rem);
  line-height: 1.65;
}
.fifpa-profile__section-body > p {
  margin: 0 0 1.35rem;
}
.fifpa-profile__section-body a,
.fifpa-profile__back a {
  color: var(--color-navy);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--color-blue);
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
  transition: color var(--dur-med) var(--ease-out);
}
.fifpa-profile__section-body a:hover,
.fifpa-profile__back a:hover {
  color: var(--color-blue);
}
.fifpa-profile__award-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .65fr);
  gap: 1.5rem;
  align-items: end;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--color-paper-deep);
}
.fifpa-profile__award-media > .wp-block-image {
  margin: 0;
}
.fifpa-profile__award-media img {
  display: block;
  width: 100%;
  height: auto;
}
.fifpa-profile__caption {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.fifpa-profile__video-media {
  width: min(100%, 820px);
  margin: 1.5rem 0 0;
}
.fifpa-profile--julio-foster .fifpa-profile__video-media,
.fifpa-profile--lucas-barbieri .fifpa-profile__video-media {
  width: min(100%, 420px);
}
.fifpa-profile__video-media .wp-block-video {
  margin: 0;
}
.fifpa-profile__video-media video {
  display: block;
  width: 100%;
  max-height: 72vh;
  background: var(--color-navy-deep);
}
.fifpa-profile__resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  margin: 0;
}
.fifpa-profile__resource-links br {
  display: none;
}
.fifpa-profile__resource-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.fifpa-profile__back {
  margin: 0;
  padding-top: 2rem;
  border-top: 1px solid var(--color-rule);
  font-size: var(--text-sm);
}
.fifpa-article {
  max-width: 1280px;
  margin-inline: auto;
}
.fifpa-article > .wp-block-post-title {
  max-width: 1000px;
  font-size: clamp(3.1rem, 5.5vw, 5.6rem);
  line-height: 1.16;
}
.fifpa-article > .wp-block-post-featured-image {
  max-width: 1000px;
  max-height: 520px;
  margin: 2rem auto 0;
  overflow: hidden;
}
.fifpa-article > .wp-block-post-featured-image img {
  max-height: 520px;
  object-position: center 33%;
}
.fifpa-article > .wp-block-post-content {
  width: min(100%, 780px);
  max-width: 780px !important;
  margin: clamp(3rem, 6vw, 6rem) auto 0;
}
.fifpa-article > .wp-block-post-content p {
  line-height: 1.72;
}
.fifpa-article > .wp-block-post-content a {
  color: var(--color-navy);
  text-decoration-color: var(--color-blue);
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
}
.fifpa-article > .wp-block-post-navigation-link {
  display: flex;
  align-items: center;
  width: min(100%, 780px);
  min-height: 44px;
  margin: 2rem auto 0;
  font-size: var(--text-sm);
  font-weight: 800;
}
.fifpa-article > .wp-block-post-navigation-link a {
  color: var(--color-navy);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .25em;
}
.fifpa-article .fifpa-article__lead {
  max-width: 54ch;
  margin: 1.5rem 0 2.5rem;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
}
.fifpa-article .fifpa-award-figure {
  width: min(100%, 650px);
  margin: 2.5rem auto 4rem;
  padding: clamp(1rem, 2vw, 2rem);
  background: var(--color-paper-deep);
}
.fifpa-article .fifpa-award-figure .wp-block-image {
  margin: 0;
}
.fifpa-article .fifpa-award-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.fifpa-article .fifpa-award-figure__caption {
  margin: 1rem 0 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
}
@media (max-width: 900px) {
  .fifpa-story:has(.fifpa-profile) .fifpa-story__hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  }
  .fifpa-profile__section {
    grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
    gap: 2rem;
  }
}
@media (max-width: 700px) {
  .fifpa-article > .wp-block-post-title {
    font-size: clamp(2.65rem, 10vw, 4.5rem);
  }
  .fifpa-article > .wp-block-post-content {
    margin-top: 3rem;
  }
  .fifpa-story:has(.fifpa-profile) .fifpa-story__hero-inner {
    grid-template-columns: 1fr;
  }
  .fifpa-story:has(.fifpa-profile) .fifpa-story__hero-inner > .wp-block-post-featured-image {
    justify-self: stretch;
    max-width: none;
    max-height: 350px;
    aspect-ratio: 16 / 9;
  }
  .fifpa-profile__intro,
  .fifpa-profile__section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .fifpa-profile__lead {
    font-size: clamp(1.55rem, 7vw, 2.25rem);
  }
  .fifpa-profile__section > h2 {
    max-width: 22ch;
    font-size: clamp(2rem, 8vw, 3rem);
  }
  .fifpa-profile__award-media {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  .fifpa-profile__award-media > .wp-block-image {
    max-width: 440px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fifpa-profile__section-body a,
  .fifpa-profile__back a {
    transition: none;
  }
}
