.foundation-domain--corridor {
  --foundation-color-domain-accent: #2F3E4F;
  --foundation-color-domain-accent-extra: #09446b;
  --foundation-color-domain-backdrop: #8FA6BD;
}

.foundation-domain--hub .foundation-content a {
  color: color-mix(in srgb, var(--foundation-color-domain-accent) 76%, var(--foundation-color-text));
}

.foundation-lead-region {
  background: var(--foundation-lab-color-backdrop);
}

a {
  color: var(--foundation-color-domain-accent-extra);
}

#block-foundation-base-breadcrumbs li a {
  color: var(--foundation-color-domain-accent-extra) !important;
}

/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
* THE FULL NODE
   --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */
[data-lead-variant="split_pad"].foundation-editorial-hero--with-cover {

  .foundation-editorial-hero__text {
    background: var(--foundation-color-domain-accent);
  }

  .foundation-editorial-hero__title {
    color: var(--foundation-color-surface);
  }

  .foundation-editorial-hero__subtitle {
    color: var(--foundation-color-border-strong);
  }

  .foundation-editorial-hero__summary {
    color: var(--foundation-color-page);
    max-width: 40ch;
  }


}

.foundation-editorial-node__body {
  font-size: var(--foundation-font-size-medium);
}

/* End of Full node */

/* MISSION */

/* Section band */
.foundation-overview__section--archetype-cards:has(.foundation-about-card) {
  margin-block: clamp(4rem, 6vw, 4rem);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  background: var(--foundation-color-surface-muted);
}

/* Grid — hairline dividers */
.views-view-responsive-grid:has(.foundation-about-card) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1px;
  margin: 0;
  counter-reset: step;
}

.views-view-responsive-grid:has(.foundation-about-card) .views-view-responsive-grid__item,
.views-view-responsive-grid:has(.foundation-about-card) .views-view-responsive-grid__item-inner {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Card */
.foundation-about-card {
  position: relative;
  display: flex;
  min-height: clamp(16rem, 26vw, 21rem);
  flex: 1;
  background: var(--foundation-color-surface);
  counter-increment: step;
  transition: background-color 260ms ease;
}

.foundation-about-card:hover {
  background: var(--foundation-color-surface-muted);
}

.foundation-about-card:has(a:focus-visible) {
  outline: 2px solid var(--foundation-color-focus);
  outline-offset: -6px;
}

.foundation-about-card__body {
  display: flex;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  flex: 1;
  flex-direction: column;
  gap: 0.6rem;
  color: var(--foundation-color-text);
}

/* Step numeral */
.foundation-about-card__body::before {
  display: block;
  margin-block-end: auto;
  color: var(--foundation-color-border-strong);
  content: counter(step, decimal-leading-zero);
  font-family: var(--foundation-font-family-display);
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  font-weight: var(--foundation-font-weight-interface);
  line-height: 1;
  transition: color 260ms ease;
}

.foundation-about-card:hover .foundation-about-card__body::before {
  color: var(--foundation-color-domain-accent);
}

.foundation-about-card__title {
  margin: 0;
  font-family: var(--foundation-font-family-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: var(--foundation-font-weight-interface);
  line-height: var(--foundation-line-height-heading);
  text-wrap: balance;
}

.foundation-about-card__title {
  a[href="/corridor/apply"] {
    color: var(--foundation-color-page);
  }
  a[href="/corridor/apply"]:hover {
    color: var(--foundation-color-text-muted);
  }
}

.foundation-about-card__title a {
  color: inherit;
  text-decoration: none;
}

.foundation-about-card__title a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.foundation-about-card__subtitle {
  max-width: 32ch;
  margin: 0;
  color: var(--foundation-color-text-muted);
  font-size: var(--foundation-font-size-small);
  line-height: var(--foundation-line-height-body);
}

.foundation-about-card__summary {
  max-width: 34ch;
  margin: 0;
  padding-block-start: 0.6rem;
  border-block-start: 1px solid var(--foundation-color-border);
  color: var(--foundation-color-text-muted);
  font-size: var(--foundation-font-size-small);
  line-height: var(--foundation-line-height-body);
}

/* Terminal card */
.views-view-responsive-grid__item:last-child .foundation-about-card {
  background: var(--foundation-color-domain-accent);
}

.views-view-responsive-grid__item:last-child .foundation-about-card:hover {
  background: var(--foundation-color-action);
}

.views-view-responsive-grid__item:last-child .foundation-about-card__body {
  color: var(--foundation-color-action-contrast);
}

.views-view-responsive-grid__item:last-child .foundation-about-card__body::before,
.views-view-responsive-grid__item:last-child .foundation-about-card:hover .foundation-about-card__body::before {
  color: color-mix(in srgb, var(--foundation-color-action-contrast) 45%, transparent);
}

.views-view-responsive-grid__item:last-child :is(
  .foundation-about-card__subtitle,
  .foundation-about-card__summary
) {
  color: color-mix(in srgb, var(--foundation-color-action-contrast) 82%, transparent);
}

.views-view-responsive-grid__item:last-child .foundation-about-card__summary {
  border-block-start-color: color-mix(in srgb, var(--foundation-color-action-contrast) 28%, transparent);
}

.views-view-responsive-grid__item:last-child .foundation-about-card__body::after {
  content: "";
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 260ms ease;
}

.views-view-responsive-grid__item:last-child .foundation-about-card:hover .foundation-about-card__body::after {
  transform: translateX(0.35rem);
}

@media (prefers-reduced-motion: reduce) {
  .views-view-responsive-grid__item:last-child .foundation-about-card:hover .foundation-about-card__body::after {
    transform: none;
  }
}

[dir="rtl"] .views-view-responsive-grid__item:last-child .foundation-about-card__body::after {
  content: "←";
}

[dir="rtl"] .views-view-responsive-grid__item:last-child .foundation-about-card:hover .foundation-about-card__body::after {
  transform: translateX(-0.35rem);
}

/* End of Mission */

/* PARTNERS */
[data-overview-archetype="organisations"] .foundation-focus-grid__item:not(:has(.foundation-focus-grid__item-title)) {
  display: none;
}

[data-overview-archetype="organisations"] .foundation-focus-grid__heading {
  margin-block-end: clamp(1.25rem, 2.5vw, 2rem);
  font-size: var(--foundation-font-size-tiny);
  font-weight: var(--foundation-font-weight-strong);
  letter-spacing: var(--foundation-letter-spacing-interface);
  text-transform: uppercase;
}

[data-overview-archetype="organisations"] .foundation-focus-grid__items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: var(--foundation-grid-gap);
}

[data-overview-archetype="organisations"] .foundation-focus-grid__item {
  display: flex;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  flex-direction: column;
  gap: 1.5rem;
  border-block-start: 0px solid var(--foundation-color-domain-accent);
  /*background: var(--foundation-color-surface);*/
  transition: background-color 220ms ease;
}

[data-overview-archetype="organisations"] .foundation-focus-grid__item:hover {
  background: var(--foundation-color-surface-muted);
}

/* Logo */
[data-overview-archetype="organisations"] .foundation-focus-grid__item-logo:has(img) {
  display: flex;
  height: 3.25rem;
  align-items: center;
  border-block-end: solid 1px var(--foundation-color-border);
}

[data-overview-archetype="organisations"] .foundation-focus-grid__item-logo div:not(.field__label) {
  display: contents;
}

[data-overview-archetype="organisations"] .foundation-focus-grid__item-logo .field__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

[data-overview-archetype="organisations"] .foundation-focus-grid__item-logo img {
  width: auto;
  max-height: 49px;
  object-fit: contain;
  object-position: left center;
  filter: grayscale(1);
  opacity: 0.85;
  transition: filter 220ms ease, opacity 220ms ease;
}

[data-overview-archetype="organisations"] .foundation-focus-grid__item:hover img {
  filter: none;
  opacity: 1;
}

/* Copy */
[data-overview-archetype="organisations"] .foundation-focus-grid__item-copy {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

[data-overview-archetype="organisations"] .foundation-focus-grid__item-title {
  font-family: var(--foundation-font-family-display);
  font-size: var(--foundation-font-size-lead);
  font-weight: var(--foundation-font-weight-interface);
  line-height: var(--foundation-line-height-heading);
  text-wrap: balance;
}

[data-overview-archetype="organisations"] .foundation-focus-grid__item-title a {
  text-decoration: none;
}

[data-overview-archetype="organisations"] .foundation-focus-grid__item-title a:hover {
  text-decoration: underline;
}

[data-overview-archetype="organisations"] .foundation-focus-grid__item-summary {
  max-width: 44ch;
  color: var(--foundation-color-text-muted);
  font-size: var(--foundation-font-size-small);
  line-height: var(--foundation-line-height-body);
}

[dir="rtl"] [data-overview-archetype="organisations"] .foundation-focus-grid__heading {
  letter-spacing: normal;
  text-transform: none;
}

[dir="rtl"] [data-overview-archetype="organisations"] .foundation-focus-grid__item-logo img {
  object-position: right center;
}

#foundation-overview-programme .view-foundation-domain-about .foundation-about-card__media {
  display: none;
}