/* PDF to Knowledge Pack — page-specific styles only; shared primitives live in /assets/css/ai-tools.css.
 * No gradients, shadows or glows: borders, type and the highlight carry all the meaning. */
.ait [hidden] { display: none !important; }
.ait .btn, .ait-bar .btn { min-height: 40px; }
.ait-bar .field { margin: 0; min-width: 0; }
.ait-progress { margin-top: 12px; }
.ait-progress .ait-meter { margin-top: 6px; }
.ait-check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 14.5px; font-weight: 700; color: var(--ink); cursor: pointer; }
.field > label.ait-check { display: flex; margin: 0; }
.ait-check input[type="checkbox"] { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; }
.stats > .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
.kp-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 16px; }
.kp-pair .field { margin-bottom: 0; }

.kp-notes { margin: 0; padding-left: 1.25em; display: grid; gap: 10px; font-size: 14.5px; color: var(--ink-2); max-width: 70ch; }
.kp-notes li { padding-left: 2px; }
.kp-notes b { color: var(--ink); }
.kp-notes a { text-decoration: underline; text-underline-offset: 2px; }

.kp-docs { width: 100%; table-layout: fixed; }
.kp-docs th, .kp-docs td { vertical-align: top; overflow-wrap: anywhere; }
.kp-docs th { white-space: normal; overflow-wrap: normal; }
.kp-docs th:nth-child(4) { white-space: nowrap; }
.kp-docs th:nth-child(1) { width: 27%; }
.kp-docs th:nth-child(2) { width: 33%; }
.kp-docs th:nth-child(3) { width: 12%; }
.kp-docs th:nth-child(4) { width: 12%; }
.kp-docs th:nth-child(5) { width: 16%; }
.kp-docs input[type="text"] { width: 100%; min-width: 0; font-size: 14px; padding: 6px 8px; }
.kp-docs input.kp-year { padding: 6px 4px; text-align: center; }

.kp-flags { margin: 12px 0 0; padding-left: 1.25em; font-size: 14px; color: var(--ink-2); display: grid; gap: 4px; }

.kp-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.kp-hit { border: 2px solid var(--line-2); background: #fff; padding: 14px 16px; min-width: 0; }
.kp-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.kp-rank { font: 850 0.95rem/1 var(--display); color: var(--m-ink); min-width: 2.2ch; }
.kp-cite { font-size: 15.5px; color: var(--ink); overflow-wrap: anywhere; }
.kp-snip { margin: 8px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); max-width: 78ch; overflow-wrap: anywhere; }
.kp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.kp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.kp-actions .kp-btn { min-height: 40px; }

.kp-full { margin-top: 8px; }
.kp-full summary { cursor: pointer; display: flex; align-items: center; min-height: 40px; font-size: 14px; font-weight: 800; color: var(--m-ink); }
.kp-full summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.kp-full pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 500 13px/1.6 var(--code); max-height: 360px; overflow: auto; border: 2px solid var(--line-2); background: var(--page-2); color: var(--ink-2); padding: 10px 12px; margin: 8px 0 0; }

@media (max-width: 480px) {
  .kp-hit { padding: 12px 12px; }
  .kp-pair { grid-template-columns: 1fr; }
}
@media print {
  .kp-actions, .kp-full summary { display: none !important; }
  .kp-full pre { display: block; max-height: none; overflow: visible; }
}
