/* base & reset */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* variables  */

:root {
    --font-family-sans: "Open Sans";
    --color-text: #333333;
    --color-text-subtle: #555555;
    --color-link: #0089c9;
    --color-background: #ffffff;
    --color-border: #dddddd;
    --width-container: 1000px;
}

/* general body & typography */

body {
    font-family: var(--font-family-sans);
    line-height: 1.5;
    background-color: var(--color-background);
    color: var(--color-text);
}

h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.8em;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 5px;
    margin-top: 50px;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.1em;
    margin-top: 50px;
}

a, a:visited {
    color: var(--color-link);
    text-decoration: none;
}

/* layout */

.container {
    max-width: var(--width-container);
    margin: 40px auto;
    padding: 0 40px;
}

header {
    text-align: center;
    margin-bottom: 50px;
}

.authors {
    font-size: 1.1em;
    margin-bottom: 0.5em;
}

.affiliations {
    font-size: 0.9em;
    color: var(--color-text-subtle);
}

footer {
    text-align: center;
    margin-top: 80px;
    font-size: 0.9em;
    color: var(--color-text-subtle);
}


/* table styles */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    table-layout: fixed;
}

th, td {
    border: 1px solid var(--color-border);
    padding: 0px 0px;
    text-align: center;
    vertical-align: middle;
}

table small {
    display: block;
    line-height: 1.3;
    margin-top: 0px;
    margin-bottom: 3px;
}

/* media elements */

img {
    display: block;
    height: auto;
    max-width: 100%; 
}

audio {
    width: 90%;
    margin: 5px 0px;
}

.centered-figure {
    margin: 10px 0;
}

.centered-figure img {
    margin-left: auto;
    margin-right: auto;
}

table .centered-figure img {
    max-width: 400px; 
}

/* code block */
pre {
    background-color: #f6f8fa;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    white-space: pre-wrap;
    word-break: break-all;
}

code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 0.9em;
}