/* ============================================================
   BurnLedger /verify — the working verifier, same flat-plane world
   Quiet tool on paper; the verdict is the page's one loud plane.
   ============================================================ */

/* ---- header band ---- */
.vhead { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.vhead__h1 {
  font-size: clamp(2.15rem, 5.2vw, 3.7rem);
  letter-spacing: -.045em; line-height: .96;
  max-width: 16ch;
}
.vhead__sub {
  margin-top: 1rem; max-width: 52ch; font-size: clamp(1rem, 1.35vw, 1.12rem);
  color: var(--ink-soft); line-height: 1.55;
}
.vhead__sub strong { color: var(--ink); }
.vhead__sub a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- tool ---- */
.vtool { padding-bottom: clamp(3rem, 6vw, 5rem); }
.vtool__inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start;
}

/* input panel */
.vin { display: grid; gap: .75rem; }
.vin__bar { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.vin__label {
  font-size: .82rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink-soft);
}
.vin__aux { display: flex; align-items: baseline; gap: .6rem; }
.vin__auxbtn {
  background: none; border: none; padding: .1rem 0; cursor: pointer;
  font-family: var(--font-body); font-size: .92rem; font-weight: 700; color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px;
}
.vin__auxbtn:hover { color: var(--indigo); }
.vin__dot { width: 6px; height: 6px; background: var(--ink); align-self: center; }

.vin__ta {
  width: 100%; min-height: 380px; resize: vertical;
  font-family: var(--font-mono); font-weight: 500; font-size: .84rem;
  letter-spacing: -.02em; line-height: 1.6;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); padding: 1rem 1.1rem;
}
.vin__ta::placeholder { color: var(--ink-soft); font-family: var(--font-body); font-size: .98rem; letter-spacing: normal; }
.vin.is-drag .vin__ta { border-color: var(--indigo); background: var(--paper-2); }

.vin__err { min-height: 1.3rem; font-weight: 600; font-size: .95rem; color: var(--vermilion-deep); }
.vin__actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.vin__actions .btn[disabled] { opacity: .55; cursor: default; }
.vin__actions .btn[disabled]:hover { transform: none; }

/* result column */
.vres { min-width: 0; }

/* empty state */
.vres__empty { background: var(--paper-2); padding: clamp(1.5rem, 2.5vw, 2.2rem); }
.vres__empty h2 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); letter-spacing: -.03em; margin-bottom: 1.1rem; }
.vres__note { margin-top: 1.25rem; color: #423B30; font-size: .95rem; }

/* checklist */
.vchecks { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.vchecks li {
  display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start;
  font-size: .98rem; line-height: 1.45; color: #423B30;
}
.vchecks .vchecks__k { width: 13px; height: 13px; margin-top: .3em; background: var(--paper-3); }
.vchecks li[data-state="pass"] .vchecks__k { background: var(--indigo); }
.vchecks li[data-state="fail"] .vchecks__k { background: var(--vermilion); }
.vchecks li[data-state="pass"] { color: var(--ink); }
.vchecks li[data-state="fail"] { color: var(--ink); font-weight: 700; }
.vchecks li[data-state="skip"] { color: var(--ink-soft); }
.vchecks li small { display: block; font-weight: 400; font-size: .88rem; color: var(--ink-soft); }

/* verdict plane — the loud element */
.verdict { padding: clamp(1.5rem, 2.5vw, 2.2rem); }
.verdict--valid { background: var(--gold); color: var(--gold-ink); }
.verdict--bad { background: var(--vermilion-deep); color: #fff; }
.verdict--warn { background: var(--paper-3); color: var(--ink); }
.verdict__word {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 5.5vw, 4rem); letter-spacing: -.04em; line-height: .96;
}
.verdict__reason { margin-top: .7rem; font-size: 1.02rem; line-height: 1.5; max-width: 44ch; }
.verdict--bad .verdict__reason { color: #FCE4DE; }
.verdict--valid .verdict__reason { color: #423B30; }
.verdict__chip {
  display: inline-block; margin-top: 1rem; background: var(--ink); color: var(--paper);
  font-weight: 800; font-size: .72rem; letter-spacing: .08em; padding: .35rem .7rem;
  text-transform: uppercase;
}

/* result body under the verdict */
.vres__body { background: var(--paper-2); padding: clamp(1.25rem, 2vw, 1.8rem); display: grid; gap: 1.3rem; }

/* certificate summary — same dt/dd grammar as the landing card */
.vsum { display: grid; gap: .7rem; border-top: 2px solid var(--ink); padding-top: 1.2rem; }
.vsum div { display: grid; grid-template-columns: 8.5rem 1fr; gap: .5rem; align-items: baseline; }
.vsum dt { color: var(--ink-soft); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.vsum dd { font-size: .95rem; word-break: break-word; }
.vsum .mono { font-size: .85rem; }

/* Scope statement -- rendered from the page's own copy, never from the pasted
   certificate. Quiet by design: it is a limit on the verdict above it, not a
   second verdict, so it reads as a footnote rather than competing for the eye. */
.vscope { border-top: 2px solid var(--ink); margin-top: 1.4rem; padding-top: 1.2rem; }
.vscope__h { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: .6rem; }
.vscope__t { font-size: .9rem; line-height: 1.55; color: #423B30; }
.vscope__note { font-size: .8rem; line-height: 1.5; color: var(--ink-soft); margin-top: .7rem; }
.vscope__note a { color: inherit; }

/* keys-unreachable / browser-unsupported message */
.vres__blocked { background: var(--paper-3); padding: clamp(1.5rem, 2.5vw, 2.2rem); }
.vres__blocked h2 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); letter-spacing: -.03em; margin-bottom: .8rem; }
.vres__blocked p { color: #423B30; font-size: 1rem; line-height: 1.55; }
.vres__blocked .mono { display: block; margin-top: 1rem; font-size: .82rem; word-break: break-all; }

/* verdict entrance — the page's one authored moment */
html.js .vres__in { opacity: 0; transform: translateY(14px); }
html.js .vres__in.is-in { opacity: 1; transform: none; transition: opacity .5s var(--e-out), transform .5s var(--e-out); }
@media (prefers-reduced-motion: reduce) {
  html.js .vres__in { opacity: 1; transform: none; transition: none; }
}

/* ---- how band ---- */
.vhow { background: var(--paper-2); padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.vhow__title { font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 18ch; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.vhow__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3.5vw, 3rem); }
.vhow__col h3 { font-size: 1.35rem; letter-spacing: -.02em; margin: .8rem 0 .5rem; }
.vhow__col p { font-size: .99rem; line-height: 1.55; color: #423B30; max-width: 38ch; }
.vhow__col a { text-decoration: underline; text-underline-offset: 3px; }
.vhow__mono { font-size: .82rem; }
.vhow__k { display: block; width: 22px; height: 22px; }
.vhow__k--indigo { background: var(--indigo); }
.vhow__k--gold { background: var(--gold); }
.vhow__k--vermilion { background: var(--vermilion); }

/* ---- self-verify band (indigo, code) ---- */
.vself { background: var(--indigo); color: #EAF0FF; padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.vself__inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.vself__inner > * { min-width: 0; }
.vself__intro h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); color: #fff; }
.vself__intro p { margin: 1.1rem 0 1.4rem; color: #C4D2F5; font-size: 1.05rem; max-width: 34ch; }
.vself__src { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.vself__code { background: #16234A; border: 2px solid rgba(255,255,255,.14); }
.vself__code pre { margin: 0; padding: 1.4rem clamp(1.1rem, 2vw, 1.7rem); overflow-x: auto; }
.vself__code code { font-family: var(--font-mono); font-size: .85rem; line-height: 1.8; color: #DCE6FF; white-space: pre; }
.vself__code .c { color: #7E8FBF; font-style: italic; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .vtool__inner { grid-template-columns: 1fr; }
  .vhow__cols { grid-template-columns: 1fr; }
  .vself__inner { grid-template-columns: 1fr; }
  .vin__ta { min-height: 300px; }
}
@media (max-width: 560px) {
  .vsum div { grid-template-columns: 1fr; gap: .15rem; }
  .vin__actions .btn { width: 100%; }
}

/* ---- QR arrival panel -----------------------------------------------------
   Shown only when the page is opened from a certificate's QR code. Deliberately
   quieter than the verify panel: the full offline check is still the primary
   action, and this is the fallback for a reader holding paper. */
.vqr {
  display: grid;
  gap: .6rem;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
  background: var(--paper-2);
  border-left: 3px solid var(--indigo);
}
.vqr__lede { font-weight: 700; margin: 0; }
.vqr__id { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; margin: 0; }
.vqr__id span {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink-soft);
}
.vqr__id code { font-family: var(--font-mono); font-size: .9rem; word-break: break-all; }
.vqr__body { margin: 0; font-size: .95rem; color: var(--ink-soft); max-width: 62ch; }
.vqr__actions { margin: .25rem 0 0; }
.vqr__out:empty { display: none; }
.vqr__out {
  margin-top: .35rem; padding: .7rem .85rem; background: #fff;
  border: 2px solid var(--ink); font-size: .95rem;
}
.vqr__out .st { font-family: var(--font-mono); font-weight: 700; letter-spacing: .04em; }
.vqr__out .st--active  { color: #1F6F4A; }
.vqr__out .st--revoked { color: var(--vermilion-deep); }
.vqr__out .st--err     { color: var(--ink-soft); }
.vqr__out dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem .8rem; margin: .5rem 0 0; font-size: .88rem; }
.vqr__out dt { color: var(--ink-soft); }
.vqr__out dd { margin: 0; font-family: var(--font-mono); word-break: break-all; }

/* Status-statement notes under the verdict. A class rather than an inline
   style attribute, which the strict CSP drops. */
.st-note { margin: .5rem 0 0; font-size: .88rem; }
.st-note--first { margin-top: .6rem; }

/* The revocation button lives inside a check row: an explicit action, styled
   as a link rather than a primary control, because pressing it is the only
   thing on this page that sends anything anywhere. */
.vchecks__btn {
  display: block;
  margin-top: .35rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: .88rem;
  color: var(--accent, #b4531f);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.vchecks__btn:disabled { color: inherit; opacity: .6; cursor: default; text-decoration: none; }

/* A scope mismatch is a warning about what the document means, not a failure
   of its signatures — styled to be read, not to shout INVALID. */
.vscope__v3,
.vscope__match { font-size: .8rem; line-height: 1.5; margin-top: .5rem; color: var(--ink-soft); }
.vscope__warn {
  font-size: .84rem; line-height: 1.55; margin-top: .5rem;
  padding: .5rem .65rem; border-left: 3px solid var(--warn, #b4531f);
  background: rgba(180, 83, 31, .06);
}
