/* =========================================================================
   ACADEMIC / RESEARCH COMPONENTS  (Xenodex)
   Layered on top of styles.css — reuses the silver/chrome palette + fonts.
   Link AFTER styles.css on every page.
   ========================================================================= */

/* ---- Top navigation in the graphite header -------------------------------- */
header .container.academic-bar {
    justify-content: space-between !important;
    gap: 24px;
}
header nav.site-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}
header nav.site-nav ul li { margin-left: 28px; }
header nav.site-nav ul li a {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.95rem;
    opacity: 0.85;
    transition: opacity 0.25s ease;
}
header nav.site-nav ul li a:hover,
header nav.site-nav ul li a.active { opacity: 1; }
header nav.site-nav ul li a.active { border-bottom: 1px solid rgba(255,255,255,0.7); padding-bottom: 2px; }

@media (max-width: 768px) {
    header .container.academic-bar { flex-direction: column; padding: 8px 5%; }
    header nav.site-nav ul { margin-top: 6px; justify-content: center; flex-wrap: wrap; }
    header nav.site-nav ul li { margin: 0 12px; }
    header nav.site-nav ul li a { font-size: 0.78rem; letter-spacing: 0.04em; }
}

/* ---- Generic readable prose column for academic pages --------------------- */
.research-prose {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    text-align: left;
}
.research-prose p,
.research-prose li {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #111;
    margin-bottom: 1.1em;
    text-align: left;
    max-width: none;
}
.research-prose h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.6em 0 0.5em;
    color: #000;
}
.research-prose .key-result {
    background: rgba(255,255,255,0.55);
    border-left: 4px solid var(--chrome-dark);
    border-radius: 8px;
    padding: 18px 22px;
    margin: 1.4em 0;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ---- Publications list ----------------------------------------------------- */
.series-note {
    max-width: 860px;
    margin: 0 auto 36px;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: #222;
    text-align: center;
    line-height: 1.6;
}
.pub-list {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 26px;
    text-align: left;
}
.pub-group-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #555;
    margin: 28px 0 4px;
}
.pub-card {
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(0,0,0,0.08);
    border-left: 4px solid var(--chrome-dark);
    border-radius: 10px;
    padding: 26px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}
.pub-order {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #777;
}
.pub-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #000;
    line-height: 1.35;
    margin: 6px 0 8px;
}
.pub-title a { color: #000; text-decoration: none; }
.pub-title a:hover { text-decoration: underline; }
.pub-authors { font-family: 'Inter', sans-serif; font-size: 1rem; color: #333; margin-bottom: 12px; }
.pub-abstract {
    font-family: 'Inter', sans-serif;
    font-size: 1.04rem;
    line-height: 1.6;
    color: #1a1a1a;
    margin: 10px 0 18px;
}
.pub-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}
.pub-doi { font-family: 'Inter', sans-serif; font-size: 0.95rem; color: #444; }
.pub-doi a { color: #000; }
.pub-links a {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-style: italic;
    font-size: 1.12rem;
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.3);
    padding-bottom: 2px;
    transition: border-color 0.25s ease;
}
.pub-links a:hover { border-color: #000; }

/* ---- Status badges --------------------------------------------------------- */
.pub-badge {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 999px;
    border: 1px solid;
    white-space: nowrap;
}
.badge-preprint  { color: #0a3d62; border-color: #0a3d62; background: rgba(10,61,98,0.06); }
.badge-review    { color: #6d4c00; border-color: #6d4c00; background: rgba(109,76,0,0.07); }
.badge-methods   { color: #333333; border-color: #333333; background: rgba(0,0,0,0.05); }
.badge-published { color: #1b5e20; border-color: #1b5e20; background: rgba(27,94,32,0.08); }

/* ---- Single paper (article) page ------------------------------------------ */
.article {
    max-width: 820px;
    margin: 0 auto;
    padding: 120px 24px 90px;
    text-align: left;
}
.back-to-pubs {
    display: inline-block;
    margin-bottom: 26px;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.3);
}
.article-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.25;
    color: #000;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}
.article-meta { font-family: 'Inter', sans-serif; font-size: 1rem; color: #333; margin-bottom: 4px; }
.article-badge-row { margin: 16px 0 30px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.article-abstract {
    background: rgba(255,255,255,0.55);
    border-left: 4px solid var(--chrome-dark);
    border-radius: 8px;
    padding: 22px 26px;
    margin-bottom: 36px;
}
.article-abstract h2 { font-family: 'Inter', sans-serif; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.article-abstract p { font-family: 'Inter', sans-serif; font-size: 1.05rem; line-height: 1.7; color: #1a1a1a; margin-bottom: 0; }

/* Body rendered from the paper markdown */
.article-body { font-family: 'Inter', sans-serif; font-size: 1.1rem; line-height: 1.85; color: #111; }
.article-body h1 { font-size: 1.9rem; font-weight: 800; margin: 1.4em 0 0.5em; line-height: 1.3; }
.article-body h2 { font-size: 1.55rem; font-weight: 700; margin: 1.6em 0 0.5em; line-height: 1.3; }
.article-body h3 { font-size: 1.25rem; font-weight: 700; margin: 1.4em 0 0.4em; }
.article-body p { margin-bottom: 1.1em; }
.article-body ul, .article-body ol { margin: 0 0 1.1em 1.4em; }
.article-body li { margin-bottom: 0.5em; }
.article-body a { color: #000; text-decoration: underline; }
.article-body blockquote {
    border-left: 3px solid var(--chrome-dark);
    margin: 1.3em 0;
    padding: 8px 20px;
    color: #333;
    font-style: italic;
    background: rgba(0,0,0,0.02);
}
.article-body code {
    background: rgba(0,0,0,0.06);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9em;
}
.article-body pre { background: rgba(0,0,0,0.05); padding: 16px; border-radius: 8px; overflow-x: auto; }
.article-body pre code { background: none; padding: 0; }
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6em 0;
    font-size: 0.96rem;
}
.article-body th, .article-body td {
    border: 1px solid rgba(0,0,0,0.15);
    padding: 8px 12px;
    text-align: left;
    vertical-align: top;
}
.article-body th { background: rgba(0,0,0,0.05); font-weight: 700; }
.article-body hr { border: none; border-top: 1px solid rgba(0,0,0,0.15); margin: 2em 0; }
.article-body img { max-width: 100%; height: auto; }

@media (max-width: 768px) {
    .article { padding: 100px 18px 70px; }
    .article-title { font-size: 1.7rem; }
    .article-body { font-size: 1.02rem; }
    .research-prose p, .research-prose li { font-size: 1.08rem; }
    .pub-card { padding: 22px 20px; }
    .pub-title { font-size: 1.2rem; }
}
