/*
 * The recruiting pages in the new design: /join-<city>/ (families/join_ny_design.html) and
 * /foretagare-<city>/ (families/foretagare_ny_design.html). They are built like Bli partner
 * (pages/bli-partner.html, ny_design_om.css, .nd_partner_page) and use its sections; this file only
 * adds what Bli partner does not have: photos beside text, the podcast, the process picture and the
 * contact form. Loaded after ny_design.css and ny_design_om.css, and every rule is scoped to
 * .nd_rekrytering_page.
 */

/* The hero photo: the craftsman's head sits high in the picture, so the 21:9 crop keeps the top. */
.nd_rekrytering_page .nd_hero > .nd_container > .nd_hero_image {
    object-position: 50% 15%;
}

/* A photo beside the text, half the width and 4:3 (Playbook, Bildformat), in Bli partner's
   two-column section (.nd_partner_intro). Heads are never cropped: the crop keeps the top. */
.nd_rekrytering_page .nd_rekrytering_photo {
    display: block;
    width: 100%;
    height: auto;
    min-width: 0;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 50% 0;
}
/* The photo on the left on desktop; on phones and tablets the text still comes first. */
@media (min-width: 1024px) {
    .nd_rekrytering_page .nd_rekrytering_image_left .nd_rekrytering_photo {
        order: -1;
    }
}

/* The text column's buttons and links under the copy. */
.nd_rekrytering_page .nd_partner_intro_text > .nd_actions,
.nd_rekrytering_page .nd_partner_how .nd_actions {
    margin-top: 8px;
}

/* Copy from the old pages (nd_rich): the same 16/26 body as the rest of the page. */
.nd_rekrytering_page .nd_partner_body .nd_rich p + p,
.nd_rekrytering_page .nd_partner_body .nd_rich p + h3,
.nd_rekrytering_page .nd_partner_body .nd_rich h3 + p {
    margin-top: 16px;
}

/* "Vem är du?": the two ways in as light sand tiles, as wide as the text above them allows. */
.nd_rekrytering_page .nd_partner_how .nd_link_tiles {
    width: 100%;
    margin-top: 0;
}

/* The podcast: Spotify's own player, with the text about it under it. */
.nd_rekrytering_page .nd_rekrytering_podcast {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}
.nd_rekrytering_page .nd_rekrytering_podcast iframe {
    display: block;
    width: 100%;
    height: 352px;
    border: 0;
}

/* The film beside the text has no quote under it, so the frame holds only the poster. */
.nd_rekrytering_page .nd_partner_film_poster img {
    display: block;
}

/* "Hur går det till?": the old process picture, the whole width, never cropped. */
.nd_rekrytering_page .nd_rekrytering_process {
    display: block;
    width: 100%;
    height: auto;
}

/* "Nyfiken på att veta mer?": the text beside the company form (HubSpot, on white as on
   Kontakta oss). */
.nd_rekrytering_page .nd_rekrytering_contact > .nd_container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    align-items: start;
}
.nd_rekrytering_page .nd_rekrytering_contact_text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}
.nd_rekrytering_page .nd_rekrytering_contact .nd_hubspot_form {
    min-width: 0;
}
@media (max-width: 1023px) {
    .nd_rekrytering_page .nd_rekrytering_contact > .nd_container {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
}
