/* Help Layout */
/* Global Help Styles */
.help-page-wrapper * {
    box-sizing: border-box;
}

.fixed-header {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.fixed-header.scrolled {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
}

/* Remove box-shadow from light nav links in help center */
.nav-links-container.light {
    box-shadow: none;
    padding-right: 5px;
}

.help-header-search {
    position: relative;
    margin-left: 5px;
    margin-right: 1rem;
    flex: 1 1 auto;
    max-width: 420px;
    display: flex;
    font-family: "SF Pro Text", "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.help-search-modal-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px) saturate(100%);
    -webkit-backdrop-filter: blur(0px) saturate(100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, backdrop-filter 0.25s ease, background 0.25s ease, visibility 0s linear 0.25s;
}

.help-search-modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.50);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    transition: opacity 0.25s ease, backdrop-filter 0.25s ease, background 0.25s ease, visibility 0s;
}

.help-search-modal-container {
    width: 90%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transform: translateY(-20px);
    transition: transform 0.25s ease;
}

.help-search-modal-overlay.is-visible .help-search-modal-container {
    transform: translateY(0);
}

.help-header-search-form {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.help-search-icon {
    position: absolute;
    left: 14px;
    top: 13px;
    color: #7a7a7a;
    pointer-events: none;
}

.help-search-icon svg {
    width: 16px;
    height: 16px;
}

.help-search-modal-overlay .help-search-icon {
    left: 1.2rem;
    top: 16px;
    transform: none;
    /* transform: translateY(-50%); */
}

.help-search-modal-overlay .help-search-icon svg {
    width: 20px;
    height: 20px;
}

.help-header-search-input {
    width: 100%;
    padding: 0.75rem 0.8rem 0.75rem 2.4rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.92);
    color: #2b2b2b;
    font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.help-search-modal-overlay .help-header-search-form {
    width: 100%;
    order: 0;
    flex: 1;
}

.help-search-modal-overlay .help-header-search-input {
    padding: 1rem 3.5rem 1rem 3.2rem;
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    cursor: text;
    width: 100%;
    height: auto;
    color: #2b2b2b;
    caret-color: auto;
    text-indent: 0;
}

.help-search-modal-overlay .help-header-search-input::placeholder {
    color: #999;
    opacity: 1;
}

.help-search-shortcut {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 4px;
    pointer-events: none;
}

.help-search-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0 1px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    line-height: 1;
    text-align: center;
}

.help-search-modal-overlay .help-search-shortcut {
    display: none;
}

.help-search-esc {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    pointer-events: none;
    display: none;
    font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.help-search-modal-overlay .help-search-esc {
    display: block;
}

.help-search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    padding: 0.35rem 0;
    max-height: 320px;
    overflow: hidden;
    overflow-y: auto;
    display: none;
    z-index: 2000;
    font-family: "SF Pro Text", "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.help-search-results::-webkit-scrollbar {
    width: 6px;
}

.help-search-results::-webkit-scrollbar-track {
    background: transparent;
    margin: 14px 0;
}

.help-search-results::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.38);
    border-radius: 4px;
    border: 1px solid transparent;
    background-clip: padding-box;
}

.help-search-modal-overlay .help-search-results {
    position: relative;
    top: 0;
    max-height: 60vh;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0;
}

.help-search-modal-overlay .help-search-results:not(.is-open) {
    display: none;
}

.help-search-results.is-open {
    display: block;
}

.help-search-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.7rem 0.95rem;
    color: #222;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 0.15s ease, color 0.15s ease;
}

.help-search-item:last-child {
    border-bottom: none;
}

.help-search-item:hover {
    background: rgba(59, 103, 2, 0.06);
}

.help-search-item.is-active {
    background: rgba(59, 103, 2, 0.1);
}

.help-search-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 5px;
}

.help-search-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.3;
}

.help-search-modal-overlay .help-search-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.help-search-excerpt {
    font-size: 0.85rem;
    color: #5a5a5a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: normal;
}

.help-search-match {
    background: rgba(255, 220, 100, 0.7);
    color: inherit;
    font-weight: 500;
    padding: 0;
    border-radius: 2px;
}

.help-search-return {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #999;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.help-search-return svg {
    width: 100%;
    height: 100%;
}

.help-search-item.is-active .help-search-return {
    opacity: 1;
}

.help-search-highlight {
    background: rgba(255, 223, 128, 0.65);
    border-radius: 6px;
    padding: 0.05rem 0.2rem;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.help-search-highlight.is-primary {
    background: rgba(255, 200, 64, 0.8);
    box-shadow: 0 0 0 2px rgba(255, 200, 64, 0.35);
}

.help-search-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 1100px) {
    .help-header-search {
        max-width: 320px;
    }
}

@media (max-width: 900px) {
    .help-header-search {
        order: 3;
        width: 100%;
        max-width: none;
        margin: 0.75rem 0 0;
    }

    .theme-toggle {
        margin-left: 8px;
        margin-right: 8px;
    }
}

@media (min-width: 1025px) {
    .help-page-wrapper {
        position: relative;
    }
    .help-page-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: calc(3rem + 260px); /* Padding-left + Sidebar width */
        width: 1px;
        background-color: rgba(0,0,0,0.08);
        z-index: 1;
        pointer-events: none;
    }
    .help-sidebar {
        border-right: none !important;
    }
}

body {
    color: #333;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: visible;
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] body {
    background-color: #1a1a1a;
    color: #e5e5e5;
}

html {
    overflow-x: visible;
}

.help-page-wrapper {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    gap: 4rem;
    position: relative;
    align-items: flex-start;
    flex: 1 0 auto;
}

/* Typography Overrides */
h1, h2, h3, h4, .help-card-title {
    font-family: 'DM Serif Display', serif;
    font-weight: 10;
    color: #333;
}

.site-footer {
    background: #fff;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .site-footer {
    background: #1a1a1a;
}

.help-site-footer {
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: auto;
    color: #999;
    font-weight: normal;
}

.help-site-footer .help-footer-inner {
    width: 100%;
    padding: 22px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-sizing: border-box;
    font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.92rem;
    color: #999;
    font-weight: normal;
}

.help-site-footer .help-footer-right {
    text-align: right;
    font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.92rem;
    color: #999;
    font-weight: normal;
}

.site-footer .footer-column h4 {
    font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

/* Left Sidebar - Navigation */
.help-sidebar {
    --sidebar-icon-size: 18px;
    --sidebar-icon-gap: 0.65rem;
    --sidebar-title-indent: calc(var(--sidebar-icon-size) + var(--sidebar-icon-gap));
    width: 260px;
    flex-shrink: 0;
    align-self: flex-start;
    position: sticky;
    top: var(--header-height, 89px);
    margin-top: var(--header-height, 89px);
    padding-top: 35px;
    height: auto;
    max-height: calc(100vh - var(--header-height, 89px));
    overflow-y: auto;
    padding-right: 1.5rem;
    padding-bottom: 1.2rem;
}

.help-sidebar::-webkit-scrollbar {
    width: 4px;
}

.help-sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.08);
    border-radius: 4px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-nav.right {
    padding-top: 35px;
}

.sidebar-category-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sidebar-category-row .sidebar-category-link {
    flex: 1;
}

.sidebar-toggle {
    border: none;
    background: transparent;
    color: #8b8b8b;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.sidebar-toggle:hover {
    color: #111;
}

.sidebar-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.sidebar-category-block.is-open .sidebar-toggle svg {
    transform: rotate(180deg);
}

.sidebar-links {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding: 0 0 0 var(--sidebar-title-indent);
    margin-left: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.24s ease, opacity 0.18s ease, margin 0.2s ease;
}

.sidebar-links::before {
    content: '';
    position: absolute;
    left: calc(var(--sidebar-icon-size) / 2);
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.08);
}

.sidebar-category-block.is-open .sidebar-links {
    margin: 0.35rem 0 1rem;
    max-height: 540px;
    opacity: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--sidebar-icon-gap);
    padding: 0.4rem 0;
    color: #777;
    text-decoration: none;
    font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.9em;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.sidebar-subpage-link {
    gap: 0;
    padding-left: calc(var(--sidebar-title-indent) - (var(--sidebar-icon-size) / 2));
    margin-left: calc((var(--sidebar-icon-size) / 2) - var(--sidebar-title-indent));
    border-left: 1px solid transparent;
    transition: color 0.2s ease, border-left-color 0.2s ease;
}

.sidebar-link:hover {
    color: #3B6702;
}

.sidebar-link.active {
    color: #3B6702;
    font-weight: 700;
}

.sidebar-subpage-link.active {
    border-left-color: #3B6702;
}

.sidebar-icon {
    width: var(--sidebar-icon-size);
    height: var(--sidebar-icon-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7a7a7a;
}

.sidebar-icon svg {
    width: var(--sidebar-icon-size);
    height: var(--sidebar-icon-size);
}

.sidebar-link.active .sidebar-icon {
    color: #3B6702;
}

.sidebar-link:hover .sidebar-icon {
    color: #3B6702;
}

/* Main Content Area */
.help-content-area {
    flex-grow: 1;
    max-width: 720px;
    padding-top: 9.3rem;
    padding-bottom: 5.5rem;
    min-width: 0;
}

.help-category-area {
    max-width: 720px;
}

.help-article-header {
    margin-bottom: 3rem;
    margin-top: -0.8rem;
}

.breadcrumbs {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.breadcrumbs a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: #111;
}

.breadcrumbs .separator {
    color: #ccc;
    font-size: 0.8rem;
}

.breadcrumbs .current {
    color: #3B6702;
    font-weight: 700;
}

.help-article-header h1 {
    font-size: 46px;
    line-height: 1.1;
    font-weight: 10;
    color: #333;
}

.help-content-body {
    color: #444;
    font-size: 18px;
    font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.help-content-body h2 {
    font-size: 32px;
    margin: 0 0 25px 0;
    color: #333;
    font-weight: 10;
    line-height: 1.2;
}

.help-content-body h3 {
    font-size: 1.6rem;
    margin: 35px 0 20px 0;
    color: #333;
    font-weight: 10;
    line-height: 1.3;
}

.help-content-body p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #444;
    font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.help-content-body ul, .help-content-body ol {
    font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 18px;
    color: #444;
    line-height: 1.7;
    margin-top: -10px;
}

.help-content-body img {
    max-width: 100%;
}

.help-content-body code {
    background-color: rgba(0,0,0,0.04);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9em;
    color: #d63384;
}

.help-content-body pre {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 2rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.help-content-body pre code {
    background-color: transparent;
    padding: 0;
    color: #333;
}

/* Blog-style blockquotes and code blocks in Help articles */
.help-content-body blockquote {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 28px 0;
    padding: 18px 22px;
    border-left: 4px solid rgba(59, 103, 2, 0.4);
    background: rgba(253, 242, 202, 0.35);
    border-radius: 12px;
}

.help-content-body blockquote::before {
    content: "\1F4A1";
    font-size: 18px;
    line-height: 1.2;
    margin-top: 5px;
    flex: 0 0 auto;
}

.help-content-body blockquote > * {
    margin-top: 0;
}

.help-content-body blockquote p {
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
    color: #333;
}

.help-content-body blockquote a {
    color: #3B6702;
    text-decoration: underline;
}

.help-content-body .code-block {
    margin: 28px 0;
    border-left: 4px solid rgba(59, 103, 2, 0.4);
    background: rgba(253, 242, 202, 0.35);
    border-radius: 12px;
    overflow: hidden;
}

.help-content-body .code-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
}

.help-content-body .code-block-lang {
    font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    color: #3B6702;
    opacity: 0.85;
    padding-left: 7px;
}

.help-content-body .code-block-copy {
    display: inline-flex;
    align-items: center;
    gap: 0;
    width: auto;
    height: 32px;
    border: 0;
    padding: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    position: relative;
    color: #3B6702;
}

.help-content-body .code-block-copy:hover {
    opacity: 0.85;
}

.help-content-body .code-block-copy-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.help-content-body .code-block-copy-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.help-content-body .code-block-copy-icon::before,
.help-content-body .code-block-copy-icon::after {
    content: none;
    display: none;
}

.help-content-body .code-block-copy-feedback {
    font-size: 14px;
    color: #3B6702;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    margin-left: 0;
    transition: opacity 300ms ease, max-width 300ms ease, margin-left 300ms ease;
    line-height: 1;
    font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.help-content-body .code-block-copy[data-state="copied"] .code-block-copy-feedback {
    opacity: 1;
    max-width: 60px;
    margin-left: 8px;
}

.help-content-body .code-block-copy:focus-visible {
    outline: 2px solid rgba(59, 103, 2, 0.45);
    outline-offset: 4px;
}

.help-content-body pre {
    margin: 0;
    padding: 0 22px 18px 22px;
    overflow-x: hidden;
    background: transparent;
    border: 0;
}

.help-content-body pre code {
    font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 14px;
    line-height: 1.65;
    color: #333;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.help-article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.help-article-footer p {
    margin: 0;
    font-weight: 600;
    color: #333;
    font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.help-article-cta-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.help-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.help-cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.help-cta-button:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}

.help-cta-icon {
    display: inline-flex;
}

.help-cta-icon svg {
    width: 18px;
    height: 18px;
}

.help-cta-icon svg.help-cta-icon-reddit {
    width: 21.6px;
    height: 21.6px;
}

.help-cta-discord {
    background: #5865f2;
}

.help-cta-reddit {
    background: #ff4500;
}

/* Callout styling */
.callout {
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    font-size: 1rem;
}

.callout.info {
    background-color: #e3f2fd;
    color: #0d47a1;
}

/* Right Sidebar - Table of Contents */
.help-toc-sidebar {
    --toc-icon-size: 16px;
    --toc-icon-gap: 0.5rem;
    --toc-guide-offset: calc(var(--toc-icon-size) / 2);
    --toc-title-indent: calc(var(--toc-icon-size) + var(--toc-icon-gap));
    width: 260px;
    flex-shrink: 0;
    align-self: flex-start;
    position: sticky;
    top: var(--header-height, 89px);
    margin-top: var(--header-height, 89px);
    max-height: calc(100vh - var(--header-height, 89px));
    overflow-y: auto;
    padding-bottom: 2rem;
    display: none;
    padding-top: 41px;
    padding-right: 25px;
}

.help-toc-sidebar::-webkit-scrollbar {
    width: 4px;
}

.help-toc-sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.08);
    border-radius: 4px;
}

.help-trending-sidebar {
    --sidebar-icon-size: 18px;
    --sidebar-icon-gap: 0.65rem;
    --sidebar-title-indent: calc(var(--sidebar-icon-size) + var(--sidebar-icon-gap));
    width: 240px;
    flex-shrink: 0;
    align-self: flex-start;
    position: sticky;
    top: var(--header-height, 89px);
    margin-top: var(--header-height, 89px);
    max-height: calc(100vh - var(--header-height, 89px));
    overflow-y: auto;
    padding-bottom: 2rem;
    display: none;
    /* margin-left: 30px; */
}



@media (min-width: 1280px) {
    .help-toc-sidebar {
        display: block;
    }
    .help-trending-sidebar {
        display: block;
    }
}

.toc-header {
    font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #777;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9em;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.toc-header svg {
    margin-right: 0 !important;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-left: var(--toc-guide-offset);
    border-left: 1px solid rgba(0,0,0,0.08);
    position: relative;
}

.toc-item {
    margin-bottom: 0;
}

.toc-link {
    display: block;
    font-weight: normal;
    padding: 0.4rem 0 0.4rem calc(var(--toc-title-indent) - var(--toc-guide-offset));
    color: #777;
    text-decoration: none;
    border-left: 1px solid transparent;
    margin-left: -1px;
    transition: all 0.3s ease;
    line-height: 1.4;
    font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.9em;
}

.toc-active-indicator {
    position: absolute;
    left: -1px;
    top: 0;
    width: 1px;
    height: 0;
    background-color: #3B6702;
    opacity: 0;
    transition: transform 0.24s ease, height 0.24s ease, opacity 0.2s ease;
    pointer-events: none;
}

.toc-link:hover {
    color: #3B6702;
}

.toc-link.active {
    color: #3B6702;
    font-weight: 700;
}

.toc-subitem {
    padding-left: 0;
}

.toc-subitem .toc-link {
    padding-left: calc(var(--toc-title-indent) - var(--toc-guide-offset) + 15px);
}

/* Help Feedback */
.help-feedback-container {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.help-feedback-question {
    font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #777;
    font-size: 0.9em;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.help-feedback-buttons {
    display: flex;
    gap: 0.5rem;
}

.help-feedback-btn {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-feedback-btn svg {
    width: 20px;
    height: 20px;
}

.help-feedback-btn:hover {
    background: rgba(59, 103, 2, 0.05);
    border-color: #3B6702;
    color: #3B6702;
}

.help-feedback-btn:active {
    transform: scale(0.95);
}

.help-feedback-btn.active {
    background: rgba(59, 103, 2, 0.1);
    border-color: #3B6702;
    color: #3B6702;
}

.help-feedback-btn.help-feedback-dislike.active {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #dc3545;
}

.help-feedback-form {
    margin-top: 1rem;
    animation: feedbackFormFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top;
}

@keyframes feedbackFormFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.help-feedback-label {
    display: block;
    font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    font-size: 0.9em;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.help-feedback-textarea {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 0.65rem;
    font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.9em;
    resize: vertical;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.help-feedback-textarea:focus {
    outline: none;
    border-color: #3B6702;
}

.help-feedback-submit {
    margin-top: 0.75rem;
    background: #3B6702;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.65rem 1.2rem;
    font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.help-feedback-submit:hover {
    background: #2d4f01;
}

.help-feedback-submit:active {
    transform: scale(0.98);
}

.help-feedback-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.help-feedback-success {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 8px;
    color: #28a745;
    font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.9em;
    text-align: center;
    animation: feedbackFormFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Help Index Specifics */
.help-hero-section {
    margin-bottom: 4rem;
    text-align: left;
}

.help-hero-section h1 {
    font-size: 46px;
    line-height: 1.1;
    font-weight: 10;
    margin: 20px 0;
    color: #333;
}

.help-hero-section p {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 50px;
    font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.help-hero-section blockquote {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 28px 0;
    padding: 18px 22px;
    border-left: 4px solid rgba(59, 103, 2, 0.4);
    background: rgba(253, 242, 202, 0.35);
    border-radius: 12px;
}

.help-hero-section blockquote::before {
    content: "\1F4A1";
    font-size: 18px;
    line-height: 1.2;
    margin-top: 5px;
    flex: 0 0 auto;
}

.help-hero-section blockquote > * {
    margin-top: 0;
}

.help-hero-section blockquote p {
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
    color: #333;
}

.help-hero-section blockquote a {
    color: #3B6702;
    text-decoration: underline;
}

.help-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding-top: 10px;
}

/* Help Card Redesign */
.help-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    text-decoration: none; /* For when card is anchor */
    color: inherit;
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.08);
}

.help-card:hover .help-card-title {
    color: #3B6702;
}

.help-card-title {
    transition: all 0.3s ease;
    font-size: 1.6rem;
    margin: 0;
    color: #333;
    font-weight: 10;
    font-family: 'DM Serif Display', serif;
}

.help-card-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-weight: normal;
    font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.help-card-header {
    display: contents; /* Remove layout impact */
}

.help-card-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3B6702;
    background-color: rgba(59, 103, 2, 0.08);
    border-radius: 12px;
    padding: 10px;
    box-sizing: border-box;
    margin-bottom: 0.5rem;
}

.help-card-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 2;
}

.help-card-links {
    display: none;
}

.help-category-header {
    margin-bottom: 3rem;
    margin-top: -0.8rem;
}

.help-category-header h1 {
    font-size: 46px;
    line-height: 1.1;
    font-weight: 10;
    color: #333;
    margin: 0;
}

.help-category-header p {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 50px;
    font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.help-collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding-top: 27px;
}

.help-collection-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.08);
    padding-bottom: 1.2rem;
}

.help-collection-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.04rem;
}

.help-collection-header h2 {
    font-size: 1.6rem;
    margin: 0;
    color: #333;
    font-weight: 10;
    font-family: 'DM Serif Display', serif;
}

.help-collection-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-collection-links li {
    margin-bottom: 0.75rem;
}

.help-collection-links a {
    color: #777;
    text-decoration: none;
    display: block;
    font-weight: normal;
    font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    transition: color 0.3s ease;
    line-height: 1.6;
}

.help-collection-links a:hover {
    color: #3B6702;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .help-page-wrapper {
        flex-direction: column;
        padding: 0 1.5rem;
        gap: 2rem;
    }

    .help-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
        margin-top: 0;
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        padding-bottom: 1rem;
        padding-right: 0;
        max-height: none;
        overflow: visible;
    }

    .sidebar-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .sidebar-links {
        padding-left: var(--sidebar-title-indent);
        margin-left: 0;
    }

    .help-content-area {
        max-width: 100%;
        padding-top: 1rem;
    }
    
    .help-toc-sidebar {
        display: none !important;
    }

    .help-trending-sidebar {
        display: none !important;
    }
    
    .help-hero-section h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 900px) {
    .fixed-header {
        padding: 14px 18px;
    }

    .fixed-header .header-content {
        flex-wrap: nowrap;
        gap: 0;
        align-items: center;
    }

    .logo-container {
        display: flex;
        align-items: center;
        gap: 0;
        flex: 0 0 auto;
    }

    .logo-items {
        display: flex;
        align-items: center;
    }

    .logo {
        width: 30px;
        height: 30px;
        display: block;
    }

    .logo-text,
    .fluent-label {
        font-size: 22px;
        line-height: 1;
        padding-top: 2px !important;
    }

    .help-header-search {
        order: 2;
        width: auto;
        max-width: none;
        margin: 0 0 0 auto;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 0.15rem;
    }

    .help-header-search-form {
        width: 40px;
        flex: 0 0 auto;
        order: 2;
    }

    .help-header-search-input {
        width: 32px;
        height: 32px;
        padding: 0;
        border: none;
        border-radius: 999px;
        background: rgba(0, 0, 0, 0.06);
        text-indent: 0;
        color: transparent;
        caret-color: transparent;
    }

    .help-search-icon {
        left: 40%;
        top: 53%;
        transform: translate(-50%, -50%);
    }

    .help-search-icon svg {
        width: 18px;
        height: 18px;
    }

    .help-header-search-input::placeholder {
        color: transparent;
    }

    .help-search-shortcut {
        display: none;
    }

    .theme-toggle {
        width: 32px;
        height: 32px;
        margin: 0;
        margin-top: 0 !important;
        flex: 0 0 auto;
        order: 1;
        background: rgba(0, 0, 0, 0.06);
    }

    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }

    .header-buttons {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: none;
        height: 100dvh;
        min-height: 100dvh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: calc(84px + env(safe-area-inset-top, 0px)) 24px calc(48px + env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
        transition: right 0.3s ease;
        z-index: 1000;
        gap: 0.9rem;
        overflow-y: auto;
    }

    .header-buttons.active {
        right: 0;
    }

    .nav-links-container {
        flex-direction: column;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        box-shadow: none;
        padding: 0;
        gap: 0;
        width: 100%;
        margin: 0;
        padding-bottom: 0.8rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .header-link {
        font-size: 0.9em;
        font-weight: 400;
        color: #777;
        padding: 0.4rem 0;
        border-bottom: none;
        width: 100%;
        line-height: 1.4;
    }

    .header-link:hover {
        color: #3B6702;
    }

    .header-link.active {
        color: #3B6702;
        font-weight: 700;
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 40px;
        height: 40px;
        cursor: pointer;
        z-index: 1001;
        position: relative;
        order: 3;
        margin-left: 0;
        flex: 0 0 auto;
    }

    .hamburger-menu span {
        display: block;
        width: 22px;
        height: 2px;
        background-color: #7a7a7a;
        border-radius: 2px;
        transition: all 0.3s ease;
        margin: 0 auto;
    }

    .hamburger-menu.active {
        gap: 0;
    }

    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(3px, 3px);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(0, 0);
    }

    .logo-separator,
    .logo-secondary-text {
        display: none !important;
    }

    .help-page-wrapper {
        padding: 0 1.25rem;
        gap: 1.5rem;
        overflow-x: hidden;
    }

    .help-content-area {
        padding-top: calc(var(--header-height, 72px) + 1rem);
        padding-bottom: 3.5rem;
    }

    .help-sidebar {
        background: #fff;
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 16px;
        padding: 1rem 1rem 0.6rem;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    }

    [data-theme="dark"] .help-sidebar {
        background: #1f1f1f;
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
    }

    [data-theme="dark"] .header-buttons {
        background: rgba(26, 26, 26, 0.96);
    }

    [data-theme="dark"] .header-link {
        color: #e5e5e5;
    }

    [data-theme="dark"] .header-link:hover,
    [data-theme="dark"] .header-link.active {
        color: #9fcb6a;
    }

    [data-theme="dark"] .hamburger-menu span {
        background-color: #e5e5e5;
    }

    [data-theme="dark"] .help-header-search-input {
        background: rgba(255, 255, 255, 0.08) !important;
        border: none !important;
    }

    [data-theme="dark"] .fixed-header .help-header-search-input {
        color: transparent;
        -webkit-text-fill-color: transparent;
        caret-color: transparent;
    }

    [data-theme="dark"] .fixed-header .help-header-search-input::placeholder {
        color: transparent;
    }

    .sidebar-link {
        padding: 0.35rem 0;
        font-size: 0.9em;
    }

    .sidebar-link.sidebar-subpage-link {
        padding-left: calc(var(--sidebar-title-indent) - (var(--sidebar-icon-size) / 2));
    }

    .nav-links-container, .nav-links-container.light {
        gap: 0;
    }

    .header-buttons .help-sidebar {
        width: 100%;
        position: static;
        margin: 0;
        max-height: none;
        overflow: visible;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        padding: 0;
    }

    .header-buttons .help-sidebar .sidebar-nav {
        gap: 0.7rem;
    }

    .fixed-header.scrolled .logo-container,
    .fixed-header.scrolled .hamburger-menu {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    [data-theme="dark"] .nav-links-container {
        border-bottom-color: rgba(255, 255, 255, 0.12);
    }

    .help-article-header {
        margin-bottom: 2rem;
        margin-top: 0;
    }

    .help-article-header h1,
    .help-hero-section h1,
    .help-category-header h1 {
        font-size: 2.2rem;
    }

    .help-hero-section p,
    .help-category-header p,
    .help-content-body p,
    .help-content-body ul,
    .help-content-body ol {
        font-size: 1rem;
    }

    .help-content-body h2 {
        font-size: 1.6rem;
        margin-bottom: 18px;
    }

    .help-content-body h3 {
        font-size: 1.2rem;
        margin: 24px 0 14px 0;
    }

    .help-content-body blockquote,
    .help-content-body .code-block,
    .help-hero-section blockquote {
        padding: 14px 16px;
        border-radius: 10px;
    }

    .help-content-body pre {
        padding: 1rem;
    }

    .help-card,
    .help-collection-card {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .help-hero-section {
        margin-bottom: 2.5rem;
    }

    .help-sidebar {
        max-height: 55vh;
        overflow-y: auto;
        padding-right: 0.75rem;
    }

    .help-cards-grid,
    .help-collection-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .help-article-header h1,
    .help-hero-section h1,
    .help-category-header h1 {
        font-size: 2rem;
    }

    .help-content-body {
        font-size: 1rem;
    }

    .help-content-body pre {
        border-radius: 10px;
        margin-bottom: 1.5rem;
    }

    .help-content-body code {
        word-break: break-word;
    }
}

@media (max-width: 768px) {
    .help-site-footer .help-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.45rem;
    }

    .help-site-footer .help-footer-right {
        text-align: left;
    }
}

/* Blog Post Style Overrides for Help Articles */
.help-content-body .blog-post-picture {
    width: 110%;
    max-width: none;
    margin-left: -5%;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border: 8px solid rgba(255, 255, 255, 0.5);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .help-content-body .blog-post-picture {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }
}

/* Image Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    padding: 2rem;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    justify-content: center;
    align-items: center;
    pointer-events: none;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}

.lightbox-overlay.is-visible {
    display: flex;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    pointer-events: auto;
}

.lightbox-content {
    margin: 0;
    display: block;
    max-width: 90%;
    max-height: calc(100vh - 4rem);
    object-fit: contain;
    border-radius: 20px;
    border: none;
    will-change: transform;
}

.lightbox-overlay.is-visible .lightbox-content {
    /* Animation handled by JS */
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    transform: scale(0.8);
    transition: background-color 0.2s ease, opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-overlay.is-visible .lightbox-close {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.1s;
}

.lightbox-close:hover,
.lightbox-close:focus {
    background: rgba(0, 0, 0, 0.7);
    outline: none;
}

/* Make images in help content clickable */
.help-content-body img {
    cursor: zoom-in;
}

/* AI Answer Styles */
.help-search-ai-answer {
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, rgba(59, 103, 2, 0.08) 0%, rgba(59, 103, 2, 0.04) 100%);
    border-left: 3px solid rgba(59, 103, 2, 0.4);
    border-radius: 8px;
    margin: 0.5rem;
}

.help-search-ai-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #3b6702;
    margin-bottom: 0.75rem;
}

.help-search-ai-header svg {
    flex-shrink: 0;
}

.help-search-ai-content {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333;
}

/* Loading indicator */
.help-search-loading {
    display: inline-flex;
    align-items: center;
    color: #7a7a7a;
    font-size: 0.9rem;
}

.help-search-dots {
    display: inline-block;
    width: 20px;
}

.help-search-dots::after {
    content: '';
    animation: helpSearchDots 1.5s steps(4, end) infinite;
}

@keyframes helpSearchDots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    margin-right: 12px;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    position: relative;
    margin-top: 6px;
    margin-left: 20px;
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    position: absolute;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.theme-toggle .sun-icon {
    color: #7a7a7a;
    opacity: 1;
}

.theme-toggle .moon-icon {
    opacity: 0;
    transform: scale(0.8);
}

[data-theme="dark"] .theme-toggle {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .theme-toggle .sun-icon {
    opacity: 0;
    transform: scale(0.8);
}

[data-theme="dark"] .theme-toggle .moon-icon {
    opacity: 1;
    color: #aaa;
    transform: scale(1);
}

/* Dark Theme Styles */
[data-theme="dark"] {
    background: #1a1a1a;
    color: #e5e5e5;
}

[data-theme="dark"] .fixed-header {
    background: rgba(26, 26, 26, 0.72);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .fixed-header.scrolled {
    background: rgba(26, 26, 26, 0.72);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
}

[data-theme="dark"] .help-header-search-input {
    background: rgba(40, 40, 40, 0.92);
    color: #e5e5e5;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .help-header-search-input::placeholder {
    color: #888;
}

[data-theme="dark"] .help-search-modal-overlay {
    background: rgba(0, 0, 0, 0.70);
}

[data-theme="dark"] .help-search-modal-overlay .help-header-search-input {
    background: rgba(40, 40, 40, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    color: #e5e5e5;
    caret-color: auto;
}

[data-theme="dark"] .help-search-modal-overlay .help-header-search-input::placeholder {
    color: #888;
}

[data-theme="dark"] .help-search-icon {
    color: #aaa;
}

[data-theme="dark"] .help-search-key {
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #bbb;
}

[data-theme="dark"] .help-search-esc {
    color: #888;
}

[data-theme="dark"] .help-search-results {
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .help-search-results::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .help-search-modal-overlay .help-search-results {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .help-search-item {
    color: #e5e5e5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .help-search-item:hover {
    background: rgba(88, 155, 12, 0.15);
}

[data-theme="dark"] .help-search-item.is-active {
    background: rgba(88, 155, 12, 0.25);
}

[data-theme="dark"] .help-search-title {
    color: #e5e5e5;
}

[data-theme="dark"] .help-search-excerpt {
    color: #b0b0b0;
}

[data-theme="dark"] .help-search-match {
    background: rgba(255, 220, 100, 0.35);
}

/* Dark theme for help cards */
[data-theme="dark"] .help-card {
    background: #252525;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .help-card:hover .help-card-title {
    color: #b8e86c;
}

[data-theme="dark"] .help-card-title {
    color: #e5e5e5;
}

[data-theme="dark"] .help-card-description {
    color: #b0b0b0;
}

[data-theme="dark"] .help-card-icon {
    background-color: rgba(88, 155, 12, 0.2);
    color: #a3d867;
}

/* Dark theme for help collection cards */
[data-theme="dark"] .help-collection-card {
    background: #252525;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .help-collection-header h2 {
    color: #e5e5e5;
}

[data-theme="dark"] .help-collection-links a {
    color: #999;
}

[data-theme="dark"] .help-collection-links a:hover {
    color: #b8e86c;
}

/* Dark theme for help hero section */
[data-theme="dark"] .help-hero-section h1 {
    color: #e5e5e5;
}

[data-theme="dark"] .help-hero-section p {
    color: #b0b0b0;
}

[data-theme="dark"] .help-hero-section blockquote {
    background: rgba(88, 155, 12, 0.15);
    border-left: 4px solid #789b45;
}

[data-theme="dark"] .help-hero-section blockquote p {
    color: #e0e0e0;
}

[data-theme="dark"] .help-hero-section blockquote a {
    color: #a3d867;
    text-decoration: underline;
}

/* Dark theme for help page content */
[data-theme="dark"] .help-page-wrapper {
    background: #1a1a1a;
    color: #e5e5e5;
}

[data-theme="dark"] .help-sidebar {
    background: #1a1a1a;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .sidebar-link {
    color: #999;
}

[data-theme="dark"] .sidebar-link:hover {
    color: #b8e86c;
}

[data-theme="dark"] .sidebar-link.active {
    color: #b8e86c;
}

[data-theme="dark"] .sidebar-subpage-link.active {
    border-left-color: #b8e86c;
}

[data-theme="dark"] .sidebar-icon {
    color: #888;
}

[data-theme="dark"] .sidebar-link.active .sidebar-icon {
    color: #a3d867;
}

[data-theme="dark"] .sidebar-link:hover .sidebar-icon {
    color: #a3d867;
}

[data-theme="dark"] .sidebar-links::before {
    background: rgba(255, 255, 255, 0.1);
}

/* Dark theme for scrollbars */
[data-theme="dark"] .help-sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .help-toc-sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .toc-header {
    color: #999;
}

[data-theme="dark"] .toc-list {
    border-left-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .toc-link {
    color: #999;
}

[data-theme="dark"] .toc-link:hover {
    color: #b8e86c;
}

[data-theme="dark"] .toc-link.active {
    color: #b8e86c;
}

[data-theme="dark"] .toc-active-indicator {
    background-color: #a3d867;
}

/* Dark theme for feedback buttons */
[data-theme="dark"] .help-feedback-container {
    border-top-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .help-feedback-question {
    color: #999;
}

[data-theme="dark"] .help-feedback-btn {
    background: #252525;
    border-color: rgba(255, 255, 255, 0.15);
    color: #999;
}

[data-theme="dark"] .help-feedback-btn:hover {
    background: rgba(88, 155, 12, 0.15);
    border-color: #a3d867;
    color: #a3d867;
}

[data-theme="dark"] .help-feedback-btn.active {
    background: rgba(88, 155, 12, 0.2);
    border-color: #a3d867;
    color: #a3d867;
}

[data-theme="dark"] .help-feedback-btn.help-feedback-dislike.active {
    background: rgba(220, 53, 69, 0.2);
    border-color: #dc3545;
    color: #ff6b6b;
}

[data-theme="dark"] .help-feedback-label {
    color: #e5e5e5;
}

[data-theme="dark"] .help-feedback-textarea {
    background: #252525;
    border-color: rgba(255, 255, 255, 0.15);
    color: #e5e5e5;
}

[data-theme="dark"] .help-feedback-textarea:focus {
    border-color: #a3d867;
    outline: none;
}

[data-theme="dark"] .help-feedback-textarea::placeholder {
    color: #777;
}

[data-theme="dark"] .help-feedback-submit {
    background: #589b0c;
    color: #fff;
}

[data-theme="dark"] .help-feedback-submit:hover {
    background: #6fb015;
}

[data-theme="dark"] .help-feedback-success {
    background: rgba(40, 167, 69, 0.15);
    border-color: rgba(40, 167, 69, 0.4);
    color: #5cb85c;
}

[data-theme="dark"] .help-category {
    color: #e5e5e5;
}

[data-theme="dark"] .help-category-title {
    color: #e5e5e5;
}

[data-theme="dark"] .help-category-link {
    color: #b0b0b0;
}

[data-theme="dark"] .help-category-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #e5e5e5;
}

[data-theme="dark"] .help-category-link.active {
    background: rgba(88, 155, 12, 0.2);
    color: #b8e86c;
}

[data-theme="dark"] .help-content {
    background: #1a1a1a;
    color: #e5e5e5;
}

[data-theme="dark"] .help-article h1,
[data-theme="dark"] .help-article h2,
[data-theme="dark"] .help-article h3,
[data-theme="dark"] .help-article h4 {
    color: #f5f5f5;
}

[data-theme="dark"] .help-content-body h2,
[data-theme="dark"] .help-content-body h3 {
    color: #f5f5f5;
}

[data-theme="dark"] .help-article p,
[data-theme="dark"] .help-article li {
    color: #e0e0e0;
}

[data-theme="dark"] .help-content-body p,
[data-theme="dark"] .help-content-body ul,
[data-theme="dark"] .help-content-body ol,
[data-theme="dark"] .help-content-body li {
    color: #e0e0e0;
}

[data-theme="dark"] .help-article a {
    color: #a3d867;
}

[data-theme="dark"] .help-article a:hover {
    color: #b8e86c;
}

[data-theme="dark"] .help-content-body a {
    color: #a3d867;
}

[data-theme="dark"] .help-content-body a:hover {
    color: #b8e86c;
}

[data-theme="dark"] .help-article code,
[data-theme="dark"] .help-content-body code {
    background: rgba(255, 255, 255, 0.1);
    color: #f8a5c2;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .help-article pre,
[data-theme="dark"] .help-content-body pre {
    background: #1f1f1f;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .help-article pre code,
[data-theme="dark"] .help-content-body pre code {
    background: transparent;
    color: #e5e5e5;
    border: none;
}

[data-theme="dark"] .help-article blockquote,
[data-theme="dark"] .help-content-body blockquote {
    background: rgba(88, 155, 12, 0.15);
    border-left: 4px solid #789b45;
}

[data-theme="dark"] .help-content-body blockquote p {
    color: #e0e0e0;
}

[data-theme="dark"] .help-content-body blockquote a {
    color: #a3d867;
    text-decoration: underline;
}

[data-theme="dark"] .help-content-body .code-block {
    background: rgba(88, 155, 12, 0.12);
    border-left: 4px solid #789b45;
}

[data-theme="dark"] .help-content-body .code-block-lang {
    color: #a3d867;
}

[data-theme="dark"] .help-content-body .code-block-copy {
    color: #a3d867;
}

[data-theme="dark"] .help-content-body .code-block-copy-feedback {
    color: #a3d867;
}

[data-theme="dark"] .help-content-body strong,
[data-theme="dark"] .help-content-body b {
    color: #f0f0f0;
}

[data-theme="dark"] .help-content-body em,
[data-theme="dark"] .help-content-body i {
    color: #e0e0e0;
}

[data-theme="dark"] .help-content-body hr {
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .help-article table {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .help-article th {
    background: #252525;
    color: #e5e5e5;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .help-article td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
}

[data-theme="dark"] .help-article-footer p {
    color: #e5e5e5;
}

[data-theme="dark"] .help-breadcrumb {
    color: #888;
}

[data-theme="dark"] .help-breadcrumb a {
    color: #aaa;
}

[data-theme="dark"] .help-breadcrumb a:hover {
    color: #b8e86c;
}

[data-theme="dark"] .breadcrumbs {
    color: #888;
}

[data-theme="dark"] .breadcrumbs a {
    color: #999;
}

[data-theme="dark"] .breadcrumbs a:hover {
    color: #b8e86c;
}

[data-theme="dark"] .breadcrumbs .current {
    color: #b8e86c;
}

[data-theme="dark"] .breadcrumbs .separator {
    color: #555;
}

[data-theme="dark"] .help-article-header h1,
[data-theme="dark"] .help-category-header h1 {
    color: #f5f5f5;
}

[data-theme="dark"] .help-category-header p {
    color: #b0b0b0;
}

[data-theme="dark"] .help-page-wrapper::after {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Dark theme for header elements */
[data-theme="dark"] .logo-text,
[data-theme="dark"] .fluent-label {
    color: #e5e5e5 !important;
}

[data-theme="dark"] .logo-separator,
[data-theme="dark"] .logo-secondary-text {
    color: #e5e5e5 !important;
}

[data-theme="dark"] .header-link {
    color: #e5e5e5 !important;
}

[data-theme="dark"] .header-link:hover {
    color: #b8e86c !important;
}

[data-theme="dark"] .nav-links-container,
[data-theme="dark"] .nav-links-container.light {
    background: transparent;
    box-shadow: none;
}

[data-theme="dark"] .nav-links-container a:hover,
[data-theme="dark"] .nav-links-container.light a:hover {
    color: #b8e86c !important;
}

/* Dark theme for help footer */
[data-theme="dark"] .help-site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
}

[data-theme="dark"] .help-site-footer .help-footer-inner,
[data-theme="dark"] .help-site-footer .help-footer-right {
    color: #888;
}

[data-theme="dark"] .help-site-footer a {
    color: #999;
}

[data-theme="dark"] .help-site-footer a:hover {
    color: #b8e86c;
}

/* Smooth theme transition */
html {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.fixed-header,
.help-header-search-input,
.help-search-results,
.help-search-item,
.help-card,
.help-hero-section blockquote {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
