/* One viewport-sized scene for every event. Existing event images stay intact. */
.cup-page .ifr-event-hero {
    --ifr-hero-header: 89px;
    --hero-mark: clamp(96px, 14svh, 142px);
    --hero-space: clamp(18px, 2.7svh, 28px);
    --hero-focus: 54% 50%;
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: minmax(min-content, 1fr) auto;
    min-height: calc(100vh - var(--ifr-hero-header));
    min-height: calc(100svh - var(--ifr-hero-header));
    margin: 0;
    color: #fff;
    background: #191c27;
    text-align: left;
}
.admin-bar .cup-page .ifr-event-hero { --ifr-hero-header: 121px; }
.ifr-event-hero__stage { position: relative; display: grid; min-width: 0; }
.ifr-event-hero__media {
    position: absolute;
    inset: 0 0 0 22%;
    overflow: hidden;
    pointer-events: none;
    mask-image: linear-gradient(90deg, transparent, #000 36%);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 36%);
}
.cup-page .ifr-event-hero__media > img {
    position: absolute;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: cover;
    object-position: var(--hero-focus);
}
.ifr-event-hero__stage::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, #191c27 12%, #191c27f2 28%, #191c27b8 42%, #191c2730 65%, #191c270a 100%), linear-gradient(0deg, #191c27 0%, #191c2700 28%, #191c2718 90%, #191c274d 100%);
}
.cup-page .ifr-event-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    width: min(100% - 80px, 1440px);
    max-width: 1440px;
    min-width: 0;
    margin-inline: auto;
    padding: 32px 0;
}
.ifr-event-hero__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--hero-space);
    width: min(56%, 680px);
    min-width: 0;
}
.ifr-event-hero__identity { min-width: 0; max-width: 100%; display: flex; align-items: center; gap: 24px; min-height: var(--hero-mark); }
.ifr-event-hero__logo { display: flex; align-items: center; width: var(--hero-mark); height: var(--hero-mark); flex: 0 0 auto; }
.cup-page .ifr-event-hero__logo > img { display: block; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: contain; object-position: left center; }
.cup-page .ifr-event-hero__edition { min-width: 0; margin: 0; color: #c4ccd9; font-size: .8125rem; font-weight: 700; line-height: 1.5; max-width: 150px; }
.cup-page .ifr-event-hero h1 { margin: 0; color: #fff; font-size: clamp(40px, min(4.2vw, 6.7svh), 72px); font-weight: 900; line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
.ifr-event-hero__headline-line { display: block; font: inherit; letter-spacing: inherit; }
.ifr-event-hero__headline-line + .ifr-event-hero__headline-line { color: #ffe16a; }
.cup-page .ifr-event-hero__intro { max-width: 470px; margin: 16px 0 0; color: #d7deea; font-size: 1.0625rem; font-weight: 400; line-height: 1.55; }
.ifr-event-hero__status { display: flex; align-items: center; gap: 12px; color: #ffe16a; }
.ifr-event-hero__status > svg { flex: 0 0 20px; width: 20px; height: 20px; }
.cup-page .ifr-event-hero__status p { min-width: 0; margin: 0; font-size: .8125rem; line-height: 1.5; }
.ifr-event-hero__status strong { display: block; font-weight: 800; }
.ifr-event-hero__status span { display: block; color: #c4ccd9; font-weight: 400; }
.cup-page .ifr-event-hero__actions { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, max-content); align-items: center; justify-content: start; gap: 8px 26px; width: 100%; margin: 0; }
.cup-page .ifr-event-hero__actions::after { display: none; }
.cup-page .ifr-event-hero__actions > :first-child { grid-column: 1 / -1; justify-self: start; }
.cup-page .ifr-event-hero__actions > :not(:first-child) { justify-self: start; }
.cup-page .ifr-event-hero__actions > :nth-child(2):last-child { grid-column: 1 / -1; }
.cup-page .ifr-event-hero__actions .cup-button { min-width: 0; white-space: normal; overflow-wrap: anywhere; min-height: 44px; max-width: 100%; margin: 0; gap: 10px; padding: 10px 0; color: #fff; background: transparent; border: 0; font-size: .875rem; font-weight: 800; text-align: left; }
.cup-page .ifr-event-hero__actions .btn-yellow { min-height: 52px; padding: 14px 24px; gap: 22px; color: #191c27; background: #ffe16a; }
.cup-page .ifr-event-hero__actions .btn-yellow:hover { background: #ffeb99; }
.cup-page .ifr-event-hero__actions > :not(:first-child):hover { color: #ffe16a; }
.cup-page .ifr-event-hero__actions svg { width: 18px; height: 18px; flex-shrink: 0; }
.cup-page .ifr-event-hero__credit { margin: -10px 0 0; color: #b8c2d3; font-size: .6875rem; line-height: 1.5; }
.ifr-event-hero__footer { position: relative; z-index: 1; background: #191c27; }
.cup-page .ifr-event-hero__facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 24px;
    width: min(100% - 80px, 1440px);
    max-width: 1440px;
    min-height: 112px;
    margin: 0 auto;
    padding: 24px 0;
    border-top: 1px solid #ffffff26;
}
.ifr-event-hero__facts > div { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ifr-event-hero__facts > div > svg, .ifr-event-hero__facts > button > svg { flex: 0 0 21px; width: 21px; height: 21px; color: #ffe16a; }
.cup-page .ifr-event-hero__facts p { margin: 0; }
.ifr-event-hero__facts small { display: block; margin-bottom: 4px; color: #aebbd0; font-size: .8125rem; line-height: 1.4; }
.ifr-event-hero__facts strong { display: block; color: #fff; font-size: .875rem; font-weight: 800; line-height: 1.5; }
.ifr-event-hero__facts a { color: inherit; }
.ifr-event-hero__facts a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ifr-event-hero__facts .cup-fact-note { display: inline; color: inherit; font-size: inherit; font-weight: inherit; }
.cup-page .ifr-event-hero__facts > button { grid-column: auto; width: auto; justify-self: start; min-height: 44px; padding: 10px 0; gap: 12px; color: #fff; font-size: .875rem; }
.ifr-event-hero :is(a,button):focus-visible { outline: 2px solid #ffe16a; outline-offset: 5px; }
/* Optical normalization: wider marks receive more width, never stretched height. */
.ifr-event-hero--league .ifr-event-hero__logo { width: calc(var(--hero-mark) * 1.06); }
.ifr-event-hero--padel .ifr-event-hero__logo, .ifr-event-hero--padel-royale .ifr-event-hero__logo { width: calc(var(--hero-mark) * 1.12); }
.ifr-event-hero--champions .ifr-event-hero__logo { width: calc(var(--hero-mark) * 1.44); }
.ifr-event-hero--fast-five .ifr-event-hero__logo { width: calc(var(--hero-mark) * 1.5); }
.ifr-event-hero--beach-fest .ifr-event-hero__logo { width: calc(var(--hero-mark) * 1.2); }
.cup-page .ifr-event-hero--league { --hero-focus: 56% 48%; }
.cup-page .ifr-event-hero--padel { --hero-focus: 63% 48%; }
.cup-page .ifr-event-hero--champions { --hero-focus: 57% 50%; }
.cup-page .ifr-event-hero--fast-five { --hero-focus: 59% 50%; }
.cup-page .ifr-event-hero--padel-royale { --hero-focus: 65% 50%; }
.cup-page .ifr-event-hero--beach-fest { --hero-focus: 65% 23%; }
@media (max-width: 1100px) {
    .cup-page .ifr-event-hero__inner, .cup-page .ifr-event-hero__facts { width: calc(100% - 56px); }
    .ifr-event-hero__copy { width: 64%; }
    .cup-page .ifr-event-hero h1 { font-size: clamp(36px, 5vw, 56px); }
    .cup-page .ifr-event-hero__facts { gap: 18px; }
    .ifr-event-hero__facts strong { font-size: .8125rem; }
    .ifr-event-hero__facts > div { gap: 10px; }
}
@media (max-width: 900px) {
    .cup-page .ifr-event-hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 156px; padding-block: 18px; gap: 16px 24px; }
    .ifr-event-hero__media { inset-inline-start: 8%; }
    .ifr-event-hero__stage::after { background: linear-gradient(90deg, #191c27f2, #191c27d6 32%, #191c2740 90%), linear-gradient(0deg, #191c27, #191c2700 48%); }
    .ifr-event-hero__copy { width: min(76%, 580px); }
}
@media (max-width: 700px) {
    .cup-page .ifr-event-hero { --hero-mark: clamp(80px, 13svh, 112px); --hero-space: clamp(14px, 2.3svh, 22px); }
    .cup-page .ifr-event-hero__inner, .cup-page .ifr-event-hero__facts { width: calc(100% - 40px); }
    .cup-page .ifr-event-hero__inner { padding-block: 24px; }
    .ifr-event-hero__copy { width: 100%; max-width: 520px; }
    .ifr-event-hero__identity { gap: 20px; }
    .cup-page .ifr-event-hero__edition { font-size: .75rem; }
    .cup-page .ifr-event-hero h1 { font-size: clamp(32px, 8.6vw, 48px); line-height: 1.05; }
    .cup-page .ifr-event-hero__intro { max-width: 350px; font-size: .9375rem; line-height: 1.5; margin-top: 12px; }
    .ifr-event-hero__media { inset: 0; mask-image: none; -webkit-mask-image: none; }
    .ifr-event-hero__stage::after { background: linear-gradient(90deg, #191c27ed, #191c27c4 52%, #191c2778), linear-gradient(0deg, #191c27 0%, #191c2700 80%); }
    .cup-page .ifr-event-hero__media > img { object-position: var(--hero-mobile-focus, 58% 50%); }
    .cup-page .ifr-event-hero--league { --hero-mobile-focus: 45% 50%; }
    .cup-page .ifr-event-hero--padel { --hero-mobile-focus: 66% 50%; }
    .cup-page .ifr-event-hero--champions { --hero-mobile-focus: 51% 50%; }
    .cup-page .ifr-event-hero--fast-five { --hero-mobile-focus: 58% 50%; }
    .cup-page .ifr-event-hero--padel-royale { --hero-mobile-focus: 72% 50%; }
    .cup-page .ifr-event-hero__actions { gap: 4px 20px; }
    .cup-page .ifr-event-hero__actions .cup-button { font-size: .8125rem; gap: 8px; }
    .cup-page .ifr-event-hero__actions .btn-yellow { min-height: 48px; padding: 12px 18px; gap: 20px; }
    .cup-page .ifr-event-hero__facts { min-height: 158px; padding-block: 16px; gap: 14px 16px; }
    .ifr-event-hero__facts > div { align-items: flex-start; gap: 8px; }
    .ifr-event-hero__facts > div > svg, .ifr-event-hero__facts > button > svg { flex-basis: 18px; width: 18px; height: 18px; margin-top: 2px; }
    .ifr-event-hero__facts small { font-size: .6875rem; margin-bottom: 3px; }
    .ifr-event-hero__facts strong, .cup-page .ifr-event-hero__facts > button { font-size: .75rem; line-height: 1.45; }
}
@media (max-width: 640px) {
    .cup-page .ifr-event-hero { --ifr-hero-header: 77px; }
    .admin-bar .cup-page .ifr-event-hero { --ifr-hero-header: 123px; }
}
@media (max-height: 760px) {
    .cup-page .ifr-event-hero { --hero-mark: 84px; --hero-space: 14px; }
    .cup-page .ifr-event-hero__inner { padding-block: 20px; }
    .cup-page .ifr-event-hero h1 { font-size: clamp(30px, 3.9vw, 44px); }
    .cup-page .ifr-event-hero__intro { margin-top: 10px; font-size: .9375rem; }
}
@media (max-width: 700px) and (max-height: 700px) {
    .cup-page .ifr-event-hero { --hero-mark: 68px; --hero-space: 8px; }
    .cup-page .ifr-event-hero__inner { padding-block: 16px; }
    .cup-page .ifr-event-hero h1 { font-size: clamp(28px, 8.2vw, 36px); }
    .cup-page .ifr-event-hero__intro { font-size: .875rem; margin-top: 8px; }
    .cup-page .ifr-event-hero__status p { font-size: .75rem; }
    .cup-page .ifr-event-hero__facts { min-height: 130px; padding-block: 12px; gap: 12px; }
    .cup-page .ifr-event-hero__actions { gap: 0 16px; }
    .cup-page .ifr-event-hero__credit { margin-top: -6px; font-size: .625rem; }
}
@media (prefers-reduced-motion: reduce) {
    .ifr-event-hero *, .ifr-event-hero *::after { transition: none !important; }
}

@media (max-width: 380px) {
    .cup-page .ifr-event-hero__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cup-page .ifr-event-hero__actions > :not(:first-child) { font-size: .75rem; }
    .cup-page .ifr-event-hero__facts { min-height: 144px; gap: 10px; }
    .ifr-event-hero__facts strong, .cup-page .ifr-event-hero__facts > button { font-size: .6875rem; line-height: 1.35; }
    .ifr-event-hero__facts small { font-size: .625rem; }
}
/* Keep the existing longer interest CTA on one header row on narrow phones. */
@media (max-width: 380px) {
    .site-header__inner { gap: 8px; padding-inline: 16px; }
    .site-header__actions { gap: 8px; }
    .site-header__cta { padding-inline: 12px; font-size: .75rem; }
}
@media (max-width: 380px) and (max-height: 650px) {
    .cup-page .ifr-event-hero { --hero-mark: 60px; }
    .cup-page .ifr-event-hero__inner { padding-block: 12px; }
}
@media (max-width: 380px) {
    .site-header__inner .site-brand img { width: 90px; height: auto; }
}

.ifr-event-hero__facts > div > :not(svg) { min-width: 0; overflow-wrap: anywhere; }
/* On phones every element follows the same centre line. */
@media (max-width: 700px) {
    .cup-page .ifr-event-hero { --hero-mark: clamp(128px, 17svh, 152px); --hero-space: 16px; }
    .cup-page .ifr-event-hero__inner { justify-content: center; padding-block: 20px; }
    .ifr-event-hero__copy { align-items: center; text-align: center; }
    .ifr-event-hero__identity { flex-direction: column; justify-content: center; gap: 8px; }
    .cup-page .ifr-event-hero__logo > img { object-position: center; }
    .cup-page .ifr-event-hero__edition { max-width: none; text-align: center; }
    .cup-page .ifr-event-hero h1 { text-align: center; font-family: "Nunito Sans", Arial, sans-serif; font-weight: 900; line-height: 1.05; }
    .cup-page .ifr-event-hero__intro { margin-inline: auto; text-align: center; }
    .ifr-event-hero__status { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 2px 8px; text-align: center; }
    .ifr-event-hero__status > svg { width: 16px; height: 16px; justify-self: end; }
    .cup-page .ifr-event-hero__status p { display: contents; }
    .ifr-event-hero__status strong { justify-self: start; }
    .ifr-event-hero__status span { grid-column: 1 / -1; }
    .cup-page .ifr-event-hero__actions { justify-content: center; }
    .cup-page .ifr-event-hero__actions > :first-child,
    .cup-page .ifr-event-hero__actions > :not(:first-child) { justify-self: center; text-align: center; }
    .cup-page .ifr-event-hero__facts { min-height: 186px; text-align: center; padding-block: 16px; }
    .ifr-event-hero__facts > div { flex-direction: column; align-items: center; justify-content: center; gap: 5px; height: 100%; }
    .ifr-event-hero__facts > div > svg, .ifr-event-hero__facts > button > svg { margin: 0; }
    .cup-page .ifr-event-hero__facts > button { justify-self: center; align-self: center; flex-direction: column; justify-content: center; gap: 5px; padding: 0; text-align: center; }
    .cup-page .ifr-event-hero--beach-fest { --hero-mobile-focus: 65% 25%; }
    .ifr-event-hero__stage::after { background: linear-gradient(0deg, #191c27 0%, #191c27c9 28%, #191c279c 68%, #191c278c 100%); }
}
@media (max-width: 700px) and (max-height: 820px) {
    .cup-page .ifr-event-hero { --hero-mark: 128px; --hero-space: 12px; }
    .cup-page .ifr-event-hero__inner { padding-block: 16px; }
}
@media (max-width: 700px) and (max-height: 700px) {
    .cup-page .ifr-event-hero { --hero-mark: 96px; --hero-space: 8px; }
    .cup-page .ifr-event-hero__inner { padding-block: 12px; }
    .cup-page .ifr-event-hero__facts { min-height: 164px; padding-block: 12px; }
}

/* Event identity first; the existing slogan remains immediately underneath. */
.cup-page .ifr-event-hero h1 { font-size:clamp(29px,min(3.5vw,5.6svh),54px);line-height:1.08;letter-spacing:-.035em; }
.ifr-event-hero__name,.ifr-event-hero__search-phrase { display:block; }
.ifr-event-hero__search-phrase { margin-top:.28em;color:#ffe16a;font-size:.62em;line-height:1.2;letter-spacing:-.015em; }
.cup-page .ifr-event-hero__slogan { margin:18px 0 0;color:#fff;font-size:clamp(18px,1.5vw,23px);line-height:1.35;font-weight:800; }
.cup-page .ifr-event-hero__intro { margin-top:8px; }
@media(max-width:700px) {
 .cup-page .ifr-event-hero h1 { font-size:clamp(27px,7.3vw,38px); }
 .ifr-event-hero__search-phrase { font-size:.65em; }
 .cup-page .ifr-event-hero__slogan { font-size:18px;margin-top:14px; }
}
@media(max-height:760px) {
 .cup-page .ifr-event-hero { --hero-space:12px; }
 .cup-page .ifr-event-hero__slogan { margin-top:12px;font-size:18px; }
}

/* Keep the same safe scene height on very short phones; allow normal scrolling. */
@media(max-width:700px) and (max-height:700px) {
 .cup-page .ifr-event-hero { min-height:max(660px,calc(100svh - var(--ifr-hero-header))); }
}
