/* CP Shows - frontend styles, scoped under the theme content wrapper */

.cp-postcontent .cp-shows-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.15rem 0.15rem 0.35rem;
}

.cp-postcontent .cp-shows-add-link {
    margin: 0 0 0.5rem !important;
}

.cp-postcontent .cp-shows-gallery-note {
    margin: 0 0 0.65rem !important;
    line-height: 1.45;
}

.cp-postcontent .cp-shows-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
    margin: 0 0 0.65rem;
}

.cp-postcontent .cp-shows-search {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex: 1 1 220px;
    min-width: 0;
    margin: 0;
}

.cp-postcontent .cp-shows-sort-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 0 1 auto;
}

.cp-postcontent .cp-shows-sort-wrap label {
    margin: 0;
    font-weight: 700;
    color: #3d2314;
    white-space: nowrap;
}

.cp-postcontent .cp-shows-live {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cp-postcontent .cp-shows-search label {
    margin: 0;
    font-weight: 700;
    color: #3d2314;
    flex-shrink: 0;
}

.cp-postcontent .cp-shows-listing {
    margin-top: 0.15rem;
}

/* Archive: three-column cards (poster left, details right in each card) */
.cp-postcontent .cp-shows-listing--cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem 0.6rem;
    align-items: stretch;
}

.cp-postcontent .cp-shows-listing--cards-3 .cp-show-row {
    grid-template-columns: 104px 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-shows-listing--cards-3 .cp-show-row-poster {
    margin: 0;
}

.cp-postcontent .cp-shows-listing--cards-3 .cp-show-row-poster a {
    display: block;
}

.cp-postcontent .cp-shows-listing--cards-3 .cp-show-poster,
.cp-postcontent .cp-shows-listing--cards-3 .cp-show-poster-empty {
    width: 104px !important;
    max-width: 104px !important;
    height: auto !important;
    margin: 0 !important;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}
/*
.cp-postcontent .cp-shows-listing--cards-3 .cp-show-row-body {
    padding: 0.5rem 0.3rem 0.5rem 0;
    min-width: 0;
}
*/
.cp-postcontent .cp-show-row {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 1.35rem;
    align-items: center;
    padding: 0.55rem 0.2rem;
    border-bottom: 1px solid #e4d8cc;
}

.cp-postcontent .cp-show-row[hidden] {
    display: none !important;
}

.cp-postcontent .cp-show-row-poster a {
    display: block;
    text-decoration: none !important;
}

.cp-postcontent .cp-show-row-body {
    min-width: 0;
    padding: 0.05rem 0;
}

.cp-postcontent .cp-show-row-poster,
.cp-postcontent .cp-show-row-poster a,
.cp-postcontent .cp-show-poster,
.cp-postcontent .cp-show-poster-empty {
    box-sizing: border-box;
}

.cp-postcontent .cp-show-poster {
    width: 104px !important;
    max-width: 104px !important;
    height: auto !important;
    margin: 0 !important;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: #3a1010;
    display: block;
}

.cp-postcontent .cp-show-poster-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 104px;
    aspect-ratio: 2 / 3;
    padding: 0.55rem;
    text-align: 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-show-poster-initials {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.02em;
    font-size: calc(1.35rem * var(--cp-initials-scale, 1));
    max-width: 100%;
}

.cp-postcontent .cp-show-poster-year {
    font-size: 0.55rem;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.82;
}

.cp-postcontent .cp-show-poster-mark {
    font-weight: 700;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    line-height: 1;
}

.cp-postcontent .cp-show-poster-mark--sub {
    margin-top: 0.15rem;
    font-size: 0.55rem;
    opacity: 0.7;
}

.cp-postcontent .cp-show-wing-empty .cp-show-poster-initials {
    font-size: calc(clamp(2.5rem, 12vw, 4.25rem) * var(--cp-initials-scale, 1));
}

.cp-postcontent .cp-show-wing-empty .cp-show-poster-year {
    font-size: 0.78rem;
    margin-top: 0.15rem;
}

.cp-postcontent .cp-show-wing-empty .cp-show-poster-mark--sub {
    margin-top: 0.5rem;
    font-size: 0.65rem;
}

.cp-postcontent .cp-show-title,
.cp-postcontent .cp-show-title-large {
    margin: 0 0 0.15rem !important;
    color: #3d2314 !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.cp-postcontent .cp-shows-archive .cp-show-title,
.cp-postcontent .cp-shows-archive .cp-show-title a,
.cp-postcontent .cp-shows-archive .cp-show-title a:link,
.cp-postcontent .cp-shows-archive .cp-show-title a:visited,
.cp-postcontent .cp-shows-archive .cp-show-title a:hover {
    font-size: 1.15rem !important;
    color: #3d2314 !important;
    text-decoration: none !important;
}

.cp-postcontent .cp-shows-archive .cp-show-title a:hover {
    text-decoration: underline !important;
}

.cp-postcontent .cp-show-dates {
    margin: 0.05rem 0 0rem !important;
    color: #5e5e5e;
    font-size: 0.95rem;
}

.cp-postcontent .cp-show-role {
    color: #5e5e5e;
}

.cp-postcontent .cp-show-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 1.25rem;
    margin: 0.1rem 0 0 !important;
}

.cp-postcontent .cp-show-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #741F11 !important;
    font-weight: 700;
}

.cp-postcontent .cp-shows-archive .cp-show-row-actions .cp-show-row-ticket-link {
    margin: 0;
    padding: 0.45rem 1rem !important;
    min-height: 36px;
    font-size: 0.9rem !important;
    line-height: 1 !important;
}

.cp-postcontent .cp-shows-listing--cards-3 .cp-show-row-actions {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0.65rem;
}

.cp-postcontent .cp-shows-listing--cards-3 .cp-show-row-actions-media {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.cp-postcontent .cp-shows-archive .cp-show-row-actions a:not(.cp-show-ticket-link) {
    min-height: 40px;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: #705648 !important;
    text-decoration: underline;
    text-decoration-color: rgba(112, 86, 72, 0.35);
    text-underline-offset: 0.14em;
    white-space: nowrap;
}

.cp-postcontent .cp-shows-listing--cards-3 .cp-show-row-actions a:not(.cp-show-ticket-link) {
    min-height: 0;
    padding: 0.35rem 0;
    line-height: 1.25;
}

.cp-postcontent .cp-shows-archive .cp-show-row-actions a:not(.cp-show-ticket-link):hover,
.cp-postcontent .cp-shows-archive .cp-show-row-actions a:not(.cp-show-ticket-link):focus {
    color: #7a3d2e !important;
    font-weight: 600 !important;
    text-decoration-color: rgba(122, 61, 46, 0.5);
}

.cp-postcontent .cp-show-ticket-status.is-sold-out {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding: 0.45rem 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #5c5148 !important;
    text-decoration: none !important;
}

.cp-postcontent .cp-show-wing-tickets .cp-show-ticket-status.is-sold-out {
    margin: 0.5rem 0 1rem;
    font-size: 1rem;
}

.cp-postcontent .cp-show-single {
    max-width: 1200px;
    margin: 0 auto;
}

.cp-postcontent .cp-show-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 0 0 1.5rem;
}

.cp-postcontent .cp-show-detail {
    padding: 0.9rem 1rem;
    background: #f7f3ee;
    border-radius: 6px;
}

.cp-postcontent .cp-show-detail-label {
    font-weight: 700;
    color: #3d2314;
    margin-bottom: 0.2rem;
}

.cp-postcontent .cp-show-detail-value {
    color: #4d433c;
}

.cp-postcontent .cp-show-synopsis,
.cp-postcontent .cp-show-cast-summary,
.cp-postcontent .cp-show-member {
    margin: 1.5rem 0;
    padding: 1.2rem 1.3rem;
    background: #f7f3ee;
    border-radius: 8px;
}

.cp-postcontent .cp-show-performances,
.cp-postcontent .cp-show-company {
    margin: 1.5rem 0;
}

.cp-postcontent .cp-performances-list {
    display: grid;
    gap: 0.75rem;
}

.cp-postcontent .cp-performance-item {
    padding: 0.9rem 1rem;
    background: #f7f3ee;
    border-radius: 6px;
    border-left: 4px solid #7a2e2e;
}

.cp-postcontent .cp-performance-date {
    font-weight: 700;
    color: #3d2314;
}

.cp-postcontent .cp-performance-notes {
    color: #5c5148;
    margin-top: 0.25rem;
}

/* THEME OVERRIDE: ticket CTA beats .cp-show-actions link colour and .cp-postcontent a. */
.cp-postcontent a.cp-show-ticket-link,
.cp-postcontent a.cp-show-ticket-link:link,
.cp-postcontent a.cp-show-ticket-link:visited,
.cp-postcontent .cp-show-actions a.cp-show-ticket-link,
.cp-postcontent .cp-show-wing-tickets a.cp-show-ticket-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0.5rem 0 1rem;
    padding: 0.55rem 1.35rem !important;
    background: #7a2e2e !important;
    background-image: none !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: 700;
    min-height: 44px;
    line-height: 1 !important;
    box-sizing: border-box;
    box-shadow: none !important;
}

.cp-postcontent a.cp-show-ticket-link:hover,
.cp-postcontent a.cp-show-ticket-link:focus,
.cp-postcontent .cp-show-actions a.cp-show-ticket-link:hover,
.cp-postcontent .cp-show-actions a.cp-show-ticket-link:focus,
.cp-postcontent .cp-show-wing-tickets a.cp-show-ticket-link:hover,
.cp-postcontent .cp-show-wing-tickets a.cp-show-ticket-link:focus {
    color: #fff !important;
    background: #6e2420 !important;
    text-decoration: none !important;
}

.cp-postcontent .cp-show-gallery-link a,
.cp-postcontent .cp-show-programme-link a,
.cp-postcontent .cp-show-edit-link a,
.cp-postcontent .cp-shows-add-link a,
.cp-postcontent .cp-show-member a {
    color: #7a2e2e !important;
    font-weight: 700;
    text-decoration: none !important;
}

.cp-postcontent .cp-shows-add-link a:hover,
.cp-postcontent .cp-shows-add-link a:focus,
.cp-postcontent .cp-show-edit-link a:hover,
.cp-postcontent .cp-show-edit-link a:focus {
    text-decoration: underline !important;
}

.cp-postcontent .cp-show-preview-note {
    padding: 0.7rem 0.9rem;
    background: #fff4d6;
    border-radius: 6px;
}

.cp-postcontent .cp-show-people {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.cp-postcontent .cp-show-people li {
    margin: 0.25rem 0;
    padding: 0;
}

.cp-postcontent .cp-shows-archive .cp-show-row-leads {
    margin: 0.12rem 0 0.15rem !important;
    font-size: 0.8125rem;
    line-height: 1.35;
}

.cp-postcontent .cp-shows-archive .cp-show-row-leads li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.2rem 0.45rem;
    margin: 0 !important;
    padding: 0 !important;
}

.cp-postcontent .cp-shows-archive .cp-show-row-leads .cp-show-role {
    flex: 0 0 auto;
    font-size: 0.65rem;
    font-weight: 700 !important;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #6b635c !important;
}

.cp-postcontent .cp-shows-archive .cp-show-row-leads .cp-show-person {
    font-size: 0.8125rem;
    font-weight: 700 !important;
    color: #3d2314 !important;
}

.cp-postcontent .cp-shows-archive .cp-show-row-leads .cp-show-person.is-unassigned {
    font-weight: 500 !important;
    font-style: italic;
    color: #6a5f56 !important;
}

.cp-postcontent .cp-shows-empty {
    margin: 0;
}

@media screen and (max-width: 900px) {
    .cp-postcontent .cp-shows-listing--cards-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 640px) {
    .cp-postcontent .cp-show-details {
        grid-template-columns: 1fr;
    }

    .cp-postcontent .cp-shows-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .cp-postcontent .cp-shows-search {
        flex: 0 0 auto;
        flex-direction: row;
        align-items: center;
        width: 100%;
    }

    .cp-postcontent .cp-shows-search input.cp-shows-filter {
        flex: 1 1 auto;
        min-width: 0;
    }

    .cp-postcontent .cp-shows-sort-wrap {
        flex: 0 0 auto;
        width: 100%;
    }

    .cp-postcontent .cp-shows-sort-wrap select.cp-shows-sort {
        flex: 1 1 auto;
        min-width: 0;
    }

    .cp-postcontent .cp-shows-listing--cards-3 {
        display: block;
    }

    .cp-postcontent .cp-shows-listing--cards-3 .cp-show-row {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 0.75rem;
        padding: 0.2rem 0;
        border: none;
        background: transparent;
        border-bottom: 1px solid #e4d8cc;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }

    .cp-postcontent .cp-shows-listing--cards-3 .cp-show-poster,
    .cp-postcontent .cp-shows-listing--cards-3 .cp-show-poster-empty {
        width: 84px !important;
        max-width: 84px !important;
    }

    .cp-postcontent .cp-shows-listing--cards-3 .cp-show-row-body {
        padding: 0.35rem 0.2rem 0.35rem 0;
    }

    .cp-postcontent .cp-shows-listing--cards-3 .cp-show-row-actions {
        flex-wrap: wrap;
        gap: 0.15rem 1.25rem;
    }

    .cp-postcontent .cp-show-row {
        grid-template-columns: 84px 1fr;
        gap: 1rem;
        padding: 0.5rem 0;
    }

    .cp-postcontent .cp-show-poster,
    .cp-postcontent .cp-show-poster-empty {
        width: 84px !important;
        max-width: 84px !important;
    }
}

@media screen and (max-width: 425px) {
    .cp-postcontent .cp-shows-listing--cards-3 .cp-show-row,
    .cp-postcontent .cp-show-row {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 0.65rem;
    }

    .cp-postcontent .cp-shows-archive .cp-show-row-body {
        overflow-wrap: anywhere;
    }

    .cp-postcontent .cp-shows-listing--cards-3 .cp-show-poster,
    .cp-postcontent .cp-shows-listing--cards-3 .cp-show-poster-empty,
    .cp-postcontent .cp-show-poster,
    .cp-postcontent .cp-show-poster-empty {
        width: 76px !important;
        max-width: 76px !important;
    }
}

/* THEME OVERRIDE — headings, links, list bullets, and the search field */
.cp-postcontent .cp-show-single h3,
.cp-postcontent .cp-shows-archive h2,
.cp-postcontent .cp-shows-archive h2 a,
.cp-postcontent .cp-show-member h3,
.cp-postcontent .cp-show-company h3,
.cp-postcontent .cp-show-synopsis h3,
.cp-postcontent .cp-show-performances h3,
.cp-postcontent .cp-show-cast-summary h3 {
    margin-top: 0 !important;
    margin-bottom: 0.6rem !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #3d2314 !important;
}

.cp-postcontent .cp-show-single p,
.cp-postcontent .cp-shows-archive p {
    margin-top: 0;
    margin-bottom: 0.6rem;
}

.cp-postcontent .cp-shows-archive ul > li:before,
.cp-postcontent .cp-show-single ul > li:before,
.cp-postcontent .cp-show-people > li:before {
    content: none !important;
    display: none !important;
}

/* THEME OVERRIDE — archive Search / Sort (theme uses 13px, padding 8px 0, grey fill, select at 96% width) */
.cp-postcontent .cp-shows-archive .cp-shows-toolbar input[type="search"].cp-shows-filter,
.cp-postcontent .cp-shows-archive .cp-shows-toolbar select.cp-shows-sort,
.cp-postcontent .cp-shows-archive input.cp-shows-filter,
.cp-postcontent .cp-shows-archive select.cp-shows-sort {
    display: block !important;
    width: 100% !important;
    max-width: 22rem !important;
    margin: 0 !important;
    padding: 0.5rem 0.75rem !important;
    min-height: 44px;
    box-sizing: border-box !important;
    font-size: 16px !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: normal !important;
    font-style: normal !important;
    line-height: 1.25 !important;
    color: #3d2314 !important;
    background: #fff !important;
    border: 1px solid #e4d8cc !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(61, 35, 20, 0.04) !important;
    text-shadow: none !important;
    vertical-align: middle !important;
    float: none !important;
}

.cp-postcontent .cp-shows-archive input[type="search"].cp-shows-filter {
    -webkit-appearance: none;
    appearance: none;
}

.cp-postcontent .cp-shows-archive select.cp-shows-sort {
    min-width: 11.5rem;
    max-width: 100% !important;
    padding-right: 2rem !important;
    cursor: pointer !important;
    appearance: auto !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
}

.cp-postcontent .cp-shows-archive .cp-shows-toolbar input[type="search"].cp-shows-filter:focus,
.cp-postcontent .cp-shows-archive .cp-shows-toolbar select.cp-shows-sort:focus,
.cp-postcontent .cp-shows-archive input.cp-shows-filter:focus,
.cp-postcontent .cp-shows-archive select.cp-shows-sort:focus {
    border-color: #7a2e2e !important;
    box-shadow: 0 0 0 3px rgba(122, 46, 46, 0.12) !important;
    outline: none !important;
}

.cp-postcontent .cp-shows-sort-wrap select.cp-shows-sort {
    flex: 1 1 auto;
    min-width: 11.5rem;
}

@media screen and (max-width: 640px) {
    .cp-postcontent .cp-shows-archive .cp-shows-toolbar input[type="search"].cp-shows-filter,
    .cp-postcontent .cp-shows-archive .cp-shows-toolbar select.cp-shows-sort,
    .cp-postcontent .cp-shows-archive input.cp-shows-filter,
    .cp-postcontent .cp-shows-archive select.cp-shows-sort {
        max-width: 100% !important;
    }
}

.cp-postcontent .cp-shows-archive h2.cp-show-title,
.cp-postcontent .cp-shows-archive h2.cp-show-title a {
    margin-bottom: 0.1rem !important;
}

/* Show page: wing layout. Title and poster live here; the theme copies are hidden. */
.cp-show-wing-page .cp-postmetadataheader,
.cp-show-wing-page .cp-postheadericons {
    display: none !important;
}

.cp-postcontent .cp-show-wing-layout {
    display: grid;
    grid-template-columns: minmax(200px, 280px) 1fr;
    align-items: start;
    background: #f7f4ef;
}

.cp-postcontent .cp-show-wing-poster a:not(.cp-show-ticket-link) {
    display: block;
    text-decoration: none !important;
}

.cp-postcontent .cp-show-wing-poster-links {
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e4d8cc;
}

/* THEME OVERRIDE: meeting-style link rows under the poster (see cp-meetings-buttons.css). */
.cp-postcontent .cp-show-wing-poster-links .cp-meeting-buttons.cp-show-wing-link-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin: 0 0 0.5rem;
}

.cp-postcontent .cp-show-wing-poster-links .cp-meeting-buttons.cp-show-wing-link-buttons:last-child {
    margin-bottom: 0;
}

.cp-postcontent .cp-show-wing-poster-links .cp-show-wing-link-buttons .cp-show-ticket-link {
    flex: 1 1 calc(50% - 4px);
    width: auto !important;
    min-width: 0;
    max-width: none;
    margin: 0 !important;
    font-size: 0.9rem !important;
    padding: 0.5rem 0.65rem !important;
}

.cp-postcontent .cp-show-wing-link-buttons.cp-show-wing-link-buttons--single .cp-show-ticket-link {
    flex: 1 1 100%;
}

.cp-postcontent .cp-show-wing-poster-links a.cp-show-ticket-link:hover,
.cp-postcontent .cp-show-wing-poster-links a.cp-show-ticket-link:focus {
    color: #fff !important;
    background: #6e2420 !important;
    text-decoration: none !important;
}

.cp-postcontent .cp-show-wing-poster img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.cp-postcontent .cp-show-wing-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    aspect-ratio: 2 / 3;
    padding: 1rem;
    box-sizing: border-box;
    text-align: 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-show-wing-copy {
    min-width: 0;
    padding: 1.35rem 1.4rem 1.15rem;
}

.cp-postcontent .cp-show-wing-title {
    margin: 0 0 0.35rem !important;
    color: #500000 !important;
    font-size: clamp(1.75rem, 4vw, 3.2rem) !important;
    font-weight: 700 !important;
    line-height: 0.95 !important;
    letter-spacing: -0.02em;
}

.cp-postcontent .cp-show-single .cp-show-author {
    margin: 0 0 0.5rem !important;
    font-size: 1.15rem;
    font-style: italic;
    color: #5e5e5e;
    line-height: 1.35;
}

.cp-postcontent .cp-show-wing-meta {
    margin: 0 0 0.8rem;
}

.cp-postcontent .cp-show-wing-meta .cp-show-dates {
    margin: 0 0 0.35rem !important;
    font-size: 1.05rem;
    color: #5e5e5e;
}

.cp-postcontent .cp-show-wing-meta .cp-show-venue {
    margin: 0 !important;
    font-size: 1.05rem;
    color: #5e5e5e;
    line-height: 1.45;
}

.cp-postcontent .cp-show-wing-synopsis p {
    margin: 0 0 0.8rem !important;
}

.cp-postcontent .cp-show-auditions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1.25rem;
    margin: 0.15rem 0 1rem;
}

.cp-postcontent .cp-show-auditions__label {
    margin: 0 0 0.15rem !important;
    font-size: 0.75rem !important;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #741F11;
}

.cp-postcontent .cp-show-auditions__dates ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.cp-postcontent .cp-show-auditions__dates li {
    margin: 0 !important;
    padding: 0 !important;
}

.cp-postcontent .cp-show-auditions__action,
.cp-postcontent .cp-show-auditions__actions {
    margin: 0 !important;
}

.cp-postcontent .cp-show-auditions__action .cp-show-ticket-link,
.cp-postcontent .cp-show-auditions__actions .cp-show-ticket-link {
    margin: 0 !important;
}

.cp-postcontent .cp-show-wing h3 {
    margin: 0.9rem 0 0.3rem !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #741F11 !important;
}

.cp-postcontent .cp-show-wing .cp-show-wing-roster {
    max-width: 36rem;
    margin: 1.75rem 0 0.5rem;
}

.cp-postcontent .cp-show-wing .cp-show-wing-roster-title {
    color: #500000 !important;
    text-align: center !important;
    margin: 0 0 0.6rem !important;
}

.cp-postcontent .cp-show-wing .cp-show-people {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.cp-postcontent .cp-show-wing .cp-show-people li {
    margin: 0.12rem 0 !important;
    padding: 0 !important;
}

.cp-postcontent .cp-show-wing-cols {
    columns: 2;
    column-gap: 1.4rem;
}

.cp-postcontent .cp-show-wing-cols li {
    break-inside: avoid;
}

/* Cast and production team: compact ruled rows (label left, name right). */
.cp-postcontent .cp-show-wing .cp-show-cast,
.cp-postcontent .cp-show-wing .cp-show-team {
    margin: 0;
    border-top: 1px solid #e4d8cc;
}

.cp-postcontent .cp-show-wing .cp-show-cast li,
.cp-postcontent .cp-show-wing .cp-show-team li {
    display: flex !important;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.2rem 0.5rem;
    margin: 0 !important;
    padding: 0.3rem 0 !important;
    border-bottom: 1px solid #e4d8cc;
    font-size: 0.90rem !important;
    line-height: 1.35 !important;
}

.cp-postcontent .cp-show-wing .cp-show-cast-character,
.cp-postcontent .cp-show-wing .cp-show-team-role {
    flex: 1 1 5rem;
    min-width: 0;
    font-weight: 600 !important;
    text-align: left;
    color: #6b635c !important;
}

.cp-postcontent .cp-show-wing .cp-show-cast-actor,
.cp-postcontent .cp-show-wing .cp-show-team-person {
    flex: 1 1 5rem;
    min-width: 0;
    font-weight: 700 !important;
    text-align: right;
    color: #32281f !important;
}

.cp-postcontent .cp-show-wing .cp-show-cast li:not(:has(.cp-show-cast-character)) .cp-show-cast-actor {
    flex: 1 1 100%;
    text-align: right;
}

@media screen and (max-width: 520px) {
    .cp-postcontent .cp-show-wing .cp-show-wing-roster {
        max-width: none;
    }

    .cp-postcontent .cp-show-wing .cp-show-cast li,
    .cp-postcontent .cp-show-wing .cp-show-team li {
        flex-wrap: nowrap;
        gap: 0.35rem 0.65rem;
    }

    .cp-postcontent .cp-show-wing .cp-show-cast-character,
    .cp-postcontent .cp-show-wing .cp-show-team-role {
        flex: 1 1 auto;
        min-width: 0;
    }

    .cp-postcontent .cp-show-wing .cp-show-cast-actor,
    .cp-postcontent .cp-show-wing .cp-show-team-person {
        flex: 0 1 auto;
        min-width: 0;
        max-width: 55%;
        text-align: right;
    }
}

.cp-postcontent .cp-show-wing .cp-show-wing-tickets {
    margin: 0.65rem 0 0.25rem !important;
    align-items: flex-start;
}

.cp-postcontent .cp-show-wing .cp-show-wing-tickets .cp-show-ticket-link {
    margin: 0;
    align-self: flex-start;
}

@media screen and (max-width: 640px) {
    .cp-postcontent .cp-show-wing-layout {
        grid-template-columns: 1fr;
    }

    .cp-postcontent .cp-show-wing-poster {
        max-width: none;
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }

    .cp-postcontent .cp-show-wing-poster > a,
    .cp-postcontent .cp-show-wing-poster > .cp-show-wing-empty {
        max-width: min(280px, 100%);
        margin-left: auto;
        margin-right: auto;
    }

    .cp-postcontent .cp-show-wing-poster-links {
        margin-top: 1rem;
        padding-top: 0.85rem;
    }

    .cp-postcontent .cp-show-wing-copy {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .cp-postcontent .cp-show-wing .cp-show-wing-tickets .cp-show-ticket-link {
        width: 100%;
        max-width: none;
        align-self: stretch;
    }

    .cp-postcontent .cp-show-wing-cols {
        grid-template-columns: 1fr;
        columns: 1;
    }
}

.cp-postcontent .cp-show-cast-actor a.cp-person-link,
.cp-postcontent .cp-show-team-person a.cp-person-link,
.cp-postcontent .cp-shows-archive .cp-show-person a.cp-person-link {
    color: #741F11 !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
}

.cp-postcontent .cp-show-cast-actor a.cp-person-link:hover,
.cp-postcontent .cp-show-team-person a.cp-person-link:hover,
.cp-postcontent .cp-shows-archive .cp-show-person a.cp-person-link:hover {
    text-decoration: underline !important;
}
