/* hub.css — v2 designed hub: the core object, its progress ring, the k / N counter. Tokens only, no glow, no gradient.
   © Dudoxx UG / Acceleate Consulting - Walid Boudabbous <walid@acceleate.com> */
.fk-hub { align-self: stretch; }
.fk-core { position: absolute; z-index: 3; box-sizing: border-box; display: grid; place-content: center; justify-items: center; gap: 0.5cqw; padding: 1.6cqw;
  border-radius: 50%; text-align: center; background: var(--accent); color: var(--brand-color-primary-foreground);
  box-shadow: var(--lift), 0 0 0 calc(var(--glow, 0) * 0.35cqw) var(--card); }
.fk-core-ico { display: grid; place-items: center; width: 4cqw; height: 4cqw; border-radius: 50%; background: color-mix(in srgb, var(--brand-color-primary-foreground) 18%, transparent); }
.fk-core-ico svg { width: 2.2cqw; height: 2.2cqw; }
.fk-core-t { font-family: var(--face-head); font-size: var(--fs-title); font-weight: 700; line-height: 1.05; overflow-wrap: anywhere; }
.fk-core-s { font-size: var(--fs-label); line-height: 1.2; color: color-mix(in srgb, var(--brand-color-primary-foreground) 82%, transparent); }
.fk-core-track, .fk-core-arc { fill: none; stroke-width: 0.5cqw; }
.fk-core-track { stroke: color-mix(in oklch, var(--ink) 14%, transparent); }
.fk-core-arc { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.fk-count { position: absolute; z-index: 3; translate: -50% 0; padding: 0.35cqw 1cqw; border-radius: 99em; white-space: nowrap;
  font-family: var(--face-mono); font-size: var(--fs-eyebrow); font-weight: 600; font-variant-numeric: tabular-nums;
  background: var(--card); color: var(--muted); box-shadow: var(--lift); }
.fk-count.is-full { background: var(--accent); color: var(--brand-color-primary-foreground); }
.fk-hub .fk-sat { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto; align-items: center; padding: 1cqw 1.2cqw; }
.fk-hub .fk-sat .fk-chip { grid-column: 3; grid-row: 1; justify-self: end; } /* one row: icon · name + role · status */
/* satellite tones (nodes[].tone): each satellite card, its spoke + arrowhead and its packets carry one brand role. The
   carrier re-points --accent (fill: badge · chip on · spoke fill · hot arrowhead · capsule · ring) and the flow-kit tile
   pair; .tone-primary keeps the piece accent. Fills whose role is light (signal, gold; dark-look success / warning) take
   the dark brand ink; rose is deepened toward the ink so white text keeps >= 4.5:1. Mixes run in oklab (no hue sweep). */
.fk-hub .fk-tone { --tone-on: var(--brand-color-accent-foreground); --accent: var(--tone); --brand-color-primary-foreground: var(--tone-on);
  --fk-tint: color-mix(in oklab, var(--tone) 14%, var(--card)); --fk-link: color-mix(in oklab, var(--tone) 50%, var(--ink)); }
.fk-hub .tone-signal { --tone: var(--brand-color-signal); --tone-on: var(--brand-color-fg); }
.fk-hub .tone-success { --tone: var(--brand-color-success); }
.fk-hub .tone-warning { --tone: var(--brand-color-warning); }
.fk-hub .tone-gold { --tone: var(--brand-color-gold); --tone-on: var(--brand-color-fg); }
.fk-hub .tone-rose { --tone: color-mix(in oklab, var(--brand-color-rose) 85%, var(--brand-color-fg)); }
.look-studio .fk-hub .fk-tone, .on-dark .fk-hub .fk-tone, .on-dark-ground .fk-hub .fk-tone {
  --fk-tint: color-mix(in oklab, var(--tone) 22%, var(--card)); --fk-link: color-mix(in oklab, var(--tone) 45%, var(--ink)); }
.look-studio .fk-hub .tone-success, .on-dark .fk-hub .tone-success, .on-dark-ground .fk-hub .tone-success { --tone: var(--brand-color-dark-success); --tone-on: var(--brand-color-fg); }
.look-studio .fk-hub .tone-warning, .on-dark .fk-hub .tone-warning, .on-dark-ground .fk-hub .tone-warning { --tone: var(--brand-color-dark-warning); --tone-on: var(--brand-color-fg); }
.fk-hub .fk-tone .fk-sub { color: var(--muted); }
@media (max-width: 600px) and (orientation: portrait) {
  .stage .fk-core-ico { width: max(4cqw, 24px); height: max(4cqw, 24px); }
  .stage .fk-core-ico svg { width: max(2.2cqw, 14px); height: max(2.2cqw, 14px); }
  .stage .fk-core-s { display: none; }
  .stage .fk-core-track, .stage .fk-core-arc { stroke-width: max(0.5cqw, 3px); }
  .stage .fk-hub .fk-sat .fk-chip { display: none; }
  .stage .fk-hub .fk-sat .fk-sub { display: block; } /* the one-line role stays on a phone */
  .stage .fk-hub .fk-sat.is-tight .fk-sub { display: none; } /* hub.js: a spine that cannot fit its cards drops the role line, never clips a card */
}
/* v2 stacks the hub under its head: the side-layout 30cqw column basis (piece.css .preset-hub .col-text) would become a HEIGHT */
.stack > .col-text:has(~ .fk-hub) { flex: 0 0 auto; max-width: 80cqw; }
.stack > .col-text:has(~ .fk-hub) .body { max-width: 60cqw; }
