/* ============================================
   HELP PAGE — design system v2 2026-05-06
   ============================================ */

.help-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px;
    min-width: 0;
    container-type: inline-size;
}

/* ---- hero ---- */
.help-hero {
    background: #04342C;
    color: white;
    border-radius: var(--r-lg);
    padding: 22px 26px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    align-items: center;
}

.help-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.help-tag-pill {
    display: inline-flex;
    width: fit-content;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 3px 9px;
    background: rgba(159,225,203,0.2);
    color: #9FE1CB;
    border-radius: 999px;
}

.help-hero-title {
    font-size: 22px;
    font-weight: 500;
    margin: 0;
    color: white;
}

.help-hero-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    margin: 0;
    line-height: 1.5;
}

.help-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.help-btn-primary {
    padding: 8px 16px;
    background: white;
    color: #04342C;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity var(--t-fast);
}

.help-btn-primary:hover {
    opacity: 0.9;
}

.help-btn-ghost {
    padding: 8px 16px;
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: border-color var(--t-fast);
}

.help-btn-ghost:hover {
    border-color: rgba(255,255,255,0.65);
}

/* status card (right side of hero) */
.help-status-card {
    background: rgba(159,225,203,0.1);
    padding: 14px;
    border-radius: 10px;
    border-left: 2px solid #5DCAA5;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.help-status-tag {
    font-size: 10px;
    color: #9FE1CB;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.help-status-title {
    font-size: 13.5px;
    font-weight: 500;
    margin: 0;
    color: white;
}

.help-status-sub {
    font-size: 11.5px;
    color: rgba(255,255,255,0.65);
    margin: 0;
}

.help-status-hint {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    margin: 4px 0 0;
    line-height: 1.45;
}

/* ---- section wrapper ---- */
.help-section {
    margin-bottom: 24px;
}

.help-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.help-section-head-left {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-3);
}

.help-section-head-left h2 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin: 0;
}

.help-section-sub {
    font-size: 12px;
    color: var(--text-3);
    margin: 0 0 14px;
}

/* ---- topic grid ---- */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.topic-card {
    background: var(--surface);
    border: 0.5px solid var(--border-strong);
    border-radius: var(--r-lg);
    padding: 14px 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    min-width: 0;
}

.topic-card:hover {
    border-color: var(--text-3);
    box-shadow: var(--shadow-hover);
}

.topic-card--static {
    cursor: default;
}

.topic-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.topic-title {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
    margin: 0;
}

.topic-desc {
    font-size: 11.5px;
    color: var(--text-2);
    margin: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.topic-cta {
    font-size: 12px;
    color: var(--info-fg);
    margin-top: 4px;
    font-weight: 500;
}

/* ---- resource quick grid ---- */
.resource-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.resource-quick-card {
    background: var(--surface);
    border: 0.5px solid var(--border-strong);
    border-radius: var(--r-lg);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    min-width: 0;
}

.resource-quick-card:hover {
    border-color: var(--text-3);
    box-shadow: var(--shadow-hover);
}

.resource-quick-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.resource-quick-title {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
    margin: 0;
}

.resource-quick-desc {
    font-size: 11.5px;
    color: var(--text-2);
    margin: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resource-quick-cta {
    font-size: 12px;
    color: var(--info-fg);
    margin-top: auto;
    font-weight: 500;
}

/* ---- FAQ accordion ---- */
.faq-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 0.5px solid var(--border);
}

.faq-item:first-child {
    border-top: 0.5px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    text-align: left;
    transition: color var(--t-fast);
}

.faq-question:hover {
    color: var(--brand-hover);
}

.faq-chevron {
    flex-shrink: 0;
    color: var(--text-3);
    transition: transform var(--t-base) var(--ease);
}

.faq-item--open .faq-chevron {
    transform: rotate(90deg);
}

.faq-answer {
    font-size: 12.5px;
    color: var(--text-2);
    line-height: 1.6;
    padding: 0 0 14px;
}

/* ---- responsive ---- */
@media (max-width: 860px) {
    .help-hero {
        grid-template-columns: 1fr;
    }

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

    .topic-grid,
    .resource-quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .help-page {
        padding: 16px;
    }

    .help-hero {
        padding: 18px 20px;
    }

    .topic-grid,
    .resource-quick-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) {
    .help-page {
        padding: max(16px, var(--page-gutter-x, 24px));
    }
}
