/* /inspiration og /inspiration/{fond}: hedgefondes 13F-beholdninger. */

.insp-page {
    max-width: 1180px;
    margin: 0 auto;
}

.insp-header {
    margin-bottom: 1.25rem;
}

.insp-title {
    color: var(--text-primary);
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -0.5px;
    margin: 0 0 0.4rem;
}

.insp-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 52rem;
    margin: 0;
}

.insp-hero {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 630;
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.25rem;
}

.insp-breadcrumb {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.insp-breadcrumb a {
    color: var(--text-secondary);
}

.insp-breadcrumb span {
    margin: 0 0.3rem;
}

.insp-note {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 3px solid #4d9aff;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    padding: 0.85rem 1.1rem;
    margin-bottom: 1.5rem;
}

.insp-note strong {
    color: var(--text-primary);
}

.insp-empty {
    color: var(--text-secondary);
    padding: 2rem 0;
}

.insp-section {
    margin-bottom: 2rem;
    min-width: 0;
}

.insp-section-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.insp-section-lead {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0 0 0.75rem;
}

.insp-small {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0 0 1.5rem;
}

.insp-muted {
    color: var(--text-secondary);
}

/* Fondskort på oversigten */

.insp-fund-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.insp-fund-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem 1.4rem;
    min-width: 0;
}

.insp-fund-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

.insp-fund-name a {
    color: var(--text-primary);
    text-decoration: none;
}

.insp-fund-name a:hover {
    text-decoration: underline;
}

.insp-fund-manager {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0.1rem 0 0;
}

.insp-fund-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin: 0.65rem 0 0.5rem;
}

.insp-fund-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}

.insp-count {
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.1rem 0.55rem;
    background: var(--bg-primary, transparent);
    border: 1px solid var(--border-color);
}

.insp-count--new { color: #4d9aff; }
.insp-count--up { color: #16c784; }
.insp-count--down { color: #f0a020; }
.insp-count--out { color: #ea3943; }

.insp-mini-title {
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0.75rem 0 0.3rem;
}

.insp-mini-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.insp-mini-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.28rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
    min-width: 0;
}

.insp-mini-list li:last-child {
    border-bottom: none;
}

.insp-fund-more {
    margin-top: auto;
    padding-top: 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Nøgletal på fondssiden */

.insp-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.insp-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.2rem;
}

.insp-stat-value {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.1;
}

.insp-stat-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.insp-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

/* Tabeller */

.insp-table-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow-x: auto;
}

.insp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.insp-table th {
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: left;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.insp-table td {
    color: var(--text-primary);
    padding: 0.5rem 0.8rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.insp-table tbody tr:last-child td {
    border-bottom: none;
}

.insp-table .insp-num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Aktienavn, ticker og Quant Score */

.insp-stock {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    min-width: 0;
    flex-wrap: wrap;
}

.insp-stock-link {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dotted var(--text-secondary);
}

.insp-stock-link:hover {
    color: #4d9aff;
}

.insp-stock-name {
    color: var(--text-primary);
}

.insp-ticker {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.insp-qs {
    color: #4d9aff;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid currentColor;
    border-radius: 4px;
    padding: 0 0.3rem;
    white-space: nowrap;
}

.insp-alt-link {
    color: #4d9aff;
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px dashed currentColor;
    border-radius: 4px;
    padding: 0 0.3rem;
    white-space: nowrap;
    text-decoration: none;
}

.insp-alt-link:hover {
    text-decoration: underline;
}

/* Ændringsmærker */

.insp-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    white-space: nowrap;
}

.insp-badge--new { color: #4d9aff; background: rgba(77, 154, 255, 0.12); }
.insp-badge--up { color: #16c784; background: rgba(22, 199, 132, 0.12); }
.insp-badge--down { color: #f0a020; background: rgba(240, 160, 32, 0.12); }
.insp-badge--out { color: #ea3943; background: rgba(234, 57, 67, 0.12); }
.insp-badge--flat { color: var(--text-secondary); }

/* Fondschips på tværs af fonde */

.insp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.insp-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.15rem 0.3rem 0.15rem 0.65rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

.insp-chip a {
    color: var(--text-primary);
    text-decoration: none;
}

.insp-chip a:hover {
    text-decoration: underline;
}

.insp-chip-weight {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* Landingssiden og ETF-siderne */

.insp-landing-lead {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0.5rem 0 0.75rem;
}

.insp-nowrap {
    white-space: nowrap;
    font-size: 0.82rem;
}

.insp-sub-title {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.insp-bars {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.1rem;
}

.insp-bar-row {
    display: grid;
    grid-template-columns: minmax(6rem, 9rem) minmax(0, 1fr) 4.2rem;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
}

.insp-bar-label {
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.insp-bar-track {
    height: 0.55rem;
    background: var(--border-color);
    border-radius: 999px;
    overflow: hidden;
}

.insp-bar-fill {
    display: block;
    height: 100%;
    background: #4d9aff;
    border-radius: 999px;
}

.insp-bar-value {
    color: var(--text-secondary);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Kilder nederst på fonds- og ETF-siderne */

.insp-sources {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.insp-sources-title {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.insp-sources-list {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.6;
    margin: 0;
    padding-left: 1.1rem;
}

.insp-sources-list strong {
    color: var(--text-primary);
}

.insp-sources-list a {
    overflow-wrap: anywhere;
}

@media (max-width: 992px) {
    .insp-fund-grid,
    .insp-two-col {
        grid-template-columns: minmax(0, 1fr);
    }

    .insp-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .insp-title {
        font-size: 1.6rem;
    }

    .insp-hide-sm {
        display: none;
    }

    .insp-table th,
    .insp-table td {
        padding: 0.45rem 0.55rem;
    }
}
