/* Article Stock Context Box — CV-121 Phase 3
   Displayed inside article pages when topic has linked stocks via topic_stock_maps.
   Placement: after article body, before FAQs. */

.asc-box {
    margin-block: 1.5rem;
    border: 1px solid var(--border-color, #e2e8f0);
    border-inline-start: 3px solid var(--teal, #0d9488);
    border-radius: 8px;
    background: var(--surface-1, #f8fafc);
    padding: 1rem 1.25rem;
}

.asc-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ink, #1e293b);
    margin-block-end: 0.75rem;
}

.asc-icon {
    color: var(--teal, #0d9488);
    flex-shrink: 0;
}

.asc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.asc-item {
    display: contents;
}

.asc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--border-color, #e2e8f0);
    background: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    color: var(--ink, #1e293b);
    transition: border-color 0.15s, background 0.15s;
}

.asc-link:hover,
.asc-link:focus-visible {
    border-color: var(--teal, #0d9488);
    background: var(--teal-light, #f0fdfa);
    color: var(--teal-dark, #0f766e);
    outline: 2px solid var(--teal, #0d9488);
    outline-offset: 1px;
}

.asc-sym {
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.asc-name {
    color: var(--ink-soft, #64748b);
    font-size: 0.78rem;
    max-width: 12rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asc-mkt {
    font-size: 0.7rem;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: var(--surface-2, #f1f5f9);
    color: var(--ink-soft, #64748b);
    font-weight: 600;
}

.asc-badge {
    font-size: 0.68rem;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    background: var(--teal, #0d9488);
    color: #fff;
    font-weight: 700;
}

.asc-item--primary .asc-link {
    border-color: var(--teal, #0d9488);
    background: var(--teal-light, #f0fdfa);
}

/* Mobile: stack vertically on small screens */
@media (max-width: 480px) {
    .asc-list {
        flex-direction: column;
        gap: 0.4rem;
    }

    .asc-link {
        width: 100%;
    }

    .asc-name {
        max-width: none;
    }
}
