/*
Theme Name: Jobzeeno
Theme URI: https://jobshah.com
Author: Umer Shabbir
Author URI: https://jobshah.com
Description: A fast, modern and fully responsive jobs-portal theme built for Jobshah.com. Content-rich homepage, job snapshot box, clean category archives, optional ad slots with no empty boxes, light SEO output, cookie notice and a policy-friendly footer. Designed with Google AdSense approval and reader experience in mind.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.8
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: jobzeeno
Tags: blog, news, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready
Contact: Contact@Jobshah.com
*/

/* ---------- Tokens ---------- */
:root {
	--paper: #FAFAF6;
	--white: #FFFFFF;
	--ink: #12241F;
	--ink-2: #44564F;
	--muted: #66766F;
	--line: #DDE5DF;
	--green: #0A6B4F;
	--green-d: #064A37;
	--mist: #E9F2EC;
	--saffron: #F1A91B;
	--saffron-d: #8A5A00;
	--danger: #B3261E;
	--font-head: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
	--font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
	--r-sm: 8px;
	--r-md: 14px;
	--r-lg: 20px;
	--wrap: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-d); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
.icon { flex: none; vertical-align: middle; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); z-index: 1000; }
.skip-link:focus { top: 12px; color: #fff; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }

/* ---------- Buttons & chips ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 22px; border: 2px solid transparent; border-radius: 10px;
	font: 700 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
	transition: background-color .18s, color .18s, border-color .18s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-d); color: #fff; }
.btn-saffron { background: var(--saffron); color: var(--ink); }
.btn-saffron:hover { background: #ffbe3d; color: var(--ink); }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }

.chip { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .84rem; font-weight: 700; text-decoration: none; background: var(--tint-bg, var(--mist)); color: var(--tint-fg, var(--green)); }
.chip:hover { color: var(--tint-fg, var(--green)); filter: brightness(.95); }
.chip-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; transition: border-color .18s, color .18s; }
.chip-link:hover { border-color: var(--green); color: var(--green); }

.tint-0 { --tint-fg: #0A6B4F; --tint-bg: #E3F1EA; }
.tint-1 { --tint-fg: #8A5A00; --tint-bg: #FFF1D2; }
.tint-2 { --tint-fg: #1F4E8C; --tint-bg: #E4EDF9; }
.tint-3 { --tint-fg: #7A2E6E; --tint-bg: #F6E6F2; }
.tint-4 { --tint-fg: #0E6672; --tint-bg: #DFF2F4; }
.tint-5 { --tint-fg: #A0391F; --tint-bg: #FBE9E3; }

.status { display: inline-block; font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; font-style: normal; }
.status-open { background: #E3F1EA; color: #0A6B4F; }
.status-soon { background: #FFF1D2; color: #8A5A00; }
.status-closed { background: #F1F1EE; color: #66766F; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.site-header.is-stuck { box-shadow: 0 6px 18px -12px rgba(18,36,31,.35); }
.header-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { flex: none; }
.brand-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-name { font: 800 1.4rem/1 var(--font-head); letter-spacing: -0.02em; }
.brand .custom-logo { max-height: 44px; width: auto; }
.primary-nav { flex: 1; }
.primary-nav .menu { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; justify-content: flex-end; }
.primary-nav li { position: relative; }
.primary-nav a { display: block; padding: 10px 14px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; border-radius: 8px; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { color: var(--green); background: var(--mist); }
.primary-nav .sub-menu { position: absolute; left: 0; top: 100%; min-width: 210px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px; list-style: none; margin: 0; display: none; box-shadow: 0 16px 30px -18px rgba(18,36,31,.4); }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: block; }
.header-actions { display: flex; gap: 6px; margin-left: auto; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--mist); color: var(--green); }
.nav-toggle { display: none; }
.nav-toggle .i-close { display: none; }
.search-drawer { border-top: 1px solid var(--line); background: var(--white); padding: 14px 0; }
.search-drawer[hidden] { display: none; }

/* ---------- Search form ---------- */
.search-form { display: flex; gap: 8px; max-width: 640px; }
.search-field { flex: 1; min-width: 0; padding: 12px 16px; border: 2px solid var(--line); border-radius: 10px; font: inherit; background: var(--white); color: var(--ink); }
.search-field:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(10,107,79,.18); }

/* ---------- Hero ---------- */
.hero {
	padding: 56px 0 48px;
	background:
		radial-gradient(circle at 12% 0%, #E3F1EA 0, transparent 46%),
		linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 44px,
		var(--paper);
	background-blend-mode: normal;
	border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; max-width: 15ch; margin-bottom: .45em; }
.hero-text { font-size: 1.15rem; color: var(--ink-2); max-width: 54ch; margin-bottom: 1.6em; }
.hero-search { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 8px; background: var(--white); padding: 8px; border: 2px solid var(--ink); border-radius: 16px; box-shadow: 6px 6px 0 var(--saffron); max-width: 640px; }
.hs-field { display: flex; align-items: center; gap: 8px; padding: 0 10px; color: var(--muted); }
.hs-field input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); padding: 12px 0; }
.hs-field input:focus { outline: none; }
.hs-select select { width: 100%; height: 100%; min-height: 48px; border: 0; border-left: 1px solid var(--line); background: transparent; font: inherit; color: var(--ink); padding: 0 10px; }
.hero-search:focus-within { box-shadow: 6px 6px 0 var(--green); }
.hero-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.hero-chips > span { color: var(--muted); font-weight: 600; margin-right: 4px; }

.board { background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--saffron); border-radius: var(--r-lg); padding: 20px 20px 10px; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.board-head h2 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin: 0; }
.board-date { color: var(--muted); font-size: .9rem; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #1FA971; box-shadow: 0 0 0 0 rgba(31,169,113,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(31,169,113,0); } 100% { box-shadow: 0 0 0 0 rgba(31,169,113,0); } }
.board-list { list-style: none; margin: 0; padding: 0; }
.board-list li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.board-list a { display: block; font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.35; font-size: 1rem; }
.board-list a:hover { color: var(--green); text-decoration: underline; }
.board-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--tint-bg); color: var(--tint-fg); }
.board-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .86rem; color: var(--muted); margin-top: 3px; }
.board-empty { color: var(--muted); padding: 12px 0 16px; }

/* ---------- Trust row ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-list { list-style: none; margin: 0 auto; padding-top: 18px; padding-bottom: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-list li { display: flex; align-items: center; gap: 12px; color: var(--green); }
.trust-list span { display: flex; flex-direction: column; color: var(--ink-2); font-size: .92rem; line-height: 1.35; }
.trust-list strong { color: var(--ink); font-size: 1rem; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-tint { background: var(--mist); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .25em; }
.section-head p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.link-arrow:hover { gap: 10px; }
.empty { padding: 28px; border: 1px dashed var(--line); border-radius: var(--r-md); background: var(--white); text-align: center; color: var(--ink-2); }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.cat-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); transition: border-color .18s, transform .18s; }
.cat-card:hover { border-color: var(--tint-fg); transform: translateY(-2px); color: var(--ink); }
.cat-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--tint-bg); color: var(--tint-fg); margin-bottom: 6px; }
.cat-name { font: 700 1.2rem/1.25 var(--font-head); }
.cat-desc { color: var(--ink-2); font-size: .95rem; }
.cat-count { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--tint-fg); font-size: .95rem; }

/* Job cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-full { grid-column: 1 / -1; }
.grid-full:empty { display: none; }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color .18s; }
.card:hover { border-color: var(--green); }
.card-media { display: block; aspect-ratio: 16 / 10; background: var(--mist); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-ph { display: grid; place-items: center; width: 100%; height: 100%; background: var(--tint-bg); color: var(--tint-fg); }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 16px; flex: 1; }
.card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.card-title { font-size: 1.15rem; line-height: 1.3; margin: 0; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--green); text-decoration: underline; }
.card-org { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--ink-2); font-size: .92rem; font-weight: 600; }
.card-excerpt { margin: 0; color: var(--ink-2); font-size: .97rem; }
.card-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; font-size: .95rem; }
.meta-item { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; }

/* Digest */
.digest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.digest { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; display: flex; flex-direction: column; }
.digest h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 3px solid var(--tint-fg); color: var(--tint-fg); }
.digest h3 a { color: inherit; text-decoration: none; }
.digest ul { list-style: none; margin: 0 0 14px; padding: 0; }
.digest li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.digest li a { display: block; font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.35; }
.digest li a:hover { color: var(--green); text-decoration: underline; }
.digest time { font-size: .85rem; color: var(--muted); }
.digest .link-arrow { margin-top: auto; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; counter-reset: none; }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; }
.step-no { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; font: 800 1.1rem var(--font-head); margin-bottom: 14px; }
.steps h3 { font-size: 1.2rem; }
.steps p { margin: 0; color: var(--ink-2); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.about-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.about-copy p { color: var(--ink-2); max-width: 66ch; }
.about-card { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 28px; }
.about-card h3 { color: #fff; font-size: 1.2rem; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.14); }
.ticks .icon { color: var(--saffron); margin-top: 2px; }

/* FAQ */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s; color: var(--green); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details[open] { border-color: var(--green); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--ink-2); }

/* Band */
.band { background: var(--green); color: #fff; padding: 44px 0; }
.band-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.band h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: .2em; }
.band p { margin: 0; color: #D8EBE2; }
.band-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Layout for inner pages ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-top: 28px; padding-bottom: 64px; align-items: start; }
.layout-main { min-width: 0; }
.page-wrap { padding-top: 28px; padding-bottom: 64px; }
.page-head { margin-bottom: 26px; }
.page-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: .3em; }
.page-desc { color: var(--ink-2); max-width: 70ch; }
.page-desc p:last-child { margin-bottom: 0; }
.page-count { color: var(--muted); font-weight: 600; margin: 8px 0 0; }

.breadcrumbs { margin-bottom: 16px; font-size: .92rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0; padding: 0; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--green); text-decoration: underline; }
.breadcrumbs [aria-current] span { color: var(--ink); }

/* Pagination */
.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); text-decoration: none; font-weight: 700; }
.pagination .page-numbers:hover { border-color: var(--green); color: var(--green); }
.pagination .current { background: var(--green); border-color: var(--green); color: #fff; }

/* Empty / 404 */
.empty-state { text-align: center; padding: 48px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty-state .icon { color: var(--green); }
.empty-state .search-form { width: 100%; margin: 12px 0; }
.empty-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 8px 0 16px; }
.not-found { padding-top: 48px; padding-bottom: 72px; }
.nf-code { font: 800 5rem/1 var(--font-head); color: var(--saffron); margin: 0; }

/* ---------- Single post ---------- */
.entry-head { margin-bottom: 20px; }
.entry-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.entry-title { font-size: clamp(1.8rem, 3.8vw, 2.7rem); line-height: 1.15; letter-spacing: -0.025em; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; }
.entry-thumb { margin: 0 0 24px; border-radius: var(--r-md); overflow: hidden; }
.entry-thumb img { width: 100%; }

.snapshot { background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--saffron); border-radius: var(--r-md); padding: 22px; margin-bottom: 28px; }
.snapshot-title { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; color: var(--green); }
.snapshot dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; margin: 0 0 8px; }
.snapshot dt { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.snapshot dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); }
.snapshot-btn { margin-top: 12px; }

.toc { background: var(--mist); border-radius: var(--r-md); margin: 0 0 28px; }
.toc summary { display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; font: 700 1.05rem var(--font-head); list-style: none; color: var(--green-d); }
.toc summary::-webkit-details-marker { display: none; }
.toc summary .toc-chev { margin-left: auto; transition: transform .2s; }
.toc details[open] .toc-chev { transform: rotate(180deg); }
.toc ol { margin: 0; padding: 0 18px 16px 40px; }
.toc li { padding: 3px 0; }
.toc a { text-decoration: none; font-weight: 600; }
.toc a:hover { text-decoration: underline; }

.entry-content { font-size: 1.1rem; line-height: 1.78; color: #1B2D28; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { font-size: 1.65rem; margin: 1.8em 0 .6em; padding-bottom: .3em; border-bottom: 2px solid var(--mist); }
.entry-content h3 { font-size: 1.3rem; margin: 1.6em 0 .5em; }
.entry-content h4 { font-size: 1.1rem; margin: 1.4em 0 .4em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote { margin: 1.5em 0; padding: 14px 20px; border-left: 4px solid var(--saffron); background: #FFF8E6; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.entry-content blockquote p:last-child { margin: 0; }
.entry-content img { border-radius: var(--r-sm); margin: 1.2em auto; }
.entry-content figure { margin: 1.4em 0; }
.entry-content figcaption { font-size: .9rem; color: var(--muted); text-align: center; margin-top: 6px; }
.entry-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.4em 0; font-size: 1rem; -webkit-overflow-scrolling: touch; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.entry-content th { background: var(--mist); font-weight: 700; white-space: nowrap; }
.entry-content tr:nth-child(even) td { background: #FBFCFA; }
.entry-content pre { overflow-x: auto; padding: 16px; background: var(--ink); color: #fff; border-radius: var(--r-sm); }
.entry-content .wp-block-button__link { background: var(--green); border-radius: 10px; font-weight: 700; }
.entry-content iframe { max-width: 100%; }
.page-links { margin-top: 20px; font-weight: 700; }

.entry-foot-tags { margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag-label { font-weight: 700; margin-right: 4px; }
.entry-foot-tags a { padding: 4px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; text-decoration: none; color: var(--ink-2); }

.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 28px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share-label { font-weight: 700; margin-right: 6px; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); font: 600 .92rem var(--font-body); text-decoration: none; cursor: pointer; }
.share-btn:hover { border-color: var(--green); color: var(--green); }

.author-box { display: flex; gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; margin-bottom: 24px; }
.avatar-img { border-radius: 50%; flex: none; }
.author-name { font: 700 1.05rem var(--font-head); margin: 0 0 2px; }
.author-bio { margin: 0; color: var(--ink-2); font-size: .97rem; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 36px; }
.pn { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); text-decoration: none; color: var(--ink); }
.pn:hover { border-color: var(--green); }
.pn-next { text-align: right; grid-column: 2; }
.pn-prev { grid-column: 1; }
.pn-label { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; color: var(--green); }
.pn-next .pn-label { justify-content: flex-end; }
.pn-title { font-weight: 600; line-height: 1.35; }

.section-sub { font-size: 1.5rem; margin-bottom: 18px; }
.related { margin-bottom: 40px; }
.related .card-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* Comments */
.comments { margin-top: 12px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 20px; border-left: 2px solid var(--line); }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-author .avatar { float: left; margin-right: 12px; border-radius: 50%; }
.comment-metadata { font-size: .85rem; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; font: inherit; background: var(--white); }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--green); outline: none; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; }

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 22px; }
.widget { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.widget-title { font-size: 1.1rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--mist); }
.widget .search-form { flex-direction: column; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.side-cats a { display: flex; align-items: center; gap: 12px; padding: 9px 0; text-decoration: none; color: var(--ink); font-weight: 600; }
.side-cats a:hover .side-name { color: var(--green); }
.side-ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--tint-bg); color: var(--tint-fg); flex: none; }
.side-name { flex: 1; }
.side-count { color: var(--muted); font-size: .88rem; background: var(--paper); padding: 1px 9px; border-radius: 999px; }
.side-posts li { padding: 11px 0; border-top: 1px solid var(--line); }
.side-posts li:first-child { border-top: 0; padding-top: 0; }
.side-posts a { display: block; font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.35; }
.side-posts a:hover { color: var(--green); text-decoration: underline; }
.side-posts time { font-size: .84rem; color: var(--muted); }

/* ---------- Ads (labelled, reserved space, never empty) ---------- */
.ad-slot { margin: 28px auto; text-align: center; clear: both; max-width: 100%; }
.ad-label { display: block; font-size: .75rem; color: var(--muted); margin-bottom: 4px; }
.ad-inner { min-height: 90px; overflow: hidden; max-width: 100%; }
.ad-sidebar .ad-inner { min-height: 250px; }
.ad-sticky { position: sticky; top: 90px; margin: 0; }
.ad-header { margin: 16px auto; }
.ad-home-top { max-width: var(--wrap); padding: 0 20px; }

/* ---------- Footer ---------- */
.site-footer { background: #0E1F1A; color: #C9D8D1; margin-top: 0; }
.site-footer a { color: #E4EEE9; text-decoration: none; }
.site-footer a:hover { color: var(--saffron); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 36px; }
.brand-light { color: #fff; }
.brand-light .brand-name { color: #fff; }
.f-brand p { margin: 14px 0; max-width: 40ch; }
.f-mail { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.social { list-style: none; display: flex; gap: 8px; padding: 0; margin: 16px 0 0; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); }
.social a:hover { background: var(--saffron); color: var(--ink); text-decoration: none; }
.f-title { font-size: 1rem; color: #fff; margin-bottom: 14px; }
.f-list { list-style: none; margin: 0; padding: 0; }
.f-list li { padding: 5px 0; }
.footer-note { display: flex; gap: 12px; align-items: flex-start; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .93rem; color: #A9BDB4; }
.footer-note .icon { color: var(--saffron); margin-top: 3px; }
.footer-note p { margin: 0; }
.footer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; color: #8FA79D; }
.footer-bar p { margin: 0; }

/* Cookie + back to top */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 760px; margin: 0 auto; display: flex; gap: 16px; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; padding: 14px 18px; border-radius: var(--r-md); box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; font-size: .95rem; }
.cookie a { color: var(--saffron); }
.cookie .btn { padding: 9px 18px; flex: none; }
.to-top { position: fixed; right: 18px; bottom: 90px; z-index: 150; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 22px -10px rgba(0,0,0,.5); }
.to-top[hidden] { display: none; }
.to-top:hover { background: var(--green-d); }

/* WordPress core */
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .9rem; color: var(--muted); }
.gallery { display: grid; gap: 10px; }
.sticky .card-title::before { content: ""; }
.bypostauthor { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.hero-grid { grid-template-columns: 1fr; gap: 36px; }
	.hero h1 { max-width: 20ch; }
	.layout { grid-template-columns: 1fr; }
	.sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
	.ad-sticky { position: static; }
	.card-grid { grid-template-columns: repeat(2, 1fr); }
	.digest-grid, .steps { grid-template-columns: 1fr; }
	.about-grid { grid-template-columns: 1fr; gap: 28px; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.trust-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
	.nav-toggle { display: inline-grid; }
	.primary-nav { position: fixed; inset: 68px 0 0 0; background: var(--white); padding: 12px 20px 32px; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s; overflow-y: auto; border-top: 1px solid var(--line); }
	.primary-nav.is-open { transform: none; visibility: visible; }
	.primary-nav .menu { flex-direction: column; justify-content: flex-start; gap: 0; }
	.primary-nav a { padding: 15px 8px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	.primary-nav .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 14px; }
	body.nav-open { overflow: hidden; }
	body.nav-open .nav-toggle .i-open { display: none; }
	body.nav-open .nav-toggle .i-close { display: block; }
	.header-in { gap: 8px; }
}

@media (max-width: 680px) {
	body { font-size: 1rem; }
	.wrap { padding: 0 16px; }
	.hero { padding: 36px 0 32px; }
	.hero-search { grid-template-columns: 1fr; box-shadow: 4px 4px 0 var(--saffron); }
	.hs-select select { border-left: 0; border-top: 1px solid var(--line); }
	.section { padding: 44px 0; }
	.section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
	.card-grid, .card-grid-2 { grid-template-columns: 1fr; }
	.snapshot dl { grid-template-columns: 1fr; }
	.post-nav { grid-template-columns: 1fr; }
	.pn-next, .pn-prev { grid-column: auto; }
	.footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
	.trust-list { grid-template-columns: 1fr 1fr; gap: 12px; }
	.trust-list svg { display: none; }
	.cookie { flex-direction: column; align-items: stretch; text-align: left; }
	.to-top { bottom: 150px; }
	.entry-content { font-size: 1.04rem; }
	.search-form { flex-direction: column; }
	.author-box { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.site-header, .site-footer, .sidebar, .cookie, .to-top, .ad-slot, .share, .related, .comments, .post-nav { display: none !important; }
	body { background: #fff; }
}
