/* Strong Tower study-record certificate. Cream sheet, white page. */

body[data-page="certificate"],
body[data-page="verify"] {
  background: #fff;
  color: #1b0f13;
}

.cert-page {
  background: #fff;
  color: #1b0f13;
  padding: 40px 20px 72px;
  font-family: Manrope, "Segoe UI", sans-serif;
}

.cert-page p,
.cert-page h1,
.cert-page dd,
.cert-page dt {
  color: #1b0f13;
}

.cert-page .cert-title,
.cert-page .cert-script,
.cert-page .cert-status h1 {
  color: #4e1019;
}

.cert-page .cert-eyebrow,
.cert-page .cert-kicker,
.cert-page .cert-label,
.cert-page a {
  color: #7a1f2e;
}

.cert-page a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cert-status {
  max-width: 38rem;
  margin: 28px auto;
}

.cert-status h1 {
  font-family: Syne, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #4e1019;
  margin: 0 0 14px;
  overflow-wrap: break-word;
}

.cert-status p {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 14px;
}

.cert-intro {
  width: min(920px, 100%);
  margin: 0 auto 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
}

.cert-intro p {
  flex: 1 1 16rem;
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}

.cert-print {
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: #7a1f2e;
  border: 1px solid #4e1019;
  border-radius: 10px;
  padding: 12px 18px;
  cursor: pointer;
}

.cert-print:hover {
  background: #4e1019;
}

.cert-print:focus-visible {
  outline: 2px solid #4e1019;
  outline-offset: 3px;
}

.cert-sheet {
  width: min(920px, 100%);
  margin: 0 auto;
  background: #fbf6ef;
  color: #1b0f13;
  border: 3px solid #4e1019;
  border-radius: 0;
  padding: 11px;
  box-shadow: 0 22px 50px rgba(27, 15, 19, 0.08);
}

.cert-sheet__inner {
  position: relative;
  border: 1px solid #b08950;
  background: #fbf6ef;
  padding: 42px 52px 32px;
  text-align: center;
}

.cert-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1.5px solid #4e1019;
  pointer-events: none;
}

.cert-corner--tl { top: 9px; left: 9px; border-right: 0; border-bottom: 0; }
.cert-corner--tr { top: 9px; right: 9px; border-left: 0; border-bottom: 0; }
.cert-corner--bl { bottom: 9px; left: 9px; border-right: 0; border-top: 0; }
.cert-corner--br { bottom: 9px; right: 9px; border-left: 0; border-top: 0; }

.cert-seal {
  width: 76px;
  height: 76px;
  margin: 0 auto 8px;
  display: block;
}

.cert-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #7a1f2e;
}

.cert-eyebrow::before,
.cert-eyebrow::after {
  content: "";
  width: 36px;
  height: 1px;
  background: #b08950;
  flex: 0 0 36px;
}

.cert-title {
  margin: 14px 0 0;
  font-family: Syne, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #4e1019;
}

.cert-kicker {
  margin: 22px 0 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #7a1f2e;
}

.cert-name {
  margin: 8px 0 0;
  font-family: Syne, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: clamp(42px, 6.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #1b0f13;
  overflow-wrap: break-word;
}

.cert-name-rule {
  width: min(220px, 46%);
  height: 1px;
  margin: 12px auto 0;
  background: #b08950;
}

.cert-statement,
.cert-limit {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  text-wrap: pretty;
}

.cert-statement {
  margin: 18px auto 12px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
}

.cert-limit {
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.55;
}

.cert-sign {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.95fr;
  gap: 22px 28px;
  align-items: start;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid #b08950;
  text-align: center;
}

.cert-script {
  display: inline-block;
  min-width: 11rem;
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #b08950;
  font-family: "Segoe Script", "Palatino Linotype", Palatino, serif;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 400;
  color: #4e1019;
}

.cert-role,
.cert-issuer,
.cert-place {
  margin: 0;
  color: #1b0f13;
}

.cert-role {
  margin-top: 8px;
  font-size: 14px;
}

.cert-issuer {
  font-size: 15px;
  font-weight: 700;
}

.cert-place {
  margin-top: 4px;
  font-size: 14px;
}

.cert-classes {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #1b0f13;
}

.cert-fact + .cert-fact {
  margin-top: 12px;
}

.cert-label {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #7a1f2e;
}

.cert-issued {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1b0f13;
}

.cert-id {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: #1b0f13;
  overflow-wrap: anywhere;
}

.cert-verify {
  margin: 22px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #1b0f13;
  overflow-wrap: anywhere;
}

.cert-verify a {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.92em;
}

.cert-tail {
  width: min(920px, 100%);
  margin: 18px auto 0;
  text-align: center;
}

.cert-file-note {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.5;
  color: #1b0f13;
}

@media (max-width: 720px) {
  .cert-page { padding: 28px 14px 56px; }
  .cert-sheet { padding: 8px; }
  .cert-sheet__inner { padding: 28px 16px 22px; }
  .cert-sign { grid-template-columns: 1fr; gap: 22px; }
  .cert-name { font-size: 36px; }
  .cert-corner { width: 12px; height: 12px; }
  .cert-eyebrow { letter-spacing: 0.08em; font-size: 12px; }
  .cert-eyebrow::before,
  .cert-eyebrow::after { width: 18px; flex-basis: 18px; }
}

@page {
  size: letter landscape;
  margin: 0.45in;
}

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .no-print,
  body.printing-cert .site-header,
  body.printing-cert .site-footer,
  body.printing-cert .skip-link,
  body.printing-cert .no-print {
    display: none !important;
  }

  html,
  body,
  body.printing-cert {
    background: #fff !important;
    color: #1b0f13 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  main#main,
  .cert-page {
    background: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .cert-sheet {
    width: 100%;
    max-width: none;
    min-height: 7.5in;
    margin: 0;
    box-shadow: none;
    box-sizing: border-box;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .cert-sheet,
  .cert-sheet__inner,
  body.printing-cert .cert-sheet,
  body.printing-cert .cert-sheet__inner {
    background: #fbf6ef !important;
    color: #1b0f13 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .cert-sheet__inner {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-height: 7.15in;
    padding: 22px 28px 16px;
  }

  .cert-sign {
    grid-template-columns: 1.15fr 1fr 0.95fr;
    margin-top: auto;
  }

  .cert-name { font-size: 48px; }
  .cert-title { font-size: 30px; }
  .cert-seal { width: 60px; height: 60px; }
}
