/* Mielovia chocolatiers 1.0.0 (plugin): the Chocolatiers room for buyers and partners. The theme's tokens and classes
   (.section, .wrap, .section-head, .eyebrow, .h-l, .btn, .note) carry the look; this file only adds what is new. */

/* ---- Chocolate Lab: the honey the model puts first, pictured under the form ---- */
.mch-pair { margin: 0; display: grid; gap: 12px; min-width: 0; }
.mch-pair-ph {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line-2, rgba(216, 178, 110, .3));
  background: var(--ink-2, #120e0a);
}
.mch-pair-ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .8s var(--ease, ease), transform 1.6s var(--ease, ease);
}
.mch-pair-ph img.mch-lib { object-position: 50% 42%; }
.mch-pair-ph img.on { opacity: 1; transform: none; }
.mch-pair figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted, #a69684);
}
.mch-pair figcaption b {
  font-family: var(--f-display);
  font-weight: 360;
  font-size: 1.25rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ivory, #f3ece0);
  font-variation-settings: "SOFT" 100, "opsz" 36;
}
.mch-pair figcaption i { font-family: var(--f-display); font-size: .95rem; letter-spacing: 0; text-transform: none; color: var(--cream, #e5d6bb); }

/* ---- Switzerland: the map (inline SVG), the four points, the requests ---- */
.mch-swiss {
  background:
    radial-gradient(70% 42% at 50% 0%, rgba(216, 178, 110, .1), rgba(18, 14, 10, 0) 70%),
    linear-gradient(180deg, #170d07 0%, var(--ink-2, #120e0a) 100%);
}
.mch-sw-map {
  position: relative;
  margin: 0 auto;
  max-width: 1240px;
  aspect-ratio: 21 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line, rgba(216, 178, 110, .16));
  background: radial-gradient(58% 70% at 50% 52%, #1f170e 0%, #0e0b07 100%);
}
.mch-map { display: block; width: 100%; height: 100%; }
.mch-map .gr { fill: none; stroke: rgba(216, 178, 110, .085); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mch-map .dg { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; fill: rgba(216, 178, 110, .45); }
.mch-map .ch { fill: url(#mchLand); stroke: var(--gold, #d8b26e); stroke-width: 1.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mch-map .ct { fill: none; stroke: rgba(216, 178, 110, .22); stroke-width: .8; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mch-map .lk { fill: url(#mchHoney); opacity: .92; }
.mch-map .hl { fill: rgba(227, 155, 50, .16); }
.mch-map .dt { fill: var(--ivory, #f3ece0); stroke: var(--amber, #e39b32); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.mch-map .lb { font-family: var(--f-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; fill: var(--cream, #e5d6bb); paint-order: stroke; stroke: rgba(14, 11, 7, .85); stroke-width: 4px; stroke-linejoin: round; }
.mch-sw-offer {
  list-style: none;
  margin: clamp(36px, 4.4vw, 64px) auto 0;
  padding: 0;
  max-width: 1240px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 2.6vw, 40px);
}
.mch-sw-offer li {
  display: grid;
  gap: 10px;
  align-content: start;
  justify-items: center;
  text-align: center;
  padding-top: 18px;
  border-top: 1px solid var(--line-2, rgba(216, 178, 110, .3));
}
.mch-sw-offer b {
  font-family: var(--f-display);
  font-weight: 360;
  font-size: var(--s-1);
  line-height: 1.15;
  color: var(--ivory, #f3ece0);
  font-variation-settings: "SOFT" 100, "opsz" 48;
}
.mch-sw-offer span { font-size: .96rem; line-height: 1.58; color: var(--muted, #a69684); max-width: 34ch; }
.mch-sw-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(40px, 4.4vw, 60px); }
.mch-sw-note { margin: 18px auto 0; max-width: 62ch; text-align: center; }

/* Tablets and phones: a taller frame, filled by the middle of the map where the country is, with larger names and dots */
@media (max-width: 1100px) {
  .mch-sw-offer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mch-sw-map { aspect-ratio: auto; height: min(52vw, 440px); }
  .mch-map .dg { display: none; }
  .mch-map .lb { font-size: 16px; }
}
@media (max-width: 760px) {
  .mch-sw-map { height: clamp(230px, 62vw, 380px); }
  .mch-map .lb { font-size: 22px; }
  .mch-map .lb.e { transform: translateX(6px); }
  .mch-map .lb.w { transform: translateX(-6px); }
  .mch-map .lb.n { transform: translateY(-4px); }
  .mch-map .lb.s { transform: translateY(8px); }
  .mch-map .hl { r: 14px; }
  .mch-map .dt { r: 5px; }
}
@media (max-width: 640px) {
  .mch-sw-map { border-radius: 12px; }
  .mch-sw-offer { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .mch-sw-ctas { flex-direction: column; align-items: center; }
  .mch-sw-ctas .btn { width: min(320px, 100%); }
}

/* ---- Professional portal: who it is for, as one row of names (the theme's .pro-who ul rule stacked them) ---- */
.page-chocolatiers .pro-who { width: min(1000px, 100%); }
.page-chocolatiers .pro-who ul.who-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; border: 0; }
.page-chocolatiers .pro-who ul.who-row li { padding: .35em 1em; border: 1px solid var(--line-2, rgba(216, 178, 110, .3)); border-radius: 999px; }

/* ---- Formats: the theme's row, a picture for each format ---- */
.page-chocolatiers .formats .format-row.mch-fmt { max-width: 1240px; margin-inline: auto; }
.format-row.mch-fmt > div { align-content: start; justify-items: center; text-align: center; min-height: 0; padding: 12px 10px 16px; }
.format-row.mch-fmt figure {
  width: 100%;
  margin: 0 0 4px;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink-3, #1a1510);
}
.format-row.mch-fmt figure img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---- From the first spoonful to the pallet: six steps, each with its photograph ---- */
.mch-steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(30px, 3.4vw, 52px) clamp(20px, 2.4vw, 36px);
}
.mch-step { display: grid; gap: 10px; align-content: start; justify-items: center; text-align: center; min-width: 0; }
.mch-step figure {
  width: 100%;
  margin: 0 0 8px;
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink-3, #1a1510);
  border: 1px solid var(--line, rgba(216, 178, 110, .16));
}
.mch-step img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mch-step .mch-n {
  margin: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2, rgba(216, 178, 110, .3));
  border-radius: 50%;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--gold, #d8b26e);
}
.mch-step h3 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 360;
  font-size: 1.5rem;
  line-height: 1.1;
  font-variation-settings: "SOFT" 100, "opsz" 48;
}
.mch-step p:last-child { margin: 0; max-width: 36ch; font-size: .98rem; line-height: 1.56; color: var(--cream, #e5d6bb); }

@media (max-width: 1100px) {
  .mch-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Phones: a row to swipe, the next step peeking in */
@media (max-width: 700px) {
  .mch-steps {
    width: 100%;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    gap: 16px;
    overflow-x: auto;
    padding: 0 var(--gutter, 16px) 6px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter, 16px);
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .mch-steps::-webkit-scrollbar { display: none; }
  .mch-step { scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  .mch-pair-ph img { transform: none; transition: opacity .3s; }
}
