/* The shared shell uses the same restrained palette as the page templates. */
body.ij-site .ij-shell-header,
body.ij-site .ij-shell-footer {
  --ij-shell-ink: var(--ij-ink, #17271f);
  --ij-shell-forest: var(--ij-forest, #0b4b3a);
  --ij-shell-paper: var(--ij-paper, #f5f7f5);
  --ij-shell-lime: var(--ij-lime, #e3eee7);
  --ij-shell-line: var(--ij-line, rgba(23, 39, 31, .14));
  color: var(--ij-shell-ink);
  font-family: inherit;
}
body.ij-site .ij-shell-header *,
body.ij-site .ij-shell-footer * { box-sizing: border-box; }
body.ij-site .ij-shell-header {
  position: sticky;
  top: 0;
  z-index: 11050;
  width: 100%;
  background: var(--ij-shell-paper);
  border-bottom: 1px solid var(--ij-shell-line);
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}
body.ij-site.admin-bar .ij-shell-header { top: 32px; }
body.ij-site .ij-shell-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  max-width: 1480px;
  min-height: 88px;
  margin: 0 auto;
  padding: .9rem clamp(1rem, 4vw, 4rem);
}
body.ij-site .ij-shell-brand {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--ij-shell-ink);
  font-size: 1.8rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.065em;
  text-decoration: none;
  white-space: nowrap;
}
body.ij-site .ij-shell-brand span { color: var(--ij-shell-forest); }
body.ij-site .ij-shell-header #mainNav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  position: static;
  width: auto;
  height: auto;
  max-width: none;
  padding: 0;
  gap: 0;
  opacity: 1;
  visibility: visible;
  transform: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
body.ij-site .ij-shell-links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 1.8vw, 1.9rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
body.ij-site .ij-shell-links > li { margin: 0; padding: 0; }
body.ij-site .ij-shell-header #mainNav .ij-shell-nav-link,
body.ij-site .ij-shell-header #mainNav .ij-shell-disclosure > summary,
body.ij-site .ij-shell-login {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem 0;
  color: var(--ij-shell-ink);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}
body.ij-site .ij-shell-header summary { list-style: none; cursor: pointer; }
body.ij-site .ij-shell-header summary::-webkit-details-marker { display: none; }
body.ij-site .ij-shell-header summary::marker { content: ''; }
body.ij-site .ij-shell-header summary svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
body.ij-site .ij-shell-header details[open] > summary > svg { transform: rotate(180deg); }
body.ij-site .ij-shell-header #mainNav .ij-shell-nav-link:hover,
body.ij-site .ij-shell-login:hover { text-decoration: underline; text-underline-offset: .3em; }
body.ij-site .ij-shell-header #mainNav .ij-shell-disclosure { position: relative; }
body.ij-site .ij-shell-header #mainNav .ij-shell-submenu,
body.ij-site .ij-shell-account-panel {
  position: absolute;
  top: calc(100% + .7rem);
  left: -1rem;
  z-index: 11070;
  min-width: 240px;
  padding: .65rem;
  background: var(--ij-shell-paper);
  color: var(--ij-shell-ink);
  border: 1px solid var(--ij-shell-line);
  border-radius: 6px;
  box-shadow: none;
}
body.ij-site .ij-shell-header #mainNav .ij-shell-submenu a,
body.ij-site .ij-shell-account-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  padding: .75rem .65rem;
  color: inherit;
  font-size: .875rem;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
}
body.ij-site .ij-shell-header #mainNav .ij-shell-submenu a:hover,
body.ij-site .ij-shell-account-panel a:hover { background: rgba(23, 39, 31, .045); }
body.ij-site .ij-shell-header #mainNav .ij-shell-service-menu { width: 440px; max-width: calc(100vw - 2rem); padding: 1.25rem; }
body.ij-site .ij-shell-header #mainNav .ij-shell-menu-label,
body.ij-site .ij-shell-account-heading {
  margin: 0 0 .6rem;
  padding: 0 .65rem;
  color: var(--ij-shell-forest);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
body.ij-site .ij-shell-header #mainNav .ij-shell-service-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .5rem; }
body.ij-site .ij-shell-header #mainNav .ij-shell-submenu .ij-shell-menu-foot { margin-top: .6rem; padding-top: 1rem; border-top: 1px solid var(--ij-shell-line); }
body.ij-site .ij-shell-actions { display: flex; align-items: center; gap: 1.2rem; flex: 0 0 auto; min-width: 0; margin-left: auto; }
body.ij-site .ij-shell-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  min-height: 46px;
  max-width: 100%;
  padding: .8rem 1.1rem;
  border: 1px solid var(--ij-shell-forest);
  border-radius: 5px;
  font-size: .875rem;
  font-weight: 550;
  line-height: 1.3;
  color: var(--ij-shell-forest);
  background: transparent;
  text-align: left;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}
body.ij-site .ij-shell-button-primary { background: var(--ij-shell-forest); color: var(--ij-shell-paper); }
body.ij-site .ij-shell-button-primary:hover { background: var(--ij-shell-ink); color: var(--ij-shell-paper); }
body.ij-site .ij-shell-button > span { flex: 0 0 auto; font-size: 1.1em; }
body.ij-site .ij-shell-account { position: relative; min-width: 0; }
body.ij-site .ij-shell-account-trigger { display: flex; align-items: center; gap: .6rem; min-height: 44px; }
body.ij-site .ij-shell-account-trigger img { display: block; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; object-fit: cover; }
body.ij-site .ij-shell-account-name { max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8125rem; }
body.ij-site .ij-shell-credits { padding: .35rem .45rem; border: 1px solid var(--ij-shell-line); border-radius: 4px; font-size: .6875rem; line-height: 1; white-space: nowrap; }
body.ij-site .ij-shell-account-panel { left: auto; right: 0; width: 285px; min-width: 0; max-width: calc(100vw - 2rem); padding: 1rem .65rem .65rem; }
body.ij-site .ij-shell-account-panel .ij-shell-account-balance { margin-top: .5rem; border-top: 1px solid var(--ij-shell-line); }
body.ij-site .ij-shell-account-balance > span:last-child { color: var(--ij-shell-forest); font-size: .75rem; white-space: nowrap; }
body.ij-site .ij-shell-account-panel .ij-shell-logout { margin-top: .5rem; border-top: 1px solid var(--ij-shell-line); }
body.ij-site .ij-shell-icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; padding: .6rem; color: var(--ij-shell-ink); background: transparent; border: 1px solid var(--ij-shell-line); border-radius: 5px; }
body.ij-site .ij-shell-icon-button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; }
body.ij-site .ij-shell-toggle,
body.ij-site .ij-shell-header #mainNav .ij-shell-mobile-heading,
body.ij-site .ij-shell-header #mainNav .ij-shell-mobile-actions,
body.ij-site .ij-shell-backdrop { display: none; }
html.ij-shell-nav-open { overflow: hidden; }
body.ij-site.ij-shell-nav-open { overflow: hidden; }

/* A generous closing invitation, followed by concise practical navigation. */
body.ij-site .ij-shell-footer { margin: 0; padding: 0; background: var(--ij-shell-paper); border-top: 1px solid var(--ij-shell-line); box-shadow: none; }
body.ij-site .ij-shell-footer-container { max-width: 1480px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 4rem); }
body.ij-site .ij-shell-footer-cta { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); align-items: end; gap: clamp(2rem, 6vw, 6rem); padding: clamp(3rem, 7vw, 6.5rem) 0; border-bottom: 1px solid var(--ij-shell-line); }
body.ij-site .ij-shell-eyebrow { display: block; margin: 0 0 1.25rem; color: var(--ij-shell-forest); font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
body.ij-site .ij-shell-footer-cta h2 { max-width: none; margin: 0; color: var(--ij-shell-ink); font-size: clamp(2rem, 4.3vw, 4rem); font-weight: 450; line-height: 1.08; letter-spacing: -.045em; }
body.ij-site .ij-shell-footer-cta p { max-width: 39ch; margin: 0 0 1.5rem; color: var(--ij-shell-ink); font-size: 1rem; line-height: 1.7; }
body.ij-site .ij-shell-footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.2fr); gap: 2rem; padding: 3rem 0; }
body.ij-site .ij-shell-footer-grid > * { min-width: 0; }
body.ij-site .ij-shell-footer-intro p { max-width: 26ch; margin: 1.2rem 0 0; color: var(--ij-shell-ink); font-size: .875rem; line-height: 1.75; }
body.ij-site .ij-shell-footer-heading { margin: .2rem 0 1rem; color: var(--ij-shell-forest); font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
body.ij-site .ij-shell-footer-links { list-style: none; margin: 0; padding: 0; }
body.ij-site .ij-shell-footer-links li { margin: 0; padding: 0; }
body.ij-site .ij-shell-footer .ij-shell-footer-links a,
body.ij-site .ij-shell-contact a { display: inline-block; padding: .3rem 0; color: var(--ij-shell-ink); font-size: .875rem; line-height: 1.65; text-decoration: none; overflow-wrap: anywhere; }
body.ij-site .ij-shell-footer a:hover { text-decoration: underline; text-underline-offset: .25em; }
body.ij-site .ij-shell-footer .ij-shell-button:hover { text-decoration: none; }
body.ij-site .ij-shell-contact { display: flex; flex-direction: column; gap: .25rem; color: var(--ij-shell-ink); font-size: .875rem; font-style: normal; line-height: 1.75; }
body.ij-site .ij-shell-contact > span:last-child { margin-top: .75rem; }
body.ij-site .ij-shell-footer-bottom { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 0 1.8rem; border-top: 1px solid var(--ij-shell-line); }
body.ij-site .ij-shell-footer-bottom p { flex: 0 0 auto; margin: 0; color: var(--ij-shell-ink); font-size: .75rem; line-height: 1.5; }
body.ij-site .ij-shell-legal { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .3rem 1.4rem; }
body.ij-site .ij-shell-footer .ij-shell-legal a { padding: .2rem 0; color: var(--ij-shell-ink); font-size: .75rem; line-height: 1.5; text-decoration: none; }
body.ij-site .ij-shell-legal span { opacity: .65; font-size: .7em; }

@media (max-width: 1339.98px) {
  body.ij-site .ij-shell-account ~ .ij-shell-header-cta { display: none; }
}
@media (max-width: 1099.98px) {
  body.ij-site .ij-shell-bar { flex-wrap: wrap; min-height: 76px; padding-top: .75rem; padding-bottom: .75rem; }
  body.ij-site .ij-shell-brand { font-size: 1.65rem; }
  body.ij-site .ij-shell-actions { gap: .8rem; }
  body.ij-site .ij-shell-header-cta,
  body.ij-site .ij-shell-account-name { display: none; }
  body.ij-site .ij-shell-header #mainNav { flex: 1 0 100%; flex-direction: column; align-items: stretch; order: 3; width: 100%; padding: 1.5rem 0 .75rem; }
  .ij-shell-enhanced body.ij-site .ij-shell-header #mainNav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 11060; width: 100%; max-width: none; max-height: calc(100dvh - var(--ij-header-h, 76px) - var(--wp-admin--admin-bar--height, 0px)); padding: 1.2rem clamp(1rem, 4vw, 4rem) 2rem; overflow-y: auto; overscroll-behavior: contain; background: var(--ij-shell-paper); border-bottom: 1px solid var(--ij-shell-line); }
  .ij-shell-enhanced body.ij-site .ij-shell-header #mainNav.is-open { display: flex; }
  body.ij-site .ij-shell-links { width: 100%; flex-direction: column; align-items: stretch; gap: 0; }
  body.ij-site .ij-shell-links > li { border-bottom: 1px solid var(--ij-shell-line); }
  body.ij-site .ij-shell-header #mainNav .ij-shell-nav-link,
  body.ij-site .ij-shell-header #mainNav .ij-shell-disclosure > summary { display: flex; justify-content: space-between; width: 100%; padding: 1.15rem 0; font-size: 1.12rem; font-weight: 450; white-space: normal; }
  body.ij-site .ij-shell-header #mainNav .ij-shell-submenu { position: static; width: 100%; min-width: 0; max-width: none; padding: .2rem 0 1rem; border: 0; border-radius: 0; }
  body.ij-site .ij-shell-header #mainNav .ij-shell-service-menu { padding: .2rem 0 1rem; }
  body.ij-site .ij-shell-header #mainNav .ij-shell-menu-label { padding-left: 0; }
  body.ij-site .ij-shell-header #mainNav .ij-shell-service-links { gap: 0 1rem; }
  body.ij-site .ij-shell-header #mainNav .ij-shell-submenu a { padding-left: 0; padding-right: 0; }
  body.ij-site .ij-shell-header #mainNav .ij-shell-mobile-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; margin-top: 1.5rem; }
  body.ij-site .ij-shell-header #mainNav .ij-shell-mobile-login { color: var(--ij-shell-ink); font-size: .875rem; line-height: 1.5; text-decoration: none; }
  .ij-shell-enhanced body.ij-site .ij-shell-toggle { display: inline-flex; }
  .ij-shell-enhanced body.ij-site .ij-shell-header #mainNav .ij-shell-mobile-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .4rem; font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; }
  body.ij-site .ij-shell-backdrop.is-open { display: block; position: fixed; inset: 0; z-index: 11040; background: rgba(23, 39, 31, .22); }
  body.ij-site .ij-shell-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
}
@media (max-width: 781.98px) {
  body.ij-site.admin-bar .ij-shell-header { top: 46px; }
  body.ij-site .ij-shell-footer-cta { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  body.ij-site .ij-shell-footer-bottom { align-items: flex-start; flex-direction: column; gap: 1rem; }
  body.ij-site .ij-shell-legal { justify-content: flex-start; }
}
@media (max-width: 479.98px) {
  body.ij-site .ij-shell-actions { gap: .55rem; }
  body.ij-site .ij-shell-credits > span { display: none; }
  body.ij-site .ij-shell-account-trigger { gap: .4rem; }
  body.ij-site .ij-shell-account-trigger > svg { display: none; }
  body.ij-site .ij-shell-account-panel { right: -3.3rem; }
  body.ij-site .ij-shell-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  body.ij-site .ij-shell-footer-grid nav { padding-bottom: .5rem; }
  body.ij-site .ij-shell-footer-cta .ij-shell-button { width: 100%; }
}
@media (max-width: 419.98px) {
  body.ij-site .ij-shell-login { display: none; }
  body.ij-site .ij-shell-header #mainNav .ij-shell-service-links { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  body.ij-site .ij-shell-header *, body.ij-site .ij-shell-footer * { scroll-behavior: auto; transition: none; }
}

/* Legacy pages once shipped their own header CSS. Keep this shared shell
   consistent even when those older templates load styles after wp_head. */
body.ij-site:has(> .ij-shell-header) { padding-top: 0 !important; }
body.ij-site header.instantjob-header.ij-shell-header {
  position: sticky !important;
  top: 0 !important;
  background: var(--ij-shell-paper) !important;
  border-bottom: 1px solid var(--ij-shell-line) !important;
}
body.ij-site.admin-bar header.instantjob-header.ij-shell-header { top: 32px !important; }
body.ij-site .ij-shell-header #mainNav::before { content: none !important; display: none !important; }
body.ij-site .ij-shell-header #mainNav,
body.ij-site .ij-shell-header #mainNav * { color: var(--ij-shell-ink) !important; }
body.ij-site .ij-shell-header #mainNav a { width: auto; text-transform: none; letter-spacing: normal; font-weight: 500; }
body.ij-site .ij-shell-header #mainNav .ij-shell-button-primary,
body.ij-site .ij-shell-header #mainNav .ij-shell-button-primary * { color: var(--ij-shell-paper) !important; }
body.ij-site .ij-shell-header #mainNav .ij-shell-button { display: inline-flex; justify-content: space-between; gap: 1.75rem; min-height: 46px; padding: .8rem 1.1rem; border: 1px solid var(--ij-shell-forest); border-radius: 5px; font-size: .875rem; line-height: 1.3; }
@media (max-width: 781.98px) {
  body.ij-site.admin-bar header.instantjob-header.ij-shell-header { top: 46px !important; }
}
body.ij-site .ij-shell-footer a.ij-shell-brand { display: inline-flex; padding: 0; color: var(--ij-shell-ink); text-decoration: none; }
body.ij-site .ij-shell-footer a.ij-shell-button { display: inline-flex; padding: .8rem 1.1rem; color: var(--ij-shell-paper); text-decoration: none; }

/* Draw directional marks independently of the installed text fonts. */
body.ij-site .ij-shell-header .ij-shell-arrow,
body.ij-site .ij-shell-footer .ij-shell-arrow {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Align the shared shell with the page grid used throughout the application. */
body.ij-site .ij-shell-bar,
body.ij-site .ij-shell-footer-container {
  max-width: var(--ij-content-max, 1180px);
  padding-left: var(--ij-content-gutter, clamp(1rem, 3vw, 2rem));
  padding-right: var(--ij-content-gutter, clamp(1rem, 3vw, 2rem));
}
