/* FlowTools 3.6.0: the ship pages and the ship index, to Prism's layout (docs/plans/cwc-ship-pages.md section 3).
   Photos show whole: they keep their own ratio and are never cropped to fill a box. */
.flowtools-ship {
    --fs-accent: #1a5276;
    --fs-head: #1a2a3a;
    --fs-muted: #5f6b6d;
    --fs-rule: #e0e4e8;
    --fs-soft: #f4f7fa;
    --fs-r: 10px;
}

.flowtools-ship h2 { font-size: 20px; color: var(--fs-head); margin: 30px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--fs-rule); }
.flowtools-ship a:focus-visible,
.flowtools-ship button:focus-visible,
.flowtools-ship input:focus-visible,
.flowtools-ship summary:focus-visible { outline: 3px solid #f0a500; outline-offset: 2px; }

.fs-lede { font-size: 17px; margin: 0 0 16px; }

.fs-hero { margin: 0 0 16px; text-align: center; }
.fs-hero img { display: block; max-width: 100%; max-height: 520px; width: auto; height: auto; margin: 0 auto; border-radius: var(--fs-r); }
.fs-hero figcaption { margin-top: 6px; font-size: 13px; color: var(--fs-muted); }

.fs-glance { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 6px; padding: 0; }
.fs-glance div { background: var(--fs-soft); border-radius: var(--fs-r); padding: 10px 12px; }
.fs-glance dt { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--fs-muted); }
.fs-glance dd { margin: 0; font-size: 18px; font-weight: 500; color: var(--fs-head); }

.fs-gallery ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 16px 0 0; padding: 0; }
.fs-gallery li a { display: block; }
.fs-gallery li img { display: block; width: auto; max-width: 100%; height: auto; max-height: 150px; border-radius: 8px; }

.fs-lightbox { max-width: min(96vw, 1100px); max-height: 96vh; padding: 12px; border: 0; border-radius: var(--fs-r); }
.fs-lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.fs-lightbox figure { margin: 0; text-align: center; }
.fs-lightbox img { display: block; max-width: 100%; max-height: 74vh; width: auto; height: auto; margin: 0 auto; }
.fs-lightbox figcaption { margin-top: 8px; font-size: 14px; color: var(--fs-muted); }
.fs-lightbox button { min-height: 44px; padding: 0 14px; border: 1px solid var(--fs-rule); border-radius: 8px; background: #fff; font: inherit; cursor: pointer; }
.fs-lb-close { display: block; margin: 0 0 8px auto; }
.fs-lb-nav { display: flex; justify-content: space-between; margin-top: 10px; }

.fs-next { border-left: 5px solid var(--fs-accent); background: var(--fs-soft); border-radius: var(--fs-r); padding: 12px 14px; margin: 16px 0; }
.fs-next strong { display: block; font-size: 18px; color: var(--fs-head); }
.fs-next small { color: var(--fs-muted); }

.fs-ports { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0; }
.fs-label { font-weight: 500; color: var(--fs-head); }
.fs-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.fs-chips li { display: inline-block; border: 1px solid var(--fs-rule); border-radius: 99px; background: #fff; padding: 6px 13px; font-size: 15px; }
.fs-chips li a { color: var(--fs-accent); text-decoration: none; }
.fs-chips em { margin-left: 4px; font-style: normal; font-size: 13px; color: var(--fs-muted); }

.fs-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 14px; }
.fs-tile { display: block; border: 1px solid var(--fs-rule); border-radius: 8px; padding: 8px 10px; font-size: 14px; color: inherit; text-decoration: none; }
.fs-tile b { display: block; font-size: 20px; color: var(--fs-head); }
.fs-tile i { display: block; height: 5px; margin-top: 4px; border-radius: 3px; background: var(--fs-accent); }

.fs-month { border: 1px solid var(--fs-rule); border-radius: var(--fs-r); margin: 0 0 8px; overflow: hidden; }
.fs-month summary { display: flex; justify-content: space-between; min-height: 48px; padding: 12px 14px; font-weight: 500; color: var(--fs-head); background: var(--fs-soft); cursor: pointer; }
.fs-month table { width: 100%; border-collapse: collapse; font-size: 15px; }
.fs-month td { padding: 10px 14px; border-top: 1px solid var(--fs-rule); vertical-align: top; }
.fs-month td:first-child { width: 92px; white-space: nowrap; color: var(--fs-muted); }
.fs-month small { display: block; color: var(--fs-muted); }
.fs-month tr:target td { background: #fff8e1; }
.fs-tag { margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: #fff3d6; color: #6b4a00; font-size: 12px; }

.fs-two { display: grid; gap: 0 24px; }
.fs-plain { margin: 0; padding-left: 20px; }
.fs-plain li { margin: 4px 0; }
.fs-good { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.fs-good li { padding: 12px 14px; border: 1px solid var(--fs-rule); border-radius: var(--fs-r); }
.fs-good b { display: block; color: var(--fs-head); font-weight: 500; }
.fs-good span { color: var(--fs-muted); font-size: 14px; }

.fs-book { margin: 26px 0 0; padding: 16px; border-radius: var(--fs-r); background: var(--fs-soft); }
.flowtools-ship .fs-book h2 { margin: 6px 0 12px; padding: 0; border: 0; }

.fs-cite { margin-top: 26px; padding-top: 12px; border-top: 1px solid var(--fs-rule); font-size: 13px; color: var(--fs-muted); }
.fs-cite p { margin: 0 0 6px; }

.fs-tools { display: grid; gap: 10px; margin: 10px 0 14px; }
.fs-tools[hidden] { display: none; }
.fs-tools input { width: 100%; min-height: 48px; padding: 0 14px; border: 2px solid var(--fs-rule); border-radius: var(--fs-r); font: inherit; }
.fs-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.fs-seg button { min-height: 44px; padding: 0 14px; border: 1px solid var(--fs-rule); border-radius: 99px; background: #fff; font: inherit; cursor: pointer; }
.fs-seg button[aria-pressed="true"] { background: var(--fs-accent); border-color: var(--fs-accent); color: #fff; }
.fs-jump { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 6px; padding-bottom: 6px; }
.fs-jump[hidden] { display: none; }
.fs-jump a { flex: none; padding: 8px 10px; border-radius: 6px; background: var(--fs-soft); font-size: 14px; text-decoration: none; }
.fs-grp { margin: 0 0 12px; border: 1px solid var(--fs-rule); border-radius: var(--fs-r); overflow: hidden; }
.flowtools-ship .fs-grp h2 { display: flex; justify-content: space-between; margin: 0; padding: 10px 14px; border: 0; background: var(--fs-soft); font-size: 16px; }
.fs-grp h2 span { font-weight: 400; font-size: 14px; color: var(--fs-muted); }
.fs-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; min-height: 56px; padding: 12px 14px; border-top: 1px solid var(--fs-rule); color: inherit; text-decoration: none; }
.fs-row:hover { background: var(--fs-soft); }
.fs-row[hidden] { display: none; }
.fs-row b { color: var(--fs-accent); font-weight: 500; }
.fs-row small { display: block; color: var(--fs-muted); }
.fs-row .c { text-align: right; font-size: 14px; color: var(--fs-muted); }

@media (min-width: 700px) {
    .fs-glance { grid-template-columns: repeat(4, 1fr); }
    .fs-tiles { grid-template-columns: repeat(6, 1fr); }
    .fs-two { grid-template-columns: 1fr 1fr; }
    .fs-row { grid-template-columns: 2fr 2.4fr 1fr; }
}
