/*
 * pn-careers.css: /careers (views/frontend/frontend_careers.pug), rebuilt 2026-11-18 evening on
 * docs/revamp-2026-11-18/PAGE-PATTERN.md. The frame (ink canvas, hero, sheet, feature cards, steps row, lime panel) comes
 * from pn-system.css and pn-planners.css (body.pp-page); this file adds the role cards, the "no open role" card and the
 * team picture. Scoped to body.pc-page. Colours from the pn-system tokens. Bump ?v= on the link with every edit.
 */
body.pc-page img.pc-hero__img {
    display: block;
    width: 100%;
    height: clamp(280px, 24vw, 380px);
    border-radius: 24px;
    object-fit: cover;
}

/* ---------- Roles ---------- */
body.pc-page .pc-roles {
    margin-bottom: clamp(40px, 4vw, 56px);
    scroll-margin-top: 96px;
}

body.pc-page p.pc-lead {
    margin: -8px 0 24px !important;
    color: var(--pns-text-2) !important;
    font-size: var(--pns-lead) !important;
    line-height: 1.55 !important;
    text-align: left !important;
}

body.pc-page .pc-roles__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--pns-gap);
}

body.pc-page article.pn-role {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
    border: 1px solid var(--pns-line);
    border-radius: var(--pns-r-card);
    background: var(--pns-card);
}

body.pc-page p.pc-where {
    margin: 0 0 14px !important;
    padding: 4px 10px;
    border-radius: var(--pns-r-chip);
    background: var(--pns-lime-tint);
    color: var(--pns-lime-deep) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

body.pc-page h3.pc-role__h {
    margin: 0 !important;
    color: var(--pns-text) !important;
    font-size: clamp(22px, 2vw, 28px) !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    text-align: left !important;
}

body.pc-page p.pc-role__intro {
    margin: 10px 0 0 !important;
    color: var(--pns-text-2) !important;
    font-size: 17px !important;
    line-height: 1.55 !important;
    text-align: left !important;
}

body.pc-page details.pc-role__more {
    width: 100%;
    margin: 20px 0 24px;
    border-top: 1px solid var(--pns-line);
    border-bottom: 1px solid var(--pns-line);
}

body.pc-page details.pc-role__more summary {
    position: relative;
    padding: 14px 32px 14px 0;
    color: var(--pns-text);
    font-size: 15px;
    font-weight: 500;
    list-style: none;
    cursor: pointer;
}

body.pc-page details.pc-role__more summary::-webkit-details-marker {
    display: none;
}

body.pc-page details.pc-role__more summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 4px;
    color: var(--pns-text);
    font-size: 20px;
    line-height: 1;
    transform: translateY(-50%);
}

body.pc-page details.pc-role__more[open] summary::after {
    content: "−";
}

body.pc-page details.pc-role__more summary:focus-visible {
    outline: 2px solid var(--pns-focus);
    outline-offset: 2px;
}

body.pc-page .pc-role__cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 0 0 18px;
}

body.pc-page h4.pc-role__h4 {
    margin: 0 0 8px !important;
    color: var(--pns-text) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: left !important;
}

body.pc-page ul.pc-role__list {
    margin: 0;
    padding: 0 0 0 18px;
    list-style: disc;
}

body.pc-page ul.pc-role__list li {
    display: list-item;
    margin: 0 0 6px;
    color: var(--pns-text-2);
    font-size: 14.5px;
    line-height: 1.5;
}

body.pc-page a.pc-role__apply {
    margin-top: auto;
}

/* ---------- No open role ---------- */
body.pc-page .pc-none {
    margin-bottom: clamp(40px, 4vw, 56px);
    padding: clamp(24px, 3vw, 40px);
    border: 1px solid var(--pns-line);
    border-radius: var(--pns-r-card);
    background: var(--pns-card);
}

body.pc-page h2.pc-none__h {
    margin: 0 0 16px !important;
    color: var(--pns-text) !important;
    font-size: var(--pns-h2-sm) !important;
    font-weight: 500 !important;
    text-align: left !important;
}

body.pc-page .pc-none p.pc-lead {
    margin: 0 0 22px !important;
}

/* ---------- The team picture: the five products of one company ---------- */
body.pc-page .pc-team li {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 10px 0 !important;
    border-top: 1px solid var(--pns-line-soft);
    color: var(--pns-text);
    font-size: 15px;
    font-weight: 500;
}

body.pc-page .pc-team li:first-child {
    border-top: 0;
}

body.pc-page .pc-team li i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: var(--pns-text);
    font-size: 15px;
    font-weight: 700;
}

body.pc-page .pc-team li.is-on span::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 8px;
    border-radius: 50%;
    background: var(--pns-lime-deep);
    vertical-align: middle;
}

body.pc-page .pc-features + .pp-steps {
    margin-top: clamp(40px, 4vw, 56px);
}

@media (max-width: 899px) {
    body.pc-page .pc-roles__grid,
    body.pc-page .pc-role__cols {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    body.pc-page article.pn-role {
        padding: 20px;
    }

    body.pc-page img.pc-hero__img {
        height: 220px;
    }
}
