/* FINPROV public credential page: academic theme (ivory, navy, gold) */
:root {
  --navy: #0b2447; --navy-2: #123468; --navy-3: #1c4a8f;
  --gold: #b8892b; --gold-2: #d8b25a; --gold-3: #f1e2b8;
  --paper: #f6f3ea; --paper-2: #efeadc;
  --ink: #14213d; --soft: #3d4a63; --mute: #6a7488;
  --line: #e2dccb; --line-2: #d3cbb4;
  --green: #1d7a5a; --red: #b3392f;
  --serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
  --ease: cubic-bezier(.2,.8,.2,1);
  --lift: 0 1px 2px rgba(11,36,71,.08), 0 8px 20px rgba(11,36,71,.08), 0 22px 44px rgba(11,36,71,.07);
  --lift-2: 0 2px 4px rgba(11,36,71,.1), 0 16px 32px rgba(11,36,71,.14), 0 34px 64px rgba(11,36,71,.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.pb {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; color: var(--ink);
  font: 16px/1.65 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--paper); -webkit-font-smoothing: antialiased;
}
.pb a { color: var(--navy-3); text-decoration: none; }
.pb img { max-width: 100%; display: block; }
.pb :where(h1, h2, h3, p) { margin-top: 0; }
.pb :where(h1, h2, h3) { font-family: var(--serif); color: var(--navy); font-weight: 700; }
.pb :focus-visible { outline: 3px solid rgba(184,137,43,.55); outline-offset: 3px; border-radius: 6px; }

/* navy banner (header + hero) */
.pb-band { color: #fff; background: var(--navy); background-image: radial-gradient(ellipse 60% 70% at 78% 45%, rgba(46,98,190,.45), transparent 70%), linear-gradient(170deg, #12356b, var(--navy) 75%); border-bottom: 4px solid var(--gold); box-shadow: 0 14px 30px rgba(11,36,71,.18); }
.pb-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1200px; margin: 0 auto; padding: 20px 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
.pb-brand { display: flex; align-items: center; gap: 14px; color: #fff !important; }
.pb-brand-mark { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--gold-2); }
.pb-brand-mark img { width: 34px; height: 34px; object-fit: contain; }
.pb-brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.pb-brand-copy strong { font-family: var(--serif); font-size: 19px; letter-spacing: .14em; }
.pb-brand-copy small { color: var(--gold-3); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; }
.pb-band-in { max-width: 1200px; margin: 0 auto; padding: 40px 28px 56px; }

.pb-main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 40px 28px 56px; }

/* hero */
.pb-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 44px; }
.pb-hero-copy > * { animation: pb-rise .7s var(--ease) both; }
.pb-hero-copy > *:nth-child(2) { animation-delay: .06s; } .pb-hero-copy > *:nth-child(3) { animation-delay: .12s; }
.pb-hero-copy > *:nth-child(4) { animation-delay: .18s; } .pb-hero-copy > *:nth-child(5) { animation-delay: .24s; }
.pb-hero-copy > *:nth-child(6) { animation-delay: .3s; } .pb-hero-copy > *:nth-child(7) { animation-delay: .36s; }
@keyframes pb-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.pb-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; color: #d6f5e8; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; border: 1px solid rgba(182,220,205,.5); border-radius: 99px; background: rgba(29,122,90,.35); }
.pb-chip-dot { width: 8px; height: 8px; border-radius: 50%; background: #5fe0b0; }
.pb-chip.is-bad { color: #ffd9d4; border-color: rgba(229,185,180,.5); background: rgba(179,57,47,.4); }
.pb-chip.is-bad .pb-chip-dot { background: #ff8c80; }
.pb-alert { margin: 16px 0 0; padding: 12px 16px; color: #ffd9d4; font-weight: 600; border: 1px solid rgba(229,185,180,.5); border-left: 4px solid var(--red); border-radius: 4px; background: rgba(179,57,47,.25); }
.pb-eyebrow { display: flex; align-items: center; gap: 12px; margin: 24px 0 12px; color: var(--gold-2); font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.pb-eyebrow::before { width: 28px; height: 2px; background: var(--gold-2); content: ""; }
.pb-title { margin: 0 0 16px; color: #fff !important; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.1; letter-spacing: -.01em; overflow-wrap: anywhere; }
.pb-issued { margin: 0 0 16px; color: #c9d6ee; font-size: 1.12rem; }
.pb-issued strong { color: #fff; }
.pb-issued a { color: var(--gold-2); font-weight: 700; border-bottom: 1px solid rgba(216,178,90,.5); }
.pb-lead { max-width: 56ch; margin: 0 0 22px; color: #d3def2; font-size: 1.06rem; line-height: 1.75; overflow-wrap: anywhere; }
.pb-id { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 12px 10px 16px; border: 1px solid rgba(255,255,255,.22); border-radius: 4px; background: rgba(255,255,255,.08); }
.pb-id-label { color: #aebbd6; font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.pb-id code { color: var(--gold-3); font: 700 15px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; overflow-wrap: anywhere; }
.pb-copy { padding: 7px 14px; color: var(--navy); font-family: inherit; font-weight: 700; font-size: 12px; line-height: 1; cursor: pointer; border: 0; border-radius: 3px; background: var(--gold-2); }
.pb-copy:hover { background: var(--gold-3); }

/* badge medallion */
.pb-stage { position: relative; display: grid; width: min(100%, 400px); aspect-ratio: 1; margin: 0 auto; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #fff 40%, #f1ecdc 100%); box-shadow: 0 0 0 6px var(--gold-2), 0 0 0 12px rgba(255,255,255,.95), 0 0 0 14px var(--gold), 0 30px 60px rgba(0,0,0,.45); animation: pb-rise .8s var(--ease) .1s both; }
.pb-badge-wrap { width: 78%; aspect-ratio: 1; transition: transform .4s var(--ease); }
.pb-stage:hover .pb-badge-wrap { transform: scale(1.04); }
.pb-badge-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(11,36,71,.35)); }

/* facts */
.pb-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: 0 0 28px; }
.pb-fact { padding: 20px 22px; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 4px; background: #fff; box-shadow: var(--lift); transition: transform .25s var(--ease), box-shadow .25s; }
.pb-fact:hover { transform: translateY(-3px); box-shadow: var(--lift-2); }
.pb-fact span { display: block; margin-bottom: 6px; color: var(--mute); font-size: 10.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.pb-fact strong { color: var(--navy); font-family: var(--serif); font-size: 1.15rem; overflow-wrap: anywhere; }

/* skills + criteria */
.pb-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-bottom: 30px; }
.pb-split:has(> .pb-panel:only-child) { grid-template-columns: 1fr; }
.pb-panel { padding: 30px; border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 4px; background: #fff; box-shadow: var(--lift); }
.pb-panel h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 1.45rem; }
.pb-h-ico { display: grid; width: 34px; height: 34px; place-items: center; color: var(--navy); font-size: 15px; border-radius: 50%; background: var(--gold-3); box-shadow: 0 0 0 1px var(--gold-2); }
.pb-skills { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pb-skills li { padding: 8px 15px; color: var(--navy); font-size: 13px; font-weight: 600; border: 1px solid var(--line-2); border-radius: 3px; background: var(--paper); opacity: 0; transform: translateY(8px); }
.is-in .pb-skills li { opacity: 1; transform: none; transition: opacity .45s calc(var(--i) * 60ms + .15s), transform .45s calc(var(--i) * 60ms + .15s); }
.pb-criteria { margin: 0; color: var(--soft); font-size: 1.05rem; line-height: 1.8; overflow-wrap: anywhere; }
.pb-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.pb-tags span { color: var(--navy-3); font-size: 13px; font-weight: 600; }

/* certificates */
.pb-section-title { margin: 0 0 24px; padding-bottom: 14px; font-size: clamp(1.5rem, 3vw, 2.1rem); text-align: center; border-bottom: 1px solid var(--line-2); }
.pb-cert-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pb-cert-grid.pb-cert-single { grid-template-columns: minmax(0, 520px); justify-content: center; }
.pb-cert { padding: 18px; border: 1px solid var(--line); border-radius: 4px; background: #fff; box-shadow: var(--lift); transition: transform .3s var(--ease), box-shadow .3s; }
.pb-cert:hover { transform: translateY(-5px); box-shadow: var(--lift-2); }
.pb-cert h3 { min-height: 2.9em; margin: 4px 4px 12px; font-size: .98rem; line-height: 1.45; text-align: center; }
.pb-cert-img { display: block; overflow: hidden; border: 1px solid var(--line-2); border-radius: 2px; background: #fff; aspect-ratio: 1.414 / 1; box-shadow: 0 4px 12px rgba(11,36,71,.12); }
.pb-cert-img img { width: 100%; height: 100%; object-fit: contain; }
.cert-pdf-preview object { display: block; width: 100%; height: 100%; border: 0; }
.cert-pdf-fallback { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 100%; color: var(--navy) !important; font-weight: 700; text-decoration: none; }
.cert-pdf-fallback span { padding: 14px 18px; border: 2px solid currentColor; border-radius: 6px; font-size: 20px; letter-spacing: .08em; }
.pb-cert-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.pb-btn { display: inline-flex; padding: 9px 18px; color: var(--navy) !important; font-size: 13px; font-weight: 700; letter-spacing: .02em; border: 1px solid var(--gold); border-radius: 4px; background: linear-gradient(180deg, var(--gold-2), var(--gold)); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 6px 14px rgba(184,137,43,.3); transition: transform .2s var(--ease); }
.pb-btn:hover { transform: translateY(-2px); }
.pb-btn-ghost { color: var(--navy) !important; border-color: var(--line-2); background: #fff; box-shadow: 0 1px 2px rgba(11,36,71,.08); }
.pb-btn-ghost:hover { border-color: var(--navy); }

/* footer */
.pb-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 22px max(28px, calc(50% - 572px)); color: #aebbd6; font-size: 12.5px; background: var(--navy); border-top: 3px solid var(--gold); }
.pb-foot-trust { display: inline-flex; align-items: center; gap: 8px; }
.pb-foot-trust i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); }

/* scroll reveal */
.pb-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.pb-reveal.is-in { opacity: 1; transform: none; }

/* revoked */
.pb-revoked .pb-badge-img { filter: grayscale(1) drop-shadow(0 12px 14px rgba(11,36,71,.35)); }

.pb-hero > *, .pb-split > *, .pb-cert-grid > * { min-width: 0; }

@media (max-width: 960px) {
  .pb-hero { grid-template-columns: 1fr; gap: 28px; }
  .pb-stage { order: -1; width: min(72%, 320px); }
  .pb-hero-copy { text-align: center; }
  .pb-eyebrow { justify-content: center; }
  .pb-lead { margin-left: auto; margin-right: auto; }
  .pb-split, .pb-cert-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pb-top, .pb-band-in, .pb-main { padding-left: 16px; padding-right: 16px; }
  .pb-foot { padding-left: 16px; padding-right: 16px; justify-content: center; text-align: center; }
  .pb-brand-copy small { display: none; }
  .pb-panel { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pb-reveal, .pb-skills li { opacity: 1; transform: none; }
}

/* ===== Fit the banner on one screen (scales with viewport height) ===== */
@media (min-width: 961px) {
  .pb-top { padding-top: 12px; padding-bottom: 12px; }
  .pb-brand-mark { width: 42px; height: 42px; }
  .pb-brand-mark img { width: 30px; height: 30px; }
  .pb-band-in { padding-top: clamp(14px, 3vh, 30px); padding-bottom: clamp(24px, 5vh, 48px); }
  .pb-hero { gap: clamp(24px, 4vw, 44px); }
  .pb-eyebrow { margin: clamp(10px, 2vh, 20px) 0 clamp(6px, 1.2vh, 12px); }
  .pb-title { margin-bottom: clamp(8px, 1.6vh, 16px); font-size: clamp(1.7rem, min(3.9vw, 6.4vh), 3.4rem); }
  .pb-issued { margin-bottom: clamp(8px, 1.6vh, 16px); font-size: clamp(.98rem, 2.4vh, 1.12rem); }
  .pb-lead { margin-bottom: clamp(10px, 2vh, 22px); font-size: clamp(.92rem, 2.2vh, 1.06rem); line-height: 1.6; }
  .pb-stage { width: min(100%, 400px, 56vh); }
  .pb-id { padding-top: 8px; padding-bottom: 8px; }
}

/* ===== Banner fills exactly one screen ===== */
@media (min-width: 961px) {
  .pb-band { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
  .pb-band-in { display: flex; flex: 1; align-items: center; width: 100%; }
  .pb-band-in .pb-hero { width: 100%; }
}
.pb-band > .pb-top { width: 100%; }

/* ===== Wider layout + larger type so the banner fills the screen ===== */
.pb-top, .pb-main { max-width: 1560px; }
.pb-foot { padding-left: max(28px, calc(50% - 752px)); padding-right: max(28px, calc(50% - 752px)); }
@media (min-width: 961px) {
  .pb-band-in { max-width: 1560px; }
  .pb-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); }
  .pb-chip { padding: 8px 18px; font-size: clamp(11.5px, .85vw, 14px); }
  .pb-eyebrow { font-size: clamp(12px, .9vw, 15px); margin: clamp(14px, 2.6vh, 28px) 0 clamp(8px, 1.6vh, 16px); }
  .pb-title { font-size: clamp(2.2rem, min(4vw, 8.6vh), 4.8rem); line-height: 1.1; margin-bottom: clamp(12px, 2.2vh, 24px); }
  .pb-issued { font-size: clamp(1.1rem, min(1.5vw, 3.2vh), 1.55rem); margin-bottom: clamp(12px, 2.2vh, 22px); }
  .pb-lead { max-width: 60ch; font-size: clamp(1.02rem, min(1.25vw, 2.8vh), 1.35rem); line-height: 1.7; margin-bottom: clamp(16px, 3vh, 32px); }
  .pb-id { padding: 12px 14px 12px 18px; }
  .pb-id-label { font-size: clamp(10.5px, .75vw, 13px); }
  .pb-id code { font-size: clamp(15px, 1.15vw, 19px); }
  .pb-copy { padding: 9px 16px; font-size: clamp(12px, .9vw, 14px); }
  .pb-stage { width: min(100%, 580px, 66vh); }
  .pb-band-in { padding-top: clamp(24px, 5vh, 56px); padding-bottom: clamp(32px, 7vh, 72px); }
}

/* Badge shown without a circular plate */
.pb-stage { border-radius: 0; background: none; box-shadow: none; }
.pb-badge-wrap { width: 100%; }
.pb-badge-img { filter: drop-shadow(0 24px 30px rgba(0,0,0,.5)) drop-shadow(0 0 40px rgba(216,178,90,.22)); }

/* Badge shown inside a refined certificate-style frame */
.pb-stage { aspect-ratio: 1 / 1.04; border: 1px solid rgba(216,178,90,.6); border-radius: 6px; background: radial-gradient(circle at 50% 44%, rgba(86,138,226,.55), rgba(30,66,138,0) 64%), linear-gradient(165deg, #1d4388 0%, #102d62 55%, #0b2250 100%); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 -2px 0 rgba(0,0,0,.25) inset, 0 30px 60px rgba(0,0,0,.4), 0 8px 18px rgba(0,0,0,.25); }
.pb-stage::before { position: absolute; inset: 12px; border: 1px solid rgba(216,178,90,.35); border-radius: 2px; pointer-events: none; content: ""; }
.pb-stage::after { position: absolute; inset: 12px; pointer-events: none; content: ""; background:
  linear-gradient(#d8b25a,#d8b25a) top left / 26px 3px no-repeat, linear-gradient(#d8b25a,#d8b25a) top left / 3px 26px no-repeat,
  linear-gradient(#d8b25a,#d8b25a) top right / 26px 3px no-repeat, linear-gradient(#d8b25a,#d8b25a) top right / 3px 26px no-repeat,
  linear-gradient(#d8b25a,#d8b25a) bottom left / 26px 3px no-repeat, linear-gradient(#d8b25a,#d8b25a) bottom left / 3px 26px no-repeat,
  linear-gradient(#d8b25a,#d8b25a) bottom right / 26px 3px no-repeat, linear-gradient(#d8b25a,#d8b25a) bottom right / 3px 26px no-repeat; }
.pb-badge-wrap { width: 76%; }
