/* TLDWP research article + chart components
   Load after the site's main stylesheet. Uses existing TLDWP CSS variables. */

.research-author {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    margin: 2.25rem 0 1rem;
    padding: 1.25rem 1.35rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}
.research-author__mark {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-weight: 700;
    color: #05080d;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}
.research-author__eyebrow,
.research-figure__kicker {
    color: var(--primary-color);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.research-author__name {
    margin-top: 2px;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
}
.research-author__role,
.research-author__bio,
.research-figure__subtitle,
.research-figure__source,
.research-figure__note,
.research-figure__reuse {
    color: var(--text-secondary);
}
.research-author__role { margin-top: 2px; font-size: 13px; }
.research-author__bio { margin: .65rem 0 0; line-height: 1.6; }
.research-author__links { margin-top: .65rem; font-size: 13px; }
.research-author__links span { margin: 0 .35rem; color: var(--text-secondary); }

/* Reusable research figure. Optimized for in-article reading and clean screenshots. */
.research-figure {
    margin: 2rem 0;
    padding: 1.5rem;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgb(56 189 248 / .08), transparent 36%),
        var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}
.research-figure__title {
    margin: .35rem 0 0;
    color: var(--text-primary);
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 700;
    line-height: 1.15;
}
.research-figure__subtitle {
    margin: .5rem 0 1.25rem;
    max-width: 70ch;
    line-height: 1.55;
}
.research-bars { display: grid; gap: .85rem; }
.research-bar__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .35rem;
}
.research-bar__label { color: var(--text-primary); font-weight: 600; }
.research-bar__value { color: var(--text-primary); font-family: var(--font-mono); font-weight: 700; }
.research-bar__track {
    height: 12px;
    overflow: hidden;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 999px;
}
.research-bar__fill {
    width: var(--bar-width, 0%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}
.research-figure__note {
    margin: 1rem 0 0;
    font-size: 12px;
    line-height: 1.5;
}
.research-figure__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem 1.25rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.research-figure__brand {
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: .04em;
}
.research-figure__source { font-size: 12px; }
.research-figure__reuse {
    margin-top: .65rem;
    font-size: 11px;
    font-style: italic;
}

@media (max-width: 600px) {
    .research-author { grid-template-columns: 44px 1fr; padding: 1rem; }
    .research-author__mark { width: 44px; height: 44px; font-size: 13px; }
    .research-figure { padding: 1.1rem; }
    .research-bar__head { gap: .5rem; }
    .research-figure__footer { display: block; }
    .research-figure__source { display: block; margin-top: .35rem; }
}
