/* Fast or Slow post. Everything shared comes from ../icecube/ice.css and ../ribonanza/rna.css; only what is new lives here. */
#tpu-hero .ice-h-stage canvas { cursor: crosshair; }
#tpu-hero .tpu-h { align-items: start; }
/* nothing in the panel may change height while the figure plays */
#tpu-hero .ice-h-side .note { height: 6.3em; overflow: hidden; }
#tpu-hero .ice-h-side .note b { font-weight: 500; }
#tpu-hero .ice-h-side .stats dd { white-space: nowrap; }
#tpu-hero .ice-h-ttl { min-height: 1.4em; }
.tpu-rt { display: flex; align-items: baseline; gap: 12px; margin: 0 0 10px; white-space: nowrap; }
.tpu-rt b { font: 500 21px/1.2 var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.tpu-rt span { font: 400 11.5px/1.2 var(--mono); color: var(--ink-3); }
.tpu-strip { display: flex; align-items: flex-end; gap: 2px; height: 44px; margin: 0 0 18px; border-bottom: 1px solid var(--line); }
.tpu-strip i { flex: 1; min-width: 0; background: var(--ink-3); opacity: .55; cursor: pointer; }
@media (hover: hover) { .tpu-strip i:hover { opacity: 1; } }
.tpu-strip i.on { background: #f08a5d; opacity: 1; }
@media (max-width: 860px) { #tpu-hero .ice-h-side .note { height: 7.8em; } }
.tpu-sp path.ln { transition: opacity .2s; }
.tpu-say { font: 400 12px/1.6 var(--mono) !important; color: var(--ink-2); margin: 12px 0 0 !important; min-height: 3.2em; }
.tpu-say b { font-weight: 500; }
.tpu-sp .ice-tip .tpu-tr { display: grid; grid-template-columns: 8px 1fr auto; gap: 8px; align-items: center; margin-top: 5px; opacity: .62; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tpu-sp .ice-tip .tpu-tr.on { opacity: 1; font-weight: 600; }
.tpu-sp .ice-tip .tpu-tr i { width: 8px; height: 8px; display: block; }
.tpu-sp .ice-tip .tpu-tr u { text-decoration: none; padding-left: 14px; }
.tpu-sp .ice-tip { min-width: 190px; pointer-events: none; }

/* ---- phones: touch, narrow columns, nothing that moves under a finger ---- */
/* a box that scrolls sideways fades out on each side that has more to show (tpu.js sets sc-l and sc-r) */
.sc-l, .sc-r { -webkit-mask-image: linear-gradient(90deg, var(--fl, #000), #000 44px, #000 calc(100% - 44px), var(--fr, #000)); mask-image: linear-gradient(90deg, var(--fl, #000), #000 44px, #000 calc(100% - 44px), var(--fr, #000)); }
.sc-l { --fl: transparent; } .sc-r { --fr: transparent; }
.ice-dia:not(.nar) .ice-dia-sc { -webkit-mask-image: none; mask-image: none; }   /* a wide (desktop) diagram keeps its look */
/* a diagram in a narrow column is drawn one unit to one pixel (tpu.js); its smallest labels go up a size so they read at phone size */
.ice-dia.nar .d-subin { font-size: 10.5px; }
.ice-dia.nar .d-sub { font-size: 11px; }
.ice-dia.nar .d-new { font-size: 9.5px; }
.ice-dia-sc { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
/* a diagram off screen does no work, CSS animations included */
.ice-dia.off * { animation-play-state: paused !important; }
/* an explanation opened by a tap closes with a tap on it */
.ice-dia-tip.tap.show { pointer-events: auto; cursor: pointer; }
/* the opening letter keeps its room before dropcap.js has drawn it (it waits for the font), so the first lines don't jump */
p.dc > #dropcap:not(.on) { float: left; width: 104px; height: 126px; margin: 2px 10px 0 -14px; font: 700 118px/126px "Kode Mono", var(--fig); text-align: center; color: color-mix(in srgb, var(--fig-ink) 55%, transparent); }
.tpu-strip, #tpu-hero .ice-h-stage canvas { touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.ice-dia .d-it, .ice-chip, .ice-legend button { -webkit-tap-highlight-color: transparent; }
.tpu-say { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  p.dc > #dropcap:not(.on) { margin-left: -8px; }
  /* the legend's squares line up with the chart's left edge (ice.css gives each name 9px of padding to be a finger-sized target) */
  #tpu-spread .ice-legend { margin-left: -9px; }
  /* the line under the graph may take two lines; both are always reserved */
  #tpu-hero .ice-h-ttl { min-height: 2.8em; text-wrap: balance; }
  /* the chart's values sit at the top of the chart, compact */
  .tpu-sp .ice-tip { min-width: 0; padding: 9px 11px; }
}
/* four numbers don't fit side by side in 280px: two by two, each label on one line */
@media (max-width: 374px) { #tpu-hero .ice-h-side .stats { grid-template-columns: repeat(2, auto) !important; justify-content: start; gap: 12px 40px; } #tpu-hero .ice-h-side .stats dt { white-space: nowrap; } }
/* Tap targets for the links, chips, legend and contents, and touch screens without hover looks, come from site.css and ice.css (max-width: 900px, hover: hover / none).
   The one hover look they leave on a touch screen: */
@media (hover: none) { .toc-m a:hover { color: var(--ink-3); } }
