.primary-nav a[aria-current="page"] {
    color: var(--ink);
}

.help-eyebrow,
.help-section-heading p,
.help-topic-label {
    color: #6d6d72;
    font-family: "DM Mono", ui-monospace, monospace;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.help-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.58fr);
    gap: clamp(3rem, 9vw, 10rem);
    align-items: end;
    padding: clamp(4rem, 7vw, 7rem) var(--side);
}

.help-eyebrow {
    margin: 0 0 1.25rem;
}

.help-intro h1 {
    margin: 0;
    font-size: clamp(4rem, 7vw, 7.5rem);
    font-weight: 650;
    letter-spacing: -0.07em;
    line-height: 0.9;
}

.help-intro-copy {
    padding-bottom: 0.35rem;
}

.help-intro-copy p {
    max-width: 34rem;
    margin: 0;
    color: #929196;
    font-size: clamp(1.05rem, 1.4vw, 1.35rem);
    font-weight: 450;
    line-height: 1.55;
}

.help-intro-copy a {
    display: inline-flex;
    gap: 0.55rem;
    margin-top: 1.75rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid #4b4b50;
    color: #c1c0bd;
    text-decoration: none;
    transition: border-color 180ms ease, color 180ms ease;
}

.help-intro-copy a:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.help-products {
    padding: 0 var(--side) clamp(4rem, 6vw, 6rem);
}

.help-section-heading {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    margin-bottom: 1.4rem;
}

.help-section-heading p,
.help-section-heading h2 {
    margin: 0;
}

.help-section-heading h2 {
    color: #a1a0a4;
    font-size: 1rem;
    font-weight: 500;
}

.help-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.help-products-note {
    max-width: 46rem;
    margin: 1.35rem 0 0;
    color: #77767b;
    font-size: 0.9rem;
    line-height: 1.55;
}

.help-products-note a {
    color: #b9b8b5;
}

.help-products-note a:hover,
.help-products-note a:focus-visible {
    color: var(--ink);
}

.help-product {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    min-width: 0;
    padding: clamp(1rem, 1.5vw, 1.4rem);
    border: 1px solid #252528;
    border-radius: 0.9rem;
    color: #aaa9ad;
    background: #101012;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.help-product:hover,
.help-product:focus-visible {
    border-color: #414146;
    color: var(--ink);
    transform: translateY(-2px);
}

.help-product.active {
    border-color: #55555b;
    color: var(--ink);
    background: #171719;
}

.help-product img {
    width: clamp(2.5rem, 3.4vw, 3.25rem);
    height: clamp(2.5rem, 3.4vw, 3.25rem);
    border-radius: 0.72rem;
}

.help-product > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 0.18rem;
}

.help-product strong {
    overflow: hidden;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.help-product small {
    overflow: hidden;
    color: #69696e;
    font-size: clamp(0.75rem, 0.9vw, 0.86rem);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.help-product > span:last-child {
    color: #55555a;
    transition: color 180ms ease, transform 180ms ease;
}

.help-product:hover > span:last-child,
.help-product.active > span:last-child {
    color: #b4b3b0;
    transform: translateX(0.18rem);
}

.help-workspace {
    display: grid;
    grid-template-columns: minmax(12rem, 0.25fr) minmax(0, 1fr);
    gap: clamp(3rem, 8vw, 9rem);
    min-height: 44rem;
    padding: clamp(4rem, 7vw, 7rem) var(--side);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.help-topics {
    position: sticky;
    top: 2rem;
    align-self: start;
}

.help-topic-label {
    margin: 0 0 1.6rem;
}

.help-topic-group {
    display: grid;
    justify-items: start;
    gap: 0.25rem;
}

.help-topic-group[hidden] {
    display: none;
}

.help-topic-group strong {
    margin-bottom: 0.75rem;
    color: #d4d3cf;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.035em;
}

.help-topic-group button,
.help-topic-group a {
    position: relative;
    padding: 0.34rem 0;
    border: 0;
    color: #717176;
    background: none;
    font: inherit;
    font-size: 0.94rem;
    line-height: 1.4;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: color 180ms ease, transform 180ms ease;
}

.help-topic-group a::after {
    margin-left: 0.3rem;
    content: "↗";
}

.help-topic-group button:hover,
.help-topic-group button.active,
.help-topic-group a:hover {
    color: var(--ink);
}

.help-topic-group button.active {
    transform: translateX(0.85rem);
}

.help-topic-group button.active::before {
    position: absolute;
    top: 0.9rem;
    left: -0.85rem;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: #e9e8e4;
    content: "";
}

.help-contact-card {
    max-width: 14rem;
    margin-top: 3.5rem;
    padding: 1.25rem;
    border-radius: 0.8rem;
    background: #121214;
}

.help-contact-card span {
    color: #aaa9ad;
    font-size: 0.9rem;
    font-weight: 600;
}

.help-contact-card p {
    margin: 0.5rem 0 1rem;
    color: #68686d;
    font-size: 0.85rem;
    line-height: 1.5;
}

.help-contact-card a {
    color: #aaa9ad;
    font-size: 0.85rem;
    text-decoration: none;
}

.help-contact-card a:hover {
    color: var(--ink);
}

.help-content {
    width: min(100%, 54rem);
    min-width: 0;
}

.help-panel {
    display: none;
}

.help-panel.active {
    display: block;
    animation: help-panel-in 220ms ease both;
}

@keyframes help-panel-in {
    from {
        opacity: 0;
        transform: translateY(0.4rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.help-panel h1 {
    margin: 0;
    font-size: clamp(2.8rem, 4.8vw, 5.2rem);
    font-weight: 650;
    letter-spacing: -0.06em;
    line-height: 0.95;
}

.help-panel .help-subtitle {
    max-width: 42rem;
    margin: 1.35rem 0 clamp(3.25rem, 6vw, 5.5rem);
    color: #98979b;
    font-size: clamp(1.08rem, 1.45vw, 1.35rem);
    font-weight: 450;
    line-height: 1.55;
}

.help-panel h2 {
    margin: clamp(2.75rem, 5vw, 4.5rem) 0 1rem;
    color: #dcdbd7;
    font-size: clamp(1.35rem, 1.75vw, 1.7rem);
    font-weight: 600;
    letter-spacing: -0.035em;
}

.help-panel h3 {
    margin: 2.25rem 0 0.7rem;
    color: #c5c4c0;
    font-size: 1.08rem;
    font-weight: 600;
}

.help-panel p,
.help-panel li {
    color: #7c7c81;
    font-size: clamp(0.98rem, 1.12vw, 1.08rem);
    line-height: 1.7;
}

.help-panel p {
    margin: 0 0 1rem;
}

.help-panel ul,
.help-panel ol {
    margin: 0.75rem 0 1.25rem;
    padding-left: 1.35rem;
}

.help-panel li {
    padding-left: 0.25rem;
}

.help-panel li + li {
    margin-top: 0.55rem;
}

.help-panel a {
    color: #c1c0bd;
    text-decoration-color: #55555a;
    text-underline-offset: 0.2em;
    transition: color 180ms ease, text-decoration-color 180ms ease;
}

.help-panel a:hover {
    color: var(--ink);
    text-decoration-color: var(--ink);
}

.help-note {
    max-width: 46rem;
    margin: 2rem 0;
    padding: 1.4rem 1.5rem;
    border-radius: 0.6rem;
    color: #929196;
    background: #141416;
    font-size: 0.98rem;
    line-height: 1.65;
}

.help-panel code {
    padding: 0.12rem 0.35rem;
    border: 1px solid #2c2c30;
    border-radius: 0.25rem;
    color: #b8b7b4;
    background: #111113;
    font-family: "DM Mono", ui-monospace, monospace;
    font-size: 0.82em;
}

@media (max-width: 1050px) {
    .help-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .help-intro {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-block: 4rem;
    }

    .help-intro h1 {
        font-size: clamp(3.8rem, 16vw, 6rem);
    }

    .help-products {
        padding-bottom: 4rem;
    }

    .help-workspace {
        grid-template-columns: 1fr;
        gap: 3.75rem;
        min-height: 0;
        padding-block: 4rem 5rem;
    }

    .help-topics {
        position: static;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(10rem, 0.65fr);
        gap: 1.5rem;
        padding: 1.25rem;
        border-radius: 0.8rem;
        background: #121214;
    }

    .help-topic-label {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }

    .help-contact-card {
        margin-top: 0;
        padding: 0;
        background: transparent;
    }

    .help-content {
        width: 100%;
    }

    .help-panel h1 {
        font-size: clamp(2.7rem, 12vw, 4.2rem);
    }
}

@media (max-width: 560px) {
    .help-product-grid {
        grid-template-columns: 1fr;
    }

    .help-product {
        padding: 1rem;
    }

    .help-topics {
        grid-template-columns: 1fr;
    }

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

@media (prefers-reduced-motion: reduce) {
    .help-panel.active {
        animation: none;
    }

    .help-product {
        transition: none;
    }
}
