/* --- Base Body & Typography --- */
html, body {
    background-color: #5c4270;/*#f7f5fa;*/
    height: 100%;
    margin: 0;
    padding: 0;
    font-size: medium;
    font-family: 'Muli', 'Open Sans', sans-serif;
    color: #2b2533;
}

body {
    position: relative;
}

/* --- Container & Content --- */
div.container {
    position: relative;
    z-index: 0;
    width: min(74%, 1100px);
    min-height: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 2.5em;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 22px rgba(75, 0, 130, 0.08);
    overflow: hidden;
}

div.content {
    position: relative;
    z-index: 1;
    width: auto;
    max-width: 760px;
    min-height: 100%;
    margin: 0 auto 2.5em auto;
    padding: 0 3.5rem 2.5rem 3.5rem;
    background: transparent;
    font-size: medium;
    float: none;
    color: #2b2533;
    line-height: 1.65;
}

div.container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('ramonda-watermark-bg.png');
    background-repeat: no-repeat;
    background-position: center 180px;
    background-size: min(900px, 92%);
    opacity: 0.16;
    pointer-events: none;
    z-index: 0;
}

div.content p:first-of-type {
    margin-top: 0;
}

/* --- Headings --- */
h2 {
    vertical-align: middle;
    color: #ffffff;
    float: none;
    font-family: 'Rasa', serif;
    background-color: #5c4270;
    opacity: 0.92;
    padding: 0.38em 0.6em;
    border-radius: 3px;
    margin: 1.6rem 0 0.9rem 0;
}

h3 {
    vertical-align: middle;
    color: #6a4c82;
    float: none;
    font-family: 'Rasa', serif;
}

/* --- Navigation Menu --- */
div.menu {
    width: 100%;
    overflow: hidden;
    background-color: transparent;   /* was #5c4270 — remove it from here */
    position: relative;
    z-index: 1;
}

ul.menu {
    float: right;
    list-style-type: none;
    padding-right: 12%;
    margin: 0;
    overflow: hidden;
    background-color: #5c4270;       /* purple only on the nav bar */
    border-radius: 0 0 5px 5px;
    position: relative;
    z-index: 10;
}

p.signature {
    text-align: left;
    font-family: 'Pinyon Script', cursive;
    font-size: clamp(1.8rem, 2.8vw, 2.4rem);
    color: #5c4270;
    padding-left: 20%;
    /*margin: 0.2rem 0 0.8rem 0;*/
    float: left;
    line-height: .75;
}


.signature-icon {
    height: 40px;
    vertical-align: middle;
    margin-left: 18px;
    opacity: 0.95;
    background-color: #f7f5fa;
    border-radius: 999px;
    padding: 3px;
    box-sizing: content-box;
}

li.menu {
    float: left;
}

a.menu {
    display: inline-block;
    color: #ffffff;
    text-align: center;
    padding: 6px 10px;
    text-decoration: none;
    font-family: 'Rasa', serif;
    font-size: larger;
    transition: color 0.3s ease;
}

a.menu:hover {
    color: #f2ba49;
    cursor: pointer;
}

a.menu.active {
    color: #f2ba49;
    text-decoration: underline;
}

/* --- Links & Accents --- */
a.defaultl {
    color: #7b589c;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

a.defaultl:hover {
    color: #e5a722;
}

a.defaultl:visited {
    color: #a4468a;
}

/* --- Buttons (for Talks/News expansion) --- */
.news-toggle {
    margin: 1em;
    padding: 0.4em 0.8em;
    border: 1px solid #bf52a1;
    background-color: #ffffff;
    color: #bf52a1;
    font-family: 'Rasa', sans-serif;
    font-size: 0.9em;
    cursor: pointer;
    border-radius: 3px;
}

.news-toggle:hover {
    background-color: #f3e4f0;
}

.talks-toggle {
    margin: 0.5em 0.5em 0 0;
    padding: 0.3em 0.7em;
    border: 1px solid #bf52a1;
    background-color: #ffffff;
    color: #bf52a1;
    font-family: 'Rasa', sans-serif;
    font-size: 0.85em;
    cursor: pointer;
    border-radius: 3px;
}

.talks-toggle:hover {
    background-color: #f3e4f0;
}

.talks-controls {
    margin-top: 0.5em;
}

/* --- Misc layout --- */
div.subcontent {
    width: 100%;
    background-color: white;
    font-size: medium;
    float: left;
}

div.header {
    width: 100%;
    height: 90px;
    margin: 0;
    padding: 0;
    clear: both;
}

h1.header {
    padding-top: 1em;
    vertical-align: middle;
    float: none;
    color: #666666;
    font-family: 'Rasa', sans-serif;
    text-align: center;
    font-size: x-large;
}

ul.list {
    list-style: none;
    color: #0C0C0C;
    padding-left: 1.1rem;
    margin: 0.35rem 0 1.15rem 0;
}

li.list {
    padding-left: 0.2em;
    text-indent: -0.7em;
    font-size: medium;
    margin-top: 0.6em;
    line-height: 1.55;
}

li.list:before {
    content: "• ";
    color: #5d5c5d;
}

img.home {
    float: right;
    display: block;
    height: auto;
    width: min(30%, 220px);
    max-width: 220px;
    margin: 0.4rem 0 1rem 1.4rem;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.clear-float {
    clear: both;
}

p {
    padding-left: 0;
    padding-right: 0;
    margin: 0 0 1rem 0;
    text-align: justify;
    font-family: 'Muli', sans-serif;
    color: #0C0C0C;
    white-space: normal;
    text-indent: 0;
    font-size: medium;
    line-height: 1.7;
}

img {
    max-width: 100%;
    max-height: 100%;
}

p.date {
    padding-left: 1em;
    font-family: 'Muli', sans-serif;
    white-space: normal;
    color: #CC00FF;
    font-size: medium;
}

.sidebar-box {
    max-height: 100%;
    position: relative;
    overflow: hidden;
}

.sidebar-box .read-more {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 30px 0;
}

.publications-view {
    margin-top: 0.5em;
}

/* --- Fade-in animation --- */
.fade-in {
    animation: fadeIn 0.35s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(3px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Publication toggles --- */
.pub-toggle-container {
    margin-top: 0.3em;
    margin-bottom: 0.5em;
}

.pub-toggle { cursor: pointer; }
.pub-toggle:hover { text-decoration: underline; }
.pub-toggle.active { font-weight: bold; }
.pub-toggle.active b { text-decoration: underline; }

/* --- About page TOC --- */
.about-toc {
    margin: 0.5em 0 1em 0;
    padding: 0.4em 0.6em;
    border-left: 3px solid #bf52a1;
    background-color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
    font-family: inherit;
}

.about-toc-label {
    font-weight: bold;
    margin-right: 0.5em;
    font-family: inherit;
}

.about-toc a {
    margin-right: 0.5em;
    text-decoration: none;
    color: #bf52a1;
    font-family: inherit;
}

html { scroll-behavior: smooth; }

div.menu, div.header, p.signature, ul.menu {
    position: relative;
    z-index: 1;
}

/* --- Responsive --- */
@media screen and (max-width: 1024px) {
    div.container {
    position: relative;
    z-index: 0;
    width: min(74%, 1100px);
    min-height: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 2.5em;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 22px rgba(75, 0, 130, 0.08);
    overflow: hidden;
}

@media screen and (max-width: 640px) {
    div.container {
    position: relative;
    z-index: 0;
    width: min(74%, 1100px);
    min-height: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 2.5em;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 22px rgba(75, 0, 130, 0.08);
    overflow: hidden;
}
