/* =============================================
   Plataforma AP — Certificado Berkley
   ============================================= */
.cert-wrap { padding: 1.5rem; background: var(--cert-bg); min-height: calc(100vh - 100px); }
.cert-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; flex-wrap: wrap; gap: 8px;
  max-width: 720px; margin-left: auto; margin-right: auto;
}
.cert-actions-bottom {
  max-width: 720px; margin: 1.25rem auto 0;
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.cert-doc {
  background: white;
  border-radius: 6px;
  border: 1px solid var(--cert-border);
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
  font-family: Calibri, Arial, sans-serif;
  color: var(--cert-texto);
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
}

.berkley-logo-wrap { padding: 0.85rem 0rem 0.1rem; text-align: center; border-bottom: 2px solid var(--cert-header-bg); }
.berkley-logo { display: inline-flex; align-items: center; gap: 10px; }

.cert-title-area { padding: 1.125rem 2rem .5rem; text-align: center; }
.cert-title { font-size: 15px; font-weight: 700; letter-spacing: 1px; color: var(--cert-texto); }
.cert-intro { font-size: 12px; color: var(--cert-texto-sec); margin-top: .625rem; }

.cert-tables { padding: 0 1.5rem 1.25rem; }
.ct { width: 100%; border-collapse: collapse; font-size: 11.5px; border: 1px solid var(--cert-border); table-layout: fixed; }
.ct .head-row { background: var(--cert-header-bg); }
.ct .head-row td { padding: 9px 10px; text-align: center; font-weight: 700; color: white; letter-spacing: .5px; font-size: 12px; }
.ct tr { border-bottom: 1px solid var(--cert-separador); }
.ct td { padding: 7px 10px; vertical-align: top; color: var(--cert-texto-td); }
.ct td:first-child { font-weight: 700; color: var(--cert-texto); background: var(--cert-header-light); width: 38%; }
.ct td:last-child { width: 62%; line-height: 1.6; }

.pt { width: 100%; border-collapse: collapse; font-size: 11.5px; border: 1px solid var(--cert-border); border-top: none; table-layout: fixed; margin-top: 1rem; }
.pt colgroup col:nth-child(1) { width: 36%; }
.pt colgroup col:nth-child(2) { width: 22%; }
.pt colgroup col:nth-child(3) { width: 16%; }
.pt colgroup col:nth-child(4) { width: 13%; }
.pt colgroup col:nth-child(5) { width: 13%; }
.pt .pt-head { padding: 8px 10px; font-weight: 700; color: var(--cert-texto); background: var(--cert-header-light); border-bottom: 1px solid var(--cert-separador); font-size: 11px; }
.pt thead.cols tr { background: var(--cert-header-bg); }
.pt thead.cols th { padding: 7px 8px; text-align: left; color: white; font-weight: 700; font-size: 10.5px; }
.pt tbody tr { border-bottom: 1px solid var(--cert-separador); }
.pt tbody tr:nth-child(even) { background: var(--cert-fila-par); }
.pt tbody td { padding: 7px 8px; color: var(--cert-texto-td); }

.cert-foot { padding: 1rem 1.5rem 1.25rem; }
.cert-foot p { font-size: 11px; color: var(--cert-texto-sec); line-height: 1.55; margin: 0; }
.cert-foot p.date { font-size: 12px; color: var(--cert-texto-td); margin-bottom: .5rem; }
.cert-foot p.firm { font-size: 12px; font-weight: 700; color: var(--cert-texto); margin-bottom: 2px; }

.berkley-logo-img {
  height: 60px;
  display: block;
  margin: 0 auto;
}