/* Marketplace Profile shared editorial discovery canvas.
 * Shared by the homepage and category landing pages. Each section is one integrated canvas:
 * editorial image, story and supplier photography share a single visual system.
 * Internal image groups use a soft shared gutter so the pastel editorial panels have clear separation.
 */

body.editorial-landing-page {
  --mp-editorial-divider-gap: clamp(70px, 4.75vw, 88px);
  --mp-editorial-stack-gap: var(--mp-editorial-divider-gap);
  --mp-editorial-pair-gap: var(--mp-editorial-divider-gap);
  --mp-editorial-inner-gap: 9px;
  --mp-editorial-radius: 18px;
  --mp-editorial-canvas-bg: var(--mp-color-surface);
  --mp-editorial-canvas-gap: var(--mp-color-surface-muted);
}

.mp-editorial {
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--mp-color-text);
  font-family: var(--mp-font-sans);
  text-align: left;
}

.mp-editorial__stack {
  display: grid;
  gap: 0;
  width: 100%;
}

.mp-editorial__pair {
  display: grid;
  min-width: 0;
  gap: 0;
  align-items: stretch;
}

.mp-editorial__pair--wide-first {
  grid-template-columns: minmax(0, 1.08fr) var(--mp-editorial-pair-gap) minmax(0, 0.92fr);
}

.mp-editorial__pair--wide-second {
  grid-template-columns: minmax(0, 0.92fr) var(--mp-editorial-pair-gap) minmax(0, 1.08fr);
}

.mp-editorial__pair--balanced {
  grid-template-columns: minmax(0, 1fr) var(--mp-editorial-pair-gap) minmax(0, 1fr);
}



/* Editorial separators. One shared divider-gap token controls both the
   horizontal chapter spacing and the space around paired desktop dividers,
   so every rule has the same measured breathing room in either direction. */
.mp-editorial__divider {
  display: flex;
  min-width: 0;
  min-height: 0;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.mp-editorial__divider--stack {
  width: 100%;
  height: var(--mp-editorial-stack-gap);
}

.mp-editorial__divider--pair {
  width: 100%;
  height: 100%;
}

.mp-editorial__divider > span {
  display: block;
  background: var(--mp-color-border-strong);
}

.mp-editorial__divider--stack > span {
  width: 100%;
  height: 1px;
  opacity: 0.26;
}

.mp-editorial__divider--pair > span {
  width: 1px;
  height: calc(100% - 28px);
  max-height: 520px;
  opacity: 0.36;
}

/* Category canvas ------------------------------------------------------- */

.mp-editorial-category {
  --mp-editorial-story-bg: color-mix(in srgb, var(--mp-editorial-accent, #657080) 11%, #ffffff 89%);
  --mp-editorial-supplier-bg: color-mix(in srgb, var(--mp-editorial-accent, #657080) 4%, var(--mp-editorial-canvas-gap));

  position: relative;
  display: grid;
  min-width: 0;
  overflow: hidden;
  gap: var(--mp-editorial-inner-gap);
  border: 1px solid color-mix(in srgb, var(--mp-editorial-accent, #657080) 24%, var(--mp-color-border-strong));
  border-radius: var(--mp-editorial-radius);
  background: var(--mp-editorial-supplier-bg);
  box-shadow: none;
  isolation: isolate;
}

.mp-editorial-category--feature {
  height: clamp(425px, 25.5vw, 485px);
}

.mp-editorial-category--compact {
  height: clamp(460px, 27vw, 520px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.mp-editorial-category--rhythm-chapter {
  margin-top: clamp(10px, 1.25vw, 20px);
}

.mp-editorial-category--feature.mp-editorial-category--photo-left {
  grid-template-columns: minmax(0, 1.56fr) minmax(240px, 0.8fr) minmax(0, 1.08fr);
  grid-template-areas: "visual story suppliers";
}

.mp-editorial-category--feature.mp-editorial-category--photo-middle {
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.56fr) minmax(0, 1.08fr);
  grid-template-areas: "story visual suppliers";
}

.mp-editorial-category--feature.mp-editorial-category--photo-right {
  grid-template-columns: minmax(0, 1.08fr) minmax(240px, 0.8fr) minmax(0, 1.56fr);
  grid-template-areas: "suppliers story visual";
}

.mp-editorial-category--feature.mp-editorial-category--suppliers-left {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.56fr) minmax(240px, 0.8fr);
  grid-template-areas: "suppliers visual story";
}

/* Homepage country spotlights are authoritative full-width chapters, never
   paired compact cards. They reuse the same component system but get their own
   composition so country discovery reads differently from industry discovery. */
.mp-editorial-category--country-feature {
  --mp-editorial-story-bg: color-mix(in srgb, var(--mp-editorial-accent) 15%, #ffffff 85%);
  --mp-editorial-supplier-bg: color-mix(in srgb, var(--mp-editorial-accent) 6%, var(--mp-editorial-canvas-gap));
  border-color: color-mix(in srgb, var(--mp-editorial-accent) 38%, var(--mp-color-border-strong));
}

.mp-editorial-category--feature.mp-editorial-category--country-story-left {
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.5fr) minmax(0, 1.08fr);
  grid-template-areas: "story visual suppliers";
}

.mp-editorial-category--feature.mp-editorial-category--country-story-right {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.5fr) minmax(260px, 0.9fr);
  grid-template-areas: "suppliers visual story";
}

.mp-editorial-category--country-feature .mp-editorial-category__headline {
  max-width: 13ch;
}

.mp-editorial-category--compact.mp-editorial-category--photo-left {
  grid-template-areas:
    "visual story"
    "suppliers suppliers";
}

.mp-editorial-category--compact.mp-editorial-category--photo-middle,
.mp-editorial-category--compact.mp-editorial-category--photo-right {
  grid-template-areas:
    "story visual"
    "suppliers suppliers";
}

.mp-editorial-category--compact.mp-editorial-category--suppliers-left {
  grid-template-areas:
    "suppliers suppliers"
    "visual story";
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

/* Editorial image ------------------------------------------------------- */

.mp-editorial-category__visual {
  grid-area: visual;
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--mp-color-image-canvas);
  color: inherit;
  text-decoration: none;
}

.mp-editorial-category__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 280ms var(--mp-motion-ease), filter 180ms var(--mp-motion-ease);
}

/* Story ---------------------------------------------------------------- */

.mp-editorial-category__story {
  grid-area: story;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(31px, 2.2vw, 41px);
  background: var(--mp-editorial-story-bg);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.mp-editorial-category--compact .mp-editorial-category__story {
  padding: clamp(20px, 1.35vw, 25px);
}

.mp-editorial-category__story--static {
  cursor: default;
}

.mp-editorial-category__eyebrow {
  display: block;
  margin: 0 0 0.66rem;
  color: var(--mp-editorial-accent, var(--mp-color-text-muted));
  font-size: clamp(0.67rem, 0.57vw, 0.74rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

/* Homepage country identity. The flag belongs to the editorial kicker itself,
   so country chapters gain immediate geographic recognition without adding a
   badge, pill, or second decorative system. */
.mp-editorial-category__eyebrow--country {
  margin-bottom: 0.72rem;
}

.mp-editorial-country-identity {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.58rem;
}

.mp-editorial-country-identity__flag {
  display: block;
  width: 28px;
  height: 18px;
  flex: 0 0 28px;
  border: 0.5px solid var(--mp-color-flag-border);
  border-radius: 2px;
  background: transparent;
  object-fit: cover;
  box-shadow: none;
}

.mp-editorial-country-identity__name {
  display: block;
  min-width: 0;
}

.mp-editorial-category__headline {
  max-width: 15ch;
  margin: 0;
  color: var(--mp-color-text-strong);
  font-size: clamp(1.82rem, 1.9vw, 2.28rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.mp-editorial-category--compact .mp-editorial-category__headline {
  max-width: 100%;
  font-size: clamp(1.32rem, 1.2vw, 1.62rem);
  line-height: 1.1;
  letter-spacing: -0.026em;
}

.mp-editorial-category__blurb {
  max-width: 31rem;
  margin: 0.9rem 0 0;
  color: var(--mp-color-text-secondary);
  font-size: clamp(0.85rem, 0.76vw, 0.95rem);
  font-weight: 400;
  line-height: 1.58;
  text-wrap: pretty;
}

.mp-editorial-category--compact .mp-editorial-category__blurb {
  margin-top: 0.62rem;
  font-size: clamp(0.76rem, 0.67vw, 0.83rem);
  line-height: 1.5;
}

.mp-editorial-category__cta {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.12rem;
  padding: 0 0.88rem;
  border: 1px solid var(--mp-color-action-border);
  border-radius: 9px;
  background: var(--mp-color-action-bg);
  color: var(--mp-color-action-text);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.012em;
  text-decoration: none;
  box-shadow: none;
  transition: background-color var(--mp-motion-fast) var(--mp-motion-ease), border-color var(--mp-motion-fast) var(--mp-motion-ease);
}

.mp-editorial-category__cta svg {
  display: block;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  fill: none;
}

.mp-editorial-category__cta path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mp-editorial-category--compact .mp-editorial-category__cta {
  min-height: 35px;
  margin-top: 0.78rem;
  padding-inline: 0.76rem;
  font-size: 0.71rem;
}

/* Supplier mosaic ------------------------------------------------------- */

.mp-editorial-category__suppliers {
  grid-area: suppliers;
  display: grid;
  min-width: 0;
  min-height: 0;
  gap: var(--mp-editorial-inner-gap);
  background: var(--mp-editorial-supplier-bg);
}

.mp-editorial-category--feature .mp-editorial-category__suppliers {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.mp-editorial-category--feature.mp-editorial-category--mosaic-trio .mp-editorial-category__suppliers {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.mp-editorial-category--feature.mp-editorial-category--mosaic-trio .mp-editorial-supplier-tile:first-child {
  grid-row: 1 / span 2;
}

/* A promoted final feature normally receives three supporting companies. If a
   live category temporarily has only two image-ready matches, fill the supplier
   column cleanly instead of leaving an empty quadrant. */
.mp-editorial-category--feature.mp-editorial-category--cards-2 .mp-editorial-category__suppliers {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.mp-editorial-category--feature.mp-editorial-category--cards-2 .mp-editorial-supplier-tile:first-child {
  grid-row: auto;
}

.mp-editorial-category--compact .mp-editorial-category__suppliers {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
}

.mp-editorial-supplier-tile {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--mp-color-image-canvas);
  color: inherit;
  text-decoration: none;
  isolation: isolate;
}

.mp-editorial-supplier-tile__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 260ms var(--mp-motion-ease), filter 180ms var(--mp-motion-ease);
}

/* Image identity -------------------------------------------------------- */

/* The image itself stays bright and untouched. Identity appears in a compact
   solid surface, never by darkening the photograph. The same component is used
   for the large feature image and every supplier tile. */
.mp-editorial-image-overlay {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  max-width: calc(100% - 24px);
  gap: 0.26rem;
  padding: 0.52rem 0.64rem 0.56rem;
  border: 1px solid var(--mp-color-border-strong);
  border-radius: 8px;
  background: var(--mp-color-surface);
  color: var(--mp-color-text-strong);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity var(--mp-motion-fast) var(--mp-motion-ease), transform var(--mp-motion-fast) var(--mp-motion-ease);
}

.mp-editorial-image-overlay--feature {
  left: 15px;
  bottom: 15px;
  max-width: min(320px, calc(100% - 30px));
  padding: 0.58rem 0.7rem 0.62rem;
}

.mp-editorial-image-overlay__identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.mp-editorial-image-overlay__flag {
  display: block;
  width: 17px;
  height: 11px;
  flex: 0 0 17px;
  border: 0.5px solid var(--mp-color-flag-border);
  border-radius: 2px;
  object-fit: cover;
}

.mp-editorial-image-overlay__name {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: var(--mp-color-text-strong);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.014em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-editorial-image-overlay--feature .mp-editorial-image-overlay__name {
  font-size: 0.78rem;
}

.mp-editorial-image-overlay__focus {
  display: block;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  color: var(--mp-color-text-secondary);
  font-size: 0.62rem;
  font-weight: 400;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-editorial-image-overlay--feature .mp-editorial-image-overlay__focus {
  font-size: 0.66rem;
}

.mp-editorial-category__visual.is-image-missing,
.mp-editorial-supplier-tile.is-image-missing {
  background: var(--mp-editorial-canvas-bg);
}

.mp-editorial-category__visual.is-image-missing .mp-editorial-image-overlay,
.mp-editorial-supplier-tile.is-image-missing .mp-editorial-image-overlay {
  top: 50%;
  bottom: auto;
  left: 50%;
  max-width: calc(100% - 32px);
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* View all -------------------------------------------------------------- */

.mp-editorial-view-all {
  display: flex;
  width: 100%;
  margin: 2.5rem 0;
  padding: 0;
  justify-content: center;
}

.mp-editorial-view-all__actions {
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 157px);
}

@media (max-width: 768px) {
  .mp-editorial-view-all {
    margin: 1.75rem 0;
  }

  .mp-editorial-view-all__actions {
    width: min(100%, 118px);
  }
}

/* Interaction ----------------------------------------------------------- */

@media (hover: hover) and (pointer: fine) {
  .mp-editorial-category__visual:hover .mp-editorial-category__image,
  .mp-editorial-supplier-tile:hover .mp-editorial-supplier-tile__image {
    transform: scale(1.016);
  }

  .mp-editorial-category__visual:hover .mp-editorial-image-overlay,
  .mp-editorial-supplier-tile:hover .mp-editorial-image-overlay {
    opacity: 1;
    transform: translateY(0);
  }

  .mp-editorial-category__story:hover .mp-editorial-category__cta {
    border-color: var(--mp-color-action-bg-hover);
    background: var(--mp-color-action-bg-hover);
  }
}

.mp-editorial-category__visual:focus-visible,
.mp-editorial-category__story:focus-visible,
.mp-editorial-supplier-tile:focus-visible {
  outline: 3px solid var(--mp-color-focus-soft);
  outline-offset: -3px;
}

.mp-editorial-category__visual:focus-visible .mp-editorial-image-overlay,
.mp-editorial-supplier-tile:focus-visible .mp-editorial-image-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Theme ---------------------------------------------------------------- */

html[data-mp-theme-scope="public"][data-theme="dark"] body.editorial-landing-page {
  --mp-editorial-canvas-bg: var(--mp-color-surface);
  --mp-editorial-canvas-gap: var(--mp-color-surface-muted);
}

/* The category palette is intentionally restrained for the light theme.
   On the dark canvas, lift the same source accent instead of maintaining a
   second palette. This preserves category identity while giving the small
   editorial labels enough luminance to read as deliberate accents rather
   than muted/gloomy text. */
html[data-mp-theme-scope="public"][data-theme="dark"] .mp-editorial-category {
  --mp-editorial-story-bg: color-mix(in srgb, var(--mp-editorial-accent, #657080) 10.5%, var(--mp-editorial-canvas-bg));
  --mp-editorial-supplier-bg: color-mix(in srgb, var(--mp-editorial-accent, #657080) 4.5%, var(--mp-editorial-canvas-gap));
  border-color: color-mix(in srgb, var(--mp-editorial-accent, #657080) 24%, var(--mp-color-border-strong));
}

html[data-mp-theme-scope="public"][data-theme="dark"] .mp-editorial-category--country-feature {
  --mp-editorial-story-bg: color-mix(in srgb, var(--mp-editorial-accent) 14%, var(--mp-editorial-canvas-bg));
  --mp-editorial-supplier-bg: color-mix(in srgb, var(--mp-editorial-accent) 6%, var(--mp-editorial-canvas-gap));
  border-color: color-mix(in srgb, var(--mp-editorial-accent) 34%, var(--mp-color-border-strong));
}

html[data-mp-theme-scope="public"][data-theme="dark"] .mp-editorial-category__eyebrow {
  color: color-mix(in srgb, var(--mp-editorial-accent, var(--mp-color-text-muted)) 66%, #ffffff 34%);
}

/* Responsive ------------------------------------------------------------ */

@media (max-width: 1180px) {
  .mp-editorial__pair,
  .mp-editorial__pair--wide-first,
  .mp-editorial__pair--wide-second,
  .mp-editorial__pair--balanced {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-editorial__divider--pair {
    width: 100%;
    height: var(--mp-editorial-pair-gap);
  }

  .mp-editorial__divider--pair > span {
    width: 100%;
    height: 1px;
    max-height: none;
    opacity: 0.24;
  }

  .mp-editorial-category--compact {
    height: clamp(440px, 44vw, 500px);
  }
}

@media (max-width: 980px) {
  body.editorial-landing-page {
    --mp-editorial-divider-gap: clamp(56px, 5.75vw, 68px);
    --mp-editorial-stack-gap: var(--mp-editorial-divider-gap);
    --mp-editorial-pair-gap: var(--mp-editorial-divider-gap);
  }

  .mp-editorial-category--feature {
    height: auto;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    grid-template-rows: minmax(280px, 35vw) auto;
  }

  .mp-editorial-category--feature.mp-editorial-category--photo-left,
  .mp-editorial-category--feature.mp-editorial-category--photo-middle,
  .mp-editorial-category--feature.mp-editorial-category--photo-right,
  .mp-editorial-category--feature.mp-editorial-category--suppliers-left,
  .mp-editorial-category--feature.mp-editorial-category--country-story-right {
    grid-template-areas:
      "visual story"
      "suppliers suppliers";
  }

  .mp-editorial-category--feature.mp-editorial-category--country-story-left {
    grid-template-areas:
      "story visual"
      "suppliers suppliers";
  }

  .mp-editorial-category--feature .mp-editorial-category__suppliers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(185px, 1fr));
  }

  .mp-editorial-category--feature.mp-editorial-category--mosaic-trio .mp-editorial-category__suppliers {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    grid-template-rows: repeat(2, minmax(185px, 1fr));
  }

  .mp-editorial-category--compact {
    height: 460px;
  }
}

@media (max-width: 768px) {
  body.editorial-landing-page {
    /* Mobile category dividers use one consistent vertical rhythm so categories
       that were paired on desktop receive the same breathing room as every
       other category. */
    --mp-editorial-divider-gap: 90px;
    --mp-editorial-stack-gap: var(--mp-editorial-divider-gap);
    --mp-editorial-pair-gap: var(--mp-editorial-divider-gap);
    --mp-editorial-inner-gap: 7px;
    --mp-editorial-radius: 15px;
  }

  /* Mobile .main-content intentionally has no inline padding in the shared
     shell, so the shared editorial component owns the same responsive page
     gutter used by the category controls above it. */
  .mp-editorial {
    box-sizing: border-box;
    padding: 0 var(--mp-page-gutter-inline);
  }

  .mp-editorial__divider--stack > span {
    opacity: 0.38;
  }

  .mp-editorial__divider--pair > span {
    opacity: 0.38;
  }

  /* Reset the desktop composition at the same selector specificity as the
     desktop layout rules. Without this, their two-class grid-template-columns
     declarations win on phones and leave the mobile content trapped in the
     first desktop column. */
  .mp-editorial-category--feature.mp-editorial-category--photo-left,
  .mp-editorial-category--feature.mp-editorial-category--photo-middle,
  .mp-editorial-category--feature.mp-editorial-category--photo-right,
  .mp-editorial-category--feature.mp-editorial-category--suppliers-left,
  .mp-editorial-category--compact.mp-editorial-category--photo-left,
  .mp-editorial-category--compact.mp-editorial-category--photo-middle,
  .mp-editorial-category--compact.mp-editorial-category--photo-right,
  .mp-editorial-category--compact.mp-editorial-category--suppliers-left {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "visual"
      "story"
      "suppliers";
  }

  .mp-editorial-category--feature.mp-editorial-category--country-story-left,
  .mp-editorial-category--feature.mp-editorial-category--country-story-right {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "story"
      "visual"
      "suppliers";
  }

  .mp-editorial-category__visual {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .mp-editorial-category--compact .mp-editorial-category__visual {
    aspect-ratio: 16 / 9;
  }

  .mp-editorial-category__story,
  .mp-editorial-category--compact .mp-editorial-category__story {
    padding: 22px 20px 21px;
  }

  .mp-editorial-category__eyebrow {
    margin-bottom: 0.52rem;
    font-size: 0.64rem;
  }

  .mp-editorial-category__eyebrow--country {
    margin-bottom: 0.58rem;
  }

  .mp-editorial-country-identity {
    gap: 0.46rem;
  }

  .mp-editorial-country-identity__flag {
    width: 24px;
    height: 16px;
    flex-basis: 24px;
  }

  .mp-editorial-category__headline,
  .mp-editorial-category--compact .mp-editorial-category__headline {
    max-width: 19ch;
    font-size: clamp(1.38rem, 5.5vw, 1.72rem);
    line-height: 1.08;
  }

  .mp-editorial-category__blurb,
  .mp-editorial-category--compact .mp-editorial-category__blurb {
    max-width: 42rem;
    margin-top: 0.62rem;
    font-size: 0.8rem;
    line-height: 1.48;
  }

  .mp-editorial-category__cta,
  .mp-editorial-category--compact .mp-editorial-category__cta {
    min-height: 36px;
    margin-top: 0.9rem;
    padding-inline: 0.78rem;
    font-size: 0.72rem;
  }

  /* Mobile keeps the supplier photography as a compact editorial mosaic.
     Four suppliers remain 2x2; two suppliers remain side-by-side; a three-card
     feature uses one wide lead tile over two supporting tiles. */
  .mp-editorial-category__suppliers,
  .mp-editorial-category--feature .mp-editorial-category__suppliers,
  .mp-editorial-category--compact .mp-editorial-category__suppliers,
  .mp-editorial-category--feature.mp-editorial-category--mosaic-trio .mp-editorial-category__suppliers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    gap: var(--mp-editorial-inner-gap);
  }

  .mp-editorial-category--compact .mp-editorial-category__suppliers {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-editorial-supplier-tile {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .mp-editorial-category--compact .mp-editorial-supplier-tile {
    aspect-ratio: 16 / 10;
  }

  .mp-editorial-category--feature.mp-editorial-category--mosaic-trio .mp-editorial-supplier-tile:first-child,
  .mp-editorial-category--cards-3 .mp-editorial-supplier-tile:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 16 / 9;
  }

  .mp-editorial-category--rhythm-chapter {
    margin-top: 0;
  }

  /* Mobile stays image-first: identity overlays are intentionally hidden on
     touch layouts. Desktop hover/focus identity remains unchanged. */
  .mp-editorial-image-overlay {
    display: none;
  }
}

@media (max-width: 420px) {
  body.editorial-landing-page {
    --mp-editorial-divider-gap: 82px;
    --mp-editorial-stack-gap: var(--mp-editorial-divider-gap);
    --mp-editorial-pair-gap: var(--mp-editorial-divider-gap);
    --mp-editorial-inner-gap: 6px;
    --mp-editorial-radius: 14px;
  }

  .mp-editorial-category__story,
  .mp-editorial-category--compact .mp-editorial-category__story {
    padding: 20px 18px 19px;
  }

  .mp-editorial-category__visual {
    aspect-ratio: 3 / 2;
  }

  .mp-editorial-category--compact .mp-editorial-category__visual {
    aspect-ratio: 16 / 10;
  }

  .mp-editorial-supplier-tile {
    aspect-ratio: 4 / 3;
  }

  .mp-editorial-category--compact .mp-editorial-supplier-tile {
    aspect-ratio: 16 / 10;
  }

  .mp-editorial-category--feature.mp-editorial-category--mosaic-trio .mp-editorial-supplier-tile:first-child,
  .mp-editorial-category--cards-3 .mp-editorial-supplier-tile:first-child {
    aspect-ratio: 16 / 9;
  }

}

@media (prefers-reduced-motion: reduce) {
  .mp-editorial-category__image,
  .mp-editorial-supplier-tile__image,
  .mp-editorial-image-overlay,
  .mp-editorial-category__cta {
    transition: none;
  }
}
