/*
Theme Name: Voxtu
Description: A clean system-font blog theme for truck driver work guides, with a bot check homepage and managed ad slots.
Version: 1.0.1
Requires at least: 6.4
Tested up to: 7.2
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: voxtu
Tags: blog, one-column, custom-menu, custom-logo, featured-images, threaded-comments
*/

:root {
	--pg-accent: #1e73be;
	--pg-accent-soft: #e6f0fb;
	--pg-info: #1f4f82;
	--pg-info-soft: #e5eef8;
	--pg-ink: #222;
	--pg-heading: #222;
	--pg-muted: #58616f;
	--pg-line: #dce2eb;
	--pg-bg: #f7f8f9;
	--pg-card: #fff;
	--pg-head-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--pg-body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--pg-wrap: 820px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--pg-bg);
	color: var(--pg-ink);
	font: 400 17px/1.7 var(--pg-body-font);
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--pg-accent); }
a:hover { text-decoration: none; }
h1, h2, h3, h4 {
	margin: 0 0 .6em;
	color: var(--pg-heading);
	font-family: var(--pg-head-font);
	font-weight: 600;
	line-height: 1.2;
}
:focus-visible { outline: 2px solid var(--pg-accent); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 8px 14px;
	clip: auto;
	background: #fff;
}

/* Header */
.site-header { background: var(--pg-card); border-bottom: 1px solid var(--pg-line); }
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: 1200px;
	min-height: 80px;
	margin: 0 auto;
	padding: 0 20px;
}
.site-title { margin: 0; font-size: 25px; font-weight: 700; }
.site-title a { color: var(--pg-heading); text-decoration: none; }
.custom-logo { display: block; max-height: 56px; width: auto; }
.menu-toggle {
	display: none;
	padding: 8px 12px;
	border: 1px solid var(--pg-line);
	border-radius: 4px;
	background: transparent;
	color: var(--pg-heading);
	font: inherit;
	cursor: pointer;
}
.primary-nav ul { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: block; padding: 8px 16px; color: #334155; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--pg-accent); }
.primary-nav .sub-menu { display: none; }

/* Layout */
.site-main { max-width: var(--pg-wrap); margin: 0 auto; padding: 32px 0 56px; }
.site-main--wide { max-width: 1040px; padding-left: 20px; padding-right: 20px; }
.card { padding: 40px; background: var(--pg-card); }
.entry-title { font-size: 40px; font-weight: 400; margin-bottom: 10px; }
.entry-content { font-size: 17px; }
.entry-content > * { margin-top: 0; margin-bottom: 1.1em; }
.entry-content h2 { margin-top: 1.5em; font-size: 32px; font-weight: 400; }
.entry-content h3 { margin-top: 1.3em; font-size: 24px; font-weight: 400; }
.entry-content ul, .entry-content ol { padding-left: 20px; }
.entry-content li { margin-bottom: .5em; }
.entry-content img { border-radius: 6px; }
.wp-block-table { overflow-x: auto; }
.wp-block-table table, .entry-content table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.entry-content th, .entry-content td { padding: 9px 12px; border: 1px solid var(--pg-line); text-align: left; }
.entry-content th { background: var(--pg-bg); color: var(--pg-heading); font-weight: 600; }

/* Guide summary */
.pg-crumb { margin-bottom: 12px; color: var(--pg-muted); font-size: 13px; }
.pg-crumb a { color: inherit; }
.pg-crumb span { margin: 0 4px; }
.pg-updated { margin: 0 0 12px; color: var(--pg-muted); font-size: 14px; }
.pg-flags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pg-flag {
	padding: 4px 10px;
	border-radius: 3px;
	background: var(--pg-info-soft);
	color: var(--pg-info);
	font-size: 12.5px;
	font-weight: 600;
}
.pg-flag:first-child { background: var(--pg-accent-soft); color: var(--pg-accent); }
.pg-high { margin: 0 0 20px; padding-left: 20px; }
.pg-high li { margin-bottom: 6px; }
.pg-notice {
	margin: 0 0 20px;
	padding: 12px 15px;
	border-radius: 5px;
	background: var(--pg-bg);
	color: var(--pg-muted);
	font-size: 14px;
}
.pg-panel {
	margin-bottom: 20px;
	padding: 18px;
	border: 1px solid var(--pg-line);
	border-radius: 6px;
	background: var(--pg-card);
}
.pg-panel__title {
	margin: 0 0 14px;
	color: var(--pg-muted);
	font-size: 13px;
	letter-spacing: .02em;
	text-transform: uppercase;
}
.pg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.pg-cell { display: flex; gap: 10px; }
.pg-cell svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 3px; color: var(--pg-muted); }
.pg-k { display: block; color: var(--pg-muted); font-size: 12px; }
.pg-v { display: block; font-weight: 600; }

/* Quiz */
.pg-quiz {
	margin-bottom: 24px;
	padding: 20px;
	border: 1px solid var(--pg-line);
	border-left: 3px solid var(--pg-accent);
	border-radius: 6px;
}
.pg-quiz h2 { margin: 0 0 6px; font-size: 18px; }
.pg-quiz__sub { margin: 0 0 16px; color: var(--pg-muted); font-size: 14.5px; }
.pg-q { margin-bottom: 14px; }
.pg-q p { margin: 0 0 8px; font-weight: 600; }
.pg-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-opts button {
	padding: 9px 15px;
	border: 1px solid var(--pg-line);
	border-radius: 4px;
	background: transparent;
	color: var(--pg-ink);
	font: inherit;
	font-size: 14.5px;
	cursor: pointer;
}
.pg-opts button:hover { border-color: var(--pg-accent); }
.pg-opts button[aria-pressed="true"] {
	border-color: var(--pg-accent);
	background: var(--pg-accent-soft);
	color: var(--pg-accent);
	font-weight: 600;
}
.pg-meter { height: 6px; margin: 16px 0; overflow: hidden; border-radius: 3px; background: var(--pg-line); }
.pg-meter i { display: block; width: 0; height: 100%; background: var(--pg-accent); transition: width .25s; }
.pg-res { padding: 15px; border: 1px solid var(--pg-accent); border-radius: 5px; background: var(--pg-accent-soft); }
.pg-res h3 { margin: 0 0 6px; font-size: 16px; color: var(--pg-accent); }
.pg-res p { margin: 0 0 12px; }
.pg-btn {
	display: inline-block;
	padding: 11px 20px;
	border-radius: 4px;
	background: var(--pg-accent);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}
.pg-btn:hover { opacity: .9; color: #fff; }

/* Ads */
.ad-slot { margin: 24px auto; text-align: center; }
.ad-slot__label {
	display: block;
	margin-bottom: 6px;
	color: var(--pg-muted);
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.ad-slot__body { min-height: 250px; }
.ad-slot__body:has(> img), .ad-slot__body:has(> a > img) { min-height: 0; }
.ad-slot__body img { display: block; width: 100%; max-width: 630px; height: auto; margin: 0 auto; border-radius: 4px; }
.ad-slot--preview .ad-slot__body {
	display: grid;
	place-items: center;
	border: 1px dashed var(--pg-line);
	color: var(--pg-muted);
}

/* Callout pattern and related guides */
.see-also {
	padding: 14px 16px;
	border-left: 3px solid var(--pg-info);
	background: var(--pg-info-soft);
	font-size: 15px;
}
.see-also p { margin: 0; }
.pg-more { margin-top: 32px; }
.pg-more h2 { font-size: 20px; }
.pg-rel { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pg-rel a {
	display: block;
	padding: 14px;
	border: 1px solid var(--pg-line);
	border-radius: 6px;
	color: inherit;
	text-decoration: none;
}
.pg-rel a:hover { border-color: var(--pg-accent); }
.pg-rel .t { font-weight: 600; line-height: 1.3; }
.pg-rel .m { margin: 4px 0 6px; color: var(--pg-muted); font-size: 13.5px; }
.pg-rel .go { color: var(--pg-accent); font-size: 13.5px; font-weight: 600; }

/* Lists */
.archive-head { margin-bottom: 24px; }
.archive-head h1 { font-size: 30px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; background: var(--pg-card); border: 1px solid var(--pg-line); border-radius: 6px; overflow: hidden; }
.post-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card__body { padding: 16px; }
.post-card h2 { font-size: 18px; }
.post-card h2 a { color: var(--pg-heading); text-decoration: none; }
.post-card p { margin: 0; color: var(--pg-muted); font-size: 14.5px; }
.pagination { margin-top: 28px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { padding: 6px 12px; border: 1px solid var(--pg-line); border-radius: 4px; background: var(--pg-card); text-decoration: none; }
.pagination .current { background: var(--pg-accent); border-color: var(--pg-accent); color: #fff; }
.search-form { display: flex; gap: 8px; }
.search-field { flex: 1; padding: 10px 12px; border: 1px solid var(--pg-line); border-radius: 4px; font: inherit; }
.search-submit { padding: 10px 16px; border: 0; border-radius: 4px; background: var(--pg-accent); color: #fff; font: inherit; cursor: pointer; }

/* Comments */
.comments-area { margin-top: 24px; }
.comment-list { margin: 0 0 24px; padding: 0; list-style: none; }
.comment-list .children { padding-left: 20px; list-style: none; }
.comment-body { padding: 14px 0; border-bottom: 1px solid var(--pg-line); font-size: 15px; }
.comment-meta, .comment-metadata { color: var(--pg-muted); font-size: 13px; }
.comment-form label { display: block; margin-bottom: 4px; font-size: 14px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid var(--pg-line);
	border-radius: 4px;
	font: inherit;
}
.comment-form-cookies-consent label { display: inline; }
.comment-form .submit { padding: 11px 20px; border: 0; border-radius: 4px; background: var(--pg-accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }

/* Footer */
.site-footer { padding: 26px 20px; background: #fff; border-top: 1px solid var(--pg-line); color: #555; font-size: 14px; text-align: center; }
.site-footer ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0 0 10px; padding: 0; list-style: none; }
.site-footer a { color: inherit; }
.site-footer__copy { margin: 0; }
.to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 4px;
	background: var(--pg-accent);
	color: #fff;
	font-size: 18px;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }

.entry-thumb { display: block; width: 100%; margin-bottom: 16px; border-radius: 6px; }

/* Suggested guides after the quiz */
.pg-next { margin: 0 0 28px; }
.pg-next h2 { margin: 0 0 12px; font-size: 22px; }
.pg-readon { margin: 12px 0 0 !important; color: var(--pg-muted); font-size: 14.5px; }
.pg-next .pg-rel a { border-left: 3px solid var(--pg-accent); background: var(--pg-card); }
.pg-next .pg-rel .t { text-decoration: underline; }

.pg-res__guides { margin: 0; }
.pg-res__guides h3 { margin: 0 0 12px; color: var(--pg-heading); font-size: 18px; }
.pg-res__guides .pg-rel a { border-left: 3px solid var(--pg-accent); background: var(--pg-card); }
.pg-res__guides .pg-rel .t { text-decoration: underline; }
.pg-rel a[hidden] { display: none; }

.pg-res__ok h3 { margin: 0 0 8px; color: var(--pg-accent); font-size: 18px; }
.pg-res__ok p { margin: 0 0 14px; }
.pg-res__link { color: var(--pg-info); font-weight: 600; }

.pg-next .pg-rel a, .pg-res__guides .pg-rel a { border-left-color: #b42318; }
.pg-next .pg-rel .go, .pg-res__guides .pg-rel .go { color: #b42318; text-decoration: underline; }

/* Previous and next links */
.post-navigation { margin: 32px 0; }
.post-navigation .nav-links { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.post-navigation .nav-previous { grid-column: 1; padding-right: 24px; }
.post-navigation .nav-next { grid-column: 2; padding-left: 24px; border-left: 1px solid var(--pg-line); text-align: right; }
.post-navigation .nav-previous:only-child { border-right: 1px solid var(--pg-line); }
.post-navigation a { display: block; color: #334155; text-decoration: none; }
.post-navigation a:hover .nav-title { color: var(--pg-accent); }
.post-navigation .nav-label { display: block; margin-bottom: 6px; color: var(--pg-heading); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.post-navigation .nav-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) { .post-navigation { padding: 0 16px; } .post-navigation .nav-previous { padding-right: 12px; } .post-navigation .nav-next { padding-left: 12px; } }

/* Contact form */
.pg-contact label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.pg-contact input, .pg-contact textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--pg-line); border-radius: 4px; font: inherit; }
.pg-contact button { border: 0; cursor: pointer; }
.pg-contact__trap { position: absolute; left: -9999px; }
.pg-contact__note { padding: 10px 14px; border-radius: 5px; background: var(--pg-accent-soft); color: var(--pg-accent); font-weight: 600; }

/* Homepage security check */
.pg-landing { background: #edf6f0; color: #1f2937; }
html:has(body.pg-landing), body.pg-landing { height: 100%; overflow: hidden; }
.landing { display: flex; align-items: center; justify-content: center; height: 100vh; height: 100dvh; padding: 16px; }
body.admin-bar .landing { height: calc(100vh - 32px); height: calc(100dvh - 32px); }
.gate { width: 100%; max-width: 480px; padding: 30px 28px 22px; border-radius: 20px; background: #fff; box-shadow: 0 18px 50px rgba(22, 101, 52, .1); text-align: center; }
.gate__icon { display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 50%; background: #16a34a; box-shadow: 0 8px 20px rgba(22, 163, 74, .3); }
.gate h1 { margin: 0 0 6px; color: #111827; font-size: 30px; font-weight: 700; }
.gate__text { margin: 0 0 16px; color: #4b5563; font-size: 17px; }
.gate__ready, .gate__secure { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 12px; font-size: 15px; font-weight: 600; text-align: left; }
.gate__ready i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #e7f5ec; font-size: 17px; font-style: normal; }
.gate__secure { border-color: #d4eddd; background: #eff8f2; font-size: 14px; font-weight: 400; }
.gate__secure i { font-style: normal; }
.gate .cf-turnstile { display: flex; justify-content: center; margin-bottom: 10px; }
.gate__btn { display: block; width: 100%; padding: 15px 16px; border: 0; border-radius: 10px; background: #16a34a; color: #fff; font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; }
.gate__btn:hover { background: #15803d; }
.gate__btn:disabled { opacity: .7; cursor: wait; }
.gate__legal { margin: 12px 0 0; color: #6b7280; font-size: 13px; line-height: 1.5; }
.gate__legal a { color: #15803d; }
.landing__error { margin: 0 0 12px; padding: 7px 10px; border-radius: 6px; background: #fdecee; color: #a11f2e; font-size: 14px; }
@media (max-width: 600px) {
	body.admin-bar .landing { height: calc(100vh - 46px); height: calc(100dvh - 46px); }
	.landing { padding: 10px; }
	.gate { padding: 18px 16px 14px; border-radius: 16px; }
	.gate__icon { width: 54px; height: 54px; margin-bottom: 10px; }
	.gate__icon svg { width: 30px; height: 30px; }
	.gate h1 { font-size: 23px; margin-bottom: 4px; }
	.gate__text { margin-bottom: 10px; font-size: 15px; }
	.gate__ready, .gate__secure { margin-bottom: 8px; padding: 8px 10px; font-size: 13px; gap: 8px; }
	.gate__ready i { width: 28px; height: 28px; font-size: 14px; }
	.gate__btn { padding: 12px; font-size: 16px; }
	.gate__legal { margin-top: 8px; font-size: 11px; line-height: 1.35; }
	.landing__error { margin-bottom: 8px; padding: 4px 8px; font-size: 12px; }
	.gate .cf-turnstile { position: fixed; right: 0; bottom: 12px; left: 0; z-index: 10; margin: 0; }
}

@media (max-width: 921px) {
	.post-grid { grid-template-columns: 1fr 1fr; }
	.menu-toggle { display: block; }
	.site-header__inner { flex-wrap: wrap; min-height: 68px; padding-top: 10px; padding-bottom: 10px; }
	.primary-nav { display: none; flex-basis: 100%; }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; }
	.primary-nav a { padding: 10px 0; }
}
@media (max-width: 600px) {
	.site-main { padding-top: 0; }
	.card { padding: 24px 18px; }
	.entry-title { font-size: 26px; }
	.pg-grid, .pg-rel, .post-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.pg-meter i, .to-top { transition: none; }
}

.pg-byline { margin: 0 0 16px; color: #555; font-size: 15px; }
.pg-byline b { color: var(--pg-accent); font-weight: 400; }
.pg-toc { margin: 22px 0; padding: 14px 18px; border: 1px solid var(--pg-line); border-radius: 6px; background: #fbfbfc; }
.pg-toc summary { display: flex; justify-content: space-between; font-weight: 700; cursor: pointer; list-style: none; }
.pg-toc summary::-webkit-details-marker { display: none; }
.pg-toc summary span { color: var(--pg-accent); font-size: 14px; font-weight: 400; }
.pg-toc ol { margin: 12px 0 0; padding-left: 22px; font-size: 16px; }
.pg-toc li { margin-bottom: 5px; }
.pg-toc a { text-decoration: none; }
.pg-list { margin: 24px 0; }
.pg-list a { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding: 10px; border: 1px solid var(--pg-line); border-radius: 10px; background: #fbfbfc; color: inherit; text-decoration: none; }
.pg-list a:hover { border-color: #2563eb; }
.pg-list img { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.pg-list__text { flex: 1; min-width: 0; line-height: 1.35; }
.pg-list__text small { display: block; color: #b7791f; font-size: 12px; font-weight: 700; }
.pg-list__text b { font-size: 15px; font-weight: 500; }
.pg-list__btn { flex: 0 0 auto; padding: 8px 12px; border-radius: 5px; background: #2563eb; color: #fff; font-size: 12px; font-weight: 600; text-transform: uppercase; }
.post-navigation .nav-label { letter-spacing: .04em; }
@media (max-width: 600px) { .entry-title { font-size: 30px; } .entry-content h2 { font-size: 26px; } .entry-content h3 { font-size: 21px; } .pg-list__btn { display: none; } }
