/* =========================================================
   BIL CUSTOM - INFO CARDS V2.0
   Standard grid + CTA panel variation.
   Shared CTA CSS is intentionally untouched.
   ========================================================= */

.bilcustom-info-cards {
  box-sizing: border-box;
  width: 100%;
  font-family: var(--font-bil, "Mona Sans", ui-sans-serif, system-ui, sans-serif);
  color: var(--bil-dark);
}

.bilcustom-info-cards,
.bilcustom-info-cards * { box-sizing: border-box; }

.bilcustom-info-cards__inner {
  width: min(100%, 1432px);
  margin-inline: auto;
  padding: var(--bilcustom-info-cards-padding, 40px);
  border-radius: 48px;
}

.bilcustom-info-cards--none .bilcustom-info-cards__inner { background: transparent; }
.bilcustom-info-cards--dark .bilcustom-info-cards__inner { background: var(--bil-dark); }
.bilcustom-info-cards--purple .bilcustom-info-cards__inner { background: var(--bil-purple); }
.bilcustom-info-cards--color01 .bilcustom-info-cards__inner { background: var(--bil-surface-01); }
.bilcustom-info-cards--color02 .bilcustom-info-cards__inner { background: var(--bil-surface-02); }
.bilcustom-info-cards--color03 .bilcustom-info-cards__inner { background: var(--bil-surface-03); }
.bilcustom-info-cards--softPurple .bilcustom-info-cards__inner { background: #e2d7e5; }

.bilcustom-info-cards__section-title {
  
  padding: 0;
  font-family: var(--font-bil, "Mona Sans", ui-sans-serif, system-ui, sans-serif);
  
  font-weight: var(--font-weight-normal, 400);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--bil-dark);
}

.bilcustom-info-cards--dark .bilcustom-info-cards__section-title,
.bilcustom-info-cards--purple .bilcustom-info-cards__section-title { color: var(--bil-white); }

.bilcustom-info-cards__section-title--standard {  }

.bilcustom-info-cards__list {
  display: grid;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 24px;
  list-style: none;
}

.bilcustom-info-cards__list--count-1 { grid-template-columns: minmax(0, 1fr); }
.bilcustom-info-cards__list--count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bilcustom-info-cards__list--count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bilcustom-info-cards__list--count-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bilcustom-info-cards__list--count-5 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.bilcustom-info-cards__list--count-5 > .bilcustom-info-card { grid-column: span 2; }
.bilcustom-info-cards__list--count-5 > .bilcustom-info-card:nth-child(5) { grid-column: 4 / span 2; }

.bilcustom-info-card {
  display: flex;
  min-width: 0;
  min-height: 246px;
  flex-direction: column;
  justify-content: flex-start;
  margin: 0;
  padding: 48px 36px 32px;
  border: 1px solid var(--bil-white-68);
  border-radius: 40px;
  background: var(--bil-surface-01-90);
  box-shadow: 1px 4px 16px var(--bil-purple-10);
  color: var(--bil-dark);
  transform: translateY(0);
  transition: background-color .3s ease-in-out, box-shadow .3s ease-in-out, transform .3s ease-in-out;
}

/* Per-card approved BIL backgrounds. */
.bilcustom-info-card--bg-none { background: var(--bil-white-30); }
.bilcustom-info-card--bg-dark { background: var(--bil-dark); border-color: var(--bil-white-24); }
.bilcustom-info-card--bg-purple { background: var(--bil-purple); border-color: var(--bil-white-24); }
.bilcustom-info-card--bg-color01 { background: var(--bil-surface-01); }
.bilcustom-info-card--bg-color02 { background: var(--bil-surface-02); }
.bilcustom-info-card--bg-color03 { background: var(--bil-surface-03); }
.bilcustom-info-card--bg-softPurple { background: #e2d7e5; }


/* Optional DAM media.
   Image = large inset visual.
   Icon = small contained visual at the top left. */
.bilcustom-info-card__media {
  flex: 0 0 auto;
}

.bilcustom-info-card__media-link {
  display: block;
}

.bilcustom-info-card__media-link:focus-visible {
  outline: 3px solid var(--bil-dark, #2d153f);
  outline-offset: 4px;
}

.bilcustom-info-card--bg-dark .bilcustom-info-card__media-link:focus-visible,
.bilcustom-info-card--bg-purple .bilcustom-info-card__media-link:focus-visible {
  outline-color: var(--bil-white, #fff);
}

.bilcustom-info-card__media--image {
  width: 100%;
  aspect-ratio: 1.48 / 1;
  margin-bottom: 28px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--bil-surface-purple);
}

.bilcustom-info-card__image {
  display: block;
}

.bilcustom-info-card__image--image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.bilcustom-info-card__media--icon {
  width: 64px;
  height: 64px;
  margin: 0 0 32px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.bilcustom-info-card__image--icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  object-position: left top;
}

.bilcustom-info-card__content {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.bilcustom-info-card__title {
  margin: 0 !important;
  padding: 0;
  font-family: var(--font-bil, "Mona Sans", ui-sans-serif, system-ui, sans-serif);
  font-size: 34px;
  font-weight: var(--font-weight-normal, 400);
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--bil-dark);
}

.bilcustom-info-card__text {
  margin: 36px 0 0 !important;
  padding: 0;
  font-family: var(--font-bil, "Mona Sans", ui-sans-serif, system-ui, sans-serif);
  font-size: 15px;
  font-weight: var(--font-weight-normal, 400);
  line-height: 1.45;
  color: var(--bil-text-dark-02);
}

.bilcustom-info-card--bg-dark .bilcustom-info-card__title,
.bilcustom-info-card--bg-purple .bilcustom-info-card__title,
.bilcustom-info-card--bg-dark .bilcustom-info-card__text,
.bilcustom-info-card--bg-purple .bilcustom-info-card__text { color: var(--bil-white); }

.bilcustom-info-card__cta { margin-top: auto; padding-top: 32px; }

/* ---------------- CTA PANEL ---------------- */
.bilcustom-info-cards--layout-ctaPanel .bilcustom-info-cards__inner {
  padding-block: max(var(--bilcustom-info-cards-padding, 40px), 72px);
}

.bilcustom-info-cards__panel {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(0, 2.35fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.bilcustom-info-cards__panel-heading { align-self: center; }

.bilcustom-info-cards__list--panel {
  display: grid;
  grid-template-columns: repeat(var(--bilcustom-panel-count, 3), minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
}

.bilcustom-info-cards__list--panel.bilcustom-info-cards__list--count-1 { --bilcustom-panel-count: 1; }
.bilcustom-info-cards__list--panel.bilcustom-info-cards__list--count-2 { --bilcustom-panel-count: 2; }
.bilcustom-info-cards__list--panel.bilcustom-info-cards__list--count-3 { --bilcustom-panel-count: 3; }
.bilcustom-info-cards__list--panel.bilcustom-info-cards__list--count-4 { --bilcustom-panel-count: 4; }
.bilcustom-info-cards__list--panel.bilcustom-info-cards__list--count-5 {
  --bilcustom-panel-count: 4;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.bilcustom-info-cards__list--panel.bilcustom-info-cards__list--count-5 > .bilcustom-info-card,
.bilcustom-info-cards__list--panel.bilcustom-info-cards__list--count-5 > .bilcustom-info-card:nth-child(5) { grid-column: auto; }

.bilcustom-info-card--panel {
  min-height: 268px;
  padding: 48px 36px 30px;
  border-radius: 36px;
  box-shadow: 1px 4px 16px var(--bil-purple-10);
}

.bilcustom-info-card--panel .bilcustom-info-card__title {
  max-width: 12ch;
  font-size: clamp(22px, 1.7vw, 30px);
  font-weight: var(--font-weight-medium, 500);
  line-height: 1.2;
}

.bilcustom-info-card--panel .bilcustom-info-card__text {
  margin-top: 20px !important;
}

.bilcustom-info-card--panel .bilcustom-info-card__cta { margin-top: auto; padding-top: 36px; }

/* Keep typography stable on hover: only the shared CTA itself may animate. */
@media (hover: hover) and (pointer: fine) {
  .bilcustom-info-card--has-cta:not(.bilcustom-info-card--two-ctas, .bilcustom-info-card--has-image-link):hover {
    transform: translateY(-2px);
    box-shadow: 1px 6px 20px var(--bil-purple-14);
  }
  .bilcustom-info-card--has-cta:not(.bilcustom-info-card--two-ctas, .bilcustom-info-card--has-image-link):hover .bilcustom-info-card__title,
  .bilcustom-info-card--has-cta:not(.bilcustom-info-card--two-ctas, .bilcustom-info-card--has-image-link):hover .bilcustom-info-card__text {
    color: inherit;
  }
  .bilcustom-info-card--has-cta:not(.bilcustom-info-card--two-ctas, .bilcustom-info-card--has-image-link).bilcustom-info-card--bg-dark:hover .bilcustom-info-card__title,
  .bilcustom-info-card--has-cta:not(.bilcustom-info-card--two-ctas, .bilcustom-info-card--has-image-link).bilcustom-info-card--bg-purple:hover .bilcustom-info-card__title,
  .bilcustom-info-card--has-cta:not(.bilcustom-info-card--two-ctas, .bilcustom-info-card--has-image-link).bilcustom-info-card--bg-dark:hover .bilcustom-info-card__text,
  .bilcustom-info-card--has-cta:not(.bilcustom-info-card--two-ctas, .bilcustom-info-card--has-image-link).bilcustom-info-card--bg-purple:hover .bilcustom-info-card__text { color: var(--bil-white); }
}

@media (min-width: 1024px) {
  .bilcustom-info-cards__list--count-4:not(.bilcustom-info-cards__list--panel) .bilcustom-info-card,
  .bilcustom-info-cards__list--count-5:not(.bilcustom-info-cards__list--panel) .bilcustom-info-card { padding-inline: 28px; }

  .bilcustom-info-cards__list--count-4:not(.bilcustom-info-cards__list--panel) .bilcustom-info-card__title,
  .bilcustom-info-cards__list--count-5:not(.bilcustom-info-cards__list--panel) .bilcustom-info-card__title { font-size: 30px; }
}

@media (max-width: 1199px) {
  .bilcustom-info-cards__panel {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .bilcustom-info-cards__panel-heading { max-width: 620px; }

  .bilcustom-info-cards__list--panel,
  .bilcustom-info-cards__list--panel.bilcustom-info-cards__list--count-3,
  .bilcustom-info-cards__list--panel.bilcustom-info-cards__list--count-4,
  .bilcustom-info-cards__list--panel.bilcustom-info-cards__list--count-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .bilcustom-info-cards__inner { border-radius: 40px; }

  .bilcustom-info-cards__list:not(.bilcustom-info-cards__list--panel),
  .bilcustom-info-cards__list--count-3:not(.bilcustom-info-cards__list--panel),
  .bilcustom-info-cards__list--count-4:not(.bilcustom-info-cards__list--panel),
  .bilcustom-info-cards__list--count-5:not(.bilcustom-info-cards__list--panel) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bilcustom-info-cards__list--count-5:not(.bilcustom-info-cards__list--panel) > .bilcustom-info-card,
  .bilcustom-info-cards__list--count-5:not(.bilcustom-info-cards__list--panel) > .bilcustom-info-card:nth-child(5) { grid-column: auto; }

  .bilcustom-info-card {
    min-height: 220px;
    padding: 44px 32px 30px;
    border-radius: 30px;
  }

  .bilcustom-info-card__title { font-size: 28px; }
  .bilcustom-info-card--panel { min-height: 230px; }
}

@media (max-width: 767px) {

  /* Mobile is always one card per row, for every Info Cards layout. */
  .bilcustom-info-cards .bilcustom-info-cards__list {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .bilcustom-info-cards__inner {
    padding: min(var(--bilcustom-info-cards-padding, 40px), 32px) 20px;
    border-radius: 32px;
  }

  .bilcustom-info-cards--layout-ctaPanel .bilcustom-info-cards__inner {
    padding-block: min(var(--bilcustom-info-cards-padding, 40px), 32px);
  }

  .bilcustom-info-cards__panel { gap: 28px; }
  .bilcustom-info-cards__section-title {  }
  .bilcustom-info-cards__section-title--standard {  }

  .bilcustom-info-cards__list,
  .bilcustom-info-cards__list--count-2,
  .bilcustom-info-cards__list--count-3,
  .bilcustom-info-cards__list--count-4,
  .bilcustom-info-cards__list--count-5,
  .bilcustom-info-cards__list--panel,
  .bilcustom-info-cards__list--panel.bilcustom-info-cards__list--count-2,
  .bilcustom-info-cards__list--panel.bilcustom-info-cards__list--count-3,
  .bilcustom-info-cards__list--panel.bilcustom-info-cards__list--count-4,
  .bilcustom-info-cards__list--panel.bilcustom-info-cards__list--count-5 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bilcustom-info-card {
    min-height: 190px;
    padding: 34px 28px 26px;
    border-radius: 26px;
  }

  .bilcustom-info-card--panel { min-height: 210px; }
  .bilcustom-info-card__media--icon { margin-bottom: 48px; }
  .bilcustom-info-card__title { font-size: 26px; line-height: 1.25; }
  .bilcustom-info-card--panel .bilcustom-info-card__title { font-size: 24px; }
  .bilcustom-info-card__text { margin-top: 28px !important; font-size: 14px; }
  .bilcustom-info-card__cta { margin-top: 28px; }
}

/* V4.13: Info Card uses its original rendered CTA as the full-card destination. */
.bilcustom-info-card.is-card-linked{cursor:pointer}
.bilcustom-info-card.is-card-linked:focus-visible{outline:3px solid var(--bil-purple,#702f8a);outline-offset:4px}

/* V5.32 — rollback native heading typography only (pre-V3.5 sizing). */
.bilcustom-info-cards__section-title{font-size:clamp(38px,3.4vw,58px)}
@media(max-width:48rem){.bilcustom-info-cards__section-title{font-size:38px}}

/* V5.39 mobile gutter audit */

@media(max-width:767px){
  .bilcustom-info-cards{
    width:calc(100% - 40px);
    margin-inline:auto;
  }
}

/* V5.55 — card CTAs are always centered on mobile. */
@media (max-width: 767px) {
  .bilcustom-info-card__cta { width: 100%; justify-content: center !important; }
}

/* V5.70 — apply the White option available in the dialog. */
.bilcustom-info-cards--white .bilcustom-info-cards__inner { background: var(--bil-white, #fff); color: var(--bil-dark, #2d153f); }
.bilcustom-info-card--bg-white { background: var(--bil-white, #fff); color: var(--bil-dark, #2d153f); }

/* Explicit desktop columns; automatic mode preserves existing layouts. */
@media (min-width: 1024px) {
  .bilcustom-info-cards--cols-2 { --bilcustom-info-columns: 2; }
  .bilcustom-info-cards--cols-3 { --bilcustom-info-columns: 3; }
  .bilcustom-info-cards--cols-4 { --bilcustom-info-columns: 4; }
  .bilcustom-info-cards--cols-5 { --bilcustom-info-columns: 5; }
  .bilcustom-info-cards[class*="bilcustom-info-cards--cols-"]:not(.bilcustom-info-cards--cols-auto) .bilcustom-info-cards__list:not(.bilcustom-info-cards__list--panel) {
    grid-template-columns: repeat(var(--bilcustom-info-columns), minmax(0, 1fr));
  }
  .bilcustom-info-cards:not(.bilcustom-info-cards--cols-auto)[class*="bilcustom-info-cards--cols-"] .bilcustom-info-cards__list:not(.bilcustom-info-cards__list--panel) > .bilcustom-info-card { grid-column: auto; }
}
@media (min-width: 1200px) {
  .bilcustom-info-cards:not(.bilcustom-info-cards--cols-auto)[class*="bilcustom-info-cards--cols-"] .bilcustom-info-cards__list--panel {
    grid-template-columns: repeat(var(--bilcustom-info-columns), minmax(0, 1fr));
  }
}

/* Center a single remaining card in an explicit three-column desktop row. */
@media (min-width: 1024px) {
  .bilcustom-info-cards--cols-3 .bilcustom-info-cards__list:not(.bilcustom-info-cards__list--panel) > .bilcustom-info-card:last-child:nth-child(3n + 1):not(:first-child) {
    grid-column: 2;
  }
}
@media (min-width: 1200px) {
  .bilcustom-info-cards--cols-3 .bilcustom-info-cards__list--panel > .bilcustom-info-card:last-child:nth-child(3n + 1):not(:first-child) {
    grid-column: 2;
  }
}

/* Automatic layouts with more than five cards wrap into desktop rows. */
@media (min-width: 1024px) {
  .bilcustom-info-cards__list--count-many:not(.bilcustom-info-cards__list--panel) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .bilcustom-info-cards__list--panel.bilcustom-info-cards__list--count-many { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Center incomplete rows for explicit desktop column counts. */
@media (min-width: 1024px) {
  .bilcustom-info-cards--cols-2 .bilcustom-info-cards__list:not(.bilcustom-info-cards__list--panel) { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .bilcustom-info-cards--cols-2 .bilcustom-info-cards__list:not(.bilcustom-info-cards__list--panel) > .bilcustom-info-card { grid-column: span 2 !important; }
  .bilcustom-info-cards--cols-2 .bilcustom-info-cards__list:not(.bilcustom-info-cards__list--panel) > .bilcustom-info-card:nth-child(2n + 1):nth-last-child(1) { grid-column: 2 / span 2 !important; }
  .bilcustom-info-cards--cols-3 .bilcustom-info-cards__list:not(.bilcustom-info-cards__list--panel) { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
  .bilcustom-info-cards--cols-3 .bilcustom-info-cards__list:not(.bilcustom-info-cards__list--panel) > .bilcustom-info-card { grid-column: span 2 !important; }
  .bilcustom-info-cards--cols-3 .bilcustom-info-cards__list:not(.bilcustom-info-cards__list--panel) > .bilcustom-info-card:nth-child(3n + 1):nth-last-child(1) { grid-column: 3 / span 2 !important; }
  .bilcustom-info-cards--cols-3 .bilcustom-info-cards__list:not(.bilcustom-info-cards__list--panel) > .bilcustom-info-card:nth-child(3n + 1):nth-last-child(2) { grid-column: 2 / span 2 !important; }
  .bilcustom-info-cards--cols-4 .bilcustom-info-cards__list:not(.bilcustom-info-cards__list--panel) { grid-template-columns: repeat(8, minmax(0, 1fr)) !important; }
  .bilcustom-info-cards--cols-4 .bilcustom-info-cards__list:not(.bilcustom-info-cards__list--panel) > .bilcustom-info-card { grid-column: span 2 !important; }
  .bilcustom-info-cards--cols-4 .bilcustom-info-cards__list:not(.bilcustom-info-cards__list--panel) > .bilcustom-info-card:nth-child(4n + 1):nth-last-child(1) { grid-column: 4 / span 2 !important; }
  .bilcustom-info-cards--cols-4 .bilcustom-info-cards__list:not(.bilcustom-info-cards__list--panel) > .bilcustom-info-card:nth-child(4n + 1):nth-last-child(2) { grid-column: 3 / span 2 !important; }
  .bilcustom-info-cards--cols-4 .bilcustom-info-cards__list:not(.bilcustom-info-cards__list--panel) > .bilcustom-info-card:nth-child(4n + 1):nth-last-child(3) { grid-column: 2 / span 2 !important; }
  .bilcustom-info-cards--cols-5 .bilcustom-info-cards__list:not(.bilcustom-info-cards__list--panel) { grid-template-columns: repeat(10, minmax(0, 1fr)) !important; }
  .bilcustom-info-cards--cols-5 .bilcustom-info-cards__list:not(.bilcustom-info-cards__list--panel) > .bilcustom-info-card { grid-column: span 2 !important; }
  .bilcustom-info-cards--cols-5 .bilcustom-info-cards__list:not(.bilcustom-info-cards__list--panel) > .bilcustom-info-card:nth-child(5n + 1):nth-last-child(1) { grid-column: 5 / span 2 !important; }
  .bilcustom-info-cards--cols-5 .bilcustom-info-cards__list:not(.bilcustom-info-cards__list--panel) > .bilcustom-info-card:nth-child(5n + 1):nth-last-child(2) { grid-column: 4 / span 2 !important; }
  .bilcustom-info-cards--cols-5 .bilcustom-info-cards__list:not(.bilcustom-info-cards__list--panel) > .bilcustom-info-card:nth-child(5n + 1):nth-last-child(3) { grid-column: 3 / span 2 !important; }
  .bilcustom-info-cards--cols-5 .bilcustom-info-cards__list:not(.bilcustom-info-cards__list--panel) > .bilcustom-info-card:nth-child(5n + 1):nth-last-child(4) { grid-column: 2 / span 2 !important; }
}
@media (min-width: 1200px) {
  .bilcustom-info-cards--cols-2 .bilcustom-info-cards__list--panel { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .bilcustom-info-cards--cols-2 .bilcustom-info-cards__list--panel > .bilcustom-info-card { grid-column: span 2 !important; }
  .bilcustom-info-cards--cols-2 .bilcustom-info-cards__list--panel > .bilcustom-info-card:nth-child(2n + 1):nth-last-child(1) { grid-column: 2 / span 2 !important; }
  .bilcustom-info-cards--cols-3 .bilcustom-info-cards__list--panel { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
  .bilcustom-info-cards--cols-3 .bilcustom-info-cards__list--panel > .bilcustom-info-card { grid-column: span 2 !important; }
  .bilcustom-info-cards--cols-3 .bilcustom-info-cards__list--panel > .bilcustom-info-card:nth-child(3n + 1):nth-last-child(1) { grid-column: 3 / span 2 !important; }
  .bilcustom-info-cards--cols-3 .bilcustom-info-cards__list--panel > .bilcustom-info-card:nth-child(3n + 1):nth-last-child(2) { grid-column: 2 / span 2 !important; }
  .bilcustom-info-cards--cols-4 .bilcustom-info-cards__list--panel { grid-template-columns: repeat(8, minmax(0, 1fr)) !important; }
  .bilcustom-info-cards--cols-4 .bilcustom-info-cards__list--panel > .bilcustom-info-card { grid-column: span 2 !important; }
  .bilcustom-info-cards--cols-4 .bilcustom-info-cards__list--panel > .bilcustom-info-card:nth-child(4n + 1):nth-last-child(1) { grid-column: 4 / span 2 !important; }
  .bilcustom-info-cards--cols-4 .bilcustom-info-cards__list--panel > .bilcustom-info-card:nth-child(4n + 1):nth-last-child(2) { grid-column: 3 / span 2 !important; }
  .bilcustom-info-cards--cols-4 .bilcustom-info-cards__list--panel > .bilcustom-info-card:nth-child(4n + 1):nth-last-child(3) { grid-column: 2 / span 2 !important; }
  .bilcustom-info-cards--cols-5 .bilcustom-info-cards__list--panel { grid-template-columns: repeat(10, minmax(0, 1fr)) !important; }
  .bilcustom-info-cards--cols-5 .bilcustom-info-cards__list--panel > .bilcustom-info-card { grid-column: span 2 !important; }
  .bilcustom-info-cards--cols-5 .bilcustom-info-cards__list--panel > .bilcustom-info-card:nth-child(5n + 1):nth-last-child(1) { grid-column: 5 / span 2 !important; }
  .bilcustom-info-cards--cols-5 .bilcustom-info-cards__list--panel > .bilcustom-info-card:nth-child(5n + 1):nth-last-child(2) { grid-column: 4 / span 2 !important; }
  .bilcustom-info-cards--cols-5 .bilcustom-info-cards__list--panel > .bilcustom-info-card:nth-child(5n + 1):nth-last-child(3) { grid-column: 3 / span 2 !important; }
  .bilcustom-info-cards--cols-5 .bilcustom-info-cards__list--panel > .bilcustom-info-card:nth-child(5n + 1):nth-last-child(4) { grid-column: 2 / span 2 !important; }
}

/* Single-column desktop layout. */
.bilcustom-info-cards--cols-1 { --bilcustom-info-columns: 1; }
@media (min-width: 1024px) {
  .bilcustom-info-cards--cols-1 .bilcustom-info-cards__list:not(.bilcustom-info-cards__list--panel) { grid-template-columns: minmax(0, 1fr) !important; }
  .bilcustom-info-cards--cols-1 .bilcustom-info-cards__list:not(.bilcustom-info-cards__list--panel) > .bilcustom-info-card { grid-column: auto !important; }
}
@media (min-width: 1200px) {
  .bilcustom-info-cards--cols-1 .bilcustom-info-cards__list--panel { grid-template-columns: minmax(0, 1fr) !important; }
  .bilcustom-info-cards--cols-1 .bilcustom-info-cards__list--panel > .bilcustom-info-card { grid-column: auto !important; }
}

/* Image-only partner grid; other layouts keep their card styles. */
.bilcustom-info-cards--layout-logos .bilcustom-info-cards__list { row-gap: 64px; }
.bilcustom-info-cards--layout-logos .bilcustom-info-card--logo,
.bilcustom-info-cards--layout-logos .bilcustom-info-card--logo:hover,
.bilcustom-info-cards--layout-logos .bilcustom-info-card--logo:focus-within {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  padding: 20px !important;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: default;
}
.bilcustom-info-card__logo {
  display: block;
  width: 100%;
  max-width: 240px;
  height: 140px;
  object-fit: contain;
}
@media (max-width: 767px) {
  .bilcustom-info-cards--layout-logos .bilcustom-info-cards__list { row-gap: 24px; }
  .bilcustom-info-cards--layout-logos .bilcustom-info-card--logo { min-height: 140px; }
}

/* Image cards: reduce only the desktop top inset; icon cards retain their spacing. */
@media(min-width:768px){.bilcustom-info-card.bilcustom-info-card--image{padding-top:28px}}
.bilcustom-info-card__logo-link{display:flex;align-items:center;justify-content:center;width:100%;border-radius:12px}
.bilcustom-info-card__logo-link:focus-visible{outline:3px solid var(--bil-purple,#702f8a);outline-offset:6px}

/* Multiple CTAs remain native, individually focusable links. */
.bilcustom-info-card__actions{display:flex;flex-direction:column;gap:16px;margin-top:auto;padding-top:32px;width:100%}
.bilcustom-info-card .bilcustom-info-card__actions .bilcustom-info-card__cta{margin-top:0;padding-top:0}
.bilcustom-info-card__actions a:focus-visible{outline:3px solid var(--bil-purple,#702f8a);outline-offset:4px}

/* Optional side-by-side CTA group, anchored to the bottom like stacked CTAs. */
.bilcustom-info-card__actions--inline{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start}
.bilcustom-info-card__actions--inline.bilcustom-info-card__actions--center{justify-content:center}
.bilcustom-info-card__actions--inline.bilcustom-info-card__actions--right{justify-content:flex-end}
.bilcustom-info-card .bilcustom-info-card__actions--inline .bilcustom-info-card__cta{flex:0 1 auto;width:auto;max-width:100%;min-width:0}
@media(max-width:767px){.bilcustom-info-card__actions--inline{justify-content:center}}

/* A badge sits above the card edge without changing the card box. */
.bilcustom-info-cards__list:has(> .bilcustom-info-card--has-eyebrow) {
  padding-block-start: 36px;
  row-gap: 48px;
  align-items: stretch;
}

.bilcustom-info-card--has-eyebrow { position: relative; z-index: 1; }

.bilcustom-info-card__eyebrow {
  position: absolute;
  inset-inline-start: 24px;
  bottom: calc(100% - 10px);
  max-width: calc(100% - 48px);
  padding: 9px 24px;
  border-radius: 999px;
  background: #d6007f;
  color: #fff;
  font: 500 16px/1.35 var(--font-bil,'Mona Sans',sans-serif);
  letter-spacing: .1em;
  overflow-wrap: anywhere;
}

.bilcustom-info-card__eyebrow--purple { background: var(--bil-purple,#702f8a); }
.bilcustom-info-card__eyebrow--dark { background: var(--bil-dark,#2d153f); }
.bilcustom-info-card__eyebrow--white { background: #fff; color: var(--bil-dark,#2d153f); }
.bilcustom-info-card__eyebrow--background { background: var(--bil-background,#ede9ef); color: var(--bil-dark,#2d153f); }
.bilcustom-info-card__eyebrow--color01 { background: var(--bil-surface-01,#faf3ff); color: var(--bil-dark,#2d153f); }
.bilcustom-info-card__eyebrow--color02 { background: var(--bil-surface-02,#f3d6ff); color: var(--bil-dark,#2d153f); }
.bilcustom-info-card__eyebrow--color03 { background: var(--bil-surface-03,#dcb7f0); color: var(--bil-dark,#2d153f); }
.bilcustom-info-card__eyebrow--softPurple { background: #e2d7e5; color: var(--bil-dark,#2d153f); }

@media(max-width:767px){.bilcustom-info-card__eyebrow{padding:8px 18px;font-size:14px;letter-spacing:.06em}}

/* Keep long headings inside the card, including German compound words. */
:is(.bilcustom-info-cards--layout-standard, .bilcustom-info-cards--layout-titleOnly) .bilcustom-info-card__title {
  white-space: normal;
  hyphens: auto;
  overflow-wrap: anywhere;
}

/* Title-only cards keep the standard grid and fit the content of each row. */
.bilcustom-info-cards--layout-titleOnly .bilcustom-info-cards__list > .bilcustom-info-card {
  min-height: 0;
  padding: clamp(16px, 2vw, 28px);
}

.bilcustom-info-cards--layout-titleOnly .bilcustom-info-card__content {
  justify-content: center;
}

.bilcustom-info-cards--layout-titleOnly .bilcustom-info-cards__list .bilcustom-info-card__title {
  font-size: clamp(20px, 1.65vw, 26px);
}

.bilcustom-info-cards--layout-titleOnly .bilcustom-info-card > :is(.bilcustom-info-card__cta, .bilcustom-info-card__actions) {
  margin-top: 0;
  padding-top: 16px;
}

/* Compact grid: keep all shared card options and scope rich text overrides to this layout. */
.bilcustom-info-cards--layout-compact .bilcustom-info-cards__list > .bilcustom-info-card {
  padding: 30px;
  overflow-wrap: anywhere;
}
.bilcustom-info-cards--layout-compact .bilcustom-info-card__media--icon {
  width: 54px;
  height: 54px;
  margin: 0 0 24px;
}
.bilcustom-info-cards--layout-compact .bilcustom-info-card__image--icon {
  width: 100%;
  height: 100%;
}
.bilcustom-info-cards--layout-compact .bilcustom-info-card__text ul {
  margin-left: 15px !important;
  padding-left: 0 !important;
  list-style-type: disc;
}
.bilcustom-info-cards--layout-compact .bilcustom-info-card__text p,
.bilcustom-info-cards--layout-compact .bilcustom-info-card__text li {
  font-size: 18px !important;
  line-height: 26px !important;
}
.bilcustom-info-cards--layout-compact .bilcustom-info-card__text li {
  margin-bottom: 10px !important;
}
.bilcustom-info-cards--layout-compact .bilcustom-info-card__text li:last-child {
  margin-bottom: 0 !important;
}
/* CKEditor can wrap each list item in a paragraph. Match the same rhythm there. */
.bilcustom-info-cards--layout-compact .bilcustom-info-card__text li > p {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  line-height: inherit !important;
}

/* Native disclosure: keep the control visually quiet and its focus visible. */
.bilcustom-info-card__read-more { margin-top: 8px; }

.bilcustom-info-card__read-more-toggle {
  display: inline-flex;
  align-items: center;
  column-gap: 8px;
  min-height: 28px;
  color: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* The symbol is decorative; the localized text supplies the control name. */
.bilcustom-info-card__read-more-icon {
  flex: none;
  inline-size: 1ch;
  text-align: center;
}

.bilcustom-info-card__read-more-icon::before { content: "+"; }
.bilcustom-info-card__read-more[open] > summary .bilcustom-info-card__read-more-icon::before { content: "−"; }

.bilcustom-info-card__read-more-show,
.bilcustom-info-card__read-more-hide {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.bilcustom-info-card__read-more-toggle:hover .bilcustom-info-card__read-more-show,
.bilcustom-info-card__read-more-toggle:hover .bilcustom-info-card__read-more-hide {
  text-decoration: none;
}

.bilcustom-info-card__read-more-toggle::-webkit-details-marker { display: none; }
.bilcustom-info-card__read-more-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

.bilcustom-info-card__read-more:not([open]) > summary .bilcustom-info-card__read-more-hide,
.bilcustom-info-card__read-more[open] > summary .bilcustom-info-card__read-more-show {
  display: none;
}

.bilcustom-info-card__read-more-content { margin-top: 8px; }
