/* EON certificate registry — page styles.
   Tokens and the shared component language live in tokens.css. */

/* ============================ Landing ============================ */
.home { padding: 72px 24px 90px; }
@media (max-width: 720px) { .home { padding: 44px 20px 64px; } }

.home-title {
  font-size: clamp(36px, 6vw, 58px);
  margin: 18px 0 0;
}
.home-lede { margin-top: 18px; max-width: 52ch; }

.home-card {
  margin-top: 34px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* The code is the one thing on this page a person reads character by character,
   so it gets the mono face and generous tracking. */
.code-input {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.06em;
  height: 52px;
}
@media (max-width: 480px) {
  .code-input { font-size: 14.5px; letter-spacing: 0.04em; }
}

.home-help { font-size: 11.5px; color: var(--muted); margin: -4px 0 0; }
.home-submit { align-self: flex-start; margin-top: 4px; }
@media (max-width: 520px) { .home-submit { align-self: stretch; } }

.home-notes {
  margin-top: 52px;
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.note h2 {
  font: 500 13px/1.4 var(--sans);
  margin: 0 0 6px;
  color: var(--text);
}
.note p { margin: 0; font-size: 13.5px; color: var(--body); line-height: 1.6; }
.link { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

/* ============================ Verify ============================ */
.verify-main { padding: 64px 24px 90px; }
@media (max-width: 720px) { .verify-main { padding: 40px 20px 64px; } }

.result-card { overflow: hidden; }

.result-head {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel-blue), transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
/* Which kind of certificate this is — the registry holds every type, so say so. */
.result-type {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.result-revoked  .result-head { background: linear-gradient(180deg, var(--warn-bg), transparent); }
.result-notfound .result-head { background: linear-gradient(180deg, var(--err-bg), transparent); }

.result-body { padding: 30px 28px 26px; }
@media (max-width: 520px) {
  .result-head { padding: 17px 20px; }
  .result-body { padding: 24px 20px 20px; }
}

.result-name {
  font-size: clamp(30px, 5.4vw, 44px);
  margin: 12px 0 0;
}
.result-message {
  margin: 16px 0 0;
  color: var(--body);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 48ch;
}

.detail-list {
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: minmax(120px, auto) 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}
.detail-list dt,
.detail-list dd {
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.detail-list dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-right: 20px;
  /* Centre the label text without shrinking the cell. `align-self: center`
     would size the box to its content, leaving its bottom border floating
     above the value's — visible as staggered underlines across the rows. */
  display: flex;
  align-items: center;
}
.detail-list dd { color: var(--text); font-weight: 500; }
.detail-list dd.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; }

/* The card footer already draws a rule, so the final row must not draw its own. */
.detail-list dt:last-of-type,
.detail-list dd:last-of-type { border-bottom: 0; }

@media (max-width: 480px) {
  .detail-list { grid-template-columns: 1fr; }
  .detail-list dt { padding: 14px 0 0; border-bottom: 0; display: block; }
  .detail-list dd { padding: 3px 0 14px; }
}

.result-foot {
  padding: 15px 28px;
  border-top: 1px solid var(--border);
  background: var(--canvas-blue);
  color: var(--muted);
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 520px) { .result-foot { padding: 14px 20px; } }

.try-another {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px;
  font-size: 13.5px; font-weight: 500;
  color: var(--body);
  transition: color .15s;
}
.try-another:hover { color: var(--blue); }

/* Loading */
.dot.pulsing { animation: pulse 1.6s ease-in-out infinite; }
.skeleton {
  background: linear-gradient(90deg, var(--canvas-blue) 25%, #eaf0f8 37%, var(--canvas-blue) 63%);
  background-size: 400% 100%;
  animation: shimmer-bg 1.4s ease infinite;
  border-radius: 6px;
}
@keyframes shimmer-bg {
  from { background-position: 100% 50%; }
  to   { background-position: 0 50%; }
}
.skeleton-title { height: 38px; width: 62%; margin-bottom: 22px; }
.skeleton-line  { height: 13px; width: 100%; margin-bottom: 11px; }
.skeleton-line.short { width: 45%; }

/* ============================ Footer ============================ */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: auto;
  padding: 22px 0;
  background: rgba(255,255,255,.5);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-brand {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
  transition: color .15s;
}
.footer-brand:hover { color: var(--text); }
.footer-brand img { opacity: .75; }
.footer-note {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}

body { display: flex; flex-direction: column; }
main { flex: 1; width: 100%; }
