/**
 * HireNest — main stylesheet.
 * Design tokens extracted 1:1 from the source design.
 * Structure: tokens → base → components → WP core → responsive → a11y.
 */

/* ── Tokens ─────────────────────────────────────────────────────── */
:root {
  --hn-primary: #1A3C5E;
  --hn-primary-light: #2563AB;
  --hn-accent: #F97316;
  --hn-accent-hover: #ea6500;
  --hn-accent-light: #FFF0E6;
  --hn-success: #059669;
  --hn-bg: #F8FAFC;
  --hn-card: #FFFFFF;
  --hn-border: #E2E8F0;
  --hn-text: #0F172A;
  --hn-muted: #64748B;
  --hn-tag-bg: #EFF6FF;
  --hn-tag-text: #1D4ED8;
  --hn-hero-bg: #0F2845;
  --hn-urgent: #EF4444;

  --hn-font-heading: 'Sora', sans-serif;
  --hn-font-body: 'DM Sans', sans-serif;

  --hn-radius-sm: 6px;
  --hn-radius-md: 8px;
  --hn-radius-lg: 10px;
  --hn-radius-xl: 12px;
  --hn-radius-2xl: 14px;
  --hn-radius-3xl: 16px;
  --hn-radius-pill: 100px;

  --hn-shadow-search: 0 20px 60px rgba(0,0,0,0.25);
  --hn-shadow-card-hover: 0 4px 20px rgba(37,99,171,0.12);
  --hn-shadow-lift: 0 8px 24px rgba(0,0,0,0.08);
  --hn-shadow-article: 0 8px 28px rgba(0,0,0,0.1);

  --hn-transition: all .2s;
  --hn-container: 1200px;
  --hn-nav-height: 64px;
}

/* ── Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--hn-font-body);
  background: var(--hn-bg);
  color: var(--hn-text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { font-family: var(--hn-font-heading); margin: 0 0 .5em; line-height: 1.2; }
button { font-family: inherit; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  overflow: hidden;
  word-wrap: normal !important;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--hn-primary); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--hn-radius-md) 0;
}
.skip-link:focus { left: 0; clip: auto; width: auto; height: auto; }

:is(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--hn-primary-light);
  outline-offset: 2px;
}

/* ── Nav ────────────────────────────────────────────────────────── */
.site-nav {
  background: var(--hn-card);
  border-bottom: 1px solid var(--hn-border);
  padding: 0 2rem;
  z-index: 100;
}
.has-sticky-header .site-nav { position: sticky; top: 0; }
.nav-inner {
  max-width: var(--hn-container); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--hn-nav-height); gap: 2rem;
}
.logo, .logo-text {
  font-family: var(--hn-font-heading);
  font-size: 1.4rem; font-weight: 700;
  color: var(--hn-primary);
  display: inline-flex; align-items: center; gap: 6px;
}
.logo-dot { color: var(--hn-accent); }
.custom-logo { max-height: 40px; width: auto; }

.nav-links { display: flex; gap: 1.5rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--hn-muted); transition: color .2s; }
.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a { color: var(--hn-primary); }

/* Dropdowns (submenu support with keyboard access) */
.nav-links li { position: relative; }
.nav-links .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 200px;
  background: var(--hn-card); border: 1px solid var(--hn-border);
  border-radius: var(--hn-radius-md); box-shadow: var(--hn-shadow-lift);
  list-style: none; margin: 0; padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: var(--hn-transition);
}
.nav-links li:hover > .sub-menu,
.nav-links li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-links .sub-menu a { display: block; padding: 8px 12px; border-radius: var(--hn-radius-sm); }
.nav-links .sub-menu a:hover { background: var(--hn-bg); }

.nav-btns { display: flex; gap: .75rem; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px;
  border-radius: var(--hn-radius-md);
  font-size: 14px; font-weight: 500;
  cursor: pointer; border: none;
  transition: var(--hn-transition);
}
.btn-outline { background: transparent; border: 1.5px solid var(--hn-primary); color: var(--hn-primary); }
.btn-outline:hover { background: var(--hn-primary); color: #fff; }
.btn-primary { background: var(--hn-accent); color: #fff; }
.btn-primary:hover { background: var(--hn-accent-hover); color: #fff; transform: translateY(-1px); }
.btn-blue { background: var(--hn-primary); color: #fff; }
.btn-blue:hover { background: var(--hn-primary-light); }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.2); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; transform: none; }
.btn.is-loading { position: relative; color: transparent; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: hn-spin .7s linear infinite;
}
@keyframes hn-spin { to { transform: rotate(360deg); } }

/* ── Mobile menu ────────────────────────────────────────────────── */
.menu-toggle {
  display: none; background: transparent; border: 1.5px solid var(--hn-border);
  border-radius: var(--hn-radius-md); padding: 8px; cursor: pointer;
}
.menu-toggle-bars { display: flex; flex-direction: column; gap: 4px; }
.menu-toggle-bars span { width: 18px; height: 2px; background: var(--hn-primary); transition: var(--hn-transition); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--hn-border); padding: 1rem 0; }
.mobile-menu[hidden] { display: none; }
.mobile-nav-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-links a { display: block; padding: 10px 8px; font-weight: 500; color: var(--hn-muted); border-radius: var(--hn-radius-sm); }
.mobile-nav-links a:hover { color: var(--hn-primary); background: var(--hn-bg); }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  background: var(--hn-hero-bg);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(37,99,171,0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(249,115,22,0.15) 0%, transparent 50%);
  padding: 5rem 2rem 4rem;
  color: #fff;
  text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--hn-radius-pill); padding: 5px 14px;
  font-size: 13px; color: #CBD5E1;
  margin-bottom: 1.5rem;
}
.hero-badge span { color: var(--hn-accent); font-weight: 600; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700; line-height: 1.2;
  margin-bottom: 1rem; color: #fff;
}
.hero h1 em { color: var(--hn-accent); font-style: normal; }
.hero > p { color: #94A3B8; font-size: 1.05rem; margin: 0 0 2.5rem; }

/* Search box */
.search-box {
  background: #fff; border-radius: var(--hn-radius-2xl);
  padding: 8px; display: flex; gap: 8px;
  max-width: 780px; margin: 0 auto 2rem;
  box-shadow: var(--hn-shadow-search);
}
.search-field {
  flex: 1; display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-right: 1.5px solid var(--hn-border);
}
.search-field:last-of-type { border-right: none; }
.search-field svg { color: var(--hn-muted); flex-shrink: 0; }
.search-field input {
  border: none; outline: none; width: 100%; font-size: 14px;
  font-family: var(--hn-font-body); color: var(--hn-text);
  background: transparent;
}
.search-field input::placeholder { color: var(--hn-muted); }
.search-box .btn { padding: 12px 28px; border-radius: var(--hn-radius-lg); font-size: 15px; white-space: nowrap; }
.search-box-compact { box-shadow: none; border: 1.5px solid var(--hn-border); margin: 1rem 0; }

.hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: .5rem; }
.hero-tags span { font-size: 12px; color: #94A3B8; }
.hero-tags a {
  font-size: 12px; color: #CBD5E1;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  padding: 4px 10px; border-radius: var(--hn-radius-pill);
  transition: var(--hn-transition);
}
.hero-tags a:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* ── Stats bar ──────────────────────────────────────────────────── */
.stats-bar {
  background: var(--hn-primary);
  padding: 1rem 2rem;
  display: flex; justify-content: center; gap: 3rem;
  flex-wrap: wrap;
}
.stat-item { text-align: center; color: #fff; }
.stat-item .num { font-family: var(--hn-font-heading); font-size: 1.4rem; font-weight: 700; }
.stat-item .lbl { font-size: 12px; color: #93C5FD; }

/* ── Layout ─────────────────────────────────────────────────────── */
.container { max-width: var(--hn-container); margin: 0 auto; padding: 0 2rem; }
.section { padding: 3rem 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.section-head h2, .archive-title { font-family: var(--hn-font-heading); font-size: 1.35rem; font-weight: 600; margin: 0; }
.section-head a { font-size: 13px; color: var(--hn-primary-light); font-weight: 500; }
.archive-head { margin-top: 2rem; }

.main-layout { display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; padding: 2rem 0; }
.main-layout.sidebar-right-layout { grid-template-columns: 1fr 260px; }
.main-layout.sidebar-right-layout .sidebar { order: 2; }
.main-layout.no-sidebar-layout { grid-template-columns: 1fr; }
.content-sidebar-layout { display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem; padding: 2rem 0; }

/* ── Filters sidebar ────────────────────────────────────────────── */
.sidebar { position: sticky; top: 80px; height: fit-content; }
.filter-card {
  background: var(--hn-card); border: 1px solid var(--hn-border);
  border-radius: var(--hn-radius-xl); padding: 1.25rem; margin-bottom: 1rem;
}
fieldset.filter-card { min-width: 0; }
.filter-card h3, .widget-title, .filter-heading h3 {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; color: var(--hn-muted); margin: 0 0 1rem;
  font-family: var(--hn-font-body);
}
.filter-heading { padding: 0; border: 0; margin: 0; }
.filter-group { display: flex; flex-direction: column; gap: 8px; }
.filter-item { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.filter-item input[type=checkbox] { accent-color: var(--hn-primary); width: 15px; height: 15px; margin: 0; }
.filter-item .count {
  margin-left: auto; background: var(--hn-tag-bg); color: var(--hn-tag-text);
  font-size: 11px; padding: 1px 7px; border-radius: var(--hn-radius-pill);
}
.salary-range { display: flex; flex-direction: column; gap: 8px; }
.salary-range input[type=range] { width: 100%; accent-color: var(--hn-accent); }
.salary-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--hn-muted); }
.filter-btn {
  width: 100%; padding: 10px; border: none;
  background: var(--hn-primary); color: #fff;
  border-radius: var(--hn-radius-md); font-size: 14px; font-weight: 500;
  cursor: pointer; margin-top: .75rem;
  transition: var(--hn-transition);
}
.filter-btn:hover { background: var(--hn-primary-light); }
.clear-btn {
  width: 100%; padding: 8px; border: 1.5px solid var(--hn-border);
  background: transparent; color: var(--hn-muted);
  border-radius: var(--hn-radius-md); font-size: 13px; cursor: pointer; margin-top: .5rem;
  transition: var(--hn-transition);
}
.clear-btn:hover { border-color: var(--hn-muted); color: var(--hn-text); }

/* ── Jobs header ────────────────────────────────────────────────── */
.jobs-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; gap: 1rem; }
.jobs-count { font-size: 14px; color: var(--hn-muted); }
.jobs-count strong { color: var(--hn-text); }
.sort-select {
  font-size: 13px; border: 1px solid var(--hn-border);
  border-radius: var(--hn-radius-md); padding: 6px 10px; outline: none;
  color: var(--hn-text); background: var(--hn-card); cursor: pointer;
  font-family: inherit;
}

/* ── Job card ───────────────────────────────────────────────────── */
.job-card {
  background: var(--hn-card); border: 1.5px solid var(--hn-border);
  border-radius: var(--hn-radius-xl); padding: 1.25rem;
  margin-bottom: 1rem; transition: var(--hn-transition);
  position: relative;
}
.job-card:hover {
  border-color: var(--hn-primary-light);
  box-shadow: var(--hn-shadow-card-hover);
  transform: translateY(-1px);
}
.job-card.featured { border-color: var(--hn-accent); }
.featured-badge {
  position: absolute; top: -1px; right: 16px;
  background: var(--hn-accent); color: #fff;
  font-size: 10px; font-weight: 600;
  padding: 3px 10px; border-radius: 0 0 var(--hn-radius-sm) var(--hn-radius-sm);
  text-transform: uppercase; letter-spacing: .06em;
}
.card-top { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.company-logo {
  width: 48px; height: 48px; border-radius: var(--hn-radius-lg);
  border: 1px solid var(--hn-border);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--hn-font-heading); font-weight: 700; font-size: 16px;
  flex-shrink: 0; background: var(--hn-tag-bg); color: var(--hn-primary);
  overflow: hidden;
}
.company-logo img { width: 100%; height: 100%; object-fit: cover; }
.card-info { flex: 1; min-width: 0; }
.job-title { font-family: var(--hn-font-heading); font-size: 15px; font-weight: 600; margin: 0 0 2px; }
.job-title a { color: var(--hn-text); transition: color .2s; }
.job-title a:hover { color: var(--hn-primary-light); }
.job-single-title { font-size: 1.35rem; }
.company-name { font-size: 13px; color: var(--hn-muted); margin-bottom: 6px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.meta-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--hn-muted); background: var(--hn-bg);
  padding: 3px 9px; border-radius: var(--hn-radius-sm);
  border: 1px solid var(--hn-border);
}
.salary-tag { color: var(--hn-success); background: #ECFDF5; border-color: #A7F3D0; font-weight: 500; }
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hn-border);
  gap: 1rem;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tag {
  font-size: 11px; background: var(--hn-tag-bg); color: var(--hn-tag-text);
  padding: 3px 9px; border-radius: var(--hn-radius-pill);
  transition: var(--hn-transition);
}
a.skill-tag:hover { background: var(--hn-tag-text); color: #fff; }
.card-actions { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }
.save-btn {
  width: 34px; height: 34px; border-radius: var(--hn-radius-md);
  border: 1.5px solid var(--hn-border); background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--hn-muted); font-size: 15px;
  transition: var(--hn-transition);
}
.save-btn:hover { border-color: var(--hn-accent); color: var(--hn-accent); }
.save-btn.is-saved { border-color: var(--hn-accent); color: var(--hn-accent); }
.apply-btn {
  padding: 7px 18px; background: var(--hn-primary); color: #fff;
  border: none; border-radius: var(--hn-radius-md);
  font-size: 13px; font-weight: 500; cursor: pointer;
  display: inline-flex; align-items: center;
  transition: var(--hn-transition);
}
.apply-btn:hover { background: var(--hn-primary-light); color: #fff; }
.time-ago { font-size: 11px; color: var(--hn-muted); margin-top: 6px; }

.urgent-dot {
  width: 7px; height: 7px; background: var(--hn-urgent); border-radius: 50%;
  display: inline-block; margin-right: 4px;
  animation: hn-pulse 1.5s infinite;
}
@keyframes hn-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* ── Category grid ──────────────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.cat-card {
  background: var(--hn-card); border: 1.5px solid var(--hn-border);
  border-radius: var(--hn-radius-xl); padding: 1.25rem 1rem;
  text-align: center; cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
  transition: var(--hn-transition);
}
.cat-card:hover { border-color: var(--hn-primary-light); transform: translateY(-2px); box-shadow: var(--hn-shadow-lift); }
.cat-icon { font-size: 1.8rem; margin-bottom: 8px; line-height: 1; }
.cat-name { font-size: 13px; font-weight: 500; margin-bottom: 2px; color: var(--hn-text); }
.cat-count { font-size: 11px; color: var(--hn-muted); }
.company-card .company-logo { margin-bottom: 8px; }

/* ── Articles ───────────────────────────────────────────────────── */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.article-card {
  background: var(--hn-card); border: 1px solid var(--hn-border);
  border-radius: var(--hn-radius-xl); overflow: hidden;
  transition: var(--hn-transition);
}
.article-card:hover { box-shadow: var(--hn-shadow-article); transform: translateY(-2px); }
.article-img {
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; overflow: hidden;
}
.article-img.blue { background: linear-gradient(135deg, #1A3C5E, #2563AB); }
.article-img.orange { background: linear-gradient(135deg, #EA580C, #F97316); }
.article-img.green { background: linear-gradient(135deg, #065F46, #059669); }
.article-img img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: 1rem; }
.article-tag {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--hn-primary-light); margin-bottom: 6px;
}
.article-title { font-family: var(--hn-font-heading); font-size: 14px; font-weight: 600; line-height: 1.4; margin: 0 0 8px; }
.article-title a { color: var(--hn-text); }
.article-title a:hover { color: var(--hn-primary-light); }
.article-meta { font-size: 12px; color: var(--hn-muted); display: flex; gap: 10px; }

/* ── Employer banner ────────────────────────────────────────────── */
.employer-banner {
  background: var(--hn-primary);
  background-image: radial-gradient(ellipse at 80% 50%, rgba(37,99,171,0.5) 0%, transparent 60%);
  border-radius: var(--hn-radius-3xl); padding: 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; color: #fff; margin: 2rem 0;
}
.employer-banner h2 { font-size: 1.4rem; font-weight: 700; margin: 0 0 .5rem; color: #fff; }
.employer-banner p { color: #93C5FD; font-size: 14px; margin: 0; }
.banner-btns { display: flex; gap: .75rem; flex-shrink: 0; }

/* ── Pagination ─────────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 6px; padding: 2rem 0; flex-wrap: wrap; }
.page-btn {
  min-width: 36px; height: 36px; padding: 0 6px;
  border-radius: var(--hn-radius-md);
  border: 1.5px solid var(--hn-border); background: var(--hn-card);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px; font-weight: 500; color: var(--hn-text);
  transition: var(--hn-transition);
}
.page-btn:hover, .page-btn.active, .page-btn.current {
  background: var(--hn-primary); color: #fff; border-color: var(--hn-primary);
}
.page-btn.dots { border: none; background: transparent; cursor: default; }

/* ── Content / entry ────────────────────────────────────────────── */
.entry-title { font-size: 1.6rem; }
.entry-content { font-size: 15px; }
.entry-content a { color: var(--hn-primary-light); text-decoration: underline; }
.entry-content h2 { font-size: 1.35rem; margin-top: 1.5em; }
.entry-content h3 { font-size: 1.1rem; margin-top: 1.25em; }
.entry-thumbnail { margin: 0 0 1.25rem; }
.entry-thumbnail img { border-radius: var(--hn-radius-xl); }
.entry-content blockquote {
  border-left: 3px solid var(--hn-accent); margin: 1.5em 0; padding: .5em 1.25em;
  background: var(--hn-bg); border-radius: 0 var(--hn-radius-md) var(--hn-radius-md) 0;
  color: var(--hn-muted);
}
.entry-content :is(ul, ol) { padding-left: 1.4em; }
.job-single, .article-single, .page-single, .company-single { margin-top: 1rem; }
.job-content { margin: 1.25rem 0; }

/* Breadcrumbs */
.breadcrumbs { padding: 1.25rem 0 0; font-size: 12px; color: var(--hn-muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--hn-border); }
.breadcrumbs a { color: var(--hn-primary-light); }

/* Comments */
.comments-area { margin: 1.5rem 0; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { border-bottom: 1px solid var(--hn-border); padding: 1rem 0; }
.comment-list .avatar { border-radius: 50%; }
.comment-form label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.comment-form :is(input[type=text], input[type=email], input[type=url], textarea) {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid var(--hn-border); border-radius: var(--hn-radius-md);
  font-size: 14px; font-family: inherit; color: var(--hn-text);
  transition: border-color .2s; outline: none;
}
.comment-form :is(input, textarea):focus { border-color: var(--hn-primary-light); }
.comment-form .submit {
  padding: 10px 24px; background: var(--hn-primary); color: #fff;
  border: none; border-radius: var(--hn-radius-md);
  font-size: 14px; font-weight: 500; cursor: pointer;
}
.comment-form .submit:hover { background: var(--hn-primary-light); }

/* WP core alignment/classes */
.alignwide { margin-left: auto; margin-right: auto; max-width: var(--hn-container); }
.alignfull { width: 100%; max-width: none; }
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--hn-muted); text-align: center; }
.sticky { border-color: var(--hn-accent); }
.bypostauthor { display: block; }

/* Widgets */
.widget ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.widget ul a { font-size: 13px; color: var(--hn-muted); }
.widget ul a:hover { color: var(--hn-primary); }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer { background: var(--hn-hero-bg); color: #94A3B8; padding: 3rem 2rem 1.5rem; margin-top: 3rem; }
.footer-grid {
  max-width: var(--hn-container); margin: 0 auto 2rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
}
.footer-brand .logo { color: #fff; margin-bottom: .75rem; }
.footer-brand p { font-size: 13px; line-height: 1.7; margin: 0 0 1rem; }
.footer-col h4 {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; color: #CBD5E1; margin: 0 0 .75rem;
  font-family: var(--hn-font-body);
}
.footer-col ul, .social-links { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; }
.footer-col ul li a, .social-links a { font-size: 13px; transition: color .2s; color: #94A3B8; }
.footer-col ul li a:hover, .social-links a:hover { color: #fff; }
.social-links { flex-direction: row; gap: 14px; }
.footer-bottom {
  max-width: var(--hn-container); margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; gap: 1rem; flex-wrap: wrap;
}

/* Back to top */
.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 42px; height: 42px; border-radius: var(--hn-radius-lg);
  background: var(--hn-primary); color: #fff; border: none;
  font-size: 18px; cursor: pointer; box-shadow: var(--hn-shadow-lift);
  transition: var(--hn-transition);
}
.back-to-top:hover { background: var(--hn-primary-light); transform: translateY(-2px); }
.back-to-top[hidden] { display: none; }

/* No results */
.no-results { text-align: center; padding: 2.5rem 1.5rem; }
.no-results h2 { font-size: 1.2rem; }

/* ── Responsive (matches design breakpoint @768, adds 1024/480) ─── */
@media (max-width: 1024px) {
  .main-layout { grid-template-columns: 220px 1fr; }
  .content-sidebar-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .site-nav { padding: 0 1rem; }
  .nav-links, .nav-btns { display: none; }
  .menu-toggle { display: inline-flex; }

  .main-layout, .main-layout.sidebar-right-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  #job-filters { order: 2; }
  .jobs-listing { order: 1; }

  .search-box { flex-direction: column; }
  .search-field { border-right: none; border-bottom: 1.5px solid var(--hn-border); }
  .search-field:last-of-type { border-bottom: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .employer-banner { flex-direction: column; text-align: center; }
  .stats-bar { gap: 1.5rem; }
  .hero { padding: 3.5rem 1rem 3rem; }
  .container { padding: 0 1rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .card-footer { flex-direction: column; align-items: flex-start; }
  .banner-btns { flex-direction: column; width: 100%; }
  .banner-btns .btn { justify-content: center; }
  .jobs-header { flex-direction: column; align-items: flex-start; }
}

/* ── Reduced motion & animation toggle (WCAG 2.3.3) ─────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
.no-animations *, .no-animations *::before, .no-animations *::after {
  animation: none !important;
  transition: none !important;
}

/* ── Print ──────────────────────────────────────────────────────── */
@media print {
  .site-nav, .site-footer, .sidebar, .back-to-top, .card-actions, .pagination { display: none !important; }
  body { background: #fff; }
  .job-card, .filter-card { border-color: #999; box-shadow: none; }
}

/* ── GeneratePress bridge ───────────────────────────────────────────
   Styles GP's native header/footer to match the HireNest design and
   opens GP containers to full width on HireNest views (.hn-canvas). */

/* Full-bleed canvas on HireNest-controlled views */
body.hn-canvas .site-content,
body.hn-canvas #content {
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 0;
	margin: 0 auto;
}
body.hn-canvas .content-area,
body.hn-canvas #primary {
	width: 100%;
	margin: 0;
	float: none;
}
body.hn-canvas .site-main {
	margin: 0 !important;
}

/* GP header → design nav */
.site-header {
	background: var(--hn-card);
	border-bottom: 1px solid var(--hn-border);
}
.site-header .main-title a,
.site-header .site-branding .main-title a {
	font-family: var(--hn-font-heading);
	font-weight: 700;
	color: var(--hn-primary);
}
.main-navigation {
	background: var(--hn-card);
}
.main-navigation .main-nav ul li a {
	font-size: 14px;
	font-weight: 500;
	color: var(--hn-muted);
	transition: color .2s;
}
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a {
	color: var(--hn-primary);
}
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
	color: var(--hn-primary);
}

/* GP footer → design footer (dark) */
.site-footer {
	background: var(--hn-hero-bg);
	color: #94A3B8;
}
.site-footer a { color: #94A3B8; }
.site-footer a:hover { color: #fff; }
.footer-widgets {
	background: transparent;
	color: #94A3B8;
	font-size: 13px;
}
.footer-widgets .widget-title {
	color: #CBD5E1;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .05em;
}
.site-info {
	background: transparent;
	color: #94A3B8;
	font-size: 12px;
	border-top: 1px solid rgba(255,255,255,0.08);
}

/* GP buttons inherit accent */
.button, .wp-block-button__link {
	background: var(--hn-accent);
	color: #fff;
	border-radius: var(--hn-radius-md);
	transition: var(--hn-transition);
}
.button:hover, .wp-block-button__link:hover {
	background: var(--hn-accent-hover);
	color: #fff;
}
