body {
  /* font-family: Computer Modern Serif; */
  /* font-family: Arial, sans-serif; */
  font-family: Fira Sans Condensed;
  font-size: 16px;
  margin: 0;
  padding: 20px;
  background: #f8f9fa;
}

.container {
  max-width: 800px;
  margin: auto;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.controls input,
.controls select {
  padding: 10px;
  font-size: 16px;
  flex: 1;
}

.moreOptions {
  display: none;
}

.sticky-header {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    /* background: white;   /\* or your page background *\/ */
    z-index: 10;         /* stay on top of content */
    /* border-bottom: 1px solid #ccc; */
    padding-top: 12px;
    padding-bottom: 12px;
    margin-left: -16px;  /* Adjust to match the padding/margin of the container */
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
    /* font-weight: bold; */
    /* border-radius: 6px; */
    /* box-shadow: 0 1px 4px rgba(0,0,0,0.1); */
    margin-bottom: 10px;
  }

.talk {
  background: white;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

h3 {
  margin-top: 6px;
}

.bibliography-span {
  margin-top: 14px;
}


.inline-dl {
  margin-top: 0.5em;
}

.inline-dl .item {
  display: flex;
  align-items: baseline;
  margin-bottom: 0.5em;
}

.inline-dl .label {
  /* font-weight: bold; */
  margin-left: 0.5em;
  margin-right: 0.5em;
  min-width: 2em; /* optional: align labels nicely */
}

.inline-dl .description {
  margin: 0; /* remove default indent */
}

/* .abstract-span { */
/*   font-family: Fira Sans Condensed; */
/*   font-size: 16px; */
/* } */

.abstract-clickme:hover {
  cursor: pointer;
}


.centered-btn {
  justify-content: center; /* horizontal center */
  align-items: center;     /* vertical center */
  padding-left: 10px;
  padding-right: 10px;
  font-size: 16px;
  cursor: pointer;
}

.miniFilters {
  display: flex;
  gap: 8px;             /* space between filter blocks */
  flex-wrap: wrap;      /* wrap to next line if too wide */
  margin-top: 15px;
}

.miniFilter {
  display: none;
  font-size: 8pt;
  padding: 4px 8px;
  border-radius: 2px;
  /* border: 2px solid purple; */
  background-color: purple;
  color: white;
  align-items: center;
  gap: 4px;              /* space between text and X button */
}

.close-button {
  cursor: pointer;
  font-weight: bold;
  padding-left: 4px;
}

.close-button:hover {
  color: red;
}


.orcid-link img {
  width: 14px;
  height: 14px;
  vertical-align: middle; /* aligns nicely with text */
}


/**************/
/* math stuff */
/**************/
.displayed-math-equation {
  overflow-x: auto;
}

.smallskip {
  margin-top: 0.5em;
}

.medskip {
  margin-top: 1em;
}

.bigskip {
  margin-top: 2em;
}

.quote {
  margin: 0.5em 5%;
  font-style: italic;
}


/**************************/
/* multi-select drop down */
/**************************/
.multiselect {
  min-width: 200px;
}

.selectBox {
  position: relative;
}

.selectBox select {
  width: 100%;
}

.overSelect {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

#sessionFilter {
  display: none; /* show it on demand */
  position: absolute; /* set by JS */
  background-color: white;
  border: 1px solid gray;
  z-index: 999;
  overflow-y: auto;
  max-height: 500px; /* optional max height */
  box-sizing: border-box;
  border-radius: 4px;
}


#sessionFilter label {
  display: block;
  padding: 6px 10px;
  cursor: pointer;
  transition: background-color 0.2s;
  border-radius: 4px;
}

#sessionFilter label:hover {
  background-color: #1e90ff;
}



/**************************/
/* favorites              */
/**************************/

.talk-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* <-- changed from center to flex-start */
}

.talk-title {
  margin: 0; /* Remove default margin that might push things */
}

.fav-button {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #ccc;
  cursor: pointer;
  padding: 0;
}

.fav-button.favorited {
  color: gold;
}



/**************************/
/*    overlay dialogs     */
/**************************/
#overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;              /* Match container width */
  height: 100%;             /* Match container height */
  background: rgba(0, 0, 0, 0.6); /* Dim background */
  display: none;
  z-index: 100000;
}

#overlayContent {
  background: white;
  padding: 20px;
  max-width: 90%;
  margin: 100px auto;
  border-radius: 8px;
  box-shadow: 0 0 10px #000;
  text-align: center;
}


/* Overlay full screen, dark translucent background */
#outOffSyncDialog {
  display: flex;         /* Make sure it’s visible */
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.75); /* Darker, semi-transparent background */
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-family: Arial, sans-serif;
}

/* Dialog box styling */
#outOffSyncDialog .dialog-box {
  background: #fff;                /* White background */
  border-radius: 12px;
  padding: 25px 40px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  text-align: center;
  font-size: 1.2rem;
  color: #222;
  user-select: none;
  animation: fadeInScale 0.3s ease forwards;
}

/* Buttons container */
#outOffSyncDialog .dialog-buttons {
  margin-top: 25px;
  display: flex;
  justify-content: space-around;
  gap: 15px;
}

/* Buttons styling */
#outOffSyncDialog .dialog-buttons button {
  background-color: #007BFF;
  border: none;
  color: white;
  padding: 12px 22px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

#outOffSyncDialog .dialog-buttons button:hover {
  background-color: #0056b3;
}

/* .dialog-overlay { */
/*   position: fixed; */
/*   top: 0; left: 0; right: 0; bottom: 0; */
/*   background: rgba(0,0,0,0.5); */
/*   display: flex; */
/*   justify-content: center; */
/*   align-items: center; */
/*   z-index: 1000; */
/* } */

/* .dialog-box { */
/*   background: white; */
/*   padding: 20px 30px; */
/*   border-radius: 8px; */
/*   max-width: 300px; */
/*   text-align: center; */
/*   box-shadow: 0 2px 10px rgba(0,0,0,0.3); */
/* } */

/* .dialog-buttons button { */
/*   margin: 0 5px; */
/*   padding: 8px 15px; */
/*   cursor: pointer; */
/*   font-weight: bold; */
/* } */
