/**
 * Site-wide WGT chrome — WorkScout / WPJM surfaces restyled to brand guidelines.
 *
 * Scoped to body.wgt-chrome (all non-isolated front-end pages).
 *
 * @package WorkScout_Child
 */

body.wgt-chrome {
  font-family: var(--font-sans) !important;
  color: var(--ink);
  background: var(--white);
}

body.wgt-chrome #wrapper,
body.wgt-chrome .wpjm-container,
body.wgt-chrome .container {
  font-family: var(--font-sans) !important;
}

/* ---- Title bars (Find Talent / resumes, singles, taxonomies) ---- */
body.wgt-chrome #titlebar {
  background: var(--ink) !important;
  border-bottom: none !important;
  padding: 56px 0 48px !important;
}

body.wgt-chrome #titlebar.photo-bg {
  background-size: cover !important;
  background-position: center !important;
}

body.wgt-chrome #titlebar.photo-bg::before,
body.wgt-chrome #titlebar.with-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.72), rgba(20, 20, 20, 0.92));
  pointer-events: none;
}

body.wgt-chrome #titlebar .container {
  position: relative;
  z-index: 1;
}

body.wgt-chrome #titlebar h1,
body.wgt-chrome #titlebar h2,
body.wgt-chrome #titlebar h2.showing_jobs {
  color: var(--white) !important;
  font-family: var(--font-sans) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

body.wgt-chrome #titlebar span,
body.wgt-chrome #titlebar h1 span,
body.wgt-chrome #titlebar h2 span {
  color: var(--amber) !important;
  font-weight: 600;
}

body.wgt-chrome #titlebar > .container > .sixteen.columns > span,
body.wgt-chrome #titlebar .ten.columns > span {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
}

/* ---- Primary / secondary buttons ---- */
body.wgt-chrome .button,
body.wgt-chrome a.button,
body.wgt-chrome button.button,
body.wgt-chrome input[type="submit"],
body.wgt-chrome input[type="button"],
body.wgt-chrome .job-manager-form input[type="submit"],
body.wgt-chrome .resume-manager-form input[type="submit"] {
  font-family: var(--font-sans) !important;
  font-weight: 700 !important;
  border-radius: var(--radius-sm) !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
}

body.wgt-chrome .button,
body.wgt-chrome a.button:not(.btn-ghost),
body.wgt-chrome button.button,
body.wgt-chrome input[type="submit"],
body.wgt-chrome .send-message-to-owner.button {
  background: var(--amber) !important;
  color: var(--ink) !important;
  border: 2px solid var(--amber) !important;
}

body.wgt-chrome .button:hover,
body.wgt-chrome a.button:not(.btn-ghost):hover,
body.wgt-chrome button.button:hover,
body.wgt-chrome input[type="submit"]:hover {
  background: var(--amber-dark) !important;
  border-color: var(--amber-dark) !important;
  color: var(--ink) !important;
}

body.wgt-chrome a.button.border,
body.wgt-chrome .button.border {
  background: transparent !important;
  color: var(--white) !important;
  border: 2px solid rgba(255, 255, 255, 0.35) !important;
}

body.wgt-chrome a.button.border:hover {
  background: var(--amber) !important;
  border-color: var(--amber) !important;
  color: var(--ink) !important;
}

/* ---- Forms & search ---- */
body.wgt-chrome input[type="text"],
body.wgt-chrome input[type="email"],
body.wgt-chrome input[type="password"],
body.wgt-chrome input[type="tel"],
body.wgt-chrome input[type="number"],
body.wgt-chrome input[type="url"],
body.wgt-chrome input[type="search"],
body.wgt-chrome select,
body.wgt-chrome textarea,
body.wgt-chrome .chosen-container-single .chosen-single {
  font-family: var(--font-sans) !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  color: var(--ink) !important;
}

body.wgt-chrome input:focus,
body.wgt-chrome select:focus,
body.wgt-chrome textarea:focus {
  border-color: var(--amber) !important;
  box-shadow: 0 0 0 3px rgba(242, 169, 0, 0.18) !important;
  outline: none !important;
}

body.wgt-chrome .list-search {
  margin-bottom: 24px;
}

body.wgt-chrome .list-search input,
body.wgt-chrome .search_resumes input {
  padding: 12px 14px 12px 44px !important;
  font-size: 15px !important;
}

body.wgt-chrome .list-search button,
body.wgt-chrome .search_resumes button {
  color: var(--steel) !important;
}

/* ---- Resume / job listings ---- */
body.wgt-chrome .job_listings > li,
body.wgt-chrome .resumes > li,
body.wgt-chrome ul.resumes li {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
  margin-bottom: 16px !important;
  overflow: hidden;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

body.wgt-chrome .job_listings > li:hover,
body.wgt-chrome .resumes > li:hover {
  border-color: var(--amber) !important;
  box-shadow: var(--shadow-lg) !important;
}

body.wgt-chrome .resumes-content h4,
body.wgt-chrome .job_listings h4 {
  font-family: var(--font-sans) !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
}

body.wgt-chrome .resumes-content h4 span,
body.wgt-chrome .job_listings h4 span {
  color: var(--steel) !important;
  font-weight: 500 !important;
}

body.wgt-chrome .resumes-content span,
body.wgt-chrome .resumes-content .icons {
  color: var(--steel) !important;
  font-size: 13px !important;
}

body.wgt-chrome .resumes-content .skills span,
body.wgt-chrome .job-overview .skills span {
  background: var(--amber-tint) !important;
  color: var(--amber-dark) !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  font-size: 12px !important;
}

/* ---- Single resume / candidate profile ---- */
body.wgt-chrome .resume-titlebar h4,
body.wgt-chrome .resumes-content h4 {
  font-size: clamp(22px, 3vw, 28px);
}

body.wgt-chrome .resume-spotlight,
body.wgt-chrome .job-spotlight,
body.wgt-chrome .widget-box,
body.wgt-chrome .job-overview {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
}

body.wgt-chrome .single-resume .sidebar .widget-title,
body.wgt-chrome .widget h4 {
  font-family: var(--font-sans) !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
}

/* ---- Legal / content pages (privacy, terms, etc.) ---- */
body.wgt-chrome .entry-content,
body.wgt-chrome .page-content,
body.wgt-chrome article.page .padding-right {
  font-family: var(--font-sans) !important;
  color: var(--charcoal);
  line-height: 1.7;
  max-width: 820px;
}

body.wgt-chrome .entry-content h1,
body.wgt-chrome .entry-content h2,
body.wgt-chrome .entry-content h3,
body.wgt-chrome .page-content h1,
body.wgt-chrome .page-content h2,
body.wgt-chrome .page-content h3 {
  font-family: var(--font-sans) !important;
  color: var(--ink) !important;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 1.4em 0 0.6em;
}

body.wgt-chrome .entry-content a,
body.wgt-chrome .page-content a {
  color: var(--amber-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.wgt-chrome .entry-content a:hover,
body.wgt-chrome .page-content a:hover {
  color: var(--ink);
}

body.wgt-chrome .entry-content ul,
body.wgt-chrome .entry-content ol {
  padding-left: 1.25em;
  margin: 0.75em 0 1.25em;
}

/* ---- Pagination ---- */
body.wgt-chrome .job-manager-pagination ul li a,
body.wgt-chrome .job-manager-pagination ul li span,
body.wgt-chrome .pagination ul li a,
body.wgt-chrome .pagination ul li span {
  font-family: var(--font-sans) !important;
  border-radius: 6px !important;
  border-color: var(--line) !important;
}

body.wgt-chrome .job-manager-pagination ul li span.current,
body.wgt-chrome .pagination ul li span.current {
  background: var(--amber) !important;
  color: var(--ink) !important;
  border-color: var(--amber) !important;
}

/* ---- Sidebars & filters ---- */
body.wgt-chrome .widget {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--white);
}

body.wgt-chrome .widget-title {
  font-size: 13px !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink) !important;
}

/* ---- Breadcrumbs / misc ---- */
body.wgt-chrome #breadcrumbs {
  font-family: var(--font-sans) !important;
  color: var(--steel);
}

body.wgt-chrome #breadcrumbs a {
  color: var(--amber-dark);
}

/* ---- Hide legacy footer spacer when WGT footer is active ---- */
body.wgt-chrome .margin-top-45 {
  display: none !important;
}

/* ---- Main content spacing below WGT nav ---- */
body.wgt-chrome .wpjm-container,
body.wgt-chrome article.page,
body.wgt-chrome .single-resume .container {
  padding-top: 8px;
  padding-bottom: 64px;
}

/* ---- Forced legal / content pages ---- */
body.wgt-chrome .wgt-chrome-page-hero {
  background: var(--ink);
  color: var(--white);
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}

body.wgt-chrome .wgt-chrome-page-hero::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.08;
}

body.wgt-chrome .wgt-chrome-page-hero .container {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

body.wgt-chrome .wgt-chrome-page-hero .eyebrow {
  display: inline-block;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

body.wgt-chrome .wgt-chrome-page-hero h1 {
  color: var(--white) !important;
  font-family: var(--font-sans) !important;
  font-weight: 800 !important;
  font-size: clamp(32px, 4vw, 48px) !important;
  letter-spacing: -0.02em;
  margin: 0 !important;
}

body.wgt-chrome .wgt-chrome-page-body {
  padding: 56px 0 88px;
  background: var(--white);
}

body.wgt-chrome .wgt-chrome-page-body .container {
  max-width: 820px;
}

body.wgt-chrome .wgt-chrome-entry,
body.wgt-chrome .wgt-chrome-entry p,
body.wgt-chrome .wgt-chrome-entry li,
body.wgt-chrome .wgt-chrome-entry .elementor-widget-text-editor,
body.wgt-chrome .wgt-chrome-entry .elementor-widget-text-editor * {
  font-family: var(--font-sans) !important;
  color: var(--charcoal) !important;
  font-size: 16px;
  line-height: 1.75 !important;
}

body.wgt-chrome .wgt-chrome-entry h1,
body.wgt-chrome .wgt-chrome-entry h2,
body.wgt-chrome .wgt-chrome-entry h3,
body.wgt-chrome .wgt-chrome-entry h4,
body.wgt-chrome .wgt-chrome-entry .elementor-heading-title {
  font-family: var(--font-sans) !important;
  color: var(--ink) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  margin: 1.5em 0 0.6em !important;
}

body.wgt-chrome .wgt-chrome-entry a,
body.wgt-chrome .wgt-chrome-entry .elementor-widget-text-editor a {
  color: var(--amber-dark) !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.wgt-chrome .wgt-chrome-entry a:hover {
  color: var(--ink) !important;
}

/* Soften Elementor section chrome on legal pages inside WGT shell */
body.wgt-chrome .wgt-chrome-entry .elementor-section,
body.wgt-chrome .wgt-chrome-entry .elementor-container {
  max-width: 100% !important;
}

body.wgt-chrome .wgt-chrome-entry .elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

@media (max-width: 900px) {
  body.wgt-chrome #titlebar {
    padding: 40px 0 32px !important;
  }

  body.wgt-chrome .wgt-chrome-page-hero {
    padding: 56px 0 40px;
  }
}
