/* EST certificate verification portal */
.header.est-verify-header,
.header.est-verify-header.is-fixed {
  background: #171918 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.header.est-verify-header .main-menu .item-link {
  color: #fff !important;
  text-shadow: none;
}

.header.est-verify-header .main-menu .current-menu-item .item-link,
.header.est-verify-header .main-menu .item-link:hover {
  color: #fff !important;
  text-decoration-color: #fff;
}

.header.est-verify-header .logo img {
  display: block;
  opacity: 1;
}

.header.est-verify-header .mobile-button span {
  background-color: #fff !important;
}

.est-verify-page {
  --est-ink: #171918;
  --est-muted: #68706c;
  --est-line: #e1e5e2;
  --est-soft: #f4f6f4;
  --est-green: #1f6b48;
  --est-green-soft: #e8f4ed;
  --est-red: #9b3434;
  --est-red-soft: #f9eaea;
  background: #f7f8f7;
  color: var(--est-ink);
  min-height: 65vh;
  padding-top: 118px;
}

.admin-bar .est-verify-page {
  padding-top: 86px;
}

.est-verify-page h1,
.est-verify-page h2,
.est-verify-page h3,
.est-verify-page p {
  margin-top: 0;
}

.est-verify-hero,
.est-result-hero {
  position: relative;
  overflow: hidden;
  background: #171918;
  color: #fff;
  padding: 72px 0 68px;
}

.est-verify-hero::after,
.est-result-hero::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -120px;
  top: -250px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018);
}

.est-verify-hero-grid,
.est-result-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.est-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.est-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.est-verify-hero h1,
.est-result-hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(38px, 5.5vw, 70px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.est-verify-hero p,
.est-result-hero p {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255,255,255,.72);
  font-size: 17px;
  line-height: 1.65;
}

.est-verify-seal {
  flex: 0 0 210px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
}

.est-verify-seal-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 15px;
  color: #171918;
  background: #fff;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 800;
}

.est-verify-seal strong,
.est-verify-seal small {
  display: block;
}

.est-verify-seal strong {
  font-size: 14px;
}

.est-verify-seal small {
  margin-top: 4px;
  color: rgba(255,255,255,.6);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.est-verify-content,
.est-result-content {
  padding: 72px 0 90px;
}

.est-verify-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, .85fr);
  gap: 28px;
  align-items: stretch;
}

.est-lookup-card,
.est-trust-panel,
.est-holder-card,
.est-document-card,
.est-qr-card,
.est-issued-by-card {
  background: #fff;
  border: 1px solid var(--est-line);
  border-radius: 3px;
  box-shadow: 0 18px 55px rgba(20,28,24,.06);
}

.est-lookup-card {
  padding: clamp(28px, 5vw, 54px);
  border: 2px solid var(--est-ink);
}

.est-card-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 36px;
}

.est-card-icon {
  flex: 0 0 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--est-ink);
  border-radius: 50%;
  font-size: 28px;
}

.est-card-heading h2 {
  margin-bottom: 5px;
  font-size: clamp(27px, 3vw, 38px);
}

.est-card-heading p {
  margin-bottom: 0;
  color: var(--est-muted);
}

.est-lookup-form label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.est-lookup-control {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.est-lookup-control input {
  width: 100%;
  min-height: 58px;
  padding: 0 20px;
  border: 3px solid var(--est-ink);
  border-radius: 2px;
  background: #fff;
  color: var(--est-ink);
  font: 650 16px/1.2 "Rethink Sans", sans-serif;
  letter-spacing: .035em;
  text-transform: uppercase;
  transition: border-color .2s, box-shadow .2s;
}

.est-lookup-control input:focus {
  border-color: var(--est-ink);
  box-shadow: 0 0 0 3px rgba(23,25,24,.1);
  outline: none;
}

.est-lookup-control button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 25px;
  border: 1px solid var(--est-ink);
  border-radius: 2px;
  color: #fff;
  background: var(--est-ink);
  font-size: 14px;
  font-weight: 750;
  transition: background .2s, color .2s;
}

.est-lookup-control button:hover {
  color: var(--est-ink);
  background: #fff;
}

.est-lookup-error {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 14px;
  padding: 14px 17px;
  color: var(--est-red);
  background: var(--est-red-soft);
  border-left: 3px solid var(--est-red);
}

.est-lookup-error span {
  font-size: 13px;
}

.est-example-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
  color: var(--est-muted);
  font-size: 13px;
}

.est-example-row a {
  color: var(--est-ink);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.est-trust-panel {
  padding: 34px;
  background: #eef1ef;
  box-shadow: none;
}

.est-trust-panel h3 {
  margin-bottom: 25px;
  font-size: 23px;
}

.est-trust-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.est-trust-panel li {
  display: flex;
  gap: 13px;
  padding: 18px 0;
  border-top: 1px solid #d6dcd8;
}

.est-trust-panel li > span {
  flex: 0 0 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--est-green);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.est-trust-panel li strong,
.est-trust-panel li small {
  display: block;
}

.est-trust-panel li small {
  margin-top: 3px;
  color: var(--est-muted);
  line-height: 1.45;
}

.est-help-box {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
  padding: 20px;
  background: #fff;
}

.est-help-box strong {
  margin-bottom: 8px;
}

.est-help-box a {
  color: var(--est-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

/* Result */
.est-result-hero {
  padding-top: 46px;
}

.est-back-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 42px;
  padding: 10px 16px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 2px;
  background: rgba(255,255,255,.06);
  font-size: 13px;
  font-weight: 650;
  transition: background .2s, color .2s, border-color .2s;
}

.est-back-link:hover {
  color: #171918;
  background: #fff;
  border-color: #fff;
}

.est-result-heading h1 {
  margin-bottom: 12px;
}

.est-status-badge {
  flex: 0 0 auto;
  min-width: 178px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 21px;
  color: #17472f;
  background: #f0faf4;
  border: 1px solid #90c4a7;
  border-radius: 3px;
}

.est-status-badge.is-expired {
  color: var(--est-red);
  background: #fff3f3;
  border-color: #d9a2a2;
}

.est-status-badge.is-suspended,
.est-status-badge.is-inactive {
  color: #7a4b00;
  background: #fff7e7;
  border-color: #d5ad66;
}

.est-status-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--est-green);
  border-radius: 50%;
  font-size: 17px;
  font-weight: 800;
}

.is-expired .est-status-icon {
  background: var(--est-red);
}

.is-suspended .est-status-icon,
.is-inactive .est-status-icon {
  background: #a66a0a;
}

.est-status-badge small,
.est-status-badge strong {
  display: block;
}

.est-status-badge small {
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.est-status-badge strong {
  margin-top: 1px;
  font-size: 20px;
}

.est-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
}

.est-result-main {
  min-width: 0;
}

.est-holder-card {
  overflow: hidden;
}

.est-holder-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: clamp(26px, 4vw, 42px);
  border-bottom: 1px solid var(--est-line);
}

.est-holder-logo {
  flex: 0 0 76px;
  height: 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--est-ink);
  border-radius: 50%;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: .05em;
}

.est-holder-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
  background: #fff;
}

.est-holder-title {
  min-width: 0;
}

.est-holder-title > span,
.est-field-label,
.est-detail-grid span,
.est-approval-row span,
.est-issued-by-card > span {
  display: block;
  margin-bottom: 6px;
  color: var(--est-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.est-holder-title h2 {
  margin-bottom: 6px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.16;
}

.est-holder-title p {
  margin-bottom: 0;
  color: var(--est-muted);
  font-size: 13px;
}

.est-record-check {
  align-self: flex-start;
  margin-left: auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--est-green);
  border-radius: 50%;
  font-weight: 800;
}

.est-standards {
  padding: 28px clamp(26px, 4vw, 42px);
  border-bottom: 1px solid var(--est-line);
}

.est-standard-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.est-standard-pills strong {
  padding: 8px 12px;
  color: #fff;
  background: var(--est-ink);
  border-radius: 2px;
  font-size: 13px;
}

.est-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--est-line);
}

.est-detail-grid > div {
  min-width: 0;
  padding: 25px clamp(26px, 4vw, 42px);
  border-right: 1px solid var(--est-line);
  border-bottom: 1px solid var(--est-line);
}

.est-detail-grid > div:nth-child(2n) {
  border-right: 0;
}

.est-detail-grid > div:nth-last-child(-n+2) {
  border-bottom: 0;
}

.est-detail-grid strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 15px;
}

.est-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .02em;
}

.est-approval-row,
.est-scope {
  padding: 28px clamp(26px, 4vw, 42px);
  border-bottom: 1px solid var(--est-line);
}

.est-status-note {
  padding: 15px clamp(26px, 4vw, 42px);
  color: #7a4b00;
  background: #fff7e7;
  border-bottom: 1px solid #e8cf9e;
}

.est-status-note.is-expired {
  color: var(--est-red);
  background: var(--est-red-soft);
  border-color: #e4bebe;
}

.est-scope {
  border-bottom: 0;
}

.est-scope p {
  margin: 0;
  color: #424744;
  font-size: 15px;
  line-height: 1.75;
}

.est-document-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 19px;
  align-items: center;
  margin-top: 20px;
  padding: 23px 26px;
  box-shadow: none;
}

.est-document-icon {
  width: 52px;
  height: 60px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--est-ink);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 800;
}

.est-document-card h3 {
  margin-bottom: 4px;
  font-size: 17px;
}

.est-document-card p {
  margin-bottom: 0;
  color: var(--est-muted);
  font-size: 13px;
}

.est-document-card > a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 17px;
  color: #fff;
  background: var(--est-ink);
  border: 1px solid var(--est-ink);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 750;
}

.est-document-card > a:hover {
  color: var(--est-ink);
  background: #fff;
}

.est-qr-card,
.est-issued-by-card {
  padding: 27px;
  text-align: center;
  box-shadow: none;
}

.est-issuer-mark {
  width: 142px;
  margin: 0 auto 22px;
}

.est-qr-image {
  width: 176px;
  height: 176px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  padding: 9px;
  background: #fff;
  border: 1px solid var(--est-line);
}

.est-qr-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.est-qr-card h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

.est-qr-card p {
  margin-bottom: 0;
  color: var(--est-muted);
  font-size: 12px;
}

.est-issued-by-card {
  margin-top: 20px;
  text-align: left;
}

.est-issued-by-card > strong {
  display: block;
  font-size: 17px;
}

.est-issued-by-card p {
  margin: 12px 0 0;
  color: var(--est-muted);
  font-size: 13px;
  line-height: 1.55;
}

.est-issued-by-card hr {
  margin: 20px 0;
  border: 0;
  border-top: 1px solid var(--est-line);
}

.est-issued-by-card a {
  display: block;
  color: var(--est-ink);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.est-integrity-note {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-top: 34px;
  padding: 20px 23px;
  color: #4d5551;
  background: #edf0ee;
  border-radius: 2px;
}

.est-integrity-note > span {
  flex: 0 0 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--est-ink);
  border-radius: 50%;
  font: 700 13px Georgia, serif;
}

.est-integrity-note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.est-empty-state {
  padding: 160px 0;
  text-align: center;
}

@media (max-width: 991px) {
  .est-verify-page {
    padding-top: 72px;
  }

  .admin-bar .est-verify-page {
    padding-top: 72px;
  }

  .est-verify-hero-grid,
  .est-result-heading {
    align-items: flex-start;
  }

  .est-verify-seal {
    flex-basis: 150px;
    min-height: 150px;
  }

  .est-verify-layout,
  .est-result-grid {
    grid-template-columns: 1fr;
  }

  .est-result-aside {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .est-issued-by-card {
    margin-top: 0;
  }
}

@media (max-width: 767px) {
  .est-verify-hero,
  .est-result-hero {
    padding: 48px 0;
  }

  .est-verify-seal {
    display: none;
  }

  .est-lookup-control {
    grid-template-columns: 1fr;
  }

  .est-result-heading {
    flex-direction: column;
    gap: 25px;
  }

  .est-status-badge {
    min-width: 170px;
  }

  .est-holder-top {
    align-items: flex-start;
  }

  .est-holder-logo {
    flex-basis: 58px;
    height: 58px;
  }

  .est-detail-grid {
    grid-template-columns: 1fr;
  }

  .est-detail-grid > div,
  .est-detail-grid > div:nth-child(2n),
  .est-detail-grid > div:nth-last-child(-n+2) {
    border-right: 0;
    border-bottom: 1px solid var(--est-line);
  }

  .est-detail-grid > div:last-child {
    border-bottom: 0;
  }

  .est-document-card {
    grid-template-columns: auto 1fr;
  }

  .est-document-card > a {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .est-result-aside {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .est-holder-top {
    flex-wrap: wrap;
  }

  .est-holder-title {
    width: calc(100% - 82px);
  }

  .est-record-check {
    position: absolute;
    right: 20px;
    top: 20px;
  }
}
