/* Illustrated screen reference: numbered markers over a screenshot, then a numbered key.
   Same pattern as Bent Spool's panel.css, recoloured for Field's dark landscape screen. */
.bs-panel {
  position: relative;
  max-width: 920px;
  margin: 1.2em auto;
  aspect-ratio: var(--ar);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 10px;
  overflow: hidden;
  container-type: inline-size;
  background: #111;
}
.bs-panel p { margin: 0; }
.bs-panel img { display: block; width: 100%; height: auto; max-width: none; }
.bs-panel--crop img { margin-top: var(--shift); }
.bs-m, .bs-entry::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 50%;
  background: #f4a300;
  color: #111 !important;
  border: 2px solid #111;
  box-shadow: 0 0 0 1.5px #f4a300;
  font: 700 0.66rem/1 var(--md-text-font-family, sans-serif);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.bs-m {
  position: absolute;
  /* --mk is set per picture by scripts/callouts.py, which places the markers
     for this size; clamp keeps them legible on phones and small on desktop. */
  width: clamp(12px, var(--mk, 1.85cqw), 17px);
  border-width: 1px;
  font-size: clamp(7px, var(--mf, 1.04cqw), 9.5px);
  padding: 0;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.bs-l, .bs-d { position: absolute; pointer-events: none; }
.bs-l {
  height: 1.5px;
  margin-top: -0.75px;
  background: #f4a300;
  transform-origin: 0 50%;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.55);
}
.bs-d {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f4a300;
  box-shadow: 0 0 0 1px #111;
  transform: translate(-50%, -50%);
}
.bs-m:hover, .bs-m:focus-visible {
  background: #fff;
  color: #111 !important;
  outline: none;
}
.bs-key { max-width: 720px; margin: 1em 0 2em; }
.bs-entry {
  display: flex;
  gap: 0.8em;
  align-items: flex-start;
  padding: 0.55em 0;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
  scroll-margin-top: 4.5rem;
}
.bs-entry p { margin: 0; }
.bs-entry::before { content: attr(data-n); flex: 0 0 1.9rem; width: 1.9rem; height: 1.9rem; margin-top: 0.1rem; }
.bs-entry:target { background: var(--md-accent-fg-color--transparent); }
@media print {
  .bs-panel { break-inside: avoid; border-color: #000; }
  .bs-m, .bs-entry::before {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    background: #fff;
    color: #000 !important;
    border: 2px solid #000;
    box-shadow: none;
  }
  .bs-entry { break-inside: avoid; }
}
