/* Core resets and base styles */
* {
    margin: 0px;
    padding: 0px;
}

html {
    height: 100%;
    margin-bottom: 1px;
}

body {
    background: rgba(0, 0, 0, 0);
    margin-top: 0;
    padding: 0;
    font-size: 1rem;
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #004494;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Headings */
h2,
h3 {
    margin: 5px;
    font-weight: normal;
    color: #004494;
}

h2 {
    font-size: 1.5em;
}

h3 {
    font-size: 1.2em;
}

/* Back to top button */
#back-top {
    position: fixed;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: #fff;
    border: 2px solid #004494;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 68, 148, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

#back-top:hover,
#back-top:focus {
    background: #004494;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 68, 148, 0.4);
    outline: 3px solid #004494;
    outline-offset: 2px;
}

#back-top:hover svg,
#back-top:focus svg {
    color: #fff;
}

#back-top svg {
    width: 24px;
    height: 24px;
    color: #004494;
    transition: color 0.3s ease;
}

@media (max-width: 1130px) {
    #back-top {
        left: 10px;
    }
}

@media (min-width: 1130px) {
    #back-top {
        right: 10px;
    }
}

/* Links */
a {
    color: #004494;
    text-decoration: underline;
}

a:active,
a:visited {
    color: #54278f;
    text-decoration: underline;
}

a:focus {
    outline: 3px solid #004494;
    outline-offset: 2px;
}

a img {
    border: none;
}

/* Focus styles for buttons and interactive elements */
button:focus {
    outline: 3px solid #004494;
    outline-offset: 2px;
}

/* Typography */
b {
    font-size: 110%;
}

p strong {
    margin-bottom: 10px;
    margin-top: 3px;
}

/* Content formatting */
#contentcolumn ul {
    margin-left: 20px;
}

#contentcolumn p {
    margin-bottom: 10px;
}

/* User panel */
#userpanel {
    padding-top: 20px;
    padding-right: 20px;
    padding-left: 20px;
}

/* Utilities */
.clear {
    clear: both;
}

img {
    max-width: 100%;
}

/* News section */
.news-section {
    max-height: 130px;
    overflow: auto;
    background-color: #fff9e6;
    color: #000;
}

/* Research team - people list */
#research-people-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.research-person {
    width: 110px;
    height: 130px;
    font-size: 80%;
    float: left;
    text-align: left;
}