/**
 * File: /css/wl-our-story.css
 * Our Story page styles — enqueued on all Our Story templates.
 *
 * Contains: Pillars of Our Promise section, year navigation buttons.
 */

/* ==========================================================================
   Pillars of Our Promise Section
   ========================================================================== */

.wl-story-pillars {
  background-color: var(--wp--preset--color--surface-container-low);
  padding: 80px 24px;
}

.wl-story-pillars__inner {
  max-width: 1280px;
  margin: 0 auto;
}

/* Section heading */
.wl-story-pillars__heading {
  font-family: var(--wp--preset--font-family--heading);
  font-size: var(--wp--preset--font-size--x-large);
  font-weight: 800;
  color: var(--wp--preset--color--on-surface);
  text-align: center;
  margin: 0 0 24px 0;
  line-height: 1.2;
}

/* Optional description */
.wl-story-pillars__description {
  font-family: var(--wp--preset--font-family--body);
  font-size: var(--wp--preset--font-size--normal);
  color: var(--wp--preset--color--on-surface-variant);
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px auto;
  line-height: 1.7;
}

/* 3-column card grid */
.wl-story-pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Individual card */
.wl-story-pillars__card {
  background-color: var(--wp--preset--color--white);
  padding: 40px;
  border-radius: var(--wp--custom--radius--lg);
  box-shadow: var(--wp--custom--shadow--card);
  transition: transform var(--wp--custom--transition--normal) ease;
  display: flex;
  flex-direction: column;
}

.wl-story-pillars__card:hover {
  transform: translateY(-4px);
}

/* Icon circle — shared base */
.wl-story-pillars__card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  flex-shrink: 0;
}

.wl-story-pillars__card-icon svg {
  display: block;
}

/* Color scheme: Primary (teal) */
.wl-story-pillars__card--primary .wl-story-pillars__card-icon {
  background-color: var(--wp--preset--color--primary-container);
  color: var(--wp--preset--color--primary);
}

/* Color scheme: Secondary (gold) */
.wl-story-pillars__card--secondary .wl-story-pillars__card-icon {
  background-color: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--on-secondary);
}

/* Color scheme: Tertiary (green) */
.wl-story-pillars__card--tertiary .wl-story-pillars__card-icon {
  background-color: var(--wp--preset--color--tertiary-fixed);
  color: var(--wp--preset--color--on-tertiary-fixed);
}

/* Card heading */
.wl-story-pillars__card-heading {
  font-family: var(--wp--preset--font-family--heading);
  font-size: clamp(1.25rem, 1rem + 0.5vw, 1.5rem);
  font-weight: 700;
  color: var(--wp--preset--color--on-surface);
  margin: 0 0 16px 0;
  line-height: 1.3;
}

/* Card body */
.wl-story-pillars__card-body {
  font-family: var(--wp--preset--font-family--body);
  font-size: 1rem;
  color: var(--wp--preset--color--on-surface-variant);
  line-height: 1.7;
  margin: 0;
}

.wl-story-pillars__card-body p {
  margin: 0 0 1em 0;
}

.wl-story-pillars__card-body p:last-child {
  margin-bottom: 0;
}

/* Responsive: stack cards on mobile (below 782px standard breakpoint).
   Cards stay 3-across at 820px (iPad). */
@media only screen and (max-width: 782px) {
  .wl-story-pillars {
    padding: 48px 16px;
  }

  .wl-story-pillars__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .wl-story-pillars__card {
    padding: 28px 24px;
  }

  .wl-story-pillars__heading {
    font-size: var(--wp--preset--font-size--large);
  }
}


/* ==========================================================================
   Year Navigation Buttons — Our Story Year Pages
   ========================================================================== */

/* Back to Timeline — left sidebar button */
.wl-back-to-timeline {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
}

.wl-timeline-back-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--wp--preset--color--interactive);
  color: var(--wp--preset--color--white);
  padding: 12px 20px;
  border-radius: var(--wp--custom--radius--md);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background-color var(--wp--custom--transition--normal) ease,
              transform 0.2s ease;
  box-shadow: var(--wp--custom--shadow--sm);
}

.wl-timeline-back-button:hover {
  background-color: var(--wp--preset--color--interactive-dark);
  transform: translateX(-3px);
}

/* Previous / Next Year Buttons */
.wl-year-nav-prev,
.wl-year-nav-next {
  margin: 40px 0;
  text-align: center;
}

.wl-year-button {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background-color: var(--wp--preset--color--interactive);
  color: var(--wp--preset--color--white);
  padding: 20px 40px;
  border-radius: var(--wp--custom--radius--lg);
  text-decoration: none;
  font-weight: 700;
  font-size: 24px;
  transition: background-color var(--wp--custom--transition--normal) ease,
              transform 0.2s ease,
              box-shadow var(--wp--custom--transition--normal) ease;
  box-shadow: var(--wp--custom--shadow--sm);
  min-width: 200px;
  justify-content: center;
}

.wl-year-button:hover {
  background-color: var(--wp--preset--color--interactive-dark);
  transform: translateY(-2px);
  box-shadow: var(--wp--custom--shadow--card);
}

.wl-year-button:active {
  transform: translateY(0);
}

.wl-year-arrow {
  font-size: 28px;
  font-weight: bold;
}

.wl-year-label {
  font-size: 32px;
}

/* Top navigation — previous year */
.wl-year-navigation-top {
  margin-bottom: 30px;
}

/* Bottom navigation — next year */
.wl-year-navigation-bottom {
  margin-top: 50px;
}

/* Year navigation responsive */
@media only screen and (max-width: 782px) {
  .wl-back-to-timeline {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin-bottom: 20px;
    text-align: center;
  }

  .wl-timeline-back-button {
    display: inline-flex;
  }

  .wl-year-button {
    padding: 15px 30px;
    font-size: 20px;
    gap: 10px;
  }

  .wl-year-arrow {
    font-size: 24px;
  }

  .wl-year-label {
    font-size: 26px;
  }
}

@media only screen and (max-width: 480px) {
  .wl-year-button {
    padding: 12px 25px;
    font-size: 18px;
  }

  .wl-year-label {
    font-size: 22px;
  }
}


/* ==========================================================================
   Story Timeline — Asymmetrical Editorial Layout
   ========================================================================== */

.wl-story-timeline {
  padding: 80px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.wl-story-timeline__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
  overflow: visible;
}

/* ── Sidebar ── */
.wl-story-timeline__sidebar {
  align-self: start;
}

.wl-story-timeline__heading {
  font-family: var(--wp--preset--font-family--heading);
  font-size: var(--wp--preset--font-size--x-large);
  font-weight: 800;
  color: var(--wp--preset--color--on-surface);
  margin: 0 0 24px 0;
  line-height: 1.2;
}

.wl-story-timeline__description {
  font-family: var(--wp--preset--font-family--body);
  color: var(--wp--preset--color--on-surface-variant);
  line-height: 1.7;
  margin: 0 0 32px 0;
}

/* Stat callout box */
.wl-story-timeline__stat {
  padding: 24px;
  background-color: rgba(0, 103, 141, 0.05);
  border-left: 4px solid var(--wp--preset--color--primary);
  border-radius: var(--wp--custom--radius--md);
}

.wl-story-timeline__stat-number {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.5rem + 0.5vw, 2rem);
  color: var(--wp--preset--color--primary);
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.wl-story-timeline__stat-label {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wp--preset--color--on-surface-variant);
  margin: 0;
}

/* ── Timeline entries column ── */
.wl-story-timeline__entries {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: visible;
}

/* Individual entry */
.wl-story-timeline__entry {
  position: relative;
  padding-left: 40px;
  padding-bottom: 48px;
  border-left: 1px solid var(--wp--preset--color--outline-variant);
}

.wl-story-timeline__entry:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

/* Dot marker */
.wl-story-timeline__dot {
  position: absolute;
  left: -7px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.wl-story-timeline__dot--primary {
  background-color: var(--wp--preset--color--primary);
  box-shadow: 0 0 0 4px var(--wp--preset--color--primary-container);
}

.wl-story-timeline__dot--secondary {
  background-color: var(--wp--preset--color--primary-container);
}

.wl-story-timeline__dot--tertiary {
  background-color: var(--wp--preset--color--on-tertiary-fixed);
}

/* Year label */
.wl-story-timeline__year {
  display: block;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  font-size: clamp(1.125rem, 1rem + 0.25vw, 1.25rem);
  color: var(--wp--preset--color--primary);
  margin-bottom: 8px;
}

/* Entry heading */
.wl-story-timeline__entry-heading {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  font-size: clamp(1.125rem, 1rem + 0.25vw, 1.25rem);
  color: var(--wp--preset--color--on-surface);
  margin: 0 0 16px 0;
  line-height: 1.3;
}

/* Entry body */
.wl-story-timeline__entry-body {
  font-family: var(--wp--preset--font-family--body);
  font-size: 1rem;
  color: var(--wp--preset--color--on-surface-variant);
  line-height: 1.7;
  margin: 0;
}

/* ── Responsive: stack to single column on mobile ── */
@media only screen and (max-width: 782px) {
  .wl-story-timeline {
    padding: 48px 16px;
  }

  .wl-story-timeline__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .wl-story-timeline__heading {
    font-size: var(--wp--preset--font-size--large);
  }

  .wl-story-timeline__entry {
    padding-bottom: 32px;
  }
}

/* ==========================================================================
   Timeline Entry — Optional Image (positioned LEFT of the timeline line)
   ========================================================================== */

/* Image sits to the LEFT of the vertical timeline line,
   directly across from the entry text. Uses absolute positioning
   to extend into the gap between sidebar and entries columns. */
.wl-story-timeline__entry-image {
  position: absolute;
  right: calc(100% + 75px);
  top: 0;
  width: 360px;
}

.wl-story-timeline__entry-image img {
  width: 100%;
  height: auto;
  border-radius: var(--wp--custom--radius--md);
  border: 15px solid var(--wp--preset--color--white);
  display: block;
  transform: rotate(5deg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* On mobile (single column), image moves inline above the text */
@media only screen and (max-width: 782px) {
  .wl-story-timeline__entry-image {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    max-width: 240px;
    margin-bottom: 16px;
  }
}


/* ==========================================================================
   Story Humanitarian CTA — Full-width Impact Card
   ========================================================================== */

.wl-story-hmcta {
  padding: 0 24px 80px 24px;
}

.wl-story-hmcta__card {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  background-color: var(--wp--preset--color--surface-container-high);
  border-radius: var(--wp--custom--radius--lg);
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

/* Background image layer */
.wl-story-hmcta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.wl-story-hmcta__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  display: block;
}

/* Tinted overlay */
.wl-story-hmcta__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(95, 168, 211, 0.2);
}

/* Content */
.wl-story-hmcta__content {
  position: relative;
  z-index: 10;
  padding: 48px;
  max-width: 640px;
}

@media only screen and (min-width: 783px) {
  .wl-story-hmcta__content {
    padding: 80px 96px;
  }
}

.wl-story-hmcta__heading {
  font-family: var(--wp--preset--font-family--heading);
  font-size: var(--wp--preset--font-size--x-large);
  font-weight: 800;
  color: var(--wp--preset--color--on-surface);
  margin: 0 0 24px 0;
  line-height: 1.15;
}

.wl-story-hmcta__body {
  font-family: var(--wp--preset--font-family--body);
  font-size: 1.125rem;
  color: var(--wp--preset--color--on-surface-variant);
  line-height: 1.7;
  margin: 0 0 40px 0;
}

/* CTA button */
.wl-story-hmcta__button {
  display: inline-block;
  background-color: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--on-secondary);
  padding: 16px 32px;
  border-radius: var(--wp--custom--radius--pill);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: var(--wp--custom--shadow--sm);
  transition: background-color var(--wp--custom--transition--normal) ease,
              transform 0.15s ease;
}

.wl-story-hmcta__button:hover {
  background-color: #e4c451;
  transform: translateY(-2px);
}

.wl-story-hmcta__button:active {
  transform: translateY(0);
}

/* Responsive */
@media only screen and (max-width: 782px) {
  .wl-story-hmcta {
    padding: 0 16px 48px 16px;
  }

  .wl-story-hmcta__card {
    min-height: 400px;
  }

  .wl-story-hmcta__content {
    padding: 32px 24px;
  }

  .wl-story-hmcta__heading {
    font-size: var(--wp--preset--font-size--large);
  }

  .wl-story-hmcta__body {
    font-size: 1rem;
    margin-bottom: 32px;
  }
}


/* ==========================================================================
   Story Meet the People — Team Grid
   ========================================================================== */

.wl-story-people {
  padding: 80px 24px;
  background-color: var(--wp--preset--color--surface);
}

.wl-story-people__inner {
  max-width: 1280px;
  margin: 0 auto;
}

/* Header row — heading/description left, link right */
.wl-story-people__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 24px;
}

.wl-story-people__header-text {
  max-width: 640px;
}

.wl-story-people__heading {
  font-family: var(--wp--preset--font-family--heading);
  font-size: var(--wp--preset--font-size--x-large);
  font-weight: 800;
  color: var(--wp--preset--color--on-surface);
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.wl-story-people__description {
  font-family: var(--wp--preset--font-family--body);
  color: var(--wp--preset--color--on-surface-variant);
  line-height: 1.7;
  margin: 0;
}

.wl-story-people__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wp--preset--color--primary);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: text-decoration var(--wp--custom--transition--fast) ease;
}

.wl-story-people__link:hover {
  text-decoration: underline;
}

/* 3-column card grid */
.wl-story-people__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Individual person card */
.wl-story-people__card {
  min-width: 0;
}

/* Linked card — clickable to profile page */
a.wl-story-people__card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform var(--wp--custom--transition--normal) ease;
}

a.wl-story-people__card:hover {
  transform: translateY(-4px);
}

a.wl-story-people__card .wl-story-people__card-name {
  display: block;
  font-family: var(--wp--preset--font-family--heading);
  font-size: clamp(1.125rem, 1rem + 0.25vw, 1.25rem);
  font-weight: 700;
  color: var(--wp--preset--color--on-surface);
  margin: 0 0 4px 0;
  line-height: 1.3;
}

/* Square photo container */
.wl-story-people__card-photo {
  aspect-ratio: 1 / 1;
  border-radius: var(--wp--custom--radius--md);
  overflow: hidden;
  margin-bottom: 20px;
  background-color: var(--wp--preset--color--surface-container);
}

.wl-story-people__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.wl-story-people__card:hover .wl-story-people__card-img {
  filter: grayscale(0%);
}

/* Placeholder (no photo) */
.wl-story-people__card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--wp--preset--color--surface-container-high);
  color: var(--wp--preset--color--on-surface-variant);
  font-family: var(--wp--preset--font-family--heading);
  font-size: 2rem;
  font-weight: 700;
}

/* Name */
.wl-story-people__card-name {
  font-family: var(--wp--preset--font-family--heading);
  font-size: clamp(1.125rem, 1rem + 0.25vw, 1.25rem);
  font-weight: 700;
  color: var(--wp--preset--color--on-surface);
  margin: 0 0 4px 0;
  line-height: 1.3;
}

/* Role */
.wl-story-people__card-role {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.875rem;
  color: var(--wp--preset--color--on-surface-variant);
  margin: 0;
}

/* Responsive */
@media only screen and (max-width: 1024px) {
  .wl-story-people__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 782px) {
  .wl-story-people {
    padding: 48px 16px;
  }

  .wl-story-people__header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 32px;
  }

  .wl-story-people__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .wl-story-people__heading {
    font-size: var(--wp--preset--font-size--large);
  }
}

@media only screen and (max-width: 480px) {
  .wl-story-people__grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   Story Starts Yours — Centered CTA Card
   ========================================================================== */

.wl-story-cta {
  padding: 48px 24px 96px 24px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.wl-story-cta__card {
  background-color: var(--wp--preset--color--surface-container-low);
  padding: 48px 40px;
  border-radius: var(--wp--custom--radius--lg);
}

@media only screen and (min-width: 783px) {
  .wl-story-cta__card {
    padding: 80px;
  }
}

.wl-story-cta__heading {
  font-family: var(--wp--preset--font-family--heading);
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  font-weight: 800;
  color: var(--wp--preset--color--on-surface);
  margin: 0 0 24px 0;
  line-height: 1.2;
}

.wl-story-cta__description {
  font-family: var(--wp--preset--font-family--body);
  font-size: 1.125rem;
  color: var(--wp--preset--color--on-surface-variant);
  line-height: 1.7;
  margin: 0 0 40px 0;
}

/* Button row */
.wl-story-cta__buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Shared button base */
.wl-story-cta__btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: var(--wp--custom--radius--pill);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color var(--wp--custom--transition--normal) ease,
              transform 0.15s ease;
}

.wl-story-cta__btn:active {
  transform: translateY(0);
}

/* Primary button (filled) */
.wl-story-cta__btn--primary {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--on-primary);
  box-shadow: var(--wp--custom--shadow--sm);
}

.wl-story-cta__btn--primary:hover {
  background-color: var(--wp--preset--color--primary-dark);
  transform: translateY(-2px);
}

/* Secondary button (outlined) */
.wl-story-cta__btn--secondary {
  background-color: var(--wp--preset--color--white);
  color: var(--wp--preset--color--primary);
  border: 1px solid rgba(0, 103, 141, 0.2);
}

.wl-story-cta__btn--secondary:hover {
  background-color: rgba(0, 103, 141, 0.05);
  transform: translateY(-2px);
}

/* Responsive */
@media only screen and (max-width: 782px) {
  .wl-story-cta {
    padding: 32px 16px 64px 16px;
  }

  .wl-story-cta__description {
    font-size: 1rem;
    margin-bottom: 32px;
  }

  .wl-story-cta__buttons {
    flex-direction: column;
    align-items: center;
  }

  .wl-story-cta__btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
}

/* ==========================================================================
   Story About Us — Stat Cards Section
   ========================================================================== */

.wl-story-about {
  padding: 80px 24px;
  background-color: var(--wp--preset--color--surface);
}

.wl-story-about__inner {
  max-width: 1280px;
  margin: 0 auto;
}

/* Eyebrow tagline above the heading */
.wl-story-about__tagline {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--on-surface-variant);
  text-align: center;
  margin: 0 0 16px 0;
}

/* Section heading — matches wl-story-pillars__heading sizing */
.wl-story-about__heading {
  font-family: var(--wp--preset--font-family--heading);
  font-size: var(--wp--preset--font-size--huge);
  font-weight: 800;
  color: var(--wp--preset--color--on-surface);
  text-align: center;
  margin: 0 0 56px 0;
  line-height: 1.15;
}

/* Card rows */
.wl-story-about__row {
  display: grid;
  gap: 32px;
}

.wl-story-about__row--two {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 32px;
}

.wl-story-about__row--three {
  grid-template-columns: repeat(3, 1fr);
}

/* Rows 3 and 4 — centered cards (2 or 1) sized to match row 2.
   Flexbox with `justify-content: center` positions either count
   correctly. Card width matches the formula a row-three card gets
   in its 3-column grid: `(container - 2 * gap) / 3`. */
.wl-story-about__row--two-centered,
.wl-story-about__row--one-centered {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.wl-story-about__row--two-centered .wl-story-about__card,
.wl-story-about__row--one-centered .wl-story-about__card {
  flex: 0 0 calc((100% - 64px) / 3);
}

/* Individual card — no hover transform */
.wl-story-about__card {
  background-color: var(--wp--preset--color--white);
  padding: 48px 32px;
  border-radius: var(--wp--custom--radius--lg);
  box-shadow: var(--wp--custom--shadow--card);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Row 1 cards are larger — taller minimum and bigger numbers */
.wl-story-about__row--two .wl-story-about__card {
  min-height: 280px;
  padding: 56px 32px;
}

/* Rows 2, 3, 4 share medium card sizing */
.wl-story-about__row--three .wl-story-about__card,
.wl-story-about__row--two-centered .wl-story-about__card,
.wl-story-about__row--one-centered .wl-story-about__card {
  min-height: 240px;
}

/* Eyebrow inside card — smaller, always reserves a line so cards align
   vertically across a row. min-height holds the slot when there is no
   text; :empty::before is a backup for a truly empty rendered element. */
.wl-story-about__card-eyebrow {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--on-surface-variant);
  margin: 0 0 8px 0;
  line-height: 1.2;
  min-height: 1.2em;
}

.wl-story-about__card-eyebrow:empty::before {
  content: "\00a0";
}

/* Big number — black; min-height keeps numbers on the same baseline
   across cards in a row even when font-size clamps differently. */
.wl-story-about__card-number {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 800;
  color: var(--wp--preset--color--on-surface);
  margin: 0;
  line-height: 1;
}

.wl-story-about__row--two .wl-story-about__card-number {
  font-size: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
  min-height: 1em;
}

.wl-story-about__row--three .wl-story-about__card-number,
.wl-story-about__row--two-centered .wl-story-about__card-number,
.wl-story-about__row--one-centered .wl-story-about__card-number {
  font-size: clamp(2.75rem, 2rem + 2.5vw, 4.25rem);
  min-height: 1em;
}

/* Label — primary blue */
.wl-story-about__card-label {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wp--preset--color--primary);
  margin: 8px 0 0 0;
  line-height: 1.2;
}

.wl-story-about__row--two .wl-story-about__card-label {
  font-size: 1.25rem;
}

/* Subtext — main descriptive copy, black, larger */
.wl-story-about__card-subtext {
  font-family: var(--wp--preset--font-family--body);
  font-size: 1.0625rem;
  color: var(--wp--preset--color--on-surface);
  line-height: 1.5;
  margin: 16px 0 0 0;
  max-width: 280px;
}

/* Responsive — single column on mobile, matches pillars breakpoint */
@media only screen and (max-width: 782px) {
  .wl-story-about {
    padding: 48px 16px;
  }

  .wl-story-about__heading {
    font-size: var(--wp--preset--font-size--large);
    margin-bottom: 40px;
  }

  .wl-story-about__row--two,
  .wl-story-about__row--three {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .wl-story-about__row--two {
    margin-bottom: 20px;
  }

  .wl-story-about__row--two-centered,
  .wl-story-about__row--one-centered {
    margin-top: 20px;
    gap: 20px;
  }

  .wl-story-about__row--two-centered .wl-story-about__card,
  .wl-story-about__row--one-centered .wl-story-about__card {
    flex: 0 0 100%;
  }

  .wl-story-about__row--two .wl-story-about__card,
  .wl-story-about__row--three .wl-story-about__card,
  .wl-story-about__row--two-centered .wl-story-about__card,
  .wl-story-about__row--one-centered .wl-story-about__card {
    min-height: 0;
    padding: 36px 24px;
  }
}