/*
  IDWW workup tab: the ID WORLDWIDE concept gallery, set in the hub's Night Garden.
  Same catalogue as the stand-alone gallery (one sheet per concept: pitch and actions, four screens, the facts),
  drawn with the hub's tokens from hub.css. Only the concept screenshots carry colour; the chrome stays dim.
  Sizes follow the width of the tab itself (container queries), so the rail never squeezes the layout.
*/
.iw{container:iw/inline-size}
.iw-loading{margin-top:8px}
.iw-head{max-width:1000px}
.iw-brand{display:flex;align-items:center;gap:12px;margin:4px 0 18px;color:var(--moon)}
.iw-brand svg{display:block;flex:none}
.iw-brand .mark{width:38px;height:38px}
.iw-brand .word{width:156px;height:auto;color:var(--moon)}
.iw-head .lede{max-width:74ch}
.iw-head .lede + .lede{margin-top:8px}
.iw-howto{margin-top:22px;max-width:940px}
.iw-howto p{margin-top:6px;color:var(--moon-2)}
.iw-howto h2 .ico{color:var(--firefly)}

/* jump bar: a glass strip that docks to the top edge once you scroll past it (is-stuck);
   the chip of the concept on screen is lit pink */
/* the docking marker sits 1px above the strip's sticky top, so it leaves the screen exactly when the strip sticks */
.iw-jump-mark{height:0;margin-top:26px;position:relative;top:-1px}
.iw-jump{position:sticky;top:0;z-index:20;border-radius:16px;border:1px solid var(--line-2);
  background:rgba(8,23,17,.9);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  box-shadow:0 18px 40px -26px rgba(0,0,0,.9),inset 0 1px 0 rgba(230,242,234,.05);
  transition:border-radius .2s var(--ease),border-color .2s var(--ease)}
.iw-jump.is-stuck{border-top-left-radius:0;border-top-right-radius:0;border-top-color:transparent}
.iw-jump-in{display:flex;gap:4px;overflow-x:auto;padding:6px;scrollbar-width:none;scroll-behavior:smooth}
.iw-jump-in::-webkit-scrollbar{display:none}
.iw-jump a{flex:none;display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 13px;border-radius:11px;border:1px solid transparent;
  color:var(--moon-2);font-size:14px;font-weight:500;text-decoration:none;
  transition:background-color .16s var(--ease),border-color .16s var(--ease),color .16s var(--ease)}
.iw-jump a b{font-weight:600;color:var(--moon-4);font-variant-numeric:var(--num)}
.iw-jump a:hover{background:rgba(230,242,234,.06);color:var(--moon)}
.iw-jump a[aria-current="true"]{background:rgba(255,79,163,.1);border-color:rgba(255,79,163,.4);color:var(--lit)}
.iw-jump a[aria-current="true"] b{color:var(--pink-soft)}
.iw-jump a:focus-visible{outline-offset:-2px}

/* one sheet per concept */
.iw-card{margin-top:22px;padding:28px;border-radius:20px;background:var(--glass);border:1px solid var(--line);
  box-shadow:inset 0 1px 0 rgba(230,242,234,.05);
  display:grid;grid-template-columns:minmax(260px,340px) minmax(0,1fr);grid-template-areas:"intro shots" "detail detail";gap:26px 36px;
  scroll-margin-top:64px}
.iw-card > div{min-width:0}
.iw-intro{grid-area:intro}
.iw-num{font-size:13.5px;font-weight:600;color:var(--moon-3);font-variant-numeric:var(--num)}
.iw-card h2{font-family:var(--display);font-weight:600;font-size:30px;line-height:1.1;letter-spacing:-.015em;color:var(--lit);margin:4px 0 12px}
.iw-idea{color:var(--moon-2)}
.iw-best{margin-top:14px;font-size:14.5px;color:var(--moon-2)}
.iw-best strong{font-weight:600;color:var(--moon)}
.iw-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}

/* screens. Row 1: home beside the phone at equal height. Row 2: overview and credit at equal width. */
.iw-shots{grid-area:shots;display:grid;grid-template-columns:minmax(0,2.234fr) minmax(0,1.149fr) minmax(0,1fr);gap:14px 16px;align-content:start}
.iw-shot{min-width:0}
.iw-shot.big{grid-column:1/span 2;grid-row:1}
.iw-shot.phone{grid-column:3;grid-row:1}
.iw-shot.ov{grid-column:1;grid-row:2}
.iw-shot.cr{grid-column:2/span 2;grid-row:2}
.iw-shot a{display:block;border-radius:12px;overflow:hidden;border:1px solid var(--line-2);background:var(--leaf-2);aspect-ratio:16/10;
  transition:border-color .18s var(--ease),box-shadow .25s var(--ease),transform .25s var(--ease)}
.iw-shot.phone a{aspect-ratio:390/844}
.iw-shot a:hover{border-color:rgba(155,232,106,.55);box-shadow:0 14px 34px -16px var(--glow-g);transform:translateY(-2px)}
.iw-shot a:focus-visible{outline-offset:2px}
.iw-shot img{display:block;width:100%;height:100%;object-fit:cover;object-position:top left}
.iw-shot figcaption{font-size:13px;color:var(--moon-3);margin-top:7px}

/* the facts under each sheet */
.iw-detail{grid-area:detail;border-top:1px solid var(--line);padding-top:22px;display:grid;gap:18px}
.iw-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 28px;font-size:14px;line-height:1.5}
.iw-facts dt{font-size:13px;color:var(--moon-3);margin-bottom:4px}
.iw-facts dd{color:var(--moon-2)}
.iw-meta{display:flex;flex-wrap:wrap;align-items:center;gap:12px 22px}
.iw-swatches{display:flex;flex-wrap:wrap;gap:6px}
.iw-swatches li{width:30px;height:30px;border-radius:8px;border:1px solid rgba(230,242,234,.22)}
.iw-props{display:flex;flex-wrap:wrap;gap:6px}
.iw-props li{font-size:13px;padding:4px 11px;border-radius:15px;border:1px solid rgba(179,171,255,.32);background:rgba(122,107,255,.08);color:var(--moon-2)}
.iw-props li b{font-weight:600;color:var(--violet-soft);margin-right:6px}

/* closing notes */
.iw-notes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:34px}
.iw-notes .quiet{min-width:0}
.iw-notes h2{font-family:var(--display);font-size:18px;letter-spacing:-.01em}
.iw-notes p,.iw-notes li{color:var(--moon-2);font-size:14.5px}
.iw-notes p{margin-top:10px}
.iw-notes ul{margin-top:10px;display:grid;gap:7px}
.iw-notes li{position:relative;padding-left:16px}
.iw-notes li::before{content:"";position:absolute;left:2px;top:.62em;width:5px;height:5px;border-radius:50%;background:var(--moon-4)}
.iw-foot{margin-top:26px}

@container iw (max-width:1020px){
  .iw-card{grid-template-columns:minmax(0,1fr);grid-template-areas:"intro" "shots" "detail";gap:22px}
  .iw-intro{max-width:70ch}
  .iw-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .iw-notes{grid-template-columns:minmax(0,1fr)}
}
@container iw (max-width:620px){
  .iw-card{padding:20px;border-radius:18px}
  .iw-card h2{font-size:26px}
  .iw-facts{grid-template-columns:minmax(0,1fr)}
  .iw-shots{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .iw-shot.big{grid-column:1/span 2;grid-row:1}
  .iw-shot.phone{grid-column:1;grid-row:2/span 2}
  .iw-shot.ov{grid-column:2;grid-row:2}
  .iw-shot.cr{grid-column:2;grid-row:3}
  .iw-brand .word{width:136px}
}
@media (max-width:760px){
  .iw-jump{top:56px}
  .iw-jump-mark{top:-57px}
  .iw-card{scroll-margin-top:120px}
}
@media (prefers-reduced-motion:reduce){
  .iw-jump-in{scroll-behavior:auto}
}
@media print{
  .iw-jump,.iw-actions{display:none!important}
  .iw-card{background:none;border:1px solid #ccc;box-shadow:none;break-inside:avoid}
  .iw-card h2,.iw-num,.iw-idea,.iw-best,.iw-best strong,.iw-facts dt,.iw-facts dd,.iw-props li,.iw-shot figcaption{color:#111!important}
}
