/* ==========================================================
   Simphonie Editorial Mega Menu — V2
========================================================== */

/* ==========================================================
   Root
========================================================== */

.sc-mega {
  box-sizing: border-box;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: var(--sc-z-mega);

  width: 100%;

  border-top: 1px solid var(--sc-color-border);

  background: rgb(var(--sc-rgb-secondary-pale) / 0.985);
  box-shadow: 0 26px 70px rgb(var(--sc-rgb-ink) / 0.14);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translate3d(0, -10px, 0);

  transition:
    opacity var(--sc-transition-base),
    transform var(--sc-transition-base),
    visibility var(--sc-transition-base);
}

.sc-mega.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translate3d(0, 0, 0);
}

.sc-mega.is-resizing {
  overflow: clip;
}

.sc-mega *,
.sc-mega *::before,
.sc-mega *::after {
  box-sizing: border-box;
}

/* ==========================================================
   Main Layout
========================================================== */

.sc-mega__inner {
  width: var(--sc-container);
  margin-inline: auto;

  padding:
    clamp(32px, 2.5vw, 58px)
    clamp(22px, 3vw, 72px);

  display: grid;
  grid-template-columns:
    minmax(220px, 1.15fr)
    minmax(150px, 0.78fr)
    minmax(180px, 0.95fr)
    minmax(170px, 0.85fr)
    minmax(260px, 1.35fr);

  align-items: start;

  gap: clamp(22px, 2.25vw, 54px);
}

/* ==========================================================
   Dividers
========================================================== */

.sc-mega__intro,
.sc-mega__column,
.sc-mega__collections,
.sc-mega__promises {
  min-width: 0;

  padding-right: clamp(18px, 1.6vw, 34px);

  border-right: 1px solid rgb(var(--sc-rgb-ink) / 0.11);
}

.sc-mega__visual {
  min-width: 0;
}

/* ==========================================================
   Shared Typography
========================================================== */

.sc-mega__eyebrow,
.sc-mega h3 {
  margin: 0 0 clamp(14px, 1vw, 20px);

  color: var(--sc-color-rose-deep);

  font-size: clamp(10px, 0.58vw, 13px);
  font-weight: var(--sc-font-weight-semibold);
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sc-mega__eyebrow {
  font-family: var(--sc-font-family-body);
}

.sc-mega h3 {
  font-family: var(--sc-font-family-heading);
}

.sc-mega h2 {
  margin: 0 0 clamp(16px, 1.2vw, 24px);

  color: var(--sc-color-ink);

  font-family: var(--sc-font-family-heading);
  font-size: clamp(30px, 2.1vw, 48px);
  font-weight: var(--sc-font-weight-regular);
  line-height: 1.03;
  letter-spacing: -0.025em;
}

/* ==========================================================
   Introduction
========================================================== */

.sc-mega__intro p {
  max-width: 32ch;
  margin: 0;

  color: rgb(var(--sc-rgb-ink) / 0.78);

  font-size: clamp(13px, 0.78vw, 17px);
  line-height: 1.72;
}

/* ==========================================================
   CTA
========================================================== */

.sc-mega__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: clamp(22px, 1.6vw, 32px);
  padding:
    clamp(12px, 0.75vw, 15px)
    clamp(18px, 1.25vw, 28px);

  border: 1px solid rgb(var(--sc-rgb-ink) / 0.08);
  border-radius: var(--sc-radius-pill);

  background: var(--sc-color-border);
  color: var(--sc-color-ink);

  font-size: clamp(10px, 0.58vw, 12px);
  font-weight: var(--sc-font-weight-semibold);
  line-height: 1;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;

  transition:
    background-color var(--sc-transition-fast),
    color var(--sc-transition-fast),
    transform var(--sc-transition-fast);
}

.sc-mega__button:hover {
  background: var(--sc-color-secondary-border);
  color: var(--sc-color-ink);

  transform: translateY(-2px);
}

.sc-mega__button:focus-visible {
  outline: 2px solid var(--sc-color-rose-deep);
  outline-offset: 3px;
}

/* ==========================================================
   Navigation Columns
========================================================== */

/* === Simphonie Mega Menu — liens Produits verticaux === */

/*
 * La colonne contient un titre puis plusieurs liens injectés
 * dynamiquement par megamenu.js.
 *
 * Le conteneur vertical garantit qu'un lien occupe toujours
 * sa propre ligne, quelle que soit la largeur disponible.
 */

.sc-mega__column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sc-mega__column > h3 {
  width: 100%;
}

.sc-mega__column > a {
  flex: 0 0 auto;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.sc-mega__column > a:last-child {
  margin-bottom: 0;
}

/* === Fin Simphonie Mega Menu — liens Produits verticaux === */


.sc-mega__column a {
  position: relative;

  display: inline-flex;
  align-items: center;

  margin: 0 0 clamp(10px, 0.75vw, 16px);

  color: var(--sc-color-ink);

  font-size: clamp(12px, 0.7vw, 15px);
  line-height: 1.45;
  text-decoration: none;

  transition:
    color var(--sc-transition-fast),
    transform var(--sc-transition-fast);
}

.sc-mega__column a:hover {
  color: var(--sc-color-rose-deep);
  transform: translateX(4px);
}

.sc-mega__column a:focus-visible {
  outline: 2px solid var(--sc-color-rose-deep);
  outline-offset: 3px;
}

.sc-mega__highlight {
  color: var(--sc-color-rose-deep) !important;
  font-weight: var(--sc-font-weight-semibold);
}

/* ==========================================================
   Collections
========================================================== */

.sc-mega__collection {
  display: grid;
  grid-template-columns:
    clamp(66px, 4.2vw, 92px)
    minmax(0, 1fr);

  align-items: center;

  gap: clamp(12px, 0.9vw, 18px);

  margin-bottom: clamp(14px, 1.1vw, 22px);

  color: var(--sc-color-ink);
  text-decoration: none;

  transition:
    color var(--sc-transition-fast),
    transform var(--sc-transition-fast);
}

.sc-mega__collection:hover {
  color: var(--sc-color-rose-deep);
  transform: translateX(4px);
}

.sc-mega__collection:focus-visible {
  outline: 2px solid var(--sc-color-rose-deep);
  outline-offset: 4px;
}

.sc-mega__collection img,
.sc-mega__thumb {
  display: block;

  width: clamp(66px, 4.2vw, 92px);
  height: clamp(66px, 4.2vw, 92px);

  overflow: hidden;

  border-radius: clamp(10px, 0.7vw, 16px);

  background: var(--sc-color-border);

  object-fit: cover;

  transition: transform var(--sc-transition-base);
}

.sc-mega__collection:hover img,
.sc-mega__collection:hover .sc-mega__thumb {
  transform: scale(1.035);
}

.sc-mega__collection strong {
  display: block;

  margin-bottom: 4px;

  color: currentColor;

  font-size: clamp(12px, 0.7vw, 15px);
  font-weight: var(--sc-font-weight-semibold);
  line-height: 1.35;
}

.sc-mega__collection span {
  display: block;

  color: rgb(var(--sc-rgb-ink) / 0.64);

  font-size: clamp(11px, 0.6vw, 13px);
  line-height: 1.45;
}

/* ==========================================================
   Promises
========================================================== */

.sc-mega__promises div {
  margin-bottom: clamp(18px, 1.35vw, 28px);
}

.sc-mega__promises div:last-child {
  margin-bottom: 0;
}

.sc-mega__promises strong {
  display: block;

  margin-bottom: 5px;

  color: var(--sc-color-ink);

  font-size: clamp(12px, 0.72vw, 15px);
  font-weight: var(--sc-font-weight-semibold);
  line-height: 1.4;
}

.sc-mega__promises span {
  display: block;

  color: rgb(var(--sc-rgb-ink) / 0.58);

  font-size: clamp(11px, 0.64vw, 14px);
  line-height: 1.5;
}

/* ==========================================================
   Editorial Visual
========================================================== */

.sc-mega__visual {
  position: relative;
  contain: size;
  aspect-ratio: auto;
  align-self: stretch;
  width: 100%;

  overflow: hidden;

  border-radius: clamp(16px, 1.2vw, 24px);

  background: var(--sc-color-border);
}

.sc-mega__visual img {
  position: absolute;
  inset: 0;
  display: block;

  width: 100%;
  height: 100%;
  aspect-ratio: auto;

  object-fit: cover;
  object-position: center;

  transition: transform var(--sc-transition-slow);
}

.sc-mega__visual:hover img {
  transform: scale(1.025);
}

/* ==========================================================
   Large Desktop
========================================================== */

@media (min-width: 1800px) {
  .sc-mega__inner {
    width: min(96vw, var(--sc-container-max));

    grid-template-columns:
      minmax(250px, 1.15fr)
      minmax(175px, 0.78fr)
      minmax(210px, 0.95fr)
      minmax(195px, 0.85fr)
      minmax(320px, 1.4fr);
  }
}

/* ==========================================================
   Compact Desktop
========================================================== */

@media (max-width: 1320px) {
  .sc-mega__inner {
    width: 96vw;

    grid-template-columns:
      minmax(210px, 1.15fr)
      minmax(145px, 0.8fr)
      minmax(170px, 0.95fr)
      minmax(240px, 1.25fr);

    gap: 24px;
    padding: 34px 28px;
  }

  /*
   * Sur cette largeur, les engagements passent sous
   * les colonnes principales afin d’éviter de tout compresser.
   */
  .sc-mega__promises {
    grid-column: 1 / 4;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 22px;

    padding-top: 24px;
    padding-right: 0;

    border-top: 1px solid rgb(var(--sc-rgb-ink) / 0.11);
    border-right: 0;
  }

  .sc-mega__promises div {
    margin-bottom: 0;
  }

  .sc-mega__visual {
    grid-column: 4;
    grid-row: 1 / span 2;
  }
}

/* ==========================================================
   Tablet Protection
========================================================== */

@media (max-width: 1100px) {
  .sc-mega__inner {
    grid-template-columns:
      minmax(210px, 1.05fr)
      minmax(150px, 0.75fr)
      minmax(210px, 1fr);

    overflow-y: auto;
    max-height: calc(100vh - 150px);
  }

  .sc-mega__collections {
    padding-right: 0;
    border-right: 0;
  }

  .sc-mega__promises {
    grid-column: 1 / -1;
  }

  .sc-mega__visual {
    display: none;
  }
}

/* ==========================================================
   Mobile
========================================================== */

@media (max-width: 767px), (orientation: portrait) and (max-width: 1024px), (orientation: landscape) and (max-width: 1024px) and (max-height: 520px) {
  .sc-mega {
    display: none;
    position: static;
    width: 100%;
    max-height: none;
    overflow: visible;
    background:
      linear-gradient(
        180deg,
        rgb(var(--sc-rgb-primary) / 0.075) 0%,
        rgb(var(--sc-rgb-surface) / 0.56) 100%
      );
    border-top: 1px solid rgb(var(--sc-rgb-primary) / 0.12);
    box-shadow: inset 0 8px 18px rgb(var(--sc-rgb-primary) / 0.025);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .sc-mega.is-open {
    display: block;
  }

  .sc-mega__inner {
    display: block;
    width: 100%;
    max-height: min(62dvh, 620px);
    margin: 0;
    padding: 24px 18px 28px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .sc-mega__intro,
  .sc-mega__column,
  .sc-mega__collections,
  .sc-mega__promises {
    width: 100%;
    padding: 0 0 22px;
    margin: 0 0 22px;
    border-right: 0;
    border-bottom: 1px solid rgb(var(--sc-rgb-ink) / 0.1);
  }

  .sc-mega__promises {
    display: block;
    border-bottom: 0;
  }

  .sc-mega__visual {
    display: none;
  }

  .sc-mega h2 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .sc-mega__column a {
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid rgb(var(--sc-rgb-ink) / 0.07);
  }

  .sc-mega__collection {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 70px;
    margin: 0;
    padding: 7px 0;
    border-bottom: 1px solid rgb(var(--sc-rgb-ink) / 0.07);
  }

  .sc-mega__collection img,
  .sc-mega__thumb {
    width: 54px;
    height: 54px;
    border-radius: 10px;
  }
}

/* ==========================================================
   Reduced Motion
========================================================== */

@media (prefers-reduced-motion: reduce) {
  .sc-mega,
  .sc-mega__button,
  .sc-mega__column a,
  .sc-mega__collection,
  .sc-mega__collection img,
  .sc-mega__thumb,
  .sc-mega__visual img {
    transition: none;
  }
}

/* Simphonie mega menu interaction color guard */
.sc-mega a:hover,
.sc-mega a:focus {
  color: var(--sc-color-primary-deep) !important;
  text-decoration: none;
}

.sc-mega a:focus:not(:focus-visible) {
  outline: 0;
}

.sc-mega a:focus-visible {
  outline: 2px solid var(--sc-color-focus);
  outline-offset: 3px;
}

.sc-mega .sc-mega__button:hover,
.sc-mega .sc-mega__button:focus {
  color: var(--sc-color-ink) !important;
}

.sc-mega .sc-mega__column a:hover,
.sc-mega .sc-mega__column a:focus,
.sc-mega .sc-mega__collection:hover,
.sc-mega .sc-mega__collection:focus {
  color: var(--sc-color-primary-deep) !important;
}

.sc-mega .sc-mega__visual:hover,
.sc-mega .sc-mega__visual:focus {
  color: var(--sc-color-ink) !important;
}
/* End Simphonie mega menu interaction color guard */

/* ==========================================================
   Simphonie configurable mega menu builder
========================================================== */
.sc-mega .sc-mega__inner--builder {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: var(--sctc-megamenu-gap, clamp(18px, 1.6vw, 34px));
  width: min(94vw, var(--sctc-megamenu-max, var(--sc-container-max)));
}

.sc-mega-builder__column {
  grid-column: span var(--sc-mega-column-span, 3);
  min-width: 0;
  height: 100%;
  padding-right: clamp(12px, 1.2vw, 26px);
  border-right: 1px solid rgb(var(--sc-rgb-ink) / 0.1);
}

.sc-mega-builder__column:last-child {
  padding-right: 0;
  border-right: 0;
}

.sc-mega .sc-mega-builder__column--visual,
.sc-mega .sc-mega__inner--builder:has(> .sc-mega-builder__column:nth-child(5):last-child) > .sc-mega-builder__column:last-child {
  position: relative;
  contain: size;
  height: auto;
  min-height: 0;
  width: 100%;
  aspect-ratio: auto;
  align-self: stretch;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: clamp(16px, 1.2vw, 24px);
  background: var(--sc-color-border);
}

.sc-mega .sc-mega-builder__column--visual .sc-mega-builder__image,
.sc-mega .sc-mega__inner--builder:has(> .sc-mega-builder__column:nth-child(5):last-child) > .sc-mega-builder__column:last-child .sc-mega-builder__image {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
  margin: 0;
  border-radius: 0;
}

.sc-mega .sc-mega-builder__column--visual .sc-mega-builder__image img,
.sc-mega .sc-mega__inner--builder:has(> .sc-mega-builder__column:nth-child(5):last-child) > .sc-mega-builder__column:last-child .sc-mega-builder__image img {
  height: 100%;
  min-height: 0;
  max-height: 100%;
  aspect-ratio: auto;
}

.sc-mega .sc-mega-builder__column-title {
  margin: 0 0 clamp(14px, 1vw, 20px);
  color: var(--sc-color-rose-deep);
  font-family: var(--sc-font-family-heading);
  font-size: clamp(10px, 0.58vw, 13px);
  font-weight: var(--sc-font-weight-semibold);
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sc-mega [data-sc-mega-column="formations-column-1"] > :is(
  .sc-mega-builder__column-title,
  .sc-mega-builder__compact-heading
) {
  color: #1f1b18 !important;
}

.sc-header .sc-nav__item > [data-sc-mega="formations"] {
  color: #1f1b18 !important;
}

.sc-header .sc-nav__item > [data-sc-mega="formations"]:hover,
.sc-header .sc-nav__item > [data-sc-mega="formations"]:focus-visible,
.sc-header .sc-nav__item > [data-sc-mega="formations"][aria-expanded="true"] {
  color: var(--sc-color-rose-deep) !important;
}

.sc-mega .sc-mega-builder__title {
  margin: 0 0 clamp(12px, 1vw, 20px);
  color: var(--sc-color-ink);
  font-family: var(--sc-font-family-heading);
  font-weight: var(--sc-font-weight-regular);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-transform: none;
}

.sc-mega .sc-mega-builder__title--h2 {
  font-size: clamp(28px, 2vw, 46px);
}

.sc-mega .sc-mega-builder__title--h3 {
  font-size: clamp(20px, 1.35vw, 30px);
}

.sc-mega .sc-mega-builder__title--h4 {
  font-family: var(--sc-font-family-heading);
  font-size: clamp(13px, 0.8vw, 17px);
  font-weight: var(--sc-font-weight-semibold);
  letter-spacing: 0;
}

.sc-mega-builder__text {
  margin: 0 0 clamp(14px, 1.1vw, 22px);
  color: rgb(var(--sc-rgb-ink) / 0.66);
  font-size: clamp(12px, 0.72vw, 15px);
  line-height: 1.7;
}

.sc-mega-builder__link {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
  color: var(--sc-color-ink);
  text-decoration: none;
}

.sc-mega-builder__link--text {
  padding: 4px 0;
  font-size: clamp(12px, 0.72vw, 15px);
}

.sc-mega-builder__link--button {
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  margin-top: 18px;
  padding: 10px 18px;
  border: 1px solid var(--sc-color-secondary-border);
  border-radius: var(--sc-radius-pill);
  background: var(--sc-color-secondary);
  font-size: clamp(11px, 0.66vw, 14px);
  font-weight: var(--sc-font-weight-semibold);
}

.sc-mega-builder__link--card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: clamp(11px, 0.66vw, 14px);
  font-weight: var(--sc-font-weight-semibold);
}

.sc-mega-builder__link--card:not(:has(img)):not(:has(.sc-mega-builder__thumb))::before {
  content: '';
  display: block;
  width: clamp(52px, 3.4vw, 76px);
  height: clamp(52px, 3.4vw, 76px);
  flex: 0 0 auto;
  border-radius: var(--sc-radius-sm);
  background: var(--sc-color-border);
}

.sc-mega-builder__link img,
.sc-mega-builder__thumb {
  display: block;
  width: clamp(52px, 3.4vw, 76px);
  height: clamp(52px, 3.4vw, 76px);
  flex: 0 0 auto;
  border-radius: var(--sc-radius-sm);
  background: var(--sc-color-border);
  object-fit: cover;
}

.sc-mega-builder__link-content {
  display: block;
  min-width: 0;
}

.sc-mega-builder__link-content strong,
.sc-mega-builder__link-content small {
  display: block;
}

.sc-mega-builder__link-content strong {
  margin-bottom: 4px;
  line-height: 1.35;
}

.sc-mega-builder__link-content small {
  color: rgb(var(--sc-rgb-ink) / 0.64);
  font-size: clamp(11px, 0.6vw, 13px);
  font-weight: var(--sc-font-weight-regular);
  line-height: 1.45;
}

.sc-mega-builder__image {
  display: block;
  overflow: hidden;
  margin-bottom: 14px;
  border-radius: var(--sc-radius-md);
  color: var(--sc-color-ink);
  text-decoration: none;
}

.sc-mega-builder__image img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  transition: transform var(--sc-transition-base);
}

.sc-mega-builder__image:hover img {
  transform: scale(1.025);
}

.sc-mega-builder__image span {
  display: block;
  padding: 10px 2px 0;
  font-size: clamp(11px, 0.66vw, 14px);
  font-weight: var(--sc-font-weight-semibold);
}

.sc-mega-builder__spacer {
  display: block;
}

@media (max-width: 1100px) {
  .sc-mega .sc-mega__inner--builder {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    max-height: calc(100vh - 150px);
    overflow-y: auto;
  }

  .sc-mega-builder__column {
    padding-right: 12px;
  }

  .sc-mega-builder__column--visual,
  .sc-mega .sc-mega__inner--builder:has(> .sc-mega-builder__column:nth-child(5):last-child) > .sc-mega-builder__column:last-child {
    display: none;
  }
}

@media (max-width: 767px), (orientation: portrait) and (max-width: 1024px), (orientation: landscape) and (max-width: 1024px) and (max-height: 520px) {
  .sc-mega .sc-mega__inner--builder {
    display: block;
    width: 100%;
    max-height: min(62dvh, 620px);
    margin: 0;
    padding: 20px 18px 28px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .sc-mega .sc-mega-builder__column {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0 0 20px;
    margin: 0 0 20px;
    border-right: 0;
    border-bottom: 1px solid rgb(var(--sc-rgb-ink) / 0.1);
  }

  .sc-mega .sc-mega-builder__column:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
  }

  .sc-mega .sc-mega-builder__column--visual,
  .sc-mega .sc-mega__inner--builder:has(> .sc-mega-builder__column:nth-child(5):last-child) > .sc-mega-builder__column:last-child {
    display: none;
  }

  .sc-mega .sc-mega-builder__column-title {
    margin-bottom: 10px;
    font-size: 10px;
  }

  .sc-mega .sc-mega-builder__title--h2 {
    font-size: clamp(27px, 8.5vw, 38px);
  }

  .sc-mega .sc-mega-builder__title--h3 {
    font-size: 23px;
  }

  .sc-mega .sc-mega-builder__link {
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid rgb(var(--sc-rgb-ink) / 0.07);
  }

  .sc-mega .sc-mega-builder__link--button {
    width: fit-content;
    min-height: 44px;
    margin-top: 12px;
    padding: 10px 18px;
    border: 1px solid var(--sc-color-secondary-border);
  }

  .sc-mega .sc-mega-builder__link--card {
    min-height: 70px;
  }

  .sc-mega .sc-mega-builder__link img,
  .sc-mega .sc-mega-builder__thumb {
    width: 54px;
    height: 54px;
  }

  .sc-mega .sc-mega-builder__spacer {
    display: none;
  }
}

/* Mobile: text links only, without thumbnails or editorial blocks. */

@media (max-width: 767px), (orientation: portrait) and (max-width: 1024px), (orientation: landscape) and (max-width: 1024px) and (max-height: 520px) {
  .sc-mega .sc-mega__inner--compact-list {
    display: block;
    max-height: min(62dvh, 560px);
    padding: 10px 12px 14px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .sc-mega-builder__compact-list {
    display: grid;
    gap: 7px;
    width: min(calc(100% - 8px), 680px);
    margin-inline: auto;
  }

  .sc-mega .sc-mega-builder__compact-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 38px;
    color: var(--sc-color-ink);
    font-family: var(--sc-font-family-heading);
    font-size: clamp(12px, 2.35vw, 16px);
    font-weight: var(--sc-font-weight-regular);
    line-height: 1.4;
    letter-spacing: 0.01em;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
    background: rgb(var(--sc-rgb-surface) / 0.82);
    border: 1px solid rgb(var(--sc-rgb-primary) / 0.13);
    border-left: 3px solid rgb(var(--sc-rgb-primary) / 0.48);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgb(var(--sc-rgb-ink) / 0.025);
    transition:
      color var(--sc-transition-fast),
      background-color var(--sc-transition-fast),
      border-color var(--sc-transition-fast),
      transform var(--sc-transition-fast);
  }

  .sc-mega .sc-mega-builder__compact-link::after {
    position: absolute;
    top: 50%;
    right: 17px;
    width: 7px;
    height: 7px;
    content: "";
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    opacity: 0.58;
    transform: translateY(-50%) rotate(45deg);
  }

  .sc-mega .sc-mega-builder__compact-link:hover,
  .sc-mega .sc-mega-builder__compact-link:focus-visible {
    color: var(--sc-color-primary-deep);
    background: rgb(var(--sc-rgb-primary) / 0.12);
    border-color: rgb(var(--sc-rgb-primary) / 0.28);
    transform: translateX(2px);
  }

  .sc-mega__inner {
    max-height: min(62dvh, 560px);
    padding: 8px 16px 18px;
  }

  .sc-mega__promises,
  .sc-mega__visual {
    display: none;
  }

  .sc-mega__intro,
  .sc-mega__column,
  .sc-mega__collections {
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
  }

  .sc-mega__intro > :not(.sc-mega__button),
  .sc-mega__column > h3,
  .sc-mega__collections > h3 {
    display: none;
  }

  .sc-mega__button,
  .sc-mega__column a,
  .sc-mega__collection {
    display: block;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 13px 2px;
    color: var(--sc-color-ink);
    font-size: 14px;
    line-height: 1.4;
    border-bottom: 1px solid rgb(var(--sc-rgb-ink) / 0.08);
    transform: none;
  }

  .sc-mega__button {
    text-transform: none;
    border-radius: 0;
  }

  .sc-mega__collection:last-child {
    border-bottom: 0;
  }

  .sc-mega__collection > img,
  .sc-mega__collection > .sc-mega__thumb,
  .sc-mega__collection .sc-mega__thumb,
  .sc-mega__thumb {
    display: none;
  }

  .sc-mega__collection strong,
  .sc-mega__collection span {
    display: inline;
  }

  .sc-mega__collection strong {
    margin: 0;
  }

  .sc-mega__collection strong::after {
    content: " — ";
  }

  .sc-mega__column + .sc-mega__collections {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid rgb(var(--sc-rgb-ink) / 0.12);
  }

  .sc-mega .sc-mega__inner--builder {
    display: block;
    max-height: min(62dvh, 560px);
    padding: 8px 16px 18px;
  }

  .sc-mega .sc-mega-builder__column {
    display: none;
  }

  .sc-mega .sc-mega-builder__column--links {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .sc-mega .sc-mega-builder__column--links .sc-mega-builder__column-title,
  .sc-mega .sc-mega-builder__column--links .sc-mega-builder__title,
  .sc-mega .sc-mega-builder__column--links .sc-mega-builder__text,
  .sc-mega .sc-mega-builder__column--links .sc-mega-builder__spacer,
  .sc-mega .sc-mega-builder__column--links .sc-mega-builder__image {
    display: none;
  }

  .sc-mega .sc-mega-builder__link img,
  .sc-mega .sc-mega-builder__thumb {
    display: none;
  }

  .sc-mega .sc-mega-builder__link,
  .sc-mega .sc-mega-builder__link--button,
  .sc-mega .sc-mega-builder__link--card,
  .sc-mega .sc-mega-builder__link--text {
    display: block;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 13px 2px;
    color: var(--sc-color-ink);
    font-size: 14px;
    font-weight: var(--sc-font-weight-medium);
    line-height: 1.4;
    text-align: left;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgb(var(--sc-rgb-ink) / 0.08);
    border-radius: 0;
  }

  .sc-mega .sc-mega-builder__link-content strong,
  .sc-mega .sc-mega-builder__link-content small {
    display: inline;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
  }

  .sc-mega .sc-mega-builder__link-content strong {
    margin: 0;
  }

  .sc-mega .sc-mega-builder__link-content strong + small::before {
    content: " — ";
  }
}

@media (max-width: 767px), (orientation: portrait) and (max-width: 1024px), (orientation: landscape) and (max-width: 1024px) and (max-height: 520px) {
  .sc-mega .sc-mega__inner--compact-list {
    width: 100%;
    padding-inline: 0;
  }

  .sc-mega-builder__compact-list {
    width: 100%;
    max-width: none;
    margin-inline: auto;
  }

  .sc-mega .sc-mega-builder__compact-link {
    width: 100%;
    margin-inline: auto;
  }
}

/* Intermediate desktop/tablet landscape: reclaim the visual column. */

@media (min-width: 1025px) and (max-width: 1100px), (orientation: landscape) and (min-width: 768px) and (max-width: 1100px) and (min-height: 521px) {
  .sc-mega .sc-mega__inner--builder {
    width: 96vw;
    max-height: calc(100dvh - 132px);
    padding: clamp(24px, 3vw, 34px) clamp(20px, 3vw, 38px);
    column-gap: clamp(20px, 2.6vw, 32px);
    row-gap: clamp(28px, 3.4vw, 42px);
  }

  .sc-mega .sc-mega-builder__column--visual {
    display: none;
  }

  .sc-mega .sc-mega-builder__column:not(.sc-mega-builder__column--visual) {
    height: auto;
    min-width: 0;
  }

  /* Four content columns + one hidden visual: 4 × 3 = 12. */
  .sc-mega .sc-mega__inner--builder:has(> .sc-mega-builder__column--visual:nth-child(5):last-child)
    > .sc-mega-builder__column:not(.sc-mega-builder__column--visual) {
    grid-column: span 3;
  }

  /* Three content columns + one hidden visual: 3 × 4 = 12. */
  .sc-mega .sc-mega__inner--builder:has(> .sc-mega-builder__column--visual:nth-child(4):last-child)
    > .sc-mega-builder__column:not(.sc-mega-builder__column--visual) {
    grid-column: span 4;
  }

  .sc-mega .sc-mega-builder__column:not(.sc-mega-builder__column--visual):has(+ .sc-mega-builder__column--visual) {
    padding-right: 0;
    border-right: 0;
  }
}

/* Narrow intermediate width: balanced rows before compact navigation. */

@media (orientation: landscape) and (min-width: 768px) and (max-width: 900px) and (min-height: 521px) {
  .sc-mega .sc-mega__inner--builder:has(> .sc-mega-builder__column--visual:nth-child(5):last-child)
    > .sc-mega-builder__column:not(.sc-mega-builder__column--visual) {
    grid-column: span 6;
  }

  .sc-mega .sc-mega__inner--builder:has(> .sc-mega-builder__column--visual:nth-child(5):last-child)
    > .sc-mega-builder__column:nth-child(2n) {
    padding-right: 0;
    border-right: 0;
  }

  .sc-mega .sc-mega__inner--builder:has(> .sc-mega-builder__column--visual:nth-child(4):last-child)
    > .sc-mega-builder__column:not(.sc-mega-builder__column--visual) {
    grid-column: span 6;
  }

  .sc-mega .sc-mega__inner--builder:has(> .sc-mega-builder__column--visual:nth-child(4):last-child)
    > .sc-mega-builder__column:first-child {
    grid-column: 1 / -1;
    padding-right: 0;
    border-right: 0;
  }
}
