/* Work-instruction components shared by documentation sites. PDF equivalents live in
   pdf/print.css because the PDF hook intentionally removes the web cascade. */

.lb-steps > ol {
  list-style: none;
  margin-left: 0 !important;
  counter-reset: lb-step;
}

.lb-steps > ol > li {
  counter-increment: lb-step;
  position: relative;
  margin: 0 0 0.9rem 0 !important;
  padding: 0.75rem 0.9rem 0.75rem 2.9rem;
  border: 0.05rem solid var(--lb-line);
  border-left: 0.2rem solid var(--lb-yellow);
  border-radius: 0.2rem;
  background-color: var(--lb-paper);
}

.lb-steps > ol > li::before {
  content: counter(lb-step);
  position: absolute;
  left: 0.75rem;
  top: 0.85rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background-color: var(--lb-black);
  color: var(--lb-yellow);
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.5rem;
  text-align: center;
}

/* Sub-lists inside a step keep normal bullets. */
.lb-steps > ol > li ul {
  list-style: disc;
}

/* Screenshots inside steps and figures: framed, phone-sized. */
.lb-steps img,
.lb-shot img {
  border: 0.05rem solid var(--lb-line);
  border-radius: 0.3rem;
  margin-top: 0.5rem;
}

/* Decision graphics: keep inline SVGs responsive. */
.lb-flow svg {
  max-width: 100%;
  height: auto;
}

/* Captioned screenshots. */
.lb-shot {
  margin: 0.8rem 0;
}
.lb-shot figcaption {
  font-size: 0.68rem;
  color: var(--lb-mid-gray);
  font-style: italic;
  margin-top: 0.3rem;
  max-width: 30rem;
}

/* Landscape device captures from the 480x320 production display. The files
   are rendered at 2x for crisp web/PDF presentation. */
img.lb-device {
  display: block;
  width: min(100%, 600px);
  height: auto;
}

.lb-shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.8rem;
  align-items: start;
}

.lb-shot-grid .lb-shot {
  margin: 0;
}

.lb-shot-grid .lb-shot img {
  width: 100%;
  height: auto;
}

.lb-code {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.lb-model-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 42rem;
  max-width: 100%;
  margin: 0.8rem 0 1rem;
}

.lb-model-card {
  display: flex;
  flex: 1 1 10rem;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0.65rem;
  border: 0.05rem solid var(--lb-line);
  border-radius: 0.25rem;
  background-color: #ffffff;
}

.lb-model-card img {
  display: block;
  width: 100%;
  height: 10rem;
  margin: 0;
  object-fit: contain;
}

.lb-model-card figcaption {
  margin-top: 0.55rem;
  padding-top: 0.5rem;
  border-top: 0.05rem solid var(--lb-line);
  color: var(--lb-black);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}


/* --------------------------------------------------------------- reference tables
   Hairline rules with a condensed uppercase header on a yellow rule, matching the
   engineering report and pdf/print.css. */

.lb-content table:not([class]) {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: none;
}

.lb-content table:not([class]) th {
  padding: 0.5rem 0.7rem 0.4rem 0;
  border: none;
  border-bottom: 0.1rem solid var(--lb-yellow);
  background: none;
  color: var(--lb-black);
  font-size: 0.66rem;
  text-align: left;
  vertical-align: bottom;
}

.lb-content table:not([class]) td {
  padding: 0.45rem 0.7rem 0.45rem 0;
  border: none;
  border-bottom: 0.05rem solid var(--lb-line);
  vertical-align: top;
}

.lb-content table:not([class]) tbody tr:hover {
  background-color: transparent;
}

/* ------------------------------------------------------------------ admonitions
   A note is a warm panel with a yellow leading rule; a warning is the report's dark
   panel. Keep these variants in step with the admonition rules in pdf/print.css. */

.lb-content .admonition,
.lb-content details {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border: none;
  border-left: 0.35rem solid var(--lb-yellow);
  border-radius: 0;
  box-shadow: none;
  background-color: var(--lb-warm-gray);
  font-size: 0.9rem;
  line-height: 1.5;
}

.lb-content .admonition > .admonition-title,
.lb-content details > summary {
  margin: 0 0 0.4rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--lb-black);
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.lb-content .admonition > .admonition-title::before,
.lb-content details > summary::before,
.lb-content .admonition > .admonition-title::after,
.lb-content details > summary::after {
  display: none;
}

.lb-content .admonition > .admonition-title + * {
  margin-top: 0;
}

.lb-content .admonition > :last-child,
.lb-content details > :last-child {
  margin-bottom: 0;
}

.lb-content .admonition.warning,
.lb-content .admonition.danger,
.lb-content .admonition.caution {
  border-left: none;
  border-radius: 0.25rem;
  background-color: var(--lb-black);
  color: #ffffff;
}

.lb-content .admonition.warning > .admonition-title,
.lb-content .admonition.danger > .admonition-title,
.lb-content .admonition.caution > .admonition-title {
  color: #ffffff;
}

.lb-content .admonition.warning a,
.lb-content .admonition.danger a,
.lb-content .admonition.caution a {
  color: var(--lb-yellow);
}

.lb-content .admonition.warning a:hover,
.lb-content .admonition.danger a:hover,
.lb-content .admonition.caution a:hover {
  color: var(--lb-black) !important;
  background-color: var(--lb-yellow);
}
