/*
Theme Name: Gujarat Job & Yojana
Theme URI: https://example.com/
Author: Sanjay
Description: Lightweight Gujarati government jobs & schemes theme. Works with the "Gujarat Job & Yojana Core" plugin (Govt Jobs, Govt Schemes, custom fields, subscribers).
Version: 1.0.5
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: gujarat-job-yojana
*/



/* ---------- Self-hosted font: Noto Sans Gujarati (Gujarati + Latin subset, weights 400 / 700) ---------- */
@font-face { font-family: "Noto Sans Gujarati"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("fonts/noto-sans-gujarati-regular.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Gujarati"; font-style: normal; font-weight: 600 900; font-display: swap; src: url("fonts/noto-sans-gujarati-bold.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --blue: #0B57D0;
  --blue-dark: #08409B;
  --blue-50: #EAF1FD;
  --orange: #FF8A00;
  --orange-dark: #8A4B00;
  --orange-50: #FFF3E0;
  --green: #12802F;
  --green-dark: #0C6324;
  --green-50: #E7F5EB;
  --ink: #1B2430;
  --muted: #5A6575;
  --line: #E1E6EE;
  --soft: #F4F6F9;
  --white: #fff;
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Noto Sans Gujarati", "Shruti", "Nirmala UI", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.8; color: var(--ink); background: var(--white); }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.45; margin: 0 0 .5rem; font-weight: 700; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.container { width: min(100% - 2rem, 1200px); margin-inline: auto; }
.sr-only { position: absolute; 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: .5rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: var(--radius-sm); }
.skip-link:focus { top: .5rem; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem 1.15rem; font: inherit; font-weight: 600; line-height: 1.4; text-decoration: none; border: 2px solid transparent; border-radius: var(--radius-sm); cursor: pointer; text-align: center; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-50); color: var(--blue-dark); }
.btn-apply { background: var(--green); color: #fff; }
.btn-apply:hover { background: var(--green-dark); color: #fff; }
.btn-accent { background: var(--orange); color: #1B1200; }
.btn-accent:hover { background: #FFA02E; color: #1B1200; }
.btn-lg { min-height: 52px; padding-inline: 1.75rem; font-size: 1.0625rem; }
.btn-sm { min-height: 40px; padding: .35rem .9rem; font-size: .9375rem; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.icon-btn:hover { background: var(--soft); }
.read-more { font-weight: 600; text-decoration: none; display: inline-block; }
.read-more::after { content: " »"; }
.read-more:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.topbar { background: var(--blue-dark); color: #fff; font-size: .8125rem; line-height: 1.5; padding: .35rem 0; text-align: center; }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: .75rem; min-height: var(--header-h); }
.menu-toggle { order: -1; }
.site-branding { display: flex; align-items: center; gap: .6rem; margin-right: auto; text-decoration: none; color: var(--ink); min-width: 0; }
.logo-mark { flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.site-title { font-weight: 800; font-size: 1.0625rem; line-height: 1.3; }
.site-tagline { display: none; font-size: .75rem; color: var(--muted); line-height: 1.4; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

.main-navigation { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(15, 30, 60, .08); max-height: calc(100vh - 110px); overflow-y: auto; }
.main-navigation.is-open { display: block; }
.main-navigation .menu { list-style: none; padding: .5rem 1rem 1rem; }
.main-navigation a { display: block; padding: .8rem .5rem; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.main-navigation li:last-child a { border-bottom: 0; }
.main-navigation a:hover { color: var(--blue); }
.main-navigation a[aria-current="page"] { color: var(--blue); box-shadow: inset 4px 0 0 var(--orange); padding-left: 1rem; }

.header-search { background: var(--soft); border-top: 1px solid var(--line); padding: .75rem 0; }

/* ---------- Forms ---------- */
.search-form { display: flex; gap: .5rem; }
input[type="search"], input[type="email"], input[type="text"], select {
  font: inherit; color: var(--ink); background: #fff; min-height: 48px; padding: .4rem .9rem; border: 1.5px solid #B7C0CE; border-radius: var(--radius-sm); width: 100%; min-width: 0; }
input:focus, select:focus { outline: 3px solid rgba(11, 87, 208, .35); border-color: var(--blue); }
.search-form input { flex: 1; }
.search-form .btn { flex: none; min-height: 48px; }

/* ---------- Badges ---------- */
.badge { display: inline-block; align-self: flex-start; padding: .1rem .7rem; font-size: .8125rem; font-weight: 600; line-height: 1.7; border-radius: 999px; }
.badge--blue { background: var(--blue-50); color: var(--blue-dark); }
.badge--orange { background: var(--orange-50); color: var(--orange-dark); }
.badge--green { background: var(--green-50); color: var(--green-dark); }
.badge--gray { background: #EAEEF3; color: #3B4655; }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.entry-title { font-size: 1.1875rem; font-weight: 600; line-height: 1.5; margin: .35rem 0 .5rem; }
.entry-title a { color: var(--ink); text-decoration: none; }
.entry-title a:hover { color: var(--blue); text-decoration: underline; }
.entry-excerpt { color: var(--muted); font-size: .96875rem; margin-bottom: .75rem; }
.entry-meta, .post-meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .875rem; color: var(--muted); list-style: none; }
.meta-item { color: var(--muted); font-size: .875rem; }

.post-card { display: flex; flex-direction: column; overflow: hidden; }
.post-card:hover, .job-card:hover, .scheme-card:hover, .update-card:hover { border-color: var(--blue); }
.post-thumb img, .featured-image img, .result-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--soft); }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.1rem 1.15rem; }
.post-body .read-more { margin-top: auto; padding-top: .5rem; }
.post-body .entry-meta { margin-bottom: .5rem; }

.update-card { padding: 1.1rem 1.2rem 1.2rem; border-top: 4px solid var(--orange); display: flex; flex-direction: column; align-items: flex-start; }
.update-card .btn { margin-top: auto; }

.job-card { padding: 1.15rem 1.2rem; display: flex; flex-direction: column; border-left: 4px solid var(--blue); }
.job-dept { font-size: .875rem; font-weight: 600; color: var(--muted); margin-bottom: .1rem; }
.job-title { font-size: 1.25rem; font-weight: 700; margin-bottom: .75rem; }
.job-title a { color: var(--ink); text-decoration: none; }
.job-title a:hover { color: var(--blue); }
.job-meta { margin: 0 0 1rem; display: grid; gap: .1rem; }
.job-meta div { display: grid; grid-template-columns: 7.5rem 1fr; gap: .5rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); font-size: .9375rem; }
.job-meta dt { color: var(--muted); }
.job-meta dd { margin: 0; font-weight: 500; }
.job-meta .due { color: var(--orange-dark); font-weight: 700; }
.job-card .btn { margin-top: auto; }

.scheme-card { padding: 1.2rem; display: flex; flex-direction: column; }
.scheme-icon { display: grid; place-items: center; width: 52px; height: 52px; font-size: 1.6rem; background: var(--orange-50); border-radius: 12px; margin-bottom: .75rem; }
.scheme-title { font-size: 1.1875rem; }
.scheme-title a { color: var(--ink); text-decoration: none; }
.scheme-card > p { color: var(--muted); font-size: .96875rem; margin-bottom: .75rem; }
.scheme-card .eligibility { background: var(--soft); border-radius: var(--radius-sm); padding: .55rem .8rem; font-size: .9rem; color: var(--ink); }
.scheme-card .btn { margin-top: auto; }

/* ---------- Sections ---------- */
.section { padding: 2.5rem 0; }
.section--soft { background: var(--soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-title { font-size: 1.5rem; font-weight: 800; line-height: 1.45; margin: 0; padding-left: .75rem; border-left: 5px solid var(--orange); }
.view-all { font-weight: 600; white-space: nowrap; text-decoration: none; }
.view-all::after { content: " »"; }

/* ---------- Hero ---------- */
.hero { background: var(--blue-50); border-bottom: 1px solid #D3E2FA; padding: 2rem 0 2.25rem; }
.hero-grid { display: grid; gap: 1.5rem; }
.hero-label { display: inline-block; margin-bottom: .6rem; padding: .1rem .75rem; font-size: .875rem; font-weight: 600; background: #fff; color: var(--blue-dark); border: 1px solid #C3D6F6; border-radius: 999px; }
.hero-title { font-size: clamp(1.65rem, 5.2vw, 2.6rem); font-weight: 800; line-height: 1.45; margin-bottom: .75rem; color: #0A2358; }
.hero-desc { color: #36445A; font-size: 1.0625rem; max-width: 60ch; }
.hero .search-form input { border-color: #8EAEE6; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin-top: 1rem; }
.chip-row a { display: inline-block; padding: .25rem .9rem; font-size: .9375rem; font-weight: 600; text-decoration: none; background: #fff; border: 1px solid #C3D6F6; border-radius: 999px; color: var(--blue-dark); }
.chip-row a:hover, .chip-row a.is-active { background: var(--blue); color: #fff; border-color: var(--blue); }
.closing-soon { background: #fff; border: 1px solid #C3D6F6; border-top: 5px solid var(--orange); border-radius: var(--radius); padding: 1.1rem 1.2rem 1.2rem; align-self: start; }
.closing-title { font-size: 1.1875rem; margin-bottom: .5rem; }
.closing-soon ul { list-style: none; margin-bottom: .75rem; }
.closing-soon li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.closing-soon li a { color: var(--ink); font-weight: 600; text-decoration: none; }
.closing-soon li a:hover { color: var(--blue); }
.due-chip { flex: none; background: var(--orange-50); color: var(--orange-dark); font-size: .8125rem; font-weight: 700; padding: .05rem .65rem; border-radius: 999px; border: 1px solid #FFD39A; }

/* ---------- Two column panels / lists ---------- */
.two-col { display: grid; gap: 1rem; }
.panel { padding: 1.2rem 1.25rem; }
.panel-title { font-size: 1.3125rem; margin-bottom: .5rem; padding-bottom: .5rem; border-bottom: 2px solid var(--blue); }
.update-list { list-style: none; margin-bottom: .75rem; }
.update-list li { padding: .65rem 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 0; }
.update-list a { color: var(--ink); font-weight: 500; text-decoration: none; line-height: 1.6; }
.update-list a:hover { color: var(--blue); text-decoration: underline; }
.update-list time { font-size: .8125rem; color: var(--muted); }

/* ---------- Categories ---------- */
.category-scroller { list-style: none; display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: .5rem; -webkit-overflow-scrolling: touch; }
.category-scroller li { flex: 0 0 9rem; scroll-snap-align: start; }
.category-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .1rem; height: 100%; padding: 1rem .5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.category-card:hover { border-color: var(--blue); }
.category-icon { font-size: 1.75rem; line-height: 1.4; }
.category-name { font-weight: 700; }
.category-count { font-size: .8125rem; color: var(--muted); }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--blue); color: #fff; padding: 2.25rem 0; }
.newsletter-inner { display: grid; gap: 1.25rem; align-items: center; }
.newsletter-title { font-size: 1.5rem; font-weight: 800; }
.newsletter p { margin: 0; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: .5rem; }
.newsletter-form input { flex: 1 1 14rem; border-color: #fff; }
.form-msg { flex-basis: 100%; min-height: 1.6em; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: #0F1B2D; color: #C9D3E3; font-size: .96875rem; }
.footer-grid { display: grid; gap: 1.75rem; padding: 2.5rem 0 2rem; }
.footer-brand { font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: .5rem; }
.footer-title { font-size: 1.0625rem; color: #fff; margin-bottom: .6rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .1rem; }
.site-footer a { color: #C9D3E3; display: inline-block; padding: .2rem 0; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #25344C; padding: 1rem 0; font-size: .875rem; text-align: center; color: #A9B6CA; }

/* ---------- Page head / breadcrumb ---------- */
.page-head { background: var(--soft); border-bottom: 1px solid var(--line); padding: 1rem 0 1.5rem; }
.page-head--compact { padding-bottom: .75rem; }
.page-title { font-size: clamp(1.5rem, 4.6vw, 2.25rem); font-weight: 800; line-height: 1.45; margin-bottom: .4rem; }
.page-desc { color: var(--muted); max-width: 70ch; margin-bottom: 0; }
.page-search { margin-top: 1rem; max-width: 640px; }
.page-head .chip-row { margin-bottom: 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; font-size: .875rem; margin-bottom: .6rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin: 0 .5rem; color: #8895A8; }
.breadcrumb a { text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Layout with sidebar ---------- */
.layout { display: grid; gap: 2rem; padding: 1.5rem 0 3rem; }
.content-area, .sidebar { min-width: 0; }
.filter-bar { display: grid; gap: .75rem; padding: 1rem; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; }
.field label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .2rem; }
.filter-note { color: var(--muted); font-size: .9375rem; min-height: 1.5em; margin-bottom: .5rem; }
.featured-post { overflow: hidden; margin-bottom: 1rem; display: grid; }
.entry-title--lg { font-size: 1.4375rem; font-weight: 700; }

.pagination { margin-top: 2rem; }
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; list-style: none; }
.pagination a { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 .9rem; background: #fff; color: var(--ink); font-weight: 600; text-decoration: none; border: 1px solid #B7C0CE; border-radius: var(--radius-sm); }
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination a.is-current { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- Sidebar ---------- */
.sidebar { display: grid; gap: 1.25rem; align-content: start; }
.widget { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem 1.1rem; background: #fff; }
.widget-title { font-size: 1.125rem; padding-bottom: .5rem; margin-bottom: .6rem; border-bottom: 2px solid var(--blue); }
.widget .search-form { flex-direction: column; }
.cat-list, .mini-list, .link-list, .pop-list { list-style: none; }
.cat-list a { display: flex; justify-content: space-between; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; }
.cat-list a:hover { color: var(--blue); }
.count { background: var(--blue-50); color: var(--blue-dark); border-radius: 999px; padding: 0 .6rem; font-size: .8125rem; font-weight: 700; line-height: 1.9; }
.mini-list li + li { margin-top: .75rem; }
.mini-post { display: flex; gap: .75rem; text-decoration: none; color: var(--ink); }
.mini-post img { flex: none; width: 96px; height: 54px; object-fit: cover; border-radius: 6px; background: var(--soft); }
.mini-post > span { display: flex; flex-direction: column; min-width: 0; }
.mini-title { font-size: .9375rem; font-weight: 600; line-height: 1.55; }
.mini-post:hover .mini-title { color: var(--blue); }
.mini-post time { font-size: .8125rem; color: var(--muted); }
.pop-list { counter-reset: pop; }
.pop-list li { counter-increment: pop; display: flex; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.pop-list li::before { content: counter(pop); flex: none; width: 1.75rem; height: 1.75rem; display: grid; place-items: center; font-size: .875rem; font-weight: 700; color: var(--orange-dark); background: var(--orange-50); border-radius: 50%; margin-top: .2rem; }
.pop-list a, .link-list a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96875rem; }
.pop-list a:hover, .link-list a:hover { color: var(--blue); text-decoration: underline; }
.link-list li { padding: .45rem 0 .45rem 1.1rem; border-bottom: 1px solid var(--line); position: relative; }
.link-list li::before { content: ""; position: absolute; left: 0; top: 1.2rem; width: 6px; height: 6px; background: var(--orange); border-radius: 50%; }

/* ---------- Advertisement ---------- */
.ad-slot { display: grid; place-items: center; min-height: 250px; margin: 1.5rem 0; background: #FAFBFC; border: 1px dashed #C6CEDA; border-radius: var(--radius-sm); color: #5A6575; font-size: .75rem; }
.sidebar .ad-slot { margin: 0; }

/* ---------- Single post ---------- */
.entry-header { margin-bottom: 1rem; }
.entry-title--xl { font-size: clamp(1.5rem, 5vw, 2.25rem); font-weight: 800; line-height: 1.5; margin: .6rem 0 .75rem; }
.post-meta { padding: .6rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.featured-image { margin: 0 0 1.5rem; }
.featured-image img { border-radius: var(--radius); }
.entry-content { font-size: 1.0625rem; line-height: 1.9; }
.entry-content h2 { font-size: 1.5rem; font-weight: 800; margin: 2rem 0 .75rem; padding-left: .7rem; border-left: 5px solid var(--orange); }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin: 0 0 1.25rem; }
.entry-content li { margin-bottom: .35rem; padding-left: .2rem; }
.toc { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.toc-title { font-size: 1.125rem; margin-bottom: .4rem; border: 0; padding: 0; }
.toc ol { margin-bottom: 0; columns: 1; font-size: 1rem; line-height: 1.8; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: 1rem; line-height: 1.7; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--blue); color: #fff; font-weight: 700; }
tbody tr:nth-child(even) { background: var(--soft); }
tbody tr:last-child td { border-bottom: 0; }
tbody td:first-child { font-weight: 600; white-space: nowrap; }
.link-buttons { display: grid; gap: .6rem; margin-bottom: 1.5rem; }
.alert { padding: .9rem 1.1rem; margin: 0 0 1.25rem; border-radius: var(--radius-sm); border-left: 5px solid; font-size: 1rem; line-height: 1.75; }
.alert--info { background: var(--blue-50); border-color: var(--blue); }
.alert--warn { background: var(--orange-50); border-color: var(--orange); }
.alert--success { background: var(--green-50); border-color: var(--green); }
.alert--disclaimer { background: var(--soft); border-color: #8895A8; font-size: .9375rem; }
.entry-footer { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.share-title { font-size: 1.125rem; }
.share-buttons { display: grid; gap: .5rem; }
.btn-share { color: #fff; }
.btn-share:hover { color: #fff; filter: brightness(.92); }
.btn-wa { background: #0F7A43; }
.btn-fb { background: #1558C0; }
.btn-tg { background: #14719E; }
.related { margin-top: 2.5rem; }
.related .section-title { margin-bottom: 1.25rem; }

/* ---------- Search results ---------- */
.search-term { font-weight: 600; margin-bottom: 1rem; }
.result-list { display: grid; gap: .85rem; }
.result-item { display: grid; grid-template-columns: 104px 1fr; gap: .85rem; padding: .75rem; align-items: start; }
.result-item .result-thumb img { border-radius: 8px; }
.result-body .entry-title { font-size: 1.0625rem; margin: .25rem 0 .25rem; }
.result-body .entry-excerpt { display: none; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .site-tagline { display: block; }
  .site-title { font-size: 1.1875rem; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn-block { width: auto; }
  .job-card .btn, .scheme-card .btn { align-self: flex-start; }
  .filter-bar { grid-template-columns: 2fr 1fr 1fr; align-items: end; }
  .link-buttons, .share-buttons { display: flex; flex-wrap: wrap; }
  .toc ol { columns: 2; }
  .result-item { grid-template-columns: 160px 1fr; padding: .9rem; gap: 1rem; }
  .result-body .entry-excerpt { display: block; margin-bottom: .4rem; }
  .featured-post { grid-template-columns: 1fr 1fr; }
  .featured-post .post-thumb img { height: 100%; aspect-ratio: auto; min-height: 220px; }
  .category-scroller { overflow: visible; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .category-scroller li { flex: initial; }
}
@media (min-width: 768px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .update-list li { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 1rem; }
  .update-list time { flex: none; }
  .newsletter-inner { grid-template-columns: 1.1fr 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
}
@media (min-width: 960px) {
  .hero { padding: 3rem 0 3.25rem; }
  .hero-grid { grid-template-columns: 1.45fr 1fr; gap: 2.5rem; align-items: center; }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  .layout { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 2rem; padding-top: 2rem; }
  .layout .grid--3, .layout .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar { position: sticky; top: 90px; }
  .section { padding: 3.25rem 0; }
  .category-scroller { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .category-name { font-size: .9375rem; }
}
@media (min-width: 1100px) {
  .menu-toggle { display: none; }
  .site-branding { margin-right: 0; }
  .main-navigation { display: block; position: static; border: 0; box-shadow: none; max-height: none; overflow: visible; margin-left: auto; }
  .main-navigation .menu { display: flex; gap: .1rem; padding: 0; }
  .main-navigation a { padding: .5rem .7rem; border: 0; font-size: .96875rem; border-radius: 6px; position: relative; }
  .main-navigation a[aria-current="page"] { box-shadow: none; padding-left: .7rem; background: var(--blue-50); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
  .sidebar { top: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
@media print {
  .topbar, .site-header, .sidebar, .site-footer, .ad-slot, .share-buttons, .newsletter { display: none !important; }
}

/* ---------- WordPress additions ---------- */
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.logo-mark .custom-logo { width: auto; height: 40px; max-width: 120px; }
.badge--closed { background: #FDE8EA; color: #8E1B2D; }
.job-meta .due.is-closed { color: #8E1B2D; text-decoration: line-through; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 .9rem; background: #fff; color: var(--ink); font-weight: 600; text-decoration: none; border: 1px solid #B7C0CE; border-radius: var(--radius-sm); }
.pagination a.page-numbers:hover { border-color: var(--blue); color: var(--blue); }
.pagination .page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }
.pagination .page-numbers.dots { border-color: transparent; background: transparent; }
.filter-bar .btn { align-self: end; }
.filter-bar select[disabled] { background: var(--soft); }
@media (min-width: 640px) { .filter-bar { grid-template-columns: 2fr 1fr 1fr auto; } }
.ad-slot--live { min-height: 0; padding: .5rem; display: block; text-align: center; background: transparent; border-style: solid; border-color: var(--line); }
.ad-slot--live .widget { border: 0; padding: 0; margin: 0; }
.ad-slot--live .widget-title { font-size: .75rem; color: #5A6575; font-weight: 500; border: 0; margin: 0 0 .25rem; }
.sidebar .widget ul { list-style: none; }
.sidebar .widget li { padding: .35rem 0; }
.entry-content img, .entry-content video, .entry-content iframe { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.entry-content h3 { font-size: 1.25rem; margin: 1.5rem 0 .5rem; }
.entry-content blockquote { margin: 0 0 1.25rem; padding: .75rem 1.1rem; background: var(--soft); border-left: 5px solid var(--blue); border-radius: var(--radius-sm); }
.entry-content table { min-width: 420px; }
.entry-content .about-content > :last-child { margin-bottom: 0; }
.alignleft { float: left; margin: 0 1rem 1rem 0; } .alignright { float: right; margin: 0 0 1rem 1rem; } .aligncenter { margin-inline: auto; display: block; }
.wp-caption { max-width: 100%; } .wp-caption-text, figcaption { font-size: .875rem; color: var(--muted); }
.footer-col .menu, .footer-col ul { list-style: none; }

/* ---------- Logo ---------- */
.site-logo { height: 40px; width: auto; max-width: 62vw; }
.site-branding { gap: .75rem; }
.site-tagline--logo { display: none; font-size: .75rem; line-height: 1.35; color: var(--muted); max-width: 11rem; padding-left: .75rem; border-left: 2px solid var(--orange); }
.footer-logo { height: 44px; width: auto; }
.footer-brand { margin-bottom: .75rem; }
@media (min-width: 640px) { .site-logo { height: 46px; } }
@media (min-width: 1280px) { .site-tagline--logo { display: block; } }

/* ---------- Quick answer + FAQ ---------- */
.quick-answer { background: var(--green-50); border-left: 5px solid var(--green); border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin: 0 0 1.5rem; font-size: 1.0625rem; line-height: 1.8; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 0 0 .6rem; background: #fff; }
.faq summary { cursor: pointer; padding: .8rem 2.5rem .8rem 1rem; font-weight: 600; list-style: none; position: relative; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1rem; top: .65rem; font-size: 1.25rem; color: var(--blue); }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { padding: .75rem 1rem; margin: 0; }

/* ---------- Thumbnails on job / scheme / update cards ---------- */
.job-card, .scheme-card, .update-card { padding: 0; overflow: hidden; }
.job-card .post-thumb img, .scheme-card .post-thumb img, .update-card .post-thumb img { border-radius: 0; }
.job-body, .scheme-body, .update-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.2rem 1.2rem; }
.update-body { align-items: flex-start; }
.update-body .btn { margin-top: auto; }
.scheme-head { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .5rem; }
.scheme-head .scheme-icon { flex: none; width: 44px; height: 44px; font-size: 1.35rem; margin-bottom: 0; }
.scheme-head .scheme-title { margin: 0; font-size: 1.125rem; }
