/* Side profiles and dimensioned top views share the existing dossier. */
.tts-blueprint-sheet { grid-template-rows: auto clamp(125px, 22cqh, 150px) minmax(0, 1fr) auto; gap: 10px 24px; }
.tts-schematic-heading h3 { display: none; }
.tts-profile-strip { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: minmax(235px, 28%) minmax(0, 1fr); gap: 24px; min-height: 0; }
.tts-vessel-data { padding: 10px 12px; border: 1px solid #93bad0; background: #092e50; min-width: 0; }
.tts-vessel-data h3 { margin: 0 0 8px; font-size: clamp(14px, 1.25vw, 18px); line-height: 1; }
.tts-vessel-data dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.tts-vessel-data dl > div { border-top: 1px solid #8bacbf55; padding-top: 4px; min-width: 0; }
.tts-vessel-data dt { color: #b8d3e6; font: 10px/1.25 system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.tts-vessel-data dd { margin: 2px 0 0; font: 12px/1.25 system-ui, sans-serif; color: #eef7ff; white-space: nowrap; }
.tts-side-view { margin: 0; min-height: 0; justify-self: center; width: min(100%, calc((clamp(125px, 22cqh, 150px) - 38px) * 4.2)); display: grid; grid-template-rows: 17px minmax(0, 1fr) 21px; }
.tts-side-view figcaption, .tts-schematic-drawing figcaption { color: #e0f1fc; font: 11px/1.2 system-ui, sans-serif; text-align: center; letter-spacing: .13em; text-transform: uppercase; }
.tts-side-art { min-height: 0; }
.tts-side-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tts-dimension-line { position: relative; margin: 4px 5% 0; height: 17px; display: flex; justify-content: center; align-items: center; color: #d7eefc; font: 12px/1 system-ui, sans-serif; }
.tts-dimension-line::before { content: ''; position: absolute; inset: 3px 0; border-left: 1px solid #afcfe3; border-right: 1px solid #afcfe3; background: linear-gradient(#afcfe3, #afcfe3) center / 100% 1px no-repeat; }
.tts-dimension-line span { position: relative; padding: 2px 10px; background: #07365e; }
.tts-schematic-drawing { margin: 0; grid-row: 3; display: grid; place-items: stretch; grid-template-rows: 17px minmax(0, 1fr) 23px; width: 100%; min-height: 0; }
.tts-top-art { position: relative; min-height: 0; width: 100%; height: 100%; padding-right: 30px; box-sizing: border-box; }
#tts-blueprint { width: 100%; height: 100%; object-fit: contain; }
.tts-beam-line { position: absolute; top: 13%; bottom: 13%; right: 4px; width: 21px; display: grid; place-items: center; font: 11px/1 system-ui, sans-serif; }
.tts-beam-line::before { content: ''; position: absolute; inset: 0 5px; border-top: 1px solid #afcfe3; border-bottom: 1px solid #afcfe3; background: linear-gradient(#afcfe3, #afcfe3) center / 1px 100% no-repeat; }
.tts-beam-line span { position: relative; writing-mode: vertical-rl; background: #07365e; padding: 8px 2px; white-space: nowrap; }
.tts-schematic-drawing > .tts-dimension-line { width: calc(var(--drawing-width, 100%) * .9); max-width: 90%; margin: 4px auto 0; transform: translateX(-15px); }
.tts-beam-line { right: calc((100% - var(--drawing-width, 100%)) / 2); top: calc(50% - var(--drawing-height, 100%) * .38); bottom: auto; height: calc(var(--drawing-height, 100%) * .76); }
.tts-schematic-notes { grid-row: 4; padding-top: 6px; }
.tts-schematic-notes h3 { margin-bottom: 4px; }
.tts-schematic-notes p { margin-bottom: 3px; }
.tts-schematic-notes small { font-size: 10px; }
.tts-scale-panel { grid-row: 3 / 5; height: min(100%, 210px); min-height: 140px; }
@media (min-width: 651px) and (max-height: 800px) {
  .tts-blueprint-sheet { padding: 10px 16px; gap: 7px 18px; grid-template-rows: auto minmax(0, 1fr) auto; }
  .tts-schematic-heading { padding-bottom: 5px; }
  .tts-schematic-heading h3 { display: none; }
  .tts-schematic-heading > span { font-size: 10px; }
  .tts-schematic-heading > span br { display: none; }
  .tts-profile-strip { display: contents; }
  .tts-vessel-data { grid-column: 2; grid-row: 2; align-self: start; }
  .tts-side-view { grid-column: 1; grid-row: 2; align-self: start; height: 100px; width: 100%; grid-template-rows: 15px minmax(0, 1fr) 21px; }
  .tts-side-view .tts-side-art { justify-self: center; width: 310px; }
  .tts-side-view .tts-side-art img { object-fit: cover; }
  .tts-side-view .tts-dimension-line { width: 282px; margin: 0 auto; }
  .tts-schematic-drawing { grid-row: 2; align-self: end; height: calc(100% - 107px); }
  .tts-schematic-notes { grid-row: 3; }
  .tts-scale-panel { grid-row: 2 / 4; height: 155px; min-height: 0; padding: 7px; grid-template-columns: 42% minmax(0, 1fr); }
  .tts-schematic-notes h3 { display: none; }
  .tts-schematic-notes p { font-size: 12px; }
}
/* Keep the vessel data and scale panel separate in very short desktop windows. */
@media (min-width: 651px) and (max-height: 650px) {
  .tts-blueprint-area { overflow-y: auto; overscroll-behavior: contain; place-items: start center; }
  .tts-blueprint-sheet { height: max(100cqh, 450px); }
}
@media (max-width: 650px) {
  .tts-blueprint-area { overflow-y: auto; overscroll-behavior: contain; place-items: start center; }
  .tts-blueprint-sheet { height: auto; min-height: 100cqh; padding: 12px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 190px auto 160px; gap: 12px; }
  .tts-profile-strip { grid-column: 1; grid-row: 2; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 140px; gap: 14px; }
  .tts-vessel-data dl { gap: 7px 14px; }
  .tts-vessel-data dt { font-size: 11px; }
  .tts-vessel-data dd { font-size: 13px; }
  .tts-side-view { width: min(100%, 306px); }
  .tts-schematic-drawing { grid-column: 1; grid-row: 3; }
  .tts-schematic-notes { grid-column: 1; grid-row: 4; }
  .tts-scale-panel { grid-column: 1; grid-row: 5; height: 160px; grid-template-columns: 115px minmax(0, 1fr); }
}
