/* ================================================================
   Egon 100 — Art Market Intelligence Index
   Standalone microsite styling. Gallery aesthetic with
   Cormorant Garamond (headings) + Inter (body).
   ================================================================ */

:root {
    --e100-obsidian: #0f0f0f;
    --e100-charcoal: #1a1a1a;
    --e100-slate: #2c2c2c;
    --e100-graphite: #4a4a4a;
    --e100-silver: #8a8a8a;
    --e100-fog: #c9c9c9;
    --e100-ivory: #f5f3ef;
    --e100-white: #ffffff;
    --e100-amber: #d4af37;
    --e100-amber-dark: #b8941f;
    --e100-amber-light: #e6c654;
    --e100-sage: #6b7c5e;
    --e100-sage-light: #8a9d7c;
    --e100-border: rgba(0, 0, 0, 0.08);
    --e100-border-dark: rgba(255, 255, 255, 0.1);
    --e100-font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --e100-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --e100-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --e100-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    --e100-nav-height: 65px;
}

/* ── Reset & Base ──────────────────────────────────────────────── */
body {
    font-family: var(--e100-font-body);
    color: var(--e100-obsidian);
    background-color: var(--e100-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ── Navigation ────────────────────────────────────────────────── */
.egon-100-nav {
    background-color: var(--e100-obsidian);
    border-bottom: 1px solid var(--e100-border-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--e100-nav-height, 65px);
}

.egon-100-nav > .container {
    display: flex;
    align-items: center;
    height: 100%;
}

.egon-100-brand {
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.egon-100-brand .brand-name {
    font-family: var(--e100-font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--e100-white);
    letter-spacing: 0.02em;
}

.egon-100-brand .brand-index {
    font-family: var(--e100-font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--e100-amber);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.nav-link-egon {
    color: var(--e100-fog);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

.nav-link-egon:hover {
    color: var(--e100-white);
}

.btn-egon-cta {
    background-color: var(--e100-amber);
    color: var(--e100-obsidian);
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.1s;
    letter-spacing: 0.02em;
}

.btn-egon-cta:hover {
    background-color: var(--e100-amber-dark);
    color: var(--e100-obsidian);
    transform: translateY(-1px);
}

.btn-egon-cta.btn-lg {
    padding: 12px 32px;
    font-size: 0.95rem;
}

/* ── Hero (Index Page) ─────────────────────────────────────────── */
.egon-100-hero {
    background-color: var(--e100-obsidian);
    color: var(--e100-white);
    padding: 80px 0 60px;
    text-align: center;
}

.hero-title {
    font-family: var(--e100-font-heading);
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin-bottom: 16px;
    color: var(--e100-white);
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--e100-fog);
    line-height: 1.8;
    max-width: 640px;
    margin: 0 auto;
}

.hero-note {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--e100-silver);
    margin-top: 16px;
    letter-spacing: 0.02em;
}

/* ── Filter Tabs ───────────────────────────────────────────────── */
.filter-section {
    background-color: var(--e100-charcoal);
    border-bottom: 1px solid var(--e100-border-dark);
    padding: 14px 0 13px;
    position: sticky;
    top: var(--e100-nav-height, 65px);
    z-index: 90;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tab {
    background: none;
    border: 1px solid var(--e100-border-dark);
    border-radius: 100px;
    padding: 8px 20px;
    font-family: var(--e100-font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--e100-silver);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tab:hover {
    border-color: var(--e100-fog);
    color: var(--e100-fog);
}

.filter-tab.active {
    background-color: var(--e100-white);
    border-color: var(--e100-white);
    color: var(--e100-obsidian);
}

.filter-count {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-left: 4px;
}

/* ── Artist Cards — Gallery Wall ───────────────────────────────── */
.artist-grid-section {
    padding: 40px 0 60px;
    background-color: var(--e100-obsidian);
}

.artist-card {
    display: block;
    position: relative;
    text-decoration: none;
    color: var(--e100-white);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: var(--e100-charcoal);
    height: 100%;
}

.artist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    color: var(--e100-white);
    text-decoration: none;
}

/* Image container — aspect ratio via padding-top */
.artist-card-image {
    position: relative;
    width: 100%;
    padding-top: 110%; /* slightly portrait */
    overflow: hidden;
    background-color: var(--e100-slate);
}

.artist-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.artist-card:hover .artist-card-image img {
    transform: scale(1.04);
}

/* Placeholder when no image available */
.artist-card-image--placeholder {
    background: linear-gradient(135deg, var(--e100-slate) 0%, var(--e100-charcoal) 100%);
}

/* Dark gradient overlay for text readability */
.artist-card-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(
        to top,
        rgba(15, 15, 15, 0.95) 0%,
        rgba(15, 15, 15, 0.7) 40%,
        rgba(15, 15, 15, 0) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Rank badge — floating top-left glass pill */
.artist-card-rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--e100-font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--e100-amber);
    background-color: rgba(15, 15, 15, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 3px;
    letter-spacing: 0.02em;
}

/* Rank movement delta badges */
.rank-delta {
    font-family: var(--e100-font-body);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 2px;
    letter-spacing: 0;
    line-height: 1.3;
}

.rank-up {
    color: #4ade80;
    background-color: rgba(74, 222, 128, 0.15);
}

.rank-down {
    color: #f87171;
    background-color: rgba(248, 113, 113, 0.15);
}

.rank-new {
    color: var(--e100-amber);
    background-color: rgba(212, 175, 55, 0.15);
    font-size: 0.55rem;
    letter-spacing: 0.06em;
}

/* Info overlay — bottom of card, over the gradient */
.artist-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 16px;
}

.artist-card-name {
    font-family: var(--e100-font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 6px 0 0;
    line-height: 1.25;
    color: var(--e100-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.artist-card-meta {
    font-size: 0.78rem;
    color: var(--e100-fog);
    margin-top: 3px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.artist-card-eis {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.eis-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.eis-value {
    font-family: var(--e100-font-body);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--e100-amber);
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 3px;
}

/* ── Tier Badges ───────────────────────────────────────────────── */
.tier-badge {
    display: inline-block;
    font-family: var(--e100-font-body);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    white-space: nowrap;
}

.tier-badge-lg {
    font-size: 0.75rem;
    padding: 5px 14px;
}

.tier-blue_chip {
    background-color: #1a3a5c;
    color: #a8c8e8;
}

.tier-value {
    background-color: #2c4a2c;
    color: #a8d4a8;
}

.tier-growth {
    background-color: #5c4a1a;
    color: #e6d48a;
}

.tier-discovery {
    background-color: #4a2c4a;
    color: #d4a8d4;
}

/* ── Artist Profile Hero ───────────────────────────────────────── */
.artist-hero {
    background-color: var(--e100-obsidian);
    color: var(--e100-white);
    padding: 48px 0 40px;
}

.hero-breadcrumb {
    font-size: 0.8rem;
    color: var(--e100-silver);
    margin-bottom: 12px;
}

.hero-breadcrumb a {
    color: var(--e100-fog);
    text-decoration: none;
}

.hero-breadcrumb a:hover {
    color: var(--e100-amber);
}

.artist-name-hero {
    font-family: var(--e100-font-heading);
    font-size: 2.75rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin-bottom: 12px;
    line-height: 1.15;
}

.artist-meta-hero {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--e100-fog);
    margin-bottom: 16px;
}

.hero-rank {
    font-family: var(--e100-font-heading);
    font-size: 4rem;
    font-weight: 300;
    color: var(--e100-gold);
    opacity: 0.7;
    line-height: 1;
}

/* ── Score Cards ───────────────────────────────────────────────── */
.scores-section {
    background-color: var(--e100-ivory);
    padding: 40px 0;
}

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

.score-card {
    background: var(--e100-white);
    border-radius: 6px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--e100-shadow);
}

.score-gauge-wrapper {
    height: 6px;
    background-color: var(--e100-ivory);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.score-gauge-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--e100-sage), var(--e100-amber));
    border-radius: 3px;
    width: 0;
    transition: width 0.8s ease-out;
}

.score-gauge-bar.animate {
    width: var(--gauge-width, 0%);
}

.score-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--e100-silver);
    margin-bottom: 4px;
}

.score-value {
    font-family: var(--e100-font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--e100-obsidian);
}

.score-max {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--e100-silver);
}

.score-explanation {
    font-size: 0.72rem;
    color: var(--e100-silver);
    margin-top: 6px;
    line-height: 1.4;
}

/* ── Content Sections ──────────────────────────────────────────── */
.content-section {
    padding: 48px 0;
    border-bottom: 1px solid var(--e100-border);
}

.section-title {
    font-family: var(--e100-font-heading);
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    margin-bottom: 24px;
    color: var(--e100-obsidian);
}

.content-section h3 {
    font-family: var(--e100-font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--e100-charcoal);
}

.lead-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--e100-graphite);
    margin-bottom: 28px;
}

/* ── Market Data ───────────────────────────────────────────────── */
.highlight-card {
    background: linear-gradient(135deg, var(--e100-ivory) 0%, var(--e100-white) 100%);
    border: 1px solid var(--e100-border);
    border-left: 3px solid var(--e100-amber);
    border-radius: 0 6px 6px 0;
    padding: 24px;
    margin-bottom: 28px;
}

.highlight-card h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--e100-silver);
    margin-top: 0;
    margin-bottom: 8px;
}

.auction-record-price {
    font-family: var(--e100-font-heading);
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--e100-obsidian);
    margin-bottom: 4px;
}

.auction-record-detail {
    font-size: 0.95rem;
    color: var(--e100-graphite);
}

.auction-record-venue {
    font-size: 0.85rem;
    color: var(--e100-silver);
    margin-top: 4px;
}

.auction-record-note {
    font-size: 0.9rem;
    color: var(--e100-graphite);
    margin-top: 8px;
    font-style: italic;
}

.market-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.market-table thead th {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--e100-silver);
    padding: 8px 12px;
    border-bottom: 2px solid var(--e100-border);
}

.market-table tbody td {
    padding: 12px;
    border-bottom: 1px solid var(--e100-border);
    font-size: 0.9rem;
    vertical-align: top;
}

.market-table .price-cell {
    font-weight: 600;
    white-space: nowrap;
}

.performance-highlight {
    background-color: var(--e100-ivory);
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.9rem;
}

.price-range-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--e100-border);
    font-size: 0.9rem;
}

.trajectory-drivers {
    list-style: none;
    padding: 0;
}

.trajectory-drivers li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--e100-graphite);
}

.trajectory-drivers li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--e100-amber);
    opacity: 0.6;
}

/* ── Sidebar ───────────────────────────────────────────────────── */
.sidebar-card {
    background-color: var(--e100-ivory);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 16px;
}

.sidebar-card h4 {
    font-family: var(--e100-font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--e100-charcoal);
}

.sidebar-card p {
    font-size: 0.85rem;
    margin-bottom: 6px;
}

/* ── Inline CTA ────────────────────────────────────────────────── */
.inline-cta {
    background: linear-gradient(135deg, var(--e100-charcoal) 0%, var(--e100-obsidian) 100%);
    color: var(--e100-white);
    padding: 48px 0;
}

.inline-cta-text {
    font-family: var(--e100-font-heading);
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--e100-fog);
    margin-bottom: 24px;
}

.inline-cta-text em {
    color: var(--e100-amber);
    font-style: normal;
    font-weight: 500;
}

/* ── Museum & Institutional ────────────────────────────────────── */
.museum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.museum-card {
    border: 1px solid var(--e100-border);
    border-radius: 6px;
    padding: 16px;
}

.museum-card h4 {
    font-family: var(--e100-font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.museum-location {
    font-size: 0.8rem;
    color: var(--e100-silver);
}

.museum-works {
    font-size: 0.8rem;
    color: var(--e100-graphite);
    margin-top: 8px;
    margin-bottom: 0;
}

.museum-list-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.museum-chip {
    font-size: 0.8rem;
    background-color: var(--e100-ivory);
    padding: 5px 12px;
    border-radius: 100px;
    color: var(--e100-graphite);
}

.exhibition-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--e100-border);
}

.exhibition-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.exhibition-meta {
    font-size: 0.85rem;
    color: var(--e100-silver);
    margin-top: 2px;
}

.exhibition-note {
    font-size: 0.85rem;
    color: var(--e100-graphite);
    margin-top: 4px;
    margin-bottom: 0;
}

/* ── Timeline ──────────────────────────────────────────────────── */
.timeline {
    position: relative;
    padding-left: 28px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--e100-border);
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--e100-amber);
    border: 2px solid var(--e100-white);
}

.timeline-period {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--e100-amber-dark);
    margin-bottom: 4px;
}

.timeline-description {
    font-size: 0.9rem;
    color: var(--e100-graphite);
    line-height: 1.6;
}

/* ── Artistic Profile ──────────────────────────────────────────── */
.period-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--e100-border);
}

.period-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.period-years {
    font-size: 0.8rem;
    color: var(--e100-silver);
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.theme-item {
    padding: 12px 16px;
    border: 1px solid var(--e100-border);
    border-radius: 6px;
}

.theme-item p {
    font-size: 0.85rem;
    color: var(--e100-graphite);
    margin-top: 4px;
    margin-bottom: 0;
}

.motifs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.motif-chip {
    font-size: 0.8rem;
    background-color: var(--e100-ivory);
    border: 1px solid var(--e100-border);
    padding: 5px 14px;
    border-radius: 100px;
    color: var(--e100-graphite);
}

.artist-philosophy {
    font-family: var(--e100-font-heading);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--e100-graphite);
    border-left: 3px solid var(--e100-amber);
    padding-left: 20px;
    margin: 24px 0;
}

/* ── Critical Reception ────────────────────────────────────────── */
.publication-card {
    border: 1px solid var(--e100-border);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
}

.publication-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--e100-border);
    font-size: 0.9rem;
}

.expert-quote {
    font-family: var(--e100-font-heading);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--e100-graphite);
    border-left: 3px solid var(--e100-sage);
    padding: 12px 20px;
    margin: 16px 0;
    background-color: var(--e100-ivory);
    border-radius: 0 6px 6px 0;
}

.expert-quote cite {
    display: block;
    font-family: var(--e100-font-body);
    font-size: 0.8rem;
    font-style: normal;
    color: var(--e100-silver);
    margin-top: 8px;
}

/* ── Artwork Showcase (horizontal scroll) ─────────────────────── */
.artwork-showcase {
    padding: 1.5rem 0 0.5rem;
    overflow: hidden;
}

.artwork-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--e100-graphite) transparent;
}

.artwork-scroll::-webkit-scrollbar {
    height: 4px;
}

.artwork-scroll::-webkit-scrollbar-thumb {
    background: var(--e100-graphite);
    border-radius: 2px;
}

.artwork-scroll-item {
    flex: 0 0 auto;
    width: 320px;
    scroll-snap-align: start;
}

.artwork-scroll-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: var(--e100-shadow);
    transition: box-shadow 0.2s;
}

.artwork-scroll-item:hover img {
    box-shadow: var(--e100-shadow-lg);
}

.artwork-caption {
    font-size: 0.8rem;
    color: var(--e100-graphite);
    margin-top: 6px;
    line-height: 1.3;
}

/* ── CTAs ──────────────────────────────────────────────────────── */
.index-cta-section,
.bottom-cta {
    background: linear-gradient(135deg, var(--e100-ivory) 0%, var(--e100-white) 100%);
    padding: 64px 0;
    border-top: 1px solid var(--e100-border);
}

.cta-title {
    font-family: var(--e100-font-heading);
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.cta-text {
    font-size: 1rem;
    color: var(--e100-graphite);
    line-height: 1.8;
    margin-bottom: 28px;
}

.cta-text em {
    color: var(--e100-obsidian);
    font-style: normal;
    font-weight: 600;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ── Related Artists ───────────────────────────────────────────── */
.related-section {
    padding: 40px 0;
    border-top: 1px solid var(--e100-border);
}

.related-title {
    font-family: var(--e100-font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--e100-graphite);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.related-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--e100-obsidian);
    padding: 12px 16px;
    border: 1px solid var(--e100-border);
    border-radius: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.related-card:hover {
    border-color: var(--e100-amber);
    box-shadow: var(--e100-shadow);
    color: var(--e100-obsidian);
    text-decoration: none;
}

.related-name {
    font-family: var(--e100-font-heading);
    font-size: 1rem;
    font-weight: 600;
}

.related-arrow {
    color: var(--e100-amber);
    font-size: 0.8rem;
}

/* ── Prev/Next Navigation ──────────────────────────────────────── */
.artist-nav {
    padding: 24px 0;
    border-top: 1px solid var(--e100-border);
    background-color: var(--e100-ivory);
}

.artist-nav-link {
    text-decoration: none;
    color: var(--e100-obsidian);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.artist-nav-link:hover {
    color: var(--e100-amber-dark);
    text-decoration: none;
}

.artist-nav-link i {
    font-size: 0.75rem;
}

/* ── Footer ────────────────────────────────────────────────────── */
.egon-100-footer {
    background-color: var(--e100-obsidian);
    color: var(--e100-fog);
}

.egon-100-footer .footer-brand .brand-name {
    font-family: var(--e100-font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--e100-white);
}

.egon-100-footer .footer-brand .brand-index {
    font-family: var(--e100-font-body);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--e100-amber);
    letter-spacing: 0.15em;
}

.footer-text {
    font-size: 0.85rem;
    color: var(--e100-silver);
    line-height: 1.7;
}

.footer-heading {
    font-family: var(--e100-font-body);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--e100-fog);
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--e100-silver);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--e100-amber);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 24px 0 16px;
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--e100-silver);
    margin-bottom: 0;
}

/* ── Lightbox ──────────────────────────────────────────────────── */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--e100-white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* ── Market Signal Teaser ──────────────────────────────────────── */
.signal-teaser {
    background: linear-gradient(135deg, var(--e100-ivory) 0%, var(--e100-white) 100%);
    border: 1px solid var(--e100-border);
    border-left: 3px solid var(--e100-sage);
    border-radius: 0 6px 6px 0;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.signal-teaser-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.signal-teaser-header h4 {
    font-family: var(--e100-font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--e100-obsidian);
}

.signal-count-badge {
    font-family: var(--e100-font-body);
    font-size: 0.75rem;
    font-weight: 700;
    background-color: var(--e100-sage);
    color: var(--e100-white);
    padding: 3px 10px;
    border-radius: 100px;
}

.signal-types {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.signal-type-chip {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 3px;
    background-color: var(--e100-ivory);
    border: 1px solid var(--e100-border);
    color: var(--e100-graphite);
}

.signal-latest {
    font-size: 0.88rem;
    color: var(--e100-graphite);
    margin: 0;
    line-height: 1.5;
}

.signal-latest-date {
    font-size: 0.75rem;
    color: var(--e100-silver);
    margin-top: 4px;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .scores-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .artist-name-hero {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 767px) {
    .scores-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .filter-tab {
        flex-shrink: 0;
    }

    .artist-name-hero {
        font-size: 1.75rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .egon-100-hero {
        padding: 48px 0 36px;
    }

    .content-section {
        padding: 32px 0;
    }

    .museum-grid {
        grid-template-columns: 1fr;
    }

    .artwork-scroll-item {
        width: 260px;
    }

    .artwork-scroll-item img {
        height: 200px;
    }

    .artist-card-image {
        padding-top: 100%; /* square on tablets */
    }

    .artist-card-name {
        font-size: 1.05rem;
    }
}

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

    .auction-record-price {
        font-size: 1.75rem;
    }

    .artist-card-image {
        padding-top: 90%; /* slightly landscape on small phones */
    }
}

/* ── Blur Redaction ──────────────────────────────────────────── */
.egon-redacted {
    position: relative;
    overflow: hidden;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.egon-redacted .redacted-content {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
    opacity: 0.7;
    max-height: 260px;
    overflow: hidden;
}

.egon-redacted .redacted-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        to bottom,
        rgba(245, 243, 239, 0) 0%,
        rgba(245, 243, 239, 0.7) 30%,
        rgba(245, 243, 239, 0.92) 60%,
        rgba(245, 243, 239, 0.98) 100%
    );
    z-index: 2;
    padding: 2rem;
    text-align: center;
}

.redacted-label {
    font-family: var(--e100-font-body);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--e100-graphite);
    margin-bottom: 0.5rem;
}

.redacted-cta {
    font-family: var(--e100-font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--e100-obsidian);
    margin-bottom: 1rem;
    line-height: 1.4;
    max-width: 600px;
}

.btn-unlock {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    font-family: var(--e100-font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--e100-white);
    background: var(--e100-obsidian);
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-unlock:hover {
    background: var(--e100-charcoal);
    color: var(--e100-white);
    transform: translateY(-1px);
    text-decoration: none;
}

/* Placeholder rows inside blurred sections */
.redacted-placeholder-row {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--e100-border);
    display: flex;
    gap: 1rem;
}

.redacted-placeholder-bar {
    height: 0.9rem;
    background: var(--e100-fog);
    border-radius: 3px;
}

.redacted-placeholder-section {
    padding: 1rem 1.5rem;
}

.redacted-section-title {
    font-family: var(--e100-font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--e100-charcoal);
    margin-bottom: 8px;
    position: relative;
    z-index: 3;
    padding: 1rem 1.5rem 0;
}

.redacted-section-subtitle {
    font-size: 0.82rem;
    color: var(--e100-silver);
    margin-bottom: 2rem;
    line-height: 1.5;
    position: relative;
    z-index: 3;
    padding: 0 1.5rem;
}

/* ── JSONB Renderer — Report-Style Density ────────────────────── */

/* Redacted blocks inside grid dl must span full width */
.jr-dl > .egon-redacted {
    grid-column: 1 / -1;
}

/* Section wrapper */
.jr-report-section .jr-section {
    margin-bottom: 2rem;
}

.jr-section .section-title {
    margin-bottom: 1.2rem;
}

/* Definition list — two-column grid */
.jr-dl {
    display: grid;
    grid-template-columns: minmax(140px, 0.35fr) 1fr;
    gap: 0;
    margin: 0 0 0.75rem;
    padding: 0;
}

.jr-dl dt {
    font-family: var(--e100-font-body);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--e100-silver);
    padding: 0.5rem 0.75rem 0.5rem 0;
    border-bottom: 1px solid var(--e100-border);
    margin: 0;
    line-height: 1.6;
    align-self: start;
}

.jr-dl dd {
    font-size: 0.88rem;
    color: var(--e100-obsidian);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--e100-border);
    margin: 0;
    line-height: 1.6;
}

/* Nested dl (depth 1) — indented with left accent */
.jr-dl-d1 {
    margin-left: 0;
    border-left: 2px solid var(--e100-amber);
    padding-left: 0.75rem;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

/* Nested dl (depth 2) — lighter accent */
.jr-dl-d2 {
    margin-left: 0;
    border-left: 1px solid var(--e100-fog);
    padding-left: 0.5rem;
    margin-top: 0.15rem;
    margin-bottom: 0.15rem;
    font-size: 0.85rem;
}

.jr-dl-d2 dt {
    font-size: 0.68rem;
}

/* Chips / tags */
.jr-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.25rem 0;
}

.jr-chip {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 500;
    background: var(--e100-ivory);
    border: 1px solid var(--e100-border);
    border-radius: 3px;
    color: var(--e100-graphite);
    line-height: 1.5;
}

/* Bullet list */
.jr-list {
    margin: 0.25rem 0 0.5rem 0;
    padding-left: 1.2rem;
    list-style: none;
}

.jr-list li {
    position: relative;
    padding: 0.2rem 0;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--e100-obsidian);
}

.jr-list li::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0.65em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--e100-amber);
}

/* Text and number spans */
.jr-text {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--e100-obsidian);
}

.jr-text.jr-flat {
    font-size: 0.82rem;
    color: var(--e100-graphite);
}

.jr-number {
    font-size: 0.88rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* Price formatting */
.jr-price {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--e100-obsidian);
    white-space: nowrap;
}

.jr-bool {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Tables generated by renderer */
.jr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin: 0.5rem 0 1rem;
}

.jr-table thead th {
    font-family: var(--e100-font-body);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--e100-silver);
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid var(--e100-obsidian);
    text-align: left;
    white-space: nowrap;
}

.jr-table tbody td {
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid var(--e100-border);
    vertical-align: top;
    color: var(--e100-obsidian);
}

.jr-table tbody tr:last-child td {
    border-bottom: none;
}

.jr-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.015);
}

/* ── Responsive: single-column dl on mobile ───────────────────── */
@media (max-width: 768px) {
    .jr-dl {
        grid-template-columns: 1fr;
    }

    .jr-dl dt {
        padding-bottom: 0.15rem;
        border-bottom: none;
    }

    .jr-dl dd {
        padding-top: 0;
        padding-bottom: 0.5rem;
        margin-bottom: 0.25rem;
    }

    .jr-dl-d1, .jr-dl-d2 {
        padding-left: 0.5rem;
    }

    .jr-table {
        font-size: 0.78rem;
    }

    .jr-table thead th,
    .jr-table tbody td {
        padding: 0.35rem 0.5rem;
    }
}
