/* Both navigation bars follow the document. The table only owns horizontal scrolling. */
.mast {position:sticky;top:0;z-index:35}
.viewline {
  position:sticky;top:var(--mast-height,52px);z-index:25;
  scroll-margin-top:var(--mast-height,52px);background:var(--paper)
}
.board.compare-board {position:relative;overflow:clip}
html .compare-board .scroller {overflow:auto;max-height:none;scrollbar-gutter:auto}
.compare-board .scroller .comp-table thead th {top:auto}
.comp-table tr[hidden],.compact-pan[hidden] {display:none}
.comp-table tr.band {cursor:pointer}
.comp-table tr.band:hover th {background:var(--sea-light)}
.dock-holder {position:sticky;top:var(--table-dock-top);height:0;z-index:8}
.compact-pan {
  overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;
  background:var(--surface);box-shadow:0 3px 8px #10292e20;scrollbar-width:none
}
.compact-pan::-webkit-scrollbar {display:none}
.compact-table {background:var(--surface)}
.compact-table th.compact-ship {vertical-align:top;padding:0;background:var(--surface)}
.compact-table th.corner {vertical-align:middle;padding:5px 8px;font-size:12px}
.compact-link {display:block;text-align:start;width:100%;padding:5px 8px 2px;color:var(--ink);line-height:1.15}
.compact-link strong {display:block;font-size:clamp(13px,1.12vw,17px);letter-spacing:-.025em;overflow-wrap:anywhere}
.compact-id {display:flex;align-items:center;flex-wrap:wrap;gap:3px 5px;margin-top:3px;color:var(--muted);font-size:11px}
.compact-id .acq-mark {font-size:inherit;gap:2px}
.compact-id img {height:13px;width:17px;object-fit:contain}
.compact-id .acq-mark img {background:#35433d;border-radius:2px;padding:1px}
.compact-build,.compact-build .icon {width:12px;height:12px}
.compact-ship .ship-symbols {
  --symbol-size:19px;gap:2px 4px;padding:2px 8px 5px;
  background:var(--surface);line-height:1
}
.compact-ship :is(.ship-symbols__weapons,.ship-symbols__gear,.ship-symbols__slot) {display:contents}
.compact-ship .ship-symbols__or {font-size:9px}
html {scroll-padding-block-start:var(--mast-height,52px)}
.metric-sort,.group-toggle {scroll-margin-top:calc(var(--table-dock-top,88px) + 98px)}

#detail {width:min(672px,96vw);max-height:min(92dvh,860px)}
#detail .passport-head {gap:12px;align-items:center;padding:14px 18px;background:var(--surface)}
.passport-head > div {min-width:0;flex:1}
.passport-head h2 {font-size:clamp(21px,3.3vw,31px);overflow-wrap:anywhere;line-height:1.08}
.passport-meta,.passport-nation {display:flex;align-items:center;flex-wrap:wrap;gap:5px}
.passport-meta {gap:4px 9px;margin-top:5px;font-size:12px;color:var(--muted)}
.passport-meta .acq-mark {font-size:12px}
.passport-meta .acq-mark img {background:#3b4b4f;border-radius:3px;padding:1px}
.passport-head .round {flex:none}
.fav-star.favorite-labeled {
  position:static;display:inline-flex;align-items:center;justify-content:center;gap:5px;
  width:auto;height:auto;min-height:36px;padding:6px 10px;border-radius:7px;white-space:nowrap;
  font:600 12px/1.1 var(--ui);color:var(--sea-ink);background:var(--surface);border:1px solid var(--edge)
}
.fav-star.favorite-labeled.marked {color:var(--sea-ink);background:var(--sea-light);border-color:var(--sea)}
.fav-star.favorite-labeled.marked svg {fill:currentColor;stroke:currentColor}
#detail .passport {padding:12px 16px;background:var(--surface-2)}
.passport-layout {display:grid;grid-template-columns:1.15fr 1fr;gap:12px;align-items:stretch}
#detail .passport-image {
  display:block;isolation:isolate;width:100%;height:auto;min-height:140px;
  position:relative;overflow:hidden;border:1px solid var(--edge);border-radius:9px
}
#detail .passport-image img {width:98%;height:88%;left:1%;bottom:10%}
.model-launch {
  position:absolute;right:6px;bottom:5px;display:inline-flex;align-items:center;gap:5px;
  padding:5px 7px;border:1px solid var(--edge);border-radius:5px;background:var(--surface-glass);color:var(--ink);
  font:600 11px/1.1 var(--ui)
}
.model-launch .icon {width:13px;height:13px}
.passport-info {min-width:0;display:flex;flex-flow:column;gap:5px;justify-content:center}
.passport-status {font-size:11px;color:var(--muted)}
.passport-stats {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin:0}
.passport-stats > div {padding:8px;background:var(--surface);border:1px solid var(--rule);border-radius:6px}
.passport-stats dt {display:flex;align-items:center;gap:4px;font-size:11px;color:var(--muted);line-height:1.15}
.passport-stats .stat-symbol {--stat-size:13px}
.passport-stats dd {margin:5px 0 0;font-size:clamp(16px,2vw,21px);font-weight:680;letter-spacing:-.035em;color:var(--ink);line-height:1.05}
.passport-stats small {font-size:11px;color:var(--muted);font-weight:550;letter-spacing:0}
.passport-equipment {padding:10px 0 0}
.passport-equipment .ship-symbols {--symbol-size:25px}
.passport-actions {margin:9px 0 12px}
.passport-actions button {min-height:32px}
#detail .passport-sections {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:5px;
}
#detail .passport-sections > .card-section {
  min-width:0;margin:0;padding:0;background:var(--surface);
  border:1px solid var(--rule);border-radius:7px
}
#detail .passport-sections > .card-section > summary {
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  list-style:none;padding:8px 10px;margin:0;font:600 12px/1.24 var(--ui)
}
.passport-sections > details > summary::-webkit-details-marker {display:none}
.passport-sections > details > summary::after {
  content:'';width:6px;height:6px;flex:none;border-right:1.5px solid var(--muted);
  border-bottom:1.5px solid var(--muted);transform:rotate(45deg);margin:-2px 2px 0 0
}
#detail .passport-sections > .card-section[open] {grid-column:1/-1;padding:0 10px 8px}
#detail .passport-sections > .card-section[open] > summary {padding-inline:0;border-bottom:1px solid var(--rule);margin-bottom:4px}
.passport-sections > details[open] > summary::after {transform:rotate(225deg);margin-top:3px}
.passport-sections .kv {line-height:1.3}
.passport-sections .kv b {min-width:0}
.passport-features {padding-inline-start:1.2rem;margin:6px 0;font-size:13px;color:var(--muted)}
#detail .dlg-foot {padding:9px 16px}
#detail .dlg-foot .action,#detail .dlg-foot .outline {min-height:34px;padding:6px 12px}
@media(max-width:610px) {
  .compact-link {padding:4px 4px 1px}
  .compact-id {font-size:10px;gap:2px 3px}
  .compact-ship .ship-symbols {--symbol-size:16px;padding:3px 3px 4px;gap:2px}
  .compact-table th.corner {font-size:10px;padding:4px}
  #detail .passport-head {gap:5px;padding:10px}
  .passport-head h2 {font-size:21px}
  .passport-meta {font-size:11px;gap:3px 5px}
  .fav-star.favorite-labeled {min-height:34px;font-size:11px;padding:5px 7px}
  #detail .passport {padding:8px 10px}
  .passport-layout {grid-template-columns:1fr;gap:7px}
  #detail .passport-image {min-height:0;height:clamp(94px,29vw,138px)}
  .passport-info {gap:4px}
  .passport-stats {grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}
  .passport-stats > div {padding:6px 4px}
  .passport-stats dt {font-size:10px;min-height:21px}
  .passport-stats .stat-symbol {display:none}
  .passport-stats dd {margin:2px 0 0;font-size:15px}
  .passport-stats small {font-size:10px}
  .passport-equipment {padding-top:7px}
  .passport-actions {margin:7px 0}
  #detail .passport-sections > .card-section > summary {padding:8px;font-size:11.5px}
}
@media(orientation:landscape) and (max-height:550px) {
  .compact-link {padding:2px 4px 0}
  .compact-id {font-size:9px;gap:1px 3px;margin-top:1px}
  .compact-id img {height:10px;width:14px}
  .compact-ship .ship-symbols {--symbol-size:14px;padding:1px 4px 3px;gap:2px}
  #detail .passport-head {padding:6px 12px}
  .passport-head h2 {font-size:20px}
  #detail .passport-image {min-height:96px}
}
#ship-detail-name:focus {outline:0}
#soloSea {min-height:0;padding:7px 12px 12px}
#soloSea .fl-harbor-byline {row-gap:6px}
#soloSea .fl-harbor-notes {max-width:100%}
.fl-harbor-labels .fl-harbor-marker:only-child {display:none}
@media(max-width:610px) {
  #soloSea {padding:5px 6px 8px}
  #detail .passport-stats dt {overflow-wrap:anywhere}
}
