/* ==========================================================================
   MFOL Pillars
   Phones and tablets: cards that tap open. Wide screens: expanding panels or tabs.
   ========================================================================== */
.mfol-pillars {
  color: var(--color-black);
  font-family: var(--f-body);
  font-weight: var(--f-body-weight);
  width: 100%;
}
.mfol-pillars.alignfull {
  padding: var(--block-margin) var(--outer-padding);
}
.mfol-pillars--bg-gray { background: var(--color-gray); }
.mfol-pillars--bg-green { background: var(--color-green); }
.mfol-pillars--bg-yellow { background: var(--color-yellow); }
.mfol-pillars--bg-orange { background: var(--color-orange); }
.mfol-pillars--bg-blue { background: var(--color-blue); }
.mfol-pillars--bg-pink { background: var(--color-pink); }
.mfol-pillars--bg-black { background: var(--color-black); color: var(--color-white); }
.mfol-pillars__inner {
  margin: 0 auto;
  max-width: 1400px;
}

/* Heading area */
.mfol-pillars__head {
  margin-bottom: clamp(24px, 3vw, 40px);
  max-width: 820px;
}
.mfol-pillars__label {
  font-family: var(--f-mono);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.mfol-pillars__heading {
  font-family: var(--f-trim);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: var(--f-trim-weight, 700);
  line-height: 0.92;
  margin: 0;
  text-transform: uppercase;
}
.mfol-pillars__intro {
  font-size: 1.125rem;
  line-height: 1.45;
  margin: 14px 0 0;
}
.mfol-pillars__placeholder {
  border: 2px dashed currentColor;
  margin: 0;
  padding: 24px;
}

/* Each pillar's colors */
.mfol-pillars__item {
  --pil-c: var(--color-blue);
  --pil-t: var(--color-black);
}
.mfol-pillars__item--green { --pil-c: var(--color-green); }
.mfol-pillars__item--yellow { --pil-c: var(--color-yellow); }
.mfol-pillars__item--orange { --pil-c: var(--color-orange); }
.mfol-pillars__item--pink { --pil-c: var(--color-pink); }
.mfol-pillars__item--white { --pil-c: var(--color-white); }
.mfol-pillars__item--gray { --pil-c: var(--color-gray); }
.mfol-pillars__item--black { --pil-c: var(--color-black); --pil-t: var(--color-white); }

/* The parts */
.mfol-pillars__title {
  font-size: inherit;
  line-height: inherit;
  margin: 0;
}
.mfol-pillars__toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 14px;
  margin: 0;
  padding: 0;
  text-align: left;
  width: 100%;
}
.mfol-pillars__toggle:focus-visible {
  outline: none;
}
/* Keyboard focus: a ring around the whole pillar */
.mfol-pillars__item:has(.mfol-pillars__toggle:focus-visible) {
  outline: 3px solid var(--color-black);
  outline-offset: 3px;
}
.mfol-pillars--bg-black .mfol-pillars__item:has(.mfol-pillars__toggle:focus-visible) {
  outline-color: var(--color-white);
}
/* Closed pillars hide their story (this works in the editor preview too) */
.mfol-pillars__item:not(.is-open) > .mfol-pillars__body {
  display: none !important;
}
.mfol-pillars__num {
  flex: 0 0 auto;
  font-family: var(--f-trim);
  white-space: nowrap;
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0.85;
}
.mfol-pillars__name {
  font-family: var(--f-trim);
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  font-weight: var(--f-trim-weight, 700);
  line-height: 0.95;
  text-transform: uppercase;
}
.mfol-pillars__chev {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  flex: 0 0 auto;
  height: 10px;
  margin-left: auto;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
  width: 10px;
}
.is-open > .mfol-pillars__title .mfol-pillars__chev {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.mfol-pillars__bg {
  display: none;
}
.mfol-pillars__media {
  position: relative;
}
.mfol-pillars__img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.mfol-pillars__body {
  position: relative;
}
.mfol-pillars__sticker {
  pointer-events: none;
  position: absolute;
  right: 14px;
  top: -18px;
  transform: rotate(var(--pil-tilt, 4deg));
  width: clamp(110px, 10vw, 150px);
  z-index: 3;
}
.mfol-pillars__sticker svg {
  display: block;
  height: auto;
  width: 100%;
}
.mfol-pillars__summary {
  font-size: 1.125rem;
  line-height: 1.45;
  margin: 0;
}
.mfol-pillars__points {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}
.mfol-pillars__point {
  border-top: 2px solid currentColor;
  margin: 0;
  padding-top: 10px;
}
.mfol-pillars__point-big {
  display: block;
  font-family: var(--f-trim);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: var(--f-trim-weight, 700);
  line-height: 0.95;
  white-space: nowrap;
}
.mfol-pillars__point-text {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.35;
  margin-top: 4px;
}
.mfol-pillars__link {
  align-items: center;
  border-bottom: 2px solid currentColor;
  color: inherit;
  display: inline-flex;
  font-family: var(--f-mono);
  font-size: 0.9375rem;
  font-weight: 700;
  gap: 8px;
  margin-top: 22px;
  min-height: 44px;
  text-decoration: none;
}
.mfol-pillars__arrow {
  transition: transform 0.2s ease;
}
.mfol-pillars__link:hover .mfol-pillars__arrow,
.mfol-pillars__link:focus-visible .mfol-pillars__arrow {
  transform: translateX(4px);
}

/* ---------- Phones and tablets: cards that tap open ---------- */
.mfol-pillars__list {
  display: grid;
  gap: 10px;
}
.mfol-pillars__item {
  background: var(--pil-c);
  border: 2px solid var(--color-black);
  color: var(--pil-t);
  position: relative;
}
.mfol-pillars__toggle {
  min-height: 64px;
  padding: 14px 18px;
}
.mfol-pillars__body {
  border-top: 2px solid var(--color-black);
}
.mfol-pillars__body .mfol-pillars__media {
  aspect-ratio: 16 / 9;
  border-bottom: 2px solid var(--color-black);
}
.mfol-pillars__copy {
  padding: 18px 18px 20px;
}

/* ---------- Wide screens ---------- */
@media (min-width: 992px) {
  /* Expanding panels */
  .mfol-pillars--panels .mfol-pillars__list {
    display: flex;
    gap: 12px;
    height: clamp(460px, 44vw, 580px);
  }
  .mfol-pillars--panels .mfol-pillars__item {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
  }
  .mfol-pillars--panels.mfol-pillars--count-2 .mfol-pillars__item.is-open { flex-grow: 1.6; }
  .mfol-pillars--panels .mfol-pillars__item.is-open {
    flex-grow: calc(var(--pil-count, 4) * 0.85);
  }
  /* Closed panel: the photo shows faintly behind the color, the name runs up the side */
  .mfol-pillars--panels .mfol-pillars__bg {
    display: block;
    inset: 0;
    mix-blend-mode: multiply;
    opacity: 0.32;
    position: absolute;
    transition: opacity 0.3s ease;
  }
  .mfol-pillars--panels .mfol-pillars__item--black .mfol-pillars__bg {
    mix-blend-mode: screen;
    opacity: 0.22;
  }
  .mfol-pillars--panels .mfol-pillars__bg img {
    filter: grayscale(1) contrast(1.1);
    height: 100%;
    object-fit: cover;
    width: 100%;
  }
  .mfol-pillars--panels .mfol-pillars__item.is-open .mfol-pillars__bg {
    opacity: 0;
  }
  .mfol-pillars--panels .mfol-pillars__title {
    height: 100%;
    position: relative;
    z-index: 1;
  }
  .mfol-pillars--panels .mfol-pillars__toggle {
    align-items: flex-start;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    min-height: 0;
    padding: 22px 20px 24px;
  }
  .mfol-pillars--panels .mfol-pillars__num {
    font-size: clamp(2.5rem, 3.6vw, 3.5rem);
  }
  .mfol-pillars--panels .mfol-pillars__name {
    font-size: clamp(1.75rem, 2.4vw, 2.5rem);
    transform: rotate(180deg);
    white-space: nowrap;
    writing-mode: vertical-rl;
  }
  .mfol-pillars--panels .mfol-pillars__chev {
    display: none;
  }
  /* Open panel: name across the top, then photo and story */
  .mfol-pillars--panels .mfol-pillars__item.is-open .mfol-pillars__title {
    flex: 0 0 auto;
    height: auto;
  }
  .mfol-pillars--panels .mfol-pillars__item.is-open .mfol-pillars__toggle {
    align-items: baseline;
    cursor: default;
    flex-direction: row;
    gap: 16px;
    height: auto;
    justify-content: flex-start;
    padding-bottom: 14px;
  }
  .mfol-pillars--panels .mfol-pillars__item.is-open .mfol-pillars__name {
    font-size: clamp(2rem, 3vw, 3.25rem);
    transform: none;
    white-space: normal;
    writing-mode: horizontal-tb;
  }
  .mfol-pillars--panels .mfol-pillars__body {
    border-top: 0;
    display: grid;
    flex: 1 1 auto;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    min-height: 0;
    min-width: 320px;
    padding: 0 20px 22px;
    position: relative;
    z-index: 1;
  }
  .mfol-pillars--panels .mfol-pillars__body[hidden] {
    display: none;
  }
  .mfol-pillars--panels .mfol-pillars__body .mfol-pillars__media {
    aspect-ratio: auto;
    border: 2px solid var(--color-black);
    min-height: 0;
  }
  .mfol-pillars--panels .mfol-pillars__copy {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: auto;
    padding: 0;
  }
  .mfol-pillars--panels .mfol-pillars__points {
    grid-template-columns: 1fr;
  }
  .mfol-pillars--panels .mfol-pillars__link {
    align-self: flex-start;
    margin-top: auto;
  }
  .mfol-pillars--panels .mfol-pillars__points + .mfol-pillars__link,
  .mfol-pillars--panels .mfol-pillars__summary + .mfol-pillars__link {
    margin-top: 22px;
  }
  /* Without a photo, the story gets the whole panel */
  .mfol-pillars--panels .mfol-pillars__body:not(:has(.mfol-pillars__media)) {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Tabs: names on the left, the open pillar on the right */
  .mfol-pillars--tabs .mfol-pillars__list {
    align-items: start;
    column-gap: clamp(24px, 3vw, 48px);
    grid-auto-flow: row dense;
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 2.15fr);
    row-gap: 10px;
  }
  .mfol-pillars--tabs .mfol-pillars__item {
    background: none;
    border: 0;
    color: inherit;
    display: contents;
  }
  .mfol-pillars--tabs .mfol-pillars__title {
    grid-column: 1;
  }
  .mfol-pillars--tabs .mfol-pillars__toggle {
    background: transparent;
    border: 2px solid currentColor;
    min-height: 72px;
  }
  .mfol-pillars--tabs .is-open > .mfol-pillars__title .mfol-pillars__toggle {
    background: var(--pil-c);
    border-color: var(--color-black);
    color: var(--pil-t);
  }
  .mfol-pillars--tabs .mfol-pillars__chev {
    transform: rotate(-45deg) translate(-2px, -2px);
  }
  .mfol-pillars--tabs .is-open > .mfol-pillars__title .mfol-pillars__chev {
    transform: rotate(-45deg) translate(2px, 2px);
  }
  .mfol-pillars--tabs .mfol-pillars__body {
    background: var(--pil-c);
    border: 2px solid var(--color-black);
    color: var(--pil-t);
    display: grid;
    grid-column: 2;
    grid-row: 1 / span 6;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .mfol-pillars--tabs .mfol-pillars__body[hidden] {
    display: none;
  }
  .mfol-pillars--tabs .mfol-pillars__body .mfol-pillars__media {
    aspect-ratio: auto;
    border-bottom: 0;
    border-right: 2px solid var(--color-black);
    min-height: 380px;
  }
  .mfol-pillars--tabs .mfol-pillars__body:not(:has(.mfol-pillars__media)) {
    grid-template-columns: minmax(0, 1fr);
  }
  .mfol-pillars--tabs .mfol-pillars__copy {
    padding: clamp(22px, 2.6vw, 36px);
  }
}

/* Gentle entrance for an opening pillar's story */
@media (prefers-reduced-motion: no-preference) {
  .mfol-pillars__item.is-open .mfol-pillars__body:not([hidden]) {
    animation: mfol-pillars-in 0.22s ease-out both;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mfol-pillars--panels .mfol-pillars__item,
  .mfol-pillars__chev,
  .mfol-pillars__arrow,
  .mfol-pillars--panels .mfol-pillars__bg {
    transition: none;
  }
}
@keyframes mfol-pillars-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Editor: show the open pillar without needing a click */
.mfol-pillars--preview .mfol-pillars__toggle {
  cursor: default;
}

/* The theme positions stickers in fixed corners in some places; here the sticker sits in its own spot */
.mfol-pillars__sticker .sticker {
  display: block;
  inset: auto;
  opacity: 1;
  position: static;
}
.mfol-pillars__sticker .sticker svg {
  display: block;
  height: auto;
  width: 100%;
}

/* No photo: the story gets the full width, with a larger summary */
.mfol-pillars__body:not(:has(.mfol-pillars__media)) .mfol-pillars__summary {
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  max-width: 34em;
}
@media (min-width: 992px) {
  .mfol-pillars--panels .mfol-pillars__body:not(:has(.mfol-pillars__media)) {
    padding-top: 8px;
  }
  .mfol-pillars--panels .mfol-pillars__body:not(:has(.mfol-pillars__media)) .mfol-pillars__points {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    max-width: 640px;
  }
  /* Sticker sits up by the name on open panels */
  .mfol-pillars--panels .mfol-pillars__sticker {
    top: -64px;
  }
}
@media (min-width: 992px) {
  /* No photos at all: a shorter row, so there's no big empty space under the text */
  .mfol-pillars--panels .mfol-pillars__list:not(:has(.has-photo)) {
    height: clamp(360px, 30vw, 440px);
  }
}

/* ==========================================================================
   Poster rows: big names in rows; the open row fills with its color
   ========================================================================== */
.mfol-pillars--rows .mfol-pillars__list {
  border-top: 2px solid currentColor;
  gap: 0;
}
.mfol-pillars--rows .mfol-pillars__item {
  background: transparent;
  border: 0;
  border-bottom: 2px solid currentColor;
  color: inherit;
  transition: background-color 0.2s ease-out, color 0.2s ease-out;
}
.mfol-pillars--rows .mfol-pillars__item.is-open {
  background: var(--pil-c);
  color: var(--pil-t);
}
.mfol-pillars--rows .mfol-pillars__bg {
  display: none;
}
.mfol-pillars--rows .mfol-pillars__toggle {
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: 0;
  padding: clamp(14px, 2vw, 22px) clamp(10px, 1.4vw, 20px);
}
.mfol-pillars--rows .mfol-pillars__num {
  font-family: var(--f-mono);
  font-size: clamp(0.875rem, 1.2vw, 1.125rem);
  min-width: 2.4em;
  opacity: 1;
}
.mfol-pillars--rows .mfol-pillars__name {
  font-size: clamp(2.25rem, 7vw, 6.25rem);
  line-height: 0.88;
}
.mfol-pillars--rows .mfol-pillars__chev {
  border-width: 0 3px 3px 0;
  height: clamp(14px, 1.6vw, 22px);
  transform: rotate(-45deg);
  width: clamp(14px, 1.6vw, 22px);
}
.mfol-pillars--rows .is-open > .mfol-pillars__title .mfol-pillars__chev {
  transform: rotate(45deg) translate(-3px, -3px);
}
.mfol-pillars--rows .mfol-pillars__body {
  border-top: 0;
  display: grid;
  gap: clamp(18px, 3vw, 40px);
  padding: 0 clamp(10px, 1.4vw, 20px) clamp(22px, 3vw, 36px);
}
.mfol-pillars--rows .mfol-pillars__copy {
  padding: 0;
}
.mfol-pillars--rows .mfol-pillars__body .mfol-pillars__media {
  aspect-ratio: 4 / 3;
  border: 2px solid var(--color-black);
}
.mfol-pillars--rows .mfol-pillars__sticker {
  right: clamp(48px, 6vw, 90px);
  top: clamp(-86px, -6vw, -56px);
}
@media (min-width: 768px) {
  .mfol-pillars--rows .mfol-pillars__body {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    padding-left: calc(clamp(10px, 1.4vw, 20px) + 2.4 * clamp(0.875rem, 1.2vw, 1.125rem) + clamp(12px, 2vw, 28px));
  }
  .mfol-pillars--rows .mfol-pillars__body:not(:has(.mfol-pillars__media)) {
    grid-template-columns: minmax(0, 1fr);
  }
  .mfol-pillars--rows .mfol-pillars__points {
    max-width: 560px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .mfol-pillars--rows .is-open .mfol-pillars__media {
    animation: mfol-pillars-slide 0.28s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
}
@keyframes mfol-pillars-slide {
  from { opacity: 0; transform: translateX(40px) rotate(2deg); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mfol-pillars--rows .mfol-pillars__item {
    transition: none;
  }
}

/* ==========================================================================
   Color cards: every pillar's card shows at once
   ========================================================================== */
.mfol-pillars--grid .mfol-pillars__list {
  gap: clamp(14px, 2vw, 24px);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 600px) {
  .mfol-pillars--grid .mfol-pillars__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 992px) {
  .mfol-pillars--grid:is(.mfol-pillars--count-3, .mfol-pillars--count-5, .mfol-pillars--count-6) .mfol-pillars__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .mfol-pillars--grid.mfol-pillars--grid-one .mfol-pillars__list {
    grid-template-columns: repeat(var(--pil-count, 4), minmax(0, 1fr));
  }
}
.mfol-pillars--grid .mfol-pillars__item {
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
/* The photo runs across the top of the card */
.mfol-pillars--grid .mfol-pillars__bg {
  aspect-ratio: 16 / 10;
  border-bottom: 2px solid var(--color-black);
  display: block;
  overflow: hidden;
}
.mfol-pillars--grid .mfol-pillars__bg img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.mfol-pillars--grid .mfol-pillars__body .mfol-pillars__media {
  display: none;
}
.mfol-pillars--grid .mfol-pillars__toggle {
  align-items: baseline;
  cursor: default;
  min-height: 0;
  padding: 20px 20px 4px;
}
.mfol-pillars--grid .mfol-pillars__num,
.mfol-pillars--grid .mfol-pillars__name {
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
}
.mfol-pillars--grid .mfol-pillars__body {
  border-top: 0;
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
  position: static;
}
.mfol-pillars--grid .mfol-pillars__copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 10px 20px 22px;
}
.mfol-pillars--grid .mfol-pillars__points {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.mfol-pillars--grid .mfol-pillars__link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 18px;
}
.mfol-pillars--grid .mfol-pillars__summary + .mfol-pillars__link,
.mfol-pillars--grid .mfol-pillars__points + .mfol-pillars__link {
  margin-top: auto;
}
.mfol-pillars--grid .mfol-pillars__sticker {
  right: 12px;
  top: -16px;
}
.mfol-pillars--grid .mfol-pillars__item.has-photo .mfol-pillars__sticker {
  top: -14px;
}
/* Pointing at a card lifts it with a slight tilt */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .mfol-pillars--grid .mfol-pillars__item:hover,
  .mfol-pillars--grid .mfol-pillars__item:focus-within {
    box-shadow: 8px 8px 0 var(--color-black);
    transform: translate(-4px, -4px) rotate(-1deg);
    z-index: 2;
  }
  .mfol-pillars--grid .mfol-pillars__item:nth-child(even):hover,
  .mfol-pillars--grid .mfol-pillars__item:nth-child(even):focus-within {
    transform: translate(-4px, -4px) rotate(1deg);
  }
}
.mfol-pillars--bg-black.mfol-pillars--grid .mfol-pillars__item:hover {
  box-shadow: 8px 8px 0 var(--color-white);
}

/* Color cards never open or close: no story entrance (it would also move the sticker) */
.mfol-pillars--grid .mfol-pillars__item.is-open .mfol-pillars__body:not([hidden]) {
  animation: none;
}
/* Poster rows: the story under the name, the photo on the right */
@media (min-width: 768px) {
  .mfol-pillars--rows .mfol-pillars__copy {
    order: 1;
  }
  .mfol-pillars--rows .mfol-pillars__body .mfol-pillars__media {
    order: 2;
  }
}

/* The giant faint number only appears in Tabs */
.mfol-pillars__ghost {
  display: none;
}

/* ==========================================================================
   Tabs (wide screens): tabs fill the height, the open tab joins the panel
   ========================================================================== */
@media (min-width: 992px) {
  .mfol-pillars--tabs .mfol-pillars__list {
    align-items: stretch;
    column-gap: 0;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 2.05fr);
    grid-template-rows: repeat(var(--pil-count, 4), minmax(76px, 1fr));
    row-gap: 12px;
  }
  .mfol-pillars--tabs .mfol-pillars__title {
    display: flex;
    margin-right: 16px;
    min-height: 0;
    position: relative;
    z-index: 1;
  }
  .mfol-pillars--tabs .mfol-pillars__toggle {
    height: 100%;
    min-height: 0;
    padding: 0 22px;
    transition: background-color 0.2s ease, color 0.2s ease;
  }
  .mfol-pillars--tabs .mfol-pillars__item:not(.is-open) .mfol-pillars__toggle {
    color: color-mix(in srgb, currentColor 62%, transparent);
  }
  @media (hover: hover) {
    .mfol-pillars--tabs .mfol-pillars__item:not(.is-open) .mfol-pillars__toggle:hover {
      color: inherit;
    }
  }
  /* The open tab reaches across and joins the panel */
  .mfol-pillars--tabs .is-open > .mfol-pillars__title {
    margin-right: -2px;
    z-index: 3;
  }
  .mfol-pillars--tabs .is-open > .mfol-pillars__title .mfol-pillars__toggle {
    border-right-color: var(--pil-c);
    padding-right: 38px;
  }
  .mfol-pillars--tabs .is-open > .mfol-pillars__title .mfol-pillars__chev {
    opacity: 0;
  }
  .mfol-pillars--tabs .mfol-pillars__num {
    font-size: 1.25rem;
    min-width: 1.8em;
  }
  .mfol-pillars--tabs .mfol-pillars__name {
    font-size: clamp(1.5rem, 2.1vw, 2.125rem);
  }
  /* The panel spans every tab's row */
  .mfol-pillars--tabs .mfol-pillars__body {
    grid-row: 1 / span var(--pil-count, 4);
    min-height: 460px;
    overflow: hidden;
    position: relative;
  }
  .mfol-pillars--tabs .mfol-pillars__body .mfol-pillars__media {
    min-height: 0;
  }
  .mfol-pillars--tabs .mfol-pillars__copy {
    display: flex;
    flex-direction: column;
    padding: clamp(28px, 3vw, 44px);
    position: relative;
    z-index: 1;
  }
  .mfol-pillars--tabs .mfol-pillars__summary {
    font-size: clamp(1.25rem, 1.6vw, 1.5rem);
    line-height: 1.38;
    margin-top: auto;
  }
  .mfol-pillars--tabs .mfol-pillars__points {
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-top: 26px;
  }
  .mfol-pillars--tabs .mfol-pillars__point-big {
    font-size: clamp(2.5rem, 3.4vw, 3.5rem);
  }
  /* The link becomes a solid button at the bottom */
  .mfol-pillars--tabs .mfol-pillars__link {
    align-self: flex-start;
    background: var(--color-black);
    border: 2px solid var(--color-black);
    color: var(--color-white);
    margin-top: auto;
    padding: 12px 20px;
    transition: background-color 0.2s ease, color 0.2s ease;
  }
  .mfol-pillars--tabs .mfol-pillars__summary + .mfol-pillars__link,
  .mfol-pillars--tabs .mfol-pillars__points + .mfol-pillars__link {
    margin-top: auto;
  }
  .mfol-pillars--tabs .mfol-pillars__link:hover,
  .mfol-pillars--tabs .mfol-pillars__link:focus-visible {
    background: var(--color-white);
    color: var(--color-black);
  }
  .mfol-pillars--tabs .mfol-pillars__item--black .mfol-pillars__link {
    background: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-black);
  }
  /* A link with nothing above it still sits at the bottom, with the summary centered */
  .mfol-pillars--tabs .mfol-pillars__copy > :last-child:not(.mfol-pillars__link) {
    margin-bottom: auto;
  }
  /* The giant faint number in the corner */
  .mfol-pillars--tabs .mfol-pillars__ghost {
    bottom: -0.12em;
    color: currentColor;
    display: block;
    font-family: var(--f-trim);
    font-size: clamp(9rem, 15vw, 15rem);
    font-weight: var(--f-trim-weight, 700);
    line-height: 0.8;
    opacity: 0.1;
    pointer-events: none;
    position: absolute;
    right: 0.06em;
    z-index: 0;
  }
  /* The sticker sits on the photo's top-left corner, off the text */
  .mfol-pillars--tabs .mfol-pillars__body:has(.mfol-pillars__media) .mfol-pillars__sticker {
    left: -12px;
    right: auto;
    top: -16px;
  }
  .mfol-pillars--tabs .mfol-pillars__body:not(:has(.mfol-pillars__media)) .mfol-pillars__copy:only-of-type {
    padding-top: 72px;
  }
  .mfol-pillars--tabs .mfol-pillars__body {
    overflow: visible;
  }
  .mfol-pillars--tabs .mfol-pillars__body .mfol-pillars__media {
    overflow: hidden;
  }
  .mfol-pillars--tabs .mfol-pillars__ghost {
    clip-path: inset(0 0 0.12em 0);
  }
  /* Auto-advance: a thin progress bar along the bottom of the open tab */
  .mfol-pillars--tabs .is-auto .is-open > .mfol-pillars__title .mfol-pillars__toggle {
    overflow: hidden;
    position: relative;
  }
  .mfol-pillars--tabs .is-auto .is-open > .mfol-pillars__title .mfol-pillars__toggle::after {
    animation: mfol-pillars-progress 7s linear both;
    background: currentColor;
    bottom: 0;
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    transform-origin: left;
    width: 100%;
  }
  .mfol-pillars--tabs .is-auto.is-paused .is-open > .mfol-pillars__title .mfol-pillars__toggle::after {
    animation-play-state: paused;
  }
}
@keyframes mfol-pillars-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ===== Sticker position (per pillar): a corner of the pillar's story area ===== */
.mfol-pillars .mfol-pillars__item .mfol-pillars__sticker.mfol-pillars__sticker--top-left {
  bottom: auto;
  left: -12px;
  right: auto;
  top: -16px;
}
.mfol-pillars .mfol-pillars__item .mfol-pillars__sticker.mfol-pillars__sticker--top-right {
  bottom: auto;
  left: auto;
  right: -12px;
  top: -16px;
}
.mfol-pillars .mfol-pillars__item .mfol-pillars__sticker.mfol-pillars__sticker--bottom-left {
  bottom: -16px;
  left: -12px;
  right: auto;
  top: auto;
}
.mfol-pillars .mfol-pillars__item .mfol-pillars__sticker.mfol-pillars__sticker--bottom-right {
  bottom: -16px;
  left: auto;
  right: -12px;
  top: auto;
}
/* Expanding panels crop anything past their edges, so corner stickers sit just inside */
.mfol-pillars--panels .mfol-pillars__item .mfol-pillars__sticker.mfol-pillars__sticker--top-left { left: 26px; top: 6px; }
.mfol-pillars--panels .mfol-pillars__item .mfol-pillars__sticker.mfol-pillars__sticker--top-right { right: 26px; top: 6px; }
.mfol-pillars--panels .mfol-pillars__item .mfol-pillars__sticker.mfol-pillars__sticker--bottom-left { bottom: 40px; left: 26px; }
.mfol-pillars--panels .mfol-pillars__item .mfol-pillars__sticker.mfol-pillars__sticker--bottom-right { bottom: 40px; right: 26px; }

/* ===== Proof points never spill: big text can wrap, and the fitter shrinks it only if one word won't fit ===== */
.mfol-pillars__point-big {
  overflow-wrap: normal;
  white-space: normal;
}

/* ===== Tabs: proof points as a stat list (number left, text right, one row each) ===== */
@media (min-width: 992px) {
  .mfol-pillars--tabs .mfol-pillars__points {
    border-bottom: 2px solid currentColor;
    gap: 0;
    grid-template-columns: minmax(0, 1fr);
    margin: 24px 0 28px;
  }
  .mfol-pillars--tabs .mfol-pillars__point {
    align-items: center;
    column-gap: 20px;
    display: grid;
    grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
    padding: 12px 0;
  }
  .mfol-pillars--tabs .mfol-pillars__point-big {
    font-size: clamp(1.75rem, 2.4vw, 2.5rem);
    line-height: 0.95;
  }
  .mfol-pillars--tabs .mfol-pillars__point-text {
    font-size: 1rem;
    margin-top: 0;
  }
  /* A point without big text: the line takes the whole row */
  .mfol-pillars--tabs .mfol-pillars__point:not(:has(.mfol-pillars__point-big)) .mfol-pillars__point-text {
    grid-column: 1 / -1;
  }
  .mfol-pillars--tabs .mfol-pillars__summary {
    margin-top: 0;
  }
}

/* ===== Stickers on the photo: Automatic is the top-left corner; positions are the photo's corners ===== */
.mfol-pillars .mfol-pillars__item .mfol-pillars__media,
.mfol-pillars--grid .mfol-pillars__item .mfol-pillars__bg {
  position: relative;
}
.mfol-pillars .mfol-pillars__item :is(.mfol-pillars__media, .mfol-pillars__bg) > .mfol-pillars__sticker {
  bottom: auto;
  left: 18px;
  right: auto;
  top: 18px;
  width: clamp(96px, 26%, 150px);
}
.mfol-pillars .mfol-pillars__item :is(.mfol-pillars__media, .mfol-pillars__bg) > .mfol-pillars__sticker.mfol-pillars__sticker--top-right {
  left: auto;
  right: 18px;
}
.mfol-pillars .mfol-pillars__item :is(.mfol-pillars__media, .mfol-pillars__bg) > .mfol-pillars__sticker.mfol-pillars__sticker--bottom-left {
  bottom: 30px;
  top: auto;
}
.mfol-pillars .mfol-pillars__item :is(.mfol-pillars__media, .mfol-pillars__bg) > .mfol-pillars__sticker.mfol-pillars__sticker--bottom-right {
  bottom: 30px;
  left: auto;
  right: 18px;
  top: auto;
}
/* The top photo on Color cards shows its sticker (the rest of that photo area stays as is) */
.mfol-pillars--grid .mfol-pillars__bg {
  overflow: visible;
}
.mfol-pillars--grid .mfol-pillars__bg img {
  overflow: hidden;
}

/* ===== Tabs: every pillar's panel is the same height, so switching never moves the page ===== */
@media (min-width: 992px) {
  .mfol-pillars--tabs .mfol-pillars__item:not(.is-open) > .mfol-pillars__body,
  .mfol-pillars--tabs .mfol-pillars__item:not(.is-open) > .mfol-pillars__body[hidden] {
    display: grid !important;
    pointer-events: none;
    visibility: hidden;
  }
}

/* Steeper tilt = taller sticker, so it sits further in from the photo's edges (stays over the image) */
.mfol-pillars .mfol-pillars__item :is(.mfol-pillars__media, .mfol-pillars__bg) > .mfol-pillars__sticker {
  --pil-in-y: calc(6px + (var(--pil-tilt-abs, 4) + 12) * 1.45px);
  --pil-in-x: calc(6px + (var(--pil-tilt-abs, 4) + 12) * 0.75px);
  left: var(--pil-in-x);
  top: var(--pil-in-y);
}
.mfol-pillars .mfol-pillars__item :is(.mfol-pillars__media, .mfol-pillars__bg) > .mfol-pillars__sticker.mfol-pillars__sticker--top-right {
  left: auto;
  right: var(--pil-in-x);
}
.mfol-pillars .mfol-pillars__item :is(.mfol-pillars__media, .mfol-pillars__bg) > .mfol-pillars__sticker.mfol-pillars__sticker--bottom-left {
  bottom: var(--pil-in-y);
  top: auto;
}
.mfol-pillars .mfol-pillars__item :is(.mfol-pillars__media, .mfol-pillars__bg) > .mfol-pillars__sticker.mfol-pillars__sticker--bottom-right {
  bottom: var(--pil-in-y);
  left: auto;
  right: var(--pil-in-x);
  top: auto;
}

/* ===== Expanding panels: the browser animates the change by moving and scaling (view transitions) ===== */
::view-transition-group(*) {
  animation-duration: 0.26s;
  animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
}
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
}

/* ===== Phones: cards open and close smoothly (browsers without this simply snap) ===== */
@media (max-width: 991px) {
  @supports (interpolate-size: allow-keywords) {
    .mfol-pillars {
      interpolate-size: allow-keywords;
    }
    .mfol-pillars .mfol-pillars__item > .mfol-pillars__body {
      display: block !important;
      height: auto;
      overflow: hidden;
      transition: height 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s;
    }
    .mfol-pillars .mfol-pillars__item:not(.is-open) > .mfol-pillars__body {
      border-top-width: 0;
      height: 0;
      transition: height 0.18s ease-in, visibility 0s 0.18s, border-top-width 0s 0.18s;
      visibility: hidden;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .mfol-pillars .mfol-pillars__item > .mfol-pillars__body {
    transition: none !important;
  }
}
