/* Section jumps read as navigation; invitations read as actions. */
.home-page .pirate-offer .offer-kind,
.home-page .pirate-offer:nth-child(even) .offer-kind {
  transform: none;
  rotate: 0deg;
}

.home-shore .shore-offers > a {
  position: relative;
  padding-right: 12px;
}
.home-shore .shore-offers > a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
.home-shore .shore-offer-cue {
  display: inline-block;
  margin-top: 14px;
  color: var(--pink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.principle-index-intro {
  margin: 0;
  padding: 20px 5% 2px;
  background: var(--pink);
  font: 14px/1.5 'Space Mono', monospace;
}
.code-page .principle-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  gap: 0 clamp(16px, 5vw, 90px);
  padding: 0 5% 20px;
}
.code-page .principle-index a {
  min-width: 0;
  min-height: 52px;
  align-items: center;
  border-bottom: 1px solid #16161655;
  padding: 10px 0;
  text-decoration: none;
}
.code-page .principle-index a::after {
  content: '↓';
  margin-left: auto;
  padding-left: 8px;
  font-weight: 400;
}
.code-page .principle-index a:hover,
.code-page .principle-index a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.shore-page .shore-routes-intro {
  margin: 0;
  padding: 14px 6% 0;
  font: 14px/1.5 'Space Mono', monospace;
}
.shore-page .shore-routes a {
  min-height: 52px;
  align-items: center;
}
.shore-page .shore-routes a::after {
  content: '↓';
  margin-left: auto;
}
.shore-page .shore-routes a:hover,
.shore-page .shore-routes a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.section-overview a::after {
  content: '↓';
  margin-left: auto;
}
.section-overview a:hover,
.section-overview a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sea-page .ways-grid > a > .text-link {
  display: inline-block;
  width: fit-content;
  min-height: 0;
  padding: 0 0 3px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: inherit;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}
.sea-page .ways-grid > a > .text-link::after { content: ' ↓'; }

.sea-page .crew-hiring > .quiet-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 15px;
  background: var(--pink);
  border: 1px solid var(--pink);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.sea-page .private-voyage .voyage-actions > .quiet-link {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 760px) {
  .site-header #navigation { gap: 8px 15px; }
  .site-header #navigation a { white-space: nowrap; overflow-wrap: normal; }

  #voyages .phone-offer a::after { content: none; }
  #voyages .phone-offer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-top: 15px;
  }
  #voyages .phone-offer .phone-offer-action {
    display: inline-flex;
    width: fit-content;
    min-height: 44px;
    padding: 10px 15px;
    background: var(--pink);
    border: 1px solid var(--ink);
    color: var(--ink);
    font: 500 16px/1.3 Jost, sans-serif;
    text-decoration: none;
  }
  #voyages .pirate-offer:nth-child(odd) .phone-offer-action {
    background: var(--ink);
    color: var(--white);
  }
  #voyages .phone-offer .phone-offer-secondary {
    display: inline-flex;
    width: fit-content;
    min-height: 44px;
    align-items: center;
    font: 500 16px/1.3 Jost, sans-serif;
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .sea-page .sea-overview,
  .code-page .principle-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
  }
  .code-page .principle-index { grid-template-rows: auto; grid-auto-flow: row; }
  body.code-page main .principle-index > a.site-jump {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr;
    gap: 2px 8px;
    align-items: start;
    line-height: 1.25;
    text-wrap: balance;
  }
  .code-page .principle-index a > span { grid-area: 1 / 1 / 2 / -1; }
  .code-page .principle-index a::after { grid-area: 2 / 2; padding-left: 0; }
  .sea-page .sea-overview a:last-child,
  .code-page .principle-index a:last-child { grid-column: 1 / -1; }
  .code-page .principle-index span { font-size: 12px; }
  .shore-page .shore-routes-intro { padding-inline: 24px; }
  .shore-page .shore-routes { padding-top: 0; }

  body main .menu-hero[data-screen-hero] p.menu-hero-lead,
  body.home-page main #top[data-screen-hero] .brand-subtitle {
    font-size: clamp(18px, 4.8vw, 22px);
    line-height: 1.3;
  }
  body main .menu-hero[data-screen-hero] .menu-hero-copy > .text-link,
  body.home-page main #top[data-screen-hero] .home-hero-actions > .brand-cta {
    min-height: 44px;
    padding: 9px 13px;
    font-size: 16px;
    line-height: 1.3;
  }
  .shore-page .shore-port { margin-top: 30px; }
  .shore-page .shore-port > img { margin-bottom: 10px; }

  body.sea-page .ways-grid > a > .text-link {
    position: static;
    transform: none;
    width: fit-content;
    min-height: 0;
    margin-top: 12px;
    padding: 0 0 3px;
    border-bottom: 1px solid currentColor;
    font-size: 16px;
  }
}
