html {
    color-scheme: light;
    background-color: #FFFFFF;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #FFFFFF;
    color: #1A1A1A;
    /* Dark text */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    width: 95%;
    max-width: 600px;
    /* Narrower column */
    margin: 40px auto;
    padding: 20px;
}



/* Header and Navigation Bar */
.header-nav {
    display: flex;
    /* Align nav and header horizontally */
    align-items: flex-start;
    /* Align items to the top */
    margin-bottom: 20px;
}

nav {
    margin-right: 20px;
    /* Space between nav and header */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin-bottom: -2px;
    /* Space between nav items */
}

nav ul li a,
nav ul li a:link,
nav ul li a:visited {
    color: #6b6b6b;
    /* Light gray color for hyperlinks */
    text-decoration: none;
    /* Remove underline */
    font-size: 0.9em;
    /* Reduced font size */
}

nav ul li a:hover {
    color: #555555;
    /* Slightly darker gray on hover */
}

header {
    flex: 1;
    /* Take up remaining space */
}

header h1 {
    margin: 0;
    font-size: 1.8em;
    /* Reduced font size */
    color: #333333;
    /* Dark text */
}

header p {
    margin: 5px 0 0;
    font-size: 1em;
    /* Reduced font size */
    color: #555555;
    /* Slightly lighter text */
}

section {
    margin-bottom: 30px;
    /* Reduced margin */
}

section h2 {
    font-size: 1.5em;
    /* Reduced font size */
    margin-bottom: 10px;
    color: #333333;
    /* Dark text */
}

section p {
    font-size: 0.9em;
    /* Reduced font size */
    color: #555555;
    /* Slightly lighter text */
}

#publications-list {
    list-style-type: none;
    padding: 0;
}

#publications-list li {
    margin: 15px 0;
    /* Reduced vertical space between papers */
}

.paper-title {
    font-size: 0.9em;
    font-weight: 700;
    /* Bold title */
    color: #333333;
    /* Darkest gray for title */
    margin-bottom: 2px;
    /* Reduced margin */
    line-height: 1.2;
    /* Tighter line height */
}

.paper-authors {
    font-size: 0.8em;
    color: #555555;
    /* Medium gray for authors */
    margin-bottom: 2px;
    /* Reduced margin */
    line-height: 1.2;
    /* Tighter line height */
}

.paper-venue {
    font-size: 0.8em;
    color: #777777;
    /* Light gray for venue */
    margin-bottom: 3px;
    /* Reduced margin */
    line-height: 1.2;
    /* Tighter line height */
}

.paper-links a {
    margin-right: 10px;
    /* Space between links */
    line-height: 1.2;
    /* Tighter line height */
    font-size: 0.8em;
}

#news-list {
    list-style-type: none;
    padding: 0;
}

#news-list li {
    margin: 10px 0;
    /* Reduced vertical space between news items */
    font-size: 0.95em;
    color: #555555;
    /* Medium gray for news text */
    line-height: 1.4;
    /* Slightly tighter line height */
}

.news-date {
    font-weight: 500;
    /* Slightly bold for the date */
    color: #333333;
    /* Darker gray for the date */
    font-weight: bold;
}

a {
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
    /* Dotted needs 1px; at 0.5px the dots do not render at normal size */
    text-underline-offset: 2px;
    text-decoration-color: #AAC7E5;
    /* Fallback for browsers without color-mix() */
    text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
    /* Tints the underline from the link's own color, so it tracks :visited and :hover */
}

a:link {
    color: #2A73BE;
    /* Light blue for hyperlinks */
}

a:visited {
    color: #6690B8;
    /* Muted blue for visited links */
}

/* Must stay after :link/:visited above - same specificity, so source order decides. */
a:hover {
    color: #5B9BD9;
    /* Lighter blue on hover */
}

footer {
    text-align: left;
    /* Align footer content to the left */
    margin-top: 40px;
    font-size: 0.8em;
    /* Reduced font size */
    color: #777777;
    /* Light grey text */
}

.pun {
    font-style: italic;
    margin-top: 12px;
}

.pun-credit {
    font-style: normal;
    font-weight: 700;
}

#see-more,
#see-more-publications {
    color: #777777;
    /* Light gray color */
    text-decoration: underline;
    /* Underline */
    text-decoration-thickness: 0.5px;
    /* Fine underline */
    text-decoration-style: dotted;
    /* Dotted underline */
    text-underline-offset: 2px;
    /* Space between text and underline */
    font-size: 0.9em;
    /* Reduced font size */
    cursor: pointer;
    /* Change cursor to pointer */
    display: none;
    /* Hidden by default */
}

#see-more:hover,
#see-more-publications:hover {
    color: #555555;
    /* Slightly darker gray on hover */
}

/* Horizontal Navbar for Social Links */
.social-navbar {
    margin-bottom: 20px;
    /* Space below the navbar */
}

.social-navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    /* Make the list horizontal */
    gap: 15px;
    /* Space between items */
}

.social-navbar ul li {
    margin: 0;
    /* Remove default margin */
}

.social-navbar ul li a,
.social-navbar ul li a:link,
.social-navbar ul li a:visited {
    color: #777777;
    /* Light gray color for hyperlinks */
    text-decoration: none;
    /* Remove underline */
    font-size: 0.9em;
    /* Reduced font size */
}

.social-navbar ul li a:hover {
    color: #555555;
    /* Slightly darker gray on hover */
}

.social-navbar ul li:not(:last-child)::after {
    content: "•";
    /* Add a dot */
    position: absolute;
    right: -10px;
    /* Adjust the position of the dot */
}

/* Social Media Icon Colors */
.social-navbar ul li a .fa-twitter {
    color: #1DA1F2;
}

.social-navbar ul li a .fa-github {
    color: #333333;
}

.social-navbar ul li a .fa-graduation-cap {
    color: #4285F4;
}

.social-navbar ul li a .fa-linkedin {
    color: #0A66C2;
}

.social-navbar ul li a .fa-orcid {
    color: #A6CE39;
}

/* Publication Icons */
.paper-links a .fa-file-pdf {
    color: #D32F2F;
}

.paper-links a .fa-file-code {
    color: #333333;
}

.paper-links a .fa-file-powerpoint {
    color: #F57C00;
}


/* Teaching and Service lists */
#teaching-list,
#service-list {
    list-style: none;
    margin: 10px 0 0;
    padding-left: 2px;
    font-size: 0.9em;
}

#teaching-list>li,
#service-list>li {
    position: relative;
    padding-left: 15px;
    margin: 9px 0;
    color: #444444;
    line-height: 1.45;
}

/* Teaching rows are single lines now, so they can sit tighter than the
   Service groups, which still wrap sub-lists. */
#teaching-list>li {
    margin: 4px 0;
}

/* Small accent dot for top-level items */
#teaching-list>li::before,
#service-list>li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #333333;
    /* Matches the h1/h2 header color */
}

#teaching-list ul,
#service-list ul {
    list-style: none;
    margin: 5px 0 0;
    padding-left: 0;
}

#teaching-list ul li,
#service-list ul li {
    position: relative;
    padding-left: 15px;
    margin: 1px 0;
    font-size: 0.95em;
    color: #6b6b6b;
    line-height: 1.35;
}

/* Short dash for sub-items, so detail reads quieter than its parent */
#teaching-list ul li::before,
#service-list ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 7px;
    height: 1.5px;
    border-radius: 1px;
    background-color: #999999;
    /* Lighter tint of the header gray, so sub-items stay subordinate */
}
