/*
 * RecallTracking theme styles.
 * Design system per design/recalltracking_design_mockup.html:
 * credible & official; trust blue primary; red strictly reserved for
 * safety advisories; amber for equipment/aftermarket campaigns.
 */

:root {
	--rt-blue: var(--wp--preset--color--brand, #16385B);
	--rt-blue-2: var(--wp--preset--color--brand-accent, #1D4E89);
	--rt-blue-tint: var(--wp--preset--color--brand-tint, #EAF1F8);
	--rt-ink: var(--wp--preset--color--ink, #1A2330);
	--rt-muted: var(--wp--preset--color--muted, #5B6673);
	--rt-line: var(--wp--preset--color--line, #DFE5EB);
	--rt-bg: var(--wp--preset--color--base, #F7F9FB);
	--rt-surface: var(--wp--preset--color--surface, #FFFFFF);
	--rt-red: var(--wp--preset--color--alert, #B42318);
	--rt-red-tint: var(--wp--preset--color--alert-tint, #FDF1F0);
	--rt-amber: var(--wp--preset--color--caution, #8A5A00);
	--rt-amber-tint: var(--wp--preset--color--caution-tint, #FFF7E8);
}

body {
	margin: 0;
}

.rt-wrap,
.rt-foot-in {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- Header ---------- */

.rt-site-header {
	background: var(--rt-surface);
	border-bottom: 1px solid var(--rt-line);
}

.rt-head-in {
	max-width: 1080px;
	margin: 0 auto;
	padding: 14px 20px;
	display: flex;
	align-items: center;
	gap: 28px;
	flex-wrap: wrap;
}

.rt-logo {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.3px;
	color: var(--rt-ink);
	text-decoration: none;
}

.rt-logo:hover {
	text-decoration: none;
}

.rt-logo svg {
	flex: none;
}

.rt-logo .tld {
	color: var(--rt-blue-2);
	font-weight: 600;
}

.rt-nav {
	display: flex;
	gap: 20px;
	font-size: 14.5px;
	font-weight: 500;
	margin-left: auto;
	flex-wrap: wrap;
}

.rt-nav a {
	color: var(--rt-ink);
	text-decoration: none;
}

.rt-nav a:hover {
	text-decoration: underline;
}

.rt-nav a.soon {
	color: #A6AFB8;
	pointer-events: none;
}

.rt-nav a.soon small {
	font-size: 10px;
	vertical-align: super;
	color: #A6AFB8;
}

.rt-updated-pill {
	font-size: 12px;
	color: var(--rt-muted);
	border: 1px solid var(--rt-line);
	border-radius: 99px;
	padding: 4px 10px;
	background: var(--rt-bg);
	white-space: nowrap;
}

.rt-updated-pill i {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #1E8E3E;
	margin-right: 6px;
}

/* ---------- Hero (front page) ---------- */

.rt-hero {
	background: linear-gradient(180deg, var(--rt-surface) 0%, var(--rt-bg) 100%);
	padding: 56px 0 44px;
	border-bottom: 1px solid var(--rt-line);
}

.rt-hero-h1 {
	font-size: 40px;
	letter-spacing: -0.8px;
	line-height: 1.15;
	max-width: 640px;
	margin: 0;
}

.rt-hero-sub {
	color: var(--rt-muted);
	font-size: 17px;
	margin: 12px 0 26px;
	max-width: 560px;
}

.rt-hero-stats {
	display: flex;
	gap: 26px;
	margin-top: 26px;
	font-size: 13.5px;
	color: var(--rt-muted);
	flex-wrap: wrap;
}

.rt-hero-stats b {
	display: block;
	font-size: 20px;
	color: var(--rt-ink);
	letter-spacing: -0.3px;
}

/* ---------- Plugin search box ([recalltracking_search]) ---------- */

.rt-search {
	position: relative;
	max-width: 640px;
}

.rt-search-input {
	width: 100%;
	font-size: 17px;
	padding: 15px 18px;
	border: 2px solid var(--rt-blue);
	border-radius: 10px;
	outline: none;
	background: var(--rt-surface);
	box-shadow: 0 6px 18px rgba(22, 56, 91, 0.08);
	box-sizing: border-box;
	color: var(--rt-ink);
}

.rt-search-input:focus {
	border-color: var(--rt-blue-2);
}

.rt-search-results {
	position: absolute;
	z-index: 50;
	left: 0;
	right: 0;
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
	background: var(--rt-surface);
	border: 1px solid var(--rt-line);
	border-radius: 10px;
	box-shadow: 0 14px 34px rgba(20, 30, 45, 0.12);
	overflow: hidden;
}

.rt-search-results li a {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid #F0F3F6;
	color: var(--rt-ink);
	text-decoration: none;
}

.rt-search-results li:last-child a {
	border-bottom: none;
}

.rt-search-results li a:hover {
	background: var(--rt-blue-tint);
}

.rt-search-meta {
	color: var(--rt-muted);
	font-size: 13px;
	white-space: nowrap;
}

/* ---------- Category tiles (front page) ---------- */

.rt-tiles {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	margin: 34px 0 8px;
}

.rt-tile {
	background: var(--rt-surface);
	border: 1px solid var(--rt-line);
	border-radius: 10px;
	padding: 18px;
	position: relative;
}

.rt-tile h3 {
	font-size: 15.5px;
	margin: 0 0 3px;
}

.rt-tile p {
	font-size: 13px;
	color: var(--rt-muted);
	margin: 0;
}

.rt-tile.active {
	border-color: var(--rt-blue-2);
	box-shadow: 0 3px 10px rgba(22, 56, 91, 0.07);
}

.rt-tile .soon {
	position: absolute;
	top: 12px;
	right: 12px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.4px;
	color: var(--rt-amber);
	background: var(--rt-amber-tint);
	border-radius: 5px;
	padding: 2px 7px;
}

.rt-tile .ico {
	font-size: 20px;
	margin-bottom: 8px;
}

/* ---------- Latest recalls strip ---------- */

.rt-section-h {
	font-size: 21px;
	letter-spacing: -0.3px;
	margin: 36px 0 14px;
}

.rt-latest {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-bottom: 52px;
}

.rt-latest-item {
	background: var(--rt-surface);
	border: 1px solid var(--rt-line);
	border-radius: 10px;
	padding: 16px;
}

.rt-latest-tag {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	color: var(--rt-blue-2);
	text-transform: uppercase;
}

.rt-latest-item h3 {
	font-size: 14.5px;
	line-height: 1.4;
	margin: 6px 0;
}

.rt-latest-item h3 a {
	color: var(--rt-ink);
	text-decoration: none;
}

.rt-latest-item h3 a:hover {
	text-decoration: underline;
}

.rt-latest-meta {
	font-size: 12.5px;
	color: var(--rt-muted);
}

/* ---------- Plugin entity pages (/vehicle/, /recall/) ---------- */

body.rt-classic-compat {
	background: var(--rt-bg);
	font-family: var(--wp--preset--font-family--system, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
	color: var(--rt-ink);
	line-height: 1.55;
}

.rt-page {
	max-width: 1080px;
	margin: 0 auto;
	padding: 18px 20px 60px;
}

.rt-page > h1 {
	font-size: 32px;
	letter-spacing: -0.6px;
	margin: 6px 0 10px;
}

.rt-breadcrumb {
	font-size: 13px;
	color: var(--rt-muted);
	margin-bottom: 12px;
	opacity: 1;
}

.rt-breadcrumb a {
	color: var(--rt-blue-2);
}

.rt-summary-line {
	font-size: 15px;
	color: var(--rt-ink);
	margin: 0 0 22px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--rt-line);
}

.rt-updated {
	color: var(--rt-muted);
	font-size: 13px;
	margin-left: 6px;
	opacity: 1;
}

.rt-card {
	background: var(--rt-surface);
	border: 1px solid var(--rt-line);
	border-radius: 10px;
	padding: 20px 22px;
	margin: 0 0 14px;
}

.rt-card-head h2 {
	margin: 0 0 4px;
	font-size: 16.5px;
	line-height: 1.35;
}

.rt-card-head h2 a {
	color: var(--rt-ink);
	text-decoration: none;
}

.rt-card-head h2 a:hover {
	text-decoration: underline;
}

.rt-card-meta {
	margin: 2px 0 10px;
}

.rt-card-meta span {
	font-size: 12.5px;
	color: var(--rt-muted);
	opacity: 1;
	margin-right: 16px;
}

.rt-card p {
	font-size: 14px;
	margin: 8px 0;
	color: #333C46;
}

.rt-card p strong {
	color: var(--rt-ink);
}

/* "What to do" callout: last remedy paragraph gets the blue tint box. */
.rt-card p:last-of-type:not(.rt-advisory) {
	background: var(--rt-blue-tint);
	border-radius: 8px;
	padding: 10px 13px;
}

/* Red is reserved for safety advisories. */
.rt-advisory {
	background: var(--rt-red-tint);
	border: 1px solid #E3B4B4;
	border-left: 4px solid var(--rt-red);
	border-radius: 6px;
	padding: 8px 12px;
	color: var(--rt-red);
	font-size: 14px;
}

.rt-affected {
	columns: 2;
	max-width: 640px;
	padding-left: 20px;
}

.rt-affected a {
	color: var(--rt-blue-2);
}

.rt-source-note {
	margin-top: 32px;
	font-size: 12.5px;
	color: var(--rt-muted);
	opacity: 1;
}

/* ---------- Posts & pages (stats articles) ---------- */

.rt-main {
	padding: 26px 20px 60px;
}

.rt-main h1,
.rt-article h1 {
	margin-top: 6px;
}

.rt-post-meta,
.rt-post-meta .wp-block-post-date {
	font-size: 13px;
	color: var(--rt-muted);
}

.rt-post-card {
	background: var(--rt-surface);
	border: 1px solid var(--rt-line);
	border-radius: 10px;
	padding: 20px 22px;
	margin-bottom: 14px;
}

.rt-post-card h2 {
	margin: 0 0 4px;
	font-size: 18px;
}

.rt-post-card h2 a {
	color: var(--rt-ink);
	text-decoration: none;
}

.rt-post-card h2 a:hover {
	text-decoration: underline;
}

.rt-article .wp-block-post-content {
	font-size: 16px;
	line-height: 1.65;
}

.rt-search-note {
	color: var(--rt-muted);
	font-size: 14px;
}

/* ---------- Footer ---------- */

.rt-site-footer {
	background: var(--rt-blue);
	color: #C8D6E5;
	font-size: 13px;
	padding: 34px 0;
	margin-top: 20px;
}

.rt-foot-cols {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 30px;
}

.rt-foot-cols h5 {
	color: #FFFFFF;
	font-size: 13px;
	margin: 0 0 8px;
}

.rt-foot-cols p {
	margin: 0;
}

.rt-foot-cols a {
	color: #C8D6E5;
	display: block;
	padding: 2px 0;
	text-decoration: none;
}

.rt-foot-cols a:hover {
	text-decoration: underline;
}

.rt-foot-fine {
	margin-top: 22px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	font-size: 12px;
	line-height: 1.6;
	color: #9FB3C8;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.rt-tiles,
	.rt-latest {
		grid-template-columns: 1fr 1fr;
	}

	.rt-hero-h1 {
		font-size: 30px;
	}

	.rt-foot-cols {
		grid-template-columns: 1fr;
	}

	.rt-affected {
		columns: 1;
	}
}

@media (max-width: 560px) {
	.rt-tiles,
	.rt-latest {
		grid-template-columns: 1fr;
	}

	.rt-nav {
		gap: 12px;
	}
}
