/* Question list pages (built by build_questions.py). Tokens come from styles.css. */

.q-header {
    padding: 140px 1rem 56px;
    text-align: center;
    background: white;
    position: relative;
}

.q-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-rose), transparent);
}

.q-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 400;
    color: var(--color-deep);
    line-height: 1.15;
    max-width: 820px;
    margin: 0 auto 1rem;
}

.q-header p {
    max-width: 640px;
    margin: 0 auto 1.75rem;
    color: var(--color-text-soft);
    font-size: 1.1rem;
}

.q-count {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 0.9rem;
    border-radius: 60px;
    background: var(--color-blush);
    color: var(--color-wine);
    font-size: 0.85rem;
    font-weight: 600;
}

.q-main {
    padding: 3rem 1rem 4rem;
    background: var(--color-cream);
}

.q-wrap {
    max-width: 820px;
    margin: 0 auto;
}

.q-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.q-toc a {
    padding: 0.45rem 1rem;
    border-radius: 60px;
    background: white;
    border: 1px solid rgba(139, 74, 94, 0.15);
    color: var(--color-wine);
    text-decoration: none;
    font-size: 0.9rem;
}

.q-toc a:hover {
    background: var(--color-blush);
}

.q-section {
    margin-bottom: 3rem;
}

.q-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 400;
    color: var(--color-deep);
    margin-bottom: 1.25rem;
}

.q-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 0.75rem;
    counter-reset: q;
}

.q-list li {
    counter-increment: q;
    display: flex;
    gap: 0.85rem;
    align-items: baseline;
    padding: 1rem 1.15rem;
    background: white;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(139, 74, 94, 0.06);
    font-size: 1.05rem;
    color: var(--color-text);
}

.q-list li::before {
    content: counter(q);
    flex: none;
    min-width: 1.6rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--color-coral);
}

.q-cta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin: 0 0 3rem;
    padding: 1.5rem;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--color-deep) 0%, var(--color-wine) 60%, var(--color-coral) 100%);
    color: white;
}

.q-cta img {
    width: 64px;
    height: 64px;
    border-radius: 15px;
    flex: none;
}

.q-cta h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
}

.q-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.q-cta .btn {
    margin-left: auto;
    flex: none;
    background: white;
    color: var(--color-wine);
    padding: 0.8rem 1.4rem;
}

.q-tips {
    margin-bottom: 3rem;
    padding: 1.5rem 1.75rem;
    background: white;
    border-radius: 24px;
}

.q-tips h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--color-deep);
    margin-bottom: 0.75rem;
}

.q-tips li {
    margin: 0 0 0.5rem 1.2rem;
    color: var(--color-text);
}

.q-related h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--color-deep);
    margin-bottom: 1rem;
}

.q-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 0.75rem;
}

.q-related-grid a {
    display: block;
    padding: 1rem 1.15rem;
    border-radius: 18px;
    background: white;
    border: 1px solid rgba(139, 74, 94, 0.12);
    color: var(--color-wine);
    text-decoration: none;
    font-weight: 500;
}

.q-related-grid a span {
    display: block;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--color-text-soft);
}

.q-related-grid a:hover {
    background: var(--color-blush);
}

@media (max-width: 640px) {
    .q-cta {
        flex-direction: column;
        text-align: center;
    }

    .q-cta .btn {
        margin-left: 0;
    }
}
