\usepackage{tikz}
\usepackage[most]{tcolorbox}
\usepackage{titlesec,fancyhdr,needspace,fvextra,xurl}
\definecolor{ink}{HTML}{17324F}
\definecolor{bookblue}{HTML}{235FAC}
\definecolor{pale}{HTML}{F0F5FB}
\definecolor{quiet}{HTML}{526478}
\newtcolorbox{labbox}{breakable,colback=pale,colframe=bookblue,boxrule=.55pt,arc=1pt,left=8pt,right=8pt,top=6pt,bottom=6pt,before skip=10pt,after skip=10pt,fontupper=\small}
\newtcolorbox{solutionbox}{breakable,colback=black!2,colframe=black!15,boxrule=.3pt,arc=0pt,left=7pt,right=7pt,top=5pt,bottom=5pt,before skip=3pt,after skip=4pt,title=Solution / guidance,colbacktitle=black!5,coltitle=quiet,fonttitle=\sffamily\footnotesize,fontupper=\small}
\makeatletter
\patchcmd{\l@chapter}{1.5em}{2.5em}{}{}
\newcommand{\chapterkind}{\MakeUppercase{\@chapapp}}
\makeatother
\titleformat{\chapter}[display]{\normalfont\sffamily\bfseries\raggedright\color{ink}}{\color{bookblue}\large \chapterkind{} \thechapter}{10pt}{\Huge}
\titleformat{name=\chapter,numberless}[display]{\normalfont\sffamily\bfseries\raggedright\color{ink}}{}{0pt}{\Huge}
\titlespacing*{\chapter}{0pt}{4pt}{26pt}
\titleformat{\section}{\Large\sffamily\bfseries\color{ink}}{\thesection}{.65em}{}
\titleformat{\subsection}{\large\sffamily\bfseries\color{ink}}{\thesubsection}{.65em}{}
\titlespacing*{\section}{0pt}{17pt}{7pt}
\titlespacing*{\subsection}{0pt}{12pt}{5pt}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[L]{\sffamily\footnotesize\color{quiet}QUANTUM COMPUTING / 2026}
\fancyhead[R]{\sffamily\footnotesize\color{quiet}\thepage}
\renewcommand{\headrulewidth}{.3pt}
\fancypagestyle{plain}{\fancyhf{}\fancyfoot[C]{\sffamily\small\thepage}\renewcommand{\headrulewidth}{0pt}}
\setlength{\headheight}{15pt}
\setlength{\parskip}{4pt plus 1pt}
\setlength{\parindent}{0pt}
\setlength{\emergencystretch}{2em}
\widowpenalty=10000
\clubpenalty=10000
\raggedbottom
\renewcommand{\arraystretch}{1.15}
\AtBeginEnvironment{longtable}{\small}
\AtBeginEnvironment{Shaded}{\small}
\fvset{breaklines=true,breakanywhere=true,fontsize=\small}
\AtBeginDocument{\hypersetup{colorlinks=true,linkcolor=bookblue,urlcolor=bookblue,citecolor=bookblue,bookmarksnumbered=true,pdftitle={Introduction to Quantum Computing — 2026},pdfauthor={Independent educational work prepared with OpenAI Codex}}}
