html {
    scroll-behavior: smooth;
}

.guide-symbol-library {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.guide-main {
    padding: clamp(2rem, 5vw, 4.5rem) 1.25rem 5rem;
    color: var(--geo-text, #f4fff9);
}

.guide-shell {
    width: min(1160px, 100%);
    margin: 0 auto;
    min-width: 0;
}

.guide-intro {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    min-height: 320px;
    margin: 0 0 2rem;
    padding: clamp(1.6rem, 4vw, 3.25rem);
    overflow: hidden;
    border: 1px solid rgba(150, 255, 220, 0.22);
    border-radius: 26px;
    background:
        radial-gradient(ellipse at 77% 46%, rgba(0, 255, 174, 0.11), transparent 44%),
        linear-gradient(120deg, rgba(9, 20, 24, 0.97), rgba(19, 36, 40, 0.9));
    box-shadow:
        0 22px 54px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    text-align: left;
}

.guide-intro::after {
    position: absolute;
    right: -6rem;
    bottom: -10rem;
    width: 25rem;
    height: 25rem;
    border: 1px solid rgba(0, 255, 174, 0.08);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.guide-hero-copy,
.guide-hero-art {
    position: relative;
    z-index: 1;
}

.guide-hero-copy {
    max-width: 610px;
}

.guide-eyebrow,
.guide-section-kicker {
    margin: 0 0 0.7rem;
    color: var(--geo-accent, #00e6a0);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.guide-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.74rem;
}

.guide-eyebrow-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--geo-accent, #00e6a0);
    box-shadow: 0 0 14px rgba(0, 255, 174, 0.75);
}

.guide-intro h1 {
    margin: 0;
    font-size: clamp(2.6rem, 4.1vw, 4.1rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.guide-intro h1 span {
    display: block;
    color: var(--geo-accent, #00e6a0);
}

.guide-hero-copy > p:not(.guide-eyebrow) {
    max-width: 31rem;
    margin: 1rem 0 1.4rem;
    color: var(--geo-muted, rgba(255, 255, 255, 0.72));
    font-size: clamp(0.98rem, 1.2vw, 1.1rem);
    line-height: 1.75;
}

.guide-cta,
.guide-inline-link {
    color: var(--geo-accent, #00e6a0);
    font-weight: 750;
    text-decoration: none;
}

.guide-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.1rem;
    border-radius: var(--geo-radius, 12px);
    background: linear-gradient(135deg, var(--geo-accent-strong), var(--geo-accent-dark));
    box-shadow: 0 10px 20px rgba(0, 255, 174, 0.16);
    color: #031a15;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.guide-cta svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    transition: transform 0.2s ease;
}

.guide-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 255, 174, 0.25);
}

.guide-cta:hover svg {
    transform: translateX(3px);
}

.guide-hero-art {
    display: grid;
    justify-items: center;
    align-content: center;
    min-width: 0;
}

.guide-world-svg {
    display: block;
    width: min(100%, 390px);
    height: auto;
    overflow: visible;
    filter: drop-shadow(0 12px 26px rgba(0, 255, 174, 0.09));
    animation: guide-float 5s ease-in-out infinite;
}

.guide-art-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: -0.45rem;
    padding: 0.48rem 0.72rem;
    border: 1px solid rgba(159, 255, 220, 0.16);
    border-radius: 999px;
    background: rgba(5, 14, 18, 0.72);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.72rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.guide-art-label span {
    color: var(--geo-accent, #00e6a0);
}

@keyframes guide-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

.guide-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: start;
    min-width: 0;
}

.guide-sidebar {
    position: sticky;
    top: 6.2rem;
    max-height: calc(100vh - 7.2rem);
    padding: 1.1rem 1rem;
    overflow-y: auto;
    border: 1px solid var(--geo-border, rgba(150, 255, 220, 0.18));
    border-radius: var(--geo-radius-large, 18px);
    background: linear-gradient(
        145deg,
        var(--geo-panel, rgba(19, 25, 30, 0.96)),
        var(--geo-panel-alt, rgba(34, 45, 50, 0.9))
    );
    box-shadow: 0 12px 30px var(--geo-shadow, rgba(0, 0, 0, 0.28));
}

.guide-sidebar-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 0.75rem 0.3rem;
    color: var(--geo-muted-green, #92aaa6);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.guide-sidebar-title span {
    padding: 0.22rem 0.45rem;
    border: 1px solid rgba(159, 255, 220, 0.13);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.62rem;
    letter-spacing: 0.04em;
}

.guide-sidebar nav {
    display: grid;
    gap: 0.2rem;
}

.guide-sidebar a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    min-height: 2.85rem;
    padding: 0.55rem 0.7rem;
    border-left: 2px solid transparent;
    border-radius: 0 var(--geo-radius, 12px) var(--geo-radius, 12px) 0;
    color: var(--geo-muted, rgba(255, 255, 255, 0.72));
    font-size: 0.98rem;
    line-height: 1.25;
    text-decoration: none;
    white-space: normal;
    z-index: auto;
    transition:
        color 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}

.guide-nav-index {
    display: inline-grid;
    flex: 0 0 1.85rem;
    place-items: center;
    height: 1.85rem;
    border: 1px solid rgba(159, 255, 220, 0.12);
    border-radius: 0.55rem;
    color: var(--geo-muted-green, #92aaa6);
    font-size: 0.62rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    transition:
        color 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.guide-sidebar a:hover .guide-nav-index,
.guide-sidebar a[aria-current="location"] .guide-nav-index {
    border-color: rgba(0, 255, 174, 0.3);
    background: rgba(0, 255, 174, 0.1);
    color: var(--geo-accent, #00e6a0);
}

.guide-sidebar a:hover,
.guide-sidebar a[aria-current="location"] {
    border-left-color: var(--geo-accent, #00e6a0);
    background: rgba(0, 255, 174, 0.08);
    color: var(--geo-text, #f4fff9);
}

.guide-content {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.guide-card {
    min-width: 0;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--geo-border, rgba(150, 255, 220, 0.18));
    border-radius: var(--geo-radius-large, 18px);
    background: linear-gradient(
        145deg,
        var(--geo-panel, rgba(19, 25, 30, 0.96)),
        var(--geo-panel-alt, rgba(34, 45, 50, 0.9))
    );
    box-shadow: 0 18px 38px var(--geo-shadow, rgba(0, 0, 0, 0.28));
    scroll-margin-top: 6.5rem;
}

.guide-card h2 {
    margin: 0 0 0.8rem;
    color: var(--geo-text, #f4fff9);
    font-size: clamp(1.55rem, 3vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.035em;
    scroll-margin-top: 6.5rem;
}

.guide-heading {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.guide-heading-icon {
    display: inline-grid;
    flex: 0 0 2.6rem;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid rgba(0, 255, 174, 0.24);
    border-radius: 0.85rem;
    background: linear-gradient(145deg, rgba(0, 255, 174, 0.14), rgba(0, 255, 174, 0.035));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 5px 15px rgba(0, 0, 0, 0.15);
}

.guide-heading-icon svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: var(--geo-accent, #00e6a0);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.guide-card h3 {
    margin: 1.25rem 0 0.35rem;
    color: var(--geo-accent, #00e6a0);
    font-size: 1rem;
}

.guide-card p,
.guide-list {
    color: var(--geo-muted-strong, rgba(255, 255, 255, 0.82));
    font-size: 0.98rem;
    line-height: 1.75;
}

.guide-card p {
    margin: 0.4rem 0 0.85rem;
}

.guide-list {
    display: grid;
    gap: 0.62rem;
    margin: 0.75rem 0 1rem;
    padding-left: 1.2rem;
}

.guide-list li::marker {
    color: var(--geo-accent, #00e6a0);
}

.guide-list strong {
    color: var(--geo-text, #f4fff9);
}

.guide-inline-link:hover,
.guide-back-top a:hover {
    color: var(--geo-accent-strong, #00f5b3);
}

.guide-inline-link,
.guide-back-top a {
    position: relative;
    display: inline-flex;
    padding-bottom: 2px;
    text-decoration: none;
}

.guide-inline-link::after,
.guide-back-top a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: currentColor;
    content: "";
    transition: width 0.2s ease;
}

.guide-inline-link:hover::after,
.guide-inline-link:focus-visible::after,
.guide-back-top a:hover::after,
.guide-back-top a:focus-visible::after {
    width: 100%;
}

.guide-note {
    padding: 0.9rem 1rem;
    border-left: 3px solid var(--geo-accent, #00e6a0);
    border-radius: 0 var(--geo-radius, 12px) var(--geo-radius, 12px) 0;
    background: rgba(0, 255, 174, 0.06);
}

.guide-note strong {
    color: var(--geo-text, #f4fff9);
}

.guide-steps {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr);
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.35rem;
}

.guide-step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
    min-height: 132px;
    padding: 0.9rem 0.8rem;
    border: 1px solid rgba(159, 255, 220, 0.14);
    border-radius: var(--geo-radius, 12px);
    background: rgba(4, 8, 12, 0.22);
    color: var(--geo-text, #f4fff9);
    text-decoration: none;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.guide-step:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 174, 0.48);
    background: rgba(0, 255, 174, 0.055);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.17);
}

.guide-step-icon {
    display: inline-grid;
    flex: 0 0 2.2rem;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid rgba(0, 255, 174, 0.19);
    border-radius: 0.7rem;
    background: rgba(0, 255, 174, 0.08);
}

.guide-step-icon svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: none;
    stroke: var(--geo-accent, #00e6a0);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.guide-step-copy {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.guide-step-number {
    color: var(--geo-accent, #00e6a0);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.07em;
}

.guide-step strong {
    font-size: 0.88rem;
    line-height: 1.25;
}

.guide-step small {
    color: var(--geo-muted, rgba(255, 255, 255, 0.72));
    font-size: 0.73rem;
    line-height: 1.5;
}

.guide-step-arrow {
    display: grid;
    place-items: center;
    color: var(--geo-accent, #00e6a0);
}

.guide-step-arrow svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.guide-back-top {
    margin: 0.25rem 0 0;
    text-align: right;
}

.guide-back-top a {
    color: var(--geo-muted, rgba(255, 255, 255, 0.72));
    text-decoration: none;
}

.guide-mobile-nav {
    display: none;
}

@media (max-width: 900px) {
    .guide-main {
        padding: 2rem 1rem 3.5rem;
    }

    .guide-intro {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.3rem;
        min-height: 0;
        margin-bottom: 1.6rem;
        padding: 1.5rem 1.25rem 0.5rem;
        border-radius: 20px;
        text-align: left;
    }

    .guide-intro h1 {
        max-width: 12ch;
        font-size: clamp(2.55rem, 10vw, 3.5rem);
    }

    .guide-hero-copy > p:not(.guide-eyebrow) {
        max-width: 34rem;
        font-size: 1rem;
    }

    .guide-hero-art {
        justify-self: center;
        width: min(100%, 340px);
        margin-top: -0.5rem;
    }

    .guide-world-svg {
        max-height: 215px;
    }

    .guide-layout {
        display: block;
    }

    .guide-sidebar {
        display: none;
    }

    .guide-mobile-nav {
        position: relative;
        z-index: 2;
        display: grid;
        gap: 0.4rem;
        margin-bottom: 1.15rem;
        padding: 0.85rem;
        border: 1px solid rgba(159, 255, 220, 0.14);
        border-radius: var(--geo-radius-large, 18px);
        background: linear-gradient(145deg, rgba(19, 30, 34, 0.92), rgba(10, 20, 24, 0.88));
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    }

    .guide-mobile-nav-label {
        display: block;
        color: var(--geo-muted-green, #92aaa6);
        font-size: 0.75rem;
        font-weight: 750;
        letter-spacing: 0.04em;
    }

    .guide-topic-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        width: 100%;
        min-height: 3.15rem;
        padding: 0.65rem 0.85rem;
        border: 1px solid rgba(159, 255, 220, 0.22);
        border-radius: 0.85rem;
        background: linear-gradient(115deg, rgba(5, 14, 18, 0.86), rgba(11, 28, 31, 0.8));
        color: var(--geo-text, #f4fff9);
        font: inherit;
        font-weight: 650;
        cursor: pointer;
        text-align: left;
        transition:
            border-color 0.18s ease,
            background 0.18s ease,
            box-shadow 0.18s ease;
    }

    .guide-topic-trigger:hover,
    .guide-topic-trigger[aria-expanded="true"] {
        border-color: rgba(0, 255, 174, 0.48);
        background: linear-gradient(115deg, rgba(5, 18, 19, 0.95), rgba(12, 37, 33, 0.9));
    }

    .guide-topic-trigger:focus-visible {
        border-color: var(--geo-accent, #00e6a0);
        outline: none;
        box-shadow: 0 0 0 3px rgba(0, 255, 174, 0.14);
    }

    .guide-topic-trigger-copy {
        display: flex;
        align-items: center;
        gap: 0.7rem;
        min-width: 0;
    }

    .guide-topic-trigger-index {
        display: grid;
        flex: 0 0 1.9rem;
        place-items: center;
        height: 1.9rem;
        border: 1px solid rgba(0, 255, 174, 0.24);
        border-radius: 0.6rem;
        background: rgba(0, 255, 174, 0.09);
        color: var(--geo-accent, #00e6a0);
        font-size: 0.66rem;
        font-variant-numeric: tabular-nums;
    }

    .guide-topic-chevron {
        flex: 0 0 1rem;
        width: 1rem;
        height: 1rem;
        transition: transform 0.2s ease;
    }

    .guide-topic-trigger[aria-expanded="true"] .guide-topic-chevron {
        transform: rotate(180deg);
    }

    .guide-topic-menu {
        position: absolute;
        top: calc(100% - 0.35rem);
        right: 0.85rem;
        left: 0.85rem;
        z-index: 5;
        display: grid;
        gap: 0.2rem;
        max-height: min(60vh, 24rem);
        padding: 0.4rem;
        overflow-y: auto;
        border: 1px solid rgba(159, 255, 220, 0.19);
        border-radius: 1rem;
        background: linear-gradient(150deg, rgba(14, 27, 31, 0.98), rgba(7, 17, 21, 0.98));
        box-shadow:
            0 18px 40px rgba(0, 0, 0, 0.48),
            inset 0 1px 0 rgba(255, 255, 255, 0.04);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .guide-topic-menu[hidden] {
        display: none;
    }

    .guide-topic-menu a {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        min-height: 2.8rem;
        padding: 0.5rem 0.65rem;
        border: 1px solid transparent;
        border-radius: 0.72rem;
        color: var(--geo-muted, rgba(255, 255, 255, 0.72));
        font-size: 0.9rem;
        font-weight: 600;
        text-decoration: none;
        transition:
            color 0.16s ease,
            border-color 0.16s ease,
            background 0.16s ease;
    }

    .guide-topic-menu a::before {
        display: grid;
        flex: 0 0 1.8rem;
        place-items: center;
        height: 1.8rem;
        border: 1px solid rgba(159, 255, 220, 0.12);
        border-radius: 0.55rem;
        color: var(--geo-muted-green, #92aaa6);
        content: attr(data-topic-index);
        font-size: 0.62rem;
        font-variant-numeric: tabular-nums;
        transition:
            color 0.16s ease,
            border-color 0.16s ease,
            background 0.16s ease;
    }

    .guide-topic-menu a:hover,
    .guide-topic-menu a:focus-visible,
    .guide-topic-menu a[aria-current="location"] {
        border-color: rgba(0, 255, 174, 0.16);
        outline: none;
        background: rgba(0, 255, 174, 0.08);
        color: var(--geo-text, #f4fff9);
    }

    .guide-topic-menu a:hover::before,
    .guide-topic-menu a:focus-visible::before,
    .guide-topic-menu a[aria-current="location"]::before {
        border-color: rgba(0, 255, 174, 0.28);
        background: rgba(0, 255, 174, 0.1);
        color: var(--geo-accent, #00e6a0);
    }

    .guide-start {
        padding: 1.2rem;
        border-color: rgba(0, 255, 174, 0.22);
        background:
            radial-gradient(ellipse at 100% 0%, rgba(0, 255, 174, 0.08), transparent 50%),
            linear-gradient(
                145deg,
                var(--geo-panel, rgba(19, 25, 30, 0.96)),
                var(--geo-panel-alt, rgba(34, 45, 50, 0.9))
            );
    }

    .guide-start .guide-section-kicker {
        margin-bottom: 0.55rem;
        font-size: 0.66rem;
    }

    .guide-start .guide-heading {
        gap: 0.7rem;
        margin-bottom: 0.7rem;
        font-size: 1.45rem;
    }

    .guide-start .guide-heading-icon {
        flex-basis: 2.5rem;
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 0.78rem;
    }

    .guide-start > p {
        margin: 0.45rem 0 0;
        color: var(--geo-muted-strong, rgba(255, 255, 255, 0.82));
        font-size: 0.93rem;
        line-height: 1.65;
    }

    .guide-steps {
        grid-template-columns: minmax(0, 1fr);
        justify-items: stretch;
        gap: 0.25rem;
        margin-top: 1.1rem;
    }

    .guide-step {
        align-items: center;
        gap: 0.8rem;
        min-height: 0;
        padding: 0.85rem 0.9rem;
        border-color: rgba(159, 255, 220, 0.18);
        border-radius: 0.9rem;
        background: linear-gradient(110deg, rgba(4, 12, 15, 0.5), rgba(7, 19, 22, 0.28));
    }

    .guide-step:hover {
        transform: none;
    }

    .guide-step-arrow {
        height: 1rem;
        transform: rotate(90deg);
    }

    .guide-step-icon {
        flex-basis: 2.4rem;
        width: 2.4rem;
        height: 2.4rem;
    }

    .guide-step-copy {
        gap: 0.22rem;
    }

    .guide-step-number {
        font-size: 0.62rem;
    }

    .guide-step strong {
        font-size: 0.95rem;
    }

    .guide-step small {
        font-size: 0.78rem;
    }

    .guide-card {
        scroll-margin-top: 5.5rem;
    }

    .guide-card h2 {
        scroll-margin-top: 5.5rem;
    }
}

@media (max-width: 420px) {
    .guide-main {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .guide-intro h1 {
        font-size: clamp(2.35rem, 11vw, 2.8rem);
    }

    .guide-heading {
        gap: 0.65rem;
    }

    .guide-heading-icon {
        flex-basis: 2.35rem;
        width: 2.35rem;
        height: 2.35rem;
    }

    .guide-start {
        padding: 1rem;
    }

    .guide-start .guide-heading {
        font-size: 1.3rem;
    }

    .guide-step {
        padding: 0.78rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Desktop: horizontal topic tabs that stay pinned below the header */
@media (min-width: 901px) {
    .guide-layout {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .guide-sidebar {
        position: sticky;
        top: 1rem;
        z-index: 50;
        max-height: none;
        padding: 0.5rem;
        overflow: visible;
        border-radius: 1rem;
        background: rgba(9, 20, 24, 0.92);
        backdrop-filter: blur(12px);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    }

    .guide-sidebar-title {
        display: none;
    }

    .guide-sidebar nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .guide-sidebar a {
        width: auto;
        min-height: 0;
        padding: 0.7rem 0.95rem;
        border-left: 0;
        border-radius: 0.7rem;
        font-size: 0.92rem;
        font-weight: 700;
        white-space: nowrap;
    }

    .guide-sidebar a:hover,
    .guide-sidebar a[aria-current="location"] {
        border-left: 0;
        box-shadow: inset 0 -3px 0 var(--geo-accent, #00e6a0);
    }
}
