@charset "UTF-8";

/*
 * Legacy design of minhoshim.com (2018, HTML5UP-derived), modernized:
 * - css/style.css, style-tablet.css, style-mobile.css merged into one file
 *   with media queries (tablet 769-1280px, mobile <=768px)
 * - vendor prefixes dropped, image paths moved to /assets/img/
 * - jQuery side-panel animation replaced by the .open class + max-height
 *   transition (see _layouts/default.liquid)
 * Loaded after the al-folio theme CSS so these rules win the cascade.
 */

/*********************************************************************************/
/* Basic                                                                         */
/*********************************************************************************/

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  /* the al-folio theme reserves 70px for its fixed footer; ours is static */
  padding: 0;
  background: #fff;
}

body,
input,
textarea,
select {
  font-family: "Raleway", sans-serif;
  font-size: 16pt;
  font-weight: 300;
  line-height: 1.75em;
  color: #888;
  -webkit-text-stroke: 0.3px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  font-weight: 200;
  color: #666;
  line-height: 1.5em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 a,
h2 a,
h3 a,
h4 a {
  color: inherit;
  text-decoration: none;
}

h1 strong,
h2 strong,
h3 strong,
h4 strong {
  font-weight: 300;
}

h2 {
  font-size: 2em;
  letter-spacing: -1px;
}

h2 #shadowWelcome {
  display: block;
  color: #888;
  text-shadow: 0px 0px 6px dimgrey;
}

h3 {
  font-size: 1.5em;
}

header {
  margin: 0 0 2em 0;
}

footer {
  margin: 0;
}

strong,
b {
  font-weight: 300;
  color: #666;
}

a {
  text-decoration: none;
  color: inherit;
  border-bottom: dotted 1px rgba(128, 128, 128, 0.5);
  transition:
    color 0.35s ease-in-out,
    border-bottom-color 0.35s ease-in-out;
  outline: 0;
}

a:hover {
  color: #3472b1;
  border-bottom-color: rgba(255, 255, 255, 0);
  text-decoration: none;
}

p,
ul,
ol,
dl,
table {
  margin-bottom: 2em;
}

/* Sections/Articles */

section,
article {
  margin-bottom: 3em;
}

#main .container {
  max-width: none;
  padding: 0 1.5em 0 1.5em;
}

section > :last-child,
article > :last-child,
section > .container > :last-child,
article > .container > :last-child {
  margin-bottom: 0;
}

section:last-child {
  margin-bottom: 0;
}

/* Images */

.image {
  display: inline-block;
  border: 0;
}

.image img {
  display: block;
  width: 100%;
}

.image.avatar48 {
  width: 48px;
  height: 48px;
  background: #1999cf;
}

.image.avatar48 img {
  width: 48px;
  height: 48px;
}

.image.full {
  display: block;
  width: 100%;
}

.headPic {
  border-style: solid;
  border-width: 5px;
  border-image: url("/assets/img/shadowBorder.png") 40 40 stretch;
  border-top-width: 0;
  /* the 2018 site got this gap from UA default h2/p top margins the theme resets */
  margin-bottom: 2.2em;
}

/* Lists */

ul.default {
  list-style: disc;
  padding-left: 1em;
}

ul.default li {
  padding-left: 0.5em;
}

ul.icons {
  margin-left: 0;
  padding-left: 0;
  cursor: default;
}

ul.icons li {
  margin-left: 0;
  padding-left: 0;
  display: inline-block;
  list-style: none;
}

ul.icons a {
  display: inline-block;
  width: 2em;
  height: 2em;
  line-height: 2em;
  text-align: center;
  border: 0;
}

ul.menu {
  cursor: default;
  padding-left: 0;
}

ul.menu li {
  display: inline-block;
  line-height: 1em;
  border-left: solid 1px rgba(128, 128, 128, 0.35);
  padding: 0 0 0 0.5em;
  margin: 0 0 0 0.5em;
  list-style: none;
}

ul.menu li:first-child {
  border-left: 0;
  padding-left: 0;
  margin-left: 0;
}

/* Buttons */

.button {
  position: relative;
  display: inline-block;
  line-height: 2.7em;
  padding: 0 1.5em 0 1.5em;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  color: #222729;
  border: solid 1px #222729;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0);
  transition:
    color 0.2s ease-in-out,
    border-color 0.2s ease-in-out,
    background-color 0.2s ease-in-out;
}

.button:hover,
.button:active {
  background-color: rgba(0, 0, 0, 0.1);
  border-color: #222729;
  color: #222729;
}

/*********************************************************************************/
/* Header (side panel)                                                           */
/*********************************************************************************/

#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 375px;
  height: 100%;
  color: #000000;
  background: #ffffff;
  box-shadow: inset 0 0 100px 0 rgba(0, 0, 0, 0.1);
  text-align: right;
  z-index: 10; /* so that buttons on #main don't conquer the header */
}

#header .top {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
}

@keyframes scale3d {
  0% {
    transform: scale3d(1, 1, 1);
  }
  50% {
    transform: scale3d(1.1, 1.1, 1.1) translateZ(1px);
  }
  100% {
    transform: scale3d(1, 1, 1) translateZ(1px);
  }
}

#header .bottom {
  font-size: 16pt;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
}

#header .bottom ul li i:hover {
  animation: scale3d 0.5s ease-in-out 0.15s infinite;
}

#header .icons {
  font-size: 0.8em;
  margin: 0 0 1em 0;
  text-align: center;
}

#header .icons a {
  color: #41484c;
  transition: color 0.35s ease-in-out;
}

#header .icons a:hover {
  color: #3472b1;
}

#logo {
  position: relative;
  margin: 1.75em 1.5em 1.5em 1.5em;
  min-height: 48px;
  cursor: auto;
}

#logo h1 {
  position: relative;
  color: #555;
  font-weight: 600;
  font-size: 1em;
  line-height: 1em;
  margin: 0;
}

#logo .underTitle {
  position: relative;
  display: block;
  font-size: 0.6em;
  color: rgba(0, 0, 0, 0.5);
  line-height: 1.25em;
  margin: 0.5em 0 0 0;
}

#logo .image {
  position: absolute;
  left: 0;
  top: 0;
}

#nav ul {
  margin-left: 0;
  padding-left: 0;
}

#nav ul li {
  list-style-type: none;
  list-style-position: outside;
  margin-left: 0;
  padding-left: 0;
  display: block;
}

#nav ul li a {
  display: block;
  padding: 0.5em 1.5em 0.5em 1.5em;
  color: rgba(0, 0, 0, 0.5);
  text-decoration: none;
  outline: 0;
  border: 0;
  transition: all 0.35s ease-in-out;
}

#nav ul li a span i {
  position: relative;
  float: left;
  display: block;
  font-size: 0.8em;
  padding: 3px;
}

#nav ul li a span i:before {
  position: absolute;
  left: 0;
  color: #41484c;
  text-align: center;
  width: 1.25em;
  line-height: 1.75em;
}

#nav ul li a:hover {
  background: rgba(0, 0, 0, 0.15);
  box-shadow: inset 0 0 0.25em 0 rgba(0, 0, 0, 0.125);
  color: #fff;
}

#nav ul li a:hover span i:before {
  color: #3472b1;
}

/*********************************************************************************/
/* Footer                                                                        */
/*********************************************************************************/

#footer {
  margin-left: 375px;
  min-width: 905px;
  text-align: center;
  background-color: #eaeaea;
  padding: 3em 0 4em 0;
  box-shadow:
    inset 0 1px 0 0 rgba(0, 0, 0, 0.05),
    inset 0 0.1em 0.1em 0 rgba(0, 0, 0, 0.025);
  font-size: 0.8em;
  overflow: hidden;
}

#footer .copyright {
  line-height: 1.25em;
}

#footer .copyright p {
  margin: 0 0 1em 0;
}

#footer .copyright .menu {
  margin: 0;
  padding: 0;
}

/*********************************************************************************/
/* Main                                                                          */
/*********************************************************************************/

#main {
  margin-left: 375px;
  min-width: 905px;
  overflow: hidden;
}

#main > section {
  margin: 0;
  overflow: hidden;
  padding: 3em 0 4em 0;
  box-shadow:
    inset 0 1px 0 0 rgba(0, 0, 0, 0.05),
    inset 0 0.1em 0.1em 0 rgba(0, 0, 0, 0.025);
  text-align: center;
  background-image: url("/assets/img/overlay.png");
}

#main > section.one {
  background: #fff;
  padding-top: 0;
}

#main > section.two {
  background-color: #fcfcfc;
}

#main > section.three {
  background-color: #f8f8f8;
}

#main > section.four {
  background-color: #f1f1f1;
}

#main #profile_image {
  width: 27%;
  margin-bottom: 1.5em; /* matches the UA-default paragraph gap of the 2018 site */
}

#about .container > p {
  text-align: left;
}

/* Experience follows the same quiet, text-first rhythm as publications. */
#main > #experience {
  background-color: #fafafa;
}

.experience-list {
  max-width: 960px;
  margin: 0 auto 2.5em;
  text-align: left;
  font-size: 0.85em;
  line-height: 1.75;
  color: #666;
}

.experience-entry {
  margin-bottom: 2em;
  padding-bottom: 2em;
  border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

.experience-entry:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5em 1.5em;
  margin-bottom: 1em;
}

.experience-header h3 {
  margin: 0 0 0.2em;
  color: #444;
  font-size: 1.35em;
  font-weight: 500;
}

.experience-header p {
  margin: 0;
}

.experience-role {
  font-weight: 400;
}

.experience-role span,
.experience-team,
.experience-dates {
  color: #777;
  font-size: 0.9em;
  font-weight: 300;
}

.experience-dates {
  text-align: right;
}

.experience-dates span {
  display: block;
}

.experience-entry > p,
.experience-project p {
  margin-bottom: 1em;
}

.experience-project {
  margin-top: 1.4em;
  padding-left: 1.1em;
  border-left: 2px solid #d6e3ed;
}

.experience-project h4 {
  margin: 0 0 0.4em;
  font-size: 1em;
  font-weight: 500;
  color: #444;
}

.experience-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 1.3em;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85em;
  color: #3472b1;
}

.experience-project-item {
  margin-bottom: 1em;
}

.experience-project-item p {
  margin-bottom: 0.3em;
}

@media screen and (max-width: 768px) {
  #main #experience .container {
    padding-right: 1.25em;
    padding-left: 1.25em;
  }

  .experience-list {
    font-size: 1em;
  }

  .experience-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .experience-dates {
    text-align: left;
  }

  .experience-role span {
    display: block;
  }
}

/* Publication lists (jekyll-scholar output) read left-to-right, not centered */
#main .publications,
#main .page-section,
#main .post {
  text-align: left;
}

/* Compact publication list: no venue badge column, tighter rhythm */
#main .publications {
  font-size: 0.8em;
  line-height: 1.6em;
}

#main .publications ol.bibliography {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

#main .publications ol.bibliography > li {
  margin-bottom: 1.5em;
}

#main .publications .col.abbr {
  display: none;
}

#main .publications .col-sm-8 {
  flex: 0 0 100%;
  max-width: 100%;
  scroll-margin-top: 4em;
}

#main .publications .col-sm-8:target {
  background-color: #edf4fc;
  outline: 2px solid #b8d3ef;
  outline-offset: 0.35em;
  border-radius: 2px;
}

#main .publications .title {
  font-weight: 400;
  color: #555;
}

#main .publications .links .btn {
  margin: 0.2em 0.3em 0 0;
  padding: 0.05em 0.6em;
  font-size: 0.7em;
}

.pub-legend {
  font-size: 0.7em;
  color: #999;
  margin-top: 2em;
}

/* Collapsed abstract box: the theme draws a border in the page background
   color (invisible on al-folio's white, but visible white dashes on our grey
   sections) — remove it entirely until opened */
#main .publications div.abstract.hidden,
#main .publications div.award.hidden {
  border: none;
}

/* Opened abstract box: restore the dashed border, add breathing room between
   the buttons row and the box, and roomier text inside (the theme default is
   a cramped 10px) */
#main .publications div.abstract.hidden.open,
#main .publications div.award.hidden.open {
  border: dashed 1px var(--global-text-color);
  margin: 0.9em 0 0.5em 0;
}

#main .publications .hidden p {
  margin: 1.1em 1.3em;
  line-height: 1.65em;
}

/*********************************************************************************/
/* Mobile Buttons                                                                */
/*********************************************************************************/

#homeButton {
  display: none;
}

#sidePanelToggle,
#whiteOverlay,
#navBar {
  display: none;
}

/* Keep the sidebar sections in normal flow so short landscape viewports
   scroll instead of letting the bottom links overlap the navigation. */
@media screen and (min-width: 769px) {
  #header {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }

  #header .top,
  #header .bottom {
    position: static;
    flex: 0 0 auto;
  }

  #header .bottom {
    margin-top: auto;
  }
}

/*********************************************************************************/
/* Tablet (769px - 1280px), from style-tablet.css                                */
/*********************************************************************************/

@media screen and (min-width: 769px) and (max-width: 1280px) {
  body,
  input,
  textarea,
  select {
    font-size: 13pt;
  }

  #main .container {
    padding: 0 1em 0 1em;
  }

  ul.icons li a {
    width: 1.75em;
  }

  #header {
    width: 191px;
  }

  #logo .image {
    position: relative;
    margin: 0 0 0.5em 0;
  }

  #nav ul li a {
    padding: 0.5em 1.25em 0.5em 1.25em;
  }

  #nav ul li a span {
    padding-right: 10px;
  }

  #nav ul li a span i {
    float: right;
    padding-top: 3px;
  }

  #footer {
    margin-left: 191px;
    min-width: 578px;
  }

  #main {
    margin-left: 191px;
    min-width: 578px;
  }
}

/*********************************************************************************/
/* Mobile (<= 768px), from style-mobile.css                                      */
/*********************************************************************************/

@media screen and (max-width: 768px) {
  body,
  input,
  textarea,
  select {
    font-size: 11pt;
  }

  #main .publications {
    font-size: 1em;
    line-height: 1.7;
  }

  #main .publications .links .btn {
    font-size: 0.85em;
  }

  h2 br {
    display: none;
  }

  h2 #shadowWelcome {
    text-shadow: 0px 0px 4px dimgrey;
  }

  .image.avatar48 img {
    display: block;
    text-align: right;
  }

  #main .container {
    padding: 0 0.5em 0 0.5em;
  }

  ul.icons {
    margin-left: 20px !important;
    padding-left: 0;
    cursor: default;
    display: inline;
  }

  /* Side panel becomes a top drawer, toggled via the .open class */
  #header {
    position: fixed;
    width: 100%;
    height: auto;
    max-height: 0;
    left: 0;
    top: 0;
    margin-top: 3em;
    overflow: hidden;
    z-index: 49;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.15);
    transition: max-height 0.3s ease-in-out;
  }

  #header.open {
    max-height: calc(100vh - 3em);
    overflow-y: auto;
  }

  #header .top {
    position: relative;
  }

  #header .bottom {
    border-top: solid 1px rgba(255, 255, 255, 0.05);
    box-shadow: 0 -1px 0 0 rgba(0, 0, 0, 0.15);
    padding-top: 1em;
    margin-top: 1em;
    position: relative;
    text-align: center;
  }

  #logo {
    margin: 1.5em 1.25em 1.25em 1.25em;
  }

  #logo h1 {
    padding-top: 0.6em;
  }

  #logo .image {
    position: relative;
    float: left;
  }

  #whiteOverlay {
    display: block;
    position: fixed;
    min-height: 3em;
    top: 0;
    overflow: hidden;
    width: 100%;
    background-color: rgba(247, 247, 247, 0.77);
    z-index: 49;
  }

  #navBar {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    margin: -5px 0 0 -5px;
    z-index: 50;
    min-height: 3.333em;
    width: 120%;
    background: rgba(247, 247, 255, 0.77);
    border-bottom: solid 1px rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.1);
    filter: blur(9px);
  }

  #nav ul {
    /* Keep each link intact: floats and positioned glyphs can escape
       fragmented CSS columns in mobile browsers. Preserve column order. */
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    gap: 0;
  }

  #nav ul li a {
    padding: 0.5em 1.25em 0.5em 1.25em;
  }

  #nav ul li a span {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 0.5em;
    padding-right: 0;
  }

  #nav ul li a span i {
    position: static;
    float: none;
    flex: 0 0 1.25em;
    padding: 0;
    line-height: 1;
    text-align: center;
  }

  #nav ul li a span i:before {
    position: static;
    display: block;
    width: auto;
    line-height: 1;
  }

  #footer {
    margin: 0;
    min-width: 100%;
  }

  #main {
    position: relative;
    margin: 3em 0 0 0;
    min-width: 100%;
  }

  /* Anchored sections shouldn't hide under the fixed mobile top bar */
  #main > section {
    scroll-margin-top: 3em;
  }

  #main #profile_image {
    width: 80%;
  }

  #sidePanelToggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 0;
    top: 0;
    width: 4em;
    height: 3em;
    background: transparent;
    border-radius: 0.267em;
    text-decoration: none;
    font-weight: 600;
    color: #222729;
    cursor: pointer;
    z-index: 100;
    border: 0;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
  }

  #homeButton {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    padding-left: 0.75em;
    padding-right: 0.75em;
    width: auto;
    white-space: nowrap;
    height: 3em;
    background-color: rgba(255, 255, 255, 0);
    border-radius: 0.267em;
    text-decoration: none;
    font-weight: 600;
    color: #222729;
    cursor: pointer;
    line-height: 3em;
    text-align: center;
    z-index: 100;
  }

  #homeButton a,
  a#homeButtonLink {
    border-bottom: 0;
    transition: none;
    outline: 0;
  }

  #homeButton a:hover {
    color: inherit;
  }
}

