@@ -729,3 +729,194 @@ a[href="/Iceberg-Order-Prediction-Algorithm-Quantitative-Trading-with-ML"]::befo
729729 letter-spacing : 0.01em !important ;
730730 display : inline !important ;
731731}
732+
733+
734+ /* =============================================================================
735+ HEADER FIX v2 — Complete nav bar redesign
736+ (Previous rules had wrong selectors; these override them)
737+ ============================================================================= */
738+
739+ /* --- 1. Un-break the home link (font-size: 0 was collapsing it) --- */
740+ a .myst-home-link ,
741+ nav .myst-top-nav-bar a .myst-home-link {
742+ font-size : inherit !important ;
743+ white-space : nowrap !important ;
744+ }
745+
746+ /* Hide "Made with MyST" span inside the top-nav home link only */
747+ nav .myst-top-nav-bar a .myst-home-link span {
748+ font-size : 0 !important ;
749+ visibility : hidden !important ;
750+ overflow : hidden !important ;
751+ width : 0 !important ;
752+ position : absolute !important ;
753+ }
754+
755+ /* Remove the duplicate ::before that was bleeding into TOC */
756+ a [href = "/Iceberg-Order-Prediction-Algorithm-Quantitative-Trading-with-ML/" ]::before ,
757+ a [href = "/Iceberg-Order-Prediction-Algorithm-Quantitative-Trading-with-ML" ]::before {
758+ content : none !important ;
759+ display : none !important ;
760+ }
761+
762+ /* Undo old broken font-size: 0 on href selectors */
763+ a [href = "/Iceberg-Order-Prediction-Algorithm-Quantitative-Trading-with-ML/" ],
764+ a [href = "/Iceberg-Order-Prediction-Algorithm-Quantitative-Trading-with-ML" ] {
765+ font-size : unset !important ;
766+ color : unset !important ;
767+ }
768+
769+ /* Inject custom branding ONLY in the top nav bar home link */
770+ nav .myst-top-nav-bar a .myst-home-link ::after {
771+ content : "Joseph J. Loss | Quantitative Development Services" !important ;
772+ font-size : 0.875rem !important ;
773+ font-weight : 700 !important ;
774+ color : # ffffff !important ;
775+ white-space : nowrap !important ;
776+ letter-spacing : 0.03em !important ;
777+ display : inline-block !important ;
778+ visibility : visible !important ;
779+ line-height : 1.2 !important ;
780+ }
781+
782+ /* Remove any ::before on the myst-home-link (prevent duplicates) */
783+ nav .myst-top-nav-bar a .myst-home-link ::before {
784+ content : none !important ;
785+ display : none !important ;
786+ }
787+
788+ /* --- 2. Nav bar: dark background and sticky positioning --- */
789+ nav .myst-top-nav-bar {
790+ background : linear-gradient (135deg , # 0f172a 0% , # 1a2744 100% ) !important ;
791+ border-bottom : 1px solid # 2d4a7a !important ;
792+ position : sticky !important ;
793+ top : 0 !important ;
794+ z-index : 1000 !important ;
795+ box-shadow : 0 2px 16px rgba (0 , 0 , 0 , 0.35 ) !important ;
796+ padding : 0 1.5rem !important ;
797+ min-height : 60px !important ;
798+ }
799+
800+ /* --- 3. Nav link text colors on dark background --- */
801+ nav .myst-top-nav-bar a {
802+ color : # e2e8f0 !important ;
803+ text-decoration : none !important ;
804+ }
805+
806+ nav .myst-top-nav-bar a : hover {
807+ color : # ffffff !important ;
808+ text-decoration : none !important ;
809+ }
810+
811+ /* --- 4. Nav items row: force horizontal flex --- */
812+ nav .myst-top-nav-bar div .flex-grow {
813+ display : flex !important ;
814+ flex-direction : row !important ;
815+ align-items : center !important ;
816+ flex-wrap : nowrap !important ;
817+ gap : 0.25rem !important ;
818+ }
819+
820+ nav .myst-top-nav-bar .myst-top-nav-item {
821+ display : inline-flex !important ;
822+ align-items : center !important ;
823+ }
824+
825+ nav .myst-top-nav-bar .myst-top-nav-item a {
826+ padding : 0.35rem 0.75rem !important ;
827+ border-radius : 6px !important ;
828+ font-size : 0.875rem !important ;
829+ font-weight : 500 !important ;
830+ color : # cbd5e1 !important ;
831+ white-space : nowrap !important ;
832+ transition : background 0.15s , color 0.15s !important ;
833+ display : inline-flex !important ;
834+ align-items : center !important ;
835+ }
836+
837+ nav .myst-top-nav-bar .myst-top-nav-item a : hover {
838+ background : rgba (255 , 255 , 255 , 0.1 ) !important ;
839+ color : # ffffff !important ;
840+ }
841+
842+ /* --- 5. GitHub icon — white on dark background --- */
843+ nav .myst-top-nav-bar a [href = "https://github.com/chicago-joe" ]::before {
844+ filter : brightness (0 ) invert (1 ) !important ;
845+ }
846+
847+ /* --- 6. Action buttons — properly styled on dark nav --- */
848+ /* Target by their actual Tailwind class (a.inline-block inside nav) */
849+ nav .myst-top-nav-bar a .inline-block {
850+ border : 1px solid rgba (255 , 255 , 255 , 0.22 ) !important ;
851+ border-radius : 8px !important ;
852+ padding : 0.4rem 1rem !important ;
853+ font-size : 0.8rem !important ;
854+ font-weight : 600 !important ;
855+ color : # e2e8f0 !important ;
856+ background : rgba (255 , 255 , 255 , 0.08 ) !important ;
857+ transition : all 0.15s ease !important ;
858+ white-space : nowrap !important ;
859+ text-decoration : none !important ;
860+ letter-spacing : 0.01em !important ;
861+ margin : 0 2px !important ;
862+ }
863+
864+ nav .myst-top-nav-bar a .inline-block : hover {
865+ background : rgba (255 , 255 , 255 , 0.16 ) !important ;
866+ color : # ffffff !important ;
867+ border-color : rgba (255 , 255 , 255 , 0.38 ) !important ;
868+ transform : translateY (-1px ) !important ;
869+ }
870+
871+ /* PDF download buttons — blue gradient */
872+ nav .myst-top-nav-bar a .inline-block [href $= ".pdf" ] {
873+ background : linear-gradient (135deg , # 1a56db 0% , # 1e3a8a 100% ) !important ;
874+ color : # ffffff !important ;
875+ border-color : transparent !important ;
876+ box-shadow : 0 2px 10px rgba (26 , 86 , 219 , 0.4 ) !important ;
877+ }
878+
879+ nav .myst-top-nav-bar a .inline-block [href $= ".pdf" ]: hover {
880+ background : linear-gradient (135deg , # 2563eb 0% , # 1e40af 100% ) !important ;
881+ box-shadow : 0 5px 18px rgba (26 , 86 , 219 , 0.55 ) !important ;
882+ transform : translateY (-2px ) !important ;
883+ color : # ffffff !important ;
884+ }
885+
886+ /* LinkedIn share button */
887+ nav .myst-top-nav-bar a .inline-block [href *= "linkedin.com/shareArticle" ] {
888+ background : rgba (0 , 119 , 181 , 0.25 ) !important ;
889+ border-color : rgba (0 , 119 , 181 , 0.5 ) !important ;
890+ color : # 93c5fd !important ;
891+ }
892+
893+ nav .myst-top-nav-bar a .inline-block [href *= "linkedin.com/shareArticle" ]: hover {
894+ background : rgba (0 , 119 , 181 , 0.45 ) !important ;
895+ color : # ffffff !important ;
896+ }
897+
898+ /* --- 7. Toggle theme button on dark nav --- */
899+ nav .myst-top-nav-bar button .myst-top-nav-menu-button ,
900+ nav .myst-top-nav-bar button [class *= "toggle" ],
901+ nav .myst-top-nav-bar button [aria-label *= "theme" i],
902+ nav .myst-top-nav-bar button [aria-label *= "Toggle" i] {
903+ color : # e2e8f0 !important ;
904+ border-radius : 6px !important ;
905+ }
906+
907+ nav .myst-top-nav-bar button : hover {
908+ color : # ffffff !important ;
909+ background : rgba (255 , 255 , 255 , 0.1 ) !important ;
910+ }
911+
912+ /* --- 8. TOC home link fix (remove branding text from sidebar) --- */
913+ nav [aria-label = "Table of Contents" ] a [href *= "Iceberg-Order-Prediction" ] {
914+ font-size : inherit !important ;
915+ color : inherit !important ;
916+ }
917+
918+ nav [aria-label = "Table of Contents" ] a [href *= "Iceberg-Order-Prediction" ]::before ,
919+ nav [aria-label = "Table of Contents" ] a [href *= "Iceberg-Order-Prediction" ]::after {
920+ content : none !important ;
921+ display : none !important ;
922+ }
0 commit comments