/* Readiness report: paper look on screen, clean A4 when printed or saved as PDF */
.rr { --rr-ink: #241a1e; --rr-dim: #6f6266; --rr-line: #e6dcd3; --rr-paper: #fffdf9; --rr-maroon: #5b1730; --rr-gold: #c98a13;
  max-width: 1080px; margin: 0 auto; padding: 36px 40px 28px; background: var(--rr-paper); color: var(--rr-ink); border-radius: 22px;
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; box-shadow: 0 30px 80px -30px rgba(36, 16, 27, .45); }
.rr * { box-sizing: border-box; }
.rr-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding-bottom: 18px; border-bottom: 2px solid var(--rr-maroon); }
.rr-kicker { margin: 0 0 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--rr-gold); font-weight: 600; }
.rr h1 { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 650; letter-spacing: -.01em; color: var(--rr-maroon); }
.rr h1 span { color: var(--rr-ink); font-weight: 500; }
.rr-sub { margin: 6px 0 0; color: var(--rr-dim); }
.rr-brand { text-align: right; white-space: nowrap; }
.rr-brand span { display: block; font-size: 11px; color: var(--rr-dim); text-transform: uppercase; letter-spacing: .08em; }
.rr-brand b { font-size: 20px; color: var(--rr-maroon); }
.rr-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 20px 0; }
.rr-tile { border: 1px solid var(--rr-line); border-radius: 14px; padding: 12px 14px; background: #fff; }
.rr-tile b { display: block; font-size: 28px; line-height: 1.1; font-weight: 650; }
.rr-tile span { font-size: 12.5px; color: var(--rr-dim); }
.rr-tile.is-ok { background: #f2faf4; border-color: #b9e2c6; } .rr-tile.is-ok b { color: #1d7a43; }
.rr-tablewrap { overflow-x: auto; }
.rr-table { width: 100%; border-collapse: collapse; }
.rr-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--rr-dim); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--rr-line); }
.rr-table td { padding: 10px; border-bottom: 1px solid var(--rr-line); vertical-align: middle; }
.rr-name { font-weight: 600; }
.rr-dim { color: var(--rr-dim); font-size: 13px; }
.rr-chip { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.rr-chip--ok { background: #dff3e6; color: #1d7a43; } .rr-chip--blue { background: #e3ecfb; color: #2a5bb5; }
.rr-chip--warn { background: #fdf0d6; color: #946010; } .rr-chip--grey { background: #efeae6; color: #6f6266; }
.rr-bar { width: 110px; height: 6px; border-radius: 9px; background: #efe7df; overflow: hidden; margin-bottom: 3px; }
.rr-bar i { display: block; height: 100%; background: var(--rr-gold); border-radius: 9px; }
.rr-code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; color: var(--rr-maroon); text-decoration: none; border-bottom: 1px dotted currentColor; }
.rr-empty { padding: 24px; text-align: center; color: var(--rr-dim); border: 1px dashed var(--rr-line); border-radius: 14px; }
.rr-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rr-line); font-size: 12.5px; color: var(--rr-ink); }
.rr-foot p { margin: 0 0 6px; }
@media (max-width: 640px) { .rr { padding: 22px 16px; border-radius: 16px; } .rr-head { flex-direction: column; } .rr-brand { text-align: left; } .rr h1 { font-size: 24px; } }

/* certificate */
.cert { width: min(900px, 100%); aspect-ratio: 1.414; margin: 0 auto; padding: 5% 7%; position: relative; background: #fffdf9; color: #241a1e; border-radius: 18px;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; display: grid; align-content: space-between; text-align: center; box-shadow: 0 30px 80px -30px rgba(36, 16, 27, .45);
  border: 10px double #c98a13; }
.cert__top { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #c98a13; font-weight: 600; }
.cert h2 { margin: 6px 0 0; font-size: clamp(22px, 4vw, 36px); color: #5b1730; font-weight: 650; }
.cert__name { font-size: clamp(28px, 6vw, 54px); font-weight: 650; letter-spacing: -.01em; margin: 0; border-bottom: 1px solid #e6dcd3; padding-bottom: 6px; }
.cert__title { font-size: clamp(16px, 2.4vw, 22px); margin: 10px 0 0; }
.cert__meta { display: flex; justify-content: space-between; gap: 16px; font-size: 12.5px; color: #6f6266; text-align: left; flex-wrap: wrap; }
.cert__meta b { display: block; color: #241a1e; font-size: 14px; }
.cert__code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.cert.is-void::after { content: 'WITHDRAWN'; position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(40px, 10vw, 110px); font-weight: 800; color: rgba(180, 30, 40, .18); transform: rotate(-18deg); pointer-events: none; }

@media print {
  @page { size: A4; margin: 12mm; }
  html, body { background: #fff !important; }
  .rr { box-shadow: none; border-radius: 0; padding: 0; max-width: none; }
  .rr-table tr { break-inside: avoid; }
  .cert { box-shadow: none; }
  .rp-noprint { display: none !important; }
}
