/* ── LE Pillar Cards (image-on-top style, matches Wizlynn) ── */
.le-pillars-section {
  padding-top: 96px !important;
  padding-bottom: 104px !important;
}
.le-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.le-pillar-card {
  display: flex;
  flex-direction: column;
}
.le-pillar-visual {
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
}
.le-pillar-visual svg {
  width: 100%;
  height: 100%;
  display: block;
}
.le-pillar-visual--switching {
  background: linear-gradient(160deg, #d4e2f2, #e8eff8);
}
.le-pillar-visual--custom {
  background: linear-gradient(160deg, #cddae8, #e5eef6);
}
.le-pillar-visual--noisy {
  background: linear-gradient(160deg, #d4e4d0, #edf4eb);
}
.le-pillar-text {
  padding: 20px 4px 0;
}
.le-pillar-text h3 {
  margin: 0 0 8px;
  font-family: var(--display, 'IBM Plex Sans', sans-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  color: #13202a;
}
.le-pillar-text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #716f6c;
}
.le-pillar-checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.le-pillar-checks li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.55;
  color: #3a3d42;
}
.le-pillar-checks li::before {
  content: "\2713";
  position: absolute;
  left: 2px;
  top: 4px;
  color: #3a3d42;
}
@media (max-width: 900px) {
  .le-pillars-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}
@media (max-width: 640px) {
  .le-pillars-section {
    padding-top: 64px !important;
    padding-bottom: 72px !important;
  }
  .le-pillars-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .le-pillar-text h3 { font-size: 18px; min-height: 0; }
  .le-pillar-text p,
  .le-pillar-checks li { font-size: 14px; }
}

.language-engine-page .le-matrix-section .le-matrix-card {
  margin-top: 44px;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e2e6e9;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(30, 53, 70, 0.055);
}

.language-engine-page .le-matrix-section table.le-matrix {
  width: 100%;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
  color: #17232d;
  font-size: 15px;
  font-family: var(--sans);
}

.language-engine-page .le-matrix-section table.le-matrix th {
  height: 52px;
  padding: 0 20px;
  border-bottom: 1px solid #dfe3e7;
  background: #f8f9fa;
  color: #8a97a4;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.language-engine-page .le-matrix-section table.le-matrix th:first-child {
  padding-left: 24px;
  border-top-left-radius: 9px;
}

.language-engine-page .le-matrix-section table.le-matrix th:last-child {
  border-top-right-radius: 9px;
  white-space: normal; /* test sets header can wrap */
}

.language-engine-page .le-matrix-section table.le-matrix td {
  height: 68px;
  padding: 14px 20px;
  border-bottom: 1px solid #eff1f3;
  background: #ffffff;
  color: #2a3a46;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.5;
  vertical-align: middle;
}

.language-engine-page .le-matrix-section table.le-matrix td:first-child {
  padding-left: 24px;
  white-space: nowrap; /* keep flag + name on one line */
}

.language-engine-page .le-matrix-section table.le-matrix td:last-child {
  white-space: normal;
  width: 40%; /* constrain test-sets column so language col stays compact */
}

.language-engine-page .le-matrix-section table.le-matrix tr:last-child td {
  border-bottom: 0;
}

.language-engine-page .le-matrix-section table.le-matrix tbody tr:hover td {
  background: #fbfcfd;
}

/* Flag icon */
.language-engine-page .le-matrix-section .le-flag {
  display: inline-flex;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin-right: 10px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #f0f2f4;
  font-size: 16px;
  line-height: 1;
  vertical-align: middle;
}

/* Language name — light weight, no bold */
.language-engine-page .le-matrix-section .le-lang {
  color: #1e2b35;
  font-size: 15px;
  font-weight: 400;
  vertical-align: middle;
  white-space: nowrap;
}

/* Wiz WER badge */
.language-engine-page .le-matrix-section .le-wer-wiz {
  display: inline-flex;
  min-width: 68px;
  height: 30px;
  padding: 0 11px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #e8f4ee;
  color: #27966d;
  font-size: 14.5px;
  font-weight: 400;
  white-space: nowrap;
}

/* Tech Giant WER */
.language-engine-page .le-matrix-section .le-wer-other {
  color: #7a8895;
  font-size: 14.5px;
  font-weight: 400;
}

/* Header info icon + tooltip */
.language-engine-page .le-matrix-section .le-th-info {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: relative;
}

.language-engine-page .le-matrix-section .le-info-icon {
  color: #b0bcc6;
  cursor: pointer;
  position: relative;
}

/* Footnote */
.language-engine-page .le-matrix-section .le-matrix-proof-note {
  width: auto;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8a97a4;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
}

@media (max-width: 760px) {
  .language-engine-page .le-matrix-section .le-matrix-card {
    margin-top: 30px;
  }

  .language-engine-page .le-matrix-section table.le-matrix th {
    height: 44px;
    padding: 8px 10px;
    font-size: 11px;
    white-space: normal;
  }

  .language-engine-page .le-matrix-section table.le-matrix th:first-child,
  .language-engine-page .le-matrix-section table.le-matrix td:first-child {
    padding-left: 10px;
  }

  .language-engine-page .le-matrix-section table.le-matrix td {
    height: auto;
    padding: 10px;
    font-size: 11px;
    line-height: 1.35;
  }

  .language-engine-page .le-matrix-section table.le-matrix td:first-child {
    white-space: normal;
  }

  .language-engine-page .le-matrix-section .le-lang {
    white-space: normal;
  }

  .language-engine-page .le-matrix-section .le-flag {
    width: 24px;
    height: 24px;
    margin-right: 6px;
    font-size: 13px;
  }

  .language-engine-page .le-matrix-section .le-lang,
  .language-engine-page .le-matrix-section .le-wer-other {
    font-size: 11px;
  }

  .language-engine-page .le-matrix-section .le-wer-wiz {
    min-width: 0;
    height: 24px;
    padding: 0 6px;
    font-size: 11px;
  }
}
