% ============================================================
%  cv-short.tex  --  1-2 page highlight CV
%  Two-column layout via paracol: main content left, "at a glance"
%  + recognition tags in the right sidebar.
%  Build with: make short
% ============================================================
\documentclass[10pt,a4paper,ragged2e,withhyper]{altacv}

\input{preamble.tex}
\usepackage{paracol}

% Narrow page margins for a denser look.
\geometry{left=1.2cm,right=1.2cm,top=1.2cm,bottom=1.2cm,columnsep=0.9cm}

% Sidebar visual: light grey background colour for the right column.
\definecolor{SidebarBG}{HTML}{F4F4F4}

% Tighter section spacing for the short variant.
\renewcommand{\cvsectionfont}{\Large\bfseries}
\renewcommand{\cvsubsectionfont}{\normalsize\bfseries}
\setlength{\parskip}{1pt}

% Compress \cvsection: less top whitespace, thinner rule.
\renewcommand{\cvsection}[2][]{%
  \nointerlineskip\medskip%
  {\color{heading}\cvsectionfont\MakeUppercase{#2}}\\[-0.6ex]%
  {\color{headingrule}\rule{\linewidth}{1.4pt}\par}\smallskip
}

% Compress \cvevent: drop trailing \medskip.
\makeatletter
\renewcommand{\cvevent}[4]{%
  {\large\color{emphasis}#1\par}
  \smallskip\normalsize
  \ifstrequal{#2}{}{}{\textbf{\color{accent}#2}\par\smallskip}%
  \ifstrequal{#3}{}{}{%
    {\small\makebox[0.5\linewidth][l]{\cvDateMarker~#3}}}%
  \ifstrequal{#4}{}{}{%
    {\small\makebox[0.5\linewidth][l]{\cvLocationMarker~#4}}}\par
  \smallskip\normalsize
}
\makeatother

% Compact one-item-per-line list for the sidebar (replaces \cvtag pills,
% which can't wrap inside the narrow column).
\newcommand{\sbitem}[1]{%
  \par\noindent\textcolor{accent}{\small\faAngleRight}~\small #1\par%
}

\begin{document}

% Photo (short CV only). altacv default: circular crop, no \normalphoto opt.
\photoR{2.2cm}{images/gilestro}

% Full-width header at the top
\input{chapters/header.tex}

% Two columns: main (left, 66%) / sidebar (right, 34%)
\columnratio{0.66}
\setlength{\columnsep}{2em}
\setlength{\columnseprule}{0pt}
\begin{paracol}{2}

% =============== MAIN COLUMN (left) ===========================
\input{chapters/short/current.tex}
\input{chapters/short/education.tex}
\input{chapters/short/grants-selected.tex}
\input{chapters/short/products.tex}
\input{chapters/short/pubs-selected.tex}

\switchcolumn

% =============== SIDEBAR (right) ==============================
\input{chapters/short/sidebar.tex}

\end{paracol}

\end{document}
