/* Plan your charter: a printed preference sheet clipped to a board, the fitting yachts beside it,
   and after sending, the boarding pass. The sheet keeps its paper colours in dark mode (it is paper). */

.plan { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 56px); align-items: start; padding-top: 40px; }
.board {
  position: relative; padding: 48px clamp(12px, 2.4vw, 28px) clamp(12px, 2.4vw, 28px); border-radius: 14px;
  background: linear-gradient(160deg, #31424d, #23323b); box-shadow: 0 40px 70px -30px rgb(11 26 36 / .55), inset 0 1px 0 rgb(255 255 255 / .08);
}
.board-clip {
  position: absolute; top: -16px; left: 50%; width: 170px; height: 54px; transform: translateX(-50%); z-index: 2;
  border-radius: 10px 10px 18px 18px; background: linear-gradient(180deg, #eef1f3 0%, #aab4bb 46%, #dfe4e7 52%, #8f9aa2 100%);
  box-shadow: 0 8px 12px rgb(0 0 0 / .28);
}
.board-clip::after { content: ""; position: absolute; left: 50%; top: 12px; width: 50px; height: 12px; transform: translateX(-50%); border-radius: 7px; background: #6f7a82; opacity: .55; }

.sheet {
  --paper: #fdfdfb; --paper-raised: #ffffff; --ink: #14212a; --ink-2: #33434e; --muted: #5b6a75; --line: #d9e0e4; --line-strong: #b5c1c8;
  --sky-ink: #0670b4; --on-sky: #ffffff; --wash: #eef6fb;
  color-scheme: light; background: var(--paper); color: var(--ink); border-radius: 3px;
  padding: clamp(24px, 4vw, 48px) clamp(18px, 4vw, 52px) clamp(28px, 4vw, 44px);
  box-shadow: 0 1px 2px rgb(0 0 0 / .25);
}
.sheet-title { font-family: var(--serif); font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); line-height: 1.1; padding-bottom: 14px; border-bottom: 3px double var(--ink); }
.sheet-title span { color: var(--sky-ink); }
.ps { border: 0; margin: 0; padding: 26px 0 4px; border-bottom: 1px solid var(--line); display: grid; gap: 16px; min-width: 0; }
.ps legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: 12px; }
.ps legend + * { clear: both; }
.ps .n { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 0.8125rem; }
.ps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.ps-grid .span-2 { grid-column: 1 / -1; }
.fld-end { align-self: end; padding-bottom: 12px; }
.sheet .input, .sheet .select, .sheet .textarea { background: transparent; border: 0; border-bottom: 1.5px solid var(--line-strong); border-radius: 0; padding-left: 2px; }
.sheet .input:focus-visible, .sheet .select:focus-visible, .sheet .textarea:focus-visible { outline: none; border-bottom-color: var(--sky-ink); box-shadow: 0 1px 0 var(--sky-ink); }
.sheet .textarea { border: 1.5px solid var(--line-strong); border-radius: 2px; }

/* printed tick boxes */
.ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-bottom: 14px; }
.tick { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.95rem; min-height: 32px; }
.tick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tick i { width: 20px; height: 20px; border: 1.5px solid var(--ink); border-radius: 2px; position: relative; flex: none; background: #fff; }
.tick input[type="radio"] + i { border-radius: 50%; }
.tick input:checked + i::after { content: ""; position: absolute; left: 5px; top: -4px; width: 7px; height: 15px; border: solid var(--sky-ink); border-width: 0 3px 3px 0; transform: rotate(40deg); }
.tick input[type="radio"]:checked + i::after { left: 4px; top: 4px; width: 9px; height: 9px; border: 0; border-radius: 50%; background: var(--sky-ink); transform: none; }
.tick input:focus-visible + i { outline: 2px solid var(--sky-ink); outline-offset: 2px; }

.pace { display: grid; gap: 8px; padding-bottom: 8px; }
.pace input { width: 100%; accent-color: var(--sky-ink); }
.pace-ends { display: flex; justify-content: space-between; gap: 12px; font-size: 0.8125rem; color: var(--muted); }
.sheet-actions { padding-top: 28px; }
.sheet .form-note { color: var(--ink-2); }

/* the yachts that fit */
.fit { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-raised); }
.fit-n { font-size: 1rem; color: var(--ink-2); }
.fit-n strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 3.4rem; line-height: 1; color: var(--ink); }
.fit-sub { font-size: 0.875rem; color: var(--muted); }
.fit-pin { display: grid; gap: 2px; padding: 12px; border: 1px solid var(--sky-ink); border-radius: var(--radius); text-decoration: none; font-size: 0.875rem; color: var(--ink-2); }
.fit-pin img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; margin-bottom: 8px; }
.fit-pin strong { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; color: var(--ink); }
.fit-pin-k { font-size: 0.75rem; font-weight: 700; color: var(--sky-ink); }
.fit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fit-list a { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: center; text-decoration: none; }
.fit-list img, .fit-noimg { width: 76px; height: 56px; object-fit: cover; border-radius: 2px; background: var(--line); display: block; }
.fit-list span { display: grid; min-width: 0; }
.fit-list strong { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; line-height: 1.15; }
.fit-list small { color: var(--muted); font-size: 0.8125rem; }

@media (max-width: 980px) {
  .plan { grid-template-columns: minmax(0, 1fr); }
  .fit { position: sticky; bottom: 0; top: auto; z-index: 20; padding: 12px 16px; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 14px; border-radius: 0; margin: 0 calc(var(--gutter) * -1); box-shadow: 0 -10px 30px rgb(11 26 36 / .15); order: 2; }
  .fit-n strong { font-size: 2rem; display: inline; margin-right: 6px; }
  .fit-n { grid-column: 1 / -1; }
  .fit-sub { grid-column: 1 / -1; }
  .fit-list, .fit-pinned { display: none; }
}
@media (max-width: 560px) { .ps-grid { grid-template-columns: minmax(0, 1fr); } }

/* the boarding pass */
.plan.is-done { grid-template-columns: minmax(0, 1fr); }
.pass { display: grid; gap: 18px; justify-items: start; }
.pass-h { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.pass-sub { color: var(--ink-2); max-width: 56ch; }
.pass-wrap { width: 100%; max-width: 1000px; margin-top: 12px; filter: drop-shadow(0 30px 40px rgb(11 26 36 / .3)); }
.pass-img { width: 100%; height: auto; }
.pass-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
@media (prefers-reduced-motion: no-preference) {
  .pass-wrap { animation: passIn 1s cubic-bezier(.16, 1, .3, 1) both .1s; }
}
@keyframes passIn { from { opacity: 0; transform: translateY(30px) rotate(-2deg); } }
@media print {
  .site-header, .site-footer, .p-intro, .pass-actions, .pass-sub { display: none !important; }
  .pass-wrap { filter: none; }
}
