/*
Theme Name: Munusly
Theme URI: https://munusly.com
Author: Munusly
Description: A lightweight, standalone theme for remote marketing jobs. Built for WP Job Manager, with a dotted world map in the hero. No parent theme needed.
Version: 1.0.27
Requires at least: 6.3
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: munusly
*/

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
	font-family: "Bricolage Grotesque";
	src: url("assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Figtree";
	src: url("assets/fonts/figtree-latin-wght-normal.woff2") format("woff2");
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
	--ink: #12161f;
	--slate: #556070;
	--mist: #eef1f5;
	--mist-2: #f6f8fa;
	--line: #dde2e9;
	--paper: #ffffff;
	--orange: #f0844c;
	--orange-text: #b4491a;
	--navy: #0e2238;
	--display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
	--body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
	--wrap: 1180px;
	--radius: 14px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.6em; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: 0.7rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* Logged-in admins: WordPress already offsets the page for the admin bar (html margin), so make sure
   nothing else adds a second offset above the header. */
body.admin-bar { margin-top: 0 !important; padding-top: 0 !important; }

/* ---------- Buttons ---------- */
.btn,
.button,
button.button,
input[type="submit"],
.job-manager-form input[type="submit"],
.application_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.95rem 1.7rem;
	border: 0;
	border-radius: 999px;
	background: var(--orange);
	color: var(--ink);
	font: 700 1rem/1 var(--body);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:hover, .button:hover, input[type="submit"]:hover, .application_button:hover { background: #f59a6b; }
.btn:active, .button:active { transform: translateY(1px); }
.btn--small { padding: 0.65rem 1.15rem; font-size: 0.95rem; }

.link-arrow { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 2px; }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.75rem; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; }
.brand__tag { font-size: 0.8125rem; color: var(--slate); }
.custom-logo { max-height: 2.75rem; width: auto; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav .menu, .site-footer .menu { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.site-nav .menu a { display: inline-block; padding: 0.4rem 0; font-weight: 600; text-decoration: none; }
.site-nav .menu a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.site-nav .menu li { position: relative; }
.site-nav .sub-menu { position: absolute; left: -1rem; top: 100%; min-width: 13rem; margin: 0; padding: 0.5rem; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgb(18 22 31 / 0.1); display: none; }
.site-nav .menu li:hover > .sub-menu, .site-nav .menu li:focus-within > .sub-menu { display: block; }
.site-nav .sub-menu a { display: block; padding: 0.5rem 0.75rem; }
.site-nav .submenu-toggle { padding: 0.4rem 0; border: 0; background: none; color: inherit; font: 600 1.0625rem var(--body); cursor: pointer; }
.site-nav .submenu-toggle::after { content: ""; display: inline-block; width: 0.42em; height: 0.42em; margin: 0 0 0.18em 0.5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.site-nav .submenu-toggle:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.site-nav .menu li.is-open > .sub-menu { display: block; }
.site-nav .sub-menu a { display: flex; align-items: baseline; justify-content: space-between; gap: 1.25rem; white-space: nowrap; }
.site-nav .menu-count { color: var(--slate); font-size: 0.85rem; font-weight: 500; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 0.55rem 1.1rem; font: 600 0.95rem var(--body); color: var(--ink); cursor: pointer; }

@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.25rem; background: var(--paper); border-bottom: 1px solid var(--line); }
	.site-nav.is-open { display: flex; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav .menu a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
	.site-nav .sub-menu { position: static; display: none; border: 0; box-shadow: none; padding: 0 0 0 1rem; }
	.site-nav .menu li.is-open > .sub-menu { display: block; }
	.site-nav .submenu-toggle { width: 100%; padding: 0.75rem 0; text-align: left; border-bottom: 1px solid var(--line); }
	.site-nav .btn { align-self: flex-start; }
}

/* ---------- Hero ---------- */
.hero {
	--hero-bg: 238 241 245;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: linear-gradient(180deg, #f4f6f9 0%, rgb(var(--hero-bg)) 100%);
	padding: clamp(3rem, 5vw, 4.5rem) 0 clamp(3.5rem, 5vw, 4.5rem);
	text-align: center;
}
.hero__map {
	position: absolute; inset: 0; z-index: -2;
	background: url("assets/img/world-map.svg") center 40% / auto 118% no-repeat;
}
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: radial-gradient(ellipse 34% 30% at 50% 30%, rgb(var(--hero-bg) / 0.86), rgb(var(--hero-bg) / 0.55) 60%, rgb(var(--hero-bg) / 0) 100%);
}
.hero__title { max-width: 24ch; margin: 0 auto 0.45em; font-size: clamp(2.2rem, 4.6vw, 3.9rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
.hero__lede { max-width: 46ch; margin: 0 auto 2.5rem; color: #2f3846; font-size: clamp(1.05rem, 1.6vw, 1.25rem); text-wrap: balance; }
.hero__count { margin: 3rem 0 0; color: var(--slate); font-size: 0.95rem; }
.hero__count strong { color: var(--ink); }

.hero-search {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr auto;
	align-items: center;
	gap: 0.25rem;
	width: min(100%, 980px);
	margin: 0 auto;
	padding: 0.5rem;
	background: var(--paper);
	border-radius: 999px;
	box-shadow: 0 1px 0 rgb(18 22 31 / 0.04), 0 18px 40px -12px rgb(18 22 31 / 0.18);
	text-align: left;
}
.hero-search__field { display: block; }
.hero-search__field + .hero-search__field { border-left: 1px solid var(--line); }
.hero-search input[type="search"], .hero-search select {
	width: 100%; border: 0; background: transparent; color: var(--ink);
	padding: 1rem 1.4rem; font: 500 1rem var(--body); appearance: none; -webkit-appearance: none; border-radius: 999px;
}
.hero-search select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23556070' stroke-width='2'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 1.3rem center; padding-right: 2.6rem; }
.hero-search input::placeholder { color: #6a7484; }
.hero-search input:focus-visible, .hero-search select:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.hero-search__remote { position: absolute; top: calc(100% + 0.8rem); right: 1.25rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; font-weight: 600; cursor: pointer; }
.hero-search__remote input { width: 1.05rem; height: 1.05rem; accent-color: var(--ink); }

@media (max-width: 860px) {
	.hero__map { background-size: 190% auto; background-position: center 30%; }
	.hero-search { grid-template-columns: 1fr; border-radius: 22px; gap: 0; }
	.hero-search__field + .hero-search__field { border-left: 0; border-top: 1px solid var(--line); }
	.hero-search input[type="search"], .hero-search select { border-radius: 0; }
	.hero-search .btn { margin-top: 0.5rem; }
	.hero-search__remote { position: static; grid-column: 1 / -1; justify-content: center; padding: 1rem 0 0.5rem; }
	.hero__count { margin-top: 1.5rem; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 6vw, 5.5rem) 0; }
.section--tint { background: var(--mist-2); border-block: 1px solid var(--line); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.section__title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 1.25rem; }
.section__head .section__title { margin-bottom: 0; }

/* Categories: an index, not a card grid */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cats__item { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cats__link { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; height: 100%; padding: 1.6rem 1.5rem; text-decoration: none; transition: background-color 0.15s ease; }
.cats__link:hover { background: var(--mist); }
.cats__name { font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; }
.cats__link:hover .cats__name { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.cats__count { color: var(--slate); font-size: 0.9rem; white-space: nowrap; }

/* ---------- Employer band ---------- */
.employer { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: #fff; padding: clamp(4rem, 8vw, 7rem) 0; }
.employer__map {
	position: absolute; inset: 0; z-index: -1; background: rgb(255 255 255 / 0.2);
	-webkit-mask: url("assets/img/world-map-dots.svg") right center / auto 120% no-repeat;
	mask: url("assets/img/world-map-dots.svg") right center / auto 120% no-repeat;
}
.employer__title { max-width: 14ch; font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -0.025em; }
.employer__text { max-width: 44ch; margin-bottom: 2rem; color: #cbd5e1; font-size: 1.15rem; }
.employer :focus-visible { outline-color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: #0a1a2b; color: #cbd5e1; padding: 3.5rem 0 2rem; border-top: 1px solid rgb(255 255 255 / 0.08); }
.site-footer__inner { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.site-footer .brand__name { color: #fff; }
.site-footer__brand p { max-width: 24rem; margin: 0.5rem 0 0; color: #94a3b8; font-size: 0.95rem; }
.site-footer__title { margin: 0 0 0.9rem; color: #fff; font: 700 0.95rem var(--body); letter-spacing: 0; }
.site-footer .menu { display: flex; flex-direction: column; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.site-footer .menu a { text-decoration: none; }
.site-footer .menu a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 0.2em; }
.site-footer__legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 0.1); color: #94a3b8; }
.site-footer :focus-visible { outline-color: #fff; }
@media (max-width: 860px) {
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
	.site-footer__inner { grid-template-columns: 1fr; }
}

/* ---------- Pages and posts ---------- */
.page { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4rem, 7vw, 6rem); }
.page--narrow { max-width: 820px; }
.page__header { margin-bottom: 2rem; }
.page__title { font-size: clamp(2rem, 4.2vw, 3.2rem); letter-spacing: -0.025em; margin: 0; }
.page__meta { margin: 0 0 0.5rem; color: var(--slate); font-size: 0.9rem; }
.page__image { margin-bottom: 2rem; border-radius: var(--radius); overflow: hidden; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.8em; font-size: 1.7rem; }
.prose h3 { margin-top: 1.5em; font-size: 1.3rem; }
.prose a { color: var(--orange-text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.35em; }
.prose blockquote { margin-inline: 0; padding-left: 1.25rem; border-left: 3px solid var(--orange); color: #2f3846; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--line); text-align: left; }
.posts__item { padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.posts__title { font-size: 1.6rem; margin-bottom: 0.4rem; }
.posts__title a { text-decoration: none; }
.posts__title a:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.posts__excerpt p { color: #2f3846; margin: 0; }
.pagination { margin-top: 2rem; }
.pagination .nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pagination .page-numbers { padding: 0.5rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Forms (WP Job Manager and general) ---------- */
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], select, textarea {
	width: 100%; padding: 0.8rem 1rem; background: var(--paper); color: var(--ink);
	border: 1px solid #c3cbd6; border-radius: 10px; font: 500 1rem var(--body);
}
textarea { min-height: 9rem; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
label { font-weight: 600; }
.job-manager-form fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }
.job-manager-form fieldset label { display: block; margin-bottom: 0.4rem; }
.job-manager-form small.description { display: block; margin-top: 0.35rem; color: var(--slate); font-weight: 400; }
.job-manager-form .field.required-field label small { font-weight: 400; color: var(--slate); }
.job-manager-message, .job-manager-error, .job-manager-info { margin: 0 0 1.5rem; padding: 1rem 1.25rem; border-radius: 10px; background: var(--mist); border-left: 4px solid var(--orange); }
.job-manager-error { border-left-color: #b3264d; }
table.job-manager-jobs { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
table.job-manager-jobs th, table.job-manager-jobs td { padding: 0.85rem 0.6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.job-manager-jobs th { font-size: 0.85rem; color: var(--slate); font-weight: 600; }
ul.job-dashboard-actions { display: flex; gap: 0.75rem; list-style: none; margin: 0; padding: 0; }

/* ---------- Job search filters (Find jobs page) ---------- */
.jobs-page form.job_filters { margin: 0 0 1.75rem; padding: 1.25rem 1.4rem 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 16px 34px -24px rgb(18 22 31 / 0.35); }
.jobs-page form.job_filters * { float: none; }
.jobs-page form.job_filters div.search_jobs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; width: auto; margin: 0; padding: 0; background: none; border: 0; }
.jobs-page form.job_filters div.search_jobs > * { flex: 1 1 200px; width: auto; min-width: 0; margin: 0; padding: 0; }
/* Hide wrappers that contain no visible control (for example only hidden inputs), so they leave no blank space. */
.jobs-page form.job_filters div.search_jobs > *:not(input):not(select):not(button):not(a):not(:has(input:not([type="hidden"]), select, textarea, button, .select2-container)) { display: none; }
.jobs-page form.job_filters div.search_jobs > input[type="hidden"] { display: none; }
.jobs-page form.job_filters div.search_jobs > :has(input[name*="keyword"]) { flex: 2 1 260px; }
.jobs-page form.job_filters div.search_jobs > :has(select, .select2-container) { flex: 1.4 1 240px; }
.jobs-page form.job_filters div.search_jobs > input[type="submit"], .jobs-page form.job_filters div.search_jobs > button[type="submit"], .jobs-page form.job_filters div.search_jobs > :has(input[type="submit"], button[type="submit"]) { flex: 0 0 auto; }
body:not(.has-remote-filter) .jobs-page form.job_filters div.search_jobs > [class*="remote"], body:not(.has-remote-filter) .jobs-page form.job_filters div.search_jobs > :has(input[name*="remote"]) { display: none; }
.jobs-page form.job_filters label { display: block; position: static; width: auto; height: auto; margin: 0 0 0.35rem; clip: auto; overflow: visible; color: var(--slate); font-size: 0.8rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.jobs-page form.job_filters input[type="text"], .jobs-page form.job_filters input[type="search"], .jobs-page form.job_filters select { width: 100%; max-width: none; height: auto; margin: 0; padding: 0.85rem 1rem; border-radius: 12px; }
.jobs-page form.job_filters .select2-container { width: 100% !important; }
.jobs-page form.job_filters .select2-container .select2-selection { min-height: 3rem; padding: 0.35rem 0.5rem; border: 1px solid #c3cbd6; border-radius: 12px; }
.jobs-page form.job_filters input[type="submit"], .jobs-page form.job_filters button[type="submit"] { width: 100%; min-height: 3rem; padding-inline: 1.75rem; }
.has-remote-filter .jobs-page form.job_filters div.search_jobs > :has(input[type="checkbox"]) { flex: 1 1 100%; }
.jobs-page form.job_filters div.search_jobs > :has(input[type="checkbox"]) label { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; padding: 0; color: var(--ink); font-size: 0.95rem; font-weight: 600; }
.jobs-page form.job_filters input[type="checkbox"] { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--ink); }

.jobs-page form.job_filters ul.job_types { display: flex; flex-wrap: wrap; gap: 0.5rem; width: auto; margin: 1rem 0 0; padding: 1rem 0 0; list-style: none; border: 0; border-top: 1px solid var(--line); background: none; }
.jobs-page form.job_filters ul.job_types li { width: auto; margin: 0; padding: 0; border: 0; background: none; }
.jobs-page form.job_filters ul.job_types li label { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0; padding: 0.4rem 0.95rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--slate); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.jobs-page form.job_filters ul.job_types li label:hover { border-color: #9aa5b4; }
.jobs-page form.job_filters ul.job_types li label:has(input:checked) { border-color: var(--ink); background: var(--mist); color: var(--ink); }

.jobs-page form.job_filters .showing_jobs:empty, .jobs-page form.job_filters .job-manager-filter-empty { display: none; }
.jobs-page form.job_filters .showing_jobs, .jobs-page form.job_filters a.rss_link { display: block; min-height: 0; margin: 0.75rem 0 0; padding: 0; background: none; border: 0; color: var(--slate); font-size: 0.9rem; text-align: left; }
.jobs-page div.job_listings { margin-top: 0.25rem; }
.jobs-page a.rss_link, .jobs-page form.job_filters a.rss_link { display: none; }
.jobs-page .showing_jobs { margin: 0 0 1rem; color: var(--slate); font-size: 0.95rem; }

@media (max-width: 560px) {
	.jobs-page form.job_filters div.search_jobs > * { flex-basis: 100%; }
}

/* ---------- Job rows (markup: job_manager/content-job_listing.php) ---------- */
.job-type, .job-card__type { --t: var(--slate); font-weight: 700; }
.job-type.full-time, .is-full-time { --t: #1f9d63; }
.job-type.part-time, .is-part-time { --t: #e2691f; }
.job-type.freelance, .is-freelance { --t: #6b4be0; }
.job-type.contract, .is-contract { --t: #b48600; }
.job-type.internship, .is-internship { --t: #1a8fd0; }
.job-type.temporary, .is-temporary { --t: #d6336c; }
.single_job_listing .job-type::before { content: ""; display: inline-block; width: 0.55rem; height: 0.55rem; margin-right: 0.45rem; border-radius: 50%; background: var(--t); }

ul.job_listings { display: flex; flex-direction: column; gap: 0.9rem; margin: 0; padding: 0; list-style: none; border: 0; background: transparent; box-shadow: none; }
ul.job_listings > li.no_job_listings_found { padding: 2rem 0; color: var(--slate); border: 0; }

ul.job_listings li.job_listing.job-card {
	position: relative; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
	transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
ul.job_listings li.job_listing.job-card:hover, ul.job_listings li.job_listing.job-card:focus-within {
	background: var(--paper); border-color: #b9c2ce; box-shadow: 0 16px 32px -20px rgb(18 22 31 / 0.35);
}
ul.job_listings li.job_listing.job-card.job_position_featured { border-left: 5px solid var(--orange); background: #fffaf6; }

ul.job_listings li.job_listing.job-card a.job-card__link {
	display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto; align-items: center; column-gap: 1.4rem;
	float: none; width: auto; padding: 1.4rem 1.6rem; color: var(--ink); text-decoration: none; background: transparent;
}
.job-card__logo { align-self: start; width: 4rem; height: 4rem; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: var(--mist-2); }
ul.job_listings li.job_listing.job-card .job-card__logo img, ul.job_listings li.job_listing.job-card .job-card__logo img.company_logo { display: block; position: static; float: none; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0.35rem; object-fit: contain; object-position: center; border: 0; border-radius: 0; box-shadow: none; }

.job-card__main { min-width: 0; }
.job-card__name { display: block; margin-bottom: 0.1rem; color: var(--slate); font-size: 0.9rem; font-weight: 700; }
ul.job_listings .job-card__title { margin: 0 0 0.4rem; font-size: 1.45rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.job-card:hover .job-card__title { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }

ul.job_listings ul.job-card__facts { display: flex; flex-wrap: wrap; gap: 0.15rem 0; width: auto; float: none; margin: 0 0 0.9rem; padding: 0; list-style: none; color: var(--slate); font-size: 0.95rem; }
ul.job_listings ul.job-card__facts > li { margin: 0; padding: 0; float: none; }
ul.job-card__facts > li + li::before { content: "/"; margin: 0 0.6rem; color: #a3adba; }
ul.job-card__facts .job-card__eligible { color: var(--ink); }
ul.job-card__facts .job-card__salary { color: var(--ink); font-weight: 600; }
.job-card__facts date { font-style: normal; }

ul.job_listings ul.job-card__tags { display: flex; flex-wrap: wrap; gap: 0.45rem; width: auto; float: none; margin: 0; padding: 0; list-style: none; border: 0; text-align: left; }
ul.job_listings ul.job-card__tags > li {
	--t: var(--slate); float: none; margin: 0; padding: 0.28rem 0.8rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700; line-height: 1.3; white-space: nowrap;
	background: color-mix(in srgb, var(--t) 13%, #fff); color: color-mix(in srgb, var(--t) 62%, #000);
}
ul.job_listings ul.job-card__tags > li[class*="remote"], ul.job_listings ul.job-card__tags > li.job-card__remote { --t: #1f9d63; }
ul.job_listings ul.job-card__tags > li.job-card__cat { --t: #1a7fb5; }
ul.job_listings ul.job-card__tags > li.job-card__country { --t: #6b4be0; }
ul.job_listings ul.job-card__tags > li.job-card__type { --t: var(--slate); }
ul.job_listings ul.job-card__tags > li.job-card__type.is-full-time { --t: #3b5bdb; }
ul.job_listings ul.job-card__tags > li.job-card__type.is-part-time { --t: #e2691f; }
ul.job_listings ul.job-card__tags > li.job-card__type.is-freelance { --t: #6b4be0; }
ul.job_listings ul.job-card__tags > li.job-card__type.is-contract { --t: #b48600; }
ul.job_listings ul.job-card__tags > li.job-card__type.is-internship { --t: #1a8fd0; }
ul.job_listings ul.job-card__tags > li.job-card__type.is-temporary { --t: #d6336c; }

.job-card__side { display: flex; align-items: center; gap: 1.1rem; }
.job-card__new { padding: 0.3rem 0.85rem; border-radius: 999px; background: #ffefb8; color: #7a4d00; font-size: 0.85rem; font-weight: 800; }
.job-card__cta { display: inline-flex; align-items: center; padding: 0.85rem 1.5rem; border: 2px solid var(--ink); border-radius: 999px; font-weight: 700; white-space: nowrap; transition: background-color 0.15s ease, border-color 0.15s ease; }
.job-card:hover .job-card__cta { background: var(--orange); border-color: var(--orange); }

a.load_more_jobs { display: block; margin-top: 1.25rem; padding: 0.95rem; text-align: center; font-weight: 700; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); text-decoration: none; }
a.load_more_jobs:hover { background: var(--mist); }

@media (max-width: 760px) {
	ul.job_listings li.job_listing.job-card a.job-card__link { grid-template-columns: 3rem minmax(0, 1fr); column-gap: 1rem; padding: 1.15rem; }
	.job-card__logo { width: 3rem; height: 3rem; }
	ul.job_listings .job-card__title { font-size: 1.25rem; }
	.job-card__side { grid-column: 1 / -1; justify-content: space-between; margin-top: 1rem; }
	.job-card__cta { padding: 0.7rem 1.2rem; }
}

/* ---------- Single job ---------- */
.job-single { padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(4rem, 7vw, 6rem); }
.back-link { display: inline-block; margin-bottom: 1.75rem; color: var(--slate); font-weight: 600; text-decoration: none; }
.back-link::before { content: "\2190"; margin-right: 0.5rem; }
.back-link:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); }

.job-head { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2.25rem; }
.job-head__logo { flex: none; width: 5.5rem; height: 5.5rem; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--mist-2); }
.job-head__logo img, .job-head__logo .company_logo { display: block; float: none; width: 100%; height: 100%; max-width: none; margin: 0; padding: 0.5rem; object-fit: contain; border: 0; border-radius: 0; box-shadow: none; }
.job-head__company { margin: 0 0 0.35rem; color: var(--slate); }
.job-head__company strong { color: var(--ink); font-size: 1.05rem; }
.job-head__company span { margin-left: 0.6rem; }
.job-head__title { margin: 0 0 0.9rem; font-size: clamp(2rem, 4.2vw, 3.2rem); letter-spacing: -0.025em; }

.job-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.job-tag { --t: var(--slate); padding: 0.3rem 0.85rem; border-radius: 999px; background: color-mix(in srgb, var(--t) 13%, #fff); color: color-mix(in srgb, var(--t) 62%, #000); font-size: 0.875rem; font-weight: 700; line-height: 1.3; }
.job-tag.is-remote { --t: #1f9d63; }
.job-tag.is-cat { --t: #1a7fb5; }
.job-tag.is-country { --t: #6b4be0; }
.job-tag.is-full-time { --t: #3b5bdb; }
.job-tag.is-part-time { --t: #e2691f; }
.job-tag.is-freelance { --t: #6b4be0; }
.job-tag.is-contract { --t: #b48600; }
.job-tag.is-internship { --t: #1a8fd0; }
.job-tag.is-temporary { --t: #d6336c; }

.job-notice { margin: 0 0 1.75rem; padding: 1rem 1.25rem; border-left: 4px solid var(--orange); border-radius: 10px; background: var(--mist); font-weight: 600; }

.job-body { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.job-body__main { max-width: 44rem; }
.job-aside { position: sticky; top: 1.5rem; }
.job-aside__card { padding: 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 16px 34px -24px rgb(18 22 31 / 0.35); }
.job-facts { margin: 0 0 1.25rem; }
.job-facts > div { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.job-facts > div:first-child { padding-top: 0; }
.job-facts dt { margin: 0 0 0.15rem; color: var(--slate); font-size: 0.8rem; font-weight: 700; }
.job-facts dd { margin: 0; font-weight: 600; }
.job-facts date { font-style: normal; }
.job-note { margin: 0 0 1.25rem; padding: 0.75rem 1rem; border-radius: 12px; background: #fff4e5; color: #7a4d00; font-size: 0.95rem; font-weight: 600; }
.job-aside__link { display: block; margin-top: 1rem; color: var(--slate); font-weight: 600; text-align: center; }

.job-aside .application { margin: 0; }
.job-aside .application_button, .job-aside input.application_button { width: 100%; min-height: 3.1rem; }
.job-aside .application_details { margin-top: 1rem; padding: 1rem; border-radius: 12px; background: var(--mist); font-size: 0.95rem; overflow-wrap: anywhere; }
.job-aside .application_details p { margin: 0 0 0.6rem; }

@media (max-width: 900px) {
	.job-body { grid-template-columns: 1fr; }
	.job-aside { position: static; order: -1; }
}
@media (max-width: 560px) {
	.job-head { align-items: flex-start; flex-direction: column; gap: 1rem; }
}

/* ---------- Find jobs page header ---------- */
.page__header--stat { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.page__lede { max-width: 58ch; margin: 0.75rem 0 0; color: var(--slate); font-size: 1.1rem; }
.stat { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 9rem; padding: 1.1rem 1.75rem; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; text-align: center; }
.stat strong { display: block; margin-bottom: 0.3rem; font: 700 2.6rem/1 var(--display); letter-spacing: -0.03em; }
.stat span { font-size: 0.85rem; font-weight: 600; color: var(--slate); }

/* ---------- Category page ---------- */
.page__lede p { margin: 0 0 0.6rem; }
.page__lede p:last-child { margin-bottom: 0; }
.cat-links { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.cat-links__title { margin-bottom: 1rem; font-size: 1.15rem; }
.cat-links ul { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.cat-links a { display: inline-block; padding: 0.45rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; text-decoration: none; }
.cat-links a:hover { border-color: var(--ink); background: var(--mist); }
