/* Public mirror masthead */
.rhc-masthead { max-width: 1400px; margin: 0 auto; padding: 0 24px; color: #fff; -webkit-font-smoothing: antialiased; }
.rhc-masthead-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.35); }
.rhc-masthead-title { margin: 0; max-width: 32ch; font-size: 24px; line-height: 32px; font-weight: 700; text-wrap: balance; }
.rhc-countdown { display: flex; align-items: flex-start; font-variant-numeric: tabular-nums; }
.rhc-countdown-unit { display: grid; justify-items: center; position: relative; min-width: 48px; }
.rhc-countdown-unit + .rhc-countdown-unit::before { content: ':'; position: absolute; left: 0; font-size: 24px; line-height: 32px; transform: translateX(-50%); }
.rhc-countdown-unit strong { font-size: 24px; line-height: 32px; font-weight: 700; }
.rhc-countdown-unit small { font-size: 12px; line-height: 16px; color: #e5cef8; }
.rhc-masthead-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 8px 0; }
.rhc-masthead-logo { grid-column: 2; display: block; }
.rhc-masthead-logo img { display: block; width: 96px; height: auto; }
.rhc-masthead-languages { grid-column: 3; justify-self: end; display: flex; align-items: center; }
.rhc-masthead-languages a { display: grid; place-items: center; min-width: 40px; min-height: 40px; color: #e5cef8; font-size: 18px; line-height: 28px; text-decoration: none; }
.rhc-masthead-languages a + a { position: relative; }
.rhc-masthead-languages a + a::before { content: '|'; position: absolute; left: 0; transform: translateX(-50%); color: #e5cef8; }
.rhc-masthead-languages a[aria-current], .rhc-masthead-languages a:hover { color: #fff; font-weight: 700; }
.rhc-masthead a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.rhc-redesign .header-logo-row .logo, .rhc-redesign #navigation-additional .top-navbar-lang, .rhc-redesign #mainMenu .top-navbar-lang { display: none; }
@media (max-width: 1149px) { .rhc-redesign .header-logo-row { display: none; } }
@media (max-width: 479px) {
  .rhc-masthead { padding: 0 12px; }
  .rhc-masthead-top { gap: 8px; }
  .rhc-masthead-title { font-size: 14px; line-height: 20px; }
  .rhc-countdown-unit { min-width: 32px; }
  .rhc-countdown-unit strong, .rhc-countdown-unit + .rhc-countdown-unit::before { font-size: 18px; line-height: 28px; }
  .rhc-masthead-logo img { width: 80px; }
}

.rhc-masthead-menu { grid-column: 1; justify-self: start; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; }
.rhc-masthead-menu:hover, .rhc-masthead-menu[aria-expanded="true"] { background-color: rgba(255,255,255,.12); }
.rhc-masthead-menu:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (min-width: 1150px) {
  .rhc-redesign .header-menu-row .container .main-menu:not(.menu-open) { display: none; }
  .rhc-redesign .header-menu-row:not(:has(.menu-open)) { display: none; }
}

.rhc-masthead-title { font-size: 18px; line-height: 24px; max-width: none; }
.rhc-masthead-title span { display: block; white-space: nowrap; }
@media (max-width: 479px) { .rhc-masthead-title { font-size: 12px; line-height: 16px; } }
@media (max-width: 359px) { .rhc-countdown-unit { min-width: 28px; } }

/* Center the larger logo on the lower edge of the purple header. */
header.header.rhc-redesign { position: relative; margin-bottom: 64px; overflow: visible; }
.rhc-redesign .rhc-masthead-logo { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%); z-index: 2; }
.rhc-redesign .rhc-masthead-logo img { width: 128px; }
.rhc-redesign .rhc-masthead-bottom { padding: 4px 0; }
@media (max-width: 1149px) {
  .rhc-redesign .header-menu-row .container { padding-top: 0; padding-bottom: 0; min-height: 0; height: 0; }
  .rhc-redesign .mobile_top_icon { top: auto; bottom: 8px; }
  .rhc-redesign .rhc-masthead-languages { margin-right: 32px; }
}
@media (max-width: 479px) {
  header.header.rhc-redesign { margin-bottom: 56px; }
  .rhc-redesign .rhc-masthead-logo img { width: 112px; }
}

/* The drawer overlays content without changing the masthead height. */
.rhc-redesign .header-menu-row .container { position: static; padding-top: 0; padding-bottom: 0; }
.rhc-redesign .header-menu-row .mobile_top_icon { top: auto; bottom: 8px; right: 12px; }
.rhc-redesign #mainMenu.menu-open {
  display: block; position: absolute; inset: 100% auto auto 0; z-index: 120;
  width: 75vw; max-width: 100%; max-height: 65vh; overflow: auto; overscroll-behavior: contain;
  box-sizing: border-box; padding: 16px 24px; background: #2d005a; color: #fff;
  border-radius: 0 12px 12px 0; box-shadow: 0 12px 32px rgba(0,0,0,.26);
  animation: rhc-menu-appear 300ms cubic-bezier(.22,1,.36,1);
}
.rhc-redesign #mainMenu.menu-open::before, .rhc-redesign #mainMenu .close-menu { display: none; }
.rhc-redesign #mainMenu .main-menu-list { display: block; padding: 0; margin: 0; color: inherit; }
.rhc-redesign #mainMenu .main-menu-list li {
  position: relative; display: block; margin: 0; padding: 0; text-align: left;
  color: inherit; background: transparent; font-size: 16px; line-height: 24px;
}
.rhc-redesign #mainMenu .main-menu-list li a { display: block; padding: 12px 48px 12px 8px; color: inherit; }
.rhc-redesign #mainMenu .main-menu-list li a:hover, .rhc-redesign #mainMenu .main-menu-list li.active > a { color: #3cffc8; }
.rhc-redesign #mainMenu .main-menu-list a.main-link:hover,
.rhc-redesign #mainMenu .main-menu-list li.active > a.main-link { color: #fffd03 !important; }
.rhc-redesign #mainMenu .main-menu-list li a:focus-visible, .rhc-submenu-toggle:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.rhc-redesign #mainMenu .main-menu-list li > ul { display: none !important; position: static; padding: 0 0 0 16px; margin: 0; }
.rhc-redesign #mainMenu .main-menu-list li.rhc-submenu-open > ul { display: block !important; }
.rhc-redesign #mainMenu .main-menu-list li.mobile_hide { display: block !important; }
.rhc-submenu-toggle { position: absolute; right: 0; top: 0; width: 48px; height: 48px; border: 0; background: transparent; color: #fff; cursor: pointer; }
.rhc-submenu-toggle::after { content: ''; display: inline-block; width: 8px; height: 8px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); }
.rhc-submenu-toggle[aria-expanded="true"]::after { transform: rotate(135deg); }
.rhc-masthead-menu[aria-expanded="true"] svg { display: none; }
.rhc-masthead-menu[aria-expanded="true"]::before { content: '×'; font-size: 30px; line-height: 36px; }
@keyframes rhc-menu-appear { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .rhc-redesign #mainMenu.menu-open { animation: none; } }
@media (max-width: 479px) { .rhc-redesign #mainMenu.menu-open { padding: 12px; } }

.rhc-masthead-controls { grid-column: 1; justify-self: start; display: flex; align-items: center; }
.rhc-mobile-season { display: none; }
@media (max-width: 1149px) {
  .rhc-redesign #seasons { display: none; }
  .rhc-masthead-controls .rhc-masthead-menu { width: 40px; }
  .rhc-mobile-season { display: block; position: relative; flex-shrink: 0; color: #fff; }
  .rhc-mobile-season summary { display: flex; align-items: center; gap: 5px; min-height: 40px; padding: 0 4px; cursor: pointer; list-style: none; }
  .rhc-mobile-season summary::-webkit-details-marker { display: none; }
  .rhc-mobile-season summary::after { content: ''; width: 5px; height: 5px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
  .rhc-season-options { position: absolute; top: calc(100% + 4px); right: 0; z-index: 121; width: max-content; min-width: 120px; max-width: calc(100vw - 64px); max-height: 45vh; overflow: hidden auto; background: #2b0a52; border: 1px solid #7959a4; border-radius: 6px; }
  .rhc-season-options button { display: block; box-sizing: border-box; width: 100%; min-height: 40px; padding: 0 12px; color: inherit; font: inherit; font-size: 16px; text-align: left; overflow-wrap: anywhere; background: transparent; border: 0; cursor: pointer; }
  .rhc-season-options button[aria-current], .rhc-season-options button:hover { background: #7300c8; }
  .rhc-mobile-season summary { border-radius: 4px; }
  .rhc-mobile-season summary:focus-visible, .rhc-season-options button:focus-visible { outline: 1px solid #cba5ec; outline-offset: -1px; }
}

.rhc-mobile-auth { display: none; }
@media (max-width: 1149px) {
  .rhc-redesign .header-menu-row .mobile_top_icon,
  .rhc-redesign .header-menu-row .user_div,
  .rhc-redesign #mainMenu .main-menu-list li.additional { display: none !important; }
  .rhc-redesign .rhc-masthead-languages { margin-right: 0; }
  .rhc-mobile-auth { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 8px; padding: 0 0 8px; border-bottom: 1px solid rgba(255,255,255,.35); list-style: none; }
  .rhc-mobile-auth a { display: flex; align-items: center; min-height: 44px; padding: 0 8px; color: #fff; }
  .rhc-mobile-auth a:hover, .rhc-mobile-auth a:focus-visible { color: #3cffc8; }
}

@media (max-width: 1149px) {
  .rhc-redesign .rhc-masthead-top {
    position: relative;
    padding: 8px 0;
    border-bottom: 0;
  }
}

@media screen {
  .rhc-redesign .rhc-masthead-top { border-bottom: 0; }
  .rhc-redesign .rhc-masthead-top::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, #79c8df, transparent 50%, #79c8df);
    pointer-events: none;
  }
}

@media (max-width: 1149px) {
  header.header.rhc-redesign { margin-bottom: 0; }
  .rhc-redesign ~ #template_main { top: 0; padding-top: 64px; background-color: #fff; }
}
@media (max-width: 479px) {
  .rhc-redesign ~ #template_main { padding-top: 56px; }
}

@media (max-width: 1149px) {
  .rhc-redesign ~ #template_main .division-container .divisions-list {
    display: grid; grid-template-columns: repeat(var(--division-columns, 7), minmax(44px, 1fr));
    gap: 4px 0; width: 100%; margin: 0; padding: 4px 0; overflow-x: auto;
  }
  .rhc-redesign ~ #template_main .division-container .divisions-list li {
    display: block; float: none; width: auto !important; min-width: 0; margin: 0 !important;
    padding: 0; border: 0; background: none !important; text-align: center;
  }
  .rhc-redesign ~ #template_main .division-container .divisions-list li a {
    display: grid; place-items: center; width: 100%; min-height: 44px; height: auto;
    aspect-ratio: 1; max-width: 64px; margin: auto; padding: 0 6px !important;
    background: url('../img/division-star.svg') center / contain no-repeat;
    color: #fff; font-size: 15px; font-weight: 700; line-height: 1; text-decoration: none;
  }
  .rhc-redesign ~ #template_main .division-container .divisions-list li a .slug {
    position: static; display: block; margin: 0; color: inherit; text-wrap: balance; transform: translateY(2px);
  }
  .rhc-redesign ~ #template_main .division-container .divisions-list .color-orange a { color: #ffd1fc; }
  .rhc-redesign ~ #template_main .division-container .divisions-list li.active a { color: #3cffc8; }
  .rhc-redesign ~ #template_main .division-container .divisions-list li a:focus-visible { outline: 2px solid #7300c8; outline-offset: -2px; }
  .rhc-redesign ~ #template_main .division-container .divisions-list a :is(.icon, .hover_overlay, .active_overlay) { display: none; }
}

@media (max-width: 1149px) {
  .rhc-redesign .rhc-masthead-logo { transform: translate(-50%, 33.4%); }
  .rhc-redesign .rhc-masthead-bottom { min-height: 84px; }
  .rhc-redesign ~ #template_main { padding-top: 38px; }
}
@media (max-width: 479px) {
  .rhc-redesign .rhc-masthead-bottom { min-height: 72px; }
  .rhc-redesign ~ #template_main { padding-top: 34px; }
}

@media (max-width: 1149px) {
  .rhc-masthead-bottom .rhc-masthead-languages { grid-area: 1 / 1; justify-self: start; }
  .rhc-masthead-bottom .rhc-masthead-controls { grid-area: 1 / 3; justify-self: end; }
  .rhc-masthead-controls .rhc-mobile-season { order: -1; }
  .rhc-redesign #mainMenu.menu-open { inset: 100% 0 auto auto; border-radius: 12px 0 0 12px; animation-name: rhc-menu-appear-right; }
}
@keyframes rhc-menu-appear-right {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}
@media (max-width: 1149px) and (prefers-reduced-motion: reduce) {
  .rhc-redesign #mainMenu.menu-open { animation: none; }
}

@media (max-width: 1149px) {
  .rhc-redesign ~ #template_main .division-container .divisions-list .rhc-division-suffix {
    display: block;
    font-size: 12px;
    line-height: 1;
  }
}

@media (max-width: 1149px) {
  .rhc-masthead-controls .rhc-mobile-season {
    font-size: 18px;
    line-height: 28px;
  }
}

.rhc-home-hero { display: none; }
@media screen {
  .rhc-home-hero {
    display: flex;
    flex-direction: column;
    align-items: center;

    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin-inline: 0;
    min-height: calc(100vh - var(--rhc-hero-top, 140px));
    min-height: calc(100svh - var(--rhc-hero-top, 140px));
    padding: 24px 16px 8px;
    background: #2d2053 url('../img/rhc-2027-hero.png') center / cover no-repeat;
    color: #fff;
    text-align: center;
  }
  .rhc-home-hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
  }
  .rhc-home-hero h1 { max-width: 13ch; margin: 0; color: inherit; font-size: 48px; line-height: 1; font-weight: 700; text-wrap: balance; transform: translateY(-6px); text-shadow: 0 0 3px #444; }
  .rhc-home-actions { display: grid; width: min(100%, 224px); gap: 12px; transform: translateY(-8px); }
  .rhc-home-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 16px; border: 1px solid #fff; border-radius: 6px; color: #fff; background: transparent; font-size: 18px; font-weight: 700; }
  .rhc-home-actions a:first-child { color: #2d2053; background: #fff; }
  .rhc-home-actions a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
}

.rhc-masthead-slogan { display: none; }
@media (max-width: 1149px) {
  .rhc-masthead-slogan {
    display: block;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    color: #fff;
    text-align: center;
    font-size: 14px;
    line-height: 16px;
    font-weight: 700;
  }
}

.rhc-masthead-slogan span:nth-of-type(1) { color: #00c8f5; }
.rhc-masthead-slogan span:nth-of-type(2) { color: #ff0000; }
.rhc-masthead-slogan span:nth-of-type(3) { color: #90e340; }
.rhc-masthead-slogan span:nth-of-type(4) { color: #ffff00; }

@media (max-width: 379px) {
  .rhc-redesign .rhc-masthead-top { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; }
  .rhc-masthead-slogan { position: static; transform: none; font-size: 12px; }
}

@media (max-width: 1149px) {
  body:is(:has(.rhc-home-hero), .rhc-registration-page) { min-width: 0; }
  body:is(:has(.rhc-home-hero), .rhc-registration-page) .container { max-width: 100%; box-sizing: border-box; }
  body:is(:has(.rhc-home-hero), .rhc-registration-page) .rhc-redesign ~ #template_main .division-container .divisions-list {
    padding-top: 0;
  }
  body:is(:has(.rhc-home-hero), .rhc-registration-page) .rhc-redesign ~ #template_main .division-container .divisions-list li a {
    box-sizing: border-box;
    padding-inline: 0 !important;
  }
}

@media (max-width: 1149px) {
  .rhc-countdown-unit + .rhc-countdown-unit small::before {
    content: ":";
    position: absolute;
    left: 0;
    transform: translateX(-50%);
  }
}

@media (max-width: 1149px) {
  .rhc-redesign .header-slider-container:has(> #season_box),
  .rhc-redesign #seasons2,
  .rhc-redesign #seasons2-label {
    display: none;
  }
}

@media (max-width: 1149px) {
  #template_main:has(> .rhc-home-hero) > .container:has(> .division-container) {
    background-color: transparent;
  }

  #template_main:has(> .rhc-home-hero) .division-container .divisions-list li a {
    position: relative;
    z-index: 1;
  }
}

.rhc-home-partners { display: none; }
@media screen {
  .rhc-home-partners {
    box-sizing: border-box;
    padding-inline: 8px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 48px));
    column-gap: 4px;
    justify-content: center;
    justify-items: center;
    align-items: center;
    width: min(100%, 308px);
  }
  .rhc-home-partners img { grid-column: span 2; display: block; width: 100%; max-width: 96px; height: auto; }
  .rhc-home-partners img:first-child { grid-column: 2 / span 2; }
}

.rhc-mobile-news { display: none; }
@media (max-width: 1149px) {
  #template_main:has(.rhc-mobile-news) #top-news,
  #template_main:has(.rhc-mobile-news) .news-list { display: none; }

  .rhc-mobile-news {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .rhc-mobile-news-card {
    flex: 0 0 80%;
    min-width: 0;
    color: #2d005a;
    scroll-snap-align: start;
  }

  .rhc-mobile-news-card img {
    display: block;
    width: 100%;
    height: auto;
  }

  .rhc-mobile-news-card .news-title {
    margin: 6px 0;
    font-size: 18px;
    font-weight: 700;
  }

  .rhc-news-archive {
    display: inline-flex;
    flex: 0 0 100%;
    box-sizing: border-box;
    justify-content: center;
    align-self: center;
    align-items: center;
    min-height: 44px;
    padding-inline: 12px;
    color: #2d005a;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }
}

@media (max-width: 1149px) {
}

.rhc-mobile-footer { display: none; }
@media screen {
  .footer:has(> .rhc-mobile-footer) > .container { display: none; }
  .rhc-mobile-footer {
    display: block;
    padding: 28px 20px;
    background: #2d005a;
    color: #fff;
  }
  .rhc-mobile-footer p { margin: 0; }
  .rhc-mobile-footer .rhc-footer-title,
  .rhc-footer-sponsors #footer-top-2 span { font-size: 24px; line-height: 32px; font-weight: 700; }
  .rhc-footer-tagline { max-width: 28ch; text-wrap: balance; }
  .rhc-mobile-footer img { display: block; margin: 8px 0; }
  .rhc-footer-links { display: grid; justify-items: start; }
  .rhc-mobile-footer a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; }
  .rhc-mobile-footer a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
  .rhc-footer-social { display: flex; flex-wrap: wrap; gap: 0 16px; }
}

@media (max-width: 1149px) {
  body:has(.rhc-login-form) { min-width: 0; }
  body:has(.rhc-login-form) .container { max-width: 100%; box-sizing: border-box; }
  #user-form-box.rhc-login-form {
    display: grid;
    gap: 12px;
    width: min(100%, 28rem);
    margin: 0 auto 24px;
    text-align: left;
  }
  #user-form-box.rhc-login-form .user_form {
    display: grid;
    gap: 4px;
    padding: 0 !important;
    margin: 0;
  }
  #user-form-box.rhc-login-form label {
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
    background: none;
    color: #2d005a;
    text-align: left;
    font-weight: 700;
  }
  #user-form-box.rhc-login-form input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid #a392b2;
    border-radius: 8px;
    font-size: 16px;
  }
  #user-form-box.rhc-login-form input[type="submit"] {
    background: #2d005a;
    border-color: #2d005a;
    color: #fff;
    font-weight: 700;
  }
  #user-form-box.rhc-login-form .forgot_password {
    justify-self: start;
    padding: 6px 0;
    color: #7300c8;
  }
  #user-form-box.rhc-login-form :focus-visible {
    outline: 2px solid #7300c8;
    outline-offset: 2px;
  }
}

@media (max-width: 1149px) {
  .rhc-login-heading { padding: 0; margin: 16px 0; text-align: center; }
  .rhc-login-heading h1.player-name { float: none; display: block; margin: 0; padding: 0; color: #2d005a; font-size: 24px; line-height: 32px; font-weight: 700; text-align: center; }
}

@media (min-width: 1150px) {
  .rhc-home-hero {
    min-height: calc(100vh - var(--rhc-hero-top, 220px));
    min-height: calc(100svh - var(--rhc-hero-top, 220px));
    padding: 32px 24px 16px;
  }
  .rhc-home-hero h1 { max-width: none; font-size: clamp(48px, 6vw, 80px); }
  .rhc-home-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 440px); }
  .rhc-home-partners { grid-template-columns: repeat(5, minmax(0, 140.8px)); width: min(100%, 792px); column-gap: 17.6px; }
  .rhc-home-partners img, .rhc-home-partners img:first-child { grid-column: auto; max-width: 140.8px; }
  .rhc-mobile-footer { padding-inline: max(24px, calc((100% - 1100px) / 2)); }
  .rhc-redesign:has(~ #template_main > .rhc-home-hero) { margin-bottom: 0; }
  .rhc-redesign ~ #template_main:has(> .rhc-home-hero) { top: 0; padding-top: 0; background: #fff !important; }
  #template_main:has(> .rhc-home-hero) > .container:has(> .division-container) { width: 100%; max-width: none; box-sizing: border-box; margin: 0 auto; background: #fff; }
  .rhc-redesign ~ #template_main .division-container { position: static; width: 100%; }
  .rhc-redesign ~ #template_main .divisions-list {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 1352px;
    margin: 0 auto;
    padding: 8px 0;
  }
  .rhc-redesign ~ #template_main .divisions-list li { float: none; width: auto !important; margin: 0 !important; padding: 0; border: 0; background: none !important; }
  .rhc-redesign ~ #template_main .divisions-list li a {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    padding: 0 !important;
    background: url('../img/division-star.svg') center / contain no-repeat;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
  }
  .rhc-redesign ~ #template_main .divisions-list .slug { position: static; margin: 0; text-align: center; }
  .rhc-redesign ~ #template_main .divisions-list .rhc-division-suffix { display: block; font-size: 12px; }
  .rhc-redesign ~ #template_main .divisions-list :is(.icon, .hover_overlay, .active_overlay) { display: none; }
}
@media (min-width: 1150px) {
  header.header.rhc-redesign { margin-bottom: 0; }
  .rhc-redesign ~ #template_main { top: 0; padding-top: 12px; }
  .rhc-redesign .rhc-masthead-top { position: relative; }
  .rhc-redesign .rhc-masthead-slogan {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    text-align: center;
    font-weight: 700;
  }
  .rhc-redesign .rhc-masthead-bottom { min-height: 48px; }
  .rhc-redesign .rhc-masthead-logo { bottom: 10px; transform: translateX(-50%); z-index: 3; }
  .rhc-redesign .rhc-masthead-logo img { width: 138.32px; }
  .rhc-redesign .rhc-masthead-menu,
  .rhc-redesign .header-logo-row,
  .rhc-redesign .header-slider-container:has(> #season_box),
  .rhc-redesign .header-menu-row .menu-items,
  .rhc-redesign .header-menu-row .user_div,
  .rhc-redesign .header-menu-row .mobile_top_icon,
  .rhc-redesign #mainMenu .additional { display: none; }
  .rhc-redesign .rhc-mobile-season { display: block; position: relative; }
  .rhc-redesign .rhc-mobile-season summary { cursor: pointer; padding: 10px; }
  .rhc-redesign .rhc-season-options { position: absolute; top: 100%; left: 0; z-index: 130; width: 120px; max-height: 45vh; overflow: hidden auto; background: #2d005a; }
  .rhc-redesign .rhc-season-options button { display: block; width: 100%; min-height: 40px; border: 0; color: #fff; background: transparent; cursor: pointer; }
  .rhc-redesign .rhc-season-options button:is(:hover, [aria-current]) { background: #7300c8; }
  header.rhc-redesign .header-menu-row:not(:has(.menu-open)) { display: block; }
  .rhc-redesign .header-menu-row > .container { width: 100%; max-width: 1400px; margin: auto; padding-inline: 0; box-sizing: border-box; }
  header.rhc-redesign .header-menu-row .container #mainMenu.main-menu:not(.menu-open) { display: block; width: 100%; position: static; }
  .rhc-redesign #mainMenu > .main-menu-list {
    display: grid;
    grid-template-columns: repeat(2, 1.5fr) 132px repeat(3, 1fr);
    align-items: center;
    max-width: 1050px;
    min-height: 68px;
    margin: auto;
  }
  .rhc-redesign #mainMenu > .main-menu-list > li { text-align: center; }
  .rhc-redesign #mainMenu > .main-menu-list > li:nth-child(3) { grid-column: 4; }
  .rhc-redesign #mainMenu > .main-menu-list > li > a { padding: 12px 28px 12px 4px; }
  .rhc-redesign #mainMenu > .main-menu-list > li > .rhc-submenu-toggle { width: 28px; }
  .rhc-redesign #mainMenu > .main-menu-list > li > ul { position: absolute; inset: 100% auto auto 0; max-height: 65vh; overflow-y: auto; min-width: 100%; width: max-content; z-index: 120; padding: 8px; background: #2d005a; }
  .rhc-redesign #mainMenu > .rhc-mobile-auth { display: flex; position: absolute; right: 120px; top: 78px; list-style: none; margin: 0; padding: 0; gap: 12px; }
  .rhc-redesign #mainMenu > .rhc-mobile-auth a { display: inline-flex; align-items: center; color: #fff; padding: 8px; font-size: 18px; line-height: 24px; font-weight: 700; }
}

#cookie {
  inset: auto 0 0;
  width: 100%;
  padding: 0 0 env(safe-area-inset-bottom);
  border: 0;
  border-top: 1px solid #7959a4;
  border-radius: 0;
  background: #2d005a;
  box-shadow: 0 8px 24px rgba(33, 12, 62, .25);
  box-sizing: border-box;
}
#cookie .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}
#cookie p { width: auto; margin: 0; padding: 0; font-size: 16px; line-height: 20px; }
#cookie button {
  font-size: 16px;
  flex-shrink: 0;
  float: none;
  height: auto;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  border-radius: 8px;
  text-transform: none;
}
#cookie :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 479px) {
  #cookie .wrapper { gap: 8px; padding: 8px; }
}

@media (min-width: 1150px) {
  header.header.rhc-redesign,
  .rhc-redesign .header-menu-row,
  .rhc-redesign .header-menu-row > .container {
    background: #2d005a !important;
  }
  .rhc-redesign .rhc-masthead-top { padding-block: 8px; }
  .rhc-redesign .rhc-masthead-bottom { min-height: 44px; box-sizing: border-box; }
  .rhc-redesign .rhc-masthead-logo { bottom: 0; transform: translate(-50%, 10%); }
  .rhc-redesign #mainMenu > .main-menu-list { min-height: 116px; }
  .rhc-redesign #mainMenu > .main-menu-list > li.additional { display: none !important; }
  .rhc-redesign #mainMenu > .rhc-mobile-auth { right: max(24px, calc((100% - 1400px) / 2 + 24px)); top: auto; bottom: 138px; transform: translateY(50%); }
  .rhc-redesign .rhc-mobile-season summary { display: flex; align-items: center; gap: 8px; padding: 8px; font-size: 18px; line-height: 24px; font-weight: 700; list-style: none; }
  .rhc-redesign .rhc-mobile-season summary::-webkit-details-marker { display: none; }
  .rhc-redesign .rhc-mobile-season summary::after { content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
  .rhc-redesign ~ #template_main .divisions-list li a .slug { display: block; color: #fff; }
}

@media (min-width: 1150px) {
  .rhc-redesign #mainMenu > .main-menu-list .rhc-submenu-toggle { display: none; }
  .rhc-redesign #mainMenu > .main-menu-list > li > a { padding-inline: 8px; }
  .rhc-redesign #mainMenu > .main-menu-list > li:is(:hover, :focus-within) > ul { display: block !important; }
}

@media (min-width: 1150px) {
  .rhc-redesign #mainMenu > .main-menu-list > li > ul {
    background: #3a1760 !important;
    border: 1px solid #74588e;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(24, 8, 40, .24);
  }
  .rhc-redesign #mainMenu > .main-menu-list > li > ul li {
    background: transparent !important;
  }
  .rhc-redesign #mainMenu > .main-menu-list > li > ul a {
    color: #fff;
    background: transparent;
    border-radius: 4px;
  }
  .rhc-redesign #mainMenu > .main-menu-list > li > ul a:is(:hover, :focus-visible) {
    color: #fff;
    background: #563478;
  }
}

@media (min-width: 1150px) {
  html:is([lang="en"], [lang="lv"]) .rhc-redesign #mainMenu > .main-menu-list {
    grid-template-columns: repeat(4, minmax(0, 1fr)) 132px repeat(4, minmax(0, 1fr));
  }
  html:is([lang="en"], [lang="lv"]) .rhc-redesign #mainMenu > .main-menu-list > li:nth-child(3) { grid-column: auto; }
  html:is([lang="en"], [lang="lv"]) .rhc-redesign #mainMenu > .main-menu-list > li:first-child { grid-column: 1; }
  html:is([lang="en"], [lang="lv"]) .rhc-redesign #mainMenu > .main-menu-list > li:nth-child(5) { grid-column: 6; }
}

@media (hover: hover) and (pointer: fine) {
  .rhc-redesign ~ #template_main .divisions-list li a:hover {
    scale: 1.05;
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .rhc-redesign ~ #template_main .divisions-list li a {
    transition: scale 140ms ease-out;
  }
}

@media (min-width: 1150px) {
  .rhc-redesign .rhc-masthead-bottom {
    min-height: 0;
    padding: 0;
  }
  .rhc-redesign .rhc-masthead-bottom > :is(.rhc-masthead-controls, .rhc-masthead-languages),
  .rhc-redesign #mainMenu > .rhc-mobile-auth {
    position: absolute;
    top: auto;
    bottom: 58px;
    transform: translateY(50%);
    z-index: 4;
  }
  .rhc-redesign .rhc-masthead-controls {
    right: max(124px, calc((100% - 1400px) / 2 + 124px));
  }
  .rhc-redesign .rhc-masthead-languages {
    left: max(24px, calc((100% - 1400px) / 2 + 24px));
  }
  .rhc-redesign #mainMenu > .main-menu-list {
    width: calc(100% - 420px);
  }
}

@media (min-width: 1150px) {
  body:has(#template_main > .rhc-home-hero),
  #template_main:has(> .rhc-home-hero) {
    background-color: #fff !important;
  }
}

@media (min-width: 1150px) {
  #template_main:has(> .rhc-home-hero) img.background-player { display: none; }
}

@media (min-width: 1150px) {
  header.header.rhc-redesign:has(.rhc-mobile-season[open]) { z-index: 130; }
  .rhc-redesign .rhc-season-options { color-scheme: dark; }
}

header.rhc-redesign:has(.rhc-site-search[open]) { z-index: 140; }
.rhc-site-search { position: relative; margin-inline-start: 4px; }
.rhc-site-search summary {
  display: grid;
  place-items: center;
  width: 36px;
  height: 44px;
  cursor: pointer;
  list-style: none;
}
.rhc-site-search summary::-webkit-details-marker { display: none; }
.rhc-site-search form {
  position: absolute;
  z-index: 145;
  top: 100%;
  left: 0;
  display: flex;
  gap: 8px;
  width: min(340px, calc(100vw - 116px));
  box-sizing: border-box;
  padding: 8px;
  border-radius: 8px;
  background: #3a1760;
}
.rhc-site-search input { flex: 1; min-width: 0; padding: 8px; font-size: 16px; }
.rhc-site-search button { padding: 8px; border: 0; border-radius: 4px; background: #fff; color: #2d005a; cursor: pointer; }
.rhc-site-search :focus-visible { outline: 2px solid #3cffc8; outline-offset: 2px; }
.rhc-site-search input:focus-visible { outline: 1px solid #cba5ec; outline-offset: 0; }
.rhc-search-results { padding: 20px; color: #2d005a; overflow-wrap: anywhere; }
.rhc-search-results h1 { font-size: 28px; }
.rhc-search-results h2 { margin-top: 16px; font-size: 20px; }
.rhc-search-results li { margin: 8px 0; }
.rhc-search-results a { color: inherit; text-decoration: underline; }
@media (max-width: 1149px) {
  body:has(.rhc-search-results) { min-width: 0; }
  body:has(.rhc-search-results) .container { max-width: 100%; box-sizing: border-box; }
  .rhc-site-search form { left: -76px; width: min(340px, calc(100vw - 36px)); }
}

@media (min-width: 1150px) {
  .rhc-redesign ~ #template_main:has(.division-container) {
    background: #fff !important;
  }
  .rhc-redesign ~ #template_main > .container:has(> .division-container) {
    margin-inline: auto;
  }
  .rhc-redesign ~ #template_main:has(.division-container) img.background-player {
    display: none;
  }
  .rhc-redesign ~ #template_main .divisions-list li.active a .slug {
    color: #3cffc8;
  }
}

.rhc-masthead-social { display: flex; align-items: center; flex: none; gap: 4px; }
.rhc-masthead-social a { display: grid; place-items: center; width: 20px; height: 28px; color: #fff; }
.rhc-masthead-social a:hover, .rhc-masthead-social a:focus-visible { color: #fffd03; }
.rhc-masthead-social svg { display: block; width: 16px; height: 16px; }
@media (min-width: 1150px) {
  .rhc-masthead-social { position: absolute; left: 50%; transform: translateX(-50%); gap: 10px; }
  .rhc-masthead-social a { width: 28px; }
  .rhc-masthead-social svg { width: 20px; height: 20px; }
}

@media (hover: hover) and (pointer: fine) {
  .rhc-redesign .rhc-masthead-logo:hover img { transform: scale(1.05); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .rhc-redesign .rhc-masthead-logo img { transition: transform 180ms ease; }
}

body .rhc-redesign ~ #template_main .division-container ul.divisions-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  max-width: 1352px;
  margin-inline: auto;
  box-sizing: border-box;
  padding: 4px 8px;
  overflow: visible;
}

body .rhc-redesign ~ #template_main .division-container ul.divisions-list li a {
  display: flex;
  float: none;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 44px;
  aspect-ratio: auto;
  padding: 0 !important;
  border: 0;
  background: none;
}

body .rhc-redesign ~ #template_main .division-container ul.divisions-list li a::before {
  content: '';
  flex: 0 0 clamp(22px, 7vw, 44px);
  aspect-ratio: 1078 / 1035;
  background: url('../img/division-star-empty.png') center / contain no-repeat;
}

body .rhc-redesign ~ #template_main .division-container ul.divisions-list li a .slug {
  margin: 0;
  transform: none;
  text-align: left;
  color: #2d005a;
  font-size: clamp(14px, 3.6vw, 20px);
  font-weight: 700;
  line-height: 1.1;
}

body .rhc-redesign ~ #template_main .division-container ul.divisions-list li:is(.active, :hover) a .slug {
  color: #7300c8;
}

@media (min-width: 1150px) {
  body .rhc-redesign ~ #template_main .division-container ul.divisions-list {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px 16px;
  }

  body .rhc-redesign ~ #template_main .division-container ul.divisions-list li a {
    gap: 10px;
  }

  body .rhc-redesign ~ #template_main .division-container ul.divisions-list .rhc-division-suffix {
    display: inline;
    font-size: inherit;
  }
}

@media (max-width: 1149px) {
  body .rhc-redesign ~ #template_main .division-container ul.divisions-list li a .slug {
    white-space: nowrap;
    font-size: clamp(11px, 3.2vw, 16px);
  }

  body .rhc-redesign ~ #template_main .division-container ul.divisions-list .rhc-division-suffix {
    display: inline;
    font-size: inherit;
  }
}

.rhc-social-feeds {
  display: grid;
  gap: 24px;
  box-sizing: border-box;
  max-width: 1100px;
  margin-inline: auto;
  padding: 24px 16px;
  background: #fff;
}
.rhc-social-feeds > div { min-width: 0; }
@media (min-width: 1150px) {
  .rhc-social-feeds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1150px) {
  #template_main:has(.rhc-mobile-news) #top-news,
  #template_main:has(.rhc-mobile-news) .news-list { display: none; }

  .rhc-mobile-news {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .rhc-mobile-news-card {
    flex: 0 0 calc((100% - 48px) / 4);
    min-width: 0;
    color: #2d005a;
    scroll-snap-align: start;
  }

  .rhc-mobile-news-card img { display: block; width: 100%; height: auto; }
  .rhc-mobile-news-card .news-title { margin: 6px 0; font-size: 18px; font-weight: 700; }
  .rhc-news-archive { display: grid; place-items: center; font-weight: 700; text-decoration: none; }
}

@media (min-width: 1150px) {
  #template_main:has(> .rhc-home-hero) > .container:has(.rhc-mobile-news) {
    width: 100%;
    max-width: 1400px;
    box-sizing: border-box;
    padding-inline: 24px;
  }

  #template_main:has(> .rhc-home-hero) .col-left:has(.rhc-mobile-news) {
    width: 100% !important;
    max-width: none;
    flex: 1 1 100%;
    margin-inline: 0;
  }

  #template_main:has(> .rhc-home-hero) .row:has(.rhc-mobile-news) {
    flex-wrap: wrap;
  }

  #template_main:has(> .rhc-home-hero) .col-right:empty { display: none; }
}

.rhc-news-controls { display: none; }
@media (min-width: 1150px) {
  .col-left:has(> .rhc-mobile-news) > .simple-title {
    float: left;
    width: auto;
    margin: 0 0 16px;
    font-size: 32px;
    line-height: 44px;
  }
  .rhc-news-controls { display: flex; float: right; gap: 8px; }
  .rhc-news-controls button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 6px;
    background: #2d005a;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
  }
  .rhc-news-controls button:disabled { opacity: .4; cursor: default; }
  #rhc-news-carousel { clear: both; overflow-y: hidden; scrollbar-width: none; }
}

.rhc-store { clear: both; margin-block: 32px; }
.rhc-store-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.rhc-store-header h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); font-weight: 700; color: #2d005a; }
.rhc-store-card h3 { margin: 8px 0; font-size: 18px; font-weight: 700; }
.rhc-store-card .rhc-store-image { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #f4eef9; }
.rhc-store-card .rhc-store-image img { width: 38%; }
.rhc-store-buy { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 16px; background: #2d005a; color: #fff; font-weight: 700; text-decoration: none; }
.rhc-store-buy:hover, .rhc-store-buy:focus-visible { color: #fffd03; }
#rhc-store-carousel { overflow-y: hidden; }
@media (min-width: 1150px) {
  #rhc-store-carousel { scrollbar-width: none; }
}

.rhc-carousel-dots:not([hidden]) { display: flex; justify-content: center; margin-top: 8px; }
.rhc-carousel-dots button { display: grid; place-items: center; width: 28px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.rhc-carousel-dots button::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #aa92c3; }
.rhc-carousel-dots button[aria-current="true"]::after { background: #2d005a; }

#template_main .rhc-sidebar-divisions .division-container {
  position: static;
  width: 100%;
  margin: 0 0 16px;
}

body .rhc-redesign ~ #template_main .rhc-sidebar-divisions .division-container ul.divisions-list {
  grid-template-columns: minmax(0, 1fr);
}

body .rhc-redesign ~ #template_main .rhc-sidebar-divisions .division-container ul.divisions-list li a {
  justify-content: flex-start;
}

.rhc-inner-mobile-divisions { display: none; }

@media (max-width: 1149px) {
  .rhc-inner-mobile-divisions { display: block; }
  .rhc-sidebar-divisions { display: none; }

  #template_main .rhc-inner-mobile-divisions .division-container {
    position: static;
    width: 100%;
    margin: 0;
  }
}

@media screen {
  .footer:has(> .rhc-footer-sponsors) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .rhc-footer-sponsors {
    box-sizing: border-box;
    min-width: 0;
    padding: 28px 20px;
    background: #fff;
  }

  .rhc-footer-sponsors #footer-top-2,
  .rhc-footer-sponsors #footer-bottom-2 {
    display: block;
    height: auto;
    padding: 0;
  }

  .rhc-footer-sponsors #supporters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 88px), 1fr));
    gap: 16px;
    margin: 16px 0 0;
    padding: 0;
  }

  .rhc-footer-sponsors #supporters li {
    float: none;
    align-items: center;
    min-width: 0;
    margin: 0;
  }

  .rhc-footer-sponsors #supporters img {
    max-width: 100%;
    object-fit: contain;
  }
}

@media screen and (min-width: 760px) {
  .footer:has(> .rhc-footer-sponsors) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media screen and (min-width: 760px) {
  .rhc-footer-sponsors #supporters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media screen and (max-width: 759px) {
  .footer:has(> .rhc-footer-sponsors) > .rhc-footer-sponsors {
    grid-row: 1;
  }
}

.rhc-footer-social a:hover,
.rhc-footer-social a:focus-visible { color: #fffd03; }
.rhc-footer-social svg { display: block; width: 20px; height: 20px; }

/* Layout from the RHC web preview. */
@media screen {
  #template_main:has(> .rhc-home-hero) > .rhc-home-hero {
    display: block;
    position: relative;
    box-sizing: border-box;
    width: min(100% - 24px, 1040px);
    min-height: 0;
    height: auto;
    aspect-ratio: 1041 / 465;
    margin: 0 auto;
    padding: 0;
    background: linear-gradient(#0003, #0005), url('../img/rhc-hero-team.jpg') center 44% / cover no-repeat;
  }

  .rhc-home-hero h1 {
    position: absolute;
    inset: 24% 35% 43%;
    max-width: none;
    transform: none;
  }

  .rhc-home-hero h1 img { width: 100%; height: 100%; object-fit: contain; }

  .rhc-home-hero .rhc-home-partners {
    position: absolute;
    inset: auto 0 2%;
    width: 56%;
    margin-inline: auto;
    padding: 0;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 3%;
  }

  .rhc-home-hero .rhc-home-partners img,
  .rhc-home-hero .rhc-home-partners img:first-child {
    grid-column: auto;
    max-width: none;
    max-height: clamp(22px, 7vw, 70px);
    object-fit: contain;
  }

  .rhc-home-hero .rhc-home-actions {
    position: absolute;
    inset: 65.4% 25% 19% 25%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8%;
    width: auto;
    margin: 0;
  }

  .rhc-home-hero .rhc-home-actions a {
    min-width: 0;
    min-height: 0;
    padding: 0 3px;
    border: 0;
    border-radius: 5px;
    background: #2d005a;
    color: #fff;
    font-size: clamp(10px, 2.25vw, 25px);
    text-align: center;
  }

  .rhc-home-hero .rhc-home-actions a:first-child {
    background: #fff;
    color: #2d005a;
  }

  header.header.rhc-redesign:has(~ #template_main > .rhc-home-hero),
  .rhc-redesign ~ #template_main:has(> .rhc-home-hero) {
    background: #2d005a !important;
  }

  .rhc-home-divisions {
    padding: 22px 8px 32px;
  }

  body .rhc-redesign ~ #template_main .rhc-home-divisions ul.divisions-list {
    max-width: 690px;
    gap: 4px;
  }

  body .rhc-redesign ~ #template_main .rhc-home-divisions ul.divisions-list li a {
    flex-direction: column;
    justify-content: center;
    border: 1px solid #9f81b4;
    border-radius: 8px;
    background: #391061;
  }

  body .rhc-redesign ~ #template_main .rhc-home-divisions ul.divisions-list li a::before {
    flex: none;
    width: 15px;
  }

  body .rhc-redesign ~ #template_main .rhc-home-divisions ul.divisions-list li a .slug {
    color: #fff;
    font-size: 13px;
  }

  body .rhc-redesign ~ #template_main .rhc-home-divisions ul.divisions-list li:is(.active, .rhc-featured-division, :hover) a {
    background: #fffd03;
  }

  body .rhc-redesign ~ #template_main .rhc-home-divisions ul.divisions-list li:is(.active, .rhc-featured-division, :hover) a .slug {
    color: #2d005a;
  }

  #template_main:has(> .rhc-home-hero) > .container:has(#rhc-news-carousel) {
    background: #fff;
  }
}

@media (min-width: 1150px) {
  .rhc-redesign .rhc-masthead-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #fffd03 25%, #90e340 25% 50%, #00c8f5 50% 75%, #f00 75%) 1;
  }

  .rhc-redesign .rhc-masthead-title { grid-column: 2; grid-row: 1; }
  .rhc-redesign .rhc-masthead-title span { display: inline; }
  .rhc-redesign .rhc-masthead-title span + span::before { content: ' '; white-space: pre; }
  .rhc-redesign .rhc-countdown { grid-column: 1; grid-row: 1; }
  .rhc-redesign .rhc-masthead-bottom > .rhc-masthead-languages {
    top: 8px;
    bottom: auto;
    left: auto;
    right: max(24px, calc((100% - 1400px) / 2 + 24px));
    transform: none;
  }
  .rhc-redesign .rhc-masthead-social {
    left: auto;
    right: 142px;
    transform: none;
  }
}

.rhc-home-hero .rhc-home-actions { transform: none; }

@media (max-width: 759px) {
  .rhc-redesign .rhc-masthead-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 4px;
  }
  .rhc-redesign .rhc-masthead-title {
    font-size: clamp(8px, 2.4vw, 13px);
    line-height: 1.3;
  }
  .rhc-redesign .rhc-countdown-unit { min-width: clamp(20px, 6.4vw, 32px); }
  .rhc-redesign .rhc-countdown-unit strong,
  .rhc-redesign .rhc-countdown-unit + .rhc-countdown-unit::before { font-size: 14px; }
  .rhc-redesign .rhc-masthead-social { gap: 1px; }
  .rhc-redesign .rhc-masthead-social a { width: 16px; }
  .rhc-redesign .rhc-masthead-social svg { width: 13px; height: 13px; }
}

@media (max-width: 759px) {
  .rhc-home-hero .rhc-home-actions a { position: relative; }
  .rhc-home-hero .rhc-home-actions a::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 50%;
    min-height: 44px;
    transform: translateY(-50%);
  }
}

@media (min-width: 1150px) {
  #template_main:has(> .rhc-home-hero) > .rhc-home-hero {
    width: 77.2%;
    max-width: 1440px;
  }
  .rhc-redesign .rhc-masthead-top {
    padding-block: 13px;
  }
  .rhc-home-divisions {
    padding-block: clamp(32px, 4vw, 56px) clamp(50px, 7vw, 100px);
  }
  body .rhc-redesign ~ #template_main .rhc-home-divisions ul.divisions-list {
    max-width: 750px;
  }
}

@media (max-width: 759px) {
  header.rhc-redesign .rhc-masthead-bottom {
    min-height: 62px;
  }
  header.rhc-redesign .rhc-masthead-logo img {
    width: clamp(76px, 23vw, 100px);
  }
  .rhc-home-divisions { padding-block: 10px 16px; }
  body .rhc-redesign ~ #template_main .rhc-home-divisions ul.divisions-list li a {
    gap: 2px;
    border-radius: 5px;
  }
}

body .rhc-redesign ~ #template_main .rhc-home-divisions ul.divisions-list li a::before {
  filter: brightness(0) invert(1);
  opacity: .85;
}
body .rhc-redesign ~ #template_main .rhc-home-divisions ul.divisions-list li:is(.active, .rhc-featured-division, :hover) a::before {
  filter: brightness(0);
}

#template_main:has(> .rhc-home-hero) > .container:has(#rhc-news-carousel) {
  background: #f3eff8;
  box-shadow: 0 0 0 100vmax #f3eff8;
  clip-path: inset(0 -100vmax);
  padding-top: clamp(18px, 3vw, 44px);
}

.col-left:has(> #rhc-news-carousel) > .simple-title,
.rhc-store-header h2 {
  border-inline-start: 4px solid currentColor;
  padding-inline-start: 12px;
}
.col-left:has(> #rhc-news-carousel) > .simple-title { color: #2d005a; }

.rhc-store {
  margin: 20px 0 0;
  padding: clamp(20px, 4vw, 56px) 0;
  background: #080808;
  box-shadow: 0 0 0 100vmax #080808;
  clip-path: inset(0 -100vmax);
}
.rhc-store-header h2 { color: #90e340; }
.rhc-store-card { text-align: center; }
.rhc-store-card h3 { color: #fff; }
.rhc-store-card .rhc-store-image { aspect-ratio: 1; background: #eee; }
.rhc-store-card .rhc-store-image img { width: 100%; height: 100%; object-fit: cover; }
.rhc-store-card .rhc-store-buy { background: #fff; color: #2d005a; border-radius: 3px; }
.rhc-store .rhc-carousel-dots button[aria-current="true"]::after { background: #90e340; }
@media (max-width: 759px) {
  #rhc-store-carousel .rhc-store-card { flex-basis: calc((100% - 10px) / 2); }
  .rhc-store { padding-inline: 10px; }
}

.rhc-social-feeds {
  background: #221247;
  color: #fff;
  box-shadow: 0 0 0 100vmax #221247;
  clip-path: inset(0 -100vmax);
}
.rhc-social-feeds #rhc-social-title {
  font-weight: 700;
  grid-column: 1 / -1;
  margin: 0;
  border-inline-start: 4px solid currentColor;
  padding-inline-start: 12px;
  color: #ff67f5;
  font-size: clamp(21px, 3vw, 32px);
}
body:has(.rhc-home-hero) .footer {
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, #fffd03 25%, #90e340 25% 50%, #00c8f5 50% 75%, #f00 75%) 1;
}

section.rhc-social-feeds { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.rhc-social-feeds > [hidden] { display: none; }
.rhc-social-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.rhc-social-tools button {
  min-height: 40px;
  padding-inline: 12px;
  color: #fff;
  background: transparent;
  border: 1px solid #b792cc;
  border-radius: 6px;
  cursor: pointer;
}
.rhc-social-tools button[aria-pressed="true"] { background: #a51f9f; }
.rhc-social-tools a { color: #fff; font-weight: 700; }
.rhc-home-footer.footer:has(> .rhc-footer-sponsors) { grid-template-columns: minmax(0, 1fr); }
.rhc-home-footer > .rhc-footer-sponsors { grid-row: 1; }
.rhc-home-footer .rhc-mobile-footer { position: relative; }
.rhc-home-footer .rhc-footer-slogan { float: right; width: clamp(68px, 20vw, 170px); margin-inline-start: 16px; }
@media (min-width: 1150px) {
  .rhc-home-footer .rhc-footer-sponsors { padding-inline: max(24px, calc((100% - 1200px) / 2)); }
  .rhc-home-footer .rhc-footer-sponsors #supporters { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

#template_main:has(> .rhc-home-hero) > .container:has(#rhc-news-carousel) {
  margin-inline: auto;
  padding-bottom: 0;
}
.rhc-home-footer .rhc-mobile-footer > img:not(.rhc-footer-slogan) { display: none; }
.rhc-home-footer .rhc-footer-links { display: flex; flex-wrap: wrap; gap: 0 16px; }

body .rhc-redesign ~ #template_main .rhc-home-divisions ul.divisions-list li a {
  gap: 4px;
  border-color: #fff;
  border-radius: 12px;
  background-color: #40166b;
}
body .rhc-redesign ~ #template_main .rhc-home-divisions ul.divisions-list li a::before {
  width: 19px;
  background: #fff;
  mask: url('../img/rhc-division-outline.svg') center / contain no-repeat;
  filter: none;
  opacity: 1;
}
body .rhc-redesign ~ #template_main .rhc-home-divisions ul.divisions-list li a .slug {
  font-size: clamp(12px, 1.15vw, 16px);
}
body .rhc-redesign ~ #template_main .rhc-home-divisions ul.divisions-list li:is(.active, .rhc-featured-division, :hover) a {
  background-color: #fffd03;
}
body .rhc-redesign ~ #template_main .rhc-home-divisions ul.divisions-list li:is(.active, .rhc-featured-division, :hover) a::before {
  background: #2d005a;
  filter: none;
}
@media (min-width: 1150px) {
  body .rhc-redesign ~ #template_main .rhc-home-divisions ul.divisions-list {
    max-width: 706px;
    gap: 7px 5px;
  }
  body .rhc-redesign ~ #template_main .rhc-home-divisions ul.divisions-list li a {
    height: 58px;
  }
}
@media (max-width: 759px) {
  body .rhc-redesign ~ #template_main .rhc-home-divisions ul.divisions-list li a {
    border-radius: 8px;
  }
  body .rhc-redesign ~ #template_main .rhc-home-divisions ul.divisions-list li a::before {
    width: 15px;
  }
}

@media (min-width: 1150px) {
  .rhc-redesign #mainMenu > .main-menu-list {
    min-height: 117px;
  }
  .rhc-home-divisions { padding-bottom: clamp(45px, 4vw, 65px); }
  #template_main:has(> .rhc-home-hero) > .container:has(#rhc-news-carousel) {
    max-width: 1130px;
  }
}
@media (max-width: 759px) {
  .rhc-store-card .rhc-store-image { aspect-ratio: 5 / 4; }
  .rhc-home-footer .rhc-mobile-footer,
  .rhc-home-footer .rhc-footer-sponsors { padding: 18px 12px; }
  .rhc-home-footer .rhc-footer-sponsors #supporters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .rhc-home-footer .rhc-footer-sponsors #supporters li { height: 44px; }
  .rhc-home-footer .rhc-footer-sponsors #supporters img { max-height: 44px; }
}

.rhc-social-feeds > #rhc-instagram-feed { max-height: none; overflow: visible; }
.rhc-social-preview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.rhc-social-preview img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.rhc-social-more { text-align: center; margin-top: 12px; }
.rhc-social-more summary { display: inline-block; padding: 10px; cursor: pointer; }
.rhc-social-more summary::before { content: '← '; }
.rhc-social-more summary::after { content: ' →'; }
.rhc-social-more > div { max-height: 420px; overflow: auto; }
@media (max-width: 759px) {
  .rhc-social-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

#template_main:has(> .rhc-home-hero) #yt_plugin { display: none; }
#template_main:has(> .rhc-home-hero) > .container:has(#rhc-news-carousel),
#template_main:has(> .rhc-home-hero) .col-left:has(#rhc-news-carousel) {
  padding-bottom: 0;
}
@media (min-width: 1150px) {
  .rhc-social-feeds { max-width: 1040px; }
  .rhc-store-card .rhc-store-image { grid-template-rows: minmax(0, 1fr); overflow: hidden; }
  .rhc-store-card .rhc-store-image img { min-height: 0; }
}

@media (min-width: 1150px) {
  body:has(.rhc-home-hero) .rhc-social-feeds {
    margin-top: -16px;
  }
  .rhc-home-footer .rhc-footer-sponsors {
    padding-block: 36px 54px;
  }
  .rhc-home-footer .rhc-footer-sponsors #supporters {
    row-gap: 22px;
    margin-top: 28px;
  }
  .rhc-home-footer .rhc-mobile-footer {
    padding-inline: max(24px, calc((100% - 1090px) / 2));
  }
}

@media (min-width: 1150px) {
  .rhc-home-divisions { padding-bottom: clamp(72px, 6.3vw, 100px); }
  .rhc-store { margin-top: 40px; padding-bottom: 65px; }
  .rhc-social-feeds { padding-block: 38px 70px; }
  .rhc-home-footer .rhc-footer-sponsors { padding-bottom: 96px; }
}
@media (max-width: 759px) {
  .rhc-home-footer .rhc-footer-links a,
  .rhc-home-footer .rhc-footer-social a { min-height: 40px; }
  .rhc-home-footer .rhc-footer-title { font-size: clamp(17px, 5vw, 24px); line-height: 1.3; }
}

@media (min-width: 1150px) {
  .rhc-redesign:has(~ #template_main > .rhc-home-hero) #mainMenu .main-link[href$="/registration-04-2027"],
  .rhc-redesign:has(~ #template_main > .rhc-home-hero) #mainMenu .main-link[href$="/registracija-04-2027"] {
    color: #fffd03;
  }
  .rhc-home-footer #footer-top-2 {
    padding-inline: max(0px, calc((100% - 1080px) / 2));
  }
}
@media (max-width: 759px) {
  body:has(.rhc-home-hero) .rhc-social-feeds { margin-top: -26px; }
}

/* LightWidget renders a 226px profile header above its live posts. */
.rhc-social-feeds > #rhc-instagram-feed:not([hidden]) {
  overflow: hidden;
}
#rhc-instagram-feed .lightwidget-widget {
  display: block;
  margin-top: -226px;
}

.rhc-home-footer .rhc-mobile-footer {
  background: #29134f;
  padding-block: 26px;
}
.rhc-home-footer .rhc-mobile-footer .rhc-footer-title {
  line-height: 1.2;
  margin-bottom: 10px;
}
.rhc-home-footer .rhc-footer-tagline {
  max-width: 43ch;
  margin-bottom: 16px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.35;
}
.rhc-home-footer .rhc-footer-tagline + p {
  margin-bottom: 12px;
  font-style: italic;
  line-height: 1.35;
}
.rhc-home-footer .rhc-footer-links,
.rhc-home-footer .rhc-footer-social {
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  column-gap: 20px;
}
.rhc-home-footer .rhc-footer-links a { font-weight: 700; text-transform: uppercase; }
.rhc-home-footer .rhc-footer-links a[href^="mailto:"] { text-transform: none; }
.rhc-home-footer .rhc-footer-links a:nth-child(2),
.rhc-home-footer .rhc-footer-social a[aria-label="Instagram"] { order: -1; }
.rhc-home-footer .rhc-footer-social { margin-inline-start: 20px; }
.rhc-home-footer .rhc-footer-slogan { width: clamp(65px, 16vw, 128px); margin-block: 0; }
@media (max-width: 759px) {
  .rhc-home-footer .rhc-mobile-footer { padding: 20px 16px; }
  .rhc-home-footer .rhc-footer-links,
  .rhc-home-footer .rhc-footer-social { display: flex; column-gap: 14px; }
  .rhc-home-footer .rhc-footer-social { margin-inline-start: 0; }
}

@media (max-width: 759px) {
  body:has(> header.rhc-redesign) { min-width: 0; }
}

.rhc-store-puck {
  display: grid;
  place-items: center;
  width: 56%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #171717;
  box-shadow: inset 0 0 0 5px #272727, 0 7px 0 #333;
}
.rhc-store-card .rhc-store-puck img { width: 64%; height: auto; }
.rhc-store .rhc-carousel-dots button::after { background: #90e340; opacity: .5; }
.rhc-store .rhc-carousel-dots button[aria-current="true"]::after { opacity: 1; }

section.rhc-social-feeds {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.rhc-social-feeds #rhc-social-title { grid-column: 1; }
.rhc-social-feeds > .rhc-social-tools { grid-column: 2; justify-self: end; }
.rhc-social-feeds > :is(#rhc-instagram-feed, #rhc-tiktok-feed) { grid-column: 1 / -1; }

@media (min-width: 1150px) {
  section.rhc-social-feeds {
    max-width: 1130px;
    padding-inline: 24px;
  }
}
@media (max-width: 1149px) {
  .rhc-store { padding-inline: 0; }
  section.rhc-social-feeds { padding-inline: 10px; }
}
@media (min-width: 760px) and (max-width: 1149px) {
  section.rhc-social-feeds { padding-inline: 24px; }
}

.col-left:has(> #rhc-news-carousel) > .simple-title,
.rhc-store-header #rhc-store-title,
.rhc-social-feeds #rhc-social-title {
  position: relative;
  border-inline-start: 0;
  padding-inline-start: 16px;
}

.col-left:has(> #rhc-news-carousel) > .simple-title::before,
.rhc-store-header #rhc-store-title::before,
.rhc-social-feeds #rhc-social-title::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 4px;
  height: 1em;
  transform: translateY(-50%);
  background: currentColor;
}

@media (min-width: 1150px) {
  .col-left:has(> #rhc-news-carousel) > .simple-title::before,
  .rhc-store-header #rhc-store-title::before,
  .rhc-social-feeds #rhc-social-title::before { height: 32px; }
}
@media (max-width: 1149px) {
  .col-left:has(> #rhc-news-carousel) > .simple-title::before,
  .rhc-store-header #rhc-store-title::before,
  .rhc-social-feeds #rhc-social-title::before { height: 22px; }
}
