/**
 * Screen guide + user-flows bridges to interactive data-flow simulators
 */
.doc-block--data-flow-bridge {
  background: linear-gradient(135deg, rgba(var(--lux-primary-rgb), 0.06) 0%, rgba(var(--lux-accent-rgb), 0.04) 100%);
  border-bottom: 2px solid rgba(var(--lux-primary-rgb), 0.12);
}

.df-bridge-lead {
  margin: 0 0 var(--space-md);
  font-size: var(--text-sm);
  color: var(--text-mid);
  max-width: 72ch;
  line-height: 1.6;
}

.df-bridge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
}

.df-bridge-cta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: min(100%, 220px);
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 2px solid rgba(var(--lux-primary-rgb), 0.2);
  background: var(--bg-white);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 16px rgba(var(--lux-primary-rgb), 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.df-bridge-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--lux-primary-rgb), 0.14);
}

.df-bridge-cta--primary {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(var(--lux-primary-rgb), 0.12), rgba(var(--lux-primary-rgb), 0.04));
}

.df-bridge-cta span {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
}

.df-bridge-cta strong {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--primary-color);
}

.df-bridge-link {
  display: inline-flex;
  align-items: center;
  align-self: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-mid);
  border: 1px solid var(--border-color);
  background: var(--bg-white);
}

.df-bridge-link:hover {
  color: var(--primary-color);
  border-color: rgba(var(--lux-primary-rgb), 0.35);
}

/* User flows hub */
body.user-flows-hub-page .doc-block--launch {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.06), transparent);
  border-bottom: 2px solid rgba(99, 102, 241, 0.12);
}

.flow-bridge-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.05rem 1.15rem 1.15rem;
  border-radius: 14px;
  border: 2px solid rgba(99, 102, 241, 0.22);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(238,242,255,0.65));
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.08);
}

.flow-bridge-card h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #312e81;
}

.flow-bridge-card p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #64748b;
}

.flow-bridge-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(99, 102, 241, 0.2);
}

@media (min-width: 520px) {
  .flow-bridge-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .flow-bridge-links--four {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flow-bridge-links a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.15rem;
  min-height: 52px;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  border: 2px solid rgba(148, 163, 184, 0.35);
  background: #fff;
  color: #334155;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.flow-bridge-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
}

.flow-bridge-links a::before {
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

.flow-bridge-links a.is-dataflow,
.flow-bridge-links a.is-hub {
  border-color: rgba(61, 90, 122, 0.45);
  color: #0f2744;
  background: linear-gradient(180deg, #fff 0%, rgba(61, 90, 122, 0.1) 100%);
}

.flow-bridge-links a.is-dataflow::before {
  content: "Simulator";
  color: #3d5a7a;
}

.flow-bridge-links a.is-hub::before {
  content: "Hub";
  color: #3d5a7a;
}

.flow-bridge-links a.is-scenario {
  border-color: rgba(99, 102, 241, 0.45);
  color: #312e81;
  background: linear-gradient(180deg, #fff 0%, rgba(99, 102, 241, 0.1) 100%);
}

.flow-bridge-links a.is-scenario::before {
  content: "Walkthrough";
  color: #4338ca;
}

.flow-bridge-links a.is-screen {
  border-color: rgba(16, 185, 129, 0.45);
  color: #064e3b;
  background: linear-gradient(180deg, #fff 0%, rgba(16, 185, 129, 0.1) 100%);
}

.flow-bridge-links a.is-screen::before {
  content: "Reference";
  color: #047857;
}

.flow-bridge-links a.is-catalog {
  border-color: rgba(217, 119, 6, 0.45);
  color: #78350f;
  background: linear-gradient(180deg, #fff 0%, rgba(251, 191, 36, 0.15) 100%);
}

.flow-bridge-links a.is-catalog::before {
  content: "Catalog";
  color: #b45309;
}

.flow-bridge-links a.is-muted {
  border-style: dashed;
  opacity: 0.55;
  pointer-events: none;
}

.flow-bridge-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.12);
}

.flow-bridge-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #475569;
}

.flow-bridge-legend i {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 3px;
  flex-shrink: 0;
}

.flow-bridge-legend i.legend-dataflow { background: #3d5a7a; }
.flow-bridge-legend i.legend-scenario { background: #6366f1; }
.flow-bridge-legend i.legend-screen { background: #10b981; }
.flow-bridge-legend i.legend-catalog { background: #f59e0b; }

.flow-bridge-card__links-label {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6366f1;
  margin: 0.35rem 0 0;
}

.uf-launch-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .uf-launch-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .uf-launch-grid { grid-template-columns: repeat(3, 1fr); }
}

.uf-launch-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 2px solid rgba(99, 102, 241, 0.18);
  background: linear-gradient(180deg, #fff, rgba(238, 242, 255, 0.7));
  text-decoration: none;
  color: inherit;
  min-height: 118px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.uf-launch-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.14);
}

.uf-launch-card strong {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #312e81;
}

.uf-launch-card span {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.45;
  flex: 1;
}

.uf-launch-card em {
  display: inline-flex;
  margin-top: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.6875rem;
  font-weight: 800;
  color: #fff;
  background: #4338ca;
  width: fit-content;
}
