% additional packages needed
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{array}
\usepackage{multirow}
\usepackage{wrapfig}
\usepackage{float}
\usepackage{colortbl}
\usepackage{pdflscape}
\usepackage{tabu}
\usepackage{threeparttable}
\usepackage{threeparttablex}
\usepackage[normalem]{ulem}
\usepackage{makecell}
\usepackage{xcolor}
\usepackage{fontspec}
\usepackage{fancyhdr}
\usepackage{titlesec}
\usepackage{amsmath}
\usepackage{subfig}

\IfFontExistsTF{Open Sans}{\setmainfont{Open Sans}}{\setmainfont{Arial}}
\IfFontExistsTF{Open Sans}{\setsansfont{Open Sans}}{\setsansfont{Arial}}
\IfFontExistsTF{JetBrains Mono}{\setmonofont{JetBrains Mono}}{\setmonofont{Consolas}}
\IfFontExistsTF{Jost}{\newfontfamily\ucdisplay{Jost}}{\newfontfamily\ucdisplay{Arial}}

% define colors
\definecolor{UCRed}{HTML}{E00122}
\definecolor{UCDarkRed}{HTML}{B8011C}
\definecolor{UCBearcatsBlack}{HTML}{333333}
\definecolor{UCLightGrey}{HTML}{F3F3F3}
\definecolor{UCMist}{HTML}{D8D5D0}

% hyperlink colors
\hypersetup{colorlinks=true, urlcolor=UCDarkRed, linkcolor=UCDarkRed, citecolor=UCRed}

% section header colors
\titleformat{\section}{\color{UCRed}\ucdisplay\Large\bfseries}{\thesection}{0.8em}{}
\titleformat{\subsection}{\color{UCDarkRed}\ucdisplay\large\bfseries}{\thesubsection}{0.8em}{}
\titleformat{\subsubsection}{\color{UCDarkRed}\ucdisplay\normalsize\bfseries}{\thesubsubsection}{0.8em}{}

\parindent 0in

% turn on the style
\pagestyle{fancy}
\fancyhead{}
\fancyfoot{}
\renewcommand{\headrulewidth}{0pt}
\fancyfoot[R]{\thepage}
\fancyfoot[C]{\textcolor{UCDarkRed}{University of Cincinnati}}

\fancypagestyle{plain}{%
  \fancyhf{}
  \renewcommand{\headrulewidth}{0pt}
  \fancyfoot[R]{\thepage}
  \fancyfoot[C]{\textcolor{UCDarkRed}{University of Cincinnati}}
}

% add references to TOC
\usepackage[nottoc]{tocbibind}

% add line after level 5 (paragraph) headers
\makeatletter
\renewcommand\paragraph{%
\@startsection{paragraph}{4}{0mm}%
{-\baselineskip}%
{.5\baselineskip}%
{\normalfont\normalsize\bfseries}}
\makeatother
