/**
 * Architecture views (Dependency Graph, Repository Maps, Capabilities, Domains, Audit) - [pol-4]
 * Moved here from a <style> block views_architecture.js injected at runtime: that block used raw rgba colours (a dark-only
 * look in the light theme), a 1200 px breakpoint, and redefined classes after every stylesheet once the view had loaded.
 * Linked after the component sheets so the cascade order it had as an injected block is kept.
 */
/* Graph Visualization & Canvas Styles */
.graph-view-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 1311px) {
  
}


.graph-toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.graph-toolbar-divider {
  width: 1px;
  height: 20px;
  background: var(--cds-border-subtle-01);
  margin: 0 4px;
}

/* [V8] the canvas's empty state when the graph has nothing to draw (Neo4j down or no links) */



/* nothing to navigate: the radar navigator would only cover the message */

/* #cytoscape-canvas, the minimap (.hadron-graph-minimap, .minimap-*), @keyframes radar-pulse / cy-path-pulse and the
   tooltip's type, padding, shadow and z-index are interactions.css's (P1); this sheet adds only what it does not set. */


/* [V8] the node count never shrinks into an ellipsis: the legend wraps first */









@keyframes graph-dash {
  to { stroke-dashoffset: -18; }
}





.graph-tooltip {
  display: none;
  background: var(--cds-layer-01);
  max-width: 280px;
}
.graph-tooltip-title {
  font-weight: 600;
  color: var(--cds-link-primary);
  margin-bottom: 4px;
  font-size: 0.75rem;
  word-break: break-all;
}
.graph-tooltip-row {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  color: var(--cds-text-secondary);
}
.graph-tooltip-row span:last-child {
  color: var(--cds-text-primary);
  font-weight: 600;
}

/* Repository Maps: the dependency table and its detail. Side by side from 1056 px (the table gets the larger share,
   its last columns stay in view at 1440); stacked below, so the table is never squeezed to its checkbox column. */
.maps-master-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(min(100%, 360px), 1fr);
  gap: var(--cds-spacing-06);
  align-items: start;
}
@media (max-width: 1055px) {
  .maps-master-detail { grid-template-columns: minmax(0, 1fr); }
}

/* Inspector & Detail Panels */
.inspector-card {
  background-color: var(--cds-layer-01);
  border: 1px solid var(--cds-border-subtle-01);
  padding: var(--cds-spacing-05);
  height: 640px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--cds-spacing-05);
}
.trace-card-step {
  position: relative;
  padding-left: 24px;
  padding-bottom: 16px;
  border-left: 2px solid var(--cds-border-interactive);
}
.trace-card-step:last-child {
  border-left: 2px solid transparent;
  padding-bottom: 0;
}
.trace-step-marker {
  position: absolute;
  left: -8px;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--cds-interactive);
  color: var(--cds-text-on-color);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.trace-step-marker.step-start {
  background-color: var(--cds-tag-cyan-border);
  color: var(--cds-text-inverse);
}
.trace-step-marker.step-end {
  background-color: var(--cds-support-warning);
  color: var(--cds-text-inverse);
}

/* Capability Grid & Multi-Select Tags */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: var(--cds-spacing-04);
}
.capability-card {
  background-color: var(--cds-layer-01);
  border: 1px solid var(--cds-border-subtle-01);
  padding: var(--cds-spacing-04) var(--cds-spacing-05);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 130px;
  position: relative;
}
.capability-card:hover {
  background-color: var(--cds-layer-hover-01);
  border-color: var(--cds-border-subtle-02);
}
.capability-card.selected {
  background-color: var(--cds-layer-selected-01);
  border-color: var(--cds-interactive);
  box-shadow: inset 0 0 0 1px var(--cds-interactive);
}
.capability-card.selected::before {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  color: var(--cds-interactive);
  font-weight: 600;
  font-size: 1rem;
}
.caps-tag-deck {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cds-spacing-03);
  align-items: center;
  min-height: 40px;
  background-color: var(--cds-layer-01);
  padding: var(--cds-spacing-04);
  border: 1px solid var(--cds-border-subtle-01);
  margin-bottom: var(--cds-spacing-05);
}

/* Domain matrix cards */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: var(--cds-spacing-05);
}
.domain-tile {
  background-color: var(--cds-layer-01);
  border: 1px solid var(--cds-border-subtle-01);
  padding: var(--cds-spacing-05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
/* Cards and chips that act on a click are buttons: they keep the look they had as divs and spans. */
button.capability-card, button.arch-plain-btn {
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
}
button.arch-plain-btn { background: none; border: 0; padding: 0; cursor: pointer; }
button.capability-card:focus-visible, button.arch-plain-btn:focus-visible, button.carbon-tag:focus-visible,
.neighbor-hover-row:focus-visible {
  outline: var(--hx-focus-ring-width) solid var(--cds-focus);
  outline-offset: var(--hx-focus-ring-inset);
}
button.carbon-tag { border: 0; font: inherit; font-size: 0.75rem; cursor: pointer; }
button.neighbor-hover-row { font: inherit; color: inherit; text-align: left; width: 100%; border: 0; }
.arch-dep-group-title {
  font-size: 0.75rem;
  color: var(--cds-text-secondary);
  margin-bottom: 2px;
}
.arch-muted { color: var(--cds-text-helper); font-size: 0.75rem; }

/* Audit and Verification Cards */
.audit-card {
  background-color: var(--cds-layer-01);
  border: 1px solid var(--cds-border-subtle-01);
  padding: var(--cds-spacing-05);
  margin-bottom: var(--cds-spacing-04);
}
.audit-card.gate-clear {
  border-left: 4px solid var(--cds-support-success);
}
.audit-card.gate-warn {
  border-left: 4px solid var(--cds-support-warning);
}
.audit-card.gate-blocked {
  border-left: 4px solid var(--cds-support-error);
}

@media (prefers-reduced-motion: reduce) {
  
}
