/* Help hub — matches blog-hub editorial layout */

body.page-help-hub {
    background: #050508;
}

.help-hub-shell {
    background: #050508;
    color: rgba(255, 255, 255, 0.92);
}

body.help-web-subnav-on .help-hub-shell {
    border-top: none;
}

.help-hub {
    width: 100%;
    max-width: min(var(--home-v2-max, 1200px), 100%);
    margin: 0 auto;
    padding: clamp(1.75rem, 4vw, 2.75rem) 20px clamp(3rem, 7vw, 4.5rem);
    box-sizing: border-box;
}

.help-hub-header {
    margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.help-web-subnav-on .help-hub-header {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: clamp(1rem, 2.5vw, 1.35rem);
}

.help-hub-title {
    margin: 0 0 0.45rem;
    font-family: inherit;
    font-size: clamp(2rem, 5.2vw, 3.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: #fff;
}

.help-hub-title--sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.help-hub-lead {
    margin: 0;
    max-width: 40rem;
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.62);
}

.help-hub-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
}

body.help-web-subnav-on .help-hub-topics {
    display: none;
}

.help-hub-topic {
    display: inline-flex;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.help-hub-topic:hover,
.help-hub-topic.is-active {
    background: rgba(212, 59, 149, 0.22);
    border-color: rgba(212, 59, 149, 0.55);
    color: #fff;
}

.help-hub-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.85fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: start;
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

@media (max-width: 860px) {
    .help-hub-featured {
        grid-template-columns: 1fr;
    }
}

.help-hub-lead-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(1rem, 2.5vw, 1.5rem);
    align-items: start;
    padding: 0;
    border: none;
    background: none;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.help-hub-lead-card:hover .help-hub-lead-title {
    color: #efa540;
}

@media (max-width: 700px) {
    .help-hub-lead-card {
        grid-template-columns: 1fr;
    }
}

.help-hub-lead-media {
    margin: 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.help-hub-lead-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #111114;
}

.help-hub-lead-copy h2,
.help-hub-lead-title {
    margin: 0.35rem 0 0.5rem;
    font-size: clamp(1.35rem, 2.8vw, 1.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #fff;
    transition: color 0.15s ease;
}

.help-hub-lead-dek {
    margin: 0 0 0.65rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.98rem;
    line-height: 1.55;
}

.help-hub-side-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.help-hub-side-link {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease;
}

.help-hub-side-link:hover {
    border-color: rgba(212, 59, 149, 0.35);
}

.help-hub-side-title {
    margin: 0.2rem 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.35;
}

.help-hub-index-title {
    margin: 0 0 clamp(1rem, 2.5vw, 1.35rem);
    font-family: inherit;
    font-size: clamp(1.6rem, 3.8vw, 2.45rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.12;
    color: #fff;
}

.help-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.help-hub-card {
    display: flex;
    flex-direction: column;
    padding: 1.15rem 1.2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
    min-height: 100%;
}

.help-hub-card:hover {
    border-color: rgba(212, 59, 149, 0.35);
    background: rgba(255, 255, 255, 0.05);
}

.help-hub-card h3 {
    margin: 0.4rem 0 0.45rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.help-hub-card p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.68);
    flex: 1;
}

.help-hub-card-meta {
    margin-top: 0.65rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}

.help-topic-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.help-topic-badge--forecasts { background: rgba(56, 189, 248, 0.18); color: #7dd3fc; }
.help-topic-badge--sessions { background: rgba(212, 59, 149, 0.2); color: #f0abfc; }
.help-topic-badge--account { background: rgba(251, 191, 36, 0.15); color: #fcd34d; }
.help-topic-badge--common-questions { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }

.help-type-badge {
    margin-left: 0.35rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.help-hub-empty {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
}

body.page-help-hub .general-footer {
    background: #050508;
}
