/* ======================================================================
 * 278.9: Find Your Boat (Carsten's doc, 22 Nov; replaces Boats & Classes). The header band and type come from What
 * You Get (body.wtr-getting-page); this file is the boats, the costs band and the closing. Black, WTR Crisp on the
 * photos, 56px between sections on laptops, no empty space under the header on phones.
 * ====================================================================== */
body.wtr-fyb-page { --fyb-accent: var(--wtr-c-accent, #62d0f5); --fyb-display: var(--wtr-font-display, Anton, sans-serif); --fyb-body: var(--wtr-font-body, Inter, sans-serif); }
html body.wtr-race-look.wtr-fyb-page main > section:is(.wtr-fyb-boats, .wtr-fyb-final) { background: #000 !important; background-color: #000 !important; }
html body.wtr-race-look.wtr-fyb-page main > section.wtr-fyb-cost { background: #0d0d0d !important; background-color: #0d0d0d !important; }

/* the boats */
body.wtr-fyb-page main > .wtr-fyb-boats { padding: 56px 0 56px !important; }
.wtr-fyb-intro { margin: 0 0 18px; font: 400 18px/1.5 var(--fyb-body); color: rgba(255, 255, 255, .9); }
.wtr-fyb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.wtr-fyb-chips button {
    appearance: none; margin: 0; padding: 9px 18px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: transparent;
    font: 800 12px/1 var(--fyb-body); letter-spacing: .14em; text-transform: uppercase; color: #fff; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.wtr-fyb-chips button:hover { border-color: #fff; }
.wtr-fyb-chips button[aria-pressed="true"] { border-color: var(--fyb-accent); background: var(--fyb-accent); color: #000; }
.wtr-fyb-chips button:focus-visible { outline: 2px solid var(--fyb-accent); outline-offset: 3px; }
.wtr-fyb-note { margin: 0 0 40px; font: 400 14px/1.5 var(--fyb-body); color: rgba(255, 255, 255, .7); }
.wtr-fyb-note strong { font-weight: 700; color: #fff; }
.wtr-fyb-row { margin: 0 0 36px; }
.wtr-fyb-row[hidden] { display: none; }
.wtr-fyb-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 14px; }
body.wtr-fyb-page main .wtr-fyb-row-label { margin: 0 !important; font: 800 12px/1.3 var(--fyb-body) !important; letter-spacing: .16em !important; text-transform: uppercase; color: var(--fyb-accent) !important; }
.wtr-fyb-swipe { display: none; font: 400 13px/1.3 var(--fyb-body); color: rgba(255, 255, 255, .55); }
.wtr-fyb-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.wtr-fyb-card { position: relative; display: flex; flex-direction: column; margin: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, .09); border-radius: 14px; background: #111; }
.wtr-fyb-card[hidden] { display: none; }
.wtr-fyb-photo { position: relative; aspect-ratio: 16 / 10; margin: 0; overflow: hidden; background: #161616; }
.wtr-fyb-photo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: var(--wtr-race-grade, none); } /* 278.10: centre point and zoom from the photo box (chrome.css) */
.wtr-fyb-photo.is-empty { display: flex; align-items: center; justify-content: center; padding: 16px; }
.wtr-fyb-photo.is-empty::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .45) 100%); } /* 279.4: the words stay readable over the ocean */
.wtr-fyb-photo.is-empty .wtr-fyb-ocean { position: absolute; inset: 0; }
.wtr-fyb-photo.is-empty span { position: relative; z-index: 1; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); font: 800 11px/1.4 var(--fyb-body); letter-spacing: .16em; text-transform: uppercase; text-align: center; color: var(--fyb-accent); }
.wtr-fyb-body { padding: 18px 20px 20px; }
body.wtr-fyb-page main .wtr-fyb-body h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 4px !important; font: 400 30px/1 var(--fyb-display) !important; letter-spacing: .005em; text-transform: uppercase; color: #fff !important; }
body.wtr-fyb-page main .wtr-fyb-body h3 em { padding: 4px 7px 3px !important; font-family: var(--fyb-body) !important; font-weight: 700 !important; font-size: 10px !important; line-height: 1 !important; letter-spacing: .14em !important; text-transform: uppercase; border: 1px solid rgba(255, 255, 255, .45); border-radius: 3px; font: 700 9px/1 var(--fyb-body); font-style: normal; letter-spacing: .14em; color: rgba(255, 255, 255, .85); }
.wtr-fyb-builder { margin: 0 0 14px; font: 400 13px/1.4 var(--fyb-body); color: rgba(255, 255, 255, .6); }
.wtr-fyb-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.wtr-fyb-pills li { margin: 0; padding: 5px 9px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; font: 800 10px/1 var(--fyb-body); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .38); }
.wtr-fyb-pills li.is-yes { border-color: var(--fyb-accent); background: var(--fyb-accent); color: #000; }
.wtr-fyb-built { margin: 8px 0 0; padding: 28px 0 0; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.wtr-fyb-built p { margin: 0; font: 400 16px/1.5 var(--fyb-body); color: rgba(255, 255, 255, .9); }
.wtr-fyb-built p a { color: var(--fyb-accent); text-decoration: none; }
.wtr-fyb-built p a:hover { text-decoration: underline; }
.wtr-fyb-logos { display: flex; align-items: center; gap: 48px; }
.wtr-fyb-logos a, .wtr-fyb-logos img { display: block; }
.wtr-fyb-logos img { width: var(--fyb-logo-w, 120px); height: auto; max-width: none; opacity: .92; transition: opacity .2s; }
.wtr-fyb-logos a:hover img { opacity: 1; }
.wtr-fyb-none { margin: 0; color: rgba(255, 255, 255, .7); }

/* what does a boat cost */
body.wtr-fyb-page main > .wtr-fyb-cost { padding: 56px 0 !important; }
.wtr-fyb-cost-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
body.wtr-fyb-page main :is(.wtr-fyb-cost, .wtr-fyb-final) h2 { margin: 0 !important; font: 400 clamp(40px, 5vw, 72px)/.95 var(--fyb-display) !important; letter-spacing: .005em; text-transform: uppercase; color: #fff !important; }
.wtr-fyb-cost p { margin: 0 0 18px; font: 400 18px/1.55 var(--fyb-body); color: rgba(255, 255, 255, .9); }
.wtr-fyb-arrow { font: 800 13px/1.3 var(--fyb-body); letter-spacing: .14em; text-transform: uppercase; color: var(--fyb-accent); text-decoration: none; }
.wtr-fyb-arrow:hover { color: #fff; }

/* talk to us before you buy */
body.wtr-race-look.wtr-fyb-page main > .wtr-fyb-final { position: relative; display: flex; align-items: center; min-height: 520px; padding: 72px 0 !important; overflow: hidden; text-align: center; }
.wtr-fyb-final-photo { position: absolute; inset: 0; margin: 0; overflow: hidden; }
.wtr-fyb-final-photo img { width: 100%; height: 100%; object-fit: cover; filter: var(--wtr-race-grade, none); } /* 278.10: no built-in crop; the photo box's centre point and zoom decide, as everywhere else */
.wtr-fyb-final-photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 46% 62% at 50% 52%, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .25) 100%), linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, .5) 100%); }
.wtr-fyb-final-words { position: relative; z-index: 1; width: 100%; }
body.wtr-fyb-page main > .wtr-fyb-final h2 { margin: 0 0 18px !important; font-size: clamp(44px, 6vw, 84px) !important; }
.wtr-fyb-final p { max-width: 560px; margin: 0 auto 28px; font: 400 18px/1.55 var(--fyb-body); color: rgba(255, 255, 255, .92); }
@media (prefers-reduced-motion: no-preference) {
    html.wtr-pm-on .wtr-fyb-final .wtr-fyb-final-photo img { transform: scale(1); transition: transform 7s cubic-bezier(.2, .6, .2, 1); }
    html.wtr-pm-on .wtr-fyb-final.is-in .wtr-fyb-final-photo img { transform: scale(1.06); } /* the slow zoom, on top of the photo box's zoom */
}

/* tablets and phones */
@media (max-width: 1023px) {
    .wtr-fyb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wtr-fyb-cost-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 767px) {
    html body.wtr-race-look.wtr-fyb-page main > .wtr-v23-hero.wtr-fyb-hero { padding-bottom: 0 !important; min-height: 0 !important; }
    html body.wtr-race-look.wtr-fyb-page main > .wtr-v23-hero.wtr-fyb-hero .wtr-v23-hero-inner > :last-child { margin-bottom: 0 !important; }
    body.wtr-fyb-page main > .wtr-fyb-boats { padding: 28px 0 48px !important; }
    .wtr-fyb-pills { flex-wrap: nowrap; gap: 4px; }
    .wtr-fyb-pills li { padding: 5px 7px; font-size: 9px; letter-spacing: .08em; }
    .wtr-fyb-intro { font-size: 17px; }
    .wtr-fyb-note { margin-bottom: 32px; }
    .wtr-fyb-swipe { display: inline; }
    .wtr-fyb-cards {
        display: flex; gap: 12px; margin: 0 calc(var(--wtr-home-gutter, 20px) * -1); padding: 0 var(--wtr-home-gutter, 20px) 4px;
        overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--wtr-home-gutter, 20px); -webkit-overflow-scrolling: touch; scrollbar-width: none;
    }
    .wtr-fyb-cards::-webkit-scrollbar { display: none; }
    .wtr-fyb-card { flex: 0 0 82%; scroll-snap-align: start; }
    .wtr-fyb-builder { display: none; }
    .wtr-fyb-body { padding: 16px 16px 18px; }
    body.wtr-fyb-page main .wtr-fyb-body h3 { margin-bottom: 12px !important; font-size: 28px !important; }
    .wtr-fyb-built { display: block; }
    .wtr-fyb-built p { margin-bottom: 24px; }
    .wtr-fyb-logos { gap: 36px; }
    .wtr-fyb-logos img { width: calc(var(--fyb-logo-w, 120px) * .85); }
    body.wtr-fyb-page main > .wtr-fyb-cost { padding: 48px 0 !important; }
    body.wtr-race-look.wtr-fyb-page main > .wtr-fyb-final { display: block; min-height: 0; padding: 0 0 56px !important; text-align: left; }
    .wtr-fyb-final-photo { position: relative; inset: auto; height: 300px; }
    .wtr-fyb-final-photo::after { background: linear-gradient(180deg, transparent 55%, #000 100%); }
    .wtr-fyb-final-words { padding-top: 8px; }
    .wtr-fyb-final p { margin-left: 0; margin-right: 0; font-size: 17px; }
    .wtr-fyb-final .wtr-v23-buttons { justify-content: flex-start; }
    .wtr-fyb-final .wtr-v23-btn { width: 100%; justify-content: center; }
}

/* 280.76 (Carsten): a boat with no photo yet: the words sit low on the dark water, with a little more shade under them
   (they ran across the white wave crest in the middle). */
.wtr-fyb-photo.is-empty { align-items: flex-end; padding-bottom: 18px; }
.wtr-fyb-photo.is-empty::after { background: linear-gradient(180deg, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, .18) 45%, rgba(0, 0, 0, .62) 100%); }
/* 280.76 (Carsten): TALK TO US BEFORE YOU BUY: the photo fades into black at the top and the bottom. */
.wtr-fyb-final-photo { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 20%, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 20%, #000 80%, transparent 100%); }
