/* Foundations */
@font-face {
  font-display: swap;
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  src: url("../images/fonts/manrope-latin-wght-normal.woff2") format("woff2");
}

:root {
  --fd-navy: var(--wp--preset--color--navy, #1d2f5f);
  --fd-coral: var(--wp--preset--color--coral, #ef5b43);
  --fd-yellow: var(--wp--preset--color--yellow, #ffd36f);
  --fd-cream: var(--wp--preset--color--cream, #fff8e8);
  --fd-white: var(--wp--preset--color--white, #ffffff);
  --fd-ink: var(--wp--preset--color--ink, #17213d);
  --fd-water: var(--wp--preset--color--water, #9ed8e5);
  --fd-shell: 1180px;
  --fd-wide: 1320px;
  --fd-prose: 720px;
  --fd-gutter: clamp(20px, 4vw, 56px);
  --fd-radius: 28px;
  --fd-shadow: 0 24px 70px rgba(23, 33, 61, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--fd-cream);
  color: var(--fd-ink);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  overflow-x: clip;
}

body.admin-bar .wp-block-template-part:has(> .fd-header) {
  top: 32px;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.2em;
}

h1,
h2,
h3,
h4 {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin: 0;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--fd-yellow);
  outline-offset: 4px;
}

.fd-shell {
  margin-inline: auto;
  max-width: var(--fd-shell);
  padding-inline: var(--fd-gutter);
  width: 100%;
}

.fd-main,
.wp-site-blocks,
.entry-content {
  margin: 0;
}

.fd-full-stage {
  margin: 0;
  width: 100%;
}

.fd-kicker {
  color: var(--fd-coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.fd-kicker--yellow {
  color: var(--fd-yellow);
}

.fd-lede {
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  max-width: 650px;
}

.fd-button {
  align-items: center;
  background: var(--fd-coral);
  border: 2px solid var(--fd-coral);
  border-radius: 999px;
  color: var(--fd-white);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 850;
  gap: 10px;
  justify-content: center;
  min-height: 50px;
  padding: 11px 22px;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.fd-button:hover {
  transform: translateY(-2px);
}

.fd-button .fd-icon {
  height: 18px;
  transition: transform 180ms ease;
  width: 18px;
}

.fd-button:hover .fd-icon {
  transform: translateX(4px);
}

.fd-button--small {
  min-height: 42px;
  padding: 8px 16px;
}

.fd-button--outline {
  background: transparent;
  border-color: var(--fd-navy);
  color: var(--fd-navy);
}

.fd-button--navy {
  background: var(--fd-navy);
  border-color: var(--fd-navy);
}

.fd-button--yellow {
  background: var(--fd-yellow);
  border-color: var(--fd-yellow);
  color: var(--fd-navy);
}

.fd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.fd-text-link {
  align-items: center;
  display: inline-flex;
  font-weight: 850;
  gap: 8px;
  text-decoration: none;
}

.fd-text-link .fd-icon {
  height: 18px;
  transition: transform 180ms ease;
  width: 18px;
}

.fd-text-link:hover .fd-icon {
  transform: translateX(4px);
}

.fd-text-link--light {
  color: var(--fd-white);
}

.fd-icon {
  display: block;
  flex: 0 0 auto;
  height: 28px;
  width: 28px;
}

/* Shared header */
.wp-block-template-part:has(> .fd-header) {
  position: sticky;
  top: 0;
  z-index: 100;
}

.fd-header {
  background: rgba(255, 248, 232, 0.96);
  border-bottom: 1px solid transparent;
  left: 0;
  position: relative;
  right: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.fd-header.is-scrolled {
  border-color: rgba(29, 47, 95, 0.12);
  box-shadow: 0 8px 28px rgba(23, 33, 61, 0.07);
}

.fd-header__inner {
  align-items: center;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(150px, 220px) 1fr auto;
  min-height: 76px;
}

.fd-brand {
  display: inline-flex;
  width: 168px;
}

.fd-brand img {
  height: auto;
  width: 100%;
}

.fd-desktop-nav {
  align-items: center;
  display: flex;
  gap: clamp(18px, 2vw, 32px);
  justify-content: center;
}

.fd-desktop-nav a {
  font-size: 0.9rem;
  font-weight: 760;
  min-height: 44px;
  padding-block: 10px;
  text-decoration: none;
}

.fd-desktop-nav a:hover {
  color: var(--fd-coral);
}

.fd-header__actions {
  align-items: center;
  display: flex;
  gap: 14px;
}

.fd-button--search .fd-icon {
  filter: brightness(0) invert(1);
}

.fd-button--search:hover .fd-icon {
  transform: none;
}

.fd-menu-toggle {
  align-items: center;
  background: var(--fd-navy);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 4px;
  height: 46px;
  justify-content: center;
  padding: 0;
  width: 46px;
}

.fd-menu-toggle span {
  background: var(--fd-white);
  border-radius: 2px;
  display: block;
  height: 2px;
  transition: transform 180ms ease, opacity 180ms ease;
  width: 19px;
}

.fd-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.fd-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.fd-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.fd-mobile-menu {
  background: var(--fd-cream);
  border-top: 1px solid rgba(29, 47, 95, 0.12);
  box-shadow: 0 20px 40px rgba(23, 33, 61, 0.12);
  left: 0;
  max-height: calc(100vh - 68px);
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: 100%;
}

.fd-mobile-menu[hidden] {
  display: none;
}

.fd-mobile-menu .fd-shell {
  display: grid;
  gap: 4px;
  padding-block: 22px 28px;
}

.fd-mobile-menu a:not(.fd-button) {
  border-bottom: 1px solid rgba(29, 47, 95, 0.12);
  font-size: 1.12rem;
  font-weight: 800;
  padding: 13px 4px;
  text-decoration: none;
}

.fd-mobile-menu .fd-button {
  margin-top: 14px;
}

/* Homepage */
.fd-hero {
  background: var(--fd-cream);
  padding: 76px 0 0;
  position: relative;
}

.fd-hero__grid {
  align-items: center;
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
}

.fd-hero h1 {
  color: var(--fd-navy);
  font-size: clamp(3.5rem, 6vw, 6.3rem);
  max-width: 720px;
}

.fd-hero h1 span,
.fd-hero h1 strong {
  display: block;
}

.fd-hero h1 strong {
  color: var(--fd-coral);
  font-weight: 900;
}

.fd-hero__copy > p:last-of-type {
  margin-top: 28px;
}

.fd-hero__media {
  background: var(--fd-coral);
  border-radius: 32px 32px 140px 32px;
  box-shadow: var(--fd-shadow);
  min-height: 550px;
  overflow: hidden;
  position: relative;
}

.fd-hero__media img {
  height: 100%;
  object-fit: cover;
  object-position: 57% center;
  position: absolute;
  width: 100%;
}

.fd-hero__dot {
  background: var(--fd-yellow);
  border: 12px solid var(--fd-cream);
  border-radius: 50%;
  height: 72px;
  position: absolute;
  width: 72px;
  z-index: 2;
}

.fd-hero__dot--one {
  left: 22px;
  top: 24px;
}

.fd-hero__dot--two {
  bottom: 40px;
  right: 42px;
}

.fd-topic-rail {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 72px;
  position: relative;
  transform: translateY(32px);
  z-index: 3;
}

.fd-topic-rail a {
  align-items: center;
  background: var(--fd-white);
  border-right: 1px solid rgba(29, 47, 95, 0.12);
  display: flex;
  gap: 18px;
  min-height: 128px;
  padding: 28px 34px;
  text-decoration: none;
}

.fd-topic-rail a:first-child {
  border-radius: 28px 0 0 28px;
}

.fd-topic-rail a:last-child {
  border-radius: 0 28px 28px 0;
  border-right: 0;
}

.fd-topic-rail .fd-icon {
  background: var(--fd-yellow);
  border-radius: 18px;
  box-sizing: content-box;
  color: var(--fd-navy);
  height: 34px;
  padding: 15px;
  width: 34px;
}

.fd-topic-rail span {
  display: grid;
}

.fd-topic-rail b {
  font-size: 1.08rem;
}

.fd-topic-rail small {
  color: #59627c;
  font-size: 0.82rem;
}

.fd-path-stage {
  background: var(--fd-navy);
  color: var(--fd-white);
  padding: 150px 0 112px;
}

.fd-split {
  align-items: center;
  display: grid;
  gap: clamp(52px, 8vw, 110px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.fd-split--reverse {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.fd-split h2,
.fd-editorial-stage h2,
.fd-section-head h2,
.fd-contrast-stage h2,
.fd-cta-stage h2,
.fd-values h2,
.fd-faq-layout h2 {
  font-size: clamp(2.5rem, 4.8vw, 5rem);
}

.fd-path-stage__copy > p:not(.fd-kicker) {
  color: rgba(255, 255, 255, 0.78);
  margin: 28px 0 30px;
}

.fd-path {
  --fd-progress: 0;
  display: grid;
  gap: 22px;
  position: relative;
}

.fd-path::before,
.fd-path::after {
  border-radius: 8px;
  content: "";
  left: 29px;
  position: absolute;
  top: 46px;
  width: 4px;
}

.fd-path::before {
  background: rgba(255, 255, 255, 0.18);
  bottom: 46px;
}

.fd-path::after {
  background: var(--fd-coral);
  height: calc((100% - 92px) * var(--fd-progress));
  transition: height 500ms ease;
}

.fd-path > div {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  display: grid;
  gap: 4px 18px;
  grid-template-columns: 60px 1fr;
  padding: 18px 22px;
  position: relative;
  z-index: 1;
}

.fd-path span {
  align-items: center;
  background: var(--fd-yellow);
  border-radius: 50%;
  color: var(--fd-navy);
  display: flex;
  font-weight: 900;
  grid-row: 1 / 3;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.fd-path b {
  font-size: 1.08rem;
}

.fd-path small {
  color: rgba(255, 255, 255, 0.72);
}

.fd-editorial-stage {
  background: var(--fd-white);
  padding: 118px 0;
}

.fd-editorial-stage__grid {
  align-items: center;
  display: grid;
  gap: clamp(52px, 8vw, 110px);
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.fd-editorial-stage__media {
  border-radius: 34px 120px 34px 34px;
  box-shadow: var(--fd-shadow);
  overflow: hidden;
}

.fd-editorial-stage__media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.fd-editorial-stage__grid > div:last-child > p:not(.fd-kicker) {
  margin-top: 28px;
}

.fd-principles {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 30px 0;
  padding: 0;
}

.fd-principles li {
  align-items: flex-start;
  display: block;
  line-height: 1.45;
  padding-left: 56px;
  position: relative;
}

.fd-principles strong {
  display: block;
  margin-bottom: 2px;
}

.fd-guides-stage {
  background: var(--fd-cream);
  padding: 112px 0 122px;
}

.fd-section-head {
  align-items: end;
  display: flex;
  gap: 40px;
  justify-content: space-between;
  margin-bottom: 48px;
}

.fd-section-head > div {
  max-width: 790px;
}

.fd-card-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fd-card {
  background: var(--fd-white);
  border-radius: 24px;
  box-shadow: 0 10px 32px rgba(23, 33, 61, 0.07);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.fd-card:hover {
  box-shadow: 0 20px 46px rgba(23, 33, 61, 0.13);
  transform: translateY(-6px);
}

.fd-card__image {
  display: block;
  overflow: hidden;
}

.fd-card__image img {
  aspect-ratio: 1.34 / 1;
  object-fit: cover;
  transition: transform 400ms ease;
  width: 100%;
}

.fd-card:hover .fd-card__image img {
  transform: scale(1.035);
}

.fd-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.fd-card h3 {
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  margin-bottom: 15px;
}

.fd-card h3 a {
  text-decoration: none;
}

.fd-card__body > p:not(.fd-kicker) {
  color: #59627c;
  font-size: 0.94rem;
  margin-bottom: 22px;
}

.fd-card .fd-text-link {
  margin-top: auto;
}

.fd-yellow-stage {
  background: var(--fd-yellow);
  padding: 112px 0;
}

.fd-yellow-stage p:not(.fd-kicker) {
  margin: 28px 0 32px;
}

.fd-yellow-stage__media {
  border: 12px solid var(--fd-cream);
  border-radius: 120px 30px 30px 30px;
  overflow: hidden;
  transform: rotate(1.5deg);
}

.fd-yellow-stage__media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.fd-contrast-stage {
  background: var(--fd-coral);
  color: var(--fd-white);
  padding: 118px 0;
}

.fd-contrast-stage__grid {
  align-items: center;
  display: grid;
  gap: clamp(52px, 8vw, 110px);
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.fd-contrast-stage__media {
  border-radius: 30px 30px 130px 30px;
  overflow: hidden;
}

.fd-contrast-stage__media img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.fd-contrast-stage p:not(.fd-kicker) {
  margin: 28px 0 32px;
}

.fd-home-faq {
  background: var(--fd-white);
  padding: 112px 0 128px;
}

.fd-mini-faq {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fd-mini-faq > div {
  background: var(--fd-cream);
  border-top: 6px solid var(--fd-yellow);
  border-radius: 20px;
  padding: 28px;
}

.fd-mini-faq b {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 10px;
}

/* Native Gutenberg content compatibility */
.wp-block-button.fd-button {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: inherit;
  display: block;
  min-height: 0;
  padding: 0;
}

.wp-block-button.fd-button:hover {
  transform: none;
}

.wp-block-button.fd-button .wp-block-button__link {
  align-items: center;
  background: var(--fd-coral);
  border: 2px solid var(--fd-coral);
  border-radius: 999px;
  color: var(--fd-white);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 850;
  justify-content: center;
  min-height: 50px;
  padding: 11px 22px;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.wp-block-button.fd-button .wp-block-button__link:hover {
  transform: translateY(-2px);
}

.wp-block-button.fd-button:not(.fd-button--outline) .wp-block-button__link::after {
  content: "→";
  margin-left: 10px;
}

.wp-block-button.fd-button--outline .wp-block-button__link {
  background: transparent;
  border-color: var(--fd-navy);
  color: var(--fd-navy);
}

.wp-block-button.fd-button--navy .wp-block-button__link {
  background: var(--fd-navy);
  border-color: var(--fd-navy);
}

.wp-block-button.fd-button--yellow .wp-block-button__link {
  background: var(--fd-yellow);
  border-color: var(--fd-yellow);
  color: var(--fd-navy);
}

.fd-hero__media,
.fd-editorial-stage__media,
.fd-yellow-stage__media,
.fd-contrast-stage__media,
.fd-faq-image,
.fd-card__image {
  margin: 0;
}

.fd-hero__media::before,
.fd-hero__media::after {
  background: var(--fd-yellow);
  border: 12px solid var(--fd-cream);
  border-radius: 50%;
  content: "";
  height: 72px;
  position: absolute;
  width: 72px;
  z-index: 2;
}

.fd-hero__media::before {
  left: 22px;
  top: 24px;
}

.fd-hero__media::after {
  bottom: 40px;
  right: 42px;
}

.fd-topic-rail > .wp-block-button {
  margin: 0;
  width: auto;
}

.wp-block-buttons.fd-topic-rail {
  background: var(--fd-white);
  border-radius: 28px;
  display: grid !important;
  gap: 0 !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.wp-block-buttons.fd-topic-rail > .wp-block-button {
  width: 100%;
}

.fd-topic-rail .wp-block-button__link {
  background: transparent;
  border-radius: 0;
  color: inherit;
  display: grid;
  gap: 0 18px;
  grid-template-columns: 64px 1fr;
  grid-template-rows: auto auto;
  justify-content: stretch;
  text-align: left;
  width: 100%;
}

.fd-topic-rail > .wp-block-button:not(:last-child) .wp-block-button__link {
  border-right: 1px solid rgba(29, 47, 95, 0.12);
}

.fd-topic-rail .wp-block-button__link::before {
  align-items: center;
  background: var(--fd-yellow);
  border-radius: 18px;
  color: var(--fd-navy);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 30px;
  content: "";
  display: flex;
  grid-row: 1 / 3;
  height: 64px;
  justify-content: center;
  width: 64px;
}

.fd-topic-rail > .wp-block-button:nth-child(1) .wp-block-button__link::before {
  background-image: url("../images/icons/calendar-check.svg");
}

.fd-topic-rail > .wp-block-button:nth-child(2) .wp-block-button__link::before {
  background-image: url("../images/icons/shopping-basket.svg");
}

.fd-topic-rail > .wp-block-button:nth-child(3) .wp-block-button__link::before {
  background-image: url("../images/icons/scan-text.svg");
}

.fd-topic-rail strong,
.fd-topic-rail small {
  display: block;
}

.fd-topic-rail strong {
  align-self: end;
  font-size: 1.08rem;
}

.fd-topic-rail small {
  align-self: start;
}

.fd-path__number {
  align-items: center;
  background: var(--fd-yellow);
  border-radius: 50%;
  color: var(--fd-navy);
  display: flex;
  font-weight: 900;
  grid-row: 1 / 3;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.fd-path__step h3 {
  align-self: end;
  font-family: inherit;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.fd-path__note {
  align-self: start;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.fd-principles li::before {
  background-color: var(--fd-yellow);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 21px;
  border-radius: 13px;
  content: "";
  height: 42px;
  left: 0;
  position: absolute;
  top: 0;
  width: 42px;
}

.fd-principles li:nth-child(1)::before {
  background-image: url("../images/icons/scale.svg");
}

.fd-principles li:nth-child(2)::before {
  background-image: url("../images/icons/repeat-2.svg");
}

.fd-principles li:nth-child(3)::before {
  background-image: url("../images/icons/badge-check.svg");
}

.fd-mini-faq h3 {
  font-family: inherit;
  font-size: 1.08rem;
  letter-spacing: 0;
  margin-bottom: 10px;
}

.fd-card-grid.wp-block-post-template {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fd-card-grid.wp-block-post-template > li {
  display: flex;
  min-width: 0;
}

.fd-card-grid.wp-block-post-template .fd-card {
  width: 100%;
}

.fd-card__image a {
  display: block;
}

.fd-card__body .wp-block-post-excerpt__excerpt {
  color: #59627c;
  font-size: 0.94rem;
  margin-bottom: 22px;
}

.fd-card__body .wp-block-read-more {
  margin-top: auto;
}

/* Inner routes */
.fd-inner-hero,
.fd-archive-hero,
.fd-search-hero {
  padding: 96px 0 104px;
}

.fd-inner-hero .fd-shell,
.fd-archive-hero .fd-shell,
.fd-search-hero .fd-shell {
  max-width: 980px;
}

.fd-inner-hero h1,
.fd-archive-hero h1,
.fd-search-hero h1,
.fd-not-found h1,
.fd-single__head h1 {
  font-size: clamp(3.3rem, 7vw, 7.4rem);
}

.fd-inner-hero p:last-child,
.fd-archive-hero p:last-child {
  font-size: 1.18rem;
  margin-top: 28px;
  max-width: 720px;
}

.fd-inner-hero--about {
  background: var(--fd-coral);
  color: var(--fd-white);
}

.fd-inner-hero--about .fd-shell {
  max-width: var(--fd-shell);
}

body.fd-page-blog .fd-archive-hero .fd-shell {
  max-width: var(--fd-shell);
}

.fd-inner-hero--about .fd-kicker,
.fd-inner-hero--contact .fd-kicker {
  color: var(--fd-yellow);
}

.fd-inner-hero--contact {
  background: var(--fd-navy);
  color: var(--fd-white);
}

.fd-inner-hero--contact .fd-shell {
  max-width: var(--fd-shell);
}

.fd-inner-hero--faq {
  background: var(--fd-yellow);
}

.fd-inner-hero--faq .fd-shell {
  max-width: var(--fd-shell);
}

.fd-values {
  background: var(--fd-navy);
  color: var(--fd-white);
  padding: 112px 0;
}

.fd-value-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 48px;
}

.fd-value-grid article {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 30px;
}

.fd-value-grid .fd-icon {
  color: var(--fd-yellow);
  height: 38px;
  margin-bottom: 24px;
  width: 38px;
}

.fd-value-grid h3 {
  font-size: 1.55rem;
  margin-bottom: 12px;
}

.fd-value-grid p {
  color: rgba(255, 255, 255, 0.76);
}

.fd-cta-stage,
.fd-article-close {
  background: var(--fd-coral);
  color: var(--fd-white);
  padding: 104px 0;
}

.fd-cta-stage .fd-shell,
.fd-article-close .fd-shell {
  max-width: 940px;
}

body.fd-page-about .fd-cta-stage .fd-shell {
  max-width: var(--fd-shell);
}

.fd-cta-stage .fd-button,
.fd-article-close .fd-button {
  margin-top: 34px;
}

.fd-contact-stage {
  background: var(--fd-cream);
  padding: 96px 0 120px;
}

.fd-contact-grid {
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
}

.fd-contact-card,
.fd-contact-note,
.fd-form-wrap {
  border-radius: 24px;
  padding: 34px;
}

.fd-contact-card {
  background: var(--fd-yellow);
}

.fd-contact-card .fd-icon {
  color: var(--fd-navy);
  height: 42px;
  margin-bottom: 24px;
  width: 42px;
}

.fd-contact-card h2,
.fd-contact-note h2,
.fd-form-wrap h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.fd-contact-note {
  background: var(--fd-navy);
  color: var(--fd-white);
  margin-top: 20px;
}

.fd-form-wrap {
  background: var(--fd-white);
  box-shadow: var(--fd-shadow);
}

.fd-contact-form {
  display: grid;
  gap: 20px;
}

.fd-contact-form__row {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fd-contact-form label,
.fd-search-form label {
  display: grid;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 7px;
}

.fd-contact-form input,
.fd-contact-form textarea,
.fd-search-form input {
  background: var(--fd-cream);
  border: 2px solid rgba(29, 47, 95, 0.18);
  border-radius: 14px;
  color: var(--fd-ink);
  font: inherit;
  padding: 13px 15px;
  width: 100%;
}

.fd-contact-form input:focus,
.fd-contact-form textarea:focus,
.fd-search-form input:focus {
  border-color: var(--fd-coral);
  outline: 3px solid rgba(239, 91, 67, 0.18);
}

.fd-form-status {
  border-radius: 14px;
  font-weight: 720;
  padding: 14px 16px;
}

.fd-form-status--success {
  background: #e1f4e6;
  color: #174f2e;
}

.fd-form-status--error {
  background: #fff0ed;
  color: #852c20;
}

.fd-honeypot {
  left: -10000px;
  position: absolute;
}

.fd-faq-stage {
  background: var(--fd-white);
  padding: 104px 0 122px;
}

.fd-faq-layout {
  align-items: start;
  display: grid;
  gap: 68px;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
}

.fd-faq-layout img {
  border-radius: 24px 80px 24px 24px;
  margin-top: 34px;
}

.fd-faq {
  border-top: 2px solid var(--fd-navy);
}

.fd-faq__item {
  border-bottom: 2px solid var(--fd-navy);
}

.fd-faq__item h3 {
  font-family: inherit;
  letter-spacing: 0;
}

.fd-faq__item button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--fd-ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 850;
  justify-content: space-between;
  min-height: 78px;
  padding: 18px 0;
  text-align: left;
  width: 100%;
}

.fd-faq__item i {
  border: 2px solid currentColor;
  border-radius: 50%;
  flex: 0 0 34px;
  height: 34px;
  margin-left: 18px;
  position: relative;
  width: 34px;
}

.fd-faq__item i::before,
.fd-faq__item i::after {
  background: currentColor;
  content: "";
  height: 2px;
  left: 8px;
  position: absolute;
  top: 14px;
  transition: transform 180ms ease;
  width: 14px;
}

.fd-faq__item i::after {
  transform: rotate(90deg);
}

.fd-faq__item button[aria-expanded="true"] i::after {
  transform: rotate(0deg);
}

.fd-faq__panel {
  padding: 0 52px 24px 0;
}

.fd-faq__panel[hidden] {
  display: none;
}

.fd-faq details.fd-faq__item {
  padding: 0;
}

.fd-faq details.fd-faq__item summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: 1.02rem;
  font-weight: 850;
  justify-content: space-between;
  list-style: none;
  min-height: 82px;
  padding: 18px 0;
}

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

.fd-faq details.fd-faq__item summary::after {
  align-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "+";
  display: flex;
  flex: 0 0 34px;
  font-size: 1.35rem;
  height: 34px;
  justify-content: center;
  margin-left: 22px;
  width: 34px;
}

.fd-faq details.fd-faq__item[open] summary::after {
  content: "−";
}

.fd-faq details.fd-faq__item > p {
  padding: 0 52px 24px 0;
}

.fd-archive-hero {
  background: var(--fd-yellow);
}

.fd-archive-stage {
  background: var(--fd-cream);
  padding: 96px 0 122px;
}

.fd-archive-stage .fd-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fd-pagination {
  align-items: center;
  display: flex !important;
  gap: 8px;
  justify-content: center;
  margin-top: 48px;
}

.fd-pagination ul,
.fd-pagination .wp-block-query-pagination-numbers {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
}

.fd-pagination a,
.fd-pagination span {
  align-items: center;
  background: var(--fd-white);
  border-radius: 50%;
  display: flex;
  height: 44px;
  justify-content: center;
  text-decoration: none;
  width: 44px;
}

.fd-pagination .current {
  background: var(--fd-navy);
  color: var(--fd-white);
}

.fd-search-hero {
  background: var(--fd-water);
}

.fd-search-hero .fd-shell {
  max-width: var(--fd-shell);
}

body.search .fd-card-grid.wp-block-post-template {
  columns: 2;
  column-gap: 26px;
  display: block !important;
}

body.search .fd-card-grid.wp-block-post-template > li {
  break-inside: avoid;
  display: block;
  margin-bottom: 26px;
}

.fd-search-form {
  margin-top: 36px;
  max-width: 720px;
}

.fd-search-form > div {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
}

.fd-empty {
  background: var(--fd-white);
  border-radius: 24px;
  padding: 42px;
}

.fd-empty h2 {
  font-size: 2.4rem;
}

.fd-empty p {
  margin: 16px 0 24px;
}

.fd-not-found {
  background: var(--fd-yellow);
  padding: 90px 0 110px;
}

.fd-not-found__grid {
  align-items: center;
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
}

.fd-not-found p:not(.fd-kicker) {
  font-size: 1.14rem;
  margin-top: 24px;
  max-width: 660px;
}

.fd-not-found__art {
  align-items: center;
  color: var(--fd-coral);
  display: flex;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: clamp(7rem, 14vw, 12rem);
  font-weight: 900;
  justify-content: center;
  letter-spacing: -0.1em;
}

.fd-not-found__plate {
  align-items: center;
  background: var(--fd-navy);
  border: 18px solid var(--fd-cream);
  border-radius: 50%;
  color: var(--fd-yellow);
  display: flex;
  height: 0.85em;
  justify-content: center;
  width: 0.85em;
}

.fd-not-found__art p {
  font-size: inherit !important;
  margin: 0 !important;
  max-width: none !important;
}

.fd-system-stage,
.fd-legal {
  margin-inline: auto;
  max-width: var(--fd-prose);
  padding: 72px var(--fd-gutter) 110px;
}

.fd-legal h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  margin-bottom: 34px;
}

.fd-legal h2 {
  font-size: 2rem;
  margin: 44px 0 14px;
}

.fd-legal p,
.fd-legal ul {
  margin-bottom: 20px;
}

/* Single article */
.fd-single__head {
  background: var(--fd-coral);
  color: var(--fd-white);
  padding: 92px var(--fd-gutter) 150px;
}

.fd-single__head > * {
  margin-inline: auto;
  max-width: 980px;
}

.fd-single__head .wp-block-post-terms {
  color: var(--fd-yellow);
  margin-bottom: 18px;
}

.fd-single__head .wp-block-post-terms a {
  color: inherit;
}

.fd-single__head .wp-block-post-date {
  margin-top: 24px;
}

.fd-single__media {
  margin-top: -82px;
  position: relative;
  z-index: 2;
}

.fd-single__media figure {
  border: 10px solid var(--fd-cream);
  border-radius: 34px 110px 34px 34px;
  margin: 0;
  overflow: hidden;
}

.fd-single__media img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.fd-prose {
  font-size: 1.06rem;
  margin: 0 auto;
  max-width: var(--fd-prose);
  padding: 72px 20px 108px;
}

.fd-prose h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin: 56px 0 18px;
}

.fd-prose h3 {
  font-size: 1.65rem;
  margin: 36px 0 12px;
}

.fd-prose p,
.fd-prose ul,
.fd-prose ol {
  margin-bottom: 22px;
}

.fd-prose blockquote {
  background: var(--fd-yellow);
  border: 0;
  border-radius: 20px;
  margin: 38px 0;
  padding: 26px 30px;
}

.fd-prose .fd-source-note {
  background: var(--fd-cream);
  border-left: 5px solid var(--fd-coral);
  margin-top: 46px;
  padding: 22px;
}

/* Shared footer */
.fd-footer {
  background: var(--fd-navy);
  color: var(--fd-white);
  padding: 84px 0 24px;
}

.fd-footer__grid {
  display: grid;
  gap: 38px;
  grid-template-columns: minmax(240px, 1.3fr) repeat(3, minmax(145px, 0.7fr));
}

.fd-brand--footer {
  filter: brightness(0) invert(1);
}

.fd-footer__brand p {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 22px;
  max-width: 350px;
}

.fd-footer h2 {
  color: var(--fd-yellow);
  font-size: 1rem;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.fd-footer__grid > div:not(.fd-footer__brand) {
  align-content: start;
  display: grid;
  gap: 10px;
}

.fd-footer a {
  color: inherit;
  text-decoration: none;
}

.fd-footer__email {
  overflow-wrap: anywhere;
}

.fd-footer .fd-button {
  margin-top: 12px;
}

.fd-footer__legal {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  font-size: 0.82rem;
  gap: 24px;
  justify-content: space-between;
  margin-top: 60px;
  padding-top: 22px;
}

.fd-footer__legal nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Motion states */
[data-fd-reveal],
.fd-reveal {
  opacity: 1;
  transform: none;
}

.js [data-fd-reveal],
.js .fd-reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition: opacity 560ms cubic-bezier(0.22, 1, 0.36, 1), transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js [data-fd-reveal].is-visible,
.js .fd-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 861px) {
  .fd-editorial-stage__grid {
    gap: clamp(48px, 6vw, 84px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fd-editorial-stage__media img {
    aspect-ratio: 1 / 1;
  }

  .fd-editorial-stage h2 {
    font-size: clamp(2.6rem, 4vw, 4.35rem);
  }
}

/* Responsive */
@media (max-width: 1080px) {
  .fd-header__inner {
    grid-template-columns: 150px 1fr auto;
  }

  .fd-desktop-nav {
    gap: 18px;
  }

  .fd-hero__grid {
    gap: 36px;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  }

  .fd-hero__media {
    min-height: 480px;
  }

  .fd-topic-rail a {
    padding: 24px;
  }
}

@media (max-width: 860px) {
  body.admin-bar .wp-block-template-part:has(> .fd-header) {
    top: 46px;
  }

  .fd-header__inner {
    grid-template-columns: 1fr auto;
    min-height: 68px;
  }

  .fd-brand {
    width: 152px;
  }

  .fd-desktop-nav,
  .fd-header__actions > .fd-button {
    display: none;
  }

  .fd-menu-toggle {
    display: flex;
  }

  .fd-hero {
    padding-top: 52px;
  }

  .fd-hero__grid,
  .fd-split,
  .fd-split--reverse,
  .fd-editorial-stage__grid,
  .fd-contrast-stage__grid,
  .fd-contact-grid,
  .fd-faq-layout,
  .fd-not-found__grid {
    grid-template-columns: 1fr;
  }

  .fd-hero__media {
    min-height: 500px;
  }

  .fd-topic-rail {
    transform: translateY(28px);
  }

  .fd-topic-rail a {
    align-items: flex-start;
    flex-direction: column;
  }

  .fd-split--reverse .fd-yellow-stage__media {
    grid-row: 1;
  }

  .fd-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fd-mini-faq,
  .fd-value-grid {
    grid-template-columns: 1fr;
  }

  .fd-contact-grid aside {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fd-contact-note {
    margin-top: 0;
  }

  .fd-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body.search .fd-card-grid.wp-block-post-template {
    columns: 1;
  }

  :root {
    --fd-gutter: 18px;
  }

  body {
    font-size: 16px;
  }

  .fd-hero h1,
  .fd-inner-hero h1,
  .fd-archive-hero h1,
  .fd-search-hero h1,
  .fd-not-found h1,
  .fd-single__head h1 {
    font-size: clamp(2.75rem, 13vw, 4.5rem);
  }

  .fd-hero__media {
    border-radius: 24px 24px 80px 24px;
    min-height: 390px;
  }

  .fd-topic-rail {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .wp-block-buttons.fd-topic-rail {
    border-radius: 22px;
    grid-template-columns: 1fr;
  }

  .fd-topic-rail > .wp-block-button:not(:last-child) .wp-block-button__link {
    border-bottom: 1px solid rgba(29, 47, 95, 0.12);
    border-right: 0;
  }

  .fd-topic-rail a {
    align-items: center;
    border-bottom: 1px solid rgba(29, 47, 95, 0.12);
    border-radius: 0;
    border-right: 0;
    flex-direction: row;
    min-height: 104px;
    padding: 20px;
  }

  .fd-topic-rail a:first-child {
    border-radius: 22px 22px 0 0;
  }

  .fd-topic-rail a:last-child {
    border-bottom: 0;
    border-radius: 0 0 22px 22px;
  }

  .fd-path-stage {
    padding: 110px 0 80px;
  }

  .fd-editorial-stage,
  .fd-guides-stage,
  .fd-yellow-stage,
  .fd-contrast-stage,
  .fd-home-faq,
  .fd-values,
  .fd-contact-stage,
  .fd-faq-stage,
  .fd-archive-stage {
    padding: 76px 0;
  }

  .fd-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .fd-card-grid,
  .fd-archive-stage .fd-card-grid,
  .fd-contact-form__row,
  .fd-contact-grid aside,
  .fd-footer__grid {
    grid-template-columns: 1fr;
  }

  .fd-editorial-stage__media,
  .fd-faq-layout img {
    border-radius: 24px 70px 24px 24px;
  }

  .fd-yellow-stage__media {
    border-width: 7px;
    border-radius: 70px 22px 22px 22px;
    transform: none;
  }

  .fd-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .fd-actions .fd-button {
    width: 100%;
  }

  .fd-inner-hero,
  .fd-archive-hero,
  .fd-search-hero {
    padding: 68px 0 74px;
  }

  .fd-faq__item button {
    min-height: 70px;
  }

  .fd-search-form > div {
    grid-template-columns: 1fr;
  }

  .fd-not-found {
    padding: 64px 0 78px;
  }

  .fd-not-found__art {
    font-size: 8rem;
  }

  .fd-single__head {
    padding: 68px var(--fd-gutter) 110px;
  }

  .fd-single__media {
    margin-top: -56px;
  }

  .fd-single__media figure {
    border-width: 6px;
    border-radius: 22px 60px 22px 22px;
  }

  .fd-prose {
    padding: 52px 20px 76px;
  }

  .fd-footer__legal {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 375px) {
  .fd-brand {
    width: 138px;
  }

  .fd-menu-toggle {
    height: 44px;
    width: 44px;
  }

  .fd-hero__media {
    min-height: 340px;
  }

  .fd-button {
    padding-inline: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-fd-reveal],
  .js .fd-reveal {
    opacity: 1;
    transform: none;
  }
}
