.pp-performance-app,
.pp-latest-section {
    --pp-primary: #6f1d1b;
    --pp-primary-dark: #4f1211;
    --pp-accent: #b88932;
    --pp-text: #252525;
    --pp-muted: #6b6b6b;
    --pp-border: #e4e4e4;
    --pp-surface: #ffffff;
    --pp-soft: #f7f4ef;
    width: 100%;
    color: var(--pp-text);
    font-family: inherit;
}

.pp-filter-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr)) auto;
    gap: 14px;
    align-items: end;
    margin: 0 0 28px;
    padding: 20px;
    border: 1px solid var(--pp-border);
    border-top: 4px solid var(--pp-primary);
    border-radius: 10px;
    background: var(--pp-surface);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
}

.pp-filter-field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
}

.pp-filter-field select {
    width: 100%;
    min-height: 44px;
    padding: 7px 34px 7px 12px;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    background-color: #fff;
    color: var(--pp-text);
}

.pp-filter-actions {
    display: flex;
    gap: 8px;
}

.pp-filter-submit,
.pp-filter-reset,
.pp-page-button {
    min-height: 44px;
    padding: 9px 16px;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.pp-filter-submit {
    background: var(--pp-primary);
    color: #fff;
}

.pp-filter-submit:hover,
.pp-filter-submit:focus {
    background: var(--pp-primary-dark);
    color: #fff;
}

.pp-filter-reset {
    border: 1px solid var(--pp-border);
    background: #fff;
    color: var(--pp-text);
}

.pp-status {
    min-height: 24px;
    margin-bottom: 8px;
    color: var(--pp-muted);
}

.pp-performance-app.is-loading .pp-results {
    opacity: 0.55;
    pointer-events: none;
}

.pp-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.pp-card {
    overflow: hidden;
    border: 1px solid var(--pp-border);
    border-radius: 10px;
    background: var(--pp-surface);
    box-shadow: 0 7px 24px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.pp-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--pp-soft);
}

.pp-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.pp-card:hover .pp-card-image img {
    transform: scale(1.035);
}

.pp-card-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background: linear-gradient(135deg, #eee7dd, #d8c8b0);
}

.pp-camera-icon {
    color: var(--pp-primary);
    font-size: 44px;
    line-height: 1;
}

.pp-card-body {
    padding: 19px 20px 21px;
}

.pp-card-category,
.pp-single-workstream {
    display: inline-block;
    margin-bottom: 9px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--pp-primary);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
}

.pp-card-title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    line-height: 1.45;
}

.pp-card-title a {
    color: var(--pp-text);
    text-decoration: none;
}

.pp-card-title a:hover,
.pp-card-title a:focus {
    color: var(--pp-primary);
}

.pp-card-date,
.pp-single-date {
    margin-bottom: 10px;
    color: var(--pp-muted);
    font-size: 0.92rem;
}

.pp-card-excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 15px;
    color: #525252;
    line-height: 1.7;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.pp-read-more {
    color: var(--pp-primary);
    font-weight: 700;
    text-decoration: none;
}

.pp-read-more:hover,
.pp-read-more:focus {
    color: var(--pp-primary-dark);
    text-decoration: underline;
}

.pp-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.pp-page-button {
    min-width: 42px;
    border: 1px solid var(--pp-border);
    background: #fff;
    color: var(--pp-text);
}

.pp-page-button.is-active,
.pp-page-button:hover,
.pp-page-button:focus {
    border-color: var(--pp-primary);
    background: var(--pp-primary);
    color: #fff;
}

.pp-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 48px 20px;
    border: 1px dashed #cfcfcf;
    border-radius: 10px;
    background: #fafafa;
    color: var(--pp-muted);
    text-align: center;
}

.pp-empty strong {
    color: var(--pp-text);
    font-size: 1.1rem;
}

.pp-section-title {
    position: relative;
    margin: 0 0 24px;
    padding-bottom: 12px;
    font-size: 1.7rem;
}

.pp-section-title::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 4px;
    border-radius: 4px;
    background: var(--pp-primary);
    content: '';
}

.pp-view-all-wrap {
    margin-top: 28px;
    text-align: center;
}

.pp-view-all,
.pp-pdf-button,
.pp-facebook-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
}

.pp-view-all,
.pp-pdf-button {
    background: var(--pp-primary);
    color: #fff;
}

.pp-view-all:hover,
.pp-view-all:focus,
.pp-pdf-button:hover,
.pp-pdf-button:focus {
    background: var(--pp-primary-dark);
    color: #fff;
}

.pp-single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 22px 0;
}

.pp-single-workstream,
.pp-single-date {
    margin-bottom: 0;
}

.pp-single-gallery-section {
    margin-top: 34px;
}

.pp-single-gallery-section h2 {
    margin-bottom: 18px;
}

.pp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.pp-lightbox-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    background: #eee;
}

.pp-lightbox-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.pp-lightbox-link:hover img,
.pp-lightbox-link:focus img {
    transform: scale(1.04);
}

.pp-single-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--pp-border);
}

.pp-facebook-share {
    background: #1877f2;
    color: #fff;
}

.pp-facebook-share:hover,
.pp-facebook-share:focus {
    background: #0e5dc4;
    color: #fff;
}

.pp-lightbox {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.88);
}

.pp-lightbox.is-open {
    display: flex;
}

.pp-lightbox-dialog {
    max-width: min(1100px, 95vw);
    max-height: 92vh;
    text-align: center;
}

.pp-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 82vh;
    margin: 0 auto;
    object-fit: contain;
}

.pp-lightbox-caption {
    margin-top: 10px;
    color: #fff;
}

.pp-lightbox-close {
    position: absolute;
    top: 16px;
    right: 22px;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 42px;
    line-height: 1;
}

body.pp-lightbox-open {
    overflow: hidden;
}

@media (max-width: 1024px) {
    .pp-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pp-filter-actions {
        grid-column: 1 / -1;
    }

    .pp-card-grid,
    .pp-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .pp-filter-form,
    .pp-card-grid,
    .pp-gallery-grid {
        grid-template-columns: 1fr;
    }

    .pp-filter-actions {
        flex-direction: column;
    }

    .pp-filter-submit,
    .pp-filter-reset {
        width: 100%;
    }

    .pp-lightbox {
        padding: 16px;
    }
}
