*{box-sizing:border-box}html,body{margin:0;padding:0}
body.tf-ts-standalone{background:#edf2f7;color:#0a2142;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.tf-ts-stage{min-height:100vh;padding:16px 20px 26px}
.tf-ts-toolbar{width:min(1260px,calc(100% - 12px));margin:0 auto 10px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.tf-ts-toolbar a,.tf-ts-toolbar button{appearance:none;border:1px solid #ccd8e5;border-radius:9px;background:#fff;color:#0b5fc7;padding:8px 12px;font-size:12px;font-weight:850;text-decoration:none;cursor:pointer}
.tf-ts-toolbar button{background:#0b65cf;color:#fff;border-color:#0b65cf}

.tf-ts-cert{position:relative;width:min(1260px,calc(100% - 12px));aspect-ratio:1.48/1;min-height:660px;margin:0 auto;padding:68px 72px 82px;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(410px,.92fr);gap:48px;overflow:hidden;background:#fff;border:1px solid #dfad3d;box-shadow:0 16px 44px rgba(8,29,54,.12)}
.tf-ts-border{position:absolute;inset:18px;border:2px solid #e6ab27;outline:1px solid #e6ab27;outline-offset:-8px;pointer-events:none}
.tf-ts-pattern{position:absolute;inset:0;background:repeating-radial-gradient(ellipse at 68% 20%,transparent 0 18px,rgba(151,127,83,.035) 19px 20px,transparent 21px 31px);opacity:.7;pointer-events:none}
.tf-ts-corner{position:absolute;z-index:3;width:210px;height:210px;background:#062c5d;transform:rotate(45deg)}
.tf-ts-corner:after{content:"";position:absolute;inset:0;border:14px solid #f1b52a}
.tf-ts-corner-a{left:-120px;top:-120px}.tf-ts-corner-b{right:-120px;bottom:-120px}
.tf-ts-col-main,.tf-ts-col-side{position:relative;z-index:4;min-width:0}
.tf-ts-col-main{display:flex;flex-direction:column;justify-content:center}
.tf-ts-col-side{align-self:center;border-left:1px solid #e5c98e;padding-left:30px}

.tf-ts-brandline{display:flex;align-items:center;gap:16px;margin-bottom:18px}
.tf-ts-brandline img{width:auto;height:76px;max-width:238px;object-fit:contain}
.tf-ts-divider{width:1px;height:46px;background:#e4c787}
.tf-ts-brandline b,.tf-ts-brandline span{display:block}.tf-ts-brandline b{font-size:12px;letter-spacing:.16em}.tf-ts-brandline span{margin-top:4px;font-size:10px;color:#6b7790}

.tf-ts-titleblock{text-align:center}.tf-ts-title{font-family:Georgia,"Times New Roman",serif;font-size:60px;line-height:.96;font-weight:900;letter-spacing:.055em;color:#061d47;text-shadow:0 1px 0 #d8dee7}
.tf-ts-oftrust{display:flex;align-items:center;justify-content:center;gap:14px;margin:8px 0}.tf-ts-oftrust span{width:118px;height:1px;background:#d89b18;position:relative}
.tf-ts-oftrust span:before{content:"";position:absolute;width:7px;height:7px;background:#d89b18;border-radius:50%;top:-3px}.tf-ts-oftrust span:first-child:before{left:0}.tf-ts-oftrust span:last-child:before{right:0}
.tf-ts-oftrust b{font-family:Georgia,"Times New Roman",serif;font-size:25px;letter-spacing:.2em;color:#e2a116}
.tf-ts-ribbon{display:inline-block;padding:6px 34px;background:#092d61;color:#fff;font-size:13px;letter-spacing:.09em;font-weight:850;clip-path:polygon(4% 0,96% 0,100% 50%,96% 100%,4% 100%,0 50%)}
.tf-ts-copy{max-width:580px;margin:22px auto 8px;text-align:center;color:#626f82;font-size:13px;line-height:1.5}
.tf-ts-company-wrap{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;text-align:center;gap:10px;margin-top:5px}
.tf-ts-company-wrap h1{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:38px;line-height:1.05;color:#071c43;text-transform:uppercase}
.tf-ts-company-wrap p{margin:6px 0 0;color:#707b8f;font-size:12px}.tf-ts-laurel{font-size:48px;color:#dca331;transform:rotate(-22deg)}.tf-ts-laurel-right{transform:scaleX(-1) rotate(-22deg)}

.tf-ts-verified{width:min(460px,100%);margin:18px auto 0;padding:12px 15px;border-radius:14px;display:flex;align-items:center;gap:13px;border:1px solid #cfd9c5;background:#f8fbf3}
.tf-ts-verified.registered{background:#f3f7fb;border-color:#d7e1ec}
.tf-ts-shield{display:grid;place-items:center;width:50px;height:50px;flex:0 0 50px;color:#0a386e}
.tf-ts-shield svg{width:50px;height:50px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.tf-ts-verified strong,.tf-ts-verified span{display:block}.tf-ts-verified strong{font-size:14px;letter-spacing:.1em;color:#157342}.tf-ts-verified.registered strong{color:#285b90}.tf-ts-verified span{margin-top:2px;color:#556377;font-size:10px;line-height:1.4}

.tf-ts-checkrow{display:grid;grid-template-columns:repeat(3,1fr);margin-top:24px}
.tf-ts-checkrow>div{padding:0 10px;text-align:center;border-right:1px solid #e4d3ac}.tf-ts-checkrow>div:last-child{border-right:0}
.tf-ts-checkrow span{display:grid;place-items:center;width:44px;height:44px;margin:0 auto 7px;border-radius:50%;background:#082e61;color:#fff;border:3px solid #efb437}
.tf-ts-checkrow span svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tf-ts-checkrow b,.tf-ts-checkrow small{display:block}.tf-ts-checkrow b{font-size:9px;line-height:1.25}.tf-ts-checkrow small{margin-top:2px;font-size:8px;font-weight:850}

.tf-ts-info-grid{display:grid;grid-template-columns:1fr 1fr;border:1px solid #deb75e;border-radius:8px;overflow:hidden;background:rgba(255,255,255,.82)}
.tf-ts-info-grid>div{position:relative;min-height:80px;padding:15px 14px 13px 54px;border-right:1px solid #e3c985;border-bottom:1px solid #e3c985}
.tf-ts-info-grid>div:nth-child(2n){border-right:0}.tf-ts-info-grid>div.wide{grid-column:1/-1;border-right:0;border-bottom:0;min-height:86px}
.tf-ts-info-grid .ico{position:absolute;left:13px;top:15px;display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#082e61;color:#fff}
.tf-ts-info-grid .ico svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tf-ts-info-grid small,.tf-ts-info-grid strong{display:block}.tf-ts-info-grid small{font-size:9px;color:#6e7890;font-weight:850;letter-spacing:.03em}.tf-ts-info-grid strong{margin-top:5px;font-size:11px;color:#071b3e;overflow-wrap:anywhere}
.tf-ts-info-grid a{display:inline-block;margin-top:6px;color:#064fe8;text-decoration:none;font-size:10px;font-weight:900}
.tf-ts-location{margin-top:10px;padding:10px 12px;border-left:3px solid #dfac2e;background:#fffaf0}.tf-ts-location small,.tf-ts-location strong{display:block}.tf-ts-location small{font-size:8px;color:#77849a;font-weight:850}.tf-ts-location strong{margin-top:4px;font-size:10px;line-height:1.35}

.tf-ts-authority{display:flex;align-items:center;gap:10px;margin-top:18px}.tf-ts-mini-seal{display:grid;place-items:center;width:48px;height:48px;border:3px solid #c98d17;border-radius:50%;font-family:Georgia,serif;font-size:17px;font-weight:900;color:#9a6810}
.tf-ts-authority b,.tf-ts-authority span{display:block}.tf-ts-authority b{font-size:12px;letter-spacing:.12em;color:#9b6810}.tf-ts-authority span{font-size:10px;color:#6e7990;margin-top:2px}
.tf-ts-disclaimer{margin:14px 0 0;color:#66738a;font-size:9px;line-height:1.5}
.tf-ts-bottom-side{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-top:19px}
.tf-ts-signature{max-width:260px}.tf-ts-signature .script{display:block;font-family:"Segoe Script","Brush Script MT",cursive;font-size:22px;color:#0a2d60;transform:rotate(-3deg)}
.tf-ts-signature i{display:block;height:1px;background:#d3a03a;margin:4px 0 7px}.tf-ts-signature b,.tf-ts-signature small{display:block;text-align:center}.tf-ts-signature b{font-size:8px;letter-spacing:.22em;color:#728099}.tf-ts-signature small{margin-top:4px;font-size:9px;color:#68748a}
.tf-ts-goldseal{width:92px;height:92px;flex:0 0 92px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(circle,#f7d57d 0 43%,#d9981f 44% 52%,#f1c04f 53% 62%,#b5770a 63% 100%);border:5px double #d29a2b;box-shadow:0 4px 10px rgba(95,61,0,.14);color:#5e3a00;text-align:center}
.tf-ts-goldseal span{font-size:10px;font-weight:950}.tf-ts-goldseal small{font-size:7px;margin:2px 0}.tf-ts-goldseal b{font-size:9px;line-height:1.05}

.tf-ts-bottom-band{position:absolute;z-index:5;left:24%;right:24%;bottom:0;height:48px;display:flex;align-items:center;justify-content:center;gap:14px;background:#052d61;color:#fff;clip-path:polygon(5% 0,95% 0,100% 100%,0 100%)}
.tf-ts-bottom-band:before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:#d99c21}.tf-ts-bottom-band strong{font-size:15px}.tf-ts-bottom-band span{width:1px;height:17px;background:#fff9}.tf-ts-bottom-band b{font-size:10px;font-weight:600}

@media(max-width:900px){.tf-ts-stage{padding:8px;overflow-x:auto}.tf-ts-toolbar{width:860px;min-width:860px}.tf-ts-cert{width:860px;min-width:860px;min-height:600px;padding:58px 58px 76px;grid-template-columns:1.08fr .92fr;gap:34px}.tf-ts-title{font-size:46px}.tf-ts-oftrust b{font-size:20px}.tf-ts-company-wrap h1{font-size:31px}.tf-ts-brandline img{height:62px}.tf-ts-col-side{padding-left:24px}}
@page{size:A4 landscape;margin:7mm}
@media print{body.tf-ts-standalone{background:#fff}.tf-ts-stage{padding:0;min-height:auto}.tf-ts-toolbar{display:none}.tf-ts-cert{width:100%;height:190mm;min-height:0;aspect-ratio:auto;margin:0;padding:12mm 14mm 15mm;box-shadow:none}.tf-ts-border{inset:6mm}}


/* Sprint 701 — top-left brand alignment + existing TradesFolks stamp asset */
.tf-ts-brandline{
  position:relative!important;
  top:-12px!important;
  left:-10px!important;
  margin-bottom:8px!important;
}
.tf-ts-brandline img{
  height:82px!important;
  max-width:250px!important;
}

/* Use the existing production stamp directly; no generated/CSS seal. */
.tf-ts-bottom-side{
  align-items:flex-end!important;
  gap:20px!important;
}
.tf-ts-stamp{
  flex:0 0 auto!important;
  width:108px!important;
  height:108px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  margin:0 2px -3px 0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.tf-ts-stamp img{
  display:block!important;
  width:108px!important;
  height:108px!important;
  max-width:none!important;
  object-fit:contain!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

/* Ensure legacy generated seal styling cannot reappear. */
.tf-ts-goldseal{
  display:none!important;
}

@media(max-width:900px){
  .tf-ts-brandline{
    top:-9px!important;
    left:-7px!important;
  }
  .tf-ts-brandline img{
    height:67px!important;
    max-width:215px!important;
  }
  .tf-ts-stamp,
  .tf-ts-stamp img{
    width:92px!important;
    height:92px!important;
  }
}

@media print{
  .tf-ts-brandline{
    top:-3mm!important;
    left:-2mm!important;
  }
  .tf-ts-stamp,
  .tf-ts-stamp img{
    width:24mm!important;
    height:24mm!important;
  }
}
