/* Vibe showcase: on top of ../styles.css and ../assets/devices.css. A grid of cards, each picture on the same night
   stage as the scenes, and a detail sheet per card that opens on its #f-<id> (CSS :target), so it works without script. */
.showcase-main{padding-block:clamp(48px,7vw,96px) 80px}
.sc-title{font-size:clamp(40px,5.6vw,80px);line-height:1;letter-spacing:-.035em;font-weight:900;margin-top:16px}
.chips-row{display:none;flex-wrap:wrap;gap:8px;margin-bottom:28px}
.js .chips-row{display:flex}
.chip{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 16px;border-radius:99px;font:600 15px var(--font);
  color:var(--muted);background:var(--panel);border:1px solid var(--line);cursor:pointer}
.chip:hover{color:var(--ink)}
.chip .n{font-size:12px;color:var(--dim);font-variant-numeric:tabular-nums}
.chip[aria-selected="true"]{color:var(--on-gold);background:var(--gold);border-color:var(--gold)}
.chip[aria-selected="true"] .n{color:rgba(14,15,19,.65)}

.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:18px}
.grid li[hidden]{display:none}
.card{display:flex;flex-direction:column;height:100%;background:var(--panel);border:1px solid var(--line);border-radius:20px;overflow:hidden;
  transition:border-color .2s,transform .2s}
.card:hover{border-color:rgba(196,167,109,.6);transform:translateY(-2px)}
.card-body{display:flex;flex-direction:column;gap:6px;flex:1;padding:16px 18px 18px}
.cat{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--gold)}
.new{font-size:10px;letter-spacing:.1em;color:var(--on-gold);background:var(--live);border-radius:99px;padding:2px 7px}
.card .title{font-size:18px;font-weight:700;line-height:1.25;text-wrap:balance}
.badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto;padding-top:8px}
.badge{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--muted);padding:3px 9px;border-radius:99px;border:1px solid var(--line)}
.badge::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--dim)}
.badge.host::before{background:var(--gold)}
.badge.mac-viewer::before{background:var(--blue)}
.badge.iphone::before,.badge.ipad::before{background:var(--live)}
.key{margin-top:28px;font-size:14px;color:var(--dim);display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px}
.key .badge+.badge,.key .badge:nth-of-type(2){margin-left:14px}

/* Detail sheet */
.detail{display:none;position:fixed;inset:0;z-index:100;align-items:center;justify-content:center;padding:clamp(0px,3vw,40px)}
.detail:target{display:flex}
.scrim{position:absolute;inset:0;background:rgba(5,6,8,.84);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.sheet{position:relative;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(340px,1fr);width:min(1200px,100%);height:min(720px,100%);
  background:var(--bg-2);border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.6)}
.sheet-figure{display:flex;align-items:center;justify-content:center;padding:clamp(20px,3vw,44px);overflow:hidden;container-type:size;
  background:radial-gradient(110% 90% at 50% 110%,#16294a 0,#0d1524 45%,#08090c 80%)}
.sheet-figure .device.ipad{--w:min(88cqw,120cqh)}
.sheet-figure .device.iphone{--w:min(60cqw,40cqh)}
.sheet-figure .device.iphone.land{--w:min(90cqw,180cqh)}
.sheet-figure .device.mac{--w:min(88cqw,130cqh)}
.sheet-figure .device.window{--w:min(94cqw,150cqh)}
.sheet-figure .card-img{max-width:100%;max-height:100%;width:auto;height:auto;border-radius:14px;box-shadow:0 16px 40px rgba(0,0,0,.5)}
.sheet-figure.frame-scene,.sheet-figure.frame-diagram{padding:0}
.sheet-figure .scene-img,.sheet-figure .diagram-img{width:100%;height:100%;object-fit:cover}
.sheet-text{display:flex;flex-direction:column;padding:28px 32px 24px;overflow-y:auto;border-left:1px solid var(--line)}
.sheet-top{display:flex;justify-content:space-between;align-items:center;gap:16px}
.close{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1px solid var(--line);font-size:24px;line-height:1;color:var(--muted)}
.close:hover{color:var(--ink);border-color:var(--dim)}
.sheet-text h2{font-size:clamp(28px,2.6vw,38px);line-height:1.08;margin-top:10px}
.sheet-text h2:focus{outline:none}
.sheet-text .body{color:var(--muted);font-size:17px;line-height:1.6;margin-top:16px}
.sheet-text h3{font-size:12px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--dim);margin-top:24px}
.how{counter-reset:how;margin-top:10px;display:grid;gap:10px}
.how li{counter-increment:how;position:relative;padding-left:38px;font-size:16px;line-height:1.5}
.how li::before{content:counter(how);position:absolute;left:0;top:-1px;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;
  font-size:13px;font-weight:700;color:var(--on-gold);background:var(--gold)}
.sheet-text .badges{margin-top:22px;padding-top:0}
.steps{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:24px}
.step{min-width:110px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:99px;border:1.5px solid var(--gold);
  color:var(--gold);font-weight:700;font-size:15px}
.step.next{background:var(--gold);color:var(--on-gold)}
span.step{border:0;background:none}
.count{font-size:14px;color:var(--dim);font-variant-numeric:tabular-nums}
.no-scroll{overflow:hidden}

@media (max-width:860px){
  .sheet{grid-template-columns:1fr;grid-template-rows:minmax(200px,42%) 1fr;border-radius:0;height:100%}
  .sheet-text{border-left:0;border-top:1px solid var(--line);padding:22px 22px calc(20px + env(safe-area-inset-bottom))}
  .detail{padding:0}
}
@media (max-width:600px){
  .grid{grid-template-columns:1fr}
  .chips-row{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-inline:-18px;padding:4px 18px}
  .chip{flex:none}
}
/* No nav on this page: the one action sits at the right, as on the landing page. */
.showcase-page .header-action{margin-left:auto}
