/* ============================================================
   product-pages · _docs-shell.css
   ------------------------------------------------------------
   Shared Docusaurus chrome (navbar, doc-sidebar, content area,
   footer) for every mockup in preview/product-pages/.

   The mockups are static HTML, not a live Docusaurus build, but
   the chassis matches what @conduction/docusaurus-preset
   produces on every product site (openregister.conduction.nl
   being the canonical example). When the live preset moves, this
   file moves with it; the kit is the spec, the preset is the
   runtime.
   ============================================================ */

@import url("../../tokens.css");
@import url("../../typography.css");

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--conduction-typography-font-family-body);
  color: var(--c-cobalt-900);
  background: white;
  -webkit-font-smoothing: antialiased;
}

/* ---------- navbar ---------- */
.docs-navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 60px;
  background: white;
  border-bottom: 1px solid var(--c-cobalt-100);
  display: flex;
  align-items: center;
  padding: 0 var(--space-6);
  gap: var(--space-6);
}
.docs-navbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--c-blue-cobalt);
  text-decoration: none;
}
.docs-navbar .brand .hex {
  width: 24px;
  height: 28px;
  clip-path: var(--hex-pointy-top);
  background: var(--c-blue-cobalt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
.docs-navbar .brand .hex svg { width: 14px; height: 14px; }
/* Prefix-light wordmark: the leading syllable of the product name
   ("Open" in OpenRegister, "Docu" in DocuDesk) renders in cobalt-400
   regular so the eye lands on the noun. Mirrors preview/apps.html
   .lockup .word .light. */
.docs-navbar .brand .light {
  color: var(--c-cobalt-400);
  font-weight: 400;
}

/* Icon-only navbar links (the GitHub mark next to the text-label
   "Documentation" and "API Documentation"). Sized so the SVG sits
   on the same baseline as the text links. */
.docs-navbar nav a.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  color: var(--c-cobalt-700);
  transition: color 160ms ease, background 160ms ease;
}
.docs-navbar nav a.icon-link svg {
  width: 18px;
  height: 18px;
}
.docs-navbar nav a.icon-link:hover {
  color: var(--c-blue-cobalt);
  background: var(--c-cobalt-50);
}
.docs-navbar nav {
  display: flex;
  gap: var(--space-5);
  margin-left: var(--space-4);
  flex: 1;
}
.docs-navbar nav a {
  color: var(--c-cobalt-700);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.docs-navbar nav a.active { color: var(--c-blue-cobalt); }
.docs-navbar .right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.docs-navbar .right a {
  color: var(--c-cobalt-700);
  text-decoration: none;
  font-size: 13px;
}
.docs-navbar .lang {
  border: 1px solid var(--c-cobalt-200);
  border-radius: var(--radius-md);
  padding: 4px 10px;
  font-size: 12px;
  color: var(--c-cobalt-700);
}
.docs-navbar .version {
  font-family: var(--conduction-typography-font-family-code);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--c-cobalt-400);
  padding: 3px 8px;
  background: var(--c-cobalt-50);
  border-radius: var(--radius-pill);
}

/* ---------- doc layout (navbar + sidebar + content) ---------- */
.docs-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  max-width: 1440px;
  margin: 0 auto;
}
.docs-sidebar {
  border-right: 1px solid var(--c-cobalt-100);
  padding: var(--space-6) var(--space-5);
  min-height: 80vh;
  font-size: 13px;
}
.docs-sidebar .group {
  font-family: var(--conduction-typography-font-family-code);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-cobalt-400);
  margin: var(--space-4) 0 var(--space-2);
}
.docs-sidebar a {
  display: block;
  color: var(--c-cobalt-700);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 2px;
  line-height: 1.4;
}
.docs-sidebar a:hover { background: var(--c-cobalt-50); }
.docs-sidebar a.active {
  background: var(--c-cobalt-50);
  color: var(--c-blue-cobalt);
  font-weight: 500;
  border-left: 2px solid var(--c-blue-cobalt);
  padding-left: 8px;
}

.docs-content {
  padding: var(--space-8) var(--space-10);
  max-width: 900px;
}
.docs-content .crumb {
  font-family: var(--conduction-typography-font-family-code);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-cobalt-400);
  margin-bottom: var(--space-4);
}
.docs-content h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
}
.docs-content h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: var(--space-8) 0 var(--space-3);
  padding-top: var(--space-2);
}
.docs-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: var(--space-6) 0 var(--space-2);
}
.docs-content p { font-size: 15px; line-height: 1.65; color: var(--c-cobalt-800); margin: 0 0 var(--space-3); }
.docs-content a { color: var(--c-blue-cobalt); }
.docs-content code {
  font-family: var(--conduction-typography-font-family-code);
  font-size: 13px;
  background: var(--c-cobalt-50);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--c-cobalt-800);
}
.docs-content pre {
  background: var(--c-cobalt-900);
  color: var(--c-cobalt-100);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  font-family: var(--conduction-typography-font-family-code);
  font-size: 13px;
  line-height: 1.55;
  overflow-x: auto;
  margin: var(--space-4) 0;
}
.docs-content pre code { background: transparent; padding: 0; color: inherit; font-size: 13px; }
.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-4) 0;
  font-size: 13px;
}
.docs-content th, .docs-content td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--c-cobalt-100);
  vertical-align: top;
}
.docs-content th {
  background: var(--c-cobalt-50);
  font-weight: 600;
  color: var(--c-cobalt-800);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.docs-content .callout {
  background: var(--c-cobalt-50);
  border-left: 3px solid var(--c-blue-cobalt);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-5) 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.docs-content .callout.tip { border-color: var(--c-mint-500); background: var(--c-mint-300); }
.docs-content .callout.warning { border-color: var(--c-orange-knvb); background: #FFF4E5; }
.docs-content .callout .title {
  font-family: var(--conduction-typography-font-family-code);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--c-cobalt-700);
}
.docs-content .callout.tip .title { color: var(--c-mint-500); }
.docs-content .callout.warning .title { color: #b75c00; }
.docs-content .screenshot {
  background: var(--c-cobalt-50);
  border: 1px solid var(--c-cobalt-100);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin: var(--space-5) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-cobalt-400);
  font-family: var(--conduction-typography-font-family-code);
  font-size: 12px;
  min-height: 220px;
  text-align: center;
}
.docs-content ul { margin: 0 0 var(--space-3); padding-left: var(--space-5); }
.docs-content ul li { font-size: 15px; line-height: 1.65; color: var(--c-cobalt-800); margin-bottom: var(--space-2); }

/* The canonical canal-footer is brought in via
   <div data-include="../components/footer.fragment.html"></div> on each
   surface; it ships its own styles, so this shell no longer carries footer
   rules. footer.html is the standalone specimen page; the fragment is
   what production hosts include. */

/* ---------- back-to-system ribbon (kit chrome, not Docusaurus) ---------- */
.kit-ribbon {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: var(--c-blue-cobalt);
  color: white;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--conduction-typography-font-family-code);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: var(--shadow-2);
  z-index: 20;
}
.kit-ribbon:hover { background: var(--c-cobalt-700); }
