/* ════════════════════════════════════════════════════════════
   FLUXUATE HELP — shared styles for all /help pages
   ════════════════════════════════════════════════════════════ */

.help-shell {
    max-width: 740px;
    margin: 0 auto;
    padding: 1.5rem 1rem 4rem;
    font-family: system-ui, sans-serif;
    color: #1f2937;
    line-height: 1.65;
    background-image: url('/watermark.svg?v=2');
    background-size: cover;
    background-position: center;
}

/* ── Nav bar ── */
.help-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.help-back {
    color: #6d28d9;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}
.help-back:hover { text-decoration: underline; }

.help-switch {
    margin-left: auto;
    font-size: 0.82rem;
    color: #6b7280;
}
.help-switch a { color: #6d28d9; }

/* ── Title block ── */
.help-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 0.3rem;
    line-height: 1.2;
}
.help-subtitle {
    color: #6b7280;
    font-size: 1rem;
    margin: 0 0 2rem;
}

/* ── Section headings ── */
.help-shell h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 2.5rem 0 0.6rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid #ede9fe;
}

.help-shell h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #374151;
    margin: 1.5rem 0 0.4rem;
}

.help-shell p { margin: 0 0 0.85rem; }

/* ── Key rule callout ── */
.rule-box {
    background: #f5f3ff;
    border-left: 4px solid #7c3aed;
    border-radius: 0 8px 8px 0;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    font-size: 0.95rem;
}
.rule-box strong { color: #5b21b6; }

/* ── Tip box ── */
.tip-box {
    background: #ecfdf5;
    border-left: 4px solid #059669;
    border-radius: 0 8px 8px 0;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    font-size: 0.95rem;
}

/* ── Warning box ── */
.warn-box {
    background: #fff7ed;
    border-left: 4px solid #d97706;
    border-radius: 0 8px 8px 0;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    font-size: 0.95rem;
}

/* ── Permanent trump card display ── */
.trump-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.25rem 0;
    align-items: flex-start;
}

.trump-card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.trump-card-item .trump-card-canvas {
    border-radius: 7px;
    display: block;
}

.trump-card-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
}

.trump-card-desc {
    font-size: 0.73rem;
    color: #6b7280;
    text-align: center;
    line-height: 1.3;
}

/* ── Joker card ── */
.joker-svg {
    display: block;
    border-radius: 7px;
    overflow: hidden;
    width: 87px;
    height: 126px;
}
.joker-svg svg {
    display: block;
    width: 87px;
    height: 126px;
}

/* ── Suit chips ── */
.suit-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.5rem 0;
}
.suit-chip {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
}
.suit-chip.clubs    { background: #f3f4f6; color: #111; }
.suit-chip.diamonds { background: #fef2f2; color: #dc2626; }
.suit-chip.hearts   { background: #fef2f2; color: #dc2626; }
.suit-chip.spades   { background: #f3f4f6; color: #111; }

/* ── Scoring table ── */
.help-table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
    font-size: 0.92rem;
}
.help-table th {
    background: #ede9fe;
    color: #5b21b6;
    padding: 0.5rem 1rem;
    text-align: left;
    font-weight: 700;
}
.help-table td {
    padding: 0.45rem 1rem;
    border-bottom: 1px solid #f3f4f6;
}
.help-table tr:nth-child(even) td { background: #fafafa; }

/* ── Step list ── */
.step-list {
    counter-reset: steps;
    list-style: none;
    padding-left: 2.5rem;
    margin: 0.75rem 0;
}
.step-list li {
    counter-increment: steps;
    position: relative;
    margin-bottom: 0.85rem;
    line-height: 1.6;
}
.step-list li::before {
    content: counter(steps);
    background: #7c3aed;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: -2.5rem;
    top: 0.05rem;
}

/* ── TOC ── */
.help-toc {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}
.help-toc h4 {
    margin: 0 0 0.6rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
}
.help-toc ol {
    margin: 0;
    padding-left: 1.2rem;
}
.help-toc li { margin-bottom: 0.25rem; }
.help-toc a { color: #6d28d9; text-decoration: none; }
.help-toc a:hover { text-decoration: underline; }

/* ── Help home landing ── */
.help-home-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
}
@media (max-width: 520px) {
    .help-home-cards { grid-template-columns: 1fr; }
}
.help-choice-card {
    display: block;
    background: #f5f3ff;
    border: 2px solid #ddd6fe;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.help-choice-card:hover {
    border-color: #7c3aed;
    box-shadow: 0 4px 16px rgba(124,58,237,0.15);
}
.help-choice-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: #5b21b6;
    border: none;
    padding: 0;
}
.help-choice-card p {
    margin: 0;
    font-size: 0.88rem;
    color: #4b5563;
}
.help-choice-icon {
    font-size: 2rem;
    margin-bottom: 0.6rem;
    display: block;
}

/* ── Back-to-top link ───────────────────────────────────────────── */
.back-to-top {
    display: block;
    text-align: right;
    color: #6d28d9;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.4rem 0;
    margin-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    opacity: 0.7;
}
.back-to-top:hover { opacity: 1; text-decoration: underline; }
