.hero-features a.hero-feature-item { transition: all 0.3s ease; }
.hero-features a.hero-feature-item:hover { transform: translateY(-4px); background: rgba(255,255,255,0.15); }
.hero-features a.hero-feature-item:hover h4 { color: #8a6d1c; }

/* =====================================================================
   Control-loop diagrams (Control Narratives section)
   Self-contained so they do not depend on the global .bg-gradient-sky
   rule (which theme-light.css mis-treats as a dark surface and forces
   white text on, making these light-background pills invisible).
   ===================================================================== */
.control-loop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.control-loop-card {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  border: 1px solid var(--border-gray, #e2e8f0);
  border-left: 4px solid var(--primary-blue, #1565c0);
  border-radius: 10px;
  padding: 1.5rem;
}
.control-loop-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--primary-navy, #0a2540);
}
.control-loop-title .icon-prefix { color: var(--primary-blue, #1565c0); }
.loop-flow {
  padding: 1rem;
  background: #ffffff;
  border: 1px solid var(--border-gray, #e2e8f0);
  border-radius: 8px;
  font-family: 'Courier New', ui-monospace, monospace;
}
.loop-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}
.loop-trip {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}
.loop-node {
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}
.node-instrument { background: #e8f0fe; color: #1565c0; }
.node-valve { background: #fff3e0; color: #e65100; }
.node-trip { background: #ffebee; color: #c62828; }
.loop-arrow { color: #90a4ae; font-weight: 700; }
.loop-caption {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--text-medium, #41566b);
}
.loop-btn { margin-top: 1rem; font-size: 0.85rem; }
