/* 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;
}

a {
  color: #006400;
  text-decoration: none;
}

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

body,
td,
th,
tr,
p,
a {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
}

strong {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
}

h2 {
  margin: 0;
  font-weight: normal;
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 22px;
}

.papertitle {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

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

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

/* Hide mobile profile picture by default */
.profile-media-mobile {
  display: none;
}

.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;
}body {
  margin: 0;
  padding: 32px 16px 64px;
  background-color: #ffffff;
  color: #1a1a1a;
}

img {
  max-width: 100%;
  height: auto;
}

table {
  width: 100%;
  max-width: 100%;
}

.page-section {
  width: 100%;
  max-width: 960px;
  margin: 0 auto 48px;
}

.profile-layout {
  border-collapse: separate;
}

.profile-content {
  width: 100%;
}

.profile-copy,
.profile-media {
  padding: 32px 3%;
}

.profile-media {
  text-align: center;
}

.profile-media img {
  border-radius: 50%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.active-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 20px;
  background: #000;
  width: 100%;
  box-sizing: border-box;
}

.active-projects-grid > div,
.active-projects-grid .project-box {
  background: #fff;
  padding: 30px;
  border: 1px solid #000;
  box-sizing: border-box;
  width: 100%;
}

.active-projects-grid > div:first-child,
.active-projects-grid .project-box:first-child {
  border-right: none;
}

.active-projects-grid > div:last-child,
.active-projects-grid .project-box:last-child {
  border-left: none;
}

.timeline-wrapper {
  position: relative;
  padding: 30px 0;
}

.timeline-track {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.timeline-item {
  text-align: center;
}

.projects-grid {
  width: 100%;
  max-width: 60% !important;
  margin: 0 auto 80px !important;
}

@media (max-width: 1024px) {
  body {
    padding: 28px 16px 56px;
  }

  .projects-grid {
    max-width: 80% !important;
  }

  .page-section {
    max-width: 90%;
  }
}

@media (max-width: 900px) {
  body {
    padding: 24px 16px 48px;
  }

  /* Force table cells to stack, but hide profile-media td */
  .profile-content tbody,
  .profile-content tr {
    display: block !important;
    width: 100% !important;
  }

  /* Only make profile-copy td display as block, hide profile-media td */
  .profile-content td.profile-copy {
    display: block !important;
    width: 100% !important;
  }

  /* Ensure profile picture appears below name */
  .profile-copy {
    padding: 20px 0 0 0 !important;
    text-align: center;
    width: 100% !important;
    display: block !important;
  }

  /* Hide desktop profile picture completely - hide the td */
  .profile-content td.profile-media {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
  
  /* Also hide any profile-media elements */
  td.profile-media,
  .profile-media {
    display: none !important;
  }

  .profile-media-mobile {
    display: table-row !important;
  }

  .profile-media-mobile td {
    padding: 20px 0 !important;
    text-align: center;
    display: block !important;
    width: 100% !important;
  }

  .profile-media-mobile img {
    max-width: 200px !important;
    width: 200px !important;
    margin: 0 auto;
    display: block;
  }

  /* Stack active projects vertically */
  .active-projects-grid {
    grid-template-columns: 1fr !important;
    max-width: 100%;
    overflow: visible;
  }

  .active-projects-grid > div:first-child,
  .active-projects-grid .project-box:first-child {
    border-right: 1px solid #000 !important;
    border-bottom: none !important;
  }

  .active-projects-grid > div:last-child,
  .active-projects-grid .project-box:last-child {
    border-left: 1px solid #000 !important;
    border-top: none !important;
  }

  .active-projects-grid > div,
  .active-projects-grid .project-box {
    padding: 24px 20px !important;
    width: 100%;
    box-sizing: border-box;
  }

  .timeline-axis {
    display: none !important;
  }

  /* Allow timeline to wrap into 2 rows when needed */
  .timeline-track {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 16px;
    align-content: flex-start;
  }

  .timeline-item {
    flex: 0 0 auto;
    min-width: auto;
    max-width: calc(50% - 8px);
  }

  .projects-grid {
    max-width: 70% !important;
  }

  .page-section {
    max-width: 90% !important;
    margin-left: auto;
    margin-right: auto;
    width: 100% !important;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  /* Ensure parent table doesn't overflow */
  .profile-layout {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  /* Ensure content table doesn't overflow */
  .profile-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .name {
    font-size: 26px;
  }

  h2 {
    font-size: 20px;
  }

  body,
  td,
  th,
  tr,
  p,
  a {
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  body {
    padding: 20px 12px 40px;
  }

  .active-projects-grid > div {
    padding: 20px 16px;
  }

  /* Allow timeline to wrap into 2 rows when needed */
  .timeline-track {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 12px;
    align-content: flex-start;
  }

  .timeline-item {
    flex: 0 0 auto;
    min-width: auto;
    max-width: calc(50% - 6px);
  }

  .projects-grid {
    max-width: 75% !important;
  }

  .page-section {
    max-width: 95% !important;
    margin-left: auto;
    margin-right: auto;
    width: 100% !important;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .profile-layout {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .profile-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .name {
    font-size: 24px;
  }

  h2 {
    font-size: 18px;
  }

  body,
  td,
  th,
  tr,
  p,
  a {
    font-size: 13px;
  }

  .papertitle {
    font-size: 13px;
  }

  .profile-media-mobile img {
    max-width: 180px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 16px 10px 32px;
  }

  .profile-copy p {
    font-size: 12px;
    line-height: 1.6;
  }

  .name {
    font-size: 22px;
  }

  h2 {
    font-size: 16px;
  }

  h3 {
    font-size: 0.7rem;
  }

  body,
  td,
  th,
  tr,
  p,
  a {
    font-size: 12px;
  }

  .papertitle {
    font-size: 12px;
  }

  .active-projects-grid > div {
    padding: 18px 14px;
  }

  .active-projects-grid h4 {
    font-size: 0.85rem;
  }

  .active-projects-grid p {
    font-size: 0.8rem;
  }

  .profile-media-mobile img {
    max-width: 160px;
  }

  .projects-grid {
    max-width: 80% !important;
  }

  .page-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .profile-layout {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .profile-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .one,
  .two {
    width: 140px;
    height: 140px;
  }
}
