.help-page-hero {
    min-height: 330px;
    background:
        radial-gradient(circle at 84% 18%, rgba(185, 154, 104, 0.2), transparent 34%),
        linear-gradient(135deg, var(--surface) 0%, var(--bg-darker) 100%);
}

.help-page-hero h1 {
    max-width: 820px;
    font-size: clamp(2.2rem, 5.2vw, 4.35rem);
}

.help-page-hero-mark svg {
    width: 72%;
    height: 72%;
}

.help-hero-actions .btn {
    min-height: 42px;
}

.distillery-directory.help-page .help-layout {
    display: grid;
    grid-template-columns: minmax(235px, 280px) minmax(0, 1fr);
    gap: clamp(1rem, 2.5vw, 1.5rem);
    align-items: start;
}

.distillery-directory.help-page .help-sidebar-wrap {
    position: sticky;
    z-index: 10;
    top: 1rem;
}

.distillery-directory.help-page .help-sidebar {
    position: static;
    overflow: hidden;
    color: var(--text);
    border: 1px solid rgba(185, 154, 104, 0.22);
    border-radius: 1rem;
    background: var(--bg-darker);
    box-shadow: var(--shadow);
}

.help-sidebar-heading {
    padding: 1.1rem 1rem 0.85rem;
    border-bottom: 1px solid rgba(185, 154, 104, 0.16);
}

.help-sidebar-heading .distillery-directory-eyebrow {
    margin-bottom: 0.2rem;
}

.help-sidebar-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.15rem;
}

.distillery-directory.help-page .help-menu-note {
    margin: 0.45rem 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.distillery-directory.help-page .help-nav {
    display: grid;
    gap: 0.25rem;
    padding: 0.65rem;
}

.distillery-directory.help-page .help-nav-link {
    position: relative;
    display: flex;
    min-height: 40px;
    padding: 0.6rem 0.7rem 0.6rem 1.25rem;
    align-items: center;
    color: var(--muted);
    border: 0;
    border-radius: 0.6rem;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1.25;
    text-decoration: none;
    transition: color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.distillery-directory.help-page .help-nav-link::before {
    position: absolute;
    left: 0.65rem;
    width: 0.3rem;
    height: 0.3rem;
    content: "";
    border-radius: 999px;
    background: rgba(185, 154, 104, 0.42);
    transition: height 150ms ease, background-color 150ms ease;
}

.distillery-directory.help-page .help-nav-link:hover,
.distillery-directory.help-page .help-nav-link:focus-visible {
    color: var(--text);
    background: rgba(185, 154, 104, 0.08);
    transform: none;
}

.distillery-directory.help-page .help-nav-link[aria-current="true"] {
    color: var(--text);
    background: rgba(185, 154, 104, 0.13);
}

.distillery-directory.help-page .help-nav-link[aria-current="true"]::before {
    height: 1.1rem;
    background: var(--gold);
}

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

.distillery-directory.help-page section[id] {
    scroll-margin-top: 1rem;
}

.distillery-directory.help-page .help-intro-card,
.distillery-directory.help-page .help-section-card {
    overflow: hidden;
    color: var(--text) !important;
    border: 1px solid rgba(185, 154, 104, 0.2) !important;
    border-radius: 1rem;
    background: var(--bg-darker) !important;
    box-shadow: var(--shadow);
}

.distillery-directory.help-page .help-intro-card {
    position: relative;
    background:
        radial-gradient(circle at 92% 16%, rgba(185, 154, 104, 0.1), transparent 30%),
        var(--bg-darker) !important;
}

.distillery-directory.help-page .help-intro-card .card-body {
    padding: clamp(1.2rem, 3vw, 1.8rem) !important;
}

.distillery-directory.help-page .help-intro-card h2 {
    color: var(--text) !important;
    font-size: clamp(1.35rem, 2.6vw, 1.85rem);
}

.distillery-directory.help-page .help-section-card + .help-section-card {
    margin-top: 1rem;
}

.distillery-directory.help-page .help-section-card > .card-header {
    padding: 1rem clamp(1rem, 2.5vw, 1.35rem);
    color: var(--text);
    border: 0 !important;
    border-bottom: 1px solid rgba(185, 154, 104, 0.18) !important;
    background: var(--surface) !important;
}

.distillery-directory.help-page .help-section-card > .card-header h2 {
    position: relative;
    margin: 0;
    padding-left: 0.85rem;
    color: var(--text) !important;
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
}

.distillery-directory.help-page .help-section-card > .card-header h2::before {
    position: absolute;
    top: 0.08em;
    bottom: 0.08em;
    left: 0;
    width: 0.22rem;
    content: "";
    border-radius: 999px;
    background: var(--gold);
}

.distillery-directory.help-page .help-section-card > .card-body {
    padding: clamp(1rem, 2.5vw, 1.35rem) !important;
}

.distillery-directory.help-page .help-section-lead {
    max-width: 76ch;
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.58;
}

.distillery-directory.help-page .help-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.distillery-directory.help-page .help-feature-card {
    display: flex;
    height: 100%;
    min-width: 0;
    padding: 1rem;
    color: var(--text);
    border: 1px solid rgba(185, 154, 104, 0.15);
    border-radius: 0.8rem;
    background: var(--surface);
    flex-direction: column;
    transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.distillery-directory.help-page .help-feature-card:hover {
    transform: translateY(-1px);
    border-color: rgba(185, 154, 104, 0.35);
    box-shadow: var(--shadow);
}

.distillery-directory.help-page .help-feature-card h3 {
    margin: 0 0 0.55rem;
    overflow-wrap: anywhere;
    color: var(--text) !important;
    font-size: 1.02rem;
    line-height: 1.3;
}

.distillery-directory.help-page .help-feature-card p,
.distillery-directory.help-page .help-list,
.distillery-directory.help-page .help-steps,
.distillery-directory.help-page .text-white-50 {
    color: var(--muted) !important;
    font-size: 0.84rem;
    line-height: 1.56;
}

.distillery-directory.help-page .help-tags {
    display: flex;
    gap: 0.35rem;
    margin: 0 0 0.6rem;
    flex-wrap: wrap;
}

.distillery-directory.help-page .help-tag {
    display: inline-flex;
    min-height: 1.5rem;
    padding: 0.22rem 0.48rem;
    align-items: center;
    color: var(--muted);
    border: 1px solid rgba(185, 154, 104, 0.18);
    border-radius: 999px;
    background: rgba(185, 154, 104, 0.045);
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
}

.distillery-directory.help-page .help-tag-public {
    color: #9fcbb4;
    border-color: rgba(99, 180, 134, 0.2);
    background: rgba(99, 180, 134, 0.07);
}

.distillery-directory.help-page .help-tag-login {
    color: #aebddd;
    border-color: rgba(113, 143, 204, 0.22);
    background: rgba(113, 143, 204, 0.07);
}

.distillery-directory.help-page .help-actions {
    display: flex;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 0.9rem;
    flex-wrap: wrap;
}

.distillery-directory.help-page .help-actions .btn {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
}

.distillery-directory.help-page .help-list,
.distillery-directory.help-page .help-steps {
    margin-bottom: 0;
    padding-left: 1.15rem;
}

.distillery-directory.help-page .help-list li + li,
.distillery-directory.help-page .help-steps li + li {
    margin-top: 0.4rem;
}

@media (max-width: 1040px) {
    .distillery-directory.help-page .help-layout {
        grid-template-columns: 1fr;
    }

    .distillery-directory.help-page .help-sidebar-wrap {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        top: 0.35rem;
    }

    .distillery-directory.help-page .help-sidebar {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        border-radius: 0.8rem;
        background: rgba(12, 12, 12, 0.94);
        backdrop-filter: blur(12px);
    }

    .help-sidebar-heading {
        display: none;
    }

    .distillery-directory.help-page .help-nav {
        display: flex;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        gap: 0.35rem;
        padding: 0.5rem;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
        scroll-snap-type: inline proximity;
        touch-action: pan-x;
    }

    .distillery-directory.help-page .help-nav-link {
        min-height: 38px;
        padding: 0.55rem 0.75rem;
        flex: 0 0 auto;
        scroll-snap-align: start;
        white-space: nowrap;
    }

    .distillery-directory.help-page .help-nav-link::before {
        display: none;
    }

    .distillery-directory.help-page section[id] {
        scroll-margin-top: 4.4rem;
    }
}

@media (max-width: 680px) {
    .distillery-directory.help-page {
        overflow-x: clip;
    }

    .help-page-hero h1 {
        font-size: clamp(2.15rem, 11vw, 3.1rem);
    }

    .distillery-directory.help-page .help-grid {
        grid-template-columns: 1fr;
    }

    .distillery-directory.help-page .help-section-card > .card-body,
    .distillery-directory.help-page .help-intro-card .card-body {
        padding: 0.9rem !important;
    }

    .distillery-directory.help-page .help-actions .btn {
        min-height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .distillery-directory.help-page *,
    .distillery-directory.help-page *::before,
    .distillery-directory.help-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
