/* ───────────────────────────────────────────────────────────────────────
   /ask/ — BeyondPayroll Q&A
   Anchors on the existing styles.css palette + animated bg.
   ─────────────────────────────────────────────────────────────────────── */

.ask-hero {
    padding: 110px 0 36px;
    position: relative;
}
.ask-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'IBM Plex Mono', 'Space Grotesk', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(168, 85, 247, 0.06);
    border: 1px solid rgba(168, 85, 247, 0.22);
    padding: 7px 14px;
    border-radius: 99px;
    margin-bottom: 22px;
}
.ask-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #22d3ee);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
}
.ask-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 18px;
}
.ask-grad {
    background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 50%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ask-sub {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 720px;
    margin-bottom: 0;
}

/* ─── Tag strip ─── */
.ask-tagstrip {
    padding: 16px 0 24px;
    border-bottom: 1px solid var(--border-subtle);
}
.ask-tagrow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.ask-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 99px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 150ms;
}
.ask-tag:hover { color: var(--text); border-color: rgba(34, 211, 238, 0.35); }
.ask-tag.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(34, 211, 238, 0.15));
    border-color: rgba(168, 85, 247, 0.45);
    color: var(--text);
}
.ask-tag-count {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    color: var(--text-subtle);
    margin-left: 4px;
    padding: 1px 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 99px;
}
.ask-tag-loading {
    font-size: 12px;
    color: var(--text-subtle);
    padding: 7px 0;
}

.ask-sortrow {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}
.ask-sort-lbl {
    color: var(--text-subtle);
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-right: 6px;
}
.ask-sort {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 12px;
    cursor: pointer;
    transition: all 120ms;
}
.ask-sort:hover { color: var(--text); }
.ask-sort.active {
    color: #22d3ee;
    background: rgba(34, 211, 238, 0.08);
    border-color: rgba(34, 211, 238, 0.25);
}

/* ─── Main feed ─── */
.ask-main {
    padding: 32px 0 80px;
    min-height: 50vh;
}
.ask-skeleton {
    color: var(--text-subtle);
    text-align: center;
    padding: 60px 20px;
    font-size: 14px;
}
.ask-q-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ask-q-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    transition: border-color 200ms, transform 200ms;
    cursor: pointer;
}
.ask-q-card:hover {
    border-color: rgba(34, 211, 238, 0.35);
    transform: translateY(-1px);
}
.ask-q-card.pinned {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.04), rgba(34, 211, 238, 0.03));
    border-color: rgba(168, 85, 247, 0.28);
}
.ask-q-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.ask-q-meta .ask-pinned-badge {
    color: #a855f7;
    font-weight: 700;
}
.ask-q-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 8px;
}
.ask-q-excerpt {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ask-q-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 12px;
    color: var(--text-subtle);
}
.ask-q-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #22d3ee;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.22);
    padding: 2px 8px;
    border-radius: 99px;
}
.ask-q-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ─── Empty state ─── */
.ask-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}
.ask-empty-icon {
    font-size: 48px;
    margin-bottom: 14px;
    opacity: 0.6;
}
.ask-empty-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    color: var(--text);
    margin-bottom: 8px;
}
.ask-empty-sub { font-size: 14px; line-height: 1.6; max-width: 480px; margin: 0 auto 20px; }

/* ─── Single-question view ─── */
.ask-q-detail {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 28px;
}
.ask-q-detail-back {
    color: var(--text-subtle);
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 14px;
    display: inline-block;
}
.ask-q-detail-back:hover { color: #22d3ee; }
.ask-q-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.ask-q-detail-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 14px;
}
.ask-q-detail-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 24px;
}
.ask-q-detail-body, .ask-a-body {
    color: var(--text);
    font-size: 15.5px;
    line-height: 1.75;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.ask-q-detail-body strong, .ask-a-body strong { color: #22d3ee; }
.ask-q-detail-body code, .ask-a-body code {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
}
.ask-q-detail-body a, .ask-a-body a { color: #22d3ee; }

/* ─── Answers list ─── */
.ask-answers-header {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 28px 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}
.ask-answer {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 12px;
    display: flex;
    gap: 16px;
}
.ask-answer.accepted {
    border-color: rgba(16, 185, 129, 0.45);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.04), transparent);
}
.ask-vote-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 36px;
}
.ask-vote-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 32px; height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    transition: all 120ms;
}
.ask-vote-btn:hover { color: #22d3ee; border-color: rgba(34, 211, 238, 0.4); }
.ask-vote-btn.voted-up { color: #22d3ee; border-color: rgba(34, 211, 238, 0.5); background: rgba(34, 211, 238, 0.08); }
.ask-vote-btn.voted-down { color: #ef4444; border-color: rgba(239, 68, 68, 0.5); background: rgba(239, 68, 68, 0.06); }
.ask-vote-count {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
    color: var(--text);
    font-size: 14px;
}
.ask-answer-body { flex: 1; min-width: 0; }
.ask-answer-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.ask-answer-meta .accepted-pill {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: 700;
}

/* ─── Answer form ─── */
.ask-answer-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 28px;
}
.ask-answer-form h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    color: var(--text);
    margin-bottom: 6px;
}
.ask-answer-form p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 16px;
}

/* ─── Modal (Ask question) ─── */
.ask-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: none;
    padding: 20px;
}
.ask-modal.open { display: flex; align-items: center; justify-content: center; }
.ask-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 7, 10, 0.85);
    backdrop-filter: blur(4px);
}
.ask-modal-shell {
    position: relative;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    max-width: 720px;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.6);
}
.ask-modal-close {
    position: absolute;
    top: 14px; right: 14px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1;
    transition: all 150ms;
}
.ask-modal-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.ask-modal-inner { padding: 36px 36px 28px; }
.ask-modal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a855f7;
    margin-bottom: 14px;
}
.ask-modal-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 12px;
}
.ask-modal-header p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* ─── Form fields ─── */
.ask-form { display: flex; flex-direction: column; gap: 16px; }
.ask-fld { display: flex; flex-direction: column; gap: 6px; }
.ask-fld-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 600px) {
    .ask-fld-grid { grid-template-columns: 1fr; }
    .ask-modal-inner { padding: 28px 22px 20px; }
}
.ask-fld label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.ask-fld .req { color: #f59e0b; margin-left: 2px; }
.ask-fld .opt { color: var(--text-subtle); text-transform: none; letter-spacing: 0; font-size: 10px; }
.ask-fld input[type="text"],
.ask-fld input[type="email"],
.ask-fld textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.55;
    box-sizing: border-box;
    resize: vertical;
}
.ask-fld input:focus,
.ask-fld textarea:focus {
    outline: none;
    border-color: #22d3ee;
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.15);
}
.ask-fld textarea {
    font-family: 'Inter', sans-serif;
    min-height: 140px;
}

.ask-tagpicker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ask-tagpicker label {
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
}
.ask-tagpicker input[type="checkbox"] { display: none; }
.ask-tagpicker .ask-tagpick-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 99px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    transition: all 120ms;
}
.ask-tagpicker label:hover .ask-tagpick-chip { color: var(--text); border-color: rgba(34, 211, 238, 0.4); }
.ask-tagpicker input:checked + .ask-tagpick-chip {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(34, 211, 238, 0.15));
    border-color: rgba(168, 85, 247, 0.55);
    color: var(--text);
}

.ask-submit {
    margin-top: 6px;
    padding: 13px 28px;
    background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 50%, #22d3ee 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 120ms, box-shadow 120ms;
    align-self: flex-start;
}
.ask-submit:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(168, 85, 247, 0.35); }
.ask-submit:disabled { opacity: 0.6; cursor: wait; transform: none; box-shadow: none; }

.ask-foot-note {
    font-size: 11px;
    color: var(--text-subtle);
    line-height: 1.5;
    margin-top: 4px;
}
.ask-err {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: var(--radius);
    padding: 10px 14px;
    color: #fca5a5;
    font-size: 13px;
}

/* ─── Toast ─── */
.ask-toast {
    position: fixed;
    bottom: 24px; right: 24px;
    background: var(--bg-card);
    border: 1px solid rgba(34, 211, 238, 0.4);
    border-radius: var(--radius);
    padding: 12px 18px;
    color: var(--text);
    font-size: 13px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(120%);
    opacity: 0;
    transition: transform 280ms, opacity 280ms;
    z-index: 9100;
    max-width: 360px;
}
.ask-toast.show { transform: translateY(0); opacity: 1; }
.ask-toast.err { border-color: rgba(239, 68, 68, 0.5); color: #fca5a5; }
