
%% Styles
%% ==============================================================================

%% Colors
\setmanualcolor
\colorlet{manualcolorshaded}{manualcolor!60}
\definecolor{orcidcolor}{HTML}{A6CE39}

%% Page layout
\pagestyle{scrheadings}
\addtokomafont{pagehead}{  \sffamily              }
\addtokomafont{pagefoot}{  \sffamily \footnotesize}
\addtokomafont{pagenumber}{\sffamily \slshape     }
\addtokomafont{chapter}{\color{white}}
\ohead{} \ofoot{}   %% Clear defaults

%% Caption
\captionsetup{font = footnotesize, justification = justified}

%% Footnote
\renewcommand{\thefootnote}{\fnsymbol{footnote}}

%% Bibliography
\bibliographystyle{../../global/ametsoc}
\renewcommand{\bibfont}{\small}
\renewcommand{\bibpreamble }{\begin{multicols}{2}}
\renewcommand{\bibpostamble}{  \end{multicols}   }

%% Catcodes
\makeatletter

%% Prevent error with tikz and namelist inclusion
\global\let\tikz@ensure@dollar@catcode=\relax

%% Apply engine color for chapter headings: tweaking snippets from fncychap.sty
\renewcommand{\DOCH}{%
  \settowidth{\py}{\CNoV\thechapter}
  \addtolength{\py}{-10pt}      % Amount of space by which the
%                                  % number is shifted right
  \fboxsep=0pt%
  \colorbox{manualcolor}{\rule{0pt}{40pt}\parbox[b]{\textwidth}{\hfill}}%
  \kern-\py\raise20pt%
  \hbox{\color{manualcolorshaded}\CNoV\thechapter}\\%
}
\renewcommand{\DOTI}[1]{%
  \nointerlineskip\raggedright%
  \fboxsep=\myhi%
  \vskip-1ex%
  \colorbox{manualcolor}{\parbox[t]{\mylen}{\color{white}\CTV\FmTi{#1}}}\par\nobreak%
  \vskip 40\p@%
}
\renewcommand{\DOTIS}[1]{%
  \fboxsep=0pt
  \colorbox{manualcolor}{\rule{0pt}{40pt}\parbox[b]{\textwidth}{\hfill}}\\%
  \nointerlineskip\raggedright%
  \fboxsep=\myhi%
  \vskip-1ex% Remove white 1pt line
  \colorbox{manualcolor}{\parbox[t]{\mylen}{\color{white}\CTV\FmTi{#1}}}\par\nobreak%
  \vskip 40\p@%
}

\makeatother
