.desktop-guide {
    --guide-navy: #1f2c3a;
    --guide-blue: #4054d8;
    --guide-gold: #f2c433;
    --guide-soft: #f5f8fc;
    --guide-line: #dbe3ed;
    color: var(--guide-navy);
    padding-bottom: 48px;
}

/* The signed-in site header contains many destinations. Keep the guide free
   from horizontal scrolling on common laptop widths. */
@media (max-width: 1700px) and (min-width: 1151px) {
    .header {
        padding-inline: 1rem;
    }

    .header .logo {
        font-size: 1.35rem;
    }

    .nav-desktop {
        gap: 0.2rem;
        margin-left: 0.65rem;
    }

    .nav-main .nav-link,
    .header-right .nav-link {
        font-size: 0.78rem;
        padding: 0.45rem 0.55rem;
    }

    .header-right {
        gap: 0.35rem;
    }

    .user-email {
        max-width: 92px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 1150px) and (min-width: 768px) {
    .header-row {
        width: 100%;
        justify-content: space-between;
    }

    .hamburger {
        display: flex;
    }

    .header-row .logo {
        flex: 1;
        text-align: center;
    }

    .nav-desktop {
        display: none !important;
    }
}

.desktop-guide * {
    box-sizing: border-box;
}

.guide-hero {
    margin: 24px 0;
    padding: clamp(26px, 5vw, 56px);
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(circle at 90% 15%, rgba(242, 196, 51, .25), transparent 28%),
        linear-gradient(135deg, #182331 0%, #2b3c50 100%);
    border-radius: 18px;
    color: #fff;
}

.guide-kicker {
    margin: 0 0 10px;
    color: #f6d768;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.guide-hero h1 {
    max-width: 820px;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.03;
}

.guide-hero > p:not(.guide-kicker) {
    max-width: 760px;
    margin: 18px 0 0;
    color: #dbe5f0;
    font-size: 1.08rem;
    line-height: 1.65;
}

.guide-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.guide-badges span {
    padding: 7px 12px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
}

.guide-hero-actions {
    margin-top: 22px;
}

.guide-hero-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--guide-gold);
    color: #182331;
    font-weight: 800;
    text-decoration: none;
}

.guide-hero-actions a:hover {
    background: #f7d45f;
}

.guide-layout {
    display: grid;
    grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.guide-toc {
    position: sticky;
    top: 88px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--guide-line);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(31, 44, 58, .06);
}

.guide-toc strong {
    display: block;
    margin-bottom: 10px;
}

.guide-toc a {
    display: block;
    padding: 7px 8px;
    border-radius: 6px;
    color: #485b70;
    font-size: .9rem;
    text-decoration: none;
}

.guide-toc a:hover {
    background: #eef2ff;
    color: var(--guide-blue);
}

.guide-content {
    min-width: 0;
}

.guide-section {
    margin: 0 0 28px;
    padding: clamp(22px, 4vw, 38px);
    scroll-margin-top: 90px;
    background: #fff;
    border: 1px solid var(--guide-line);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(31, 44, 58, .045);
}

.guide-section-number {
    display: inline-grid;
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
    place-items: center;
    background: var(--guide-gold);
    border-radius: 9px;
    color: #26313d;
    font-weight: 800;
}

.guide-section h2 {
    margin: 0 0 12px;
    color: var(--guide-navy);
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.guide-section h3 {
    margin: 24px 0 8px;
    color: #30445a;
    font-size: 1.08rem;
}

.guide-section p,
.guide-section li {
    color: #52657a;
    line-height: 1.65;
}

.guide-section ol,
.guide-section ul {
    padding-left: 22px;
}

.guide-section li + li {
    margin-top: 6px;
}

.guide-shot {
    margin: 24px 0 8px;
}

.guide-shot a {
    display: block;
    overflow: hidden;
    border: 1px solid #cdd8e5;
    border-radius: 10px;
    box-shadow: 0 14px 32px rgba(31, 44, 58, .12);
}

.guide-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.guide-shot figcaption {
    margin-top: 9px;
    color: #728197;
    font-size: .83rem;
    text-align: center;
}

.guide-tip,
.guide-warning {
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 9px;
    line-height: 1.55;
}

.guide-tip {
    background: #edf8f1;
    border-left: 4px solid #3c9b61;
    color: #285b3a;
}

.guide-warning {
    background: #fff8df;
    border-left: 4px solid #d9a900;
    color: #6b5720;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.guide-card {
    padding: 16px;
    background: var(--guide-soft);
    border: 1px solid var(--guide-line);
    border-radius: 9px;
}

.guide-card strong {
    display: block;
    margin-bottom: 5px;
    color: #2d4055;
}

.guide-card p {
    margin: 0;
    font-size: .9rem;
}

.guide-cta {
    padding: 30px;
    background: #eef2ff;
    border: 1px solid #cdd5ff;
    border-radius: 14px;
    text-align: center;
}

.guide-cta h2 {
    margin: 0 0 8px;
}

.guide-cta p {
    margin: 0;
    color: #576981;
}

@media (max-width: 900px) {
    .guide-layout {
        grid-template-columns: 1fr;
    }

    .guide-toc {
        position: static;
        columns: 2;
    }
}

@media (max-width: 620px) {
    .guide-hero {
        margin-top: 12px;
        border-radius: 12px;
    }

    .guide-toc {
        columns: 1;
    }

    .guide-grid {
        grid-template-columns: 1fr;
    }

    .guide-section {
        padding: 20px 16px;
    }
}
