/* Shared article illustrations, tables and image viewer. */

.performance-figure {
  margin: 28px 0;
}

.performance-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.performance-figure figcaption {
  font-size: 13px;
  line-height: 1.6;
  color: #526174;
  margin-top: 12px;
}

kbd {
  font: inherit;
  font-weight: 600;
}

.article-illustration-link {
  display: block;
  margin: 24px 0 12px;
  cursor: zoom-in;
  scroll-margin-top: 100px;
}

.article-illustration-link img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  scroll-margin-top: 100px;
}

.article-body p:has(>em) {
  font-size: 14px;
  line-height: 1.6;
  color: #526174;
}

.tablet-figure,
.article-body a:has(> img) {
  display: block;
  margin: 28px 0;
  cursor: zoom-in;
}

.tablet-figure img,
.article-body a > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.tablet-zoom-hint {
  display: block;
  text-align: right;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 6px;
  color: #526174;
}

.tablet-viewer {
  box-sizing: border-box;
  border: 1px solid #d5dfea;
  border-radius: 16px;
  padding: 12px;
  width: min(96vw,1400px);
  max-width: 96vw;
  max-height: 94vh;
  background: white;
  color: #081b2c;
}

.tablet-viewer::backdrop {
  background: rgb(6 20 34 / .75);
}

.tablet-viewer-controls {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}

.tablet-viewer button {
  font: inherit;
  padding: 10px 16px;
  min-height: 44px;
  border: 1px solid #ccd6e1;
  border-radius: 8px;
  background: #fff;
  color: #081b2c;
  cursor: pointer;
}

.tablet-viewer button:focus-visible {
  outline: 3px solid #d9322a;
}

.tablet-viewer-stage {
  overflow: auto;
  max-height: calc(90vh - 85px);
  overscroll-behavior: contain;
}

.tablet-viewer-stage img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

.tablet-viewer-stage.is-zoomed img {
  width: 1536px;
}

.tablet-viewer-stage:focus-visible {
  outline: 2px solid #d9322a;
}

.article-body {
  min-width: 0;
}

.build-table {
  max-width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid #d5dfea;
  border-radius: 12px;
}

.build-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.build-table th,.build-table td {
  padding: 12px;
  border-bottom: 1px solid #d5dfea;
  text-align: left;
  vertical-align: top;
}

.build-table th {
  background: #edf3f8;
}

.build-table td:last-child {
  white-space: nowrap;
}

.build-table tr:last-child {
  font-weight: 600;
}

@media (max-width: 600px) {
  .tablet-figure { margin: 20px 0; }
}
