/* The browser verifier's page, in Tallwright's own design (Version J, owner 2026-10-19). The tokens, the type
   scale, the buttons, the cards and the state colours below are the website's, read off
   `site-j/assets/css/j-verify.css` of the marketing site, so a reader who comes from tallwright.com meets one
   product rather than two.

   WHAT THIS SHEET MAY NOT DO. The page runs offline from a zip under its own policy, and this sheet may fetch
   nothing: it carries no font file and no image, and imports no other sheet
   (`test_the_interface_keeps_nothing_and_writes_no_markup_from_a_file` holds it to that). So the website's Public
   Sans and JetBrains Mono — which it serves itself — cannot be had here. The stacks below name them first, so a
   reader who has them installed sees them, and fall back to the platform's own faces. Everything else about the
   typography, the sizes, the weights, the letter-spacing, the line-heights and the measure, is the website's.

   ONE APPEARANCE. The site is light; this page no longer follows the reader's dark-mode setting. A verdict that
   is shown to somebody else, or printed into a file, should look the same wherever it is read.

   index.html pins this sheet by integrity, and main.mjs refuses the boot when the marker below did not apply (a
   stylesheet the browser refused). */
:root {
  --tw-pinned: "held";
  color-scheme: light;

  --paper: #fafafa;
  --surface: #ffffff;
  --sunken: #f1f1f1;
  --line: #e4e4e4;
  --line-strong: #8c8c8c;
  --ink: #111111;
  --ink-muted: #4d4d4d;
  --ink-subtle: #6e6e6e;
  --good: #0b6e4f;
  --good-soft: #e4f2ec;
  --bad: #a63d1e;
  --bad-soft: #f7e6df;

  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 24px;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* --- the masthead ------------------------------------------------------------------------------------------ */

header {
  padding-bottom: 32px;
}

.brand {
  margin: 0 0 20px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

h1 {
  margin: 0 0 16px;
  font-weight: 600;
  font-size: 40px;
  line-height: 46px;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lede {
  margin: 0;
  font-size: 19px;
  line-height: 30px;
  color: var(--ink-muted);
  max-width: 40rem;
  text-wrap: pretty;
}

/* --- the steps --------------------------------------------------------------------------------------------- */

section {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 36px;
}

h2 {
  margin: 0 0 12px;
  font-weight: 600;
  font-size: 19px;
  line-height: 28px;
  letter-spacing: -0.01em;
}

h3 {
  margin: 28px 0 10px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

.lede + p,
.hint,
.legend,
.scope {
  color: var(--ink-muted);
  max-width: 40rem;
}

.hint {
  margin: 0 0 12px;
}

code,
pre {
  font-family: var(--mono);
}

code {
  font-size: 13px;
  color: var(--ink);
}

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--sunken);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-muted);
}

/* --- adding the files -------------------------------------------------------------------------------------- */

.drop {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 32px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.drop.over {
  border-color: var(--ink);
  color: var(--ink);
}

.drop p {
  margin: 0;
}

.chosen {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.chosen li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.chosen li:first-child {
  border-top: 1px solid var(--line);
}

.chosen .name {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
  min-width: 0;
}

.chosen .role {
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-subtle);
}

.problems:not(:empty) {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--bad);
  border-radius: 6px;
  background: var(--bad-soft);
}

.problems p {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--bad);
  overflow-wrap: anywhere;
}

.problems p + p {
  margin-top: 6px;
}

/* --- buttons ----------------------------------------------------------------------------------------------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

button:hover {
  border-color: var(--ink);
}

button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

button.primary:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
}

button:disabled,
button.primary:disabled {
  background: var(--sunken);
  border-color: var(--line);
  color: var(--ink-subtle);
  cursor: not-allowed;
}

button:focus-visible,
summary:focus-visible,
.drop:focus-within,
[tabindex="-1"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink);
}

.status {
  margin: 16px 0 0;
  min-height: 20px;
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- the answer -------------------------------------------------------------------------------------------- */

.levels {
  display: grid;
  gap: 16px;
}

.level,
.unreadable {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.level h3 {
  margin: 0 0 8px;
}

.word {
  margin: 0;
  font-weight: 600;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.level.held .word {
  color: var(--good);
}

.level.failed .word {
  color: var(--bad);
}

.level.undecided .word,
.unreadable .word {
  color: var(--ink-muted);
}

.level p,
.unreadable p {
  margin: 10px 0 0;
  color: var(--ink-muted);
  max-width: 40rem;
}

.level .means {
  color: var(--ink);
}

.level .asks {
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-subtle);
}

.legend {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 20px;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.checks li {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 2px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.checks .mark {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  height: 24px;
  padding: 0 10px;
  border-radius: 4px;
  background: var(--sunken);
  color: var(--ink-muted);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
}

.checks li.held .mark {
  background: var(--good-soft);
  color: var(--good);
}

.checks li.failed .mark {
  background: var(--bad-soft);
  color: var(--bad);
}

.checks .name {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 24px;
  overflow-wrap: anywhere;
}

.checks .detail {
  grid-column: 2;
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-muted);
  overflow-wrap: anywhere;
}

.note {
  margin: 20px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--line-strong);
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-muted);
}

details {
  margin-top: 24px;
}

summary {
  display: inline-block;
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  border-radius: 0;
}

details[open] summary {
  margin-bottom: 8px;
}

details p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-muted);
}

/* --- the footer -------------------------------------------------------------------------------------------- */

footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.scope {
  margin: 0 0 24px;
  font-size: 13px;
  line-height: 20px;
}

.about {
  display: grid;
  gap: 8px;
  margin: 0;
}

.about div {
  display: grid;
  grid-template-columns: minmax(9rem, max-content) minmax(0, 1fr);
  gap: 16px;
}

.about dt {
  font-size: 12px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

.legal {
  margin: 1rem 0 0;
  color: var(--muted);
}

.legal a {
  color: inherit;
}

.about dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-muted);
}

/* The imprint link the launch adds to the footer (`BV.LEGAL_LINK`): styled here so it arrives dressed. */
.legal {
  margin: 24px 0 0;
  font-size: 13px;
  line-height: 20px;
}

.legal a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
}

.legal a:hover {
  border-color: var(--ink);
}

.legal a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink);
}

/* --- narrow screens ---------------------------------------------------------------------------------------- */

@media (max-width: 720px) {
  main {
    padding: 32px 16px 64px;
  }

  h1 {
    font-size: 30px;
    line-height: 36px;
  }

  .lede {
    font-size: 17px;
    line-height: 27px;
  }

  .word {
    font-size: 24px;
    line-height: 30px;
  }

  .checks li {
    grid-template-columns: 4rem minmax(0, 1fr);
  }

  .about div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}
