/* WordPress-only additions. The design's stylesheet is styles.css, carried as-is. */

/* Logged-in admin bar sits above the fixed header */
.admin-bar .mpn-header{top:32px}
@media(max-width:782px){.admin-bar .mpn-header{top:46px}}

/* Homepage hero: the poster is a real image (the first paint); the video fades in over it */
.mpn-hero-media .mpn-hero-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.mpn-hero-media video{opacity:0;transition:opacity .6s ease}
.mpn-hero-media.is-playing video{opacity:1}

/* ---------------------------------------------------------------- Gravity Forms in the design's form card */
.mpn-gf .gform_wrapper{margin:0}
.mpn-gf form{margin:0}
.mpn-gf fieldset{border:0;margin:0;padding:0;min-width:0}
.mpn-gf .gform_heading,.mpn-gf .gform_required_legend{display:none}
.mpn-gf .gform_fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:0;padding:0;list-style:none}
.mpn-gf .gfield{grid-column:span 1;margin:0;padding:0;min-width:0}
.mpn-gf .gfield.w-full,.mpn-gf .gfield--width-full{grid-column:1/-1}
.mpn-gf .gfield--type-hidden,.mpn-gf .gform_hidden,.mpn-gf .gform_validation_container,.mpn-gf .gfield--type-honeypot{display:none!important}
.mpn-gf .gfield_label{display:block;font-size:15px;font-weight:500;color:var(--mg-ink);padding:0}
.mpn-gf .gfield_required{color:var(--mg-accent);margin-left:3px}
.mpn-gf .gfield_required .gfield_required_text{font-size:0}
.mpn-gf .gfield_required .gfield_required_text::after{content:"*";font-size:15px}
.mpn-gf .ginput_container{display:flex;flex-direction:column}
.mpn-gf .ginput_container input:not([type=checkbox]):not([type=radio]),.mpn-gf .ginput_container select,.mpn-gf .ginput_container textarea{width:100%;box-sizing:border-box}
.mpn-gf .gfield_description{font-size:13px;color:var(--mg-ink-soft);margin:0}
.mpn-gf .gfield_description.validation_message{color:var(--mg-plum);font-weight:500}
.mpn-gf .gfield_error input,.mpn-gf .gfield_error select,.mpn-gf .gfield_error textarea{border-color:var(--mg-accent)}
.mpn-gf .gform_validation_errors{grid-column:1/-1;margin:0 0 20px;padding:16px 18px;border-radius:12px;font-size:15.5px;line-height:1.6;background:var(--mg-pink-100);border:1px solid var(--mg-pink-line);color:var(--mg-plum)}
.mpn-gf .gform_validation_errors h2{margin:0;font-size:15.5px;font-weight:600;color:inherit}
.mpn-gf .gform_validation_errors ol{margin:6px 0 0;padding-left:18px}
.mpn-gf .gform_validation_errors a{color:inherit}
.mpn-gf .gform_submission_error .gform-icon{display:none}
/* the consent checkbox, as the design's is-check field */
.mpn-gf .gfield--type-consent .gfield_label,.mpn-gf .hidden_label>.gfield_label{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.mpn-gf .ginput_container_consent{flex-direction:row;align-items:flex-start;gap:12px}
.mpn-gf .ginput_container_consent input[type=checkbox]{width:22px;height:22px;flex:0 0 auto;margin:0;accent-color:var(--mg-accent)}
.mpn-gf .gfield_consent_label{font-size:15px;font-weight:400;color:var(--mg-ink-soft);line-height:1.5}
.mpn-gf .gfield_consent_label .gfield_required{display:none}
.mpn-gf .gfield_consent_label a{color:var(--mg-accent);text-decoration:underline;text-underline-offset:2px}
.mpn-gf .ginput_container_fileupload input[type=file]{padding:12px;background:var(--mg-pink-100);border:1px dashed var(--mg-hairline);border-radius:12px;font:inherit;font-size:16px;cursor:pointer}
.mpn-gf .gform_fileupload_rules,.mpn-gf .gform_delete_file{display:none}
.mpn-gf .ginput_preview{font-size:14px;color:var(--mg-ink-soft)}
.mpn-gf .gfield--type-turnstile .gfield_label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.mpn-gf .gform_footer{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin:26px 0 0;padding:24px 0 0;border-top:1px solid var(--mg-hairline)}
.mpn-gf .gform_footer .btn-combo{align-self:auto;border:0;cursor:pointer;font:inherit}
.mpn-gf .gform_footer .btn-combo.is-busy{opacity:.65;cursor:progress}
.mpn-gf .gform_confirmation_message{font-size:17px;line-height:1.6;color:var(--mg-ink)}
@media(max-width:640px){.mpn-gf .gform_fields{grid-template-columns:1fr}.mpn-gf .gfield{grid-column:1/-1}}

/* ---------------------------------------------------------------- consent banner */
.mpn-consent{position:fixed;left:16px;right:16px;bottom:16px;z-index:1200;max-width:620px;margin:0 auto;display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:18px 20px;border-radius:var(--mg-radius-lg);background:var(--mg-navy);color:#fff;box-shadow:0 18px 40px -18px rgba(5,11,31,.6);border:1px solid rgba(255,255,255,.12)}
.mpn-consent[hidden]{display:none}
.mpn-consent p{margin:0;flex:1 1 260px;font-size:15px;line-height:1.5;color:rgba(255,255,255,.9)}
.mpn-consent a{color:#fff;text-decoration:underline;text-underline-offset:2px}
.mpn-consent-acts{display:flex;gap:10px;flex-wrap:wrap}
.mpn-consent .btn-combo,.mpn-consent .btn-line{border:0;cursor:pointer;font:inherit}

/* ---------------------------------------------------------------- article content from the editor */
.mpn-article .alignleft{float:left;margin:6px 24px 16px 0;max-width:50%}
.mpn-article .alignright{float:right;margin:6px 0 16px 24px;max-width:50%}
.mpn-article .aligncenter{margin-left:auto;margin-right:auto}
.mpn-article .wp-caption-text,.mpn-article figcaption{font-size:14px;color:var(--mg-ink-soft);margin-top:8px}
.mpn-article::after{content:"";display:table;clear:both}
.mpn-text-block{max-width:820px}

/* Homepage heading: it starts hidden behind the logo trace. At opacity 0 Chrome doesn't count its
   first paint as the page's largest content, so the measured LCP waited for the 4.0/5.0 swap (~9s on
   a slow phone). Starting at an imperceptible .01 lets the first paint count; nothing visible changes. */
.mpn-intro-title .t1,.mpn-intro-title .t2{opacity:.01}
@keyframes mpn-neon-in{0%{opacity:.01;transform:translateY(24px);filter:blur(8px)}40%{opacity:.95;transform:none;filter:blur(0)}48%{opacity:.35}56%{opacity:1}64%{opacity:.55}74%,100%{opacity:1;transform:none;filter:blur(0)}}

/* Design fix (S6): on narrow phones a long email address in the form's side panel set the
   column's minimum width, so the vacancy, contact and job pages scrolled sideways at 360px. */
.mpn-form-wrap>*{min-width:0}
.mpn-aside-list .v,.mpn-aside-list .v a{overflow-wrap:anywhere}

/* Samuel's review, 20 Nov 2026 ------------------------------------------------------------- */
/* Numbered side-panel lists ("What happens next"): the text sits just after the number. */
.mpn-aside-list--steps li{grid-template-columns:22px 1fr}
@media(min-width:1025px){
  /* A section head's button lines up with the right edge of the content below it. */
  .mpn-head .mpn-head-copy>.btn-line,.mpn-head .mpn-head-copy>.btn-combo{align-self:flex-end}
  /* With no text beside it, the button sits level with the heading. */
  .mpn-head .mpn-head-copy:not(:has(p)){align-self:center;padding-top:0}
  /* Text-only heroes: the intro runs wider so it settles on two lines. */
  .pg-hero:not(.has-media) .pg-hero-lead{max-width:860px}
}

/* Mobile pass, 20 Nov 2026 ------------------------------------------------------------------ */
/* Phone numbers never break across two lines. */
a[href^="tel:"]{white-space:nowrap}

/* Menu: the burger turns into a cross while the menu is open. */
.mpn-burger svg path{transform-box:view-box;transform-origin:15px 15px;transition:transform .25s ease,opacity .2s ease}
.mpn-burger[aria-expanded="true"] .l1{transform:rotate(45deg) translateY(7.5px)}
.mpn-burger[aria-expanded="true"] .l2{opacity:0}
.mpn-burger[aria-expanded="true"] .l3{transform:rotate(-45deg) translateY(-7.5px)}
/* Section links (Employers, Insights, About) show they open a page, not just head a group. */
.mpn-m-link::after{content:"";flex:0 0 auto;width:8px;height:8px;margin-left:auto;margin-right:4px;border-top:2px solid currentColor;border-right:2px solid currentColor;transform:rotate(45deg);opacity:.55}
.mpn-tag--ico{display:inline-flex;align-items:center;opacity:.85}
.mpn-tag--ico svg{width:17px;height:17px}

/* A head button that belongs to the list below it (View All Live Roles, All Case Studies) moves
   under that list once the head stacks; on wide screens it stays beside the heading. */
.mpn-head-foot{display:none}
@media(max-width:1024px){
  .mpn-head--foot .mpn-head-copy>.btn-line,.mpn-head--foot .mpn-head-copy>.btn-combo{display:none}
  .mpn-head--foot .mpn-head-copy:not(:has(p)){display:none}
  .mpn-head-foot{display:flex;justify-content:flex-end}
  .mpn-head-foot>.btn-line,.mpn-head-foot>.btn-combo{align-self:auto}
}

@media(max-width:640px){
  /* Groups of two or more buttons: full width and stacked, instead of mismatched widths. */
  .pg-hero-acts:has(>:nth-child(2)),.mpn-band-acts:has(>:nth-child(2)),.mpn-aside-acts:has(>:nth-child(2)){flex-direction:column;align-items:stretch}
  .pg-hero-acts:has(>:nth-child(2)),.mpn-band-acts:has(>:nth-child(2)){align-self:stretch;width:100%}
  .pg-hero-acts:has(>:nth-child(2))>*,.mpn-band-acts:has(>:nth-child(2))>*,.mpn-aside-acts:has(>:nth-child(2))>*{width:100%}
  .mpn-head-foot>*,.mpn-gf .gform_footer .btn-combo{width:100%}

  /* Featured vacancies: one whole card at a time, with the arrows and a count right under it. */
  .mpn-job{flex-basis:100%}
  .mpn-jobs-foot{flex-direction:column-reverse;align-items:stretch;gap:18px;margin-top:-16px}
  .mpn-jobs-nav{justify-content:flex-end}
  .mpn-jobs-count{margin-right:auto;font-size:14px;font-weight:500;color:var(--mg-ink-soft);font-variant-numeric:tabular-nums}

  /* Job board rows: "Posted ..." gets its own line instead of wrapping with a stray dot. */
  .mpn-brd .posted{flex-basis:100%}
  .mpn-brd .posted .sep{display:none}

  /* Case study filter: one line you can swipe, like the Insights topics. */
  .mpn-cases-filter{min-width:0;max-width:100%}
  .mpn-cases-tabs{flex-wrap:nowrap;overflow-x:auto;max-width:100%;scrollbar-width:none}
  .mpn-cases-tabs::-webkit-scrollbar{display:none}
  .mpn-cases-tabs button{flex:0 0 auto;white-space:nowrap}
}

/* Touch screens: no lift, zoom or tint that sticks after a tap. */
@media(hover:none){
  .mpn-job:hover,.mpn-why-card:hover,.mpn-why-card:focus-within,.mpn-mkt-panel:hover,.mpn-mkt-panel:focus-within,.mpn-route:hover,.mpn-route:focus-within,.mpn-reach-item:hover,a.mpn-card2:hover,.mpn-step:hover,.mpn-brd:hover,.mpn-proc-step:hover,.mpn-tile:hover,.mpn-disc-col:hover,.mpn-casenav a:hover,.mpn-post:hover{transform:none}
  .mpn-pillar:hover img,.mpn-mkt-panel:hover img,.mpn-mkt-panel:focus-within img,.mpn-route:hover .mpn-route-media img,.mpn-route:focus-within .mpn-route-media img,.mpn-split:hover .mpn-split-img img,.mpn-split:hover .mg-duo img,.pg-hero-media:hover .mg-duo img,.mpn-post:hover .mpn-post-img img{transform:none;filter:none}
  .mpn-why-card:hover .mpn-ticks li,.mpn-tile:hover .mpn-tile-ico,.mpn-reach-item:hover .mpn-reach-ico{transform:none}
  .mpn-mkt-panel:hover,.mpn-mkt-panel:focus-within{border-radius:var(--mg-radius);box-shadow:none}
  .mpn-mkt-panel:hover .mpn-mkt-card,.mpn-mkt-panel:focus-within .mpn-mkt-card{transform:none;border-color:#78787840;background:rgba(40,40,52,.5)}
  .mpn-route:hover,.mpn-route:focus-within{border-radius:var(--mg-radius-lg);box-shadow:0 30px 60px -34px rgba(0,0,0,.7)}
  .mpn-route:hover::before,.mpn-route:focus-within::before{transform:scaleX(0)}
  .mpn-step:hover,.mpn-tile:hover,.mpn-disc-col:hover{background:var(--mg-surface);border-color:var(--mg-hairline)}
  .mpn-tile:hover .mpn-tile-ico{background:var(--mg-pink-100);color:var(--mg-accent)}
  .mpn-proc-step:hover{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.1)}
}

/* Filled roles and Recruiterflow descriptions, 23 Nov 2026 -------------------------------------- */
/* A filled job keeps its page: this panel sits above the original spec. */
.mpn-filled{display:flex;align-items:center;justify-content:space-between;gap:24px 40px;flex-wrap:wrap;padding:30px 34px;border-radius:var(--mg-radius);background:var(--mg-pink-100);border:1px solid var(--mg-pink-line)}
.mpn-filled-copy{flex:1 1 420px;min-width:0}
.mpn-filled-k{display:inline-block;margin-bottom:8px;font-size:14px;font-weight:600;color:var(--mg-accent)}
.mpn-filled h2{margin:0 0 8px;font-size:28px;line-height:1.2;font-weight:500;color:var(--mg-ink)}
.mpn-filled p{margin:0;font-size:17px;line-height:1.6;color:rgba(30,41,59,.82)}
.mpn-filled-acts{display:flex;flex-wrap:wrap;gap:10px}
.mpn-filled-acts .btn-combo,.mpn-filled-acts .btn-line{align-self:auto}
/* A Recruiterflow description is the recruiter's own HTML: keep its spacing tidy. */
.mpn-job-desc>:first-child{margin-top:0}
.mpn-job-desc h1,.mpn-job-desc h2{margin:36px 0 12px;font-size:24px;line-height:1.25;font-weight:500;color:var(--mg-ink)}
.mpn-job-desc p:empty{display:none}
@media(max-width:640px){
  .mpn-filled{padding:24px 20px}
  .mpn-filled h2{font-size:24px}
  .mpn-filled-acts{flex-direction:column;align-items:stretch;width:100%}
  .mpn-filled-acts>*{width:100%}
}
