:root {
    --bg: #060606;
    --text: #e4e4e7;
    --text-dim: #A6A6A6;
    --border: #262626;
    --highlight: #ffffff;
    
    --mono: Gotham, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--mono);
    font-size: 15px;
    line-height: 1.6;
    max-width: 680px;
    margin: 80px auto;
    padding: 0 24px;
    
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Header / Title Section --- */
.intro {
    margin-bottom: 40px;
    padding-bottom: 20px;
}

.intro h1 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--highlight);
    margin: 0 0 20px 0;
    letter-spacing: -0.01em;
}

/* Author List Container */
.authors ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
}

/* Individual Author Items */
.authors li {
    display: inline-block;
    font-size: 16px;
    color: var(--text);
}

.authors li a {
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px dotted var(--border);
    transition: all 0.2s ease;
}

.authors li a:hover {
    color: var(--highlight);
    border-bottom-color: var(--highlight);
}

/* Superscript for affiliations */
.authors sup {
    font-size: 10px;
    color: var(--text-dim);
    margin-left: 2px;
}

/* Affiliations Block */
.affiliations {
    margin-top: 15px;
    font-size: 13px;
    color: var(--text-dim);
    display: block;
}

.affil {
    margin-right: 15px;
    display: inline-block;
}

/* --- Meta / Navigation Section --- */

.meta {
    margin-bottom: 50px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center; 
    font-size: 12px;
    color: var(--text-dim);
}

/* Venue Text (e.g. Published in...) */
.venue {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Meta Links (Paper, Code, Data) */
.meta .links a {
    margin-left: 15px;
    color: var(--text-dim);
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease;
}

.meta .links a:hover {
    color: var(--highlight);
    text-decoration: none;
}

/* --- Figure & Visualization Styling --- */

.svg-item {
    margin: 40px 0;
    width: 100%;
}

/* The Frame: Always full width, holding the background */
.fig-frame {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 4px;
    
    /* Center the SVG inside the frame */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Internal spacing so the image doesn't touch the border */
    padding: 40px 20px;
    box-sizing: border-box; 
}

/* The Image: Only handles scaling */
.svg-item img {
    max-width: 100%; 
    height: auto;
    display: block;
    /* No background/border here anymore */
}

.svg-item figcaption {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-dim);
    text-align: center;
    line-height: 1.5;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.fig-num {
    color: var(--highlight);
    font-weight: 600;
    margin-right: 4px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
}
/* --- General Typography --- */

h2 { 
    font-size: 14px; 
    font-weight: 600;
    margin-top: 50px; 
    margin-bottom: 20px;
    text-transform: uppercase; 
    color: var(--highlight);
    letter-spacing: 0.05em;
    
    border-left: none; 
    padding-left: 0;
}

p { 
    margin-bottom: 24px; 
    color: var(--text);
}

a { 
    color: var(--text); 
    text-decoration: underline; 
    text-decoration-color: var(--border); 
    text-underline-offset: 4px;
    transition: all 0.2s ease;
}

a:hover { 
    color: var(--highlight); 
    text-decoration-color: var(--highlight);
}

/* --- Research Table Styling --- */

h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-top: 35px;
    margin-bottom: 15px;
}

.research-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    font-size: 14px;
}

.research-table th {
    text-align: left;
    border-bottom: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 0 10px 0;
    font-weight: 500;
}

.research-table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: top;
    line-height: 1.5;
}

/* Specific styling for the first column (Term/Symbol) */
.research-table td:first-child {
    width: 20%;      /* Fixed width for alignment */
    padding-right: 20px;
    color: var(--highlight); /* Highlight the defined term */
    font-family: var(--mono);
}

/* Remove border from the last row for a cleaner look */
.research-table tr:last-child td {
    border-bottom: none;
}
