/* Plain, legible, no framework. The pages are a demonstration of the API,
   not a design system; anything fancier would be a second thing to maintain
   and would make the demo look more finished than the work behind it. */
:root {
  --ink: #16181d; --muted: #5c6370; --line: #d8dce4; --bg: #fbfcfd;
  --ok: #1f7a4d; --bad: #a8321f; --warn: #8a5a00; --accent: #1d4ed8;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.55 -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--bg); }
header { display: flex; gap: 1.5rem; align-items: baseline; padding: 1rem 2rem;
  border-bottom: 1px solid var(--line); background: #fff; }
.brand { font-weight: 650; text-decoration: none; color: var(--ink); }
nav { flex: 1; display: flex; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
nav a { color: var(--accent); text-decoration: none; }
/* Who you are is not a place you can go, so it sits away from the links. */
.account { margin-left: auto; display: flex; gap: 0.6rem; align-items: baseline;
  font-size: 0.9rem; }
.account .who { color: var(--ink); }
.account .roles { color: var(--muted); }
.account form { margin: 0; }
/* The same control in the body of a page, where nothing pushes it right. */
.account-inline { margin: 0.8rem 0; }
.account-inline .account { margin-left: 0; }
/* A button that ends a session, wearing a link's clothes: the POST is the
   security-relevant half, the appearance is not. */
button.link { background: none; color: var(--accent); padding: 0; font: inherit;
  text-decoration: underline; }
main { max-width: 60rem; margin: 0 auto; padding: 2rem; }
footer { max-width: 60rem; margin: 0 auto; padding: 1rem 2rem 3rem;
  color: var(--muted); font-size: 0.85rem; }
h1 { font-size: 1.6rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.1rem; margin: 0 0 0.5rem; }
.lede { color: var(--muted); max-width: 44rem; }
.muted { color: var(--muted); }
.bad { color: var(--bad); }
.warn { color: var(--warn); }
.ok { color: var(--ok); }
.req { color: var(--accent); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 1.25rem; margin: 1.25rem 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem; margin: 1.5rem 0; }
.cards article { background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 1rem; }
label { display: block; margin: 0.6rem 0; }
label.checkbox { display: flex; gap: 0.6rem; align-items: flex-start; }
input[type=text], input[type=email], input[type=date], input:not([type]) {
  width: 100%; padding: 0.45rem 0.6rem; border: 1px solid var(--line); border-radius: 5px; }
button, .button { display: inline-block; padding: 0.5rem 0.9rem; border: 0;
  border-radius: 5px; background: var(--accent); color: #fff; font: inherit;
  cursor: pointer; text-decoration: none; }
button.danger { background: var(--bad); }
.button.secondary { background: var(--muted); }
.actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 0.8rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
td, th { text-align: left; padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--line);
  vertical-align: top; }
code { font-size: 0.85em; background: #eef1f6; padding: 0.1em 0.35em; border-radius: 3px; }
video { width: 100%; max-width: 22rem; background: #000; border-radius: 6px; }
/* The capture guide, the same shape as the face login in mobai-auth-service
   (login-consent-app/templates/_base.html .face-frame): a circle to put your
   face in, and a mirrored preview, because an unmirrored selfie makes people
   move the wrong way. Only the preview is mirrored; the frames sent are not. */
.face-frame { width: min(240px, 66vw); height: min(240px, 66vw); margin: 0.5rem auto 1rem;
  border-radius: 50%; border: 3px dashed var(--gold); overflow: hidden; background: #000; }
.face-frame video { width: 100%; height: 100%; max-width: none; object-fit: cover;
  transform: scaleX(-1); border-radius: 0; }
iframe { width: 100%; height: 26rem; border: 1px solid var(--line); border-radius: 6px; }
.findings { list-style: none; padding: 0; }
.findings li { padding: 0.5rem 0.7rem; border-left: 3px solid currentColor;
  margin: 0.35rem 0; background: #fff; }
.state { padding: 0.1rem 0.45rem; border-radius: 999px; background: #eef1f6;
  font-size: 0.82rem; }
.state-sealed, .state-finalized { background: #e2f3ea; color: var(--ok); }
.state-withdrawn, .state-proofing_failed, .state-expired { background: #fbeae7; color: var(--bad); }
.result { min-height: 1.4rem; }

/* The status page the badge in every document opens. One line at arm's
   length, in the CrossMark shape: a mark, then a sentence, then the detail.
   Mobai's dark teal and gold are the mark's, the same two colours the badge
   is drawn in inside the PDF, so the page looks like the thing you pressed. */
:root { --teal: #0d4a4a; --gold: #cca340; }
.status-card { display: flex; gap: 1.1rem; align-items: center; border-left: 4px solid var(--teal); }
.status-headline { font-size: 1.45rem; line-height: 1.25; font-weight: 650; margin: 0; }
.status-lifecycle { margin: 0.35rem 0 0; }
/* The mark: a teal disc with a gold ring, and a glyph that says which of the
   three answers this is. Drawn in CSS for the same reason it is drawn rather
   than rasterised in the PDF: one less binary to keep in step. */
.status-mark { flex: none; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--teal); border: 2px solid var(--gold); position: relative; }
.status-mark::after { position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 1.5rem; line-height: 1; }
.status-ok .status-headline { color: var(--ok); }
.status-ok .status-mark::after { content: "\2713"; }
.status-bad { border-left-color: var(--bad); }
.status-bad .status-headline { color: var(--bad); }
.status-bad .status-mark { background: var(--bad); border-color: #e8b4aa; }
.status-bad .status-mark::after { content: "\2715"; }
.status-warn { border-left-color: var(--warn); }
.status-warn .status-headline { color: var(--warn); }
.status-warn .status-mark { background: var(--warn); border-color: #e8cf9a; }
.status-warn .status-mark::after { content: "!"; font-weight: 700; }
/* A 71-character hash next to a label on a phone. Without this it either
   overflows the card or pushes the page sideways. */
td code { word-break: break-all; }

/* The sign page's Mobai-rendered pages (sign-preview.js, docs/rendering.md). */
.rendered-by { border-left: 3px solid var(--line); padding-left: 0.75rem; }
code.hash { word-break: break-all; }
.preview-pages { max-height: 70vh; overflow-y: auto; border: 1px solid var(--line);
                 border-radius: 6px; padding: 0.5rem; background: #eef1f6; }
.preview-page { margin: 0 0 0.75rem; }
.preview-page img { display: block; width: 100%; height: auto; background: #fff;
                    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }
.preview-page figcaption { text-align: center; font-size: 0.85em; }
