/* ===========================================================================
   Basic Mathematics — the placement check (diagnostic.html only)
   A stub: layout lands with the page's script. Colours come only from
   src/styles/tokens.css; none is written here.
   =========================================================================== */

.diag { max-width: 40rem; font-family: var(--sans); }
.diag .lede { max-width: var(--measure); }

.diag [hidden] { display: none; }
.diag section { margin-block: 1rem; }
.diag fieldset { border: 0; padding: 0; margin: 1rem 0; }
.diag legend { font-weight: 700; padding: 0; margin-bottom: .4rem; }
.diag fieldset label { display: block; padding-block: .3rem; }
.diag label[for="diag-input"] { display: block; font-weight: 700; margin-bottom: .3rem; }
.diag input[type="text"] {
  box-sizing: border-box; width: 100%; max-width: 24rem; font: inherit; padding: .55rem .7rem;
  color: var(--text); background: var(--surface); border: 2px solid var(--border-strong); border-radius: var(--radius-xs);
}
.diag .diag-prompt { overflow-x: auto; max-width: 100%; }
.diag .diag-small { color: var(--muted); font-size: .9rem; max-width: var(--measure); }
.diag .diag-status:empty, .diag .diag-notice:empty { margin: 0; }
.diag .btn { margin-right: .5rem; margin-block: .25rem; }

/* the result and the return view (diag-result.ts) */
.diag .diag-table { border-collapse: collapse; width: 100%; margin-block: 1rem; }
.diag .diag-table th, .diag .diag-table td { text-align: left; vertical-align: top; padding: .5rem .6rem; border: 1px solid var(--border-strong); }
.diag .diag-table thead th { background: var(--surface); }
.diag .diag-table p { margin: 0 0 .35rem; }
.diag .diag-answers { overflow-x: auto; max-width: 100%; }
.diag summary { cursor: pointer; font-weight: 700; }
.diag .diag-typed { overflow-wrap: anywhere; }
.diag .diag-plan:empty { display: none; }
.diag .diag-note { max-width: var(--measure); }
