/* Shared presentation rules on the existing HireUp templates. */
:root{--hu4-radius:16px;--hu4-section-space:80px}
body.hu2-site main h1,body.hu2-site main h2,body.hu2-site main h3{overflow-wrap:anywhere;hyphens:auto}
body.hu2-site .hu2-route-card{min-width:0}
.hu4-icon{display:inline-block;width:21px;height:21px;flex-shrink:0;vertical-align:middle}
body.hu2-site .hu2-header .hu2-navigation{gap:18px}
body.hu2-site .hu2-header .hu2-navigation>a,.hu4-nav-trigger{font-size:14px!important}
.hu4-nav-group{position:relative}
.hu4-nav-trigger{display:flex;align-items:center;gap:7px;cursor:pointer;list-style:none;white-space:nowrap;color:#e3eaf2;font-weight:600;padding:18px 0}
.hu4-nav-trigger::-webkit-details-marker{display:none}
.hu4-nav-trigger>.hu4-icon{width:14px;height:14px;transition:transform .18s}
.hu4-nav-group[open]>.hu4-nav-trigger{color:#90c7ff}
.hu4-nav-group[open]>.hu4-nav-trigger>.hu4-icon{transform:rotate(180deg)}
.hu4-nav-panel{position:absolute;top:calc(100% + 8px);left:0;width:358px;padding:10px;background:#fff;border:1px solid var(--hu-line);border-top:3px solid var(--hu-blue);border-radius:12px;box-shadow:0 18px 45px #12243b20;color:var(--hu-ink)}
body.hu2-site .hu4-nav-route{display:flex;align-items:center;gap:13px;padding:15px 12px;border-radius:8px;color:var(--hu-ink);text-decoration:none}
.hu4-nav-route+.hu4-nav-route{border-top:1px solid #e9eff4}
.hu4-nav-route>span{flex:1;min-width:0}
.hu4-nav-route>span>*{display:block}
.hu4-nav-route strong{font-size:14px;line-height:1.45}
.hu4-nav-route small{font-size:12px;color:#5b6c7d;margin-top:4px;line-height:1.5}
.hu4-nav-route>.hu4-icon:first-child{color:var(--hu-blue);width:25px;height:25px}
.hu4-nav-route>.hu4-icon:last-child{width:16px;height:16px}
.hu4-nav-route:hover,.hu4-nav-route[aria-current=page]{background:#edf5fe}
.hu4-menu-backdrop[hidden]{display:none!important}
.hu4-menu-backdrop{position:fixed;inset:0;background:#12243b55;z-index:29}
body.hu2-site .hu2-home-grid{grid-template-areas:'copy visual' 'search search';row-gap:48px}
.hu2-hero-copy{grid-area:copy}
.hu2-hero-visual{grid-area:visual}
body.hu2-site .hu2-home-hero{padding-bottom:0}
.hu4-hero-search{grid-area:search;margin:0;background:white;border-top:1px solid var(--hu-line);border-bottom:1px solid var(--hu-line)}
.hu4-search-inner{display:grid;grid-template-columns:1fr 1.7fr;gap:45px;align-items:center}
body.hu2-site .hu2-section{padding:var(--hu4-section-space) 0}
body.hu2-site .hu2-route-card,body.hu2-site .hu2-job-card,body.hu2-site .hireup-vacancy-card,.hu2-step{border-radius:var(--hu4-radius)}
body.hu2-site .hu4-photo-card{padding:0;overflow:hidden;display:flex;flex-direction:column;border-top:4px solid var(--hu-blue)}
body.hu2-site .hu4-route-photo{width:100%;height:220px;object-fit:cover}
.hu4-route-body{padding:34px;display:flex;flex-direction:column;flex:1}
.hu4-route-body .hu2-card-index{margin-bottom:24px}
.hu4-route-body>p{font-size:15px;line-height:1.8;color:#d2dfeb;margin-bottom:28px!important}
.hu2-route-light .hu4-route-body>p{color:#4d657b}
.hu4-route-body>a{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #ffffff35;padding-top:20px;margin-top:auto;font-size:14px;font-weight:700;color:white!important}
.hu2-route-light .hu4-route-body>a{color:var(--hu-ink)!important;border-color:#c7d6e1}
.hu4-process-grid{position:relative;gap:24px}
.hu4-process-grid:before{content:'';position:absolute;left:48px;right:48px;top:51px;height:2px;background:#b9d6f4}
.hu4-process-grid .hu2-step{position:relative;background:transparent;border:0;padding:28px 24px 0}
.hu4-process-grid .hu2-step>span{position:relative;background:#edf5fe;border:2px solid #9dc4ed;box-shadow:0 0 0 8px var(--hu-soft);z-index:1}
.hu4-page-intro{min-width:0}
.hu4-has-media .hu4-page-intro{display:grid;grid-template-columns:1.12fr 1fr;gap:52px;align-items:center}
body.hu2-site .hu4-has-media h1{font-size:clamp(40px,4.2vw,58px)}
body.hu2-site .hu4-page-photo{width:100%;height:350px;object-fit:cover;border-radius:24px;border-bottom:5px solid var(--hu-blue)}
.hu4-has-media .hu2-lead{font-size:17px;margin-bottom:0}
.hu4-has-media+.hu2-section>.hu2-copy-width{max-width:1180px}
.hu4-editorial-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.hu4-content-block{min-width:0;border:1px solid var(--hu-line);border-radius:var(--hu4-radius);padding:32px;background:#f8fafc}
.hu4-content-intro{grid-column:1/-1;border:0;background:white;padding:0 0 12px;max-width:880px}
.hu4-content-block:last-child:nth-child(even){grid-column:1/-1}
body.hu2-site .hu4-content-block>h2{margin-top:0;font-size:28px!important}
.hu4-content-block>:last-child{margin-bottom:0!important}
.hu4-content-block p,.hu4-content-block li{font-size:16px;line-height:1.8}
.hu4-content-block blockquote{margin:26px 0 0;padding:22px}
.hu4-contact-shortcuts{display:flex;gap:12px;margin:0 0 28px;flex-wrap:wrap}
.hu4-contact-shortcuts>a{display:flex;align-items:center;gap:10px;padding:13px 18px;border:1px solid #b8cadc;border-radius:8px;font-size:14px;font-weight:700;background:#f0f6fd;min-height:48px}
body.hu2-site .hu4-contact-shortcuts>a:hover{background:#e0efff}
body.hu2-site .hu2-editorial .hu4-timeline{list-style:none;margin:0;padding:0 0 0 30px;border-left:2px solid #b9d6f4}
.hu4-timeline>li{position:relative;padding:25px 28px;background:#f6f9fc;border:1px solid var(--hu-line);border-radius:16px;margin-bottom:24px}
.hu4-timeline>li:before{content:'';position:absolute;top:35px;left:-39px;width:14px;height:14px;border-radius:50%;background:var(--hu-blue);border:3px solid white;box-shadow:0 0 0 2px #b9d6f4}
body.hu2-site .hu4-timeline h2{font-size:28px!important;margin:0 0 18px}
.hu4-timeline>li>:last-child{margin-bottom:0!important}
body.hu2-site .hu3-partners .hu3-partner-logo{max-width:160px;height:70px}
body.hu2-site .hu3-partners .hu3-partner--square .hu3-partner-logo{max-width:72px;height:72px}
@media(max-width:1100px){
 .hu2-header .hu2-menu-toggle{display:flex!important}
 body.hu2-site .hu2-header .hu2-header-inner{min-height:76px}
 body.hu2-site .hu2-header .hu2-navigation{display:none;position:absolute;left:0;right:0;top:100%;padding:12px 20px 22px;background:var(--hu-ink);border-radius:0 0 16px 16px;max-height:calc(100dvh - 112px);overflow-y:auto;overscroll-behavior:contain;gap:0;align-items:stretch}
 body.hu2-site .hu2-header .hu2-navigation.is-open{display:flex;flex-direction:column}
 body.hu2-site .hu2-header .hu2-navigation>a{font-size:15px!important;padding:15px 8px}
 .hu4-nav-trigger{font-size:15px!important;padding:16px 8px;justify-content:space-between;border-bottom:1px solid #ffffff1f}
 .hu4-nav-panel{position:static;width:100%;max-width:none;margin:5px 0 10px;padding:7px;box-shadow:none;border-top:2px solid var(--hu-blue)}
 body.hu4-menu-open{overflow:hidden}
}
@media(min-width:1101px){.hu2-header .hu2-menu-toggle{display:none!important}}
@media (min-width: 1101px) and (any-hover: hover) {
  /* Keep the group hovered across the visual gap above the panel. */
  .hu4-nav-panel::before {
    position: absolute;
    inset: -10px 0 auto;
    height: 10px;
    content: '';
  }
}
@media(max-width:1020px){
 :root{--hu4-section-space:64px}
 .hu4-search-inner{grid-template-columns:1fr 2fr;gap:25px}
 .hu4-has-media .hu4-page-intro{grid-template-columns:1fr;gap:30px}
 .hu4-has-media .hu2-lead{max-width:660px}
 body.hu2-site .hu4-page-photo{height:330px}
 .hu4-route-body{padding:28px}
 body.hu2-site .hu4-route-photo{height:190px}
 .hu4-process-grid .hu2-step{padding-inline:14px}
 .hu4-editorial-grid{gap:20px}
 .hu4-content-block{padding:26px}
 .hu4-content-intro{padding:0 0 10px}
}
@media(max-width:640px){
 :root{--hu4-section-space:48px}
 body.hu2-site .hu2-home-grid{grid-template-columns:1fr;grid-template-areas:'copy' 'search' 'visual';gap:28px}
 body.hu2-site .hu2-home-hero{padding-top:30px;padding-bottom:36px}
 body.hu2-site .hu2-hero-copy h1{font-size:38px;line-height:1.12;margin-bottom:22px}
 .hu2-hero-copy .hu2-lead{margin-bottom:24px}
 .hu2-hero-copy .hu2-eyebrow{margin-bottom:20px!important}
 .hu2-hero-footnote{margin-top:18px!important}
 .hu4-hero-search{border:1px solid var(--hu-line);border-radius:16px;padding:20px;background:white}
 .hu4-search-inner{display:block}
 .hu4-hero-search p{font-size:16px;margin-bottom:16px!important;max-width:none}
 .hu4-hero-search input{font-size:16px}
 body.hu2-site .hu4-route-photo{height:190px}
 .hu4-route-body{padding:26px}
 body.hu2-site .hu4-route-body h3{font-size:28px!important}
 .hu4-process-grid{gap:26px;padding-left:8px}
 .hu4-process-grid:before{left:30px;right:auto;top:50px;bottom:70px;width:2px;height:auto}
 .hu4-process-grid .hu2-step{padding:8px 0 0 68px}
 .hu4-process-grid .hu2-step>span{position:absolute;left:0;top:4px;margin:0}
 .hu4-process-grid .hu2-step h3{margin-bottom:16px}
 .hu4-process-grid .hu2-step p{margin-bottom:0}
 .hu2-page-hero{padding-bottom:30px}
 .hu2-breadcrumb{margin-bottom:24px}
 body.hu2-site .hu2-page-hero h1,body.hu2-site .hu4-has-media h1{font-size:38px}
 body.hu2-site .hu4-page-photo{height:240px;border-radius:20px}
 .hu4-editorial-grid{grid-template-columns:1fr}
 .hu4-content-block{padding:24px}
 .hu4-content-intro{padding:0 0 8px}
 body.hu2-site .hu4-content-block>h2,body.hu2-site .hu4-timeline h2{font-size:25px!important}
 .hu4-contact-shortcuts{margin-bottom:26px;gap:10px}
 .hu4-contact-shortcuts>a{padding:12px 14px;font-size:14px}
 body.hu2-site .hu2-editorial .hu4-timeline{padding-left:22px}
 .hu4-timeline>li{padding:23px 21px}
 .hu4-timeline>li:before{left:-31px}
 body.hu2-site .hu3-partners .hu3-partner-logo{max-width:132px;height:62px}
 body.hu2-site .hu3-partners .hu3-partner--square .hu3-partner-logo{max-width:64px;height:64px}
}
@media(prefers-reduced-motion:reduce){.hu4-nav-trigger>.hu4-icon{transition:none}}

/* One reveal per block, using opacity and transforms only. */
.hu5-reveal {
  opacity: 1;
  transform: none;
  transition: opacity .58s ease, transform .58s cubic-bezier(.2, .7, .2, 1);
}

.hu5-reveal.is-pending {
  opacity: 0;
  transform: translateY(22px);
}

@media (prefers-reduced-motion: reduce), print {
  .hu5-reveal,
  .hu5-reveal.is-pending {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Square frames, strong section contrast and HireUp blue accents. */
body.hu2-site {
  --hu4-radius: 4px;
  --hu-accent-light: #a9d3ff;
}

body.hu2-site h1,
body.hu2-site h2,
body.hu2-site h3 {
  font-weight: 700;
}

body.hu2-site .hu2-header {
  top: 0;
  width: 100%;
  margin: 0;
  border-bottom: 1px solid var(--hu-line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

body.hu2-site .hu2-header .hu2-header-inner {
  width: min(1280px, calc(100% - 48px));
  min-height: 74px;
}

.hu2-header .hu2-logo {
  width: 118px;
  padding: 0 5px;
  border-radius: 3px;
  background: var(--hu-ink);
}

body.hu2-site .hu2-header .hu2-navigation {
  margin-left: auto;
}

body.hu2-site .hu2-header .hu2-navigation > a:not(.hu2-button),
.hu4-nav-trigger {
  color: var(--hu-ink) !important;
  font-weight: 700;
}

body.hu2-site .hu2-header .hu2-navigation > a:not(.hu2-button):is(:hover, [aria-current]),
.hu4-nav-group[open] > .hu4-nav-trigger,
.hu4-nav-trigger:hover {
  color: #0455ad !important;
}

.hu4-nav-panel {
  border-radius: 5px;
}

body.hu2-site .hu4-nav-route {
  border-radius: 3px;
}

.hu4-nav-route > .hu4-icon:first-child {
  box-sizing: content-box;
  width: 20px;
  height: 20px;
  padding: 7px;
  background: #e4f0ff;
}

body.hu2-site .hu2-button {
  min-height: 48px;
  gap: 14px;
  padding: 13px 19px;
  border-color: var(--hu-ink);
  border-radius: 3px;
  background: var(--hu-ink);
  color: var(--hu-accent-light) !important;
  font-family: Heebo, Arial, sans-serif;
  letter-spacing: .025em;
  text-transform: uppercase;
}

body.hu2-site .hu2-button:hover {
  border-color: var(--hu-blue);
  background: var(--hu-blue);
  color: #fff !important;
  transform: none;
}

body.hu2-site .hu2-button-small {
  min-height: 42px;
  padding: 10px 15px;
}

body.hu2-site .hu2-button-outline {
  background: #fff;
  color: var(--hu-ink) !important;
}

.hu2-eyebrow,
.hireup-vacancies__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hu2-eyebrow::before,
.hireup-vacancies__eyebrow::before {
  content: '';
  flex: 0 0 30px;
  height: 5px;
  background: repeating-linear-gradient(135deg, var(--hu-blue) 0 3px, transparent 3px 6px);
}

.hu2-eyebrow .hu2-dot {
  display: none;
}

body.hu2-site .hu2-home-hero {
  padding-top: clamp(38px, 5vw, 74px);
  background: linear-gradient(120deg, #fff 0 61%, var(--hu-soft) 61%);
}

body.hu2-site .hu2-home-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  column-gap: clamp(32px, 5.2vw, 76px);
}

body.hu2-site .hu2-hero-copy h1 {
  font-size: clamp(39px, 4.45vw, 66px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.hu2-hero-copy h1 em {
  color: inherit;
}

.hu2-hero-visual {
  isolation: isolate;
  padding-bottom: 12px;
}

.hu2-hero-visual::before,
.hu2-hero-visual::after {
  position: absolute;
  content: '';
  pointer-events: none;
}

.hu2-hero-visual::before {
  z-index: -1;
  inset: 45% auto 0 -13px;
  width: 70%;
  background: var(--hu-blue);
}

.hu2-hero-visual::after {
  top: -9px;
  right: -9px;
  width: 62px;
  height: 62px;
  border-top: 4px solid var(--hu-ink);
  border-right: 4px solid var(--hu-ink);
}

body.hu2-site .hu2-hero-visual > img {
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 2px !important;
}

.hu2-hero-visual .hu2-photo-note {
  position: relative;
  inset: auto;
  margin-left: clamp(12px, 2vw, 30px);
  padding: clamp(18px, 2.3vw, 30px);
  border-bottom: 4px solid var(--hu-blue);
  border-radius: 0;
  background: var(--hu-ink);
  color: #fff;
  box-shadow: none;
}

.hu2-photo-note strong {
  font: 700 clamp(17px, 2.25vw, 29px)/1.2 Heebo, Arial, sans-serif;
}

.hu2-photo-note div > span {
  margin-top: 5px;
  color: #dce9f5;
  font-size: 14px;
}

.hu2-note-icon {
  border-radius: 2px;
  background: var(--hu-blue);
  color: #fff;
}

.hu4-hero-search,
.hu2-search-band form > div,
.hu4-contact-shortcuts > a,
.hu2-job-meta > span,
.hu3-saved-list,
.hu3-bookmark {
  border-radius: var(--hu4-radius);
}

body.hu2-site .hu2-section:has(.hu2-route-grid) {
  background: var(--hu-soft);
}

body.hu2-site .hu2-section:has(.hu2-jobs-grid),
body.hu2-site .hu2-section:has(.hu4-process-grid) {
  background: #fff;
}

body.hu2-site .hu4-photo-card {
  border: 1px solid var(--hu-line);
  border-top: 5px solid var(--hu-blue);
  background: #fff;
  color: var(--hu-ink);
}

body.hu2-site .hu4-route-body h3,
body.hu2-site .hu4-route-body > a {
  color: var(--hu-ink) !important;
}

.hu4-route-body > p {
  color: #4d657b;
}

.hu4-route-body > a {
  border-color: var(--hu-line);
}

.hu4-route-body > a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hu4-route-body .hu2-card-index {
  align-self: flex-start;
  padding: 5px 9px;
  background: #e4f0ff;
  color: #0455ad;
}

body.hu2-site .hu2-job-card,
body.hu2-site .hireup-vacancy-card {
  border-left: 4px solid var(--hu-blue);
}

.hu2-job-bottom > a {
  border-radius: 3px;
}

body.hu2-site .hu2-section:has(> .hu2-story-grid) {
  background: var(--hu-ink);
  color: #fff;
}

body.hu2-site .hu2-story-grid > img {
  border-radius: 2px;
  border-bottom: 5px solid var(--hu-blue);
}

body.hu2-site .hu2-story-grid h2,
body.hu2-site .hu2-story-grid p:not(.hu2-eyebrow) {
  color: #fff;
}

.hu2-story-grid .hu2-eyebrow,
.hu2-story-grid .hu2-text-link,
.hu2-story-grid .hu2-check-list li::before {
  color: var(--hu-accent-light);
}

.hu2-story-grid .hu2-check-list li {
  border-color: #ffffff30;
}

.hu4-process-grid .hu2-step > span {
  border: 0;
  border-radius: 2px;
  background: var(--hu-blue);
  color: #fff;
  box-shadow: 0 0 0 8px #fff;
  font-size: 18px;
}

body.hu2-site .hu3-partners {
  background: var(--hu-soft);
}

body.hu2-site .hu3-partners .hu3-partner,
body.hu2-site .hu3-partners .hu3-partner-pause {
  border-radius: 2px;
}

.hu3-partners-heading h2::after {
  display: block;
  width: 28px;
  height: 3px;
  margin-top: 15px;
  background: var(--hu-blue);
  content: '';
}

body.hu2-site .hu2-page-hero,
body.hu2-site .hireup-vacancies__header {
  margin-top: 0;
  background: linear-gradient(120deg, #fff 0 62%, var(--hu-soft) 62%);
  border-bottom: 1px solid var(--hu-line);
}

body.hu2-site .hu4-page-photo,
.hu2-contact-aside,
.hu2-form-panel,
body.hu2-site .hireup-vacancy-filters {
  border-radius: var(--hu4-radius);
}

.hu2-form-panel input:not([type=checkbox]):not([type=hidden]),
.hu2-form-panel select,
.hu2-form-panel textarea,
.hu2-form-panel button[type=submit],
.hu2-form-panel input[type=submit] {
  border-radius: var(--hu4-radius) !important;
}

.hu2-bottom-cta .hu2-eyebrow::before {
  background: repeating-linear-gradient(135deg, #fff 0 3px, transparent 3px 6px);
}

@media (max-width: 1100px) {
  body.hu2-site .hu2-header .hu2-header-inner { min-height: 66px; }
  body.hu2-site .hu2-header .hu2-navigation {
    margin: 0;
    border-bottom: 1px solid var(--hu-line);
    border-radius: 0;
    background: #fff;
    box-shadow: 0 14px 28px #12243b20;
  }
  .hu2-header .hu2-menu-toggle {
    align-items: center;
    gap: 11px;
    min-height: 42px;
    padding: 8px 13px;
    border: 1px solid var(--hu-line);
    border-radius: 3px;
    background: #fff;
    color: var(--hu-ink);
    cursor: pointer;
  }
  .hu4-nav-trigger { border-color: var(--hu-line); }
}

@media (max-width: 760px) {
  body.hu2-site .hu2-header .hu2-header-inner { width: calc(100% - 40px); }
  body.hu2-site .hu2-home-hero {
    padding: 30px 0 40px;
    background: linear-gradient(155deg, #fff 0 62%, var(--hu-soft) 62%);
  }
  body.hu2-site .hu2-home-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'copy' 'search' 'visual';
    gap: 28px;
  }
  body.hu2-site .hu2-hero-copy h1 { font-size: clamp(35px, 8.6vw, 45px); }
  .hu2-hero-visual { margin-inline: 9px; }
  .hu2-hero-visual::before { left: -9px; }
  .hu4-hero-search {
    padding: 18px;
    border: 1px solid var(--hu-line);
  }
}
