/* v6: new text structure — case carousel, criteria examples, own question, expandable steps and recommendations */

/* three criteria: the example appears for the selected one */
.vtab .vex{display:none; grid-column:2; font:italic 400 14px/1.45 var(--f-display); color:var(--ink); margin-top:4px}
.vtab.on .vex{display:block}

/* case carousel */
.ccar{display:grid; gap:18px}
.ccar-nav{display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap}
.ccar-tabs{display:inline-flex; gap:2px; padding:4px; border-radius:999px; background:rgba(118,118,128,.12); max-width:100%; overflow-x:auto; scrollbar-width:none}
.ccar-tabs::-webkit-scrollbar{display:none}
.ccar-tabs button{flex-shrink:0; border:0; background:transparent; font:500 14px/1 var(--f-body); color:var(--ink); padding:10px 16px; border-radius:999px; cursor:pointer; transition:background-color .3s cubic-bezier(.22,1,.36,1), box-shadow .3s}
.ccar-tabs button:hover{background:rgba(255,255,255,.5)}
.ccar-tabs button[aria-selected="true"]{background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.12), 0 3px 8px rgba(0,0,0,.06); color:var(--accent)}
.ccar-arrows{display:flex; align-items:center; gap:10px}
.ccar-arrows .pstep{display:inline-grid!important; place-items:center}
.ccar-count{font:600 13px/1 var(--f-body); color:var(--muted); font-variant-numeric:tabular-nums; min-width:40px; text-align:center}
.cc{display:grid; gap:24px; padding:clamp(22px,3vw,36px); border-radius:24px; background:var(--surface); box-shadow:var(--shadow-1, 0 1px 2px rgba(0,0,0,.04), 0 4px 16px -4px rgba(0,0,0,.06)); animation:fadein .35s ease}
.cc-head{display:grid; gap:10px}
.cc-head .kind{justify-self:start; font:600 12px/1.3 var(--f-body); padding:6px 11px; border-radius:999px; background:var(--accent-soft); color:var(--accent)}
.cc-head h3{font:500 clamp(22px,2.6vw,28px)/1.25 var(--f-display)}
.cc-body{display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:28px; align-items:start}
.cc-flow{margin:0; display:grid; gap:0; counter-reset:cf}
.cc-flow > div{position:relative; display:grid; gap:4px; padding:0 0 16px 24px; border-left:2px solid var(--lav)}
.cc-flow > div:last-child{padding-bottom:0}
.cc-flow > div::before{content:""; position:absolute; left:-7px; top:3px; width:12px; height:12px; border-radius:50%; background:var(--surface); border:2px solid var(--accent)}
.cc-flow > div:last-child::before{background:var(--accent)}
.cc-flow dt{font:600 11.5px/1.2 var(--f-body); letter-spacing:.08em; text-transform:uppercase; color:var(--accent)}
.cc-flow dd{margin:0; font-size:15.5px; line-height:1.6; color:#3A3A3C}
.cc .viz{border:0; background:#F5F5F7; border-radius:18px}
.cc-foot{display:grid; gap:12px; padding-top:18px; border-top:1px solid var(--line)}
.cc-impl{font-size:15.5px; color:#3A3A3C; max-width:72ch}
.cc-impl b{color:var(--ink)}
.cc .lesson{font:400 16px/1.55 var(--f-display); padding:12px 16px; border:0!important; border-radius:14px; background:var(--accent-soft); max-width:72ch}
.cc .lesson b{font-family:var(--f-body); font-weight:600; color:var(--accent)}
.cc .case-play{justify-self:start}

/* decisions: optional own question */
.dec .br{display:grid; gap:8px; justify-items:start}
.dec-in{width:100%; font:400 14px/1.3 var(--f-body); padding:9px 12px; border-radius:10px; border:1px solid var(--line); background:#F5F5F7; color:var(--ink)}
.dec-in:focus{outline:2px solid var(--accent); outline-offset:1px; background:var(--surface)}
.dec .mine-q{display:grid; gap:3px; padding:8px 12px; border-radius:12px; background:#F5F5F7; font-size:14px; width:100%}
.dec .mine-q b{font:600 11px/1 var(--f-body); letter-spacing:.1em; text-transform:uppercase; color:var(--muted)}
.dec .ans{width:100%}

/* discovery steps open on demand */
.step > summary{cursor:pointer; list-style:none; display:flex; justify-content:space-between; gap:12px; padding:1px 0 8px}
.step > summary::-webkit-details-marker{display:none}
.step > summary::after{content:"+"; color:var(--accent); font:400 20px/1 var(--f-display); transition:transform .2s}
.step[open] > summary::after{transform:rotate(45deg)}
.step > summary:hover b{color:var(--accent)}
.step > p{margin-bottom:10px}

/* eight recommendations, expandable */
.recs-acc{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:start}
.rec-d{border-radius:16px; background:var(--surface); box-shadow:0 1px 2px rgba(0,0,0,.04), 0 4px 16px -4px rgba(0,0,0,.06)}
.rec-d > summary{cursor:pointer; list-style:none; display:grid; grid-template-columns:30px minmax(0,1fr) 20px; gap:12px; align-items:center; padding:16px 18px}
.rec-d > summary::-webkit-details-marker{display:none}
.rec-d > summary::after{content:"+"; font:400 22px/1 var(--f-display); color:var(--accent); transition:transform .2s; justify-self:end}
.rec-d[open] > summary::after{transform:rotate(45deg)}
.rec-d .n{width:28px; height:28px; border-radius:50%; display:grid; place-items:center; font:500 14px/1 var(--f-display); font-style:italic; background:var(--accent-soft); color:var(--accent)}
.rec-d[open] .n{background:var(--accent); color:#fff}
.rec-d b{font:600 15px/1.35 var(--f-body)}
.rec-d > p{padding:0 18px 16px 60px; font-size:15px; color:#3A3A3C; margin:0}

.byline{font:italic 400 15px/1.5 var(--f-display)!important; color:var(--ink)!important}

@media (max-width:760px){
  .cc-body,.recs-acc{grid-template-columns:minmax(0,1fr)}
  .ccar-nav{flex-direction:column; align-items:stretch}
  .ccar-tabs{border-radius:999px}
  .ccar-arrows{justify-content:space-between}
  .rec-d > p{padding-left:18px}
}

/* keep the reading column within the screen: the case switcher scrolls inside itself */
article{grid-template-columns:minmax(0,1fr)}
article > section,.ccar,.ccar-nav,.cc,.cc-body,.cc-flow{min-width:0}
.ccar-tabs{min-width:0}
