/* crew/css/v3-port.css — Port tab (crew app v3 stream S4): segments, port
   guide, emergency rows, arrival steps, "good to know", clearance checklist.
   Tokens only (crew/css/app.css): light + dark follow automatically. */

.port-seg { margin-top: 2px; }

/* port guide */
.port-head { display: flex; flex-direction: column; gap: 4px; }
.port-title { font-size: 1.25rem; font-weight: 700; letter-spacing: .01em; line-height: 1.2; overflow-wrap: anywhere; }
.port-fallback { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); }
.port-office .port-office-btns { flex-wrap: wrap; margin-top: 12px; }
.port-office .port-office-btns > .btn { flex: 1 1 96px; min-height: 44px; }
.port-office .link { color: var(--gold-text); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }

.port-em .item { min-height: 60px; }
.port-em-num { font-weight: 700; font-size: 1.15rem; color: var(--danger); font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 8px; }
.port-em-num.duty { color: var(--text); }

.port-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.port-steps li { counter-increment: step; display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; font-size: .95rem; line-height: 1.45; overflow-wrap: anywhere; }
.port-steps li::before { content: counter(step); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-text); font-weight: 700; font-size: .8rem; }

.port-sec + .port-sec { border-top: 1px solid var(--line); }
.port-sec summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 12px 14px; font-weight: 600; cursor: pointer; }
.port-sec summary::-webkit-details-marker { display: none; }
.port-sec summary svg.ico { flex: none; color: var(--text-3); transition: transform var(--dur-fast) var(--ease); }
.port-sec[open] summary svg.ico { transform: rotate(180deg); }
.port-sec-b { padding: 0 14px 14px; color: var(--text-2); font-size: .92rem; line-height: 1.5; overflow-wrap: anywhere; }

.port-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.port-cta .btn { flex: 1 1 200px; min-height: 44px; }

/* clearance */
.clr-head .clr-port { font-size: 1.25rem; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.clr-head .clr-todo { margin-top: 10px; }
.clr-head .callout { margin-top: 12px; }
.clr-head .clr-guide { margin-top: 8px; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 600; color: var(--gold-text); }
.clr-list .clr-row.fail .box { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }
.clr-list .clr-row.warn .box { border-color: var(--warn); background: var(--warn-soft); color: var(--warn); }
.clr-list .clr-row.sub { padding-left: 34px; min-height: 48px; background: var(--surface-2); }
.clr-list .clr-row.sub .box { width: 22px; height: 22px; }
.clr-list .clr-row .go { min-height: 44px; }
.clr-actions { flex-wrap: wrap; }
.clr-actions > .btn { flex: 1 1 150px; min-height: 48px; }

.field-err { color: var(--danger); }

@media (prefers-reduced-motion: reduce) {
  .port-sec summary svg.ico { transition: none; }
}

/* Track C: the Berth card of a call and the pass-check chips */
.port-berth { margin-bottom: 12px; }
.berth-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.berth-chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 10px; font-size: 12px; line-height: 1.5; background: rgba(100, 116, 139, .16); color: var(--text-2, #475569); }
.berth-chip.ok { background: rgba(34, 197, 94, .16); color: #15803d; }
.berth-chip.warn { background: rgba(245, 158, 11, .18); color: #b45309; }
.berth-chip.open { background: rgba(59, 130, 246, .16); color: #1d4ed8; }
.berth-chip.bad { background: rgba(239, 68, 68, .16); color: #b91c1c; }
.berth-chip.faint { opacity: .75; }
.port-berth .cap.faint { opacity: .7; }
