/* Flow map — visual view of a decision guide.
 *
 * Loaded alongside flow-engine.css, which owns the tokens and the guided
 * view. This file owns the chart, the detail panel, and the shell that
 * switches between the two views.
 *
 * Design intent, held to throughout: content carries the colour, chrome
 * recedes to hairlines and near-white; depth comes from soft, low-opacity
 * shadows rather than borders; motion is short and eased, never bouncy;
 * every interactive surface has a visible, quiet focus state.
 */

:root {
  --fm-canvas: #f5f5f7;
  --fm-grid: rgba(0, 0, 0, 0.055);
  --fm-panel-width: 384px;
  --fm-radius: 20px;
  --fm-radius-sm: 14px;
  --fm-ease: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ---------- Shell ---------- */
.fl-views { flex: 1; min-height: 0; position: relative; }

.fl-view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.26s var(--fm-ease);
}
.fl-view.is-active { opacity: 1; visibility: visible; }

/* Segmented control — the map/guided switch. */
.fl-segmented {
  display: inline-flex;
  padding: 2px;
  border-radius: 980px;
  background: rgba(0, 0, 0, 0.05);
}

.fl-segment {
  appearance: none;
  border: 0;
  border-radius: 980px;
  padding: 0.42rem 0.95rem;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.006em;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: color 0.2s var(--fm-ease), background 0.2s var(--fm-ease), box-shadow 0.2s var(--fm-ease);
}
.fl-segment:hover { color: var(--ink); }
.fl-segment[aria-selected="true"] {
  color: var(--ink);
  font-weight: 600;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
}
.fl-segment:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- Map layout: canvas + detail panel ---------- */
.fm-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr var(--fm-panel-width);
}

.fm-map {
  position: relative;
  min-width: 0;
  background: var(--fm-canvas);
  /* A faint dot grid reads as a working canvas without competing with the
     chart. Two layers so the dots stay crisp at any scale. */
  background-image: radial-gradient(var(--fm-grid) 1px, transparent 1px);
  background-size: 22px 22px;
  overflow: hidden;
}

.fm-viewport {
  position: absolute;
  inset: 0;
  cursor: grab;
  touch-action: none;
}
.fm-viewport.is-dragging { cursor: grabbing; }

.fm-stage {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.fm-edges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* The label layer sits above the nodes, so it must not swallow their clicks. */
.fm-labels { pointer-events: none; }
.fm-nodes { position: absolute; inset: 0; }

/* ---------- Edges ---------- */
.fm-edge {
  fill: none;
  stroke: rgba(0, 0, 0, 0.19);
  stroke-width: 1.6;
  stroke-linecap: round;
  transition: stroke 0.24s var(--fm-ease), stroke-width 0.24s var(--fm-ease), opacity 0.24s var(--fm-ease);
}
.fm-edge.is-lit { stroke: var(--brand); stroke-width: 2.4; }
.fm-edge.is-dimmed { opacity: 0.22; }

.fm-arrowhead { fill: rgba(0, 0, 0, 0.28); }
.fm-arrowhead--lit { fill: var(--brand); }

.fm-edge-label {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--fm-ease);
}
.fm-edge-label.is-visible { opacity: 1; }
.fm-edge-label rect {
  fill: var(--surface);
  stroke: rgba(0, 0, 0, 0.09);
  stroke-width: 1;
  /* Reads as a callout floating over the chart on the few plates the nudge
     pass cannot place in clear space. */
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.13));
}
.fm-edge-label text {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.004em;
  fill: var(--ink);
}

/* ---------- Nodes ---------- */
.fm-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 10px 14px;
  font-family: var(--font);
  text-align: left;
  color: var(--ink);
  background: var(--surface);
  border: 0;
  border-radius: var(--fm-radius-sm);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07),
              0 4px 12px rgba(0, 0, 0, 0.055),
              0 0 0 0.5px rgba(0, 0, 0, 0.045);
  cursor: pointer;
  transition: transform 0.22s var(--fm-ease),
              box-shadow 0.22s var(--fm-ease),
              opacity 0.24s var(--fm-ease);
}
.fm-node:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,0.08), 0 10px 24px rgba(0,0,0,0.1), 0 0 0 0.5px rgba(0,0,0,0.05); }
.fm-node:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 3px; }
.fm-node.is-dimmed { opacity: 0.32; }
.fm-node.is-onpath { box-shadow: 0 1px 2px rgba(0,0,0,0.07), 0 4px 12px rgba(0,0,0,0.055), 0 0 0 1.5px rgba(0, 94, 162, 0.35); }
.fm-node.is-selected {
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 3px 6px rgba(0,0,0,0.09), 0 14px 32px rgba(0,0,0,0.13), 0 0 0 2.5px var(--brand);
}

.fm-node-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.fm-node-label {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.014em;
  text-wrap: balance;
}

/* The opening question carries slightly more weight than the rest. */
.fm-node--start { border-radius: var(--fm-radius); }
.fm-node--start .fm-node-eyebrow { color: var(--brand); }
.fm-node--start .fm-node-label { font-size: 19px; }

/* Outcomes: a tone dot rather than a filled card, so fourteen of them do
   not turn the chart into a traffic light. */
.fm-node--determination {
  flex-direction: row;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
}
.fm-node--determination .fm-node-label { font-size: 15px; font-weight: 500; line-height: 1.24; }

.fm-node-dot {
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--muted);
}
.fm-node[data-tone="stop"] .fm-node-dot { background: var(--verdict-stop); }
.fm-node[data-tone="caution"] .fm-node-dot { background: var(--verdict-caution); }
.fm-node[data-tone="clear"] .fm-node-dot { background: var(--verdict-clear); }

.fm-node[data-tone="stop"].is-selected { box-shadow: 0 3px 6px rgba(0,0,0,0.09), 0 14px 32px rgba(0,0,0,0.13), 0 0 0 2.5px var(--verdict-stop); }
.fm-node[data-tone="caution"].is-selected { box-shadow: 0 3px 6px rgba(0,0,0,0.09), 0 14px 32px rgba(0,0,0,0.13), 0 0 0 2.5px var(--verdict-caution); }
.fm-node[data-tone="clear"].is-selected { box-shadow: 0 3px 6px rgba(0,0,0,0.09), 0 14px 32px rgba(0,0,0,0.13), 0 0 0 2.5px var(--verdict-clear); }

/* ---------- Zoom control ---------- */
.fm-zoom {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  padding: 3px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 0.5px rgba(0, 0, 0, 0.05);
}

.fm-zoom-btn {
  min-width: 32px;
  height: 28px;
  padding: 0 0.6rem;
  border: 0;
  border-radius: 980px;
  background: transparent;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.16s var(--fm-ease);
}
.fm-zoom-btn:hover { background: rgba(0, 0, 0, 0.055); }
.fm-zoom-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }

/* ---------- Legend ---------- */
.fm-legend {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  gap: 0.85rem;
  padding: 0.5rem 0.85rem;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 0.5px rgba(0, 0, 0, 0.05);
  font-size: 0.75rem;
  color: var(--muted);
}
.fm-legend-item { display: inline-flex; align-items: center; gap: 0.35rem; }
.fm-legend-dot { width: 7px; height: 7px; border-radius: 50%; }
.fm-legend-dot[data-tone="stop"] { background: var(--verdict-stop); }
.fm-legend-dot[data-tone="caution"] { background: var(--verdict-caution); }
.fm-legend-dot[data-tone="clear"] { background: var(--verdict-clear); }

/* ---------- Detail panel ---------- */
.fm-panel {
  border-left: 0.5px solid rgba(0, 0, 0, 0.12);
  background: var(--surface);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.fm-panel-body { padding: 1.75rem 1.6rem 2.5rem; animation: fm-panel-in 0.3s var(--fm-ease) both; }
@keyframes fm-panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.fm-panel-tag {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.3rem 0.7rem;
  border-radius: 980px;
  background: rgba(0, 0, 0, 0.05);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.fm-panel-tag[data-tone="stop"] { color: var(--verdict-stop); background: var(--verdict-stop-soft); }
.fm-panel-tag[data-tone="caution"] { color: var(--verdict-caution); background: var(--verdict-caution-soft); }
.fm-panel-tag[data-tone="clear"] { color: var(--verdict-clear); background: var(--verdict-clear-soft); }

.fm-panel-title {
  margin: 0 0 0.7rem;
  font-size: 1.4375rem;
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.026em;
  text-wrap: pretty;
}

.fm-panel-question {
  margin: 0 0 0.7rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.011em;
  color: var(--ink);
}

.fm-panel-blurb {
  margin: 0 0 1.6rem;
  font-size: 0.9375rem;
  line-height: 1.58;
  letter-spacing: -0.008em;
  color: var(--muted);
}

.fm-panel-label {
  margin: 0 0 0.7rem;
  font-size: 0.6375rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
}

.fm-panel-steps { margin: 0 0 1.6rem; padding: 0; list-style: none; counter-reset: fm-step; }
.fm-panel-steps li {
  counter-increment: fm-step;
  position: relative;
  padding: 0 0 0.75rem 1.75rem;
  font-size: 0.875rem;
  line-height: 1.55;
  letter-spacing: -0.006em;
  color: var(--ink);
}
.fm-panel-steps li::before {
  content: counter(fm-step);
  position: absolute;
  left: 0;
  top: 0.06rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fm-panel-steps li:last-child { padding-bottom: 0; }

/* Branch rows — the map's edge labels, made clickable. */
.fm-panel-branches { display: grid; gap: 0.4rem; margin-bottom: 1.6rem; }

.fm-branch {
  display: grid;
  gap: 0.15rem;
  width: 100%;
  text-align: left;
  font-family: var(--font);
  color: inherit;
  background: var(--surface-alt);
  border: 0;
  border-radius: var(--fm-radius-sm);
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  transition: background 0.18s var(--fm-ease), transform 0.18s var(--fm-ease);
}
.fm-branch:hover { background: #ebebef; transform: translateX(2px); }
.fm-branch:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.fm-branch-answer {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.01em;
}
.fm-branch-target {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.fm-branch-target::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--faint);
  flex-shrink: 0;
}
.fm-branch[data-tone="stop"] .fm-branch-target::before { background: var(--verdict-stop); }
.fm-branch[data-tone="caution"] .fm-branch-target::before { background: var(--verdict-caution); }
.fm-branch[data-tone="clear"] .fm-branch-target::before { background: var(--verdict-clear); }

.fm-panel-sources { margin: 0 0 1.6rem; padding: 0; list-style: none; }
.fm-panel-sources li { padding: 0.45rem 0; border-bottom: 0.5px solid rgba(0, 0, 0, 0.1); }
.fm-panel-sources li:last-child { border-bottom: 0; }
.fm-panel-sources a {
  font-size: 0.8125rem;
  line-height: 1.45;
  font-weight: 500;
  color: var(--brand);
  text-decoration: none;
}
.fm-panel-sources a:hover { text-decoration: underline; }

.fm-panel-cta {
  width: 100%;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 980px;
  padding: 0.72rem 1.1rem;
  cursor: pointer;
  transition: background 0.18s var(--fm-ease), transform 0.18s var(--fm-ease);
}
.fm-panel-cta:hover { background: #004c85; transform: translateY(-1px); }
.fm-panel-cta:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Empty state */
.fm-panel-empty {
  padding: 3rem 1.6rem;
  text-align: center;
  animation: fm-panel-in 0.3s var(--fm-ease) both;
}
.fm-panel-empty-mark {
  width: 42px;
  height: 42px;
  margin: 0 auto 1.1rem;
  border-radius: 12px;
  border: 2px dashed var(--line);
}
.fm-panel-empty-title {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.018em;
}
.fm-panel-empty-text {
  margin: 0 auto;
  max-width: 30ch;
  font-size: 0.875rem;
  line-height: 1.58;
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  :root { --fm-panel-width: 320px; }
}

@media (max-width: 860px) {
  /* Stack the chart above the panel; the chart keeps a fixed share of the
     height so it never collapses to a sliver. */
  .fm-layout { grid-template-columns: 1fr; grid-template-rows: 52vh 1fr; }
  .fm-panel { border-left: 0; border-top: 0.5px solid rgba(0, 0, 0, 0.12); }
  .fm-panel-body { padding: 1.4rem 1.25rem 2rem; }
  .fm-legend { display: none; }
  .fm-zoom { left: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .fm-node, .fm-edge, .fm-edge-label, .fm-branch, .fm-panel-cta, .fl-view, .fl-segment { transition: none; }
  .fm-node:hover, .fm-node.is-selected { transform: none; }
  .fm-panel-body, .fm-panel-empty { animation: none; }
}

/* ══════════════════════════════════════════════════════════════════════
   Progressive reveal
   The chart is built whole but shown a layer at a time, so positions
   never shift as it grows — a hidden node keeps its place in the layout
   and simply is not painted.
   ══════════════════════════════════════════════════════════════════════ */

.fm-node.is-hidden,
.fm-edge.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.fm-node.is-hidden { transform: translateY(6px) scale(0.96); }

/* Nodes ease in as their layer opens; edges follow a touch later so the
   arrow appears to travel into the new box rather than arrive with it. */
.fm-node { transition: transform 0.34s var(--fm-ease), box-shadow 0.22s var(--fm-ease), opacity 0.34s var(--fm-ease); }
.fm-edge { transition: stroke 0.24s var(--fm-ease), stroke-width 0.24s var(--fm-ease), opacity 0.42s var(--fm-ease) 0.08s; }

/* A step with an unopened branch says so: a soft ring that settles once. */
.fm-node.has-more::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 1.5px solid rgba(0, 94, 162, 0.32);
  pointer-events: none;
  animation: fm-pulse 2.6s var(--fm-ease) 3;
}
@keyframes fm-pulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  40% { opacity: 1; transform: scale(1.015); }
}

/* Only the programmatic moves glide; a drag must track the pointer. */
.fm-stage.is-gliding { transition: transform 0.58s var(--fm-ease); }

/* Top left: the zoom bar owns the bottom left and the legend the bottom
   right, and a centred button lands on top of the legend. */
.fm-revealall {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 0.5px rgba(0, 0, 0, 0.05);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.16s var(--fm-ease);
}
.fm-revealall:hover { background: #fff; }
.fm-revealall:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.fm-revealall[hidden] { display: none; }

/* ---------- Full-screen toggle (top right of the canvas) ---------- */
.fm-fullscreen {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 0.5px rgba(0, 0, 0, 0.05);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.16s var(--fm-ease), color 0.16s var(--fm-ease);
}
.fm-fullscreen:hover { background: #fff; color: var(--ink); }
.fm-fullscreen:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.fm-fullscreen svg { width: 17px; height: 17px; }

/* ══════════════════════════════════════════════════════════════════════
   Intro sequence
   ══════════════════════════════════════════════════════════════════════ */

.fi-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  background: var(--surface);
  opacity: 1;
  transition: opacity 0.62s var(--fm-ease);
}
.fi-overlay.is-done { opacity: 0; pointer-events: none; }

.fi-stage {
  flex: 1;
  width: 100%;
  display: grid;
  place-items: center;
  min-height: 0;
}

.fi-card {
  max-width: 46ch;
  text-align: center;
  animation: fi-in 0.62s var(--fm-ease) both;
}
.fi-card.is-leaving { animation: fi-out 0.62s var(--fm-ease) both; }

@keyframes fi-in {
  from { opacity: 0; transform: translateY(14px); filter: blur(3px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes fi-out {
  from { opacity: 1; transform: none; filter: none; }
  to { opacity: 0; transform: translateY(-14px); filter: blur(3px); }
}

/* ---------- The viewing prompt ---------- */
.fi-prompt-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 1.1rem;
  color: var(--brand);
}
.fi-prompt-title {
  margin: 0 0 0.8rem;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.fi-prompt-text {
  margin: 0 0 1.9rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  letter-spacing: -0.008em;
  color: var(--muted);
}

.fi-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }

.fi-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.008em;
  color: var(--ink);
  background: var(--surface-alt);
  border: 0;
  border-radius: 980px;
  padding: 0.62rem 1.15rem;
  cursor: pointer;
  transition: background 0.18s var(--fm-ease);
}
.fi-btn:hover { background: #ebebef; }
.fi-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.fi-btn--primary { background: var(--brand); color: #fff; font-weight: 600; }
.fi-btn--primary:hover { background: #004c85; }
.fi-btn-icon { width: 15px; height: 15px; }

/* ---------- The scene beats ---------- */
.fi-scene-text {
  margin: 0;
  font-size: clamp(1.25rem, 3.2vw, 1.85rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-wrap: balance;
}
.fi-scene-text em { font-style: normal; color: var(--brand); }
.fi-card--scene .fi-btn { margin-top: 1.8rem; }

/* ---------- Footer: progress and skip ---------- */
.fi-foot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.fi-dots { display: flex; gap: 6px; }
.fi-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.3s var(--fm-ease);
}
.fi-dot.is-on { background: var(--brand); }

.fi-skip {
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  border-radius: 6px;
}
.fi-skip:hover { color: var(--ink); }
.fi-skip:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }

@media (max-width: 860px) {
  .fm-revealall { left: 10px; top: 10px; font-size: 0.78rem; padding: 0.42rem 0.8rem; }
  .fm-fullscreen { top: 10px; right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .fm-node, .fm-edge, .fm-stage.is-gliding { transition: none; }
  .fm-node.has-more::after { animation: none; opacity: 1; }
  .fi-card, .fi-card.is-leaving { animation: none; }
  .fi-overlay { transition: none; }
}
