
/* Only change the font family/type style on the existing Classic visuals. */
html[data-site-build="classic-type-beta-v1"] body,
html[data-site-build="classic-type-beta-v1"] button,
html[data-site-build="classic-type-beta-v1"] input,
html[data-site-build="classic-type-beta-v1"] select,
html[data-site-build="classic-type-beta-v1"] textarea{
 font-family:Inter,system-ui,-apple-system,sans-serif!important;
}
/* Montserrat is a font-only change: the original Classic hero keeps its
   exact image cropping, mobile height, line-height, weight and spacing. */
html[data-site-build="classic-type-beta-v1"] h1,
html[data-site-build="classic-type-beta-v1"] h2,
html[data-site-build="classic-type-beta-v1"] h3,
html[data-site-build="classic-type-beta-v1"] .masthead-v81 .logo,
html[data-site-build="classic-type-beta-v1"] .xp-highlight-rank,
html[data-site-build="classic-type-beta-v1"] .xp-highlight .xp-highlight-rank{
 font-family:Montserrat,system-ui,sans-serif!important;
}
html[data-site-build="classic-type-beta-v1"] .home .hero.hero-cinematic,
html[data-site-build="classic-type-beta-v1"] .home .hero.hero-cinematic .hero-copy,
html[data-site-build="classic-type-beta-v1"] .home .hero.hero-cinematic .hero-photo{
 /* No geometry overrides: intentionally delegated to original Classic CSS. */
}
/* Existing colors, section positions, photos, controls and animation stay as-is. */
html[data-site-build="classic-type-beta-v1"] .ct-brand-on-water{
 display:block;max-width:1280px;margin-block:clamp(42px,6vw,78px);
 padding:clamp(23px,3.4vw,45px);
 border:1px solid #ffffff2a;border-radius:24px;
 background:linear-gradient(130deg,#142b3bc9,#0c1b2dbb);
 box-shadow:0 10px 32px #020b1452;
}
html[data-site-build="classic-type-beta-v1"] .ct-brand-heading{margin-bottom:21px}
html[data-site-build="classic-type-beta-v1"] .ct-kicker{
 display:block;color:var(--lime,#d9ff79);
 font-size:.75rem;font-weight:850;letter-spacing:.13em;
}
html[data-site-build="classic-type-beta-v1"] .ct-brand-on-water h2{
 color:#f3f9fc!important;font:italic 900 clamp(1.75rem,3.8vw,3.3rem)/1.1 Montserrat,sans-serif!important;
 letter-spacing:-.055em;margin:9px 0 15px;
}
html[data-site-build="classic-type-beta-v1"] .ct-brand-on-water p{
 color:#c2d0dc;max-width:63ch;font-size:.89rem;line-height:1.75;margin:0;
}
html[data-site-build="classic-type-beta-v1"] .ct-placement-grid{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;
}
html[data-site-build="classic-type-beta-v1"] .ct-placement{
 display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;
 min-height:152px;padding:13px;
 border:1px solid #ffffff24;border-radius:17px;background:#ffffff07;
}
html[data-site-build="classic-type-beta-v1"] .ct-placement svg{
 display:block;width:99px;height:76px;fill:none;stroke:#b1c7d4;
 stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
html[data-site-build="classic-type-beta-v1"] .ct-placement .ct-mark{
 fill:var(--lime,#d9ff79);stroke:var(--lime,#d9ff79);
}
html[data-site-build="classic-type-beta-v1"] .ct-placement span{
 color:#e1ebf1;font-size:.73rem;font-weight:850;letter-spacing:.08em;
}
@media(max-width:700px){
 html[data-site-build="classic-type-beta-v1"] .ct-brand-on-water{padding:20px 16px;margin-block:36px}
 html[data-site-build="classic-type-beta-v1"] .ct-placement-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 html[data-site-build="classic-type-beta-v1"] .ct-placement{min-height:132px;padding:9px}
 html[data-site-build="classic-type-beta-v1"] .ct-placement svg{width:80px;height:66px}
}

/* In V5 the 3-language pill occupies the old search-button position.
   Keep the original search node inert and visually hidden without moving
   the hamburger or changing the published Classic header. */
html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81 .nav-tools{
 display:flex!important;
 align-items:center!important;
 justify-content:flex-end!important;
 flex-wrap:nowrap!important;
 gap:6px;
 min-width:0;
}
html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81 .nav-tools>.search-toggle,
html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81 .nav-tools>.ct-legacy-language{
 display:none!important;
 visibility:hidden!important;
 pointer-events:none!important;
}
html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81 .nav-tools>.ct-language-switch{
 display:inline-flex!important;
 flex:0 0 auto!important;
 position:static!important;
 margin:0!important;
 order:0;
}
html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81 .nav-tools>.menu-toggle{
 flex:0 0 auto;
 order:1;
}
@media(max-width:700px){
 html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81 .nav-tools{gap:5px}
 html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81 .nav-tools>.ct-language-switch{
  padding:2px!important;
  gap:1px!important;
 }
 html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81 .nav-tools>.ct-language-switch a{
  min-width:24px!important;
  min-height:28px!important;
  padding:4px 3px!important;
 }
}
/* The new language selector is confined to the original Classic header slot. */
html[data-site-build="classic-type-beta-v1"] .ct-language-switch{
 display:inline-flex;align-items:center;gap:2px;
 padding:3px;border:1px solid #ffffff32;background:#112a3a52;
 border-radius:999px;white-space:nowrap;
}
html[data-site-build="classic-type-beta-v1"] .ct-language-switch a{
 display:inline-flex;align-items:center;justify-content:center;
 min-width:27px;min-height:27px;padding:3px 5px!important;
 border-radius:999px;color:#e0edf3;font:800 .65rem/1 Inter,sans-serif!important;
 text-decoration:none!important;
}
html[data-site-build="classic-type-beta-v1"] .ct-language-switch a[aria-current="true"]{
 background:var(--lime,#d9ff79);color:#122737!important;
}
html[data-site-build="classic-type-beta-v1"] .ct-language-switch a:focus-visible{
 outline:2px solid var(--lime,#d9ff79);outline-offset:2px;
}
@media(max-width:700px){
 html[data-site-build="classic-type-beta-v1"] .ct-language-switch{padding:2px;gap:1px}
 html[data-site-build="classic-type-beta-v1"] .ct-language-switch a{
  min-width:24px;min-height:26px;padding-inline:3px!important;font-size:.6rem!important;
 }
}


/* The tablet expanded-menu rule uses a generic nav selector. Keep the
   independent SR / EN / HU control horizontal, even with the menu open. */
html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81.menu-open nav.ct-language-switch{
 display:inline-flex!important;
 flex-direction:row!important;
 grid-template-columns:none!important;
 align-items:center!important;
 justify-content:center!important;
 position:static!important;
 width:max-content;max-width:100%;
 padding:3px;gap:2px;
 white-space:nowrap;
}
html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81.menu-open nav.ct-language-switch a{
 display:inline-flex!important;white-space:nowrap!important;
 min-width:27px;min-height:27px;
}

/* V5.1 screenshot fixes: keep the Classic hero, full gallery and original
   desktop layout, but give longer Hungarian headings room to breathe. */
@media(max-width:700px){
 html[data-site-build="classic-type-beta-v1"] .subpage{
  min-width:0;
 }
 html[data-site-build="classic-type-beta-v1"] .subpage .section-heading,
 html[data-site-build="classic-type-beta-v1"] .subpage .season,
 html[data-site-build="classic-type-beta-v1"] .subpage .season-grid,
 html[data-site-build="classic-type-beta-v1"] .subpage .season-grid article{
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
 }
 html[data-site-build="classic-type-beta-v1"] .subpage .section-heading>h2,
 html[data-site-build="classic-type-beta-v1"] .subpage .season>h2,
 html[data-site-build="classic-type-beta-v1"] .subpage #career-highlights h2,
 html[data-site-build="classic-type-beta-v1"] .subpage #calendar h2,
 html[data-site-build="classic-type-beta-v1"] .subpage #sports-honors h2{
  font-size:clamp(1.65rem,7.25vw,2.25rem)!important;
  line-height:1.19!important;
  letter-spacing:-.035em!important;
  max-width:100%;
  overflow-wrap:break-word;
  word-break:normal;
  text-wrap:balance;
  hyphens:auto;
  margin-bottom:clamp(14px,3.8vw,23px);
 }
 html[data-site-build="classic-type-beta-v1"] .subpage .season-grid article h3{
  font-size:clamp(1.03rem,4.65vw,1.31rem)!important;
  line-height:1.27!important;
  letter-spacing:-.015em;
  overflow-wrap:break-word;
  word-break:normal;
  hyphens:auto;
 }
 html[data-site-build="classic-type-beta-v1"] .subpage .season-grid article p{
  font-size:clamp(.92rem,3.8vw,1rem);
  line-height:1.58;
  overflow-wrap:break-word;
 }
 /* The ranking is a short label, not another giant hero heading. */
 html[data-site-build="classic-type-beta-v1"] .subpage #results ul.highlights{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:12px!important;
  padding:0!important;
  margin-block:16px 27px;
  list-style:none;
  min-width:0;
 }
 html[data-site-build="classic-type-beta-v1"] .subpage #results ul.highlights>li{
  box-sizing:border-box;
  display:grid!important;
  grid-template-columns:minmax(84px,27%) minmax(0,1fr)!important;
  align-items:center!important;
  gap:clamp(10px,3vw,15px)!important;
  min-width:0;width:100%;max-width:100%;
  min-height:100px;
  padding:14px 12px!important;
  position:relative;
 }
 html[data-site-build="classic-type-beta-v1"] .subpage #results ul.highlights>li>strong{
  display:block!important;
  position:static!important;
  float:none!important;
  width:auto!important;
  max-width:100%!important;
  padding:0!important;margin:0!important;
  font-family:Montserrat,system-ui,sans-serif;
  font-size:clamp(1.06rem,4.8vw,1.52rem)!important;
  font-weight:850;
  line-height:1.16!important;
  letter-spacing:-.035em!important;
  white-space:normal;
  overflow-wrap:normal;
  word-break:keep-all;
 }
 html[data-site-build="classic-type-beta-v1"] .subpage #results ul.highlights>li>div{
  display:block!important;
  min-width:0;max-width:100%;
  margin:0!important;padding:0!important;
 }
 html[data-site-build="classic-type-beta-v1"] .subpage #results ul.highlights>li h3{
  font-size:clamp(.98rem,4.1vw,1.18rem)!important;
  line-height:1.3!important;
  letter-spacing:-.015em;
  margin:0 0 5px!important;
  text-wrap:pretty;
  overflow-wrap:break-word;
 }
 html[data-site-build="classic-type-beta-v1"] .subpage #results ul.highlights>li p,
 html[data-site-build="classic-type-beta-v1"] .subpage #results ul.highlights>li small{
  font-size:clamp(.77rem,3.3vw,.91rem)!important;
  line-height:1.45!important;
  margin:3px 0!important;
  overflow-wrap:break-word;
 }
}
@media(max-width:390px){
 html[data-site-build="classic-type-beta-v1"] .subpage .season>h2,
 html[data-site-build="classic-type-beta-v1"] .subpage .section-heading>h2{
  font-size:clamp(1.52rem,6.8vw,1.9rem)!important;
 }
 html[data-site-build="classic-type-beta-v1"] .subpage #results ul.highlights>li{
  grid-template-columns:minmax(75px,25%) minmax(0,1fr)!important;
  padding:12px 10px!important;gap:10px!important;
 }
}
/* The glass pill changes geometry more slowly than the gesture so the
   full header fades in instead of abruptly replacing the compact portrait. */
@media(prefers-reduced-motion:no-preference){
 html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81:not(.menu-open){
  transition:width .7s cubic-bezier(.22,1,.36,1),
   max-width .7s cubic-bezier(.22,1,.36,1),
   padding .7s cubic-bezier(.22,1,.36,1),
   min-height .7s cubic-bezier(.22,1,.36,1),
   height .7s cubic-bezier(.22,1,.36,1),
   background .45s ease,box-shadow .6s ease,border-radius .7s cubic-bezier(.22,1,.36,1)!important;
 }
 html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81>.brand,
 html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81>#main-navigation,
 html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81>.nav-tools{
  transition:opacity .45s cubic-bezier(.22,1,.36,1),
   transform .55s cubic-bezier(.22,1,.36,1),
   visibility 0s linear 0s!important;
 }
 html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81.nav-liquid-compact:not(.menu-open)>:not(.nav-scroll-identity){
  max-height:none!important;max-width:none!important;
  overflow:visible!important;
  opacity:0!important;visibility:hidden!important;
  transition:opacity .45s cubic-bezier(.22,1,.36,1),
   transform .55s cubic-bezier(.22,1,.36,1),
   visibility 0s linear .45s!important;
 }
 html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81>.nav-scroll-identity{
  transition:opacity .46s cubic-bezier(.22,1,.36,1),
   transform .65s cubic-bezier(.22,1,.36,1),
   visibility 0s linear .46s!important;
 }
 html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81.nav-liquid-compact:not(.menu-open)>.nav-scroll-identity{
  transition:opacity .46s cubic-bezier(.22,1,.36,1),
   transform .65s cubic-bezier(.22,1,.36,1),
   visibility 0s linear 0s!important;
 }
}

/* BETA-only Safari layout stability: the sticky pill keeps the same outer
   height in both states, so shrinking it cannot scroll-anchor the document. */
@media(max-width:1080px){
 html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81.nav-liquid-compact:not(.menu-open){
  min-height:66px!important;height:66px!important;
 }
}
@media(max-width:700px){
 html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81:not(.menu-open),
 html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81.nav-liquid-compact:not(.menu-open){
  min-height:58px!important;height:58px!important;
 }
}

/* V5 smooth glass pill. The old compact CSS switches flex -> grid and removes
   children from layout instantly. On WebKit that causes a visible snap and
   sticky scroll anchoring. Keep a stable outer layout and animate only the
   GPU-friendly clipping rectangle, with a crossfade between content layers. */
@media(max-width:1080px) and (prefers-reduced-motion:no-preference){
 html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81:not(.menu-open),
 html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81.nav-liquid-compact:not(.menu-open){
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  width:calc(100% - 28px)!important;
  max-width:calc(100% - 28px)!important;
  min-height:66px!important;height:66px!important;
  padding:9px 13px!important;
  box-sizing:border-box;
  border-radius:999px!important;
  clip-path:inset(0 0 0 0 round 999px);
  -webkit-clip-path:inset(0 0 0 0 round 999px);
  transition:clip-path .8s cubic-bezier(.22,1,.36,1),
             -webkit-clip-path .8s cubic-bezier(.22,1,.36,1),
             background-color .45s ease!important;
  -webkit-backdrop-filter:blur(14px) saturate(145%)!important;
  backdrop-filter:blur(14px) saturate(145%)!important;
 }
 html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81.nav-liquid-compact:not(.menu-open){
  clip-path:inset(0 calc(50% - 110px) 0 calc(50% - 110px) round 999px);
  -webkit-clip-path:inset(0 calc(50% - 110px) 0 calc(50% - 110px) round 999px);
 }
 html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81:not(.menu-open)::after{
  content:"";position:absolute;inset:0 auto 0 50%;width:min(220px,100%);
  transform:translateX(-50%);border-radius:999px;pointer-events:none;
  z-index:1;box-sizing:border-box;
  border:1px solid rgba(221,242,255,.32);
  background:linear-gradient(125deg,rgba(45,82,106,.95),rgba(17,45,67,.97));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14);
  opacity:0;
  transition:opacity .48s cubic-bezier(.22,1,.36,1)!important;
 }
 html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81.nav-liquid-compact:not(.menu-open)::after{
  opacity:1;
 }
 html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81.nav-liquid-compact:not(.menu-open)>.nav-scroll-identity{
  z-index:2;
 }
 html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81:not(.menu-open)>.brand,
 html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81:not(.menu-open)>#main-navigation,
 html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81:not(.menu-open)>.nav-tools{
  transition:opacity .47s cubic-bezier(.22,1,.36,1),
    transform .56s cubic-bezier(.22,1,.36,1),
    visibility 0s linear 0s!important;
 }
 html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81.nav-liquid-compact:not(.menu-open)>.brand,
 html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81.nav-liquid-compact:not(.menu-open)>#main-navigation,
 html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81.nav-liquid-compact:not(.menu-open)>.nav-tools{
  position:static!important;
  max-height:none!important;max-width:none!important;
  overflow:visible!important;
  opacity:0!important;
  visibility:hidden!important;
  transition:opacity .47s cubic-bezier(.22,1,.36,1),
    transform .56s cubic-bezier(.22,1,.36,1),
    visibility 0s linear .47s!important;
 }
 html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81>.nav-scroll-identity{
  transition:opacity .5s cubic-bezier(.22,1,.36,1),
    transform .65s cubic-bezier(.22,1,.36,1),
    visibility 0s linear .5s!important;
 }
 html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81.nav-liquid-compact:not(.menu-open)>.nav-scroll-identity{
  transition:opacity .5s cubic-bezier(.22,1,.36,1),
    transform .65s cubic-bezier(.22,1,.36,1),
    visibility 0s linear 0s!important;
 }
}
@media(max-width:700px) and (prefers-reduced-motion:no-preference){
 html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81:not(.menu-open),
 html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81.nav-liquid-compact:not(.menu-open){
  width:calc(100% - 18px)!important;
  max-width:calc(100% - 18px)!important;
  min-height:58px!important;height:58px!important;
  padding:7px 9px!important;
 }
 html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81.nav-liquid-compact:not(.menu-open){
  clip-path:inset(0 calc(50% - 106px) 0 calc(50% - 106px) round 999px);
  -webkit-clip-path:inset(0 calc(50% - 106px) 0 calc(50% - 106px) round 999px);
 }
 html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81:not(.menu-open)::after{width:min(212px,100%)}
}
@media(max-width:1080px) and (prefers-reduced-motion:reduce){
 html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81,
 html[data-site-build="classic-type-beta-v1"] .masthead.masthead-v81.nav-liquid-compact{
  transition:none!important;
 }
}
