/* Common branded sheet; country calculators keep their own numbers and rules. */
#modal-certificado .cert-dialog{background:#fff;border-radius:16px;max-width:760px;width:100%;margin:auto;overflow:hidden;box-shadow:0 24px 60px #0004}
#cert-sheet{box-sizing:border-box;margin:16px;padding:24px;border:1px solid #d5ded4;border-top:5px solid #485946;border-radius:10px;background:#fff;color:#2a2a26;font-family:Arial,sans-serif}
.cert-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;border-bottom:1px solid #d5ded4;padding-bottom:14px;margin-bottom:14px}
.cert-header img{display:block;width:230px;max-width:100%;height:auto;margin-bottom:8px}
.cert-header small,#cert-date{font-size:11px;color:#5f6558;line-height:1.4}
#cert-title{font-size:20px;line-height:1.2;margin:0 0 6px;color:#334b3d}
.cert-intro{font-size:12px;line-height:1.45;margin:0 0 14px;color:#5f6558}
.cert-hero{background:#eef4ed;border:1px solid #d5ded4;border-radius:8px;padding:14px 16px;margin-bottom:14px}
.cert-kicker{font-size:10px;text-transform:uppercase;letter-spacing:.5px;font-weight:700;color:#485946}
#cert-hero-total{font-size:28px;font-weight:800;line-height:1.2;margin:4px 0}
#cert-hero-breakdown{font-size:12px;line-height:1.5;color:#485946}
.cert-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:16px}
.cert-grid b{display:block;font-size:16px;margin:4px 0;overflow-wrap:anywhere}
.cert-grid small{display:block;font-size:11px;line-height:1.5;color:#5f6558}
.cert-best{font-size:12px;line-height:1.5;margin:0 0 14px;padding:9px 12px;background:#f6f8ed;border-radius:6px}
.cert-best strong{color:#365546}#cert-options-label{font-size:12px;margin:0 0 7px;color:#365546}
.cert-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:11px;margin-bottom:8px}
.cert-table th,.cert-table td{text-align:left;padding:8px 6px;border-bottom:1px solid #e0e5dc;vertical-align:top;overflow-wrap:anywhere;line-height:1.4}
.cert-table th{font-size:10px;background:#f0f4ed;color:#485946}.cert-table th:first-child{width:29%}.cert-table td:last-child{font-weight:700}
#cert-sources{font-size:10px;color:#5f6558;line-height:1.4;margin:0 0 12px}
.cert-guidance{font-size:11px;line-height:1.5;padding:10px 12px;border-left:3px solid #485946;background:#f6f8ed;margin:12px 0}
.cert-guidance ul{padding-left:16px;margin:5px 0 0}.cert-guidance li{margin:3px 0}
.cert-footer{font-size:10px;line-height:1.5;border-top:1px solid #d5ded4;padding-top:9px;color:#5f6558}
@media(max-width:480px){#cert-sheet{padding:16px;margin:8px}.cert-header{display:block}.cert-header img{width:210px}#cert-date{display:block;margin-top:8px}.cert-grid{gap:12px}.cert-grid b{font-size:14px}.cert-table{font-size:10px}.cert-table th,.cert-table td{padding:6px 4px}}
@media print{
  @page{size:A4;margin:12mm}
  body.cert-printing{margin:0!important;padding:0!important;background:#fff!important}
  body.cert-printing> :not(#modal-certificado){display:none!important}
  body.cert-printing #modal-certificado{display:block!important;position:static!important;padding:0!important;margin:0!important;width:auto!important;overflow:visible!important;background:#fff!important;backdrop-filter:none!important}
  body.cert-printing #modal-certificado .cert-dialog{max-width:none!important;box-shadow:none!important;border-radius:0!important;overflow:visible!important}
  body.cert-printing #modal-certificado #cert-sheet{margin:0!important;padding:16px!important;border:1px solid #d5ded4!important;border-top:4px solid #485946!important;width:100%!important;break-inside:avoid;box-shadow:none!important}
  body.cert-printing #cert-sheet,body.cert-printing #cert-sheet *{visibility:visible!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}
  body.cert-printing .no-print{display:none!important}
  .cert-header{margin-bottom:10px;padding-bottom:10px}.cert-header img{width:210px}
  #cert-title{font-size:18px}.cert-intro{font-size:10px;margin-bottom:10px}.cert-hero{padding:10px 12px;margin-bottom:10px}
  #cert-hero-total{font-size:24px}.cert-grid{gap:10px;margin-bottom:10px}.cert-grid b{font-size:14px}.cert-grid small{font-size:10px}
  .cert-table{font-size:10px}.cert-table th,.cert-table td{padding:6px}.cert-guidance{font-size:10px;margin:9px 0}.cert-footer{font-size:9px}
}
