/* Project page. Palette and font matched to the site (Poppins, navy #1C244B, slate #324A6D, accent #467FF7, Blue global) */
.pdx {
    --pdx-blue: var(--e-global-color-4ab95de, #1D4ED8);
    --pdx-accent: #467FF7;
    --pdx-heading: #1C244B;
    --pdx-text: #324A6D;
    --pdx-lighter: var(--e-global-color-5407c2d, #E3F3FF);
    --pdx-success: var(--e-global-color-45cba0d, #12CE90);
    --pdx-border: #C8D5DC;
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-family: "Poppins", sans-serif;
    color: var(--pdx-text);
}

.pdx-card {
    padding: 28px;
    background: #ffffff;
    border: 1px solid var(--pdx-border, #C8D5DC);
    border-radius: 10px;
}

.pdx-placeholder p {
    margin: 0;
}

.pdx .pdx-back {
    align-self: flex-start;
    font-weight: 500;
    color: var(--pdx-accent);
    text-decoration: none;
}

.pdx .pdx-back:hover {
    text-decoration: underline;
}

.pdx-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pdx-status {
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
}

.pdx-status-pending {
    background: var(--pdx-lighter);
    color: var(--pdx-blue);
}

.pdx .pdx-title {
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--pdx-heading);
    overflow-wrap: anywhere;
}

.pdx-meta {
    margin: 0;
    font-size: 15px;
}

.pdx-summary {
    margin: 6px 0 0;
    font-size: 18px;
    line-height: 1.55;
    color: var(--pdx-heading);
    font-weight: 400;
}

.pdx-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pdx-tags li {
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--pdx-lighter);
    color: var(--pdx-blue);
    font-size: 13px;
    font-weight: 500;
}

.pdx .pdx-h2 {
    margin: 0 0 14px;
    font-family: "Poppins", sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--pdx-heading);
}

.pdx-text p {
    margin: 0 0 10px;
    line-height: 1.6;
}

.pdx-text p:last-child {
    margin-bottom: 0;
}

.pdx-text ul {
    margin: 0 0 10px;
    padding-left: 1.2em;
}

.pdx-text li {
    margin: 4px 0;
}

.pdx-text li::marker {
    color: var(--pdx-blue);
}

.pdx-empty,
.pdx-note {
    margin: 0;
    font-size: 15px;
}

.pdx-note {
    margin: -6px 0 14px;
}

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

.pdx-role {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--pdx-border);
    border-radius: 10px;
    background: #F7FBFF;
}

.pdx-role-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.pdx .pdx-role-name {
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--pdx-heading);
    overflow-wrap: anywhere;
}

.pdx-badge {
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.pdx-badge-paid {
    background: #12CE9018;
    color: #0B7A55;
}

.pdx-badge-volunteer {
    background: var(--pdx-lighter);
    color: var(--pdx-blue);
}

.pdx-role-facts {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
}

.pdx-role-facts strong {
    font-weight: 500;
    color: var(--pdx-heading);
    margin-right: 4px;
}

.pdx-role-text {
    font-size: 15px;
    border-top: 1px solid var(--pdx-lighter);
    padding-top: 10px;
}

.pdx-agreement {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pdx-agreement details {
    border: 1px solid var(--pdx-border);
    border-radius: 10px;
    padding: 0 16px;
    background: #ffffff;
}

.pdx-agreement details[open] {
    border-color: var(--pdx-accent);
}

.pdx-agreement summary {
    padding: 14px 0;
    font-weight: 500;
    color: var(--pdx-heading);
    cursor: pointer;
    list-style-position: inside;
}

.pdx-agreement summary::marker {
    color: var(--pdx-blue);
}

.pdx-agreement details[open] summary {
    color: var(--pdx-blue);
}

.pdx-agreement details .pdx-text {
    padding-bottom: 14px;
    font-size: 15px;
}

/* Sidebar */
.pdx-sidebar {
    gap: 16px;
}

.pdx-creator {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pdx-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--pdx-lighter);
}

.pdx-creator-label {
    margin: 0;
    font-size: 13px;
}

.pdx .pdx-creator-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--pdx-heading);
    text-decoration: none;
}

.pdx a.pdx-creator-name:hover {
    color: var(--pdx-accent);
}

.pdx-facts {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 8px 16px;
    margin: 0 0 18px;
    font-size: 15px;
}

.pdx-facts dt {
    font-weight: 500;
    color: var(--pdx-heading);
}

.pdx-facts dd {
    margin: 0;
}

.pdx .pdx-btn {
    display: block;
    padding: 12px 20px;
    border: 1px solid var(--pdx-accent);
    border-radius: 10px;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pdx .pdx-btn-outline {
    background: transparent;
    color: var(--pdx-accent);
}

.pdx .pdx-btn-outline:hover {
    background: var(--pdx-lighter);
    color: var(--pdx-accent);
}

.pdx .pdx-btn-primary {
    background: var(--pdx-blue);
    color: #ffffff;
}

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

/* Jump-to-Apply button: only where the Apply card is below the content */
.pdx .pdx-jump {
    display: none;
}

@media (max-width: 1024px) {
    .pdx-roles {
        grid-template-columns: 1fr;
    }

    .pdx .pdx-jump {
        display: block;
        margin-top: 6px;
    }
}

@media (max-width: 767px) {
    .pdx-card {
        padding: 20px 16px;
    }

    .pdx .pdx-title {
        font-size: 30px;
    }

    .pdx-summary {
        font-size: 16px;
    }
}

/* Project number and Share */
.pdx-ref-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.pdx-ref { font-size: 13px; font-weight: 500; padding: 3px 10px; border-radius: 10px; background: #F3F6F8; color: #324A6D; }
.chub-share { position: relative; }
.pdx .chub-share-btn, .pdx .chub-share-btn:focus { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; background: #fff; border: 1px solid #467FF7; border-radius: 10px; box-shadow: none; font-family: "Poppins", sans-serif; font-size: 14px; font-weight: 500; color: #1D4ED8; cursor: pointer; }
.pdx .chub-share-btn:hover { background: #E3F3FF; color: #1D4ED8; }
.chub-share-menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 190px; display: flex; flex-direction: column; padding: 6px; background: #fff; border: 1px solid #C8D5DC; border-radius: 10px; box-shadow: 0 10px 28px rgba(28,36,75,.16); }
.chub-share-menu[hidden] { display: none; }
.chub-share-menu a, .pdx .chub-share-menu .chub-share-copy, .pdx .chub-share-menu .chub-share-copy:focus { display: block; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; box-shadow: none; text-align: left; font-family: "Poppins", sans-serif; font-size: 14px; font-weight: 400; color: #1C244B; text-decoration: none; cursor: pointer; }
.chub-share-menu a:hover, .pdx .chub-share-menu .chub-share-copy:hover { background: #E3F3FF; color: #1D4ED8; }
.chub-share-msg { padding: 0 10px; font-size: 12px; color: #0E9F6E; }
.chub-share-msg:empty { display: none; }

.pdx-badge-equity { background: #FFF4D6; color: #7A5600; border-color: #F5D48A; }

.pdx-comp { flex-basis: 100%; }

.pdx-deliverables { margin: 10px 0 6px; padding: 12px 14px; background: #fff; border: 1px solid #E3F3FF; border-radius: 10px; }
.pdx-deliv-title { display: block; margin-bottom: 6px; font-size: 14px; color: #1C244B; }
.pdx-deliverables ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.pdx-deliverables li { font-size: 14px; }
.pdx-deliv-name { font-weight: 500; color: #1C244B; }
.pdx-deliv-meta { margin-left: 8px; font-size: 12px; color: #467FF7; }
.pdx-deliv-done { display: block; font-size: 13px; color: #324A6D; }

/* Donation button (creator's own link) and the Restricted label */
.pdx .pdx-donate { margin-bottom: 6px; }
.pdx-donate-note { margin: 0 0 12px; font-size: 12px; line-height: 1.4; color: #6B7C93; text-align: center; }
.pdx-status-restricted { background: #C0695D14; color: #B32D2E; }
