:root {
  --blue: #006699;
  --blue-text: #0b6f8b;
  --gold: #c9b35b;
  --line: #e9e9e9;
  --text: #202020;
  --muted: #3b3b3b;
  --valid-bg: #d5f0dd;
  --valid-text: #2f6f3a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #fff;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  letter-spacing: 0;
}

.topbar {
  height: 52px;
  border-top: 3px solid var(--gold);
  background: var(--blue);
}

.topbar-inner {
  width: 694px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  width: 112px;
  height: 38px;
  display: block;
  object-fit: cover;
}

.menu {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 100%;
  margin-left: auto;
  padding-top: 1px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.menu a {
  position: relative;
  color: #fff;
  text-decoration: none;
  line-height: 49px;
}

.menu a:nth-child(1)::after,
.menu a:nth-child(2)::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid #fff;
  vertical-align: middle;
}

.menu a.active::before {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 9px;
  height: 2px;
  background: var(--gold);
}

.page {
  width: 1280px;
  max-width: 100%;
  margin: 0 auto;
}

.title-row {
  position: relative;
  height: 88px;
}

.title-row h1 {
  position: absolute;
  left: 293px;
  top: 31px;
  margin: 0;
  color: var(--blue-text);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.title-row h1 span {
  font-size: 16px;
}

.rule {
  position: absolute;
  top: 56px;
  height: 3px;
  background: var(--blue);
}

.rule-left {
  left: 0;
  width: 482px;
}

.rule-right {
  right: 0;
  width: 294px;
}

.validation {
  width: 694px;
  margin: 0 auto 20px;
}

.valid-box {
  width: 100%;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--valid-bg);
  color: var(--valid-text);
  border-radius: 2px;
  font-size: 14px;
  font-weight: 700;
}

.attestation {
  margin: 13px 0 10px;
  color: #333;
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.identity {
  display: grid;
  grid-template-columns: 1fr 104px;
  column-gap: 10px;
  align-items: start;
}

.data-table {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.data-row {
  min-height: 29px;
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.data-row dt,
.data-row dd {
  margin: 0;
  font-size: 11px;
  line-height: 1.25;
}

.data-row dt {
  padding-right: 14px;
  color: #222;
  font-weight: 700;
  text-align: right;
}

.data-row dd {
  color: #1a1a1a;
}

.student-photo {
  width: 104px;
  height: 137px;
  display: block;
  object-fit: cover;
}

.certificate-section {
  margin-top: 31px;
}

.certificate-section h2 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #3e3e3e;
}

.certificate {
  width: 100%;
  height: 246px;
  margin: 0;
  padding: 10px 10px 9px;
  overflow: hidden;
  border: 1px solid #e3e3e3;
  background: #fff;
  color: #6d6d6d;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 7px;
  line-height: 2.22;
  white-space: pre-wrap;
  word-break: break-all;
  text-align: left;
}

.pem-boundary {
  display: block;
  text-align: center;
}

@media (max-width: 760px) {
  .topbar-inner,
  .validation {
    width: calc(100% - 28px);
  }

  .topbar-inner {
    justify-content: center;
  }

  .menu {
    display: none;
  }

  .title-row {
    height: 74px;
  }

  .title-row h1 {
    left: 14px;
    right: 14px;
    top: 29px;
    font-size: 18px;
  }

  .title-row h1 span {
    font-size: 13px;
  }

  .rule-left {
    width: 47%;
  }

  .rule-right {
    width: 23%;
  }

  .identity {
    grid-template-columns: 1fr 84px;
  }

  .data-row {
    grid-template-columns: 112px 1fr;
  }

  .student-photo {
    width: 84px;
    height: 111px;
  }
}
