.search-wrapper.wide {
    width: 100%;
    max-width: 560px;
    margin-bottom: 28px;
}

.search-wrapper.wide input {
    width: 100%;
    font-size: 15px;
    padding: 13px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* Result badges (reuses .suggestions from style.css, adds a type badge) */

.sugg-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--accent-dim);
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-full);
    padding: 2px 8px;
    flex-shrink: 0;
}

.suggestions li {
    justify-content: flex-start;
}

.suggestions li .sugg-symbol {
    min-width: 90px;
}

.suggestions li .sugg-name {
    flex: 1;
}

/* Snapshot */

.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 720px) {
    .snapshot-grid {
        grid-template-columns: 1fr;
    }
}

.snapshot-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.15s var(--ease), transform 0.15s var(--ease);
}

.snapshot-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.snapshot-hdr {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    margin-bottom: 16px;
}

.snapshot-name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
}

.snapshot-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.snapshot-ltp-block {
    text-align: right;
}

.snapshot-ltp {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.snapshot-change {
    font-size: 13px;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}

.snapshot-change.up {
    color: var(--success);
}

.snapshot-change.down {
    color: var(--danger);
}

.snapshot-chart-wrapper {
    width: 100%;
    height: 180px;
    position: relative;
}

.snapshot-chart-wrapper canvas {
    /* The JS sets the canvas width/height ATTRIBUTES to width*devicePixelRatio for
       crisp rendering on retina screens — without this, the browser displays the
       canvas at that raw buffer size instead of scaling it down to fit the card,
       which is what made the charts look "zoomed in". */
    display: block;
    width: 100%;
    height: 100%;
}

/* Live mode */

.period-chip-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: var(--radius-full);
    background: var(--danger);
    flex-shrink: 0;
    animation: live-pulse 1.6s ease-in-out infinite;
}

.period-chip.active .live-dot {
    background: var(--on-accent);
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.75); }
}

.snapshot-live-badge {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--danger);
}

.snapshot-live-badge.hidden {
    display: none;
}

/* Mutual fund comparison entry point (reuses .richie-teaser's card shape
   from dashboard.css) */

.mf-compare-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 24px;
    text-decoration: none;
    transition: box-shadow 0.15s var(--ease);
}

.mf-compare-cta:hover {
    box-shadow: var(--shadow-md);
}

.mf-compare-cta-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--surface);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mf-compare-cta-icon svg {
    width: 20px;
    height: 20px;
}

.mf-compare-cta-body {
    flex: 1;
    min-width: 0;
}

.mf-compare-cta-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.mf-compare-cta-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.mf-compare-cta-arrow {
    color: var(--accent);
    font-size: 20px;
    flex-shrink: 0;
}
