/* ══════════════════════════════════════════════════════════════════
   Servei · Gestió del coneixement — «servei» module stylesheet
   ------------------------------------------------------------------
   Mounts: anatomy, usos, console, case-pau, case-cb, swas-orbit,
   swas-entropy. Loads after srv-coneixement.css (shell), so an
   equal-specificity rule here wins.

   Everything that changes the shell's no-JS fallback sits behind the
   `is-live` class srv-coneixement-servei.js puts on a mount once it has
   enhanced it: if the script fails, the fallback renders untouched.
   The only unconditional rules style the few fallback elements this
   module added itself (the anatomy card's literal meta rows).

   Accent budget: servei yellow (+ lilac inside the console only),
   casos yellow + magenta, swas yellow. Hairlines, no shadows, radius
   0–2px; .pz-btn pills keep the site radius.
   ══════════════════════════════════════════════════════════════════ */

/* ═══ 1 · Anatomy ════════════════════════════════════════════════ */

/* Literal meta rows of the card (fallback too). */
.gc-anat__doc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--gc-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
}
.gc-anat__chip {
  padding: 2px 6px;
  border: 1px solid var(--pz-ink);
  border-radius: 1px;
  font-weight: 500;
}
.gc-anat__docid { color: var(--gc-mute); }
.gc-anat__doc-date {
  margin-top: -6px;
  font-family: var(--gc-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--gc-mute);
}

.gc-mount--anatomy.is-live .gc-anat__fig { display: block; }
/* The script moves the heading and toggle ahead of the figure (reading
   and tab order); side by side, the figure keeps the left column. */
@media (min-width: 1025px) {
  .gc-mount--anatomy.is-live .gc-anat__fig { grid-column: 1; grid-row: 1; }
  .gc-mount--anatomy.is-live .gc-anat__side { grid-column: 2; grid-row: 1; }
}
/* A taxonomy slug never breaks at its own hyphen. */
.gc-anat__slug { white-space: nowrap; }
.gc-mount--anatomy.is-live .gc-anat__view { display: none; }   /* the toggle names the view */

.gc-anat__stack { display: grid; }
.gc-anat__stack > * { grid-area: 1 / 1; min-width: 0; position: relative; z-index: 1; }
.gc-anat__stack > .is-front { z-index: 2; }
.gc-anat__stack > .is-off { visibility: hidden; }

.gc-anat__stage {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  column-gap: clamp(72px, 8vw, 120px);
  align-items: start;
}
.gc-anat__wires {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  overflow: visible;
  pointer-events: none;
}
.gc-anat__wire {
  fill: none;
  stroke: var(--pz-ink);
  stroke-width: 1;
  shape-rendering: crispEdges;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  transition:
    stroke-dashoffset 600ms var(--gc-ease) calc(var(--i, 0) * 90ms),
    opacity 240ms ease 0s,
    stroke-width 240ms ease 0s;
}
.gc-anat__pin {
  fill: var(--pz-ink);
  opacity: 0;
  transition: opacity 200ms ease calc(var(--i, 0) * 90ms);
}
.gc-anat__stage.is-drawn .gc-anat__wire { stroke-dashoffset: 0; }
.gc-anat__stage.is-drawn .gc-anat__pin { opacity: 1; }
.gc-anat__stage.has-hot .gc-anat__wire:not(.is-hot),
.gc-anat__stage.has-hot .gc-anat__pin:not(.is-hot) { opacity: .22; }
.gc-anat__wire.is-hot { stroke-width: 2; }

.gc-mount--anatomy.is-live .gc-anat__doc { z-index: 1; transition: border-color 240ms ease; }
.gc-mount--anatomy.is-live .gc-anat__doc.is-hot { border-color: var(--pz-ink); }

/* Card parts: a yellow band wipes in behind the part a note points at. */
.gc-mount--anatomy.is-live .gc-anat__doc [data-a] {
  background-image: linear-gradient(var(--pz-yellow), var(--pz-yellow));
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 0% 100%;
  transition: background-size 400ms var(--gc-ease);
}
.gc-mount--anatomy.is-live .gc-anat__doc [data-a].is-hot { background-size: 100% 100%; }
.gc-mount--anatomy.is-live .gc-anat__lines.is-hot i { background: rgba(17, 17, 17, .5); }

.gc-mount--anatomy.is-live .gc-anat__notes li {
  padding-left: 0;
  cursor: default;
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 420ms ease calc(var(--i, 0) * 90ms + 380ms),
    transform 520ms var(--gc-ease) calc(var(--i, 0) * 90ms + 380ms);
}
.gc-mount--anatomy.is-live .gc-anat__notes li::before { display: none; }
.gc-mount--anatomy.is-live .gc-anat__stage.is-drawn .gc-anat__notes li { opacity: 1; transform: none; }
.gc-mount--anatomy.is-live .gc-anat__notes li:focus-visible { outline-offset: 2px; }
.gc-mount--anatomy.is-live .gc-anat__v {
  background-image: linear-gradient(var(--pz-yellow), var(--pz-yellow));
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 0% 100%;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: background-size 400ms var(--gc-ease);
}
.gc-mount--anatomy.is-live .gc-anat__notes li.is-hot .gc-anat__v { background-size: 100% 100%; }
.gc-mount--anatomy.is-live .gc-anat__notes li.is-hot .gc-anat__k { color: var(--gc-fg); }

/* AI view: the same frontmatter, filling the drawing's footprint. */
.gc-anat__ai { display: flex; }
.gc-mount--anatomy.is-live .gc-anat__ai .gc-anat__yaml {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: clamp(24px, 3.4vw, 48px);
  font-size: clamp(12px, 1.05vw, 14px);
  line-height: 1.95;
  white-space: pre;
}
.gc-anat__yaml code { display: block; font: inherit; }
.gc-anat__yk { color: rgba(243, 240, 234, .55); }
.gc-anat__ym { color: rgba(243, 240, 234, .38); }

/* Segmented toggle */
.gc-seg {
  display: inline-flex;
  align-self: flex-start;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--gc-line-strong);
  border-radius: 2px;
}
.gc-seg__b {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-radius: 1px;
  padding: 10px 14px;
  font-family: var(--gc-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--gc-mute);
  cursor: pointer;
  transition: background-color 240ms ease, color 240ms ease;
}
.gc-seg__b:hover { color: var(--gc-fg); }
.gc-seg__b[aria-pressed="true"] { background: var(--pz-ink); color: var(--pz-bone); }

/* ═══ 2 · Usos (tablist) ═════════════════════════════════════════ */
.gc-mount--usos.is-live { gap: 0; }
.gc-mount--usos.is-live .gc-usos__tab { display: none; }   /* the tab is the heading now */
.gc-tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  border-bottom: 1px solid var(--gc-line);
  margin-bottom: 4px;
}
.gc-tabs__b {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  padding: 14px 0 13px;
  font-family: var(--gc-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gc-mute);
  cursor: pointer;
  transition: color 240ms ease;
}
.gc-tabs__b:hover,
.gc-tabs__b[aria-selected="true"] { color: var(--gc-fg); }
.gc-tabs__ink {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: var(--pz-ink);
  transition: transform 420ms var(--gc-ease), width 420ms var(--gc-ease);
}
.gc-mount--usos.is-live .gc-usos__group:focus-visible { outline-offset: 6px; }
.gc-mount--usos.is-live .gc-usos__group .gc-arrows li:first-child { border-top: 0; }
.gc-usos__group.is-enter .gc-arrows li {
  animation: gc-srv-rise 560ms var(--gc-ease) both;
  animation-delay: calc(var(--k, 0) * 60ms);
}
@keyframes gc-srv-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ═══ 3 · Console ════════════════════════════════════════════════ */
.gc-mount--console.is-live .gc-con { gap: 16px; }

.gc-mount--console.is-live .gc-con__motors {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--gc-line);
  border-radius: 2px;
}
.gc-con__motor {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  background: transparent;
  border: 0;
  border-radius: 1px;
  padding: 6px 10px 8px;
  font-family: var(--gc-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: none;
  color: rgba(243, 240, 234, .6);
  cursor: pointer;
  transition: color 200ms ease, background-color 200ms ease;
}
.gc-con__motor::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 3px;
  height: 2px;
  background: var(--pz-lilac);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 320ms var(--gc-ease);
}
.gc-con__motor:hover { color: var(--pz-bone); }
.gc-con__motor[aria-pressed="true"] { color: var(--pz-bone); background: rgba(243, 240, 234, .07); }
.gc-con__motor[aria-pressed="true"]::after { transform: scaleX(1); }

.gc-con__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 16px;
}
.gc-con__motorh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--gc-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .16em;
  color: rgba(243, 240, 234, .7);
}
.gc-con__motorh::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--pz-lilac);
}

.gc-con__chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.gc-con__chip {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid var(--gc-line-strong);
  border-radius: 2px;
  color: var(--pz-bone);
  font-family: var(--gc-body);
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.gc-con__chip:hover { border-color: rgba(243, 240, 234, .6); }
.gc-con__chip[aria-pressed="true"] { border-color: var(--pz-bone); background: rgba(243, 240, 234, .07); }
.gc-con__chip--own { border-style: dashed; }
.gc-con__chipno {
  flex: none;
  padding-top: 1px;
  font-family: var(--gc-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(243, 240, 234, .55);
}
.gc-con__chip[aria-pressed="true"] .gc-con__chipno { color: var(--pz-bone); }
/* Never clamped: the full question has to survive narrow screens and
   user text-spacing (WCAG 1.4.12); the grid rows grow with it. */
.gc-con__chiptx { display: block; min-width: 0; }

.gc-mount--console.is-live .gc-con__q { min-height: calc(2 * 1.55em); }
.gc-con__caret {
  display: inline-block;
  width: .55em;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -.2em;
  background: var(--pz-lilac);
  animation: gc-con-blink 1.06s steps(1, end) infinite;
}
@keyframes gc-con-blink { 50% { opacity: 0; } }

.gc-con__mid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(120px, 11vw, 156px);
  gap: 14px 22px;
  align-items: start;
}
.gc-con__pipe {
  list-style: none;
  display: grid;
  gap: 4px;
  font-family: var(--gc-mono);
  font-size: 11.5px;
  line-height: 1.55;
  color: rgba(243, 240, 234, .8);
  overflow-wrap: anywhere;
}
.gc-con__pipel { min-height: 1.55em; }
.gc-con__arrow { color: var(--pz-lilac); }
.gc-con__status {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--gc-line);
  font-family: var(--gc-mono);
  font-size: 10.5px;
  line-height: 1.6;
  color: rgba(243, 240, 234, .6);
  opacity: 0;
  transition: opacity 400ms ease;
}
.gc-con__status.is-shown { opacity: 1; }

/* Constellation */
.gc-con__map { margin: 0; }
.gc-con__mapsvg { display: block; width: 100%; height: auto; overflow: visible; }
.gc-con__mapcap {
  margin-top: 6px;
  font-family: var(--gc-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(243, 240, 234, .5);
}
.gc-con__doc { transition: fill 300ms ease; }
.gc-con__doc--t1 { fill: rgba(243, 240, 234, .18); }
.gc-con__doc--t2 { fill: rgba(243, 240, 234, .3); }
.gc-con__doc--t3 { fill: rgba(243, 240, 234, .45); }
.gc-con__doc.is-cited { fill: var(--pz-bone); }
.gc-con__qdot { fill: none; stroke: var(--pz-lilac); stroke-width: 1.4; }
.gc-con__beam {
  fill: none;
  stroke: var(--pz-lilac);
  stroke-width: .8;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 520ms var(--gc-ease) calc(var(--k, 0) * 140ms);
}
.gc-con__halo {
  fill: none;
  stroke: var(--pz-yellow);
  stroke-width: 1.6;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition: transform 480ms var(--gc-ease) calc(var(--k, 0) * 140ms + 260ms), stroke-width 240ms ease 0s;
}
.gc-con__strike { stroke: var(--pz-bone); stroke-width: 1; opacity: 0; }
.gc-con__num {
  font-family: var(--gc-mono);
  font-size: 9px;
  font-weight: 500;
  fill: var(--pz-bone);
  opacity: 0;
  transition: opacity 300ms ease calc(var(--k, 0) * 140ms + 380ms);
}
/* Beside the answers the 200-unit map renders at 120–156px; bigger
   digits keep the citation numbers at 9–12px there. */
@media (min-width: 641px) {
  .gc-con__num { font-size: 15px; }
}
.gc-con__mk.is-on .gc-con__beam { stroke-dashoffset: 0; }
.gc-con__mk.is-on .gc-con__halo { transform: scale(1); }
.gc-con__mk.is-on .gc-con__num { opacity: 1; }
.gc-con__mk.is-pending .gc-con__halo { stroke-dasharray: 2.4 2; }
/* Retrieved but superseded: struck, never haloed, never used. */
.gc-con__mk.is-superseded .gc-con__halo { stroke: none; }
.gc-con__mk.is-superseded .gc-con__beam { stroke-dasharray: .03 .03; opacity: .6; }
.gc-con__mk.is-on.is-superseded .gc-con__strike { opacity: 1; transition: opacity 300ms ease 600ms; }
.gc-con__mk.is-on.is-superseded .gc-con__num { opacity: .5; }
.gc-con__mk.is-ring .gc-con__halo { stroke-width: 3; animation: gc-con-ring 900ms var(--gc-ease) 1; }
@keyframes gc-con-ring {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.6); }
  100% { transform: scale(1); }
}
.gc-con__map.is-static .gc-con__beam,
.gc-con__map.is-static .gc-con__halo,
.gc-con__map.is-static .gc-con__num,
.gc-con__map.is-static .gc-con__strike { transition: none; }

/* Answers */
.gc-mount--console.is-live .gc-con__col { display: flex; flex-direction: column; }
.gc-mount--console.is-live .gc-con__ans { min-height: calc(6 * 1.55em); }
.gc-con.is-running .gc-con__vis:not(:empty)::after {
  content: "";
  display: inline-block;
  width: .5em;
  height: 1em;
  margin-left: 2px;
  vertical-align: -.15em;
  background: var(--pz-lilac);
}
.gc-con__col--off .gc-con__vis::after { opacity: .5; }
.gc-con__cite {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  border-radius: 1px;
  padding: 0 2px;
  margin: 0 1px;
  font-family: var(--gc-mono);
  font-size: .72em;
  font-weight: 500;
  line-height: 1;
  vertical-align: .35em;
  color: var(--pz-bone);
  text-decoration: underline;
  text-decoration-color: var(--pz-yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}
.gc-con__cite:hover,
.gc-con__cite[aria-expanded="true"] { background: var(--pz-yellow); color: var(--pz-ink); text-decoration: none; }

.gc-mount--console.is-live .gc-con__srcs { margin-top: 16px; }
.gc-mount--console.is-live .gc-con__srcs li {
  /* [n] keeps a gutter of its own, so it never ends up alone on a line
     above a long file name. */
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 8px;
  row-gap: 2px;
  align-items: baseline;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 320ms ease calc(var(--k, 0) * 90ms), transform 420ms var(--gc-ease) calc(var(--k, 0) * 90ms);
}
.gc-mount--console.is-live .gc-con__srcs.is-shown li { opacity: 1; transform: none; }
.gc-mount--console.is-live .gc-con__srcs li > :not(.gc-con__n) { grid-column: 2; }
.gc-con__file { overflow-wrap: anywhere; }
.gc-con__tags { color: rgba(243, 240, 234, .6); }
.gc-con__pills { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.gc-con__st {
  padding: 1px 5px;
  border: 1px solid rgba(243, 240, 234, .3);
  border-radius: 1px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .1em;
  white-space: nowrap;
}
.gc-con__st--vigent { background: var(--pz-yellow); border-color: var(--pz-yellow); color: var(--pz-ink); }
.gc-con__st--pendent { border-style: dashed; border-color: rgba(243, 240, 234, .7); color: var(--pz-bone); }
.gc-con__st--superat,
.gc-con__st--nousat { color: rgba(243, 240, 234, .6); }

.gc-mount--console.is-live .gc-con__flags { opacity: 0; transition: opacity 400ms ease; }
.gc-mount--console.is-live .gc-con__flags.is-shown { opacity: 1; }
.gc-mount--console.is-live .gc-con__col--on .gc-con__flags { margin-top: auto; padding-top: 14px; }

/* Citation popover (a disclosure, not a modal) */
.gc-con__pop {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--gc-line-strong);
  border-left: 2px solid var(--pz-yellow);
  border-radius: 2px;
  background: rgba(243, 240, 234, .04);
}
.gc-con__pophead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--gc-mono);
  font-size: 10.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.gc-con__popx {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  padding: 3px 8px;
  background: none;
  border: 1px solid var(--gc-line-strong);
  border-radius: 2px;
  font-family: var(--gc-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pz-bone);
  cursor: pointer;
}
.gc-con__popx:hover { border-color: var(--pz-bone); }
.gc-con__poppre {
  margin: 8px 0 0;
  font-family: var(--gc-mono);
  font-size: 11px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: rgba(243, 240, 234, .85);
}

/* No match */
.gc-con__nomatch {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px dashed var(--gc-line-strong);
  border-radius: 2px;
}
.gc-con__nomsg { font-size: 17px; line-height: 1.5; max-width: 44ch; }
.gc-con__nomatch.is-in { animation: gc-srv-rise 520ms var(--gc-ease) both; }

/* Actions */
.gc-con__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--gc-line);
}
.gc-con__btn {
  appearance: none;
  -webkit-appearance: none;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--gc-line-strong);
  border-radius: 2px;
  font-family: var(--gc-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pz-bone);
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease;
}
.gc-con__btn:hover { border-color: var(--pz-bone); }
.gc-con__btn--lab { margin-left: auto; background: var(--pz-bone); border-color: var(--pz-bone); color: var(--pz-ink); }
.gc-con__btn--lab:hover { background: transparent; color: var(--pz-bone); }

/* «Obre-ho al laboratori» moves focus to the Observatori section so
   the next Tab starts there; the section itself needs no ring. */
/* Scoped under .gc to outrank the shell's `.gc [tabindex]:focus-visible`. */
.gc .gc-obs[tabindex="-1"]:focus { outline: none; }

/* ═══ 4 · Case PAU ═══════════════════════════════════════════════ */
.gc-mount--case-pau.is-live .gc-pau__thread {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  transition:
    stroke-dashoffset 1600ms var(--gc-ease) calc(var(--i, 0) * 25ms),
    opacity 220ms ease 0s,
    stroke 220ms ease 0s,
    stroke-width 220ms ease 0s;
}
.gc-mount--case-pau.is-drawn .gc-pau__thread { stroke-dashoffset: 0; }
.gc-mount--case-pau.is-live .gc-pau__x {
  opacity: 0;
  transform: scale(.3);
  transform-box: fill-box;
  transform-origin: center;
  transition:
    opacity 260ms ease calc(var(--i, 0) * 25ms + 1100ms),
    transform 420ms var(--gc-ease) calc(var(--i, 0) * 25ms + 1100ms);
}
.gc-mount--case-pau.is-drawn .gc-pau__x { opacity: 1; transform: none; }
.gc-pau__merge {
  fill: var(--pz-ink);
  opacity: 0;
  transition: opacity 300ms ease calc(var(--i, 0) * 25ms + 1300ms);
}
.gc-mount--case-pau.is-drawn .gc-pau__merge { opacity: 1; }
.gc-pau__ghost {
  fill: none;
  stroke: rgba(17, 17, 17, .3);
  stroke-width: 1;
  stroke-dasharray: 2 2;
}
.gc-pau__band {
  fill: none;
  stroke: var(--pz-yellow);
  stroke-width: 7;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity 240ms ease;
}
.gc-pau__band.is-hot { opacity: 1; }
.gc-pau__svg.has-hot .gc-pau__thread:not(.is-hot) { opacity: .2; }
.gc-pau__svg .gc-pau__thread.is-hot { stroke: var(--pz-ink); stroke-width: 2; }
.gc-pau__dest { cursor: pointer; }
.gc-pau__dest .gc-pau__folder { transition: fill 220ms ease; }
.gc-pau__dest.is-hot .gc-pau__folder { fill: var(--pz-yellow); }
/* Phone stand-ins for the folders (see the ≤640 block). */
.gc-pau__picks { display: none; }
.gc-pau__pick {
  appearance: none;
  -webkit-appearance: none;
  min-width: 40px;
  min-height: 32px;
  padding: 0 8px;
  background: transparent;
  border: 1px solid var(--gc-line-strong);
  border-radius: 2px;
  font-family: var(--gc-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--pz-ink);
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease;
}
.gc-pau__pick:hover { border-color: var(--pz-ink); }
.gc-pau__pick[aria-pressed="true"] { background: var(--pz-yellow); border-color: var(--pz-ink); }

/* ═══ 5 · Case Costa Brava matrix ════════════════════════════════ */
.gc-mount--case-cb.is-live .gc-cbm { position: relative; }
.gc-mount--case-cb.is-live .gc-cbm__table td { cursor: crosshair; }
.gc-mount--case-cb.is-live .gc-cbm__table td:focus-visible { outline-offset: 1px; }
.gc-mount--case-cb.is-live .gc-cbm__cell {
  opacity: 0;
  transform: scale(.3);
  transition:
    opacity 320ms ease calc(var(--i, 0) * 40ms),
    transform 460ms var(--gc-ease) calc(var(--i, 0) * 40ms),
    background-color 180ms ease 0s;
}
.gc-mount--case-cb.is-live .gc-cbm.is-in .gc-cbm__cell { opacity: 1; transform: none; }
.gc-cbm__table.has-active .gc-cbm__cell { background: rgba(17, 17, 17, .14); }
.gc-cbm__table.has-active td.is-cross .gc-cbm__cell { background: rgba(17, 17, 17, .85); }
.gc-cbm__table.has-active td.is-active .gc-cbm__cell {
  background: var(--pz-yellow);
  outline: 2px solid var(--pz-ink);
  outline-offset: -2px;
}
.gc-cbm__table th { transition: color 180ms ease; }
.gc-cbm__table.has-active tbody th,
.gc-cbm__table.has-active thead th span { color: var(--gc-mute); }
.gc-cbm__table.has-active tbody th.is-cross,
.gc-cbm__table.has-active thead th.is-cross span { color: var(--gc-fg); }
.gc-cbm__tip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  padding: 5px 8px;
  background: var(--pz-ink);
  color: var(--pz-bone);
  border-radius: 2px;
  font-family: var(--gc-mono);
  font-size: 10.5px;
  line-height: 1.3;
  letter-spacing: .02em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 8px));
  transition: opacity 160ms ease;
}
.gc-cbm__tip.is-on { opacity: 1; }

/* ═══ 6 · SWaS orbit ═════════════════════════════════════════════ */
.gc-mount--swas-orbit.is-live .gc-orbit__oc {
  fill: none;
  stroke: var(--pz-bone);
  stroke-width: .62;          /* ≈1px once the 1.7× logo scale applies */
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1400ms var(--gc-ease);
}
.gc-mount--swas-orbit.is-live .gc-orbit.is-drawn .gc-orbit__oc { stroke-dashoffset: 0; }
.gc-mount--swas-orbit.is-live .gc-orbit__ring { opacity: 0; transition: opacity 900ms ease 500ms; }
.gc-mount--swas-orbit.is-live .gc-orbit.is-drawn .gc-orbit__ring { opacity: 1; }
.gc-mount--swas-orbit.is-live .gc-orbit__sys,
.gc-mount--swas-orbit.is-live .gc-orbit__sub { opacity: 0; transition: opacity 600ms ease 900ms; }
.gc-mount--swas-orbit.is-live .gc-orbit.is-drawn .gc-orbit__sys,
.gc-mount--swas-orbit.is-live .gc-orbit.is-drawn .gc-orbit__sub { opacity: 1; }
/* The subtitle crosses the O's inner contour: an ink halo knocks the
   line out behind the letters (the text paints after the O). */
.gc-mount--swas-orbit.is-live .gc-orbit__sub {
  paint-order: stroke;
  stroke: var(--pz-ink);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.gc-orbit__st { cursor: default; opacity: 0; transition: opacity 500ms ease calc(700ms + var(--k, 0) * 120ms); }
.gc-orbit.is-drawn .gc-orbit__st { opacity: 1; }
.gc-mount--swas-orbit.is-live .gc-orbit__station { fill: rgba(243, 240, 234, .5); transition: fill 400ms ease; }
.gc-mount--swas-orbit.is-live .gc-orbit__slabel { fill: rgba(243, 240, 234, .5); transition: fill 400ms ease; }
.gc-orbit__st.is-lit .gc-orbit__station,
.gc-orbit__st.is-focus .gc-orbit__station,
.gc-orbit.is-all .gc-orbit__station { fill: var(--pz-yellow); }
.gc-orbit__st.is-lit .gc-orbit__slabel,
.gc-orbit__st.is-focus .gc-orbit__slabel,
.gc-orbit.is-all .gc-orbit__slabel { fill: var(--pz-bone); }

.gc-mount--swas-orbit.is-live .gc-orbit__dot {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition: transform 640ms cubic-bezier(.34, 1.56, .64, 1);
}
.gc-mount--swas-orbit.is-live .gc-orbit.is-dot .gc-orbit__dot { transform: scale(1); }
.gc-orbit__aura { fill: none; stroke: rgba(240, 233, 42, .4); stroke-width: 1; }
.gc-mount--swas-orbit.is-live .gc-orbit__srv { opacity: 0; transition: opacity 400ms ease 300ms; }
.gc-mount--swas-orbit.is-live .gc-orbit.is-dot .gc-orbit__srv { opacity: 1; }

.gc-mount--swas-orbit.is-live .gc-orbit__list > div {
  padding-left: 12px;
  border-left: 2px solid var(--gc-line);
  transition: border-color 400ms ease;
}
.gc-mount--swas-orbit.is-live .gc-orbit__list dt { transition: color 400ms ease; color: rgba(243, 240, 234, .6); }
.gc-mount--swas-orbit.is-live .gc-orbit__list > .is-lit,
.gc-mount--swas-orbit.is-live .gc-orbit__list > .is-focus,
.gc-mount--swas-orbit.is-live .gc-orbit.is-all .gc-orbit__list > div { border-left-color: var(--pz-yellow); }
.gc-mount--swas-orbit.is-live .gc-orbit__list > .is-lit dt,
.gc-mount--swas-orbit.is-live .gc-orbit__list > .is-focus dt,
.gc-mount--swas-orbit.is-live .gc-orbit.is-all .gc-orbit__list dt { color: var(--pz-bone); }

/* ═══ 7 · SWaS entropy chart ═════════════════════════════════════ */
.gc-mount--swas-entropy.is-live .gc-entc__plot { position: relative; }
.gc-ent2__grid { stroke: rgba(243, 240, 234, .1); stroke-width: 1; }
.gc-ent2__grid.is-base { stroke: rgba(243, 240, 234, .3); }
.gc-ent2__tick,
.gc-ent2__xlab {
  font-family: var(--gc-mono);
  font-size: 11px;
  fill: rgba(243, 240, 234, .5);
  font-variant-numeric: tabular-nums;
}
.gc-ent2__xlab { letter-spacing: .08em; text-transform: uppercase; font-size: 10.5px; }
.gc-ent2__ylabel {
  font-family: var(--gc-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  fill: rgba(243, 240, 234, .6);
}
.gc-ent2__xtick { stroke: rgba(243, 240, 234, .3); stroke-width: 1; }
.gc-ent2__guide { stroke: rgba(243, 240, 234, .2); stroke-width: 1; stroke-dasharray: 2 4; }
.gc-ent2__off {
  fill: none;
  stroke: rgba(243, 240, 234, .45);
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
  stroke-linejoin: miter;
}
.gc-ent2__on { fill: none; stroke: var(--pz-yellow); stroke-width: 2; stroke-linejoin: round; }
.gc-ent2__cursor,
.gc-ent2__hover { stroke: rgba(243, 240, 234, .45); stroke-width: 1; opacity: 0; transition: opacity 240ms ease; }
.gc-ent2__cursor.is-on { opacity: 1; }
.gc-ent2__hover.is-on { opacity: 1; }
.gc-ent2__hit { fill: transparent; }
.gc-ent2__ev { opacity: 0; cursor: default; transition: opacity 320ms ease; }
.gc-ent2__ev.is-on { opacity: 1; }
.gc-ent2__ev rect {
  fill: var(--pz-ink);
  stroke: var(--pz-yellow);
  stroke-width: 1.5;
  transition: fill 200ms ease;
}
.gc-ent2__ev.is-act rect,
.gc-ent2__ev:focus-visible rect { fill: var(--pz-yellow); }
.gc-ent2__evl {
  font-family: var(--gc-mono);
  font-size: 11px;
  letter-spacing: .04em;
  fill: rgba(243, 240, 234, .7);
}
.gc-ent2__ev.is-act .gc-ent2__evl { fill: var(--pz-bone); }
.gc-entc__tip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  background: var(--pz-bone);
  color: var(--pz-ink);
  border-radius: 2px;
  font-family: var(--gc-mono);
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 14px));
  transition: opacity 160ms ease;
}
.gc-entc__tip.is-on { opacity: 1; }
.gc-entc__tiph { font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: 10px; }
.gc-entc__tipv { display: inline-flex; align-items: center; gap: 8px; }
.gc-entc__tipv::before { content: ""; width: 16px; height: 0; border-top: 2px solid var(--pz-ink); }
.gc-entc__tipv--off::before { border-top: 1.5px dashed rgba(17, 17, 17, .55); }

/* ═══ Responsive ═════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .gc-con__chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  /* Anatomy: notes under the card, leaders on a shared spine. */
  .gc-mount--anatomy.is-live .gc-anat__stage { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .gc-mount--anatomy.is-live .gc-anat__doc { margin-left: 18px; }
  .gc-mount--anatomy.is-live .gc-anat__notes li { padding-left: 26px; }
  /* Stacked, the hidden view must not reserve the other's height, and
     the YAML wraps instead of scrolling sideways with no hint. */
  .gc-mount--anatomy.is-live .gc-anat__stack > .is-off { display: none; }
  .gc-mount--anatomy.is-live .gc-anat__ai .gc-anat__yaml {
    justify-content: flex-start;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .gc-con__chips { grid-template-columns: minmax(0, 1fr); }
  .gc-con__mid { grid-template-columns: minmax(0, 1fr); }
  .gc-con__map { width: min(200px, 64%); justify-self: center; }
  .gc-con__num { font-size: 11px; }   /* ≈9–11px for a 180–200px map */
  .gc-mount--console.is-live .gc-con__ans { min-height: 0; }
  .gc-con__btn--lab { margin-left: 0; }

  .gc-mount--case-pau.is-live .gc-pau__thread { stroke-width: 1.6; }
  .gc-pau__svg .gc-pau__thread.is-hot { stroke-width: 3; }
  .gc-mount--case-pau.is-live .gc-pau__num { font-size: 21px; }   /* ≈10px at 375 */
  .gc-mount--case-pau.is-live .gc-pau__picks {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 12px;
  }
  .gc-mount--swas-orbit.is-live .gc-orbit__sub { font-size: 10px; }   /* ≈9.4px at 375 */
  .gc-cbm__tip { white-space: normal; max-width: 220px; }
}

/* ═══ Reduced motion: final states, nothing loops or staggers ════ */
@media (prefers-reduced-motion: reduce) {
  .gc-con__caret { animation: none; }
  .gc-usos__group.is-enter .gc-arrows li,
  .gc-con__nomatch.is-in,
  .gc-con__mk.is-ring .gc-con__halo { animation: none; }
  .gc-anat__wire,
  .gc-anat__pin,
  .gc-mount--anatomy.is-live .gc-anat__notes li,
  .gc-con__beam,
  .gc-con__halo,
  .gc-con__num,
  .gc-mount--console.is-live .gc-con__srcs li,
  .gc-mount--case-pau.is-live .gc-pau__thread,
  .gc-mount--case-pau.is-live .gc-pau__x,
  .gc-pau__merge,
  .gc-mount--case-cb.is-live .gc-cbm__cell,
  .gc-orbit__st,
  .gc-mount--swas-orbit.is-live .gc-orbit__ring,
  .gc-mount--swas-orbit.is-live .gc-orbit__sys,
  .gc-mount--swas-orbit.is-live .gc-orbit__sub,
  .gc-mount--swas-orbit.is-live .gc-orbit__srv { transition-delay: 0s !important; }
}
