/*
Theme Name: Ngvacancy
Description: Lean editorial theme from the WordPress starter kit. Pairs with the Site Kit must-use plugin.
Version: 1.3.5
Author: Larry Frank
Requires PHP: 8.0
Text Domain: starter
*/

/* ---------- Tokens ---------- */
:root {
	--accent: #1A7F9C;
	--ink: #161616;
	--ink-2: #3d3d3d;
	--muted: #666;
	--rule: #e3e3e0;
	--soft: #f6f6f3;
	--bg: #fff;
	--font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--w: 1140px;
	--w-text: 720px;
	--gutter: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 19px/1.65 var(--font);
	text-rendering: optimizeLegibility;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.01em; margin: 0; font-weight: 700; }
p { margin: 0; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-text { max-width: calc(var(--w-text) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: calc(1000px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--bg); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand img { display: block; height: 36px; width: auto; max-width: 200px; }
.brand-name { font-weight: 800; font-size: 1.3rem; text-decoration: none; letter-spacing: -0.02em; }
.nav-toggle { display: none; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-nav .menu a { text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--ink-2); }
.site-nav .menu a:hover, .site-nav .current-menu-item > a { color: var(--accent); }

.search-form { display: flex; gap: 0; }
.search-form input {
	font: inherit; font-size: 0.9rem; padding: 7px 10px; border: 1px solid var(--rule); border-right: 0;
	border-radius: 0; width: 170px; min-width: 0; background: var(--bg); color: var(--ink);
}
.search-form button {
	font: inherit; font-size: 0.9rem; padding: 7px 12px; border: 1px solid var(--ink); background: var(--ink);
	color: #fff; cursor: pointer; border-radius: 0;
}
.search-form button:hover { background: var(--accent); border-color: var(--accent); }

@media (max-width: 860px) {
	.site-header { position: relative; }
	.desktop-nav { display: none; }
	.nav-toggle { display: block; }
	.nav-toggle summary {
		display: flex; flex-direction: column; justify-content: center; gap: 5px;
		width: 44px; height: 44px; cursor: pointer; list-style: none; padding: 10px;
	}
	.nav-toggle summary::-webkit-details-marker { display: none; }
	.nav-toggle summary span { display: block; height: 2px; background: var(--ink); }
	.mobile-nav {
		position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); z-index: 5;
		border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 20px;
		flex-direction: column; align-items: stretch; gap: 14px;
	}
	.mobile-nav .menu { flex-direction: column; gap: 0; }
	.mobile-nav .menu a { display: block; padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--rule); }
	.mobile-nav .search-form input { flex: 1; width: auto; }
}

/* ---------- Shared bits ---------- */
.site-main { padding-bottom: 72px; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.85rem; color: var(--muted); }
.label { color: var(--accent); font-weight: 600; text-decoration: none; }
.label:hover { text-decoration: underline; }
.section-title {
	font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600;
	padding-bottom: 10px; border-bottom: 1px solid var(--ink); margin-bottom: 4px;
}
.crumbs { font-size: 0.85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.empty { padding: 48px 0; color: var(--muted); }

/* ---------- Home ---------- */
.lead { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; align-items: center; padding: 40px 0 44px; border-bottom: 1px solid var(--rule); }
.lead-img img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--soft); }
.lead-title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 10px 0 14px; }
.lead-title a { text-decoration: none; }
.lead-title a:hover { color: var(--accent); }
.lead-excerpt { color: var(--ink-2); font-size: 1.05rem; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; padding-top: 40px; }
.side .index { list-style: none; margin: 0; padding: 0; }
.side .index li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--rule); }
.side .index a { text-decoration: none; padding: 11px 0; font-size: 0.98rem; }
.side .index span { color: var(--muted); font-size: 0.85rem; padding-top: 13px; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
	.lead { grid-template-columns: 1fr; gap: 18px; padding-top: 24px; }
	.two-col { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Rows (lists of posts) ---------- */
.rows .row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.rows .row:not(:has(.row-img)) { grid-template-columns: 1fr; }
.row-img img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--soft); }
.row-title { font-size: 1.25rem; margin: 6px 0 6px; }
.row-title a { text-decoration: none; }
.row-title a:hover { color: var(--accent); }
.row-excerpt { color: var(--ink-2); font-size: 0.98rem; }
.rows.narrow { max-width: 860px; }
@media (max-width: 600px) {
	.rows .row { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 18px 0; }
	.row-title { font-size: 1.08rem; }
	.row-excerpt { display: none; }
}

.page-head { padding: 40px 0 20px; border-bottom: 1px solid var(--rule); margin-bottom: 8px; max-width: 860px; }
.page-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.archive-desc { color: var(--ink-2); margin-top: 12px; max-width: 680px; }
.page-head .search-form { margin-top: 18px; max-width: 460px; }
.page-head .search-form input { flex: 1; width: auto; }

.pager ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 32px 0 0; }
.pager a, .pager span { display: inline-block; min-width: 44px; padding: 9px 14px; border: 1px solid var(--rule); text-align: center; text-decoration: none; font-size: 0.95rem; }
.pager .current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Article ---------- */
.article-head { padding-top: 40px; }
.article-head h1 { font-size: clamp(2rem, 4.2vw, 2.85rem); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 14px; }
.article-img { margin-top: 28px; margin-bottom: 0; }
.article-img img { display: block; width: 100%; height: auto; background: var(--soft); }

.prose { padding-top: 32px; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; scroll-margin-top: 20px; }
.prose h3 { font-size: 1.28rem; margin-top: 1.7em; }
.prose h4 { font-size: 1.08rem; margin-top: 1.5em; }
.prose a { color: var(--accent); }
.prose a:hover { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 2px 0 2px 20px; border-left: 3px solid var(--accent); color: var(--ink-2); }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption, .prose .wp-element-caption { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }
.prose img { display: block; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: 10px 8px; text-align: left; vertical-align: top; }
.prose th { border-bottom-color: var(--ink); }
.prose .wp-block-table { overflow-x: auto; }
.prose .alignwide, .prose .alignfull { margin-left: 0; margin-right: 0; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.prose .alignleft { float: left; margin: 0.3em 1.2em 0.8em 0; max-width: 50%; }
.prose .alignright { float: right; margin: 0.3em 0 0.8em 1.2em; max-width: 50%; }
.prose code { font-size: 0.9em; background: var(--soft); padding: 1px 5px; }
.prose .wp-block-button__link { background: var(--ink); color: #fff; text-decoration: none; padding: 11px 20px; display: inline-block; border-radius: 0; }

.toc { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; margin: 1.8em 0; }
.toc-title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; cursor: pointer; }
.toc details[open] .toc-title { margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.2em; font-size: 0.98rem; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

.related { margin-top: 64px; }

.ad { margin: 28px auto; text-align: center; min-height: 1px; }
.ad-after_header { max-width: var(--w); padding: 0 var(--gutter); }

.page-404 { padding-top: 64px; }
.page-404 h1 { font-size: 2.4rem; margin-bottom: 14px; }
.page-404 .search-form { margin-top: 24px; max-width: 460px; }
.page-404 .search-form input { flex: 1; width: auto; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--ink); padding-top: 40px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid.no-menu { grid-template-columns: 1.4fr 2fr; }
.footer-brand { font-weight: 800; font-size: 1.15rem; margin-bottom: 6px; }
.footer-head { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { margin: 6px 0; }
.plain a { text-decoration: none; }
.plain a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--rule); margin-top: 40px; padding-top: 18px; padding-bottom: 28px; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 760px) {
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* ---------- Theme Settings additions ---------- */
.two-col.no-side { grid-template-columns: minmax(0, 1fr); }
.footer-logo { display: inline-block; line-height: 0; margin-bottom: 8px; }
.footer-logo img { width: auto; max-width: 240px; }
.footer-more { font-weight: 600; text-decoration: none; color: var(--accent); }
.footer-social { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; }

/* ---------- Ngvacancy: status box and job list in posts ---------- */
.ngv-status { background: #EAF6FA; border: 1px solid #C7E9F3; border-radius: 14px; padding: 18px 22px; margin: 28px 0; }
.ngv-status p { margin: 0; }
.ngv-no-jobs { background: #f6f6f3; border-radius: 12px; padding: 14px 18px; color: var(--ink-2); }
.ngv-post-list { padding-left: 1.2em; }

/* ---------- Ngvacancy: FAQ ---------- */
.ngv-faq { margin-top: 48px; }
.ngv-faq h2 { margin-bottom: 18px; }
.ngv-faq details { background: #fff; border: 1px solid #D6E8EE; border-radius: 14px; margin: 0 0 12px; overflow: hidden; }
.ngv-faq details[open] { border-color: #2BA3C4; box-shadow: 0 6px 18px -12px rgba(15, 95, 117, .5); }
.ngv-faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; font-weight: 600; font-size: 1.05rem; position: relative; }
.ngv-faq summary::-webkit-details-marker { display: none; }
.ngv-faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid #1A7F9C; border-bottom: 2px solid #1A7F9C; transform: rotate(45deg); transition: transform .2s; }
.ngv-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.ngv-faq summary:hover { color: #1A7F9C; }
.ngv-faq summary:focus-visible { outline: 3px solid #2BA3C4; outline-offset: -3px; }
.ngv-faq details > p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); }
.ngv-faq details[open] summary { color: #0F5F75; }

/* ---------- Ngvacancy: related guides card ([ngv-related]) ---------- */
.ngv-related { background: #EAF6FA; border: 1px solid #C7E9F3; border-radius: 18px; padding: 22px 24px 18px; margin: 32px 0; }
.ngv-related-title { margin: 0 0 4px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #0F5F75; }
.ngv-related-intro { margin: 0 0 14px; font-size: 1rem; color: var(--ink-2); }
.ngv-related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.ngv-related li, .prose .ngv-related li + li { margin: 0; }
.ngv-related li a { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 100%; box-sizing: border-box; background: #fff; border: 1px solid #D6E8EE; border-radius: 12px; padding: 11px 14px; font-size: .95rem; font-weight: 600; line-height: 1.3; color: #111820; text-decoration: none; transition: border-color .15s, color .15s; }
.ngv-related li a::after { content: ""; flex: 0 0 8px; width: 8px; height: 8px; border-top: 2px solid #1A7F9C; border-right: 2px solid #1A7F9C; transform: rotate(45deg); }
.ngv-related li a:hover { border-color: #2BA3C4; color: #0F5F75; }
.ngv-related li a:focus-visible { outline: 3px solid #2BA3C4; outline-offset: 2px; }
@media (max-width: 600px) { .ngv-related ul { grid-template-columns: 1fr; } .ngv-related { padding: 18px; } }
