/* === Asset index landing page === */

#asset-categories { max-width: 1200px; margin: 1.5rem auto; padding: 0 1rem; }

.asset-category { margin-bottom: 2rem; }

.asset-category-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fg-muted, #6b7280);
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.asset-category-count {
    background: #e5e7eb;
    color: #4b5563;
    padding: 0.1rem 0.45rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.asset-card {
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-left: 3px solid var(--cat-color, var(--border, #e5e7eb));
    border-radius: 8px;
    padding: 0.9rem;
    min-height: 140px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.08s ease, box-shadow 0.08s ease, border-color 0.08s ease;
}
.asset-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.07);
    border-color: #c7c9cc;
}

.asset-card-cat {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 0.3rem;
}
.asset-card-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 0.3rem;
}
.asset-card-value {
    font-size: 1.7rem;
    font-weight: 700;
    color: #111;
    line-height: 1;
}
.asset-card-unit {
    font-size: 0.8rem;
    font-weight: 400;
    color: #6b7280;
    margin-left: 0.2rem;
}
.asset-card-delta {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.45rem;
}
.asset-card-delta.up { color: #c0392b; }
.asset-card-delta.down { color: #1e8449; }
.asset-card-delta.zero { color: #6b7280; font-weight: 400; }

.asset-sparkline {
    display: block;
    width: 100%;
    height: 30px;
    margin: 0.5rem 0 0.35rem;
}

.asset-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.25rem;
}
.asset-chip {
    font-size: 0.68rem;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: #f9fafb;
    color: #6b7280;
    font-weight: 500;
}
.asset-chip.up { color: #c0392b; background: #fef2f2; }
.asset-chip.down { color: #1e8449; background: #f0fdf4; }
.asset-chip.zero { color: #6b7280; }
.asset-chip.muted { color: #9ca3af; }

/* card grows to fit chips */
.asset-card { min-height: 200px; }

.asset-news-badge {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.05rem 0.3rem;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    vertical-align: middle;
}
.asset-news-badge.up { color: #c0392b; background: #fef2f2; }
.asset-news-badge.down { color: #1e8449; background: #f0fdf4; }

/* === Density pass: landing hero headline === */
.hero-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.75rem; margin-top: 0.5rem; }
.hero-headline { font-size: 0.95rem; color: #111; font-weight: 500; }
.hero-headline:empty { display: none; }
