/* Certification test (/certify) and certificate pages (/certificate/<id>) */
.cert-steps { margin: 0 0 12px; padding-left: 1.2em; display: grid; gap: 8px; line-height: 1.5; }
.cert-note { color: var(--muted); font-size: .92rem; }
.cert-panel { max-width: 680px; margin: 0 auto; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.cert-panel h2 { margin: 0 0 10px; }
.cert-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.cert-choice { display: grid; gap: 4px; padding: 16px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.cert-choice:hover, .cert-choice:focus-visible { border-color: var(--brand); }
.cert-choice span { color: var(--muted); font-size: .85rem; }
.cert-mine-title { margin: 22px 0 8px; }
.cert-mine { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.cert-mine span { color: var(--muted); font-size: .88rem; margin-left: 6px; }
.cert-bar { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; color: var(--muted); font-size: .9rem; }
.cert-clock { font-variant-numeric: tabular-nums; color: var(--ink); }
.cert-progress { height: 6px; margin: 10px 0 18px; border-radius: 99px; background: var(--line); overflow: hidden; }
.cert-progress i { display: block; height: 100%; background: var(--brand); transition: width .2s; }
.cert-q { font-size: .95rem; color: var(--muted); font-weight: 600; }
.cert-action { font-size: 1.25rem; font-weight: 700; margin: 0 0 16px; }
.cert-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.cert-opt { min-height: 54px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface-2, var(--surface)); color: var(--ink); cursor: pointer; font: inherit; }
.cert-opt:hover, .cert-opt:focus-visible { border-color: var(--brand); }
.cert-opt.is-picked { border-color: var(--brand); background: var(--brand-soft, rgba(15,108,129,.08)); }
.cert-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cert-review { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.cert-review li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }

/* The certificate itself */
.cert-body { background: var(--bg, #f6f7fb); }
.cert-shell { max-width: 900px; margin: 0 auto; padding: 32px 16px 48px; }
.cert { position: relative; padding: clamp(28px, 6vw, 64px); text-align: center; background: #fff; color: #17202a;
  border: 1px solid #d9e2ea; border-radius: 18px; box-shadow: 0 30px 60px rgba(23,32,42,.12);
  background-image: radial-gradient(circle at 0 0, rgba(15,108,129,.08), transparent 40%), radial-gradient(circle at 100% 100%, rgba(15,108,129,.08), transparent 40%); }
.cert::before { content: ""; position: absolute; inset: 12px; border: 2px solid rgba(15,108,129,.25); border-radius: 12px; pointer-events: none; }
.cert-top { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-size: .85rem; letter-spacing: .04em; }
.cert-brand { color: #0f6c81; }
.cert-verified { color: #067647; }
.cert-kicker { margin: 28px 0 18px; font-size: .9rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #5d6a75; }
.cert-small { margin: 6px 0; color: #5d6a75; }
.cert-name { margin: 8px 0 14px; font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.1; font-family: Georgia, "Times New Roman", serif; }
.cert-app { margin: 6px 0 16px; font-size: clamp(1.25rem, 3.5vw, 1.7rem); color: #0f6c81; }
.cert-detail { margin: 0 auto 28px; max-width: 520px; color: #17202a; }
.cert-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 16px; border-top: 1px solid #e3e9ef; font-size: .85rem; color: #5d6a75; }
.cert-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0 10px; }
.cert-verify { text-align: center; color: var(--muted); font-size: .88rem; word-break: break-word; }
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  .cert-actions, .cert-verify { display: none !important; }
  .cert-shell { padding: 0; max-width: none; }
  .cert { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
