/* The certificate: a formal sheet in the Oracle house style. Ink rule, pine seal, brass hairline. Prints on A4 landscape. */
.cert-stage { display: grid; justify-items: center; gap: 22px; padding-block: 8px clamp(40px, 6vw, 72px); }
.cert {
  display: grid; position: relative; width: min(1020px, 100%); aspect-ratio: 1.414 / 1; background: #fff; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 3px; box-shadow: var(--sh-2); padding: clamp(10px, 1.6vw, 18px);
}
.cert-in {
  display: grid; grid-template-rows: auto 1fr auto; gap: clamp(8px, 1.4vw, 16px); text-align: center;
  border: 2px solid var(--ink); outline: 1px solid var(--brass); outline-offset: -8px;
  padding: clamp(20px, 4.2vw, 50px) clamp(18px, 5vw, 64px) clamp(16px, 3vw, 34px);
}
.cert-org { display: flex; align-items: center; justify-content: center; gap: 10px; font: 600 clamp(0.62rem, 1.05vw, 0.8rem)/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--pine); }
.cert-org svg { width: clamp(18px, 2.4vw, 26px); height: auto; }
.cert-title { margin-top: clamp(8px, 1.4vw, 16px); font: 600 clamp(1.35rem, 3.7vw, 2.75rem)/1.1 var(--serif); letter-spacing: -0.01em; }
.cert-mid { display: grid; align-content: center; gap: clamp(6px, 1.1vw, 14px); }
.cert-small { font: 400 clamp(0.7rem, 1.25vw, 0.98rem)/1.4 var(--serif-text); font-style: italic; color: var(--sub); }
.cert-name { justify-self: center; min-width: 44%; padding: 0 16px clamp(5px, 0.8vw, 10px); border-bottom: 1px solid var(--ink); font: 600 clamp(1.45rem, 4.3vw, 3.2rem)/1.12 var(--serif); letter-spacing: -0.015em; }
.cert-what { justify-self: center; max-width: 74%; font: 400 clamp(0.74rem, 1.45vw, 1.1rem)/1.55 var(--serif-text); color: var(--ink-2); }
.cert-what b { font-weight: 600; color: var(--ink); }
.cert-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(4px, 1vw, 12px); border-block: 1px solid var(--line-strong); text-align: left; }
.cert-fact { padding: clamp(6px, 1vw, 12px) clamp(6px, 1.1vw, 14px); }
.cert-fact + .cert-fact { border-left: 1px solid var(--line); }
.cert-fact span { display: block; font: 600 clamp(0.46rem, 0.78vw, 0.64rem)/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sub); }
.cert-fact b { display: block; margin-top: 4px; font: 600 clamp(0.64rem, 1.18vw, 0.95rem)/1.3 var(--sans); font-variant-numeric: tabular-nums; }
.cert-scope { font: 400 clamp(0.56rem, 0.98vw, 0.78rem)/1.45 var(--sans); color: var(--brass-ink); background: var(--brass-soft); border-radius: 3px; padding: clamp(4px, 0.7vw, 8px) 12px; text-align: left; }
.cert-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: end; text-align: left; }
.cert-sig { font: 400 clamp(0.44rem, 0.76vw, 0.62rem)/1.5 var(--mono); color: var(--sub); overflow-wrap: anywhere; }
.cert-sig b { display: block; font: 600 clamp(0.46rem, 0.78vw, 0.64rem)/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin-bottom: 3px; }
.cert-sig.right { text-align: right; }
.seal { width: clamp(56px, 9.6vw, 104px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; align-content: center; gap: 2px; background: var(--pine); color: #fff; box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--pine); }
.seal b { font: 600 clamp(0.95rem, 2.2vw, 1.65rem)/1 var(--serif); }
.seal span { font: 600 clamp(0.3rem, 0.56vw, 0.46rem)/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; }
.seal.unchecked { background: var(--faint); box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--faint); }
.cert-actions { width: min(1020px, 100%); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.cert-cite { width: min(1020px, 100%); }
@media (max-width: 700px) {
  .cert { aspect-ratio: auto; }
  .cert-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert-fact:nth-child(3) { border-left: 0; }
  .cert-fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .cert-what { max-width: 100%; }
  .cert-foot { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .cert-sig.right { text-align: center; }
  .cert-name { min-width: 76%; }
}
@media print {
  @page { size: A4 landscape; margin: 0; }
  body { background: #fff !important; }
  .top, .foot, .toast, .cert-actions, .cert-cite, .phead, .skip { display: none !important; }
  .cert-stage { padding: 0; }
  .cert { width: 100vw; height: 100vh; aspect-ratio: auto; box-shadow: none; border: 0; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
