/* Palette and font matched to the site header/footer (Poppins, navy headings, slate text, Blue buttons with #467FF7 border) */
.pd-profile {
    --pd-blue: var(--e-global-color-4ab95de, #1D4ED8);
    --pd-accent: #467FF7;
    --pd-heading: #1C244B;
    --pd-text: #324A6D;
    --pd-lighter: var(--e-global-color-5407c2d, #E3F3FF);
    --pd-light: var(--e-global-color-027df15, #B8E1FF);
    --pd-failure: var(--e-global-color-acf544e, #C0695D);
    --pd-border: #C8D5DC;
    width: 100%;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    color: var(--pd-text);
}

.pd-profile [hidden] {
    display: none !important;
}

.pd-card {
    display: flex;
    gap: 32px;
    padding: 24px;
    border: 1px solid var(--pd-border);
    border-radius: 10px;
    background: #ffffff;
}

.pd-identity {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex: 0 0 40%;
    min-width: 0;
}

.pd-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--pd-lighter);
}

.pd-identity-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.pd-name,
.pd-edit-title {
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--pd-heading);
}

.pd-name {
    font-size: 22px;
    overflow-wrap: anywhere;
}

.pd-badge {
    align-self: flex-start;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    background-color: var(--pd-lighter);
    color: var(--pd-blue);
}

.pd-country,
.pd-bio {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--pd-text);
}

.pd-about {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.pd-details {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 16px;
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.pd-details dt {
    font-weight: 500;
    color: var(--pd-heading);
}

.pd-details dd {
    margin: 0;
    color: var(--pd-text);
}

.pd-empty {
    margin: 0;
    color: var(--pd-text);
}

/* Text links. Overrides the theme's default button hover/focus (pink background). */
.pd-profile a.pd-link,
.pd-profile button.pd-link,
.pd-profile button.pd-link:hover,
.pd-profile button.pd-link:focus {
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    font: inherit;
    font-weight: 500;
    text-decoration: none;
    color: var(--pd-accent);
    cursor: pointer;
}

.pd-profile a.pd-link:hover,
.pd-profile button.pd-link:hover {
    text-decoration: underline;
}

.pd-profile button.pd-link:focus-visible,
.pd-profile .pd-btn:focus-visible {
    outline: 2px solid var(--pd-light);
    outline-offset: 2px;
}

/* Edit mode */

.pd-edit {
    flex-direction: column;
    gap: 20px;
}

.pd-edit-title {
    font-size: 22px;
}

.pd-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
}

.pd-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.pd-field-wide {
    grid-column: 1 / -1;
}

.pd-field label,
.pd-field legend {
    font-weight: 500;
    font-size: 15px;
    color: var(--pd-heading);
}

.pd-field fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.pd-field legend {
    margin-bottom: 6px;
    padding: 0;
}

.pd-field input[type="text"],
.pd-field select,
.pd-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--pd-border);
    border-radius: 10px;
    background: #ffffff;
    font: inherit;
    color: var(--pd-heading);
}

.pd-field input[type="text"]:focus,
.pd-field select:focus,
.pd-field textarea:focus {
    outline: 2px solid var(--pd-light);
    outline-offset: 0;
    border-color: var(--pd-accent);
}

.pd-field input[type="file"] {
    max-width: 100%;
    font-size: 14px;
}

.pd-profile a.pd-current-file {
    font-size: 14px;
    color: var(--pd-accent);
}

.pd-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pd-field label.pd-choice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--pd-border);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 400;
    color: var(--pd-text);
    cursor: pointer;
}

.pd-field label.pd-choice:has(input:checked) {
    border-color: var(--pd-accent);
    background: var(--pd-lighter);
    color: var(--pd-blue);
}

.pd-choice input {
    accent-color: var(--pd-blue);
}

.pd-edit-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.pd-edit-status {
    margin: 0 auto 0 0;
    color: var(--pd-text);
}

.pd-edit-status.is-error {
    color: var(--pd-failure);
}

/* Buttons styled like the header button: Blue fill, #467FF7 border, transparent on hover */
.pd-profile .pd-btn {
    padding: 12px 28px;
    border: 1px solid var(--pd-accent);
    border-radius: 10px;
    box-shadow: none;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pd-profile .pd-btn-primary,
.pd-profile .pd-btn-primary:focus {
    background-color: var(--pd-blue);
    color: #ffffff;
}

.pd-profile .pd-btn-primary:hover {
    background-color: transparent;
    color: var(--pd-accent);
}

.pd-profile .pd-btn-secondary,
.pd-profile .pd-btn-secondary:focus {
    background-color: transparent;
    color: var(--pd-accent);
}

.pd-profile .pd-btn-secondary:hover {
    background-color: var(--pd-lighter);
    color: var(--pd-accent);
}

.pd-profile .pd-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

@media (max-width: 767px) {
    .pd-card {
        flex-direction: column;
        gap: 20px;
        padding: 16px;
    }

    .pd-identity {
        flex-basis: auto;
    }

    .pd-details,
    .pd-edit-grid {
        grid-template-columns: 1fr;
    }

    .pd-details dd {
        margin-bottom: 6px;
    }

    .pd-edit-actions {
        flex-wrap: wrap;
    }
}

.pd-verified { margin-top: 14px; padding: 12px 14px; border: 1px solid #12CE9040; border-radius: 10px; background: #12CE900A; }
.pd-verified-title { display: block; margin-bottom: 6px; font-size: 14px; color: #1C244B; }
.pd-verified ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.pd-verified li { display: flex; gap: 8px; }
.pd-verified-check { color: #0E9F6E; font-weight: 700; }
.pd-verified a { color: #1D4ED8; }
.pd-verified small { color: #7A8CA0; margin-left: 4px; }

/* "Sent for review" note after posting a project */
.pd-notice { margin: 0 0 16px; padding: 12px 16px; border: 1px solid #12CE9040; border-radius: 10px; background: #12CE9012; color: #0E7A55; font-size: 15px; }

/* Profile page: the widget fills its column, and the footer stays at the bottom of short profiles */
.elementor-widget-profile_details_pd1731 { flex: 1 1 100%; min-width: 0; }
body.page-id-1567 { display: flex; flex-direction: column; min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px)); }
body.page-id-1567 > #content { flex: 1 0 auto; width: 100%; }
body.page-id-1567 > header, body.page-id-1567 > footer { flex-shrink: 0; width: 100%; }

/* After switching account type: the new type's details */
.pd-complete-note { margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; background: var(--pd-lighter, #E3F3FF); color: var(--pd-text, #324A6D); font-size: 15px; }
.pd-field-new { padding: 10px 12px; border-radius: 10px; background: #FFF7E6; box-shadow: inset 3px 0 0 #F0B429; }
.pd-field-new > label::after, .pd-field-new legend::after { content: " · new"; color: #B7791F; font-weight: 500; font-size: 13px; }

/* Details adapt to the card's own width (narrow profile columns): values wrap, labels go above values, photo above details */
.pd-profile { container-type: inline-size; }
.pd-about { container-type: inline-size; }
.pd-details { grid-template-columns: minmax(0, max-content) minmax(0, 1fr); }
.pd-details dt, .pd-details dd { min-width: 0; overflow-wrap: anywhere; }
@container (max-width: 640px) {
 .pd-view { flex-direction: column; gap: 20px; }
 .pd-identity { flex-basis: auto; }
}
@container (max-width: 380px) {
 .pd-details { grid-template-columns: minmax(0, 1fr); gap: 2px; }
 .pd-details dd { margin-bottom: 8px; }
}


/* CV visibility (private by default) */
.pd-cv-visibility {
    font-size: 13px;
    color: var(--pd-text);
    opacity: 0.75;
}

.pd-field label.pd-cv-public {
    align-self: flex-start;
    margin-top: 4px;
}


/* Portfolio links */
.pd-field input[type="url"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--pd-border);
    border-radius: 10px;
    background: #ffffff;
    font: inherit;
    color: var(--pd-heading);
}
.pd-field input[type="url"]:focus {
    outline: 2px solid var(--pd-light);
    outline-offset: 0;
    border-color: var(--pd-accent);
}
.pd-portfolio-edit { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 0; padding: 0; border: 0; }
.pd-portfolio-edit .pd-hint { margin: 0; font-size: 13px; color: var(--pd-text); }
.pd-portfolio { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--pd-border); border-radius: 10px; background: #FFFFFF; }
.pd-portfolio ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.pd-portfolio a { display: inline-block; padding: 4px 12px; border: 1px solid var(--pd-border); border-radius: 999px; color: #1D4ED8; text-decoration: none; }
.pd-portfolio a:hover { border-color: var(--pd-accent); background: var(--pd-lighter); }


/* ---------- Projects: owns · on the team · past ---------- */
.pd-profile .pd-card.pd-projects { display: block; margin-top: 20px; }
.pd-projects-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin-bottom: 16px; }
.pd-profile .pd-projects-title { margin: 0; font-size: 18px; font-weight: 600; color: var(--pd-heading); }
.pd-projects-sum { margin: 0; font-size: 14px; color: #6B7C93; }
.pd-pgroups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; gap: 16px; }
.pd-pgroup { min-width: 0; padding: 14px 16px; border: 1px solid #E3EAF2; border-top: 3px solid var(--pd-accent); border-radius: 10px; background: #FAFBFD; }
.pd-pgroup-member { border-top-color: #12CE90; }
.pd-pgroup-past { border-top-color: #9AA8B8; }
.pd-profile .pd-pgroup-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 600; color: var(--pd-heading); }
.pd-pgroup-n { padding: 1px 8px; border-radius: 999px; background: var(--pd-lighter); font-size: 12px; font-weight: 600; color: var(--pd-blue); }
.pd-pgroup-hint { margin: 2px 0 0; font-size: 12px; color: #7A8CA0; }
.pd-plist { display: flex; flex-direction: column; margin: 12px 0 0; padding: 0; list-style: none; }
.pd-pitem { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-top: 1px solid #EDF1F6; }
.pd-pitem:first-child { padding-top: 0; border-top: 0; }
.pd-profile a.pd-ptitle { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; color: var(--pd-heading); }
.pd-profile a.pd-ptitle:hover { color: var(--pd-blue); text-decoration: underline; }
.pd-pmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; }
.pd-pstage { padding: 1px 8px; border-radius: 999px; background: #EEF2F7; font-size: 12px; font-weight: 500; color: #4A5D78; }
.pd-pstage-not_started { background: var(--pd-lighter); color: var(--pd-blue); }
.pd-pstage-in_progress { background: #12CE901A; color: #0E7C57; }
.pd-pstage-cancelled, .pd-pstage-restricted { background: #C0695D1A; color: #A9574C; }
.pd-pstage-pending { background: #F5B5001F; color: #8A6100; }
.pd-pwhen { color: #7A8CA0; }
.pd-pexcerpt { margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: #5A6B82; }
.pd-pactions { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 2px; font-size: 13px; }
.pd-profile .pd-pactions a { font-weight: 500; text-decoration: none; color: var(--pd-accent); }
.pd-profile .pd-pactions a:hover { text-decoration: underline; }
.pd-pnew { margin-left: 2px; padding: 1px 7px; border-radius: 999px; background: #F5B5001F; font-size: 11px; font-weight: 600; color: #8A6100; }
.pd-projects-head .pd-btn-small { order: 2; margin-left: auto; }
.pd-projects-head .pd-projects-sum { order: 3; flex-basis: 100%; }
.pd-profile .pd-btn.pd-btn-small { padding: 8px 14px; font-size: 13px; line-height: 1; }
.pd-pmore summary { margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--pd-accent); cursor: pointer; list-style: none; }
.pd-pmore summary::-webkit-details-marker { display: none; }
.pd-pmore[open] summary { display: none; }
.pd-pmore .pd-plist { margin-top: 0; }
.pd-pmore .pd-pitem:first-child { padding-top: 10px; border-top: 1px solid #EDF1F6; }
.pd-projects-empty p { margin: 0 0 14px; }
.pd-projects-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-profile a.pd-btn { text-decoration: none; }

/* ---------- Profile page layout: one centred column, no empty spacer columns ---------- */
body.page-id-1567 .elementor-element-246e4a2,
body.page-id-1567 .elementor-element-307df2f,
body.page-id-1567 .elementor-element-612d94a { display: none; }
body.page-id-1567 .elementor-element-2e4376a,
body.page-id-1567 .elementor-element-cb026d9 { width: 100%; max-width: 1000px; margin-left: auto; margin-right: auto; }
body.page-id-1567 .elementor-element-3ea420d { flex: 1 1 100%; max-width: 100%; }
body.page-id-1567 .elementor-element-cb026d9 { flex-wrap: wrap; align-items: flex-start; gap: 24px; }
body.page-id-1567 .elementor-element-3b66cf1,
body.page-id-1567 .elementor-element-5fde36a { flex: 1 1 380px; min-width: 0; }
body.page-id-1567 .elementor-element-3b66cf1:not(:has(.elementor-widget)),
body.page-id-1567 .elementor-element-5fde36a:not(:has(.elementor-widget)),
body.page-id-1567 .elementor-element-cb026d9:not(:has(.elementor-widget)) { display: none; }
.pd-pgroup-delivered { border-top-color: #F5B500; }
.pd-rating { display: block; margin-top: 6px; }
