/* Jace Yachting sections added on the static build (tools/sold_yachts.py, tools/footer.py).
   Palette and type are the site's own: sky #72bbf0, charcoal #1e232a, orange #e8924c, Gruppo + Varela. */
:root{--jy-sky:#72bbf0;--jy-sky-deep:#3f93d1;--jy-ink:#1e232a;--jy-ink-2:#151a20;--jy-orange:#e8924c;--jy-line:rgba(255,255,255,.12);--jy-muted:rgba(255,255,255,.68)}

/* ---- Recently Sold Yachts ---- */
.jy-sold{max-width:1280px;margin:8px auto 0;padding:0 0 8px}
.jy-sold-grid{list-style:none!important;margin:0!important;padding:0!important;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.jy-sold-grid li{margin:0!important;padding:0!important;list-style:none!important}
.jy-sold-grid li::before{content:none!important}
.jy-sold-card{position:relative;display:flex;flex-direction:column;height:100%;background:#fff;border-radius:8px;overflow:hidden;text-decoration:none!important;color:var(--jy-ink);box-shadow:0 1px 2px rgba(30,35,42,.06),0 6px 18px rgba(30,35,42,.08);transition:transform .25s ease,box-shadow .25s ease}
.jy-sold-card:hover,.jy-sold-card:focus-visible{transform:translateY(-3px);box-shadow:0 2px 4px rgba(30,35,42,.08),0 14px 30px rgba(30,35,42,.14)}
.jy-sold-card:focus-visible{outline:2px solid var(--jy-sky-deep);outline-offset:3px}
.jy-sold-media{display:block;aspect-ratio:3/2;overflow:hidden;background:#e9eef3}
.jy-sold-media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.jy-sold-card:hover .jy-sold-media img{transform:scale(1.04)}
.jy-sold-badge{position:absolute;top:12px;left:12px;background:var(--jy-orange);color:#fff;font:700 11px/1 'Varela',Helvetica,Arial,sans-serif;letter-spacing:.14em;text-transform:uppercase;padding:7px 10px 6px;border-radius:3px;box-shadow:0 2px 6px rgba(0,0,0,.18)}
.jy-sold-body{display:flex;flex-direction:column;gap:4px;padding:14px 16px 16px}
.jy-sold-title{font:700 20px/1.2 'Gruppo',Helvetica,Arial,sans-serif;letter-spacing:.01em;color:var(--jy-ink)}
.jy-sold-by{font:400 13px/1.4 'Varela',Helvetica,Arial,sans-serif;color:#64707d}
@media (max-width:980px){.jy-sold-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}}
@media (max-width:420px){.jy-sold-grid{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.jy-sold-card,.jy-sold-media img{transition:none}.jy-sold-card:hover{transform:none}.jy-sold-card:hover .jy-sold-media img{transform:none}}

/* ---- Footer (tools/footer.py) ---- */
.jyf{font-family:'Varela',Helvetica,Arial,Lucida,sans-serif;color:#fff;line-height:1.55;-webkit-font-smoothing:antialiased}
.jyf *,.jyf *::before,.jyf *::after{box-sizing:border-box}
.jyf ul{list-style:none!important;margin:0!important;padding:0!important}
.jyf li{list-style:none!important;margin:0;padding:0}
.jyf li::before{content:none!important}
.jyf p{margin:0;padding:0}
.jyf h3,.jyf h4{margin:0;padding:0}
.jyf svg{width:18px;height:18px;flex:none;fill:currentColor}
.jyf-wrap{width:90%;max-width:1240px;margin:0 auto}

/* contact band */
.jyf-contact{position:relative;overflow:hidden;padding:76px 0;background:linear-gradient(135deg,var(--jy-sky) 0%,var(--jy-sky-deep) 100%);scroll-margin-top:110px}
.jyf-contact::before{content:"";position:absolute;inset:auto -10% -55% auto;width:620px;height:620px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.18),rgba(255,255,255,0) 70%);pointer-events:none}
.jyf-contact-grid{position:relative;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:56px;align-items:center}
.jyf-portrait{display:block;width:112px;height:112px;border-radius:50%;object-fit:cover;border:3px solid rgba(255,255,255,.9);box-shadow:0 8px 24px rgba(16,40,64,.25);margin:0 0 22px;background:rgba(255,255,255,.2)}
.jyf .jyf-h{font-family:'Gruppo',display;font-weight:700;font-size:44px;line-height:1.05;letter-spacing:-.01em;color:#fff!important}
.jyf-name{margin-top:14px!important;font-size:18px;font-weight:600;letter-spacing:.02em}
.jyf-line{margin-top:4px!important;color:rgba(255,255,255,.88);font-size:16px;max-width:30ch}
.jyf-direct{display:flex;flex-direction:column;gap:10px;margin-top:26px!important}
.jyf-direct a{display:inline-flex;align-items:center;gap:12px;padding:10px 16px;border-radius:999px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.35);color:#fff!important;text-decoration:none!important;font-size:15px;transition:background .2s ease,color .2s ease,border-color .2s ease;max-width:100%}
.jyf-direct a span{overflow-wrap:anywhere}
.jyf-direct a:hover,.jyf-direct a:focus-visible{background:#fff;color:var(--jy-ink)!important;border-color:#fff}
.jyf-form-card,.jy-form-card{background:#fff;border-radius:12px;padding:32px;box-shadow:0 20px 50px rgba(16,40,64,.22);text-align:left}
.jyf-form-card .cys-form,.jy-form-card .cys-form{max-width:none;margin:0;gap:14px}
.jyf-form-card .cys-form label,.jy-form-card .cys-form label{color:#4a5561!important;font-size:13px;letter-spacing:.02em}
.jyf-form-card .cys-form input,.jyf-form-card .cys-form textarea,.jyf-form-card .cys-form select,.jy-form-card .cys-form input,.jy-form-card .cys-form textarea,.jy-form-card .cys-form select{border:1px solid #d6dde5;border-radius:6px;padding:12px 14px;background:#f7f9fb;transition:border-color .2s ease,background .2s ease,box-shadow .2s ease}
.jyf-form-card .cys-form input:focus,.jyf-form-card .cys-form textarea:focus,.jy-form-card .cys-form input:focus,.jy-form-card .cys-form textarea:focus{outline:0;border-color:var(--jy-sky-deep);background:#fff;box-shadow:0 0 0 3px rgba(114,187,240,.3)}
.jyf-form-card .cys-form button,.jy-form-card .cys-form button{background:var(--jy-ink);border-radius:6px;padding:14px 30px;font-size:14px;letter-spacing:.12em;transition:background .2s ease}
.jyf-form-card .cys-form button:hover,.jyf-form-card .cys-form button:focus-visible,.jy-form-card .cys-form button:hover,.jy-form-card .cys-form button:focus-visible{background:var(--jy-sky-deep)}

/* main */
.jyf-main{background:var(--jy-ink);padding:64px 0 0}
.jyf-cols{display:grid;grid-template-columns:minmax(0,1.35fr) repeat(3,minmax(0,1fr));gap:48px;padding-bottom:52px}
.jyf-logo{display:inline-block}
.jyf-logo img{display:block;width:190px;height:auto}
.jyf-rule{display:block;width:48px;height:2px;background:var(--jy-sky);margin:22px 0}
.jyf-denison{display:block;width:170px;height:auto;opacity:.88}
.jyf .jyf-col-h{font-family:'Gruppo',display;font-weight:700;font-size:22px;letter-spacing:.06em;text-transform:uppercase;color:#fff!important;margin-bottom:18px;padding-bottom:12px;border-bottom:1px solid var(--jy-line)}
.jyf-nav ul{display:flex;flex-direction:column;gap:10px}
.jyf-nav a{color:var(--jy-muted)!important;text-decoration:none!important;font-size:15px;transition:color .2s ease,padding-left .2s ease}
.jyf-nav a:hover,.jyf-nav a:focus-visible{color:var(--jy-sky)!important;padding-left:4px}
.jyf-nav a[aria-current="page"]{color:#fff!important}
.jyf-offices{display:flex;flex-direction:column;gap:10px}
.jyf-offices li{display:flex;align-items:center;gap:10px;color:var(--jy-muted);font-size:15px}
.jyf-offices svg{color:var(--jy-sky);width:16px;height:16px}

/* bottom bar */
.jyf-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px 32px;flex-wrap:wrap;padding:20px 0 26px;border-top:1px solid var(--jy-line)}
.jyf-crypto{display:inline-flex;align-items:center;gap:10px;padding:7px 14px 7px 8px;border-radius:999px;background:rgba(232,146,76,.14);border:1px solid rgba(232,146,76,.55);color:#fff;font-size:14px}
.jyf-crypto img{width:24px;height:24px;border-radius:50%;background:var(--jy-orange);padding:3px}
footer.et-l--footer .jyf .cys-footer-credit{background:none;padding:0;color:var(--jy-muted)!important;font-size:13px}
footer.et-l--footer .jyf .cys-footer-credit-inner{width:auto;max-width:none;margin:0;text-align:right}
footer.et-l--footer .jyf .cys-footer-credit a{color:var(--jy-muted)!important}
footer.et-l--footer .jyf .cys-footer-credit a:hover{color:var(--jy-sky)!important}
.jyf a:focus-visible{outline:2px solid #fff;outline-offset:3px;border-radius:4px}

@media (max-width:980px){
 .jyf-contact{padding:60px 0}
 .jyf-contact-grid{grid-template-columns:1fr;gap:36px}
 .jyf-cols{grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 32px}
 .jyf-brand{grid-column:1/-1;display:flex;align-items:center;gap:28px;flex-wrap:wrap}
 .jyf-brand .jyf-rule{width:2px;height:48px;margin:0}
}
@media (max-width:600px){
 .jyf-contact{padding:48px 0}
 .jyf-intro{text-align:center}
 .jyf-portrait{margin-left:auto;margin-right:auto}
 .jyf .jyf-h{font-size:36px}
 .jyf-line{margin-left:auto!important;margin-right:auto!important}
 .jyf-direct{align-items:center}
 .jyf-form-card{padding:22px 18px}
 .jyf-cols{grid-template-columns:1fr}
 .jyf-brand{justify-content:center}
 .jyf-bottom{flex-direction:column;justify-content:center;text-align:center}
 footer.et-l--footer .jyf .cys-footer-credit-inner{text-align:center}
}
@media (prefers-reduced-motion:reduce){.jyf *{transition:none!important}}

/* ---- Inquiry forms (tools/forms.py, /cys/forms.js) ---- */
.cys-form[data-jy-form] .jy-req{color:#c0392b;margin-left:2px}
.cys-form[data-jy-form] select{padding:10px;border:1px solid #ccc;border-radius:3px;font-size:15px;color:#222;background:#fff;font-family:inherit}
.cys-form[data-jy-form] .jy-checks{border:0;margin:0;padding:0;min-width:0;display:flex;flex-wrap:wrap;gap:8px 18px}
.cys-form[data-jy-form] .jy-checks legend{padding:0;margin:0 0 6px;font-size:14px;width:100%;color:inherit}
.cys-form[data-jy-form] .jy-check{flex-direction:row!important;align-items:center;gap:8px!important;font-size:14px;cursor:pointer}
.cys-form[data-jy-form] .jy-check input{width:16px;height:16px;padding:0;margin:0;accent-color:var(--jy-sky-deep)}
.cys-form[data-jy-form] .jy-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.cys-form[data-jy-form] .jy-form-msg{margin:0;padding:10px 12px;border-radius:6px;font-size:14px;line-height:1.5}
.cys-form[data-jy-form] .jy-form-msg.jy-ok{background:#eaf5fd;color:#1d4f73}
.cys-form[data-jy-form] .jy-form-msg.jy-err{background:#fdecea;color:#8a1f12}
.cys-form[data-jy-form] .jy-form-msg a{color:inherit!important;text-decoration:underline}
.cys-form[data-jy-form] .jy-form-done{font-size:16px;padding:18px}
.cys-form[data-jy-form] button[disabled]{opacity:.6;cursor:progress}
.cys-form-dark .jy-checks legend{color:#fff}
.jy-flibs .jy-flibs-form{max-width:640px;margin:28px auto 20px;color:#222}
.yap-static-card .cys-form[data-jy-form]{gap:10px}
.yap-static-card .cys-form[data-jy-form] .cys-row{flex-direction:column;gap:10px}

/* ---- Phone + email in the header menu and the home bio (tools/contact.py) ---- */
/* Header menu text 16px (was 18px in the Divi theme builder CSS). */
.et-l--header .et_pb_menu_0_tb_header.et_pb_menu ul li a{font-size:16px}
/* Header pills: same face and weight as the nav links (ABeeZee, 500), 15px so they sit level with the
   16px links. Divi stretches each top-level menu item to the full header height; keep them compact. */
.et_pb_menu .et-menu>li.jy-hdr-contact{display:flex!important;align-items:center!important;align-self:center!important;height:auto!important;padding-left:8px!important;padding-right:0!important}
.et_pb_menu .et-menu>li.jy-hdr-phone{padding-left:18px!important}
.et-l--header .et_pb_menu .et-menu>li.jy-hdr-contact>a{display:inline-flex!important;align-items:center;align-self:center!important;gap:8px;height:auto!important;min-height:0!important;padding:8px 16px!important;margin:0!important;font-family:'ABeeZee',Helvetica,Arial,sans-serif!important;font-size:15px!important;font-weight:500!important;line-height:1.2!important;letter-spacing:0;border:1px solid rgba(255,255,255,.75);border-radius:999px;white-space:nowrap;transition:background .2s ease,color .2s ease,border-color .2s ease}
.et-l--header .et_pb_menu .et-menu>li.jy-hdr-phone>a{background:#fff;color:#1e232a!important;border-color:#fff}
.et-l--header .et_pb_menu .et-menu>li.jy-hdr-contact>a:hover{background:#1e232a;color:#fff!important;border-color:#1e232a;opacity:1}
.et_pb_menu .et-menu>li.jy-hdr-contact svg{width:15px;height:15px;flex:none;fill:currentColor}
@media (min-width:981px) and (max-width:1340px){
 .et_pb_menu .et-menu>li.jy-hdr-email>a span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
 .et-l--header .et_pb_menu .et-menu>li.jy-hdr-email>a{padding:8px 10px!important}
}
.et_mobile_menu li.jy-hdr-contact a{display:flex!important;align-items:center;gap:10px;font-family:'ABeeZee',Helvetica,Arial,sans-serif!important;font-weight:500!important}
.et_mobile_menu li.jy-hdr-contact svg{width:16px;height:16px;flex:none;fill:currentColor}
/* Home bio buttons: Varela like the bio copy and the site's CTAs, sized like READ MY BIO below them
   (14px, 8px vertical padding, about 42px tall). The bio text module has padding-left:40px and the
   READ MY BIO wrapper margin-left:40px at every breakpoint; the same 40px lines the buttons up with both. */
.jy-bio-contact{list-style:none!important;margin:0 0 18px 40px!important;padding:0!important;display:flex;flex-wrap:wrap;gap:10px}
.jy-bio-contact li{list-style:none!important;margin:0!important;padding:0!important}
.jy-bio-contact li::before{content:none!important}
.jy-bio-contact a{display:inline-flex;align-items:center;gap:8px;box-sizing:border-box;padding:8px 20px;border-radius:50px;border:1px solid #72bbf0;color:#1e232a!important;text-decoration:none!important;font-family:'Varela',Helvetica,Arial,sans-serif;font-size:14px;font-weight:500;line-height:24px;transition:background .2s ease,color .2s ease,border-color .2s ease}
.jy-bio-contact li:first-child a{background:#72bbf0;color:#fff!important}
.jy-bio-contact a:hover,.jy-bio-contact a:focus-visible{background:#fff;border-color:#515150;color:#515150!important}
.jy-bio-contact svg{width:15px;height:15px;flex:none;fill:currentColor}
.jy-bio-contact a span{overflow-wrap:anywhere}
