/*
Theme Name: JobsLite
Description: Slim, fast, clean WordPress theme for a jobs-focused content site. Built-in SEO and GEO (Generative Engine Optimization): JSON-LD, llms.txt, quick-answer boxes, visible freshness. Header ad beside the logo, menu underneath, and monetization slots with reserved space. Built to sit alongside a job-listing plugin and SEO, cache and consent plugins.
Author: Muhire Jean Berchimas
Version: 2.2.0
Requires at least: 6.3
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jobslite
*/

:root {
	--ink: #16202e; --muted: #5a6575; --line: #dde3ea; --wash: #f3f6f9;
	--brand: #0b5c6b; --brand-dark: #08444f; --tint: #e3f1f3;
	--on-brand: #fff; --on-brand-dark: #fff; --link: #0b5c6b; --link-hover: #08444f; --r: 8px; --wrap: 1160px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.65 var(--font); color: var(--ink); background: #fff; }
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid #f0a500; outline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
h2 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 14px; z-index: 100; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; margin: 48px auto; }

/* Header: logo left, ad right, menu bar underneath */
.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { flex: 0 1 auto; min-width: 0; }
.brand-name { font-size: 1.5rem; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.custom-logo { max-height: 56px; width: auto; display: block; }
.header-top .ad { margin: 0; flex: 0 1 728px; min-height: 90px; }
.header-top .ad-label { margin-bottom: 2px; }
.nav-bar { background: var(--brand); }
.nav-inner { display: flex; align-items: center; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.primary-nav li { position: relative; }
.primary-nav a { display: block; padding: 12px 16px; color: var(--on-brand); text-decoration: none; font-weight: 600; font-size: .95rem; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { background: var(--brand-dark); color: var(--on-brand-dark); }
.primary-nav .sub-menu a, .primary-nav .children a { color: var(--on-brand-dark); }
.primary-nav .sub-menu, .primary-nav .children { display: none; position: absolute; left: 0; top: 100%; min-width: 210px; background: var(--brand-dark); flex-direction: column; z-index: 30; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu, .primary-nav li:hover > .children, .primary-nav li:focus-within > .children { display: flex; }
.nav-toggle { display: none; background: none; color: var(--on-brand); border: 0; padding: 12px 0; font: inherit; font-weight: 700; cursor: pointer; }

/* Buttons & forms */
.btn { display: inline-block; background: var(--brand); color: var(--on-brand); border: 0; border-radius: 6px; padding: 11px 20px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--brand-dark); color: var(--on-brand-dark); }
.search-form { display: flex; gap: 8px; max-width: 560px; }
.search-form input[type=search] { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.comments textarea, .comments input[type=text], .comments input[type=email], .comments input[type=url] { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }

/* Layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-top: 28px; padding-bottom: 56px; }
.layout--full { grid-template-columns: minmax(0, 1fr); }
.sidebar .widget { margin-bottom: 28px; }
.widget-title { font-size: 1.05rem; padding-bottom: 8px; border-bottom: 2px solid var(--brand); }
.widget ul { padding-left: 1.1em; margin: 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 14px; padding: 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: #a6b0bd; }
.crumbs a { color: var(--muted); }
.archive-header { margin-bottom: 22px; }
.archive-desc { color: var(--muted); max-width: 68ch; }

/* Post listing */
.post-list { display: flex; flex-direction: column; }
.post-card { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.post-card:first-child { border-top: 0; padding-top: 0; }
.post-card:not(:has(.post-thumb)) { grid-template-columns: 1fr; }
.post-thumb { display: block; aspect-ratio: 3 / 2; background: var(--wash); border-radius: var(--r); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-cat { font-size: .85rem; font-weight: 700; text-decoration: none; color: var(--link); }
.post-title { font-size: 1.2rem; margin: 2px 0 6px; }
.post-title a { color: var(--ink); text-decoration: none; }
.post-title a:hover { color: var(--link); text-decoration: underline; }
.post-excerpt { color: var(--muted); margin-bottom: 8px; font-size: .97rem; }
.post-meta { display: flex; gap: 14px; margin: 0; font-size: .85rem; color: var(--muted); }
.post-card.is-featured { grid-template-columns: 1fr; gap: 14px; padding-bottom: 26px; }
.is-featured .post-thumb { aspect-ratio: 1200 / 630; }
.is-featured .post-title { font-size: clamp(1.45rem, 3vw, 1.9rem); }
.is-featured .post-excerpt { font-size: 1.05rem; }
/* Related articles: small thumbnails */
.related { margin-top: 40px; }
.rel-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.rel-list li { display: flex; gap: 12px; align-items: flex-start; }
.rel-thumb { flex: 0 0 96px; aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; background: var(--wash); }
.rel-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rel-title { display: block; font-weight: 700; line-height: 1.3; color: var(--ink); text-decoration: none; font-size: .98rem; }
.rel-title:hover { color: var(--link); text-decoration: underline; }
.rel-date { display: block; font-size: .8rem; color: var(--muted); margin-top: 3px; }
.inline-related { margin: 1.6em 0; padding: 12px 16px; background: var(--wash); border-left: 4px solid var(--brand); border-radius: 0 var(--r) var(--r) 0; clear: both; }
.inline-related .ir-title { margin: 0 0 8px; font-weight: 800; font-size: .95rem; }
.inline-related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.inline-related li { display: flex; gap: 12px; align-items: center; }
.ir-thumb { flex: 0 0 72px; aspect-ratio: 3 / 2; border-radius: 5px; overflow: hidden; background: #fff; }
.ir-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ir-link { font-weight: 700; line-height: 1.3; color: var(--ink); text-decoration: none; }
.ir-link:hover { color: var(--link); text-decoration: underline; }

/* Single */
.entry-header h1 { margin-bottom: .3em; }
.byline { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .9rem; color: var(--muted); }
.quick-answer { background: var(--tint); border-left: 4px solid var(--brand); padding: 14px 18px; border-radius: 0 var(--r) var(--r) 0; margin: 0 0 20px; }
.quick-answer p { margin: 4px 0 0; }
.featured { margin: 0 0 20px; }
.featured img { border-radius: var(--r); width: 100%; }
.entry-content { overflow-wrap: break-word; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.3em; }
.entry-content table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.entry-content blockquote { margin: 1.2em 0; padding-left: 1em; border-left: 3px solid var(--line); color: var(--muted); }
.author-box { display: flex; gap: 14px; padding: 16px; background: var(--wash); border-radius: var(--r); margin: 32px 0; }
.author-box img { border-radius: 50%; }
.author-name { font-weight: 700; margin: 0 0 4px; }
.comments { margin-top: 40px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 20px; }

/* Pagination */
.pagination { margin: 28px 0 0; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; font-weight: 600; }
.page-numbers.current { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

/* Footer */
.site-footer { background: var(--ink); color: #c9d2dd; padding: 32px 0; margin-top: 24px; font-size: .92rem; }
.site-footer a { color: #fff; }
.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0 0 16px; }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-bottom: 24px; }
.footer-widgets .widget-title { color: #fff; }
.copyright { margin: 0; }

/* Ads: space is reserved so late ads never shift content (CLS) */
.ad { margin: 24px auto; text-align: center; clear: both; overflow: hidden; max-width: 100%; }
.ad-label { display: block; font-size: 11px; line-height: 1; color: #8b95a3; margin-bottom: 6px; }
.ad-body { display: flex; justify-content: center; align-items: center; }
.ad--after_title, .ad--after_content, .ad--in_content { min-height: 280px; }
.ad--in_feed { min-height: 130px; margin: 8px 0; }
.ad--sidebar { min-height: 300px; margin-top: 0; }
.ad--footer { min-height: 120px; }
.ad--sticky { display: none; }
.sidebar .ad--sidebar:first-child { position: sticky; top: 16px; }

@media (max-width: 960px) {
	.layout { grid-template-columns: 1fr; }
	.sidebar .ad--sidebar:first-child { position: static; }
}
@media (max-width: 760px) {
	body { font-size: 16.5px; }
	.header-top { flex-direction: column; align-items: flex-start; gap: 10px; }
	.header-top .ad { flex: none; width: 100%; min-height: 100px; }
	.nav-toggle { display: block; }
	.primary-nav { display: none; width: 100%; }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; }
	.primary-nav .sub-menu, .primary-nav .children { display: flex; position: static; background: transparent; padding-left: 14px; }
	.primary-nav .sub-menu a, .primary-nav .children a { color: var(--on-brand); }
	.post-card { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
	.post-card .post-excerpt { display: none; }
	.post-card.is-featured { grid-template-columns: 1fr; }
	.post-card.is-featured .post-excerpt { display: block; }
	.rel-list { grid-template-columns: 1fr; }
	.search-form { flex-direction: column; }
	.ad--sticky { display: block; position: fixed; left: 0; right: 0; bottom: 0; margin: 0; min-height: 60px; background: #fff; border-top: 1px solid var(--line); z-index: 50; padding: 4px 8px 6px; }
	.ad-close { position: absolute; top: -26px; right: 8px; border: 1px solid var(--line); background: #fff; border-radius: 6px 6px 0 0; width: 28px; height: 26px; cursor: pointer; }
	body.has-sticky-ad { padding-bottom: 72px; }
}
@media print { .site-header, .sidebar, .ad, .site-footer { display: none; } }
