/* Cloud / Ink molecule rows: four drawings side by side, a piece strip under each, a sample button and colour choices. */
  .v { padding: 46px 24px 30px; }
  .v-in { max-width: 1240px; margin: 0 auto; }
  .v-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 6px; }
  .v-no { font: 200 40px/1 var(--display); letter-spacing: -0.04em; color: var(--ink); }
  .v-name { font: 500 14px/1.3 var(--mono); margin: 0; }
  .v-note { color: var(--ink-2); font-size: 12.5px; margin: 0; flex: 1 1 300px; }
  .quad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .two .quad { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; margin: 0 auto; }
  .q { --kk: var(--k); position: relative; transition: background-color .4s; }
  .tint .q { background: color-mix(in srgb, var(--k) 9%, var(--bg)); }
  .q canvas { display: block; width: 100%; height: 270px; cursor: crosshair; touch-action: pan-y; }
  .two .q canvas { height: 340px; }
  /* the sample button is drawn in the same technique as its row's molecule; the molecule's text sits beside it */
  .sample { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 8px; }
  .sbtn { all: unset; position: relative; cursor: pointer; padding: 8px 15px; font: 500 12.5px/1 var(--mono); color: var(--ink); white-space: nowrap; transition: transform .2s cubic-bezier(.3,1.6,.5,1); }
  .sbtn canvas { position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); z-index: 0; pointer-events: none; }
  .sbtn > span { position: relative; z-index: 1; }
  .sbtn.under { padding: 6px 0 10px; }
  .sbtn.dot { padding-left: 30px; }
  .sbtn:active { transform: scale(.96); }
  .sbtn:focus { outline: none; }
  .sbtn:focus-visible { outline: 1px solid var(--ink-3); outline-offset: 6px; }
  .snow { font: 400 12.5px/1.4 var(--mono); color: var(--ink-2); word-break: break-all; }
  .snow i { font-style: normal; transition: color .2s, opacity .2s; }
  .snow i.off { opacity: .35; }
  .snow i.on { color: var(--pc, var(--ink)); font-weight: 500; box-shadow: 0 1.5px 0 var(--pc, var(--ink)); }
  /* numbers that would collide are hidden until their piece is hovered */
  .pstrip i.tight b { opacity: 0; }
  .pstrip i.tight.hot b { opacity: 1; }
  /* colour choices: small swatches and a name; the chosen one is underlined */
  .pal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin: 4px 0 6px; }
  .pal { gap: 2px 2px; margin-left: -12px; }
  .pal button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; font: 400 12px/1 var(--mono); color: var(--ink-2); transition: color .2s, background-color .2s; }
  .pal button:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
  .pal button[aria-pressed="true"] { color: var(--ink); font-weight: 500; background: color-mix(in srgb, var(--ink) 12%, transparent); }
  .pal button:focus-visible { outline: 1px solid var(--ink-3); outline-offset: 2px; }
  .pal .sw { display: inline-flex; gap: 2px; }
  .pal .sw i { width: 7px; height: 7px; border-radius: 50%; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
  .pal button:hover .sw i { transform: scale(1.25); }
  .pal .pnote { font: italic 400 11.5px/1 var(--mono); color: var(--ink-3); margin-left: 12px; }
  @keyframes seg { from { transform: scaleX(0); opacity: 0; } to { transform: none; opacity: 1; } }
  .pstrip i { animation: seg .5s cubic-bezier(.22,1,.36,1) both; transform-origin: left; }
  /* under each drawing: the piece strip, then the model's name and its piece count, centred */
  .pstrip { display: flex; gap: 5px; align-items: flex-end; height: 26px; width: 80%; margin: 0 auto 10px; }
  .pstrip i { flex: 1 1 0; height: 2px; position: relative; transition: height .35s cubic-bezier(.3,1.5,.5,1); }
  .pstrip i::before { content: ""; position: absolute; inset: 0; border-radius: 1px; background: var(--pc); transition: opacity .35s ease; }
  .pstrip i.dimmed::before { opacity: .18; }
  .pstrip i.hot { height: 5px; }
  /* every segment carries its piece number; the hovered one steps forward */
  .pstrip i b { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); transform-origin: 50% 100%; font: 400 9px/1 var(--mono); color: var(--ink-3); opacity: .7; transition: opacity .25s, color .25s, transform .35s cubic-bezier(.3,1.5,.5,1); font-variant-numeric: tabular-nums; pointer-events: none; }
  .pstrip i.dimmed b { opacity: .5; }
  .pstrip i.hot b { opacity: 1; color: var(--ink); font-weight: 500; transform: translateX(-50%) scale(1.55); }
  .q-cap { display: grid; justify-items: center; gap: 2px; padding: 2px 14px 20px; text-align: center; }
  .q-cap .nm { font: 500 12.5px/1.4 var(--mono); color: var(--ink); display: inline-flex; gap: 8px; align-items: center; }
  .q-cap .nm::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--k); }
  .q-cap .ct { font: 300 13px/1 var(--display); color: var(--ink-3); display: inline-flex; align-items: baseline; gap: 6px; }
  .q-cap .ct b { font: 200 30px/1.1 var(--display); letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
  .opts.row2 { max-width: 1240px; margin: 14px auto 0; padding: 0 24px; justify-content: flex-end; }
  .opts label { display: inline-flex; gap: 10px; align-items: center; color: var(--ink-3); }
  .opts input[type=range] { -webkit-appearance: none; appearance: none; width: 120px; height: 2px; background: var(--ink-3); outline: none; }
  .opts input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--o0); cursor: grab; }
  .opts input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--o0); cursor: grab; }
  @media (max-width: 900px) { .quad { grid-template-columns: repeat(2, minmax(0, 1fr)); } .q canvas { height: 230px; } }
  /* in the narrow grid most numbers are tight; a dimmed one must not come back over its neighbours while a piece is held */
  @media (max-width: 900px) { .pstrip i.tight.dimmed b { opacity: 0; } }
  /* a phone keeps the 2 x 2 grid, so all four drawings stay in view together while a finger holds an atom. The grid runs
     a little wider than the text, the drawings are shorter (cloud.js gives them a smaller margin), the button lines up
     with the text, model names stay on one line and the piece numbers are readable. */
  @media (max-width: 600px) {
    .cl-wide .v.bare { padding: 0 20px; }
    .cl-wide .quad { margin: 0 -10px; }
    .q canvas { height: 196px; }
    .q-cap { padding: 2px 2px 18px; }
    .q-cap .nm { white-space: nowrap; }
    .pstrip { width: 88%; }
    .pstrip i b { font-size: 10.5px; }
  }
  @media (pointer: coarse) { .cl-wide .v.bare .sbtn { display: inline-flex; align-items: center; min-height: 40px; box-sizing: border-box; } }
