/* /verify (public/verify.html): the offline receipt checker and the clearing orrery, on top of /site.css (its tokens and
   components as they are). An observatory blueprint: a hairline grid, solid lines for what signatures show, dashed lines
   for what is not signed or not proven, and colour only beside a mark and a word. */

/* the head */
.vf { padding-top: 1.6rem; }
.vf h1 { font-size: clamp(2rem, 6.4vw, 3.2rem); margin: 0 0 0.9rem; }
.vf-head .lede { max-width: 38em; }
.vf-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 0 0 1.4rem; }
.vf-net { color: var(--dust); font-size: 0.86rem; }

/* the verdict: the instrument's face */
.vf-instrument { position: relative; border: 1px solid var(--rule-strong); border-radius: 2px; padding: 1.25rem 1.1rem 1rem; margin: 0 0 1.1rem;
  background-color: var(--panel);
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 40px 40px; background-position: -1px -1px; }
.vf-instrument.is-broken { border-color: var(--caution); }
.vf-verdict { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; margin: 0 0 0.3rem; font-weight: 300; font-size: clamp(1.55rem, 5vw, 2.4rem); line-height: 1.15; }
.vf-verdict .vf-glyph { font-family: var(--mono); font-size: 0.8em; }
.is-ok .vf-verdict .vf-glyph { color: var(--live); }
.is-broken .vf-verdict .vf-glyph { color: var(--caution); }
.vf-failed { margin: 0 0 1.1rem; max-width: 52em; color: var(--dust); font-size: 0.95rem; }
.vf-failed a { color: var(--line); text-decoration-color: var(--caution); }
.vf-measure { margin: -0.6rem 0 1.1rem; color: var(--dust); font-family: var(--mono); font-size: 0.82rem; }
.vf-measure:empty { display: none; }
.vf-boundline { margin: 1rem 0 0; padding-top: 0.7rem; border-top: 1px dashed var(--rule-strong); color: var(--dust); font-size: 0.9rem; }

/* who signed what: solid links are signed, the dashed one is the server's word */
.vf-chain-line { display: flex; flex-direction: column; align-items: stretch; }
.vf-node { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--rule-strong); border-radius: 2px; background: var(--space); padding: 0.5rem 0.75rem; }
.vf-node-name { font-size: 1.05rem; overflow-wrap: anywhere; }
.vf-node-role { color: var(--dust); font-size: 0.82rem; }
.vf-node-key { color: var(--dust); font-size: 0.75rem; }
.vf-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; padding: 0.35rem 0.4rem; text-align: center; color: var(--line); font-size: 0.84rem; }
.vf-line { display: block; width: 0; height: 1.4rem; border-left: 2px solid var(--line); }
.vf-link.said { color: var(--dust); }
.vf-link.said .vf-line { border-left-style: dashed; border-color: var(--dust); }
.vf-link.broken .vf-line, .vf-link.broken .vf-link-words { border-color: var(--caution); }
.vf-cover { margin: 0.8rem 0 0; padding: 0.5rem 0.75rem; border: 3px double var(--line); border-radius: 2px; background: var(--space); font-size: 0.9rem; }
.vf-cover.broken { border-color: var(--caution); }
.vf-cover.expired { border: 1px solid var(--work); }
.vf-node.claimed { border-style: dashed; }
.vf-node.claimed .vf-node-name { text-decoration: underline dashed var(--dust); text-underline-offset: 4px; }
.vf-expired { color: var(--work); font-weight: 400; }
.vf-cover.none { border: 1px dashed var(--rule-strong); color: var(--dust); }
@media (min-width: 760px) {
  .vf-chain-line { display: grid; grid-template-columns: minmax(0, auto) minmax(9rem, 1fr) minmax(0, auto) minmax(9rem, 1fr) minmax(0, auto); align-items: center; }
  .vf-chain-line.two { grid-template-columns: minmax(0, auto) minmax(9rem, 22rem) minmax(0, auto); }
  .vf-line { width: 100%; height: 0; border-left: 0; border-top: 2px solid var(--line); position: relative; }
  .vf-line::after { content: ""; position: absolute; right: -1px; top: -6px; border-left: 9px solid var(--line); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
  .vf-link.said .vf-line { border-left: 0; border-top-style: dashed; }
  .vf-link.said .vf-line::after { border-left-color: var(--dust); }
  .vf-link.broken .vf-line::after { border-left-color: var(--caution); }
}

/* the tools and the editor */
.vf-tools { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 0.6rem; }
.vf-change { min-height: 1.6rem; margin: 0 0 0.6rem; color: var(--dust); font-size: 0.9rem; overflow-wrap: anywhere; }
.vf-change code { color: var(--line); font-size: 0.86rem; }
.vf-change strong { color: var(--caution); font-family: var(--mono); font-weight: 400; font-size: 0.86rem; }
.vf-editor label { display: block; margin: 0 0 0.4rem; font-size: 0.95rem; }
.vf-editor textarea { display: block; width: 100%; height: 18rem; resize: vertical; overflow: auto; white-space: pre; tab-size: 2;
  background: var(--space); color: var(--line); border: 1px solid var(--rule-strong); border-radius: 2px; padding: 0.8rem 0.9rem; font: 400 0.78rem/1.55 var(--mono); }
.vf-specimen { margin: 0.6rem 0 0; max-width: 52em; color: var(--dust); font-size: 0.9rem; }

/* the two columns: what is proven, and the boundary */
.vf-blueprint { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.8rem; margin-top: 2.2rem; }
@media (min-width: 940px) { .vf-blueprint { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.vf-col-h { margin: 0 0 0.6rem; font-size: 1rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.35; }
.vf-col-say { margin: 0 0 0.6rem; color: var(--dust); font-size: 0.92rem; }
.vf-proven { min-width: 0; }
.vf-group h3, .vf-group h4 { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 1.4rem 0 0; padding: 0 0 0.45rem; border-bottom: 1px solid var(--rule-strong); font-size: 1.05rem; }
.vf-count { color: var(--dust); font: 400 0.78rem/1.4 var(--mono); white-space: nowrap; }
.vf-checks { list-style: none; margin: 0; padding: 0; }
.vf-check { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: 0.4rem; padding: 0.65rem 0.4rem 0.65rem 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 1rem; }
.vf-check > .vf-glyph { font: 400 1rem/1.5 var(--mono); text-align: center; }
.vf-check.pass > .vf-glyph { color: var(--live); }
.vf-check.fail > .vf-glyph { color: var(--caution); }
.vf-check.missing > .vf-glyph { color: var(--dust); }
.vf-check.fail { background: #1a1012; box-shadow: inset 3px 0 0 var(--caution); padding-left: 0.4rem; animation: vf-flash 1.1s ease-out 1; }
.vf-check:target { outline: 2px solid var(--line); outline-offset: -2px; }
.vf-check-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.6rem; margin: 0; }
.vf-kind { border: 1px solid var(--rule-strong); border-radius: 2px; padding: 0.15em 0.45em; color: var(--dust); font-size: 0.75rem; line-height: 1.3; }
.vf-status { margin-left: auto; color: var(--dust); font: 400 0.75rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.fail .vf-status { color: var(--caution); }
.vf-detail { margin: 0.15rem 0 0; color: var(--dust); font-size: 0.9rem; overflow-wrap: anywhere; }
.fail .vf-detail { color: var(--line); }
.vf-values { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 0.8rem; margin: 0.35rem 0 0; font: 400 0.75rem/1.55 var(--mono); }
.vf-values dt { color: var(--dust); }
.vf-values dd { margin: 0; color: var(--line); overflow-wrap: anywhere; }
.vf-values dd.differs { color: var(--caution); }
@media (min-width: 620px) { .vf-values { grid-template-columns: max-content minmax(0, 1fr); } }
.vf-empty { margin: 0; padding: 0.65rem 0; color: var(--dust); font-size: 0.9rem; border-bottom: 1px solid var(--rule); }
@keyframes vf-flash { from { background-color: #4a2a28; } to { background-color: #1a1012; } }

/* the boundary: dashed, as everything not proven here is */
.vf-unproven { align-self: start; min-width: 0; border: 1px dashed var(--rule-strong); border-radius: 2px; padding: 1.1rem 1.1rem 0.6rem; scroll-margin-top: 1rem; }
.vf-unproven h3, .vf-unproven h4 { margin: 1.5rem 0 0.6rem; font-size: 1.05rem; }
.vf-unproven h3.vf-col-h { margin-top: 0; font-size: 1rem; }
.vf-limits { margin: 0; padding: 0 0 0 1.25rem; }
.vf-limits li { margin: 0 0 0.75rem; color: var(--dust); font-size: 0.95rem; }
.vf-limits strong { display: block; color: var(--line); font-weight: 400; }
.vf-said { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 0; margin: 0 0 0.8rem; font-size: 0.86rem; }
.vf-said dt, .vf-said dd { padding: 0.35rem 0; border-bottom: 1px dashed var(--rule-strong); }
.vf-said dt { color: var(--dust); }
.vf-said dd { margin: 0; overflow-wrap: anywhere; font-family: var(--mono); font-size: 0.78rem; }
.vf-box-label { display: block; margin: 0 0 0.35rem; font-size: 0.9rem; }
.vf-box-id { display: block; width: 100%; min-height: 44px; margin: 0 0 0.5rem; padding: 0 0.7rem; background: var(--space); color: var(--line); border: 1px solid var(--rule-strong); border-radius: 2px; font: 400 0.78rem/1.4 var(--mono); }
.vf-unproven .cmd pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.78rem; }
.vf-unproven .cmd code { white-space: pre-wrap; overflow-wrap: anywhere; }

/* the budget card checker: the same instrument, and a panel for the digest and R5 a reader compares on a chain source */
.vf-card { margin-top: 2.6rem; }
.vf-card h2 { margin: 0 0 0.9rem; }
.vf-anchor { margin: 0.4rem 0 0; padding: 0.7rem 0.75rem 0.2rem; border: 1px solid var(--rule-strong); border-radius: 2px; background: var(--space); }
.vf-anchor[hidden] { display: none; }
.vf-anchor-state { margin: 0 0 0.5rem; font-size: 0.95rem; }
.vf-anchor-ok { color: var(--live); font-weight: 400; }
.vf-anchor-wait { color: var(--work); font-weight: 400; }
.vf-anchor .vf-values { margin: 0 0 0.7rem; }
.vf-anchor .vf-values code { font-size: inherit; overflow-wrap: anywhere; word-break: break-all; }
.vf-anchor .cmd pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.78rem; }
.vf-anchor .cmd code { white-space: pre-wrap; overflow-wrap: anywhere; }
.vf-r5-label { margin-top: 0.9rem; }

/* the orrery */
.vf-orrery { margin-top: 2.6rem; }
.vf-scenarios { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem; margin: 1.2rem 0 0.9rem; }
@media (min-width: 640px) { .vf-scenarios { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .vf-scenarios { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.vf-scenarios button { min-height: 56px; padding: 0.6rem 0.8rem; text-align: left; background: transparent; color: var(--dust); border: 1px solid var(--rule-strong); border-radius: 2px;
  font: 400 0.95rem/1.35 var(--sans); cursor: pointer; }
.vf-scenarios button:hover { color: var(--line); border-color: var(--line); }
.vf-scenarios button[aria-pressed="true"] { color: var(--line); border-color: var(--line); background: var(--panel); box-shadow: inset 0 -3px 0 var(--line); }
.vf-say { min-height: 3.2em; max-width: 46em; margin: 0 0 0.6rem; }
.vf-choice { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; margin: 0 0 0.9rem; padding: 0; border: 0; min-width: 0; }
.vf-choice legend { float: left; width: 100%; margin: 0 0 0.35rem; padding: 0; color: var(--dust); font-size: 0.9rem; }
.vf-choice label { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 0.85rem; margin: 0 -1px -1px 0; border: 1px solid var(--rule-strong); cursor: pointer; font-size: 0.92rem; }
.vf-choice input { accent-color: var(--line); width: 1rem; height: 1rem; margin: 0; }
.vf-sky { margin: 0; }
.vf-swipe { margin: 0 0 0.4rem; color: var(--dust); font-size: 0.82rem; }
@media (min-width: 760px) { .vf-swipe { display: none; } }
.vf-sky-scroll { overflow-x: auto; border: 1px solid var(--rule-strong); border-radius: 2px; background: var(--space); }
.sky { display: block; width: 100%; min-width: 720px; height: auto; }
.vf-sky figcaption { margin: 0.5rem 0 0; color: var(--dust); font-size: 0.86rem; }
.vf-run { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 1rem 0 0.5rem; }
.vf-progress { color: var(--dust); font: 400 0.78rem/1.4 var(--mono); }
.vf-latest { min-height: 3.2em; max-width: 52em; margin: 0 0 0.8rem; }
@media (max-width: 480px) {
  .vf-tools .btn, .vf-run .btn { flex: 1 1 100%; justify-content: center; }
  .vf-choice label { flex: 1 1 100%; }
}

/* the drawing (SVG units of the 880 x 340 sky) */
.sky-grid { stroke: var(--rule); stroke-width: 1; opacity: 0.55; }
.sky-orbit { fill: none; stroke: var(--rule-strong); stroke-width: 1; opacity: 0.55; }
.sky-orbit.faint { opacity: 0.25; }
.sky-edge { fill: none; stroke-linecap: round; }
.sky-edge.note { stroke: var(--line); stroke-width: 2; }
.sky-edge.below { stroke: var(--work); }
.sky-edge.covered { stroke: var(--line); stroke-width: 6.5; stroke-linecap: butt; }
.sky-edge.cover-core { stroke: var(--space); stroke-width: 2.5; stroke-linecap: butt; }
.sky-edge.offer { stroke: var(--dust); stroke-width: 1.8; stroke-dasharray: 7 6; }
.sky-edge.refused { stroke: var(--caution); stroke-width: 1.8; stroke-dasharray: 3 6; }
.sky-edge.cleared { stroke-width: 3.5; stroke-dasharray: 1; animation: vf-draw 1.2s ease-out 1; }
@keyframes vf-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.sky-arrow-ink, .sky-arrow-cover { fill: var(--line); }
.sky-arrow-work { fill: var(--work); }
.sky-wall { fill: var(--caution); }
.sky-arrow-dust { fill: var(--dust); }
.sky-clamp { stroke: var(--line); stroke-width: 1.2; opacity: 0.8; }
.sky-label rect { fill: var(--space); stroke: var(--rule-strong); stroke-width: 1; }
.sky-label.offer rect, .sky-label.refused rect { stroke-dasharray: 3 3; }
.sky-label.below rect { stroke: var(--work); }
.sky-label.refused rect { stroke: var(--caution); }
.sky text { fill: var(--line); font-family: var(--sans); font-size: 15px; font-weight: 400; }
.sky .sky-sub { fill: var(--dust); font-size: 13.5px; }
.sky .sky-letter { font-size: 16px; font-weight: 500; }
.sky-disc { fill: var(--panel); stroke: var(--line); stroke-width: 1.6; }
.sky-ring { fill: none; stroke: var(--caution); stroke-width: 1.6; stroke-dasharray: 4 3; }
.sky-node.idle .sky-disc { stroke: var(--rule-strong); }
.sky .sky-node.idle text { fill: var(--dust); }
.sky-node.stalled .sky-disc, .sky-node.reckless .sky-disc { stroke: var(--caution); }

/* the four readings */
.vf-telemetry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0.4rem 0 1.6rem; border-top: 1px solid var(--rule-strong); border-left: 1px solid var(--rule); }
@media (min-width: 820px) { .vf-telemetry { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.vf-telemetry > div { min-width: 0; padding: 0.75rem 0.85rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.vf-telemetry dt { color: var(--dust); font-size: 0.86rem; line-height: 1.35; }
.vf-telemetry dd { margin: 0; }
.vf-telemetry .num { font-size: 2.2rem; font-weight: 300; line-height: 1.2; }
.vf-telemetry .sub { color: var(--dust); font-size: 0.82rem; line-height: 1.4; overflow-wrap: anywhere; }
.vf-meter { display: block; width: 100%; height: 6px; margin-top: 0.4rem; }
.vf-meter .track { fill: var(--rule); }
.vf-meter .fill { fill: var(--line); }

/* the books and the log */
.vf-books { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 2rem; }
@media (min-width: 940px) {
  .vf-books { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .vf-log { grid-column: 2; grid-row: 1 / span 2; }
}
.vf-books .table-wrap { align-self: start; min-width: 0; }
.vf-books th, .vf-ledger td:nth-child(-n + 2) { white-space: nowrap; }
.vf-ledger { font-size: 0.9rem; }
.vf-books td.empty { color: var(--dust); }
.vf-books .table-wrap[hidden] { display: none; }
.vf-log h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.vf-log ol { margin: 0; padding: 0 0 0 1.2rem; color: var(--dust); font-size: 0.92rem; }
.vf-log li { margin: 0 0 0.5rem; }
.vf-log li:last-child { color: var(--line); }

@media (prefers-reduced-motion: reduce) {
  .vf-check.fail, .sky-edge.cleared { animation: none; }
}
@media (forced-colors: active) {
  .sky-edge, .sky-clamp, .sky-disc, .sky-label rect { stroke: CanvasText; }
  .sky-edge.cleared { stroke: CanvasText; }
  .sky text { fill: CanvasText; }
  .sky-disc, .sky-label rect { fill: Canvas; }
}
