/*
Theme Name: STL Drag Racing
Theme URI: https://stldr.com/
Author: Spartan Autoworx
Description: A classic recreation of the 2013–2014 stldragracing.com look. Rotating vehicle header, car-photo sidebar, and discussion sent to the Lethal1320 forums.
Version: 1.2.1
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stldragracing
*/

/* Colors and type follow the Desire "light" stylesheet archived from stldragracing.com in 2013. */

:root {
	--stldr-black: #000;
	--stldr-near-black: #151515;
	--stldr-blue: #0080ff;
	--stldr-logo-blue: #0731a1;
	--stldr-text: #333;
	--stldr-body: #666;
	--stldr-muted: #777;
	--stldr-meta-bg: #eee;
	--stldr-rule: #ccc;
	--stldr-more: #aaa;
	--stldr-white: #fff;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--stldr-black) url("images/black-back.jpg") no-repeat center top;
	background-size: cover;
	background-attachment: scroll;
	color: var(--stldr-body);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	line-height: 1.55;
}

img {
	max-width: 100%;
	height: auto;
	border: 0;
	vertical-align: middle;
}

a {
	color: var(--stldr-blue);
	text-decoration: none;
}

a:hover,
a:focus {
	text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--stldr-text);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 0.5em;
}

p {
	margin: 0 0 1em;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: var(--stldr-white);
	clip: auto;
	clip-path: none;
	color: var(--stldr-black);
	display: block;
	font-size: 14px;
	height: auto;
	left: 8px;
	padding: 8px 12px;
	top: 8px;
	width: auto;
	z-index: 100000;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
}

.skip-link:focus {
	left: 8px;
}

/* Layout */

.stldr-page {
	max-width: 1176px;
	margin: 0 auto;
	background: var(--stldr-white);
	border-top: 3px solid var(--stldr-black);
	min-height: 100vh;
	box-shadow: 0 0 24px rgba(0, 0, 0, 0.55);
}

/* Header rotator */

.stldr-hero {
	position: relative;
	width: 100%;
	aspect-ratio: 1175 / 150;
	min-height: 80px;
	overflow: hidden;
	background: var(--stldr-black);
}

.stldr-hero-slide {
	position: absolute;
	inset: 0;
	background-repeat: no-repeat;
	background-position: left center;
	background-size: cover;
	opacity: 0;
	transition: opacity 1s ease-in-out;
}

.stldr-hero-slide.is-active {
	opacity: 1;
}

.stldr-hero-link {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: block;
}

.stldr-hero-fallback {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 24px;
	background: var(--stldr-black);
	color: var(--stldr-white);
	gap: 16px;
}

.stldr-hero-fallback .stldr-wordmark {
	margin: 0;
	color: var(--stldr-blue);
	font-style: italic;
	font-weight: 800;
	font-size: clamp(28px, 5vw, 48px);
	letter-spacing: -1px;
	text-transform: uppercase;
	text-shadow: 0 1px 0 #003a80;
	line-height: 1;
}

.stldr-hero-fallback .stldr-tagline {
	margin: 0;
	color: var(--stldr-white);
	font-style: italic;
	font-size: clamp(12px, 1.6vw, 16px);
	font-weight: 400;
	text-align: right;
}

/* Navigation */

.stldr-nav {
	background: var(--stldr-black);
}

.stldr-nav-list {
	list-style: none;
	margin: 0;
	padding: 0 4px;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: space-between;
}

.stldr-nav-list li {
	margin: 0;
	padding: 0;
}

.stldr-nav-list a {
	display: block;
	color: var(--stldr-white);
	background: var(--stldr-black);
	text-decoration: none;
	text-transform: uppercase;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: -1px;
	padding: 11px 14px;
	white-space: nowrap;
	text-shadow: #000 1px 1px;
}

.stldr-nav-list a:hover,
.stldr-nav-list a:focus {
	background: var(--stldr-blue);
	color: var(--stldr-white);
	text-decoration: none;
	text-shadow: #0080ff 1px 1px;
}

.stldr-nav-list .current-menu-item > a,
.stldr-nav-list .current_page_item > a,
.stldr-nav-list .current_page_parent > a {
	background: var(--stldr-near-black);
	text-shadow: #151515 1px 1px;
}

/* Content */

.stldr-content {
	display: flex;
	gap: 28px;
	padding: 22px 24px 40px;
}

.stldr-main {
	flex: 1 1 auto;
	min-width: 0;
}

.stldr-sidebar {
	flex: 0 0 250px;
	width: 250px;
}

/* Posts */

.stldr-archive-title,
.stldr-page-title {
	color: var(--stldr-text);
	font-size: 22px;
	border-bottom: 1px solid var(--stldr-rule);
	padding-bottom: 8px;
	margin: 0 0 18px;
}

.stldr-post {
	margin: 0 0 28px;
	padding: 0 0 18px;
	border-bottom: 1px solid #eee;
}

.stldr-post:last-child {
	border-bottom: 0;
}

.entry-title {
	color: var(--stldr-text);
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 8px;
	border-bottom: 1px solid var(--stldr-rule);
	padding-bottom: 6px;
}

.entry-title a {
	color: var(--stldr-text);
	text-decoration: none;
}

.entry-title a:hover,
.entry-title a:focus {
	color: var(--stldr-blue);
	text-decoration: none;
}

.entry-info {
	background: var(--stldr-meta-bg);
	color: var(--stldr-muted);
	text-shadow: #eee 1px 1px;
	font-size: 11px;
	padding: 6px 10px 6px 8px;
	margin: 0 0 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
}

.entry-info a {
	color: var(--stldr-muted);
	text-decoration: none;
}

.entry-info a:hover,
.entry-info a:focus {
	color: var(--stldr-black);
	text-decoration: none;
}

.entry-date,
.entry-author {
	display: inline-block;
	padding-left: 20px;
	background-repeat: no-repeat;
	background-position: left center;
	background-size: 13px 13px;
}

.entry-date {
	background-image: url("images/icons/date_icon.png");
}

.entry-author {
	background-image: url("images/icons/author_icon.png");
}

.stldr-tease {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.stldr-tease-thumb {
	flex: 0 0 180px;
	width: 180px;
}

.stldr-tease-thumb a {
	display: block;
}

.stldr-tease-thumb img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid #eee;
}

.stldr-tease-body {
	flex: 1 1 auto;
	min-width: 0;
}

.entry-content {
	color: var(--stldr-body);
}

.entry-content a:hover,
.entry-content a:focus {
	text-decoration: underline;
}

.entry-content .more-link,
.stldr-more-link {
	color: var(--stldr-more);
	font-weight: 700;
	text-decoration: none;
}

.entry-content .more-link:hover,
.stldr-more-link:hover,
.entry-content .more-link:focus,
.stldr-more-link:focus {
	color: var(--stldr-text);
	text-decoration: none;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1em 1.4em;
	padding: 0;
}

.entry-content blockquote {
	margin: 0 0 1em 0;
	padding: 8px 16px;
	border-left: 3px solid var(--stldr-rule);
	color: var(--stldr-muted);
	font-style: italic;
}

.entry-content table {
	border-collapse: collapse;
	width: 100%;
	margin: 0 0 1em;
}

.entry-content th,
.entry-content td {
	border: 1px solid #aaa;
	padding: 6px 8px;
	text-align: left;
}

.entry-content th {
	background: #ddd;
}

/* Discuss box on single posts */

.stldr-discuss {
	margin: 28px 0 8px;
	padding: 22px 20px;
	background: var(--stldr-black);
	color: var(--stldr-white);
	text-align: center;
	border-top: 3px solid var(--stldr-blue);
}

.stldr-discuss-link {
	display: inline-block;
	background: var(--stldr-blue);
	color: var(--stldr-white);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 10px 22px;
	text-shadow: #0080ff 1px 1px;
}

.stldr-discuss-link:hover,
.stldr-discuss-link:focus {
	background: #0066cc;
	color: var(--stldr-white);
	text-decoration: none;
}

.stldr-discuss-note {
	margin: 12px 0 0;
	color: #ccc;
	font-size: 12px;
}

/* Pagination / post nav */

.stldr-pagination,
.post-navigation,
.posts-navigation {
	margin: 16px 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.stldr-pagination .nav-links,
.post-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	width: 100%;
}

.stldr-pagination a,
.stldr-pagination span.current,
.post-navigation a,
.posts-navigation a {
	display: inline-block;
	background: var(--stldr-black);
	color: var(--stldr-white);
	text-decoration: none;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 700;
	text-shadow: #000 1px 1px;
}

.stldr-pagination a:hover,
.stldr-pagination a:focus,
.post-navigation a:hover,
.post-navigation a:focus,
.posts-navigation a:hover,
.posts-navigation a:focus,
.stldr-pagination .current {
	background: var(--stldr-blue);
	color: var(--stldr-white);
	text-decoration: none;
	text-shadow: #0080ff 1px 1px;
}

/* Sidebar */

.stldr-photogrid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 4px;
	margin: 0 0 20px;
}

.stldr-photogrid img {
	display: block;
	width: 100%;
	height: auto;
}

.widget {
	color: var(--stldr-body);
	font-size: 13px;
	margin: 0 0 22px;
}

.widget a {
	color: var(--stldr-body);
}

.widget a:hover,
.widget a:focus {
	color: var(--stldr-black);
	text-decoration: none;
}

.widget-title,
.stldr-forum-widget .widget-title {
	background: url("images/icons/widget_title_pattern.png") repeat-x bottom left;
	color: var(--stldr-text);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	padding: 0 0 8px;
	margin: 0 0 10px;
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget li {
	margin: 0 0 6px;
	padding: 0 0 6px;
	border-bottom: 1px dotted #ddd;
}

.widget li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

/* Lethal1320 forums block */

.stldr-forum-widget {
	margin: 0 0 18px;
}

.stldr-forum-list {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}

.stldr-forum-list li {
	margin: 0 0 8px;
	padding: 0 0 8px;
	border-bottom: 1px dotted #ddd;
}

.stldr-forum-list li:last-child {
	margin-bottom: 0;
}

.stldr-forum-list a {
	color: var(--stldr-text);
	font-weight: 700;
}

.stldr-forum-list a:hover,
.stldr-forum-list a:focus {
	color: var(--stldr-blue);
	text-decoration: none;
}

.stldr-forum-date {
	display: block;
	color: var(--stldr-muted);
	font-size: 11px;
	font-weight: 400;
	margin-top: 2px;
}

.stldr-share-btn {
	display: block;
	width: 100%;
	text-align: center;
	background: var(--stldr-blue);
	color: var(--stldr-white);
	font-weight: 700;
	font-size: 12px;
	line-height: 1.3;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	padding: 10px 10px;
	text-shadow: #0080ff 1px 1px;
	margin: 0 0 22px;
}

.stldr-share-btn:hover,
.stldr-share-btn:focus {
	background: #0066cc;
	color: var(--stldr-white);
	text-decoration: none;
}

/* Sidebar ad rotator (Spartan Autoworx, Plug n' Play Parts, GMFLASH).
   No visible "Sponsors" heading — the rotation itself is the sponsor slot. */
.stldr-ads {
	margin: 0 0 16px;
	background: #000;
}

.stldr-ads-stage {
	position: relative;
}

.stldr-ad {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	display: block;
	opacity: 0;
	transition: opacity 0.7s ease;
	pointer-events: none;
	z-index: 0;
}

.stldr-ad:first-child {
	position: relative;
	opacity: 1;
	pointer-events: auto;
	z-index: 1;
}

.stldr-ads.js-on .stldr-ad {
	opacity: 0;
	pointer-events: none;
	z-index: 0;
}

.stldr-ads.js-on .stldr-ad:first-child {
	position: relative;
	opacity: 0;
	pointer-events: none;
}

.stldr-ads.js-on .stldr-ad.is-active {
	opacity: 1;
	pointer-events: auto;
	z-index: 1;
}

.stldr-ad img {
	display: block;
	width: 100%;
	height: auto;
}

@media (prefers-reduced-motion: reduce) {
	.stldr-ad {
		transition: none;
	}
}

/* Lethal1320 banner above the footer, not part of the header rotator. */
.stldr-lethal-banner {
	background: #000;
	text-align: center;
	padding: 12px 16px 16px;
}

.stldr-lethal-banner-image {
	display: inline-block;
	max-width: 100%;
}

.stldr-lethal-banner-image:hover,
.stldr-lethal-banner-image:focus {
	opacity: 0.92;
}

.stldr-lethal-banner img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

.stldr-lethal-links {
	margin: 10px 0 0;
	padding: 0;
	color: #ccc;
	font-size: 13px;
	font-weight: 700;
}

.stldr-lethal-links a {
	color: #fff;
	text-decoration: none;
}

.stldr-lethal-links a:hover,
.stldr-lethal-links a:focus {
	color: var(--stldr-blue);
	text-decoration: underline;
}

.stldr-lethal-links-sep {
	color: #666;
	margin: 0 8px;
}

/* Footer */

.stldr-footer {
	background: #f5f5f5;
	color: var(--stldr-muted);
	text-shadow: #f5f5f5 1px 1px;
	border-top: 1px solid #ddd;
	border-bottom: 1px solid #ccc;
	text-align: center;
	padding: 16px 20px;
	font-size: 12px;
}

.stldr-footer a {
	color: var(--stldr-blue);
}

.stldr-footer a:hover,
.stldr-footer a:focus {
	text-decoration: underline;
}

.stldr-footer p {
	margin: 0;
}

/* Responsive */

@media (max-width: 860px) {
	.stldr-content {
		flex-direction: column;
		padding: 16px 16px 32px;
		gap: 24px;
	}

	.stldr-sidebar {
		width: 100%;
		flex-basis: auto;
	}

	.stldr-photogrid {
		grid-template-columns: 1fr 1fr;
		gap: 6px;
	}
}

@media (max-width: 640px) {
	.stldr-hero {
		aspect-ratio: auto;
		height: 90px;
	}

	.stldr-nav-list {
		justify-content: flex-start;
	}

	.stldr-nav-list a {
		padding: 10px 10px;
		font-size: 11px;
	}

	.stldr-tease {
		flex-direction: column;
	}

	.stldr-tease-thumb {
		flex-basis: auto;
		width: 100%;
		max-width: 280px;
	}

	.entry-title {
		font-size: 18px;
	}
}

@media (max-width: 400px) {
	.stldr-photogrid {
		grid-template-columns: 1fr;
	}
}

.stldr-gateway-feed,
.stldr-nhra-feed {
	background: #fff;
	border: 1px solid #ccc;
	border-top: 4px solid #c00;
	padding: 12px 14px 6px;
	margin: 0 0 20px;
}
.stldr-gateway-feed .widget-title,
.stldr-nhra-feed .widget-title {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	margin: 0 0 10px;
}
.stldr-gateway-links {
	font-size: 12px;
	font-weight: 700;
	margin: 4px 0 8px;
}
