/* ── HIRE UG — ADDITIONS ─────────────────────────────────────────────────
   Components added in the AdSense-readiness redesign. Tokens only; no new colours.
   ──────────────────────────────────────────────────────────────────────── */

/* ── Mobile nav (toggle button + dropdown) ── */
.nav-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(17, 16, 16, .2);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-mobile-toggle .nav-bars,
.nav-mobile-toggle .nav-bars::before,
.nav-mobile-toggle .nav-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  content: '';
  position: relative;
  transition: transform .2s, background .2s;
}
.nav-mobile-toggle .nav-bars::before { position: absolute; top: -6px; left: 0; }
.nav-mobile-toggle .nav-bars::after  { position: absolute; top:  6px; left: 0; }
.nav-mobile-toggle[aria-expanded="true"] .nav-bars { background: transparent; }
.nav-mobile-toggle[aria-expanded="true"] .nav-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-mobile-toggle[aria-expanded="true"] .nav-bars::after  { transform: translateY(-6px) rotate(-45deg); }
.nav-mobile-toggle:focus-visible,
.nav-cta:focus-visible,
.jh-nav-links a:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

ul.jh-nav-links { list-style: none; margin: 0; padding: 0; }

@media (max-width: 900px) {
  .nav-mobile-toggle { display: inline-flex; }
  .jh-nav .jh-nav-links.nav-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(17, 16, 16, .1);
    box-shadow: 0 12px 24px rgba(17, 16, 16, .08);
  }
  .jh-nav .jh-nav-links.nav-open a {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    color: var(--ink);
    border-top: 1px solid rgba(17, 16, 16, .06);
  }
  .nav-cta { padding: .55rem 1rem; font-size: .75rem; }
}

/* ── Single job: expired banner, deadline, company, apply, notes ── */
.jh-expired-banner {
  background: var(--paper);
  border-left: 4px solid var(--rust);
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.jh-expired-banner strong { color: var(--rust); }
.jh-expired-banner span { color: var(--muted); font-size: .9rem; }

.jh-deadline { color: var(--rust); font-weight: 500; margin: 0 0 1rem; }

.jh-company { display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0; }
.jh-company-logo {
  width: 56px; height: 56px; flex: 0 0 56px;
  display: grid; place-items: center;
  background: var(--paper); color: var(--amber);
  font-family: 'Playfair Display', serif; font-weight: 700;
  overflow: hidden;
}
.jh-company-logo img { width: 100%; height: 100%; object-fit: cover; }
.jh-company-text .name { margin: 0; }
.jh-company-text .website { margin-left: .75rem; font-size: .85rem; }
.jh-company-text .tagline { margin: .25rem 0 0; color: var(--muted); font-size: .9rem; }

.jh-apply-block {
  background: var(--paper);
  padding: 1.5rem;
  margin: 2rem 0;
}
.jh-apply-block h2 { margin: 0 0 .75rem; font-size: 1.25rem; }

.jh-job-notes {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; margin: 1.5rem 0; padding-top: 1rem;
  border-top: 1px solid rgba(17, 16, 16, .1);
}
.jh-scam-note { margin: 0; font-size: .9rem; color: var(--muted); max-width: 46ch; }
.jh-scam-note a { color: var(--ink); text-decoration: underline; margin-left: .25rem; }
.jh-share-wa {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: .5rem 1.25rem; border: 1px solid var(--ink);
  color: var(--ink); text-decoration: none; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .04em;
}
.jh-share-wa:hover { background: var(--ink); color: var(--cream); }

.jh-similar { margin-top: 3rem; }
.jh-similar h2 { font-size: 1.4rem; margin: 0 0 1rem; }

/* ── Homepage additions ── */
.hero-sub { max-width: 52ch; margin: 1rem auto 2rem; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.jh-latest, .jh-advice, .jh-trust { padding: 4rem 4rem 2rem; }
.jh-empty-state { padding: 2rem; color: var(--muted); background: var(--paper); }
.jh-empty-state a { color: var(--ink); text-decoration: underline; }

.jh-advice-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.advice-card {
  display: flex; flex-direction: column; gap: .5rem;
  background: var(--cream); padding: 1.5rem; text-decoration: none; color: var(--ink);
  border: 1px solid rgba(17, 16, 16, .1); transition: border-color .2s;
}
.advice-card:hover { border-color: var(--amber); }
.advice-card time { font-size: .8rem; color: var(--muted); }
.advice-card h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.advice-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }

.jh-trust-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.trust-item {
  background: var(--paper); padding: 1.5rem; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: .35rem;
}
.trust-item strong { font-family: 'Playfair Display', serif; font-size: 1.1rem; }
.trust-item span { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.trust-item:hover strong { color: var(--amber); }

.jh-noscript {
  margin: 1rem 0; padding: 1rem 1.25rem; background: var(--paper); color: var(--ink);
  border-left: 4px solid var(--amber);
}

@media (max-width: 900px) {
  .jh-latest, .jh-advice, .jh-trust { padding: 3rem 1.5rem 1rem; }
}

/* ── Forms (inc/forms.php) ── */
.jh-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.jh-form-notice { padding: 1rem 1.25rem; margin: 0 0 1.5rem; border-left: 4px solid var(--amber); background: var(--paper); }
.jh-form-notice.is-error { border-color: var(--rust); color: var(--rust); }
.hireug-contact-form select,
.hireug-contact-form input[type="tel"],
.hireug-contact-form input[type="url"] {
  width: 100%; font: inherit; padding: .85rem 1rem; background: var(--white);
  border: 1px solid rgba(17, 16, 16, .2); color: var(--ink);
}
.hireug-contact-form .submit-btn { min-height: 48px; cursor: pointer; }
.hireug-contact-form :focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* Native FAQ (works without JS) */
.jh-faq-native { border-bottom: 1px solid rgba(17, 16, 16, .1); padding: 1rem 0; }
.jh-faq-native summary { cursor: pointer; font-weight: 500; list-style: none; }
.jh-faq-native summary::-webkit-details-marker { display: none; }
.jh-faq-native summary::after { content: '+'; float: right; color: var(--amber); }
.jh-faq-native[open] summary::after { content: '–'; }
.jh-faq-native p { margin: .75rem 0 0; color: var(--muted); line-height: 1.7; }

/* ── Brand palette over Blocksy's inline defaults ───────────────────────────
   Blocksy prints its own :root palette (#192a3d headings etc.) AFTER style.css,
   so we re-assert ours on <body>, which wins for everything that inherits. */
body {
  --theme-palette-color-1: var(--amber);
  --theme-palette-color-2: var(--ink);
  --theme-palette-color-3: var(--amber-lt);
  --theme-palette-color-4: var(--ink);
  --theme-palette-color-5: var(--cream);
  --theme-palette-color-6: var(--paper);
  --theme-palette-color-7: var(--rust);
  --theme-palette-color-8: var(--white);
  --theme-headings-color: var(--ink);
  --theme-heading-color: var(--ink);
  --theme-text-color: var(--ink);
}

/* Headings on dark sections must be light */
.jh-stripe h2, .jh-stripe h3,
.jh-cta-section h2, .jh-cta-section h3,
.jh-how .how-inner,
.jh-footer h4, .jh-footer .footer-widget-title {
  color: var(--cream);
}
.jh-stripe h2 em, .jh-cta-section h2 em { color: var(--amber-lt); }

/* Hero sub-heading follows the left-aligned hero */
.jh-hero .hero-sub { margin: 1rem 0 2rem; }

/* ── Category archive ── */
.jh-breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.jh-breadcrumb a { color: var(--muted); text-decoration: underline; }
.jh-cat-count { color: var(--muted); margin: 1rem 0 0; }
.jh-cat-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.navigation.pagination { margin: 2rem 0; }
.navigation.pagination .nav-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.navigation.pagination a, .navigation.pagination span { padding: .6rem 1rem; border: 1px solid rgba(17, 16, 16, .2); text-decoration: none; color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }
.navigation.pagination .current { background: var(--ink); color: var(--cream); }

/* ── Single job polish ── */
.single-job_listing .hero-section .entry-meta { display: none; }          /* no author byline on jobs */
.hire-ug .single_job_listing .jh-company { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: var(--white); border: 1px solid rgba(17, 16, 16, .1); }
.hire-ug .single_job_listing .jh-company .jh-company-logo { float: none; margin: 0; }
.hire-ug .single_job_listing .jh-company .jh-company-logo img { max-width: 100%; height: 100%; }
.hire-ug .application_button,
.hire-ug input.application_button {
  background: var(--ink); color: var(--cream); border: 0; border-radius: 0;
  padding: .9rem 1.75rem; min-height: 48px; font: inherit; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; cursor: pointer;
}
.hire-ug .application_button:hover,
.hire-ug .application_button:focus-visible { background: var(--amber); color: var(--cream); }
.hire-ug .application_details { margin-top: 1rem; padding: 1rem; background: var(--white); border: 1px solid rgba(17, 16, 16, .1); }

/* Footer bottom logo must be readable on the dark footer */
.jh-footer .footer-bottom .jh-logo, .jh-footer .footer-brand .jh-logo { color: var(--cream); }
.single-job_listing .hero-section { margin-bottom: 1rem; }
.hire-ug .single_job_listing.jh-single-job { padding-top: 0; margin-top: 0; }
.hire-ug .single_job_listing .jh-company-text .name { margin: 0; padding: 0; }
.hire-ug .single_job_listing .jh-company-text { margin: 0; padding: 0; }
.job-listing-meta li, .job-listing-meta li * { font-family: inherit; }

/* Footer social links (from Customizer) */
.footer-social a{margin-right:14px;font-size:.85rem;color:inherit;opacity:.8;text-decoration:underline}
.footer-social a:hover{opacity:1}
