/* ==========================================================================
   Infographics — the figures in posts and stories (style v3, 2026-11-10).
   The look of the AI-lab blogs (claude.dev, Anthropic engineering): a white card
   a bit wider than the text, rounded boxes with a pale tint and a thin outline,
   thin grey arrows with small labels. No circles, no textures, no gradients.
   Colour is Apple's system palette (the deeper "increased contrast" set), used
   only as a tint, an outline and small type, so it stays quiet on the paper.
   Handwritten notes (.n-hand, r-notes) sit in the white space and point at things.
   v2 (discs on a warm stage) is kept in assets-src/infographics/r-figs-v2.css.

   Markup:
     <figure class="post__fig ig">
       <div class="ig__panel"> one layout: .ig-flow | .ig-stairs | .ig-steps (.ig-steps--2) + .ig-bars | .ig-tree (.ig-tree--3) </div>
       <figcaption class="label"><span class="ig__fig">Fig 1</span>…</figcaption>
     </figure>
   Box:   <div class="ig-box is-blue"><p class="ig-box__k">01</p><p class="ig-box__t">Title</p><p class="ig-box__n">$2B</p><p class="ig-box__s">sub</p><ul class="ig-tags"><li>…</li></ul></div>
   Arrow: <div class="ig-arr"><span>label</span></div>
   Colour: ONE colour per post. Set it once on the article: <article class="post" data-ig="orange">, then mark the
     boxes that matter with is-c; no class = neutral (a white box, grey outline). Posts take the colours in turn:
     orange | red | green | blue | purple | teal | pink | indigo | brown | cyan | mint | yellow, then round again.
     (is-blue, is-green … still work for a one-off, but a figure should not mix them.)
   ========================================================================== */

:root {
  --ig-w: 780px;                 /* card width on desktop; the text column is 640 */
  --ig-gray: #6C6C70;
  --ig-blue: #1E6EF4;
  --ig-green: #008932;
  --ig-orange: #C55300;
  --ig-purple: #B02FC2;
  --ig-indigo: #564ADE;
  --ig-teal: #008198;
  --ig-red: #E9152D;
  --ig-yellow: #A16A00;
  --ig-pink: #E7124D;
  --ig-brown: #956D51;
  --ig-cyan: #007EAE;
  --ig-mint: #008575;
  --ig-panel: light-dark(#F5F5F7, #1C1C1E);           /* the card: a shade off white, so white boxes stand on it */
  --ig-arrow: #8E8E93;           /* arrows and neutral outlines */
  --ig-edge: light-dark(#C7C7CC, #48484A);
  --ig-box: light-dark(#FFFFFF, #2C2C2E);   /* a plain box on the card */
}
.is-blue { --c: var(--ig-blue); } .is-green { --c: var(--ig-green); } .is-orange { --c: var(--ig-orange); } .is-purple { --c: var(--ig-purple); }
.is-indigo { --c: var(--ig-indigo); } .is-teal { --c: var(--ig-teal); } .is-red { --c: var(--ig-red); } .is-yellow { --c: var(--ig-yellow); }
.is-pink { --c: var(--ig-pink); } .is-brown { --c: var(--ig-brown); } .is-cyan { --c: var(--ig-cyan); } .is-mint { --c: var(--ig-mint); }
[data-ig="orange"] { --ig-post: var(--ig-orange); } [data-ig="red"] { --ig-post: var(--ig-red); } [data-ig="green"] { --ig-post: var(--ig-green); } [data-ig="blue"] { --ig-post: var(--ig-blue); }
[data-ig="purple"] { --ig-post: var(--ig-purple); } [data-ig="teal"] { --ig-post: var(--ig-teal); } [data-ig="pink"] { --ig-post: var(--ig-pink); } [data-ig="indigo"] { --ig-post: var(--ig-indigo); }
[data-ig="brown"] { --ig-post: var(--ig-brown); } [data-ig="cyan"] { --ig-post: var(--ig-cyan); } [data-ig="mint"] { --ig-post: var(--ig-mint); } [data-ig="yellow"] { --ig-post: var(--ig-yellow); }
.is-c { --c: var(--ig-post, var(--ig-gray)); }   /* the post's colour */
.post__photo { --c: var(--ig-post, var(--ig-gray)); }   /* photos sit in the post-colour card, like window shots */
:is(.is-c, .post__photo, .is-blue, .is-green, .is-orange, .is-purple, .is-indigo, .is-teal, .is-red, .is-yellow, .is-pink, .is-brown, .is-cyan, .is-mint) {
  --tint: light-dark(color-mix(in srgb, var(--c) 8%, #fff), color-mix(in srgb, var(--c) 20%, #1C1C1E));     /* box fill */
  --line: light-dark(color-mix(in srgb, var(--c) 42%, #fff), color-mix(in srgb, var(--c) 62%, #1C1C1E));    /* box outline, bars */
  --mid: light-dark(color-mix(in srgb, var(--c) 72%, #fff), color-mix(in srgb, var(--c) 80%, #1C1C1E));     /* dashed paths */
  --deep: light-dark(color-mix(in srgb, var(--c) 82%, #1D1D1F), color-mix(in srgb, var(--c) 58%, #fff)); /* small coloured type */
}

/* the card: breaks out of the text column, centred on it */
.post__fig.ig { align-items: stretch; }
.ig__panel {
  position: relative;
  width: min(var(--ig-w), 100vw - 32px);
  margin-inline: calc(50% - min(var(--ig-w), 100vw - 32px) / 2);
  padding: 36px 36px 34px;
  background: var(--ig-panel); border: 1px solid var(--rule); border-radius: 14px;
  font-family: var(--text); font-size: 13.5px; line-height: 1.35; color: var(--ink);
}
.ig__panel p, .ig__panel p + p { margin: 0; }   /* the article body spaces paragraphs 48px apart; not in here */
.ig__fig { margin-right: 10px; color: var(--ink); }

/* box */
.ig-box { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; padding: 14px 16px 15px; border: 1.25px solid var(--line, var(--ig-edge)); border-radius: 10px; background: var(--tint, var(--ig-box)); }
.ig-box__k { font-family: var(--mono); font-size: 11px; letter-spacing: .02em; color: var(--deep, var(--ig-gray)); }
.ig-box__t { font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.2; letter-spacing: -.01em; }
.ig-box__n { padding: 3px 0 2px; font-family: var(--display); font-weight: 600; font-size: 34px; line-height: 1; letter-spacing: -.03em; }
.ig-box__n > span { display: inline-block; }
.ig-box__s { color: var(--ink-2); }
.ig-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 0; padding: 0; list-style: none; }
.ig-tags li { padding: 2px 7px; border: 1px solid var(--line, var(--ig-edge)); border-radius: 5px; background: var(--ig-box); font-family: var(--mono); font-size: 10.5px; line-height: 1.4; }

/* arrow: a thin grey line with a head, a small label on top */
.ig-arr { position: relative; align-self: center; justify-self: stretch; height: 1.25px; margin: 0 5px; background: var(--ig-arrow); }
.ig-arr::after { content: ""; position: absolute; right: 0; top: 50%; width: 7px; height: 7px; border: solid var(--ig-arrow); border-width: 1.25px 1.25px 0 0; transform: translateY(-50%) rotate(45deg); }
.ig-arr span { position: absolute; left: 50%; bottom: 9px; transform: translateX(-50%); width: max-content; max-width: 84px; text-align: center; font-family: var(--mono); font-size: 10.5px; line-height: 1.3; color: var(--ink-2); }

/* handwritten notes inside a card (r-notes draws the arrow) */
.ig__panel .n-hand { font-size: 25px; }

/* 1. Flow: box → box → box, a dashed path back along the bottom */
.ig-flow { display: grid; grid-template-columns: 1fr 92px 1.1fr 92px 1fr; grid-template-areas: ". . n1 n1 n1" "a l1 b l2 c" "rt rt rt rt rt" "n2 n2 n2 n2 ."; }
.ig-flow > .n-hand:first-of-type { margin: 0 0 20px 40%; }
.ig-flow > .n-hand:last-of-type { margin: 46px 0 0 8%; }
.ig-back { grid-area: rt; position: relative; height: 38px; margin: 8px calc((100% - 184px) / 6.2) 0; border: 1.25px dashed var(--mid); border-top: 0; border-radius: 0 0 12px 12px; }
.ig-back::before { content: ""; position: absolute; left: -4.6px; top: -2px; width: 7px; height: 7px; border: solid var(--mid); border-width: 1.25px 0 0 1.25px; transform: rotate(45deg); }
.ig-back span { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); padding: 0 10px; background: var(--ig-panel); font-family: var(--mono); font-size: 11px; line-height: 1.3; white-space: nowrap; color: var(--deep); }

/* 2. Stairs: steps in time, each one a little higher (not a scale) */
.ig-stairs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 10px; align-items: end; }
.ig-stairs > .ig-box { grid-row: 1; grid-column: calc(var(--i) + 1); justify-content: flex-start; min-height: 124px; padding-inline: 13px; margin-bottom: calc(var(--i) * 26px); }
.ig-stairs > .ig-box .ig-box__n { font-size: 30px; }
.ig-stairs > .ig-box .ig-box__t { padding: 6px 0 3px; font-size: 19px; line-height: 1.05; }
.ig-stairs > .n-hand { grid-row: 1; grid-column: 1 / 4; align-self: start; justify-self: start; margin: 6px 0 0 9%; }
.ig-stairs--note-end > .n-hand { grid-column: 4 / -1; align-self: end; justify-self: end; margin: 0 2% 0 0; }
.ig-key { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); }
.ig-key li::before { content: ""; display: inline-block; width: 11px; height: 11px; margin: 0 7px -2px 0; border: 1.25px solid var(--line, var(--ig-edge)); border-radius: 3px; background: var(--tint, var(--ig-box)); }

/* 3. Steps in a row + bars to scale */
.ig-steps { display: grid; grid-template-columns: 1fr 40px 1fr 40px 1fr; }
.ig-steps > .ig-box { grid-row: 2; justify-content: flex-start; }
.ig-steps > .ig-arr { grid-row: 2; }
.ig-steps > .n-hand { grid-row: 1; grid-column: 1 / 4; margin: 0 0 18px 6%; }
.ig-steps--2 { grid-template-columns: 1fr 40px 1fr; }   /* two boxes: before → after */
.ig-bars { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 14px 16px; align-items: center; }
.ig__panel > .ig-bars:first-child { margin-top: 0; padding-top: 0; border-top: 0; }   /* bars on their own (layout "bars"), not under steps */
.ig-bars__h { grid-column: 1 / -1; font-family: var(--mono); font-size: 11px; color: var(--ink-2); }
.ig-bars__l b { display: block; font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.2; letter-spacing: -.01em; }
.ig-bars__l { color: var(--ink-2); font-size: 12.5px; }
.ig-bars__t { display: flex; align-items: center; gap: 52px; min-width: 0; }
.ig-bars__b { flex: none; width: calc(var(--v) * 1%); min-width: 3px; height: 22px; border: 1.25px solid var(--line, var(--ig-edge)); border-radius: 4px; background: var(--tint, var(--ig-box)); }

/* 4. Tree: one box fans out into four, the four gather into one */
.ig-tree { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 10px; }
.ig-tree > .ig-box { justify-content: flex-start; }
.ig-tree > .ig-box--one { grid-column: 2 / 4; align-items: center; text-align: center; }
.ig-tree > .n-hand { grid-row: 1; grid-column: 4; align-self: center; justify-self: start; margin-left: 18px; }
.ig-fan { grid-column: 1 / -1; position: relative; height: 44px; --w: calc((100% - 30px) / 4); }
.ig-fan::before { content: ""; position: absolute; left: calc(50% - .6px); top: 0; width: 1.25px; height: 50%; background: var(--ig-arrow); }
.ig-fan::after { content: ""; position: absolute; left: calc(var(--w) / 2); right: calc(var(--w) / 2); top: calc(50% - .6px); height: 1.25px; background: var(--ig-arrow); }
.ig-fan i { position: absolute; left: calc(var(--w) / 2 + var(--k) * (var(--w) + 10px) - .6px); top: 50%; width: 1.25px; height: calc(50% - 3px); background: var(--ig-arrow); }
.ig-fan i::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 7px; height: 7px; border: solid var(--ig-arrow); border-width: 0 1.25px 1.25px 0; transform: translateX(-50%) rotate(45deg); }
.ig-fan--in::before { top: 50%; height: calc(50% - 3px); }
.ig-fan--in i { top: 3px; height: calc(50% - 3px); }
.ig-fan--in i::after { content: none; }
.ig-fan b { display: none; position: absolute; left: 50%; bottom: 3px; width: 7px; height: 7px; border: solid var(--ig-arrow); border-width: 0 1.25px 1.25px 0; transform: translateX(-50%) rotate(45deg); }
.ig-fan--in b { display: block; }
/* 4b. The same tree with three in the middle */
.ig-tree--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ig-tree--3 > .ig-box--one { grid-column: 2; }
.ig-tree--3 > .n-hand { grid-column: 3; }
.ig-tree > .n-hand--end { grid-row: 5; }   /* a note beside the last box instead of the first */
.ig-tree--3 .ig-fan { --w: calc((100% - 20px) / 3); }

/* 5. Window shot: our own screenshot of the thing the section talks about, in one fixed frame.
   <figure class="post__fig ig shot"><div class="ig__panel shot__panel is-c" style="--at:40%">
     <div class="shot__win [shot__win--dark]"><div class="shot__bar"><i></i><i></i><i></i><span>site.com/page</span></div>
       <div class="shot__img"><img …><i class="shot__pin" data-k="pin" style="--x:50%;--y:50%"></i></div></div>
     <span class="n-hand" data-to="[data-k=pin]">note</span></div>
   <figcaption>… <span class="shot__src">Screenshot: site.com, date</span></figcaption></figure>
   The panel takes the post's colour; --x/--y place the spot the note points at; --at slides the note along the bottom. */
.shot__panel { display: flex; flex-direction: column; padding: 30px 30px 24px; background: light-dark(var(--tint, var(--ig-panel)), var(--ig-panel)); border-color: var(--line, var(--rule)); }   /* dark: a neutral card, the colour stays in the outline */
.shot__win { border: 1px solid rgba(29, 29, 31, .16); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(29, 29, 31, .06), 0 14px 34px -14px rgba(29, 29, 31, .28); }
.shot__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #F5F5F7; border-bottom: 1px solid rgba(29, 29, 31, .1); }
.shot__bar i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #D2D2D7; }
.shot__bar span { margin-left: 10px; overflow: hidden; font-family: var(--mono); font-size: 10.5px; line-height: 1; color: #6E6E73; white-space: nowrap; text-overflow: ellipsis; }
.shot__win--dark { background: #111; border-color: rgba(29, 29, 31, .5); }
.shot__win--dark .shot__bar { background: #1C1C1E; border-bottom-color: rgba(255, 255, 255, .1); }
.shot__win--dark .shot__bar i { background: #48484A; }
.shot__win--dark .shot__bar span { color: #98989D; }
.shot__img { position: relative; }
.shot__img img { display: block; width: 100%; height: auto; }
.shot__pin { position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: 2px; height: 2px; }
.shot__ring { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); }   /* a pen ring on the screenshot (Benji's figure critique): <span class="n-circle shot__ring" data-note="…" style="--x;--y;--w;--h"></span> */
.shot__panel > .n-hand { align-self: flex-start; margin: 16px 0 0 var(--at, 40%); }
.shot__src { display: block; margin-top: 4px; opacity: .75; }

/* phones: everything in one column, arrows point down */
@media (max-width: 700px) {
  .ig__panel { padding: 22px 16px 22px; }
  .ig__panel .n-hand { font-size: 22px; }
  .ig-arr { justify-self: start; align-self: stretch; width: 1.25px; height: auto; min-height: 44px; margin: 5px 0 5px 28px; }
  .ig-arr::after { right: auto; left: 50%; top: auto; bottom: 0; transform: translateX(-50%) rotate(135deg); }
  .ig-arr span { left: 16px; bottom: 50%; transform: translateY(50%); max-width: 180px; text-align: left; }

  .ig-flow { grid-template-columns: 20px minmax(0, 1fr); column-gap: 10px; grid-template-areas: "r a" "r l1" "r b" "r l2" "r c" "n2 n2"; }
  .ig-flow > .n-hand:first-of-type { grid-area: b !important; align-self: start; justify-self: end; z-index: 1; max-width: 150px; margin: 14px 12px 0 0; font-size: 20px; }   /* inside the Mercor box, beside the number */
  .ig-flow > .n-hand:last-of-type { margin: 16px 0 0 0; }
  .ig-flow > .ig-back { grid-area: r; align-self: stretch; height: auto; margin: 44px 0; border: 1.25px dashed var(--mid); border-right: 0; border-radius: 12px 0 0 12px; }
  .ig-flow > .ig-back::before { left: auto; right: -2px; top: -4.6px; transform: rotate(135deg); }
  .ig-flow > .ig-back span { left: -1px; bottom: auto; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); padding: 6px 8px; }

  .ig-stairs { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .ig-stairs > .ig-box { grid-row: auto; grid-column: 1; min-height: 0; margin-bottom: 0; order: var(--i); }
  .ig-stairs > .n-hand { grid-row: auto; grid-column: 1; order: 0; justify-self: start; margin: 0 0 24px 38%; }
  .ig-stairs--note-end > .n-hand { grid-column: 1; justify-self: start; order: 9; margin: 22px 0 0 38%; }   /* --note-end: the note is on the last step, so on a phone it sits under it and points up (Post 19) */

  .ig-steps { grid-template-columns: minmax(0, 1fr); }
  .ig-steps > .ig-box, .ig-steps > .ig-arr, .ig-steps > .n-hand { grid-row: auto; grid-column: 1; }
  .ig-steps > .ig-arr { min-height: 26px; }
  .ig-steps > .n-hand { margin: 0 0 26px 30%; }
  .ig-bars { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ig-bars__l { margin-top: 8px; }

  .ig-tree { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; }
  .ig-tree > .ig-box--one { grid-column: 1 / -1; }
  .ig-tree > .n-hand { grid-row: auto; grid-column: 1 / -1; order: 2; margin: 22px 0 0 4%; }
  .ig-tree > .ig-fan--in, .ig-tree > .ig-box--end { order: 3; }
  .ig-fan { height: 34px; }
  .ig-fan::after, .ig-fan i { display: none; }
  .ig-fan::before, .ig-fan--in::before { top: 0; height: calc(100% - 3px); }
  .ig-fan b { display: block; }
  .ig-tree--3 { grid-template-columns: minmax(0, 1fr); }
  .shot__panel { padding: 14px 14px 16px; }
  .shot__bar { height: 24px; }
  .shot__panel > .n-hand { margin-top: 12px; }
  .ig-tree > .n-hand--end { order: 4; margin: 20px 0 0 30%; }   /* under the last box */
  .ig-steps--2 > .n-hand { order: 1; margin: 20px 0 0 30%; }    /* under the second box, so the arrow never crosses the first */
}

/* a generated image (a drawing from Codex): same breakout width as the card */
.ig--img .ig__img { display: block; width: min(var(--ig-w), 100vw - 32px); max-width: none; height: auto; margin-inline: calc(50% - min(var(--ig-w), 100vw - 32px) / 2); border-radius: 6px; }

/* ==========================================================================
   More kinds (2026-11-13): so posts don't all become boxes and bars.
   Catalogue with when-to-use: design-references/figure-kinds.md. Same rules: one post colour (is-c),
   neutral grey for everything else, mono for small labels, display face for names and numbers.
   ========================================================================== */
.ig-k { font-family: var(--mono); font-size: 11px; line-height: 1.35; letter-spacing: .01em; color: var(--ink-2); }   /* small mono label */
.ig-dot { display: inline-block; width: 10px; height: 10px; margin: 0 7px -1px 0; border-radius: 50%; background: var(--line, var(--ig-edge)); }

/* 6. Dot map: the world as a grid of dots (assets/figs/world-dots.svg used as a mask, so it takes any colour).
   <div class="ig__panel ig-map"><div class="ig-map__stage"><div class="ig-map__land is-c"></div>
     <svg class="ig-map__path is-c" viewBox="0 0 1200 440"><path d="…"/></svg>
     <span class="ig-map__sea" style="--x:11%;--y:58%">Pacific</span> …</div><ul class="ig-map__key">…</ul></div>
   x = (lon + 180) / 360, y = (78 − lat) / 134, in the 1200 × 440 box. */
.ig-map__stage { position: relative; aspect-ratio: 1200 / 440; }
.ig-map__land { position: absolute; inset: 0; background: var(--line, var(--ig-edge)); -webkit-mask: url("assets/figs/world-dots.svg") 0 0 / 100% 100% no-repeat; mask: url("assets/figs/world-dots.svg") 0 0 / 100% 100% no-repeat; }
.ig-map__path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ig-map__path path { fill: none; stroke: var(--deep); stroke-width: 2; stroke-dasharray: 5 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ig-map__path circle { fill: var(--ig-panel); stroke: var(--deep); stroke-width: 2; vector-effect: non-scaling-stroke; }
.ig-map__sea { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ig-arrow); white-space: nowrap; }
.ig-map__note.n-hand { position: absolute; left: 4%; top: 74%; }   /* in the empty south Pacific */
.ig-map__key { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 24px 0 0; padding: 18px 0 0; border-top: 1px solid var(--rule); list-style: none; font-size: 13px; color: var(--ink-2); }
.ig-map__key b { color: var(--ink); font-weight: 600; }
.ig-map__key .ig-dash { display: inline-block; width: 22px; margin: 0 7px 3px 0; border-top: 2px dashed var(--deep); }
.ig-map__key .ig-dot--sea { background: none; border: 1.25px dashed var(--ig-edge); }

/* 7. Cross-section of the sky: wind layers as rows, a path drawn over them.
   <div class="ig__panel ig-sky"><div class="ig-sky__rows"><div class="ig-sky__row" data-dir="r|l"><span class="ig-k">label</span><i></i><i></i><i></i></div>…
     <svg class="ig-sky__path is-c" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="…"/></svg>
     <span class="ig-sky__call" style="--x:30%;--y:62%">text</span></div></div> */
.ig-sky__rows { position: relative; display: grid; grid-auto-rows: 64px; margin-left: 96px; border-left: 1px solid var(--ig-edge); border-bottom: 1.5px solid var(--ink-2); }
.ig-sky__row { position: relative; display: flex; align-items: center; justify-content: space-around; padding: 0 4%; border-top: 1px dashed light-dark(#E2E2E6, #3A3A3C); }
.ig-sky__row:first-child { border-top: 0; }
.ig-sky__row > .ig-k { position: absolute; right: calc(100% + 14px); top: 50%; transform: translateY(-50%); width: 82px; text-align: right; }
.ig-sky__row > i { position: relative; width: 46px; height: 1.25px; background: var(--ig-arrow); }
.ig-sky__row > i::after { content: ""; position: absolute; right: 0; top: 50%; width: 6px; height: 6px; border: solid var(--ig-arrow); border-width: 1.25px 1.25px 0 0; transform: translateY(-50%) rotate(45deg); }
.ig-sky__row[data-dir="l"] > i { transform: scaleX(-1); }
.ig-sky__row.is-c { background: color-mix(in srgb, var(--tint) 70%, transparent); }   /* the layers blowing the balloon's way */
.ig-sky__row.is-c > i, .ig-sky__row.is-c > i::after { background-color: var(--mid); border-color: var(--mid); }
.ig-sky__row.is-c > i::after { background: none; }
.ig-sky__path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ig-sky__path path { fill: none; stroke: var(--deep); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ig-sky__path circle { fill: var(--tint); stroke: var(--deep); stroke-width: 1.75; vector-effect: non-scaling-stroke; }
.ig-sky__call { position: absolute; left: var(--x); top: var(--y); z-index: 1; transform: translate(-50%, -50%); padding: 5px 9px; border: 1.25px solid var(--line); border-radius: 7px; background: var(--tint); font-family: var(--mono); font-size: 11px; line-height: 1.3; color: var(--deep); white-space: nowrap; }
.ig-sky__ground { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0 0 96px; }
.ig-sw { display: inline-block; width: 14px; height: 10px; margin: 0 7px -1px 0; border: 1.25px solid var(--line); border-radius: 3px; background: var(--tint); }

/* 8. Spec sheet: a row of big numbers, hairlines between them, no boxes.
   <div class="ig__panel ig-spec"><div class="ig-spec__i is-c"><p class="ig-spec__n">10<small>s</small></p><p class="ig-spec__l">…</p></div>…</div> */
.ig-spec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ig-spec__i { display: flex; flex-direction: column; gap: 10px; padding: 4px 22px 2px; border-left: 1px solid var(--rule); }
.ig-spec__i:first-of-type { padding-left: 0; border-left: 0; }
.ig-spec__n { font-family: var(--display); font-weight: 600; font-size: 44px; line-height: 1; letter-spacing: -.035em; color: var(--deep, var(--ink)); }
.ig-spec__n small { margin-left: 3px; font-size: 20px; letter-spacing: -.01em; }
.ig-spec__l { color: var(--ink-2); }
.ig-spec__l b { display: block; margin-bottom: 2px; color: var(--ink); font-weight: 600; }
.ig-spec__i { grid-row: 2; }
.ig-spec > .n-hand { grid-column: 2 / -1; grid-row: 1; justify-self: end; margin: -8px 4% 16px 0; text-align: right; }   /* above the last number, so its arrow is short */

/* 9. Claim and fine print: the headline number on the left, what it rests on down the right.
   <div class="ig__panel ig-claim"><div class="ig-claim__big is-c"><p class="ig-claim__n">up to <b>18%</b></p><p>…</p></div>
     <ol class="ig-claim__list"><li><span class="ig-k">sample</span>169 balloons…</li>…</ol></div> */
.ig-claim { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0 40px; align-items: start; }
.ig-claim__big { padding: 22px 22px 24px; border: 1.25px solid var(--line); border-radius: 10px; background: var(--tint); }
.ig-claim__n { font-family: var(--display); font-weight: 500; font-size: 20px; line-height: 1; color: var(--deep); }
.ig-claim__n b { display: block; margin-top: 6px; font-weight: 600; font-size: 76px; letter-spacing: -.045em; }
.ig-claim__big > p + p { margin-top: 14px; color: var(--ink); font-size: 15px; line-height: 1.35; }
.ig-claim__list { margin: 0; padding: 0; list-style: none; counter-reset: c; }
.ig-claim__list li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px dashed var(--ig-edge); font-size: 14px; line-height: 1.4; }
.ig-claim__list li:first-child { border-top: 0; padding-top: 2px; }
.ig-claim__list li > .ig-k { padding-top: 2px; }
.ig-claim > :is(.ig-claim__big, .ig-claim__list) { grid-row: 2; }
.ig-claim > .n-hand { grid-row: 1; grid-column: 1; margin: -6px 0 12px 46%; }   /* above the number, a short arrow down */

/* 10. Who gets what: a small table of ticks and crosses.
   <div class="ig__panel ig-grid"><table><thead><tr><th></th><th class="ig-k">…</th>…</tr></thead>
     <tbody><tr><th>Name<span>sub</span></th><td><i class="is-c yes">free</i></td><td><i class="no">no</i></td></tr>…</tbody></table></div> */
.ig-grid table { width: 100%; border-collapse: collapse; }
.ig-grid th, .ig-grid td { padding: 13px 10px; border-top: 1px solid var(--rule); text-align: left; vertical-align: middle; font-weight: 400; }
.ig-grid thead th { padding-top: 0; border-top: 0; vertical-align: bottom; }
.ig-grid tbody th { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.ig-grid tbody th span { display: block; font-family: var(--text); font-weight: 400; font-size: 12.5px; letter-spacing: 0; color: var(--ink-2); }
.ig-grid td { width: 30%; }
.ig-grid td i { display: inline-flex; align-items: center; gap: 8px; font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.ig-grid td i::before { content: ""; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-family: var(--text); font-size: 13px; font-weight: 600; line-height: 22px; text-align: center; }
.ig-grid td i.yes { color: var(--deep); }
.ig-grid td i.yes::before { content: "✓"; border: 1.25px solid var(--line); background: var(--tint); color: var(--deep); }
.ig-grid td i.no::before { content: "✕"; border: 1.25px solid var(--ig-edge); background: var(--ig-box); color: var(--ig-arrow); font-size: 11px; }
.ig-grid tfoot td { padding: 14px 0 0; border-top: 1px solid var(--rule); }
.ig-grid td:has(.ig-grid__note) { white-space: nowrap; }
.ig-grid__note.n-hand { display: inline-block; margin-left: 30px; vertical-align: middle; font-size: 23px; }

/* 11. Scale: things placed along one axis, grouped by brackets underneath.
   <div class="ig__panel ig-scale"><span class="n-hand" data-to="[data-k=…]">…</span>
     <div class="ig-scale__row"><div class="ig-scale__g" style="--n:2"><div class="ig-scale__i" data-k="…"><i></i><b>Code</b><small>…</small></div>…
       <p class="ig-scale__gl">group label</p></div><div class="ig-scale__g is-c" style="--n:4">…</div></div>
     <div class="ig-scale__axis"><span class="ig-k">← easier</span><span class="ig-k">harder →</span></div></div> */
.ig-scale > .n-hand { display: block; margin: -4px 0 var(--gap, 14px) var(--at, 4%); }
.ig-scale__row { position: relative; display: grid; grid-template-columns: var(--cols, 2fr 4fr); column-gap: 40px; }
.ig-scale__row::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; border-top: 1.5px dashed var(--ig-edge); }
.ig-scale__g { position: relative; display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); column-gap: 12px; align-content: start; }
.ig-scale__g::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1.5px; background: var(--line, var(--ig-arrow)); }
.ig-scale__i { position: relative; display: flex; flex-direction: column; gap: 3px; }
.ig-scale__i > i { width: 15px; height: 15px; margin-bottom: 10px; border: 1.5px solid var(--line, var(--ig-arrow)); border-radius: 4px; background: var(--tint, var(--ig-box)); }
.ig-scale__i b { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.ig-scale__i small { font-size: 12.5px; line-height: 1.3; color: var(--ink-2); }
.ig-scale__gl { position: relative; grid-column: 1 / -1; margin-top: 18px !important; padding-top: 13px; font-family: var(--mono); font-size: 11px; line-height: 1.35; color: var(--deep, var(--ink-2)); }
.ig-scale__gl::before { content: ""; position: absolute; left: 0; right: 12px; top: 0; height: 7px; border: solid var(--line, var(--ig-edge)); border-width: 0 1.25px 1.25px; border-radius: 0 0 6px 6px; }
.ig-scale__axis { display: flex; justify-content: space-between; margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--rule); }

/* 12. Nested walls: a box inside a box, the label sitting on each wall.
   <div class="ig__panel ig-nest"><span class="n-hand" data-to="[data-k=wall]">…</span>
     <div class="ig-nest__wall"><span class="ig-nest__tag ig-k" data-k="wall">outer</span>
       <div class="ig-nest__wall ig-nest__wall--in is-c"><span class="ig-nest__tag ig-k">inner</span>
         <div class="ig-nest__parts"><div class="ig-nest__part"><span class="ig-k">1</span><b>…</b><p>…</p></div>…</div>
         <ol class="ig-nest__loop"><li>…</li>…</ol></div></div></div> */
.ig-nest > .n-hand { display: block; margin: -6px 0 16px 30%; }
.ig-nest__wall { position: relative; padding: 32px 22px 22px; border: 1.5px dashed var(--ig-arrow); border-radius: 14px; }
.ig-nest__wall--in { padding: 30px 20px 18px; border: 1.25px solid var(--line); border-radius: 11px; background: var(--tint); }
.ig-nest__tag { position: absolute; left: 16px; top: -8px; padding: 0 8px; white-space: nowrap; background: var(--ig-panel); line-height: 15px; }
.ig-nest__wall--in > .ig-nest__tag { color: var(--deep); }
.ig-nest__parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ig-nest__part { padding: 13px 15px 15px; border: 1.25px solid var(--line); border-radius: 10px; background: var(--ig-box); }
.ig-nest__part .ig-k { display: block; margin-bottom: 6px; color: var(--deep); }
.ig-nest__part b { display: block; margin-bottom: 4px; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.ig-nest__part p { color: var(--ink-2); }
.ig-nest__loop { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin: 16px 0 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 11px; line-height: 1.35; color: var(--deep); }
.ig-nest__loop li + li::before { content: "→"; margin: 0 10px; color: var(--mid); }
.ig-nest__loop li:last-child::after { content: "↺"; margin-left: 10px; color: var(--mid); }
/* Variant (Story 03): two zones inside one wall, what goes in and what stays out; rows of two parts.
   <div class="ig-nest__wall ig-nest__wall--in is-c">…<div class="ig-nest__parts ig-nest__parts--2">…</div></div>
   <div class="ig-nest__wall ig-nest__wall--in ig-nest__wall--out">…</div> */
.ig-nest__parts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ig-nest__wall--in + .ig-nest__wall--in { margin-top: 22px; }
.ig-nest__wall--out { border: 1.25px dashed var(--ig-arrow); background: none; }
.ig-nest__wall + .n-hand { margin-top: 14px; }
.ig-nest__wall--out > .ig-nest__tag { color: var(--ink-2); }

/* 13. Redrawn screen: our own drawing of what an app or a desktop holds (not a screenshot).
   <div class="ig__panel ig-desk is-c"><div class="ig-desk__win"><div class="ig-desk__bar"><i></i><i></i><i></i><span>title</span></div>
     <div class="ig-desk__body"><ul class="ig-desk__apps"><li><b>Inbox</b><span>21 emails</span></li>…</ul>
       <div class="ig-desk__doc"><p class="ig-k">document</p><ul><li>Users: <del>18</del> <ins>24</ins></li>…</ul></div>
       <ul class="ig-desk__checks"><li>…</li></ul></div></div></div> */
.ig-desk__win { overflow: hidden; border: 1px solid var(--ig-edge); border-radius: 11px; background: light-dark(#FBFBFD, #232325); box-shadow: 0 1px 2px rgba(29, 29, 31, .05), 0 12px 30px -16px rgba(29, 29, 31, .25); }
.ig-desk__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--rule); background: var(--ig-box); }
.ig-desk__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--ig-edge); }
.ig-desk__bar span { margin-left: 10px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); }
.ig-desk__body { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px 22px; padding: 20px; }
.ig-desk__apps { display: flex; flex-direction: column; gap: 10px; grid-row: span 2; margin: 0; padding: 0; list-style: none; }
.ig-desk__apps li { display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; align-items: center; }
.ig-desk__apps li::before { content: ""; grid-row: span 2; width: 30px; height: 30px; border: 1.25px solid var(--line); border-radius: 7px; background: var(--tint); }
.ig-desk__apps b { font-weight: 600; font-size: 13.5px; }
.ig-desk__apps span { grid-column: 2; font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); }
.ig-desk__doc { position: relative; padding: 16px 18px 18px; border: 1px solid var(--ig-edge); border-radius: 6px; background: var(--ig-box); }
.ig-desk__doc > .ig-k { margin-bottom: 10px !important; }
.ig-desk__doc ul { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.ig-desk__doc li { padding-left: 12px; border-left: 2px solid var(--line); }
.ig-desk__doc li span { margin-left: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); }
.ig-desk__doc del { color: var(--ink-2); text-decoration-thickness: 1.25px; }
.ig-desk__doc ins { color: var(--deep); text-decoration: underline 1.5px var(--line); text-underline-offset: 3px; }
.ig-desk__note.n-hand { position: absolute; right: 18px; top: 34px; font-size: 21px; }
.ig-desk__checks { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ig-desk__checks li { padding: 3px 9px 3px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--tint); font-family: var(--mono); font-size: 10.5px; color: var(--deep); }
.ig-desk__checks li::before { content: "✓ "; }

/* 14. Waffle: 100 squares, one per percent, coloured by share.
   <div class="ig__panel ig-waffle is-c"><div class="ig-waffle__grid"><i class="k"></i>×5 <i class="u"></i>×17 <i></i>×78</div>
     <ul class="ig-waffle__key"><li><i class="k"></i><b>…</b> …</li>…</ul>
     <div class="ig-waffle__score">…<div class="ig-score"><i style="--v:.5"><span>…</span></i>…</div></div></div> */
.ig-waffle { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "grid key" "note key" "score score"; column-gap: 36px; align-items: start; }
.ig-waffle__grid { grid-area: grid; display: grid; grid-template-rows: repeat(5, 17px); grid-auto-flow: column; grid-auto-columns: 17px; gap: 3px; }
.ig-waffle i { position: relative; display: block; border-radius: 3px; background: var(--line); }
.ig-waffle i.u { background: var(--mid); }
.ig-waffle i.h { background: repeating-linear-gradient(135deg, var(--mid) 0 1.5px, transparent 1.5px 4px); box-shadow: inset 0 0 0 1px var(--mid); }   /* hatched: a guess, a maybe */
.ig-waffle i.k { background: var(--ig-box); box-shadow: inset 0 0 0 1.25px var(--ig-edge); }
.ig-waffle i[data-k="fname"]::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1.5px; border-radius: 1px; background: var(--ink); }   /* 0.05% = a twentieth of a square; drawn a touch wider so it shows */
.ig-waffle > .n-hand { grid-area: note; margin: 14px 0 0 2px; font-size: 21px; }
.ig-waffle__key { grid-area: key; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; color: var(--ink-2); }
.ig-waffle__key li { display: grid; grid-template-columns: 17px 1fr; column-gap: 10px; }
.ig-waffle__key li > i { width: 17px; height: 17px; margin-top: 1px; }
.ig-waffle__key b { display: block; color: var(--ink); font-weight: 600; }
.ig-waffle__score { grid-area: score; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--rule); }
.ig-score { position: relative; height: 2px; margin: 44px 8px 34px; background: var(--ig-edge); }
.ig-score::before { content: ""; position: absolute; left: 50%; right: 0; top: -6px; height: 14px; border: 1.25px solid var(--line); border-radius: 4px; background: var(--tint); }   /* the passing half */
.ig-score i { position: absolute; left: calc(var(--v) * 100%); top: -7px; width: 1.5px; height: 16px; background: var(--ink-2); border-radius: 0; }
.ig-score i span { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; white-space: nowrap; color: var(--ink-2); }
.ig-score i:first-child span { transform: none; left: 0; }
.ig-score i:last-child span { transform: translateX(-100%); left: 100%; }
.ig-score i.is-best { top: -9px; width: 12px; height: 20px; margin-left: -6px; border-radius: 3px; background: var(--deep); }
.ig-score i.is-best span { top: auto; bottom: 28px; color: var(--deep); }

/* 15. Two routes: the intended route inside the walls, the other one leaving them, both ending at the same box.
   <div class="ig__panel ig-route is-c"><div class="ig-route__map"><div class="ig-route__wall"><span class="ig-nest__tag ig-k">…</span></div>
     <div class="ig-route__end ig-route__end--s">…</div><ol class="ig-route__lane ig-route__lane--a"><li><span>…</span></li></ol>
     <div class="ig-route__end ig-route__end--g" data-k="…">…</div><ol class="ig-route__lane ig-route__lane--b"><li><span>…</span></li></ol></div>
     <ul class="ig-map__key">…</ul></div> */
.ig-route > .n-hand { display: block; width: fit-content; margin: -6px 3% 26px auto; text-align: right; }
.ig-route__map { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr) 150px; grid-template-areas: "s a g" "b b b"; }
.ig-route__wall { grid-area: 1 / 1 / 2 / 4; margin: -16px -16px -16px; border: 1.5px dashed var(--ig-arrow); border-radius: 14px; pointer-events: none; position: relative; }
.ig-route__end { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 13px; border: 1.25px solid var(--ig-edge); border-radius: 10px; background: var(--ig-box); }
.ig-route__end--s { grid-area: s; }
.ig-route__end--g { grid-area: g; border-color: var(--line); background: var(--tint); }
.ig-route__end .ig-k { color: var(--ink-2); }
.ig-route__end--g .ig-k { color: var(--deep); }
.ig-route__end b { font-family: var(--display); font-weight: 600; font-size: 15px; line-height: 1.2; letter-spacing: -.01em; }
.ig-route__end small { font-size: 12px; line-height: 1.3; color: var(--ink-2); }
.ig-route__lane { position: relative; display: flex; justify-content: space-evenly; align-items: center; margin: 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 11px; line-height: 1.3; }
.ig-route__lane li { position: relative; width: 0; height: 0; }
.ig-route__lane li::before { content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 11px; transform: translate(-50%, -50%); border-radius: 3px; }
.ig-route__lane span { position: absolute; left: 0; transform: translateX(-50%); width: max-content; max-width: 124px; text-align: center; }
.ig-route__lane--a { grid-area: a; min-height: 104px; color: var(--deep); }
.ig-route__lane--a::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--mid); }
.ig-route__lane--a li::before { border: 2px solid var(--mid); background: var(--ig-panel); }
.ig-route__lane--a span { bottom: 14px; }
.ig-route__lane--b { grid-area: b; align-items: flex-start; height: 104px; margin: 0 75px; padding-top: 58px; color: var(--ink); }
.ig-route__lane--b::before { content: ""; position: absolute; left: 0; right: 0; top: -40px; height: 98px; border: 2px dashed var(--ink-2); border-top: 0; border-radius: 0 0 18px 18px; }
.ig-route__lane--b li::before { background: var(--ink-2); }
.ig-route__lane--b span { top: 14px; }
.ig-route + .ig-map__key, .ig-route .ig-map__key { margin-top: 30px; }
.ig-route .ig-dash--solid { border-top: 2px solid var(--mid); }
.ig-route .ig-dash--ink { border-top-color: var(--ink-2); }

@media (max-width: 700px) {
  .ig-map__sea { font-size: 9px; letter-spacing: .04em; }
  .ig-map__key { flex-direction: column; gap: 8px; font-size: 12.5px; }
  .ig-sky__rows { grid-auto-rows: 58px; margin-left: 62px; }
  .ig-sky__row > .ig-k { width: 54px; right: calc(100% + 8px); font-size: 10px; }
  .ig-sky__row > i { width: 26px; }
  .ig-sky__row > i:nth-of-type(n+3) { display: none; }
  .ig-sky__call { font-size: 9.5px; padding: 4px 6px; white-space: normal; width: max-content; max-width: 84px; text-align: center; }
  .ig-sky__call[data-k="sand"] { transform: translate(-82%, -50%); }
  .ig-sky__call:not([data-k]) { transform: translate(-18%, -50%); }
  .ig-sky__ground { margin-left: 62px; flex-wrap: wrap; row-gap: 6px; }
  .ig-sky__ground > .is-c { order: 3; flex-basis: 100%; text-align: right; }
  .ig-spec { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .ig-spec__i { padding: 0 0 0 14px; }
  .ig-spec__i:nth-of-type(odd) { padding-left: 0; border-left: 0; }
  .ig-spec__n { font-size: 36px; }
  .ig-spec__i { grid-row: auto; }
  .ig-spec > .n-hand { grid-row: auto; grid-column: 1 / -1; order: 9; justify-self: start; margin: 8px 0 0 30%; text-align: left; }
  .ig-claim { grid-template-columns: minmax(0, 1fr); row-gap: 18px; }
  .ig-claim__n b { font-size: 60px; }
  .ig-claim > :is(.ig-claim__big, .ig-claim__list) { grid-row: auto; }
  .ig-claim > .n-hand { grid-row: auto; order: -1; margin: 0 0 4px 40%; }
  .ig-map__note.n-hand { top: 80%; font-size: 17px; }
  /* Phones: the note floats beside its mark and takes no room, so the row keeps its height and the marks stay lined up (Vojta, 14 Nov) */
  .ig-grid td:has(.ig-grid__note) { position: relative; white-space: normal; }
  .ig-grid td:has(.ig-grid__note) i { max-width: 34px; }   /* a long label ("right eye") wraps under its mark, leaving room beside it */
  .ig-grid__note.n-hand { position: absolute; left: 72px; right: -12px; top: 50%; transform: translateY(8px); margin: 0; font-size: 15px; line-height: 1.05; }   /* set off down and right of the mark, so its arrow gets a real shaft (a note right beside the mark left only the head, Vojta 26 Nov) */
  /* --below: a note on the last row goes under its mark instead (no room beside a long label); the line after the table steps down to make room */
  .ig-grid__note--below.n-hand { top: calc(100% + 8px); left: 4px; right: -8px; transform: none; font-size: 16px; }
  .ig-grid:has(.ig-grid__note--below) :is(table + *, tfoot td) { padding-top: 52px; }
  .ig-claim__list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ig-grid th, .ig-grid td { padding: 11px 4px; }
  .ig-grid tbody th { font-size: 15px; }
  .ig-grid td i { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 10.5px; }
  .ig-scale__row { grid-template-columns: minmax(0, 1fr); row-gap: 26px; }
  /* .ig-scale--note-c: the note points into the second group, so on a phone it sits between the groups (Story 03) */
  .ig-scale--note-c { display: flex; flex-direction: column; row-gap: 26px; } .ig-scale--note-c .ig-scale__row { display: contents; }
  .ig-scale--note-c .ig-scale__g { order: 1; } .ig-scale--note-c > .n-hand { order: 2; margin: 0 0 -6px 24%; }   /* right of the square, so the arrow curls down-left onto it */ .ig-scale--note-c .ig-scale__g.is-c { order: 3; }
  .ig-scale__row::before, .ig-scale__g::before, .ig-scale__axis { display: none; }
  .ig-scale__g { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .ig-scale__i > i { margin-bottom: 6px; }
  .ig-scale__gl { margin: 8px 0 0 !important; }
  .ig-scale__gl::before { display: none; }
  .ig-scale__gl { padding-top: 0; }
  .ig-nest > .n-hand { margin-left: 18%; }
  .ig-nest__wall { padding: 28px 12px 14px; }
  .ig-nest__wall--in { padding: 26px 12px 14px; }
  .ig-nest__parts { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ig-nest__parts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ig-desk__body { grid-template-columns: minmax(0, 1fr); padding: 14px; gap: 14px; }
  .ig-desk__apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 8px; grid-row: auto; }
  .ig-desk__apps li { grid-template-columns: 24px 1fr; column-gap: 8px; }
  .ig-desk__apps li::before { width: 24px; height: 24px; }
  .ig-desk__apps b { font-size: 12.5px; }
  .ig-desk__doc { display: flex; flex-direction: column; }
  .ig-desk__doc > ul { order: 2; }
  .ig-desk__note.n-hand { position: static; order: 1; align-self: flex-end; margin: -4px 0 8px; font-size: 18px; }
  .ig-waffle { grid-template-columns: minmax(0, 1fr); grid-template-areas: "grid" "note" "key" "score"; }
  .ig-waffle__grid { grid-template-rows: repeat(5, 11px); grid-auto-columns: 11px; gap: 2px; }
  .ig-waffle i { border-radius: 2px; }
  .ig-waffle > .n-hand { margin: 10px 0 18px; font-size: 18px; }
  .ig-waffle__key li > i { width: 13px; height: 13px; }
  .ig-waffle__key li { grid-template-columns: 13px 1fr; }
  .ig-score i span { font-size: 10px; }
  .ig-score i.is-best span { white-space: normal; width: 90px; text-align: center; }
  .ig-route__map { grid-template-columns: minmax(0, 1fr) 118px; grid-template-areas: "s ." "a ." "g ."; column-gap: 26px; margin-left: 12px; }   /* the wall's -12px bleed stays inside the panel: equal space left and right */
  .ig-route__wall { grid-area: 1 / 1 / 4 / 2; margin: -12px; }
  .ig-route__lane--a { flex-direction: column; min-height: 150px; padding: 0; }
  .ig-route__lane--a::before { left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto; margin: 0 0 0 -1px; }
  .ig-route__lane--a span { bottom: auto; top: 0; left: 14px; transform: translateY(-50%); text-align: left; max-width: 110px; }
  .ig-route--wide-labels .ig-route__lane--a { align-items: stretch; min-height: 208px; }
  .ig-route--wide-labels .ig-route__lane--a::before { left: 20%; }
  .ig-route--wide-labels .ig-route__lane--a li { width: 80%; margin-left: 20%; }
  .ig-route--wide-labels .ig-route__lane--a span { max-width: calc(100% - 10px); }
  .ig-route__lane--b { grid-area: 1 / 2 / 4 / 3; flex-direction: column; justify-content: space-evenly; align-items: stretch; height: auto; margin: 0; padding: 70px 0; }
  .ig-route__lane--b::before { left: -40px; right: auto; width: 58px; top: 26px; bottom: 26px; height: auto; border: 2px dashed var(--ink-2); border-left: 0; border-radius: 0 18px 18px 0; }
  .ig-route__lane--b li { left: 18px; }
  .ig-route__lane--b span { top: 0; left: 12px; transform: translateY(-50%); text-align: left; max-width: 88px; font-size: 10px; }
  .ig-route__end b { font-size: 14px; }
  .ig-route { display: flex; flex-direction: column; }
  .ig-route > .n-hand { order: 1; margin: 44px 0 0 34%; text-align: left; }   /* far enough below and right of its box that the arrow has a shaft */
  .ig-route .ig-map__key { order: 2; }
  .ig-score { margin-top: 66px; }
}

/* ==========================================================================
   Round 2 kinds (2026-11-13, approved for the 11 remaining pages): 16 sheet, 17 ruler, 18 ledger, 19 slope,
   20 timeline, 21 file tree, 22 layer stack, 23 cycle, 24 ladder. Demo: lab-figkinds.html.
   A hand note is the first child (written above the figure, its arrow points down) or the last child (under
   it, pointing up). --nx slides it along: <span class="n-hand" style="--nx:60%" data-to="[data-k=…]">.
   ========================================================================== */
:is(.ig-sheet, .ig-ruler, .ig-ledger, .ig-slope, .ig-time, .ig-files, .ig-stack, .ig-cycle, .ig-ladder) > .n-hand { display: block; width: fit-content; margin: -6px 0 16px var(--nx, 30%); }
:is(.ig-sheet, .ig-ruler, .ig-ledger, .ig-slope, .ig-time, .ig-files, .ig-stack, .ig-cycle, .ig-ladder) > .n-hand:last-child { margin: 18px 0 -6px var(--nx, 30%); }
.ig-foot { margin-top: 20px !important; padding-top: 12px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 11px; line-height: 1.4; color: var(--ink-2); }   /* a shared fine-print line under a figure */

/* 16. Answer sheet: the source on the left, a sheet of questions it gets answered on the right. Each answer is a
   chip; the picked one takes is-c. An optional dashed box of grey lines shows the other way (an LLM writing).
   <div class="ig__panel ig-sheet"><span class="n-hand" …>…</span>
     <div class="ig-sheet__src"><p class="ig-k">support ticket</p><i></i><i style="--w:60%"></i></div><div class="ig-arr"></div>
     <div class="ig-sheet__out"><div class="ig-sheet__card is-c"><p class="ig-k">Jev</p>
         <ul class="ig-sheet__rows"><li><span>which team</span><span class="ig-sheet__opts"><b>…</b><b class="is-c">…</b></span></li>…</ul>
         <p class="ig-sheet__foot">+ how sure it is</p></div>
       <div class="ig-sheet__alt"><p class="ig-k">an LLM</p><p>writes an answer back</p><i></i></div></div></div>
   .ig-sheet__opts--seg joins the chips into one scale (low … high). */
.ig-sheet { display: grid; grid-template-columns: minmax(0, .7fr) 52px minmax(0, 2fr); grid-template-areas: "n n n" "s a o"; }
.ig-sheet > .n-hand { grid-area: n; }
.ig-sheet__src { grid-area: s; align-self: center; display: flex; flex-direction: column; gap: 9px; padding: 14px 16px 18px; border: 1.25px solid var(--ig-edge); border-radius: 10px; background: var(--ig-box); }
.ig-sheet__src i, .ig-sheet__alt i { display: block; width: var(--w, 100%); height: 6px; border-radius: 3px; background: var(--rule); }
.ig-sheet > .ig-arr { grid-area: a; }
.ig-sheet__out { grid-area: o; display: flex; flex-direction: column; gap: 12px; }
.ig-sheet__card { padding: 14px 18px 0; border: 1.25px solid var(--line, var(--ig-edge)); border-radius: 10px; background: var(--ig-box); }
.ig-sheet__card > .ig-k { color: var(--deep, var(--ink-2)); }
.ig-sheet__rows { margin: 4px 0 0; padding: 0; list-style: none; }
.ig-sheet__rows li { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 9px 0; border-top: 1px dashed var(--ig-edge); }
.ig-sheet__rows li:first-child { border-top: 0; }
.ig-sheet__opts { display: flex; flex-wrap: wrap; gap: 5px; }
.ig-sheet__opts b { position: relative; min-width: 28px; padding: 3px 9px; border: 1px solid var(--ig-edge); border-radius: 6px; background: var(--ig-box); font-family: var(--mono); font-size: 11px; font-weight: 400; line-height: 1.4; text-align: center; color: var(--ink-2); }
.ig-sheet__opts b.is-c { z-index: 1; border-color: var(--line); background: var(--tint); color: var(--deep); }
.ig-sheet__opts--seg { gap: 0; }
.ig-sheet__opts--seg b { margin-left: -1px; border-radius: 0; }
.ig-sheet__opts--seg b:first-child { margin-left: 0; border-radius: 6px 0 0 6px; }
.ig-sheet__opts--seg b:last-child { border-radius: 0 6px 6px 0; }
.ig-sheet__foot { padding: 10px 0 12px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 11px; color: var(--deep, var(--ink-2)); }
.ig-sheet__alt { display: flex; flex-direction: column; gap: 8px; padding: 12px 18px 14px; border: 1.25px dashed var(--ig-edge); border-radius: 10px; color: var(--ink-2); }

/* 17. Ruler: two to four numbers of one unit on one axis, to scale. Say "linear" or "log" in the head.
   --at places a pin or a tick (percent along the axis); a band runs from --from to --to.
   <div class="ig__panel ig-ruler"><span class="n-hand" …>…</span><p class="ig-k">log scale · …</p>
     <div class="ig-ruler__axis">
       <div class="ig-ruler__band" style="--from:37%;--to:79%" data-k="…"><span>$3–$150, an LLM</span></div>
       <div class="ig-ruler__pin is-c" style="--at:20%"><b>$0.63</b><span>Jev</span></div>
       <span class="ig-ruler__tick" style="--at:0%">$0.10</span>…</div></div>
   Pins: --below hangs one under the axis (give it --stem:40px to clear the ticks); --l / --r runs the label
   right / left of its stem, for pins near an end. --up / --down on the axis make room above / below. */
.ig-ruler__axis { position: relative; height: 1.5px; margin: var(--up, 100px) 10px var(--down, 40px); background: var(--ink-2); }
.ig-ruler__tick { position: absolute; left: var(--at); top: 0; transform: translateX(-50%); padding-top: 12px; font-family: var(--mono); font-size: 10.5px; line-height: 1.3; white-space: nowrap; color: var(--ink-2); }
.ig-ruler__tick::before { content: ""; position: absolute; left: 50%; top: -4px; width: 1px; height: 9px; background: var(--ink-2); }
.ig-ruler__band { position: absolute; left: var(--from); top: -8px; width: calc(var(--to) - var(--from)); height: 17px; border: 1.25px solid var(--line, var(--ig-edge)); border-radius: 5px; background: var(--tint, var(--ig-box)); }
.ig-ruler__band > span { position: absolute; left: -1px; bottom: calc(100% + 9px); width: max-content; max-width: 300px; font-size: 12.5px; line-height: 1.3; color: var(--deep, var(--ink-2)); }
.ig-ruler__pin { position: absolute; left: var(--at); bottom: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; width: max-content; max-width: 160px; padding-bottom: var(--stem, 26px); text-align: center; font-size: 12.5px; line-height: 1.3; color: var(--ink-2); }
.ig-ruler__pin::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 1.25px; height: var(--stem, 26px); background: var(--line, var(--ig-arrow)); }
.ig-ruler__pin::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 11px; height: 11px; transform: translateX(-50%); border: 1.25px solid var(--line, var(--ig-arrow)); border-radius: 3px; background: var(--tint, var(--ig-box)); }
.ig-ruler__pin b { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.15; letter-spacing: -.02em; color: var(--deep, var(--ink)); }
.ig-ruler__pin--below { top: 0; bottom: auto; padding: var(--stem, 26px) 0 0; }
.ig-ruler__pin--below::before { top: 0; bottom: auto; }
.ig-ruler__pin--below::after { top: -5px; bottom: auto; }
.ig-ruler__pin--l { transform: translateX(-6px); align-items: flex-start; text-align: left; }
.ig-ruler__pin--r { transform: translateX(calc(6px - 100%)); align-items: flex-end; text-align: right; }
.ig-ruler__pin--l::before, .ig-ruler__pin--l::after { left: 6px; }
.ig-ruler__pin--r::before, .ig-ruler__pin--r::after { left: calc(100% - 6px); }

/* 18. Two-way ledger: what each party gives into the middle, and what comes back. A spine runs down the middle
   under the thing they trade around; an empty cell shows "—".
   <div class="ig__panel ig-ledger"><p class="ig-ledger__hub">the archive</p>
     <div class="ig-ledger__head"><span></span><span class="ig-k">gives →</span><span class="ig-k">← gets</span></div>
     <div class="ig-ledger__row [is-c]"><p class="ig-ledger__who">Broker<span>sub</span></p><p>gives…</p><p></p></div>…
     <p class="ig-foot">…</p><span class="n-hand" …>…</span></div> */
.ig-ledger__head, .ig-ledger__row { display: grid; grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.ig-ledger__head > :nth-child(2), .ig-ledger__row > :nth-child(2) { padding-right: 22px; text-align: right; }
.ig-ledger__head > :nth-child(3), .ig-ledger__row > :nth-child(3) { align-self: stretch; display: flex; align-items: center; padding-left: 22px; border-left: 1.5px solid var(--ig-arrow); }
.ig-ledger__head > :nth-child(3) { padding-top: 6px; }
.ig-ledger__head > :nth-child(2) { padding-top: 6px; }
.ig-ledger__hub { width: fit-content; margin: 0 0 0 calc(170px + (100% - 170px) / 2) !important; transform: translateX(-50%); padding: 6px 14px; border: 1.25px solid var(--ig-edge); border-radius: 8px; background: var(--ig-box); font-family: var(--display); font-weight: 600; font-size: 15px; }
.ig-ledger__row { padding: 0 12px; margin: 0 -12px; border-top: 1px dashed var(--ig-edge); }
.ig-ledger__row > * { padding-block: 13px; }
.ig-ledger__row.is-c { border-radius: 8px; border-top-color: transparent; background: var(--tint); }
.ig-ledger__row.is-c + .ig-ledger__row { border-top-color: transparent; }
.ig-ledger__who { font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.2; letter-spacing: -.01em; color: var(--deep, var(--ink)); }
.ig-ledger__who span { display: block; margin-top: 2px; font-family: var(--text); font-weight: 400; font-size: 12.5px; letter-spacing: 0; color: var(--ink-2); }
.ig-ledger__row b { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.ig-ledger__row > p:empty::before { content: "—"; color: var(--ig-arrow); }

/* 19. Slope: two moments and 2–3 lines between them, a label at each end. No values unless the post has them.
   The svg is 100 × 100 (0 = top); a label's --y is the same number in percent. --side / --side-r: room for labels.
   <div class="ig__panel ig-slope"><span class="n-hand" …>…</span>
     <div class="ig-slope__when"><span class="ig-k">since spring</span><span class="ig-k">now</span></div>
     <div class="ig-slope__plot"><svg viewBox="0 0 100 100" preserveAspectRatio="none" aria-hidden="true"><line x1="0" y1="22" x2="100" y2="80"/><line class="is-c" …/></svg>
       <p class="ig-slope__end ig-slope__end--l" style="--y:22%"><b>price per token</b></p>
       <p class="ig-slope__end is-c" style="--y:16%" data-k="…">keeps going up</p></div>
     <ul class="ig-tags">…</ul></div> */
.ig-slope { --side: 170px; --side-r: 190px; }
.ig-slope__when, .ig-slope__plot { margin-inline: var(--side) var(--side-r); }
.ig-slope__when { display: flex; justify-content: space-between; margin-bottom: 12px; }
.ig-slope__when > :first-child { transform: translateX(-50%); }
.ig-slope__when > :last-child { transform: translateX(50%); }
.ig-slope__plot { position: relative; height: var(--h, 190px); border-inline: 1px dashed var(--ig-edge); }
.ig-slope__plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ig-slope__plot line { stroke: var(--deep, var(--ig-arrow)); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ig-slope__end { position: absolute; top: var(--y); left: calc(100% + 18px); width: calc(var(--side-r) - 22px); transform: translateY(-50%); font-size: 13px; line-height: 1.3; color: var(--ink-2); }
.ig-slope__end--l { left: auto; right: calc(100% + 18px); width: calc(var(--side) - 22px); text-align: right; }
.ig-slope__end b { display: block; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -.01em; color: var(--deep, var(--ink)); }
.ig-slope__end::before { content: ""; position: absolute; left: -23.5px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 3px; background: var(--deep, var(--ig-arrow)); }
.ig-slope__end--l::before { left: auto; right: -23.5px; }
.ig-slope > .ig-tags { justify-content: center; margin-top: 26px; }

/* 20. Timeline. a) Durations from one start, to scale: --v = length in percent of the axis; .ig-time__open = "over N",
   the bar runs on past its end.
   <div class="ig__panel ig-time"><span class="n-hand" …>…</span><p class="ig-k">…, to scale</p>
     <div class="ig-time__row [is-c]"><p class="ig-time__l"><b>Data centre</b>about 2 years</p><div class="ig-time__track"><i style="--v:17" data-k="…"></i></div></div>
     <div class="ig-time__row"><p class="ig-time__l">…</p><div class="ig-time__track"><i class="ig-time__open" style="--v:42"></i></div></div>
     <div class="ig-time__axis"><span style="--at:0%">0</span>…</div>
   b) A dated strip: --n years (or months) as columns; a stretch runs from column line --a to --b (0 = left edge).
     <div class="ig-time__strip" style="--n:6"><p class="ig-k">…</p><ol class="ig-time__years"><li>2026</li>…</ol>
       <ul class="ig-time__spans"><li class="is-c" style="--a:0;--b:3"><i></i><span>sold out</span></li>…</ul></div>
     Stretches that don't overlap share a row. A label may run past its stretch to the right; near the right edge
     give the stretch .ig-time__end and the label runs left instead. Either part can stand alone. */
.ig-time > .ig-k, .ig-time__strip > .ig-k { margin-bottom: 12px !important; }
.ig-time__row { display: grid; grid-template-columns: 190px minmax(0, 1fr); column-gap: 16px; align-items: center; }
.ig-time__l { padding: 9px 0; color: var(--ink-2); font-size: 12.5px; line-height: 1.3; }
.ig-time__l b { display: block; font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -.01em; color: var(--deep, var(--ink)); }
.ig-time__track { align-self: stretch; display: flex; align-items: center; border-left: 1.5px solid var(--ink-2); }
.ig-time__track i { position: relative; width: calc(var(--v) * 1%); height: 20px; border: 1.25px solid var(--line, var(--ig-edge)); border-left: 0; border-radius: 0 4px 4px 0; background: var(--tint, var(--ig-box)); }
.ig-time__track .ig-time__open { border-right: 0; border-radius: 0; }
.ig-time__open::after { content: ""; position: absolute; left: 100%; top: 50%; width: 40px; border-top: 1.5px dashed var(--line, var(--ig-arrow)); }
.ig-time__open::before { content: ""; position: absolute; left: calc(100% + 33px); top: 50%; width: 7px; height: 7px; transform: translateY(-50%) rotate(45deg); border: solid var(--line, var(--ig-arrow)); border-width: 1.25px 1.25px 0 0; }
.ig-time__axis { position: relative; height: 26px; margin-left: 206px; border-top: 1px solid var(--ig-edge); }
.ig-time__axis span { position: absolute; left: var(--at); top: 7px; transform: translateX(-50%); font-family: var(--mono); font-size: 10.5px; white-space: nowrap; color: var(--ink-2); }
.ig-time__axis span::before { content: ""; position: absolute; left: 50%; top: -11px; width: 1px; height: 5px; background: var(--ig-edge); }
.ig-time__axis span:first-child { transform: none; }
.ig-time__axis span:first-child::before { left: 0; }
.ig-time__strip { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--rule); }
.ig-time__strip:first-child, .n-hand + .ig-time__strip { margin-top: 0; padding-top: 0; border-top: 0; }
.ig-time__years, .ig-time__spans { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.ig-time__years { border-bottom: 1.5px solid var(--ink-2); }
.ig-time__years li { padding: 4px 0 6px 8px; border-left: 1px solid var(--ig-edge); font-family: var(--mono); font-size: 11px; color: var(--ink-2); }
.ig-time__spans { grid-auto-flow: row dense; row-gap: 14px; margin-top: 10px; }
.ig-time__spans li { grid-column: calc(var(--a) + 1) / calc(var(--b) + 1); display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 12.5px; line-height: 1.3; color: var(--deep, var(--ink-2)); }
.ig-time__spans i { align-self: stretch; height: 14px; margin-inline: 2px; border: 1.25px solid var(--line, var(--ig-edge)); border-radius: 4px; background: var(--tint, var(--ig-box)); }
.ig-time__spans span { width: max-content; max-width: 220px; padding-inline: 2px; }
.ig-time__spans .ig-time__end { align-items: flex-end; text-align: right; }

/* 21. File tree: what is in a folder or a repo. Mono names on tree lines, a grey comment after each, one row is-c.
   <div class="ig__panel ig-files"><span class="n-hand" …>…</span>
     <ul class="ig-files__tree"><li><p><b>a-skill/</b><span>comment</span></p>
       <ul><li class="is-c" data-k="…"><p><b>SKILL.md</b><span>written text, rules or instructions</span></p></li>…</ul></li></ul></div>
   A folder is a <li> holding a <ul>; its name ends with "/". --nw sets where the comments line up. */
.ig-files__tree, .ig-files__tree ul { margin: 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 13px; line-height: 1.4; }
.ig-files__tree ul { --lv: 1; margin-left: 13px; }
.ig-files__tree ul ul { --lv: 2; }
.ig-files__tree ul ul ul { --lv: 3; }
.ig-files__tree ul > li { position: relative; padding-left: 24px; }
.ig-files__tree ul > li::before { content: ""; position: absolute; left: 0; top: 0; width: 18px; height: 20px; border: solid var(--ig-edge); border-width: 0 0 1.25px 1.25px; border-radius: 0 0 0 5px; }
.ig-files__tree ul > li::after { content: ""; position: absolute; left: 0; top: 18px; bottom: 0; border-left: 1.25px solid var(--ig-edge); }
.ig-files__tree ul > li:first-child::before { top: -8px; height: 28px; }   /* reach up to the folder's name */
.ig-files__tree ul > li:last-child::after { content: none; }
.ig-files__tree p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 20px; padding: 8px 12px; border: 1.25px solid transparent; border-radius: 8px; }
.ig-files__tree b { flex: none; min-width: calc(var(--nw, 210px) - var(--lv, 0) * 37px); font-weight: 400; color: var(--ink); }
.ig-files__tree li:has(> ul) > p b { font-weight: 600; }
.ig-files__tree p span { flex: 1 1 200px; font-size: 12px; color: var(--ink-2); }
.ig-files__tree p span::before { content: "# "; color: var(--ig-arrow); }
.ig-files__tree li.is-c > p { border-color: var(--line); background: var(--tint); }
.ig-files__tree li.is-c > p :is(b, span) { color: var(--deep); }

/* 22. Layer stack: what runs on what. Layers top to bottom as they look, the foundation last; a layer holds one box
   or several side by side. Two stacks side by side: two .ig-stack__col.
   <div class="ig__panel ig-stack"><span class="n-hand" …>…</span>
     <div class="ig-stack__col"><p class="ig-stack__h">E2B<span class="ig-k">sub</span></p>
       <div class="ig-stack__l"><div class="ig-box is-c"><p class="ig-box__t">microVM</p></div>…</div>
       <div class="ig-stack__l"><div class="ig-box"><p class="ig-box__t">host machine</p></div></div></div>
     <p class="ig-foot">…</p></div> */
.ig-stack { display: flex; flex-wrap: wrap; gap: 0 44px; }
.ig-stack > :not(.ig-stack__col) { flex-basis: 100%; }
.ig-stack__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ig-stack__col:only-of-type { flex: 0 1 480px; margin-inline: auto; }
.ig-stack__h { margin-bottom: 6px !important; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.015em; }
.ig-stack__h .ig-k { display: block; margin-top: 2px; font-weight: 400; letter-spacing: .01em; }
.ig-stack__l { display: flex; gap: 8px; }
.ig-stack__l > .ig-box { flex: 1 1 0; align-items: center; padding: 11px 10px 12px; text-align: center; }
.ig-stack__l .ig-box__t { font-size: 15px; }
.ig-stack__l:last-child > .ig-box { border-style: dashed; }   /* the ground it all stands on */

/* 23. Cycle: 3 or 4 stations on a loop with no end, a label in the middle. The loop is a rounded rectangle, not a circle.
   <div class="ig__panel ig-cycle [ig-cycle--4]"><span class="n-hand" …>…</span>
     <i class="ig-cycle__ring" aria-hidden="true"><i></i><i></i><i></i></i>   (one <i> per station: the arrowheads)
     <p class="ig-cycle__mid [is-c]">label<small>sub</small></p>
     <div class="ig-box ig-cycle__st"><p class="ig-box__k">1</p><p class="ig-box__t">default</p><p class="ig-cycle__ex">example</p></div>…
   Stations run clockwise: from top left (3), from the top (4). */
.ig-cycle { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto minmax(110px, auto) auto; column-gap: 22px; grid-template-areas: "n n n" "a . b" ". m ." ". c ."; }
.ig-cycle--4 { grid-template-areas: "n n n" ". a ." "d m b" ". c ."; }
.ig-cycle > .n-hand { grid-area: n; }
.ig-cycle__st { position: relative; z-index: 1; justify-content: flex-start; }
.ig-cycle__st:nth-of-type(1) { grid-area: a; }
.ig-cycle__st:nth-of-type(2) { grid-area: b; }
.ig-cycle__st:nth-of-type(3) { grid-area: c; }
.ig-cycle__st:nth-of-type(4) { grid-area: d; }
.ig-cycle--4 > .ig-cycle__st:nth-of-type(odd) { align-self: center; }
.ig-cycle__ex { margin-top: 8px !important; padding-top: 8px; border-top: 1px dashed var(--line, var(--ig-edge)); font-family: var(--mono); font-size: 11px; line-height: 1.4; color: var(--deep, var(--ink-2)); }
.ig-cycle__ring { grid-area: 2 / 1 / 5 / 4; position: relative; margin: 34px 16.5%; border: 1.25px solid var(--ig-arrow); border-radius: 24px; }
.ig-cycle__ring i { position: absolute; width: 8px; height: 8px; border: solid var(--ig-arrow); border-width: 1.25px 1.25px 0 0; }
.ig-cycle__ring i:nth-child(1) { top: -.6px; left: 50%; transform: translate(-70%, -50%) rotate(45deg); }    /* → */
.ig-cycle__ring i:nth-child(2) { right: -.6px; top: 50%; transform: translate(50%, -70%) rotate(135deg); }   /* ↓ */
.ig-cycle__ring i:nth-child(3) { left: -.6px; top: 50%; transform: translate(-50%, -30%) rotate(-45deg); }   /* ↑ */
.ig-cycle--4 .ig-cycle__ring i:nth-child(1) { left: 78%; }
.ig-cycle--4 .ig-cycle__ring i:nth-child(2) { top: 80%; }
.ig-cycle--4 .ig-cycle__ring i:nth-child(3) { top: auto; bottom: -.6px; left: 22%; transform: translate(-30%, 50%) rotate(225deg); }   /* ← */
.ig-cycle--4 .ig-cycle__ring i:nth-child(4) { left: -.6px; top: 20%; transform: translate(-50%, -30%) rotate(-45deg); }
.ig-cycle__mid { grid-area: m; align-self: center; justify-self: center; max-width: 220px; text-align: center; font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.2; letter-spacing: -.01em; color: var(--deep, var(--ink)); }
.ig-cycle__mid small { display: block; margin-top: 4px; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0; color: var(--ink-2); }
.ig-cycle__mid.is-c { padding: 10px 14px; border: 1.25px solid var(--line); border-radius: 10px; background: var(--tint); }

/* 24. Ladder of people: who does what, top to bottom, and what each one is paid on. An empty pay cell shows "—".
   <div class="ig__panel ig-ladder"><div class="ig-ladder__head"><span></span><span class="ig-k">what they do</span><span class="ig-k">paid on</span></div>
     <div class="ig-ladder__r [is-c]"><p class="ig-ladder__who">Client<span>sub</span></p><p>does…</p><p class="ig-ladder__pay">…</p></div>…
     <p class="ig-foot">…</p></div> */
.ig-ladder__head, .ig-ladder__r { display: grid; grid-template-columns: 160px minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 18px; align-items: center; }
.ig-ladder__head { padding: 0 17px 8px 45px; }
.ig-ladder__r { position: relative; margin-left: 28px; padding: 13px 16px; border: 1.25px solid var(--line, var(--ig-edge)); border-radius: 10px; background: var(--tint, var(--ig-box)); }
.ig-ladder__r + .ig-ladder__r { margin-top: 10px; }
.ig-ladder__r::before { content: ""; position: absolute; left: -29px; top: -12px; bottom: -12px; border-left: 1.25px solid var(--ig-edge); }   /* the rail */
.ig-ladder__r::after { content: ""; position: absolute; left: -29px; top: 50%; width: 27px; border-top: 1.25px solid var(--ig-edge); }   /* a rung into the row */
.ig-ladder__head + .ig-ladder__r::before { top: 50%; }
.ig-ladder__r:not(:has(+ .ig-ladder__r))::before { bottom: 50%; }
.ig-ladder__who { font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.2; letter-spacing: -.01em; color: var(--deep, var(--ink)); }
.ig-ladder__who span { display: block; margin-top: 2px; font-family: var(--text); font-weight: 400; font-size: 12.5px; letter-spacing: 0; color: var(--ink-2); }
.ig-ladder__pay { align-self: stretch; display: flex; align-items: center; padding-left: 16px; border-left: 1px dashed var(--line, var(--ig-edge)); font-family: var(--mono); font-size: 11.5px; line-height: 1.4; color: var(--deep, var(--ink)); }
.ig-ladder__pay:empty::before { content: "—"; color: var(--ig-arrow); }

@media (max-width: 700px) {
  .ig-sheet { grid-template-columns: minmax(0, 1fr); grid-template-areas: "n" "s" "a" "o"; }
  .ig-sheet > .ig-arr { min-height: 30px; }
  .ig-sheet > .n-hand { grid-area: a; justify-self: end; align-self: center; margin: 4px 0 10px; }   /* beside the down arrow, so it doesn't cross the source */
  .ig-sheet__card { padding: 12px 14px 0; }
  .ig-sheet__rows li { grid-template-columns: minmax(0, 1fr); }

  .ig-ruler__axis { margin-inline: 16px; }
  .ig-ruler__pin { max-width: 112px; font-size: 11.5px; }
  .ig-ruler__pin b { font-size: 17px; }
  .ig-ruler__band > span { max-width: 150px; font-size: 11.5px; }
  .ig-ruler__tick { font-size: 9.5px; }

  .ig-ledger__head, .ig-ledger__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ig-ledger__head > :first-child { display: none; }
  .ig-ledger__who { grid-column: 1 / -1; padding-bottom: 0 !important; }
  .ig-ledger__hub { margin-left: 50% !important; }
  .ig-ledger__head > :nth-child(2), .ig-ledger__row > :nth-child(2) { padding-right: 14px; }
  .ig-ledger__head > :nth-child(3), .ig-ledger__row > :nth-child(3) { padding-left: 14px; }
  .ig-ledger__row { font-size: 12.5px; }
  .ig-ledger__row > * { padding-block: 9px; }

  .ig-slope { --side: 82px; --side-r: 112px; }
  .ig-slope__plot { height: var(--h-sm, 170px); }
  .ig-slope__end { font-size: 11.5px; }
  .ig-slope__end b { font-size: 13px; }
  .ig-slope__end::before { width: 8px; height: 8px; margin-top: -4px; left: -22.5px; }
  .ig-slope__end--l::before { left: auto; right: -22.5px; }
  .ig-slope__when .ig-k { font-size: 10px; }

  .ig-time__row { grid-template-columns: 104px minmax(0, 1fr); column-gap: 10px; }
  .ig-time__l { font-size: 11.5px; }
  .ig-time__l b { font-size: 13.5px; }
  .ig-time__axis { margin-left: 114px; }
  .ig-time__open::after { width: 22px; }
  .ig-time__open::before { left: calc(100% + 15px); }
  .ig-time__years li { padding-left: 4px; font-size: 9.5px; }
  .ig-time__spans li { font-size: 11.5px; }
  .ig-time__spans { display: flex; flex-direction: column; }   /* one stretch per row: no room to share */
  .ig-time__spans li { margin-left: calc(var(--a) / var(--n) * 100%); width: calc((var(--b) - var(--a)) / var(--n) * 100%); }
  .ig-time__spans span { max-width: 150px; }

  .ig-files__tree, .ig-files__tree ul { font-size: 12px; }
  .ig-files__tree ul { margin-left: 8px; }
  .ig-files__tree ul > li { padding-left: 18px; }
  .ig-files__tree ul > li::before { width: 13px; }
  .ig-files__tree p { padding: 7px 10px; }
  .ig-files__tree b { min-width: 0; }
  .ig-files__tree p span { flex-basis: 100%; font-size: 11px; }

  .ig-stack { row-gap: 26px; }
  .ig-stack__col { flex-basis: 100%; }
  .ig-stack__l, .ig-stack__col { gap: 6px; }
  .ig-stack__l > .ig-box { padding: 9px 6px 10px; }
  .ig-stack__l .ig-box__t { font-size: 13px; }

  .ig-cycle, .ig-cycle--4 { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "n" "m" "a" "b" "c" "d"; }
  .ig-cycle__mid { margin-bottom: 18px !important; }
  .ig-cycle__st { margin-left: 34px; }
  .ig-cycle__st + .ig-cycle__st { margin-top: 30px; }
  .ig-cycle__st + .ig-cycle__st::before { content: ""; position: absolute; left: 26px; top: -26px; height: 22px; border-left: 1.25px solid var(--ig-arrow); }
  .ig-cycle__st + .ig-cycle__st::after { content: ""; position: absolute; left: 22.5px; top: -11px; width: 7px; height: 7px; transform: rotate(135deg); border: solid var(--ig-arrow); border-width: 1.25px 1.25px 0 0; }
  .ig-cycle__ring { grid-area: 3 / 1 / -1 / 2; width: 34px; margin: 30px 0; border-right: 0; border-radius: 14px 0 0 14px; }
  .ig-cycle__ring i { display: none; }
  .ig-cycle__ring i:nth-child(1), .ig-cycle--4 .ig-cycle__ring i:nth-child(1) { display: block; left: auto; right: 1px; top: -.6px; transform: translateY(-50%) rotate(45deg); }

  .ig-ladder__head, .ig-ladder__r { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 6px; }
  .ig-ladder__head { padding: 0 13px 6px 33px; }
  .ig-ladder__head > :first-child { display: none; }
  .ig-ladder__who { grid-column: 1 / -1; }
  .ig-ladder__r { margin-left: 18px; padding: 11px 12px; font-size: 12.5px; }
  .ig-ladder__r::before { left: -19px; }
  .ig-ladder__r::after { left: -19px; width: 17px; }
  .ig-ladder__pay { padding-left: 10px; font-size: 10.5px; }
}

/* Cassette (Story 03): a guest's own track as a cassette. Built by [TAPE id start-end: title | small | caption].
   The reels turn only while it plays (and not under reduced motion); YouTube's player opens under the tape on the first click. */
.post__cassette { display: flex; flex-direction: column; align-items: center; }
.cassette { width: min(420px, 100%); }
.cassette__btn { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; border-radius: 16px; }
.cassette__btn:focus-visible { outline: 2px solid var(--deep); outline-offset: 6px; }
.cassette__shell { position: relative; display: block; aspect-ratio: 1000 / 635; filter: drop-shadow(0 6px 14px rgb(0 0 0 / .18)); }
.cassette__img { display: block; width: 100%; height: auto; }
.cassette__hub { position: absolute; width: 13.95%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.cassette__hub img { display: block; width: 100%; height: 100%; }
.cassette__hub--l { left: 30%; top: 45.9%; } .cassette__hub--r { left: 70.72%; top: 45.8%; }
.cassette__label { position: absolute; left: 10%; right: 10%; top: 9%; height: 23%; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.cassette__title { font-family: var(--n-font); font-size: clamp(22px, 6.4vw, 32px); line-height: 1; color: #23262b; white-space: nowrap; transform: rotate(-1.5deg); transform-origin: left center; }
.cassette__small { font-family: var(--mono); font-size: clamp(9px, 2.6vw, 11px); color: #5b5e63; white-space: nowrap; }
.cassette__play { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--ink); }
.cassette__icon { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.cassette.is-playing .cassette__icon { width: 10px; height: 13px; border: 0; border-left: 3.5px solid currentColor; border-right: 3.5px solid currentColor; box-sizing: border-box; }
.cassette.is-playing .cassette__hub img { animation: cassette-spin 1.6s linear infinite; }
@keyframes cassette-spin { to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) { .cassette.is-playing .cassette__hub img { animation: none; } }
.cassette__yt { display: none; margin-top: 14px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--ig-panel); }
.cassette.is-open .cassette__yt { display: block; }
.cassette__yt iframe { width: 100%; height: 100%; border: 0; display: block; }
.post__cassette figcaption { margin-top: 14px; }

/* Side card (Story 03): a cover + link in the empty right margin, next to the figure above it. The first try-out of a
   margin slot for future insertions. Built by [SIDE img: kicker | alt | link text | url], which puts it inside that figure.
   <aside class="post__side"><span class="post__side-k">…</span><a class="post__side-a" href><img><span class="post__side-cta">…</span></a></aside> */
.post__fig:has(> .post__side) { position: relative; }
.post__side { width: min(420px, 100%); margin: 28px auto 0; text-align: left; }
.post__side-k { display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.post__side-a { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; color: var(--ink); text-decoration: none; }
.post__side-a img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 4px 14px rgb(0 0 0 / .16); }
.post__side-cta { font-family: var(--mono); font-size: 12px; color: var(--deep); }
.post__side-a:hover .post__side-cta, .post__side-a:focus-visible .post__side-cta { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1101px) {
  .post__side { position: absolute; top: 0; left: calc(100% + clamp(32px, 4vw, 72px)); width: clamp(150px, calc((100vw - var(--a-text)) / 2 - 140px), 220px); margin: 0; }
  .post__side-a { display: block; }
  .post__side-cta { display: block; margin-top: 12px; }
}

/* Photos in the same card as window shots (Vojta, Story 03: "every image should have it"). The lead photo stays full width.
   The row becomes the card: post-colour tint in light, the neutral card in dark, the colour in the outline. */
.post__photo .post__photo-row {
  width: fit-content; max-width: min(var(--ig-w), 100vw - 32px); margin-inline: auto;   /* hugs the photo: even padding all round */
  padding: 30px; border: 1px solid var(--line); border-radius: 14px; background: light-dark(var(--tint), var(--ig-panel));
}
.post__photo .post__photo-img { border-radius: 8px; box-shadow: 0 1px 2px rgba(29, 29, 31, .06), 0 14px 34px -14px rgba(29, 29, 31, .28); }
@media (max-width: 760px) { .post__photo .post__photo-row { padding: 14px; gap: 10px; } }
.post__photo--stack .post__photo-row { flex-direction: column; align-items: center; gap: 18px; } .post__photo--stack .post__photo-img[width][height] { width: min(440px, 100vw - 78px); max-width: none; max-height: none; height: auto; }   /* a fixed width, not %, so the card shrinks to fit and the padding stays even */   /* [STACK]: wide screenshots one under the other, full width (Story 03) */

