/* The public credential page (/verify/<id>), following Mikel's Accredible example. Self-contained: it needs only the Inter font of the app. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); }
.cp-body { margin: 0; background: #f5f7fa; font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif; color: #3d4551; -webkit-font-smoothing: antialiased; }
.cp-body a { color: inherit; }
.cp-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 48px; background: #fff; border-bottom: 1px solid #e5e7eb; }
.cp-brand { display: flex; align-items: center; gap: 12px; }
.cp-brand img { display: block; height: 46px; width: auto; }
.cp-word { display: inline-flex; flex-direction: column; line-height: 1; letter-spacing: -0.025em; text-transform: lowercase; }
.cp-word span { font-size: 1.7rem; font-weight: 400; color: #159bf4; }
.cp-word b { font-size: 2rem; font-weight: 600; margin-top: -0.12em; color: #4e91fe; }
.cp-tag { color: #717985; font-size: 14px; }
.cp-hero { background: linear-gradient(135deg, #dbe8ff 0%, #eaf1ff 45%, #e3f4fb 100%); padding: 44px 0 40px; display: flex; justify-content: center; }
.cp-hero-card { background: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 6px 34px 6px rgba(115, 185, 255, 0.28); }
.cp-hero-card .cf { width: 440px; max-width: calc(100vw - 92px); border-radius: 14px; }
.cp-hero-empty { display: flex; width: 440px; max-width: calc(100vw - 92px); aspect-ratio: 1; border-radius: 14px; background: #0058cc; color: #fff; align-items: center; justify-content: center; font-size: 96px; font-weight: 700; }
.cp-wrap { max-width: 1180px; margin: 0 auto; padding: 36px 24px 40px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.cp-issuer { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.cp-mono { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #7284ff, #38a1e5); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; }
.cp-tick { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; background: #0078ff; border: 2px solid #fff; color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.cp-ext { display: inline-block; width: 14px; height: 14px; margin-left: 6px; vertical-align: -1px; }
.cp-ok svg { width: 20px; height: 20px; }
.cp-issuer-name { font-size: 20px; font-weight: 600; color: #0078ff !important; text-decoration: none; }
span.cp-issuer-name { color: #3d4551 !important; }
.cp-title { font-size: 34px; color: #3d4551; margin: 8px 0 14px; line-height: 1.2; font-weight: 600; }
.cp-actions { display: flex; gap: 22px; flex-wrap: wrap; margin: 0 0 22px; padding-bottom: 18px; border-bottom: 1px solid #e5e7eb; }
.cp-actions a { display: inline-flex; align-items: center; gap: 7px; color: #4b5563; text-decoration: none; font-size: 15px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.cp-actions svg { width: 18px; height: 18px; }
.cp-earner { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.cp-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #e4ebf7; color: #6b7686; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.cp-avatar { overflow: hidden; }
.cp-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cp-earner b { color: #3d4551; font-size: 17px; }
.cp-earner b a { text-decoration: none; }
.cp-earner small { display: block; color: #717985; font-size: 13px; }
.cp-desc { color: #4b5563; font-size: 16px; line-height: 1.6; margin: 0 0 16px; overflow-wrap: anywhere; }
.cp-skills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.cp-skills span { border: 1px solid #d0d5dd; border-radius: 6px; padding: 4px 10px; font-size: 14px; color: #4b5563; background: #fff; }
.cp-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin: 18px 0 8px; }
.cp-facts div span { display: block; color: #717985; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.cp-facts div b { color: #3d4551; font-size: 16px; font-weight: 600; }
.cp-actions-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.cp-panel { background: #f5f8ff; border: 1px solid rgba(115, 185, 255, 0.3); border-radius: 12px; box-shadow: 0 2px 20px 5px rgba(115, 185, 255, 0.18); padding: 22px; margin-bottom: 22px; }
.cp-panel h2 { font-size: 18px; color: #3d4551; margin: 0 0 4px; font-weight: 600; }
.cp-sub { color: #717985; font-size: 14px; margin: 0 0 14px; line-height: 1.5; }
.cp-social { display: flex; gap: 10px; flex-wrap: wrap; }
.cp-social a, .cp-social button { width: 48px; height: 48px; border-radius: 8px; color: #fff !important; display: flex; align-items: center; justify-content: center; font-weight: 700; text-decoration: none; font-size: 17px; border: 0; cursor: pointer; font-family: inherit; }
.cp-social .in { background: #0a66c2; } .cp-social .fb { background: #1877f2; } .cp-social .xx { background: #000; } .cp-social .wa { background: #25d366; }
.cp-social .more { background: #fff; color: #4b5563 !important; border: 1px solid #e5e7eb; }
.cp-copied { color: #15803d; font-size: 13px; margin: 10px 0 0; }
.cp-ver { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.cp-ok { width: 40px; height: 40px; border-radius: 50%; background: #dcfce7; color: #15803d; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.cp-pill { background: #dcfce7; color: #15803d; font-weight: 700; border-radius: 999px; padding: 5px 16px; font-size: 16px; }
.cp-ver.revoked .cp-ok, .cp-ver.revoked .cp-pill, .cp-ver.invalid .cp-ok, .cp-ver.invalid .cp-pill { background: #fee2e2; color: #b42318; }
.cp-ver.expired .cp-ok, .cp-ver.expired .cp-pill, .cp-ver.not_yet_valid .cp-ok, .cp-ver.not_yet_valid .cp-pill { background: #fef3c7; color: #92400e; }
.cp-btnrow { display: flex; gap: 10px; margin: 14px 0 6px; flex-wrap: wrap; }
.cp-btn { display: inline-flex; align-items: center; border: 1px solid #cdd6e4; background: #fff; border-radius: 7px; padding: 9px 16px; font-size: 14px; font-weight: 600; color: #3d4551 !important; text-decoration: none; cursor: pointer; font-family: inherit; line-height: 1.2; }
.cp-btn--primary { background: linear-gradient(to right, #bacefd, #0078ff); color: #fff !important; border-color: transparent; }
.cp-checks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.cp-checks li { font-size: 14px; overflow-wrap: anywhere; }
.cp-checks li.ok { color: #15803d; } .cp-checks li.bad { color: #b42318; grid-column: 1 / -1; }
.cp-checks li.ok::before { content: "\2713  "; font-weight: 700; } .cp-checks li.bad::before { content: "\2717  "; font-weight: 700; }
.cp-idrow { color: #717985; font-size: 12px; margin: 12px 0 0; word-break: break-all; line-height: 1.6; }
.cp-bottom { max-width: 1180px; margin: 0 auto; padding: 0 24px 40px; }
.cp-bottom h2 { font-size: 22px; color: #3d4551; margin: 26px 0 12px; font-weight: 600; }
.cp-issuer-card { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px; }
.cp-issuer-card p { margin: 0; color: #4b5563; max-width: 640px; line-height: 1.5; }
.cp-issuer-card .cp-btn { margin-left: auto; white-space: nowrap; }
.cp-cards { display: flex; gap: 18px; flex-wrap: wrap; }
.cp-mcard { width: 230px; box-sizing: border-box; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px; text-decoration: none; display: block; }
.cp-mcard .cf { border-radius: 8px; }
.cp-mcard .cp-mname { display: block; margin-top: 10px; color: #3d4551; font-size: 15px; line-height: 1.35; }
.cp-foot { text-align: center; color: #717985; font-size: 13px; padding: 12px 16px 36px; }
.cp-foot a { text-decoration: none; }
@media (max-width: 900px) { .cp-wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 16px; } .cp-top { padding: 12px 16px; } .cp-tag { display: none; } .cp-bottom { padding: 0 16px 32px; } }
@media (max-width: 640px) { .cp-title { font-size: 26px; } .cp-facts { grid-template-columns: minmax(0, 1fr); } .cp-issuer-card { flex-direction: column; align-items: flex-start; } .cp-issuer-card .cp-btn { margin-left: 0; } .cp-hero { padding: 24px 0; } .cp-checks { grid-template-columns: minmax(0, 1fr); } }
/* on a phone the other credentials of the issuer are two to a row (the cards were one to a row and the page very long) */
@media (max-width: 640px) { .cp-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .cp-mcard { width: auto; padding: 9px; border-radius: 10px; } .cp-mcard .cp-mname { font-size: 13px; margin-top: 8px; } }
/* on a phone the links of the page get a finger-sized height (Download, Email, Help, the school and the earner) */
@media (max-width: 640px) { .cp-actions a { min-height: 44px; } .cp-issuer-name { display: inline-flex; align-items: center; min-height: 44px; } .cp-earner b a { display: inline-block; padding: 12px 0; } }
/* 2026-11-13: Credential document, Signed credential, Terms and Privacy were 15 to 16 px tall on a phone: each gets an invisible finger-sized
   tap area around it (the same rule as the app pages), so nothing on the page moves */
@media (max-width: 900px) { .cp-idrow a, .cp-foot a { position: relative; } .cp-idrow a::after, .cp-foot a::after { content: ""; position: absolute; inset: -0.7rem -0.3rem; } }
@media print { .cp-top, .cp-social, .cp-btnrow, .cp-actions, .cp-hero { display: none; } }
