:root {
    --guide-topbar-height: 48px;
    --guide-bottombar-height: auto;
    --guide-progress-color: #E6F4E7;
    --guide-accent: #2d6a4f;
    --guide-bg: #fff;
    --guide-overlay-bg: rgba(0, 0, 0, 0.55);
    --guide-spinner-bg: #fff;
    --guide-transition: 300ms ease;
    --guide-font: inherit;
}

.guide-virtual {
    position: relative;
    min-height: 100vh;
    padding-top: var(--guide-topbar-height);
    padding-bottom: 96px;
    overflow-anchor: none;
}

.guide-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    height: var(--guide-topbar-height);
    background: var(--guide-bg);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.guide-topbar__progress {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0;
    background: var(--guide-progress-color);
    transition: width 150ms linear;
    pointer-events: none;
    z-index: 0;
}

.guide-topbar__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.guide-topbar__title {
    background: none;
    border: none;
    font-family: var(--guide-font);
    font-size: clamp(15px, 2vw, 18px);
    font-weight: 500;
    color: #222;
    cursor: pointer;
    text-align: left;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 48px);
    width: 100%;
    line-height: var(--guide-topbar-height);
}

@media (width > 768px) {
    .guide-topbar__title {
        width: 100%;
        text-align: center;
        padding-left: 36px;
    }
}

.guide-topbar__burger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.guide-topbar__burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: transform var(--guide-transition), opacity var(--guide-transition);
}

.guide-spinner--open ~ .guide-topbar .guide-topbar__burger span,
.guide-virtual.spinner-open .guide-topbar__burger span {
    background: #000;
    height: 3px;
}

.guide-spinner--open ~ .guide-topbar .guide-topbar__burger span:nth-child(1),
.guide-virtual.spinner-open .guide-topbar__burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.guide-virtual.spinner-open .guide-topbar__burger span:nth-child(2) {
    opacity: 0;
}

.guide-virtual.spinner-open .guide-topbar__burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.guide-spinner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--guide-transition), visibility var(--guide-transition);
    pointer-events: none;
}

.guide-spinner--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.guide-spinner__overlay {
    position: absolute;
    inset: 0;
    background: #ffffff;
}

.guide-spinner__container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: calc(40vh - 20px) 0;
    mask-image: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0,0,0,0.15) 8%,
            rgba(0,0,0,0.5) 14%,
            black 22%,
            black 78%,
            rgba(0,0,0,0.5) 86%,
            rgba(0,0,0,0.15) 92%,
            transparent 100%
    );
}

.guide-spinner__list {
    list-style: none;
    margin: 0;
    padding: 0px 0px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.guide-spinner__item {
    font-family: var(--guide-font);
    font-size: 15px;
    color: #888;
    text-align: left;
    cursor: pointer;
    padding: 6px 12px 6px 16px;
    transition: color 200ms ease, font-weight 200ms ease, background-color 200ms ease;
    user-select: none;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.guide-spinner__item[data-depth="1"] {
    padding-left: 28px;
}

.guide-spinner__item[data-depth="2"] {
    padding-left: 48px;
}

.guide-spinner__item[data-depth="3"] {
    padding-left: 64px;
}

.guide-spinner__item[data-depth="4"] {
    padding-left: 80px;
}

.guide-spinner__item[data-depth="5"] {
    padding-left: 96px;
}

.guide-spinner__item--parent {
    font-weight: 600;
    color: #666;
}

.guide-spinner__item--active {
    font-size: 18px;
    color: #000;
    font-weight: 600;
    background-color: #e8f4e9;
    padding-left: 14px !important;
    padding-top: 10px;
    padding-bottom: 10px;
}

.guide-spinner__prefix {
    background-color: #bce0fd;
    color: #000;
    border-radius: 6px;
    padding: 4px 6px;
    margin-right: 4px;
}


.guide-sections {
    min-height: 50vh;
}

.guide-section {
    padding: 0 16px;
    max-width: 900px;
    margin: 0 auto;
    animation: guideFadeIn 400ms ease both;
}

@keyframes guideFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.guide-section__title {
    font-size: 1.5em;
    font-weight: 700;
    margin: 20px 0;
    color: #222;
    position: relative;
}

.guide-section__anchor {
    cursor: pointer;
    text-decoration: none;
    font-size: 0.6em;
    opacity: 0.55;
    margin-left: 6px;
    vertical-align: middle;
    transition: opacity 200ms ease;
}

.guide-section__anchor:hover {
    opacity: 0.8;
}

.guide-section__admin-link {
    text-decoration: none;
    font-size: 0.6em;
    opacity: 0.55;
    margin-left: 6px;
    vertical-align: middle;
    transition: opacity 200ms ease;
}

.guide-section__admin-link:hover {
    opacity: 0.8;
}

.guide-section__copied {
    position: absolute;
    top: -4px;
    right: 0;
    background: #2d6a4f;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
    animation: guideCopiedFade 1.5s ease forwards;
    pointer-events: none;
    white-space: nowrap;
}

@keyframes guideCopiedFade {
    0%   { opacity: 1; transform: translateY(0); }
    70%  { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-8px); }
}

.guide-section__content img {
    max-width: 100%;
    height: auto;
}

.guide-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
}

.guide-loader--fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    background: rgba(255, 255, 255, 0.9);
    padding: 0;
}

.guide-loader__spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #999;
}

.guide-loader__spinner svg {
    width: 40px;
    height: 40px;
}

.guide-loader__spinner span {
    font-size: 14px;
}

.guide-bottombar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: var(--guide-bg);
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

@media (min-width: 769px) {
    .guide-bottombar {
        flex-direction: row;
        max-width: 870px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 12px 12px 0 0;
        width: 100%;
    }
}

.guide-bottombar__btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-size: 15px;
    font-family: var(--guide-font);
    transition: background var(--guide-transition), opacity var(--guide-transition);
    width: 100%;
    text-align: left;
}

@media (min-width: 769px) {
    .guide-bottombar__btn {
        width: 50%;
        justify-content: center;
        text-align: center;
    }

    .guide-bottombar__btn--prev {
        border-right: 1px solid #eee;
    }
}

.guide-bottombar__btn:hover {
    background: #f9f9f9;
}

.guide-bottombar__btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.guide-bottombar__btn svg {
    flex-shrink: 0;
    color: #666;
}

.guide-bottombar__label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.page-template-guide-virtual .page-header {
    display: none;
}

.page-template-guide-virtual .page-join-us,
.page-template-guide-virtual .page-footer {
    display: none;
}

.page-template-guide-virtual .page-main {
    padding: 0;
    margin: 0;
}

.page-template-guide-virtual .page-wrapper {
    padding: 0;
}

body.guide-spinner-locked {
    overflow: hidden;
}

.guide-section__content > .uk-container {
    margin-bottom: 0;
    padding: 0;
}

.uk-lightbox {
    z-index: 9999;
}