/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* end of reset */

body {
	font: normal normal 400;
	font-size: 100%;
	line-height: 1.3em;
	font-family: Avenir, "Helvetica Neue", Arial, sans-serif;
	margin-top: 1em;
	margin-left: 1em;
}

p {
	position: relative;
	left: 25%;
	margin-bottom: 0.7em;
	margin-right: 0;
	width: 55%;
}

code {
	font: normal normal;
	font-size: 90%;
	font-family: Monaco,Menlo,monospace,sans-serif;
	color: #aaa;
}

p code {
	position: absolute;
	text-align: right;
	right: -20%;
}

ul { 
	position: relative;
	left: 25%;
	width: 75%;
	margin-bottom: 1.5em;
	margin-top: -0.5em;
}

li {
	padding-left: 1.25em;
	text-indent: -1.25em;
}

li ul {
	position: relative;
	left: 0;
	width: 100%;
	margin-top: 0.25em;
}

h1,h2,h3,h4 {
	font-weight: 400;
	font-family: Avenir, "Helvetica Neue", Arial, sans-serif;
	width: 80%;
}

h1 {
	text-align: left;
	font-size: 3em;
	line-height: 1em;
	position: relative;
	left: 25%;
}

h1+p { 
	font-style: italic;
	font-size: 110%;
}

h2 {
	font-size: 1.1em;
	color: #bc412b;
	margin-top: 3em;
	position: relative;
	top: 1.4em;
	text-align: right;
	width: 20%;
}

h3 {
	font-size: 1.1em;
	line-height: 1.3em;
	color: #444;
	position: relative;
	top: 1.7em;
	text-align: right;
	width: 20%;
	font-family: Avenir, "Helvetica Neue", Arial, sans-serif;
	font-weight: 400;
	font-style: normal;
	letter-spacing: 0.3px;
	padding-right: 2%;
}

a {
	color: #0066cc;  /* Changed to blue for better visibility */
	text-decoration: none;
}

a:hover {
	color: #39f;
	text-decoration: underline;
}

#webaddress {
    margin-top: 1em;
    margin-bottom: 1em;
    position: relative;
    left: 15%; /* Align with reduced margin */
    color: #a00; /* Match the section heading color */
    font-family: Monaco, Menlo, monospace, sans-serif;
    font-size: 90%;
}

#webaddress a {
    color: #a00; /* Match section heading red color */
    text-decoration: none;
}

#webaddress a:hover {
    color: #a00; /* Keep red color on hover */
    text-decoration: underline;
}

em {
	font-style: italic !important;
}

strong {
    font-weight: bold !important;
}

/* Ensure italics in publication lists */
.publications em {
    font-style: italic !important;
    font-weight: normal;  /* Prevent bold italic */
}

.publications strong {
    font-weight: bold !important;
    display: inline !important;
}

/* Additional rule to ensure bold text in lists */
li strong {
    font-weight: bold !important;
    display: inline !important;
}

/* Publications section styling */
.publications {
    list-style-type: none;
    margin-bottom: 1.5em;
    font-size: 0.95em;
    line-height: 1.3em; /* Ensure enough spacing */
    margin-left: 0; /* Align with the main heading */
    padding-left: 0; /* Remove unnecessary padding */
}

.publications.preprints,
.publications.articles {
    counter-reset: preprint-counter article-counter; /* Separate counters */
}

/* Preprints List Items */
.publications.preprints li {
    counter-increment: preprint-counter; /* Increment counter */
    margin-left: 0; /* Align with the heading */
    position: relative; /* Allow absolute positioning for :before */
    padding-left: 2.5em; /* Slight indentation for numbers */
    text-indent: 0; /* Reset text indentation */
    line-height: 1.3em; /* Ensure readability */
}

.publications.preprints li:before {
    content: counter(preprint-counter) ". "; /* Add numbering */
    position: absolute; /* Position relative to parent li */
    left: 0; /* Align to the edge of the section */
    top: 0; /* Align to the top of the text */
    width: 2em; /* Adjust to bring numbers closer to text */
    text-align: right; /* Align numbers right */
    color: #444; /* Number color (optional) */
}

/* Articles List Items */
.publications.articles li {
    counter-increment: article-counter; /* Increment counter */
    margin-left: 0;
    position: relative;
    padding-left: 2.5em; /* Same as preprints */
    text-indent: 0;
    line-height: 1.3em;
}

.publications.articles li:before {
    content: counter(article-counter) ". ";
    position: absolute;
    left: 0;
    top: 0;
    width: 2em;
    text-align: right;
    color: #444;
}

/* Prevent margin issues for nested elements */
.publications li > * {
    margin-left: 0; /* Remove extra margin for child elements */
}

.publications li strong,
.publications li em {
    margin-left: 0; /* Align strong/em text */
}
