:root {
    --profile-page-bg: #f5f7fc;
    --profile-surface: #ffffff;
    --profile-soft: #f8fbff;
    --profile-soft-blue: #eef5ff;
    --profile-chip-bg: #e5f4ff;
    --profile-text: #10233f;
    --profile-body: #526680;
    --profile-muted: #64758b;
    --profile-primary: #1967d2;
    --profile-primary-dark: #1558b0;
    --profile-primary-deep: #003591;
    --profile-border: #dfe7f3;
    --profile-success: #10a37f;
}

.public-profile-page,
.public-profile-page button,
.public-profile-page input,
.public-profile-page textarea {
    font-family: "Inter", sans-serif;
}

.public-profile-page {
    background: var(--profile-surface);
    color: var(--profile-text);
    font-size: 15px;
    line-height: 1.6;
    min-width: 0;
    overflow-x: clip;
}

.public-profile-page .container {
    width: min(100% - 48px, 1320px);
    max-width: 1320px;
    margin-inline: auto;
}

.public-profile-cover {
    position: relative;
    z-index: 1;
    min-height: 286px;
    isolation: isolate;
    overflow: visible;
    background: #0841a0;
    color: #fff;
}

.public-profile-cover-patterns,
.profile-cover-pattern {
    position: absolute;
    pointer-events: none;
}

.public-profile-cover-patterns {
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.profile-cover-pattern {
    display: block;
}

.profile-cover-corner {
    width: 220px;
    height: 220px;
    left: -126px;
    top: -116px;
    border-radius: 50%;
    background: #0a55c4;
}

.profile-cover-orbit {
    width: 720px;
    height: 720px;
    left: 17%;
    top: -585px;
    border: 4px solid rgba(23, 104, 218, 0.28);
    border-radius: 50%;
}

.profile-cover-ring {
    width: 140px;
    height: 140px;
    right: -70px;
    top: 55px;
    border: 26px solid rgba(22, 101, 218, 0.74);
    border-radius: 50%;
}

.profile-cover-lines {
    width: 135px;
    height: 135px;
    left: 13%;
    bottom: -18px;
    border-radius: 50%;
    background: repeating-linear-gradient(135deg, rgba(28, 111, 224, 0.38) 0 3px, transparent 3px 11px);
    opacity: 0.72;
}

.profile-cover-wave {
    width: 43%;
    height: 120px;
    left: 47%;
    bottom: -10px;
}

.profile-cover-wave path {
    fill: #0b59d0;
}

.public-profile-cover-inner {
    position: relative;
    z-index: 2;
    min-height: 286px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
    padding-top: 72px;
    padding-bottom: 28px;
}

.public-profile-identity {
    display: flex;
    align-items: flex-end;
    gap: 28px;
    min-width: 0;
}

.public-profile-avatar {
    position: relative;
    z-index: 3;
    width: 158px;
    height: 158px;
    flex: 0 0 158px;
    margin-bottom: -78px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 8px solid #fff;
    border-radius: 50%;
    background: #f8fbff;
    box-shadow: 0 10px 32px rgba(5, 32, 74, 0.14);
}

.public-profile-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.public-profile-avatar.is-company-logo img {
    object-fit: contain;
    padding: 12px;
}

.public-profile-avatar > span {
    font-size: 54px;
    line-height: 1;
    font-weight: 700;
    color: var(--profile-primary);
}

.public-profile-heading {
    min-width: 0;
    padding-bottom: 2px;
}

.profile-kicker {
    display: block;
    margin-bottom: 3px;
    font-size: 15px;
    line-height: 22px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.public-profile-heading h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 2.2vw, 44px);
    line-height: 1.18;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.public-profile-heading p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
    line-height: 24px;
}

.public-profile-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    padding-bottom: 2px;
}

.public-profile-actions form {
    margin: 0;
}

.profile-action {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: #fff;
    color: #164eac;
    padding: 9px 18px;
    font-size: 15px;
    line-height: 20px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.profile-action:hover,
.profile-action:focus-visible {
    border-color: #fff;
    color: var(--profile-primary-deep);
    transform: translateY(-1px);
}

.profile-action.is-selected,
.profile-action.is-primary {
    border-color: #cde1ff;
    background: #eaf3ff;
    color: #104fba;
}

.public-profile-socials {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 190px;
}

.public-profile-socials a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--profile-primary-deep);
    color: #fff;
    font-size: 21px;
    text-decoration: none;
    transition: background 160ms ease, transform 160ms ease;
}

.public-profile-socials a:hover,
.public-profile-socials a:focus-visible {
    background: var(--profile-primary);
    transform: translateY(-2px);
}

.public-profile-content {
    padding: 36px 0 80px;
}

.profile-flash,
.profile-errors {
    margin-bottom: 24px;
    border: 1px solid #bcd8ff;
    border-radius: 8px;
    background: var(--profile-soft-blue);
    color: var(--profile-primary-dark);
    padding: 14px 16px;
    font-size: 15px;
}

.profile-errors {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #be123c;
}

.public-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 0.92fr);
    gap: 44px;
    align-items: start;
}

.public-profile-main,
.public-profile-aside {
    min-width: 0;
}

.public-profile-main {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.public-profile-aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-content-section {
    min-width: 0;
    padding: 28px 0;
    border-bottom: 1px dashed var(--profile-border);
}

.profile-content-section:first-child {
    padding-top: 0;
}

.profile-content-section:last-child {
    border-bottom: 0;
}

.profile-content-section > h2,
.profile-chip-group > h2,
.profile-section-heading h2,
.profile-aside-card > h2 {
    margin: 0 0 16px;
    color: var(--profile-text);
    font-size: 22px;
    line-height: 32px;
    font-weight: 650;
    letter-spacing: 0;
}

.profile-rich-copy,
.profile-content-section > p,
.company-story-grid p {
    color: var(--profile-body);
    font-size: 15px;
    line-height: 24px;
}

.profile-rich-copy > :first-child {
    margin-top: 0;
}

.profile-rich-copy > :last-child {
    margin-bottom: 0;
}

.profile-empty {
    color: var(--profile-muted);
    font-size: 15px;
    line-height: 24px;
}

.profile-video-section {
    padding: 8px 0 26px;
    border-bottom: 1px dashed var(--profile-border);
}

.profile-video-placeholder {
    min-height: 310px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border-radius: 8px;
    background: #e7ebf0;
    color: var(--profile-primary);
    text-decoration: none;
}

.profile-video-placeholder span {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 5px 18px rgba(16, 35, 63, 0.08);
    font-size: 26px;
}

.profile-video-placeholder strong {
    font-size: 15px;
    line-height: 22px;
}

.profile-credential-section {
    display: grid;
    gap: 24px;
}

.profile-chip-group > h2 {
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 26px;
}

.profile-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-display-chip {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--profile-chip-bg);
    color: var(--profile-primary-dark);
    padding: 5px 14px;
    font-size: 15px;
    line-height: 22px;
    font-weight: 500;
}

.profile-display-chip.is-green {
    background: #eaf8f3;
    color: #087a61;
}

.profile-timeline {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.profile-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 122px 18px minmax(0, 1fr);
    gap: 14px;
    min-width: 0;
}

.profile-timeline-item:not(:last-child)::after {
    position: absolute;
    top: 20px;
    bottom: -28px;
    left: 144px;
    width: 2px;
    content: "";
    background: #dbe6f3;
}

.profile-timeline-item time {
    color: var(--profile-muted);
    font-size: 15px;
    line-height: 22px;
    font-weight: 500;
}

.profile-timeline-dot {
    position: relative;
    z-index: 1;
    width: 10px;
    height: 10px;
    margin: 6px auto 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--profile-primary);
    box-shadow: 0 0 0 1px var(--profile-primary);
}

.profile-timeline.is-education .profile-timeline-dot {
    background: var(--profile-success);
    box-shadow: 0 0 0 1px var(--profile-success);
}

.profile-timeline-item h3 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--profile-primary-dark);
    font-size: 16px;
    line-height: 24px;
    font-weight: 650;
}

.profile-timeline.is-education .profile-timeline-item h3 { color: var(--profile-success); }

.timeline-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    background: #fff6e8;
    color: #c87900;
    padding: 3px 10px;
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
}

.profile-timeline-item p {
    margin: 5px 0 0;
    color: var(--profile-text);
    font-size: 15px;
    line-height: 23px;
}

.profile-timeline-item .timeline-meta {
    color: var(--profile-text);
}

.profile-aside-card {
    min-width: 0;
    border: 1px solid var(--profile-border);
    border-radius: 12px;
    background: var(--profile-soft);
    padding: 24px;
}

.profile-overview-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-overview-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
}

.profile-overview-item > span {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--profile-primary);
    color: #fff;
    font-size: 19px;
}

.profile-overview-item > div {
    min-width: 0;
}

.profile-overview-item strong,
.profile-aside-text strong {
    display: block;
    color: var(--profile-text);
    font-size: 15px;
    line-height: 22px;
    font-weight: 650;
}

.profile-overview-item p,
.profile-aside-text p {
    margin: 2px 0 0;
    color: var(--profile-muted);
    font-size: 15px;
    line-height: 22px;
    overflow-wrap: anywhere;
}

.profile-aside-text {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--profile-border);
}

.profile-contact-card form {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.profile-contact-card label {
    margin-top: 4px;
    color: var(--profile-text);
    font-size: 15px;
    line-height: 22px;
    font-weight: 600;
}

.profile-contact-card label span {
    color: var(--profile-muted);
    font-weight: 400;
}

.profile-contact-card input,
.profile-contact-card textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid #dde8f4;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: var(--profile-text);
    padding: 10px 12px;
    font-size: 15px;
    line-height: 22px;
}

.profile-contact-card textarea {
    min-height: 134px;
    resize: vertical;
}

.profile-contact-card input:focus,
.profile-contact-card textarea:focus {
    border-color: var(--profile-primary);
    box-shadow: 0 0 0 3px rgba(25, 103, 210, 0.12);
}

.profile-contact-card button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 8px;
    border: 0;
    border-radius: 8px;
    background: var(--profile-primary);
    color: #fff;
    padding: 10px 16px;
    font-size: 15px;
    line-height: 20px;
    font-weight: 600;
    cursor: pointer;
}

.company-story-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 32px;
}

.company-story-grid > div {
    min-width: 0;
}

.company-story-grid .is-wide {
    grid-column: 1 / -1;
}

.company-story-grid h2 {
    margin: 0 0 8px;
    color: var(--profile-text);
    font-size: 22px;
    line-height: 32px;
    font-weight: 650;
}

.company-story-grid h3 {
    margin: 0 0 8px;
    color: var(--profile-text);
    font-size: 18px;
    line-height: 26px;
    font-weight: 650;
}

.company-story-grid p {
    margin: 0;
    white-space: pre-line;
}

.company-story-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding-top: 4px;
}

.company-story-details > div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.public-profile-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.public-profile-gallery a {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
    background: #edf1f5;
}

.public-profile-gallery img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.profile-document-list {
    display: grid;
    gap: 10px;
}

.profile-document-list > a {
    min-width: 0;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--profile-border);
    border-radius: 8px;
    color: var(--profile-primary-dark);
    padding: 12px;
    text-decoration: none;
}

.profile-document-list > a > i:first-child {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--profile-soft-blue);
    font-size: 19px;
}

.profile-document-list span,
.profile-document-list strong,
.profile-document-list small {
    min-width: 0;
    display: block;
    overflow-wrap: anywhere;
}

.profile-document-list strong {
    color: var(--profile-text);
    font-size: 15px;
    line-height: 22px;
}

.profile-document-list small {
    color: var(--profile-muted);
    font-size: 13px;
    line-height: 18px;
}

.related-profile-section {
    max-width: calc((100% - 44px) * 0.685);
    margin-top: 54px;
}

.profile-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.profile-section-heading h2 {
    margin-bottom: 18px;
}

.profile-section-heading > span {
    color: var(--profile-muted);
    font-size: 15px;
}

.related-profile-list,
.public-job-list {
    display: grid;
    gap: 14px;
}

.related-profile-list article,
.public-job-list article {
    min-width: 0;
    display: grid;
    align-items: center;
    border: 1px solid var(--profile-border);
    border-radius: 8px;
    background: #fff;
    padding: 16px;
}

.related-profile-list article {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 16px;
}

.related-profile-list img {
    width: 58px;
    height: 58px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    background: var(--profile-soft);
}

.related-profile-list strong,
.related-profile-list a,
.public-job-copy h3,
.public-job-copy h3 a {
    color: var(--profile-text);
    font-size: 16px;
    line-height: 24px;
    font-weight: 650;
    text-decoration: none;
}

.related-profile-list article > div > a {
    display: block;
    color: var(--profile-primary);
    font-size: 15px;
    font-weight: 500;
}

.related-profile-list p,
.public-job-copy p {
    margin: 2px 0 0;
    color: var(--profile-muted);
    font-size: 15px;
    line-height: 22px;
}

.related-profile-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--profile-soft-blue);
    color: var(--profile-primary) !important;
    padding: 8px 14px;
    font-size: 15px !important;
    line-height: 20px !important;
    font-weight: 600 !important;
    white-space: nowrap;
    text-decoration: none;
}

.profile-text-link {
    width: fit-content;
    display: block;
    margin: 20px auto 0;
    color: var(--profile-primary-dark);
    font-size: 15px;
    line-height: 22px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.employer-open-jobs {
    max-width: calc((100% - 44px) * 0.685);
}

.public-job-list article {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 16px;
}

.public-job-logo {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--profile-soft);
    color: var(--profile-primary);
    font-size: 23px;
    font-weight: 700;
}

.public-job-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    padding: 6px;
}

.public-job-copy {
    min-width: 0;
}

.public-job-copy h3 {
    margin: 0;
}

.public-job-copy .profile-chip-list {
    margin-top: 10px;
}

.public-job-copy .profile-display-chip {
    min-height: 28px;
    padding: 3px 11px;
}

.public-profile-empty-card {
    border: 1px solid var(--profile-border);
    border-radius: 8px;
    background: var(--profile-soft);
    color: var(--profile-muted);
    padding: 24px;
    font-size: 15px;
}

@media (max-width: 1100px) {
    .public-profile-layout {
        grid-template-columns: minmax(0, 1.65fr) minmax(290px, 1fr);
        gap: 28px;
    }

    .public-profile-cover-inner {
        align-items: flex-end;
    }

    .public-profile-actions {
        max-width: 390px;
    }

    .related-profile-section,
    .employer-open-jobs {
        max-width: calc((100% - 28px) * 0.623);
    }
}

@media (max-width: 860px) {
    .public-profile-page .container {
        width: min(100% - 32px, 720px);
    }

    .public-profile-cover {
        min-height: 360px;
    }

    .public-profile-cover-inner {
        min-height: 360px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
        gap: 18px;
        padding-top: 48px;
        padding-bottom: 24px;
    }

    .public-profile-identity {
        align-items: center;
        gap: 18px;
    }

    .public-profile-avatar {
        width: 118px;
        height: 118px;
        flex-basis: 118px;
        margin-bottom: 0;
        border-width: 6px;
    }

    .public-profile-actions {
        max-width: none;
        justify-content: flex-start;
        padding-left: 136px;
    }

    .public-profile-socials {
        min-height: 72px;
        padding-left: 0;
    }

    .public-profile-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .public-profile-aside {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .profile-contact-card {
        grid-column: 1 / -1;
    }

    .related-profile-section,
    .employer-open-jobs {
        max-width: none;
    }
}

@media (max-width: 620px) {
    .public-profile-page .container {
        width: min(100% - 24px, 520px);
    }

    .public-profile-cover {
        min-height: 430px;
    }

    .public-profile-cover-inner {
        min-height: 430px;
        padding-top: 34px;
    }

    .public-profile-identity {
        align-items: flex-start;
    }

    .public-profile-avatar {
        width: 96px;
        height: 96px;
        flex-basis: 96px;
    }

    .public-profile-avatar > span {
        font-size: 36px;
    }

    .profile-kicker {
        font-size: 13px;
        line-height: 18px;
    }

    .public-profile-heading h1 {
        font-size: 30px;
        line-height: 36px;
    }

    .public-profile-actions {
        width: 100%;
        padding-left: 0;
    }

    .profile-action,
    .public-profile-actions form {
        flex: 1 1 auto;
    }

    .public-profile-actions form .profile-action {
        width: 100%;
    }

    .public-profile-socials a {
        width: 38px;
        height: 38px;
    }

    .public-profile-content {
        padding-top: 24px;
        padding-bottom: 56px;
    }

    .public-profile-aside,
    .company-story-grid,
    .company-story-details,
    .public-profile-gallery {
        grid-template-columns: 1fr;
    }

    .company-story-grid .is-wide,
    .company-story-details > div:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .profile-content-section {
        padding: 24px 0;
    }

    .profile-video-placeholder {
        min-height: 230px;
    }

    .profile-timeline-item {
        grid-template-columns: 16px minmax(0, 1fr);
        gap: 12px;
    }

    .profile-timeline-item time {
        grid-column: 2;
        grid-row: 1;
        margin-bottom: -4px;
    }

    .profile-timeline-dot {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .profile-timeline-item > div {
        grid-column: 2;
        grid-row: 2;
    }

    .profile-timeline-item:not(:last-child)::after {
        top: 22px;
        bottom: -28px;
        left: 7px;
    }

    .profile-aside-card {
        padding: 20px;
    }

    .related-profile-list article,
    .public-job-list article {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 12px;
    }

    .related-profile-list img,
    .public-job-logo {
        width: 50px;
        height: 50px;
    }

    .related-profile-button,
    .public-job-actions {
        grid-column: 2;
        justify-self: start;
    }

    .profile-cover-corner {
        width: 120px;
        height: 120px;
        left: -72px;
        top: -60px;
    }

    .profile-cover-orbit {
        width: 360px;
        height: 360px;
        left: 6%;
        top: -250px;
        border-width: 2px;
    }

    .profile-cover-ring {
        width: 80px;
        height: 80px;
        right: -51px;
        top: 58px;
        border-width: 15px;
    }

    .profile-cover-lines {
        width: 92px;
        height: 92px;
        left: -18px;
        bottom: 8px;
        opacity: 0.48;
    }

    .profile-cover-wave {
        width: 78%;
        height: 72px;
        left: 40%;
        bottom: -13px;
    }
}
