/*
Theme Name: Solaris Cup 2027
Theme URI: https://www.solariscup.com
Author: DLEA.IT
Author URI: https://www.dlea.it
Description: Lightweight block theme for the Solaris Cup. No page builder.
Version: 0.7.7
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: solariscup
*/

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
:where(section[id]) { scroll-margin-top: 0; }

/* Small uppercase label, Rolls-Royce style */
.sc-kicker { font-size: 13px !important; font-weight: 400; letter-spacing: .32em; text-transform: uppercase; line-height: 1.4; }

/* ---------- Header: hamburger only ---------- */
.sc-header > .menu-trigger { justify-self: start; }
.sc-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; color: #fff; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; height: 120px; box-sizing: border-box; border-bottom: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0) 15%, rgba(0, 0, 0, .25)); transition: height .5s cubic-bezier(.16, 1, .3, 1), border-color .4s, background .4s; }
.sc-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(6, 12, 22, .55); backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3); opacity: 0; transition: opacity .4s; pointer-events: none; }
.sc-header.is-scrolled { height: 72px; }
.sc-header.is-scrolled::before { opacity: 1; }
/* Logo: same size and position as solaris-custom.com; on scroll only the arcs remain */
.sc-header .sc-logo { justify-self: center; position: relative; display: block; width: 128px; height: 80px; }
.sc-header .sc-logo img { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); transition: opacity .4s, transform .5s cubic-bezier(.16, 1, .3, 1); }
.sc-header .sc-logo__full { width: 128px; height: auto; }
.sc-header .sc-logo__arcs { width: 38px; height: auto; opacity: 0; transform: translate(-50%, calc(-50% - 21px)); }
.sc-header.is-scrolled .sc-logo__full { opacity: 0; }
.sc-header.is-scrolled .sc-logo__arcs { opacity: 1; transform: translate(-50%, -50%); }
.sc-header .sc-year { justify-self: end; margin: 0; text-align: right; font-size: 10px !important; letter-spacing: .2em; }

/* ---------- Hero ---------- */
.sc-hero { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px !important; background: #0D1B26; min-height: 100vh; box-sizing: border-box; margin: 0 !important; }
.sc-hero > .sc-hero__main { flex: 2 1 640px; min-height: 640px !important; margin: 0 !important; }
.sc-hero > .sc-tiles { flex: 1 1 440px; display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(200px, 1fr); gap: 6px; margin: 0 !important; }
.sc-hero__main .wp-block-cover__inner-container { text-align: center; }
.sc-hero__date { font-size: clamp(24px, 2.8vw, 44px) !important; letter-spacing: .14em !important; margin: 0 !important; }

.sc-countdown { display: flex; flex-wrap: nowrap; justify-content: center; gap: 10px; margin: 18px 0 10px; }
.sc-countdown > div { box-sizing: border-box; min-width: 2.1em; padding: 16px 14px 14px; background: rgba(0, 0, 0, .5); font-size: clamp(42px, 5vw, 92px); font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.sc-countdown small { display: block; margin-top: 14px; font-size: 10px; font-weight: 400; letter-spacing: .32em; text-transform: uppercase; opacity: .8; }

.sc-tile { min-height: 200px !important; margin: 0 !important; position: relative; overflow: hidden; }
.sc-tile .wp-block-cover__image-background { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.sc-tile:hover .wp-block-cover__image-background { transform: scale(1.06); }
.sc-tile::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(8, 22, 38, .88) 0%, rgba(8, 22, 38, .55) 30%, rgba(8, 22, 38, 0) 65%); }
.sc-tile .wp-block-cover__inner-container { align-self: flex-end; z-index: 2 !important; }
.sc-tile h3 { font-size: 19px !important; margin: 6px 0 0 !important; letter-spacing: .1em; }
.sc-tile h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.sc-tile p { margin: 0 !important; }
.sc-tile .sc-more { color: #E8D7B8; margin-top: 12px !important; }

/* ---------- Sections ---------- */
.sc-section { padding-top: clamp(88px, 10vw, 144px) !important; padding-bottom: clamp(88px, 10vw, 144px) !important; margin: 0 !important; }
.sc-center { text-align: center; }
.sc-statement { font-size: clamp(28px, 3.4vw, 46px) !important; font-weight: 300; line-height: 1.32 !important; letter-spacing: .01em; max-width: 900px; margin-left: auto !important; margin-right: auto !important; }
.sc-reg { margin-top: 80px !important; padding-top: 64px; border-top: 1px solid #E6DED0; }
.sc-reg__date { max-width: none !important; font-size: clamp(36px, 4.6vw, 68px) !important; font-weight: 300; letter-spacing: .08em; text-transform: uppercase; line-height: 1.05 !important; margin: 18px 0 0 !important; }
.sc-reg__note { font-size: 11px !important; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; color: #6B6152; margin-top: 18px !important; }

.sc-day { background: rgba(255, 255, 255, .55); border-radius: 4px; padding: 32px !important; text-align: left; height: 100%; box-sizing: border-box; }
.sc-day .sc-date { font-size: 30px !important; margin: 6px 0 12px !important; }
.sc-day p.sc-row { margin: 0 !important; padding: 13px 0; border-bottom: 1px solid rgba(20, 32, 43, .12); font-size: 15px; font-weight: 400; }
.sc-day p.sc-row strong { display: inline-block; width: 54px; font-weight: 400; color: #8A6B3F; }
.sc-docs .sc-soon { margin: 0 !important; display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 28px; border: 1px solid rgba(20, 32, 43, .2); border-radius: 999px; font-size: 11px; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; color: rgba(20, 32, 43, .45); cursor: default; user-select: none; }
.sc-docs .sc-soon span { font-size: 9px; letter-spacing: .22em; color: #8A6B3F; opacity: .8; }
.sc-results-head { margin-bottom: 18px !important; }
.sc-results-head p { margin: 0 !important; }
.sc-results-nav { display: flex; gap: 8px; }
.sc-results-nav button { width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(20, 32, 43, .35); background: transparent; color: #14202B; font: 300 18px/1 var(--wp--preset--font-family--red-hat-display); cursor: pointer; transition: background .3s, color .3s, opacity .3s; }
.sc-results-nav button:hover:not(:disabled) { background: #14202B; color: #fff; }
.sc-results-nav button:disabled { opacity: .3; cursor: default; }
.sc-results { --fl: 0; --fr: 1; -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,calc(1 - var(--fl) * .94)) 0%, #000 30%, #000 70%, rgba(0,0,0,calc(1 - var(--fr) * .94)) 100%); mask-image: linear-gradient(90deg, rgba(0,0,0,calc(1 - var(--fl) * .94)) 0%, #000 30%, #000 70%, rgba(0,0,0,calc(1 - var(--fr) * .94)) 100%); scroll-behavior: smooth; scrollbar-width: none; }
.sc-results::-webkit-scrollbar { display: none; }
.sc-results { gap: 12px !important; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(20,32,43,.35) transparent; }
.sc-results .sc-result { flex: 0 0 168px; margin: 0 !important; scroll-snap-align: start; }
.sc-results .sc-result a { display: flex; flex-direction: column; gap: 10px; padding: 26px 22px; border-radius: 4px; background: rgba(255, 255, 255, .55); text-align: left; transition: background .3s, color .3s; }
.sc-results .sc-result a:hover { background: #14202B; color: #fff; }
.sc-results .sc-result strong { font-size: 40px; font-weight: 300; line-height: 1; letter-spacing: .04em; }
.sc-results .sc-result span { font-size: 10px; font-weight: 400; letter-spacing: .24em; text-transform: uppercase; opacity: .7; }
.wp-block-button.is-style-fill .wp-block-button__link { background: #14202B; color: #fff; border-color: #14202B; }

.sc-collage { position: relative; min-height: 560px; }
.sc-collage figure { margin: 0 !important; position: absolute; }
.sc-collage figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-collage .sc-c1 { left: 0; top: 0; width: 74%; height: 76%; }
.sc-collage .sc-c2 { right: 0; bottom: 0; width: 54%; height: 50%; box-shadow: 0 30px 60px rgba(0, 0, 0, .28); }

.sc-gallery.wp-block-gallery { display: grid !important; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 64px; gap: 16px !important; }
.sc-gallery.wp-block-gallery > figure.wp-block-image { width: auto !important; margin: 0 !important; }
.sc-gallery.wp-block-gallery > figure img { width: 100%; height: 100% !important; object-fit: cover; }
.sc-gallery > figure:nth-child(1) { grid-column: 1 / 8; grid-row: 1 / span 7; }
.sc-gallery > figure:nth-child(2) { grid-column: 8 / 13; grid-row: 2 / span 4; }
.sc-gallery > figure:nth-child(3) { grid-column: 9 / 13; grid-row: 7 / span 5; }
.sc-gallery > figure:nth-child(4) { grid-column: 2 / 6; grid-row: 9 / span 4; }
.sc-gallery > figure:nth-child(5) { grid-column: 6 / 9; grid-row: 9 / span 3; }
.sc-gallery > figure:nth-child(6) { grid-column: 1 / 5; grid-row: 14 / span 4; }
.sc-gallery > figure:nth-child(7) { grid-column: 5 / 13; grid-row: 13 / span 6; }

.sc-prize { aspect-ratio: 4 / 5; border-radius: 4px; background: linear-gradient(180deg, #EFE7DB, #DCCBB2); display: flex; align-items: center; justify-content: center; color: #7A6A52; margin: 0 !important; }
.sc-prize.wp-block-image { overflow: hidden; }
.sc-prize.wp-block-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.sc-prize.wp-block-image:hover img { transform: scale(1.04); }
.sc-logos { gap: 18px 44px !important; justify-content: center; align-items: center; }
.sc-logos figure { margin: 0 !important; }
.sc-logos img { height: auto !important; max-width: none; object-fit: contain; filter: grayscale(1) brightness(.35); opacity: .75; transition: opacity .3s, filter .3s; }
.sc-logos img:hover { opacity: 1; filter: none; }

.sc-footer a:hover { color: #E8D7B8; }
/* Footer bottom: same layout and type as Solaris Custom / Solaris Power */
.sc-divider.wp-block-separator { margin: 0 !important; border: 0 !important; border-bottom: .5px solid #7C7C7C !important; height: 0; width: 100% !important; max-width: none !important; opacity: 1; }
.sc-footer.sc-section { padding-bottom: 72px !important; }
.sc-footer p:has(+ .sc-social) { margin-bottom: 0 !important; }
.sc-social { list-style: none; margin: 24px auto 0 !important; padding: 0; display: flex; justify-content: center; gap: 0; width: max-content; max-width: 100% !important; }
.sc-social a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: #fff; }
.sc-social svg { width: 25px; height: 25px; fill: currentColor; }
.sc-social a:hover { color: #E8D7B8; }
/* Footer bottom: text aligned to the outer edges of the 1440 grid, as on solaris-custom.com */
.sc-footer__base { background: #0A141C; color: #fff; margin: 0 !important; padding: 0 32px 28px !important; }
.sc-footer__inner { max-width: 1376px; margin: 0 auto !important; }
.sc-footer__base a { color: #fff; }
.sc-footer__bottom { gap: 12px 24px !important; padding-top: 10px; margin-top: 0 !important; text-align: left; }
.sc-footer__bottom .sc-legal { margin: 0 !important; font-size: 9.6px !important; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; line-height: 1.6; }
.sc-footer__bottom .sc-legal:first-child { flex: 1 0 auto; }

/* ---------- Side menu (ported from solaris-custom.com) ---------- */
:root { --ease-power3-out: cubic-bezier(0.215, 0.61, 0.355, 1); --ease-power3-in: cubic-bezier(0.55, 0.055, 0.675, 0.19); --ease-power2-inout: cubic-bezier(0.455, 0.03, 0.515, 0.955); }
.menu-trigger { display: inline-flex; align-items: center; gap: 15px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: #fff; font: inherit; cursor: pointer; }
.menu-trigger__icon { width: 24px; height: 24px; overflow: visible; }
.menu-trigger__label { font-family: var(--wp--preset--font-family--red-hat-display); font-weight: 600; font-size: clamp(.75rem, calc(.691rem + .25vh), .875rem); letter-spacing: .15em; text-transform: uppercase; }
.menu-trigger__labels { display: grid; }
.menu-trigger__labels > span { grid-area: 1 / 1; transition: opacity .25s var(--ease-power2-inout); }
.menu-trigger__label--close { opacity: 0; }
.menu-is-open .menu-trigger__label--open { opacity: 0; }
.menu-is-open .menu-trigger__label--close { opacity: 1; transition-delay: .05s; }
.menu-line { transform-box: fill-box; transform-origin: center; stroke-dasharray: 50 100; transition: transform .5s var(--ease-power2-inout), stroke-dasharray .5s var(--ease-power2-inout), opacity .3s var(--ease-power2-inout); }
.menu-line--mid { stroke-dasharray: 37.5 100; }
.menu-line--bot { stroke-dasharray: 18.8 100; }
.menu-is-open .menu-line--top { stroke-dasharray: 50 100; transform: translateY(18.8px) rotate(45deg); }
.menu-is-open .menu-line--mid { opacity: 0; transform: scaleX(0); }
.menu-is-open .menu-line--bot { stroke-dasharray: 50 100; transform: translateY(-18.7px) rotate(-45deg); }
/* With the menu open the header stays transparent above the glass panel */
.menu-is-open .sc-header { background: none; }
.menu-is-open .sc-header::before { opacity: 0; }
.offcanvas { position: fixed; inset: 0; z-index: 40; visibility: hidden; transition: visibility 0s linear 1.5s; }
.offcanvas[aria-hidden="false"] { visibility: visible; transition-delay: 0s; }
.offcanvas__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .2s linear .4s; }
.offcanvas[aria-hidden="false"] .offcanvas__overlay { opacity: .8; transition: opacity .4s linear 0s; }
.offcanvas__panel { position: relative; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 100%; height: 100%; overflow-y: auto; padding: 0 16px; box-sizing: border-box; background-color: rgba(0, 0, 0, .004); -webkit-backdrop-filter: blur(150px) saturate(1.8); backdrop-filter: blur(150px) saturate(1.8); transform: translateX(-100%); transition: transform .8s var(--ease-power3-in) .65s; }
.offcanvas[aria-hidden="false"] .offcanvas__panel { transform: translateX(0); transition: transform .8s var(--ease-power3-out) 0s; }
.offcanvas__menu { display: flex; flex-direction: column; align-items: flex-start; gap: 30px; list-style: none; margin: 0; padding: 0; overflow: visible; }
.offcanvas__menu > li { width: 100%; text-align: right; padding-right: 16px; box-sizing: border-box; opacity: 0; transform: translateX(-100%); will-change: transform, opacity; }
html:not(.js) .offcanvas[aria-hidden="false"] .offcanvas__menu > li { opacity: 1; transform: none; }
.offcanvas__menu a { display: inline-block; line-height: 30px; font-weight: 600; font-size: 16px; letter-spacing: 1.88px; text-transform: uppercase; color: rgba(255, 255, 255, .5); transition: color .3s ease; }
.offcanvas__menu a:hover, .offcanvas__menu a:focus-visible { color: #fff; }
@media (min-width: 768px) {
  .offcanvas__panel { width: calc(144px + (100vw - 208px) * .75); padding: 0 0 0 16px; }
  .offcanvas__menu > li { padding-right: 40px; }
}
@media (min-width: 1024px) {
  .offcanvas__panel { width: calc(80px + (100vw - 208px) * 5 / 12); }
  .offcanvas__menu > li { padding-right: calc(16px + 6.5vw); }
}
@media (min-width: 1440px) {
  .offcanvas__panel { width: calc(576px + (100vw - 1392px) / 2); padding-left: calc(32px + (100vw - 1392px) / 2); }
}
@media (prefers-reduced-motion: reduce) {
  .offcanvas__panel, .offcanvas__menu > li, .offcanvas__overlay, .menu-line { transition-duration: .01s !important; transition-delay: 0s !important; }
}

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
  .sc-hero > .sc-hero__main { min-height: 88vh !important; }
  .sc-tiles { grid-auto-rows: 160px !important; }
  .sc-collage { min-height: 380px; }
  .sc-gallery.wp-block-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; gap: 8px !important; }
  .sc-gallery > figure:nth-child(n) { grid-column: auto; grid-row: auto; }
  .sc-gallery > figure:nth-child(1), .sc-gallery > figure:nth-child(7) { grid-column: 1 / -1; grid-row: span 2; }
  .sc-header .sc-year { display: none; }
  .sc-header { height: 88px; padding-left: 18px !important; padding-right: 18px !important; }
  .sc-header .sc-logo { width: 96px; height: 60px; }
  .sc-header .sc-logo__full { width: 96px; }
  .sc-footer__bottom { flex-direction: column; align-items: flex-start !important; }
  .sc-footer__base { padding: 0 18px 24px !important; }
  .sc-countdown { flex-wrap: wrap; gap: 8px; }
  .sc-countdown > div { flex: 0 0 calc(50% - 4px); min-width: 0; font-size: 46px; padding: 14px 10px 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .sc-tile .wp-block-cover__image-background { transition: none; } }

/* ---------- Venue: useful contacts ---------- */
#venue .wp-block-column a { color: inherit; text-decoration: none; }
#venue .wp-block-column a:hover { color: #E8D7B8; }
#venue .is-not-stacked-on-mobile { column-gap: 24px; }
#venue .is-not-stacked-on-mobile > .wp-block-column:nth-child(2) { flex-grow: 1.25; }
#venue .is-not-stacked-on-mobile a { font-size: 13px; white-space: nowrap; }
#venue .is-not-stacked-on-mobile p:not(.sc-kicker) { line-height: 1.35; }
.sc-contacts { list-style: none; margin: 0 !important; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.sc-contact { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px 8px 18px; border-radius: 4px; background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #14202B; text-align: center; }
.sc-contact__logo { height: 64px; display: flex; align-items: center; justify-content: center; }
.sc-contact__logo img { height: 56px; width: auto; max-width: 170px; object-fit: contain; display: block; }
.sc-contact__name { margin: 0 !important; font-size: 11px !important; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; line-height: 1.5; }
.sc-contact__name span { display: block; color: #8A6B3F; }
.sc-contact__links { margin: -6px 0 0 !important; display: flex; flex-direction: column; gap: 4px; font-size: 14px !important; font-weight: 500; line-height: 1.45; }
.sc-contact__links a { color: #2E4C68; text-decoration: none; white-space: nowrap; }
.sc-contact__links a:hover { color: #14202B; }

/* ---------- Pop-up (Berths directory) ---------- */
.sc-dialog { border: 0; padding: 0; margin: auto; width: 100%; max-width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: transparent; color: #14202B; overflow: auto; }
.sc-dialog::backdrop { background: rgba(6, 12, 22, .6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.sc-dialog__box { position: relative; box-sizing: border-box; padding: clamp(24px, 4vw, 48px); border-radius: 4px; background: #fff; text-align: center; }
.sc-dialog[open] .sc-dialog__box { animation: sc-dialog-in .6s cubic-bezier(.16, 1, .3, 1); }
@keyframes sc-dialog-in { from { opacity: 0; transform: translateY(18px); } }
.sc-dialog .sc-kicker { margin: 0; color: #8A6B3F; }
.sc-dialog h2 { margin: 10px 0 28px; font-size: clamp(26px, 3vw, 40px); }
.sc-dialog__close { position: absolute; top: 18px; right: 20px; display: flex; align-items: center; gap: 8px; padding: 6px; border: 0; background: none; color: #14202B; font: 600 12px/1 var(--wp--preset--font-family--red-hat-display); letter-spacing: .15em; text-transform: uppercase; cursor: pointer; }
.sc-dialog__close span { font-size: 24px; font-weight: 300; }
.sc-dialog__map { margin: 0; }
.sc-dialog__map img { display: block; width: 100%; height: auto; max-height: calc(100vh - 300px); object-fit: contain; border-radius: 2px; }
.sc-dialog__notice { margin: 24px 0 0; font-size: clamp(18px, 1.8vw, 24px); font-weight: 500; line-height: 1.45; color: #C8102E; }
.sc-dialog__notice strong { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: #C8102E; }
.sc-dialog__notice a { color: inherit; }
html:has(.sc-dialog[open]) { overflow: hidden; }
@media (max-width: 1024px) { .sc-contacts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 781px) {
  .sc-contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-contact__links { font-size: 12.5px !important; }
  .sc-contact__links a { white-space: normal; overflow-wrap: anywhere; }
  #venue .is-not-stacked-on-mobile { flex-wrap: wrap !important; row-gap: 20px; }
  #venue .is-not-stacked-on-mobile > .wp-block-column { flex-basis: 100% !important; }
  .sc-dialog__close { top: 10px; right: 10px; }
  .sc-dialog h2 { margin-top: 28px; }
}

/* ---------- Registrations: countdown to the opening and inactive entry button ---------- */
.sc-reg__time { display: block; margin-top: 14px; font-size: clamp(16px, 1.6vw, 22px); letter-spacing: .24em; }
.sc-countdown--light { gap: clamp(28px, 4vw, 64px); margin: 32px 0 0; }
.sc-countdown--light > div { min-width: 1.6em; padding: 0; background: none; color: #14202B; font-size: clamp(34px, 3.6vw, 52px); }
.sc-countdown--light small { margin-top: 10px; font-size: 9px; opacity: .55; }
.sc-reg__cta { margin: 36px 0 0 !important; text-align: center; }
.sc-btn-off { display: inline-flex; align-items: center; min-height: 48px; padding: 0 32px; border: 1px solid rgba(20, 32, 43, .2); border-radius: 999px; font-size: 11px; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; color: rgba(20, 32, 43, .4); cursor: not-allowed; user-select: none; }
@media (max-width: 781px) {
  .sc-countdown--light { flex-wrap: nowrap; gap: 22px; }
  .sc-countdown--light > div { flex: 0 0 auto; padding: 0; font-size: 32px; }
}

/* ---------- Inner pages (Terms, Privacy, Cookie, Sitemap, Notice of Race...) – layout and type sizes as on solaris-custom.com ---------- */
.wp-site-blocks > footer, .wp-site-blocks > main { margin-block-start: 0 !important; }
body:not(.home) .sc-header::before { opacity: 1; background: rgba(13, 27, 38, .92); }
.sc-page { margin: 0 !important; padding: 216px 32px 128px !important; min-height: 70vh; color: #14202B; }
.sc-page__title.wp-block-post-title { max-width: 1376px; margin: 0 auto 64px !important; text-align: center; font-size: 34px !important; font-weight: 300; line-height: 1.2 !important; letter-spacing: .1em !important; text-transform: uppercase; }
.sc-page__content { max-width: 1376px; margin: 0 auto !important; font-size: 16px; font-weight: 300; line-height: 24px; letter-spacing: .05em; }
.sc-page__content > *, .sc-page .cmplz-document, .sc-page .cmplz-document > * { max-width: none !important; }
.sc-page__content p, .sc-page__content li { font-size: 16px !important; line-height: 24px !important; letter-spacing: .05em; }
.sc-page__content p { margin: 0 0 16px !important; }
.sc-page__content h2 { margin: 40px 0 15px !important; font-size: 20px !important; font-weight: 400; line-height: 24px !important; letter-spacing: .1em; text-transform: uppercase; }
.sc-page__content h3 { margin: 32px 0 12px !important; font-size: 17px !important; font-weight: 400; line-height: 24px !important; letter-spacing: .08em; text-transform: uppercase; }
.sc-page__content h4, .sc-page__content h5 { margin: 20px 0 8px !important; font-size: 15px !important; font-weight: 400; line-height: 22px !important; letter-spacing: .06em; text-transform: none; }
.sc-page__content a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.sc-page__content a:hover { color: #8A6B3F; }
.sc-page__content > .sc-kicker { text-align: center; margin-bottom: 24px !important; }
.sc-page .sc-doc-embed iframe { margin: 0 auto; }
.sc-page .sc-sitemap { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 32px; }
.sc-page .sc-sitemap li { margin: 0 !important; text-transform: uppercase; }
.sc-page .sc-sitemap a { text-decoration: none; }
@media (max-width: 1024px) { .sc-page .sc-sitemap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 781px) {
  .sc-page { padding: 150px 18px 88px !important; }
  .sc-page__title.wp-block-post-title { font-size: 26px !important; margin-bottom: 40px !important; }
  .sc-page__content h2 { font-size: 18px !important; }
}

/* ---------- Home animations (classes added by site.js) ---------- */
.sc-reveal { transition: opacity 1.1s cubic-bezier(.16, 1, .3, 1) var(--sc-delay, 0ms), transform 1.3s cubic-bezier(.16, 1, .3, 1) var(--sc-delay, 0ms); }
.sc-up { opacity: 0; transform: translateY(48px); }
.sc-photo { opacity: 0; transform: translateY(24px); overflow: hidden; }
.sc-photo img { transform: scale(1.12); transition: transform 1.8s cubic-bezier(.16, 1, .3, 1) var(--sc-delay, 0ms); }
.sc-reveal.is-in { opacity: 1; transform: none; }
.sc-photo.is-in img { transform: scale(1); }
.sc-prize.sc-photo.is-in:hover img { transform: scale(1.04); }
.sc-anim .sc-hero__main .wp-block-cover__inner-container > * { opacity: 0; transform: translateY(36px); transition: opacity 1.1s cubic-bezier(.16, 1, .3, 1), transform 1.3s cubic-bezier(.16, 1, .3, 1); }
.sc-anim .sc-hero__main .wp-block-cover__inner-container > :nth-child(2) { transition-delay: .12s; }
.sc-anim .sc-hero__main .wp-block-cover__inner-container > :nth-child(3) { transition-delay: .24s; }
.sc-anim .sc-hero__main .wp-block-cover__inner-container > :nth-child(4) { transition-delay: .36s; }
.sc-anim .sc-hero__main .wp-block-cover__image-background { transform: scale(1.08); transition: transform 2.4s cubic-bezier(.16, 1, .3, 1); }
.sc-anim .sc-tile { opacity: 0; transform: translateY(28px); transition: opacity 1s cubic-bezier(.16, 1, .3, 1), transform 1.2s cubic-bezier(.16, 1, .3, 1); }
.sc-anim .sc-tile:nth-child(1) { transition-delay: .35s; } .sc-anim .sc-tile:nth-child(2) { transition-delay: .45s; }
.sc-anim .sc-tile:nth-child(3) { transition-delay: .55s; } .sc-anim .sc-tile:nth-child(4) { transition-delay: .65s; }
.sc-anim .sc-tile:nth-child(5) { transition-delay: .75s; } .sc-anim .sc-tile:nth-child(6) { transition-delay: .85s; }
.sc-hero-in .sc-hero__main .wp-block-cover__inner-container > *, .sc-hero-in .sc-tile { opacity: 1; transform: none; }
.sc-hero-in .sc-hero__main .wp-block-cover__image-background { transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .sc-reveal, .sc-reveal img, .sc-anim .sc-tile, .sc-anim .sc-hero__main * { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* ---------- Footer reveal: the page slides up and uncovers the footer, which stays still underneath ---------- */
@media (min-width: 782px) and (min-height: 700px) {
  .wp-site-blocks > main { position: relative; z-index: 1; box-shadow: 0 24px 48px rgba(6, 12, 22, .35); }
  .wp-site-blocks > footer { position: sticky; bottom: 0; z-index: 0; }
}

/* ---------- Yachts eligibility (registrations) and ORC certificate pop-up (regatta) ---------- */
.sc-eligibility { margin-top: 40px !important; padding-top: 0; border-top: 0; max-width: 640px; margin-left: auto !important; margin-right: auto !important; }
.sc-eligibility p:not(.sc-kicker) { margin-top: 14px !important; font-size: 16px; line-height: 1.7; }
.sc-orc-link { margin: 28px auto 0 !important; text-align: center; }
.sc-orc-link a { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 4px; border-bottom: 1px solid rgba(138, 107, 63, .5); color: #8A6B3F; font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; text-decoration: none; transition: border-color .3s, color .3s; }
.sc-orc-link a:hover { color: #14202B; border-color: #14202B; }
.sc-dialog--orc { max-width: min(980px, calc(100vw - 32px)); }
.sc-dialog--orc .sc-dialog__box { text-align: left; }
.sc-orc { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.sc-orc__img { margin: 0; }
.sc-orc__img img { display: block; width: 100%; height: auto; max-height: calc(100vh - 140px); object-fit: contain; box-shadow: 0 18px 40px rgba(6, 12, 22, .18); }
.sc-orc__text h2 { margin: 10px 0 20px !important; }
.sc-orc__text p:not(.sc-kicker) { font-size: 16px; line-height: 1.7; margin: 0 0 14px; }
.sc-orc__text a { color: inherit; }
@media (max-width: 781px) {
  .sc-orc { grid-template-columns: 1fr; }
  .sc-orc__img img { max-height: 46vh; width: auto; margin: 0 auto; }
}
