/**
 * Link callouts — [fc_callout] shortcode (inc/callout-shortcode.php)
 *
 * Styles: strip | outline | card | navy | banner
 * Image:  fc-callout--img-left | --img-right | --img-none
 *
 * Layout switches on the callout's own width (container queries), so it
 * stacks on phones and in any narrow column. Selectors start with
 * `a.fc-callout` or `.fc-callout .x` to beat `.main-content a` / `img`.
 */

a.fc-callout,
a.fc-callout:hover,
a.fc-callout:focus,
a.fc-callout:visited {
  display: block;
  margin: 2rem 0 2.25rem;
  color: inherit;
  text-decoration: none;
  border: 0;
  container: fc-callout / inline-size;
  -webkit-tap-highlight-color: transparent;
}
a.fc-callout:focus-visible {
  outline: 3px solid #0056f7;
  outline-offset: 4px;
  border-radius: 16px;
}

.fc-callout .fc-callout__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}
.fc-callout--img-left .fc-callout__inner {
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
}
.fc-callout--img-right .fc-callout__inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 38%);
}
.fc-callout--img-right .fc-callout__media {
  order: 2;
}

.fc-callout .fc-callout__media {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  background: #cfd6e8;
}
.fc-callout .fc-callout__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.fc-callout .fc-callout__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 28px 32px;
}
.fc-callout .fc-callout__label {
  font-family: tenon, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0056f7;
}
.fc-callout .fc-callout__title {
  font-family: tenon, sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #041670;
  text-wrap: balance;
}
.fc-callout .fc-callout__text {
  font-family: tenon, sans-serif;
  font-size: 1.03rem;
  font-weight: 300;
  line-height: 1.6;
  color: #3e4352;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fc-callout .fc-callout__cta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: tenon, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  color: #041670;
}
.fc-callout .fc-callout__arrow {
  display: inline-grid;
  place-items: center;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.fc-callout svg {
  width: 18px;
  height: 18px;
}
.fc-callout:hover .fc-callout__arrow,
.fc-callout:focus-visible .fc-callout__arrow {
  transform: translateX(4px);
}
.fc-callout:hover .fc-callout__img {
  transform: scale(1.04);
}
.fc-callout .fc-callout__go {
  display: none;
}

/* ---------- Strip ---------- */
.fc-callout--strip .fc-callout__inner {
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-radius: 0;
  overflow: visible;
  border-top: 1px solid #dde2ee;
  border-bottom: 1px solid #dde2ee;
}
.fc-callout--strip.fc-callout--img-right .fc-callout__inner {
  grid-template-columns: minmax(0, 1fr) 96px auto;
}
.fc-callout--strip.fc-callout--img-right .fc-callout__media {
  order: 1;
}
.fc-callout--strip.fc-callout--img-none .fc-callout__inner {
  grid-template-columns: minmax(0, 1fr) auto;
}
.fc-callout--strip .fc-callout__media {
  min-height: 0;
  aspect-ratio: 1;
  border-radius: 10px;
}
.fc-callout--strip .fc-callout__body {
  padding: 0;
  gap: 4px;
}
.fc-callout--strip .fc-callout__title {
  font-size: 1.2rem;
}
.fc-callout--strip .fc-callout__text {
  font-size: 0.98rem;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.fc-callout--strip .fc-callout__cta {
  display: none;
}
.fc-callout--strip .fc-callout__go {
  order: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #041670;
  color: #041670;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.fc-callout--strip:hover .fc-callout__go,
.fc-callout--strip:focus-visible .fc-callout__go {
  background: #041670;
  color: #fff;
}
.fc-callout--strip:hover .fc-callout__title {
  color: #0056f7;
}

/* ---------- Outline ---------- */
.fc-callout--outline .fc-callout__inner {
  padding: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #dde2ee;
}
.fc-callout--outline .fc-callout__media {
  min-height: 190px;
  border-radius: 10px;
}
.fc-callout--outline .fc-callout__body {
  padding: 18px 24px;
}
.fc-callout--outline .fc-callout__title {
  font-size: 1.3rem;
}
.fc-callout--outline:hover .fc-callout__inner {
  box-shadow: inset 0 0 0 1.5px #041670;
}

/* ---------- Card (default) ---------- */
.fc-callout--card .fc-callout__inner {
  background: #f2f4f9;
  box-shadow: inset 0 0 0 1px transparent;
}
.fc-callout--card:hover .fc-callout__inner {
  box-shadow: inset 0 0 0 1px #c9d2ea, 0 14px 32px -20px rgba(4, 22, 112, 0.45);
}

/* ---------- Navy ---------- */
.fc-callout--navy .fc-callout__inner {
  background: #041670;
}
.fc-callout--navy:hover .fc-callout__inner {
  background: #0a2090;
}

/* Navy + Banner: text on navy */
.fc-callout--navy .fc-callout__label,
.fc-callout--banner .fc-callout__label {
  color: #9dbcff;
}
.fc-callout--navy .fc-callout__title,
.fc-callout--banner .fc-callout__title {
  color: #fff;
}
.fc-callout--navy .fc-callout__text,
.fc-callout--banner .fc-callout__text {
  color: rgba(255, 255, 255, 0.82);
}
.fc-callout--navy .fc-callout__cta,
.fc-callout--banner .fc-callout__cta {
  margin-top: 10px;
  gap: 12px;
  color: #fff;
}
.fc-callout--navy .fc-callout__arrow,
.fc-callout--banner .fc-callout__arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #041670;
}

/* ---------- Banner ---------- */
.fc-callout--banner .fc-callout__inner {
  display: flex;
  align-items: center;
  min-height: 300px;
  background: #041670;
}
.fc-callout--banner.fc-callout--img-left .fc-callout__inner {
  justify-content: flex-end;
}
.fc-callout--banner .fc-callout__media {
  position: absolute;
  inset: 0;
  min-height: 0;
}
.fc-callout--banner .fc-callout__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 22, 112, 0.97) 0%, rgba(4, 22, 112, 0.9) 40%, rgba(4, 22, 112, 0.35) 78%, rgba(4, 22, 112, 0.12) 100%);
}
.fc-callout--banner.fc-callout--img-left .fc-callout__media::after {
  background: linear-gradient(270deg, rgba(4, 22, 112, 0.97) 0%, rgba(4, 22, 112, 0.9) 40%, rgba(4, 22, 112, 0.35) 78%, rgba(4, 22, 112, 0.12) 100%);
}
.fc-callout--banner .fc-callout__body {
  position: relative;
  z-index: 1;
  max-width: 58%;
  padding: 36px 40px;
}
.fc-callout--banner.fc-callout--img-none .fc-callout__inner {
  min-height: 0;
}
.fc-callout--banner.fc-callout--img-none .fc-callout__body {
  max-width: 100%;
}

/* ---------- Narrow: phones, sidebars, tight columns ---------- */
@container fc-callout (max-width: 540px) {
  .fc-callout:not(.fc-callout--strip):not(.fc-callout--banner) .fc-callout__inner {
    grid-template-columns: 1fr;
  }
  .fc-callout:not(.fc-callout--strip):not(.fc-callout--banner) .fc-callout__media {
    order: 0;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .fc-callout .fc-callout__body {
    padding: 20px 20px 22px;
  }
  .fc-callout .fc-callout__title {
    font-size: 1.22rem;
  }
  .fc-callout .fc-callout__text {
    font-size: 0.98rem;
  }

  .fc-callout--outline .fc-callout__inner {
    padding: 8px;
  }
  .fc-callout--outline .fc-callout__body {
    padding: 16px 12px 12px;
  }

  .fc-callout--strip .fc-callout__inner {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 14px;
    padding: 14px 0;
  }
  .fc-callout--strip.fc-callout--img-right .fc-callout__inner {
    grid-template-columns: minmax(0, 1fr) 64px auto;
  }
  .fc-callout--strip.fc-callout--img-none .fc-callout__inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .fc-callout--strip .fc-callout__body {
    padding: 0;
  }
  .fc-callout--strip .fc-callout__title {
    font-size: 1.06rem;
    line-height: 1.25;
  }
  .fc-callout--strip .fc-callout__text {
    display: none;
  }
  .fc-callout--strip .fc-callout__go {
    width: 38px;
    height: 38px;
  }

  .fc-callout--banner .fc-callout__inner,
  .fc-callout--banner.fc-callout--img-left .fc-callout__inner {
    align-items: flex-end;
    justify-content: flex-start;
    min-height: 0;
  }
  .fc-callout--banner .fc-callout__body {
    max-width: 100%;
    padding: 150px 20px 22px;
  }
  .fc-callout--banner.fc-callout--img-none .fc-callout__body {
    padding-top: 22px;
  }
  .fc-callout--banner .fc-callout__media::after,
  .fc-callout--banner.fc-callout--img-left .fc-callout__media::after {
    background: linear-gradient(0deg, rgba(4, 22, 112, 1) 0%, rgba(4, 22, 112, 0.94) 50%, rgba(4, 22, 112, 0.35) 82%, rgba(4, 22, 112, 0.1) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fc-callout .fc-callout__img,
  .fc-callout .fc-callout__arrow {
    transition: none;
  }
  .fc-callout:hover .fc-callout__img,
  .fc-callout:hover .fc-callout__arrow {
    transform: none;
  }
}

/* ---------- Stacked strips read as one list ---------- */
a.fc-callout--strip + a.fc-callout--strip {
  margin-top: -2.25rem;
}
.fc-callout--strip + .fc-callout--strip .fc-callout__inner {
  border-top: 0;
}

/* ---------- [fc_callouts]: callouts side by side ----------
   Boxes follow the layout of the feature boxes at the foot of each page:
   image on top, title and text, a large arrow on the right and the link
   wording in bold at the bottom. Colours stay those of the callout's style. */
.fc-callouts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 2rem 0 2.25rem;
}
.fc-callouts a.fc-callout {
  height: 100%;
  margin: 0;
}
.fc-callouts .fc-callout__inner {
  height: 100%;
}
.fc-callouts .fc-callout--strip .fc-callout__inner {
  height: auto;
}
.fc-callouts .fc-callout:not(.fc-callout--strip):not(.fc-callout--banner) .fc-callout__inner {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  min-height: 420px;
  border-radius: 20px;
}
.fc-callouts .fc-callout:not(.fc-callout--strip):not(.fc-callout--banner) .fc-callout__media {
  order: 0;
  height: 230px;
  min-height: 0;
  aspect-ratio: auto;
}
.fc-callouts .fc-callout:not(.fc-callout--strip):not(.fc-callout--banner) .fc-callout__body {
  position: relative;
  justify-content: flex-start;
  gap: 8px;
  padding: 1.5rem 4rem 1.5rem 2rem;
}
.fc-callouts .fc-callout:not(.fc-callout--strip):not(.fc-callout--banner) .fc-callout__title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.8rem;
}
.fc-callouts .fc-callout:not(.fc-callout--strip):not(.fc-callout--banner) .fc-callout__text {
  flex: 1;
  font-size: 15px;
  line-height: 22px;
}
.fc-callouts .fc-callout:not(.fc-callout--strip):not(.fc-callout--banner) .fc-callout__cta {
  margin-top: 4px;
}
.fc-callouts .fc-callout:not(.fc-callout--strip):not(.fc-callout--banner) .fc-callout__cta .fc-callout__arrow {
  display: none;
}
.fc-callouts .fc-callout:not(.fc-callout--strip):not(.fc-callout--banner) .fc-callout__body::after {
  content: "\2192";
  position: absolute;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: #041670;
  transition: transform 0.3s ease;
}
.fc-callouts .fc-callout--navy:not(.fc-callout--strip):not(.fc-callout--banner) .fc-callout__body::after {
  color: #fff;
}
.fc-callouts .fc-callout:not(.fc-callout--strip):not(.fc-callout--banner):hover .fc-callout__body::after,
.fc-callouts .fc-callout:not(.fc-callout--strip):not(.fc-callout--banner):focus-visible .fc-callout__body::after {
  transform: translateY(-50%) translateX(8px);
}
@media (max-width: 767.98px) {
  .fc-callouts .fc-callout:not(.fc-callout--strip):not(.fc-callout--banner) .fc-callout__inner {
    min-height: 0;
  }
  .fc-callouts .fc-callout:not(.fc-callout--strip):not(.fc-callout--banner) .fc-callout__media {
    height: auto;
    aspect-ratio: 16 / 10;
  }
  .fc-callouts .fc-callout:not(.fc-callout--strip):not(.fc-callout--banner) .fc-callout__body {
    padding: 1.5rem 3.5rem 1.5rem 1.5rem;
  }
  .fc-callouts .fc-callout:not(.fc-callout--strip):not(.fc-callout--banner) .fc-callout__body::after {
    right: 1rem;
    font-size: 2rem;
  }
  .fc-callouts .fc-callout:not(.fc-callout--strip):not(.fc-callout--banner) .fc-callout__title {
    font-size: 1.35rem;
    line-height: 1.6rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fc-callouts .fc-callout:not(.fc-callout--strip):not(.fc-callout--banner) .fc-callout__body::after,
  .fc-callouts .fc-callout:not(.fc-callout--strip):not(.fc-callout--banner):hover .fc-callout__body::after {
    transition: none;
    transform: translateY(-50%);
  }
}

/* Editor-only notice when the target post is missing or unpublished */
.fc-callout-missing {
  margin: 2rem 0;
  padding: 12px 16px;
  border: 1px dashed #c0392b;
  border-radius: 8px;
  background: #fdf3f2;
  color: #8e2a20;
  font-family: tenon, sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
}
