/* Scoped to opted-in public pages; member/admin pages retain their own layout. */
.home-with-sidebar {
    --home-sidebar-width: 208px;
    --home-header-height: 72px;
    padding-left: var(--home-sidebar-width);
}
.home-with-sidebar .site-header {
    height: var(--home-header-height);
    padding: 0 28px;
    gap: 20px;
}
.site-header .logo {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    white-space: nowrap;
    letter-spacing: 2px;
}
.site-header .logo b { flex: 0 0 36px; margin-right: 16px; }
.site-header .header-actions { min-width: 0; }
.home-register-slot, .home-welcome-slot { display: contents; }
.site-header .header-actions > button { flex-shrink: 0; white-space: nowrap !important; }
.site-header .header-actions > [style*="display: none"], .site-header .header-actions > [style*="display:none"] { display: none !important; }
.site-header .header-welcome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 230px; }
.home-navigation {
    position: fixed;
    top: calc(var(--home-header-height) + var(--ly-site-banner-height, 0px));
    left: 0;
    bottom: 0;
    width: var(--home-sidebar-width);
    padding: 24px 16px 18px;
    z-index: 95;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: linear-gradient(180deg, #10141b, #090c12);
    border-right: 1px solid rgba(216, 173, 92, .18);
}
.home-nav-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 12px 22px; color: #efce86; font-weight: 700; letter-spacing: 2px; }
.home-navigation nav { display: flex; flex-direction: column; gap: 23px; }
.home-nav-group { display: flex; flex-direction: column; gap: 4px; }
.home-nav-label { margin: 0 12px 6px; color: #818999; font-size: 11px; letter-spacing: 2px; }
.home-navigation nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #c4c9d3;
    line-height: 1.45;
    font-size: 14px;
    box-shadow: none;
}
.home-navigation nav a:hover, .home-navigation nav a[aria-current="page"] { color: #f0d394; background: rgba(216, 173, 92, .09); border-color: rgba(216, 173, 92, .26); }
.home-navigation nav a.ranking-nav-link { display: flex; color: #dfbb71 !important; background: rgba(216, 173, 92, .04); border-color: rgba(216, 173, 92, .22); }
.home-nav-badge { flex: 0 0 auto; margin-left: 6px; padding: 2px 5px; color: #93d3b2; background: rgba(88, 180, 134, .09); border-radius: 4px; font-size: 10px; font-weight: 400; }
.home-nav-footer { margin: 28px 12px 0; color: #636c7b; font-size: 9px; letter-spacing: 1px; }
.home-menu-toggle, .home-menu-close, .home-nav-backdrop, .home-nav-register { display: none !important; }
.home-with-sidebar section[id] { scroll-margin-top: calc(var(--home-header-height) + var(--ly-site-banner-height, 0px) + 12px); }
.home-navigation a:focus-visible, .home-menu-toggle:focus-visible, .home-menu-close:focus-visible { outline: 2px solid #efce86; outline-offset: 3px; }
@media (max-width: 1200px) {
    .site-header .home-welcome-slot { display: none; }
}
@media (max-width: 1024px) {
    .home-with-sidebar { padding-left: 0; }
    .home-with-sidebar .site-header { padding: 0 20px; gap: 14px; }
    .site-header .logo { font-size: 18px; letter-spacing: 1px; }
    .home-menu-toggle, .home-menu-close { display: inline-flex !important; align-items: center; justify-content: center; cursor: pointer; color: #efce86; border: 1px solid rgba(216, 173, 92, .3); background: #151a23; border-radius: 6px; }
    .home-menu-toggle { min-height: 38px; padding: 7px 12px; white-space: nowrap !important; flex: 0 0 auto; font-size: 13px; }
    .home-menu-close { width: 34px; height: 34px; font-size: 24px; }
    .home-navigation { width: 250px; transform: translateX(-100%); visibility: hidden; transition: transform .2s ease, visibility .2s; }
    .home-menu-open .home-navigation { transform: translateX(0); visibility: visible; }
    .home-menu-open { overflow: hidden; }
    .home-nav-backdrop { position: fixed; inset: calc(var(--home-header-height) + var(--ly-site-banner-height, 0px)) 0 0; z-index: 90; padding: 0; border: 0; background: rgba(0, 0, 0, .65); }
    .home-menu-open .home-nav-backdrop { display: block !important; }
    .home-nav-heading { margin-bottom: 18px; }
}
@media (max-width: 760px) {
    .home-with-sidebar { --home-header-height: 112px; }
    .home-with-sidebar .site-header { display: grid; grid-template-columns: 1fr auto; grid-template-rows: 48px 54px; gap: 0 10px; padding: 5px 14px; }
    .site-header .logo { font-size: 18px; }
    html[lang="en"] .site-header .logo span { display: none; }
    .site-header .logo b { width: 26px; height: 26px; flex-basis: 26px; font-size: 15px; margin-right: 13px; }
    .site-header .header-actions { grid-column: 1 / -1; justify-content: flex-end; gap: 6px; }
    .site-header .header-actions > button { padding: 8px 10px; font-size: 12px; }
    .site-header .home-register-slot { display: none; }
    .home-nav-register { display: block !important; margin: 22px 12px 0; padding: 9px 18px; border: 1px solid #d8ad5c; border-radius: 6px; background: #d8ad5c; color: #151515; font-weight: 700; cursor: pointer; }
    .site-header #headerLogoutBtn { display: inline-flex !important; }
    .site-header #headerLogoutBtn[style*="display: none"], .site-header #headerLogoutBtn[style*="display:none"] { display: none !important; }
    .home-with-sidebar .hero { padding-top: calc(var(--home-header-height) + 20px); }
    .home-menu-toggle { padding: 7px 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-navigation { transition: none; }
    .home-with-sidebar { scroll-behavior: auto; }
}
@media (max-width: 360px) {
    .site-header .header-actions { gap: 4px; }
    .site-header .header-actions > button { padding: 8px; font-size: 11px; }
}
.home-nav-register[hidden] { display: none !important; }
.home-with-sidebar.inner-guide-page .site-header { position: fixed; top: var(--ly-site-banner-height, 0px); left: 0; right: 0; flex-direction: row; align-items: center; min-height: 0; }
.inner-guide-page .home-member-link { padding: 9px 14px; border: 1px solid rgba(216,173,92,.3); border-radius: 6px; white-space: nowrap; font-size: 13px; }
.inner-guide-page .home-navigation nav a { font-weight: 400; }
.inner-guide-page > .page { padding-top: calc(var(--home-header-height) + 26px); }
.inner-guide-page .home-navigation { box-sizing: border-box; }
@media (max-width: 760px) {
    .home-with-sidebar.inner-guide-page .site-header { display: grid; }
    .inner-guide-page .home-member-link { padding: 8px 10px; font-size: 12px; }
    .inner-guide-page .guide-hero { padding-top: calc(var(--home-header-height) + 30px); }
}
