/* ================================
   Academic Website (Sans-serif)
   Michael A R Biggs
   ================================ */


/* ================================
   Base layout
   ================================ */

body {
    font-family: -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Helvetica, Arial,
                 sans-serif;

    font-size: 17.5px;
    line-height: 1.7;
    color: #1a1a1a;
    background-color: #ffffff;

    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

div {
    max-width: 750px;
    margin: 0 auto;
    padding: 0.5rem 0.7rem;
}

.container {
  display: flex;
  justify-content: space-between;
  width: 100%;
}


/* ================================
   Content spacing
   ================================ */

main {
    margin-top: 1rem;
}

p {
    margin-bottom: 1.2rem;
}

ul, ol {
    margin-bottom: 1.2rem;
    padding-left: 1.4rem;
}

li {
    margin-bottom: 0.4rem;
}

.no-break {
  white-space: nowrap;
}


/* ================================
   Typography hierarchy
   ================================ */

h1 {
    font-size: 2.1rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 1rem;
    color: #1b365d;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.45rem;
    font-weight: 600;
    margin-top: 0.5rem;
    margin-bottom: 0.8rem;
    color: #1b365d;
    border-bottom: 1px solid #e6e6e6;
    padding-bottom: 0.3rem;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.2rem;
    margin-bottom: 0.5rem;
    color: #222;
}


/* ================================
   Navigation and link behaviour
   ================================ */

nav {
    margin: 1rem 0 2.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e6e6e6;
    font-size: 0.95rem;
}

nav a {
    color: #1b365d;
    text-decoration: none;
    margin-right: 1rem;
    font-weight: 500;
}

nav a:hover {
    text-decoration: none;
}

a {
    color: #1b365d;
    text-decoration: none;
}

a:hover {
    color: #274b7a;
    text-decoration: none;
}


/* ================================
   Images
   ================================ */

.profile-image {
    height: auto;
    width: 100px;
}


/* ================================
   Tables
   ================================ */


td {
	text-align: left;
	vertical-align: middle;
	padding-left: 20px;
}

td img{
    display: block;
    text-align: left;
    vertical-align: middle;
}



/* ================================
   Footer (only when managed via CSS)
   ================================ */

footer {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e6e6e6;
    font-size: 0.9rem;
    color: #666;
}


/* ================================
   Responsive adjustments
   ================================ */

@media (max-width: 700px) {
    body {
        font-size: 16.5px;
        padding: 1.5rem 1rem;
    }

    nav a {
        display: inline-block;
        margin-bottom: 0.5rem;
    }
}


/* ================================
   Page: "Research" inc accordian
   ================================ */

.research-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 0px 0px;
}

.research-page h1 {
    margin-bottom: 10px;
    font-size: 2.5rem;
    font-weight: 400;
}

.accordion-item {
    border-top: 0px solid #d8d8d8;
}

.accordion-item:last-child {
    border-bottom: 0px solid #d8d8d8;
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 0px 0;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.project-number {
    display: none;
    width: 50px;
    font-size: 1.1rem;
    color: #888;
    flex-shrink: 0;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 400;
}

.project-acronym {
    font-size: 1.2rem;
    font-weight: 400;
    color: #1b365d;
}

.project-dates {
    font-size: 1.2rem;
    font-weight: 400;
    color: #1b365d;
    padding-left: 20px;
}

.accordion-content {
    display: none;
    padding-bottom: 0px;
    padding-left: 50px;
}

.accordion-content h3 {
    margin-top: 0px;
    margin-bottom: 0px;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666;
}

.accordion-content p,
.accordion-content li {
    line-height: 1.2;
    font-size: 1rem;
    color: #333;
}

.accordion-content ul {
    padding-left: 20px;
}


/* ================================
   Page: "Publications"
   ================================ */

.publications-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.publications-page h1 {
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-weight: 400;
}

.publication {
    padding-bottom: 1.0rem;
}

.publication-title {
    font-weight: 500;
}

.book-title {
    font-style: italic;
}

.journal-title {
    font-style: italic;
}

.publication-meta {
    color: #666;
    font-size: 0.95rem;
}


/* ================================
   Page: "About"
   ================================ */

.about-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.about-page h1 {
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-weight: 400;
}
