/* The engine page. Everything here sits on site.css: same black stage, white type, ultraviolet
   only as light and as marks. Seven layers, each a caption beside one instrument. An instrument
   is a card like the rehearsal console: ink ground, hairline border, figures in tabular type. */

.e-wordmark { display: flex; align-items: center; gap: clamp(12px, 1.2vw, 18px); }
.e-tag {
  padding-left: clamp(12px, 1.2vw, 18px);
  border-left: 1px solid var(--rule);
  font-size: clamp(0.8125rem, 1.05vw, 1rem); font-weight: 560;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--white);
}

/* ------------------------------------------------------------------ the gauge: how deep you are */

.e-layers { position: relative; background: var(--black); }

.e-gauge {
  position: sticky; top: var(--nav-h); z-index: 40;
  display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px);
  height: 46px; padding-inline: var(--pad);
  background: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border-block: 1px solid var(--rule-2);
  font-size: 0.8125rem; font-variant-numeric: tabular-nums;
  overflow-x: auto; scrollbar-width: none;
  /* it scrolls sideways and carries no scrollbar, so the layers at each end fade out instead of
     being cut through a letter: a cut word reads as a broken bar, a fading one reads as more bar */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 22px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 22px), transparent 100%);
}
.e-gauge::-webkit-scrollbar { display: none; }
.e-gauge-moment { flex: none; display: flex; align-items: baseline; gap: 8px; color: var(--text-2); white-space: nowrap; }
.e-gauge-moment strong { color: var(--white); font-weight: 560; }
.e-gauge-moment span { color: var(--text-3); }
.e-gauge ol { display: flex; gap: clamp(14px, 1.9vw, 28px); margin-left: auto; }
.e-gauge a {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-3); text-decoration: none; white-space: nowrap;
  transition: color 0.35s var(--ease);
}
.e-gauge a span { font-size: 0.6875rem; color: var(--text-3); transition: color 0.35s var(--ease); }
.e-gauge a::before {
  content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4);
  transition: background-color 0.35s, box-shadow 0.35s;
}
.e-gauge a:hover, .e-gauge a.is-on { color: var(--white); }
.e-gauge a.is-on span { color: var(--uv-line); }
.e-gauge a.is-on::before { background: var(--white); box-shadow: 0 0 0 3px rgba(98, 54, 201, 0.6), 0 0 14px 4px rgba(124, 85, 221, 0.75); }

/* ------------------------------------------------------------------ a layer: the words on the left, the instrument on the right */

.e-layer {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  column-gap: clamp(28px, 4vw, 72px); align-items: start;
  padding: clamp(56px, 9vh, 112px) var(--pad) clamp(72px, 13vh, 150px);
  border-bottom: 1px solid var(--rule-2);
  scroll-margin-top: 46px;
}
.e-layer:last-child { border-bottom: 0; }
.e-cap { position: sticky; top: calc(var(--nav-h) + 46px + 5vh); }
.e-num {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: clamp(16px, 2.6vh, 26px);
  font-size: 0.8125rem; font-weight: 520; letter-spacing: 0.02em; color: var(--text-2);
}
.e-num span { color: var(--uv-line); font-variant-numeric: tabular-nums; }
.e-sub { margin-top: 1em; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.45; color: var(--text-2); max-width: 24em; text-wrap: pretty; }
.e-try {
  display: flex; gap: 10px; align-items: baseline;
  margin-top: clamp(20px, 3.4vh, 34px); max-width: 26em;
  font-size: 0.875rem; line-height: 1.45; color: var(--text-3);
}
.e-try::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 3px rgba(98, 54, 201, 0.6), 0 0 12px 3px rgba(124, 85, 221, 0.7); transform: translateY(-1px); }

.e-inst {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
  font-size: 0.8125rem; line-height: 1.4;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'cv11', 'ss01', 'tnum', 'zero';
  box-shadow: 0 50px 140px -60px rgba(98, 54, 201, 0.55);
}
.e-inst figcaption { padding: 10px 20px 12px; border-top: 1px solid var(--rule-2); color: var(--text-3); font-size: 0.75rem; }
.e-body { padding: 0 20px 18px; }

.js .e-layer .e-inst, .js .e-layer .e-cap { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); }
.js .e-layer .e-inst { transition-delay: 0.12s; }
.js .e-layer.is-in .e-inst, .js .e-layer.is-in .e-cap { opacity: 1; transform: none; }

.e-head {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px;
  margin-inline: -20px; padding: 15px 20px 13px;
  border-bottom: 1px solid var(--rule);
}
.e-title { font-size: 0.9375rem; font-weight: 560; letter-spacing: -0.01em; }
.e-spec { color: var(--text-3); margin-right: auto; }
.e-chip { padding: 2px 10px 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); font-size: 0.6875rem; color: var(--text-2); white-space: nowrap; }
.e-btn {
  height: 28px; padding: 0 13px; border: 0; border-radius: 999px; cursor: pointer;
  background: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  font: inherit; font-size: 0.75rem; font-weight: 520; color: var(--white); white-space: nowrap;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s;
}
.e-btn:hover { background: var(--white); color: var(--black); }

/* a row of readouts */
.e-cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-inline: -20px; border-bottom: 1px solid var(--rule-2); }
.e-cell { padding: 12px 20px 11px; border-top: 1px solid var(--rule-2); border-right: 1px solid var(--rule-2); }
.e-cell:nth-child(3n) { border-right: 0; }
.e-cell-k { color: var(--text-3); font-size: 0.75rem; }
.e-cell-v { margin-top: 2px; font-size: 1.1875rem; font-weight: 540; letter-spacing: -0.015em; white-space: nowrap; transition: color 0.3s; }
.e-cell.is-hot .e-cell-v { color: #B79CFF; }

/* the load, by hand */
.e-load { display: grid; grid-template-columns: auto minmax(0, 1fr) 3.4em; align-items: center; column-gap: 16px; padding: 14px 0 8px; color: var(--text-2); }
.e-load-out { text-align: right; font-size: 1.0625rem; font-weight: 540; color: var(--white); }
.e-load-track { position: relative; display: block; padding-bottom: 14px; }
.e-load-rated { position: absolute; left: 76.19%; bottom: 0; transform: translateX(-50%); font-size: 0.6875rem; color: var(--text-3); pointer-events: none; }
.e-load-rated::before { content: ''; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 9px; background: rgba(255, 255, 255, 0.45); }
.e-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 26px; margin: 0; background: transparent; cursor: pointer; }
.e-range::-webkit-slider-runnable-track { height: 2px; border-radius: 1px; background: linear-gradient(90deg, var(--white) var(--fill, 50%), rgba(255, 255, 255, 0.22) var(--fill, 50%)); }
.e-range::-moz-range-track { height: 2px; border-radius: 1px; background: rgba(255, 255, 255, 0.22); }
.e-range::-moz-range-progress { height: 2px; border-radius: 1px; background: var(--white); }
.e-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin-top: -8px; border: 0; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 4px rgba(98, 54, 201, 0.55), 0 0 18px 4px rgba(124, 85, 221, 0.7); }
.e-range::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 4px rgba(98, 54, 201, 0.55), 0 0 18px 4px rgba(124, 85, 221, 0.7); }
.e-range:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; border-radius: 4px; }

/* shared chart marks */
.p-axis { fill: rgba(255, 255, 255, 0.5); font: 10.5px 'Inter', system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.p-note { fill: rgba(255, 255, 255, 0.55); font: 10.5px 'Inter', system-ui, sans-serif; }
.r-rules-t { margin: 18px 0 8px; color: var(--text-3); font-size: 0.75rem; }

/* ------------------------------------------------------------------ 1 physics */

.p-chart { margin-top: 4px; }
.p-svg { display: block; width: 100%; overflow: visible; }
.p-grid { stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }
.p-over { fill: rgba(98, 54, 201, 0.16); }
.p-rated { stroke: rgba(255, 255, 255, 0.4); stroke-width: 1; stroke-dasharray: 3 4; }
.p-iron { stroke: rgba(255, 255, 255, 0.5); stroke-width: 1; }
.p-curve { fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linejoin: round; }
.p-fill { fill: rgba(155, 123, 240, 0.22); }
.p-hair { stroke: rgba(255, 255, 255, 0.4); stroke-width: 1; }
.p-dot { fill: var(--white); stroke: rgba(98, 54, 201, 0.7); stroke-width: 6; paint-order: stroke; }
.p-tag { fill: var(--white); font: 600 11.5px 'Inter', system-ui, sans-serif; font-variant-numeric: tabular-nums; }

.p-therm { padding: 18px 0 2px; }
.p-therm-bar { position: relative; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); }
.p-therm-fill { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--white); transition: background-color 0.4s; }
.p-therm.is-hot .p-therm-fill { background: linear-gradient(90deg, var(--white) 0, #B79CFF 100%); }
.p-therm-rated { position: absolute; top: -5px; bottom: -5px; width: 1px; background: rgba(255, 255, 255, 0.7); }
.p-therm-goal { position: absolute; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--white); background: var(--ink); }
.p-therm-scale { position: relative; display: flex; justify-content: space-between; margin-top: 9px; color: var(--text-3); font-size: 0.6875rem; }
.p-therm-mid { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; color: var(--text-2); }

.e-eq { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rule-2); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; color: var(--text-2); font-size: 0.78125rem; }
.e-eq sup { font-size: 0.72em; line-height: 0; }

/* ------------------------------------------------------------------ 2 the wire */

.w-frame { display: flex; flex-wrap: wrap; gap: 14px 6px; padding: 18px 0 6px; }
.w-g {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  padding: 7px 7px 6px; border: 0; border-radius: 9px; cursor: pointer;
  background: none; box-shadow: inset 0 0 0 1px var(--rule-2);
  font: inherit; color: var(--text-3); text-align: left;
  transition: box-shadow 0.25s, background-color 0.25s;
}
.w-g:hover, .w-g.is-sel { background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55); }
.w-g.is-crc { box-shadow: inset 0 0 0 1px rgba(155, 123, 240, 0.6); }
.w-g.is-crc.is-sel, .w-g.is-crc:hover { box-shadow: inset 0 0 0 1px #B79CFF, 0 0 0 3px rgba(98, 54, 201, 0.4); }
.w-bytes { display: flex; gap: 3px; }
.w-b {
  display: block; width: 2.05em; padding: 3px 0 4px; border-radius: 5px; text-align: center;
  background: rgba(0, 0, 0, 0.45);
  font-size: 0.9375rem; font-weight: 560; letter-spacing: 0.02em; color: var(--white);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.w-b.is-new { background: var(--ultraviolet); transition: none; }
.w-lab { font-size: 0.6875rem; color: var(--text-3); }
.w-val { min-height: 1.35em; font-size: 0.75rem; color: var(--text-2); white-space: nowrap; }
.w-g.is-sel .w-lab, .w-g.is-sel .w-val { color: var(--white); }

.w-detail { margin-top: 10px; padding: 12px 14px 13px; border-radius: 10px; background: rgba(0, 0, 0, 0.35); min-height: 5.6em; }
.w-detail-t { font-weight: 560; color: var(--white); }
.w-detail-x { margin-top: 3px; color: var(--text-2); text-wrap: pretty; }
.w-also { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--rule-2); }
.w-also-t { color: var(--text-3); font-size: 0.75rem; }
.w-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.w-chips li { padding: 2px 10px 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24); font-size: 0.75rem; color: var(--text-2); }

/* ------------------------------------------------------------------ 3 power and network */

.b-list { margin: 8px -20px 0; }
.b-row {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 5.2em 10.6em; align-items: center; column-gap: 12px;
  width: 100%; height: 29px; padding: 0 20px;
  border: 0; border-bottom: 1px solid var(--rule-2); background: none; cursor: pointer;
  font: inherit; color: var(--white); text-align: left;
  transition: background-color 0.25s, color 0.4s var(--ease);
}
.b-row::before { content: ''; position: absolute; left: 26px; top: 0; bottom: 0; width: calc(var(--d, 0) * 18px); background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.13) 0 1px, transparent 1px 18px); pointer-events: none; }
.b-row:hover { background: rgba(255, 255, 255, 0.05); }
.b-name { display: flex; align-items: center; gap: 9px; min-width: 0; padding-left: calc(var(--d, 0) * 18px); font-weight: 520; }
.b-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-kind { color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-v { text-align: right; color: var(--text-2); white-space: nowrap; }
.b-st { color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--white); transition: background-color 0.3s, box-shadow 0.3s; }
.is-off .b-dot { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3); }
.is-fault .b-dot { background: #B79CFF; box-shadow: 0 0 0 3px rgba(98, 54, 201, 0.55), 0 0 12px 3px rgba(124, 85, 221, 0.8); }
.is-start .b-dot { background: var(--white); animation: b-pulse 0.7s ease-in-out infinite alternate; }
@keyframes b-pulse { from { opacity: 0.25; } to { opacity: 1; } }
.b-row.is-off { color: rgba(255, 255, 255, 0.34); }
.b-row.is-off .b-v, .b-row.is-off .b-kind, .b-row.is-off .b-st { color: rgba(255, 255, 255, 0.3); }
.b-row.is-fault .b-st, .b-row.is-blind .b-st { color: #B79CFF; }
.b-row.is-start .b-st { color: var(--white); }
.b-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding-top: 12px; color: var(--text-3); font-size: 0.75rem; }
.b-key { display: inline-flex; align-items: center; gap: 8px; }
.b-rule { margin-left: auto; }

/* ------------------------------------------------------------------ 4 the day */

.d-read { border-bottom: 0; }
.d-chart { margin-top: 6px; touch-action: pan-y; }
.d-day { display: block; width: 100%; overflow: visible; cursor: crosshair; }
.d-closed { fill: rgba(98, 54, 201, 0.3); }
.d-closed-t { fill: #CDBBFF; font: 600 10.5px 'Inter', system-ui, sans-serif; }
.d-area { fill: rgba(255, 255, 255, 0.1); }
.d-queue { fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linejoin: round; }
.d-temp { fill: none; stroke: #9B7BF0; stroke-width: 1.5; stroke-linejoin: round; }
.d-base { stroke: rgba(255, 255, 255, 0.3); stroke-width: 1; }
.d-head { stroke: var(--white); stroke-width: 1; }
.d-dot { stroke: var(--ink); stroke-width: 2; }
.d-dot-g { fill: rgba(255, 255, 255, 0.55); } .d-dot-q { fill: var(--white); } .d-dot-t { fill: #9B7BF0; }
.d-key { display: flex; flex-wrap: wrap; gap: 6px 20px; padding-top: 8px; color: var(--text-3); font-size: 0.75rem; }
.d-k { display: inline-flex; align-items: center; gap: 8px; }
.d-k::before { content: ''; width: 14px; height: 2px; background: var(--white); }
.d-k.is-g::before { height: 8px; background: rgba(255, 255, 255, 0.2); }
.d-k.is-t::before { background: #9B7BF0; }
.d-log { margin-top: 14px; border-top: 1px solid var(--rule-2); }
.d-ev { display: grid; grid-template-columns: 5.4em minmax(0, 1fr); column-gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--rule-2); color: rgba(255, 255, 255, 0.3); transition: color 0.4s var(--ease); }
.d-ev:last-child { border-bottom: 0; padding-bottom: 0; }
.d-ev.is-on { color: var(--white); }
.d-ev.is-on .d-ev-t { color: var(--uv-line); }
.d-ev-x { text-wrap: pretty; }

/* ------------------------------------------------------------------ 5 the record */

.r-chain { margin: 8px -20px 0; }
.r-row { border-bottom: 1px solid var(--rule-2); }
.js .e-layer .r-row { opacity: 0; transform: translateX(-10px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); transition-delay: calc(0.25s + var(--i, 0) * 0.07s); }
.js .e-layer.is-in .r-row { opacity: 1; transform: none; }
.r-btn {
  position: relative;
  display: grid; grid-template-columns: 15.2em minmax(0, 1fr) auto; align-items: baseline; column-gap: 14px;
  width: 100%; padding: 8px 20px 8px; border: 0; background: none; cursor: pointer;
  font: inherit; color: rgba(255, 255, 255, 0.45); text-align: left;
  transition: color 0.3s var(--ease), background-color 0.25s;
}
.r-btn:hover { background: rgba(255, 255, 255, 0.05); }
.r-id { font-size: 0.75rem; letter-spacing: 0.01em; }
.r-say { padding-left: calc(var(--d, 0) * 16px); }
.r-say::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; vertical-align: 1px; }
.r-dt { font-size: 0.75rem; white-space: nowrap; }
.is-path .r-btn { color: var(--white); }
.is-path .r-id { color: var(--uv-line); }
.is-path .r-say::before { background: var(--white); box-shadow: 0 0 0 3px rgba(98, 54, 201, 0.55); }
.is-sel .r-btn { background: rgba(255, 255, 255, 0.05); }

.r-rule, .s-check { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: baseline; column-gap: 10px; padding: 7px 0; border-top: 1px solid var(--rule-2); }
.r-rule-x, .s-check-x { color: var(--white); }
.r-rule-v { color: var(--text-2); white-space: nowrap; }
.r-tick, .r-flag { position: relative; width: 14px; height: 14px; align-self: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7); }
.r-tick::after { content: ''; position: absolute; left: 4.5px; top: 2.5px; width: 3.5px; height: 6.5px; border: solid var(--white); border-width: 0 1.6px 1.6px 0; transform: rotate(42deg); }
.r-flag { background: var(--ultraviolet); box-shadow: inset 0 0 0 1.5px #B79CFF, 0 0 0 3px rgba(98, 54, 201, 0.4); }
.r-flag::after { content: ''; position: absolute; left: 6px; top: 3px; width: 2px; height: 5px; background: var(--white); box-shadow: 0 6.5px 0 0 var(--white); }

/* ------------------------------------------------------------------ 6 the source */

.s-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; padding-top: 14px; }
.s-fact {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 5.6em; align-items: baseline; column-gap: 12px;
  width: 100%; padding: 8px 10px; border: 0; border-bottom: 1px solid var(--rule-2); border-radius: 0; background: none; cursor: pointer;
  font: inherit; color: var(--text-2); text-align: left; transition: background-color 0.25s, color 0.3s;
}
.s-fact:hover, .s-fact.is-sel { background: rgba(255, 255, 255, 0.06); color: var(--white); }
.s-fact-v { font-weight: 560; color: var(--white); white-space: nowrap; }
.s-fact-p { font-size: 0.75rem; color: var(--text-3); text-align: right; }
.s-fact.is-assumed .s-fact-p { color: #B79CFF; }
.s-card { align-self: start; padding: 16px 18px 18px; border-radius: 12px; background: var(--white); color: var(--black); box-shadow: 0 30px 90px -30px rgba(98, 54, 201, 0.8); }
.s-card-f { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; }
.s-card-p { display: inline-block; margin-top: 10px; padding: 1px 9px 2px; border-radius: 999px; background: var(--black); color: var(--white); font-size: 0.6875rem; font-weight: 560; }
.s-card.is-assumed .s-card-p { background: var(--ultraviolet); }
.s-card-d { margin-top: 12px; font-weight: 600; }
.s-card-w { margin-top: 2px; color: rgba(0, 0, 0, 0.62); text-wrap: pretty; }

.s-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: rgba(255, 255, 255, 0.1); }
.s-bar-x { width: 86%; background: var(--white); }
.s-bar-a { width: 14%; background: #9B7BF0; }
.js .e-layer .s-bar-x, .js .e-layer .s-bar-a { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.1s var(--ease) 0.4s; }
.js .e-layer.is-in .s-bar-x, .js .e-layer.is-in .s-bar-a { transform: none; }
.js .e-layer .s-bar-a { transition-delay: 1.1s; }
.s-census-k { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 9px; font-size: 0.75rem; color: var(--text-3); }
.s-census-k .is-x { color: var(--white); } .s-census-k .is-a { color: #B79CFF; }

.s-checks { counter-reset: check; }
.s-check { grid-template-columns: 18px minmax(0, 1fr); }
.js .e-layer .s-check { opacity: 0; transition: opacity 0.5s var(--ease); transition-delay: calc(0.6s + var(--i, 0) * 0.09s); }
.js .e-layer.is-in .s-check { opacity: 1; }
.s-check-x { color: var(--text-2); }
.s-check.is-found .s-check-x { color: var(--white); }
.s-check-f { grid-column: 2; margin-top: 2px; color: #B79CFF; }
.s-verdict { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule-2); color: var(--white); max-width: 46em; text-wrap: pretty; }

/* ------------------------------------------------------------------ 7 the repeat */

.x-lane { padding: 14px 0 4px; border-bottom: 1px solid var(--rule-2); }
.x-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.x-name { font-weight: 560; color: var(--white); }
.x-seed { color: var(--text-2); min-width: 6.2em; text-align: center; }
.x-ctl { display: inline-flex; align-items: center; gap: 4px; }
.x-step { width: 28px; height: 28px; border: 0; border-radius: 50%; cursor: pointer; background: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); font: inherit; font-size: 1rem; line-height: 1; color: var(--white); transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.x-step:hover { background: var(--white); color: var(--black); }
.x-digest { margin-left: auto; color: var(--text-3); letter-spacing: 0.02em; }
.x-chart { margin-top: 8px; }
.x-svg { display: block; width: 100%; overflow: visible; }
.x-temp { fill: none; stroke: #9B7BF0; stroke-width: 1.5; stroke-linejoin: round; }
.x-base { stroke: rgba(255, 255, 255, 0.3); stroke-width: 1; }
.x-fault { fill: var(--white); stroke: rgba(98, 54, 201, 0.7); stroke-width: 5; paint-order: stroke; }
.x-lab { fill: rgba(255, 255, 255, 0.78); font: 10.5px 'Inter', system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.x-svg.is-drawn { animation: x-in 0.7s var(--ease) both; }
@keyframes x-in { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.x-verdict { padding-top: 14px; font-size: 0.9375rem; font-weight: 540; color: #B79CFF; text-wrap: pretty; }
.x-verdict.is-same { color: var(--white); }

/* ------------------------------------------------------------------ narrower */

@media (max-width: 1100px) {
  .e-gauge-moment span { display: none; }
  .b-row { grid-template-columns: minmax(0, 1.5fr) 5.2em 9.4em; }
  .b-kind { display: none; }
}

@media (max-width: 900px) {
  /* nav and gauge together are a fifth of a phone screen, so headings spend a long time sliding
     under this bar: take it nearly opaque, or the two sets of words read through each other */
  .e-gauge { height: 42px; gap: 16px; background: rgba(0, 0, 0, 0.95); }
  .p-axis, .p-note, .d-closed-t, .x-lab { font-size: 11px; }
  .e-gauge ol { margin-left: 0; gap: 16px; padding-right: var(--pad); }
  .e-gauge-moment { display: none; }
  .e-layer { grid-template-columns: 1fr; row-gap: 26px; padding-block: clamp(56px, 9vh, 96px); scroll-margin-top: 42px; }
  .e-cap { position: static; }
  .e-sub { max-width: 34em; }
  .e-body { padding: 0 14px 14px; }
  .e-head { margin-inline: -14px; padding: 12px 14px 11px; }
  .e-inst figcaption { padding: 9px 14px 11px; }
  .e-cells { margin-inline: -14px; }
  .e-cell { padding: 10px 14px 9px; }
  .e-cell-v { font-size: 1rem; }
  .e-eq { grid-template-columns: 1fr; }
  .e-load { grid-template-columns: minmax(0, 1fr) 3.2em; row-gap: 2px; }
  .e-load-name { grid-column: 1 / -1; }
  .b-list, .r-chain { margin-inline: -14px; }
  .b-row { grid-template-columns: minmax(0, 1fr) 8.6em; height: 30px; padding: 0 14px; column-gap: 8px; font-size: 0.75rem; }
  .b-name { padding-left: calc(var(--d, 0) * 12px); }
  .b-row::before { left: 18px; width: calc(var(--d, 0) * 12px); background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.13) 0 1px, transparent 1px 12px); }
  .b-v { display: none; }
  .b-rule { margin-left: 0; }
  .r-btn { grid-template-columns: minmax(0, 1fr) auto; padding-inline: 14px; row-gap: 1px; }
  .r-id { grid-column: 1 / -1; font-size: 0.6875rem; }
  .r-say { padding-left: calc(var(--d, 0) * 10px); }
  .s-split { grid-template-columns: 1fr; }
  .s-fact { grid-template-columns: minmax(0, 1fr) auto; }
  .s-fact-p { grid-column: 1 / -1; text-align: left; }
  .x-digest { margin-left: 0; width: 100%; }
  .w-b { font-size: 0.8125rem; }
}

@media (max-width: 420px) {
  /* a device's name is what this list is for: on a narrow phone it was cut to its first word or
     two ("T-2 station tra..."). The name takes a second line instead, and the row grows with it */
  .b-row { grid-template-columns: minmax(0, 1fr) 7.9em; height: auto; min-height: 30px; padding-block: 5px; }
  .b-label { white-space: normal; overflow: visible; line-height: 1.25; }

  /* three readouts across is one too many here: "Temperature" and "52 guests" ran out of their
     cells and into the next. Two across, and the rules between them follow */
  .e-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .e-cell:nth-child(3n) { border-right: 1px solid var(--rule-2); }
  .e-cell:nth-child(2n) { border-right: 0; }
}

/* ------------------------------------------------------------------ stillness */

@media (prefers-reduced-motion: reduce) {
  .js .e-layer .e-inst, .js .e-layer .e-cap, .js .e-layer .r-row, .js .e-layer .s-check, .js .e-layer .s-bar-x, .js .e-layer .s-bar-a { opacity: 1; transform: none; transition: none; }
  .is-start .b-dot, .x-svg.is-drawn { animation: none; }
  .w-b { transition: none; }
}
.is-frozen .e-layer .e-inst, .is-frozen .e-layer .e-cap, .is-frozen .e-layer .r-row, .is-frozen .e-layer .s-check, .is-frozen .e-layer .s-bar-x, .is-frozen .e-layer .s-bar-a { opacity: 1; transform: none; transition: none; }
.is-frozen .is-start .b-dot, .is-frozen .x-svg.is-drawn { animation: none; }
