:root {
  --ink: #1d1d1f;
  --muted: #6e6e73; /* 4.6:1 on --paper, 5:1 on white (was #86868b, 3.3:1) */
  --blue: #0066cc;
  --blue-dark: #2997ff;
  --line: #d2d2d7;
  --paper: #f5f5f7;
  --black: #000;
  --focus: #0066cc;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
h1 { font-size: clamp(40px, 6vw, 64px); margin: 0 0 8px; }
h2 { font-size: clamp(28px, 4vw, 40px); margin: 56px 0 12px; }
h3 { font-size: 21px; margin: 0 0 4px; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 12px; }

.skip, .sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.skip:focus {
  width: auto;
  height: auto;
  clip: auto;
  z-index: 40;
  left: 12px;
  top: 12px;
  background: #fff;
  padding: 8px 12px;
}

/* The site header and menu are styled in nav.css. */

button, .button {
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 980px;
  min-height: 36px;
  padding: 0 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
button:hover, .button:hover { text-decoration: none; background: #0077ed; }
.button--ghost { background: transparent; color: var(--blue-dark); border: 0; }
.text-button { background: none; color: var(--blue); border: 0; min-height: 0; padding: 0; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
summary:focus-visible, [tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  /* A white ring inside the blue one, so focus shows on the navy heads and the dark header too. */
  box-shadow: 0 0 0 2px #fff;
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background: var(--black);
  overflow: hidden;
}
.hero--short { min-height: 68vh; }
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.62));
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 96px 24px 72px;
  max-width: 860px;
}
.kicker, .eyebrow {
  margin: 0 0 14px;
  color: #a1a1a6;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-size: clamp(56px, 8vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.hero .lede, .lede {
  margin: 12px auto 0;
  max-width: 640px;
  color: #a1a1a6;
  font-size: clamp(19px, 2vw, 24px);
}
.hero .lede { color: #d2d2d7; }
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 22px;
}
.hero-actions a,
.hero .button,
.hero .button--ghost {
  background: transparent;
  color: var(--blue-dark);
  border: 0;
  min-height: 0;
  padding: 0;
  font-size: 21px;
  text-decoration: none;
}
.hero-actions a:hover,
.hero .button:hover,
.hero .button--ghost:hover { background: transparent; text-decoration: underline; }

.wrap {
  width: min(1060px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 48px;
}
.wrap > h1 { font-size: clamp(48px, 7vw, 80px); }
.prose p, .prose-page p { max-width: 40rem; color: #424245; font-size: 19px; }
.meta, .quiet { color: var(--muted); }
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.card {
  background: var(--paper);
  border: 0;
  border-radius: 18px;
  padding: 0 0 20px;
  overflow: hidden;
}
.card a { color: inherit; text-decoration: none; }
.card h3 { padding: 16px 18px 0; }
.idea-link {
  display: block;
  padding: 20px 18px 18px;
  color: inherit;
  text-decoration: none;
}
.idea-link:hover { text-decoration: none; }
.idea-link h3 { padding: 0; }
.idea-link:hover h3 { color: var(--blue); }
.kicker { margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.idea-link p { margin: 0 0 8px; font-size: 15px; color: #424245; }
.idea-link .best { margin: 4px 0 0; color: var(--ink); font-size: 14px; }
.card h3 a:hover { color: var(--blue); }
.card .price, .card .meta { margin: 4px 18px 0; }
.card .price { font-size: 14px; }
.card .meta { font-size: 14px; }
.ph { background: #e8e8ed; width: 100%; display: block; }
.ph--card { aspect-ratio: 3 / 2; }
.ph--hero { aspect-ratio: 16 / 9; border-radius: 18px; max-height: 28rem; background: #e8e8ed; }
.ph--thumb { aspect-ratio: 1; border-radius: 12px; }
.ph--logo { width: 36px; height: 36px; border-radius: 8px; }
.ph--ad { background: var(--paper); min-height: 8rem; border-radius: 18px; }
.ph--square { width: 18rem; max-width: 100%; aspect-ratio: 1; }

.filters, .stack, .newsletter { display: grid; gap: 12px; }
.filters {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: end;
  margin: 28px 0 32px;
}
.filters label, .stack label, .newsletter label, .dialog label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.filters input, .filters select, .stack input, .stack select, .stack textarea,
.newsletter input, .dialog input, .dialog select {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--paper);
  padding: 0 14px;
}
.stack textarea { min-height: 140px; padding: 12px 14px; }
.filters button { height: 44px; }
.stack { max-width: 560px; margin-top: 28px; }
.check { display: flex !important; grid-template-columns: none; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; }
.check input { width: auto; min-height: 0; }
.empty { color: var(--muted); padding: 12px 0; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 44rem; }
th, td { text-align: left; padding: 18px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.builder-name { display: flex; align-items: center; gap: 12px; color: inherit; font-weight: 600; text-decoration: none; }
.builder-name:hover { color: var(--blue); }

.stats, .record {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.stats div, .record div { margin: 0; }
dt { color: var(--muted); font-size: 12px; }
dd { margin: 4px 0 0; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.record dd { font-size: 17px; font-weight: 400; letter-spacing: 0; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs .ph { width: 96px; }
.placements { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 12px; margin: 28px 0; }
.cost-list { list-style: none; padding: 0; max-width: 32rem; }
.cost-list li { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 12px 0; }
.pager { display: flex; gap: 18px; align-items: center; margin-top: 28px; font-size: 17px; }
.messages { list-style: none; margin: 0; padding: 12px 22px; background: var(--paper); color: var(--ink); }

.site-footer {
  background: var(--paper);
  color: #6e6e73;
  padding: 36px 22px 28px;
  font-size: 12px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  width: min(1060px, 100%);
  margin: 0 auto 28px;
}
.site-footer h2 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0 0 8px;
}
.site-footer a { color: #424245; text-decoration: none; display: block; margin: 7px 0; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { color: #6e6e73; }
.newsletter button { justify-self: start; }
.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  width: min(1060px, 100%);
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.legal a { display: inline; margin: 0; color: var(--muted); }

.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  width: min(420px, calc(100% - 32px));
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(29, 29, 31, 0.92);
  color: #fff;
  backdrop-filter: blur(16px);
}
.cookie p { margin: 0; font-size: 14px; }
.cookie button { background: #fff; color: var(--ink); }
.cookie[hidden] { display: none; }

.dialog {
  width: min(560px, calc(100% - 32px));
  border: 0;
  border-radius: 18px;
  padding: 28px 32px 32px;
  color: var(--ink);
  background: #fff;
}
.dialog::backdrop { background: rgba(0, 0, 0, 0.48); backdrop-filter: blur(8px); }
.dialog h2 { margin: 0 0 18px; font-size: 32px; }
.dialog .text-button { color: var(--blue); }
.row-actions { display: flex; gap: 18px; align-items: center; margin-top: 8px; }
.error { color: #b64432; margin: 0; }

.show-row { display: grid; grid-template-columns: 7rem 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.show-date { display: flex; flex-direction: column; font-weight: 600; letter-spacing: -0.02em; }
.show-date span:last-child { color: var(--muted); font-size: 14px; font-weight: 400; }
.kind-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 8px 0 20px; }
.show-page, .show-page h1, .show-page h2, .show-page h3, .show-page .show-date { font-family: inherit; }
.honesty { max-width: 40rem; color: #424245; }
.debut-list { padding-left: 1.1rem; }
.debut-list li { margin: 12px 0; }
table.participants { min-width: 0; }
.socials { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 8px 0 20px; }
.ig-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 8px 0 24px; }
.ig-grid a { display: block; color: inherit; text-decoration: none; }
.ig-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #e8e8ed; }
.ig-grid span, .yt-grid figcaption { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.yt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 8px 0 24px; }
.yt-grid figure { margin: 0; }
.yt-grid iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #111; }
.photo-count { color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  .placements, .yt-grid { grid-template-columns: 1fr; }
  .ig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 734px) {
  .hero { min-height: 78vh; }
  .hero h1 { font-size: 48px; }
  .stats, .record { grid-template-columns: 1fr 1fr; }
  .wrap { width: min(100% - 32px, 1060px); padding-top: 48px; }
}
@media (max-width: 700px) {
  table.participants thead { display: none; }
  table.participants, table.participants tbody, table.participants tr, table.participants td { display: block; width: 100%; }
  table.participants tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  table.participants td { border: 0; padding: 4px 0; }
  table.participants td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    color: var(--muted);
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero video { display: none; }
}

/* Listings: claim, upgrade, badges */
.badge {
  display: inline-block;
  vertical-align: middle;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 980px;
  background: var(--paper);
  color: var(--ink);
}
.badge--claimed { background: #e8f2fc; color: #0055aa; }
.badge--premium { background: #1d1d1f; color: #fff; }
.badge--featured { background: #b8860b; color: #fff; }
h1 .badge { font-size: 14px; margin-left: 8px; }
.claim-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 32px 0;
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--paper);
}
.claim-cta p { margin: 0; }
.listing-logo { max-height: 72px; width: auto; margin: 0 0 16px; }
.contact-list { list-style: none; padding: 0; display: grid; gap: 6px; }
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.plan {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  background: #fff;
}
.plan--highlight { border: 2px solid var(--blue); }
.plan h3 { font-size: 24px; }
.plan .price { font-size: 28px; font-weight: 600; margin: 8px 0 16px; }
.plan ul { padding-left: 18px; margin: 0 0 20px; flex: 1; }
.plan li { margin-bottom: 6px; font-size: 15px; }
.plan-choice { display: grid; gap: 8px; }
.plan-choice label { flex-direction: row !important; gap: 8px; align-items: center; }
.plan-choice ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plan-choice li label {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.errorlist { color: #b00020; font-size: 14px; list-style: none; padding: 0; margin: 4px 0 0; }
.find-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.find-results ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.steps { padding-left: 20px; }
.steps li { margin-bottom: 8px; }
tr.is-featured td { background: #fffaf0; }
@media (max-width: 900px) {
  .plans, .find-results { grid-template-columns: 1fr; }
}
.contact-company { margin: 32px 0; max-width: 560px; }
.listing-stats { margin: 28px 0; }
.listing-stats__totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.listing-stats__totals div { border: 1px solid #e5e5ea; border-radius: 8px; padding: 14px; }
.listing-stats__totals strong { display: block; font-size: 28px; }
.listing-stats table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.listing-stats th, .listing-stats td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #e5e5ea; }
@media (max-width: 600px) {
  .listing-stats__totals { grid-template-columns: 1fr; }
}

/* Inside left-aligned content pages the lede follows the text column. */
.wrap .lede { margin-left: 0; margin-right: 0; }

/* Compare: toggle on cards and detail pages, and the side-by-side table. */
.compare-toggle { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 10px 18px 16px; font-size: 14px; }
.compare-toggle form { margin: 0; }
.compare-toggle button:disabled { color: var(--muted); cursor: not-allowed; }
.compare-count { color: var(--blue); }
.compare-scroll { overflow-x: auto; margin-top: 24px; -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.compare-table th, .compare-table td { padding: 12px 14px; border-bottom: 1px solid var(--line, #e3e3e3); text-align: left; vertical-align: top; }
.compare-table thead th { font-weight: 600; }
.compare-table tbody th { font-weight: 400; color: var(--muted); width: 22%; }
.compare-table td.is-best { background: rgba(0, 113, 227, 0.07); }
.compare-remove { margin: 6px 0 0; }
.compare-remove button { font-size: 13px; }
.compare .row-actions { margin-top: 20px; }

/* Listing alert sign-up box. */
.alert-box { margin-top: 40px; padding: 24px; background: var(--paper); max-width: 560px; }
.alert-box h2 { margin-top: 0; }
.alert-box .stack { margin-top: 16px; }
.alert-box__range { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .alert-box__range { grid-template-columns: 1fr; } }
.alert-box .alert-box__check { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.alert-box .alert-box__check input { width: 20px; min-height: 20px; flex: 0 0 auto; }

.compare-toggle__view { font-size: 13px; font-weight: 600; }

/* The compare tray: a quiet bar that says what is shortlisted and where to compare it. */
.compare-tray { position: fixed; z-index: 40; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); padding: 10px 12px 10px 18px; background: rgba(11, 18, 32, 0.94); color: #fff; border-radius: 980px; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.55); font-size: 13px; }
.compare-tray__count { margin: 0; white-space: nowrap; }
.compare-tray__names { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; overflow: hidden; color: rgba(255, 255, 255, 0.7); white-space: nowrap; }
.compare-tray__go { padding: 6px 14px; border-radius: 980px; background: #c9a96a; color: #0b1220; font-weight: 600; white-space: nowrap; text-decoration: none; }
.compare-tray__go:hover { background: #e6d3a8; text-decoration: none; }
@media (max-width: 640px) { .compare-tray__names { display: none; } }

/* Share: understated, a word and a small arrow; the menu opens beneath it. */
.share { position: relative; display: inline-block; margin-top: 14px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.share summary { display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; opacity: 0.75; }
.share summary::-webkit-details-marker { display: none; }
.share summary:hover, .share[open] summary { opacity: 1; }
.share summary svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.share--dark { color: #e6d3a8; }
.share--light { color: #0b1220; }
.share__menu { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; min-width: 170px; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid rgba(11, 18, 32, 0.12); border-radius: 8px; box-shadow: 0 16px 36px -16px rgba(11, 18, 32, 0.45); text-transform: none; letter-spacing: 0; font-size: 14px; }
.share .share__menu a, .share .share__menu button { display: block; width: 100%; min-height: 0; padding: 7px 10px; border: 0; border-radius: 5px; background: none; color: #0b1220; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.share__menu a:hover, .share__menu button:hover { background: #f5f1e8; color: #0b1220; text-decoration: none; }

/* Catalogue: yacht photos shown with permission, always with their credit line (catalogue/photos.py) */
.yacht-photo { margin: 0; }
.yacht-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #e8e8ed; }
.yacht-photo__credit { margin-top: 6px; font-size: 12px; line-height: 1.4; opacity: 0.75; }
.yacht-photo--card { margin: -28px -28px 20px; }
.yacht-photo--card .yacht-photo__credit { padding: 0 28px; }
.yacht-photo--hero img { aspect-ratio: 16 / 9; max-height: 34rem; }
.thumbs .yacht-photo--thumb { width: 160px; }
@media (max-width: 640px) { .yacht-photo--card { margin: -24px -24px 18px; } .yacht-photo--card .yacht-photo__credit { padding: 0 24px; } }

/* Site search box in the header, with its type-ahead list (catalogue/search.py, static/js/search.js).
   The box itself, and where it sits at each width, is in nav.css. */
.site-search { position: relative; margin: 0; }
.site-search__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-search__list { position: absolute; z-index: 40; top: calc(100% + 6px); right: 0; width: min(360px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: #fff; color: var(--ink); border-radius: 10px; box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.45); text-align: left; }
.site-search__list li { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.site-search__list li.is-active, .site-search__list li:hover { background: var(--paper); outline: 2px solid var(--focus); outline-offset: -2px; }
.site-search__name { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.site-search__meta { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.site-search__all { border-top: 1px solid var(--line); margin-top: 4px; }
.site-search__all .site-search__name { font-weight: 500; color: var(--blue); }
