/* Styles only this website needs. Keep the shared look in kit/kit.css.
   Nesting: a part (example / you / try) is a tinted card; inside it, one level of cards (.w2-row, .w2-boxed);
   inside a card, the expected result and replies are flat. */

.w2-small { font-size: 14px; color: var(--muted); }

/* the coverage grid */
.w2-grid th[scope="row"] { font: 500 14px/1.35 var(--body); text-transform: none; letter-spacing: 0; color: var(--ink); background: var(--bg); white-space: nowrap; }
.w2-grid thead th { white-space: normal; min-width: 76px; vertical-align: bottom; }
.w2-grid thead th.num { text-align: center; }
.w2-grid .w2-short { display: none; }
.w2-grid td.w2-cell { text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.w2-grid td.w2-empty { background: var(--bad-soft); color: var(--bad); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.w2-grid td.w2-n1 { background: color-mix(in srgb, var(--accent) 8%, var(--bg)); }
.w2-grid td.w2-n2 { background: color-mix(in srgb, var(--accent) 16%, var(--bg)); }
.w2-grid td.w2-n3 { background: color-mix(in srgb, var(--accent) 26%, var(--bg)); }
.w2-grid td.w2-ok { background: var(--good-soft); color: var(--good); }
.w2-grid td.w2-mid { background: var(--warn-soft); color: var(--warn); }
.w2-grid td.w2-bad { background: var(--bad-soft); color: var(--bad); }
.w2-grid td.w2-none { color: var(--muted); font-weight: 500; }
.w2-grid td.w2-total { font-weight: 600; color: var(--muted); }
.w2-grid td.w2-click { cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
.w2-grid td.w2-click:hover, .w2-grid td.w2-sel { outline: 2px solid var(--accent); outline-offset: -2px; }

/* a benchmark row: one white card (grey inside the try box) */
.w2-row { padding: 12px 16px; margin: 10px 0; min-width: 0; }
.k-sec.try .w2-row .w2-exp, .k-sec.try .w2-row details.k-more { background: var(--bg); }
.w2-row-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.w2-row-head > b { font-weight: 600; margin-right: 2px; }
.w2-msg { white-space: pre-wrap; overflow-wrap: anywhere; }
.w2-boxed { padding: 12px 16px; margin: 0 0 12px; }
.w2-exp { margin-top: 10px; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--panel-2); border-radius: 0 8px 8px 0; font-size: 15px; }
.w2-exp > span { display: block; font: 600 12.5px/1.4 var(--body); letter-spacing: 0; color: var(--muted); margin-bottom: 2px; }
.w2-reply { white-space: pre-wrap; font-size: 15px; margin-top: 8px; overflow-wrap: anywhere; }
.w2-cand { font-size: 14.5px; }
.w2-row .k-input { margin-top: 10px; }
.w2-row details.k-more { margin: 10px 0 0; padding: 6px 12px; background: var(--panel-2); border-color: transparent; font-size: 14.5px; }
.w2-row details.k-more summary { font-weight: 600; }
.k-sec .w2-row .k-msg { border: 0; background: var(--panel-2); }
.k-sec.try .w2-row .k-msg { background: var(--bg); }
.w2-row .k-msg.assistant { box-shadow: inset 3px 0 0 var(--accent); border-radius: 4px 10px 10px 4px; }

.w2-check { columns: 2 280px; column-gap: 28px; }
.w2-check li { break-inside: avoid; margin-bottom: 4px; }

/* keep / delete and pass / fail choices */
.w2-choice { margin-top: 10px; }
.w2-choice .k-btn.w2-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.w2-tally { font-weight: 600; }

/* a pass-rate bar in a table */
.w2-bar { height: 8px; min-width: 90px; background: var(--bad-soft); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.w2-bar > i { display: block; height: 100%; background: var(--good); border-radius: 999px; }

.w2-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; align-items: start; }
.w2-two .k-table-wrap { margin: 0; }

.k-files li { flex-wrap: wrap; }
.k-files li span { font-size: 14px; color: var(--muted); }
.w2-why { margin-top: 10px; font-size: 15px; }
.w2-why > span { display: block; font: 600 12.5px/1.4 var(--body); letter-spacing: 0; color: var(--muted); margin-bottom: 2px; }
details.k-more summary { font-weight: 600; }

/* the grid on a phone: wrap the row names, narrow columns, so all columns fit */
@media (max-width: 600px) {
  .w2-grid { font-size: 13px; }
  .w2-grid th, .w2-grid td { padding: 6px 5px; }
  .w2-grid th[scope="row"] { white-space: normal; min-width: 96px; font-size: 12.5px; }
  .w2-grid thead th { min-width: 0; font-size: 10px; letter-spacing: 0; }
  .w2-grid .w2-full { display: none; }
  .w2-grid .w2-short { display: inline; }
  .w2-grid td.w2-empty { font-size: 9px; letter-spacing: 0; }
}

/* links styled as buttons (downloads) carry no underline; the try box keeps its intro apart from the first field */
a.k-btn { text-decoration: none; display: inline-block; }
.k-try > div:first-child { margin-bottom: 16px; }
/* run ids in the first column stay on one line */
.k-table td:first-child { min-width: 6em; }

/* the guide shape: the "done when" line, the facts shown with an exercise, and no number on the last (summary) item */
.w2-done { margin-top: 16px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--accent) 24%, var(--edge)); }
.w2-ctx { margin-top: 10px; padding: 8px 12px; background: var(--warn-soft); border-radius: 8px; font-size: 14.5px; }
.w2-ctx ul { margin: 4px 0 0; padding-left: 18px; }
.k-sec.you ol > li, .k-sec.note ul > li { margin-bottom: 6px; }
.k-sec.you ol > li .k-btn { margin-left: 4px; }
.w2-cellrows:empty { display: none; }
.w2-chips { line-height: 2.1; }
