/* CaseModel website - css/p-record.css
   Everything collected, and placed by meaning (js/record.js). Every class here starts rc-.
   The squares are drawn by the field behind the page: these rules lay out the sources, the counts and the controls over
   them, and keep the record and the space of meaning clear so the squares show through. */

/* ======================================================================================
   the record: three sources, one record, read twice
   ====================================================================================== */
.rc { --rc-gap: clamp(12px, 1.6vw, 20px); }
.rc-hint { margin: 0 0 16px; }

/* ---- the sources: each card is a switch ---- */
.rc-srcs { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--rc-gap); }
.rc-src { position: relative; display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 14px 16px 15px; border: 1px solid var(--border); border-radius: var(--r-3);
  background: #ffffff; box-shadow: var(--shadow-2); color: inherit; font: inherit; text-align: left; cursor: pointer; overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); }
.rc-src:hover { border-color: var(--brand-azure); }
.rc-src:focus-visible { outline: 2px solid var(--brand-azure); outline-offset: 3px; }
.rc-src-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.rc-src-h .sq { width: 12px; height: 12px; transition: background .2s var(--ease), border-color .2s var(--ease); }
.rc-src-t { color: var(--brand-navy); font: 700 17px/1.2 var(--font-display); letter-spacing: -0.01em; }
.rc-st { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--ok-fg); font: 600 12.5px/1.2 var(--font-display); white-space: nowrap; }
.rc-st i { width: 7px; height: 7px; background: var(--ok); }
.rc-rows { display: block; flex: 1 0 auto; margin: 10px 0 0; }
.rc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0 5px 22px; border-top: 1px solid var(--border-row); color: var(--text); font: 400 15px/1.35 var(--font-ui); }
.rc-row > span:first-child { min-width: 0; }
.rc-v { flex: none; color: var(--azure-11); font: 500 13px/1.35 var(--font-mono); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rc-src-f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: auto; padding-top: 11px; border-top: 1px solid var(--border-row); }
.rc-n { color: var(--text-3); font: 600 13px/1.2 var(--font-display); }
.rc-n b { color: var(--brand-navy); font: 800 21px/1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
/* the switch itself: a track and a square knob */
.rc-sw { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-navy); font: 700 13px/1 var(--font-display); }
.rc-sw i { position: relative; flex: none; width: 32px; height: 18px; border: 1px solid var(--brand-navy); border-radius: var(--r-1); background: var(--brand-navy); transition: background .2s var(--ease), border-color .2s var(--ease); }
.rc-sw i::after { content: ''; position: absolute; top: 3px; left: 17px; width: 10px; height: 10px; background: #ffffff; transition: left .25s var(--spring), background .2s var(--ease); }
.rc-sw-off { display: none; }
/* how much of the source has poured: a bar along the card's foot */
.rc-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--slate-3); }
.rc-prog i { display: block; height: 100%; background: var(--brand-azure); transform: scaleX(var(--rc-p, 0)); transform-origin: 0 50%; }
.rc-src[data-s="0"] .rc-prog i { background: var(--brand-navy); }
.rc-src[data-s="2"] .rc-prog i { background: var(--brand-sky); }

/* a source left out: the card goes quiet, its mark hollows, its switch says so */
.rc-src.off { border-style: dashed; border-color: var(--slate-7); box-shadow: none; background: rgb(255 255 255 / .82); }
.rc-src.off:hover { border-color: var(--brand-azure); }
.rc-src.off .rc-src-t, .rc-src.off .rc-n b { color: var(--slate-10); }
.rc-src.off .rc-row, .rc-src.off .rc-v { color: var(--slate-9); }
.rc-src.off .rc-st { color: var(--slate-10); }
.rc-src.off .rc-st i { background: var(--slate-7); }
.rc-src.off .rc-src-h .sq { border: 2px solid var(--slate-9); background: #ffffff; }
.rc-src.off .rc-sw { color: var(--open-fg); }
.rc-src.off .rc-sw i { border-color: var(--slate-7); background: #ffffff; }
.rc-src.off .rc-sw i::after { left: 3px; background: var(--slate-7); }
.rc-src.off .rc-sw-on { display: none; }
.rc-src.off .rc-sw-off { display: inline; }
.rc-src.off .rc-prog i { transform: scaleX(0); }

/* ---- the record: the squares pour in here ---- */
.rc-tank { position: relative; margin-top: clamp(52px, 6.4vw, 80px); }
.rc-grid { position: relative; margin: 0 12px; }
.rc-grid::before { content: ''; position: absolute; inset: -12px; border: 1px dashed var(--azure-6); pointer-events: none; }
/* the readings: a line of light crossing the record, the first in azure, the second in green */
.rc-band { position: absolute; top: -26px; bottom: -12px; left: var(--rc-x0, 0px); width: 0; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); z-index: 2; }
.rc-band.on { opacity: 1; }
.rc-band::before { content: ''; position: absolute; top: 18px; bottom: 0; left: -1px; width: 2px; background: var(--brand-azure); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-azure) 16%, transparent); }
.rc-band::after { content: ''; position: absolute; top: 18px; bottom: 0; right: 1px; width: 56px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand-sky) 20%, transparent)); }
.rc-band span { position: absolute; top: 0; left: 8px; padding: 2px 7px; background: rgb(255 255 255 / .94); color: var(--azure-11); font: 700 11.5px/1.3 var(--font-display); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.rc-band.rc-bl span { left: auto; right: 8px; }
.rc-b2::before { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 16%, transparent); }
.rc-b2::after { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ok) 14%, transparent)); }
.rc-b2 span { color: var(--ok-fg); }
/* where the two documents the map joins would have been, had the mailboxes been read */
.rc-holes { position: absolute; inset: 0; pointer-events: none; }
.rc-hole { position: absolute; border: 2px dashed var(--open); transform: translate(-50%, -50%); animation: rc-in .5s var(--ease) both .45s; }
.rc-hole b { position: absolute; left: calc(100% + 6px); top: 50%; padding: 2px 6px; border: 1px solid var(--open-bg); background: #ffffff; color: var(--open-fg); font: 500 12.5px/1.3 var(--font-mono); white-space: nowrap; transform: translateY(-50%); }
@keyframes rc-in { from { opacity: 0; } to { opacity: 1; } }

.rc-base { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 28px; margin-top: 26px; }
.rc-total { margin: 0; }
.rc-total .num { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.rc-tu { color: var(--text-3); font: 600 clamp(17px, 1.6vw, 21px)/1 var(--font-display); letter-spacing: -0.01em; }
.rc-fp { display: grid; grid-template-columns: 9px auto auto; align-items: baseline; gap: 2px 9px; padding: 6px 10px; background: rgb(255 255 255 / .9); color: var(--ok-fg); font-size: 13px; }
.rc-fp .sq { width: 9px; height: 9px; }
.rc-hex { color: var(--text-3); }
.rc-hex:empty { display: none; }

/* a note that follows the pointer to a square */
.rc-tip { position: absolute; z-index: 6; max-width: 320px; padding: 7px 11px; border: 1px solid var(--border); border-radius: var(--r-2); background: #ffffff; box-shadow: var(--shadow-2);
  color: var(--text-2); font: 400 14px/1.4 var(--font-ui); transform: translateY(-100%); pointer-events: none; }
.rc-tip b { color: var(--brand-navy); font-family: var(--font-display); font-weight: 700; }
.rc-tip .rc-tip-a { color: var(--open-fg); }

/* ---- under the record: what was collected, what it would miss, and the readings ---- */
.rc-foot { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(18px, 3vw, 40px); align-items: start; margin-top: clamp(22px, 3vw, 34px); }
.rc-ticks { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.rc-ticks li { display: grid; grid-template-columns: 14px minmax(0, 1fr); align-items: baseline; gap: 2px 12px; }
.rc-ticks .sq { width: 12px; height: 12px; transform: translateY(1px); }
.rc-ticks b { color: var(--brand-navy); font: 600 16.5px/1.3 var(--font-display); letter-spacing: -0.01em; }
.rc-ticks span { grid-column: 2; color: var(--text-3); font: 500 12.5px/1.3 var(--font-mono); }
.rc-ticks li.open b { color: var(--open-fg); }
.rc-status { padding: 12px 15px 13px; border-left: 3px solid var(--brand-azure); background: rgb(255 255 255 / .92); }
.rc-status a { font-weight: 700; }

.rc-read { padding: 16px 18px 14px; border: 1px solid var(--border); border-radius: var(--r-3); background: #ffffff; box-shadow: var(--shadow-2); }
.rc-read-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin: 0 0 6px; }
.rc-rd { margin: 0; padding: 0; list-style: none; }
.rc-rd li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 14px; padding: 11px 0; border-top: 1px solid var(--border-row); opacity: .38; transition: opacity .45s var(--ease); }
.rc-read.r1 .rc-rd1, .rc-read.r2 .rc-rd2, .rc-read.r3 .rc-rd3, .rc-read.done li { opacity: 1; }
.rc-rl { color: var(--brand-navy); font: 600 15.5px/1.3 var(--font-display); letter-spacing: -0.01em; }
.rc-rv { color: var(--azure-11); font: 500 13.5px/1.3 var(--font-mono); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-rv:empty { display: none; }
.rc-bar { grid-column: 1 / -1; display: block; height: 4px; background: var(--slate-4); }
.rc-bar i { display: block; height: 100%; background: var(--brand-azure); transform: scaleX(0); transform-origin: 0 50%; }
.rc-rd2 .rc-bar i { background: var(--ok); }
.rc-rd3 .rc-rv3 { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--text); font: 400 15px/1.35 var(--font-ui); text-align: left; white-space: normal; }
.rc-rv3 > span { display: inline-flex; align-items: center; gap: 8px; }
.rc-rv3 > .sq { display: none; }
.rc-rv3 > span:first-of-type::before { content: ''; flex: none; width: 10px; height: 10px; border: 2px solid var(--open); background: #ffffff; }
.rc-rv3 b { color: var(--brand-navy); font: 700 15px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.rc-third { color: var(--ok-fg); font-weight: 600; opacity: 0; transition: opacity .45s var(--ease); }
.rc-read.done .rc-third { opacity: 1; }
.rc-ptr { margin: 8px 0 0; opacity: 0; transition: opacity .45s var(--ease); }
.rc-read.done .rc-ptr { opacity: 1; }

/* without the stage (forced colours): the record is said in words only */
.rc-flat .rc-tank { margin-top: 24px; }
.rc-flat .rc-grid { display: none; }

@media (max-width: 860px) {
  .rc-foot { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  /* three compact tiles in a row: each still a switch, each still pours into the record beneath */
  .rc-srcs { gap: 8px; }
  .rc-src { padding: 11px 10px 13px; }
  .rc-src-h { flex-direction: column; align-items: flex-start; gap: 7px; }
  .rc-src-t { font-size: 15px; }
  .rc-st { margin-left: 0; font-size: 14px; white-space: normal; line-height: 1.25; }
  .rc-st i { display: none; }
  .rc-rows { display: none; }
  .rc-src-f { flex-direction: column; align-items: flex-start; gap: 9px; padding-top: 9px; }
  .rc-src-h { margin-bottom: 10px; }
  .rc-n { font-size: 14px; }
  .rc-n b { display: block; font-size: 18px; margin-bottom: 2px; }
  .rc-sw { flex-wrap: wrap; gap: 6px 8px; font-size: 14px; }
  .rc-tank { margin-top: 48px; }
  .rc-grid { margin: 0 8px; }
  .rc-grid::before { inset: -8px; }
  .rc-band span { font-size: 14px; letter-spacing: 0; text-transform: none; }
  .rc-fp { grid-template-columns: 9px minmax(0, 1fr); font-size: 14px; }
  .rc-fp .rc-hex { grid-column: 2; }
  .rc-ticks span, .rc-ptr, .rc-rv, .rc .fig-hint { font-size: 14px; }
  .rc-tip { max-width: 260px; }
}

/* ======================================================================================
   placed by meaning: the same squares, sorted by what they say
   ====================================================================================== */
.rc-mbar { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 0 0 18px; }
.rc-mrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 360px); gap: clamp(20px, 3vw, 44px); align-items: start; }
.rc-field { position: relative; min-width: 0; }
.rc-cap { position: absolute; left: 0; top: -2px; margin: 0; color: var(--azure-11); font: 700 11.5px/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.rc-labels, .rc-rings { position: absolute; inset: 0; pointer-events: none; }
/* a subject's name over its clump: a button, so a subject can be chosen by keyboard as well as by pointing */
.rc-lb { position: absolute; z-index: 2; display: inline-flex; align-items: center; min-height: 26px; padding: 2px 8px; border: 1px solid transparent; border-radius: var(--r-1);
  background: rgb(255 255 255 / .9); color: var(--azure-11); font: 700 13px/1.15 var(--font-display); letter-spacing: -0.005em; white-space: nowrap; cursor: pointer; pointer-events: auto;
  transform: translate(-50%, -100%); transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), opacity .3s var(--ease); }
.rc-lb::before { content: ''; position: absolute; inset: -8px -3px; }
.rc-lb:hover { border-color: var(--brand-azure); }
.rc-lb[aria-pressed="true"] { border-color: var(--brand-navy); background: var(--brand-navy); color: #ffffff; }
.rc-m.has-subj .rc-lb[aria-pressed="false"] { color: var(--slate-10); }
/* a narrower field: a long name takes two lines, so the names of neighbouring clumps keep apart */
.rc-m.rc-tight .rc-lb { width: max-content; max-width: 8em; line-height: 1.12; text-align: center; white-space: normal; }
.rc-m[data-v="1"] .rc-lb, .rc-m[data-v="2"] .rc-lb { animation: rc-in .5s var(--ease) both; animation-delay: calc(var(--rc-k, 0) * 40ms + 380ms); }
/* a passage chosen: its point, its nearest neighbours by meaning, and the one that only shares a word */
.rc-ring { position: absolute; z-index: 1; width: 0; height: 0; animation: rc-in .45s var(--ease) both; animation-delay: calc(var(--rc-k, 0) * 90ms + 250ms); }
.rc-ring::before { content: ''; position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border: 2px solid var(--brand-azure); }
.rc-ring b { position: absolute; padding: 2px 6px; border: 1px solid var(--azure-6); background: rgb(255 255 255 / .96); color: var(--azure-11); font: 500 12.5px/1.3 var(--font-mono); white-space: nowrap; }
.rc-ring.r b { left: 11px; top: 0; transform: translateY(-50%); }
.rc-ring.l b { right: 11px; top: 0; transform: translateY(-50%); }
.rc-ring.u b { bottom: 11px; left: 0; transform: translateX(-50%); }
.rc-ring.d b { top: 11px; left: 0; transform: translateX(-50%); }
.rc-ring.dr b { left: 7px; top: 7px; }
.rc-ring.dl b { right: 7px; top: 7px; }
.rc-ring.ur b { left: 7px; bottom: 7px; }
.rc-ring.ul b { right: 7px; bottom: 7px; }
/* stepped clear of a crowded group, with a hairline back to its point */
.rc-ring.dd b { top: 36px; left: 0; transform: translateX(-50%); }
.rc-ring.uu b { bottom: 40px; left: 0; transform: translateX(-50%); }
.rc-ring.dd::after, .rc-ring.uu::after { content: ''; position: absolute; left: 0; width: 1px; background: var(--azure-6); }
.rc-ring.dd::after { top: 8px; height: 28px; }
.rc-ring.uu::after { bottom: 8px; height: 32px; }
.rc-ring.me::before { left: -11px; top: -11px; width: 22px; height: 22px; border-color: var(--brand-navy); }
.rc-ring.me b { border-color: var(--brand-navy); background: var(--brand-navy); color: #ffffff; }
.rc-ring.me.u b { bottom: 15px; }
.rc-ring.kw::before { left: -9px; top: -9px; width: 18px; height: 18px; border: 2px dashed var(--adv); }
.rc-ring.kw b { border-color: var(--adv-bg); color: var(--adv-fg); }
.rc-ring.kw.r b { left: 14px; } .rc-ring.kw.l b { right: 14px; }

.rc-side { position: relative; z-index: 1; display: grid; gap: 16px; min-width: 0; }
.rc-count { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--r-3); background: rgb(255 255 255 / .94); }
.rc-count .num { margin-top: 6px; }
.rc-subn { margin: 12px 0 0; padding: 0; list-style: none; }
.rc-subn li { padding: 8px 0; border-top: 1px solid var(--border-row); color: var(--text-2); font: 400 14.5px/1.4 var(--font-ui); }
.rc-subn b { color: var(--brand-navy); font: 700 16px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.rc-m:not(.folded) .rc-subn { display: none; }
.rc-subj { display: flex; align-items: baseline; gap: 4px 8px; flex-wrap: wrap; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--border-row); color: var(--text-2); font: 400 14.5px/1.4 var(--font-ui); }
.rc-subj:empty { display: none; }
.rc-subj b { color: var(--brand-navy); font-family: var(--font-display); }
.rc-subj .sq { align-self: center; }

.rc-find { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--r-3); background: #ffffff; box-shadow: var(--shadow-2); }
.rc-psgs { display: grid; gap: 8px; margin: 12px 0 0; }
.rc-psg { display: block; width: 100%; margin: 0; padding: 10px 12px 11px; border: 1px solid var(--slate-6); border-radius: var(--r-2); background: #ffffff; color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease); }
.rc-psg:hover { border-color: var(--brand-azure); }
.rc-psg[aria-pressed="true"] { border-color: var(--brand-navy); background: var(--sky-2); box-shadow: inset 3px 0 0 var(--brand-navy); }
.rc-psg q { display: block; color: var(--text); font: italic 400 15.5px/1.38 var(--font-serif); }
.rc-pr { display: block; margin-top: 5px; color: var(--text-3); font: 500 12.5px/1.3 var(--font-mono); }
.rc-vec { display: flex; gap: 1px; height: 12px; margin-top: 8px; }
.rc-vec i { flex: 1 1 0; min-width: 0; }
.rc-vec i.p { background: var(--brand-azure); }
.rc-vec i.n { background: var(--brand-navy); }
.rc-vn { margin: 10px 0 0; }
.rc-cmp { display: grid; gap: 9px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-row); }
.rc-cmp p { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 10px; margin: 0; color: var(--text); font: 400 14.5px/1.42 var(--font-ui); }
.rc-cmp .sq { margin-top: 5px; }

/* names: the many ways one person is written, and the one person */
.rc-names { position: relative; z-index: 1; margin-top: clamp(22px, 3vw, 34px); padding: 16px 18px 8px; border: 1px solid var(--border); border-radius: var(--r-3); background: rgb(255 255 255 / .95); }
.rc-nh { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 22px; margin: 0 0 6px; }
.rc-nc { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; color: var(--text-3); font: 400 14.5px/1.35 var(--font-ui); }
.rc-nc b { color: var(--brand-navy); font: 800 26px/1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rc-ng { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(220px, 300px); align-items: center; gap: 10px 16px; padding: 12px 0; border-top: 1px solid var(--border-row); }
.rc-als { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.rc-al { display: inline-flex; align-items: center; min-height: 36px; max-width: 100%; margin: 0; padding: 0 11px; border: 1px solid var(--azure-6); border-radius: var(--r-2); background: #ffffff;
  color: var(--brand-navy); font: 500 13.5px/1.2 var(--font-mono); overflow-wrap: anywhere; cursor: pointer; transition: opacity .35s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.rc-al:hover { border-color: var(--brand-azure); }
.rc-arrow { position: relative; width: 34px; height: 2px; background: var(--azure-6); }
.rc-arrow::after { content: ''; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 2px solid var(--azure-6); border-right: 2px solid var(--azure-6); transform: rotate(45deg); }
.rc-one { display: grid; gap: 3px; min-height: 40px; margin: 0; padding: 9px 13px 10px; border: 1px dashed var(--slate-7); border-radius: var(--r-2); background: #ffffff; color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease); }
.rc-one b { color: var(--slate-10); font: 700 16px/1.2 var(--font-display); letter-spacing: -0.01em; transition: color .35s var(--ease); }
.rc-one span { color: var(--text-3); font: 400 14px/1.35 var(--font-ui); transition: color .35s var(--ease); }
.rc-one:hover { border-color: var(--brand-azure); }
.rc-one:focus-visible, .rc-al:focus-visible, .rc-psg:focus-visible, .rc-lb:focus-visible { outline: 2px solid var(--brand-azure); outline-offset: 2px; }
.rc-m.resolved .rc-al { border-style: dashed; border-color: var(--slate-6); color: var(--slate-9); }
.rc-m.resolved .rc-arrow, .rc-m.resolved .rc-arrow::after { background: var(--brand-azure); border-color: var(--brand-azure); }
.rc-m.resolved .rc-arrow::after { background: none; }
.rc-m.resolved .rc-one { border: 1px solid var(--brand-navy); background: var(--brand-navy); }
.rc-m.resolved .rc-one b { color: #ffffff; }
.rc-m.resolved .rc-one span { color: var(--azure-6); }
/* a name in flight: a copy of the chip, carried into the one it belongs to */
.rc-fly { position: absolute; z-index: 3; margin: 0; pointer-events: none; box-shadow: var(--shadow-2); transition: transform .75s var(--ease), opacity .75s var(--ease); }
.rc-mstatus { position: relative; z-index: 1; margin-top: 16px; }

/* without the stage (forced colours) the subjects are a plain row of choices, and the counts say the rest */
.rc-flat .rc-field { height: auto !important; margin-bottom: 8px; }
.rc-flat .rc-cap { position: static; margin: 0 0 10px; }
.rc-flat .rc-labels { position: static; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: auto; }
.rc-flat .rc-lb { position: static; transform: none; animation: none; border-color: currentColor; }
.rc-flat .rc-rings, .rc-flat .rc-tip { display: none; }
.rc-flat .rc-mrow { grid-template-columns: 1fr; }

@media (max-width: 980px) {
  .rc-mrow { grid-template-columns: minmax(0, 1fr); }
  .rc-side { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; margin-top: 8px; }
}
@media (max-width: 860px) {
  .rc-ng { grid-template-columns: minmax(0, 1fr); }
  .rc-arrow { width: 2px; height: 22px; margin-left: 18px; }
  .rc-arrow::after { right: -3px; top: auto; bottom: 0; transform: rotate(135deg); }
}
@media (max-width: 700px) {
  .rc-side { grid-template-columns: minmax(0, 1fr); }
  .rc-lb { width: max-content; max-width: 8em; min-height: 28px; padding: 3px 7px; font-size: 14px; line-height: 1.12; text-align: center; white-space: normal; }
  .rc-cap { font-size: 14px; letter-spacing: 0; text-transform: none; }
  .rc-ring b, .rc-pr, .rc-hole b, .rc-vn { font-size: 14px; }
  .rc-al { font-size: 14px; min-height: 40px; }
  .rc-views button { min-height: 40px; font-size: 14px; }
  .rc .num-l { font-size: 14px; letter-spacing: .02em; text-transform: none; }
}
