/* ============================================================
   Career section (home page). Shares the backdrop and tokens of the
   Technology section (css/tech.css). Layout: a chamfered pitch panel on the
   left and an open-positions board on the right.
   ============================================================ */

.cr-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 24px;
    align-items: stretch;
    text-align: left;
    margin-top: 18px;
}

/* ── Pitch panel ───────────────────────────────────────────────────── */

.cr-pitch {
    --cut: 30px;
    --cut-big: 64px;
    position: relative;
    padding: 1px;
    background: var(--tk-edge);
    clip-path: polygon(var(--cut-big) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut-big));
}

.cr-pitch-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Top padding clears the big chamfer so the kicker is not up against the diagonal. */
    padding: 50px 36px 32px 40px;
    background:
        radial-gradient(ellipse at 14% 30%, rgba(120, 140, 255, 0.10) 0%, rgba(0, 0, 0, 0) 55%),
        linear-gradient(160deg, var(--tk-card) 0%, var(--tk-card-2) 100%);
    clip-path: polygon(var(--cut-big) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut-big));
}

.cr-pitch-inner::before,
.cr-pitch-inner::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 0 solid rgba(160, 190, 255, 0.45);
    pointer-events: none;
}

.cr-pitch-inner::before {
    top: 10px;
    right: 10px;
    border-top-width: 2px;
    border-right-width: 2px;
}

.cr-pitch-inner::after {
    bottom: 10px;
    left: 10px;
    border-bottom-width: 2px;
    border-left-width: 2px;
}

.cr-kicker {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #7dd3fc;
    margin-bottom: 12px;
}

html[data-theme="light"] .cr-kicker {
    color: #0b6fa8;
}

.cr-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 2.6vw, 2.6rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: 0.01em;
    margin: 0 0 14px;
    color: var(--tk-text);
}

.cr-text {
    font-family: var(--font-body);
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--tk-muted);
    margin: 0 0 18px;
    max-width: 52ch;
}

/* Concrete facts, ruled like the founder card's meta row but stacked. */
.cr-facts {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    border-top: 1px solid var(--tk-line);
}

.cr-facts li {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid var(--tk-line);
    font-family: var(--font-display);
    font-size: 1.04rem;
    line-height: 1.3;
    color: var(--tk-text);
}

.cr-facts-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tk-muted);
}

.cr-pitch .tk-actions {
    margin-top: auto;
}

.cr-note {
    margin: 14px 0 0;
    font-family: var(--font-display);
    font-size: 0.98rem;
    color: var(--tk-muted);
}

.cr-note a {
    color: var(--tk-text);
    text-decoration: none;
    border-bottom: 1px solid var(--tk-tile-border);
    transition: border-color var(--transition-fast);
}

.cr-note a:hover {
    color: var(--tk-text);
    border-color: var(--tk-text);
    text-decoration: none;
}

/* ── Positions board ───────────────────────────────────────────────── */

.cr-board {
    position: relative;
    display: flex;
    padding: 1px;
    background: var(--tk-edge);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.cr-board-inner {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    background: linear-gradient(170deg, var(--tk-card) 0%, var(--tk-card-2) 100%);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.cr-board-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--tk-line);
}

.cr-board-title {
    font-family: var(--font-display);
    font-size: 1.28rem;
    font-weight: 600;
    color: var(--tk-text);
}

.cr-board-count {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7dd3fc;
}

html[data-theme="light"] .cr-board-count {
    color: #0b6fa8;
}

.cr-roles {
    list-style: none;
    margin: 0;
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    justify-content: space-evenly;
}

.cr-role {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 12px 12px 10px;
    border-radius: 10px;
    color: var(--tk-text);
    text-decoration: none;
    transition: background var(--transition-fast);
}

.cr-role:hover,
.cr-role:focus-visible {
    background: var(--tk-row-hover);
    color: var(--tk-text);
    text-decoration: none;
    outline: none;
}

.cr-role + .cr-role,
.cr-roles li + li .cr-role {
    border-top: 1px solid var(--tk-line);
    border-radius: 0 0 10px 10px;
}

.cr-roles li + li .cr-role:hover {
    border-radius: 10px;
}

.cr-role-index {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--tk-muted);
    text-align: center;
}

.cr-role-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cr-role-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--tk-text);
}

.cr-role-meta {
    font-family: var(--font-display);
    font-size: 0.96rem;
    line-height: 1.2;
    color: var(--tk-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cr-role-meta .cr-dept {
    color: var(--tk-text);
}

.cr-role .tk-btn {
    pointer-events: none;
}

.cr-role:hover .tk-btn {
    border-color: rgba(167, 139, 250, 0.8);
}

/* ── Responsive ────────────────────────────────────────────────────── */

@media (max-width: 1199.98px) {
    .cr-pitch-inner {
        padding: 46px 28px 26px 32px;
    }

}

@media (max-width: 991.98px) {
    .cr-layout {
        grid-template-columns: 1fr;
    }

    .cr-roles {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .cr-pitch {
        --cut: 22px;
        --cut-big: 30px;
    }

    .cr-pitch-inner {
        padding: 32px 18px 22px 22px;
    }

    .cr-pitch .tk-actions .tk-btn {
        flex: 1 1 auto;
        text-align: center;
    }

    .cr-board,
    .cr-board-inner {
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
    }

    .cr-role {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 10px;
    }

    .cr-role .tk-btn {
        display: none;
    }

    .cr-role-meta {
        white-space: normal;
    }
}
