@charset "UTF-8";

/* ==========================================================================
   IMPORTS
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap");

/* ==========================================================================
   VARIABLES
   ========================================================================== */

:root {
  /* color palette */
  --color-dark:    #343a40;
  --color-medium:  #7c7a6d;
  --color-light:   #edebe2;

  --color-primary:   #81b29a;
  --color-secondary: #f2cc8f;
  --color-accent:    #e07a5f;

  --color-background: #ffffff;
  --color-text:       #222222;
  --color-text-muted: #666666;

  /* access status (publications) */
  --color-open-access:   #81b29a;
  --color-closed-access: #e07a5f;

  /* typography */
  --font-family:     "Urbanist", sans-serif;
  --font-size:       1.0em;
  --font-weight:     300;
  --font-weight-em:  500;
  --line-height:     1.5;

  /* layout */
  --navbar-height: 56px;
  --max-width:     920px;
  --space-sm:      1rem;
  --space-md:      1.6rem;
  --space-lg:      2.2rem;
}

/* ==========================================================================
   BASE
   ========================================================================== */

html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  padding-top: var(--navbar-height);
  font-family:      var(--font-family);
  font-size:        var(--font-size);
  line-height:      var(--line-height);
  font-weight:      var(--font-weight);
  background-color: var(--color-background);
  color:            var(--color-text);
  -webkit-text-size-adjust: 100%;
}

.container {
  max-width: var(--max-width);
}

section {
  position: relative;
  margin-top: 0;
  margin-bottom: var(--space-lg);
}

em {
  font-style: italic;
  font-weight: var(--font-weight-em);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
}

/* inline bulleted list (comma-free, dot-separated) */
.inline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: justify;
}

.inline-list li {
  display: inline;
}

.inline-list li:not(:first-child)::before {
  content: "";
  display: inline-block;
  width: 0.3em;
  height: 0.3em;
  border-radius: 1.5px;
  background-color: var(--color-secondary);
  opacity: 0.75;
  margin: 0 0.6em 0 0.4em;
  vertical-align: middle;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */

.bg-custom {
  background-color: var(--color-dark) !important;
}

/* logo badge */
.logo {
  width: 40px;
  height: 40px;
  background-color: var(--color-secondary);
  color: var(--color-dark);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo:hover {
  background-color: var(--color-light);
  color: var(--color-text-muted);
  transition:
    transform 0.9s ease,
    background-color 0.7s ease,
    color 0.6s ease;
}

/* nav links */
.navbar .nav-link {
  transition: color 0.2s ease;
}

.navbar .nav-link.active {
  color: var(--color-secondary) !important;
  font-weight: 500;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--color-secondary);
}

/* increase horizontal spacing between nav items on desktop */
@media (min-width: 992px) {
  .navbar .nav-link {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* dropdown caret toggle button (split from nav-link text) */
.nav-caret-toggle {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0 0.3rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-caret-toggle:hover,
.nav-caret-toggle:focus {
  color: var(--color-secondary);
  outline: none;
}

/* desktop: show dropdown on hover, anchored below the full .dropdown item */
@media (min-width: 992px) {
  .navbar .nav-item.dropdown {
    position: relative;
  }

  .navbar .nav-item.dropdown > .dropdown-menu {
    top: 100%;
    right: 0;
    left: auto;
    margin-top: 0;
  }

  .navbar .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
  }
}

/* mobile (collapsed navbar): submenu always visible, rendered inline */
@media (max-width: 991px) {
  .navbar .nav-caret-toggle {
    display: none;
  }

  .navbar .nav-item.dropdown {
    flex-wrap: wrap;
  }

  .navbar .nav-item.dropdown > .dropdown-menu {
    display: block !important;
    position: static !important;
    float: none;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0.1rem 0 0.5rem 0.75rem;
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transform: none !important;
    inset: auto !important;
  }

  .navbar .nav-item.dropdown .dropdown-item {
    padding: 0.3rem 0.5rem;
    font-size: 0.85rem;
  }

  .navbar .nav-item.dropdown .dropdown-divider {
    margin: 0.3rem 0;
    border-color: rgba(255, 255, 255, 0.15);
  }
}

/* dropdown menu */
.navbar .dropdown-menu {
  background-color: var(--color-dark);
  border: none;
  border-top: 2px solid var(--color-secondary);
  border-radius: 0 0 4px 4px;
  padding: 0.4rem 0;
  min-width: 200px;
}

.navbar .dropdown-item {
  color: var(--color-light);
  font-size: 0.9rem;
  padding: 0.25rem 1.5rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background-color: rgba(255, 255, 255, 0.07);
  color: var(--color-secondary);
}

/* visually distinct project link in dropdown */
.navbar .dropdown-item-project {
  color: var(--color-primary);
}

.navbar .dropdown-item-project:hover {
  color: var(--color-secondary);
}

.navbar .dropdown-divider {
  border-color: rgba(255, 255, 255, 0.12);
  margin: 0.3rem 0;
}

/* mobile collapsed menu */
@media (max-width: 991px) {
  #NavBarContent .nav-link {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* sticky offset helper */
.sticky-offset {
  top: var(--navbar-height);
}

/* ==========================================================================
   HEADINGS
   ========================================================================== */

h1 {
  margin: var(--space-sm) 0;
  font-size: 2.25rem;
  font-weight: 800;
}

h2 {
  font-size: 1.30rem;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0;
}

h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-medium);
}

hr {
  width: 50px;
  border: 1.8px solid var(--color-secondary);
  margin-bottom: var(--space-sm);
  opacity: 1;
}

.text-end hr {
  margin-left: auto;
  margin-right: 0;
}

/* ==========================================================================
   PAGE HEADER BLOCKS
   ========================================================================== */

/* generic page header (tinted band) */
.header {
  padding: var(--space-md) 0;
  background-color: var(--color-light);
  color: var(--color-dark);
}

/* profile / landing-page header */
.profile-header {
  background-color: var(--color-light);
  padding: 3rem 0;
}

.profile-header h1 {
  color: var(--color-dark);
  text-shadow: 1.1px 1.2px var(--color-medium);
  font-size: 2.5rem;
  font-weight: 550;
  margin-top: 0;
}

.profile-header h2 {
  color: var(--color-text-muted);
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 200;
}

/* profile photo */
.profile-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* header fade-in animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.profile-header img,
.profile-header h1,
.profile-header h2,
.profile-header .social {
  opacity: 0;
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.profile-header img    { animation-delay: 0.20s; }
.profile-header h1     { animation-delay: 0.35s; }
.profile-header h2     { animation-delay: 0.50s; }
.profile-header .social{ animation-delay: 0.65s; }

/* ==========================================================================
   SOCIAL ICONS
   ========================================================================== */

.social a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  border-radius: 6px;
  text-decoration: none;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.social a:hover {
  transform: translateY(-4px) scale(1.12);
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 6px 18px rgba(224, 122, 95, 0.32);
}

/* ==========================================================================
   MENU TILES (landing / research hub navigation)
   ========================================================================== */

.menu-tile {
  color: var(--color-text);
  border-radius: 0.75rem;
  padding: 1.75rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.menu-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 60%);
  pointer-events: none;
}

.menu-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.13);
}

.menu-tile-primary   { background-color: var(--color-primary); }
.menu-tile-secondary { background-color: var(--color-secondary); }
.menu-tile-accent    { background-color: var(--color-accent); }

.menu-tile h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.75);
  margin-bottom: 0.35rem;
}

.menu-tile p {
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: 0;
}

/* ==========================================================================
   BREADCRUMB NAVIGATION (research subpages)
   ========================================================================== */

/* breadcrumb "research >> publications" title styling */
.breadcrumb-title {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.breadcrumb-title .bc-parent {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-medium);
  opacity: 0.85;
}

.breadcrumb-title .bc-sep {
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 2.2rem;
}

.breadcrumb-title .bc-current {
  font-size: 2.2rem;
  font-weight: 400;
}

/* sibling page links below the header */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.33rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.breadcrumb-nav a {
  color: var(--color-medium);
  transition: color 0.2s ease;
}

.breadcrumb-nav a:hover {
  color: var(--color-accent);
}

.breadcrumb-nav .bc-active {
  color: var(--color-secondary);
  font-weight: 700;
  pointer-events: none;
}

.breadcrumb-nav .bc-divider {
  color: var(--color-medium);
  opacity: 0.5;
  user-select: none;
}

/* ==========================================================================
   RESEARCH STATEMENT (research.html – section header + plain body)
   ========================================================================== */

.research-statement-block h2 {
  display: flex;
  align-items: center;
}

.research-statement-block h2 i {
  color: var(--color-primary);
  font-size: 0.9em;
}

/* the statement paragraph itself — plain text, compact, justified */
.research-statement {
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: justify;
  color: var(--color-text);
  padding: 0.25rem 0 0 0;
}


/* ==========================================================================
   CARDS
   ========================================================================== */

/* base content card with scroll-reveal animation */
.card-subtle {
  background: var(--color-background);
  border: 1px solid rgba(150, 150, 150, 0.25);
  border-radius: 6px;
  padding: 1.2rem;
  box-shadow: 2px 4px 6px var(--color-light);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.card-subtle.visible {
  opacity: 1;
  transform: translateY(0);
}

/* right-column card variant */
.card-right {
  background: rgba(250, 250, 250, 0.9) !important;
}

/* contact-line icons (index.html "contact" card) */
.contact-icon {
  color: var(--color-primary);
}

/* muted prefix used inside a project-page H1 (e.g. "FWF PAT2152425:") */
.project-prefix {
  font-weight: 400;
  color: var(--color-medium);
}

/* collapsible card header */
.card-collapsible {
  position: relative;
  cursor: pointer;
  padding-top: 1.2rem;
}

.card-collapsible .collapse-toggle {
  position: absolute;
  right: 1rem;
  top: 1.5rem;
  color: var(--color-secondary);
  transition:
    transform 0.3s ease,
    color 0.3s ease;
  font-size: 0.9rem;
}

.card-collapsible.open .collapse-toggle {
  color: var(--color-light);
  transform: rotate(180deg);
}

.collapse-body {
  overflow: hidden;
  transition: max-height 0.35s ease;
  max-height: 0;
  cursor: default;
}

.collapse-body.open {
  max-height: 4000px;
}

/* --------------------------------------------------------------------------
   Sub-collapsible sections (nested within a card)
   -------------------------------------------------------------------------- */

.sub-collapse-container {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--color-light);
}

.sub-collapse-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  padding: 0.2rem 0;
}

.sub-collapse-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-medium);
  text-shadow: 1.2px 1.2px var(--color-light);
}

.sub-collapse-toggle {
  transition:
    transform 0.25s ease,
    color 0.25s ease;
  color: var(--color-secondary);
  font-size: 0.9rem;
}

.sub-collapse-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding-left: 0;
}

.sub-collapse-container.open .sub-collapse-body {
  max-height: 4000px;
}

.sub-collapse-container.open .sub-collapse-toggle {
  transform: rotate(180deg);
  color: var(--color-light);
}

/* ==========================================================================
   PUBLICATION / TALKS FILTER BAR
   ========================================================================== */

.searchbar {
  background-color: var(--color-medium);
  padding: 1rem 0;
}

/* filter grid: auto-fit columns */
.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
  align-items: center;
}

@media (max-width: 576px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }
}

.filter-grid select,
.filter-grid input {
  padding: 0.25rem;
  border-radius: 5px;
  font-size: 0.8rem;
}

/* reset button */
.reset-button {
  width: 100%;
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-light);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.reset-button:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

/* publication count display */
#pub-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-light);
  margin-top: 0.5rem;
}

/* mobile: collapsible filter panel */
.filter-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--color-light);
  margin-bottom: 0;
  user-select: none;
  line-height: 1;
}

.filter-toggle.open {
  margin-bottom: 0.65rem;
}

.filter-toggle span {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  line-height: 1;
}

.filter-toggle > .fa-angle-down {
  line-height: 1;
  display: flex;
  align-items: center;
}

.filter-toggle .fa-angle-down {
  transition: transform 0.25s ease;
}

.filter-toggle.open .fa-angle-down {
  transform: rotate(180deg);
}

.filter-wrapper {
  transition: max-height 0.3s ease, opacity 0.2s ease;
}

@media (max-width: 767px) {
  .filter-wrapper {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
  }

  .filter-wrapper.open {
    max-height: 1000px;
    opacity: 1;
  }
}

@media (min-width: 768px) {
  .filter-wrapper {
    max-height: none !important;
    opacity: 1 !important;
  }
}

/* ==========================================================================
   PUBLICATION LIST – ENTRY RENDERING
   ========================================================================== */

/* numbered list via CSS counter (entries rendered in reverse-chronological
   order so counter increments bottom-to-top to yield correct citation numbers) */
.templates {
  counter-reset: n;
  display: inline-flex;
  flex-direction: column-reverse;
  text-align: left;
  text-indent: -1.2em;
  padding-left: 2.4em;
}

.bibtexentry > :nth-child(1)::before {
  counter-increment: n;
  content: "[" counter(n) "]";
  display: inline-flex;
  width: 1.2em;
}

.nowhitespace {
  margin-left: -0.5ex;
}

/* open / closed access indicator icons */
.bibtexentry .ai {
  display: inline;
}

.bibtexentry .ai-open-access {
  color: var(--color-open-access);
  font-weight: 600;
}

.bibtexentry .ai-closed-access {
  color: var(--color-closed-access);
  font-weight: 600;
}

/* resource link buttons (abstract, pdf, doi, etc.) */
.resources {
  display: block;
  text-indent: 0;
  margin: 0.2em 0 1.2em 0;
}

.resources span a {
  font-size: 0.75rem;
  border-radius: 0.5rem;
  outline: solid 0.5px var(--color-primary);
  padding: 0 0.5em;
  margin-right: 0.25em;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    outline-color 0.18s ease;
}

.resources span a:hover {
  background-color: var(--color-primary);
  color: var(--color-background) !important;
  outline-color: var(--color-primary);
}

/* ==========================================================================
   OFFCANVAS (abstract / author list / info panels)
   ========================================================================== */

.offcanvas {
  overflow: auto;
}

.offcanvas-body {
  text-align: justify;
}

/* ==========================================================================
   PUBLICATION MODALS (abstract / author list / info)
   ========================================================================== */

.pub-modal .modal-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.pub-modal .modal-body {
  text-align: justify;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Bootstrap measures the page scrollbar and adds padding-right to <body>
   when a modal opens to "compensate" for the scrollbar it hides via
   overflow:hidden. Our scrollbar lives on <html> (via scrollbar-gutter),
   not <body>, so this compensation is spurious — and the extra padding
   shrinks <body>'s usable width on the right, pulling centered containers
   visibly leftward. Suppress it. */
body.modal-open {
  padding-right: 0 !important;
}

/* ==========================================================================
   TALKS PAGE – year-grouped layout
   ========================================================================== */

.talks-year-group {
  margin-bottom: 2rem;
}

.talks-year-heading {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0 0 0.25rem 0;
}

.talks-year-hr {
  width: 50px;
  border: 1.8px solid var(--color-secondary);
  margin: 0 0 0.75rem 0;
  opacity: 1;
}

/* inline flow of venue entries, separated by colored bullets */
.talks-venue-flow {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--color-dark);
  text-align: justify;
  text-justify: inter-word;
}

.talks-entry {
  white-space: normal;
}

.talks-venue-name {
  font-weight: 500;
}

/* italic "(upcoming)" prefix for not-yet-given talks */
.talks-upcoming-flag {
  font-style: italic;
  color: var(--color-accent);
  font-weight: 500;
  margin-right: 0.05rem;
}

/* italic "[online]" suffix when a talk was given remotely */
.talks-online-flag {
  font-style: italic;
  color: var(--color-text-muted);
  font-weight: 400;
  margin-left: 0.15rem;
}

/* bullet separator between consecutive entries */
.talks-bullet {
  display: inline-block;
  margin: 0 0.7rem;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.4em;
  line-height: 0;
  user-select: none;
  position: relative;
  top: 0.12em;
}

/* small icon cluster next to the venue */
.talks-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.4rem;
  vertical-align: baseline;
}

.talks-icon {
  font-size: 0.72rem;
  cursor: default;
  position: relative;
  top: -0.1em;
  transition: transform 0.18s ease;
}

.talks-icon:hover {
  transform: translateY(-1px);
}

.talks-icon-title   { color: var(--color-primary);    }
.talks-icon-date    { color: var(--color-text-muted); }
.talks-icon-invited { color: var(--color-secondary);  }
.talks-icon-keynote { color: var(--color-accent);     }

/* invited / keynote / online checkbox group — its own row beneath the
   filter grid, so a long set of toggles doesn't squeeze the main controls */
.filter-checks {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin-top: 0.65rem;
  padding: 0 0.25rem;
}

.filter-checks .form-check-label {
  font-size: 0.9rem;
  cursor: pointer;
}

.filter-checks .form-check-input {
  cursor: pointer;
}

.filter-checks .form-check-input:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ==========================================================================
   RÉSUMÉ PAGE
   ========================================================================== */

/* two-column layout */
.grid-resume {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 960px) {
  .grid-resume {
    grid-template-columns: 1fr;
  }
}

/* hide sidebar cards on narrow screens */
.col-hide {
  display: block;
}

@media (max-width: 960px) {
  .col-hide {
    display: none !important;
  }
}

/* CV item lists */
.cv-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.cv-list li {
  padding: 0.3rem 0 0.3rem 1.2rem;
  position: relative;
}

.cv-list li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0.3rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-secondary);
}

/* smaller sub-list variant */
.cv-list-sm {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.cv-list-sm li {
  padding: 0.1rem 0 0.1rem 1.2rem;
  position: relative;
}

.cv-list-sm li::before {
  content: "~";
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-light);
}

/* CV entry text helpers */
.role {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-dark);
}

.meta {
  font-size: 0.9rem;
  font-weight: 200;
  color: var(--color-medium);
}

.time {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

/* icon in right-column info cards */
.card-icon {
  color: var(--color-text-muted);
  width: 16px;
  text-align: center;
  margin-right: 6px;
  font-size: 0.8rem;
}

/* skills section */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
}

.skill {
  padding: 0.2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.skill-label {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.bar-wrap {
  background: var(--color-light);
  border-radius: 5px;
  height: 10px;
  overflow: hidden;
}

.bar-fill {
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(-90deg, var(--color-primary), var(--color-secondary));
  background-size: 140% 100%;
  animation: gradientFloat 15s ease-in-out infinite;
  transition: width 2s ease;
  width: var(--value);
}

.bar-fill[data-animated="false"] {
  width: 0% !important;
}

@keyframes gradientFloat {
  0%   { background-position: 0%   0%; }
  50%  { background-position: 100% 0%; }
  100% { background-position: 0%   0%; }
}

/* download buttons in résumé sidebar */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  padding: 0.3rem 0.85rem;
  border-radius: 5px;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  text-decoration: none;
}

.btn-download:hover {
  background-color: var(--color-primary);
  color: var(--color-background);
}

.btn-download-fill {
  flex: 1;
  justify-content: center;
}

/* ==========================================================================
   TEACHING PAGE
   ========================================================================== */

/* view-mode toggle bar */
.view-toggle-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.btn-view-toggle {
  font-size: 0.8rem;
  padding: 0.2rem 0.75rem;
  border-radius: 4px;
  min-width: 100px;
  border: 1.5px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-view-toggle.active {
  background-color: var(--color-primary);
  color: var(--color-background);
}

.btn-view-toggle:hover:not(.active) {
  background-color: rgba(129, 178, 154, 0.12);
}

/* teaching grid */
.row>* {
    padding-right: calc(var(--bs-gutter-x) * .25);
    padding-left: calc(var(--bs-gutter-x) * .25);
    margin-top: calc(var(--bs-gutter-y) * .66);
}

/* detail mode card */
#course-list .col {
  display: flex;
}

.course-card {
  width: 100%;
  height: 100%;
  min-height: 140px;
  border-radius: 8px;
  padding: 0.65rem 0.65rem;
  background-color: #fff;
  border: 1px solid rgba(150, 150, 150, 0.2);
  border-left: 3px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.22s ease,
              border-left-color 0.22s ease;
}

.course-card h5 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.course-card p {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.course-card p:last-child {
  margin-bottom: 0;
}

.course-divider {
  border-top: 1px solid rgba(150, 150, 150, 0.2);
  margin: 0.5rem 0;
}

/* summary mode card */
.summary-card {
  border-radius: 8px;
  padding: 0.65rem 0.65rem;
  background: var(--color-background);
  border: 1px solid rgba(150, 150, 150, 0.2);
  box-shadow: 0 2px 6px var(--color-light);
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.summary-card h5 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.summary-meta {
  font-size: 0.90rem;
  color: var(--color-text-muted);
}

/* slightly enlarged, secondary-coloured separator used between the
   level / language / format fields on course cards (both detail + summary) */
.meta-sep {
  display: inline-block;
  margin: 0 0.3em;
  color: var(--color-secondary);
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1;
  vertical-align: -0.02em;
}

.summary-count {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-primary);
  margin-top: 0.35rem;
}

.eval-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem;
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

/* card animations */
.course-animate-in {
  animation: fadeInUp 0.4s ease both;
}

.course-animate-out {
  animation: fadeOutDown 0.3s ease both;
}

/* evaluation PDF link buttons */
.btn-eval {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  font-size: 0.75rem;
  line-height: 1;
  padding: 0.5rem 0.3rem;
  border-radius: 5px;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
  text-decoration: none;
  transition:
    background-color 0.20s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.btn-eval:hover {
  background-color: var(--color-primary);
  color: var(--color-background);
  border-color: var(--color-primary);
}

/* ==========================================================================
   PROJECT PAGE (PAT / FWF)
   ========================================================================== */

/* two-column layout */
.grid-project {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-lg);
  align-items: start;
}

@media (max-width: 960px) {
  .grid-project {
    grid-template-columns: 1fr;
  }
}

/* project details table */
.project-details {
  width: 100%;
  border-collapse: collapse;
}

.project-details td {
  padding: 0.3rem 0;
  vertical-align: top;
  font-size: 0.9rem;
}

.project-details td:first-child {
  color: var(--color-medium);
  padding-right: 1.2rem;
  white-space: nowrap;
  font-weight: 600;
}

.project-details i {
  min-width: 16px;
  margin-right: 0.4em;
  color: var(--color-secondary);
  opacity: 0.9;
}

/* abstract paragraphs */
.abstract-text {
  text-align: justify;
  margin-bottom: 0.8rem;
}

.abstract-text:last-child {
  margin-bottom: 0;
}

/* sidebar info rows (links & resources) */
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.5;
}

.info-row i {
  color: var(--color-secondary);
  margin-top: 0.3rem;
  flex-shrink: 0;
  font-size: 0.9em;
  opacity: 0.9;
}

.info-row:last-child {
  margin-bottom: 0;
}

/* news / updates timeline */
.news-scroll-body {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 6px;
  margin-right: -6px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-secondary) rgba(250, 250, 250, 0.9);
}

.news-scroll-body::-webkit-scrollbar       { width: 6px; }
.news-scroll-body::-webkit-scrollbar-track { background: rgba(250, 250, 250, 0.9); border-radius: 4px; }
.news-scroll-body::-webkit-scrollbar-thumb { background: var(--color-secondary); border-radius: 4px; }

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  display: grid;
  grid-template-columns: 62px 18px 1fr;
  column-gap: 8px;
  align-items: start;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(150, 150, 150, 0.2);
}

.news-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-left {
  display: block;
  gap: 4px;
}

.news-date {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-medium);
  margin-bottom: -6px;
}

.news-dot {
  width: 5px;
  height: 5px;
  background: var(--color-secondary);
  border-radius: 50%;
  margin-top: 10px;
  flex-shrink: 0;
  justify-self: center;
}

.news-text {
  font-size: 0.9rem;
  color: var(--color-text);
}

/* news entry type badges */
.news-tag {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 15px;
}

.news-tag-admin     { background: rgba(124, 122, 109, 0.15); color: var(--color-medium); }
.news-tag-milestone { background: rgba(129, 178, 154, 0.18); color: var(--color-primary); }
.news-tag-event     { background: rgba(242, 204, 143, 0.25); color: #b07d30; }
.news-tag-paper     { background: rgba(224, 122, 95,  0.15); color: var(--color-accent); }

/* project team grid */
.team-members-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .team-members-grid {
    grid-template-columns: 1fr;
  }
}

.member-card {
  text-align: center;
  padding: 0.8rem 0.6rem;
  background: var(--color-background);
  border: 1px solid rgba(150, 150, 150, 0.18);
  border-radius: 6px;
  box-shadow: 1px 2px 5px var(--color-light);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.member-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.member-photo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  filter: grayscale(100%) sepia(20%) contrast(1.1) brightness(0.97);
}

.member-photo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-medium);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  margin-left: auto;
  margin-right: auto;
}

.member-role {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--color-secondary);
  margin-bottom: 2px;
}

.member-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-dark);
  margin-bottom: 2px;
}

.member-institution {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.member-link {
  font-size: 0.7rem;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 2px 9px;
  margin: 0 3px;
  border-radius: 12px;
  display: inline-block;
}

.member-link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background-color: var(--color-dark);
  color: var(--color-light);
  font-size: 0.9rem;
}

.footer-copy {
  text-align: center;
  color: var(--color-light);
}

.site-footer a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 400;
}

.site-footer a:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   PRIVACY MODAL
   ========================================================================== */

.custom-modal {
  background-color: var(--color-background);
  color: var(--color-text);
  border-radius: 10px;
  border: 1px solid var(--color-light);
}

.custom-modal-header {
  background-color: var(--color-light);
  border-bottom: 1px solid var(--color-medium);
}

.custom-modal-body {
  color: var(--color-text);
  line-height: 1.6;
}

.custom-modal-footer {
  background-color: var(--color-light);
  border-top: 1px solid var(--color-medium);
}

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */

.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  font-size: 0.8rem;
  background-color: var(--color-light);
  color: var(--color-dark);
  padding: 0.5rem 0;
  z-index: 1085;
}

#cookieBannerClose {
  font-size: 0.8rem;
  color: var(--color-light);
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}
