/* Markdown-like clean font stack */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #222;
}

/* Navigation bar – COMPACT & RESPONSIVE */
header {
  background: white;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.5rem 1rem;          /* tighter vertical padding */
}

.logo-hamburger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav .logo {
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0;
  line-height: 1;
}

.ibs-logo {
  height: 30px;
  margin-left: 4px;
  vertical-align: middle;
}

/* Horizontal menu on tablets & desktop */
.menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.menu a {
  text-decoration: none;
  color: #2e7d6b;
  font-weight: 500;
  white-space: nowrap;
}

.menu a:hover { text-decoration: underline; }

.menu a.memoirs-link {
  color: #8b0000;
  font-weight: 600;
}
.menu a.memoirs-link:hover {
  color: #b30000;
  text-decoration: underline;
}

/* Hamburger (only visible on phones) */
.hamburger {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #222;
  margin: 5px 0;
  transition: 0.3s;
}


/* Hero section */
.hero {
  position: relative;
  text-align: center;
  color: white;
}

.hero-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  filter: brightness(100%);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-text h1 {
  font-size: 2.5rem;
  margin: 0;
}


.hero-text banner{
    font-size: 1.7rem;
    font-weight: 300;
    color: white;
    text-align: center;
    text-shadow: 0px 2px 6px rgba(0,0,0,0.7);
    margin: 0;
    padding-top: 20vh;
}

.hero-text p {
  font-size: 1.2rem;
}

/* Main content */
.content {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}



/* Footer -------------------- */
/* FOOTER CONTAINER */
footer {
  padding: 20px;
   background-color: #f5f5f5; 
  margin-top: 40px;
  border-top: 1px solid #ccc;
}

.site-footer {
  background-color: #fff;
  padding: 20px 0;
  border-top: 1px solid #ddd;
  font-size: 0.9rem;
}

.footer-logos-container {
  max-width: 1000px;   /* match your header width */
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.footer-logos-left img {
  height: 50px;
  width: auto;
}

.footer-logos-right img {
  height: 40px;   /* adjust per logo */
  width: auto;
  margin-left: 15px;
}

.footer-logos-right a {
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  color: #555;
}

/* ALL LOGOS */
.footer-logo {
  height: 40px;   /* adjust as you prefer */
  opacity: 0.85;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.footer-logo:hover {
  opacity: 1;
}

/* A slightly larger IBS logo */
.footer-logo.ibs {
  height: 48px;
}

/* BOTTOM TEXT */
.footer-bottom {
  text-align: center;
  font-size: 14px;
  color: #555;
  margin-top: 10px;
}

/* End Footer */

.main-figure { 
  margin: 1.5rem auto;
  max-width: var(--w, 45%); /* default 45% if --w not set */
}

.main-imagewrap  { 
  display:block; width:100%;
  border-radius:1px;
  box-shadow:0 2px 8px rgba(0,0,0,0.1);
}

.main-imagewrapNoshadow  { 
  display:block; width:100%;
  border-radius:1px;
}

.main-caption{
  margin-top:0.4rem;
  font-size:0.85rem;
  color:#555;
  text-align:left;
  line-height:1.2;
}

.main-imageThin {
  display: block;
  margin: 1.5rem auto;
  max-width: 45%;
  border-radius: 1px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


.main-image {
  display: block;
  margin: 1.5rem auto;
  max-width: 90%;
  border-radius: 1px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


.person {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1.5rem;
}

.person-photo {
  width: 120px;      /* adjust as needed */
  height: 140px;     /* adjust as needed */
  object-fit: cover;
  /* border-radius: 50%; */ /* removed to make rectangle */
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.person-info h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #2e7d6b;
}

.person-info p {
  margin: 0.3rem 0;
  line-height: 1.4;
}


/* ─────────────────── Publications ─────────────────── */

.publication {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.publication img {
  width: 160px;
  height: 100px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center;
}

.publication .pub-text {
  font-size: 0.82em;
  line-height: 1.3;
}






.ibs-logo {
  height: 32px;        /* Adjust as you like */
  margin-left: 1px;    /* Small spacing after the @ */
  vertical-align: middle;
  cursor: pointer;
}


/* ─────────────────── RESPONSIVE NAV ─────────────────── */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    padding: 0.6rem 1rem;
  }
  .logo {
    margin-bottom: 0.1rem;
  }
  .menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

/* Hamburger menu on phones */
@media (max-width: 480px) {
  .logo-hamburger {               /* logo + hamburger on the same line */
    display: flex;
  }
  .nav .logo {
    font-size: 1.13rem;
  }
  .ibs-logo { height: 28px; }

  .hamburger { display: block; }

  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: white;
    position: absolute;
    top: 100%;
    left: 0;
    border-top: 1px solid #eee;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    z-index: 20;
  }
  .menu.active { display: flex; }

  .menu a {
    display: block;
    padding: 0.15rem 0.5rem;      /* compact but comfortable */
    text-align: left;
    color: #2e7d6b;
  }
  .menu a.memoirs-link { color: #8b0000; font-weight: 600; }
  .menu a:hover { background: #f8f8f8; }
  .menu a.memoirs-link:hover { background: #fff5f5; color: #b30000; }
}

/* Desktop / tablet – clean original layout, no wrapping */
@media (min-width: 481px) {
  .hamburger {
    display: none !important;
  }
  .logo-hamburger {
    all: unset;              /* completely removes the flex wrapper we added for mobile */
    display: block;
  }
  .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .menu {
    display: flex !important;
    gap: 0.4rem 1.3rem;
  }
}

  /* Hamburger button */
  .hamburger {
    display: block;
    cursor: pointer;
    padding: 0.5rem;
  }

  .hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #222;
    margin: 5px 0;
    transition: 0.3s;
  }


@media (min-width: 481px) and (max-width: 768px) {
  .nav .logo {
    font-size: 1rem;
  }
  .ibs-logo {
    height: 22px;
  }
  .menu {
    gap: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }
}

/* Hide hamburger on larger screens */
@media (min-width: 481px) {
  .hamburger {
    display: none;
  }
  .menu {
    display: flex !important;
  }
}

.nav .logo {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
