/* Ship pages, plus the entity components the cruise-line and destination pages reuse:
   hero, in-page chart nav, spec plate, star ratings, Bliss gauges, highlight tiles, the
   dining menu, photo strips, cruise ticket rows, versus links and the CTA band. */

/* ------------------------------------------------------------------ hero */

.entity-hero {
  position: relative; overflow: hidden;
  color: var(--on-dark);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(249, 129, 47, 0.2) 0%, transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(32, 168, 236, 0.22) 0%, transparent 62%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  padding-block: var(--s-6) var(--s-7);
  margin-top: var(--s-4);
}
/* soundings: faint contour rings behind the title */
.entity-hero::before {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 70vmax; aspect-ratio: 1;
  background: repeating-radial-gradient(circle, transparent 0 26px, rgba(127, 212, 232, 0.07) 27px 28px);
  pointer-events: none;
}
.entity-hero__grid { position: relative; display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 60rem) {
  .entity-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s-7); }
}
.entity-hero__text { display: grid; gap: var(--s-4); justify-items: start; min-width: 0; }
.entity-hero .eyebrow a { color: inherit; text-decoration: none; }
.entity-hero .eyebrow a:hover { text-decoration: underline; }
.entity-hero h1 { color: #fff; font-size: var(--step-5); max-width: 16ch; }
.entity-hero__badges { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.entity-hero__badges:empty { display: none; }
.badge--hull { color: var(--on-dark); background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); }
.entity-hero__lede { font-size: var(--step-1); line-height: 1.55; color: #b6cddb; max-width: 50ch; }
.entity-hero__lede > * + * { margin-top: 0.7em; }
.entity-hero__lede a { color: var(--cyan-soft); }
.entity-hero__stats {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6);
  padding-top: var(--s-4); border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.entity-hero__stats li { display: grid; }
.entity-hero__stats strong { font: 700 var(--step-3)/1 var(--font-display); color: #fff; letter-spacing: -0.01em; }
.entity-hero__stats span { font-size: var(--step--2); letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: 0.35rem; }
.entity-hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }
.entity-hero__cta .btn--ghost { color: #fff; }
.entity-hero__media { position: relative; margin: 0; }
.entity-hero__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
/* a porthole ring pinned to the photo's corner */
.entity-hero__media::after {
  content: ""; position: absolute; right: -14px; bottom: -14px; width: 68px; height: 68px; border-radius: 50%;
  border: 6px solid var(--amber); box-shadow: inset 0 0 0 5px var(--navy-900), 0 0 0 5px var(--navy-900);
  opacity: 0.9;
}
@media (max-width: 39.99rem) {
  .entity-hero__media { order: -1; }
  .entity-hero__media::after { width: 48px; height: 48px; right: -6px; bottom: -10px; border-width: 5px; }
}

/* ------------------------------------------------------------------ in-page nav */

.toc {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.toc__list { display: flex; gap: var(--s-1); overflow-x: auto; scrollbar-width: none; }
.toc__list::-webkit-scrollbar { display: none; }
.toc a {
  display: block; white-space: nowrap; padding: 0.8rem 0.75rem;
  font-size: var(--step--1); font-weight: 650; color: var(--ink-2); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.toc li:first-child a { padding-left: 0; }
.toc a:hover { color: var(--cyan-ink); border-bottom-color: var(--amber); }
:where(#specs, #bliss, #review, #dining, #photos, #cruises, #compare, #fleet, #destinations, #ports, #ships, #lines) { scroll-margin-top: 3.5rem; }

/* ------------------------------------------------------------------ section furniture */

.section-title { margin: var(--s-2) 0 var(--s-5); max-width: 28ch; }
.subhead { margin: var(--s-7) 0 var(--s-4); font-size: var(--step-2); }
.section-bar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-3) var(--s-5); margin-bottom: var(--s-5); }
.section-bar .section-title { margin-bottom: 0; }
.read-more { margin-top: var(--s-5); }
.review-more { margin-top: var(--s-5); }
.review-more > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 0.72em 1.3em; border-radius: var(--radius-pill); background: var(--navy-800); color: #fff; font-weight: 650;
}
.review-more > summary::-webkit-details-marker { display: none; }
.review-more > summary::after { content: "+"; color: var(--amber-soft); font-weight: 700; }
.review-more[open] > summary { margin-bottom: var(--s-5); }
.review-more[open] > summary::after { content: "\2212"; }
.empty {
  padding: var(--s-5); border: 2px dashed var(--line-strong); border-radius: var(--radius-m);
  color: var(--ink-2); background: var(--paper); max-width: 48rem;
}

/* ------------------------------------------------------------------ spec plate */

.spec-plate { display: grid; gap: var(--s-5); }
@media (min-width: 60rem) { .spec-plate { grid-template-columns: 17rem minmax(0, 1fr); align-items: start; gap: var(--s-7); } }
.spec-plate__head { display: grid; gap: var(--s-3); align-content: start; }
.spec-plate__head h2 { margin-bottom: var(--s-2); }
.spec-plate__facts { box-shadow: var(--shadow-s); }
.spec-plate__facts > div { position: relative; }
/* rivets */
.spec-plate__facts > div::before {
  content: ""; position: absolute; top: 8px; right: 8px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--line-strong);
}
.facts .facts__note { font: 400 var(--step--2)/1.3 var(--font-text); color: var(--muted); margin-top: 0.2rem; }
.facts .facts__code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: var(--step-1); letter-spacing: 0.04em; }

/* ------------------------------------------------------------------ ratings */

.ratings { display: grid; gap: var(--s-2); }
.ratings__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-1) var(--s-3); padding-bottom: var(--s-2); border-bottom: 1px dotted var(--line-strong); }
.ratings dt { font-size: var(--step--1); font-weight: 600; color: var(--ink-2); }
.ratings dd { margin: 0; display: inline-flex; align-items: center; gap: var(--s-2); }
.ratings__num { font-weight: 700; font-variant-numeric: tabular-nums; }
.ratings__num small { font-weight: 400; color: var(--muted); }
.stars {
  --pct: calc(var(--stars) / 5 * 100%);
  display: inline-block; font-size: 1.05rem; line-height: 1; letter-spacing: 0.08em;
  background: linear-gradient(90deg, var(--amber) var(--pct), var(--line-strong) var(--pct));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stars::before { content: "\2605\2605\2605\2605\2605"; }
.awards { list-style: none; padding: 0; display: grid; gap: var(--s-2); }
.awards li {
  position: relative; padding-left: 1.6rem; font-size: var(--step--1); line-height: 1.4; color: var(--ink-2);
}
/* a laurel-ish medal: amber disc on a ribbon notch */
.awards li::before {
  content: ""; position: absolute; left: 0; top: 0.1em; width: 1rem; height: 1rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--amber-soft), var(--amber) 70%);
  box-shadow: 0 0 0 2px var(--sand), 0 0 0 3px #e7cfae;
}

/* ------------------------------------------------------------------ bliss gauges */

.bliss { display: grid; gap: var(--s-6); }
@media (min-width: 60rem) { .bliss { grid-template-columns: 20rem minmax(0, 1fr); gap: var(--s-7); align-items: start; } }
.bliss__head { display: grid; gap: var(--s-3); align-content: start; }
.bliss__gauges { display: grid; gap: var(--s-3) var(--s-6); counter-reset: g; }
@media (min-width: 40rem) { .bliss__gauges { grid-template-columns: 1fr 1fr; } }
.gauge { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label value" "track track"; gap: 0.35rem var(--s-3); align-items: baseline; }
.gauge__label { grid-area: label; font-size: var(--step--1); font-weight: 600; color: var(--ink-2); }
.gauge__value { grid-area: value; font: 700 var(--step-1)/1 var(--font-display); color: var(--ink); }
.gauge__track {
  grid-area: track; position: relative; height: 12px; border-radius: 6px; overflow: hidden;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(46, 97, 115, 0.22) calc(10% - 1px) 10%),
    var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}
.gauge__fill {
  position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 10%);
  background: linear-gradient(90deg, var(--harbour), var(--cyan));
  border-radius: 6px;
  transform-origin: left; animation: gauge-in 0.9s var(--ease) 0.2s both;
}
.gauge--top .gauge__fill { background: linear-gradient(90deg, var(--amber), var(--amber-soft)); }
.gauge--top .gauge__value { color: var(--amber-ink); }
@keyframes gauge-in { from { transform: scaleX(0); } }

/* ------------------------------------------------------------------ review */

.logbook {
  padding: var(--s-5); border-radius: var(--radius-m);
  background:
    repeating-linear-gradient(180deg, transparent 0 calc(1.65em - 1px), rgba(46, 97, 115, 0.12) calc(1.65em - 1px) 1.65em),
    var(--sand);
  border: 1px solid #f1dcc0;
}
.logbook h3 { margin-bottom: var(--s-3); }
.logbook ul { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
.logbook li { position: relative; padding-left: 1.5rem; font-size: var(--step--1); line-height: 1.55; color: var(--ink-2); }
.logbook li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 0.7rem; height: 0.7rem;
  border: 2px solid var(--amber); border-radius: 50%;
}

.tiles { list-style: none; padding: 0; display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr)); }
.tile { display: grid; gap: 0.2rem; align-content: start; }
.tile__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-m); background: var(--paper-alt); margin-bottom: var(--s-2); }
.tile__img--blank { display: block; background: linear-gradient(135deg, var(--paper-alt), var(--line)); }
.tile__title { font: 700 var(--step-1)/1.2 var(--font-display); }
.tile__meta { font-size: var(--step--1); color: var(--muted); }

/* ------------------------------------------------------------------ dining menu */

.menu { list-style: none; padding: 0; display: grid; gap: 0 var(--s-7); }
@media (min-width: 60rem) { .menu { grid-template-columns: 1fr 1fr; } }
.menu__item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-4); align-items: center;
  padding-block: var(--s-3); border-bottom: 1px dashed #e7cfae;
}
.menu__img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 0 0 4px #e7cfae; }
.menu__item:not(:has(.menu__img)) { grid-template-columns: minmax(0, 1fr) auto; }
.menu__text { display: grid; min-width: 0; }
.menu__name { font: 700 var(--step-1)/1.25 var(--font-display); }
.menu__meta { font-size: var(--step--1); color: var(--ink-2); }
.menu__cost { font-size: var(--step--2); font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--harbour); text-align: right; max-width: 8rem; }
.menu__cost--extra { color: var(--amber-ink); }

/* ------------------------------------------------------------------ photo strips */

.strip + .strip { margin-top: var(--s-6); }
.strip__head { font-size: var(--step-1); margin-bottom: var(--s-3); }
.strip .strip__list {
  list-style: none; display: flex; gap: var(--s-3); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100% - var(--shell-max)) / 2));
  padding: 0 max(var(--gutter), calc((100% - var(--shell-max)) / 2)) var(--s-3);
  scrollbar-width: thin;
}
.strip__list li { flex: 0 0 auto; scroll-snap-align: start; width: min(72vw, 320px); }
.strip__list figure { margin: 0; }
.strip__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-m); background: var(--paper-alt); }
.strip__list figcaption { margin-top: var(--s-2); font-size: var(--step--2); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ------------------------------------------------------------------ cruise ticket rows */

.cruise-rows { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
.cruise-row {
  position: relative; display: grid; gap: var(--s-3);
  padding: var(--s-4) var(--s-5); border-radius: var(--radius-m);
  background: var(--paper); border: 1px solid var(--line); color: inherit; text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.cruise-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); border-color: var(--line-strong); text-decoration: none; }
.cruise-row__main { display: grid; gap: 0.2rem; min-width: 0; }
.cruise-row__title { font: 700 var(--step-1)/1.25 var(--font-display); font-variation-settings: "opsz" 24; color: var(--ink); }
.cruise-row:hover .cruise-row__title { color: var(--cyan-ink); }
.cruise-row__meta { font-size: var(--step--1); color: var(--muted); }
.cruise-row__stub {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-4);
  padding-top: var(--s-3); border-top: 2px dashed var(--line);
  font-size: var(--step--1); color: var(--ink-2);
}
.cruise-row__stub small { font-size: var(--step--2); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cruise-row__price { margin-left: auto; }
.cruise-row__price strong { font-size: var(--step-1); color: var(--amber-ink); }
@media (min-width: 48rem) {
  .cruise-row { grid-template-columns: minmax(0, 1fr) 17rem; align-items: center; gap: var(--s-5); }
  .cruise-row__stub {
    display: grid; grid-template-columns: 1fr auto; gap: 0.15rem var(--s-3);
    padding: 0 0 0 var(--s-5); border-top: 0; border-left: 2px dashed var(--line);
  }
  .cruise-row__date { grid-column: 1 / -1; }
  .cruise-row__price { margin-left: 0; grid-column: 2; grid-row: 2; text-align: right; }
  .cruise-row__count { grid-column: 1; grid-row: 2; }
  /* ticket notches where the perforation meets the edges */
  .cruise-row::before, .cruise-row::after {
    content: ""; position: absolute; right: calc(17rem + var(--s-5) - 9px); width: 18px; height: 9px;
    background: var(--paper-alt); border: 1px solid var(--line);
  }
  .cruise-row::before { top: -1px; border-top: 0; border-radius: 0 0 9px 9px; }
  .cruise-row::after { bottom: -1px; border-bottom: 0; border-radius: 9px 9px 0 0; }
}
.section:not(.section--alt) .cruise-row::before, .section:not(.section--alt) .cruise-row::after { background: var(--paper); }
.cruise-more { margin-top: var(--s-3); }
.cruise-more summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 0.6em 1.1em; border-radius: var(--radius-pill); border: 1px solid var(--line-strong);
  font-weight: 650; font-size: var(--step--1); color: var(--ink-2); background: var(--paper);
}
.cruise-more summary::-webkit-details-marker { display: none; }
.cruise-more summary::after { content: "+"; font-weight: 700; color: var(--amber-ink); }
.cruise-more[open] summary { margin-bottom: var(--s-3); }
.cruise-more[open] summary::after { content: "\2212"; }
.cruise-more[open] summary span { font-size: 0; }
.cruise-more[open] summary span::before { content: "Show fewer"; font-size: var(--step--1); }
.cruise-rows__note { margin-top: var(--s-4); }

/* ------------------------------------------------------------------ versus */

.versus { list-style: none; padding: 0; display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.versus__link {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--s-1) var(--s-3);
  height: 100%; padding: var(--s-3) var(--s-4); border-radius: var(--radius-m);
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none;
  font-weight: 650; font-size: var(--step--1); line-height: 1.3;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.versus__link:hover { border-color: var(--amber); box-shadow: var(--shadow-s); text-decoration: none; }
.versus__a { color: var(--muted); font-weight: 500; }
.versus__vs {
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  font: 700 0.7rem/1 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy-950); background: var(--amber-soft);
}
.versus__b { text-align: right; }
.versus__line { grid-column: 3; text-align: right; font-size: var(--step--2); font-weight: 500; color: var(--muted); }

/* ------------------------------------------------------------------ overheard, cta */

.overheard { margin: 0; display: grid; gap: var(--s-3); max-width: 48rem; }
.overheard blockquote { padding-left: var(--s-5); border-left: 3px solid var(--amber); font: 500 var(--step-1)/1.5 var(--font-display); font-variation-settings: "opsz" 24; color: var(--ink-2); }
.overheard blockquote p:has(> a:only-child) { font: 600 var(--step--1)/1.4 var(--font-text); }

.cta-band { margin-top: var(--s-6); }
.cta-band__inner { display: grid; gap: var(--s-4); justify-items: start; max-width: 44rem; }
.cta-band .btn--ghost { color: #fff; }

/* ------------------------------------------------------------------ indexes */

.jump { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.jump a {
  padding: 0.3em 0.8em; border-radius: var(--radius-pill); border: 1px solid var(--line);
  font-size: var(--step--1); color: var(--ink-2); text-decoration: none; background: var(--paper);
}
.jump a:hover { border-color: var(--amber); color: var(--ink); }
.fleet-index { display: grid; gap: var(--s-6); columns: 1; }
@media (min-width: 48rem) { .fleet-index { display: block; columns: 2; column-gap: var(--s-7); } }
@media (min-width: 75rem) { .fleet-index { columns: 3; } }
.fleet-index__line { break-inside: avoid; padding-bottom: var(--s-6); }
.fleet-index__line h2 { font-size: var(--step-2); padding-bottom: var(--s-2); margin-bottom: var(--s-3); border-bottom: 2px solid var(--ink); }
.fleet-index__line h2 a { color: inherit; text-decoration: none; }
.fleet-index__line h2 a:hover { color: var(--cyan-ink); }
.fleet-index__ships { list-style: none; padding: 0; display: grid; gap: 0.3rem; }
.fleet-index__ships li { display: flex; justify-content: space-between; gap: var(--s-3); border-bottom: 1px dotted var(--line); padding-bottom: 0.3rem; }
