.ppcoa-page { padding-block: clamp(40px, 7vw, 88px); }
.ppcoa-hero { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.ppcoa-eyebrow { display: block; color: #74608f; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.ppcoa-hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.08; letter-spacing: -.045em; margin: 18px 0; color: #29243a; }
.ppcoa-hero h1 span { color: #b49cda; }
.ppcoa-hero p { font-size: clamp(15px, 2vw, 18px); color: #787183; line-height: 1.8; max-width: 630px; }
.ppcoa-library-heading { margin-bottom: 24px; }
.ppcoa-library-heading h2 { font-size: 24px; margin: 0 0 10px; letter-spacing: -.025em; }
.ppcoa-library-heading p { color: #787183; font-size: 14px; line-height: 1.7; }
.ppcoa-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ppcoa-card { position: relative; min-width: 0; padding: 28px; border: 1px solid #e1d7ee; border-radius: 16px; background: #fff; }
.ppcoa-card:focus-within { z-index: 2; }
.ppcoa-card h3 { font-size: 21px; font-weight: 600; letter-spacing: -.025em; margin: 14px 0 24px; overflow-wrap: anywhere; }
.ppcoa-card .ppcoa-view, .ppcoa-picker summary { font-size: 14px; font-weight: 600; color: #705494; min-height: 44px; display: inline-flex; align-items: center; gap: 12px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.ppcoa-picker summary { list-style: none; width: 100%; justify-content: space-between; }
.ppcoa-picker summary::-webkit-details-marker { display: none; }
.ppcoa-chevron { font-size: 20px; transition: transform .15s; }
.ppcoa-picker[open] .ppcoa-chevron { transform: rotate(180deg); }
.ppcoa-picker { position: relative; }
.ppcoa-batches { position: absolute; z-index: 3; top: calc(100% + 4px); left: 0; width: 100%; min-width: 0; max-height: 260px; overflow: auto; background: #fff; border: 1px solid #ded4eb; border-radius: 12px; padding: 6px; box-shadow: 0 12px 28px #29243a14; }
.ppcoa-batches .ppcoa-view { display: flex; padding: 10px 12px; border-radius: 7px; text-decoration: none; overflow-wrap: anywhere; }
.ppcoa-batches .ppcoa-view:hover { background: #f0eafb; }
.ppcoa-library :is(a,button,summary):focus-visible { outline: 2px solid #9172b8; outline-offset: 3px; }
.ppcoa-batch-caption { font-size: 12px; color: #787183; margin: 6px 0 0; overflow-wrap: anywhere; }
.ppcoa-empty { background: #faf9fc; border: 1px solid #e1d7ee; border-radius: 16px; padding: 32px; }
.ppcoa-empty h3 { font-size: 20px; margin: 0 0 10px; }
.ppcoa-empty p { color: #787183; margin: 0; }
.ppcoa-dialog { position: fixed; inset: 0; margin: auto; width: min(1000px, 94vw); max-width: 94vw; max-height: 92dvh; padding: 0; border: 1px solid #e1d7ee; border-radius: 16px; background: #fff; color: #29243a; }
.ppcoa-dialog[open] { display: flex; flex-direction: column; }
.ppcoa-dialog::backdrop { background: #211d3559; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.ppcoa-dialog-header { display: flex; align-items: center; gap: 16px; justify-content: space-between; padding: 18px 22px; flex-shrink: 0; }
.ppcoa-dialog-title { margin: 0; font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
.ppcoa-close { width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 50%; background: #f2edfa; color: #705494; cursor: pointer; font: inherit; }
.ppcoa-image-area { min-height: 100px; overflow: auto; background: #f6f5f8; overscroll-behavior: contain; }
.ppcoa-image { display: block; width: 100%; height: auto; }
.ppcoa-image[hidden] { display: none; }
.ppcoa-loading { padding: 24px; }
.ppcoa-dialog-footer { padding: 16px 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; color: #787183; flex-shrink: 0; }
.ppcoa-original { color: #705494; text-decoration: underline; }
@media (max-width: 1024px) { .ppcoa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ppcoa-grid { grid-template-columns: 1fr; gap: 16px; } .ppcoa-card { padding: 24px; } .ppcoa-dialog-header { padding: 12px 16px; } .ppcoa-dialog-footer { padding: 14px 16px; } }
.ppcoa-search { margin: 0 0 24px; max-width: 620px; }
.ppcoa-search label { display: grid; gap: 10px; font-size: 14px; font-weight: 500; }
.ppcoa-search input { width: 100%; min-height: 48px; border: 1px solid #d9d4e1; border-radius: 10px; padding: 12px 16px; font: inherit; font-size: 16px; background: #fff; color: #29243a; }
.ppcoa-search input:focus { outline: 2px solid #b49cda; outline-offset: 2px; }
.ppcoa-search-status { font-size: 13px; color: #787183; margin: 8px 0 0; }
.ppcoa-no-results { padding: 24px; background: #faf9fc; border-radius: 12px; }
.ppcoa-library [hidden] { display: none !important; }

/* Premier Petra certificate page: soft color, clear hierarchy, useful guidance. */
.ppcoa-page .ppcoa-hero { max-width: none; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; padding: clamp(26px, 4vw, 54px); margin-bottom: 40px; border: 1px solid #e8dff4; border-radius: 28px; background: radial-gradient(ellipse at 0 0, #e4f8fc 0%, transparent 65%), linear-gradient(120deg, #fafcff, #f1eafd); }
.ppcoa-page .ppcoa-hero h1 { font-size: clamp(36px, 4.4vw, 58px); }
.ppcoa-page .ppcoa-hero p { font-size: 16px; }
.ppcoa-browse { display: inline-flex; gap: 24px; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 10px; background: #cab7fa; color: #30214d; font-size: 14px; font-weight: 600; text-decoration: none; }
.ppcoa-browse:hover { background: #bda6f2; }
.ppcoa-browse:focus-visible { outline: 2px solid #705494; outline-offset: 4px; }
.ppcoa-guide { padding: 28px; border-radius: 20px; border: 1px solid #fff; background: #ffffffb8; box-shadow: 0 16px 44px #7560880a; }
.ppcoa-guide h2 { font-size: 23px; line-height: 1.3; margin: 12px 0 24px; }
.ppcoa-guide ol { list-style: none; padding: 0; margin: 0; counter-reset: coa-step; display: grid; gap: 22px; }
.ppcoa-guide li { counter-increment: coa-step; position: relative; padding-left: 46px; }
.ppcoa-guide li::before { content: counter(coa-step, decimal-leading-zero); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #eee5fc; color: #705494; font-size: 11px; font-weight: 600; }
.ppcoa-guide li strong { display: block; font-size: 14px; font-weight: 600; }
.ppcoa-guide li span { display: block; font-size: 13px; line-height: 1.65; color: #787183; margin-top: 4px; }
#certificate-library { scroll-margin-top: 110px; }
.ppcoa-page .ppcoa-library { border: 1px solid #e6dff0; border-radius: 24px; padding: clamp(22px, 3vw, 40px); background: linear-gradient(140deg, #fff, #fbf9ff); }
.ppcoa-page .ppcoa-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.ppcoa-page .ppcoa-card { border-radius: 18px; background: linear-gradient(110deg, #fff 55%, #f0faff); box-shadow: 0 8px 26px #8d78aa09; }
.ppcoa-page .ppcoa-card > .ppcoa-eyebrow { display: inline-block; padding: 7px 10px; background: #f0eafa; border-radius: 30px; font-size: 10px; }
.ppcoa-page .ppcoa-picker summary { padding: 10px 14px; border: 1px solid #e5daf6; border-radius: 10px; background: #f7f2ff; text-decoration: none; box-sizing: border-box; }
.ppcoa-page .ppcoa-chevron { text-decoration: none; }
.ppcoa-help { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 30px; padding: 30px 36px; border: 1px solid #dceef2; border-radius: 20px; background: linear-gradient(110deg, #f2fbfd, #f8f4ff); }
.ppcoa-help h2 { font-size: 23px; margin: 10px 0; }
.ppcoa-help p { max-width: 640px; font-size: 14px; line-height: 1.75; color: #787183; margin: 0; }
.ppcoa-help > a { flex-shrink: 0; }
@media (max-width: 850px) { .ppcoa-page .ppcoa-hero { grid-template-columns: 1fr; gap: 30px; } .ppcoa-help { align-items: flex-start; flex-direction: column; } }
@media (max-width: 600px) { .ppcoa-page .ppcoa-hero { border-radius: 20px; padding: 24px 20px; } .ppcoa-guide { padding: 22px 18px; } .ppcoa-help { padding: 24px; } .ppcoa-help > a { width: 100%; } }
