/* AI Governance Evidence Toolkit. Shares step and intro styles with readiness.css. Tokens only. */
.tk-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tk-sec { display: grid; gap: 18px; margin-top: clamp(48px, 5vw, 72px); scroll-margin-top: calc(var(--nav-top) + var(--nav-h) + 20px); }
.tk-sec h2[id] { scroll-margin-top: calc(var(--nav-top) + var(--nav-h) + 24px); }
.tk-sub { margin-top: clamp(28px, 3vw, 44px); }
.tk-form { padding: clamp(18px, 2.4vw, 26px); border: 1px solid var(--line); display: grid; gap: 18px; }
.tk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tk-field { display: grid; gap: 6px; min-width: 0; }
.tk-field > span { font-size: var(--fs-caption); font-weight: 600; color: var(--text-2); }
.tk-field input, .tk-field select, .tk-ta { width: 100%; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; font-size: var(--fs-small); }
.tk-field input:focus, .tk-field select:focus, .tk-ta:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.tk-field input[type="date"] { color-scheme: dark; }
html[data-theme="light"] .tk-field input[type="date"] { color-scheme: light; }
.tk-flags { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.tk-tick { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-small); color: var(--text); cursor: pointer; }
.tk-tick input { width: 16px; height: 16px; accent-color: var(--accent); }
.tk-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.tk-tier { font-size: var(--fs-small); color: var(--text-2); }
.tk-tier b { color: var(--text); }
.tk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tk-file { position: relative; overflow: hidden; cursor: pointer; }
.tk-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tk-muted { color: var(--text-2); font-size: var(--fs-small); line-height: 1.6; }
.tk-link { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tk-link + .tk-link { margin-left: 14px; }
.tk-table-wrap { overflow-x: auto; border: 1px solid var(--line); padding: 0; }
.tk-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.tk-table th { text-align: left; padding: 14px 16px; font-size: var(--fs-caption); font-weight: 600; color: var(--text-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tk-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--text); }
.tk-table tr:last-child td { border-bottom: 0; }
.tk-table td small { display: block; color: var(--text-2); font-size: var(--fs-caption); }
.tk-ctl { display: flex; flex-wrap: wrap; gap: 4px; min-width: 180px; }
.tk-ctl abbr { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 6px; border-radius: 8px; background: var(--surface-2); color: var(--text); font-size: var(--fs-caption); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; cursor: help; }
.tk-row-act { white-space: nowrap; text-align: right; }
.tk-board { padding: clamp(18px, 2.4vw, 26px); border: 1px solid var(--line); display: grid; gap: 14px; }
.tk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tk-stat { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-inner); background: var(--surface-2); }
.tk-stat b { font-size: 1.75rem; font-weight: 650; letter-spacing: -.03em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.tk-stat span { font-size: var(--fs-caption); color: var(--text-2); }
.tk-stat.tone-rose b { color: var(--rose); } .tk-stat.tone-gold b { color: var(--gold); }
.tk-flag { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); font-size: var(--fs-small); color: var(--gold); }
.tk-h4 { margin-top: 6px; font-size: var(--fs-small); font-weight: 600; color: var(--text); }
.tk-load { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tk-load li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; font-size: var(--fs-caption); color: var(--text-2); }
.tk-load b { color: var(--text); font-variant-numeric: tabular-nums; }
.tk-track { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.tk-track span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.tk-ta { height: auto; min-height: 170px; padding: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8125rem; line-height: 1.55; resize: vertical; }
.tk-verify-out:empty { display: none; }
.tk-verdict { font-weight: 600; font-size: var(--fs-body); }
.tk-ok { color: var(--mint); } .tk-bad { color: var(--rose); }
.tk-chain { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.tk-chain li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: var(--fs-small); line-height: 1.5; }
.tk-chain li.is-bad { border-color: var(--rose); }
.tk-chain li.is-bad div > p + p { color: var(--rose); }
.tk-dot { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--mint); }
.is-bad .tk-dot { background: var(--rose); }
.rd-about code { font-size: .9em; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); }
@media (max-width: 1023px) { .tk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tk-grid { grid-template-columns: minmax(0, 1fr); } }
@media print {
  .tk-form, .tk-bar, .tk-jump, #tk-verifier, .rd-step__lead, .tk-row-act, #tk-empty { display: none !important; }
  .tk-table-wrap, .tk-board { border: 1px solid #ccc !important; background: #fff !important; }
  .tk-sec *, .tk-board * { color: #111 !important; }
  .tk-stat, .tk-ctl abbr { background: #f2f2f2 !important; }
}
@media (max-width: 640px) {
  .tk-table thead { display: none; }
  .tk-table, .tk-table tbody, .tk-table tr, .tk-table td { display: block; }
  .tk-table tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .tk-table tr:last-child { border-bottom: 0; }
  .tk-table td { padding: 0; border: 0; }
  .tk-table td + td { margin-top: 8px; }
  .tk-row-act { text-align: left; }
  .tk-ctl { min-width: 0; }
}
