@font-face { font-family: "Cambay"; src: url("./fonts/Cambay-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cambay"; src: url("./fonts/Cambay-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cambay"; src: url("./fonts/Cambay-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cambay"; src: url("./fonts/Cambay-BoldItalic.ttf") format("truetype"); font-weight: 700; font-style: italic; font-display: swap; }
/* Shared Oxford Blue palette, navigation and footer for every live page. */
:root {
    color-scheme: light;
    --canvas: #f8f9fc;
    --ink: #29364d;
    --muted: #5b677d;
    --accent: #395bb0;
    --nav: #16213e;
    --nav-text: #f5f9ff;
    --on-accent: #ffffff;
    --panel: #e9edf8;
}
body { background: var(--canvas); color: var(--ink); }
a, a:link, a:visited { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.nav-links {
    overflow: hidden;
    background: var(--nav);
    padding: 0;
    list-style: none;
}
.nav-links a, .nav-links .icon {
    color: var(--nav-text);
    text-align: center;
    padding: 14px 16px;
    font-size: 20px;
    line-height: 1.5;
    text-decoration: none;
}
.nav-links a.active { background: var(--accent); color: var(--on-accent); }
.nav-links a:hover, .nav-links .icon:hover { background: var(--panel); color: var(--accent); }
.nav-links a:focus-visible, .nav-links button:focus-visible { outline-color: var(--nav-text); outline-offset: -4px; }
.intro-text h1 { background: none; color: var(--ink); -webkit-text-fill-color: var(--ink); }
.intro-text::before { background: var(--accent); }
.year-nav a:hover { color: var(--on-accent); }
tr:nth-child(even), tr:hover { background: var(--panel); }

/* Shared legal footer */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Older pages place their content inside the header. Let that content
   occupy its full height so the footer follows it in the document flow. */
body > header {
    height: auto;
}

.site-footer {
    box-sizing: border-box;
    width: 90%;
    max-width: 1440px;
    margin: auto auto 0;
    padding: 24px 0;
    border-top: 1px solid var(--panel);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 24px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--accent);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* Publication link states share the same Oxford Blue accent. */
.presentation .pub_list_published li a,
.presentation .pub_list_published li a:link,
.presentation .pub_list_published li a:visited,
.presentation .pub_list_published li a:hover,
.presentation .pub_list_published li a:active,
.presentation .pub_list_peer_review li a,
.presentation .pub_list_peer_review li a:link,
.presentation .pub_list_peer_review li a:visited,
.presentation .pub_list_peer_review li a:hover,
.presentation .pub_list_peer_review li a:active {
    color: var(--accent);
}

/* Local menu icon: no external icon font or CDN request. */
.menu-icon { display: inline-block; width: 18px; height: 14px; position: relative; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.menu-icon::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; border-top: 2px solid currentColor; }
.site-footer { justify-content: flex-start; }
.site-footer p { margin-right: auto; }
.privacy-note { border-left: 3px solid var(--accent); padding: 12px 18px; background: var(--panel); }
.privacy-content h3 { font-weight: 400; font-size: 20px; line-height: 1.4; }
.privacy-content ul { padding-left: 22px; }
.privacy-content li { margin-bottom: 8px; }

/* Keep navigation geometry identical across pages and scrollbar states. */
html { scrollbar-gutter: stable; }
body { margin: 0; }
body > header {
    box-sizing: border-box;
    width: 90%;
    max-width: 1440px;
    margin: 20px auto 0;
    padding: 0;
    flex-shrink: 0;
}
body > header .nav-links { margin: 0; padding: 0; }
body > header .nav-links a,
body > header .nav-links button { font-family: "Cambay", sans-serif; font-weight: 400; }
@media screen and (max-width: 800px) {
    body > header { margin-top: 12px; }
}

/* Single navigation component shared by main pages. */
.site-header > nav { display: block; }
.site-header .nav-links { display: flow-root; list-style: none; }
.site-header .nav-links > li { display: contents; }
.site-header .nav-links a { display: block; float: left; }
.site-header .nav-links .icon {
    display: none; border: 0; background: transparent; cursor: pointer;
    padding: 14px 16px; font-size: 20px; line-height: 1.5; color: var(--nav-text);
}
.site-header .nav-links a.active:hover { background: var(--accent); color: var(--on-accent); }
@media screen and (max-width: 800px) {
    .site-header .nav-links a:not(:first-child) { display: none; }
    .site-header .nav-links .icon { display: block; float: right; }
    .site-header .nav-links.responsive { position: relative; }
    .site-header .nav-links.responsive .icon { position: absolute; right: 0; top: 0; }
    .site-header .nav-links.responsive a { display: block; float: none; text-align: left; }
}

/* TU Dresden section navigation: teaching and thesis pages. */
.section-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 32px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--panel);
}
.section-tabs a {
    display: block;
    padding: 8px 20px;
    border-radius: 4px;
    background: var(--panel);
    color: var(--accent);
    font-size: 18px;
    line-height: 1.5;
    text-decoration: none;
}
.section-tabs a.active,
.section-tabs a.active:hover { background: var(--accent); color: var(--on-accent); }
.section-tabs a:hover { background: var(--nav); color: var(--nav-text); }
