/* Site-specific overrides on top of the Colorlib "Aside" template (css/style.css).
   Colour theme: monochrome purple with cool grays (option A).
   Fonts: Lato (Google Fonts) with Helvetica/Arial fallback. */

:root {
  --purple: #8f2f8c;        /* primary accent: links, active nav, rules */
  --purple-dark: #5a1f58;   /* hover / emphasis */
  --purple-soft: #f3e6f2;   /* tints */
  --lilac: #b07cc6;         /* light secondary accent: keyword lines, avatars */
  --plum: #342232;          /* deep plum for headings and author name */
  --brown: #6d6a75;         /* secondary accent (cool gray): venue tags, section titles */
  --brown-dark: #7d7887;    /* secondary text */
  --tan: #b07cc6;           /* tertiary accent, now lilac */
  --beige: #f6f3f8;         /* sidebar background (light lavender-gray) */
  --beige-dark: #e4dfe9;    /* borders and rings */
  --text: #3b312d;
  --font-body: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-heading: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--plum); }
a { color: var(--purple); }
a:hover, a:active, a:focus { color: var(--purple-dark); }
/* hover underline on content links (the template forces none) */
.page-content a:hover, .page-content a:focus,
.research-overview a:hover, .news-list a:hover { text-decoration: underline !important; }

/* ---------- Sidebar ---------- */
#colorlib-aside {
  background: var(--beige);
  border-right: 1px solid var(--beige-dark);
  border-left: 6px solid var(--purple);
  border-image: linear-gradient(to bottom, var(--purple) 0%, var(--lilac) 100%) 1;
  border-top: 0; border-bottom: 0;
  border-right-width: 0;
}
#colorlib-aside #colorlib-logo a { color: var(--plum); font-size: 24px; }
#colorlib-aside .position { color: var(--brown-dark); margin-bottom: 1em; }
#colorlib-aside #colorlib-main-menu ul li { font-size: 13px; letter-spacing: 1.5px; }
#colorlib-aside #colorlib-main-menu ul li a { color: var(--text); }
#colorlib-aside #colorlib-main-menu ul li.active a { color: var(--purple); }
#colorlib-aside .colorlib-footer { color: var(--brown-dark); font-size: 13px; line-height: 1.6; }
#colorlib-aside .colorlib-footer .credit { color: #a39fab; font-size: 11px; }
#colorlib-aside .colorlib-footer .credit a { color: #a39fab; }
#colorlib-aside .author-img { box-shadow: 0 0 0 4px var(--beige-dark); }
.colorlib-nav-toggle i, .colorlib-nav-toggle i::before, .colorlib-nav-toggle i::after { background: var(--plum); }

/* social icons under the name */
.social-icons {
  list-style: none;
  margin: 0 0 2em 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.social-icons li { margin: 0; padding: 0; }
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: var(--purple);
  background: #fff;
  border: 1px solid var(--beige-dark);
  transition: 0.2s;
}
.social-icons a:hover { background: var(--purple); color: #fff; border-color: var(--purple); }
.social-icons a.cv-pill {
  width: auto; height: 34px;
  padding: 0 12px;
  border-radius: 17px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ---------- Section headings: left purple rule ---------- */
.colorlib-heading {
  font-size: 26px;
  font-weight: 700;
  color: var(--plum);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.2;
  border-left: 6px solid var(--purple);
  padding-left: 16px;
  margin-bottom: 1.2em;
}
@media screen and (max-width: 768px) { .colorlib-heading { font-size: 24px; margin-bottom: 1em; } }
.heading-meta { display: none; }

/* Colour helpers */
.c-link { color: var(--purple); }
.c-accent { color: var(--brown); }
.c-self { color: var(--plum); }
.c-muted { color: var(--brown-dark); }

.colorlib-section {
  padding-top: 2em;
  padding-bottom: 6em;
  clear: both;
  width: 100%;
  display: block;
}
@media screen and (max-width: 768px) { .colorlib-section { padding-top: 4em; } }

.page-content h3.section-title,
.page-content p.section-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--plum);
  margin: 1.8em 0 0.8em 0;
  border-left: 4px solid var(--purple);
  padding-left: 12px;
  line-height: 1.3;
}
.page-content h4.sub-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--brown);
  margin: 1.2em 0 0.4em 0;
}
.page-content ul, .page-content ol { padding-left: 1.4em; }
.page-content li { margin-bottom: 0.3em; }
.page-content .name { color: var(--purple); }
.page-description { margin-bottom: 1.5em; }

/* ---------- Home: research overview ---------- */
.research-intro { font-size: 17px; margin-bottom: 1.6em; }
.research-theme {
  display: flex;
  gap: 18px;
  padding: 1.2em 1.4em;
  margin-bottom: 1.2em;
  background: #fcfbfd;
  border: 1px solid var(--beige-dark);
  border-top: 3px solid var(--purple);
  border-radius: 3px;
}
.research-theme:nth-child(3) { border-top-color: var(--lilac); }
.research-theme:nth-child(4) { border-top-color: var(--plum); }
.research-num {
  flex: 0 0 auto;
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: #d9cfe0;
  padding-top: 4px;
}
.research-body { flex: 1 1 auto; min-width: 0; }
.research-body h3 { font-size: 20px; margin: 0 0 4px 0; }
.research-tag { font-size: 13px; color: var(--lilac); letter-spacing: 0.5px; margin-bottom: 0.7em; }
.research-body p { margin-bottom: 0.8em; }
.research-refs-label { display: block; font-size: 13px; font-weight: 700; color: var(--brown-dark); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.research-refs ul.bibliography { margin: 0; padding-left: 1.2em; font-size: 15px; }
.research-refs ul.bibliography li { margin-bottom: 2px; }
@media screen and (max-width: 600px) { .research-theme { flex-direction: column; gap: 6px; } .research-num { font-size: 26px; } }

/* ---------- Home: news ---------- */
.news-list { list-style: none; margin: 0 0 0.8em 0; padding: 0; }
.news-list li { padding: 6px 0; border-bottom: 1px dotted var(--beige-dark); margin: 0; }
.news-date { display: inline-block; min-width: 88px; color: var(--purple); font-weight: 700; }
.news-toggle { font-size: 14px; }

/* ---------- Publications ---------- */
.pub-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0.5em 0 1em 0; }
.pub-filter-label { color: var(--brown-dark); font-size: 14px; margin-right: 4px; }
.pub-filter-btn {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 5px 14px;
  border-radius: 16px;
  border: 1px solid var(--purple);
  background: #fff;
  color: var(--purple);
  cursor: pointer;
  transition: 0.2s;
}
.pub-filter-btn:hover { background: var(--purple-soft); }
.pub-filter-btn.active { background: var(--purple); color: #fff; }
.pub-filter-btn .count { opacity: 0.75; font-size: 12px; }
h3.bibliography {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--brown);
  margin: 1.6em 0 0.5em 0;
}
ol.bibliography { padding-left: 1.6em; }
ol.bibliography > li { margin-bottom: 1.2em; }
.pub-entry .pub-title { font-weight: 700; }
.pub-entry .pub-authors u { text-decoration: underline; }
.pub-entry .pub-authors .c-self { font-weight: 700; }
.pub-entry .pub-links { white-space: nowrap; }
.pub-entry:target { background: var(--purple-soft); outline: 6px solid var(--purple-soft); }

/* ---------- Openings note ---------- */
.note-warning {
  border-left: 4px solid var(--lilac);
  background: var(--purple-soft);
  padding: 0.8em 1em;
  margin: 1.5em 0;
}
.note-warning p:last-child { margin-bottom: 0; }

/* ---------- AIR Lab: people ---------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 22px 18px;
  margin: 0.5em 0 1.5em 0;
}
.person-card { text-align: center; }
.person-photo {
  width: 130px; height: 130px;
  margin: 0 auto 10px auto;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 3px var(--beige-dark);
}
.person-pi .person-photo { box-shadow: 0 0 0 3px var(--purple); }
.person-initials {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  background: var(--purple);
}
.person-initials[data-i="1"] { background: var(--lilac); }
.person-initials[data-i="2"] { background: var(--plum); }
.person-initials[data-i="3"] { background: var(--brown-dark); }
.person-name { font-family: var(--font-heading); font-size: 17px; font-weight: 700; }
.person-role { color: var(--purple); font-size: 14px; }
.person-since { color: var(--brown-dark); font-size: 13px; line-height: 1.4; }
.person-note { font-style: italic; }
.alumni-list { margin-bottom: 1em; }

/* ---------- Teaching panels ---------- */
.fancy-collapse-panel .panel-heading { margin-top: 0.5em; }
.fancy-collapse-panel .panel-body p { margin-bottom: 0.5em; }
.panel-heading a { font-family: var(--font-heading); }

/* ---------- Contact ---------- */
.colorlib-feature .colorlib-icon { background: var(--beige); }
.colorlib-feature .colorlib-icon i { color: var(--purple); }
