/* Figures for the IceCube post. Colours and fonts come from site.css. */
.ice-links { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 22px 0 6px; padding: 0; list-style: none; font: 500 11.5px/1 var(--fig); letter-spacing: .06em; text-transform: uppercase; }
.ice-links a { display: inline-block; padding: 8px 12px; border: 1px solid color-mix(in srgb, var(--fig-ink) 30%, transparent); color: var(--fig-ink); text-decoration: none; transition: background-color .2s, color .2s; }
@media (hover: hover) { .ice-links a:hover { background: var(--fig-ink); color: var(--bg); } }
.ice-meta { font: 400 12px/1.5 var(--mono); color: var(--ink-3); margin: 14px 0 0; }

.ice-hero { max-width: 1140px; margin: 34px auto 10px; padding: 0 20px; --mono: var(--fig); --ink: var(--fig-ink); --ink-2: var(--fig-ink-2); --ink-3: var(--fig-ink-3); }
.ice3d { position: relative; border-top: 1px solid color-mix(in srgb, var(--ink) 24%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--ink) 24%, transparent); }
.ice3d canvas { display: block; width: 100%; cursor: grab; touch-action: pan-y; image-rendering: pixelated; }
.ice3d canvas.drag { cursor: grabbing; }
.ice3d-top { position: absolute; left: 0; right: 0; top: 12px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; pointer-events: none; font: 500 10.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.ice3d-top b { color: var(--ink); font-weight: 500; }
.ice3d-note { max-width: 34ch; text-align: right; letter-spacing: .04em; text-transform: none; font-size: 11.5px; color: var(--ink-2); }
.ice-bar { display: flex; flex-wrap: wrap; gap: 8px 8px; align-items: center; margin: 14px 0 0; }
.ice-chip { all: unset; box-sizing: border-box; cursor: pointer; font: 500 11.5px/1 var(--mono); padding: 8px 12px; color: var(--ink-2); border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); transition: color .2s, background-color .2s, border-color .2s; }
@media (hover: hover) { .ice-chip:hover { color: var(--ink); border-color: var(--ink-2); } }
.ice-chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ice-chip:focus-visible { outline: 1px solid var(--o0); outline-offset: 2px; }
.ice-bar .sp { flex: 1 1 10px; }
.ice-read { font: 400 12px/1.6 var(--mono); color: var(--ink-2); margin: 12px 0 0; min-height: 1.6em; font-variant-numeric: tabular-nums; }
.ice-read b { color: var(--ink); font-weight: 500; }
.ice-key { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 10px 0 0; font: 400 11.5px/1.4 var(--mono); color: var(--ink-3); align-items: center; }
.ice-key span { display: inline-flex; align-items: center; gap: 8px; }
.ice-key i { display: inline-block; }
.ice-key .grad { width: 84px; height: 6px; background: linear-gradient(90deg, #5b9df0, #4fd0a0, #e6c84f, #f08a5d); }
.ice-key .sq { width: 8px; height: 8px; background: var(--ink); }
.ice-key .sq.s { width: 4px; height: 4px; }
.ice-key .hol { width: 5px; height: 5px; border: 1px solid var(--ink-2); }
.ice-key .ln { width: 22px; height: 0; border-top: 2px dashed var(--ink); }

/* event sizes */
.ice-sizes { display: grid; grid-template-columns: max-content 1fr max-content; gap: 9px 14px; align-items: center; font: 400 12px/1 var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ice-sizes .bar { height: 12px; background: color-mix(in srgb, var(--ink) 10%, transparent); position: relative; }
.ice-sizes .bar i { position: absolute; inset: 0 auto 0 0; background: var(--ink); width: 0; transition: width .9s cubic-bezier(.2,.8,.2,1); }
.ice-sizes .bar.cut i { background: var(--o1); }
@media (prefers-reduced-motion: reduce) { .ice-sizes .bar i { transition: none; } }
.ice-sizes .n { color: var(--ink); text-align: right; }
.ice-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 26px 0 0; }
.ice-facts div { font: 400 12px/1.5 var(--mono); color: var(--ink-2); }
.ice-facts b { display: block; font: 500 26px/1.1 var(--mono); color: var(--ink); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
@media (max-width: 620px) { .ice-facts { grid-template-columns: 1fr; gap: 12px; } }

/* experiment chart */
.ice-j { position: relative; }
.ice-j svg { display: block; width: 100%; height: auto; overflow: visible; }
.ice-j text { font: 400 10.5px var(--mono); fill: var(--ink-3); }
.ice-j .ax { stroke: color-mix(in srgb, var(--ink) 14%, transparent); stroke-width: 1; }
.ice-j .best { fill: none; stroke: var(--ink); stroke-width: 1.25; opacity: .55; }
.ice-j rect.pt { transition: opacity .2s; }
.ice-j.dim rect.pt:not(.on) { opacity: .12; }
.ice-j .ms { font: 500 10.5px var(--mono); fill: var(--bg); text-anchor: middle; pointer-events: none; }
.ice-j .msb { fill: var(--ink); pointer-events: none; }
.ice-tip { position: absolute; z-index: 5; pointer-events: none; max-width: min(300px, 100%); padding: 11px 13px; background: var(--fig-ink); color: var(--bg); font: 400 11.5px/1.5 var(--fig); opacity: 0; transition: opacity .12s; overflow-wrap: break-word; }   /* a long model name breaks rather than running out of the box */
.ice-tip.show { opacity: 1; }
.ice-tip b { font-weight: 600; display: block; margin-bottom: 3px; }
.ice-tip em { font-style: normal; opacity: .7; }
.ice-legend { display: flex; flex-wrap: wrap; gap: 6px 6px; margin: 16px 0 0; }
.ice-legend button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; font: 400 11.5px/1 var(--mono); color: var(--ink-2); padding: 6px 9px; border: 1px solid transparent; }
.ice-legend button[aria-pressed="true"] { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
@media (hover: hover) { .ice-legend button:hover { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 30%, transparent); } }
.ice-legend i { width: 8px; height: 8px; background: var(--k); display: inline-block; }

/* light cone */
.ice-cone canvas { display: block; width: 100%; cursor: crosshair; touch-action: pan-y; }

table.plain tr.me td { color: var(--ink); }

@media (max-width: 620px) {
  .ice3d-top { position: static; flex-direction: column; gap: 6px; padding: 12px 0 4px; }
  .ice3d-note { text-align: left; max-width: none; }
}

.ice-fire { background: var(--ink); color: var(--bg); border-color: var(--ink); padding: 10px 16px; }
@media (hover: hover) { .ice-fire:hover { background: #ffffff; color: var(--bg); border-color: #ffffff; } }
.ice-fire:active { transform: translateY(1px); }

/* one card per step of the journey: the model at that point, what changed, and the formula */
.ice-step { --mono: var(--fig); --ink: var(--fig-ink); --ink-2: var(--fig-ink-2); --ink-3: var(--fig-ink-3); margin: 14px 0 26px; padding: 14px 0 0; border-top: 1px solid color-mix(in srgb, var(--k) 60%, transparent); }
.ice-step-h { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font: 500 10.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; }
.ice-step-h b { color: var(--k); font-weight: 500; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.ice-eq { margin: 14px 0 0; padding: 12px 14px; background: color-mix(in srgb, var(--ink) 6%, transparent); border-left: 2px solid var(--k); font: 400 13px/2 var(--mono); color: var(--ink); overflow-x: auto; white-space: nowrap; }
.ice-eq i, .ice-chg i { font-style: italic; }
.ice-eq .dim { color: var(--ink-3); }
.ice-chg { font: 400 12px/1.6 var(--mono) !important; color: var(--ink-2); margin: 10px 0 0 !important; }

/* model drawings: tiles, wedges and a readout, as in the H-Net figure of the other post */
.ice-flow-sc { overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.ice-flow svg { display: block; max-width: none; height: auto; margin: 0 auto; }
.ice-flow svg .nm { font: 500 var(--fs) var(--mono); letter-spacing: .1em; text-transform: uppercase; fill: var(--ink); }
.ice-flow svg .sub2 { font: 400 calc(var(--fs) * .92) var(--mono); fill: var(--ink-3); }
.ice-flow svg .cnt { font: 500 var(--fs) var(--mono); }
.ice-flow svg .sym { font: italic 500 16px var(--mono); }
.ice-flow svg .fun { fill: color-mix(in srgb, var(--ink) 9%, transparent); }
.ice-flow svg .hitbox { fill: transparent; }
.ice-flow svg [data-k] { cursor: pointer; transition: opacity .18s; outline: none; }
.ice-flow svg [data-k]:focus-visible .hitbox { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 3; }
.ice-flow[data-on] svg [data-k] { opacity: .24; } .ice-flow[data-on] svg [data-k].is { opacity: 1; }
#ice-arch .qa-out { display: grid; gap: 0; align-content: start; min-height: 232px; margin-top: 18px; font: 400 12.5px/1.5 var(--mono); color: var(--ink-2); --c: var(--ink-2); }
#ice-arch .qa-ttl { font: 400 19px/1.2 var(--display); letter-spacing: -.01em; color: var(--ink); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-bottom: 9px; }
#ice-arch .qa-ttl i { font: 400 11px/1 var(--mono); font-style: normal; letter-spacing: 0; color: var(--ink-3); margin-left: auto; }
#ice-arch .qa-lv { font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 99px; color: var(--bg); background: var(--c); white-space: nowrap; }
#ice-arch .qa { display: grid; grid-template-columns: 11em 1fr; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
#ice-arch .qa span { color: var(--c); } #ice-arch .qa em { font-style: normal; color: var(--ink); }
@media (max-width: 560px) { #ice-arch .qa { grid-template-columns: 1fr; gap: 2px; } #ice-arch .qa-out { min-height: 380px; } }
.ice-mini .ice-flow svg { margin: 0; }
.ice-flow-cap { font: 400 12px/1.55 var(--mono) !important; color: var(--ink-2); margin: 6px 0 0 !important; min-height: 3.1em; }
.ice-flow-cap b { color: var(--k, var(--ink)); font-weight: 500; }
.ice-step { border-top-color: color-mix(in srgb, var(--ink) 24%, transparent); }
.ice-eq { background: none; padding: 2px 0 2px 14px; margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .ice-flow svg [data-k] { transition: none; } }

/* step drawings: one equal column per stage, the picture on top and its text always visible underneath */
.ice-mini { margin: 4px 0 0; }
.ice-st { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.ice-st-c { min-width: 0; outline: none; transition: opacity .18s; cursor: default; }
.ice-st-c svg { display: block; width: 100%; height: auto; }
.ice-st-c svg .fun { fill: color-mix(in srgb, var(--ink) 9%, transparent); }
.ice-st-c svg .sym { font: italic 500 16px var(--mono); }
.ice-st-c .tx { padding: 12px 7px 0; text-align: center; font: 400 11px/1.45 var(--mono); color: var(--ink-2); text-wrap: balance; }
.ice-st-c .tx b { display: block; font: 500 10px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.ice-st-c .tx i { display: inline-block; margin: 5px 0 1px; padding: 2px 6px 3px; font: 500 8.5px/1 var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--bg); background: var(--c); }
.ice-st-c .tx span { display: block; margin-top: 5px; }
.ice-st:focus-within .ice-st-c:not(:focus) { opacity: .35; }
@media (hover: hover) { .ice-st:hover .ice-st-c:not(:hover) { opacity: .35; } }
.ice-st-c:focus-visible { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 40%, transparent); }
.ice-st.tall { display: block; }
.ice-st.tall .ice-st-c { display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.ice-st.tall .ice-st-c:first-child { border-top: 0; }
.ice-st.tall .ice-st-c svg { width: 104px; }
.ice-st.tall .tx { text-align: left; padding: 0; font-size: 12px; }
.ice-step .ice-eq { margin-top: 20px; }

/* hero: the block of ice on the left, everything about the event on the right */
.ice-h { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 36px; align-items: center; border-top: 1px solid color-mix(in srgb, var(--ink) 24%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--ink) 24%, transparent); padding: 10px 0 18px; }
.ice-h-stage { position: relative; min-width: 0; }
.ice-h-stage canvas { display: block; width: 100%; cursor: grab; touch-action: pan-y; }
.ice-h-stage canvas.drag { cursor: grabbing; }
.ice-h-depth { position: absolute; right: 0; width: 64px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; font: 500 10px/1 var(--mono); letter-spacing: .08em; color: var(--ink-2); }
.ice-h-depth i { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; border: 1px solid var(--ink-3); border-right: 0; }
.ice-h-depth span { padding-left: 14px; transform: translateY(-50%); } .ice-h-depth span:last-child { transform: translateY(50%); }
.ice-h-ttl { text-align: center; font: 500 10.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-top: 2px; }
.ice-h-side .k { font: 500 10.5px/1.3 var(--mono) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px !important; }
.ice-h-side .k b { color: var(--ink-2); font-weight: 500; }
.ice-h-side .kind { font: 500 22px/1.15 var(--mono); color: var(--ink); margin: 0 0 8px; letter-spacing: -.01em; }
.ice-h-side .note { font: 400 12px/1.55 var(--mono) !important; color: var(--ink-2); margin: 0 0 16px !important; min-height: 3.1em; }
.ice-h-side .stats { display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; gap: 6px 10px; margin: 0 0 20px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ice-h-side .stats dt { font: 400 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; }
.ice-h-side .stats dd { margin: 0; font: 500 17px/1 var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.ice-h-side table.ice-rows { width: 100%; border-collapse: collapse; font: 400 11.5px/1 var(--mono); font-variant-numeric: tabular-nums; margin: 0 0 16px; }
.ice-h-side .ice-rows th { text-align: right; font: 500 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.ice-h-side .ice-rows th:first-child, .ice-h-side .ice-rows td:first-child { text-align: left; }
.ice-h-side .ice-rows td { text-align: right; padding: 6px 0; color: var(--ink); }
.ice-h-side .ice-rows tr.nz td { color: var(--ink-3); }
.ice-h-side .ice-rows-w { height: 196px; overflow: hidden; margin: 0 0 16px; } .ice-h-side table.ice-rows { margin: 0; table-layout: fixed; }
.ice-h-side .ice-bar { margin: 0 0 14px; }
@media (max-width: 860px) { .ice-h { grid-template-columns: 1fr; gap: 18px; } .ice-h-side .stats { grid-template-columns: repeat(3, auto); } }

/* model diagrams: panels with a flat offset shadow, upright blocks, straight arrows, two-line labels */
.ice-mini, #ice-arch > div:first-child { width: min(1040px, calc(100vw - 40px)); margin-left: 50%; transform: translateX(-50%); }
.ice-dia-sc { overflow-x: auto; scrollbar-width: thin; }
.ice-dia svg { display: block; width: 100%; min-width: 760px; height: auto; margin: 0 auto; }
.ice-dia text { font-family: var(--mono); }
.ice-dia .d-in { font-size: 11px; font-weight: 500; letter-spacing: .14em; fill: var(--ink); }
.ice-dia .d-title { font-size: 13px; font-weight: 600; letter-spacing: .14em; }
.ice-dia .d-subin { font-size: 10px; font-weight: 400; letter-spacing: .1em; fill: var(--ink-2); }
.ice-dia .d-name { font-size: 12.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; fill: var(--ink); }
.ice-dia .d-sub { font-size: 10px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; fill: var(--ink-3); }
.ice-dia .d-mult { font-size: 13px; font-weight: 600; letter-spacing: .1em; }
.ice-dia .d-new { font-size: 8.5px; font-weight: 600; letter-spacing: .16em; }
.ice-dia .d-hit { fill: transparent; }
.ice-dia .d-flow { animation: d-march 1.4s linear infinite; }
@keyframes d-march { to { stroke-dashoffset: -24; } }
.ice-dia .d-it { cursor: pointer; outline: none; transition: opacity .18s; }
.ice-dia .d-it:focus-visible .d-hit { stroke: var(--ink-3); stroke-dasharray: 2 3; }
.ice-dia[data-on] .d-it { opacity: .3; } .ice-dia[data-on] .d-it.is { opacity: 1; }
.ice-dia-cap { max-width: 720px; margin: 2px auto 0 !important; text-align: center; font: 400 12px/1.55 var(--mono) !important; color: var(--ink-2); min-height: 3.2em; text-wrap: balance; }
.ice-dia-cap b { color: var(--ink); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
@media (prefers-reduced-motion: reduce) { .ice-dia .d-flow { animation: none; } .ice-dia .d-it { transition: none; } }

/* the loop inside each diagram */
.ice-dia .d-it { transition: opacity .18s, filter .3s; }
.ice-dia .d-it.act { filter: brightness(1.5) saturate(1.15); }
.ice-dia .d-dot { transition: opacity .14s; } .ice-dia .d-dot.off { opacity: 0; }
.ice-dia .d-it.act .d-vec { animation: d-aim .8s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes d-aim { from { transform: rotate(-130deg); } to { transform: rotate(0); } }

/* capital-letter labels follow the other post: table heads, row names and figure labels in small caps; sentences stay sentences */
.ice-h-side .ice-rows th { font: 500 10.5px/1.3 var(--mono); letter-spacing: .07em; }
.ice-h-side .stats dt { font-size: 10px; letter-spacing: .07em; }
.ice-h-side .kind { font: 500 21px/1.2 var(--mono); letter-spacing: 0; }
.ice-sizes > span:not(.n) { text-transform: uppercase; letter-spacing: .04em; font-size: 11.5px; font-weight: 500; color: var(--ink); }
.ice-facts div { font-size: 12px; }
.ice-step-h { letter-spacing: .12em; }
/* in the loop, the layers of a stack light one after another and attention grids sweep */
.ice-dia .d-it.act .d-ly { animation: d-ly .8s ease-out both; animation-delay: calc(var(--i) * .15s); }
@keyframes d-ly { 0% { filter: brightness(1); } 35% { filter: brightness(2.4); } 100% { filter: brightness(1); } }
.ice-dia .d-it.act .d-cell { animation: d-cell .85s ease-out both; animation-delay: calc(var(--i) * .055s); }
@keyframes d-cell { 0% { filter: brightness(1); } 30% { filter: brightness(3); } 100% { filter: brightness(1); } }
@media (prefers-reduced-motion: reduce) { .ice-dia .d-it.act .d-ly, .ice-dia .d-it.act .d-cell { animation: none; } }

/* tighter chart legend */
.ice-legend { gap: 2px 4px; margin-top: 10px; }
.ice-legend button { padding: 4px 8px; }
/* step diagrams: the explanation of a part is a tooltip, so nothing is reserved under the drawing */
/* The centring transform above makes each step diagram its own stacking context, so the tooltip's z-index only counts inside it.
   The diagram itself needs a z-index too, or anything positioned further down the page (table cells are position: relative)
   paints over the open tooltip and seems to cut it off. 7 keeps it over the side contents (6) and under the bar at the top (18). */
.ice-mini { position: relative; z-index: 7; }
.ice-dia-tip { max-width: min(340px, 100%); z-index: 6; text-transform: none; }
.ice-dia-tip b { text-transform: uppercase; letter-spacing: .1em; font-size: 10.5px; margin-bottom: 5px; }
.ice-step { margin: 12px 0 22px; padding-top: 12px; }
.ice-step-h { margin-bottom: 4px; }
/* formulas: one layout everywhere. A small-caps name on the left, the expression on the right, a "where" line under it. */
.ice-math { display: grid; grid-template-columns: max-content 1fr; gap: 7px 18px; align-items: baseline; margin: 0; padding: 4px 0 4px 14px; border-left: 2px solid var(--k, var(--ink-3)); }
.ice-math > div { display: contents; }
.ice-math dt { font: 500 10px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.ice-math dd { margin: 0; font: 400 13.5px/1.5 var(--mono); color: var(--ink); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.ice-math i, .ice-m i { font-style: italic; }
.ice-math sub, .ice-math sup, .ice-m sub, .ice-m sup { font-size: .72em; line-height: 0; }
.ice-m { font: 400 .93em var(--fig); color: var(--fig-ink); white-space: nowrap; }
.ice-step .ice-chg { margin: 8px 0 0 !important; padding-left: 16px; }
@media (max-width: 560px) { .ice-math { grid-template-columns: 1fr; gap: 2px 0; } .ice-math dt { margin-top: 6px; } }

/* the pulse table in the detector panel is an ordinary site table: same font, sizes and capitals as the tables in the other post */
.ice-h-side .tbl.ice-rows-w { height: 188px; overflow: hidden; margin: 0 0 16px; }
.ice-h-side .tbl table.plain.ice-rows { min-width: 0; width: 100%; table-layout: fixed; margin: 0; }
.ice-h-side .tbl table.plain.ice-rows th { font: 500 10.5px/1.25 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); text-align: right; padding: 0 0 5px 14px; }
.ice-h-side .tbl table.plain.ice-rows th:first-child, .ice-h-side .tbl table.plain.ice-rows td:first-child { text-align: left; padding-left: 0; }
.ice-h-side .tbl table.plain.ice-rows td { font: 400 12.5px/1.3 var(--mono); text-align: right; padding: 3px 0 3px 14px; color: var(--ink); text-transform: uppercase; }
.ice-h-side .tbl table.plain.ice-rows td:first-child, .ice-h-side .tbl table.plain.ice-rows td:last-child { font-size: 11.5px; font-weight: 500; letter-spacing: .04em; }
.ice-h-side .tbl table.plain.ice-rows tr.nz td { color: var(--ink-3); }
.ice-h-side .stats dt { font: 500 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.ice-h-side .k { font: 500 10.5px/1.3 var(--mono) !important; letter-spacing: .06em; }
.ice-h-side .tbl table.plain.ice-rows td:first-child::before { content: none !important; display: none !important; }
.ice-h-side .tbl table.plain.ice-rows td:first-child { padding-left: 0 !important; }

/* buttons and legends in the same small capitals as the labels */
.ice-chip { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 9px 12px; }
.ice-fire { padding: 11px 16px; }
.ice-key { font: 500 10px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.ice-legend button { font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.ice-read b { font-variant-numeric: tabular-nums; }

/* the four-column description table: a narrow name column, the rest for the sentence */
.tbl table.plain.ice-cols { min-width: 0; table-layout: fixed; }
.tbl table.plain.ice-cols th:first-child { width: 132px; }
.tbl table.plain.ice-cols code { font-family: var(--mono); font-size: 12px; background: none; padding: 0; color: var(--ink); }
.tbl table.plain.ice-cols td:nth-child(2) { color: var(--ink-2); }
.tbl table.plain.ice-cols td:first-child { text-transform: none; letter-spacing: 0; }

/* ---- phones and small tablets ---- */
/* touch-sized controls: links, chips and legend entries are at least 40px tall (the crumb and the contents toggle are done in site.css) */
@media (max-width: 900px) {
  .ice-links a { padding: 14px; }
  .ice-chip, .ice-fire { padding-top: 14px; padding-bottom: 14px; }
  .ice-legend { gap: 0 4px; }
  .ice-legend button { padding: 15px 9px; }
}
/* formulas wrap with a hanging indent instead of running off the edge; a figure title that wraps gets room between its lines */
@media (max-width: 560px) { .ice-math dd { white-space: normal; padding-left: 1.4em; text-indent: -1.4em; } .frame[data-fig]::before, .frame.frame-pad[data-fig]::before { line-height: 1.4; } }
/* diagrams on a narrow screen are drawn at full size in a sideways scroller (ice.js and rna.js add .ice-dia-px).
   The edge with more to see fades out, and a button on that edge scrolls. Tables that scroll get the same fade. */
.ice-dia-px { position: relative; }
.ice-dia-px .ice-dia-sc { overscroll-behavior-x: contain; }
.ice-dia.ice-dia-px .d-sub, .ice-dia.ice-dia-px .d-subin { font-size: 10.5px; }
.ice-dia.ice-dia-px .d-new { font-size: 9.5px; }
.ice-sc-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 44px); mask-image: linear-gradient(90deg, transparent, #000 44px); }
.ice-sc-r { -webkit-mask-image: linear-gradient(270deg, transparent, #000 44px); mask-image: linear-gradient(270deg, transparent, #000 44px); }
.ice-sc-l.ice-sc-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent); }
.ice-sc-go { all: unset; box-sizing: border-box; position: absolute; top: 50%; z-index: 2; width: 40px; height: 40px; margin-top: -20px; display: grid; place-items: center; cursor: pointer; font: 500 15px/1 var(--fig); color: var(--fig-ink); background: color-mix(in srgb, var(--bg) 88%, transparent); border: 1px solid color-mix(in srgb, var(--fig-ink) 30%, transparent); transition: opacity .2s, visibility .2s; }
.ice-sc-go.l { left: 0; } .ice-sc-go.r { right: 0; }
.ice-sc-go.off { opacity: 0; visibility: hidden; }
.ice-sc-go:focus-visible { outline: 1px solid var(--o0); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .ice-sc-go { transition: none; } }
/* a results table marked .fit: on a phone the columns sit closer and the name column stays put while the numbers scroll. With .long, long names wrap under their dot. */
@media (max-width: 620px) {
  .tbl table.plain.fit { min-width: 0; }
  .tbl table.plain.fit th, .tbl table.plain.fit td { padding-left: 10px; }
  .tbl table.plain.fit th:first-child { padding-left: 8px; }
  .tbl table.plain.fit td:first-child { padding-left: 24px; text-indent: -16px; }
  .tbl table.plain.fit.long td:first-child { white-space: normal; min-width: 11.5em; }
  .tbl table.plain.fit th:first-child, .tbl table.plain.fit td:first-child { position: sticky; left: 0; z-index: 1; background: var(--bg); }
  .tbl table.plain.ice-cols code { white-space: normal; overflow-wrap: anywhere; }
}
/* on a touch screen nothing stays in its hover look after the finger lifts, and tapped figures do not flash grey */
@media (hover: none) { .tbl table.plain tbody tr:hover td { background: none; } .tbl table.plain tbody tr[data-o]:hover td:first-child { color: inherit; } .gloss:hover { border-bottom: 1px dotted var(--ink-3); } .gloss:focus { border-bottom: 1px solid var(--ink); } }
.ice-dia .d-it, .ice-chip, .ice-legend button, .ice-sc-go, .ice-j svg, .ice-h-stage canvas, .ice-cone canvas { -webkit-tap-highlight-color: transparent; }
/* the opening T keeps its place before tcap.js draws it, so the first paragraph does not reflow; its dots line up with the text on every screen */
#tcap { float: left; width: 119px; height: 126px; margin: 2px 10px 0 -14px; -webkit-tap-highlight-color: transparent; }
#tcap:not(.on) { font: 700 112px/126px var(--fig); color: var(--fig-ink-3); text-align: center; }
