/*
 * The pages about the people at Dryft in the new design: Vi som jobbar på Dryft (design track 22),
 * a staff profile (track 24, MALLAR "Personalprofil", Albin Selenius), Bli partner (track 23) and
 * Företagsinformation och styrelse.
 * Loaded after ny_design.css on those pages only, every rule scoped to the page's own class.
 */

/* ---------- Vi som jobbar på Dryft ---------- */

/* One group per kind of work, under an eyebrow, with no line between it and the portraits
   (Playbook: no long line between a heading and the grid under it). */
.nd_staff_page .nd_staff_grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px 16px;
    margin-top: 24px;
    list-style: none;
}
.nd_staff_page .nd_staff_card a {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
}
.nd_staff_page .nd_staff_card .nd_people_portrait img {
    height: auto;
}
/* Dryft's IconArrowRight (nd_icon_arrow.html) as the name's background in the padding after it,
   so the arrow stays with the last word when a long name wraps on a phone. On hover only the
   arrow moves, 3 px to the right (Playbook 07). */
.nd_staff_page .nd_staff_card_name {
    margin-top: 16px;
}
.nd_staff_page .nd_staff_card_name span {
    padding-right: 25px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='M 11.746 0 L 10.335 1.418 L 13.605 4.673 L 0 4.686 L 0.002 6.686 L 13.57 6.673 L 10.355 9.903 L 11.772 11.313 L 17.416 5.643 L 11.746 0 Z' fill='%232c474d' transform='matrix(1 0 0 1 3.292 6.343)'/%3E%3C/svg%3E") no-repeat right 3px center / 16px 16px;
    transition: background-position 200ms var(--nd_ease);
}
.nd_staff_page .nd_staff_card a:hover .nd_staff_card_name span {
    background-position: right 0 center;
}
.nd_staff_page .nd_staff_card_dash {
    display: block;
    width: 24px;
    height: 1px;
    margin-top: 10px;
    background: linear-gradient(to right, var(--nd_gray_dash) 50%, transparent 50%) 0 0 / 6px 1px repeat-x;
}
.nd_staff_page .nd_staff_card_role {
    margin-top: 8px;
    color: var(--nd_gray_text);
}
/* The tip stands beside the person who gives it, the last in the group, in a square as large as
   the portrait, so it reads as that person's words (a wider box left most of its frame empty). A
   dashed frame, the eyebrow at the top and the words as a quote (Bold 18/28) at the bottom. */
.nd_staff_page .nd_staff_tip {
    align-self: start;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    border: 1px solid transparent;
    background-image:
        linear-gradient(to right, var(--nd_gray_dash) 50%, transparent 50%),
        linear-gradient(to right, var(--nd_gray_dash) 50%, transparent 50%),
        linear-gradient(to bottom, var(--nd_gray_dash) 50%, transparent 50%),
        linear-gradient(to bottom, var(--nd_gray_dash) 50%, transparent 50%);
    background-size: 6px 1px, 6px 1px, 1px 6px, 1px 6px;
    background-position: 0 0, 0 100%, 0 0, 100% 0;
    background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
    background-origin: border-box;
}
.nd_staff_page .nd_staff_tip p {
    max-width: 640px;
    font-weight: 700;
    font-size: 18px;
    line-height: 28px;
    text-wrap: pretty;
}
@media (max-width: 767px) {
    .nd_staff_page .nd_staff_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 12px;
    }
    /* Half the width on a phone: body size, so a tip fits beside its person. */
    .nd_staff_page .nd_staff_tip {
        align-self: stretch;
        aspect-ratio: auto;
        padding: 16px;
    }
    .nd_staff_page .nd_staff_tip p {
        font-size: 16px;
        line-height: 26px;
    }
}

/* ---------- Staff profile (track 24, MALLAR "Personalprofil") ---------- */

/* The breadcrumb's own page in gray, the parent page an underlined green link (ny_design.css). */
.nd_profile_page .nd_hero nav.nd_eyebrow {
    color: var(--nd_gray_text);
}
/* The name, role, contact and "Lite mer om mig" on the left, the portrait on the right. */
.nd_profile_page .nd_profile_grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 32px 56px;
    align-items: start;
}
.nd_profile_page .nd_profile_intro {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}
/* The role reads as the ingress, a little closer under the name than the rest. */
.nd_profile_page .nd_profile_role {
    margin-top: -8px;
    font-weight: 300;
    font-size: 18px;
    line-height: 28px;
}
.nd_profile_page .nd_profile_contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.nd_profile_page .nd_profile_dash {
    display: block;
    width: 24px;
    height: 1px;
    background: linear-gradient(to right, var(--nd_gray_dash) 50%, transparent 50%) 0 0 / 6px 1px repeat-x;
}
.nd_profile_page .nd_profile_contact_links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    letter-spacing: .01em;
}
.nd_profile_page .nd_profile_facts {
    padding-top: 20px;
    border-top: 1px solid var(--nd_line_light);
}
.nd_profile_page .nd_profile_facts .nd_square_list {
    gap: 8px;
    margin-top: 12px;
    letter-spacing: .01em;
}
/* The portrait 1:1, under half the content width on desktop, so portrait sand behind the lower 66 %
   (light sand on a phone, where it runs the full width: Playbook 02). The cut-out sits with the crown
   about 6 % under the top edge, so the whole head shows with air above it. */
.nd_profile_page .nd_profile_portrait img {
    height: auto;
}
/* The body: one section per question with a thin line above, 56 px apart (40 on a phone). */
.nd_profile_page .nd_profile_body {
    padding-top: 48px;
}
.nd_profile_page .nd_profile_body > * {
    padding: 0 var(--nd_gutter);
}
.nd_profile_page .nd_profile_body > * + * {
    margin-top: 56px;
}
.nd_profile_page .nd_profile_qa > .nd_container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 32px;
    border-top: 1px solid var(--nd_line);
    letter-spacing: .01em;
}
/* After the band of light sand the section needs no line of its own (rules, Linjer och avsnitt). */
.nd_profile_page .nd_profile_reviews + .nd_profile_qa > .nd_container {
    padding-top: 0;
    border-top: 0;
}
.nd_profile_page .nd_profile_qa .nd_square_list {
    gap: 12px;
}
.nd_profile_page .nd_profile_qa .nd_actions {
    margin-top: 0;
}
/* The group photo, 21:9 (4:3 on a phone). */
.nd_profile_page .nd_profile_photo {
    margin-bottom: 0;
}
.nd_profile_page .nd_profile_photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 21 / 9;
    object-fit: cover;
}
/* The customers' words on light sand in full width, in white cards. */
.nd_profile_page .nd_profile_reviews {
    padding-top: 56px;
    padding-bottom: 56px;
    background: var(--nd_sand_light);
}
.nd_profile_page .nd_profile_review_cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
    list-style: none;
}
.nd_profile_page .nd_profile_review_cards li {
    padding: 24px;
    background: var(--nd_white);
    letter-spacing: .01em;
}
.nd_profile_page .nd_profile_review_cards strong {
    font-weight: 700;
}
@media (max-width: 767px) {
    .nd_profile_page .nd_profile_grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .nd_profile_page .nd_profile_portrait::before {
        background: var(--nd_sand_light);
    }
    .nd_profile_page .nd_profile_body {
        padding-top: 40px;
    }
    .nd_profile_page .nd_profile_body > * + * {
        margin-top: 40px;
    }
    .nd_profile_page .nd_profile_photo img {
        aspect-ratio: 4 / 3;
    }
    .nd_profile_page .nd_profile_reviews {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .nd_profile_page .nd_profile_review_cards {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Bli partner (track 23) ---------- */

/* The framed button, and under it the arrow link on a line of its own. */
.nd_partner_page .nd_partner_hero_links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}
/* The body: sections 72 px apart (48 on a phone), as the design. */
.nd_partner_page .nd_partner_body {
    padding-top: 32px;
}
.nd_partner_page .nd_partner_body > section {
    padding: 0 var(--nd_gutter);
}
.nd_partner_page .nd_partner_body > section + section {
    margin-top: 72px;
}
.nd_partner_page .nd_partner_body p,
.nd_partner_page .nd_partner_body li {
    letter-spacing: .01em;
}
.nd_partner_page .nd_partner_body strong {
    font-weight: 700;
}
.nd_partner_page .nd_partner_body .nd_square_list {
    gap: 12px;
}
/* "Vad innebär det att vara partnerbolag?" beside the film, the two halves centered on each other. */
.nd_partner_page .nd_partner_intro > .nd_container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    align-items: center;
}
.nd_partner_page .nd_partner_intro_text {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}
/* The film and its quote in a dashed frame on white. */
.nd_partner_page .nd_partner_film {
    min-width: 0;
    background-color: var(--nd_white);
    border: 1px solid transparent;
    background-image:
        linear-gradient(to right, var(--nd_gray_dash) 50%, transparent 50%),
        linear-gradient(to right, var(--nd_gray_dash) 50%, transparent 50%),
        linear-gradient(to bottom, var(--nd_gray_dash) 50%, transparent 50%),
        linear-gradient(to bottom, var(--nd_gray_dash) 50%, transparent 50%);
    background-size: 6px 1px, 6px 1px, 1px 6px, 1px 6px;
    background-position: 0 0, 0 100%, 0 0, 100% 0;
    background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
    background-origin: border-box;
}
.nd_partner_page .nd_partner_film_poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--nd_green);
    overflow: hidden;
}
.nd_partner_page .nd_partner_film_poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nd_partner_page .nd_partner_film_poster .nd_play {
    width: 56px;
    height: 56px;
}
.nd_partner_page .nd_partner_film_text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
}
/* "Men hur funkar det?", the quote, "Vilka är Dryft?" and "Ansök idag": one column each. */
.nd_partner_page :is(.nd_partner_how, .nd_partner_about) > .nd_container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}
.nd_partner_page .nd_partner_how > .nd_container {
    padding-top: 40px;
    border-top: 1px solid var(--nd_line);
}
/* Daniel's words in a dashed frame with air inside, Bold 18/28 as a quote, and Daniel as a small
   staff portrait (cut out, 1:1, portrait sand behind the lower 66 %) with his name and role. The
   frame separates the sections itself, so the section after it has no line (rules, Linjer och avsnitt). */
.nd_partner_page .nd_partner_quote figure {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 32px;
    border: 1px solid transparent;
    background-image:
        linear-gradient(to right, var(--nd_gray_dash) 50%, transparent 50%),
        linear-gradient(to right, var(--nd_gray_dash) 50%, transparent 50%),
        linear-gradient(to bottom, var(--nd_gray_dash) 50%, transparent 50%),
        linear-gradient(to bottom, var(--nd_gray_dash) 50%, transparent 50%);
    background-size: 6px 1px, 6px 1px, 1px 6px, 1px 6px;
    background-position: 0 0, 0 100%, 0 0, 100% 0;
    background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
    background-origin: border-box;
}
.nd_partner_page .nd_partner_quote blockquote {
    margin: 0;
    max-width: 860px;
    font-weight: 700;
    font-size: 18px;
    line-height: 28px;
    text-wrap: pretty;
}
.nd_partner_page .nd_partner_quote figcaption {
    display: flex;
    align-items: center;
    gap: 14px;
}
.nd_partner_page .nd_partner_quote .nd_people_portrait {
    display: block;
    flex: none;
    width: 64px;
}
.nd_partner_page .nd_partner_quote .nd_people_portrait img {
    top: 8.4%;
    width: 90%;
    height: auto;
}
.nd_partner_page .nd_partner_quote_who {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nd_partner_page .nd_partner_quote_who .nd_mono {
    color: var(--nd_gray_text);
}
.nd_partner_page .nd_partner_about_text p + p {
    margin-top: 16px;
}
.nd_partner_page .nd_partner_about_photo {
    width: 100%;
    height: auto;
    aspect-ratio: 21 / 9;
    object-fit: cover;
}
/* "Ansök idag" on light sand. */
.nd_partner_page .nd_partner_apply_box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 32px;
    background: var(--nd_sand_light);
}
@media (max-width: 1023px) {
    .nd_partner_page .nd_partner_intro > .nd_container {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
}
@media (max-width: 767px) {
    .nd_partner_page .nd_partner_body > section + section {
        margin-top: 48px;
    }
    .nd_partner_page .nd_partner_intro > .nd_container {
        gap: 24px;
    }
    .nd_partner_page .nd_partner_film_text {
        padding: 20px 16px;
    }
    .nd_partner_page .nd_partner_quote figure,
    .nd_partner_page .nd_partner_apply_box {
        padding: 24px 20px;
    }
    .nd_partner_page .nd_partner_about_photo {
        aspect-ratio: 4 / 3;
    }
}

/* ---------- Företagsinformation och styrelse ---------- */

/* The company in figures beside the founders, the text centered on the picture. */
.nd_company_page .nd_company_intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px 56px;
    align-items: center;
}
.nd_company_page .nd_company_links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 32px;
}
/* The founders are a cut-out of the whole group: shown whole, never cropped, on portrait sand that
   covers the lower 66 %, as every staff portrait. */
.nd_company_page .nd_company_founders {
    position: relative;
}
.nd_company_page .nd_company_founders::before {
    content: '';
    position: absolute;
    inset: 34% 0 0;
    background: var(--nd_sand_portrait);
}
.nd_company_page .nd_company_founders img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
}

/* The board: two members to a row on desktop, the portrait beside the name, role, words and link;
   one member to a row on tablets, and the portrait over the text on phones. No line between the
   heading and the list (Playbook). */
.nd_company_page .nd_board_list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
    list-style: none;
}
.nd_company_page .nd_board_member {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
/* Every cut-out has its crown 1-2 % under the file's top edge and its head about a third of the file
   wide: at 112 % of the box, from 3 % down, the heads are the same size, the crowns 3 % under the
   top edge (Playbook 11), and every picture reaches the bottom of the box. */
.nd_company_page .nd_board_member .nd_people_portrait img {
    top: 3%;
    width: 112%;
    height: auto;
}
.nd_company_page .nd_board_member_text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.nd_company_page .nd_board_member_role {
    margin-top: 8px;
    color: var(--nd_gray_text);
}
.nd_company_page .nd_board_member_text p {
    margin-top: 16px;
}
.nd_company_page .nd_board_member_text .nd_arrow_link {
    margin-top: 20px;
}
@media (max-width: 1023px) {
    .nd_company_page .nd_board_list {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }
}
@media (max-width: 767px) {
    .nd_company_page .nd_company_intro {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
    .nd_company_page .nd_board_member {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    .nd_company_page .nd_board_member .nd_people_portrait {
        width: 160px;
    }
}

/* Vi som jobbar på Dryft: the rating line under the ingress and "Jobba med oss" at the end, a
   line above it, as in the design file's track 22. */
.nd_staff_page .nd_staff_rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--nd_gray_text);
}
.nd_staff_page .nd_staff_rating svg {
    color: var(--nd_green);
}
.nd_staff_page .nd_staff_jobs .nd_container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 40px;
    border-top: 1px solid var(--nd_line);
}
.nd_staff_page .nd_staff_jobs p {
    margin: 0;
}
.nd_staff_page .nd_staff_jobs_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: center;
}
