.legacy-application {
  background: var(--paper);
  color: var(--ink);
}

.legacy-source .elementor-inner,
.legacy-source .elementor-section-wrap,
.legacy-source .elementor-widget-wrap {
  min-width: 0;
}

.legacy-source .elementor-section {
  padding: 64px 0;
}

.legacy-source .elementor-top-section:first-child {
  position: relative;
  overflow: hidden;
  background: var(--identity-gradient);
  color: white;
}

.legacy-source .elementor-top-section:first-child::after {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(230, 235, 248, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 235, 248, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  pointer-events: none;
}

.legacy-source .elementor-top-section:nth-child(4n + 2) { background: var(--paper-soft); }
.legacy-source .elementor-top-section:nth-child(4n) { background: var(--warm); }

.legacy-source .elementor-container {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), var(--shell));
  margin: 0 auto;
}

.legacy-source .elementor-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.legacy-source .elementor-column {
  min-width: 0;
  padding: 16px;
}

.legacy-source .elementor-col-100 { width: 100%; }
.legacy-source .elementor-col-66 { width: 66.666%; }
.legacy-source .elementor-col-50 { width: 50%; }
.legacy-source .elementor-col-33 { width: 33.333%; }
.legacy-source .elementor-col-25 { width: 25%; }
.legacy-source .elementor-col-20 { width: 20%; }
.legacy-source .elementor-col-16 { width: 16.666%; }

.legacy-source .elementor-widget + .elementor-widget { margin-top: 18px; }
.legacy-source .elementor-widget-spacer,
.legacy-source .elementor-widget-menu-anchor { display: none; }
.legacy-source .elementor-shape { display: none; }

.legacy-source h2,
.legacy-source h3,
.legacy-source h4,
.legacy-source h5,
.legacy-source h6 {
  margin: 0 0 14px;
  color: var(--navy);
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: 0;
}

.legacy-source h2 { font-size: clamp(34px, 4vw, 54px); }
.legacy-source h3 { font-size: clamp(28px, 3vw, 40px); }
.legacy-source h4 { font-size: clamp(23px, 2.4vw, 32px); }
.legacy-source h5,
.legacy-source h6 { font-size: 17px; line-height: 1.5; }
.legacy-source p,
.legacy-source li { color: var(--ink-soft); font-size: 16px; line-height: 1.65; }
.legacy-source p:last-child { margin-bottom: 0; }
.legacy-source ul,
.legacy-source ol { padding-left: 24px; }
.legacy-source li[style*="list-style-type: none"] > ul { padding-left: 0; }

.legacy-source .elementor-top-section:first-child h2,
.legacy-source .elementor-top-section:first-child h3,
.legacy-source .elementor-top-section:first-child h4,
.legacy-source .elementor-top-section:first-child h5,
.legacy-source .elementor-top-section:first-child h6,
.legacy-source .elementor-top-section:first-child p,
.legacy-source .elementor-top-section:first-child span {
  color: white !important;
}

.legacy-source img,
.legacy-source video {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 620px;
  margin-inline: auto;
  object-fit: contain;
}

.legacy-source video {
  width: 100%;
  background: var(--navy);
}

.legacy-source figure { margin: 0; }
.legacy-source figcaption {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
}

.legacy-source .swiper-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 18px;
  transform: none !important;
}

.legacy-source .elementor-top-section:first-child .swiper-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.legacy-source .elementor-top-section:first-child .swiper-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.legacy-source .swiper-slide {
  width: auto !important;
  padding: 14px;
  border: 1px solid var(--line);
  background: white;
}

.legacy-source .swiper-pagination,
.legacy-source .elementor-swiper-button { display: none; }

.legacy-source .elementor-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 4px;
  background: var(--navy);
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.legacy-source table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.legacy-source th,
.legacy-source td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legacy-archive {
  padding: 72px 0;
  background: var(--paper-soft);
}

.legacy-archive__heading {
  width: min(calc(100% - 48px), var(--shell));
  margin: 0 auto 32px;
}

.legacy-archive__heading h2 { margin-bottom: 12px; }
.legacy-archive__heading p { max-width: 70ch; color: var(--ink-soft); }

.legacy-source--media-only .elementor-widget:not(.elementor-widget-image):not(.elementor-widget-video):not(.elementor-widget-image-carousel),
.legacy-source--media-only .elementor-section:not(:has(img, video)) {
  display: none;
}

.legacy-source--media-only .elementor-section {
  padding: 20px 0;
  background: transparent !important;
}

.legacy-source--media-only .elementor-top-section:first-child::after { display: none; }

@media (max-width: 860px) {
  .legacy-source .elementor-col-66,
  .legacy-source .elementor-col-50,
  .legacy-source .elementor-col-33,
  .legacy-source .elementor-col-25,
  .legacy-source .elementor-col-20,
  .legacy-source .elementor-col-16 { width: 100%; }
  .legacy-source .elementor-section { padding: 48px 0; }
}

@media (max-width: 520px) {
  .legacy-source .elementor-container,
  .legacy-archive__heading { width: min(calc(100% - 32px), var(--shell)); }
  .legacy-source .elementor-column { padding: 10px 0; }
  .legacy-source h2 { font-size: 34px; }
  .legacy-source h3 { font-size: 28px; }
  .legacy-source h4 { font-size: 23px; }
}
