/* Elequate motion: the one load-in style for dashboards (Ryan, 2026-11-10).
   Pairs with shared/motion.js. Nothing here hides content at rest: with the
   script missing or motion reduced, every page reads exactly as before. */

/* Loading plate: a diagonal sweep while the numbers are on their way. */
.eq-sweep { position:relative; overflow:hidden; background:rgba(255,255,255,.035); }
/* The band is moved with transform (not background-position) so the wait costs no repaints. */
.eq-sweep::after { content:""; position:absolute; top:0; bottom:0; left:0; width:250%; background:linear-gradient(100deg, transparent 0 30%, rgba(255,255,255,.07) 30% 46%, transparent 46%); animation:eqSweep 1.1s linear infinite; will-change:transform; pointer-events:none; }
@keyframes eqSweep { from { transform:translateX(-72%); } to { transform:translateX(78%); } }

/* Stage bar: diagonal-cut segments, one open. Phones only; pages opt in by
   rendering .eq-sb and showing it inside their own phone media query. */
.eq-sb { display:none; height:58px; --cut:12px; margin:0 0 16px; user-select:none; -webkit-user-select:none; touch-action:pan-y; }
.eq-sg { position:relative; flex:1 1 0; min-width:0; display:flex; align-items:center; gap:10px; margin:0; border:0; padding:0 0 0 calc(var(--cut) + 10px); overflow:hidden; cursor:pointer; font-family:inherit; text-align:left; color:#f1f5f9; background:rgba(255,255,255,.07);
  clip-path:polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
  transition:flex-grow .5s cubic-bezier(.22,.9,.24,1), background-color .25s; -webkit-tap-highlight-color:transparent; }
.eq-sg + .eq-sg { margin-left:calc(6px - var(--cut)); }
.eq-sg:first-child { clip-path:polygon(0 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%); border-radius:10px 0 0 10px; padding-left:14px; }
.eq-sg:last-child { clip-path:polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%); border-radius:0 10px 10px 0; }
.eq-sg .kv { display:flex; flex-direction:column; gap:4px; flex:none; }
.eq-sg .k { font-size:10px; line-height:1; font-weight:700; letter-spacing:.1em; text-transform:uppercase; opacity:.78; white-space:nowrap; }
.eq-sg .v { font-size:18px; line-height:1; font-weight:700; font-variant-numeric:tabular-nums; white-space:nowrap; }
.eq-sg .tx { font-size:13px; font-weight:600; white-space:nowrap; opacity:0; transform:translateX(-8px); transition:opacity .2s, transform .3s; }
.eq-sg.hole { background:rgba(248,113,113,.18); color:#fecaca; }
.eq-sg.open { flex-grow:2.2; background:#2AABE2; color:#fff; }
.eq-sg.open.hole { background:#f87171; color:#fff; }
.eq-sg.open .tx { opacity:.92; transform:none; transition-delay:.12s; }
.eq-sg:focus-visible { outline:2px solid rgba(42,171,226,.9); outline-offset:-3px; }

/* Metric bar (ElequateMotion.metricBar): every metric always in view as an icon
   slice, the open one carries its name and number, one panel under it. Phones
   only; a page shows .eq-mb and hides .eq-mb-src in its own phone media query. */
.eq-mb { display:none; }
.eq-mb .eq-sb { display:flex; margin:0 0 14px; }
.eq-sb.eq-ic .eq-sg { flex:0 0 11.5vw; max-width:48px; padding:0; justify-content:center; gap:9px; }
.eq-sb.eq-ic .eq-sg .ic { flex:none; width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; opacity:.8; }
.eq-sb.eq-ic .eq-sg:not(.open) .kv { display:none; }
.eq-sb.eq-ic .eq-sg.open { flex:1 1 0; max-width:none; justify-content:flex-start; padding:0 0 0 22px; }
.eq-sb.eq-ic .eq-sg.open:first-child { padding-left:14px; }
.eq-sb.eq-ic .eq-sg.open .ic { opacity:1; }
.eq-sb.eq-ic .eq-sg .k { letter-spacing:.02em; }
.eq-sb.eq-ic .eq-sg { flex-basis:10.6vw; max-width:44px; }
.eq-sb.eq-ic .eq-sg.open { gap:7px; padding-right:10px; }
.eq-pan { display:block; width:100%; min-height:204px; margin:0 0 16px; padding:18px 16px 14px; box-sizing:border-box; text-align:left; font:inherit; color:#f1f5f9; cursor:pointer;
  border:1px solid rgba(255,255,255,.08); border-radius:14px; background:rgba(15,23,42,.55); -webkit-tap-highlight-color:transparent; }
.eq-pan.on { border-color:rgba(42,171,226,.75); box-shadow:inset 0 0 0 1px rgba(42,171,226,.75); }
.eq-pan.eq-sweep { background:rgba(255,255,255,.035); }
.eq-pan:focus-visible { outline:2px solid #fff; outline-offset:2px; }
.eq-pan .top { display:flex; align-items:center; gap:22px; min-height:156px; }
.eq-pan .rg { flex:none; width:156px; height:156px; position:relative; }
.eq-pan .rg svg { width:100%; height:100%; transform:rotate(-90deg); }
.eq-pan .rg b { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:36px; font-weight:700; font-variant-numeric:tabular-nums; }
.eq-pan .big { font-size:40px; line-height:1; font-weight:700; font-variant-numeric:tabular-nums; }
.eq-pan .meta { display:flex; flex-direction:column; min-width:0; flex:1; }
.eq-pan .lg { display:flex; flex-direction:column; gap:7px; margin-top:10px; font-size:13px; font-weight:600; }
.eq-pan .lg span { display:flex; align-items:center; gap:8px; }
.eq-pan .lg i { flex:none; width:9px; height:9px; border-radius:2px; }
.eq-pan .lg b { margin-left:auto; padding-left:12px; font-variant-numeric:tabular-nums; }
.eq-pan .lb { font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:#94a3b8; }
.eq-pan .ct { font-size:26px; font-weight:700; margin-top:6px; font-variant-numeric:tabular-nums; }
.eq-pan .dl { font-size:15px; font-weight:600; margin-top:8px; }
@media (prefers-reduced-motion: reduce) {
  .eq-sweep::after { animation:none; }
  .eq-sg, .eq-sg .tx { transition:none; }
}

/* Metric bar, desktop form (metricBar cfg.desk): one angled bar in place of the
   stat cards. Each slice is tinted in its card's own value color (--ac), so the
   bar always matches the table under it. Bars stay hidden at rest and rise,
   ghosted behind the number, in the open slice. No bottom edge (Ryan, 2026-11-10).
   The page renders the placeholder and shows .eq-db in its desktop media query,
   so the loading shape is the final shape. */
.eq-sb.eq-db { height:96px; --cut:24px; margin:0 0 26px; touch-action:auto; }
.eq-db .eq-sg { padding-left:calc(var(--cut) + 20px); gap:16px; background:rgba(255,255,255,.07); background:color-mix(in srgb, var(--ac, #2AABE2) 13%, rgba(255,255,255,.05)); transition:flex-grow .45s cubic-bezier(.22,.9,.24,1), background-color .25s; }
.eq-db .eq-sg:first-child { padding-left:24px; }
.eq-db .eq-sg.eq-sweep { background:rgba(255,255,255,.035); cursor:default; }
.eq-db.ld .eq-sg .v { visibility:hidden; }
.eq-db .eq-sg .kv { gap:9px; position:relative; z-index:1; }
/* A label never clips (Ryan 2026-11-12: "cutting off words. this cant happen"). Each slice is a
   size container and its label carries its own length (--len, set by motion.js), so the type
   steps down to fit the slice as the bar narrows or a neighbour opens; an ellipsis is the last
   resort, never a word cut by the slant. */
.eq-db .eq-sg { container-type:inline-size; }
.eq-db .eq-sg .kv { flex:0 1 auto; min-width:0; max-width:100%; }
.eq-db .eq-sg .k { font-size:11px; font-size:clamp(8px, calc((100cqw - var(--cut) - 6px) / (var(--len, 12) * .82)), 11px); opacity:.9; max-width:calc(100cqw - var(--cut)); overflow:hidden; text-overflow:ellipsis; }
.eq-db .eq-sg .v { font-size:30px; display:flex; align-items:baseline; gap:9px; }
.eq-db .eq-sg .n { color:var(--ac, #f1f5f9); }
/* The number steps down the same way in a slice too narrow for it (never cut by the slant). */
.eq-db .eq-sg:not(.open) .v { font-size:clamp(16px, calc((100cqw - var(--cut)) / (var(--vlen, 4) * .64)), 30px); }
.eq-db .eq-sg .v small { font-size:13px; font-weight:600; opacity:.72; }
/* While one slice is open the others are narrow: they keep the number and trend and drop the small count, so nothing clips. */
.eq-db:has(.eq-sg.open) .eq-sg:not(.open) .v small { display:none; }
.eq-db .eq-sg .tr { font-size:13px; font-weight:700; }
.eq-db .eq-sg .sp { position:absolute; left:0; right:0; bottom:0; height:74%; opacity:0; pointer-events:none; transition:opacity .25s; }
.eq-db .eq-sg .sp svg { display:block; width:100%; height:100%; }
.eq-db .eq-sg .sp rect { fill:var(--ac, #2AABE2); opacity:.3; }
.eq-db .eq-sg .sp rect:last-child { opacity:.55; }
.eq-db .eq-sg.on { background:rgba(42,171,226,.2); background:color-mix(in srgb, var(--ac, #2AABE2) 24%, #16264a); }
.eq-db .eq-sg.open { flex-grow:3.4; color:#fff; background:#1d3a66; background:color-mix(in srgb, var(--ac, #2AABE2) 30%, #16264a); }
.eq-db .eq-sg.open .sp { opacity:1; }
.eq-db .eq-sg .tx { display:none; position:relative; z-index:1; flex-direction:column; gap:6px; min-width:250px; margin-left:auto; padding-right:var(--cut); opacity:1; transform:none; font-size:15px; font-weight:700; }
.eq-db .eq-sg.open .tx { display:flex; }
.eq-db .eq-sg .pr { display:flex; align-items:baseline; gap:10px; white-space:nowrap; }
/* Rows step in with the slant on the right, so each one ends the same distance from the angled edge. */
.eq-db .eq-sg .pr:nth-child(2) { margin-right:7px; }
.eq-db .eq-sg .pr:nth-child(3) { margin-right:14px; }
.eq-db .eq-sg .pr:first-child:nth-last-child(2) { margin-right:3px; }
.eq-db .eq-sg .pr:first-child:nth-last-child(2) + .pr { margin-right:10px; }
.eq-db .eq-sg:last-child .pr { margin-right:0 !important; }
.eq-db .eq-sg .pr b { min-width:44px; text-align:right; font-variant-numeric:tabular-nums; }
.eq-db .eq-sg .pr i { flex:1; font-style:normal; font-size:10.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; opacity:.85; }
.eq-db .eq-sg .pr small { font-size:12px; font-weight:600; opacity:.75; font-variant-numeric:tabular-nums; }
@media (max-width: 379px) { .eq-pan .rg { width:128px; height:128px; } .eq-pan .rg b { font-size:30px; } .eq-pan .top { gap:16px; min-height:128px; } }

/* autoBar pages (ElequateMotion.autoBar): the bar shows and the tiles it mirrors hide,
   only once the bar is running, so a page still works if motion.js fails to load. */
@media (min-width: 701px) { .eq-sb.eq-db.eq-auto { display:flex; } .eq-auto-src.eq-db-src { display:none !important; } }
@media (max-width: 700px) { .eq-mb.eq-auto { display:block; } .eq-auto-src.eq-mb-src { display:none !important; } }

/* Loading rows at the real row height (ElequateMotion.ghost): the Performance pattern, shared. */
.eq-gh { display:flex; align-items:center; gap:12px; padding:0 16px; box-sizing:border-box; border-bottom:1px solid rgba(255,255,255,.05); background:transparent; }
.eq-gh i { width:36px; height:36px; max-height:64%; aspect-ratio:1; border-radius:50%; background:rgba(255,255,255,.06); flex:none; }
.eq-gh.na i { display:none; }
.eq-gh span { display:flex; flex-direction:column; gap:7px; }
.eq-gh b { display:block; height:10px; width:120px; border-radius:3px; background:rgba(255,255,255,.07); }
.eq-gh b + b { width:70px; background:rgba(255,255,255,.045); }
tr.eq-gh-tr > td { border:0 !important; background:transparent !important; }
