/* Illustrated panel reference: numbered markers over a screenshot, then a numbered key. */
.bs-panel {
  position: relative;
  max-width: 560px;
  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: #efe4cb;
}
.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: #3b2c1d;
  color: #fff6e0 !important;
  border: 2px solid #fff6e0;
  box-shadow: 0 0 0 1px #3b2c1d;
  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;
  width: max(20px, 4.6%);
  border-width: 1.5px;
  font-size: max(0.6rem, 2.1cqw);
  padding: 0;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.bs-m:hover, .bs-m:focus-visible {
  background: var(--md-accent-fg-color);
  color: #1d1408 !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; }
}
