/* Block 6 — b3.problem.huerden.v13 (scoped to #block6_v13)
   Purpose: keep this block fully isolated (no global .card/.wrap/body leaks)
*/

#block6_v13{
  /* Block-local tokens (mapped to global WBS tokens)
     Goal: keep the exact visual output, but remove hard-coded colors/shadows
     so the block can be maintained via tokens.css.
  */
  --b6-bg: var(--wbs-bg);
  --b6-stage-bg: var(--wbs-bg);
  --b6-text: var(--wbs-text);
  --b6-muted: var(--wbs-muted);
  --b6-body: var(--wbs-muted);
  --b6-accent: var(--wbs-magenta);

  --b6-stage-shadow: var(--wbs-shadow-stage);
  --b6-card-shadow: var(--wbs-shadow-card);
  --b6-stage-border: var(--wbs-black-a06);
  --b6-card-border: var(--wbs-slate-shadow-a06);
  --b6-dot-idle: var(--wbs-magenta-a35);

  /* Card sizing + peeks (tunable per breakpoint)
     Goal: center active card + show consistent left/right peeks.
  */
  --b6-card-w: 380px;
  --b6-card-h: 360px;
  --b6-stack-extra: 60px;
  --b6-card-offset: 130px;
  --b6-card-scale: .94;
  --b6-sibling-opacity: .35;

  /* Illustration profile (avoid "poster" but keep readable) */
  --b6-illu-h: 140px;
  --b6-illu-opacity: .96;
  --b6-illu-contrast: 1.08;
  --wbs-illu-brightness: 1.02;

  padding: var(--wbs-section-pad) 0;
  background: var(--b6-bg);
  font-family: var(--wbs-font-sans);
  color: var(--b6-text);
}

#block6_v13, #block6_v13 *{ box-sizing: border-box; }

#block6_v13 .wrap{
  width: var(--wbs-wrap);
  margin: 0 auto;
}

#block6_v13 .stage{
  border-radius: var(--wbs-radius-md);
  background: var(--b6-stage-bg);
  box-shadow: var(--b6-stage-shadow);
  border: 1px solid var(--b6-stage-border);
  overflow: hidden;
}

#block6_v13 .stage-inner{
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: var(--wbs-space-10);
  padding: var(--wbs-space-10);
  align-items: center;
}

#block6_v13 .title{
  font-family: var(--wbs-font-serif);
  font-weight: 400;
  font-size: var(--wbs-type-h2);
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin: 0 0 var(--wbs-space-3);
}

#block6_v13 .subtitle{
  color: var(--b6-muted);
  font-size: var(--wbs-type-body);
  line-height: var(--wbs-leading-body);
  margin: 0;
  font-weight: 400;
}

#block6_v13 .stackArea{
  outline: none;
  overflow: hidden;
  padding-right: 6px;
}

#block6_v13 .stack{
  position: relative;
  height: calc(var(--b6-card-h) + var(--b6-stack-extra));
}

/* Card layout: image ~45% height, centered text, tighter bottom */
#block6_v13 .card{
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--b6-card-w);
  height: var(--b6-card-h);
  background: #fff;
  border-radius: 20px;
  padding: var(--wbs-space-5-5) 26px var(--wbs-space-4-5);
  box-shadow: var(--b6-card-shadow);
  border: 1px solid var(--b6-card-border);
  transition: transform .35s ease, opacity .35s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

#block6_v13 .illustration{
  width: auto;
  height: var(--b6-illu-h);
  max-width: 86%;
  object-fit: contain;
  display: block;
  margin: 4px auto 14px;

  /* Controlled via standardized illustration profiles (site-polish-v9) */
  opacity: var(--wbs-illu-opacity, .96);
  filter: contrast(var(--wbs-illu-contrast, 1.08)) brightness(var(--wbs-illu-brightness, 1.02));
}


#block6_v13 .card h3{
  font-family: var(--wbs-font-serif);
  font-weight: 400;
  font-size: 24px;
  margin: 0 0 10px;
}

#block6_v13 .card p{
  margin: 0;
  font-size: var(--wbs-type-micro);
  line-height: 1.55;
  color: var(--b6-body);
}

/* circular positions (desktop)
   Goal: center active + show a clear peek of prev/next inside the stage.
*/
#block6_v13 .card.active{ transform: translateX(-50%); opacity:1; z-index:3; }
#block6_v13 .card.prev{ transform: translateX(calc(-50% - var(--b6-card-offset))) scale(var(--b6-card-scale)); opacity: var(--b6-sibling-opacity); z-index:2; }
#block6_v13 .card.next{ transform: translateX(calc(-50% + var(--b6-card-offset))) scale(var(--b6-card-scale)); opacity: var(--b6-sibling-opacity); z-index:2; }
#block6_v13 .card.hidden{ opacity:0; pointer-events:none; }

/* Navigation row: arrows (on <1400) + dots */
#block6_v13 .navRow{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: var(--wbs-space-4-5);
  padding-bottom: 2px;
}

#block6_v13 .navBtn{
  display: none; /* shown on <1400px */
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;

  background: rgba(255,255,255,.92);
  border: 1px solid var(--wbs-magenta-a18);
  box-shadow: 0 10px 24px var(--wbs-ink-a06);
  backdrop-filter: blur(6px);

  color: var(--b6-accent);
  cursor: pointer;
}

#block6_v13 .navBtn::after{
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}
#block6_v13 .navBtn.prev::after{ content: '‹'; transform: translateX(-1px); }
#block6_v13 .navBtn.next::after{ content: '›'; transform: translateX(1px); }

/* Pink dots */
#block6_v13 .dots{
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 0;
  padding-bottom: 0;
}
#block6_v13 .dot{

  width: var(--wbs-space-2);
  height: var(--wbs-space-2);
  border-radius: var(--wbs-radius-pill);
  background: var(--b6-dot-idle);
  border: 0;
  padding: 0;
  margin: 0;
  line-height: 0;
  font-size: 0;
  cursor: pointer;
  display: block;
}
#block6_v13 .dot.active{ background: var(--b6-accent); }

@media (max-width: 1399px){
  #block6_v13 .navBtn{ display:flex; }
}

@media (max-width: 980px){
  #block6_v13 .stage-inner{ grid-template-columns: 1fr; }
  #block6_v13 .stack{ height: calc(var(--b6-card-h) + var(--b6-stack-extra)); }
  /* Use container-relative width to avoid clipping inside padded stage */
  #block6_v13{ --b6-card-w: min(360px, calc(100% - 16px)); --b6-card-offset: 110px; }
}

@media (max-width: 560px){
  /* Mobile: smaller cards + subtle peeks (keeps the "carousel" idea visible) */
  #block6_v13{
    --b6-card-w: min(320px, calc(100% - 16px));
    --b6-card-h: 360px;
    --b6-stack-extra: 60px;
    --b6-card-offset: 92px;
    --b6-sibling-opacity: .22;
    --b6-illu-h: 120px;
  }

  #block6_v13 .stack{ height: calc(var(--b6-card-h) + var(--b6-stack-extra)); }

  #block6_v13 .card{ padding: 20px 22px 18px; }
  #block6_v13 .card h3{ font-size: 22px; }
}

@media (max-width: 340px){
  /* Very small screens: peeks become clutter → show only active */
  #block6_v13 .card.prev,
  #block6_v13 .card.next{
    opacity: 0;
    pointer-events: none;
  }
}
