main:has(.corporate-wiki-page) {
  background: #ffffff;
}

.corporate-wiki-page {
  --cw-red: #FD3D55;
  --cw-blue: #3FA9F5;
  --cw-text: #000000;
  --cw-line: #949397;
  background: #ffffff;
  color: var(--cw-text);
  padding-bottom: 0;
}

.corporate-wiki-page h1,
.corporate-wiki-page h2,
.corporate-wiki-page h3 {
  font-family: "Frutiger 45 Light", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
}

.cw-hero {
  text-align: center;
  padding: 2.4rem 1.5rem 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.cw-hero h1 {
  color: var(--cw-blue);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.25;
  margin: 0 0 1.6rem;
}

.cw-explore-btn {
  display: inline-block;
  padding: 0.6rem 2.4rem 0.3rem 2.4rem;
  border: 1px solid #525255;
  border-radius: 8px;
  color: var(--cw-red);
  font-size: 1.5rem;
  text-decoration: none;
  font-weight: bold;
  font-family: "Frutiger Bold", "Helvetica Neue", Arial, sans-serif;
  transition: border-color 0.2s, color 0.2s;
}

.cw-explore-btn:hover {
  border-color: var(--cw-red);
  color: var(--cw-red);
  text-decoration: none;
}

.cw-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 1.35fr) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  align-items: start;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem 0 2rem;
}

.cw-col-heading {
  color: var(--cw-blue);
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  margin: 0 0 1.75rem;
  line-height: 1.3;
}

.cw-block {
  margin-bottom: 1.75rem;
}

.cw-block:last-child {
  margin-bottom: 0;
}

.cw-block-title {
  color: var(--cw-blue);
  font-size: 1.45rem;
  margin: 0 0 0.6rem;
  line-height: 1.35;
}

.cw-block-body-wrap {
  position: relative;
  margin: 0 0 0.85rem;
}

.cw-block-body {
  color: var(--cw-text);
  font-size: 1.35rem;
  line-height: 1.55;
  margin: 0;
}

.cw-block:not(.is-expanded):not(.cw-block--short) .cw-block-body-wrap {
  max-height: calc(1.35rem * 1.55 * 1.9);
  overflow: hidden;
}

.cw-block.is-expanded .cw-block-body-wrap,
.cw-block--short .cw-block-body-wrap {
  max-height: none;
  overflow: visible;
}

.cw-block-fade {
  display: none;
  pointer-events: none;
}

.cw-block:not(.is-expanded):not(.cw-block--short) .cw-block-fade {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(1.35rem * 1.55 * 0.58);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 35%,
    rgba(255, 255, 255, 0.92) 72%,
    #ffffff 100%
  );
}

.cw-block-body--measure {
  max-height: none !important;
  overflow: visible !important;
}

.cw-block-footer {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 0.15rem;
}

.cw-image-wrap {
  justify-content: space-between;
  height: 100%;
}

.cw-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--cw-line);
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cw-toggle-btn:hover {
  border-color: #b8b8b8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cw-toggle-btn:focus {
  outline: none;
}

.cw-toggle-btn:focus-visible {
  outline: 2px solid var(--cw-blue);
  outline-offset: 2px;
}

.cw-toggle-btn svg {
  display: block;
  transition: transform 0.2s ease;
}

.cw-block.is-expanded .cw-toggle-btn svg {
  transform: rotate(180deg);
}

.cw-block--short .cw-block-footer {
  display: none;
}

.cw-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: sticky;
  top: 1rem;
}

.cw-main-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
}

.cw-ribbon-wrap {
  width: 100%;
  max-width: 640px;
  margin-top: 1rem;
}

.cw-ribbon-wrap--mobile-only {
  display: none;
}

.cw-ribbon-img {
  width: 100%;
  height: auto;
  display: block;
}

.cw-bottom-strip {
  width: 100%;
  height: 30px;
  background: var(--cw-red);
  position: relative;
}

.cw-explore-btn-mobile {
  display: none;
}

@media (max-width: 991px) {
  .cw-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cw-center {
    position: static;
    order: 1;
  }

  .cw-challenges {
    order: 2;
  }

  .cw-solutions {
    order: 3;
  }

  .cw-center .cw-ribbon-wrap {
    display: none;
  }

  .cw-ribbon-wrap--mobile-only {
    display: block;
    max-width: 100%;
  }

  .cw-explore-btn-mobile {
    display: block;
    max-width: fit-content;
    margin: 2rem auto;

  }
}
