.help-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 12px 40px;
}

.site-header {
    background: linear-gradient(135deg, var(--gg-brand-primary-subtle) 0%, var(--gg-banner-bg) 100%);
    border: 1px solid var(--gg-banner-border);
    border-radius: 18px;
    padding: 28px 30px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px color-mix(in srgb, var(--gg-brand-primary) 8%, transparent);
}

.site-title {
    margin: 0 0 8px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gg-heading-color);
}

.site-subtitle {
    margin: 0;
    font-size: 1rem;
    color: var(--gg-text-muted);
    max-width: 850px;
    line-height: 1.6;
}

.help-main-header {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.help-header-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.help-header-action {
    border-radius: 999px;
    font-weight: 700;
    padding: 10px 16px;
}

.help-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: start;
}

.help-sidebar {
    position: sticky;
    top: 20px;
}

.help-nav-card,
.help-content-card {
    background: #fff;
    border: 1px solid var(--gg-card-border);
    border-radius: 18px;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--gg-brand-primary) 6%, transparent);
    overflow: hidden;
}

.help-card-header {
    padding: 16px 20px;
    background: var(--gg-card-header-bg);
    border-bottom: 1px solid var(--gg-card-border);
}

    .help-card-header h4,
    .help-card-header h5 {
        margin: 0;
        color: var(--gg-heading-color);
        font-weight: 700;
    }

.help-nav {
    list-style: none;
    margin: 0;
    padding: 10px;
}

.help-nav-item {
    margin-bottom: 8px;
}

.help-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 12px 14px;
    background: transparent;
    color: var(--gg-text-muted);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .help-nav-link:hover {
        background: var(--gg-event-hover-bg);
        border-color: var(--gg-card-border);
        color: var(--gg-brand-primary);
    }

    .help-nav-link.active {
        background: var(--gg-brand-primary-subtle);
        border-color: var(--gg-brand-primary);
        color: var(--gg-brand-primary);
        box-shadow: inset 0 0 0 1px rgba(47, 125, 50, 0.08);
    }

.help-nav-number {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gg-brand-surface);
    color: var(--gg-brand-primary);
    font-size: 0.85rem;
    font-weight: 700;
}

.help-nav-link.active .help-nav-number {
    background: var(--gg-brand-primary);
    color: #fff;
}

.help-content-card-body {
    padding: 24px;
}

.help-section {
    display: none;
    animation: fadeInHelp 0.2s ease-in-out;
}

    .help-section.active {
        display: block;
    }

@@keyframes fadeInHelp {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.help-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gg-heading-color);
    margin-bottom: 10px;
}

.help-section-intro {
    color: var(--gg-text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.help-video-card {
    margin-top: 20px;
    background: linear-gradient(180deg, #ffffff 0%, var(--gg-row-alternate-bg) 100%);
    border: 1px solid var(--gg-card-border);
    border-radius: 16px;
    padding: 18px;
}

    .help-video-card h6 {
        margin-bottom: 8px;
        color: var(--gg-brand-primary);
        font-size: 1rem;
        font-weight: 700;
    }

    .help-video-card p {
        margin-bottom: 14px;
        color: var(--gg-text-muted);
    }

.help-video-wrap {
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--gg-card-border);
    background: #000;
}

    .help-video-wrap video {
        width: 100%;
        display: block;
        max-height: 540px;
    }

.help-callout {
    background: var(--gg-banner-bg);
    border: 1px solid var(--gg-banner-border);
    color: var(--gg-banner-text);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 22px;
}

.help-section .card {
    border: 1px solid var(--gg-card-border);
    border-radius: 16px;
    box-shadow: 0 8px 22px color-mix(in srgb, var(--gg-brand-primary) 6%, transparent);
    overflow: hidden;
}

.help-section .card-header {
    background-color: var(--gg-card-header-bg);
    color: var(--gg-heading-color);
    border-bottom: 1px solid var(--gg-card-border);
}

    .help-section .card-header h2 {
        color: var(--gg-heading-color);
    }

.help-section .card-body {
    color: var(--gg-text-muted);
}

.help-section .accordion-item {
    border: 1px solid var(--gg-card-border);
    border-radius: 14px !important;
    overflow: hidden;
    margin-bottom: 12px;
    background: #fff;
}

.help-section .accordion-button {
    font-weight: 700;
    color: var(--gg-heading-color);
    background: #fff;
}

    .help-section .accordion-button:not(.collapsed) {
        background-color: var(--gg-brand-primary-subtle);
        color: var(--gg-brand-primary);
        box-shadow: none;
    }

    .help-section .accordion-button:focus {
        box-shadow: none;
        border-color: var(--gg-card-border);
    }

.help-section .accordion-body {
    color: var(--gg-text-muted);
    background: #fff;
}

.help-section h5,
.help-section h6 {
    color: var(--gg-brand-primary);
}

.help-section ul {
    padding-left: 1.2rem;
}

.help-section li {
    margin-bottom: 8px;
}

.help-section code {
    background: var(--gg-brand-primary-subtle);
    color: var(--gg-brand-primary);
    padding: 2px 6px;
    border-radius: 6px;
}

.help-placeholder {
    padding: 18px;
    border: 1px dashed var(--gg-card-border);
    border-radius: 14px;
    background: var(--gg-row-alternate-bg);
}

    .help-placeholder h6 {
        color: var(--gg-brand-primary);
        margin-bottom: 8px;
        font-weight: 700;
    }

    .help-placeholder p {
        margin-bottom: 0;
        color: var(--gg-text-muted);
    }

@media (max-width: 991.98px) {
    .help-layout {
        grid-template-columns: 1fr;
    }

    .help-sidebar {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .help-page {
        padding: 16px 8px 30px;
    }

    .site-header {
        padding: 22px 18px;
    }

    .site-title {
        font-size: 1.65rem;
    }

    .help-content-card-body {
        padding: 18px;
    }

    .help-main-header {
        align-items: stretch;
        flex-direction: column;
    }

    .help-header-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .help-header-action {
        text-align: center;
    }
}

/* The Ryder Cup guide inherits the same group palette as its application pages. */
.help-image-snippet { max-width: 960px; margin: 20px 0; padding: 14px; border: 1px solid var(--gg-banner-border, #d8dfe5); border-radius: 12px; background: var(--gg-brand-surface, #fff); }
.help-snippet-link { display: block; position: relative; width: fit-content; max-width: 100%; margin-inline: auto; border-radius: 8px; }
.help-snippet-link img { display: block; width: auto; height: auto; max-width: 100%; max-height: 320px; border-radius: 8px; }
.help-snippet-link:focus-visible { outline: 3px solid var(--gg-brand-primary); outline-offset: 4px; }
.help-snippet-enlarge { display: block; text-align: right; font-size: .78rem; margin-top: 7px; }
.help-image-snippet figcaption { margin-top: 10px; color: var(--gg-text-muted); font-size: .88rem; line-height: 1.5; }
@media (max-width: 767px) {
    .help-image-snippet { padding: 10px; margin: 16px 0; }
    .help-snippet-link img { max-height: 260px; }
}
@media print {
    .help-image-snippet { break-inside: avoid; }
    .help-snippet-enlarge { display: none; }
}

.help-rydercup .h6 { color: var(--gg-heading-color); }
.help-rydercup .accordion-button:focus-visible { outline: 2px solid var(--gg-brand-primary); outline-offset: -3px; }
.help-rydercup .accordion-button::after {
    background-image: none;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M1.5 5.5 8 12l6.5-6.5-1-1L8 10 2.5 4.5z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M1.5 5.5 8 12l6.5-6.5-1-1L8 10 2.5 4.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
