/* Certificado de participação — A4 paisagem (297 × 210 mm).
   Usado no painel (prévia e impressão) e no celular (PDF via html2canvas):
   por isso a textura é um elemento de verdade e não um pseudo-elemento. */
.cert {
  --c-night: #061a2d;
  --c-blue: #0b4d88;
  --c-gold: #c9952f;
  --c-gold-light: #f0d79b;
  --c-ink: #081f34;
  --c-muted: #5f6f7b;
  --c-line: #dbe5ec;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 297mm;
  height: 210mm;
  overflow: hidden;
  background: #fff;
  color: var(--c-ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: left;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.cert * {
  box-sizing: border-box;
}
.cert p {
  margin: 0;
}

.cert-band {
  position: relative;
  flex: 0 0 46mm;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12mm;
  padding: 0 18mm;
  overflow: hidden;
  background: var(--c-night);
  color: #fff;
}
.cert-band-texture {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  background: url("/assets/natal/textura-luzes.webp") right 40% / cover
    no-repeat;
}
.cert-band-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(6, 26, 45, 0.97) 0%,
    rgba(6, 26, 45, 0.9) 55%,
    rgba(6, 26, 45, 0.55) 80%,
    rgba(6, 26, 45, 0.15) 100%
  );
}
.cert-band-logo {
  position: relative;
  width: 50mm;
  height: auto;
  flex: none;
}
.cert-band-copy {
  position: relative;
  margin-right: 34mm;
  text-align: right;
}
.cert-band-copy span {
  display: block;
  color: var(--c-gold-light);
  font-size: 8pt;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.cert-band-copy strong {
  display: block;
  margin-top: 1.5mm;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28pt;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.01em;
}
.cert-band-rule {
  flex: 0 0 1.2mm;
  background: linear-gradient(90deg, #b8862a, var(--c-gold-light) 50%, #b8862a);
}

.cert-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6mm 24mm 4mm;
  text-align: center;
}
.cert-lead {
  color: var(--c-muted);
  font-size: 10.5pt;
  letter-spacing: .04em;
}
.cert-name {
  margin-top: 3mm !important;
  color: var(--c-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32pt;
  font-weight: 500;
  line-height: 1.12;
  text-wrap: balance;
}
.cert-name.is-long {
  font-size: 26pt;
}
.cert-name-line {
  width: 70mm;
  height: 1pt;
  margin: 4mm auto 3mm;
  background: linear-gradient(
    90deg,
    rgba(201, 149, 47, 0),
    var(--c-gold) 50%,
    rgba(201, 149, 47, 0)
  );
}
.cert-company {
  color: var(--c-muted);
  font-size: 10.5pt;
}
.cert-company strong {
  color: var(--c-ink);
  font-weight: 650;
}
.cert-text {
  max-width: 205mm;
  margin-top: 6mm !important;
  color: var(--c-ink);
  font-size: 11.5pt;
  line-height: 1.65;
  text-wrap: pretty;
}

.cert-signs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24mm;
  width: 170mm;
  margin-top: 17mm;
}
.cert-sign {
  position: relative;
  border-top: .8pt solid var(--c-ink);
  padding-top: 2.2mm;
  font-size: 10pt;
  line-height: 1.4;
}
/* Assinatura sobre a linha, cruzando-a de leve como numa assinatura à caneta. */
.cert-signature {
  position: absolute;
  bottom: calc(100% - 2.6mm);
  left: 50%;
  width: auto;
  transform: translateX(-50%);
  pointer-events: none;
}
.cert-signature.is-anderson {
  height: 15mm;
}
.cert-signature.is-itacir {
  height: 17mm;
}
.cert-sign strong {
  display: block;
  font-weight: 650;
}
.cert-sign span {
  color: var(--c-muted);
  font-size: 8.5pt;
}

.cert-foot {
  flex: 0 0 31mm;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  margin: 0 18mm;
  border-top: .6pt solid var(--c-line);
}
.cert-foot-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.6mm;
  height: 100%;
  padding: 0 9mm;
}
.cert-foot-group:first-child {
  padding-left: 0;
}
.cert-foot-group + .cert-foot-group {
  border-left: .6pt solid var(--c-line);
}
.cert-foot-group > span {
  color: var(--c-muted);
  font-size: 6.5pt;
  font-weight: 800;
  letter-spacing: .2em;
}
.cert-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7mm;
}
.cert-logos img {
  width: auto;
  height: 8mm;
}
.cert-logos .is-realizacao {
  height: 11mm;
}
.cert-logos .is-senac {
  height: 9mm;
}
.cert-logos .is-wide {
  height: 8.5mm;
}
.cert-logos .is-acp {
  height: 5mm;
}
.cert-check {
  flex-direction: row;
  align-items: center;
  gap: 4mm;
  padding-right: 0;
}
.cert-qr {
  width: 21mm;
  height: 21mm;
  flex: none;
}
.cert-qr svg,
.cert-qr img {
  display: block;
  width: 100%;
  height: 100%;
}
.cert-check-copy {
  color: var(--c-muted);
  font-size: 7pt;
  line-height: 1.45;
  text-align: left;
}
.cert-check-copy b {
  display: block;
  margin-bottom: .6mm;
  font-size: 6.5pt;
  letter-spacing: .2em;
}
.cert-check-copy strong {
  display: block;
  margin-top: 1.2mm;
  color: var(--c-ink);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 8.5pt;
  letter-spacing: .06em;
  white-space: nowrap;
}

/* Área fora da tela usada para gerar o PDF no celular. */
.cert-render {
  position: fixed;
  top: 0;
  left: -10000px;
  pointer-events: none;
}
