/* QuantaCloud documentation — refinements over the Furo theme.
   Furo supplies the layout, the light/dark toggle and the colour tokens
   (set in conf.py); this file only adjusts typography and the few block
   types the guides lean on most. */

@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700&family=IBM+Plex+Mono:wght@400;500&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&display=swap");

/* Comfortable measure for long-form instructions. */
article[role="main"] > section > p,
article[role="main"] > section > section > p {
  max-width: 72ch;
}

/* Part label above each page title (the .. rubric:: line). */
article[role="main"] p.rubric {
  font-family: var(--font-stack--monospace);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand-primary);
  border-bottom: 0;
  margin: 0 0 0.4rem;
  padding: 0;
}

/* Headings carry the display face and sit tighter to their content. */
article[role="main"] h1,
article[role="main"] h2,
article[role="main"] h3,
article[role="main"] h4 {
  font-family: var(--font-stack--headings);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
article[role="main"] h2 {
  margin-top: 2.2rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--color-background-border);
}

/* Numbered steps: each step reads as a discrete action. */
article[role="main"] ol > li {
  margin-bottom: 0.9rem;
}
article[role="main"] ol > li > p:first-child {
  margin-bottom: 0.35rem;
}
/* The bold lead-in of a step. */
article[role="main"] ol > li > p:first-child > strong:only-child {
  font-family: var(--font-stack--headings);
  font-size: 1.02em;
}

/* Field references rendered as definition lists. */
article[role="main"] dl.simple > dt,
article[role="main"] dl.docutils > dt {
  font-family: var(--font-stack--headings);
  font-weight: 600;
  color: var(--color-content-foreground);
  border-left: 3px solid var(--color-background-border);
  padding: 0.1rem 0 0.1rem 0.65rem;
  margin-top: 0.75rem;
}
article[role="main"] dl.simple > dd,
article[role="main"] dl.docutils > dd {
  margin-left: 0.65rem;
}

/* Reference tables: scroll rather than crush, and keep headers legible. */
article[role="main"] table.docutils {
  width: 100%;
  display: table;
}
article[role="main"] .table-wrapper {
  overflow-x: auto;
}
article[role="main"] table.docutils th {
  font-family: var(--font-stack--headings);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
article[role="main"] table.docutils td,
article[role="main"] table.docutils th {
  vertical-align: top;
}

/* Inline UI labels and paths. */
article[role="main"] code.literal {
  font-family: var(--font-stack--monospace);
  font-size: 0.84em;
  padding: 0.1em 0.35em;
}

/* Admonitions: keep the severity readable when printed. */
@media print {
  .admonition {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  .sidebar-drawer,
  .toc-drawer {
    display: none !important;
  }
}

/* Fullscreen image lightbox (see lightbox.js) */
article img {
  cursor: zoom-in;
}

.qc-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
  padding: 2rem;
  box-sizing: border-box;
}

.qc-lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  cursor: zoom-out;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
}

.qc-lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}

.qc-lightbox-close:hover {
  opacity: 1;
}
