/* Citeveriq certificate: A4 landscape (297 × 210 mm = 1123 × 794 px at 96 dpi) */
:root { --navy: #142A4F; --navy2: #1E3A66; --cyan: #159CEB; --ink: #1B2433; --slate: #5A6A80; --rule: #DCE3EC; --mist: #F2F5F9; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: #E6EBF2; font-family: "Sora", system-ui, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; }

/* Toolbar (screen only) */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 20px; background: #fff; border-bottom: 1px solid var(--rule); font-size: 14px; position: sticky; top: 0; z-index: 5; }
.tb-link { color: var(--navy); text-decoration: none; font-weight: 500; }
.tb-link:hover { text-decoration: underline; }
.tb-actions { display: flex; align-items: center; gap: 16px; }
.tb-btn { font: inherit; font-weight: 600; background: var(--navy); color: #fff; border: 0; border-radius: 7px; padding: 9px 14px; cursor: pointer; }
.tb-btn:hover { background: var(--navy2); }
.tb-btn:focus-visible, .tb-link:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.tb-status { font-weight: 600; font-size: 13px; padding: 5px 12px; border-radius: 99px; }
.tb-status.st-valid { color: #207245; background: #E6F2EB; }
.tb-status:not(.st-valid) { color: #A62C2C; background: #F8E7E7; }

.sheet-wrap { padding: 24px 16px; overflow: hidden; }
.sheet { width: 1123px; height: 794px; margin: 0 auto; background: #fff; position: relative; transform-origin: top left;
  box-shadow: 0 30px 60px -30px rgba(20,42,79,.45), 0 0 0 1px rgba(20,42,79,.06); }
@media (min-width: 1160px) { .sheet { transform-origin: top center; } }

/* Frame */
.frame { position: absolute; inset: 22px; border: 2px solid var(--navy); display: flex; }
.frame::after { content: ""; position: absolute; inset: 6px; border: 1px solid var(--cyan); pointer-events: none; }

/* Left band */
.band { width: 236px; flex: none; background: var(--navy); color: #fff; margin: 6px 0 6px 6px; padding: 40px 28px 30px; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; overflow: hidden;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 9px); }
.band::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(21,156,235,.22); left: -210px; bottom: -150px; box-shadow: 0 0 0 28px rgba(21,156,235,.05), 0 0 0 56px rgba(21,156,235,.035); }
.band-mark { width: 92px; height: auto; position: relative; }
.band-text { margin-top: 34px; position: relative; }
.band-label { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #9FB4D3; }
.band-no { display: block; font-size: 17px; font-weight: 600; margin-top: 6px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.band-qr { margin-top: auto; background: #fff; padding: 10px; border-radius: 6px; width: 132px; position: relative; }
.band-qr #qr svg { display: block; width: 100%; height: auto; }
.band-scan { font-size: 10.5px; color: #B9C6D9; margin: 12px 0 0; line-height: 1.4; position: relative; }

/* Content */
.content { flex: 1; padding: 44px 58px 24px 52px; display: flex; flex-direction: column; position: relative; }
.c-head { display: flex; justify-content: space-between; align-items: center; }
.c-logo { height: 30px; width: auto; }
.c-tag { font-size: 11px; color: var(--slate); letter-spacing: .02em; }
.c-title { font-size: 32px; font-weight: 600; color: var(--navy); letter-spacing: -.02em; margin: 48px 0 0; }
.c-certify { font-family: "Source Serif 4", Georgia, serif; font-style: italic; font-size: 17px; color: var(--slate); margin: 14px 0 6px; }
.c-journal { font-family: "Source Serif 4", Georgia, serif; font-weight: 600; font-size: 29px; line-height: 1.18; color: var(--navy); margin: 0; max-width: 720px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-meta { font-size: 13px; color: var(--slate); margin: 10px 0 0; font-variant-numeric: tabular-nums; }
.c-meta .sep { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); margin: 0 10px 2px; }
.c-body { font-family: "Source Serif 4", Georgia, serif; font-size: 15px; line-height: 1.55; color: var(--ink); margin: 20px 0 0; max-width: 680px; }

.c-score { display: flex; align-items: center; gap: 30px; margin-top: 24px; padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.c-score-num { font-size: 64px; font-weight: 600; line-height: 1; color: var(--navy); letter-spacing: -.045em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-score-num span { font-size: 20px; color: var(--slate); font-weight: 500; letter-spacing: 0; margin-left: 6px; }
.c-score-side { flex: 1; min-width: 0; }
.c-class { font-size: 15px; font-weight: 600; color: #207245; margin-bottom: 10px; }
.c-bar { display: flex; gap: 3px; height: 10px; }
.c-bar span { background: #D5DEE9; border-radius: 2px; overflow: hidden; position: relative; }
.c-bar i { position: absolute; inset: 0 auto 0 0; background: var(--navy); }
.c-legend { display: flex; flex-wrap: wrap; gap: 3px 14px; margin-top: 8px; font-size: 10.5px; color: var(--slate); }
.c-legend b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.c-foot { display: flex; align-items: flex-end; gap: 36px; margin-top: auto; padding-top: 16px; }
.c-dates { display: flex; gap: 30px; margin: 0; }
.c-dates dt { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.c-dates dd { margin: 4px 0 0; white-space: nowrap; font-size: 15px; font-weight: 600; color: var(--navy); }
.c-sign { margin-left: auto; min-width: 230px; text-align: center; }
.c-sign-line { border-bottom: 1px solid var(--navy); height: 38px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px; }
.c-sign-name { font-family: "Source Serif 4", Georgia, serif; font-style: italic; font-size: 21px; color: var(--navy); }
.c-sign-title { font-size: 11px; color: var(--slate); margin-top: 6px; }
.c-seal { width: 108px; height: 108px; flex: none; }
.c-fine { font-size: 9.5px; line-height: 1.45; color: var(--slate); margin: 14px 0 0; max-width: 760px; }

.watermark { position: absolute; inset: 0; display: grid; place-items: center; font-size: 150px; font-weight: 700; color: rgba(166,44,44,.14); transform: rotate(-24deg); letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }

.below { max-width: 1123px; margin: 0 auto 32px; padding: 0 16px; font-size: 14px; color: var(--ink); }

/* Print: exactly one A4 landscape page */
@page { size: A4 landscape; margin: 0; }
@media print {
  body { background: #fff; }
  .toolbar, .below { display: none; }
  .sheet-wrap { padding: 0; height: auto !important; }
  .sheet { box-shadow: none; transform: none !important; width: 297mm; height: 210mm; }
  .band, .c-bar i, .band-qr { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
