@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("assets/fonts/manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #092b49;
  --ink: #102e49;
  --muted: #4d5963;
  --paper: #fcfbf8;
  --soft: #f6f3ee;
  --linen: #f0e8df;
  --sand: #dbc5a7;
  --line: #e0d7ca;
  --outline: #aa967b;
  --copper: #765a3d;
  --link: #234e70;
  --green: #24584d;
  --display: Manrope, system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --page-pad: clamp(20px, 5vw, 76px);
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.55; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { color: inherit; font-family: var(--display); line-height: 1.15; }
h1, h2, h3 { letter-spacing: -.042em; font-weight: 800; }
h3 { font-size: clamp(1.2rem, 1.7vw, 1.5rem); }
a { color: var(--link); text-underline-offset: .19em; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid #8a5300; outline-offset: 3px; }
.wrap { width: min(1240px, calc(100% - 2 * var(--page-pad))); margin-inline: auto; }
.skip-link { position: fixed; top: .6rem; left: .6rem; z-index: 10; padding: .6rem 1rem; transform: translateY(-200%); background: var(--sand); color: var(--navy); }
.skip-link:focus { transform: none; }
@media screen { html { scroll-padding-top: calc(var(--mast-height, 72px) + 12px); } }

.mast {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  background: var(--paper);
}
.mast-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; font: 800 1.04rem/1.18 var(--display); letter-spacing: -.014em; }
.brand img { flex: none; width: 64px; height: 46px; object-fit: contain; border-radius: 3px; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font: 500 .8125rem/1.3 var(--body); letter-spacing: normal; }
.mast nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
.mast nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); font-size: .95rem; font-weight: 650; text-decoration: none; }
.mast nav a:hover, .mast nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .45em; }
.button, .menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  max-width: 100%;
  min-height: 44px;
  padding: .6rem 1rem;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: .9375rem;
  font-weight: 750;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
.menu-toggle { display: none; }
.primary { background: var(--navy); color: white; }
.primary:not(:disabled):hover { background: #164b76; }
.outline, .menu-toggle { border-color: var(--outline); background: transparent; color: var(--navy); }
.outline:not(:disabled):hover, .menu-toggle:hover { background: var(--linen); }
.document-icon { position: relative; width: .83em; height: 1.1em; border: 1.5px solid currentColor; border-radius: 2px; }
.document-icon::after { position: absolute; content: ""; inset: 35% 18% 21%; border-block: 1px solid currentColor; }
.menu-lines { width: 15px; height: 10px; border-block: 1.5px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat; }

.club-intro { background: var(--linen); border-bottom: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: clamp(28px, 4vw, 66px); padding-block: clamp(28px, 3vw, 47px); }
.eyebrow { margin-bottom: 12px; font-size: .8125rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; color: var(--copper); }
.club-intro h1 { font-size: clamp(3.25rem, 5.6vw, 5.375rem); line-height: 1.02; letter-spacing: -.055em; color: var(--navy); }
.club-intro h1 span { display: block; margin-top: .15em; font-size: .52em; line-height: 1.15; letter-spacing: -.035em; }
.lead { max-width: 40ch; margin-top: 14px; font-size: clamp(1.05rem, 1.4vw, 1.21rem); color: var(--muted); }
.intro-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.intro-actions .button { min-height: 46px; }
.harbor-photo { display: block; position: relative; overflow: hidden; border-radius: 14px; color: white; background: var(--navy); }
.harbor-photo img { display: block; width: 100%; height: auto; aspect-ratio: 2.48; object-fit: cover; }
.photo-caption { position: absolute; inset: auto 0 0; display: flex; flex-wrap: wrap; gap: 1px 12px; align-items: baseline; justify-content: space-between; padding: 32px 18px 12px; background: linear-gradient(transparent, #061b2ce8); }
.photo-caption strong { font: 750 .9375rem/1.3 var(--display); }
.photo-caption span { font-size: .75rem; font-variant-numeric: tabular-nums; }

.workspace { padding-block: clamp(28px, 2.8vw, 42px) clamp(36px, 5vw, 75px); }
.workspace-heading, .section-head, .card-head, .map-head { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; }
.workspace-heading { margin-bottom: 20px; }
.workspace-heading h2 { font-size: clamp(2.05rem, 3.2vw, 3rem); line-height: 1.09; }
.section + .section { margin-top: clamp(32px, 4.5vw, 64px); }
.section-head { margin-bottom: 16px; }
.section-head h3 { font-size: clamp(1.55rem, 2.5vw, 2.05rem); }
.section-head .subtle { margin-top: 5px; }
.section-links, .intro-actions, .lock-sources, .source-buttons, .tool-buttons, .lock-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.section-links a, .weather-map-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; font-weight: 700; }
.disclosure::after, .tools > summary::after {
  content: ""; width: .48em; height: .48em; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: translateY(-.15em) rotate(45deg);
}
.disclosure[aria-expanded=true]::after, .tools[open] > summary::after { transform: translateY(.1em) rotate(225deg); }
.templates { margin-bottom: 20px; padding: clamp(16px, 2vw, 24px); border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.templates h3 { margin-bottom: 12px; }
.preset-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.preset { display: block; padding: 12px 14px; min-width: 0; text-align: left; background: white; border: 1px solid var(--line); border-radius: 7px; }
.preset strong, .preset small { display: block; }
.preset strong { font: 800 1.05rem/1.4 var(--display); }
.preset small, .preset-help { color: var(--muted); font-size: .8125rem; }
.preset-help { margin: 8px 0 14px; }
.preset:hover, .chip:hover { border-color: var(--outline); }
.preset.active, .chip.active, .chip.selected { border-color: var(--navy); color: white; background: var(--navy); }
.preset.active small { color: #e6eefa; }
.sea-presets, .sea-presets > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 8px; }
.sea-presets > strong { font-size: .9375rem; }
.chip { min-height: 40px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: .875rem; font-weight: 700; }

.planning { display: grid; grid-template-columns: minmax(320px, .92fr) minmax(0, 1.85fr); align-items: start; gap: clamp(16px, 1.65vw, 24px); }
.card { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 12px; }
.planner, .info { padding: clamp(16px, 1.8vw, 26px); }
.card-head { margin-bottom: 16px; }
label { display: block; min-width: 0; color: var(--ink); font-size: .9rem; font-weight: 700; }
.subtle { color: var(--muted); font-size: .875rem; line-height: 1.55; }
label .subtle { font-weight: 450; font-size: .8125rem; margin-inline-start: 4px; }
input:not([type=checkbox]), select, textarea { display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: 4px; padding: 9px 12px; border: 1px solid #aa9e8e; border-radius: 6px; background: #fff; font-size: 1rem; font-weight: 450; line-height: 1.4; }
select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 16px) center, calc(100% - 11px) center; background-size: 5px 5px; background-repeat: no-repeat; }
input[type=checkbox] { width: 1.05rem; height: 1.05rem; flex: none; margin: 0; accent-color: var(--navy); }
textarea { resize: vertical; }
.planner [aria-invalid=true] { border-color: #a32323; }
.route-field { position: relative; display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 10px; align-items: end; margin-bottom: 10px; }
.route-field > .waypoint { position: relative; display: block; width: 10px; height: 10px; margin: 0 auto 18px; border: 2px solid var(--navy); border-radius: 50%; background: white; }
.route-field:last-child > .waypoint { border-radius: 2px; background: var(--navy); }
.route-field:not(:last-child)::after { position: absolute; content: ""; left: 5px; top: calc(100% - 14px); height: calc(100% - 2px); border-left: 2px dotted #baa992; pointer-events: none; }
.stop-fields { display: grid; grid-template-columns: minmax(0, 1fr) 5.7rem 32px; gap: 6px; align-items: end; }
.remove-stop { min-height: 44px; border: 1px solid var(--line); border-radius: 5px; background: var(--soft); }
.route-actions { display: flex; flex-wrap: wrap; gap: 0 14px; margin-bottom: 8px; }
.text-button { border: 0; padding: 0; background: none; color: var(--link); font-size: .875rem; font-weight: 700; text-align: left; }
.text-button:hover { text-decoration: underline; }
.route-actions button { min-height: 40px; }
.input-row { margin: 12px 0; min-width: 0; }
.departure-open {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; min-height: 48px; margin-top: 4px; padding: 9px 12px;
  border: 1px solid #aa9e8e; border-radius: 6px; background: white; text-align: left;
  font-variant-numeric: tabular-nums;
}
.departure-open:hover { border-color: var(--navy); }
.departure-dialog {
  width: min(30rem, calc(100% - 16px)); max-width: none; max-height: calc(100dvh - 16px);
  margin: auto; padding: clamp(12px, 3vw, 22px); overflow: auto; overscroll-behavior: contain;
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink);
  box-shadow: 0 16px 55px #152c3a4a; font-variant-numeric: tabular-nums;
}
.departure-dialog::backdrop { background: #142f3c80; }
html:has(.departure-dialog[open]) { overflow: hidden; }
.departure-header, .departure-actions, .departure-clock h3 {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.departure-header { margin-bottom: 10px; }
.departure-header h2 { font-size: 1.45rem; }
.departure-header .subtle { margin-top: 3px; }
.departure-dialog .text-button { min-height: 44px; }
.departure-month-nav { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; text-align: center; }
.departure-dialog h3 { font-size: 1.14rem; }
.departure-month-nav button, .departure-stepper button {
  min-height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 7px;
  background: var(--soft); color: var(--navy); font-size: 1.35rem; line-height: 1;
}
.departure-month-nav button { font-size: 1.8rem; }
.departure-calendar { scroll-padding-top: 44px; }
.departure-calendar table { width: 100%; margin-top: 4px; border-spacing: 0; table-layout: fixed; text-align: center; }
.departure-calendar th { height: 26px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.departure-calendar td { padding: 1px; }
.departure-calendar td button {
  width: 100%; min-height: 44px; padding: 0; border: 0; border-radius: 7px;
  color: var(--ink); background: transparent; font-size: 1.08rem; line-height: 1.25;
}
.departure-calendar [aria-current=date] { text-decoration: underline; text-underline-offset: .2em; }
.departure-calendar td[aria-selected=true] button { background: var(--navy); color: white; font-weight: 750; }
.departure-calendar td button:focus-visible { outline-offset: -3px; }
.departure-calendar td[aria-selected=true] button:focus-visible { outline-color: var(--sand); }
@media (hover: hover) {
  .departure-dialog button:not(:disabled):is([data-minutes], #departure-prev, #departure-next):hover,
  .departure-calendar td[aria-selected=false] button:hover { background: var(--linen); }
}
.departure-clock { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.departure-clock h3 .subtle { font-family: var(--body); font-weight: 450; letter-spacing: normal; }
.departure-time-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 3vw, 24px); margin-top: 6px; }
.departure-time-fields label { margin-bottom: 3px; }
.departure-stepper { display: grid; grid-template-columns: minmax(32px, 1fr) minmax(52px, 1.6fr) minmax(32px, 1fr); }
.departure-stepper button:first-child { border-radius: 7px 0 0 7px; border-right: 0; }
.departure-stepper button:last-child { border-radius: 0 7px 7px 0; border-left: 0; }
.departure-stepper select {
  margin: 0; padding: 3px 16px 3px 4px; border-color: var(--outline); border-radius: 0;
  background-position: calc(100% - 10px) center, calc(100% - 6px) center; background-size: 4px 4px;
  font-size: 1.2rem; font-weight: 700; text-align: center; text-align-last: center; font-variant-numeric: tabular-nums;
}
.departure-actions { margin-top: 14px; }
@media (min-height: 700px) {
  .departure-calendar td button { min-height: 48px; }
}
@media (max-height: 640px) {
  .departure-dialog { padding: 10px 12px; }
  .departure-header, .departure-actions { margin-block: 4px; }
  .departure-clock { margin-top: 5px; padding-top: 6px; }
  .departure-calendar td button { min-height: 38px; }
}
@media (max-width: 539px) and (max-height: 570px) {
  .departure-dialog[open] { display: flex; flex-direction: column; padding-block: 7px; }
  .departure-header, .departure-actions { flex: none; margin: 0; }
  .departure-header h2 { font-size: 1.2rem; }
  .departure-header .subtle { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .departure-controls { display: flex; flex-direction: column; min-height: 0; }
  .departure-calendar { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .departure-month-nav { position: sticky; top: 0; z-index: 1; background: var(--paper); }
  .departure-month-nav button { min-height: 36px; }
  .departure-calendar table { margin-top: 2px; }
  .departure-calendar th { height: 20px; line-height: 1; }
  .departure-calendar td { padding-block: 0; }
  .departure-calendar td button { display: block; min-height: clamp(32px, 6.9dvh, 40px); }
  .departure-clock { flex: none; margin: 3px 0 5px; padding-top: 4px; }
  .departure-time-fields { margin-top: 2px; }
  .departure-time-fields label { margin-bottom: 2px; line-height: 1.2; }
}
@media (min-width: 540px) and (max-height: 540px) {
  .departure-dialog[open] {
    display: grid; width: min(48rem, calc(100% - 16px));
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; column-gap: 14px;
  }
  .departure-controls { display: contents; }
  .departure-calendar { grid-column: 1; grid-row: 1 / 4; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .departure-month-nav { position: sticky; top: 0; z-index: 1; background: var(--paper); }
  .departure-header, .departure-clock, .departure-actions { grid-column: 2; }
  .departure-clock { align-self: center; margin: 4px 0; padding-top: 8px; }
  .departure-time-fields { gap: 8px; }
}
@media (min-width: 540px) and (max-height: 350px) {
  .departure-calendar td button { min-height: 32px; }
  .departure-calendar th { height: 22px; }
}
@media print { .departure-dialog { display: none !important; } }
.pair { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; }
.tools { border-top: 1px solid var(--line); margin-top: 8px; }
.tools > summary { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 8px; list-style: none; color: var(--link); font-size: .9375rem; font-weight: 700; }
.tools > summary::-webkit-details-marker { display: none; }
.tools p, .tools .file-label { margin: 8px 0; }
.tools[open] { padding-bottom: 8px; }
#planner > .primary { margin-top: 10px; width: 100%; min-height: 46px; }
.feedback { margin-top: 8px; color: #8d3326; font-size: .9rem; }
.feedback:empty { display: none; }
.usage-note { border-left: 2px solid var(--sand); margin-bottom: 22px; padding-left: 12px; color: var(--muted); font-size: .8125rem; }

.map-card { overflow: hidden; }
.map-head { padding: 16px clamp(16px, 1.8vw, 25px); }
.map-title-group { min-width: 0; }
#map-title { margin-top: 4px; color: var(--muted); font-size: .9375rem; overflow-wrap: anywhere; }
.map-head .button, .live-location .button { min-height: 40px; padding: 7px 12px; font-size: .875rem; }
.map-actions, .map-layers, .live-location { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.map-toggle, .check-label { display: flex; align-items: center; gap: 8px; }
.map-toggle { min-height: 38px; font-size: .875rem; font-weight: 600; }
.map { position: relative; height: clamp(310px, 28vw, 410px); overflow: hidden; isolation: isolate; border-block: 1px solid var(--line); background: #ebe9df; }
.map canvas, .map #tiles, .map #seamarks { position: absolute; inset: 0; width: 100%; height: 100%; }
.map canvas { cursor: grab; touch-action: none; }
.map.dragging canvas { cursor: grabbing; }
.map.drawing canvas { cursor: crosshair; }
.map #tiles { filter: saturate(.8); }
.map #tiles, .map #seamarks { pointer-events: none; }
.map #tiles img, .map #seamarks img { position: absolute; max-width: none; }
.map-north, .map-controls, .map-location { position: absolute; background: var(--paper); border: 1px solid #b2ada1; border-radius: 6px; color: var(--navy); }
.map-north { top: 10px; right: 10px; padding: 4px 8px; font-size: .8125rem; font-weight: 750; pointer-events: none; }
.map-controls { top: 10px; left: 10px; display: grid; overflow: hidden; }
.map-controls button { width: 36px; height: 36px; padding: 0; border: 0; background: none; font-size: 1.15rem; }
.map-controls button + button { border-top: 1px solid var(--line); }
.map-controls button:hover, .map-location:hover { background: var(--linen); }
.map-location { left: 10px; bottom: 22px; min-height: 38px; padding: 6px 10px; font-size: .8125rem; font-weight: 700; }
.map-attribution { position: absolute; bottom: 0; right: 0; padding: 1px 5px; color: var(--ink); background: #fffef5ec; font-size: .6875rem; }
.live-location { padding: 9px clamp(14px, 1.8vw, 24px); border-bottom: 1px solid var(--line); }
.live-location .map-layers { margin-right: auto; }
.live-location .button[aria-pressed=true] { color: white; background: var(--navy); }
#position-result { font-size: .875rem; }
#position-result:empty, .map-note:empty { display: none; }
.map-search { display: flex; align-items: end; flex-wrap: wrap; gap: 8px 12px; padding: 14px 16px; background: var(--soft); border-bottom: 1px solid var(--line); }
.map-search label { flex: 1 1 200px; }
.map-search output { flex: 1 0 100%; }
.map-search output:empty { display: none; }
.route-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(112px, 100%), 1fr)); gap: 12px 0; margin: 0; padding: 18px 9px; background: var(--soft); border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.route-stats:empty { display: none; }
.route-stats > div { min-width: 0; padding: 0 10px; border-left: 1px solid var(--line); }
.route-stats > div:first-child { border-left: none; }
.route-stats small { display: block; color: var(--copper); font-weight: 750; font-size: .75rem; }
.route-stats b { display: block; margin-top: 4px; font: 800 1.02rem/1.3 var(--display); overflow-wrap: anywhere; }
.route-advisory, .map-note, .itinerary { margin: 12px 16px; font-size: .875rem; }
.route-advisory:empty { display: none; }
.route-advisory { padding: 10px 12px; background: var(--linen); border-left: 3px solid var(--outline); }
.route-advisory p + p { margin-top: 5px; }
.map-note { color: var(--muted); }
.itinerary { border-top: 1px solid var(--line); margin: 0; padding: 12px 16px; }
.itinerary summary { font-weight: 750; }
.itinerary ol { padding-left: 22px; margin-bottom: 4px; }
.itinerary li { padding: 3px 0; overflow-wrap: anywhere; }

.info-grid, .lock-grid { display: grid; gap: clamp(14px, 1.7vw, 22px); align-items: start; }
.info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lock-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lock-filter { margin-bottom: 14px; }
.lock { padding: 16px 18px; }
.lock h3 { font-size: 1.1rem; }
.lock .badge { display: inline-block; margin: 6px 8px 3px 0; border-radius: 4px; padding: 3px 7px; background: var(--soft); font-size: .8125rem; font-weight: 650; }
.lock a[href^=tel] { font-weight: 750; }
.section-note { margin-top: 12px; }
.info p { margin: 8px 0; }
.source-buttons { gap: 4px 14px; margin-top: 8px; font-size: .875rem; }
.source-buttons a { padding-block: 3px; }
.inline { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 12px 0; }
.inline label { flex: 1 1 170px; }
.wx, .planner-weather .trip-weather { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(132px, 100%), 1fr)); gap: 8px; margin: 12px 0; }
.wx > div, .trip-weather article { padding: 10px; border: 1px solid var(--line); border-radius: 6px; }
.wx strong, .wx small, .wx span { display: block; }
.wx small, .wx span { font-size: .875rem; }
.planner-weather .route-brief { margin-top: 14px; padding: 14px 0 0; }
.planner-weather .card-head { gap: 8px; }
.weather-map-link { font-size: .875rem; }
.weather-tip { padding: 10px 12px; background: var(--soft); border-radius: 6px; font-size: .875rem; }
.sea-guide { margin-top: 20px; }
.check-group { margin: 16px 0 4px; color: var(--copper); text-transform: uppercase; font-size: .8125rem; font-weight: 800; letter-spacing: .09em; }
.check-label { align-items: flex-start; padding: 6px 0; font-size: .9375rem; font-weight: 500; }
.check-label input { margin-top: .2em; }
#check-count { font-size: .9375rem; font-weight: 700; color: var(--link); }
.emergency { background: var(--navy); color: white; border-color: var(--navy); }
.emergency .eyebrow, .emergency a { color: #f0d7b6; }
.notes { margin-top: 16px; }
.foot { background: var(--linen); border-top: 1px solid var(--line); font-size: .875rem; }
.foot .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 20px; }
.foot-main { padding-block: 20px 10px; }
.foot-main > span { margin-right: auto; }
.weather-models summary { cursor: pointer; color: var(--link); font-size: .9375rem; }
.weather-models p { margin-top: .5rem; }
.license-page { max-width: 52rem; padding: 2rem var(--page-pad) 4rem; margin: auto; }
.license-page h1 { margin: 1.4rem 0 .75rem; font-size: clamp(2rem, 5vw, 3.1rem); }
.license-page section { margin-top: 1.8rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.license-page h2 { font-size: 1.45rem; }
.license-page p { margin: .55rem 0; line-height: 1.55; }
.license-page a { overflow-wrap: anywhere; }
.foot-imprint { padding-bottom: 20px; color: var(--muted); }
.foot-updated { color: var(--link); }
.foot a { display: inline-flex; align-items: center; min-height: 40px; }
#print-sheet { display: none; }

@media (max-width: 980px) {
  .mast-inner { flex-wrap: wrap; gap: 0 12px; min-height: 64px; }
  .brand { gap: 8px; }
  .brand img { width: 56px; height: 40px; }
  .mast nav { width: 100%; flex-wrap: wrap; gap: 0 20px; padding-bottom: 10px; }
  .mast.has-menu .menu-toggle { display: inline-flex; }
  .mast.has-menu nav:not(.is-open) { display: none; }
  .mast.has-menu nav { border-top: 1px solid var(--line); padding-top: 7px; }
  .planning { grid-template-columns: minmax(290px, .85fr) minmax(0, 1.15fr); }
  .lock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preset-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 750px) {
  .intro-grid { grid-template-columns: 1fr; gap: 19px; padding-block: 24px; }
  .club-intro h1 { font-size: clamp(3.2rem, 9.5vw, 4.6rem); }
  .intro-actions { margin-top: 14px; }
  .lead { max-width: 46ch; margin-top: 10px; }
  .harbor-photo img { aspect-ratio: 3.1; }
  .planning, .info-grid { grid-template-columns: minmax(0, 1fr); }
  .map { height: 335px; }
  .mast-inner { padding-block: 6px; }
  .mast nav { align-items: stretch; }
  .mast nav a { min-height: 46px; }
  .section-links { gap: 0 16px; }
  .workspace-heading { gap: 6px 12px; margin-bottom: 14px; }
}
@media (max-width: 540px) {
  :root { --page-pad: 16px; }
  .mast nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mast nav .button { grid-column: 1 / -1; justify-self: start; }
  .intro-grid { gap: 16px; padding-block: 22px 18px; }
  .intro-copy .eyebrow { margin-bottom: 8px; font-size: .75rem; }
  .photo-caption { display: block; padding: 26px 12px 8px; }
  .photo-caption > span { display: block; }
  .workspace { padding-top: 22px; }
  .workspace-heading > .button { font-size: .875rem; padding-inline: 10px; }
  .lock-grid { grid-template-columns: 1fr; }
  .map-controls button { width: 42px; height: 42px; }
  .route-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route-stats > div:nth-child(odd) { border: none; }
  .stop-fields { grid-template-columns: minmax(0, 1fr) 4.8rem 30px; }
}
@media (max-width: 370px) {
  .brand { font-size: .9375rem; }
  .brand img { width: 44px; height: 34px; }
  .menu-toggle { padding-inline: 10px; gap: 7px; }
}

@media print{@page{size:A4;margin:13mm}body{background:#fff;color:#202a28}.mast,main,.foot,noscript{display:none!important}#print-sheet{display:block;font-size:9pt}.print-head{display:flex;gap:12px;align-items:center;border-bottom:1px solid #796a51;padding-bottom:8px;margin-bottom:10px}.print-head img{width:42px}.print-head h1{font-size:20pt;margin:0}.print-map{display:block;width:100%;max-height:91mm;object-fit:contain;margin:8px 0;break-inside:avoid}.paper-section{margin:11px 0}.paper-section h2{font-size:13pt;border-bottom:1px solid #b6aa94;padding-bottom:2px}.paper-section li{margin:2px 0}.paper-section p{margin:4px 0}.paper-section h2{break-after:avoid}.paper-section a{text-decoration:none}.paper-columns{columns:2;gap:15px}.paper-columns li{break-inside:avoid}a{text-decoration:none}}
@media print { .skip-link { display: none; } main.license-page { display: block!important; max-width:none; padding:0; } .license-page h2 { break-after:avoid; } }

.cruise-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  margin-top: 16px;
}
.route-details-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 16px 10px; }
.route-details-links .button { min-height: 38px; text-align: left; }
.cruise-details h3 { font-size: clamp(19px, 2.15vw, 25px); }
.cruise-list { display: grid; gap: 8px; padding: 0; list-style: none; }
.cruise-list > li {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  overflow-wrap: anywhere;
}
.cruise-list > li strong { font-size: 15px; }
.cruise-list > li.mapped-stop { gap: 2px; padding-block: 7px; background: transparent; }
.cruise-list > li.mapped-stop strong { font-size: 14px; }
.cruise-meta { color: var(--muted); font-size: 12px; }
.cruise-night, .cruise-draft { font-size: 13px; font-weight: 650; }
.cruise-list .text-button { justify-self: start; min-height: 32px; }
.cruise-list .source-buttons { margin-top: 0; }
.canal-operation {
  margin: 9px 0 12px;
  padding: 10px 12px;
  border-left: 4px solid var(--green);
  border-radius: 5px;
  background: #eaf0e9;
}
.canal-operation.is-closed, .route-closure {
  border-color: #a84c34;
  background: #f5dfd7;
  color: #6e291c;
}
.route-closure { padding: 6px 8px; border-left: 3px solid #a84c34; }
@media (max-width: 750px) {
  .cruise-details { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .cruise-list { display: block; list-style: disc; padding-left: 18px; }
  .cruise-list > li { display: list-item; break-inside: avoid; }
  .cruise-list .source-buttons, .canal-operation .source-buttons { display: inline; }
  #print-sheet { font: 9pt/1.35 var(--body); color: var(--ink); }
  #print-sheet .paper-section { margin: 6pt 0; }
  #print-sheet .paper-section h2 { margin-bottom: 3pt; }
  #print-sheet .paper-section h3 { font-size: 11pt; }
  #print-sheet .paper-section p { margin: 2pt 0; }
  #print-sheet .cruise-list > li { border: 0; padding: 2pt 0; }
  #print-sheet .cruise-list strong, #print-sheet .cruise-night, #print-sheet .cruise-draft,
  #print-sheet .cruise-meta, #print-sheet .source-buttons, #print-sheet .subtle { font-size: inherit; }
  #print-sheet ul, #print-sheet ol { margin-block: 4pt; }
}

.pdf-dialog{width:min(94%,720px);max-height:90vh;max-height:90dvh;overflow:auto;overscroll-behavior:contain;margin:auto;padding:20px;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);box-shadow:0 16px 55px #152c3a4a}
.pdf-dialog::backdrop{background:#142f3c80}
.pdf-dialog-head{display:flex;align-items:baseline;gap:10px;justify-content:space-between}
.pdf-dialog h2{font-size:20px}
.pdf-dialog p{margin-top:12px}
.pdf-dialog button,.pdf-actions a{min-height:44px}
.pdf-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch;margin-top:12px}
.pdf-actions .button{display:flex;align-items:center;justify-content:center;width:100%;margin:0;text-align:center;line-height:1.3;white-space:normal}
.pdf-preview{margin-top:14px;padding:8px;background:var(--linen);border-radius:7px}
.pdf-preview>p{margin:2px 3px 7px}
.pdf-readable{background:#fff;padding:12px;color:var(--ink);overflow-wrap:anywhere;font-size:12px;line-height:1.45}
.pdf-readable .print-head{display:flex;gap:8px;align-items:center}
.pdf-readable .print-head img{width:42px}
.pdf-readable .print-head h1{font-size:18px}
.pdf-readable h2{margin-top:10px;font-size:15px}
.pdf-readable .print-map{display:block;margin-top:10px}
.map-adjust{margin-top:8px}
@media screen{
  .pdf-dialog-head{position:sticky;top:0;z-index:1;align-items:center;flex-wrap:wrap;background:var(--paper);padding-block:4px}
  .pdf-dialog.viewing-pdf{position:fixed;inset:0;display:flex;flex-direction:column;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;overflow:hidden;border:0;border-radius:0}
  .viewing-pdf .pdf-dialog-head{padding:8px 14px}
  .viewing-pdf .pdf-actions{display:flex;flex:none;flex-wrap:wrap;gap:6px;margin:0;padding:0 14px 8px}
  .viewing-pdf .pdf-actions .button{width:auto}
  .viewing-pdf [data-pdf-view],.viewing-pdf .map-adjust,.viewing-pdf > p,.viewing-pdf .pdf-actions button[id$="-share"]{display:none}
  .viewing-pdf > object,.viewing-pdf > .pdf-preview,.viewing-pdf > .map-pdf-preview{width:100%;min-height:0;flex:1;margin:0;overflow:auto}
  .viewing-pdf .map-pdf-preview img{max-height:none}
}
@media(max-width:540px){.pdf-dialog{padding:12px}.pdf-actions{grid-template-columns:1fr}}
@media print{.pdf-dialog{display:none!important}}

.tide-card{margin-top:10px;border:1px solid var(--line);border-radius:6px;overflow:hidden}.tide-card>header{padding:9px 10px;background:var(--soft)}.tide-card h4{margin:0;font-size:.875rem}.tide-card header p{margin:3px 0 0;font-size:.8125rem}.tide-card table{width:100%;border-collapse:collapse;font-size:.8125rem}.tide-card td{padding:7px 9px;vertical-align:top;border-top:1px solid var(--line)}.tide-card td small{display:block;margin-top:2px;color:var(--muted)}.tide-card tr.active{background:#dfece6;font-weight:700}.tide-card>p{margin:8px 10px}.tide-attribution a{color:var(--link)}


.sea-guide ul{margin:8px 0 0;padding-left:20px}.sea-guide li+li{margin-top:7px}.wx .wave{display:block;margin-top:5px;color:#254f58;font-size:.8125rem}.wx .wave small{font-weight:500}

.sea-revier{padding:0 16px 10px}.sea-revier p{font-size:.8125rem;color:var(--muted)}.weather-tip{background:var(--soft);border-radius:5px;padding:8px;font-size:.8125rem;color:var(--ink)}.sea-guide .source-buttons{row-gap:4px}
.map-note a{color:var(--link);font-weight:700}.map-note:empty{display:none}

.route-brief{border-top:1px solid var(--line);padding:12px 17px;margin:0;color:var(--ink)}
.route-brief.card{margin-top:12px;border:1px solid var(--line)}
.route-brief h3{font:680 16px var(--display)}
.route-brief .trip-weather{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:9px 0}
.trip-weather article{background:var(--soft);border-radius:5px;padding:8px 10px;overflow-wrap:anywhere}
.trip-weather article strong,.trip-weather article small{display:block}
.route-brief li+li{margin-top:4px}
@media(max-width:440px){.route-brief .trip-weather{grid-template-columns:1fr}}
.print-toolbar{max-width:800px;margin:0 auto;padding:16px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.print-toolbar .button{width:auto;min-height:44px}
.print-toolbar p{flex-basis:100%;font-size:12px;color:var(--muted)}
@media screen{
  .print-view #print-sheet{display:block;background:#fff;padding:clamp(16px,4vw,40px);margin:0 auto 20px;max-width:800px}
  .print-view .print-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}
  .print-view .print-head img{width:48px}
  .print-view .print-head h1{font-size:23px}
  .print-view .print-map{display:block;width:100%;margin:10px 0 16px}
  .print-view .paper-section{margin-top:12px}
  .print-view .paper-section h2{font-size:16px;border-bottom:1px solid var(--line)}
}
@media print{
  .print-toolbar{display:none!important}
  .print-view{background:#fff}
}

/* Schifffahrtszeichen */
.sign-group{border-radius:8px}
.sign-group+.sign-group{border-top:1px solid var(--line);border-top-left-radius:0;border-top-right-radius:0}
.sign-group>summary{display:flex;align-items:center;gap:12px;min-height:52px;padding:7px 17px;border-radius:inherit;cursor:pointer;list-style:none;font:680 16px/1.25 var(--display)}
.sign-group>summary::-webkit-details-marker{display:none}
.sign-group>summary:hover,.sign-group[open]>summary{background:var(--soft)}
.sign-group>summary::after{content:"";flex:0 0 auto;width:9px;height:9px;margin-left:auto;border:solid var(--copper);border-width:0 2px 2px 0;transform:rotate(45deg)}
.sign-group[open]>summary::after{transform:rotate(225deg)}
.sign-icon{display:grid;place-items:center;flex:0 0 36px;height:36px;border:1px solid #d7d9cd;border-radius:6px;background:#fff}
.sign-icon img{width:30px;height:30px;object-fit:contain}
.sign-icon .buoy{transform:scale(.58);transform-origin:center top}
.signal-icon{display:grid;place-items:center;width:19px;height:24px;border:2px solid #364c4b;border-radius:5px;background:#203332}
.signal-icon i{width:11px;height:11px;border:1px solid #a1ce9a;border-radius:50%}
.sign-reference,.sign-category{scroll-margin-top:16px}
.sign-reference h3{margin-bottom:12px}
.direction-row{display:grid;grid-template-columns:minmax(7rem,.8fr) 1.2fr;gap:8px;align-items:center;padding:8px 11px;background:var(--soft);border-radius:5px;font-size:14px}
.direction-row+.direction-row{margin-top:6px}
.mark-red{color:#9f272a}
.mark-green{color:#156044}
.sign-reference .direction-example{margin:12px 0}
.buoy-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:8px 0}
.buoy-key{display:flex;align-items:center;gap:8px;padding:6px;background:#e7eeea;border-radius:6px;font-size:12px;line-height:1.25}
.sign-split{border-top:1px solid var(--line)}
.sign-reference .sign-keep{margin:8px 0;padding:9px 10px;border-left:3px solid var(--copper);background:var(--linen)}
.sign-category{padding:16px clamp(12px,2vw,20px)}
.sign-category>h3{font:680 20px var(--display)}
.sign-category>p{margin:5px 0 9px}
.sign-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:9px}
.signs-cardinal{grid-template-columns:repeat(4,minmax(0,1fr))}
.sign-entry{display:flex;align-items:center;gap:10px;min-width:0;padding:10px}
.sign-entry img{width:60px;height:58px;object-fit:contain;flex:0 0 60px;background:white;border-radius:4px}
.sign-entry h4,.sign-more h4{margin:0 0 3px;font-size:14px}
.sign-entry h4 small{font-size:.75rem;font-weight:550;color:var(--muted);white-space:nowrap}
.sign-entry p{font-size:.875rem;line-height:1.35;margin:0}
.sign-entry>div>small{display:block;font-size:.8125rem;line-height:1.25;margin-top:4px;color:var(--muted)}
.sign-more{margin-top:10px}
.sign-more summary{font-weight:700;cursor:pointer}
.lock-lights{list-style:none;margin:8px 0;padding:0}
.lock-lights li{margin:4px 0;font-size:.875rem}
.lock-lights span{display:inline-block;width:11px;height:11px;border-radius:50%;margin-right:4px}
.lock-sources{display:flex;flex-wrap:wrap;gap:6px 8px}
.lock .lock-sources{margin-top:8px}
.lock-sources .button,.lock-sources a,.pdf-readable a[data-lock-source]{display:inline-flex;align-items:center;min-height:44px;padding:6px 11px;border:1px solid var(--line);border-radius:5px;background:var(--paper);color:var(--ink);font-size:.875rem;font-weight:650;text-align:left;text-underline-offset:3px}
.lock .lock-sources button{width:100%;justify-content:flex-start}
.lock-sources .button:hover,.lock-sources a:hover,.pdf-readable a[data-lock-source]:hover{background:var(--linen)}
.source-dialog{width:min(94%,490px);max-height:90dvh;margin:auto;padding:18px;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink)}
.source-dialog::backdrop{background:#142f3c80}
.source-dialog h2{font-size:20px}
.source-dialog label{display:block;margin-top:12px;font-weight:650}
.source-dialog input{width:100%;margin:3px 0 10px;padding:8px;font-size:16px}
.source-actions{display:flex;flex-wrap:wrap;gap:7px}
.source-actions .button{min-height:44px;font-size:.875rem}
#lock-source-preview-help,.source-dialog [role=status]:not(:empty){margin-top:8px}
@media print{.source-dialog{display:none!important}}

#map-expand,#map-export{min-height:44px;white-space:nowrap}
.map-dialog{position:fixed;inset:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:var(--paper);color:var(--ink);overflow:hidden}
.map-dialog #map-view{display:flex;flex-direction:column;height:100%}
.map-dialog .map-head{flex:none}
.map-dialog .map{flex:1;min-height:0;height:auto}
.map-dialog .map-search{flex:none;max-height:45%;overflow:auto}
.map-dialog .map-controls button{width:44px;height:44px}
.map-dialog .map-location{min-height:44px}
html:has(.map-dialog[open]){overflow:hidden}

@media print{.map-dialog{display:none!important}}
.map-pdf-preview{margin:14px 0 0}
.map-pdf-preview img{display:block;width:100%;max-height:55vh;object-fit:contain}
.map-pdf-preview figcaption{margin-top:6px;color:var(--muted);font-size:.8125rem;text-align:center;white-space:pre-line}
#map-print-sheet{display:none}
@media print{
  html:has(body.map-print-ready){background:#fff;overflow:visible}
  body.map-print-ready > :not(#map-print-sheet){display:none!important}
  body.map-print-ready #map-print-sheet{display:block;margin:0;padding:var(--map-print-top) 0 0;text-align:center;break-inside:avoid}
  #map-print-image{display:block;width:var(--map-print-width);height:var(--map-print-height);max-width:none;margin:0 auto}
  #map-print-credit{font:8pt/10pt Arial,sans-serif;color:#1a3338;white-space:pre-line;margin-top:2pt}
}
.signal-red{background:#b12b31}
.signal-green{background:#28784f}
.buoy{display:block;position:relative;width:36px;height:54px;flex:0 0 36px;--shape:#212523}
.buoy>b{position:absolute;inset:25px 2px 4px;background:var(--shape);clip-path:polygon(29% 0,71% 0,91% 76%,100% 80%,100% 100%,0 100%,0 80%,9% 76%)}
.buoy>i,.buoy>em{position:absolute;display:block;left:11px;top:2px;width:14px;height:9px;background:var(--shape);clip-path:polygon(50% 0,100% 100%,0 100%)}
.buoy>em{top:13px}
.buoy-red{--shape:#b32630}
.buoy-red>i{clip-path:none;top:12px}
.buoy-green{--shape:#156c4a}
.buoy-green>i{top:12px}
.buoy-green>b{clip-path:polygon(50% 0,91% 76%,100% 80%,100% 100%,0 100%,0 80%,9% 76%)}
.buoy-north>b{background:linear-gradient(#212523 0 50%,#f2c734 50%)}
.buoy-east>b{background:linear-gradient(#212523 0 31%,#f2c734 31% 65%,#212523 65%)}
.buoy-south>b{background:linear-gradient(#f2c734 0 50%,#212523 50%)}
.buoy-west>b{background:linear-gradient(#f2c734 0 31%,#212523 31% 65%,#f2c734 65%)}
.buoy-east>em,.buoy-south>i,.buoy-south>em,.buoy-west>i{transform:rotate(180deg)}
.buoy-danger>b{background:linear-gradient(#212523 0 31%,#c63337 31% 65%,#212523 65%)}
.buoy-danger>i,.buoy-danger>em,.buoy-midpoint>i{width:9px;height:9px;left:13.5px;clip-path:none;border-radius:50%}
.buoy-midpoint>i{background:#b32630;top:12px}
.buoy-midpoint>b{background:repeating-linear-gradient(90deg,#b32630 0 8px,#fff 8px 14px);border-radius:50% 50% 30% 30%;clip-path:none}
.buoy-special{--shape:#d7a814}
.buoy-special>i{height:14px;top:8px;clip-path:polygon(17% 0,50% 33%,83% 0,100% 17%,67% 50%,100% 83%,83% 100%,50% 67%,17% 100%,0 83%,33% 50%,0 17%)}
@media(max-width:1060px){.signs-cardinal{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.sign-grid,.sign-more .sign-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:525px){.sign-grid,.sign-more .sign-grid{grid-template-columns:1fr}.sign-entry img{width:52px;height:50px;flex-basis:52px}}


.map-passages{margin:12px 17px;padding:9px 12px;background:#fff;border:1px solid var(--line);border-radius:6px;font-size:.875rem}
.map-passages summary{cursor:pointer;font-weight:750}
#passage-content>p{margin:8px 0}
.passage-list{list-style:none;padding:0;margin:6px 0}
.passage-list li{border-bottom:1px solid var(--line);padding:7px 0;margin:0}
.passage-list li div{display:flex;gap:3px 10px;flex-wrap:wrap}
.passage-measure{font-size:.94em}
.passage-limit{color:#902f21;font-weight:700}
