/**
 * File role: styles of the public certificate verification page (/certificate/verify/, D-341).
 * The palette and layout of /license/verify/, so the two verification pages are visibly
 * the same family. Values from app/app.css.
 *
 * @file_version 1.0.0
 */

:root {
  --app-bg:      #f3f5fa;
  --app-line:    #e9edf5;
  --app-ink:     #16233f;
  --app-muted:   #6b7796;
  --app-blue:    #2f6bff;
  --app-blue-sf: #eef3ff;
  --doc-navy:    #0f1e42;
  --doc-navy-2:  #16337a;
  --doc-hair:    #d9e1f2;

  /* The answers. Colour carries the verdict before the word is read. */
  --tone-ok:     #12805c;
  --tone-ok-sf:  #e8f6f0;
  --tone-warn:   #9a6207;
  --tone-warn-sf:#fdf3e2;
  --tone-bad:    #b3261e;
  --tone-bad-sf: #fdecea;
  --tone-none:   #57617d;
  --tone-none-sf:#f1f3f8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--app-bg);
  color: var(--app-ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2 { font-family: "Inter Tight", Inter, sans-serif; letter-spacing: -.02em; margin: 0; }

.wrap { max-width: 680px; margin: 0 auto; padding: 0 20px 56px; }

/* Header band */
.hd {
  background: linear-gradient(115deg, var(--doc-navy) 0%, var(--doc-navy-2) 62%, var(--app-blue) 100%);
  color: #fff;
  padding: 30px 0 34px;
  margin-bottom: 28px;
}
.hd__in { max-width: 680px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 18px; }
.hd__mark {
  flex: 0 0 auto; width: 54px; height: 54px;
  background: #fff; border-radius: 12px; padding: 7px;
  display: grid; place-items: center;
}
.hd__mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hd__t { font-size: 25px; font-weight: 800; line-height: 1.15; }
.hd__t sup { font-size: 45%; font-weight: 600; top: -1em; }
.hd__s {
  margin-top: 5px; font-size: 12px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: #cfe0ff;
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 10px 30px -22px rgba(20,40,80,.4);
}
.card + .card { margin-top: 18px; }
.card h2 { font-size: 17px; font-weight: 700; }
.card p.lede { margin: 8px 0 20px; font-size: 14px; color: var(--app-muted); }
.lede__ro { display: block; font-size: 12.5px; opacity: .8; }

/* The one field */
.f label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--app-muted);
  margin-bottom: 7px;
}
.f__row { display: flex; gap: 10px; flex-wrap: wrap; }
.f input {
  flex: 1 1 260px; min-width: 0;
  padding: 13px 15px;
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 16px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--app-ink);
  background: #fff;
  border: 1px solid var(--doc-hair);
  border-radius: 10px;
}
.f input:focus { outline: 2px solid var(--app-blue); outline-offset: 1px; border-color: transparent; }
.f input::placeholder { color: #aab3c8; letter-spacing: .06em; }
.f button {
  flex: 0 0 auto;
  padding: 13px 22px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  color: #fff; background: var(--doc-navy);
  border: 0; border-radius: 10px; cursor: pointer;
  transition: background .15s;
}
.f button:hover { background: var(--doc-navy-2); }
.f__hint { margin: 12px 0 0; font-size: 12.5px; color: var(--app-muted); }

/* The verdict */
.res__badge {
  display: inline-flex; align-items: center;
  padding: 9px 16px; border-radius: 999px;
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: 15px; font-weight: 800; letter-spacing: .08em;
}
.res--ok   .res__badge { color: var(--tone-ok);   background: var(--tone-ok-sf); }
.res--warn .res__badge { color: var(--tone-warn); background: var(--tone-warn-sf); }
.res--bad  .res__badge { color: var(--tone-bad);  background: var(--tone-bad-sf); }
.res--none .res__badge { color: var(--tone-none); background: var(--tone-none-sf); }

/* A straight verdict rail: that side of the card is squared off. */
.res { border-radius: 0 16px 16px 0; }
.res--ok   { border-left: 4px solid var(--tone-ok); }
.res--warn { border-left: 4px solid var(--tone-warn); }
.res--bad  { border-left: 4px solid var(--tone-bad); }
.res--none { border-left: 4px solid var(--tone-none); }

.res__line { margin: 14px 0 0; font-size: 15px; }
.res__code { margin: 6px 0 0; font-size: 12.5px; color: var(--app-muted); }
.res__code b { font-family: "SFMono-Regular", Consolas, Menlo, monospace; font-weight: 600; color: var(--app-ink); }
.res__when { margin: 16px 0 0; font-size: 12.5px; color: var(--app-muted); }

/* The certificate's facts */
.facts { margin: 22px 0 0; border-top: 1px solid var(--app-line); }
.facts__row {
  display: grid; grid-template-columns: 190px 1fr; gap: 4px 16px;
  padding: 9px 0; border-bottom: 1px solid var(--app-line);
  font-size: 14px;
}
.facts__k { color: var(--app-muted); line-height: 1.35; }
.facts__k span { display: block; font-size: 11.5px; opacity: .72; }
.facts__v { font-weight: 600; word-break: break-word; }
.facts__v--mono {
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 13px; letter-spacing: .02em;
}

/* Notes */
.notes { margin-top: 18px; }
.note {
  padding: 16px 18px;
  background: var(--app-blue-sf);
  border: 1px solid var(--doc-hair);
  border-radius: 14px;
  font-size: 13px; line-height: 1.6;
}
.note p { margin: 0; }
.note strong { color: var(--doc-navy); }

.foot {
  margin-top: 26px; text-align: center;
  font-size: 12px; color: var(--app-muted);
}
.foot a { color: var(--doc-navy); }

@media (max-width: 560px) {
  .facts__row { grid-template-columns: 1fr; }
  .facts__k { font-size: 12.5px; }
  .hd__t { font-size: 21px; }
  .card { padding: 20px; }
}
