/* Mining page only. Shared components live in site.css; colours only as var(--ep-*). */

/* ---------- hero: the claim, the datasheet, the index ---------- */
.m-hero { padding-top: clamp(28px, 4.4vw, 64px); }
.m-hero-top {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--ep-space-2) var(--ep-space-5);
  padding-bottom: var(--ep-space-4); border-bottom: 1px solid var(--ep-rule-strong);
}
.m-hero-top .lbl { color: var(--ep-text); }
.m-statement { max-width: 22ch; }
.m-line-2 { color: var(--ep-text-2); }
@media (min-width: 1101px) {
  .m-statement { max-width: none; }
  .m-line { display: block; }
}
.m-hero-body {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--ep-col-gap); row-gap: var(--ep-space-6);
  align-items: start; padding-top: clamp(28px, 3.4vw, 48px);
}
.m-hero-text { grid-column: 1 / span 6; display: grid; gap: var(--ep-space-4); align-content: start; }
.m-hero-text .lead { max-width: 46ch; }
.m-hero-spec { grid-column: 8 / -1; }

.m-toc {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--ep-col-gap); row-gap: var(--ep-space-3);
  margin-top: clamp(40px, 4.4vw, 64px); border-top: 1px solid var(--ep-rule-strong); padding-top: var(--ep-space-4);
}
.m-toc > .lbl { grid-column: 1 / span 3; color: var(--ep-text); }
.m-toc-list { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--ep-col-gap); }
.m-toc-list a {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding-block: 8px;
  border-bottom: 1px solid var(--ep-rule); color: var(--ep-text-2); text-decoration: none; font-size: 15px; line-height: 1.3;
}
.m-toc-list a::before { content: ""; width: 7px; height: 7px; flex: none; border: 1.5px solid currentColor; }
.m-toc-list a:hover { color: var(--ep-text); border-bottom-color: var(--ep-text); }
.m-toc-list a:hover::before { background: currentColor; }

@media (max-width: 900px) {
  .m-hero-text, .m-hero-spec { grid-column: 1 / -1; }
  .m-toc > .lbl, .m-toc-list { grid-column: 1 / -1; }
  .m-toc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .m-hero-spec { grid-template-columns: minmax(0, 1fr); }
  .m-hero-spec dd { border-top: 0; padding-top: 0; }
  .m-hero-spec dt { padding-bottom: 4px; }
  .m-toc-list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- the explainer, set apart on a panel band ---------- */
.m-lab-section { padding-top: clamp(56px, 6vw, 88px); }
.m-lab { background: var(--ep-panel); border-block: 1px solid var(--ep-rule); padding-block: clamp(48px, 6vw, 96px); }
.m-lab .section-head { margin-bottom: clamp(32px, 4vw, 56px); }

.mx-figure {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--ep-col-gap); row-gap: var(--ep-space-7);
  align-items: start; margin: 0;
}
.mx-stage { grid-column: 1 / span 7; min-width: 0; }
.mx-work { grid-column: 8 / -1; min-width: 0; }
.mx-cap { grid-column: 1 / -1; }
@media (max-width: 1000px) {
  .mx-stage, .mx-work { grid-column: 1 / -1; }
  .mx-figure { row-gap: var(--ep-space-6); }
}

/* the tile: 12 × 12 cells of one size, A bottom left, B top right, C bottom right, the legend in
   the empty quadrant, like the mark. One cell is --s; values print only at 28 px and up. */
.mx-wrap { container: mx / inline-size; width: 100%; max-width: 624px; }
.mx {
  --s: calc(100cqi / 12);
  --i: 3; --j: 4; --q: 4; --mx-p: 1;
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: repeat(12, var(--s)); grid-template-rows: repeat(12, var(--s));
  font-family: var(--ep-font-mono); font-stretch: var(--ep-width-data); font-variant-numeric: tabular-nums;
  font-size: max(10px, calc(var(--s) * .29)); line-height: 1;
}
.mx-legend {
  grid-column: 1 / 6; grid-row: 1 / 6; min-width: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 0 var(--ep-space-2) calc(var(--s) * .12) 0;
  font-size: max(10px, calc(var(--s) * .235)); line-height: 1.55; color: var(--ep-text-3);
}
.mx-legend-top, .mx-legend-bottom { display: grid; gap: 2px; }
.mx-dims { display: flex; flex-wrap: wrap; column-gap: 1.2em; }
.mx-dims > span { white-space: nowrap; }
.mx-big {
  font-family: var(--ep-font-sans); font-stretch: var(--ep-width-display); font-weight: 380;
  font-size: calc(var(--s) * 1.5); line-height: .95; letter-spacing: -.02em; color: var(--ep-text);
  font-variant-numeric: tabular-nums;
}
.mx-name {
  font-family: var(--ep-font-sans); font-stretch: var(--ep-width-label); font-weight: 650;
  font-size: 11.5px; letter-spacing: .14em; color: var(--ep-text-2); line-height: 1;
}
.mx-name-a { grid-column: 1; grid-row: 6; align-self: end; padding-bottom: 6px; }
.mx-name-c { grid-column: 7; grid-row: 6; align-self: end; padding-bottom: 6px; }
.mx-name-b { grid-column: 6; grid-row: 1; justify-self: center; padding-top: 2px; }

.mx-a, .mx-b, .mx-c { display: grid; gap: 1px; grid-auto-rows: calc(var(--s) - 1px); }
.mx-a { grid-column: 1 / 6; grid-row: 7 / 13; grid-template-columns: repeat(5, calc(var(--s) - 1px)); }
.mx-b { grid-column: 7 / 13; grid-row: 1 / 6; grid-template-columns: repeat(6, calc(var(--s) - 1px)); }
.mx-c { grid-column: 7 / 13; grid-row: 7 / 13; grid-template-columns: repeat(6, calc(var(--s) - 1px)); }

/* the thermal ramp, seven steps, never blended. The ink on each step comes from the palette
   (--ep-t-*-ink, when tokens.css defines it), else from mining.js's probe (the most legible of
   the kit's inks on that step, in this theme), else from these fallbacks, which suit Carbon. */
.mx-figure .t-n3 { --mx-bg: var(--ep-t-n3); --mx-fg: var(--ep-t-n3-ink, var(--mx-ink-n3, var(--ep-cell-ink))); }
.mx-figure .t-n2 { --mx-bg: var(--ep-t-n2); --mx-fg: var(--ep-t-n2-ink, var(--mx-ink-n2, var(--ep-text))); }
.mx-figure .t-n1 { --mx-bg: var(--ep-t-n1); --mx-fg: var(--ep-t-n1-ink, var(--mx-ink-n1, var(--ep-text))); }
.mx-figure .t-0 { --mx-bg: var(--ep-t-0); --mx-fg: var(--ep-t-0-ink, var(--mx-ink-0, var(--ep-text))); }
.mx-figure .t-p1 { --mx-bg: var(--ep-t-p1); --mx-fg: var(--ep-t-p1-ink, var(--mx-ink-p1, var(--ep-text))); }
.mx-figure .t-p2 { --mx-bg: var(--ep-t-p2); --mx-fg: var(--ep-t-p2-ink, var(--mx-ink-p2, var(--ep-cell-ink))); }
.mx-figure .t-p3 { --mx-bg: var(--ep-t-p3); --mx-fg: var(--ep-t-p3-ink, var(--mx-ink-p3, var(--ep-cell-ink))); }

.mx-cell {
  display: grid; place-items: center; min-width: 0; min-height: 0;
  background: var(--mx-bg); color: var(--mx-fg);
  transition: opacity .2s;
}
.mx-v { position: relative; z-index: 2; white-space: nowrap; }
/* the dashed paths pass behind C's values, never through them */
.mx-c .mx-v { background: var(--mx-bg); padding-inline: .2em; }
.mx-c .mx-cell.is-target .mx-v { background: none; }
/* Outside the row of A and the column of B in play, cells dim and their values step out of
   sight (a value at a third of its ink would fall far below AA). The sum lists every pair.
   A dimmed cell is its step at 30 % over --ep-t-dim-base: transparent (so over the panel, exactly
   as 30 % opacity) except on Fathom, where a neutral base keeps dimmed brass brass. */
.mx-a .mx-cell, .mx-b .mx-cell { transition: background-color .2s; }
.mx-a .mx-cell:not(.is-on), .mx-b .mx-cell:not(.is-on) { background: color-mix(in srgb, var(--mx-bg) 30%, var(--ep-t-dim-base)); }
.mx-a .mx-cell:not(.is-on) .mx-v, .mx-b .mx-cell:not(.is-on) .mx-v { visibility: hidden; }

.mx-c .mx-cell {
  position: relative; border: 0; border-radius: 0; margin: 0; padding: 0;
  font: inherit; -webkit-appearance: none; appearance: none;
}
.mx-c button.mx-cell { cursor: pointer; }
/* hover: a text ring lined with a band of the panel, so it shows on the bright steps too (the text
   ring alone fell to 1.5:1 on a +3 cell) */
.mx-c button.mx-cell:hover { box-shadow: inset 0 0 0 1px var(--ep-text), inset 0 0 0 2px var(--ep-panel); }
/* the ring stands 2 px off the cell on a 2 px band of the panel, so a bright neighbour or the pearl
   never swallows a side of it (the halo, Bond only, fills the gap inside). In all four colourways:
   the kit's ring, 1 px off, fell to 1:1 where it crossed the pearl in Carbon and Datasheet. */
.mx-c .mx-cell:focus-visible { outline: 2px solid var(--ep-focus); outline-offset: 2px; box-shadow: 0 0 0 2px var(--ep-focus-halo), 0 0 0 6px var(--ep-panel); z-index: 3; }
/* the chosen cell is the pearl (--ep-tile-pearl: the text colour in Useful Work, Glint on Fathom,
   Sea Glass Deep on Bond), drawn on the ground; its value prints inside once it resolves */
.mx-c .mx-cell.is-target { background: transparent; color: var(--ep-panel); }
.mx-c .mx-cell.is-target:hover { box-shadow: none; }
.mx-c .mx-cell.is-target::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ep-tile-pearl);
  transform: scale(var(--mx-p)); transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
/* on the pearl the highlight reverses, as on the inverse cells: the selection colour is the pearl's
   own in Carbon, Datasheet and Fathom, so a plain highlight would not show */
.mx-c .mx-cell.is-target::selection, .mx-c .mx-cell.is-target ::selection { background: var(--ep-panel); color: var(--ep-text); }
.mx[data-phase="arm"] .is-target .mx-v, .mx[data-phase="step"] .is-target .mx-v { opacity: 0; }

/* overlays: the row of A, the column of B, the pair being multiplied, the paths into the cell */
.mx-o { position: absolute; z-index: 1; pointer-events: none; }
.mx-arow, .mx-aterm {
  left: 0; top: calc((6 + var(--i)) * var(--s));
  width: calc(5 * var(--s) - 1px); height: calc(var(--s) - 1px);
  border: 1px solid var(--ep-text);
}
.mx-bcol, .mx-bterm {
  left: calc((6 + var(--j)) * var(--s)); top: 0;
  width: calc(var(--s) - 1px); height: calc(5 * var(--s) - 1px);
  border: 1px solid var(--ep-text);
}
.mx-aterm, .mx-bterm { width: calc(var(--s) - 1px); height: calc(var(--s) - 1px); border-width: 2px; opacity: 0; transition: left .22s, top .22s, opacity .2s; }
.mx-aterm { left: calc(var(--q) * var(--s)); }
.mx-bterm { top: calc(var(--q) * var(--s)); }
.mx[data-phase="step"] .mx-aterm, .mx[data-phase="step"] .mx-bterm { opacity: 1; }
.mx-hline {
  left: calc(5 * var(--s)); top: calc((6.5 + var(--i)) * var(--s) - 1px);
  width: calc((1 + var(--j)) * var(--s)); height: 1px;
  background: repeating-linear-gradient(90deg, var(--ep-text-3) 0 2px, transparent 2px 5px);
}
.mx-vline {
  left: calc((6.5 + var(--j)) * var(--s) - 1px); top: calc(5 * var(--s));
  width: 1px; height: calc((1 + var(--i)) * var(--s));
  background: repeating-linear-gradient(180deg, var(--ep-text-3) 0 2px, transparent 2px 5px);
}

/* below 28 px a cell is too small to print its value (the kit's rule) */
@container mx (width < 336px) {
  .mx-v { visibility: hidden; }
}

/* ---------- the working: the sum, pair by pair ---------- */
.mx-work { display: grid; gap: var(--ep-space-4); align-content: start; }
.mx-work-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--ep-space-2) var(--ep-space-4);
  border-top: 1px solid var(--ep-rule-strong); padding-top: var(--ep-space-3);
}
.mx-work-head .lbl { color: var(--ep-text); }
.mx-eq { max-width: none; font-size: 13px; line-height: 1.7; color: var(--ep-text-2); overflow-wrap: anywhere; }
.mx-eq-cell { color: var(--ep-text); }
.mx-term { transition: color .2s; }
.mx-term.is-todo { color: var(--ep-text-3); }
.mx-term.is-now { color: var(--ep-text); box-shadow: inset 0 -2px 0 var(--ep-text); }
.mx-eq-res b { font-weight: 500; color: var(--ep-text); }
.mx-eq-res.is-todo { visibility: hidden; }

.mx-table { table-layout: fixed; }
.mx-table th, .mx-table td { padding: 9px 12px 9px 0; }
.mx-table thead th { text-transform: none; letter-spacing: .02em; font-family: var(--ep-font-mono); font-stretch: var(--ep-width-data); font-weight: 400; font-size: 11.5px; }
.mx-table thead th:first-child { font-family: var(--ep-font-sans); font-stretch: var(--ep-width-label); font-weight: 650; text-transform: uppercase; letter-spacing: .14em; }
.mx-table thead th:nth-child(4), .mx-table thead th:nth-child(5) { font-family: var(--ep-font-sans); font-stretch: var(--ep-width-label); font-weight: 650; text-transform: uppercase; letter-spacing: .14em; }
.mx-table tbody th, .mx-table td, .mx-table tfoot th {
  font-family: var(--ep-font-mono); font-stretch: var(--ep-width-data); font-weight: 400; font-size: 13px; line-height: 1.45;
}
.mx-table tbody th { color: var(--ep-text-3); }
.mx-table .num:last-child { padding-right: 0; }
.mx-table tbody td:nth-child(5) { color: var(--ep-text); }
.mx-table tbody td:nth-child(2), .mx-table tbody td:nth-child(3) { color: var(--ep-text-2); }
.mx-table tbody td:empty::after { content: "·"; color: var(--ep-text-3); }
.mx-table tbody tr { transition: background-color .2s; }
.mx-table tbody tr.is-now { background: var(--ep-tint); }
.mx-table tbody tr.is-now th, .mx-table tbody tr.is-now td { color: var(--ep-text); }
.mx-table tfoot th, .mx-table tfoot td { border-top: 1px solid var(--ep-rule-strong); padding-top: 12px; color: var(--ep-text); }
.mx-table tfoot td { font-size: 17px; font-weight: 500; }
.mx-table tfoot td:empty::after { content: "·"; color: var(--ep-text-3); }

.mx-controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ep-space-3); }
.mx-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; cursor: pointer;
  font-family: var(--ep-font-sans); font-stretch: var(--ep-width-label); font-weight: 650; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ep-text); background: transparent; border: 1px solid var(--ep-control-line); border-radius: var(--ep-radius-1);
}
.mx-btn:hover { border-color: var(--ep-text); }
.mx-btn::before { content: ""; width: 8px; height: 8px; flex: none; border: 1.5px solid currentColor; }
.mx-btn[data-state="playing"]::before { border-width: 0 2.5px; width: 9px; height: 10px; }
.mx-btn[data-state="paused"]::before { border: 0; width: 9px; height: 10px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.mx-hint { flex-basis: 100%; }
@media (pointer: coarse) { .mx-hint-keys { display: none; } }

/* caption: the ramp, the seed, what the tile is not */
.mx-cap {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--ep-col-gap); row-gap: var(--ep-space-4);
  border-top: 1px solid var(--ep-rule); padding-top: var(--ep-space-4);
}
.mx-ramp { grid-column: 1 / span 4; display: grid; gap: var(--ep-space-2); align-content: start; }
.mx-ramp .lbl { color: var(--ep-text); }
.mx-ramp-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; height: 14px; max-width: 252px; margin-top: var(--ep-space-2); }
.mx-sw { background: var(--mx-bg); }
.mx-ramp-scale { display: flex; justify-content: space-between; max-width: 252px; }
.mx-cap > p { grid-column: 8 / -1; max-width: 72ch; }
@media (max-width: 900px) {
  .mx-ramp, .mx-cap > p { grid-column: 1 / -1; }
}

/* ---------- from arithmetic to proof ---------- */
.m-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ep-rule-strong); }
.m-step {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: var(--ep-space-4); min-width: 0;
  padding: var(--ep-space-5) clamp(16px, 2.4vw, 36px) var(--ep-space-6) 0;
}
.m-step + .m-step { border-left: 1px solid var(--ep-rule); padding-left: clamp(16px, 2.4vw, 36px); }
.m-step-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--ep-space-4); margin-bottom: var(--ep-space-3); }
.m-step-no {
  font-family: var(--ep-font-mono); font-stretch: var(--ep-width-data); font-weight: 300;
  font-size: clamp(40px, 4.2vw, 60px); line-height: .9; letter-spacing: -.04em; color: var(--ep-text);
}
.m-step h3 { font-stretch: var(--ep-width-display); font-weight: 520; font-size: clamp(20px, 1.9vw, 25px); line-height: 1.12; letter-spacing: -.01em; }
.m-step p { color: var(--ep-text-2); font-size: 15.5px; line-height: 1.6; }
.m-step .chip { justify-self: start; }
@media (max-width: 900px) {
  .m-steps { grid-template-columns: minmax(0, 1fr); }
  .m-step { padding-right: 0; }
  .m-step + .m-step { border-left: 0; padding-left: 0; border-top: 1px solid var(--ep-rule); }
  .m-step-top { margin-bottom: 0; }
}

.m-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--ep-col-gap); row-gap: var(--ep-space-6); margin-top: clamp(40px, 5vw, 72px); }
.m-source { display: grid; gap: var(--ep-space-2); align-content: start; min-width: 0; border-top: 1px solid var(--ep-rule); padding-top: var(--ep-space-4); }
.m-source-title { font-stretch: var(--ep-width-heading); font-weight: 560; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.3; max-width: 34ch; }
.m-source .muted { font-size: 15px; }
.m-source-link { display: inline-block; max-width: 100%; }
@media (max-width: 760px) { .m-sources { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) { .m-source-link { overflow-wrap: anywhere; } }

/* ---------- Pearl, by its public figures ---------- */
.m-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--ep-rule); border: 1px solid var(--ep-rule); }
.m-fig {
  display: grid; grid-template-rows: auto 1fr auto; gap: var(--ep-space-4); min-width: 0; min-height: 176px;
  background: var(--ep-panel); padding: var(--ep-space-5) clamp(16px, 1.8vw, 24px);
}
.m-fig-val { align-self: center; font-size: clamp(26px, 2.6vw, 38px); overflow-wrap: anywhere; }
.m-fig-sub { font-size: 14px; line-height: 1.45; color: var(--ep-text-2); }
.m-fig.is-ours { background: var(--ep-ground); }
.m-fig.is-ours .lbl { color: var(--ep-text); }
.m-fig.is-ours .m-fig-val { color: var(--ep-text-3); }
@media (max-width: 900px) { .m-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .m-figs { grid-template-columns: minmax(0, 1fr); }
  .m-fig { min-height: 0; }
}

.m-supply-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--ep-col-gap); row-gap: var(--ep-space-7);
  align-items: start; margin-top: clamp(48px, 6vw, 88px);
}
.m-supply { grid-column: 1 / span 6; display: grid; gap: var(--ep-space-3); min-width: 0; }
.m-supply-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--ep-space-2) var(--ep-space-4); }
.m-supply-head .lbl { color: var(--ep-text); }
.m-bar { display: grid; grid-template-columns: repeat(21, minmax(0, 1fr)); gap: 3px; height: clamp(36px, 4.4vw, 56px); margin-top: var(--ep-space-2); }
/* the empty cells are the unissued supply, drawn by their edge alone: the control edge, 3:1 or more */
.m-bar-cell { border: 1.5px solid var(--ep-control-line); }
.m-bar-cell.is-early { background: var(--ep-text-2); border-color: var(--ep-text-2); }
.m-bar-cell.is-half { background: linear-gradient(90deg, var(--ep-text-2) 50%, transparent 50%); border-color: var(--ep-text-2); }
.m-bar-scale { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ep-space-3); color: var(--ep-text-2); }
.m-bar-scale span { border-left: 1px solid var(--ep-rule-strong); padding-left: var(--ep-space-2); }
.m-supply figcaption { margin-top: var(--ep-space-2); max-width: 62ch; }
.m-network { grid-column: 8 / -1; display: grid; gap: var(--ep-space-3); min-width: 0; }
.m-network-lbl { color: var(--ep-text); }
.m-network-kv { border-bottom: 1px solid var(--ep-rule); }
@media (max-width: 900px) {
  .m-supply, .m-network { grid-column: 1 / -1; }
}

/* ---------- why a miner runs a guardian ---------- */
.m-why {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); row-gap: var(--ep-space-6);
  border-top: 1px solid var(--ep-rule-strong); padding-top: var(--ep-space-5);
}
.m-why-item { display: grid; gap: var(--ep-space-3); align-content: start; min-width: 0; }
.m-why-item .ic { width: 32px; height: 32px; color: var(--ep-text-2); margin-bottom: var(--ep-space-2); }
.m-why-item p { color: var(--ep-text-2); font-size: 15.5px; }
@media (max-width: 900px) { .m-why { grid-template-columns: minmax(0, 1fr); } }

.m-assume {
  margin-top: clamp(40px, 5vw, 72px);
  grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: var(--ep-space-8); row-gap: var(--ep-space-5);
}
.m-assume-text { display: grid; gap: var(--ep-space-3); min-width: 0; }
.m-assume .m-assume-line { font-stretch: var(--ep-width-heading); font-weight: 520; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.35; max-width: 52ch; }
.m-assume .small { font-size: 14px; }
.m-assume-links { display: grid; gap: var(--ep-space-3); justify-items: start; }
@media (max-width: 900px) { .m-assume { grid-template-columns: minmax(0, 1fr); } }

/* ---------- what we publish about our machines: an empty panel, on purpose ---------- */
.m-machines {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--ep-col-gap); row-gap: var(--ep-space-7);
  align-items: start;
}
.m-panel { grid-column: 1 / span 6; display: grid; min-width: 0; border: 1px dashed var(--ep-rule-strong); }
.m-panel-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ep-space-2) var(--ep-space-4);
  padding: var(--ep-space-4) clamp(16px, 2vw, 24px); border-bottom: 1px dashed var(--ep-rule-strong);
}
.m-panel-head .lbl { color: var(--ep-text); }
.m-panel-cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m-panel-cell { display: grid; gap: 10px; align-content: start; min-width: 0; min-height: 148px; padding: var(--ep-space-5) clamp(16px, 2vw, 24px); }
.m-panel-cell + .m-panel-cell { border-left: 1px dashed var(--ep-rule); }
.m-panel-cell dd { margin: 0; }
.m-panel-cell .bigfig { color: var(--ep-text-3); min-height: 34px; display: flex; align-items: center; }
.m-panel-sub { font-family: var(--ep-font-mono); font-stretch: var(--ep-width-data); font-size: 11.5px; line-height: 1.5; color: var(--ep-text-2); }
.m-panel-foot { max-width: none; padding: var(--ep-space-3) clamp(16px, 2vw, 24px); border-top: 1px dashed var(--ep-rule-strong); }
.m-rules { grid-column: 8 / -1; display: grid; gap: var(--ep-space-4); align-content: start; min-width: 0; }
.m-rules > .lbl { color: var(--ep-text); }
.m-rules ul.rules li { color: var(--ep-text-2); }
@media (max-width: 900px) {
  .m-panel, .m-rules { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .m-panel-cells { grid-template-columns: minmax(0, 1fr); }
  .m-panel-cell { min-height: 0; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-block: var(--ep-space-4); }
  .m-panel-cell + .m-panel-cell { border-left: 0; border-top: 1px dashed var(--ep-rule); }
  .m-panel-cell .lbl { grid-column: 1; grid-row: 1; }
  .m-panel-cell .m-panel-sub { grid-column: 1; grid-row: 2; }
  .m-panel-cell .bigfig { grid-column: 2; grid-row: 1 / span 2; min-height: 0; font-size: 24px; }
}

/* ---------- close ---------- */
.m-close { padding-top: var(--ep-section); }

/* print: the ramp and the pearl carry the figure, so they print (browsers drop backgrounds) */
@media print {
  .mx-cell, .mx-c .mx-cell.is-target::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
