@font-face{font-family:'Libre Baskerville';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/libre-baskerville-400.woff') format('woff')}
@font-face{font-family:'Libre Baskerville';font-style:italic;font-weight:400;font-display:swap;src:url('fonts/libre-baskerville-400-italic.woff') format('woff')}
@font-face{font-family:'Inter';font-style:normal;font-weight:300 800;font-display:swap;src:url('fonts/inter-variable.woff2') format('woff2')}

.cv-verify { max-width: 540px; }
/* When the form is relocated below an auto-verified result, label + separate it. */
.cv-postverify .cv-again { margin-top: 30px; padding-top: 22px; border-top: 1px solid #e3e7ea; font-weight: 700; font-size: 18px; color: #16212c; margin-bottom: 12px; }
.cv-verify h2 { margin: 0 0 16px; }
.cv-verify label { display: block; margin: 0 0 12px; font-weight: 600; }
.cv-verify input {
  display: block; width: 100%; margin-top: 4px; padding: 10px;
  box-sizing: border-box; border: 1px solid #c8ccd0; border-radius: 6px;
}
.cv-verify button {
  padding: 11px 22px; border: 0; border-radius: 6px;
  background: #0b1f3a; color: #fff; font-weight: 600; cursor: pointer;
}
.cv-verify button:hover { background: #14305a; }

.cv-checking { margin-top: 16px; color: #555; }

.cv-result {
  margin-top: 22px; padding: 26px 24px; border-radius: 12px; text-align: center;
}
.cv-result--ok { background: #f1f8f2; border: 1px solid #b6dcb9; }
.cv-result--no { background: #fdecea; border: 1px solid #f0b4ae; }

.cv-badge { line-height: 0; }
.cv-status {
  margin: 12px 0 4px; font-size: 30px; font-weight: 800; letter-spacing: .4px;
}
.cv-status--ok { color: #2e7d32; }
.cv-status--no { color: #c62828; }

.cv-summary {
  margin: 6px auto 4px; max-width: 42ch;
  font-size: 17px; line-height: 1.5; color: #2b3a30;
}

.cv-fields { margin: 18px 0 0; text-align: left; }
.cv-fields > div {
  display: grid; grid-template-columns: 130px 1fr; gap: 10px;
  padding: 9px 0; border-top: 1px solid #e0eae1;
}
.cv-fields dt { margin: 0; font-weight: 700; color: #44505a; }
.cv-fields dd { margin: 0; color: #16212c; word-break: break-word; }

.cv-message { margin: 10px 0 0; color: #7a1c16; }

@media (max-width: 420px) {
  .cv-fields > div { grid-template-columns: 1fr; gap: 2px; }
}

/* ── Verified banner ── */
.cv-vbanner{display:flex;align-items:center;gap:10px;background:#f1f8f2;border:1px solid #b6dcb9;border-radius:10px;padding:12px 16px;margin:22px 0 16px;color:#2e7d32;font-weight:600;font-size:15px}
.cv-vbanner .cv-tick{flex:0 0 22px;width:22px;height:22px;border-radius:50%;background:#2e7d32;color:#fff;display:flex;align-items:center;justify-content:center;font-size:13px}
.cv-vbanner .cv-when{margin-left:auto;color:#5a7d5e;font-weight:400;font-size:13px}

/* ── Certificate facsimile ── */
/* Defensive: the facsimile renders inside a themed page whose global element
   rules (main/h2/h3 backgrounds, margins, fonts) would otherwise bleed in.
   We render from <div>s and reset the basics here so it is theme-independent. */
.cv-cert,.cv-cert *,.cv-cdetails,.cv-cdetails *{box-sizing:border-box}
.cv-cert,.cv-cdetails{font-family:'Inter',sans-serif}
.cv-cert{--navy:#00082A;--navy2:#103A65;--teal:#008384;--gold:#EEBA00;--gold-l:#F5D020;--paper:#FDFCF9;
  display:flex;background:var(--paper);border-radius:14px;overflow:hidden;box-shadow:0 8px 28px rgba(0,0,0,.10);border:1px solid #e7e2d6;color:#282828;text-align:left}
.cv-cert .cv-cbody{background:transparent}
.cv-cert .cv-rail{flex:0 0 132px;background:var(--navy);color:#fff;display:flex;flex-direction:column;align-items:center;gap:26px;padding:26px 16px;position:relative}
.cv-cert .cv-rail::after{content:"";position:absolute;top:0;right:0;width:3px;height:100%;background:linear-gradient(to bottom,var(--gold),var(--gold-l))}
.cv-cert .cv-wordmark{display:flex;align-items:center;gap:6px;font-weight:700;font-size:14px}
.cv-cert .cv-wordmark svg{width:16px;height:16px}
.cv-cert .cv-badge{width:72px;height:72px;border-radius:50%;background:radial-gradient(circle at 38% 32%,var(--gold-l),var(--gold) 70%);display:flex;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(0,0,0,.3)}
.cv-cert .cv-badge svg{width:56px;height:56px}
.cv-cert .cv-cbody{flex:1;padding:30px 32px 26px}
.cv-cert .cv-eyebrow{font-size:11px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--teal)}
.cv-cert .cv-preamble{font-weight:300;font-size:13px;color:#7c7f88;margin-top:14px}
.cv-cert .cv-name{font-family:'Libre Baskerville',serif;color:var(--navy);line-height:1.05;margin:8px 0 6px;letter-spacing:-.01em}
.cv-cert .cv-name.n1{font-size:34px}
.cv-cert .cv-name.n2{font-size:27px}
.cv-cert .cv-name.n3{font-size:22px}
.cv-cert .cv-claim{font-size:13.5px;margin-top:8px}
.cv-cert .cv-course{font-family:'Libre Baskerville',serif;font-style:italic;color:var(--navy2);font-size:21px;margin-top:3px;line-height:1.25}
.cv-cert .cv-rule{width:64px;height:3px;background:var(--gold);border-radius:2px;margin:18px 0 14px}
.cv-cert .cv-commit{font-size:13px;line-height:1.7;color:#54565e}
.cv-cert .cv-commit b{color:var(--navy);font-weight:600}
.cv-cert .cv-commit .cv-partner{display:block;margin-top:6px;font-style:italic}
.cv-cert .cv-sign{margin-top:20px}
.cv-cert .cv-sname{font-family:'Libre Baskerville',serif;font-style:italic;font-size:17px;color:var(--navy)}
.cv-cert .cv-srole{font-size:11px;color:#7c7f88;border-top:1.2px solid #c9ccd2;padding-top:5px;margin-top:4px;display:inline-block}

/* ── Certificate details ── */
.cv-cdetails{margin-top:18px;background:#fff;border:1px solid #e3e7ea;border-radius:12px;padding:6px 18px 10px;text-align:left}
.cv-cdetails .cv-dtitle{font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:#7a8690;margin:12px 0 4px}
.cv-cdetails .cv-drow{display:grid;grid-template-columns:120px 1fr;gap:10px;padding:9px 0;border-top:1px solid #eef1f3;align-items:center}
.cv-cdetails .cv-drow:first-of-type{border-top:0}
.cv-cdetails dt{font-weight:700;color:#44505a;font-size:13px;margin:0}
.cv-cdetails dd{margin:0;color:#16212c;font-size:14px;word-break:break-word}
.cv-cdetails .cv-idcopy{display:inline-flex;align-items:center;gap:8px}
.cv-cdetails .cv-idcopy code{font-weight:600;letter-spacing:.04em}
.cv-cdetails .cv-idcopy button{font-size:11px;border:1px solid #c8ccd0;background:#f6f7f8;border-radius:5px;padding:2px 8px;cursor:pointer;color:#44505a}

/* ── Mobile reflow: rail becomes a top band, body stacks ── */
@media (max-width:560px){
  .cv-cert{flex-direction:column}
  .cv-cert .cv-rail{flex-direction:row;justify-content:flex-start;gap:14px;flex:0 0 auto;padding:16px 20px}
  .cv-cert .cv-rail::after{top:auto;bottom:0;right:0;left:0;width:100%;height:3px;background:linear-gradient(to right,var(--gold),var(--gold-l))}
  .cv-cert .cv-badge{width:48px;height:48px}
  .cv-cert .cv-badge svg{width:38px;height:38px}
  .cv-cert .cv-name.n1{font-size:28px}
  .cv-cert .cv-name.n2{font-size:24px}
  .cv-cert .cv-name.n3{font-size:20px}
  .cv-cert .cv-course{font-size:18px}
  .cv-cdetails .cv-drow{grid-template-columns:1fr;gap:2px}
}
