/* Self-hosted fonts (SIL Open Font License) – no requests to Google, GDPR-friendly */
@font-face { font-family: 'Fraunces'; src: url('/static/fonts/Fraunces.woff2') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/static/fonts/Fraunces-Italic.woff2') format('woff2'); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('/static/fonts/IBMPlexSans.woff2') format('woff2'); font-weight: 100 700; font-style: normal; font-display: swap; }

/* CruiseTalentNetwork – design system
   River navy + brass on a warm paper ground. Fraunces for voice, IBM Plex Sans for work. */
:root {
  --navy: #0f2b3c; --navy-2: #16384c; --navy-3: #234b61; --water: #6fb3d2; --water-dim: #2e6c8c;
  --ink: #11232f; --text: #22343f; --muted: #56626b; --line: #ddd5c7; --line-2: #eee8dc;
  --paper: #f3efe7; --card: #ffffff; --sand: #faf7f1;
  --brass: #a4561a; --brass-dark: #8a4714; --brass-light: #e3a15a; --brass-wash: #fff1de;
  --ok: #1f5a3e; --ok-bg: #ddefe5; --warn: #7a4300; --warn-bg: #fbebd6; --err: #8a2c1e; --err-bg: #fbe7e2; --info: #1d4a63; --info-bg: #e1ecf2;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-sm: 8px; --r: 12px; --r-lg: 18px;
  --shadow: 0 10px 30px rgba(15, 43, 60, .08);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 15px/1.55 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--brass); text-underline-offset: 2px; }
a:hover { color: var(--brass-dark); }
:focus-visible { outline: 3px solid var(--brass-light); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.1; }
h2 { font-size: 24px; line-height: 1.2; }
h3 { font-size: 19px; line-height: 1.25; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---- Top bar ---- */
.topbar { background: var(--navy); color: #fff; }
.topbar-in { max-width: 1440px; margin: 0 auto; padding: 0 32px; min-height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex-shrink: 0; }
.brand:hover { color: #fff; }
.brand img { height: 36px; width: auto; display: block; }
.doc-logo { height: 34px; width: auto; }
.doc-logo-sm { height: 18px; width: auto; vertical-align: middle; margin-left: 4px; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; flex: 1; }
@media (max-width: 1400px) { .topbar-in { gap: 14px; } .brand img { height: 28px; } .nav a { padding: 10px 7px; font-size: 13px; } }
.nav a { color: #c9d8e0; text-decoration: none; font-weight: 500; font-size: 14px; padding: 10px 12px; border-radius: var(--r-sm); }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: var(--navy-2); }
.me { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #a9c0cc; }
.me strong { color: #fff; display: block; font-size: 14px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brass-light); color: var(--navy); display: grid; place-items: center; font-weight: 600; font-size: 13px; flex-shrink: 0; }
.bell { position: relative; color: #dce7ed; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--navy-3); }
.bell b { position: absolute; top: -5px; right: -5px; background: var(--brass-light); color: var(--navy); font-size: 11px; border-radius: 999px; padding: 0 6px; }
.linkbtn { background: none; border: 0; color: #c9d8e0; font: inherit; cursor: pointer; padding: 8px; text-decoration: underline; }
.topbar .nav-toggle { display: none; }

/* ---- Page frame ---- */
.page { max-width: 1440px; margin: 0 auto; padding: 32px; }
.page-narrow { max-width: 880px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head p { margin-top: 6px; color: var(--muted); max-width: 70ch; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
/* Grid columns may shrink below their content width, so wide tables scroll inside .table-wrap instead of widening the page */
.split > *, .grid-2 > *, .grid-4 > *, .map-row > * { min-width: 0; }
.reqs dd, .small.muted, td { overflow-wrap: anywhere; }
.sticky { position: sticky; top: 20px; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.panel-tight { padding: 18px; gap: 10px; }
.panel-dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.panel-dark h2, .panel-dark h3 { color: #fff; }
.panel-note { background: var(--info-bg); border-color: #cfe0ea; }
.kv { background: var(--paper); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.kv span { font-size: 12px; color: var(--muted); }
.kv strong { font-size: 15px; color: var(--ink); }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-family: var(--serif); font-size: 32px; font-weight: 400; color: var(--ink); line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font: 600 14px var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--brass); color: #fff; }
.btn-primary:hover { background: var(--brass-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-line { background: #fff; color: var(--ink); border-color: #cfc5b3; }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: #3f6a82; }
.btn-ghost:hover { color: #fff; border-color: #fff; }
.btn-danger { background: #fff; color: var(--err); border-color: #c9705e; }
.btn-danger:hover { background: var(--err-bg); color: var(--err); }
.btn-danger-f { background: #a8392a; color: #fff; }
.btn-danger-f:hover { background: var(--err); color: #fff; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.inline { display: inline; }

/* ---- Forms ---- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.field .hint { font-weight: 400; font-size: 12px; }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea {
  width: 100%; min-height: 44px; border: 1px solid #cfc5b3; border-radius: 10px; padding: 10px 12px; font: 15px var(--sans); color: var(--ink); background: #fff; }
.field textarea { line-height: 1.55; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--brass); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); font-weight: 400; cursor: pointer; line-height: 1.45; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex-shrink: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 1px solid #cfc5b3; border-radius: 999px; background: #fff; color: var(--ink);
  font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current="true"], .chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip:has(input:focus-visible) { outline: 3px solid var(--brass-light); outline-offset: 2px; }
.counter { font-size: 12px; color: var(--muted); text-align: right; }
.counter.over { color: var(--err); font-weight: 600; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }

/* ---- Feedback ---- */
.flash { display: flex; gap: 10px; padding: 12px 16px; border-radius: var(--r); font-size: 14px; margin-bottom: 16px; }
.flash-error { background: var(--err-bg); color: var(--err); border: 1px solid #e7b3a6; }
.flash-success { background: var(--ok-bg); color: var(--ok); border: 1px solid #b9dcc8; }
.notice { padding: 12px 14px; border-radius: var(--r); font-size: 14px; line-height: 1.5; }
.notice-warn { background: var(--warn-bg); color: #5a3510; }
.notice-err { background: var(--err-bg); color: #6b2217; }
.notice-info { background: var(--info-bg); color: var(--info); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tag-ok { background: var(--ok-bg); color: var(--ok); }
.tag-warn { background: var(--warn-bg); color: var(--warn); }
.tag-err { background: var(--err-bg); color: var(--err); }
.tag-info { background: var(--info-bg); color: var(--info); }
.tag-muted { background: var(--line-2); color: #3b4a54; }
.empty { padding: 32px; text-align: center; color: var(--muted); border: 1px dashed #cfc5b3; border-radius: var(--r-lg); background: var(--sand); }
.mask { font-family: ui-monospace, monospace; background: var(--ink); color: #fff; padding: 0 5px; border-radius: 4px; font-size: 12px; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; }
table.table { border-collapse: collapse; width: 100%; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; }
.table a.rowlink { font-weight: 600; color: var(--ink); text-decoration: none; }
.table a.rowlink:hover { color: var(--brass); }

/* ---- Tabs ---- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: var(--ink); border-color: var(--brass); }

/* ---- Planner hero + river map ---- */
.hero { background: var(--navy); color: #fff; }
.hero-in { max-width: 1440px; margin: 0 auto; padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: #8fbfd6; }
.hero .sub { color: #b7cad4; }
.rivers { display: flex; gap: 8px; flex-wrap: wrap; }
.rivers a { color: #c9d8e0; text-decoration: none; border: 1px solid #2e5770; border-radius: 999px; padding: 8px 15px; font-size: 14px; font-weight: 500; }
.rivers a:hover { color: #fff; border-color: #6e97ad; }
.rivers a[aria-current="true"] { background: var(--paper); color: var(--navy); border-color: var(--paper); font-weight: 600; }
.map-row { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: stretch; }
.map { position: relative; width: 100%; aspect-ratio: 1000 / 440; border-radius: var(--r-lg); border: 1px solid var(--navy-3); background: #0c2433; overflow: hidden; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .port { position: absolute; transform: translate(-50%, -50%); width: 32px; height: 32px; display: grid; place-items: center; text-decoration: none; z-index: 2; border-radius: 50%; }
.map .dot { width: 11px; height: 11px; border-radius: 50%; background: #0f2b3c; border: 2px solid #8fbfd6; transition: box-shadow .15s; }
.map .port.hub .dot { width: 14px; height: 14px; }
.map .port.stop .dot { width: 20px; height: 20px; background: var(--brass-light); border-color: #fff1de; display: grid; place-items: center; font: 600 10px var(--sans); color: var(--navy); }
.map .port.own .dot { border-radius: 3px; transform: rotate(45deg); border-color: #7fd1c1; }
.map .port.own.stop .dot { background: #3fa58f; }
.map .port.own .dot span { transform: rotate(-45deg); }
.map .port.sel .dot { box-shadow: 0 0 0 7px rgba(227, 161, 90, .3); background: #fff; border: 4px solid var(--brass-light); }
.map a.port:hover .dot { box-shadow: 0 0 0 6px rgba(143, 191, 214, .25); }
.map .lab { position: absolute; white-space: nowrap; font-size: 12px; color: #cfe0e8; text-shadow: 0 0 4px #0c2433, 0 0 8px #0c2433; pointer-events: none; }
.map .port.hub .lab, .map .port.stop .lab { color: #fff; font-weight: 600; font-size: 13px; }
.map .port.sel .lab { color: #f6c98f; }
.map .lab-r { left: 30px; top: 50%; transform: translateY(-50%); }
.map .lab-l { right: 30px; top: 50%; transform: translateY(-50%); }
.map .lab-t { bottom: 28px; left: 50%; transform: translateX(-50%); }
.map .lab-b { top: 28px; left: 50%; transform: translateX(-50%); }
.map .legend { position: absolute; left: 16px; bottom: 12px; font-size: 11px; color: #6e93a6; letter-spacing: .04em; }
.map.picking { cursor: crosshair; outline: 2px dashed #7fd1c1; }
.map .pin { position: absolute; width: 18px; height: 18px; transform: translate(-50%, -50%) rotate(45deg); background: #3fa58f; border: 2px solid #fff; z-index: 3; }
.map-legend { display: flex; gap: 22px; flex-wrap: wrap; color: #b7cad4; font-size: 13px; }
.map-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; }
.map-panel { background: var(--navy-2); border: 1px solid #28506a; border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.map-panel .kv { background: var(--navy); }
.map-panel .kv span { color: #9db5c2; }
.map-panel .kv strong { color: #fff; }

.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.day { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink); text-decoration: none; min-height: 132px; }
.day:hover { border-color: var(--ink); color: var(--ink); }
.day[aria-current="true"] { border: 2px solid var(--brass); padding: 13px; background: #fff8ef; }
.day .d { font-size: 12px; color: var(--muted); }
.day .p { font-family: var(--serif); font-size: 18px; line-height: 1.2; }
.day .s { margin-top: auto; }

.planner-body { display: flex; flex-direction: column; gap: 18px; }
.catbar { display: flex; gap: 6px; flex-wrap: wrap; }
.catbar .chip { min-height: 34px; padding: 0 12px; font-size: 13px; }
.acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.actcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; color: var(--text); text-decoration: none; }
.actcard:hover { border-color: var(--ink); color: var(--text); }
.actcard .ph { aspect-ratio: 16 / 10; background: var(--navy-2); position: relative; display: flex; align-items: flex-end; padding: 14px; }
.actcard .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.actcard .ph .ini { position: relative; font: italic 48px/1 var(--serif); color: #fff; opacity: .9; }
.actcard .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.actcard .name { font-weight: 600; font-size: 16px; color: var(--ink); }
.actcard .foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.pill { display: inline-block; font-size: 12px; font-weight: 500; padding: 3px 8px; border-radius: 6px; background: var(--line-2); color: #3b4a54; }

/* ---- Portfolio page ---- */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #1f2a33; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vgallery { display: grid; gap: 10px; }
.vtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.vtile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card); color: inherit; font: inherit; cursor: pointer; }
.vtile-play { grid-row: 1 / 3; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--navy); color: #fff; }
.vtile-n { font-size: 12px; opacity: .75; }
.vtile-t { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vtile[aria-current="true"] { border-color: var(--gold, #e3a15a); box-shadow: 0 0 0 2px rgba(227,161,90,.35); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); width: 100%; }
.act-title { font-size: clamp(36px, 4vw, 54px); }
.formats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.format { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.format strong { font-size: 16px; }
.reqs { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; font-size: 14px; }
.reqs dt { color: var(--muted); }
.reqs dd { margin: 0; }
.verified li { display: flex; gap: 10px; align-items: center; padding: 4px 0; }
.verified { list-style: none; padding: 0; margin: 0; }
.okdot { width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 12px; flex-shrink: 0; }
.nodot { width: 22px; height: 22px; border-radius: 50%; background: var(--line); flex-shrink: 0; }
.prose p + p { margin-top: 12px; }
.prose { font-size: 16px; line-height: 1.7; max-width: 72ch; white-space: pre-line; }

/* ---- Onboarding ---- */
.steps { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; }
.steps li.done { border-color: #b9dcc8; }
.steps .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; background: var(--line-2); }
.steps li.done .n { background: var(--ok); color: #fff; }
.todo { margin: 0; padding-left: 18px; color: var(--err); font-size: 13px; }
.doc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); align-items: center; }
.doc-row.good { border-color: #b9dcc8; background: #f4faf6; }
.agree { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); }
.agree:has(input:checked) { border-color: #b9dcc8; background: #f4faf6; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.photo { position: relative; }
.photo img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); width: 100%; }
.photo form { position: absolute; top: 6px; right: 6px; }
.photo button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); cursor: pointer; font-size: 16px; }
.fmtrow { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }

.stoprow { display: grid; grid-template-columns: minmax(150px, 1.2fr) repeat(4, minmax(110px, 1fr)) auto; gap: 10px; align-items: end; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.stoprow.bad { background: var(--err-bg); padding: 12px; border-radius: var(--r); }
.stopname { display: flex; flex-direction: column; gap: 4px; align-self: center; }
@media (max-width: 1100px) { .stoprow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stopname { grid-column: 1 / -1; } }

/* ---- Multi-river routes ---- */
.route-line { margin-top: 6px; color: #e3a15a; font-weight: 500; font-size: 15px; }
.rivers a.onroute { border-color: rgba(227,161,90,.6); color: #f2c27a; }
.checkgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin-top: 6px; }
fieldset.field legend { font-size: 13px; font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 2px; }
fieldset.field legend .hint { display: block; font-weight: 400; }
.routelist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.routelist li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.routelist form { margin: 0; }
.map .port.stop .dot { min-width: 22px; width: auto; padding: 0 5px; border-radius: 11px; }

.maptabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 10px; }
.maptabs a { font-size: 13px; padding: 5px 12px; border-radius: 99px; color: #c9d8e0; border: 1px solid rgba(143,191,214,.35); text-decoration: none; }
.maptabs a[aria-current="true"] { background: #e3a15a; border-color: #e3a15a; color: var(--navy); font-weight: 600; }
@media (max-width: 700px) { .maptabs { flex-wrap: nowrap; overflow-x: auto; } .maptabs a { white-space: nowrap; } }

.searchbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 14px; align-items: end; }
.searchbar .btn { height: 44px; }
@media (max-width: 900px) { .searchbar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .searchbar { grid-template-columns: 1fr; } }

.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin: 12px 0; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-top: 6px; font-size: 13px; text-align: center; }
.cal .wd { font-size: 11px; color: var(--muted); }
.cal .cday { display: grid; place-items: center; height: 30px; border-radius: 6px; color: var(--muted); }
.cal label.cday { cursor: pointer; position: relative; }
.cal label.cday input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.cal label.cday span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 6px; border: 1.5px solid var(--brass); color: var(--ink); font-weight: 600; }
.cal label.cday input:checked + span { background: var(--brass); color: #fff; }
.cal label.cday input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 1px; }
.cal .cday.booked { background: #fbe7e2; color: #8a2c1e; text-decoration: line-through; }
.cal .cday.blocked { background: #e7e1d6; color: var(--muted); text-decoration: line-through; }
.key.blocked { background: #e7e1d6; border: 1px solid #b7ad9c; }
.cal .cday.past { background: #eee8dc; text-decoration: line-through; }
.key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 3px; }
.key.free { background: var(--brass); } .key.booked { background: #fbe7e2; border: 1px solid #8a2c1e; } .key.past { background: #eee8dc; }

.wholink { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.wholink:hover, .wholink[aria-current] { color: #fff; }

.ext-video { display: grid; place-items: center; background: linear-gradient(135deg, #16384c, #0f2b3c); color: #dce7ed; }
.ext-ask { max-width: 420px; padding: 20px; text-align: center; display: grid; gap: 8px; }
.ext-ask a { color: #f2c27a; }
.legal { max-width: 820px; }
.legal h2 { margin-top: 28px; } .legal h3 { margin-top: 18px; }
.legal p, .legal li { line-height: 1.65; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .intro { margin-bottom: 22px; color: var(--muted); }
.ext-ask .check { color: #dce7ed; }
.legal .meta { color: var(--muted); font-size: 14px; }
.footer { flex-wrap: wrap; row-gap: 6px; }

.vcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.vcal .vrow { display: contents; }   /* weeks as rows for screen readers (1.22.2); the grid stays the same */
.vwd { font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; padding: 4px 0; }
.vday { min-height: 74px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; padding: 4px 5px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.vday.empty { border: 0; background: none; }
.vday form { display: contents; }
.vbtn { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 2px; width: 100%; height: 100%; min-height: 64px; }
.vbtn:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 6px; }
.vday.free:not(.past):hover { border-color: var(--brass); }
.vn { font-weight: 600; font-size: 13px; color: var(--ink); }
.vt { font-size: 11px; line-height: 1.25; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.vday.show { background: #ddefe5; border-color: #9ccbb0; }
.vday.req { background: #fbebd6; border-color: #e8c08a; }
.vday.blocked { background: repeating-linear-gradient(45deg, #efe9de, #efe9de 6px, #e5ddcf 6px, #e5ddcf 12px); border-color: #c9bfae; }
.vday.blocked .vt { color: var(--muted); font-weight: 600; }
.vday.past { opacity: .55; }
.key.vk-show { background: #ddefe5; border: 1px solid #9ccbb0; } .key.vk-req { background: #fbebd6; border: 1px solid #e8c08a; }
.key.vk-blocked { background: #e5ddcf; border: 1px solid #c9bfae; } .key.vk-free { background: #fff; border: 1px solid var(--line); }
@media (max-width: 520px) { .vday { min-height: 54px; padding: 3px; } .vbtn { min-height: 46px; } .vt { font-size: 10px; } .vwd { font-size: 11px; } }

.verifybar { background: #fbebd6; border-bottom: 1px solid #e8c08a; padding: 10px 32px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: center; font-size: 14px; }
.verifybar form { margin: 0; }

.map .port .endtag { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); font: 700 9.5px var(--sans); letter-spacing: .06em; text-transform: uppercase; background: #e3a15a; color: var(--navy); padding: 2px 6px; border-radius: 4px; white-space: nowrap; pointer-events: none; }
.map .port.is-end .endtag { background: #8fbfd6; }

.landing .kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700; color: #e3a15a; margin: 0 0 14px; }
.landing .lede + .lede { margin-top: 10px; }
.audiences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 36px 0 12px; }
.audience { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.audience h2 { font-size: 26px; line-height: 1.2; }
.kicker-dark { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--brass); margin: 0; }
.manifesto { text-align: center; padding: 28px 0 44px; }
.manifesto .big { font-family: var(--serif); font-size: 30px; line-height: 1.25; margin: 0 0 8px; color: var(--ink); }
.manifesto .sign { margin-top: 18px; }
@media (max-width: 800px) { .audiences { grid-template-columns: 1fr; } .manifesto .big { font-size: 24px; } }

/* ---- Cancellation ---- */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.rules > *, .grid-3 > * { min-width: 0; }
.rule { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 12px 14px; border-radius: var(--r); border: 1px solid transparent; font-size: 14px; }
.rule.on { background: var(--brass-wash); border-color: var(--brass-light); }
.rule strong { color: var(--ink); }

/* ---- Messages ---- */
.inbox { display: grid; grid-template-columns: 320px minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; min-height: 560px; }
.threads { border-right: 1px solid var(--line); overflow-y: auto; max-height: 72vh; }
.threads a { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--text); }
.threads a[aria-current="true"] { background: #fff8ef; box-shadow: inset 3px 0 0 var(--brass); }
.threads a:hover { background: var(--sand); }
.convo { display: flex; flex-direction: column; min-width: 0; }
.convo-head { padding: 16px 22px; border-bottom: 1px solid var(--line); }
.msgs { flex: 1; padding: 22px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; max-height: 60vh; background: var(--sand); }
.msg { max-width: 620px; display: flex; flex-direction: column; gap: 4px; }
.msg .b { padding: 12px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); white-space: pre-wrap; word-wrap: break-word; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg.mine .b { background: var(--navy); color: #fff; border-color: var(--navy); }
.msg .meta { font-size: 12px; color: var(--muted); }
.composer { border-top: 1px solid var(--line); padding: 16px 22px; display: flex; gap: 12px; align-items: flex-end; }
.composer textarea { flex: 1; }

/* ---- Contract & invoice documents ---- */
.doc { background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); padding: 64px 72px; font-family: var(--serif); font-size: 16px; line-height: 1.7; color: #1b2b36; }
.doc h1 { text-align: center; font-weight: 600; letter-spacing: .04em; font-size: 28px; margin: 8px 0 28px; }
.doc h2 { font: 600 15px var(--sans); margin: 22px 0 6px; color: var(--ink); letter-spacing: .01em; }
.doc p + p { margin-top: 10px; }
.doc .parties { display: grid; grid-template-columns: 1fr 60px 1fr; font: 15px/1.6 var(--sans); margin-bottom: 20px; }
.doc .sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 36px; font-family: var(--sans); font-size: 14px; }
.doc .sig { border-bottom: 1.5px solid var(--ink); min-height: 56px; display: flex; align-items: flex-end; padding-bottom: 6px; font: italic 24px var(--serif); color: #1f3f7a; }   /* ink blue on paper (1.22.2: contrast) */
.inv-lines td, .inv-lines th { font-family: var(--sans); }

/* ---- Landing ---- */
.landing { background: var(--navy); color: #fff; }
.landing-in { max-width: 1240px; margin: 0 auto; padding: 72px 32px 56px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.landing h1 { color: #fff; font-size: clamp(40px, 5vw, 64px); line-height: 1.02; letter-spacing: -.02em; }
.landing .lede { font-size: 19px; line-height: 1.6; color: #c9d8e0; margin-top: 18px; max-width: 46ch; }
.landing .ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.landing .map { aspect-ratio: 1000 / 560; }
.how { max-width: 1240px; margin: 0 auto; padding: 56px 32px 72px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.how h2 { font-size: 22px; margin-bottom: 8px; }
.auth { max-width: 520px; margin: 48px auto; }
.auth-wide { max-width: 760px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.choice a { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; color: var(--text); text-decoration: none; }
.choice a:hover { border-color: var(--ink); color: var(--text); }
.footer { max-width: 1440px; margin: 0 auto; padding: 32px; color: var(--muted); font-size: 13px; display: flex; gap: 20px; flex-wrap: wrap; }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .split, .map-row, .planner-body, .landing-in { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
}
@media (max-width: 760px) {
  .page, .hero-in, .topbar-in { padding-left: 16px; padding-right: 16px; }
  .topbar-in { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .topbar .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav { display: none; order: 3; width: 100%; flex-direction: column; }
  .nav.open { display: flex; }
  .me .who { display: none; }
  .brand img { height: 28px; }
  .grid-2, .grid-3, .grid-4, .choice, .how { grid-template-columns: 1fr; }
  .inbox { grid-template-columns: 1fr; }
  .threads { max-height: 240px; border-right: 0; border-bottom: 1px solid var(--line); }
  .doc { padding: 28px 20px; }
  .doc .parties, .doc .sigs { grid-template-columns: 1fr; gap: 16px; }
  .map, .landing .map { aspect-ratio: 1000 / 820; }
  .map .lab { font-size: 10px; }
  .map .legend { display: none; }
  .rivers { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .rivers a { white-space: nowrap; }
  .map-panel .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rule { grid-template-columns: 1fr; }
  .table-stack thead { display: none; }
  .table-stack tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .table-stack td { display: block; border: 0; padding: 3px 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .topbar, .footer, .no-print, .flash { display: none !important; }
  body { background: #fff; }
  .page { padding: 0; }
  .doc { box-shadow: none; border: 0; padding: 0; }
  .split { grid-template-columns: 1fr; }
}
/* Booking calendar: days chosen by clicking; a dot marks days the ship is in port on a cruise */
.cal label.cday.pick span { border-style: dashed; font-weight: 500; }
.cal label.cday.pick input:checked + span { border-style: solid; font-weight: 700; }
.cal label.cday.instop span { border-style: solid; position: relative; }
.cal label.cday.instop span::after { content: ""; position: absolute; bottom: 3px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--navy); }
.cal .cday.noport { color: var(--muted); opacity: .55; }
.key.instop { border: 1.5px solid var(--brass); position: relative; } .key.noport { background: transparent; border: 1px dashed var(--line); }
.catbar .chip.muted { opacity: .55; }
.catbar .chip.on .muted { color: inherit; opacity: .75; }
.chosen-list { display: grid; gap: 8px; margin: 8px 0 14px; }
.chosen-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 260px); gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.chosen-row .field { margin: 0; }
@media (max-width: 560px) { .chosen-row { grid-template-columns: 1fr; } }
/* Booking calendar: the window with the details of a chosen day */
.day-dialog { width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: #fffdf8; color: var(--text); box-shadow: 0 30px 80px rgba(10, 26, 44, .35); }
.day-dialog::backdrop { background: rgba(5, 12, 24, .55); }
.day-dialog h2 { font-size: 22px; }
/* v1.14: options in the entertainer's calendar */
.vday.opt { background: #e6e3fb; border-color: #b2a9ec; }
.key.vk-opt { background: #e6e3fb; border: 1px solid #b2a9ec; }
/* v1.14: reviews, earnings, media kit */
.stars { color: #d99a2b; letter-spacing: 2px; font-size: 18px; }
.quote { margin: 8px 0 0; padding: 8px 14px; border-left: 3px solid #d99a2b; font-style: italic; }
.stars-field { border: 0; padding: 0; margin: 0; }
.stars-field legend { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.stars-pick { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.stars-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-pick label { cursor: pointer; font-size: 30px; line-height: 1; color: #c9ced6; }
.stars-pick label::before { content: "★"; }
.stars-pick input:checked ~ label, .stars-pick label:hover, .stars-pick label:hover ~ label { color: #d99a2b; }
.stars-pick input:focus-visible + label { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 4px; }
.table tr.subtotal th, .table tfoot th { border-top: 1px solid currentColor; }
.price-rules { display: grid; gap: 8px; }
.price-rule { display: grid; grid-template-columns: 1.4fr .7fr .7fr .7fr; gap: 8px; align-items: end; }
@media (max-width: 720px) { .price-rule { grid-template-columns: 1fr 1fr; } }
.epk-link { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
/* v1.22.2/1.22.3: rows of figures (portfolio page, media kit) are cards like everywhere else: rounded, with room inside
   and the rainbow frame; on a phone or tablet (no pointer to hover with) the ring chases around them by itself */
.figures { gap: 14px !important; flex-wrap: wrap; }
.figures .stat { border-radius: var(--r-lg); padding: 14px 18px; min-width: 120px; }
.figures .stat strong { font-size: 28px; overflow-wrap: anywhere; }
@media (hover: none) { .figures .stat::after { opacity: 1; animation-play-state: running; } }
@media (max-width: 520px) { .figures .stat { flex: 1 1 calc(50% - 7px); } .figures .stat strong { font-size: 24px; } }
.epk-link input { flex: 1; min-width: 220px; }
.tools-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 22px; }
.tools-row a { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; text-decoration: none; color: inherit; }
.tools-row a strong { font-size: 15px; }
.tools-row a span { font-size: 13px; opacity: .75; }
@media print { .statement { box-shadow: none !important; border: 0 !important; background: #fff !important; color: #000 !important; } }
.print-only { display: none; }
@media print { .print-only { display: block; } .epk .gallery img { break-inside: avoid; } }
.err-text { color: var(--err, #b42318); margin-top: 4px; }
/* v1.15: docking places and all-in prices in the portfolio */
.port-rivers { display: grid; gap: 10px; }
.port-river { border: 1px solid rgba(0,0,0,.12); border-radius: 14px; padding: 10px 14px; }
.port-river summary { cursor: pointer; }
.port-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px 18px; }
.port-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; padding: 4px 0; }
.port-row [data-port-allin] { grid-column: 1 / -1; }
.port-travel { display: flex; gap: 4px; align-items: center; }
.port-travel input { width: 90px; }
.port-travel input:disabled { opacity: .45; }

/* v1.16: a map label without free space appears on hover or keyboard focus */
.map .port .lab.lab-quiet { opacity: 0; transition: opacity .15s; pointer-events: none; }
.map .port:hover .lab.lab-quiet, .map .port:focus-visible .lab.lab-quiet { opacity: 1; z-index: 5; }

/* v1.17 set lists */
.setlist { margin: 0; padding-left: 26px; display: grid; gap: 6px; }
.setlist li { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: baseline; }
.setlist .sl-t { min-width: 0; }
.setlist li.unplayed strong { text-decoration: line-through; opacity: .6; }
.songs-table td input:not([type=checkbox]) { width: 100%; min-width: 7em; padding: 7px 9px; border-radius: 9px; font-size: 14px; }
.songs-table td { vertical-align: middle; }
.print-sheet { max-width: 760px; margin: 0 auto; }
@media (max-width: 640px) { .print-sheet .table th:nth-child(4), .print-sheet .table td:nth-child(4) { display: none; } .print-sheet .table { font-size: 13px; } .print-sheet .table td { overflow-wrap: anywhere; } }

/* ---- Long-term residencies (v1.18) ---- */
/* The red LONG TERM RESIDENTIAL button: a checkbox drawn as a button; outlined when off, filled red when on */
.res-toggle { display: inline-flex; cursor: pointer; }
.res-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.res-toggle span { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid #d23a2a;
  color: #ff8a7a; font-weight: 700; letter-spacing: .06em; font-size: 15px; background: rgba(210, 58, 42, .08); transition: background .15s, color .15s, box-shadow .15s; }
.res-toggle span svg { opacity: 0; transition: opacity .15s; }
.res-toggle input:checked + span { background: #c62f20; border-color: #c62f20; color: #fff; box-shadow: 0 8px 24px rgba(198, 47, 32, .35); }
.res-toggle input:checked + span svg { opacity: 1; }
.res-toggle input:focus-visible + span { outline: 3px solid #f2b366; outline-offset: 3px; }
.money { display: flex; align-items: center; gap: 8px; }
.money > span { font-weight: 600; font-size: 18px; }
.money input { max-width: 200px; font-size: 18px; font-weight: 600; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; }
.deflist { display: grid; grid-template-columns: minmax(120px, 170px) minmax(0, 1fr); gap: 8px 16px; margin: 0; }
.deflist dt { font-size: 13px; color: var(--muted); padding-top: 2px; }
.deflist dd { margin: 0; }
@media (max-width: 560px) { .deflist { grid-template-columns: minmax(0, 1fr); gap: 2px; } .deflist dd { margin-bottom: 8px; } }


/* v1.20: the cruise manager's on-board page */
.onboard-day { margin: 22px 0 10px; font-size: 20px; }
.onboard-msgs { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 12px; }
.onboard-msgs .msg { max-width: 92%; }
.onboard-status { margin-bottom: 8px; }
.onboard-status .chip { min-height: 34px; padding: 0 12px; font-size: 13px; cursor: pointer; }
.onboard-checkin details.inline { display: inline-block; }
.onboard-checkin details.inline > summary { list-style: none; }
.onboard-checkin details.inline > summary::-webkit-details-marker { display: none; }
.status-row .chip { min-height: 34px; padding: 0 12px; font-size: 13px; cursor: pointer; }
.steps-mini { margin: 0; font-size: 14px; }   /* v1.23: step 1 of 2 in the company sign-up */

/* v1.24: agreements with a numbered list and extra paragraphs */
.agree .agree-list { margin: 6px 0 4px; padding-left: 20px; }
.agree .agree-list li { margin: 3px 0; }
.agree .agree-p { display: block; margin-top: 6px; }
.agree .agree-h { display: block; margin-top: 8px; }
.charges-table td { overflow-wrap: break-word; }   /* v1.25: party names wrap between words, not inside them */
