.wreck {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(30px, 4.2vw, 64px) clamp(16px, 4vw, 68px);
  border-block: 1px solid #40515b;
  background: radial-gradient(ellipse at 20% 25%, #1a3340, #10202a 69%);
}
.wreck-heading, .wreck-gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.wreck-heading h2 {
  margin-top: .12em;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  font-size: clamp(2.25rem, 4.25vw, 4.6rem);
  line-height: 1.12;
}
.wreck-heading a, .wreck-from-voyage {
  color: #f2d9ae;
  text-underline-offset: 4px;
  font-weight: 640;
}
.wreck-from-voyage { display: inline-block; margin: 14px 0 5px; }
.wreck-heading a { flex-shrink: 0; padding-block: 8px; }
.wreck-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 770px; gap: 8px; margin: 16px 0 20px; }
.wreck-facts > div { border-left: 1px solid #5e7784; padding-left: clamp(8px, 2vw, 20px); }
.wreck-facts dt { color: #bccfd6; font-size: .875rem; margin-bottom: 4px; }
.wreck-facts dd { font: 650 clamp(1.46rem, 2.6vw, 2.65rem)/1 Georgia, "Songti SC", serif; color: #f0ddbc; white-space: nowrap; }
.wreck-facts small { font: 500 .875rem system-ui, sans-serif; color: #d4dbd5; }
.wreck-time {
  background: #142733; border: 1px solid #405965; border-radius: 12px; padding: 9px 11px 11px;
  min-width: 0;
}
.wreck-track { display: grid; grid-template-columns: 1fr auto; column-gap: 6px; align-items: center; }
.wreck-track label, .wreck-track output { color: #eddbbf; font-size: .9rem; font-weight: 650; }
.wreck-track input {
  grid-column: 1 / -1;
  width: 100%; min-height: 33px; margin: 0 0 2px; accent-color: #ecc797; cursor: pointer; touch-action: pan-y;
}
.wreck-years { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; list-style: none; padding: 0; margin: 0; }
.wreck-years button, .wreck-filters button {
  color: #e1e9e9; border: 1px solid #486371; border-radius: 7px; background: #1b3441;
  min-height: 44px;
}
.wreck-years button { width: 100%; display: grid; align-content: center; gap: 3px; text-align: left; padding: 5px 7px; }
.wreck-years span { color: #b7cfd5; font-size: .83rem; font-variant-numeric: tabular-nums; }
.wreck-years strong { font-size: .87rem; white-space: nowrap; }
.wreck-years button[aria-pressed="true"], .wreck-filters button[aria-pressed="true"] {
  color: #2b3840; background: #f0ddba; border-color: #f0ddba;
}
.wreck-years button[aria-pressed="true"] span { color: #524331; }
.wreck-story {
  display: grid; grid-template-columns: minmax(0, 1.46fr) minmax(300px, 1fr); align-items: stretch; gap: 12px;
  margin: 12px 0 20px;
}
.wreck-lead { min-width: 0; margin: 0; display: flex; flex-direction: column; border: 1px solid #486371; border-radius: 13px; overflow: hidden; background: #0a1923; }
.wreck-lead-image { width: 100%; border: 0; padding: 0; height: clamp(260px, 30vw, 440px); background: #061018; position: relative; }
.wreck-lead-image img { width: 100%; height: 100%; object-fit: contain; }
.wreck-lead-image::after {
  content: "⤢"; position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center;
  width: 36px; height: 36px; border: 1px solid #74909e; border-radius: 7px; color: #fff3d9; background: #102630dc;
  font-size: 1.1rem;
}
.wreck-lead figcaption { display: grid; align-content: center; gap: 2px; min-height: 55px; padding: 8px 12px; color: #edf2ec; background: #172d3a; line-height: 1.34; }
.wreck-lead figcaption small, .wreck-copy small { color: #bad0d5; font-size: .8125rem; line-height: 1.42; }
.wreck-lead figcaption .wreck-credit, .wreck-copy .wreck-credit { color: #a5bfc7; font-size: .75rem; overflow-wrap: anywhere; }
.wreck-reading {
  min-width: 0; display: flex; flex-direction: column; justify-content: flex-start;
  border-radius: 13px; background: #f2eee4; color: var(--ink); padding: clamp(14px, 1.7vw, 24px);
}
.wreck-reading h3 { font-size: clamp(1.55rem, 2.55vw, 2.45rem); line-height: 1.18; margin-bottom: 9px; }
.wreck-story-date { color: #75542d; font-weight: 700; margin-bottom: 5px; font-variant-numeric: tabular-nums; }
.wreck-story-copy { line-height: 1.65; }
.wreck-finding { border-left: 3px solid #ad8c5e; padding-left: 9px; margin: 10px 0 0; color: #465760; line-height: 1.52; font-size: .94rem; }
.wreck-reading a { color: #334e5b; text-underline-offset: 3px; font-size: .89rem; }
.wreck-story-jump { display: inline-block; padding: 6px 0 0; }
.wreck-sources { margin-top: auto; padding-top: 11px; }
.wreck-sources summary { color: #303f47; font-size: .9rem; font-weight: 700; cursor: pointer; }
.wreck-sources ul { padding-inline-start: 18px; margin: 6px 0 0; line-height: 1.65; }
.wreck-related { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-top: 12px; }
.wreck-related:empty { display: none; }
.wreck-card {
  text-align: start; padding: 0; min-width: 0; color: #edf3ef; border: 1px solid #486371;
  border-radius: 9px; overflow: hidden; background: #172e3a; display: flex; flex-direction: column;
}
.wreck-card:hover { border-color: #e1bd86; }
.wreck-card img { width: 100%; aspect-ratio: 1.5; object-fit: contain; background: #05111b; }
.wreck-copy { padding: 8px 9px; display: grid; align-content: start; gap: 2px; }
.wreck-copy strong { font-size: clamp(.9rem, 1.35vw, 1.02rem); line-height: 1.3; }
.wreck-related .wreck-card { background: #ded6c7; color: var(--ink); border-color: #bfb39e; }
.wreck-related .wreck-card img { aspect-ratio: 1.7; }
.wreck-related .wreck-copy { padding: 5px 6px; }
.wreck-related .wreck-copy small { color: #4b585b; font-size: .76rem; }
.wreck-layout {
  margin: 0 0 28px; display: grid; grid-template-columns: minmax(260px, .85fr) minmax(0, 1.5fr); align-items: center;
  background: #142b37; border: 1px solid #425d69; border-radius: 12px; gap: 20px; padding: 13px 18px;
}
.wreck-layout h3, .wreck-gallery-heading h3 { font-size: clamp(1.25rem, 2.1vw, 1.75rem); line-height: 1.3; }
.wreck-layout p, .wreck-gallery-heading p { color: #bacfd6; line-height: 1.55; margin-top: 4px; }
.wreck-layout-plan { min-height: 83px; display: grid; grid-template-columns: 1fr 1.35fr 1fr; align-items: center; gap: 9px; text-align: center; }
.wreck-layout-plan > span { color: #ebe7d8; font-size: .89rem; font-weight: 650; }
.wreck-layout-plan i { display: block; width: min(100%,108px); height: 17px; margin: 0 auto 6px; background: #9eb0ad; }
.wreck-map-bow i { clip-path: polygon(0 25%, 62% 14%, 100% 50%, 68% 81%, 0 88%, 7% 67%, 0 55%, 9% 44%); }
.wreck-map-stern i { clip-path: polygon(0 51%, 10% 17%, 54% 13%, 94% 38%, 83% 53%, 100% 67%, 75% 84%, 87% 95%, 28% 91%, 6% 74%); }
.wreck-layout-plan .wreck-map-distance { color: #f2d5a6; position: relative; white-space: nowrap; }
.wreck-map-distance small { display: block; margin-top: 2px; color: #a4bcc6; font-size: .75rem; }
.wreck-map-distance::before { content: ""; display: block; border-top: 1px dashed #7a98a3; margin-bottom: 5px; }
.wreck-gallery-heading { margin-bottom: 12px; }
.wreck-filters { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.wreck-filters button { padding: 5px 9px; font-size: .875rem; font-weight: 650; }
.wreck-gallery { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
@media (max-width: 1080px) {
  .wreck-years { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .wreck-gallery { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 730px) {
  .wreck-story, .wreck-layout { grid-template-columns: minmax(0,1fr); }
  .wreck-layout { gap: 7px; }
  .wreck-gallery-heading { align-items: start; flex-direction: column; gap: 8px; }
  .site-header nav { flex-wrap: wrap; justify-content: flex-end; gap: 3px 10px; }
  .site-header nav a { padding-block: 6px; }
}
@media (max-width: 520px) {
  .wreck-heading { align-items: start; flex-direction: column; gap: 2px; }
  .wreck-years { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wreck-years button { display: flex; align-items: center; gap: 5px; padding-inline: 6px; }
  .wreck-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wreck-facts dt { font-size: .79rem; }
  .wreck-facts dd { font-size: 1.25rem; }
}
