/* EU HIRE final staging refinements — approved targeted changes only. */

/* Shared desktop header: use the same 1200px content grid as page sections. */
@media (min-width: 1200px) {
  .site-header .inside-header {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
    align-items: center;
    gap: 22px;
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 24px;
  }

  .site-header .site-branding,
  .site-header .site-logo {
    grid-column: 1;
    margin: 0;
  }

  .site-header #site-navigation {
    grid-column: 2;
    justify-self: center;
    margin-left: 0;
  }

  .site-header #site-navigation .main-nav > ul {
    flex-wrap: nowrap;
  }

  .site-header #site-navigation .main-nav > ul > li > a {
    font-size: 12px;
    line-height: 44px;
    padding-inline: 7px;
    white-space: nowrap;
  }

  .site-header .eu-header-cta {
    grid-column: 3;
    justify-self: end;
  }

  /* Headers with the enquiry action use three equal visual zones. */
  body .site-header .inside-header:has(.eu-header-cta) {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
    max-width: 1200px;
    padding-inline: 24px;
  }

  .site-header .inside-header:has(.eu-header-cta) #site-navigation {
    grid-column: 2;
    justify-self: center;
  }

  .site-header .inside-header:has(.eu-header-cta) .eu-header-cta {
    grid-column: 3;
    justify-self: end;
  }
}

/* Keep the full desktop menu on one clean row at laptop widths. */
@media (min-width: 769px) and (max-width: 1199px) {
  .site-header .inside-header {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 18px;
  }

  .site-header #site-navigation {
    grid-column: 2;
    justify-self: end;
    margin-left: 0;
    min-width: 0;
  }

  .site-header #site-navigation .main-nav > ul {
    flex-wrap: nowrap;
  }

  .site-header #site-navigation .main-nav > ul > li > a {
    font-size: 11px;
    line-height: 44px;
    padding-inline: 5px;
    white-space: nowrap;
  }
}

/* Contact: keep the orientation topics deliberate instead of relying on text wrapping. */
.page-id-176 .euhire-contact__hero > .wp-block-group__inner-container,
.page-id-176 .euhire-contact__orientation > .wp-block-group__inner-container {
  padding-block: 0 !important;
}

.page-id-176 .euhire-contact__hero {
  padding-bottom: 42px;
  padding-top: 48px;
}

.page-id-176 .euhire-contact__orientation {
  padding-bottom: 17px;
  padding-top: 17px;
}

@media (min-width: 1024px) {
  .page-id-176 .euhire-contact__orientation-inner {
    gap: 34px;
    grid-template-columns: 264px minmax(0, 1fr);
  }

  .page-id-176 .euhire-contact__orientation p {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 7px 0;
    justify-content: space-between;
  }

  .page-id-176 .euhire-contact__orientation span {
    flex: 0 0 auto;
    margin-inline: 12px;
  }
}

@media (min-width: 1200px) {
  .page-id-176 .euhire-contact__orientation p {
    flex-wrap: nowrap;
    font-size: 15px;
    white-space: nowrap;
  }

  .page-id-176 .euhire-contact__orientation span {
    margin-inline: 9px;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .page-id-176 .euhire-contact__orientation p {
    display: block;
    line-height: 1.55;
    text-wrap: balance;
  }

  .page-id-176 .euhire-contact__orientation span {
    margin-inline: 6px;
  }
}

@media (max-width: 781px) {
  .page-id-176 .euhire-contact__hero {
    padding-bottom: 36px;
    padding-top: 40px;
  }

  .page-id-176 .euhire-contact__orientation {
    padding-bottom: 16px;
    padding-top: 16px;
  }
}

/* About: calmer card rhythm with a tighter section exit. */
.page-id-174 .euhire-about__principles {
  padding-block: 54px 42px;
}

.page-id-174 .euhire-about__principle-grid > .wp-block-group__inner-container {
  gap: 16px;
  margin-top: 34px !important;
}

.page-id-174 .euhire-about__principle {
  padding: 26px;
}

.page-id-174 .euhire-about__principle h3 {
  margin-top: 16px;
}

.page-id-174 .euhire-about__principle h3 + p {
  margin-top: 12px;
}

@media (max-width: 781px) {
  .page-id-174 .euhire-about__principles {
    padding-block: 42px 34px;
  }

  .page-id-174 .euhire-about__principle-grid > .wp-block-group__inner-container {
    gap: 16px;
    margin-top: 26px !important;
  }
}

@media (max-width: 560px) {
  .page-id-174 .euhire-about__principles {
    padding-block: 38px 30px;
  }

  .page-id-174 .euhire-about__principle {
    padding: 22px;
  }
}

/* Procedures: ERPR owns row one; the two supporting routes share row two. */
.page-id-170 .eu-procedures-overview .eu-procedures-overview__route-grid > .wp-block-group__inner-container {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.page-id-170 .eu-procedures-overview__route.is-primary-erpr {
  grid-column: 1 / -1;
  min-height: 220px;
  padding: 30px;
}

.page-id-170 .eu-procedures-overview__route:not(.is-primary-erpr) {
  min-height: 210px;
}

@media (max-width: 781px) {
  .page-id-170 .eu-procedures-overview .eu-procedures-overview__route-grid > .wp-block-group__inner-container {
    grid-template-columns: 1fr !important;
  }

  .page-id-170 .eu-procedures-overview__route.is-primary-erpr,
  .page-id-170 .eu-procedures-overview__route:not(.is-primary-erpr) {
    grid-column: auto;
    min-height: 0;
    padding: 22px;
  }
}

/* Pass 2: compact the homepage value cards without changing their content. */
.page-id-12 .eu23-usps .eu11-usp-grid > .wp-block-column {
  min-height: 108px;
  padding: 15px 20px;
  border-top: 3px solid #5274ea;
  border-radius: 12px;
  transition: border-color .16s ease, background-color .16s ease;
}
.page-id-12 .eu23-usps .eu11-usp-grid > .wp-block-column:hover {
  border-top-color: #3658d9;
  background-color: var(--euh-cool-accent);
}
@media (min-width: 1200px) {
  .page-id-12 .eu23-proof {
    align-self: center;
    justify-self: end;
    width: 100%;
    max-width: 410px;
    min-height: 0;
    padding: 26px;
  }
}

/* The existing title link supplies one semantic, keyboard-accessible target per card. */
.page-id-182 .euhire-workers__procedure-grid > .wp-block-column {
  position: relative;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.page-id-182 .euhire-workers__procedure-grid > .wp-block-column:hover,
.page-id-182 .euhire-workers__procedure-grid > .wp-block-column:focus-within {
  border-color: #afbeed;
  border-top-color: #3658d9;
  box-shadow: 0 7px 20px rgba(17, 26, 61, .08);
}
.page-id-182 .euhire-workers__procedure-grid h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.page-id-182 .euhire-workers__procedure-grid h3 a:focus-visible {
  outline: none;
}
.page-id-182 .euhire-workers__procedure-grid > .wp-block-column:focus-within {
  outline: 3px solid #8da2ff;
  outline-offset: 3px;
}

/* Regulatory monitoring: individual official-source links, not a clickable box. */
.page-id-172 .eu-insights-monitored a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #a8b7e9;
  text-underline-offset: 3px;
}
.page-id-172 .eu-insights-monitored a:hover,
.page-id-172 .eu-insights-monitored a:focus-visible {
  color: #3658d9;
  text-decoration-color: currentColor;
}
.page-id-172 .eu-insights-monitored a:focus-visible {
  outline: 2px solid #8da2ff;
  outline-offset: 2px;
}

/* Keep the desktop menu weight and active section consistent across page types. */
@media (min-width: 769px) {
  body .site-header #site-navigation .main-nav > ul > li > a {
    font-weight: 700;
  }
  body .site-header #site-navigation .main-nav > ul > li.current-menu-item > a,
  body .site-header #site-navigation .main-nav > ul > li.current-page-ancestor > a,
  body .site-header #site-navigation .main-nav > ul > li.current-menu-ancestor > a,
  body.single-euhire_insight .site-header #site-navigation .main-nav > ul > li#menu-item-192 > a {
    color: #3658d9;
    box-shadow: inset 0 -2px #3658d9;
  }
}

/* Micro polish: a quieter, narrower registration card in the desktop hero. */
@media (min-width: 1024px) {
  .page-id-12 .eu23-proof {
    align-self: center;
    justify-self: end;
    width: 100%;
    max-width: 380px;
    height: auto;
  }
}

/* The three Insights rows are already complete links; make that interaction visible. */
.page-id-12 .eu11-insight-links > a {
  border-radius: 7px;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .page-id-12 .eu11-insight-links > a:hover {
    transform: translateY(-2px);
  }
}
.page-id-12 .eu11-insight-links > a:hover,
.page-id-12 .eu11-insight-links > a:focus-visible {
  background-color: var(--euh-cool-surface);
  border-top-color: #3658d9;
  box-shadow: 0 7px 18px rgba(17, 26, 61, .07);
}
.page-id-12 .eu11-insight-links > a:focus-visible {
  outline: 2px solid #3658d9;
  outline-offset: 2px;
}

/* Shared footer: align the four existing widget columns and normalize link rhythm. */
body .site-footer .footer-widgets .footer-widgets-container .inside-footer-widgets {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .82fr) minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  width: 100%;
  margin: 0;
}
body .footer-widgets .inside-footer-widgets > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  margin-bottom: 0;
}
body .footer-widgets .inside-footer-widgets > div > .widget {
  padding: 0;
  margin: 0;
}
body .footer-widgets .inside-footer-widgets > div > .widget:first-child {
  margin-bottom: 4px;
}
body .footer-widgets .inside-footer-widgets .widget :is(h3, p, figure) {
  margin-top: 0;
  margin-bottom: 0;
}
@media (max-width: 1023px) {
  body .site-footer .footer-widgets .footer-widgets-container .inside-footer-widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 24px;
  }
}
@media (min-width: 782px) and (max-width: 1199px) {
  body .site-footer .footer-widgets-container {
    padding-inline: 24px;
  }
}
@media (max-width: 600px) {
  body .site-footer .footer-widgets .footer-widgets-container .inside-footer-widgets {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-id-12 .eu11-insight-links > a {
    transition: none;
  }
}

/* Final shared footer proportions: preserve the four widget groups. */
body .site-footer .footer-widgets .footer-widgets-container .inside-footer-widgets {
  grid-template-columns: minmax(0, 1.2fr) minmax(205px, .94fr) minmax(0, 1.22fr) minmax(0, 1fr);
  column-gap: 24px;
}
body .footer-widgets .inside-footer-widgets > div {
  text-align: left;
  gap: 10px;
}
body .footer-widgets .inside-footer-widgets > div > .widget:first-child {
  margin-bottom: 6px;
}
body .footer-widgets .footer-widget-2 h3.wp-block-heading {
  white-space: nowrap;
}
body .site-footer .footer-widgets h3.wp-block-heading {
  font-family: Inter, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
}
@media (max-width: 1023px) {
  body .site-footer .footer-widgets .footer-widgets-container .inside-footer-widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 24px;
  }
}
@media (max-width: 600px) {
  body .site-footer .footer-widgets .footer-widgets-container .inside-footer-widgets {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

/* One role-based scale for standard internal pages; special component headings stay scoped. */
body.page:not(.home) .entry-content {
  --euh-page-heading: clamp(36px, 4.18vw, 60px);
  --euh-section-heading: clamp(30px, 2.67vw, 38.4px);
  --euh-card-heading: 19px;
}
body.page:not(.home) .entry-content h1.wp-block-heading {
  font-family: Inter, Arial, sans-serif;
  font-size: var(--euh-page-heading);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -.025em;
}
body.page:not(.home) .entry-content h2.wp-block-heading:not(
  .eu-erpr-summary h2,
  .eu-insights-hero-copy h2,
  .eu-workforce-hero-copy h2,
  .eu-procedures-overview__legal-grid h2,
  .euhire-about__insights-grid h2,
  .euhire-contact__orientation h2,
  .euhire-ha__mini-form h2,
  .eu24-faq-footer-cta h2
) {
  font-family: Inter, Arial, sans-serif;
  font-size: var(--euh-section-heading);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -.025em;
}
body.page:not(.home) .entry-content :is(
  .euhire-employers__step,
  .euhire-workers__selection-item,
  .euhire-sector-card,
  .eu-procedures-overview__route,
  .eu-procedures-overview__step,
  .euhire-about__principle,
  .euhire-ha__why-card,
  .euhire-ha__service-card
) h3 {
  font-family: Inter, Arial, sans-serif;
  font-size: var(--euh-card-heading);
  font-weight: 750;
  line-height: 1.28;
  letter-spacing: -.025em;
}
body.page .entry-content :is(.eu-erpr-kicker, .euhire-workers__selection-status) {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
  line-height: 1.3;
}
@media (max-width: 600px) {
  body.page:not(.home) .entry-content {
    --euh-page-heading: clamp(30px, 7.5vw, 32px);
  }
  body.page:not(.home) .entry-content h1.wp-block-heading {
    line-height: 1.08;
  }
}

/* Staging: remove inherited Group padding that leaves an empty band after the workers CTA. */
body.page-id-182 .euhire-workers > .wp-block-group__inner-container{padding-bottom:0}
/* Staging: the FAQ section owns the hero-to-list spacing; the list itself needs no second inset. */
body.eu24-faq-page .eu24-faq-list > .wp-block-group__inner-container{padding:0;max-width:none}

/* WordPress full-bleed wrappers measure 100vw including the scrollbar (8px overshoot).
   Clip only that viewport-edge excess on the affected staging pages; keep the bands full bleed. */
body:is(.page-id-164,.page-id-182,.page-id-166,.page-id-170,.page-id-174,.page-id-577,.page-id-687){overflow-x:clip}

/* Shared navigation stays in flow while the announcement above it scrolls away. */
#masthead.site-header{position:sticky;top:0;z-index:80;background:#fff}
.site-content [id]:target{scroll-margin-top:90px}
@media(max-width:900px){.site-content [id]:target{scroll-margin-top:120px}}

/* Keep GeneratePress's expanded mobile menu out of the sticky header's flow.
   Home, FAQ and Insights already have their own approved overlay menu layout. */
@media(max-width:1199px){
  body:is(.page-id-164,.page-id-182,.page-id-166,.page-id-170,.page-id-174,.page-id-176,.page-id-687) #masthead #site-navigation.toggled{
    position:absolute;top:calc(100% - 1px);right:12px;left:auto;
    box-sizing:border-box;width:min(320px,calc(100vw - 24px));max-height:calc(100dvh - 120px);
    overflow-y:auto;margin:0;border:1px solid var(--euh-cool-border);background:#fff;
    box-shadow:0 8px 24px rgba(17,26,61,.12);z-index:1;
  }
  body:is(.page-id-164,.page-id-182,.page-id-166,.page-id-170,.page-id-174,.page-id-176,.page-id-687) #masthead #site-navigation.toggled .inside-navigation,
  body:is(.page-id-164,.page-id-182,.page-id-166,.page-id-170,.page-id-174,.page-id-176,.page-id-687) #masthead #site-navigation.toggled .main-nav,
  body:is(.page-id-164,.page-id-182,.page-id-166,.page-id-170,.page-id-174,.page-id-176,.page-id-687) #masthead #site-navigation.toggled .main-nav>ul{width:100%}
  body:is(.page-id-164,.page-id-182,.page-id-166,.page-id-170,.page-id-174,.page-id-176,.page-id-687) #masthead #site-navigation.toggled .main-nav>ul>li>a{white-space:normal}
}
@media(max-width:900px){
  body:is(.page-id-164,.page-id-182,.page-id-166,.page-id-170,.page-id-174,.page-id-176) #masthead{min-height:108px}
}


/* D077 technical fix: reuse the existing collapsed menu before desktop navigation overlaps the logo. */
@media(min-width:769px) and (max-width:1199px){
 body .site-header .inside-header:has(.eu-header-cta){position:relative;grid-template-columns:minmax(0,1fr) auto auto;gap:12px}
 body .site-header .site-logo{grid-column:1;grid-row:1;min-width:0}
 body .site-header .eu-header-cta{grid-column:2;grid-row:1}
 body .site-header .mobile-menu-control-wrapper{display:block!important;grid-column:3;grid-row:1;margin:0}
 body .site-header .mobile-menu-control-wrapper .menu-toggle{display:flex;align-items:center;background:transparent;color:#111a3d;min-height:44px;padding:0 10px}
 body .site-header #site-navigation{display:none;margin:0}
 body .site-header #site-navigation.toggled{display:block;position:absolute;right:24px;top:calc(100% - 1px);width:min(320px,calc(100vw - 48px));z-index:60;background:#fff;border:1px solid #dce4f4}
 body .site-header #site-navigation>.inside-navigation>.menu-toggle{display:none!important}
 body .site-header #site-navigation.toggled .main-nav>ul{display:block;position:static;width:100%;min-width:0;padding:8px}
 body .site-header #site-navigation.toggled .main-nav>ul>li>a{font-size:14px;line-height:44px;white-space:normal}
}
