:root{
  --ink:#102b35;
  --muted:#617673;
  --navy:#071b24;
  --navy2:#0c3038;
  --green:#18a88e;
  --aqua:#48d6bd;
  --orange:#e06d42;
  --paper:#f6f9f6;
  --line:#d6e3de;
}

*{box-sizing:border-box}

body{
  margin:0;
  background:#eaf1ee;
  color:var(--ink);
  font-family:Inter,system-ui,sans-serif;
}

.certificate-topbar{
  min-height:70px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:18px;
  padding:10px 4vw;
  border-bottom:1px solid var(--line);
  background:#fff;
}

.certificate-topbar>a{
  color:var(--ink);
  font-weight:900;
  text-decoration:none;
}

.certificate-topbar-brand{
  display:flex;
  align-items:center;
  gap:10px;
}

.certificate-topbar-brand img{
  width:44px;
  height:44px;
  border-radius:10px;
  object-fit:contain;
  background:#000;
}

.certificate-topbar-brand span{
  display:flex;
  flex-direction:column;
  line-height:1;
}

.certificate-topbar-brand strong{
  font-family:Oswald,sans-serif;
  letter-spacing:.06em;
}

.certificate-topbar-brand small{
  margin-top:4px;
  color:var(--muted);
  font-size:.56rem;
  letter-spacing:.16em;
}

.certificate-topbar button{
  justify-self:end;
  min-height:46px;
  padding:0 18px;
  border:0;
  border-radius:14px;
  background:var(--green);
  color:#fff;
  font-weight:900;
  cursor:pointer;
}

.certificate-shell{
  width:min(1180px,calc(100% - 32px));
  margin:0 auto;
  padding:70px 0;
}

.certificate-status{
  padding:26px;
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
  color:var(--muted);
  text-align:center;
}

.certificate-card{
  padding:16px;
  border-radius:6px;
  background:#fff;
  box-shadow:0 24px 70px rgba(16,43,53,.14);
}

.certificate-inner{
  position:relative;
  min-height:760px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  padding:70px;
  border:12px solid var(--navy);
  outline:3px solid var(--green);
  outline-offset:-25px;
  background:
    radial-gradient(circle at 50% 0,rgba(72,214,189,.12),transparent 30%),
    linear-gradient(180deg,#fff,#fbfdfc);
  text-align:center;
}

.certificate-inner:before{
  content:"";
  position:absolute;
  top:26px;
  left:26px;
  right:26px;
  bottom:26px;
  border:1px solid rgba(24,168,142,.35);
  pointer-events:none;
}

.certificate-corner{
  position:absolute;
  width:330px;
  height:330px;
  border:1px solid rgba(24,168,142,.12);
  border-radius:50%;
}

.certificate-corner-a{top:-220px;left:-190px}
.certificate-corner-b{right:-190px;bottom:-220px}

.certificate-logo{
  position:relative;
  z-index:2;
  display:grid;
  place-items:center;
  width:105px;
  height:105px;
  margin-bottom:20px;
  border:3px solid var(--green);
  border-radius:25px;
  background:#000;
  box-shadow:0 14px 30px rgba(7,27,36,.18);
}

.certificate-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.certificate-eyebrow{
  position:relative;
  z-index:2;
  color:var(--green);
  font-size:12px;
  font-weight:900;
  letter-spacing:.2em;
  text-transform:uppercase;
}

.certificate-inner h1{
  position:relative;
  z-index:2;
  margin:12px 0 24px;
  color:var(--navy);
  font:700 clamp(48px,7vw,82px)/.87 Oswald,sans-serif;
  letter-spacing:-.025em;
  text-transform:uppercase;
}

.certificate-copy{
  position:relative;
  z-index:2;
  margin:6px 0;
  color:var(--muted);
  font-size:18px;
}

.certificate-name{
  position:relative;
  z-index:2;
  margin:16px 0;
  color:var(--ink);
  font:italic clamp(38px,5vw,62px)/1.1 Georgia,serif;
}

.certificate-inner h2{
  position:relative;
  z-index:2;
  max-width:850px;
  margin:12px 0 18px;
  color:var(--green);
  font:700 clamp(28px,4vw,46px)/1.05 Oswald,sans-serif;
  text-transform:uppercase;
}

.certificate-meta{
  position:relative;
  z-index:2;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  margin-top:14px;
}

.certificate-meta span{
  padding:9px 14px;
  border-radius:999px;
  background:#eaf5f1;
  color:var(--ink);
  font-size:13px;
  font-weight:800;
}

.certificate-rule{
  position:relative;
  z-index:2;
  width:150px;
  height:3px;
  margin:35px 0 24px;
  border-radius:99px;
  background:var(--orange);
}

.certificate-footer{
  position:relative;
  z-index:2;
  display:flex;
  align-items:end;
  justify-content:center;
  gap:40px;
  flex-wrap:wrap;
}

.certificate-signature{
  display:grid;
  gap:4px;
}

.certificate-signature strong{color:var(--navy)}
.certificate-signature span,
code{color:var(--muted)}
code{font-size:11px}

@media(max-width:650px){
  .certificate-topbar{
    grid-template-columns:1fr auto;
  }

  .certificate-topbar-brand{display:none}

  .certificate-shell{
    width:calc(100% - 20px);
    padding:24px 0;
  }

  .certificate-card{padding:6px}

  .certificate-inner{
    min-height:700px;
    padding:55px 24px;
    border-width:8px;
    outline-offset:-18px;
  }

  .certificate-inner:before{
    inset:18px;
  }

  .certificate-logo{
    width:86px;
    height:86px;
  }
}

@media print{
  @page{
    size:A4 landscape;
    margin:0;
  }

  body{background:#fff}

  .certificate-topbar,
  .certificate-status{
    display:none!important;
  }

  .certificate-shell{
    width:100%;
    max-width:none;
    padding:0;
  }

  .certificate-card{
    padding:0;
    box-shadow:none;
  }

  .certificate-inner{
    width:100vw;
    min-height:100vh;
    border-width:10px;
    print-color-adjust:exact;
    -webkit-print-color-adjust:exact;
  }
}
