/* Qrypt MCP Server — page styles, loaded after Kai's qrypt-ui.css v1.0.
   Copyright (c) 2026 Qrypt, Inc. SPDX-License-Identifier: Apache-2.0
   Every rule here is scoped to .q-app or to a mcp- class. qrypt-ui.css stays
   unmodified. */

.q-app {
  margin: 0;
}

/* Skip link: hidden until focused. */
.mcp-skip {
  position: absolute;
  left: var(--q-s2);
  top: -100px;
  z-index: 10;
  padding: 12px 16px;
  border-radius: var(--q-r-btn);
  background: var(--q-accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.q-app a.mcp-skip:focus,
.q-app a.mcp-skip:hover {
  top: var(--q-s2);
  color: #fff;
}

/* The kit's focus ring is glow cyan, which has too little contrast on white
   (about 1.75:1). Use Qrypt blue on light sections; keep glow on dark. */
.q-app .q-section:not(.q-dark) :focus-visible,
.q-app .q-section:not(.q-dark):focus-visible {
  outline-color: var(--q-accent);
}

/* The kit's ".q-dark a" (glow) outranks ".q-btn-primary", which would put glow
   text on the blue button. Keep button text white on dark sections. */
.q-dark a.q-btn-primary,
.q-dark a.q-btn-primary:hover {
  color: #fff;
}
.q-dark a.q-btn-secondary,
.q-dark a.q-btn-secondary:hover {
  color: #fff;
}
/* ".q-app a:hover" (Qrypt blue) also outranks ".q-dark a", which would put
   dark blue (2.41:1) on the near-black footer. Keep glow on dark. */
.q-app .q-dark a:not(.q-btn):hover {
  color: var(--q-glow);
}

/* Grid and flex children must be allowed to shrink below their content, or a
   code block widens the whole page on a phone. */
.q-app .q-grid > *,
.mcp-steps > li,
.q-app .q-card > * {
  min-width: 0;
}
.q-app .q-code {
  max-width: 100%;
}

/* Top bar */
.mcp-topbar {
  border-bottom: 1px solid var(--q-line-dark);
}
.mcp-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--q-s3);
  min-height: 72px;
  flex-wrap: wrap;
}
.mcp-logo {
  display: inline-flex;
  padding-block: var(--q-s1);
}
.mcp-logo img {
  width: 110px;
  height: auto;
  display: block;
}
.mcp-nav {
  display: flex;
  gap: var(--q-s3);
  flex-wrap: wrap;
  font-size: var(--q-small);
}
.mcp-nav a {
  color: var(--q-on-dark);
  text-decoration: none;
  padding-block: 12px;
}
.mcp-nav a:hover {
  color: var(--q-glow);
  text-decoration: underline;
}

/* Hero */
.mcp-measure {
  max-width: var(--q-content);
}
.mcp-actions {
  display: flex;
  gap: var(--q-s2);
  flex-wrap: wrap;
}
.mcp-hero-note {
  max-width: var(--q-content);
}

/* Workspace */
.mcp-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--q-s2);
  flex-wrap: wrap;
}
.mcp-tight {
  gap: var(--q-s1);
}
.mcp-frame-card {
  border: 1px solid var(--q-line);
  border-radius: var(--q-r-lg);
  overflow: hidden;
  background: #0b0d12; /* the monitor's own background */
  box-shadow: var(--q-shadow-card); /* the one raised element in this view */
}
.mcp-frame {
  display: block;
  width: 100%;
  height: 1700px;
  border: 0;
}
/* ".q-app h3" (28px) outranks a bare class; keep card titles at the guide's h4 size. */
.q-app .mcp-h4 {
  font-size: var(--q-h4);
}
.mcp-sim-controls {
  display: flex;
  align-items: center;
  gap: var(--q-s2);
  flex-wrap: wrap;
}
.mcp-list {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: var(--q-s1);
}

/* Live section */
.mcp-narrow {
  max-width: 960px;
}
.mcp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--q-s3);
}
.q-app code {
  font-family: var(--q-mono);
  font-size: 0.9em;
}
.q-app :not(pre) > code {
  background: var(--q-surface-alt);
  border: 1px solid var(--q-line);
  border-radius: 6px;
  padding: 1px 6px;
  overflow-wrap: anywhere;
}
.q-app .q-code code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
}

/* Footer */
.mcp-footer {
  padding-block: var(--q-s4);
}
.mcp-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: var(--q-s2);
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  .q-app {
    scroll-behavior: auto;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Copyable prompt and config blocks in the live section. */
.mcp-callout {
  border-left: 4px solid var(--q-accent);
}
