@@ -272,6 +272,21 @@ <h2 class="section-heading" style="justify-content: flex-start;">Technologies &
272272 gap : 2rem ;
273273 max-width : 1550px ;
274274 margin : 0 auto;
275+ padding : 0 1rem ;
276+ box-sizing : border-box;
277+ width : 100% ;
278+ }
279+
280+ /* Prevent horizontal overflow on the whole page */
281+ .page-content {
282+ overflow-x : hidden;
283+ }
284+
285+ .post-center-column ,
286+ .post-content-main {
287+ min-width : 0 ;
288+ overflow-wrap : break-word;
289+ word-wrap : break-word;
275290 }
276291
277292 /* Adjustments for tablets and large desktop screens */
@@ -540,6 +555,31 @@ <h2 class="section-heading" style="justify-content: flex-start;">Technologies &
540555
541556 /* ===== Mobile: hide sidebar TOC, show toggle, stack nav ===== */
542557 @media (max-width : 48rem ) {
558+ /* Constrain all content to viewport */
559+ .post-layout {
560+ max-width : 100% !important ;
561+ padding : 0 1rem !important ;
562+ }
563+
564+ .post-center-column {
565+ max-width : 100% ;
566+ overflow-x : hidden;
567+ }
568+
569+ .post-content-main {
570+ padding : 1rem 0 0 0 !important ;
571+ }
572+
573+ .post-content-main pre {
574+ max-width : 100% ;
575+ overflow-x : auto;
576+ }
577+
578+ .post-content-main img {
579+ max-width : 100% ;
580+ height : auto;
581+ }
582+
543583 .post-sidebar-left {
544584 display : none !important ;
545585 }
@@ -585,6 +625,52 @@ <h2 class="section-heading" style="justify-content: flex-start;">Technologies &
585625 text-align : left;
586626 justify-content : flex-start;
587627 }
628+
629+ /* Right sidebar: remove desktop border and make compact */
630+ .post-sidebar-right {
631+ border-left : none !important ;
632+ padding-left : 0 !important ;
633+ position : static !important ;
634+ max-height : none !important ;
635+ overflow-y : visible !important ;
636+ }
637+
638+ /* Compact post info card on mobile */
639+ .post-sidebar-right .competency-item-sidebar {
640+ padding : 1rem ;
641+ border : 1px solid var (--border-color );
642+ border-radius : 8px ;
643+ background : var (--card-bg-color );
644+ }
645+
646+ .post-sidebar-right .competency-title-sidebar {
647+ font-size : 1rem ;
648+ margin-bottom : 0.25rem ;
649+ }
650+
651+ /* GitHub button: compact */
652+ .post-sidebar-right .sidebar-button {
653+ margin-top : 0.75rem ;
654+ padding : 8px 12px ;
655+ font-size : 0.9rem ;
656+ }
657+
658+ /* Tighter tech tags on mobile */
659+ .post-sidebar-right .tech-stack {
660+ gap : 0.35rem ;
661+ }
662+
663+ .post-sidebar-right .tech-stack .tag {
664+ font-size : 0.8rem ;
665+ padding : 3px 8px ;
666+ margin-bottom : 0 ;
667+ }
668+
669+ /* Series nav box: compact on mobile */
670+ .series-navigation-sidebar {
671+ padding : 1rem ;
672+ margin-bottom : 1.5rem ;
673+ }
588674 }
589675 </ style >
590676
0 commit comments