/* General */

body, .popover {
    font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", Arial, sans-serif;
}
:root {
    --orange: rgb(230, 70, 38);
    --orange-dark: rgb(206, 61, 32);
    --orange-transparent: rgba(230, 70, 38, 0.5);
    --primary: var(--orange);
    --primary-dark: var(--orange-dark);
}
a, .link, .primary {
    color: var(--primary);
}
a:hover, a:focus, .link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
    cursor: pointer;
}
ul {
    list-style-type: circle;
}
.btn-orange {
    background-color: var(--primary);
    color: #fff;
}
.btn-orange:hover, .btn-orange:active, .btn-orange:focus {
    background-color: var(--primary-dark);
    color: #fff;
}
.btn-custom {
    border-color: var(--primary);
    color: var(--primary);
}
.btn-custom:hover, .btn-custom:active, .btn-custom:focus {
    background-color: var(--primary);
    color: #fff
}
.svg-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: text-bottom;
}
.table {
    border-bottom: 1px solid #dee2e6; /* missing in Bootstrap */
}


/* Headings */

h1 {
    font-size: 2.2rem;
}
h2 {
    font-size: 1.8rem;
}
h3 {
    font-size: 1.4rem;
}
h1, h2, h3 {
    font-weight: 500;
    padding-top: 1.2rem;
    margin-bottom: 1.4rem;
}
h4, h5 {
    font-weight: 500;
}
h1.intable {
    margin-bottom: 2.3rem;
}


/* Nav */

.navbar {
    padding-top: 1.5rem;
}
.navbar-brand {
    margin: 0;
    filter: drop-shadow(1px 1px 2px rgba(50, 50, 50, 0.5));
}
.navbar .dropdown-item {
    color: #2b2b2b;
}
.navbar .dropdown-item:hover {
    background-color: #f0f0f0;
}
.navbar .dropdown-item.active {
    background-color: var(--primary);
    color: #fff;
}
@media (min-width: 768px) {
    .navbar-brand-img {
        height: 60px;
    }
    .navbar .navbar-nav .nav-link {
        margin-bottom: 0;
        margin-left: 1.5rem;
        padding-left: 0;
        padding-right: 0;
        font-size: 1.1rem;
        color: #fff;
        text-shadow: 1px 1px 2px rgba(50, 50, 50, 0.5);
        border-bottom: 2px solid transparent;
        transition: border-bottom 200ms ease;
    }
    .navbar .nav-link:not(.dropdown-toggle):hover, .navbar .nav-link.active {
        border-bottom: 2px solid #fff;
    }
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
    }
    .navbar .dropdown-menu {
        margin-top: -3px;
    }
}
@media (min-width: 992px) {
    .navbar .navbar-nav .nav-link {
        margin-left: 2rem;
    }
    .navbar .dropdown-menu {
        margin-left: 0.5rem;
    }
}
@media (max-width: 767px) {
    .navbar-brand-img {
        height: 45px;
    }
    .navbar-nav {
        background-color: white;
        width: 100%;
        margin-top: 1.5rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        border-radius: 4px;
    }
    .navbar .navbar-nav .nav-link {
        background-color: white;
        color: #2b2b2b; /* --text, but doesn't work on iPhone */
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .navbar .navbar-nav .nav-link:hover {
        background-color: #f0f0f0;
    }
    .navbar .navbar-nav .nav-link.active {
        background-color: var(--primary);
        color: #fff;
    }
    .navbar .dropdown-menu {
        border: none;
        margin-bottom: 0.5rem;
    }
    .navbar .dropdown-item {
        padding-left: 2.5rem;
    }
    .navbar .dropdown-divider {
        visibility: hidden;
        margin: 0;
    }
}


/* Headers */

.header {
    background: #6c818d;
    background-image: linear-gradient(to bottom right,rgba(0,0,0,0.3),rgba(0,0,0,0.1)), url("/assets/images/sydney.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    margin-bottom: 2rem;
    border-radius: 0;
    padding-top:0; 
    padding-bottom: 3.5rem;
}
.header h1 {
    font-size: 3rem;
    margin: 0;
    margin-top: 1rem;
}
.header h1, .header h2 {
    font-weight: 500;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(50, 50, 50, 0.75);
}
#header-home h1 {
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-top: 6rem;
    margin-bottom: 1.6rem;
}
#header-home h2 {
    font-size: 1.8rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 6rem;
    padding: 0;
    max-width: 40rem;
}

@media (max-width: 576px) {
    .header h1 {
        font-size: 2.3rem;
    }
    #header-home h1 {
        font-size: 2.3rem;
        letter-spacing: 3px;
        margin-bottom: 1rem;
        margin-top: 2.5rem;
    }
    #header-home h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
}


/* Home page */

h1.mainpage {
    margin-top: 1rem;
    margin-bottom: 2rem;
}
p.mainpage {
    text-align: justify;
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 1rem;
}
.icon-huge {
    font-size: 5rem;
    color: var(--primary);
    width: 100%;
}
.card-research-area {
    border: 0;
}
.card-research-area .card-body {
    padding-left: 0;
    padding-right: 0;
}
@media (max-width: 576px) {
    h1.mainpage {
        margin-top: 0.8rem;
    }
    p.mainpage {
        text-align: justify;
        font-size: 1.1rem;
        font-weight: 300;
        margin-bottom: 2rem;
    }
    .card-research-area {
        flex-direction: row;
    }
    .card-research-area .card-body {
        flex: 1;
        padding-bottom: 0.8rem;
    }
    .icon-huge {
        width: 5rem;
        font-size: 4rem;
        display: block;
        margin: 0.5rem;
    }
}
@media (min-width: 1200px) {
    .card-research-title {
        width: 300px;
    }
}


/* Sticky footer */

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}
.site-content {
    flex: 1;
 }
footer {
    background-color: #f5f5f5;
    margin-top: 3em;
}
footer .icon {
    margin-right: 0.75rem;
}
.footer-logo {
    padding-top: 2.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.5rem;
}
.copyright {
    text-align: center;
}
.country {
    text-align: justify;
}
.country a {
    color: inherit;
}
@media (min-width: 576px) {
    .footer-logo {
        padding-top: 3.5rem;
        float:right;
    }
    .copyright {
        text-align: left;
    }
    .country {
        margin-left: 1.75rem;        
    }
}


/* Adjust column gutters of Bootstrap grid */

.bottom-gutter {
    margin-bottom: 30px;
}
@media (max-width: 768px) {
    div[class^="col-"] {
      padding-left: 10px;
      padding-right: 10px;
    }
    .row {
      margin-left: -10px;
      margin-right: -10px;
    }
    .bottom-gutter {
        margin-bottom: 20px;
    }
}
@media (min-width: 992px) {
    div[class^="col-"] {
      padding-left: 20px;
      padding-right: 20px;
    }
    .row {
      margin-left: -20px;
      margin-right: -20px;
    }
    .bottom-gutter {
        margin-bottom: 40px;
    }
    .w-75-md {
        width: 75%;
        margin-left: auto;
        margin-right: auto;
    }

}


/* Equal-height cards and those that change to horizontal at small sizes */

.row.equal-height > [class*='col-'] {
    display: flex;
    flex-direction: column;
}
.row.equal-height .card {
    flex: 1;
}
.card-body-responsive {
    display: flex;
    flex-direction: column;
}
@media (max-width: 768px) {
    .card-responsive {
        flex-direction: row;
    }
    .card-responsive img {
        height: 160px;
        max-width: 35%;
        min-width: 120px;
        object-fit: cover;
        border-radius: 0;
        border-top-left-radius: calc(.25rem - 1px);
        border-bottom-left-radius: calc(.25rem - 1px);
    }
}


/* Images */

@media (min-width: 992px) {
    .research figure {
        float: right;
        width: 40%;
        margin-bottom: 1.5rem;
        margin-left: 2.5rem;
    }
    .research figure.portrait {
        width: 30%;
    }
    .research figure.portrait img {
        width: 90%;
    }
}
figure {
    position: relative;
}
figure img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}
.research figure img {
    width: 90%;
}
figure.portrait img {
    width: 60%;
}
figcaption {
    font-size: 0.8rem; 
    padding: 8px;
}
figcaption.inset-black { 
    position: absolute;
    bottom: 0px;
    right: 0px;
    text-shadow: 1px 1px 2px #ffffff;
    color: #000000;
}
figcaption.inset-white {
    position: absolute;
    bottom: 0px;
    right: 0px;
    text-shadow: 1px 1px 2px #000000;
    color: #ffffff; 
}

.aspect-ratio-box {
    height: 0;
    overflow: hidden;
    padding-top: 66.67%; /* Fixed 1.5:1 aspect ratio */
    background: white;
    position: relative;
}
.aspect-ratio-box-inside {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.aspect-ratio-centered {
    display: block;
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
}
.carousel-caption {
    color: var(--secondary);
    position: unset;
    bottom: 0;
    padding-top: 13px;
    padding-bottom: 3px;
}
.carousel-indicators {
    position: unset;
    bottom: unset;
    margin-bottom: 0;
}
.carousel-indicators li {
    background-color: var(--secondary);
    width: 10px;
    height: 10px;
    border-radius: 100%;
    margin: 0 5px 0 5px;
}
.carousel-control-prev, .carousel-control-next {
    height: 0;
    padding-top: 33.33%; /* centre icons on photo, not full carousel */
    padding-bottom: 33.33%;
}
.carousel-control-prev-icon, .carousel-control-next-icon {
    background-image: unset;
    color: #fff;
    filter: drop-shadow(0px 3px 3px rgba(0, 0, 0, 0.4));
    font-size: 2.5rem;
    height: 2.5rem;
    width: 2.5rem;
}

/* Lists */

ul.no-bullets {
    list-style: none;
    padding-left: 0;
}
.year-list {
    list-style: none;
    padding-left: 0;
}
.year-list li {
    position: relative;
    padding-left: 3.5rem;
}
.year-list > li::before {
    content: attr(data-year);
    display: block;
    left: 0;
    position: absolute;
    text-align: left;
    width: 3em;
}
.paper {
    position: relative;
    margin-bottom: 1rem;
    padding-left: 3rem;
}
.paper::before {
    content: attr(data-index) '.';
    display: block;
    left: 0;
    position: absolute;
    text-align: right;
    width: 1.5em;
}
@media (min-width: 768px) { 
    .two-col {
        column-count: 2;
    }
    .two-col div {
        break-inside: avoid-column;
    }
    /* Fix Safari bug */
    .two-col > * {    
        display: inline-block;
        width: 100%;
    }
}


/* References */

.abstract-dropdown {
    font-size: 0.86rem;
    line-height: 1.35;
    padding-top: 1rem;
    padding-left: 1.5rem;
    padding-bottom: 0.5rem;
    position: relative;
    display: none;
}
.dropdown-arrow > .icon-rotatable {
    transition: transform 0.25s;
}
.dropdown-arrow.active > .icon-rotatable {
    transform: rotate(-180deg);
}
.popover {
    box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.1);
}
.popover-citation {
    margin: 0.5rem;
}
.btn-clipboard {
    margin: 0.5rem;
}


