/*
 * Header and footer copied from M+P's Squarespace site (read 2026-10-14, re-synced 2026-10-23).
 * Loaded after the career portal's styles.css, so every rule is scoped to .mp-* classes.
 */

/* M+P's headline font, Bernoru Black Medium, from the web font files Lacey sent (2026-10-19). */
@font-face {
  font-family: "Bernoru";
  src: url("/fonts/bernoru-blackmedium-webfont.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --mp-navy: #032372;
  --mp-yellow: #f3ff52;
  --mp-blue: #6bcdeb;
  --mp-purple: #6961ff;
  --mp-font: "Roboto Mono", ui-monospace, monospace;
  --mp-headline-font: "Bernoru", "Arial Black", sans-serif;
}

.mp-header,
.mp-footer {
  font-family: var(--mp-font);
  color: var(--mp-navy);
  background: #fff;
  box-sizing: border-box;
}

.mp-header *,
.mp-footer * {
  box-sizing: border-box;
}

.mp-header a,
.mp-footer a {
  color: var(--mp-navy);
  font-weight: 400;
}

/*
 * The portal's styles.css sets body { overflow: hidden } because it scrolls inside its own
 * boxes. With the site header and footer around it the page must scroll, except while one of
 * the portal's dialogs is open (it adds .modal-open to the body then).
 */
body:not(.modal-open) {
  overflow: visible;
}

/* The career portal's own title bar ("[Mathys+Potestio]") is replaced by the site header. */
app-root > header.novo-header {
  display: none;
}

/* Header */

.mp-header {
  position: relative;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 132px;
  padding: 0 60px;
}

.mp-header__logo img {
  display: block;
  width: 100px;
  height: auto;
}

.mp-header__nav {
  display: flex;
  gap: 58px;
  margin-left: auto;
}

.mp-header__nav a {
  font-size: 19px;
  line-height: 1.5;
  text-decoration: none;
  padding: 2px 0;
}

.mp-header__nav a.is-active,
.mp-header__nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.mp-header__actions {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.mp-header .mp-button,
.mp-footer__links a,
.mp-footer__links {
  font-weight: 700;
}

.mp-button {
  display: inline-block;
  padding: 19px 25px;
  border-radius: 300px;
  background: var(--mp-yellow);
  font-family: var(--mp-font);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.mp-header .mp-button {
  color: var(--mp-navy);
}

.mp-header__toggle {
  display: none;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--mp-navy);
  cursor: pointer;
  line-height: 0;
}

.mp-header__toggle svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

/* Mobile menu: full-screen purple panel, as on the Squarespace site. */

.mp-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 88px 24px 40px;
  background: var(--mp-purple);
  color: var(--mp-yellow);
}

.mp-menu:not([hidden]) {
  display: flex;
}

.mp-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.mp-header .mp-menu a {
  color: var(--mp-yellow);
}

.mp-menu__nav a {
  font-size: 33px;
  line-height: 1;
  text-decoration: none;
}

.mp-header .mp-menu .mp-button {
  color: var(--mp-purple);
  min-width: 210px;
  text-align: center;
}

.mp-header.is-open {
  background: var(--mp-purple);
}

.mp-header.is-open .mp-header__toggle {
  position: relative;
  z-index: 1001;
  color: var(--mp-yellow);
}

.mp-header.is-open .mp-header__toggle svg {
  transform: rotate(45deg);
}

.mp-header.is-open .mp-header__logo {
  position: relative;
  z-index: 1001;
}

@media (max-width: 1100px) {
  .mp-header {
    height: 88px;
    padding: 0 23px;
  }

  .mp-header__logo img {
    width: 30px;
  }

  .mp-header__nav,
  .mp-header__actions {
    display: none;
  }

  .mp-header__toggle {
    display: block;
  }
}

/* Find Work banner: the navy band at the top of the Squarespace Find Work page. */

.mp-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 386px;
  padding: 60px 24px;
  background: var(--mp-navy);
  box-sizing: border-box;
}

.mp-hero__title {
  margin: 0;
  color: var(--mp-yellow);
  font-family: var(--mp-headline-font);
  font-size: clamp(56px, 7.1vw, 106px);
  font-weight: 900;
  line-height: .69;
  letter-spacing: -.02em;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .mp-hero {
    min-height: 220px;
  }
}

/* Footer */

.mp-footer {
  padding: 56px 24px 52px;
  text-align: center;
}

.mp-footer p {
  margin: 0 0 19px;
  padding: 0; /* the portal's styles.css pads every p */
  line-height: 1.5;
}

.mp-footer__logo img {
  display: block;
  width: 113px;
  height: auto;
  margin: 0 auto 56px;
}

.mp-footer__links {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
}

.mp-footer__links a {
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.mp-plus {
  margin: 0 .2em;
  color: var(--mp-blue);
  font-weight: 700;
}

.mp-plus--purple {
  color: var(--mp-purple);
}

.mp-footer__about {
  margin-top: 64px !important;
  font-size: 17px;
}

.mp-footer__tagline {
  color: var(--mp-blue);
  font-size: 17px;
  font-weight: 700;
}

.mp-footer__cities {
  font-size: 17px;
  text-transform: uppercase;
}

.mp-footer__email {
  font-size: 17px;
  font-weight: 700;
}

/* Social links: white icons in yellow circles. */
.mp-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 31px;
}

.mp-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--mp-yellow);
}

.mp-social svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

/* Keeps the footer below the board while the portal loads, and the loading dots inside it. */
#jobBoard {
  position: relative;
  min-height: 100vh;
}

/*
 * Phone fix for the portal's job cards: its stock layout puts the location, type and date
 * tags beside the title, where they overlap it on narrow screens. Stack them under it instead.
 */
@media (max-width: 700px) {
  novo-list-item {
    flex-wrap: wrap;
  }

  novo-list-item > .list-item,
  novo-list-item > item-header-end {
    flex: 1 1 100%;
  }

  novo-list-item > item-header-end {
    justify-content: flex-start;
    margin-top: .5rem;
  }

  app-info-chips .chip {
    display: inline-block;
    margin: 0 .25rem .4rem 0;
  }
}

/*
 * The portal scrolls its job list and job pages inside a box the height of the screen, so the
 * board scrolled on its own between the site header and footer (and on phones the footer couldn't
 * be reached at all). Let the whole page scroll as one, as on the Squarespace site
 * (the list loads more with a button, not on scroll).
 */
app-root > div,
app-root app-main-page,
app-root .frame,
app-root .frame > .list,
app-root app-job-details .background {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

/*
 * A portal page style meant for its own full-screen section also matches the apply dialog's
 * section, making it the screen's width inside a 600px dialog. Unseen until the
 * self-identification questions were turned on: their grey heading stretches to that width.
 */
app-apply-modal novo-modal > section {
  width: auto !important;
}

/* Equal Opportunity Statement at the end of the apply form, in the form's own type styles. */
/* Lined up with the field labels: the form's fields stop at 550px and their labels start 22px in. */
.mp-eeo {
  box-sizing: border-box;
  max-width: 550px;
  padding: 16px 0 0 22px;
  color: #3d464d;
  font-family: Roboto, sans-serif;
}

.mp-eeo .mp-eeo__title {
  margin: 0 0 4px;
  padding: 0;
  font-size: 11.7px;
  font-weight: 500;
  text-transform: uppercase;
}

.mp-eeo .mp-eeo__text {
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.5;
}

.mp-eeo .mp-eeo__text + .mp-eeo__text {
  margin-top: 8px;
}

.mp-eeo a {
  color: inherit;
  text-decoration: underline;
}
