﻿/* --------------------------------------------------
   Basic page settings
-------------------------------------------------- */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    background: #ffffff;
    color: #252525;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
}

a {
    color: #1b4f7a;
}

a:hover,
a:focus {
    color: #0b2f50;
}


/* --------------------------------------------------
   Header and navigation
-------------------------------------------------- */

.site-header {
    border-bottom: 1px solid #eeeeee;
    background: #ffffff;
}

.header-inner {
    max-width: 1050px;
    margin: 0 auto;
    padding: 16px 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-name {
    color: #1f1f1f;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 22px;
}

.site-nav a {
    border-bottom: 2px solid transparent;
    color: #555555;
    padding: 4px 0;
    font-size: 0.95rem;
    text-decoration: none;
}
/* --------------------------------------------------
   Two-column profile section
-------------------------------------------------- */

.profile {
    max-width: 1050px;
    margin: 0 auto;
    padding: 65px 30px 75px;

    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.profile-photo {
    flex: 0 0 270px;
}

.profile-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 2px;
}

.profile-text {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 3px;
}

.profile-text h1 {
    margin: 0 0 8px;
    color: #1f1f1f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.7rem;
    font-weight: 400;
    line-height: 1.15;
}

.position {
    margin: 0 0 3px;
    color: #1b4f7a;
    font-size: 1.2rem;
    font-weight: 600;
}

.affiliation {
    margin: 0 0 28px;
    color: #555555;
}

.introduction {
    max-width: 650px;
    margin: 0 0 28px;
    font-size: 1.05rem;
}

.profile-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px 24px;
    margin-bottom: 27px;
}

.button {
    display: inline-block;
    border: 1px solid #1b4f7a;
    background: #1b4f7a;
    color: #ffffff;
    padding: 9px 17px;
    text-decoration: none;
}

.button:hover,
.button:focus {
    background: #123b5e;
    color: #ffffff;
}

.text-link {
    font-weight: 600;
    text-decoration: none;
}

.text-link:hover,
.text-link:focus {
    text-decoration: underline;
}

.contact-information {
    margin: 0;
    color: #555555;
}

.contact-information a {
    text-decoration: none;
}

.contact-information a:hover,
.contact-information a:focus {
    text-decoration: underline;
}


/* --------------------------------------------------
   Footer
-------------------------------------------------- */

.site-footer {
    border-top: 1px solid #dddddd;
    color: #666666;
    font-size: 0.88rem;
}

.site-footer p {
    max-width: 1050px;
    margin: 0 auto;
    padding: 22px 30px 30px;
}
/* --------------------------------------------------
   Interior content pages
-------------------------------------------------- */

.content-page {
    max-width: 950px;
    margin: 0 auto;
    padding: 36px 30px 80px;
}

.first-research-section {
    margin-top: 0;
}
.page-heading {
    margin-bottom: 48px;
}

.page-heading h1 {
    margin: 0 0 14px;
    color: #1f1f1f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.2;
}

.page-heading p {
    max-width: 720px;
    margin: 0;
    color: #555555;
    font-size: 1.03rem;
}


/* --------------------------------------------------
   Research sections
-------------------------------------------------- */

.research-section {
    margin-top: 50px;
}

.section-title {
    margin: 0;
    border-bottom: 1px solid #d8d8d8;
    padding-bottom: 9px;
    color: #1f1f1f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.65rem;
    font-weight: 400;
    line-height: 1.3;
}
.paper-list {
    margin: 0;
}


.paper:last-child {
    border-bottom: none;
}

.paper-title {
    margin: 0 0 7px;
    color: #252525;
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.45;
}

.paper-title a {
    color: #252525;
    text-decoration: none;
}

.paper-title a:hover,
.paper-title a:focus {
    color: #1b4f7a;
    text-decoration: underline;
}

.paper-details,
.paper-citation,
.paper-status {
    margin: 3px 0;
    color: #555555;
}

.paper-status {
    color: #444444;
}

.paper-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 9px 0 0;
}

.paper-links a {
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}

.paper-links a:hover,
.paper-links a:focus {
    text-decoration: underline;
}

.paper-note {
    max-width: 820px;
    margin: 7px 0 3px;
    border-left: 3px solid #d8d8d8;
    padding-left: 14px;
    color: #5a5a5a;
    font-size: 0.90rem;
    line-height: 1.5;
}

.paper-note strong {
    color: #444444;
}

.paper-note a {
    color: #1b4f7a;
    text-decoration: none;
}

.paper-note a:hover,
.paper-note a:focus {
    text-decoration: underline;
}

/* --------------------------------------------------
   Teaching page
-------------------------------------------------- */

.teaching-page {
    padding-top: 42px;
    max-width: 850px;
    padding-top: 42px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 45px;
}

.course-group {
    min-width: 0;
}

.course-list {
    margin: 0;
    padding: 14px 0 0;
    list-style: none;
}

.course-list li {
    margin: 0;
    border-bottom: 1px solid #eeeeee;
    padding: 10px 0 11px;
    color: #444444;
    font-size: 1rem;
    line-height: 1.5;
}

.course-list li:last-child {
    border-bottom: none;
}

.course-code {
    color: #252525;
    font-weight: 600;
}

/* --------------------------------------------------
   Code page
-------------------------------------------------- */

.code-page {
    padding-top: 36px;
}


/* Maintenance disclaimer */

.maintenance-note {
    margin: 0 0 34px;
    border-left: 3px solid #d8d8d8;
    background: #fafafa;
    padding: 11px 15px;
    color: #555555;
    font-size: 0.94rem;
    line-height: 1.55;
}

.maintenance-note p {
    margin: 0;
}

.maintenance-note strong {
    color: #3f3f3f;
}


/* Code sections */

.code-section {
    margin-top: 38px;
}

.first-code-section {
    margin-top: 0;
}

.section-subtitle {
    margin: 10px 0 3px;
    color: #666666;
    font-size: 0.94rem;
}


/* Individual code entries */

.code-list {
    margin: 0;
}

.code-item {
    margin: 0;
    border-bottom: 1px solid #eeeeee;
    padding: 12px 0 13px;
}

.code-item:last-child {
    border-bottom: none;
}

.code-title {
    margin: 0 0 5px;
    color: #252525;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
}

.code-title a {
    color: #1b4f7a;
    text-decoration: none;
}

.code-title a:hover,
.code-title a:focus {
    text-decoration: underline;
}

.code-title code {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.96em;
    font-weight: 600;
}

.code-description {
    margin: 0;
    color: #4d4d4d;
    font-size: 0.95rem;
    line-height: 1.55;
}

.code-description code,
.code-variants code {
    color: #333333;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.93em;
}

.code-file-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
}

.code-variants {
    margin: 7px 0 0 1.35rem;
    padding: 0;
    color: #555555;
    font-size: 0.93rem;
    line-height: 1.5;
}

.code-variants li {
    margin: 3px 0;
}

/* --------------------------------------------------
   Phone and small-screen layout
-------------------------------------------------- */

@media screen and (max-width: 760px) {
 .content-page {
        padding: 42px 22px 60px;
    }

    .page-heading {
        margin-bottom: 38px;
    }

    .page-heading h1 {
        font-size: 2.15rem;
    }

    .research-section {
        margin-top: 42px;
     }   
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 20px 22px;
    }
	    .course-grid {
	    grid-template-columns: 1fr;
	    gap: 40px;
	}
	
	.teaching-page {
	    padding-top: 34px;
	}

    .site-nav {
        gap: 5px 20px;
    }

    .profile {
        flex-direction: column;
        gap: 32px;
        padding: 42px 22px 55px;
    }

    .profile-photo {
        flex-basis: auto;
        width: 100%;
        max-width: 260px;
    }

    .profile-text h1 {
        font-size: 2.25rem;
    }

    .site-footer p {
        padding-right: 22px;
        padding-left: 22px;
    }

}
/* --------------------------------------------------
   Final compact research-page spacing
-------------------------------------------------- */

.paper-list {
    margin: 0;
    padding: 0;
}

.paper {
    margin: 0;
    border-bottom: 1px solid #eeeeee;
    padding: 7px 0 8px;
}

.paper-entry {
    margin: 0;
    color: #444444;
    font-size: 0.98rem;
    line-height: 1.45;
}

.research-section {
    margin-top: 32px;
}

.first-research-section {
    margin-top: 0;
}

.paper-note {
    margin-top: 6px;
    margin-bottom: 2px;
}
/* --------------------------------------------------
   Research page: smaller text and compact spacing
-------------------------------------------------- */

main.content-page.research-page {
    padding-top: 25px;
}

main.research-page .research-section {
    margin-top: 24px;
}

main.research-page .first-research-section {
    margin-top: 0;
}

main.research-page .section-title {
    font-size: 1.45rem;
}

main.research-page article.paper {
    padding-top: 5px;
    padding-bottom: 6px;
}

main.research-page p.paper-entry {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.48;
}

/* Ensure the title and citation inherit the smaller entry size. */

main.research-page p.paper-entry a.paper-title-inline,
main.research-page p.paper-entry span.paper-information {
    font-size: inherit;
}

main.research-page .inline-links,
main.research-page .inline-links a {
    font-size: 0.82rem;
}

main.research-page .paper-note {
    font-size: 0.81rem;
    line-height: 1.45;
}