﻿/*
Theme Name: ImpactNests
Theme URI: https://www.impactnests.com/
Author: ImpactNests
Description: Opportunities & Sustainability — jobs, internships, tenders and impact journalism. Card-based light design in white, soft gray and blue.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: impactnests
*/
/* ===================================================================
   ImpactNests â€” Opportunities & Sustainability
   Design system: white / soft gray / blue, card-based, mobile-first
   =================================================================== */

:root {
  --blue: #0066FF;
  --blue-600: #0052CC;
  --blue-dark: #002D7A;
  --blue-tint: #EAF1FF;
  --green: #0E9F6E;
  --amber: #B45309;
  --bg: #FFFFFF;
  --bg-soft: #F5F7FA;
  --surface: #FFFFFF;
  --border: #E5E7EB;
  --text: #101828;
  --text-2: #475467;
  --text-3: #667085;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-md: 0 6px 16px -6px rgba(16, 24, 40, .12);
  --shadow-lg: 0 16px 40px -12px rgba(0, 45, 122, .18);
  --radius: 14px;
  --radius-sm: 10px;
  --font-head: "Poppins", "Inter", system-ui, sans-serif;
  --font-body: "Inter", "Open Sans", system-ui, sans-serif;
  --header-h: 68px;
}

[data-theme="dark"] {
  --blue: #4D94FF;
  --blue-600: #66A3FF;
  --blue-dark: #B3CFFF;
  --blue-tint: #10233F;
  --green: #34D399;
  --amber: #FBBF24;
  --bg: #0B1220;
  --bg-soft: #0F1729;
  --surface: #16203A;
  --border: #24304D;
  --text: #E6EBF5;
  --text-2: #A9B4CC;
  --text-3: #8291AE;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 6px 16px -6px rgba(0, 0, 0, .5);
  --shadow-lg: 0 16px 40px -12px rgba(0, 0, 0, .6);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; letter-spacing: -.01em; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }

button { font-family: inherit; cursor: pointer; }

.container { width: min(1200px, 100% - 2rem); margin-inline: auto; }

.section { padding: 3rem 0; }
.section--soft { background: var(--bg-soft); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.5rem;
}
.section-head h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
.section-head p { color: var(--text-3); font-size: .95rem; margin-top: .25rem; }
.section-link { color: var(--blue); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.section-link:hover { color: var(--blue-600); }

.eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue); margin-bottom: .5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .65rem 1.25rem; border-radius: 999px; font-weight: 600; font-size: .925rem;
  border: 1px solid transparent; transition: all .18s ease; line-height: 1.2;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { color: var(--blue); background: var(--blue-tint); }
.btn-lg { padding: .85rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: .4rem .9rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Badges & chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .28rem .7rem; border-radius: 999px; background: var(--blue-tint); color: var(--blue);
}
.badge--green { background: rgba(14, 159, 110, .12); color: var(--green); }
.badge--amber { background: rgba(180, 83, 9, .12); color: var(--amber); }
.badge--navy { background: var(--blue-dark); color: #fff; }
[data-theme="dark"] .badge--navy { background: var(--blue-tint); color: var(--blue-dark); }

.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); font-size: .875rem; font-weight: 500;
  transition: all .18s ease; white-space: nowrap;
}
.chip:hover, .chip.is-active { border-color: var(--blue); color: var(--blue); background: var(--blue-tint); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 40px; width: auto; border-radius: 8px; }
[data-theme="dark"] .brand img { background: #fff; padding: 3px 8px; }

.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: .25rem; list-style: none; }
.main-nav a {
  display: block; padding: .5rem .55rem; border-radius: 8px;
  font-size: .875rem; font-weight: 500; color: var(--text-2); white-space: nowrap;
}
.main-nav a:hover { color: var(--blue); background: var(--blue-tint); }
.main-nav a.is-active { color: var(--blue); font-weight: 600; }

.header-search {
  position: relative; flex: 1; max-width: 480px; margin-left: auto; display: none;
  align-items: center; gap: .5rem;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px;
  padding: .3rem .3rem .3rem 2.5rem; transition: all .18s ease;
}
.header-search:focus-within { border-color: var(--blue); background: var(--bg); box-shadow: 0 0 0 3px var(--blue-tint); }
.header-search input {
  flex: 1; min-width: 0; border: none; background: none; padding: .45rem 0;
  color: var(--text); font-size: .9rem; font-family: inherit;
}
.header-search input:focus { outline: none; }
.header-search .search-icon { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; display: inline-flex; }
.search-go { padding: .45rem 1.1rem; font-size: .85rem; flex-shrink: 0; }
.search-go svg { display: none; }
@media (max-width: 419.98px) {
  .header-search--mobile .search-go span { display: none; }
  .header-search--mobile .search-go svg { display: inline-flex; }
  .header-search--mobile .search-go { padding: .45rem .7rem; }
}

.header-actions { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px; border: none; background: transparent;
  color: var(--text-2); position: relative; transition: all .18s ease;
}
.icon-btn:hover { background: var(--blue-tint); color: var(--blue); }
.icon-btn .dot {
  position: absolute; top: 9px; right: 9px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--blue); border: 2px solid var(--bg);
}
.nav-toggle { margin-left: auto; }

@media (min-width: 640px)  { .header-search { display: flex; min-width: 0; } .nav-toggle { margin-left: 0; } }
@media (min-width: 1200px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
  .header-search { flex-shrink: 1; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 100; display: none;
}
.mobile-menu.is-open { display: block; }
.mobile-menu__backdrop { position: absolute; inset: 0; background: rgba(2, 10, 30, .55); }
.mobile-menu__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 88vw);
  background: var(--bg); box-shadow: var(--shadow-lg); padding: 1.25rem;
  display: flex; flex-direction: column; gap: 1rem; overflow-y: auto;
  animation: slideIn .25s ease;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__panel .brand img { height: 34px; }
.mobile-menu nav ul { list-style: none; display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: block; padding: .8rem .5rem; font-weight: 500; color: var(--text-2);
  border-bottom: 1px solid var(--border); font-size: 1rem;
}
.mobile-menu nav a:hover { color: var(--blue); }

/* Sticky search on mobile */
.mobile-searchbar {
  display:none;
  position: sticky; top: var(--header-h); z-index: 50;
  background: var(--bg); border-bottom: 1px solid var(--border); padding: .6rem 0;
}
.mobile-searchbar .header-search { display: flex; max-width: none; margin: 0; }
@media (min-width: 640px) { .mobile-searchbar { display: none; } }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--blue-tint) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  padding: 3.5rem 0 3rem;
}
.hero-inner { max-width: 860px; margin-inline: auto; text-align: center; }
.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.25rem); font-weight: 700; color: var(--text);
}
.hero h1 .accent { color: var(--blue); }
.hero .sub {
  margin: 1rem auto 0; max-width: 620px; color: var(--text-2);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.hero-search {
  margin: 2rem auto 0; max-width: 640px; display: flex; gap: .5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: .4rem .4rem .4rem 1.2rem; box-shadow: var(--shadow-lg);
  align-items: center;
}
.hero-search .search-icon { color: var(--text-3); flex-shrink: 0; }
.hero-search input {
  flex: 1; border: none; background: none; font-size: 1rem; color: var(--text);
  font-family: inherit; min-width: 0;
}
.hero-search input:focus { outline: none; }
.hero-search .btn { flex-shrink: 0; }

.hero-chips { margin-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.hero-trending { margin-top: 1rem; font-size: .85rem; color: var(--text-3); }
.hero-trending a { color: var(--blue); font-weight: 500; }
.hero-trending a:hover { text-decoration: underline; }

.stats-grid {
  margin-top: 2.5rem; display: grid; gap: .75rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem 1rem; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card .num { font-family: var(--font-head); font-size: 1.75rem; font-weight: 700; color: var(--blue); }
.stat-card .label { font-size: .85rem; color: var(--text-3); font-weight: 500; }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px)  { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px)  { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Job card ---------- */
.job-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem;
  transition: all .18s ease; position: relative;
}
.job-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.job-card__top { display: flex; align-items: flex-start; gap: .85rem; }
.company-logo {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: #fff;
}
.job-card__title { font-size: 1.05rem; font-weight: 600; font-family: var(--font-head); }
.job-card__title a:hover { color: var(--blue); }
.job-card__company { font-size: .875rem; color: var(--text-3); }
.job-card__meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .82rem; color: var(--text-2); }
.job-card__meta span { display: inline-flex; align-items: center; gap: .3rem; }
.job-card__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  font-size: .75rem; font-weight: 500; padding: .22rem .6rem; border-radius: 6px;
  background: var(--bg-soft); color: var(--text-2); border: 1px solid var(--border);
}
.job-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--border);
  font-size: .8rem; color: var(--text-3);
}
.job-card__salary { color: var(--green); font-weight: 600; font-size: .875rem; }

/* ---------- Article card ---------- */
.article-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: all .18s ease;
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.article-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.article-card:hover .article-card__media img { transform: scale(1.04); }
.article-card__media .badge { position: absolute; top: .75rem; left: .75rem; box-shadow: var(--shadow-sm); }
.article-card__body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.article-card__title { font-size: 1.08rem; font-weight: 600; }
.article-card__title a { display: block; }
.article-card__title a:hover { color: var(--blue); }
.article-card__excerpt {
  font-size: .9rem; color: var(--text-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card__foot {
  margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: .6rem; font-size: .8rem; color: var(--text-3);
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-tint); color: var(--blue); font-weight: 700; font-size: .8rem;
}
.article-card__foot .share-btn { margin-left: auto; }
.share-btn {
  border: none; background: none; color: var(--text-3); display: inline-flex;
  padding: .35rem; border-radius: 8px; transition: all .15s ease;
}
.share-btn:hover { color: var(--blue); background: var(--blue-tint); }

/* ---------- Tender card ---------- */
.tender-card {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--blue);
  border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; gap: .6rem;
  transition: all .18s ease;
}
.tender-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.tender-card h3 { font-size: 1rem; font-weight: 600; }
.tender-card h3 a:hover { color: var(--blue); }
.tender-card .org { font-size: .85rem; color: var(--text-3); }
.tender-card__foot { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--text-2); margin-top: .25rem; }
.tender-card .deadline { color: var(--amber); font-weight: 600; }

/* ---------- Company card ---------- */
.company-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 1rem; text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: .6rem; transition: all .18s ease;
}
.company-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.company-card .company-logo { width: 56px; height: 56px; font-size: 1.3rem; }
.company-card h3 { font-size: .95rem; }
.company-card p { font-size: .8rem; color: var(--text-3); }

/* ---------- Slider (horizontal scroll) ---------- */
.slider { position: relative; }
.slider__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(85%, 320px);
  gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .75rem;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.slider__track > * { scroll-snap-align: start; }
.slider__nav { display: none; gap: .5rem; }
@media (min-width: 768px) { .slider__nav { display: flex; } }
.slider__nav button {
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); display: inline-flex;
  align-items: center; justify-content: center; transition: all .15s ease;
}
.slider__nav button:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Listings page ---------- */
.page-hero { background: linear-gradient(180deg, var(--bg-soft), var(--bg)); padding: 2.25rem 0 1.5rem; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
.page-hero p { color: var(--text-2); margin-top: .4rem; max-width: 640px; }

.listings-layout { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 980px) { .listings-layout { grid-template-columns: 280px 1fr; } }

.filters-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.4rem 1.25rem; box-shadow: var(--shadow-sm);
}
@media (min-width: 980px) { .filters-panel { position: sticky; top: calc(var(--header-h) + 1rem); max-height: calc(100vh - var(--header-h) - 2rem); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent; } }
.filters-panel h2 {
  font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem;
}
.filters-panel h2 .t { display: inline-flex; align-items: center; gap: .5rem; }
.filters-panel h2 .t svg { color: var(--blue); }
.filters-panel .clear-filters {
  font-size: .78rem; color: var(--blue); background: var(--blue-tint); border: none;
  font-weight: 600; padding: .3rem .75rem; border-radius: 999px; transition: all .15s ease;
}
.filters-panel .clear-filters:hover { background: var(--blue); color: #fff; }

.filter-group {
  border: none; margin-top: 1rem; padding: 1rem 1rem 1.1rem;
  background: var(--bg-soft); border-radius: 12px;
}
.filter-group > h3 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: var(--text);
  margin-bottom: .7rem; font-family: var(--font-body); font-weight: 700;
  display: flex; align-items: center; gap: .5rem;
}
.filter-group > h3::before {
  content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--blue); flex-shrink: 0;
}
.filter-options { display: flex; flex-direction: column; gap: .1rem; }
.filter-group label {
  display: flex; align-items: center; gap: .6rem; padding: .38rem .55rem;
  font-size: .9rem; color: var(--text-2); cursor: pointer; border-radius: 8px;
  margin: 0 -.35rem; transition: background .12s ease, color .12s ease;
}
.filter-group label:hover { color: var(--blue); background: var(--blue-tint); }
.filter-group input[type="checkbox"], .filter-group input[type="radio"] { accent-color: var(--blue); width: 16px; height: 16px; flex-shrink: 0; }
.filter-group label:has(input:checked) { color: var(--blue); font-weight: 600; }

/* Technology filter as toggle chips */
.filter-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.filter-chips label {
  margin: 0; padding: .35rem .85rem; border-radius: 999px; font-size: .82rem; font-weight: 500;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
}
.filter-chips label:hover { border-color: var(--blue); color: var(--blue); background: var(--surface); }
.filter-chips input { position: absolute; opacity: 0; pointer-events: none; }
.filter-chips label:has(input:checked) {
  background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600;
}
.filter-chips label:has(input:checked):hover { background: var(--blue-600); color: #fff; }

.filter-group select {
  width: 100%; padding: .55rem .75rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font-family: inherit; font-size: .9rem; margin-bottom: .55rem;
  transition: border-color .15s ease;
}
.filter-group select:last-child { margin-bottom: 0; }
.filter-group select:disabled { opacity: .55; }
.filter-group select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }

/* Mobile filter drawer */
.filters-toggle { display: inline-flex; }
.filters-backdrop { display: none; }
@media (min-width: 980px) { .filters-toggle { display: none; } }
@media (max-width: 979.98px) {
  .filters-panel {
    position: fixed; inset: auto 0 0 0; z-index: 90; max-height: 82vh; overflow-y: auto;
    border-radius: 20px 20px 0 0; box-shadow: var(--shadow-lg);
    transform: translateY(105%); transition: transform .28s ease;
  }
  .filters-panel.is-open { transform: translateY(0); }
  .filters-backdrop {
    display: block; position: fixed; inset: 0; z-index: 85; background: rgba(2, 10, 30, .55);
    opacity: 0; pointer-events: none; transition: opacity .25s ease;
  }
  .filters-backdrop.is-open { opacity: 1; pointer-events: auto; }
}

.results-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1.25rem;
}
.results-bar .count { font-size: .9rem; color: var(--text-2); }
.results-bar .count strong { color: var(--text); }
.results-bar .sort { margin-left: auto; display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--text-3); }
.results-bar select {
  padding: .45rem .7rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font-family: inherit; font-size: .875rem;
}

.active-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.active-filters .pill {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem;
  background: var(--blue-tint); color: var(--blue); border-radius: 999px; padding: .3rem .75rem;
  border: none; font-weight: 500;
}

.empty-state {
  text-align: center; padding: 4rem 1rem; color: var(--text-3);
  background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius);
}
.empty-state h3 { color: var(--text); margin-bottom: .4rem; }

/* ---------- Article page ---------- */
.breadcrumb { font-size: .82rem; color: var(--text-3); display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { opacity: .5; }

.article-layout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 980px) { .article-layout { grid-template-columns: minmax(0, 1fr) 320px; } }

.article-header { margin: 1.25rem 0; }
.article-header h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: .75rem 0; }
.article-byline { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; color: var(--text-3); font-size: .875rem; }
.article-byline .avatar { width: 42px; height: 42px; font-size: .95rem; }
.article-byline .who strong { display: block; color: var(--text); font-size: .925rem; }

.article-banner { border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; aspect-ratio: 21/9; }
.article-banner img { width: 100%; height: 100%; object-fit: cover; }

.share-row { display: flex; gap: .4rem; margin-left: auto; }

.toc {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem 1.25rem; margin-bottom: 1.5rem;
}
.toc h2 { font-size: .95rem; margin-bottom: .5rem; }
.toc ol { padding-left: 1.2rem; font-size: .9rem; color: var(--text-2); display: flex; flex-direction: column; gap: .3rem; }
.toc a:hover { color: var(--blue); }

.prose { font-size: 1.05rem; color: var(--text); }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: 1.45rem; margin-top: 2rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.prose p { color: var(--text-2); }
.prose ul, .prose ol { padding-left: 1.4rem; color: var(--text-2); }
.prose li + li { margin-top: .4rem; }
.prose blockquote {
  border-left: 4px solid var(--blue); background: var(--blue-tint);
  padding: 1rem 1.25rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: var(--text);
}

.author-box {
  display: flex; gap: 1rem; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; margin: 2rem 0;
}
.author-box .avatar { width: 56px; height: 56px; font-size: 1.15rem; }
.author-box h3 { font-size: 1rem; }
.author-box p { font-size: .9rem; color: var(--text-2); margin-top: .25rem; }

/* Sidebar widgets */
.widget {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; margin-bottom: 1.25rem;
}
.widget > h3 { font-size: 1rem; margin-bottom: .9rem; padding-bottom: .6rem; border-bottom: 2px solid var(--blue); display: inline-block; }
.widget-list { list-style: none; display: flex; flex-direction: column; }
.widget-list li { padding: .55rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.widget-list li:last-child { border-bottom: none; }
.widget-list a { color: var(--text-2); font-weight: 500; display: block; }
.widget-list a:hover { color: var(--blue); }
.widget-list .meta { font-size: .78rem; color: var(--text-3); }
.widget-tags { display: flex; flex-wrap: wrap; gap: .4rem; }

.newsletter-box { background: var(--blue-dark); color: #fff; border: none; }
[data-theme="dark"] .newsletter-box { background: var(--blue-tint); }
.newsletter-box h3 { color: #fff; border-color: rgba(255,255,255,.4); }
[data-theme="dark"] .newsletter-box h3 { color: var(--text); }
.newsletter-box p { font-size: .875rem; opacity: .85; margin-bottom: .9rem; }
.newsletter-box input {
  width: 100%; padding: .65rem .9rem; border-radius: var(--radius-sm); border: none;
  font-family: inherit; font-size: .9rem; margin-bottom: .6rem;
}
.newsletter-box input:focus { outline: 2px solid var(--blue); }

/* Comments */
.comment { display: flex; gap: .85rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.comment .body { flex: 1; }
.comment .who { font-weight: 600; font-size: .9rem; }
.comment .when { font-size: .78rem; color: var(--text-3); margin-left: .5rem; }
.comment p { font-size: .9rem; color: var(--text-2); margin-top: .25rem; }
.comment-form textarea {
  width: 100%; min-height: 110px; padding: .8rem 1rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-family: inherit; font-size: .925rem; resize: vertical;
  background: var(--bg); color: var(--text);
}
.comment-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }

/* ---------- Job detail ---------- */
.job-hero {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; margin-top: 1.25rem;
  display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: flex-start;
}
.job-hero .company-logo { width: 64px; height: 64px; font-size: 1.5rem; border-radius: 16px; }
.job-hero h1 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); }
.job-hero .company { color: var(--text-2); font-weight: 500; margin-top: .2rem; }
.job-hero__meta { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin-top: .75rem; font-size: .875rem; color: var(--text-2); }
.job-hero__actions { display: flex; gap: .6rem; flex-wrap: wrap; width: 100%; }
@media (min-width: 720px) { .job-hero__actions { width: auto; margin-left: auto; flex-direction: column; align-items: stretch; } }

.facts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin: 1.25rem 0; }
@media (min-width: 720px) { .facts-grid { grid-template-columns: repeat(4, 1fr); } }
.fact {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .8rem 1rem;
}
.fact .k { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.fact .v { font-weight: 600; font-size: .95rem; margin-top: .15rem; }

/* ---------- Forms / contact ---------- */
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-grid--2 .span-2 { grid-column: span 2; } }
.field label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .35rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .7rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem; background: var(--bg); color: var(--text);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue-dark), #0a4bb5);
  border-radius: var(--radius); color: #fff; padding: clamp(1.75rem, 4vw, 3rem);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; justify-content: space-between;
}
.cta-band h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
.cta-band p { opacity: .85; margin-top: .35rem; max-width: 520px; }
.cta-band form { display: flex; gap: .5rem; flex-wrap: wrap; }
.cta-band input {
  padding: .75rem 1.1rem; border-radius: 999px; border: none; min-width: 240px;
  font-family: inherit; font-size: .925rem;
}
.cta-band .btn-primary { background: #fff; color: var(--blue-dark); }
.cta-band .btn-primary:hover { background: #eaf1ff; color: var(--blue-dark); }

/* ---------- Footer ---------- */
.site-footer { background: #0A1428; color: #B9C3D6; margin-top: 3rem; }
[data-theme="dark"] .site-footer { border-top: 1px solid var(--border); }
.footer-main {
  display: grid; gap: 2rem; padding: 3rem 0 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-main { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand img { height: 42px; width: auto; background: #fff; padding: 5px 10px; border-radius: 10px; }
.footer-brand p { font-size: .9rem; margin-top: 1rem; max-width: 320px; line-height: 1.7; }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.social-row { display: flex; gap: .6rem; margin-top: 1.25rem; }
.social-row a {
  width: 38px; height: 38px; border-radius: 999px; background: rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center; transition: all .18s ease;
}
.social-row a:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.footer-news form { display: flex; gap: .5rem; margin-top: .75rem; }
.footer-news input {
  flex: 1; padding: .6rem .9rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06); color: #fff; font-family: inherit; font-size: .875rem; min-width: 0;
}
.footer-news input::placeholder { color: #8FA0BC; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0;
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between;
  font-size: .82rem; color: #8FA0BC;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Utilities ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--blue); color: #fff;
  padding: .6rem 1rem; border-radius: 0 0 8px 0; z-index: 200; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

::selection { background: var(--blue); color: #fff; }


/* ---------- WordPress additions ---------- */
.wp-post-image, .article-banner img { width: 100%; height: 100%; object-fit: cover; }
.pagination { display: flex; gap: .4rem; justify-content: center; margin: 2rem 0 0; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
  padding: 0 .8rem; border: 1px solid var(--border); border-radius: 999px; font-weight: 600; font-size: .9rem;
  color: var(--text-2); background: var(--surface);
}
.pagination .page-numbers.current { background: var(--blue); color: #fff; border-color: var(--blue); }
.pagination .page-numbers:hover:not(.current) { border-color: var(--blue); color: var(--blue); }
.filters-panel .filter-apply { margin-top: 1rem; }
.prose img { border-radius: var(--radius-sm); }
.comment-list { list-style: none; }
.comment-list .comment { display: block; }
.logged-in .site-header { top: 32px; }
@media screen and (max-width: 782px) { .logged-in .site-header { top: 46px; } }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Comments ---------- */
.comments { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.comments__head { margin-bottom: 1.5rem; }
.comments__title { font-family: var(--font-head); font-size: 1.35rem; }
.comments__sub { color: var(--text-3); font-size: .9rem; margin-top: .25rem; }
.comments__closed {
  background: var(--bg-soft); border: 1px dashed var(--border); border-radius: var(--radius-sm);
  padding: .8rem 1rem; color: var(--text-3); font-size: .9rem; margin-top: 1rem;
}

.comment-list { display: flex; flex-direction: column; gap: 1rem; }
.comment-list .children {
  list-style: none; margin: 1rem 0 0 1.25rem; padding-left: 1.25rem;
  border-left: 2px solid var(--border);
  display: flex; flex-direction: column; gap: 1rem;
}
.comment-card > .comment-body {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem 1.25rem; box-shadow: var(--shadow-sm); transition: box-shadow .18s ease;
}
.comment-card > .comment-body:hover { box-shadow: var(--shadow-md); }
.comment-card:target > .comment-body { border-color: var(--blue); }

.comment-meta { display: flex; align-items: flex-start; gap: .7rem; }
.comment-meta .avatar { width: 40px; height: 40px; font-size: .9rem; }
.comment-who { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.comment-author { display: flex; align-items: center; gap: .5rem; font-size: .95rem; }
.comment-author-badge { font-size: .68rem; padding: .15rem .5rem; }
.comment-date { font-size: .8rem; color: var(--text-3); }
.comment-date:hover { color: var(--blue); }

.comment-reply { margin-left: auto; flex-shrink: 0; }
.comment-reply .comment-reply-link {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .8rem; font-weight: 600; color: var(--text-2);
  border: 1px solid var(--border); border-radius: 999px; padding: .3rem .8rem;
  background: var(--surface); transition: all .15s ease;
}
.comment-reply .comment-reply-link:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-tint); }
.comment-reply .comment-reply-link::before { content: "\21A9"; font-size: .9em; }

.comment-content { margin-top: .8rem; font-size: .95rem; color: var(--text-2); line-height: 1.65; }
.comment-content p + p { margin-top: .6rem; }
.comment-content a { color: var(--blue); }
.comment-awaiting {
  margin-top: .8rem; font-size: .82rem; color: var(--amber);
  background: rgba(180, 83, 9, .08); border-radius: var(--radius-sm); padding: .45rem .7rem;
}
[data-theme="dark"] .comment-awaiting { background: rgba(251, 191, 36, .1); }

.comment-navigation, .comments .comment-navigation .nav-links { display: flex; justify-content: space-between; margin-top: 1.25rem; }
.comment-navigation a { font-size: .9rem; font-weight: 600; color: var(--blue); }

/* Comment form */
.comment-respond { margin-top: 2rem; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.comment-list .comment-respond { margin-top: 1rem; }
.comment-reply-title { font-family: var(--font-head); font-size: 1.1rem; display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.comment-reply-title small { font-size: .8rem; font-weight: 500; }
.comment-reply-title small a { color: var(--text-3); }
.comment-reply-title small a:hover { color: var(--blue); }
.comment-notes { font-size: .85rem; color: var(--text-3); margin-top: .35rem; }
.comment-form { margin-top: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.comment-form-comment, .comment-form-cookies-consent, .form-submit, .logged-in-as { grid-column: 1 / -1; }
.comment-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; }
.comment-form label .required { color: var(--amber); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea {
  width: 100%; padding: .6rem .8rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font: inherit; font-size: .92rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.comment-form input:focus, .comment-form textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint);
}
.comment-form textarea { resize: vertical; min-height: 120px; }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: .5rem; }
.comment-form-cookies-consent input { accent-color: var(--blue); margin-top: .2rem; }
.comment-form-cookies-consent label { font-weight: 400; font-size: .82rem; color: var(--text-3); margin: 0; }
.logged-in-as { font-size: .85rem; color: var(--text-3); }
.logged-in-as a { color: var(--blue); }
.form-submit { margin: 0; }

@media (max-width: 640px) {
  .comment-form { grid-template-columns: 1fr; }
  .comment-list .children { margin-left: .5rem; padding-left: .9rem; }
  .comment-respond { padding: 1.1rem; }
}
