/* Concept 14: Your desk (returning visitors). */

.yd {
  --yd-ink: hsl(var(--foreground)); --yd-mute: hsl(var(--muted-foreground)); --yd-line: hsl(var(--border));
  --yd-brass: var(--mf-brass, #a88f5c);
  padding: 72px 0 64px; background: hsl(var(--background)); border-bottom: 1px solid var(--yd-line);
}
.yd[hidden] { display: none; }

.yd-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--yd-ink); }
.yd-eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 14px;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--yd-brass);
}
.yd-eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.yd-last { color: var(--yd-mute); letter-spacing: 0.14em; }
.yd-last:not(:empty)::before { content: "·"; margin-right: 12px; color: var(--yd-brass); }
.yd h2 { margin: 0; font-family: var(--mf-serif, serif); font-weight: 500; font-size: clamp(34px, 3.6vw, 48px); line-height: 1.05; }
.yd-hide { padding: 6px 0; font: inherit; font-size: 12px; color: var(--yd-mute); background: none; border: 0; border-bottom: 1px solid var(--yd-line); cursor: pointer; }
.yd-hide:hover { color: var(--yd-ink); border-bottom-color: var(--yd-ink); }

.yd-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px 48px; margin-top: 28px; }
.yd-col h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-family: var(--mf-serif, serif); font-weight: 500; font-size: 22px; }
.yd-col h3 span { font-family: "DM Sans", system-ui, sans-serif; font-size: 12px; letter-spacing: 0.06em; color: var(--yd-mute); }

.yd-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--yd-line); }
.yd-list li { border-bottom: 1px solid var(--yd-line); }
.yd-list a, .yd-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ref side" "type side";
  column-gap: 14px; row-gap: 2px; align-items: center; padding: 11px 0; color: var(--yd-ink); text-decoration: none;
}
.yd-list a:hover .yd-type { text-decoration: underline; text-underline-offset: 3px; }
.yd-ref { grid-area: ref; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--yd-brass); }
.yd-type { grid-area: type; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yd-side { grid-area: side; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 13.5px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.yd-side s { font-size: 11.5px; font-weight: 400; color: var(--yd-mute); }
.yd-flag { font-size: 11px; font-weight: 400; letter-spacing: 0.04em; color: var(--yd-mute); }
.yd-flag.is-changed { color: var(--yd-brass); font-weight: 500; font-size: 13px; }
.yd-row { grid-template-areas: "type side" "flag side"; }
.is-gone .yd-type { color: var(--yd-mute); text-decoration: line-through; }
.is-gone .yd-flag { grid-area: flag; }
.yd-x { grid-area: side; padding: 3px 9px; font: inherit; font-size: 11px; color: var(--yd-mute); background: none; border: 1px solid var(--yd-line); cursor: pointer; }
.yd-x:hover { color: var(--yd-ink); border-color: var(--yd-ink); }

.yd-empty, .yd-note { margin: 0; font-size: 13px; line-height: 1.6; color: var(--yd-mute); }
.yd-note { margin-top: 10px; }
.yd-empty a, .yd-note a { color: var(--yd-ink); }
.yd-btn {
  display: inline-flex; gap: 8px; margin-top: 16px; padding: 12px 20px; font-size: 13.5px; letter-spacing: 0.03em;
  color: hsl(var(--background)); background: var(--yd-ink); text-decoration: none; transition: opacity 0.2s;
}
.yd-btn:hover { opacity: 0.88; }
.yd-private { margin: 26px 0 0; font-size: 11.5px; color: hsl(var(--muted-foreground) / 0.8); }
.yd a:focus-visible, .yd button:focus-visible { outline: 1px solid var(--yd-ink); outline-offset: 3px; }

/* Vessel page shortlist toggle */
.yd-sl {
  display: flex; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; padding: 12px 16px;
  font: inherit; font-size: 13.5px; color: hsl(var(--foreground)); background: transparent; border: 1px solid hsl(var(--border)); cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.yd-sl:hover { border-color: hsl(var(--foreground)); }
.yd-sl[aria-pressed="true"] { background: hsl(var(--secondary)); border-color: hsl(var(--foreground) / 0.4); }
.yd-sl span { color: var(--mf-brass, #a88f5c); }
@media print { .yd-sl { display: none; } }

@media (max-width: 640px) {
  .yd { padding: 56px 0 48px; }
  .yd-head { flex-direction: column; align-items: flex-start; }
  .yd-btn { width: 100%; justify-content: center; }
}
