/* Certificate verification — verify/index.html. Built on styles.css's tokens
   and its .btn, .nav and .footer, so a certificate check looks like the rest
   of the site. Results are green and red rather than the brand's purple: they
   have to read as yes and no at a glance. */

.vf-main {
  min-height: 70vh;
  padding: clamp(118px, 14vw, 160px) 0 clamp(64px, 8vw, 104px);
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 340px);
}
.vf-inner { max-width: 760px; }

.vf-intro { margin-bottom: 30px; }
.vf-title { font-size: clamp(2.1rem, 5vw, 3.1rem); }
.vf-lead { margin-top: 16px; font-size: 1.1rem; color: var(--ink-2); font-weight: 500; }
/* The other apps' names, linked by verify.js. Underlined, being links in
   running text, and kept whole: a name broken at its hyphen reads as two
   words. */
.vf-lead a {
  color: var(--brand-strong);
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.vf-lead a:hover { text-decoration-thickness: 2px; }

/* ---- Result ---- */
.vf-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-md);
  padding: clamp(22px, 4vw, 34px);
  margin-bottom: 30px;
  border-top: 6px solid var(--line-2);
}
.vf-valid { border-top-color: #15803D; }
.vf-revoked { border-top-color: #B91C1C; }
.vf-unknown, .vf-loading { border-top-color: var(--ink-3); }
.vf-warn { border-top-color: #B45309; }

.vf-status { display: flex; gap: 16px; align-items: flex-start; }
.vf-icon { width: 40px; height: 40px; flex: none; margin-top: 2px; }
.vf-valid .vf-icon { color: #15803D; }
.vf-revoked .vf-icon { color: #B91C1C; }
.vf-unknown .vf-icon, .vf-loading .vf-icon { color: var(--ink-3); }
.vf-warn .vf-icon { color: #B45309; }
.vf-loading .vf-icon { animation: vf-pulse 1.2s ease-in-out infinite; }
@keyframes vf-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .vf-loading .vf-icon { animation: none; } }

.vf-status-title { font-size: clamp(1.5rem, 3.4vw, 2rem); }
.vf-status-body { margin-top: 8px; color: var(--ink-2); font-weight: 500; }
.vf-checked {
  margin-top: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .95rem;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.vf-details { margin-top: 26px; border-top: 1px solid var(--line); display: grid; }
.vf-details > div {
  display: grid;
  grid-template-columns: minmax(120px, 34%) 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.vf-details > div:last-child { border-bottom: 0; padding-bottom: 0; }
.vf-details dt { color: var(--ink-3); font-weight: 600; font-size: .94rem; }
.vf-details dd { font-weight: 600; overflow-wrap: anywhere; }
.vf-details a { color: var(--brand-strong); }
.vf-details a:hover { text-decoration: underline; }
.vf-name { font-size: 1.22rem; font-weight: 800 !important; letter-spacing: -.01em; }
.vf-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; }
.vf-course { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.vf-example { white-space: nowrap; }
.vf-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: .8rem;
  font-weight: 700;
}

/* ---- Form ---- */
.vf-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(20px, 3.6vw, 28px);
}
.vf-form-label { display: block; font-weight: 700; margin-bottom: 12px; }
.vf-row { display: flex; gap: 12px; }
.vf-input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.05rem;
  letter-spacing: .04em;
  padding: 15px 16px;
  border: 2px solid var(--line-2);
  border-radius: var(--r-btn);
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.vf-input::placeholder { color: var(--ink-3); opacity: .7; }
.vf-input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.vf-hint { margin-top: 12px; font-size: .92rem; color: var(--ink-3); font-weight: 500; }
.vf-learn { margin-top: 40px; font-size: 1rem; }

@media (max-width: 560px) {
  .vf-row { flex-direction: column; }
  .vf-row .btn { width: 100%; }
  .vf-details > div { grid-template-columns: 1fr; gap: 4px; }
  .vf-status { gap: 12px; }
  .vf-icon { width: 32px; height: 32px; }
}
