/* Test pages (/t/{id}). Builds on style.css and its tokens, so both themes work. */

.tp-head { background: var(--rail); border-bottom: 1px solid var(--line); }
.tp-bar { max-width: 840px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tp-head .theme { margin: 0; display: flex; width: auto; flex: none; }
.tp-head .theme button { padding: 5px 10px; }

.tp { max-width: 840px; margin: 0 auto; padding: 34px 24px 0; }
.tp-crumbs { font-size: .86rem; color: var(--ink-3); margin-bottom: 16px; }
.tp-crumbs span { margin: 0 4px; color: var(--line-2); }
.tp .test-top { gap: 12px; margin-bottom: 10px; }
.tp .badge { font-size: .8rem; padding: 3px 9px; }
.tp-gloss { font-size: .9rem; color: var(--ink-2); }
.tp-statement { font: 400 clamp(1.45rem, 2.9vw, 1.95rem)/1.3 var(--serif); letter-spacing: -0.005em; margin: 0 0 14px; max-width: 40ch; font-variation-settings: "opsz" 36; }
.tp-statement.long { font-size: clamp(1.3rem, 2.3vw, 1.6rem); max-width: 50ch; }
.tp .test-sum { font-size: .86rem; margin-bottom: 10px; overflow-wrap: anywhere; }
.tp .test-meta { font-size: .86rem; margin-bottom: 0; }
.tp-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 20px 0 30px; }
.tp-share .btn { padding: 7px 14px; font-size: .9rem; }

.tp-sec { padding: 22px 24px; }
.tp-sec h2 { font-size: 1.35rem; margin-bottom: 14px; }
.tp-sec > p.muted { font-size: .95rem; }
.tp-method { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 10px 20px; margin: 0 0 14px; font-size: .95rem; }
.tp-method dt { font-weight: 600; color: var(--ink); }
.tp-method dd { margin: 0; color: var(--ink-2); min-width: 0; }
.hash { font: 400 .8rem/1.5 var(--mono); overflow-wrap: anywhere; word-break: break-all; color: var(--ink-2); }
.tp-sub { margin: 20px 0 10px; font-size: .95rem; }
.tp-sec .notes { font-size: .92rem; line-height: 1.5; margin-bottom: 8px; }
.tp-numbers { margin-top: 16px; font-size: .92rem; }
.tp-numbers summary, .tp-sec details summary { cursor: pointer; color: var(--accent); width: fit-content; }
.tp-numbers .pre { margin: 10px 0 0; max-height: 520px; overflow: auto; }
.tp #figures .km, .tp #figures .forest { margin-bottom: 8px; }

.tp-hashes { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 6px 16px; margin: 0 0 12px; font-size: .9rem; }
.tp-hashes dt { color: var(--ink-3); }
.tp-hashes dd { margin: 0; }
#receipt .pre { margin: 0 0 16px; max-height: 24em; overflow: auto; }
.tp-check { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.tp-check p { margin: 0; flex: 1 1 260px; }
.tp-check p.ok { color: var(--good); font-weight: 600; }
.tp-check p.bad { color: var(--bad); font-weight: 600; }
.tp-checks { list-style: none; padding: 0; margin: 14px 0 12px; font-size: .92rem; }
.tp-checks:empty { display: none; }
.tp-checks li { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink-2); animation: rise .3s ease-out; }
.tp-checks li > span:first-child { font: 600 .74rem/1.9 var(--sans); text-align: center; border-radius: 4px; align-self: start; }
.tp-checks .ok { background: var(--good-soft); color: var(--good); }
.tp-checks .no { background: var(--bad-soft); color: var(--bad); }
.tp .foot { margin-top: 28px; }

@media (max-width: 560px) {
  .tp-bar { padding: 10px 16px; }
  .tp-head .brand small { display: none; }
  .tp { padding: 24px 16px 0; }
  .tp-sec { padding: 18px 16px; }
  .tp-method { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tp-method dd { margin-bottom: 10px; }
  .tp-hashes { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tp-hashes dd { margin-bottom: 8px; }
}
.tp-llm { padding-left: 18px; margin: 8px 0 0; }
.tp-llm li { margin-bottom: 8px; line-height: 1.5; overflow-wrap: anywhere; }
