\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{prayer_circle}[2025/09/02 Custom class for academic documents]

% Pass options and load base class
\PassOptionsToClass{12pt,titlepage}{article}
\LoadClass{article}

% Core packages
\RequirePackage[utf8]{inputenc}
\RequirePackage[margin=1.0in]{geometry}
\RequirePackage[hyphens]{url}

% Font selection (NSF compliant)
% Uncomment ONE of the following font options:
 \RequirePackage{mathptmx} % Times New Roman (11pt minimum)
% \RequirePackage{mathpazo} % Palatino (10pt minimum) 
%  \RequirePackage{helvet}\renewcommand{\familydefault}{\sfdefault} % Arial (10pt minimum)
% Default: Computer Modern (11pt minimum) - current 12pt is compliant

% Document formatting
\RequirePackage[small,compact]{titlesec}
\RequirePackage{setspace}
\RequirePackage{datetime}
\RequirePackage{cite}
\RequirePackage{tocbibind}

% Set spacing and numbering
\singlespacing
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{5}

% Graphics and figures
\RequirePackage{graphicx}
\RequirePackage{pdfpages}
\RequirePackage{rotating}
% \RequirePackage[nolists,nomarkers]{endfloat} % Commented out - uncomment if needed

% TikZ libraries
\RequirePackage{tikz}
\usetikzlibrary{%
    positioning,%
    shapes,%
    arrows,%
    graphs,%
    calc,%
    chains,%
    decorations.markings,%
    shadows,%
    shapes.arrows,%
    arrows.meta%
}

% Standalone documents
\RequirePackage{standalone}

% Tables
\RequirePackage{booktabs}
\RequirePackage{tabularx}
\RequirePackage{makecell}
\RequirePackage{dcolumn}
\RequirePackage{multirow}
\RequirePackage{lscape}
\setlength{\belowcaptionskip}{\abovecaptionskip}

% Mathematics
\RequirePackage{amsmath}
\RequirePackage{amssymb}
\RequirePackage{mathrsfs}

% Lists and code
\RequirePackage[inline]{enumitem}
\RequirePackage{listings}
\setlist{noitemsep,listparindent=24pt}

% Specialized packages
\RequirePackage{pgfgantt}

% Custom lengths
\newlength{\figurewidth}
\setlength{\figurewidth}{0.9\textwidth}
\newlength{\figureheight}
\setlength{\figureheight}{0.75\textheight}

% Custom commands and counters
\newcounter{task}
\setcounter{task}{0}

\newcommand{\task}[2]{%
    \stepcounter{task}%
    \subsubsection{Task \arabic{task}: #1}%
    \begin{quote}%
        \textit{#2}%
    \end{quote}%
}

\newcommand{\emphitem}[1]{\item \emph{#1:}}

% Mathematical notation shortcuts
\newcommand{\mc}[1]{\mathcal{#1}}     % calligraphic (Q, X, etc.)
\newcommand{\ms}[1]{\mathscr{#1}}     % script
\newcommand{\mf}[1]{\mathfrak{#1}}    % Fraktur/Gothic
\newcommand{\bb}[1]{\mathbb{#1}}      % blackboard bold (ℝ, ℚ, etc.)

% Default document metadata (can be overridden)
\title{From Cold Start to Critical:\\ Synthesis of High Assurance Hybrid
Autonomous Control Systems}
\author{%
    PI: Dane A. Sabo\\
    dane.sabo@pitt.edu\\
    \\
    Advisor: Dr. Daniel G. Cole\\
    dgcole@pitt.edu\\
\\
    Track: PhD Mechanical Engineering
}

\date{\today}
