/* Homepage content width and alignment */
#banner .intro-text {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

#banner .intro-text header {
    text-align: left;
}

#banner .intro-text p {
    max-width: none;
}

/* Publications page layout */
section#publications.container { 
    width: 90%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Logo in the header */
#header .logo img {
    height: 400px;
    width: auto;
    display: block;
    margin: 0 auto;
}

/* Soft brand gradient behind the header */
#header {
    background-image: linear-gradient(135deg, #FBCBB0 0%, #C4DDBE 50%, #B1C7EF 100%);
}

/* Dark menu links on the light header */
#header #nav a {
    color: #16181D;
    font-weight: 300;
    font-weight: 600;
    font-weight: 300;
    font-weight: 500;
    font-weight: 600;
}

/* Menu on the right */
#header #nav {
    text-align: right;
    padding-right: 2em;
}

/* Hide the theme's thin decorative lines either side of the menu */
#header #nav > ul > li:first-child:before,
#header #nav > ul > li:last-child:after {
    display: none;
}

/* Small logo in the top-left corner */
#header .corner-logo {
    position: absolute;
    top: 0.6em;
    left: 1.5em;
    z-index: 10001;
}
#header .corner-logo img {
    height: 50px;
    width: auto;
    display: block;
}

/* Hide the theme's double lines either side of the menu */
#header #nav > ul:before,
#header #nav > ul:after {
    display: none;
}

/* Remove leftover theme lines */
#header .corner-logo {
    border-bottom: 0;
}
#header #nav > ul {
    border: 0;
}

/* Text logo beside the corner lightbulb */
#header .corner-logo { display: flex; align-items: center; gap: 0.6em; }
#header .corner-logo img + img { height: 34px; }
#header .corner-logo { gap: 0.15em; }
#header .corner-logo img + img { height: 28px; }
#header #nav a { font-size: 1.15em; }

/* Text pages (Join Us, Team, ...): narrower column, comfy spacing */
#main.text-page { max-width: 46em; margin: 0 auto; padding: 3em 1.5em 4em; }
#main.text-page p { text-align: left; margin-bottom: 1.2em; }
#main.text-page > h2 { font-size: 1.5em; margin: 1.6em 0 0.4em; }

/* Publications: TOC graphic to the right of each paper */
.publication .toc { float: right; width: 220px; height: auto; margin: 0.3em 0 1em 1.5em; border-radius: 6px; }
.publication:after { content: ""; display: block; clear: both; }
.publication p { margin-bottom: 0.5em; }
@media (max-width: 736px) {
  .publication .toc { float: none; display: block; width: 100%; max-width: 360px; margin: 0.5em 0 1em; }
}
#main.text-page .publication p { margin-bottom: 0.3em; }
#main.text-page .publication { margin-bottom: 2em; }
#header { padding-top: 4em; }

/* Sticky top bar: menu + corner logo stay at the top when scrolling */
#header #nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 10000; background: rgba(255,255,255,0.8); backdrop-filter: blur(6px); box-shadow: 0 1px 6px rgba(0,0,0,0.08); }
#header .corner-logo { position: fixed; }
#header #nav { height: 70px; padding-top: 0; padding-bottom: 0; display: flex; align-items: center; justify-content: flex-end; background: rgba(255,255,255,0.45); }
#header .corner-logo { top: 0; height: 70px; }
#header #nav > ul { margin: 0; }
@media (min-width: 737px) { .publication .toc { width: 300px; } }

/* Year headings on the Publications page */
#main.text-page .pub-year { font-size: 2em; font-weight: 600; text-align: center; margin: 1.5em 0 0.8em; }
