/* Yacht software: hub, categories, product pages, compare and the awards plan. Builds on the tokens in lux.css. */

.sw { color: var(--lux-ink); }
.sw-wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding-bottom: 80px; }
.sw-narrow { max-width: 720px; }
.sw-section { padding-top: 56px; }
.sw-section h2 { margin: 0 0 12px; font-family: var(--lux-serif); font-size: 32px; font-weight: 500; }
.sw-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.sw-head h2 { margin: 0; }
.sw-head p, .sw-quiet, .sw-empty { color: var(--lux-text-mute); }
.sw-quiet { font-size: 14px; }
.sw-link { color: var(--lux-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--lux-gold); text-underline-offset: 3px; }
.sw-btn {
  display: inline-block; padding: 11px 18px; border: 1px solid var(--lux-ink); background: var(--lux-ink); color: var(--lux-gold-soft);
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; cursor: pointer;
}
.sw-btn:hover { background: #1b2742; text-decoration: none; }
.sw-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.sw-btn:focus-visible, .sw-link:focus-visible, .sw-chip:focus-visible, .sw-cats a:focus-visible { outline: 2px solid var(--lux-gold); outline-offset: 3px; }

/* Hub categories */
.sw-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--lux-rule); border: 1px solid var(--lux-rule); }
.sw-cats a { display: grid; gap: 6px; height: 100%; padding: 22px; background: #fff; color: inherit; text-decoration: none; }
.sw-cats a:hover { background: var(--lux-ivory); }
.sw-cats b { font-family: var(--lux-serif); font-size: 22px; font-weight: 500; }
.sw-cats span { color: var(--lux-text-mute); font-size: 14px; line-height: 1.5; }
.sw-cats small { color: #8a6d2f; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

/* Product cards */
.sw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.sw-card { position: relative; display: grid; gap: 4px; align-content: start; padding: 20px; border: 1px solid var(--lux-rule); background: #fff; }
.sw-card p { margin: 0; }
.sw-card__cat { color: #8a6d2f; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.sw-card__name { margin: 2px 0 0; font-family: var(--lux-serif); font-size: 24px; font-weight: 500; }
.sw-card__name a { color: inherit; text-decoration: none; }
.sw-card__name a::after { content: ""; position: absolute; inset: 0; }
.sw-card__by, .sw-card__meta { color: var(--lux-text-mute); font-size: 13px; }
.sw-card__line { margin-top: 6px !important; line-height: 1.5; }
.sw-card__pick { position: absolute; top: 14px; right: 14px; z-index: 1; display: flex; align-items: center; gap: 6px; font-size: 13px; }
.sw-stars { color: #8a6d2f; font-weight: 600; }

/* Filters and chips */
.sw-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; padding: 0; list-style: none; }
.sw-chip { display: inline-block; padding: 7px 14px; border: 1px solid var(--lux-rule); border-radius: 999px; background: #fff; color: var(--lux-ink); font-size: 13px; text-decoration: none; }
a.sw-chip:hover { border-color: var(--lux-gold); text-decoration: none; }
.sw-chip[aria-current="page"] { background: var(--lux-ink); border-color: var(--lux-ink); color: var(--lux-gold-soft); }
.sw-chip__n { margin-left: 4px; opacity: 0.6; font-variant-numeric: tabular-nums; }
.sw-count { margin: 14px 0 0; }
.sw-card__checked { margin: 6px 0 0; color: var(--lux-text-mute); font-size: 12px; }
.sw-checked { margin: 14px 0 6px; font-size: 14px; }
.sw-az { columns: 3 220px; column-gap: 32px; margin: 0; padding: 0; list-style: none; }
.sw-az li { break-inside: avoid; padding: 5px 0; border-bottom: 1px solid var(--lux-rule); font-size: 15px; }
.sw-az small { display: block; color: var(--lux-text-mute); font-size: 12px; }
.sw-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; margin: 24px 0; padding: 16px; border: 1px solid var(--lux-rule); background: var(--lux-ivory); }
.sw-filters label { display: grid; gap: 4px; font-size: 13px; }
.sw-filters select { min-height: 40px; padding: 0 8px; border: 1px solid var(--lux-rule); background: #fff; font: inherit; }
.sw-filters .sw-check { display: flex; align-items: center; gap: 6px; min-height: 40px; }
.sw-comparebar { position: sticky; bottom: 16px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; width: fit-content; margin: 20px auto 0; padding: 10px 12px 10px 18px; background: var(--lux-ink); color: #fff; box-shadow: 0 10px 30px rgba(11, 18, 32, 0.25); }
.sw-comparebar small { color: var(--lux-mute); }
.sw-comparebar .sw-btn { background: var(--lux-gold); border-color: var(--lux-gold); color: var(--lux-ink); }

/* Panels */
.sw-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.sw-panel { padding: 28px; border: 1px solid var(--lux-rule); background: #fff; }
.sw-panel ul { margin: 0; padding-left: 18px; line-height: 1.6; }
.sw-panel li + li { margin-top: 8px; }
.sw-panel--dark { background: var(--lux-ink); border-color: var(--lux-ink); color: #fff; }
.sw-panel--dark p { color: rgba(255, 255, 255, 0.82); }
.sw-awards-teaser { max-width: 720px; }

/* Product page */
.sw-hero-meta { color: var(--lux-mute); }
.sw-hero-meta a { color: var(--lux-gold-soft); }
.sw-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sw-product { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
.sw-product__facts { padding-top: 56px; }
.sw-facts { margin: 0; border-top: 1px solid var(--lux-rule); }
.sw-facts div { padding: 12px 0; border-bottom: 1px solid var(--lux-rule); }
.sw-facts dt { color: var(--lux-text-mute); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.sw-facts dd { margin: 4px 0 0; }
.sw-side-title { margin: 28px 0 8px; font-family: var(--lux-serif); font-size: 22px; font-weight: 500; }
.sw-related { margin: 0 0 12px; padding: 0; list-style: none; }
.sw-related li { padding: 6px 0; }
.sw-related small { color: var(--lux-text-mute); }
.sw-scores { display: grid; gap: 8px; max-width: 460px; margin: 0 0 24px; }
.sw-scores div { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 12px; }
.sw-scores dt { font-size: 14px; }
.sw-scores dd { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; }
.sw-bar { flex: 1; height: 6px; background: var(--lux-rule); }
.sw-bar i { display: block; height: 100%; background: var(--lux-gold); }
.sw-review { padding: 18px 0; border-top: 1px solid var(--lux-rule); }
.sw-review p { margin: 0 0 6px; line-height: 1.55; }
.sw-review__who { color: var(--lux-text-mute); font-size: 13px; }
/* Gold kickers on white sections: the darker gold reads at 4.9:1 (the hero kickers stay light gold on navy). */
.sw-section .lux-kicker { color: #8a6d2f; }
.sw-section .sw-panel--dark .lux-kicker { color: var(--lux-gold); }
.sw-verified { display: inline-block; margin-left: 4px; padding: 2px 8px; border: 1px solid var(--lux-gold); background: var(--lux-ivory); color: var(--lux-ink); font-size: 12px; font-weight: 600; vertical-align: middle; }
.sw-sub { margin: 8px 0 10px; font-size: 16px; font-weight: 600; letter-spacing: 0; }
.sw-sizes { width: 100%; min-width: 0; max-width: 460px; margin: 0 0 6px; border-collapse: collapse; font-size: 14px; }
.sw-sizes th, .sw-sizes td { padding: 8px 6px; border-bottom: 1px solid var(--lux-rule); text-align: left; }
.sw-sizes thead th { color: var(--lux-text-mute); font-size: 12px; font-weight: 500; }
.sw-sizes tbody th { color: var(--lux-ink); font-size: 14px; font-weight: 500; }
.sw-alt-compare { margin-top: 16px; }
.sw-write { margin-top: 20px; }
.sw-write summary { list-style: none; width: fit-content; }
.sw-write summary::-webkit-details-marker { display: none; }

/* Forms */
.sw-form { display: grid; gap: 14px; margin-top: 16px; }
.sw-form--page { margin-top: 32px; }
.sw-field { display: grid; gap: 6px; margin: 0; }
.sw-field--inline { display: flex; align-items: center; gap: 8px; }
.sw-field small { color: var(--lux-text-mute); font-size: 13px; }
.sw-form input[type="text"], .sw-form input[type="url"], .sw-form input[type="email"], .sw-form input[type="number"], .sw-form select, .sw-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--lux-rule); background: #fff; font: inherit;
}
.sw-form ul { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; }
.sw-form ul label { display: flex; align-items: center; gap: 6px; font-weight: 400; }
.sw-stars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.sw-stars-grid fieldset { margin: 0; padding: 12px; border: 1px solid var(--lux-rule); }
.sw-stars-grid legend { padding: 0 4px; font-weight: 600; }
.sw-stars-grid small { display: block; margin-bottom: 6px; color: var(--lux-text-mute); font-size: 12px; }
.sw-radios, .sw-radios div { display: flex; gap: 10px; }
.sw-radios label { display: flex; align-items: center; gap: 3px; font-size: 14px; }

/* Compare */
.sw-table-wrap { margin-top: 40px; overflow-x: auto; }
.sw-table { width: 100%; min-width: 560px; border-collapse: collapse; background: #fff; }
.sw-table th, .sw-table td { padding: 12px 14px; border-bottom: 1px solid var(--lux-rule); text-align: left; vertical-align: top; }
.sw-table thead th { font-family: var(--lux-serif); font-size: 22px; font-weight: 500; }
.sw-table tbody th { width: 160px; color: var(--lux-text-mute); font-size: 13px; font-weight: 500; }
.sw-table__score td { color: #8a6d2f; font-weight: 600; }

/* Awards */
.sw-steps { max-width: 820px; margin: 0; padding-left: 22px; line-height: 1.6; }
.sw-steps li { margin-bottom: 14px; padding-left: 6px; }
.sw-chips--static { margin-top: 0; }

@media (max-width: 860px) {
  .sw-product { grid-template-columns: 1fr; gap: 0; }
  .sw-product__facts { padding-top: 32px; }
  .sw-section h2 { font-size: 26px; }
}
.sw .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 734px) {
  nav.sw-chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-bottom: 6px; scrollbar-width: none; }
  nav.sw-chips::-webkit-scrollbar { display: none; }
  nav.sw-chips .sw-chip { flex: none; }
}
