/* The pages outside the benchmark (account, welcome, 404, and terms and privacy built by scripts/build-legal.mjs):
   bench.css's tokens, font, header, banner and footer (docs/DESIGN-RULES.md), and a single column of text on the light
   ground, aligned with the header, about 68 characters a line, h2 28 px under an ink rule like the methods page. */
@import url("/bench.css");
main { max-width: 1440px; margin: 0 auto; padding: 44px 48px 0; }
main > * { max-width: 68ch; }
main > h1 { margin: 0 0 18px; }
main > h2 { max-width: 960px; margin: 56px 0 12px; padding-top: 14px; border-top: 1.5px solid var(--ink); font-size: 28px; line-height: 1.15; }
main > h3 { margin: 32px 0 8px; font-size: 22px; line-height: 1.2; }
main p, main li { line-height: 1.6; }
main p, main ul, main ol { margin: 0 0 12px; }
main li { margin: 4px 0; }
main code { font: 13px var(--mono); }
/* tables (account) take more room than a line of text; they scroll sideways on a phone */
main > .scroll { max-width: 960px; margin: 8px 0 18px; border-top: 1.5px solid var(--ink); }
main > table { max-width: 960px; }
main table { border-collapse: collapse; width: 100%; font-size: var(--t-ui); }
main th, main td { text-align: left; padding: 9px 12px 9px 0; border-top: 1px solid var(--z3); vertical-align: top; color: var(--ink); }
main thead th { border-top: 0; font-weight: 400; font-size: var(--t-sm); color: var(--ink-2); }
main .scroll td { white-space: nowrap; }
main td:empty::before { content: "—"; color: var(--ink-2); }
main pre { white-space: pre-wrap; word-break: break-all; padding: 12px; font: var(--t-sm)/1.5 var(--mono); color: var(--ink);
  border: 1.5px solid var(--ink); }
main input:not([type="checkbox"]) { font: 400 var(--t-base) var(--f); color: var(--ink); background: var(--paper); border: 1.5px solid var(--ink);
  padding: 7px 10px; min-width: 220px; }
main input[type="checkbox"] { accent-color: var(--ink); width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }
main label { display: inline-block; min-height: 24px; }
/* buttons (rules 4): 1.5 px ink border, 15/700; hover = ink fill */
main button { font: 700 15px/1.1 var(--f); color: var(--ink); background: none; border: 1.5px solid var(--ink); padding: 8px 14px; cursor: pointer; }
main button:hover { background: var(--ink); color: var(--paper); }
main button:disabled { color: var(--ink-2); border-color: var(--z3); background: none; cursor: not-allowed; }
main td button { padding: 4px 10px; font-size: var(--t-ui); }
#msg:empty { display: none; }
@media (max-width: 760px) {
  main { padding: 24px 16px 0; }
  main > h2 { margin-top: 44px; font-size: 22px; }
  main > h3 { font-size: 19px; }
  main input:not([type="checkbox"]) { min-width: 0; width: 100%; box-sizing: border-box; margin-bottom: 8px; }
}
/* a submission's status page (js/submission.js) */
#st .scroll { margin: 8px 0 18px; border-top: 1.5px solid var(--ink); }
#st .scroll td:last-child { white-space: normal; min-width: 16ch; }
.st-state .chip { font-size: 14px; padding: 3px 8px 2px; }
.st-accepted .chip { background: var(--ink); color: var(--paper); }
.st-rejected .chip { border-style: dashed; }
.st-meta { font-size: var(--t-sm); color: var(--ink-2); }
/* the account page's submissions: a long run id wraps on a phone so the status beside it stays in view */
@media (max-width: 760px) { #subs td:first-child { white-space: normal; overflow-wrap: anywhere; min-width: 9em; } }
