/* =====================================================================
   Cambridge Industrialisation — Conference report (long-form article)
   Loaded after style.css / visual.css. Editorial register: hairlines,
   a left-hand contents rail, one body size, one heading size.
   ===================================================================== */

/* ---- Header band ---- */
.rp-head {
    background: var(--blue-900);
    color: var(--on-dark);
    padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}
.rp-head .eyebrow { color: var(--gold-400); margin-bottom: var(--spacing-md); }
.rp-title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: #fff;
    max-width: 24ch;
    margin-bottom: var(--spacing-md);
}
html:lang(zh) .rp-title { max-width: 22ch; }
.rp-standfirst {
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--on-dark-muted);
    max-width: 60ch;
    margin-bottom: var(--spacing-lg);
}
.rp-meta {
    display: flex; flex-wrap: wrap; gap: 0.4rem 2rem;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--on-dark-line);
    font-size: 0.85rem; letter-spacing: 0.04em; color: var(--on-dark-muted);
}
.rp-meta span { white-space: nowrap; }

/* ---- Two-column body: contents rail + article ---- */
.rp-body { padding: var(--section-y) 0; }
.rp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}
@media (min-width: 968px) {
    .rp-grid { grid-template-columns: 220px minmax(0, 720px); column-gap: clamp(3rem, 6vw, 6rem); }
}

.rp-toc { font-size: 0.875rem; }
@media (min-width: 968px) {
    .rp-toc { position: sticky; top: 96px; align-self: start; }
}
.rp-toc-label {
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--muted); padding-bottom: 0.6rem; border-bottom: 1px solid var(--ink); margin-bottom: 0.6rem;
}
.rp-toc ol { list-style: none; }
.rp-toc li { border-bottom: 1px solid var(--hairline); }
.rp-toc a {
    display: block; padding: 0.55rem 0; color: var(--body); line-height: 1.4;
}
.rp-toc a:hover, .rp-toc a.active { color: var(--blue-700); }
.rp-toc a.active { font-weight: 600; }

/* ---- Article ---- */
.rp-article { font-size: 1.0625rem; line-height: 1.8; color: var(--body); }
.rp-article > p { margin-bottom: 1.25rem; }
.rp-article .lead { margin-bottom: 1.5rem; }
.rp-article h2 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.25;
    margin: 3.25rem 0 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--ink);
}
.rp-article h2:first-of-type { margin-top: 2.5rem; }
.rp-article strong { font-weight: 600; }
.rp-article ul { margin: 0 0 1.5rem 1.25rem; }
.rp-article ul li { margin-bottom: 0.4rem; }

/* speaker / session lists: name in ink, rest in body */
.rp-list { list-style: none; margin: 0 0 1.5rem !important; }
.rp-list li {
    display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 0 1.5rem;
    padding: 0.6rem 0; border-bottom: 1px solid var(--hairline); margin: 0 !important;
}
.rp-list li:first-child { border-top: 1px solid var(--hairline); }
.rp-list b { font-weight: 600; color: var(--ink); }
@media (max-width: 560px) { .rp-list li { grid-template-columns: 1fr; } }

.rp-session { margin-bottom: 1.5rem; }
.rp-session h3 {
    font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 700; color: var(--ink);
    margin: 0 0 0.25rem;
}
.rp-session h3 span { font-weight: 400; color: var(--muted); }

/* quotes: hairline, no colour bar */
.rp-article blockquote {
    margin: 1.75rem 0;
    padding: 0 0 0 1.5rem;
    border-left: 1px solid var(--ink);
    font-family: var(--font-serif);
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--ink);
}
html:lang(zh) .rp-article blockquote { font-size: 1.1rem; }
.rp-article blockquote cite {
    display: block; margin-top: 0.75rem;
    font-family: var(--font-sans); font-style: normal; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--muted);
}

/* figures — hidden automatically when the file is not there yet */
.rp-figure { margin: 2rem 0 2.25rem; }
.rp-figure img { width: 100%; height: auto; display: block; background: var(--surface-2); }
.rp-figure figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 0.55rem; letter-spacing: 0.02em; }
.rp-figure[hidden] { display: none; }

.rp-close {
    margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--ink);
    font-size: 0.95rem; color: var(--muted);
}
.rp-close a { border-bottom: 1px solid var(--gold-500); color: var(--blue-700); }

/* ---- Next steps ---- */
.rp-next { background: var(--surface-1); padding: var(--section-y) 0; }
.rp-next-grid { display: grid; grid-template-columns: 1fr; gap: var(--spacing-lg); }
@media (min-width: 768px) { .rp-next-grid { grid-template-columns: repeat(3, 1fr); } }
.rp-next a.rp-next-card {
    display: block; padding-top: var(--spacing-sm); border-top: 1px solid var(--ink); color: var(--body);
}
.rp-next-card h3 { font-size: 1.25rem; margin-bottom: 0.4rem; transition: color var(--transition-fast); }
.rp-next-card:hover h3 { color: var(--blue-700); }
.rp-next-card p { font-size: 0.95rem; color: var(--muted); margin: 0; }

/* tall poster-style images (speaker roster): show at natural ratio */
.rp-figure--tall img { aspect-ratio: auto; }
