/* Stored source previews stay whole; a failed image leaves no empty thumbnail. */
.boat-directory a.boat-source-row {
  display: block;
  position: relative;
  padding-right: 36px;
}
.boat-source-heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.boat-source-thumb {
  display: block;
  flex: 0 0 72px;
  width: 72px;
  margin-top: 2px;
}
.boat-source-thumb img {
  display: block;
  width: 100%;
  height: 60px;
  object-fit: contain;
  border-radius: 5px;
  background: var(--surface-2);
}
.boat-directory .boat-source-row .tb-row-title {
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.boat-directory .boat-source-row .tb-row-sub {
  overflow: visible;
  overflow-wrap: anywhere;
}
.boat-source-row .tb-row-chevron { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.boat-source-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 12px;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.boat-source-summary .is-unknown,
.boat-equipment-value.is-unknown { color: var(--ink-2); }
.boat-source-credit {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.boat-source-status { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.boat-source-status:empty { display: none; }
.boat-source-profile { overflow-wrap: anywhere; }
.boat-source-figure { margin: 0 0 18px; }
.boat-source-figure > img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  object-position: left center;
  border-radius: 6px;
}
.boat-source-figure figcaption {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 10px;
  font-size: 12px;
  color: var(--ink-2);
}
.boat-source-link {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  max-width: 100%;
  line-height: 1.5;
  color: var(--brand-strong);
  text-underline-offset: 3px;
}
.boat-source-link svg { flex-shrink: 0; }
.boat-source-link:focus-visible,
.boat-source-row:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 3px; }
.boat-source-link:active,
.boat-source-row:active { background-color: var(--surface-2); }
.boat-equipment-list { margin: 12px 0 0; }
.boat-equipment-list > div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
}
.boat-equipment-list dt { color: var(--ink-2); }
.boat-equipment-list dd { min-width: 0; margin: 0; }
.boat-equipment-value { display: block; }
.boat-equipment-scope { display: block; font-size: 12px; color: var(--ink-2); white-space: normal; overflow-wrap: anywhere; }
.boat-equipment-source { display: flex; align-items: center; flex-wrap: wrap; gap: 0 8px; font-size: 12px; color: var(--ink-2); }
.boat-equipment-note { margin: 12px 0 0; font-size: 13px; line-height: 1.8; color: var(--ink-2); }
[data-boat-source-preview][hidden] { display: none; }
@media (min-width: 640px) {
  .boat-source-thumb { flex-basis: 112px; width: 112px; }
  .boat-source-thumb img { height: 84px; }
  .boat-source-heading { gap: 16px; }
  .boat-equipment-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .boat-equipment-list > div { grid-template-columns: 110px minmax(0, 1fr); }
}
