.pa-wrap {
    max-width: 850px;
    margin: 1.5rem auto;
    --pa-accent: #215d67;
}
.pa-wrap .pa-card,
.pa-wrap.pa-card {
    padding: clamp(18px, 4vw, 32px);
    border: 1px solid #dce3e5;
    border-radius: 14px;
    background: #fff;
    color: #202b32;
    margin-bottom: 22px;
    box-shadow: 0 4px 18px #163c4510;
}
.pa-wrap h3 {
    margin: 0.25em 0 0.6em;
    font-size: 1.5em;
    color: inherit;
}
.pa-wrap .pa-muted {
    color: #56636b;
    font-size: 0.92em;
}
.pa-wrap audio {
    display: block;
    width: 100%;
    margin-top: 20px;
}
.pa-wrap a {
    color: var(--pa-accent);
    text-decoration: underline;
}
.pa-wrap .pa-button {
    display: inline-block;
    background: var(--pa-accent);
    color: white;
    border: 0;
    border-radius: 7px;
    padding: 12px 22px;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}
.pa-wrap .pa-button:disabled {
    opacity: 0.65;
    cursor: wait;
}
.pa-upload {
    display: grid;
    gap: 9px;
}
.pa-upload label {
    font-weight: 600;
    margin-top: 10px;
}
.pa-upload input:not([type="hidden"]),
.pa-upload textarea {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 11px;
    border: 1px solid #9aaab0;
    border-radius: 5px;
    background: white;
    color: #202b32;
    font: inherit;
}
.pa-upload .pa-button {
    justify-self: start;
}
.pa-wrap .pa-success {
    padding: 12px;
    background: #eaf6ed;
    border-left: 4px solid #31733e;
}
.pa-pagination {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.pa-wrap :focus-visible {
    outline: 3px solid #bb651d;
    outline-offset: 3px;
}
.pa-status {
    margin: 0;
}
.pa-scripture {
    font-weight: 600;
}

.pa-wrap.pa-grid {
    max-width: 1280px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 4vw, 64px);
    align-items: stretch;
}
.pa-tile {
    background: #fff;
    color: #454545;
    border-radius: 4px;
    overflow: hidden;
    min-width: 0;
    box-shadow: 0 2px 12px #00000006;
}
.pa-wrap a.pa-tile-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.pa-tile-media {
    position: relative;
    display: block;
    overflow: hidden;
}
.pa-cover {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin: 0 !important;
    border-radius: 0 !important;
}
.pa-hover-arrow {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    color: #fff;
    background: #215d679e;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.pa-tile-link:hover .pa-hover-arrow,
.pa-tile-link:focus-visible .pa-hover-arrow {
    opacity: 1;
}
.pa-tile-text {
    display: grid;
    gap: 12px;
    padding: 24px 24px 30px;
}
.pa-title {
    font-size: 1.35em;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.pa-date {
    font-size: 1em;
    color: #171717;
}
.pa-grid .pa-pagination {
    grid-column: 1/-1;
}
.pa-wrap.pa-single {
    width: 100%;
    max-width: 940px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
}
.pa-single-title {
    text-align: center;
    font-size: clamp(24px, 3vw, 40px) !important;
    line-height: 1.18;
    margin: 18px 0 28px !important;
    color: #454545;
    overflow-wrap: anywhere;
}
.pa-back {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 0.9em;
}
.pa-single-image .pa-cover {
    aspect-ratio: auto;
}
.pa-single .pa-video {
    margin: 0;
}
.pa-video-stage {
    position: relative;
}
.pa-single .pa-video-gate {
    position: relative;
    padding: 0;
    background: #173d45;
    border-radius: 0;
}
.pa-video-gate[hidden] {
    display: none !important;
}
.pa-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px;
    gap: 16px;
}
.pa-video-overlay .pa-load-video {
    display: grid;
    place-items: center;
    width: 80px;
    height: 56px;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: #20251b99;
    color: white;
    font-size: 28px;
    cursor: pointer;
}
.pa-video-overlay p {
    max-width: 380px;
    padding: 10px 16px;
    margin: 0;
    background: #20251ba6;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    font-size: clamp(12px, 1.2vw, 14px);
    line-height: 1.5;
}
.pa-video-frame iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    border: 0;
}
.pa-single audio.pa-single-audio {
    margin: 24px 0;
    width: 100%;
    height: 44px;
    color-scheme: dark;
}
.pa-single-copy {
    font-size: 18px;
    line-height: 1.6;
}
.pa-single-copy .pa-muted {
    font-size: 0.85em;
}
@media (max-width: 900px) {
    .pa-wrap.pa-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 580px) {
    .pa-wrap.pa-grid {
        grid-template-columns: 1fr;
    }
    .pa-single-title {
        margin-bottom: 24px !important;
    }
    .pa-video-overlay {
        gap: 8px;
        padding: 10px;
    }
    .pa-video-overlay .pa-load-video {
        width: 64px;
        height: 44px;
        font-size: 25px;
        border-radius: 12px;
    }
    .pa-video-overlay p {
        padding: 8px 12px;
    }
    .pa-tile-text {
        padding: 20px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .pa-hover-arrow {
        transition: none;
    }
}

.pa-hover-arrow .pa-arrow-icon {
    display: block;
    width: 32px;
    height: 32px;
    fill: currentColor;
    flex: none;
    overflow: visible;
    transform: translateX(1px);
}

.pa-detail-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    margin: 20px 0;
}
.pa-detail-links .pa-back {
    margin: 0;
    font-size: inherit;
}

.pa-management {
    list-style: none;
    padding: 0;
}
.pa-management li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid #e1e5e5;
}
.pa-management small {
    display: block;
}
.pa-upload input[type="checkbox"] {
    width: auto;
}

.pa-progress-wrap {
    width: 100%;
    margin-top: 14px;
}
.pa-progress-wrap[hidden] {
    display: none;
}
.pa-upload progress.pa-progress {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 100%;
    height: 18px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #e1ebed;
    color: #215d67;
    accent-color: #215d67;
}
.pa-progress::-webkit-progress-bar {
    background: #e1ebed;
    border-radius: 999px;
}
.pa-progress::-webkit-progress-value {
    background: linear-gradient(90deg, #215d67, #62bdbd);
    border-radius: 999px;
    transition: width 0.2s ease;
}
.pa-progress::-moz-progress-bar {
    background: linear-gradient(90deg, #215d67, #62bdbd);
    border-radius: 999px;
}
@media (prefers-reduced-motion: reduce) {
    .pa-progress::-webkit-progress-value {
        transition: none;
    }
}

.pa-select-all,
.pa-select-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pa-select-row {
    min-width: 0;
    overflow-wrap: anywhere;
}
.pa-select-row input,
.pa-select-all input {
    flex: none;
    width: 18px;
    height: 18px;
}
.pa-row-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.pa-delete-one {
    border: 0;
    background: transparent;
    color: #a12626;
    text-decoration: underline;
    font: inherit;
    cursor: pointer;
    padding: 4px;
}
.pa-wrap .pa-danger {
    background: #a12626;
}
.pa-management li {
    align-items: center;
}
@media (max-width: 580px) {
    .pa-management li {
        flex-wrap: wrap;
    }
    .pa-row-actions {
        margin-left: 30px;
    }
}

/* Keep links and submit buttons aligned despite theme button margins. */
.pa-delete-form .pa-row-actions {
    align-items: center;
}
.pa-delete-form .pa-row-actions > a,
.pa-delete-form .pa-row-actions > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 4px 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-family: inherit;
    font-size: inherit !important;
    font-weight: 400;
    line-height: 1.4 !important;
    min-height: 0 !important;
    height: auto !important;
    vertical-align: middle;
    white-space: nowrap;
}

.pa-wrap.pa-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #dce5e6;
    margin-bottom: 20px;
    max-width: 850px;
    flex-wrap: wrap;
}
.pa-tabs a {
    display: block;
    padding: 13px 20px;
    text-decoration: none !important;
    border-radius: 8px 8px 0 0;
    background: #eef3f3;
    color: #215d67;
    font-weight: 600;
}
.pa-tabs a[aria-current="page"] {
    background: #215d67;
    color: white;
}
.pa-account {
    font-size: 0.95em;
}
.pa-optional {
    border: 1px solid #dce5e6;
    border-radius: 7px;
    margin-top: 12px;
    min-width: 0;
}
.pa-optional summary {
    cursor: pointer;
    padding: 12px 16px;
    font-weight: 600;
    color: #215d67;
}
.pa-optional-content {
    display: grid;
    gap: 9px;
    padding: 0 16px 16px;
}
.pa-optional-content .pa-cover {
    max-width: 360px !important;
}
.pa-optional summary:focus-visible {
    outline: 3px solid #bb651d;
    outline-offset: 2px;
}
