/* O-85: the "Verify it yourself" page, on top of the ledger styles. */
.verify-steps { margin:32px 0 0;padding:0;list-style:none; }
.verify-step { padding:24px 0;border-top:1px solid var(--text); }
.verify-step header { display:flex;align-items:baseline;gap:14px;margin-bottom:12px; }
.verify-step h2 { margin:0;font-size:clamp(20px,2.4vw,26px); }
.verify-number { font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;color:var(--accent); }
.verify-status { margin-left:auto;padding:2px 10px;border:1px solid var(--border);border-radius:999px;font-size:12px;color:var(--muted);white-space:nowrap; }
.verify-status[data-status='live'] { border-color:var(--success);color:var(--text); }
.verify-step .fairness-dl dd { min-width:0;overflow-wrap:anywhere; }
.verify-step .fairness-dl code { font-size:12px; }
.verify-step .fairness-table-wrap { margin-top:16px; }

/* Verify inside the shell: a compact intro and the checks as rows that fit one screen. */
.shell-page .fairness { padding:clamp(16px,4vh,40px) 0 24px; }
.shell-page .fairness>h1 { font-size:clamp(40px,5.6vw,76px);margin-bottom:12px; }
.shell-page .verify-steps { margin-top:clamp(16px,3vh,32px); }
.shell-page .verify-step { padding:clamp(14px,2.4vh,24px) 0; }
.shell-page.verify-page>main { display:flex;flex-direction:column;justify-content:safe center; }

/* The checks run one after another: each row arrives in turn, "Checking…" breathes, and every status carries a dot
   in its own colour (live, pending, unavailable). Reduced motion stops the movement (styles.css). */
.verify-step { animation:verify-in .5s var(--ease) both; }
.verify-step:nth-child(2) { animation-delay:.08s; }.verify-step:nth-child(3) { animation-delay:.16s; }.verify-step:nth-child(n+4) { animation-delay:.24s; }
@keyframes verify-in { from { opacity:0;transform:translateY(8px); } }
.verify-status { display:inline-flex;align-items:center;gap:6px; }
.verify-status:before { content:'';width:6px;height:6px;border-radius:50%;background:var(--muted);flex:none; }
.verify-status[data-status='loading']:before { background:var(--signal);animation:edition-read 1.2s ease-in-out infinite; }
.verify-status[data-status='live']:before { background:var(--success); }
.verify-status[data-status='pending']:before { background:transparent;box-shadow:inset 0 0 0 1px var(--muted); }
.verify-status[data-status='unavailable'] { border-color:var(--accent);color:var(--accent); }
.verify-status[data-status='unavailable']:before { background:var(--accent); }
@keyframes edition-read { 50% { opacity:.3;transform:scale(.6); } }
.verify-retry { min-height:32px;margin-left:4px;padding:0 12px;border:1px solid var(--line);border-radius:999px;background:transparent;font-size:12px;color:var(--text);transition:background 150ms var(--ease); }
.verify-retry:hover { background:var(--soft); }
/* A check that resolves settles into place, so the change from "Checking…" is noticed. */
.verify-status:not([data-status='loading']) { animation:chip-settle .45s var(--ease); }
@keyframes chip-settle { 0% { transform:translateY(4px);opacity:.4; } 60% { transform:translateY(-2px); } }
/* Vault system: each check is a plain plate; its state is said in words, without dots or numbers. */
body.vs .verify-steps { display:grid; gap:10px; }
body.vs .verify-step { position:relative; background:var(--surface); border:0; border-radius:12px; padding:18px 22px;
  box-shadow:0 0 0 1px var(--line); }
body.vs .verify-number { display:none; }
body.vs .verify-status { border-radius:6px; font-family:var(--font); font-size:12px; font-weight:500; }
body.vs .verify-status:before { display:none; }


/* Desktop: the page fits one screen like the others — title and reading path left, the checks right. */
@media (min-width:1000px) {
  body.vs #verify { display:grid; grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr); column-gap:clamp(36px,4vw,64px); align-content:center; align-items:start; }
  body.vs #verify>h1 { grid-column:1; grid-row:1; font-size:clamp(44px,4.6vw,68px); margin:0 0 18px; }

  body.vs #verify>.verify-steps { grid-column:2; grid-row:1 / span 2; align-self:center; margin:0; }
  body.vs #verify .explain-track span { width:auto; min-height:104px; padding:14px; }
  body.vs #verify .verify-step { padding:16px 20px; }
  body.vs #verify .verify-step h2 { font-size:clamp(20px,1.7vw,26px); }
}
/* With a live round the checks run long: they scroll under a title column that stays in view. */
@media (min-width:1000px) {
  body.vs #verify { align-content:start; padding-top:clamp(16px,4vh,40px); }
  body.vs #verify>h1 { position:sticky; }
  body.vs #verify>h1 { top:0; }

  body.vs #verify>.verify-steps { align-self:start; }
  body.vs #verify .verify-step dd { font-variant-numeric:proportional-nums; }
}
@media (min-width:1000px) {
  body.vs #verify { grid-template-rows:auto 1fr; }

}
/* Values read in the page's own type, not code: hashes and addresses wrap instead of running off. */
body.vs .verify-step .fairness-dl code,body.vs .fairness-table code { font:500 13px/1.45 var(--font); font-variant-numeric:proportional-nums; overflow-wrap:anywhere; word-break:break-word; }
body.vs .verify-step .fairness-dl dd { min-width:0; max-width:62%; font-size:13px; }

/* The reading path is one row of four small cards at every width that fits it, two by two on phones. */
body.vs #verify .explain-track { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
body.vs #verify .explain-track span { width:auto; min-height:104px; padding:14px; gap:10px; font-size:14px; line-height:1.25; }
body.vs #verify .explain-ico { width:30px; }
@media (max-width:560px) { body.vs #verify .explain-track { grid-template-columns:repeat(2,minmax(0,1fr)); } body.vs #verify .explain-track span { min-height:92px; } }
/* A check shows what a player reads first; the technical rows open under a key, quieter. */
body.vs .verify-more { margin-top:12px; min-height:44px; font-size:13px; }
body.vs .verify-technical { margin-top:10px; padding-top:4px; }
body.vs .verify-technical dt,body.vs .verify-technical dd { font-size:12.5px; }
body.vs .verify-technical dd { color:var(--muted); }
@media (min-width:1000px) { body.vs #verify>h1 { font-size:clamp(40px,3.8vw,58px); } }
@media (min-width:1000px) {
  body.vs #verify .verify-step .fairness-dl div { padding-block:6px; }
  body.vs #verify .verify-step header { margin-bottom:4px; }
  body.vs #verify .verify-steps { gap:8px; }
}
@media (min-width:1000px) { body.vs #verify { padding-top:clamp(8px,2.4vh,32px); padding-bottom:12px; } }
body.vs .verify-step header { display:flex; align-items:center; gap:8px; }
body.vs .verify-step header .verify-status { margin-left:auto; }
body.vs .verify-step header .verify-more { margin:0; min-height:44px; padding:0 10px; font-size:12px; border-radius:7px; }
/* Owner's call (08/10): the checks sit under the subtitle, not beside it — three across on wide screens,
   stacked below. The page scrolls at the window edge like any page: the scroll box is full width and the
   content is centred inside it. */
body.vs.verify-page #verify { width:100%; max-width:none; margin:0;
  padding-inline:max(16px, calc((100% - min(1200 * var(--u,1px), 100% - 96px)) / 2)); }
@media (max-width:639px) { body.vs.verify-page #verify { padding-inline:20px; } }
@media (min-width:1000px) {
  body.vs #verify { display:block; padding-top:clamp(12px,3vh,36px); padding-bottom:24px; }
  body.vs #verify>h1 { position:static; }
  body.vs #verify>h1 { font-size:clamp(44px,4.4vw,68px); margin:0 0 16px; }

  body.vs #verify>.verify-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; align-items:start; }
}
@media (min-width:1000px) {
  body.vs #verify .verify-step header { flex-wrap:wrap; row-gap:8px; margin-bottom:8px; }
  body.vs #verify .verify-step header h2 { flex-basis:100%; font-size:clamp(20px,1.6vw,24px); }
  body.vs #verify .verify-step header .verify-status { margin-left:0; }
}
@media (min-width:1000px) {
  body.vs #verify { padding-top:clamp(8px,2.2vh,32px); padding-bottom:12px; }
  body.vs #verify>h1 { margin-bottom:12px; }


}
/* Every check ends with its proof: one key that opens the contract, the witness or the app on its explorer. */
body.vs .verify-step { display:flex; flex-direction:column; }
body.vs .verify-proof { align-self:flex-start; margin-top:auto; min-height:44px; }
body.vs .verify-step .fairness-dl { margin-bottom:14px; }
body.vs .verify-step .verify-proof { margin-top:auto; }
@media (min-width:1000px) { body.vs #verify>.verify-steps { align-items:stretch; } }
body.vs .verify-step .fairness-dl dd a { display:inline-flex; align-items:center; min-height:28px; }
/* Each check: the question, one plain sentence on what it looks at, then the answer in large type. */
body.vs .verify-step .verify-what { margin:6px 0 0; max-width:60ch; font-size:15px; line-height:1.55; color:var(--muted); }
body.vs .verify-step .verify-answer { margin:14px 0 0; font-size:clamp(18px,calc(20 * var(--u,1px)),22px); font-weight:600; line-height:1.4; letter-spacing:-.01em; color:var(--text); text-wrap:pretty; }
body.vs .verify-step .verify-proof { margin-top:14px; }
/* The answer says the result: no status chip once a check is read; while reading or after a failure, a quiet line. */
body.vs .verify-step .verify-status { margin-left:0; padding:0; border:0; background:none; box-shadow:none; font-size:13px; color:var(--muted); animation:none; }
body.vs .verify-step .verify-status::before { display:none; }
body.vs .verify-step .verify-status[data-status='live'] { display:none; }
body.vs .verify-step .verify-status[data-status='unavailable'] { color:var(--accent); }
body.vs .verify-step header { display:block; }
/* One key for every raw value, under the checks; three groups side by side when there is room. */
body.vs .verify-raw-wrap { margin-top:clamp(20px,3vh,32px); }
body.vs .verify-raw-wrap[hidden] { display:none; }
body.vs .verify-raw-toggle { padding:0; border:0; background:none; font:500 15px var(--font); color:var(--text); text-decoration:underline; text-underline-offset:3px; cursor:pointer; min-height:44px; }
body.vs .verify-raw-toggle:hover { color:var(--accent); }
body.vs .verify-raw:not([hidden]) { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:12px; }
body.vs .verify-raw-group { display:grid; gap:10px; align-content:start; padding:18px; border-radius:12px; background:var(--surface); box-shadow:0 0 0 1px var(--line); }
body.vs .verify-raw-group h3 { margin:0; font-size:15px; font-weight:600; }
body.vs .verify-raw-group .fairness-dl { margin:0; }
body.vs .verify-explorer { justify-self:start; font-size:14px; font-weight:500; }
@media (max-width:899px) { body.vs .verify-raw:not([hidden]) { grid-template-columns:minmax(0,1fr); } }
body.vs .verify-raw:not([hidden]) { align-items:start; }
body.vs .verify-raw code { font-family:var(--font); font-size:13px; overflow-wrap:anywhere; word-break:break-word; }
body.vs .verify-raw dd { min-width:0; text-align:right; }
body.vs .verify-explorer { text-decoration:underline; text-underline-offset:3px; }
/* Room under the title, and the raw data open under the answers with its own heading. */
body.vs #verify>h1 { margin-bottom:clamp(24px,4vh,40px)!important; }
body.vs .verify-raw-wrap { margin-top:clamp(40px,7vh,72px); }
body.vs .verify-raw-title { margin:0; font-size:clamp(24px,calc(30 * var(--u,1px)),34px); letter-spacing:-.02em; }
body.vs .verify-raw-intro { margin:6px 0 0; font-size:15px; color:var(--muted); }
body.vs .verify-raw { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:16px; align-items:start; }
@media (max-width:899px) { body.vs .verify-raw { grid-template-columns:minmax(0,1fr); } }

/* V2 stays a separate read path, including after failed or interrupted reads. */
body.vs #verify [hidden] { display:none!important; }
.verify-version { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-bottom:24px; }
.verify-version label { font-size:14px; color:var(--muted); }
.verify-version select { min-height:44px; max-width:100%; padding:8px 12px; border:1px solid var(--line);
  border-radius:8px; background:var(--surface); color:var(--text); font:inherit; font-size:14px; }
.verify-v2 h2 { font-size:clamp(24px,3vw,36px); margin:12px 0 8px; letter-spacing:-.025em; }
.verify-v2-scope,.verify-v2-limit,.verify-v2 [data-v2-detail] { max-width:78ch; font-size:15px; line-height:1.6; color:var(--muted); }
.verify-v2 .verify-steps { margin:24px 0; }
.verify-v2 .verify-step { min-width:0; }
.verify-v2 h3 { margin:0; font-size:20px; font-weight:600; letter-spacing:-.015em; }
.verify-v2-check { margin:8px 0 0; font-size:15px; line-height:1.5; color:var(--muted); }
.verify-v2[data-status='included'] .verify-v2-check { color:var(--success); }
.verify-v2[data-status='unavailable'] h2,.verify-v2[data-status='contradiction'] h2 { color:var(--accent); }
.verify-v2 details { font-size:13px; line-height:1.5; }
.verify-v2 summary { min-height:44px; cursor:pointer; padding-block:12px; }
.verify-v2 .fairness-dl { margin:8px 0; }
.verify-v2 .fairness-dl dd { overflow-wrap:anywhere; word-break:break-word; }
.verify-v2-fixture { padding:10px 14px; border:1px solid var(--line); border-radius:8px; font-size:13px; }
.verify-v2-authority { margin-top:20px; max-width:78ch; }
.verify-v2 .verify-retry { margin:8px 0 0; min-height:44px; }
@media (min-width:1000px) { body.vs #verify .verify-v2 .verify-steps { grid-template-columns:repeat(3,minmax(0,1fr)); } }
