/* ============================================================
   .react-usage — drop-in documentation block for the React /
   MDX equivalent of each kit component. Lives at the bottom of
   every preview/components/*.html spec page so the kit doubles
   as the API reference for the @conduction/docusaurus-preset
   components.

   Loaded only on the kit pages, not on the live ConNext site;
   the styling intentionally matches the kit's frame-label
   typography (Plex Mono caps, cobalt-on-cobalt-50).
   ============================================================ */

.react-usage {
  margin: 56px auto 0;
  max-width: 1200px;
  padding: 36px 40px;
  background: var(--c-cobalt-50);
  border-left: 3px solid var(--c-blue-cobalt);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--conduction-typography-font-family-body);
}

.react-usage .ru-eyebrow {
  font-family: var(--conduction-typography-font-family-code);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-cobalt-400);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.react-usage .ru-eyebrow .h {
  width: 10px; height: 12px;
  clip-path: var(--hex-pointy-top);
  background: var(--c-blue-cobalt);
}

.react-usage h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--c-cobalt-900);
  margin: 0 0 8px;
}
.react-usage h2 code {
  font-family: var(--conduction-typography-font-family-code);
  font-size: 18px;
  color: var(--c-blue-cobalt);
  background: white;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-cobalt-100);
}

.react-usage > p {
  font-size: 14px;
  color: var(--c-cobalt-700);
  line-height: 1.6;
  max-width: 64ch;
  margin: 0 0 24px;
}

.react-usage h3 {
  font-family: var(--conduction-typography-font-family-code);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-cobalt-400);
  margin: 24px 0 10px;
  font-weight: 500;
}

.react-usage pre {
  background: var(--c-cobalt-900);
  color: rgba(255, 247, 210, 0.92);
  padding: 18px 22px;
  border-radius: var(--radius-md);
  font-family: var(--conduction-typography-font-family-code);
  font-size: 13px;
  line-height: 1.55;
  overflow-x: auto;
  margin: 0;
}
.react-usage pre code { background: none; color: inherit; padding: 0; border: 0; }

.react-usage ul.ru-props {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
}
@media (max-width: 800px) { .react-usage ul.ru-props { grid-template-columns: 1fr; } }

.react-usage ul.ru-props li {
  font-size: 13px;
  color: var(--c-cobalt-700);
  line-height: 1.5;
}
.react-usage ul.ru-props li code {
  font-family: var(--conduction-typography-font-family-code);
  font-size: 12px;
  color: var(--c-blue-cobalt);
  background: white;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid var(--c-cobalt-100);
  margin-right: 6px;
}
