/* =====================================================================
   Balanças.com — "Linha Verde"
   css/calibracao.css — só calibracao.html (calibração de balanças)
   Índice:
     1. Hero: exemplo ilustrativo de certificado + balança + peso-padrão
        (.cal-vis, .cert) e a condição de não acreditação (.cal-aviso)
     2. O certificado (.cal-spec): a ficha em duas colunas no computador
     3. Calibração, manutenção e verificação (.svcs): três blocos sobre o verde
   Usa os tokens e os blocos de base.css e paginas.css (.phero, .check,
   .spec-table, .steps, .faq, .ask). O único ângulo continua sendo o
   --slash (skewX); o certificado gira -6° como a ficha do contato.
   O certificado do hero é um EXEMPLO: sem número, sem resultados e sem
   assinatura (os valores são barras), com a faixa "Exemplo ilustrativo ·
   sem valor de certificado" e a marca d'água "Exemplo".
   ===================================================================== */

/* =====================================================================
   1. HERO
   ===================================================================== */
.cal-novo { display: inline-flex; margin-bottom: 12px; }
.cal-aviso {
  margin-top: 18px; max-width: 34em; padding-left: 14px; border-left: 2px solid var(--green);
  font-size: 15px; line-height: 1.5; color: #C9C9C3;
}
.cal-aviso strong { color: var(--paper); font-weight: 700; }
.cal-aviso a { color: var(--paper); text-underline-offset: 3px; }
.cal-aviso a:hover { color: var(--volt); }

.cal-vis__fig {
  width: min(100%, 520px);
  display: block; aspect-ratio: 1 / 1.02;
  max-height: min(68vh, 580px);
}
/* O certificado de exemplo: papel off-white, inclinado como a ficha do contato (.pcard) */
.cert {
  position: absolute; z-index: 1; top: 0; left: 50%; overflow: hidden;
  width: min(74%, 380px); margin-left: calc(min(74%, 380px) / -2 + 22px);
  padding: 0 20px 16px;
  background: var(--paper); color: var(--ink);
  transform: rotate(-6deg); transform-origin: 50% 40%;
  box-shadow: 0 24px 40px -24px rgba(0,0,0,.6), 0 0 0 1px rgba(10,10,10,.06);
  display: grid; gap: 11px;
  font-family: var(--f-text);
}
/* Faixa de identificação do exemplo (no lugar da faixa verde do topo) */
.cert__ex {
  margin: 0 -20px; padding: 7px 12px 6px; background: var(--ink); color: var(--paper);
  font: 700 10.5px/1.2 var(--f-text); letter-spacing: .04em; text-transform: uppercase; text-align: center;
  border-bottom: 4px solid var(--green);
}
.cert__wm {
  position: absolute; left: 50%; top: 58%; z-index: 0; pointer-events: none;
  transform: translate(-50%, -50%) rotate(-24deg);
  font: 900 72px/1 var(--f-display); letter-spacing: .04em; text-transform: uppercase;
  color: rgba(1, 159, 66, .13); white-space: nowrap;
}
.cert__top {
  display: flex; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px dashed #B5B5AE;
  font: 400 8px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.cert__head { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 2px 10px; align-items: center; }
.cert__logo { grid-row: span 2; width: 30px; height: 30px; color: var(--ink); }
.cert__t { font: 900 clamp(19px, 1.7vw, 24px)/.9 var(--f-display); text-transform: uppercase; letter-spacing: .005em; }
.cert__n { font: 500 9px/1.2 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--green-deep); }
.cert__id { display: grid; gap: 4px; margin: 0; }
.cert__id div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; align-items: center; font-size: 9.5px; line-height: 1.35; }
.cert__id dt { font: 400 8px/1.6 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.cert__id dd { font-weight: 600; }
/* Valores do exemplo: barras (nenhum número inventado) */
.cert__id dd i, .cert__tb td i { display: block; height: 7px; width: var(--w, 60%); background: #CFCFC8; }
.cert__tb td i { margin-left: auto; }
.cert__tb td:first-child i { margin-left: 0; }
.cert__tb { width: 100%; border-collapse: collapse; font: 400 9px/1.2 var(--f-mono); }
.cert__tb th { padding: 5px 4px 4px; text-align: right; font-weight: 500; font-size: 7.5px; letter-spacing: .05em; text-transform: uppercase; background: var(--ink); color: var(--paper); }
.cert__tb th:first-child { text-align: left; }
.cert__tb td { padding: 6px 4px; border-bottom: 1px solid #D6D6CF; }
.cert__tb tbody tr:nth-child(even) td { background: #EAEAE4; }
.cert__foot { display: flex; justify-content: space-between; gap: 12px; align-items: end; padding-top: 4px; }
.cert__ok { display: grid; gap: 2px; list-style: none; margin: 0; padding: 0; font: 400 7.5px/1.35 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; }
.cert__ok li { display: flex; align-items: center; gap: 6px; }
.cert__ok li::before { content: ""; width: 7px; height: 7px; flex: none; background: var(--green); transform: skewX(var(--slash)); }
.cert__pdf { font: 700 8px/1.2 var(--f-text); letter-spacing: .04em; text-transform: uppercase; color: var(--green-deep); text-align: right; max-width: 9em; }

/* Balança de bancada e peso-padrão na frente do certificado */
.phero__fig > img.cal-vis__bal {
  position: absolute; z-index: 2; left: -8%; bottom: 2%; width: 58%; height: auto; max-height: none;
  filter: drop-shadow(0 18px 16px rgba(0,0,0,.4));
}
.phero__fig > img.cal-vis__peso {
  position: absolute; z-index: 3; right: 4%; bottom: 0; width: 17%; aspect-ratio: 120 / 172; height: auto; max-height: none;
  filter: drop-shadow(0 14px 10px rgba(0,0,0,.35)); object-fit: contain; object-position: center bottom;
}

@media (max-width: 860px) {
  .cal-vis { padding-bottom: 30px; }
  .cal-vis__fig { width: min(88%, 420px); max-height: none; margin-inline: auto; }
  .phero__fig > img.cal-vis__bal { width: 54%; left: -6%; }
  .phero__fig > img.cal-vis__peso { width: 15%; right: 2%; }
}
@media (max-width: 480px) {
  .cert { padding: 0 14px 12px; gap: 8px; width: 82%; margin-left: calc(-41% + 14px); }
  .cert__ex { margin: 0 -14px; font-size: 9px; padding: 6px 8px 5px; }
  .cert__wm { font-size: 56px; }
  .cert__id div { grid-template-columns: 64px minmax(0, 1fr); font-size: 8.5px; }
  .cert__tb th { font-size: 6.5px; }
  .cert__foot { gap: 8px; }
}

/* =====================================================================
   2. O CERTIFICADO — ficha em duas colunas no computador
   ===================================================================== */
@media (min-width: 900px) {
  .cal-spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 72px); }
  .cal-spec div { grid-template-columns: minmax(150px, .8fr) minmax(0, 1.2fr); }
}
.cal-spec dt { color: var(--green); }
.cal-rbc { max-width: 62em; }

/* =====================================================================
   3. CALIBRAÇÃO, MANUTENÇÃO E VERIFICAÇÃO (.svcs) — sobre o verde
   ===================================================================== */
.cal-ipem .h2 { max-width: 10em; }
.svcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 36px); list-style: none; margin: 0; padding: 0; }
.svcs__i { display: grid; gap: 12px; align-content: start; padding-top: 18px; border-top: 3px solid var(--ink); }
.svcs__k { font-size: 11px; color: #052612; }
.svcs__t { font: 900 clamp(34px, 3vw, 50px)/.92 var(--f-display); text-transform: uppercase; }
.svcs__i p:not(.svcs__k) { font-size: 16px; line-height: 1.5; color: #052612; max-width: 30em; }
.svcs__i .link-out { color: var(--ink); }
.svcs__i--ipem { border-top-style: dashed; }   /* o serviço que não é nosso */
.cal-ipem__fim { margin-top: clamp(32px, 4vw, 52px); padding-top: 20px; border-top: 1px solid rgba(10,10,10,.3); max-width: 46em; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; }
@media (max-width: 900px) { .svcs { grid-template-columns: minmax(0, 1fr); } }
