/* The mark page /v/{id} and the list /verified. Builds on app.css tokens. */

.mk-card { overflow: hidden; }
.mk-status { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; padding: 28px 32px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.mk-active .mk-status { background: var(--ok-soft); border-bottom-color: color-mix(in srgb, var(--ok) 22%, transparent); }
.mk-revoked .mk-status { background: var(--danger-soft); border-bottom-color: color-mix(in srgb, var(--danger) 22%, transparent); }
.mk-seal { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); color: var(--text-3); box-shadow: var(--shadow); }
.mk-active .mk-seal { color: var(--ok); }
.mk-revoked .mk-seal { color: var(--danger); }
.mk-seal svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mk-head { min-width: 0; }
.mk-kicker { font-size: 14px; font-weight: 600; color: var(--text-2); }
.mk-head h1 { font-size: 30px; line-height: 1.15; font-weight: 750; letter-spacing: -.02em; margin-top: 2px; overflow-wrap: anywhere; }
.mk-state { margin-top: 8px; font-size: 17px; font-weight: 550; color: var(--text); }
.mk-active .mk-state { color: var(--ok); }
.mk-revoked .mk-state { color: var(--danger); }

.mk-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.mk-facts > div { padding: 20px 32px; border-bottom: 1px solid var(--border); min-width: 0; }
.mk-facts > div:nth-child(odd) { border-right: 1px solid var(--border); }
.mk-facts dt { font-size: 13px; font-weight: 600; color: var(--text-3); }
.mk-facts dd { margin: 4px 0 0; font-size: 16px; font-weight: 550; overflow-wrap: anywhere; }
.mk-sub { display: block; font-size: 14px; font-weight: 400; color: var(--text-2); margin-top: 2px; }
.mk-grade { display: flex; gap: 12px; align-items: flex-start; }
.mk-grade span:last-child { font-weight: 400; color: var(--text-2); font-size: 15px; line-height: 1.45; }

.mk-checks { padding: 24px 32px 0; }
.mk-checks h2 { font-size: 15px; font-weight: 650; }
.mk-checks ul { list-style: none; margin-top: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.mk-checks li { position: relative; padding-left: 20px; font-size: 15px; color: var(--text-2); line-height: 1.45; }
.mk-checks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); }

.mk-note { font-size: 14px; color: var(--text-3); line-height: 1.5; }
.mk-card .mk-note { padding: 24px 32px 0; }
.mk-more { padding: 12px 32px 28px; font-size: 15px; font-weight: 550; }
.mk-missing { font-size: 22px; font-weight: 700; }

.mk-cta { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 28px 32px; border-radius: var(--radius-lg); background: var(--code-bg); color: #E2E8F0; border: 1px solid var(--code-border); }
.mk-cta > div { flex: 1 1 320px; min-width: 0; }
.mk-cta h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: #F8FAFC; }
.mk-cta p { margin-top: 6px; color: #A5B4C8; }
.mk-cta .btn.primary { background: #818CF8; border-color: #818CF8; color: #0B1120; }
.mk-cta .btn.primary:hover { background: #A5B4FC; border-color: #A5B4FC; }

/* The list */
.mk-list-head h1 { font-size: 30px; font-weight: 750; letter-spacing: -.02em; }
.mk-list-head p { margin-top: 8px; color: var(--text-2); max-width: 60ch; }
.mk-rows { list-style: none; }
.mk-rows li + li { border-top: 1px solid var(--border); }
.mk-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 24px; color: var(--text); }
.mk-row:hover { text-decoration: none; background: var(--surface-2); }
.mk-row:focus-visible { border-radius: 0; }
.mk-site { font-weight: 650; overflow-wrap: anywhere; }
.mk-dates { font-size: 14px; color: var(--text-3); text-align: right; line-height: 1.4; }
.mk-dates > span { display: block; white-space: nowrap; }

@media (max-width: 560px) {
  .mk-status { grid-template-columns: 1fr; gap: 16px; padding: 20px 16px; }
  .mk-seal { width: 52px; height: 52px; border-radius: 14px; }
  .mk-seal svg { width: 28px; height: 28px; }
  .mk-head h1 { font-size: 24px; }
  .mk-facts { grid-template-columns: 1fr; }
  .mk-facts > div { padding: 16px; }
  .mk-facts > div:nth-child(odd) { border-right: 0; }
  .mk-checks { padding: 20px 16px 0; }
  .mk-checks ul { grid-template-columns: 1fr; }
  .mk-card .mk-note { padding: 20px 16px 0; }
  .mk-more { padding: 12px 16px 20px; }
  .mk-cta { padding: 24px 16px; }
  .mk-cta .btn { flex: 1 1 100%; }
  .mk-list-head h1 { font-size: 24px; }
  .mk-row { grid-template-columns: auto minmax(0, 1fr); padding: 14px 16px; gap: 4px 12px; }
  .mk-dates { grid-column: 2; text-align: left; }
}
