/* research.css — styles for /research.html and /research/*.html */

.research-page {
    padding: 2rem 1rem;
}

.research-header {
    max-width: 1100px;
    margin: 0 auto 2rem;
}

.research-header h1 {
    font-size: 1.75rem;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}

.research-header p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    max-width: 640px;
}

.research-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
}

/* ─── Overview card ──────────────────────────────────────────────────────── */

.research-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.research-card-header-img {
    display: block;
    width: 100%;
    height: auto;
}

.research-card-body {
    padding: 1.25rem;
}

.research-card-title {
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
}

.research-card-title a {
    color: var(--color-text);
    text-decoration: none;
}

.research-card-title a:hover {
    color: var(--color-accent);
}

.research-card-teaser {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 0.9rem;
}

.research-card-link {
    display: inline-block;
    color: var(--color-accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.research-card-link:hover {
    text-decoration: underline;
}

.research-preview-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #3b2a00;
    color: #fcd34d;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    z-index: 1;
}

/* ─── Standalone entry page ──────────────────────────────────────────────── */

.research-back {
    font-size: 0.85rem;
}

.research-back a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.research-back a:hover {
    color: var(--color-accent);
}

.research-entry-header-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 0.5rem 0 1.5rem;
}

.content-page.prose p.research-entry-sub {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-top: -0.5rem;
}

.research-entry-embed {
    margin: 2rem 0;
}

.research-chart-frame {
    display: block;
    width: 100%;
    min-height: 200px;
    border: none;
    background: #fff;
    border-radius: var(--radius);
}

.research-entry-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2.5rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.content-page.prose p.research-deck-intro {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

/* ─── Stacked deck embed ─────────────────────────────────────────────────── */

.research-deck-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.content-page.prose p.research-deck-page-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin: 0 0 0.4rem;
}

.research-deck-frame-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #fff;
}

.research-deck-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 1920px;
    height: 1080px;
    border: none;
    background: #fff;
    transform-origin: top left;
}
