/* Member profile. Scoped under the theme content wrapper. */

.cp-postcontent .cp-person {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.25rem 0 1.5rem;
    color: #32281f;
}

.cp-postcontent .cp-person-header {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.25rem 1.5rem;
    align-items: start;
    margin: 0 0 1.75rem;
}

.cp-postcontent .cp-person-header--no-photo {
    grid-template-columns: 1fr;
}

.cp-postcontent .cp-person-photo {
    width: 140px;
}

.cp-postcontent .cp-person-headshot,
.cp-postcontent .cp-person-photo-upload {
    display: block;
    width: 140px !important;
    max-width: 140px !important;
    height: auto !important;
    aspect-ratio: 4 / 5;
    margin: 0 !important;
    object-fit: cover;
    background: #3a1010;
}

.cp-postcontent .cp-person-photo-upload,
.cp-postcontent .cp-person-photo-upload:link,
.cp-postcontent .cp-person-photo-upload:visited {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0.65rem;
    color: #f3e6d8 !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: 0.02em;
    text-align: center;
    text-decoration: none !important;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.14), transparent 42%),
        linear-gradient(180deg, #6e2420 0%, #3c1010 100%);
}

.cp-postcontent .cp-person-photo-upload:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

.cp-postcontent .cp-person-name {
    margin: 0 0 0.35rem !important;
    color: #3d2314 !important;
    font-size: 1.85rem !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
}

.cp-postcontent .cp-person > .cp-person-owner-notice {
    margin: 0 0 1rem !important;
}

.cp-postcontent .cp-person-owner-notice {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.875rem !important;
    line-height: 1.45 !important;
    color: #6b635c !important;
    background: #f7f4f0 !important;
    border-left: 3px solid #c4b8a8 !important;
    font-weight: 400 !important;
}

.cp-postcontent .cp-person-owner-notice-link,
.cp-postcontent .cp-person-owner-notice-link:link,
.cp-postcontent .cp-person-owner-notice-link:visited {
    color: #741f11 !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
}

.cp-postcontent .cp-person p {
    margin: 0.35rem 0 !important;
}

.cp-postcontent .cp-person-current {
    font-weight: 700;
    color: #3d2314;
}

.cp-postcontent .cp-person-since {
    color: #6b635c;
    font-size: 0.92rem;
}

.cp-postcontent .cp-person-bio {
    margin-top: 0.65rem;
    max-width: 38rem;
}

.cp-postcontent .cp-person-bio p {
    margin: 0.4rem 0 !important;
    line-height: 1.45;
}

.cp-postcontent .cp-person-bio a.cp-person-edit,
.cp-postcontent .cp-person-bio a.cp-person-edit:link,
.cp-postcontent .cp-person-bio a.cp-person-edit:visited {
    display: inline-block;
    margin: 0.15rem 0 0 !important;
    font-weight: 700;
}

.cp-postcontent .cp-person-history {
    margin-top: 0.85rem;
}

.cp-postcontent .cp-person-history summary {
    cursor: pointer;
    font-weight: 700;
    color: #741F11;
}

.cp-postcontent .cp-person-history ul {
    margin: 0.45rem 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.cp-postcontent .cp-person-history li {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.65rem;
    margin: 0 !important;
    padding: 0.28rem 0 !important;
    border-bottom: 1px solid #e4d8cc;
    font-size: 0.95rem !important;
    line-height: 1.35 !important;
    overflow: visible !important;
}

.cp-postcontent .cp-person-history li:before {
    content: none !important;
    display: none !important;
}

.cp-postcontent .cp-person-history-role {
    font-weight: 700;
    color: #3d2314;
}

.cp-postcontent .cp-person-history-term {
    color: #6b635c;
}

.cp-postcontent .cp-person-credits-title {
    margin: 0 0 0.65rem !important;
    color: #3d2314 !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

/* THEME OVERRIDE: bare button rules and width:100% inputs. */
.cp-postcontent .cp-person-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 0.85rem;
}

.cp-postcontent .cp-person-filter {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: auto !important;
    min-height: 44px;
    margin: 0 !important;
    padding: 0.35rem 0.9rem !important;
    border: 1px solid #c4b2a4 !important;
    border-radius: 2px !important;
    background: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #3d2314 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-indent: 0 !important;
    cursor: pointer;
}

.cp-postcontent .cp-person-filter.is-active {
    background: #741F11 !important;
    border-color: #741F11 !important;
    color: #fff !important;
}

.cp-postcontent .cp-person-filter:disabled {
    opacity: 0.55;
    cursor: not-allowed !important;
}

.cp-postcontent .cp-person-filter-empty {
    margin: 0 0 0.75rem !important;
    color: #6b635c;
}

.cp-postcontent .cp-person-credit[hidden] {
    display: none !important;
}

/* Four-column cards (poster left; card chrome matches shows archive --cards-3) */
.cp-postcontent .cp-person-credit-list--cards-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem 0.6rem;
    align-items: stretch;
    margin-top: 0.15rem;
}

.cp-postcontent .cp-person-credit-list--cards-4 .cp-person-credit {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0;
    border: 1px solid #e4d8cc;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(61, 35, 20, 0.06);
    overflow: hidden;
}

.cp-postcontent .cp-person-credit-list--cards-4 .cp-person-credit-poster {
    margin: 0;
    line-height: 0;
}

.cp-postcontent .cp-person-credit-list--cards-4 .cp-person-credit-poster a {
    display: block;
    line-height: 0;
}

.cp-postcontent .cp-person-credit-list--cards-4 img.cp-person-poster,
.cp-postcontent .cp-person-credit-list--cards-4 .cp-person-poster-empty {
    width: 72px !important;
    max-width: 72px !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    aspect-ratio: 2 / 3;
    object-fit: cover !important;
    object-position: top center;
    display: block;
    vertical-align: top;
}

.cp-postcontent .cp-person-credit-list--cards-4 img.cp-person-poster {
    background: transparent !important;
}

.cp-postcontent .cp-person-credit-list--cards-4 .cp-person-credit-body {
    min-width: 0;
    padding: 0.35rem 0.25rem 0.35rem 0;
}

.cp-postcontent .cp-person-credit-list--cards-4 .cp-person-credit-meta {
    margin: 0 0 0.05rem !important;
}

.cp-postcontent .cp-person-credit-list--cards-4 .cp-person-credit-title {
    margin: 0 0 0.15rem !important;
}

.cp-postcontent .cp-person-credit-list--cards-4 .cp-person-credit-roles {
    margin: 0.1rem 0 0 !important;
}

.cp-postcontent .cp-person-credit-list--cards-4 .cp-person-credit-title a {
    display: block;
    overflow-wrap: anywhere;
}

.cp-postcontent .cp-person-credit-poster {
    display: block;
    width: 72px !important;
    max-width: 72px !important;
    min-width: 0;
    min-height: 0;
    line-height: 0;
    text-decoration: none !important;
}

.cp-postcontent .cp-person-poster,
.cp-postcontent .cp-person-poster-empty {
    display: block;
    box-sizing: border-box;
    width: 72px !important;
    max-width: 72px !important;
    height: auto !important;
    margin: 0 !important;
}

.cp-postcontent img.cp-person-poster {
    max-height: 112px !important;
    object-fit: contain !important;
    object-position: top center;
    background: transparent !important;
}

.cp-postcontent .cp-person-poster-empty {
    display: flex;
    aspect-ratio: 2 / 3 !important;
    align-items: center;
    justify-content: center;
    color: #f3e6d8;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.14), transparent 42%),
        linear-gradient(180deg, #6e2420 0%, #3c1010 100%);
}

.cp-postcontent .cp-person-poster-mark {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
}

.cp-postcontent .cp-person-credit-meta {
    margin: 0 0 0.1rem !important;
    font-size: 0.8rem;
    color: #6b635c;
}

.cp-postcontent .cp-person-credit-upcoming {
    font-weight: 700;
    color: #741F11;
}

.cp-postcontent .cp-person-credit-year + .cp-person-credit-upcoming {
    margin-left: 0.45rem;
}

.cp-postcontent .cp-person-credit-title {
    margin: 0 !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

.cp-postcontent .cp-person-credit-title a,
.cp-postcontent .cp-person-credit-title a:link,
.cp-postcontent .cp-person-credit-title a:visited {
    color: #3d2314 !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.cp-postcontent .cp-person-credit-title a:hover {
    color: #741F11 !important;
    text-decoration: underline !important;
}

.cp-postcontent .cp-person-credit-roles {
    margin: 0.15rem 0 0 !important;
    color: #6b635c;
    font-size: 0.92rem;
}

.cp-postcontent .cp-person-credit-cast + .cp-person-credit-crew:before {
    content: " · ";
}

@media screen and (max-width: 1100px) {
    .cp-postcontent .cp-person-credit-list--cards-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 900px) {
    .cp-postcontent .cp-person-credit-list--cards-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 640px) {
    .cp-postcontent .cp-person-header {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .cp-postcontent .cp-person-history li {
        justify-content: center;
    }

    .cp-postcontent .cp-person-filters {
        justify-content: center;
    }

    .cp-postcontent .cp-person-credit-list--cards-4 {
        display: block;
    }

    .cp-postcontent .cp-person-credit-list--cards-4 .cp-person-credit {
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 0.75rem;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
        background: transparent;
        border-bottom: 1px solid #e4d8cc;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }

    .cp-postcontent .cp-person-credit-list--cards-4 .cp-person-credit-body {
        padding: 0.35rem 0.2rem 0.35rem 0;
        overflow-wrap: anywhere;
    }
}
