.steam-team-photo {
			width: 100%;            /* Spans matching length of text */
			height: auto;
			display: block;         
			margin: 25px auto;    
		}
		
		/* Mobile responsive container for the table */
		.table-responsive {
			width: 100%;
			overflow-x: auto;
			-webkit-overflow-scrolling: touch;
			margin: 25px 0;
		}
		
		.results-table {
			width: 100%;
			border-collapse: collapse;
			font-family: inherit; 
			min-width: 600px; /* Gives table breathing room inside its scroll box */
			box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
		}
		.results-table thead tr {
			background-color: #E25850; 
			color: #ffffff;
			text-align: left;
		}
		.results-table th, .results-table td {
			padding: 12px 15px;
			border: 1px solid #dddddd;
		}
		.results-table tbody tr:nth-of-type(even) {
			background-color: #f9f9f9;
		}

		.medal-gold { background-color: #FFD700 !important; color: #222222 !important; font-weight: bold; }
		.medal-silver { background-color: #D3D3D3 !important; color: #222222 !important; font-weight: bold; }
		.medal-bronze { background-color: #CD7F32 !important; color: #ffffff !important; font-weight: bold; }
		.medal-iron { background-color: #708090 !important; color: #ffffff !important; font-weight: bold; }
		.medal-chocolate { background-color: #7B3F00 !important; color: #ffffff !important; font-weight: bold; }
		
/* When the screen is 700px wide or smaller, transform the table */
@media (max-width: 1200px) {
    
    .table-responsive {
        overflow-x: visible;
    }
    
    .results-table {
        display: block;
        width: 100% !important;
        min-width: 0 !important; /* Prevents container blowout */
        box-sizing: border-box;
    }
    
    .results-table thead, 
    .results-table tbody, 
    .results-table th, 
    .results-table td, 
    .results-table tr {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    /* Hide the desktop header row */
    .results-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    /* Turn each rider row into its own stand-alone box/card */
    .results-table tr {
        margin-bottom: 25px;
        border: 1px solid #dddddd;
        background: #ffffff;
        box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 10px;
    }

    /* FIXED: Stacked layout styling to handle large fonts on narrow screens */
    .results-table td {
        border: none;
        border-bottom: 1px solid #eeeeee;
        position: relative;
        padding: 10px 15px; /* Removed the heavy 45% left padding constraint */
        text-align: left;   /* Left-aligned for natural reading flow */
        line-height: 1.4;   /* Ensures wrapped sentences never collide vertically */
    }

    /* Keeps your alternating gray and white lines intact */
    .results-table td:nth-of-type(even) {
        background-color: #f9f9f9;
    }
    .results-table td:nth-of-type(odd) {
        background-color: #ffffff;
    }

    .results-table td:last-child {
        border-bottom: none;
    }

    /* Keeps the Medal cell styled as a clean header banner for each card */
    .results-table td:first-child {
        text-align: center;
        padding: 12px 15px;
        font-size: 1.1em;
        border-bottom: 2px solid rgba(0,0,0,0.1);
    }
    
    .results-table td:first-child:before {
        display: none !important;
    }

    /* FIXED: Positions labels directly ABOVE the data values */
    .results-table td:before {
        display: block;     /* Forces the label onto its own distinct line */
        position: static;   /* Disables absolute positioning to prevent overlaps */
        width: auto;
        padding-bottom: 4px;
        text-align: left;
        font-weight: bold;
        color: #666666;
        font-size: 0.75em;  /* Scales the label down slightly for crisp readability */
    }

    /* Injects the field names safely */
    .results-table td:nth-of-type(2):before { content: "Position"; }
    .results-table td:nth-of-type(3):before { content: "Rider"; }
    .results-table td:nth-of-type(4):before { content: "Country"; }
    .results-table td:nth-of-type(5):before { content: "Motorcycle"; }
    .results-table td:nth-of-type(6):before { content: "Engine Type"; }
    .results-table td:nth-of-type(7):before { content: "Cooling System"; }
}

.related-container {
			margin-top: 50px;
			padding-top: 30px;
			position: relative; 
		}

		/* LAYER 1: Full-length dark knife slit */
		.related-container::before {
			content: "";
			position: absolute;
			top: 0;
			left: 0;                    /* Starts at the absolute left edge */
			width: 100%;                /* Spans 100% of the box length */
			height: 1px;
			background: linear-gradient(to right, transparent, #333333 2%, #333333 98%, transparent);
		}

		/* LAYER 2: Full-length crisp white light reflection right below it */
		.related-container::after {
			content: "";
			position: absolute;
			top: 1px;                   /* Sits exactly 1 pixel below the shadow */
			left: 0;                    /* Starts at the absolute left edge */
			width: 100%;                /* Spans 100% of the box length */
			height: 1px;
			background: linear-gradient(to right, transparent, #ffffff 2%, #ffffff 98%, transparent);
		}
		
		.related-heading {
			font-size: 1.2em;
			font-weight: bold;
			margin-bottom: 20px;
			text-transform: uppercase;
			letter-spacing: 1px;
			color: #222222;
		}
		
		.related-grid {
			display: grid;
			grid-template-columns: 1fr 1fr; 
			gap: 25px;                      
		}
		
		.related-card {
			display: block;
			text-decoration: none;
			color: #000000;
			padding: 20px;
			background: #ECECEC; /* Matches your core box background */
			
			/* Signature Industrial Borders and Shadows */
			border-style: outset;
			border-width: 6px;
			border-color: #7E7E7E #666666 #7E7E7E #666666;
			box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
			transition: transform 0.15s ease, box-shadow 0.15s ease;
		}
		
		.related-card:hover {
			border-style: inset; 
			background: #EAEAEA;
		}
		
		.related-title {
			font-size: 1.0em;
			font-weight: bold;
			margin-bottom: 8px;
			line-height: 1.2;
		}
		
		.related-desc {
			font-size: 0.75em;
			color: #444444;
			line-height: 1.4;
		}
		
		@media (max-width: 750px) {
			.related-grid {
				grid-template-columns: 1fr; 
				gap: 20px;
			}
		}