/* The connection check: a list of four states, and a verdict that reads at arm's
   length. Loads after about.css, which supplies the shell, and zennia.css, the tokens. */

.verdict { margin: 0 0 var(--space-5); padding: var(--space-4) var(--space-5); border-radius: var(--radius-md);
  background: var(--surface-raised); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font: 650 clamp(19px, 1vw + 16px, 24px)/1.3 var(--font-sans); letter-spacing: -.015em; text-wrap: pretty; }
.verdict.pass { border-color: var(--positive); background: var(--positive-soft); color: var(--positive); }
.verdict.fail { border-color: var(--critical); background: var(--critical-soft); color: var(--critical); }

.checks { list-style: none; margin: 0 0 var(--space-5); padding: 0; display: grid; gap: var(--space-3); }
.check { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-3); align-items: start;
  padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); background: var(--surface-raised);
  border: 1px solid var(--line); }
.check b { display: block; font-size: 17px; line-height: 24px; font-weight: 650; letter-spacing: -.01em; }
.check .detail { margin: 2px 0 0; font-size: 14.5px; line-height: 21px; color: var(--ink-muted); text-wrap: pretty; }

/* The state, as a shape as well as a colour: waiting, a tick, a cross. */
.mark { width: 24px; height: 24px; margin-top: 2px; border-radius: var(--radius-full); display: grid; place-items: center;
  background: var(--surface-sunken); color: var(--ink-muted); font: 700 14px/1 var(--font-sans); }
.mark::before { content: "·"; }
.check.running .mark { background: var(--brand-soft); color: var(--brand); }
.check.running .mark::before { content: "…"; }
.check.pass .mark { background: var(--positive); color: #fff; }
.check.pass .mark::before { content: "✓"; }
.check.fail .mark { background: var(--critical); color: #fff; }
.check.fail .mark::before { content: "✕"; }
.check.pass .detail { color: var(--ink); }
.check.fail .detail { color: var(--critical); }

.check-again { font: 600 16px/1 var(--font-sans); padding: 13px 22px; border-radius: var(--radius-full); border: 1px solid var(--line-strong);
  background: var(--surface-raised); color: var(--ink); cursor: pointer; }
.check-again:hover { background: var(--surface-sunken); }
.check-again[disabled] { opacity: .55; cursor: default; }

.after { margin: var(--space-5) 0 0; color: var(--ink-muted); text-wrap: pretty; }

/* The three ways round a failure. Named for this page, so the file drops into
   either site without borrowing a card style that only one of them has. */
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--space-4); }
.way { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); border-radius: var(--radius-lg);
  background: var(--surface-raised); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.way-no { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }
.way b { font-size: 20px; line-height: 27px; font-weight: 650; letter-spacing: -.01em; }
.way p { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 22px; text-wrap: pretty; }
