/* AIUC-1 readiness checklist (/aiuc-1-checklist): the rules this page needs and no other page does.
   Tokens only (ds/autogeny/tokens.css). Linked after site.css. */

/* The tables are ResultTables whose cells are sentences, as on /compare: the cells
   take the body face (the component's td is mono, for figures) and every row
   aligns to the top. Requirement IDs stay mono. */
.ck-table th, .ck-table td { vertical-align: top; padding: var(--space-4) var(--space-3); }
.ck-table thead th { white-space: normal; }
.ck-table td { font-family: var(--font-body); font-size: 15px; line-height: 23px; font-variant-numeric: normal; }
.ck-table tbody th[scope="row"] { white-space: nowrap; }
.ck-id { font-family: var(--font-mono); font-size: 14px; line-height: 23px; font-weight: 500; }
.ck-q { display: block; min-width: 9rem; white-space: normal; font-family: var(--font-display); font-size: 16px; line-height: 23px; font-weight: 600; }
.ck-table td[data-label]::before { display: none; }
/* Minimum widths keep each sentence column readable on a wide screen; below
   them the table scrolls inside its frame. */
@media (min-width: 860px) {
  .ck-table td.ck-req { min-width: 14rem; }
  .ck-table td.ck-ev, .ck-table td.ck-ans { min-width: 16rem; }
  .ck-table td.ck-man, .ck-table td.ck-area { min-width: 7.5rem; }
}

/* Prose and list items without one-word last lines. */
main p, main li { text-wrap: pretty; }

/* Checklists: a hollow box before each item, to tick on paper. */
.ck-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; max-width: 46rem; }
.ck-list li { position: relative; border-top: 1px solid var(--rule); padding: 14px 0 14px 32px; font-size: 17px; line-height: 26px; }
.ck-list li::before { content: ""; position: absolute; left: 0; top: 19px; width: 14px; height: 14px; border: 1.5px solid var(--ink); border-radius: var(--radius-sm); }
/* On a wide screen the checklists take the page's full width in two columns, as
   the homepage's grids do under their 46rem intros. Printed, they stay one column. */
@media screen and (min-width: 1100px) {
  .ck-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; max-width: none; }
}

/* Below 860 px on a screen each row becomes a block: its ID, then each cell under a
   mono label (the column head, from data-label), as compare.css does. The column
   heads stay in the markup for screen readers. Printed, the tables stay tables. */
@media screen and (max-width: 859px) {
  .ck-table, .ck-table tbody, .ck-table tr, .ck-table th, .ck-table td { display: block; }
  .ck-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .ck-table tbody tr { padding: var(--space-4); border-bottom: 1px solid var(--rule); }
  .ck-table th, .ck-table td { padding: 0; border-bottom: 0; }
  .ag-table-wrap .ck-table tbody th[scope="row"] { position: static; background: transparent; }
  .ck-table td { margin-top: var(--space-3); }
  .ck-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
}

/* Printed, the page is the checklist alone: no menu, call to action or footer.
   The tables print as tables, each requirement table gains an empty column to
   mark yes, partly or no, and rows don't split across pages. The colours are
   the light palette whatever the device's setting, because site.css applies
   the dark palette on screens only. Nothing scrolls on paper, so the first column
   isn't pinned there: pinned, its background covered the row line beneath it. A
   heading (and a domain's count line) stays on the page with what follows it. */
@media print {
  header nav, .skip-link, #contact, footer { display: none !important; }
  .ag-table-wrap { overflow: visible; }
  .ag-table-wrap .ck-table tbody th[scope="row"], .ag-table-wrap .ck-table thead th:first-child { position: static; }
  .ck-table tr, .ck-list li { break-inside: avoid; }
  main h2, main h3, #requirements h3 + p { break-after: avoid; }
  #requirements .ck-table thead tr::after { content: "Yes, partly or no"; display: table-cell; padding: var(--space-3); vertical-align: top; font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); background: var(--grid); border-bottom: 1px solid var(--rule); }
  #requirements .ck-table tbody tr::after { content: ""; display: table-cell; width: 7rem; border-bottom: 1px solid var(--rule); border-left: 1px solid var(--rule); }
}
