/* JETCARP documentation: figures, captions and wide tables. */
figure {
  margin: 1.5em 0;
  text-align: center;
}
figure img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
figcaption {
  font-size: 0.9em;
  line-height: 1.45;
  margin-top: 0.5em;
  text-align: left;
  color: var(--fg);
  opacity: 0.85;
}
figure.pair {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
}
figure.pair > div {
  flex: 1 1 280px;
  max-width: 480px;
}
.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em;
  justify-content: flex-start;
  margin: 1em 0;
}
.thumbs figure {
  margin: 0;
  width: 140px;
}
.thumbs figcaption {
  text-align: center;
  font-size: 0.8em;
}
code.wrap {
  word-break: break-all;
}
.generated-note {
  font-size: 0.9em;
}
.checked {
  border: 1px solid var(--quote-border);
  border-left: 4px solid var(--links);
  background: var(--quote-bg);
  border-radius: 4px;
  padding: 0.4em 1.2em;
  margin: 1.5em 0;
}
figure picture img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
/* Findings: the gallery of candidate spaceships, one card per object (two columns on a wide page,
   one on a phone). */
.ship-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1em;
  margin: 1em 0 2em;
}
.ship-card {
  min-width: 0;
  border: 1px solid var(--quote-border);
  border-radius: 6px;
  background: var(--quote-bg);
  padding: 0.6em 0.75em 0.4em;
  font-size: 0.85em;
  line-height: 1.4;
  scroll-margin-top: calc(var(--menu-bar-height, 50px) + 0.5em);
}
.ship-card:target {
  outline: 2px solid var(--links);
}
.ship-card picture {
  display: block;
  text-align: center;
}
.ship-card img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  vertical-align: middle;
}
.ship-card .ship-name {
  margin: 0.4em 0 0.3em;
  font-size: 1.1em;
}
.ship-card .ship-n {
  float: right;
  font-size: 0.85em;
  opacity: 0.8;
}
.ship-card dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.15em 0.6em;
  margin: 0;
}
.ship-card dt {
  opacity: 0.7;
}
.ship-card dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.ship-card .ship-clip {
  margin: 0.4em 0 0;
  font-size: 0.9em;
  opacity: 0.7;
}
