/* ATR responsive hero: preserve the complete team photograph on narrow screens. */
@media (min-width: 1101px) {
  /* Keep the headline's starting point identical in every language.
     Longer translations now grow downwards instead of pushing the eyebrow up. */
  .commerce-hero {
    align-items: flex-start;
  }

  .commerce-hero .hero-content {
    width: min(100% - 56px, 1240px);
    padding-block: clamp(64px, 5vw, 76px) 44px;
  }

  /* English and French require more vertical room than Swedish.
     Compact only their desktop copy so the two action buttons remain visible. */
  html[lang="en"] .commerce-hero .hero-content,
  html[lang="fr"] .commerce-hero .hero-content {
    padding-block: clamp(42px, 3.5vw, 54px) 28px;
  }

  html[lang="en"] .commerce-hero h1,
  html[lang="fr"] .commerce-hero h1 {
    max-width: 900px;
    font-size: clamp(42px, 4.2vw, 60px);
    line-height: 1.02;
  }

  html[lang="en"] .commerce-hero .hero-lead,
  html[lang="fr"] .commerce-hero .hero-lead {
    max-width: 700px;
    margin-block: 18px 20px;
    font-size: 17px;
    line-height: 1.42;
  }
}

@media (max-width: 1100px) {
  .commerce-hero {
    display: grid;
    grid-template-rows: auto auto;
    min-height: 0;
    align-items: initial;
    background: var(--ink);
  }

  .commerce-hero .hero-image {
    position: relative;
    inset: auto;
    grid-row: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 1984 / 793;
    object-fit: contain;
    object-position: center;
  }

  .commerce-hero .hero-shade {
    display: none;
  }

  .commerce-hero .hero-content {
    grid-row: 2;
    width: min(100% - 48px, 1240px);
    padding-block: 54px 58px;
    text-shadow: none;
  }

  .commerce-hero .image-note {
    top: calc(100vw * 793 / 1984 - 30px);
    right: 14px;
    bottom: auto;
  }
}

@media (max-width: 760px) {
  .commerce-hero .hero-content {
    width: min(100% - 32px, 1240px);
    padding-block: 38px 46px;
  }

  .commerce-hero h1 {
    max-width: none;
    font-size: clamp(36px, 10.2vw, 48px);
    line-height: 1.02;
  }

  .commerce-hero h1 em {
    display: block;
  }

  .commerce-hero .hero-lead {
    margin: 24px 0 28px;
    font-size: 17px;
    line-height: 1.5;
  }
}
/* Key terms and responsible-sourcing additions */
.content-section[id] { scroll-margin-top: 7rem; }
.content-section .company-link {
  color: #8b6723;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.content-section .company-link:hover,
.content-section .company-link:focus-visible { color: #684b16; }
.content-section .company-link:focus-visible {
  outline: 2px solid #9b7427;
  outline-offset: 3px;
}
.terms-list { display: grid; gap: 0; margin: 1.4rem 0 0; }
.terms-list > div { display: grid; grid-template-columns: minmax(7rem, 0.32fr) 1fr; gap: 1.25rem; padding: 1rem 0; border-top: 1px solid rgba(24, 31, 28, 0.16); }
.terms-list > div:last-child { border-bottom: 1px solid rgba(24, 31, 28, 0.16); }
.terms-list dt { color: #9b7427; font-weight: 700; }
.terms-list dd { margin: 0; }
@media (max-width: 640px) {
  .terms-list > div { grid-template-columns: 1fr; gap: 0.35rem; }
}

/* Clickable value-chain steps */
.trade-flow-grid .trade-step {
  position: relative;
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  border-right: 1px solid #cdd3d6;
  padding: 32px 24px 44px;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}
.trade-flow-grid .trade-step:last-child { border-right: 0; }
.trade-flow-grid .trade-step::after {
  content: "\2197";
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: #9b7427;
  font-weight: 700;
}
.trade-flow-grid .trade-step:hover { background: rgba(181, 139, 56, 0.08); }
.trade-flow-grid .trade-step:focus-visible {
  outline: 2px solid #9b7427;
  outline-offset: -2px;
  background: rgba(181, 139, 56, 0.08);
}
.trade-flow-grid .info-step { cursor: default; }
.trade-flow-grid .info-step::after { content: none; }
.trade-flow-grid .info-step:hover { background: transparent; }
.trade-flow-grid .opitulor-link {
  color: #7a5a13;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Consistent spacing for the footer language selector on every page. */
.footer-bottom > span:last-child,
.footer-bottom > .language-switch:last-child {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-bottom > span:last-child > a,
.footer-bottom > span:last-child > span {
  display: inline-flex;
  margin: 0;
}

@media (max-width: 1100px) {
  .trade-flow-grid .trade-step:nth-child(3) { border-right: 0; }
  .trade-flow-grid .trade-step:nth-child(-n+3) { border-bottom: 1px solid #cdd3d6; }
}
@media (max-width: 760px) {
  .trade-flow-grid .trade-step,
  .trade-flow-grid .trade-step:nth-child(3) {
    border-right: 0;
    border-bottom: 1px solid #cdd3d6;
  }
  .trade-flow-grid .trade-step:last-child { border-bottom: 0; }
}
