/* ============================================================================
 * chem_bridge.css
 * Quiet UI Cross-Track Engineering Bridges (4-Theme WCAG AA Tokens)
 * Part of [OAW-Chem] platform styles (<= 90 lines)
 * ============================================================================ */

.chem-bridge-section {
  margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--border-hairline);
  display: flex; flex-direction: column; gap: 5px;
}
.chem-bridge-heading {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-secondary);
}
.chem-bridge-list { display: flex; flex-direction: column; gap: 5px; }

.chem-bridge-link {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  padding: 6px 8px; border-radius: var(--radius-ui, 8px); text-decoration: none;
  background: var(--bg-elevated); border: 1px solid var(--border-grid);
  color: var(--ink-primary); transition: border-color 120ms ease;
}
.chem-bridge-link:hover,
.chem-bridge-link:focus-visible {
  background: var(--sig-bg); border-color: var(--accent-link); outline: none;
}
.chem-bridge-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.chem-bridge-cmd {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  color: var(--ink-primary); line-height: 1.3; overflow-wrap: anywhere;
}
.chem-bridge-note {
  font-family: var(--font-sans); font-size: 0.70rem; line-height: 1.35;
  color: var(--ink-secondary); white-space: normal;
}
.chem-bridge-arrow {
  font-family: var(--font-mono); font-size: 0.82rem; font-weight: 700;
  color: var(--ink-secondary); flex-shrink: 0; line-height: 1.3;
}
.chem-bridge-link:hover .chem-bridge-cmd,
.chem-bridge-link:hover .chem-bridge-arrow,
.chem-bridge-link:focus-visible .chem-bridge-cmd,
.chem-bridge-link:focus-visible .chem-bridge-arrow { color: var(--accent-link); }

.chem-chapter-chip.chem-chip-track {
  background: var(--bg-elevated); border: 1px solid var(--border-grid);
  color: var(--ink-secondary); text-decoration: none; white-space: normal;
}
.chem-chip-track .chem-track-cmd {
  font-family: var(--font-mono); font-weight: 700; color: var(--ink-primary);
}
.chem-chip-track .chem-chip-arrow {
  font-family: var(--font-mono); color: var(--ink-secondary); margin-left: 2px;
}
.chem-chip-track:hover,
.chem-chip-track:focus-visible {
  background: var(--sig-bg); border-color: var(--accent-link); color: var(--accent-link);
}
.chem-chip-track:hover .chem-track-cmd,
.chem-chip-track:hover .chem-chip-arrow,
.chem-chip-track:focus-visible .chem-track-cmd,
.chem-chip-track:focus-visible .chem-chip-arrow { color: var(--accent-link); }

.chem-specs-grid-2x2 { gap: 6px 10px; }
.chem-specs-grid-2x2 .chem-spec-item { flex-direction: column; align-items: flex-start; gap: 2px; }
.chem-specs-grid-2x2 .spec-lbl { white-space: nowrap; font-size: 0.64rem; }
.chem-specs-grid-2x2 .spec-val { white-space: nowrap; font-weight: 700; text-align: left; }
.compound-specs .chem-specs-grid-2x2 .spec-val,
.wing-specs .chem-specs-grid-2x2 .spec-val { white-space: normal; overflow-wrap: anywhere; }

.chem-search-bridge-badge {
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 700; padding: 1px 6px;
  border-radius: 4px; background: var(--bg-elevated); border: 1px solid var(--border-grid);
  color: var(--ink-primary); flex-shrink: 0;
}

.chem-used-in-strip {
  display: flex; flex-wrap: wrap; gap: 5px; justify-content: center;
  padding: 5px 8px 6px; border-top: 1px solid var(--border-hairline); background: var(--bg-elevated);
}
.chem-used-pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; min-height: 24px;
  border-radius: 999px; font-family: var(--font-sans); font-size: 0.72rem; font-weight: 700;
  color: var(--accent-link); background: var(--sig-bg); text-decoration: none;
  border: 1px solid color-mix(in oklab, var(--accent-link) 40%, transparent);
}
.chem-used-pill:hover, .chem-used-pill:focus-visible { border-color: var(--accent-link); outline: 2px solid var(--accent-link); outline-offset: 1px; }

@media (forced-colors: active) {
  .chem-bridge-link, .chem-chapter-chip.chem-chip-track, .chem-used-pill { border: 1px solid LinkText; }
}

.chem-used-in-strip { align-items: center; }
.chem-used-lbl { font: 700 10.5px/1.2 var(--font-sans); color: var(--ink-secondary); white-space: nowrap; }
.chem-used-pill { white-space: nowrap; max-width: 100%; }
