/* Source Sans Pro font import for consistency with blog */
@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300i,400,400i,600,600i,700,700i&display=swap");

/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAUi-qNiXg7eU0.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_FQftx9897sxZ.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_Gwftx9897g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Base styles with improved typography */
a {
  color: #1772d0;
  text-decoration: none;
}

a:focus,
a:hover {
  color: #f09228;
  text-decoration: none;
}

body,
td,
th,
tr,
p,
a {
  font-family: 'Source Sans Pro', 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

strong {
  font-family: 'Source Sans Pro', 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 16px;
}

h2 {
  margin: 0 0 10px 0;
  font-weight: 300;
  font-family: 'Source Sans Pro', 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 28px;
}

.papertitle {
  font-family: 'Source Sans Pro', 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.name {
  padding-top: 20px;
  margin: 0 0 10px 0;
  font-family: 'Source Sans Pro', 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 32px;
  font-weight: 300;
}

.one {
  width: 160px;
  height: 160px;
  position: relative;
}

.two {
  width: 160px;
  height: 160px;
  position: absolute;
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

.fade {
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

span.highlight {
  background-color: #ffffd0;
}

.colored-box {
    color: black;
    padding: 20px;
    display: inline-block;
    border-radius: 10px;
}

/* Improved desktop typography */
@media screen and (min-width: 992px) {
  body,
  td,
  th,
  tr,
  p,
  a {
    font-size: 16px;
  }
  
  .name {
    font-size: 32px;
    font-weight: 300;
  }
  
  h2 {
    font-size: 28px;
    font-weight: 300;
  }
}

/* Mobile-first responsive design */
@media screen and (max-width: 768px) {
  /* Enhanced mobile font sizes */
  body,
  td,
  th,
  tr,
  p,
  a {
    font-size: 17px;
    line-height: 1.6;
  }
  
  strong {
    font-size: 17px;
  }
  
  .papertitle {
    font-size: 17px;
    font-weight: 600;
  }
  
  h2 {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 15px;
  }
  
  .name {
    font-size: 28px;
    font-weight: 300;
    padding-top: 10px;
    text-align: center !important;
  }
  
  /* Main container adjustments */
  table {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
  }
  
  /* Header section adjustments */
  .header-section td {
    display: block !important;
    width: 100% !important;
    padding: 20px !important;
  }
  
  /* Hide desktop image on mobile - target both class and position */
  .desktop-image,
  .header-section td:last-child {
    display: none !important;
  }
  
  /* Show mobile image on mobile */
  .mobile-image {
    display: block !important;
  }
  
  /* Main content - left align text */
  .main-content {
    padding: 20px !important;
    text-align: left !important;
  }
  
  .main-content p {
    text-align: left !important;
    margin-bottom: 16px;
  }
  
  /* Keep contact links centered */
  .contact-links {
    text-align: center !important;
    font-size: 17px !important;
    line-height: 1.6 !important;
  }
  
  /* Research section - stack vertically */
  .research-section td {
    display: block !important;
    width: 100% !important;
    padding: 15px !important;
    text-align: center !important;
  }
  
  .research-section td:first-child {
    text-align: center !important;
  }
  
  .research-section td:last-child {
    text-align: left !important;
  }
  
  .research-image {
    max-width: 160px !important;
    margin: 0 auto 15px auto !important;
    display: block !important;
  }
  
  /* List items spacing */
  li {
    margin-bottom: 10px;
    line-height: 1.6;
    text-align: left !important;
  }
  
  ul, ol {
    text-align: left !important;
    padding-left: 20px;
    margin-bottom: 16px;
  }
  
  /* Blog and research content */
  .content-section {
    padding: 20px !important;
  }
  
  /* Reduce padding for mobile */
  .colored-box {
    padding: 18px;
    margin: 15px 0;
  }
}

/* Desktop: hide mobile image */
@media screen and (min-width: 769px) {
  .mobile-image {
    display: none !important;
  }
}

/* Tablet adjustments */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  body,
  td,
  th,
  tr,
  p,
  a {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .name {
    font-size: 30px;
    font-weight: 300;
  }
  
  h2 {
    font-size: 26px;
    font-weight: 300;
  }
}

/* Ensure images are responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Better link styling for mobile */
@media screen and (max-width: 768px) {
  a {
    padding: 2px 0;
    display: inline-block;
  }
}