\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{jouhandbook}[2026/03/07 JOU handbook helpers]

\RequirePackage{../../styles/joufonts}
\RequirePackage{graphicx}
\RequirePackage{array}
\RequirePackage{makecell}
\RequirePackage{multirow}
\RequirePackage{setspace}
\RequirePackage{indentfirst}

% Shared page rhythm for handbook forms and samples.
\linespread{1.25}
\setlength{\parindent}{2em}
\setlength{\tabcolsep}{0pt}
\setlength{\arrayrulewidth}{0.6pt}
\renewcommand{\arraystretch}{1.2}

\newcolumntype{L}[1]{>{\raggedright\arraybackslash}p{#1}}
\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}
\newcolumntype{R}[1]{>{\raggedleft\arraybackslash}p{#1}}

\newcommand{\JOUNameLogo}{../../figures/jou-name-large.png}
\newcommand{\JOUFullLogo}{../../figures/jou-logo-full.png}

\newcommand{\JOUCenteredTitle}[3][9cm]{%
    \begin{center}
        \includegraphics[width=#1]{\JOUNameLogo}\\[#2]
        #3
    \end{center}
}

\newcommand{\JOUEmptyCell}[2]{%
    \parbox[t][#1][t]{#2}{\mbox{}}%
}

\newcommand{\JOUTextCell}[3]{%
    \parbox[t][#1][t]{#2}{#3}%
}
