/* LinguaCertify - site, registry and certificate styles
   Palette: deep navy #0F1E45, slate #334155, muted gold #B48A3E, surface #F8FAFC.
   Variable names are kept stable; --teal* now carries the dark-gold accent (AA contrast on white). */

:root {
  --navy: #0f1e45;
  --navy-700: #1a2d5e;
  --teal: #8c6a2e;
  --teal-600: #765822;
  --teal-50: #f6f1e6;
  --gold: #b48a3e;
  --gold-600: #9a7432;
  --gold-100: #efe3c8;
  --ink: #0f172a;
  --text: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #fff;
  --green: #047857;
  --green-50: #ecfdf5;
  --red: #b91c1c;
  --red-50: #fef2f2;
  --amber-50: #fffbeb;

  --radius: 6px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 14px 40px rgba(15, 30, 69, 0.16);
  --font: 'Segoe UI', system-ui, -apple-system, Roboto, 'Noto Sans', 'Noto Sans Georgian', 'Noto Sans Arabic', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', 'Noto Serif', 'Noto Serif Georgian', serif;
  --mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Consolas, monospace;
  --header-h: 68px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; outline: none; }
img, svg { max-width: 100%; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 { font-family: var(--font-serif); color: var(--navy); line-height: 1.22; margin: 0 0 0.5em; font-weight: 700; letter-spacing: 0; }
h3 { color: var(--ink); line-height: 1.3; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 3vw, 2.45rem); }
h2 { font-size: clamp(1.35rem, 2.1vw, 1.75rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
.break { word-break: break-all; }
.muted { color: var(--slate-500); }
.small { font-size: 0.88rem; }
.fine { font-size: 0.82rem; color: var(--slate-500); margin-top: 0.8rem; }
.center { text-align: center; }
.narrow-text { max-width: 660px; margin-left: auto; margin-right: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.74rem; font-weight: 700; color: var(--teal-600); margin-bottom: 0.7rem; }
.lead { font-size: 1.1rem; color: var(--slate-700); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 780px; }
.page-pad { padding-top: 40px; padding-bottom: 64px; }
.page-pad-sm { padding-top: 8px; padding-bottom: 64px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 4px; z-index: 100; }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid rgba(180, 138, 62, 0.5); outline-offset: 2px; }

/* ---------- icons, spinner ---------- */
.icon { flex: none; vertical-align: -0.2em; }
.spinner {
  display: inline-block; width: 1em; height: 1em; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 0.7s linear infinite; vertical-align: -0.15em;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-block { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--slate-500); padding: 48px 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 650; font-size: 0.94rem; line-height: 1; letter-spacing: 0.01em;
  padding: 12px 18px; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; text-decoration: none !important; white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--navy-700); }
.btn-accent { background: var(--gold-600); color: #fff; }
.btn-accent:hover:not(:disabled) { background: var(--teal-600); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--slate-300); }
.btn-ghost:hover:not(:disabled) { background: var(--slate-50); border-color: var(--navy); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #991b1b; }
.btn-danger-ghost { background: #fff; color: var(--red); border-color: #fecaca; }
.btn-danger-ghost:hover { background: var(--red-50); }
.btn-lg { padding: 15px 24px; font-size: 1rem; }
.btn-sm { padding: 7px 11px; font-size: 0.84rem; }
.btn-block { width: 100%; }

/* ---------- header / footer ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30; height: var(--header-h);
  background: rgba(255, 255, 255, 0.96); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--slate-200); box-shadow: inset 0 3px 0 var(--navy);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none !important; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.wordmark { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; letter-spacing: 0.01em; }
.wordmark.small { font-size: 0.95rem; }
.brand-sub { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate-500); font-weight: 700; margin-top: 3px; }
.wm-1 { color: var(--navy); }
.wm-2 { color: var(--gold-600); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { color: var(--slate-700); font-weight: 600; font-size: 0.92rem; padding: 8px 11px; border-radius: 4px; text-decoration: none; }
.site-nav a:not(.btn):hover { background: var(--slate-100); color: var(--navy); }
.site-nav a.is-active:not(.btn) { color: var(--navy); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }

.site-footer { border-top: 3px solid var(--navy); background: var(--slate-50); padding: 44px 0 36px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; align-items: start; }
.footer-grid nav { display: flex; flex-direction: column; gap: 7px; }
.footer-grid nav a { color: var(--slate-700); font-weight: 550; font-size: 0.92rem; overflow-wrap: anywhere; }
.footer-grid .brand { margin-bottom: 10px; }
.footer-about p { max-width: 380px; }
.footer-title { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); margin: 0 0 4px; }

body.in-test .site-footer { display: none; }

/* ---------- hero & sections ---------- */
.hero { background: var(--slate-50); border-bottom: 1px solid var(--slate-200); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding-top: 60px; padding-bottom: 68px; }
.hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.16; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero-note { font-size: 0.84rem; color: var(--slate-500); margin: 0; max-width: 580px; border-left: 2px solid var(--gold); padding-left: 12px; }
.hero-note a { color: var(--slate-700); text-decoration: underline; }

.hero-visual { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-sample { width: 100%; max-width: 380px; }
.hero-sample .cert-viewport { box-shadow: 0 18px 50px rgba(15, 30, 69, 0.2), 0 2px 6px rgba(15, 30, 69, 0.08); border-radius: 2px; }
.hero-visual figcaption { font-size: 0.8rem; color: var(--slate-500); text-align: center; }

.trust-strip { background: var(--navy); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; padding: 26px 22px; border-left: 1px solid rgba(255, 255, 255, 0.12); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item .icon { width: 26px; height: 26px; color: var(--gold); flex: none; margin-top: 2px; }
.trust-item h3 { color: #fff; font-size: 0.98rem; margin: 0 0 4px; font-family: var(--font-serif); letter-spacing: 0.01em; }
.trust-item p { color: rgba(255, 255, 255, 0.74); font-size: 0.85rem; line-height: 1.5; margin: 0; }

.section { padding: 64px 0; }
.section.alt { background: var(--slate-50); border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.section-title-rule { width: 56px; height: 2px; background: var(--gold); margin: 0 0 18px; }
.center .section-title-rule, .section-title-rule.center { margin-left: auto; margin-right: auto; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.section-cta { margin-top: 28px; }
.section-head .muted { margin: 4px 0 0; }

.page-hero { background: var(--slate-50); border-bottom: 1px solid var(--slate-200); padding: 44px 0 32px; margin-bottom: 24px; }
.narrow-lead { max-width: 780px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.step { background: #fff; border: 1px solid var(--slate-200); border-top: 3px solid var(--navy); border-radius: var(--radius); padding: 24px; }
.step-num { display: inline-block; font-family: var(--font-serif); font-size: 0.85rem; font-weight: 700; color: var(--gold-600); letter-spacing: 0.12em; margin-bottom: 10px; }
.step p { color: var(--slate-600); margin: 0; }

.level-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.level-card { border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 20px 22px; background: #fff; }
.level-card h3 { margin: 10px 0 6px; font-family: var(--font-serif); }
.level-card p { color: var(--slate-600); margin-bottom: 8px; font-size: 0.94rem; }

/* For employers & institutions */
.employer-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.employer-grid > div > p { color: var(--slate-700); }
.verify-steps { margin: 18px 0 8px; padding-left: 22px; display: grid; gap: 10px; color: var(--text); }
.verify-steps li::marker { color: var(--gold-600); font-weight: 800; }
.examples { display: grid; gap: 12px; }
.example-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-500); }

/* Document pages: /methodology, /about, /terms */
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-bottom: 72px; }
.doc-toc { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; display: grid; gap: 4px; border-left: 2px solid var(--gold); padding-left: 14px; }
.doc-toc a { color: var(--slate-700); font-size: 0.88rem; font-weight: 550; padding: 3px 0; }
.doc-toc a:hover { color: var(--navy); }
.doc-toc-title { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-500); margin: 0 0 6px; }
.doc-body { max-width: 780px; }
.doc-body h2 { scroll-margin-top: calc(var(--header-h) + 16px); padding-top: 6px; border-top: 1px solid var(--slate-200); }
.doc-body h2:first-child { border-top: 0; }
.doc-body h3 { margin-top: 1.2em; }
.doc-body ul, .doc-body ol { color: var(--slate-700); padding-left: 22px; }
.doc-body li { margin-bottom: 6px; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.84rem; color: var(--slate-500); margin-top: 6px; }
.doc-table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 0.92rem; }
.doc-table th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate-500); padding: 10px 12px; background: var(--slate-50); border-bottom: 1px solid var(--slate-300); }
.doc-table td { padding: 10px 12px; border-bottom: 1px solid var(--slate-200); }
.check-list { list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { color: var(--gold-600); margin-top: 3px; }
.descriptor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.descriptor-card { border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 16px 18px; background: #fff; }
.descriptor-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.descriptor-head .small { margin-left: auto; }
.descriptor-card p { font-size: 0.9rem; margin: 0; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 12px; }
.principle { border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 18px; background: #fff; }
.principle .icon { color: var(--gold-600); width: 24px; height: 24px; }
.principle h3 { margin: 10px 0 4px; font-size: 0.98rem; font-family: var(--font-serif); }
.principle p { font-size: 0.89rem; margin: 0; }
.notice-box { border: 1px solid var(--gold-100); background: var(--teal-50); border-left: 3px solid var(--gold); padding: 14px 16px; border-radius: var(--radius); color: var(--slate-700); font-size: 0.93rem; }

.faq details { border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 0 18px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 650; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 700; color: var(--gold-600); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { color: var(--slate-700); padding-bottom: 6px; }

/* ---------- cards, pills, badges ---------- */
.card { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.level-pill {
  display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 8px;
  border-radius: 4px; background: var(--slate-100); color: var(--navy); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.02em;
}
.level-pill.is-active { background: var(--navy); color: #fff; }
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 3px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.badge-ok { background: var(--teal-50); color: var(--teal-600); }
.badge-soon { background: var(--slate-100); color: var(--slate-500); }
.pill { display: inline-block; padding: 2px 9px; border-radius: 3px; font-size: 0.76rem; font-weight: 700; text-transform: capitalize; }
.pill-ok { background: var(--green-50); color: var(--green); }
.pill-bad { background: var(--red-50); color: var(--red); }
.notice { display: inline-flex; gap: 8px; align-items: center; background: var(--amber-50); border: 1px solid #fde68a; color: #92400e; padding: 10px 14px; border-radius: var(--radius); }

/* ---------- language grid ---------- */
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.lang-card {
  position: relative; display: flex; flex-direction: column; gap: 3px; padding: 18px 18px 16px; min-width: 0;
  border: 1px solid var(--slate-200); border-radius: var(--radius); background: #fff; color: var(--text);
  text-decoration: none !important; transition: border-color 0.15s, box-shadow 0.15s;
}
.lang-card.is-available:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.lang-card.is-soon { background: var(--slate-50); }
.lang-card.is-soon .lang-native { color: var(--slate-500); }
.lang-native { font-size: 1.28rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.lang-card .lang-native { text-align: left; }
.lang-native.big { font-size: 2rem; color: var(--navy); }
.lang-name { font-weight: 600; color: var(--slate-600); font-size: 0.92rem; }
.lang-meta { font-size: 0.78rem; color: var(--slate-400); margin-bottom: 8px; }
.lang-cta { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.88rem; color: var(--navy); }
.lang-facts { display: inline-block; align-self: flex-start; margin-top: 8px; font-size: 0.74rem; font-weight: 650; color: var(--slate-700); background: var(--slate-100); padding: 3px 9px; border-radius: 3px; letter-spacing: 0.01em; white-space: nowrap; }
.lang-card .badge { align-self: flex-start; margin-top: auto; }
.lang-grid.featured-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .lang-grid.featured-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .lang-grid.featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .lang-grid.featured-grid { grid-template-columns: minmax(0, 1fr); }
  .lang-facts { white-space: normal; }
}

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px; margin-bottom: 12px; }
.search-field { flex: 1 1 280px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--slate-300); border-radius: var(--radius); padding: 0 12px; background: #fff; color: var(--slate-400); }
.search-field:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15, 30, 69, 0.12); }
.search-field input { border: 0 !important; outline: 0; font: inherit; padding: 11px 0 !important; width: 100%; color: var(--text); background: transparent !important; box-shadow: none !important; border-radius: 0 !important; }
select, input[type='text'], input[type='password'], input[type='search'], input:not([type]), input[inputmode] {
  font: inherit; color: var(--text); border: 1px solid var(--slate-300); border-radius: var(--radius); padding: 11px 12px; background: #fff;
}
select:focus, input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15, 30, 69, 0.12); }
.search-field input:focus { box-shadow: none; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.field input { font-weight: 400; width: 100%; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.89rem; color: var(--slate-700); margin: 6px 0 16px; cursor: pointer; }
.check input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--navy); flex: none; }
.check.inline { margin: 0; align-items: center; }
.check.inline input { margin-top: 0; }
.form-error { background: var(--red-50); color: #991b1b; border: 1px solid #fecaca; border-radius: var(--radius); padding: 10px 12px; font-size: 0.9rem; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- empty states ---------- */
.empty-state { text-align: center; padding: 40px 20px; }
.empty-state.small { padding: 24px; }
.empty-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--slate-100); color: var(--slate-500); margin-bottom: 16px; }
.empty-icon .icon { width: 28px; height: 28px; }
.empty-state p { color: var(--slate-600); max-width: 540px; margin-left: auto; margin-right: auto; }

/* ---------- assessment intro ---------- */
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--slate-500); font-weight: 600; margin-bottom: 16px; }
.intro-card { padding: 32px; border-top: 3px solid var(--navy); }
.intro-head { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.intro-head h1 { margin: 0; }
.intro-head p { margin: 4px 0 0; }
.intro-head .lang-native.big { min-width: 96px; text-align: center; padding: 14px; background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius); font-size: 1.6rem; }
.intro-facts { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.intro-facts li { display: flex; gap: 10px; align-items: flex-start; }
.intro-facts .icon { color: var(--gold-600); margin-top: 3px; }
.intro-note { background: var(--slate-50); border: 1px solid var(--slate-200); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 14px 16px; font-size: 0.92rem; color: var(--slate-700); }
.intro-actions { margin-top: 24px; }

/* ---------- runner ---------- */
.runner-bar { position: sticky; top: var(--header-h); z-index: 20; background: #fff; border-bottom: 1px solid var(--slate-200); }
.runner-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; }
.runner-count { font-weight: 700; color: var(--slate-600); font-size: 0.92rem; }
.runner-timer { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-weight: 700; font-size: 1.05rem; padding: 6px 12px; border-radius: var(--radius); background: var(--slate-100); color: var(--ink); }
.runner-timer.is-low { background: var(--red-50); color: var(--red); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.7; } }
.runner-progress { height: 4px; background: var(--slate-100); }
.runner-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--navy)); transition: width 0.3s; }
.runner-body { padding-top: 28px; padding-bottom: 48px; }
.question-card { padding: 28px; min-height: 360px; }
.q-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 0.88rem; }
.q-instruction { color: var(--slate-500); font-size: 0.9rem; margin-bottom: 10px; }
.q-prompt { font-size: 1.42rem; line-height: 1.6; color: var(--ink); font-weight: 550; margin-bottom: 22px; }
.q-prompt[dir='rtl'] { font-size: 1.6rem; }
.blank {
  display: inline-block; min-width: 90px; padding: 0 8px; margin: 0 2px; text-align: center;
  border-bottom: 2.5px solid var(--slate-400); color: var(--navy); line-height: 1.35;
}
.blank.filled { border-bottom-color: var(--gold); background: var(--teal-50); border-radius: 4px 4px 0 0; }
.q-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.q-option {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: start;
  font: inherit; font-size: 1.08rem; color: var(--text); background: #fff;
  border: 1.5px solid var(--slate-200); border-radius: var(--radius); padding: 14px 16px; cursor: pointer;
  transition: border-color 0.12s, background-color 0.12s, box-shadow 0.12s;
}
.q-option:hover { border-color: var(--slate-400); background: var(--slate-50); }
.q-option.is-selected { border-color: var(--navy); background: var(--slate-50); box-shadow: 0 0 0 3px rgba(15, 30, 69, 0.1); }
.q-letter { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 4px; background: var(--slate-100); font-weight: 800; font-size: 0.85rem; color: var(--slate-600); font-family: var(--font); }
.q-option.is-selected .q-letter { background: var(--navy); color: #fff; }
.q-text { flex: 1; }
.runner-nav { display: flex; justify-content: space-between; gap: 12px; margin: 16px 0 24px; }
.navigator { padding: 18px; }
.navigator-head { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 12px; font-size: 0.9rem; }
.navigator-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 7px; margin-bottom: 16px; }
.nav-dot {
  height: 38px; border-radius: 4px; border: 1.5px solid var(--slate-200); background: #fff;
  font: inherit; font-weight: 700; font-size: 0.85rem; color: var(--slate-500); cursor: pointer;
}
.nav-dot:hover { border-color: var(--slate-400); }
.nav-dot.answered { background: var(--navy); color: #fff; border-color: var(--navy); }
.nav-dot.current { box-shadow: 0 0 0 3px rgba(180, 138, 62, 0.45); border-color: var(--gold); }

/* ---------- result ---------- */
.result-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: start; }
.result-card { padding: 30px; border-top: 3px solid var(--navy); }
.result-level { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; }
.result-level h1 { margin: 0; }
.result-badge {
  display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; flex: none;
  background: var(--navy); color: #fff; border: 4px solid var(--gold);
  font-family: var(--font-serif); font-size: 2.1rem; font-weight: 700; box-shadow: 0 8px 22px rgba(15, 30, 69, 0.25);
}
.result-score { font-weight: 700; color: var(--slate-600); margin: 4px 0 0; }
.bd-title { margin-top: 22px; font-size: 1rem; }
.breakdown { display: grid; gap: 8px; }
.bd-row { display: grid; grid-template-columns: 42px 1fr 40px; gap: 12px; align-items: center; }
.bd-bar { height: 9px; background: var(--slate-100); border-radius: 2px; overflow: hidden; }
.bd-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--navy)); }
.bd-num { font-weight: 700; font-size: 0.88rem; color: var(--slate-600); text-align: right; }
.issue-form { border-top: 3px solid var(--gold); }
.issue-form h2 { margin-bottom: 4px; }

/* ---------- verify ---------- */
.verify-card { padding: 34px; text-align: center; border-top: 3px solid var(--navy); }
.verify-icon, .admin-login-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--slate-50); border: 1px solid var(--slate-200); color: var(--navy); margin-bottom: 14px; }
.verify-icon .icon, .admin-login-icon .icon { width: 30px; height: 30px; }
.verify-form { display: flex; gap: 10px; margin: 22px 0 10px; }
.verify-form input { flex: 1; font-size: 1.1rem; font-family: var(--mono); letter-spacing: 0.04em; text-transform: none; }
.sample-try { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.verify-help { text-align: left; border-top: 1px solid var(--slate-200); margin-top: 24px; padding-top: 22px; }
.verify-help h2 { font-size: 1.1rem; }
.verify-help ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--slate-700); }
.verify-help li { display: flex; gap: 10px; }
.verify-help .icon { color: var(--gold-600); margin-top: 3px; }

/* ---------- certificate page & public registry audit record ---------- */
.success-banner, .status-card { display: flex; gap: 16px; align-items: flex-start; border-radius: var(--radius); padding: 18px 20px; }
.success-banner { background: var(--green-50); border: 1px solid #a7f3d0; border-left: 4px solid var(--green); margin-bottom: 24px; }
.success-banner h1 { font-size: 1.35rem; margin: 0 0 4px; }
.success-banner p { margin: 0; color: var(--slate-700); }
.status-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; }
.status-icon .icon { width: 22px; height: 22px; }
.success-banner .status-icon, .status-valid .status-icon { background: var(--green); color: #fff; }
.status-revoked .status-icon { background: var(--red); color: #fff; }
.status-card h3 { margin: 0 0 4px; font-size: 1rem; }
.status-card p { margin: 0; color: var(--slate-700); font-size: 0.9rem; }
.status-valid { background: var(--green-50); border: 1px solid #a7f3d0; }
.status-revoked { background: var(--red-50); border: 1px solid #fecaca; }

.cert-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
.cert-side { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 16px); }
.actions-card { display: grid; gap: 10px; }
.actions-card .fine a { color: var(--slate-600); }

.registry-card { background: #fff; border: 1px solid var(--slate-300); border-top: 4px solid var(--navy); border-radius: var(--radius); overflow: hidden; }
.registry-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--slate-50); border-bottom: 1px solid var(--slate-200); }
.registry-head h2 { font-size: 1.05rem; margin: 0; }
.registry-head p { margin: 2px 0 0; font-size: 0.78rem; color: var(--slate-500); letter-spacing: 0.04em; }
.registry-status { padding: 12px 18px; border-bottom: 1px solid var(--slate-200); }
.status-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 3px;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3;
}
.status-badge .icon { width: 16px; height: 16px; }
.st-active { background: var(--green); color: #fff; }
.st-revoked, .st-invalid { background: var(--red); color: #fff; }
.st-sample { background: var(--gold-100); color: #5c4417; border: 1px solid var(--gold); }
.registry-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.registry-table th { text-align: left; vertical-align: top; width: 38%; padding: 9px 12px 9px 18px; color: var(--slate-500); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 1px solid var(--slate-100); }
.registry-table td { padding: 9px 18px 9px 0; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--slate-100); overflow-wrap: anywhere; }
.registry-table td.note { font-weight: 450; color: var(--slate-700); font-size: 0.84rem; line-height: 1.5; }
.registry-table tr:last-child th, .registry-table tr:last-child td { border-bottom: 0; }
.fingerprint { font-family: var(--mono); letter-spacing: 0.06em; font-size: 0.88rem; }

.cert-preview { min-width: 0; }
.cert-viewport { position: relative; width: 100%; max-width: 794px; overflow: hidden; border-radius: 2px; box-shadow: var(--shadow-lg); margin: 0 auto; }
.cert-scaler { width: 794px; transform-origin: top left; }
.cert-render-holder { position: fixed; left: -12000px; top: 0; width: 794px; height: 1123px; pointer-events: none; }

/* ---------- the certificate (A4 @ 96dpi = 794 x 1123 px) ---------- */
.cert {
  position: relative; width: 794px; height: 1123px; overflow: hidden; background: #fff; color: #1f2937;
  font-family: 'Segoe UI', Arial, 'Noto Sans', 'Noto Sans Georgian', 'Noto Sans Arabic', sans-serif;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.cert-guilloche { position: absolute; left: 0; top: 0; width: 794px; height: 1123px; }
.cert-inner { position: absolute; left: 36px; top: 36px; right: 36px; bottom: 36px; padding: 26px 44px 0; display: flex; flex-direction: column; }
.cert-serif { font-family: Georgia, 'Times New Roman', 'Noto Serif', 'Noto Serif Georgian', serif; }
.cert-head { text-align: center; }
.cert-emblem { display: flex; justify-content: center; }
.cert-org { font-family: Georgia, 'Times New Roman', serif; font-size: 15px; letter-spacing: 0.34em; color: #0f1e45; font-weight: 700; margin-top: 8px; }
.cert-board { font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase; color: #8c6a2e; font-weight: 700; margin-top: 3px; }
.cert-h1 { font-family: Georgia, 'Times New Roman', serif; font-size: 22px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: #0f1e45; text-align: center; margin: 16px 0 4px; line-height: 1.3; }
.cert-sub { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 12.5px; color: #475569; text-align: center; margin: 0; }
.cert-divider { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 8px; }
.cert-divider span { display: block; width: 110px; height: 1px; background: #b48a3e; }
.cert-divider i { display: block; width: 7px; height: 7px; background: #b48a3e; transform: rotate(45deg); }
.cert-certify { text-align: center; font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 13.5px; color: #334155; margin: 0 0 2px; }
.cert-name { font-family: Georgia, 'Times New Roman', 'Noto Serif Georgian', serif; font-size: 31px; font-weight: 700; color: #0f1e45; text-align: center; white-space: nowrap; line-height: 1.3; }
.cert-name-rule { width: 380px; height: 1px; background: #b48a3e; margin: 5px auto 9px; }
.cert-statement { text-align: center; font-size: 13px; line-height: 1.6; color: #1f2937; margin: 0 auto; max-width: 600px; }
.cert-statement strong { color: #0f1e45; }

.cert-scale { margin-top: 12px; padding: 10px 20px 8px; border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 3px; }
.cert-pins { display: grid; grid-template-columns: repeat(6, 1fr); justify-items: center; height: 46px; }
.pin { display: flex; align-items: flex-start; justify-content: center; }
.pin-shape { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #cbd5e1; display: grid; place-items: center; margin-top: 4px; }
.pin-core { transform: rotate(45deg); width: 23px; height: 23px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; color: #94a3b8; }
.pin.is-active .pin-shape { width: 40px; height: 40px; margin-top: 0; background: #0f1e45; box-shadow: 0 4px 10px rgba(15, 30, 69, 0.3); }
.pin.is-active .pin-core { width: 28px; height: 28px; color: #0f1e45; font-size: 12.5px; box-shadow: inset 0 0 0 2px #b48a3e; }
.cert-bar { position: relative; height: 6px; border-radius: 999px; background: linear-gradient(90deg, #e9dcc0 0%, #b48a3e 45%, #0f1e45 100%); }
.cert-bar-marker { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; border: 3px solid #0f1e45; }
.cert-scale-labels { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 7px; text-align: center; font-size: 9px; color: #64748b; font-weight: 600; letter-spacing: 0.02em; }
.cert-scale-labels .is-active { color: #0f1e45; font-weight: 800; }

.cert-desc { margin: 9px 0 0; font-size: 11px; line-height: 1.55; color: #334155; text-align: justify; }
.cert-desc b { color: #0f1e45; }

.cert-audit { margin-top: 18px; border-top: 1.5px solid #0f1e45; padding-top: 12px; display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 20px; align-items: start; }
.cert-audit-title { grid-column: 1 / -1; font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase; color: #8c6a2e; font-weight: 800; margin-bottom: -6px; }
.cert-fields { width: 100%; border-collapse: collapse; font-size: 12px; }
.cert-fields th { text-align: left; font-weight: 700; color: #64748b; padding: 6px 12px 6px 0; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.05em; font-size: 9px; vertical-align: middle; border-bottom: 1px dotted #cbd5e1; }
.cert-fields td { color: #0f172a; font-weight: 700; padding: 6px 0; border-bottom: 1px dotted #cbd5e1; }
.cert-fields .mono { font-family: 'Cascadia Mono', Consolas, 'Courier New', monospace; letter-spacing: 0.05em; font-size: 11.5px; }
.cert-verify { text-align: center; }
.cert-verify-label { font-size: 8.6px; font-weight: 800; color: #0f1e45; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; }
.cert-qr { width: 124px; height: 124px; margin: 0 auto; padding: 5px; background: #fff; border: 1px solid #cbd5e1; box-sizing: content-box; }
.cert-qr img, .cert-qr canvas { width: 124px !important; height: 124px !important; display: block; image-rendering: pixelated; }
.cert-qr canvas[style*='display: none'] { display: none !important; }
.qr-missing { width: 112px; height: 112px; display: grid; place-items: center; font-size: 10px; color: #94a3b8; text-align: center; }
.cert-verify-hint { font-size: 8.6px; color: #64748b; margin-top: 6px; line-height: 1.4; }

.cert-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 6px; }
.cert-issuer { display: flex; align-items: center; gap: 12px; }
.cert-issuer-name { font-family: Georgia, 'Times New Roman', serif; font-size: 13.5px; font-weight: 700; color: #0f1e45; }
.cert-issuer-note { font-size: 9.5px; color: #475569; margin-top: 2px; max-width: 300px; line-height: 1.4; }
.cert-docref { text-align: right; font-size: 9px; color: #64748b; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.6; }
.cert-docref b { color: #0f1e45; font-family: 'Cascadia Mono', Consolas, monospace; font-size: 11px; letter-spacing: 0.04em; }
.cert-url { font-size: 9.5px; color: #334155; text-align: center; padding: 6px 0 12px; border-top: 1px solid #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cert-url span { color: #64748b; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 8.6px; margin-right: 6px; }
.cert-url code { font-family: 'Cascadia Mono', Consolas, 'Courier New', monospace; font-size: 10px; }

.cert-void {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) rotate(-24deg);
  font-size: 120px; font-weight: 900; letter-spacing: 0.08em; color: rgba(185, 28, 28, 0.16);
  border: 10px solid rgba(185, 28, 28, 0.16); padding: 6px 30px; border-radius: 10px; pointer-events: none; white-space: nowrap;
}
.cert-sample-mark {
  position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%) rotate(-24deg);
  font-size: 150px; font-weight: 900; letter-spacing: 0.12em; color: rgba(180, 138, 62, 0.14);
  border: 10px solid rgba(180, 138, 62, 0.14); padding: 4px 34px; border-radius: 10px; pointer-events: none; white-space: nowrap;
}

/* ---------- admin ---------- */
.admin-login { max-width: 440px; margin: 0 auto; text-align: center; padding: 34px; }
.admin-login .field { text-align: left; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.admin-tools { display: flex; flex-wrap: wrap; gap: 12px; padding: 14px; margin-bottom: 14px; }
.lookup { display: flex; gap: 8px; flex: 1 1 320px; }
.lookup input { flex: 1; font-family: var(--mono); }
.admin-stats { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.stat { background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 10px 16px; color: var(--slate-500); font-size: 0.85rem; font-weight: 600; }
.stat span { display: block; font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.table-card { padding: 0; overflow: hidden; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th { text-align: left; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate-500); padding: 12px 14px; background: var(--slate-50); border-bottom: 1px solid var(--slate-200); white-space: nowrap; }
.admin-table td { padding: 11px 14px; border-bottom: 1px solid var(--slate-100); vertical-align: middle; }
.admin-table tr:hover td { background: #fbfcfe; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions .btn { margin-left: 4px; }
.table-foot { padding: 12px; text-align: center; }
.table-foot .btn[hidden] { display: none; }
.history { padding-left: 18px; margin: 0; display: grid; gap: 10px; font-size: 0.9rem; }
.details { margin: 0; display: grid; gap: 10px; }
.details > div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: baseline; }
.details dt { color: var(--slate-500); font-size: 0.86rem; }
.details dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }

/* ---------- modal & toasts ---------- */
.modal { border: 0; padding: 0; border-radius: var(--radius-lg); width: min(520px, calc(100vw - 32px)); box-shadow: 0 24px 64px rgba(15, 23, 42, 0.3); }
.modal::backdrop { background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(2px); }
.modal-card { padding: 26px; }
.modal-title { font-size: 1.25rem; margin-bottom: 12px; }
.modal-body { color: var(--slate-600); }
.modal-body h3 { margin-top: 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 1000; display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: 0.92rem; font-weight: 550; opacity: 0; transform: translateY(10px); transition: opacity 0.25s, transform 0.25s; }
.toast.show { opacity: 1; transform: none; }
.toast-error { background: #991b1b; }
.toast-success { background: var(--green); }

/* ---------- prose ---------- */
.prose h2 { margin-top: 1.6em; font-size: 1.3rem; }
.prose p { color: var(--slate-700); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .site-nav a:not(.btn) { padding: 8px 8px; font-size: 0.88rem; }
  .brand-sub { display: none; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-visual { display: none; }
  .cert-layout { grid-template-columns: 1fr; }
  .cert-side { position: static; }
  .result-grid { grid-template-columns: 1fr; }
  .level-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item, .trust-item:first-child { border-left: 0; padding: 20px 12px 20px 0; }
  .employer-grid { grid-template-columns: 1fr; gap: 28px; }
  .doc-layout { grid-template-columns: 1fr; gap: 0; }
  .doc-toc { display: none; }
  .principle-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--slate-200); padding: 12px 16px 18px; gap: 4px;
    box-shadow: var(--shadow); transform: translateY(-120%); transition: transform 0.2s; visibility: hidden;
  }
  body.nav-open .site-nav { transform: none; visibility: visible; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-cta { margin: 8px 0 0; }
  .steps, .level-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item, .trust-item:first-child { padding: 14px 0; }
  .descriptor-grid, .principle-grid { grid-template-columns: 1fr; }
  .q-options { grid-template-columns: 1fr; }
  .q-prompt { font-size: 1.22rem; }
  .question-card { padding: 20px; min-height: 0; }
  .runner-lang .muted { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .verify-form { flex-direction: column; }
  .intro-head { flex-direction: column; align-items: flex-start; }
  .card { padding: 20px; }
  .result-level { flex-direction: column; align-items: flex-start; }
  .registry-table th { width: 42%; padding-left: 14px; }
  .registry-table td { padding-right: 14px; }
  .btn-lg { white-space: normal; text-align: center; line-height: 1.3; max-width: 100%; }
}

/* ---------- print: only the certificate, exact A4 ---------- */
#print-root { display: none; }
@media print {
  @page { size: A4 portrait; margin: 0; }
  html.is-printing, html.is-printing body {
    width: 210mm; height: 296mm; margin: 0 !important; padding: 0 !important;
    background: #fff; display: block; min-height: 0; overflow: hidden;
  }
  html.is-printing body > *:not(#print-root) { display: none !important; }
  /* The certificate is laid out at 794 x 1123 px; A4 is 793.7 x 1122.5 px. Scale it down by
     0.4% inside a fixed 296 mm box so it can never spill onto a second page. */
  html.is-printing #print-root {
    display: block; position: relative; width: 210mm; height: 296mm; overflow: hidden;
    break-inside: avoid; page-break-inside: avoid; break-after: avoid; page-break-after: avoid;
  }
  html.is-printing #print-root .cert { width: 794px; height: 1123px; transform: scale(0.996); transform-origin: top left; }
}
