/* =============================================================================
   TRACKORIGIN · CERTIFICATE PAGE
   Loads after base.css, components.css, and public.css
   ============================================================================= */

/* --------------------------------------------------------------------------
   PAGE SHELL
   -------------------------------------------------------------------------- */

.main {
  background: var(--navy);
}

.cert-hero,
.cert-section {
  background: var(--navy);
  scroll-margin-top: 96px;
}

/* --------------------------------------------------------------------------
   NAV COMPATIBILITY
   -------------------------------------------------------------------------- */

.nav__desktop-actions {
  gap: 14px;
}

.nav__link {
  font-size: 13px;
  white-space: nowrap;
}

.nav .btn--small {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */

.cert-hero {
  padding: clamp(78px, 8vw, 126px) 0 clamp(70px, 8vw, 116px);
  border-bottom: 1px solid var(--navy-line);
  position: relative;
  overflow: hidden;
}

.cert-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 62% 50% at 50% 24%, rgba(45, 85, 184, 0.22), transparent 62%),
    radial-gradient(ellipse 42% 42% at 12% 78%, rgba(45, 85, 184, 0.10), transparent 60%);
  pointer-events: none;
}

.cert-hero__inner {
  position: relative;
  z-index: 1;
}

.cert-hero__eyebrow {
  margin-bottom: 26px;
}

.cert-hero .display-lg,
.cert-hero .display-md {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.cert-hero__lede {
  max-width: 820px;
  margin-top: 28px;
  margin-left: auto;
  margin-right: auto;
}

.cert-hero--revoked::before,
.cert-hero--error::before {
  background:
    radial-gradient(ellipse 62% 50% at 50% 24%, rgba(196, 69, 69, 0.18), transparent 62%),
    radial-gradient(ellipse 42% 42% at 12% 78%, rgba(45, 85, 184, 0.08), transparent 60%);
}

/* --------------------------------------------------------------------------
   SEAL / PILLS / ACTIONS
   -------------------------------------------------------------------------- */

.cert-seal-mount {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: clamp(28px, 4vw, 52px) 0 24px;
}

.cert-seal-placeholder {
  width: 280px;
  height: 280px;
  max-width: 70vw;
  max-height: 70vw;
}

.cert-pill-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.cert-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.cert-actions--left {
  justify-content: flex-start;
}

/* --------------------------------------------------------------------------
   SECTION LAYOUT
   -------------------------------------------------------------------------- */

.cert-section {
  padding: clamp(68px, 7vw, 108px) 0;
  border-bottom: 1px solid var(--navy-line);
}

.cert-section--final {
  border-bottom: none;
}

.cert-section__head {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: center;
  margin-bottom: clamp(34px, 4vw, 58px);
}

.cert-section__num {
  align-self: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.cert-section__title {
  margin: 0;
  max-width: 1040px;
  text-align: left;
  font-family: var(--display);
  font-size: clamp(48px, 5.6vw, 84px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--cream);
}

.prose {
  max-width: 68ch;
}

.two-col {
  gap: clamp(44px, 5vw, 72px);
}

/* --------------------------------------------------------------------------
   CERTIFICATE IDENTITY FIELDS
   -------------------------------------------------------------------------- */

.cert-identity {
  background: var(--navy-soft);
  border: 1px solid var(--navy-line-hi);
  padding: clamp(28px, 3vw, 42px);
}

.cert-field-list {
  margin-top: 18px;
  border-top: 1px solid var(--navy-line);
}

.cert-field {
  padding: 16px 0;
  border-bottom: 1px solid var(--navy-line);
}

.cert-field__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.cert-field__value {
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  color: var(--cream);
  word-break: break-all;
}

.cert-field:last-child .cert-field__value {
  color: var(--cream-muted);
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   DECLARATIONS
   -------------------------------------------------------------------------- */

.cert-declaration-list {
  border-top: 1px solid var(--navy-line);
}

.cert-declaration-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid var(--navy-line);
}

.cert-declaration-row__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.cert-declaration-row__value {
  color: var(--cream);
  font-size: 15px;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   INTEGRITY CHECK GRID
   -------------------------------------------------------------------------- */

.cert-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--navy-line);
  background: var(--navy-line);
  gap: 1px;
}

.cert-check {
  background: var(--navy);
  padding: clamp(28px, 3vw, 42px);
  min-width: 0;
}

.cert-check .card__title {
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 0.95;
}

.cert-check .card__body {
  color: var(--cream-muted);
}

/* --------------------------------------------------------------------------
   EMBED CODE
   -------------------------------------------------------------------------- */

.cert-code-block {
  max-width: 940px;
}

.cert-code-block .code {
  white-space: pre-wrap;
  word-break: break-word;
}

.cert-footer-note {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .cert-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .cert-hero {
    padding-top: 60px;
  }

  .cert-section {
    padding: 72px 0;
  }

  .cert-section__head {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cert-section__title {
    font-size: clamp(42px, 11vw, 64px);
  }

  .two-col {
    gap: 38px;
  }

  .cert-actions--left {
    justify-content: center;
  }

  .cert-declaration-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 760px) {
  .cert-check-grid {
    grid-template-columns: 1fr;
  }

  .display-lg {
    font-size: clamp(48px, 14vw, 82px);
  }

  .cert-seal-placeholder {
    width: 220px;
    height: 220px;
  }
}

@media (max-width: 520px) {
  .cert-hero,
  .cert-section {
    scroll-margin-top: 78px;
  }

  .cert-identity {
    padding: 22px;
  }

  .cert-field__value {
    font-size: 12px;
  }
}