@@ -549,15 +549,40 @@ ul li {
549549}
550550
551551@media (max-width : 720px ) {
552- .hero-stats { grid-template-columns : repeat (2 , 1fr ); gap : 2px ; }
553- .hero-stat { border-right : 0 ; border-bottom : 1px solid var (--border ); padding : 12px 0 ; }
554- .hero-stat : first-child { padding-top : 0 ; }
555- .hero-stat : nth-last-child (-n + 2) { border-bottom : 0 ; }
556- .hero-stat : nth-last-child (2 ) { padding-left : 18px ; border-left : 1px solid var (--border ); }
552+ /* Zero the container's padding-top so the vertical divider (border-left on
553+ even items) starts exactly at the border-top line with no gap. */
554+ .hero-stats {
555+ grid-template-columns : repeat (2 , 1fr );
556+ gap : 0 ;
557+ padding-top : 0 ;
558+ }
559+ .hero-stat {
560+ border-right : 0 ;
561+ border-bottom : 1px solid var (--border );
562+ /* Uniform top padding on all items keeps rows aligned within their cells */
563+ padding : 16px 0 ;
564+ min-width : 0 ;
565+ box-sizing : border-box;
566+ }
567+ /* Right-column items: left divider connects with border-top since padding-top is on the items */
568+ .hero-stat : nth-child (even) {
569+ padding-left : 20px ;
570+ border-left : 1px solid var (--border );
571+ }
572+ /* Remove bottom border from last paired row AND lone item below it */
573+ .hero-stat : nth-last-child (-n + 3) { border-bottom : 0 ; }
574+ /* Lone 5th item: span full width, center content, clear left styles */
575+ .hero-stat : last-child : nth-child (odd) {
576+ grid-column : 1 / -1 ;
577+ text-align : center;
578+ border-left : 0 ;
579+ padding-left : 0 ;
580+ }
557581}
558582
559583@media (max-width : 480px ) {
560584 .hero-stats { grid-template-columns : 1fr 1fr ; }
585+ .hero-stat .n { font-size : clamp (14px , 5vw , 20px ); }
561586}
562587
563588/* =============================================================================
0 commit comments