/**
 * <McpToolShelf /> styles. Header + 2-column layout: a responsive
 * grid of tool cards on the left, an <AgentTrace> mock on the right.
 * Collapses to single column under 900px (trace falls below the
 * grid). Status hex on each card matches the FeatureGrid legend
 * (mint = stable, KNVB orange = beta, cobalt-300 = soon).
 */

.shelf {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-12);
  font-family: var(--conduction-typography-font-family-body);
}

.head { max-width: 70ch; margin: 0 0 var(--space-8); }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--conduction-typography-font-family-code);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c-orange-knvb);
  margin-bottom: var(--space-3);
}
.eyebrowHex {
  width: 10px; height: 12px;
  clip-path: var(--hex-pointy-top);
  background: var(--c-orange-knvb);
}
.title {
  font-size: 36px; font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.1; color: var(--c-cobalt-900); margin: 0 0 var(--space-3);
}
.lede { font-size: 17px; line-height: 1.5; color: var(--c-cobalt-700); margin: 0; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--space-8);
  align-items: start;
}
@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; }
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  background: white;
  border: 1px solid var(--c-cobalt-100);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.card:hover {
  border-color: var(--c-cobalt-200);
  box-shadow: var(--shadow-1);
  transform: translateY(-1px);
}

.cardHead {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.cardIcon {
  width: 28px; height: 32px;
  clip-path: var(--hex-pointy-top);
  background: var(--c-blue-cobalt);
  color: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cardIcon svg {
  width: 13px; height: 13px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cardTitleWrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cardName {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--c-cobalt-900);
  margin: 0;
  line-height: 1.3;
}

.cardId {
  font-family: var(--conduction-typography-font-family-code);
  font-size: 11px;
  font-weight: 500;
  color: var(--c-cobalt-700);
  background: var(--c-cobalt-50);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  align-self: flex-start;
  word-break: break-all;
  line-height: 1.4;
}

.statusHex {
  width: 10px; height: 12px;
  clip-path: var(--hex-pointy-top);
  background: var(--c-mint-500);
  flex-shrink: 0;
  margin-top: 4px;
}
.beta { background: var(--c-orange-knvb); }
.soon { background: var(--c-cobalt-300); }

.cardDesc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-cobalt-700);
  margin: 0;
}

.traceCol {
  position: sticky;
  top: var(--space-6);
  display: flex;
  flex-direction: column;
}
@media (max-width: 1024px) {
  .traceCol { position: static; }
}

.legend {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-6);
  font-family: var(--conduction-typography-font-family-code);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-cobalt-400);
}
.legendItem {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.legendItem .statusHex { margin-top: 0; }
