/* ==========================================================================
   WHAT tkati KNOWS — the page (knows.html), tkati-ai-memory, 5 Nov 2026.

   Additions only, on the Office's own system: every colour, size and radius
   is office.css's token (--o-*), which the pro theme points at the light
   sheet, the dark switch at the posts' black, and the classic theme at the
   dark two-tone. No hand-written colour, so light and dark read without a
   dark copy of this file (tools/dark-side.mjs has nothing to write for it).
   The one point of lime is the count of what waits for the owner: a fill,
   with the near-black ink on it, never lime words on the sheet.

   Calm: one column of statements, each its own words first and where it
   came from one press away (a native details), state said in words and
   never only in colour. Narrower than 640px the views wrap and every row
   keeps its whole width; nothing runs off the side.
   ========================================================================== */

#office .kn-wrap { display: grid; gap: 1rem; min-width: 0; max-width: 980px; }
#office .kn-h { margin: 0 0 0.5rem; color: var(--o-text); font: 650 var(--o-t-lg)/1.3 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
#office .kn-lede { margin: 0 0 1rem; max-width: 64ch; color: var(--o-dim); font-size: var(--o-t-sm); line-height: 1.55; }

/* The kinds: plain choices, the one shown underlined, its count beside it. */
#office .kn-views { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; padding-top: 0.5rem; border-top: 1px solid var(--o-line-2); }
#office .kn-view { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--o-dim); font: 600 var(--o-t-sm)/1 var(--body); cursor: pointer; }
#office .kn-view:hover { color: var(--o-text); }
#office .kn-view[aria-pressed="true"] { color: var(--o-text); border-bottom-color: var(--o-text); }
#office .kn-view:focus-visible { outline: 1px solid var(--focus-edge); outline-offset: 2px; border-radius: var(--o-r-sm); }
#office .kn-view__n { min-width: 1.5rem; padding: 0.25rem 0.5rem; border-radius: var(--tk-r-pill); background: var(--o-inset); color: var(--o-dim); font: 650 var(--o-t-xs)/1 var(--body); text-align: center; font-variant-numeric: tabular-nums; }
#office .kn-view__n--on { background: var(--u-lime); color: var(--tk-grey-0a); }

#office .kn-tools { display: flex; gap: 0.5rem; margin-top: 1rem; }
#office .kn-q { width: 100%; max-width: 420px; }
#office .kn-state:empty { display: none; }

/* The list. */
#office .kn-list__h { margin: 0 0 0.25rem; color: var(--o-text); font: 650 var(--o-t-md)/1.3 var(--body); }
#office .kn-list__h:focus { outline: none; }
#office .kn-list__why { margin: 0 0 1rem; max-width: 64ch; color: var(--o-dim); font-size: var(--o-t-sm); line-height: 1.55; }
#office .kn-rows { display: grid; margin: 0; padding: 0; list-style: none; }
#office .kn-row { display: grid; gap: 0.25rem; min-width: 0; padding: 1rem 0; border-top: 1px solid var(--o-line-2); }
#office .kn-row:first-child { border-top: 0; padding-top: 0.25rem; }
#office .kn-row__top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; min-width: 0; }
#office .kn-about { color: var(--o-faint); font: 600 var(--o-t-xs)/1.3 var(--body); overflow-wrap: anywhere; }
#office .kn-says { margin: 0; max-width: 72ch; color: var(--o-text); font-size: var(--o-t-md); line-height: 1.5; overflow-wrap: anywhere; }
#office .kn-meta { margin: 0; color: var(--o-dim); font-size: var(--o-t-xs); line-height: 1.5; overflow-wrap: anywhere; }
#office .kn-ref { font-family: var(--mono, ui-monospace, monospace); font-size: var(--o-t-xs); overflow-wrap: anywhere; }

/* Where it came from: a word on each tag, never only its shade. */
#office .kn-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 0.5rem; border: 1px solid var(--o-line-2); border-radius: var(--tk-r-pill); color: var(--o-dim); font: 600 var(--o-t-xs)/1 var(--body); white-space: nowrap; }
#office .kn-tag--record { border-color: var(--o-text); color: var(--o-text); }
#office .kn-tag--wait { border-color: var(--o-warn-ink); color: var(--o-warn-ink); }
#office .kn-tag--came { border-style: dashed; }

#office .kn-prov { margin-top: 0.25rem; }
#office .kn-prov__s { display: inline-flex; align-items: center; min-height: 44px; color: var(--o-text); font: 600 var(--o-t-sm)/1 var(--body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
#office .kn-prov__s:focus-visible { outline: 1px solid var(--focus-edge); outline-offset: 2px; border-radius: var(--o-r-sm); }
#office .kn-prov__dl { display: grid; grid-template-columns: minmax(8rem, max-content) minmax(0, 1fr); gap: 0.5rem 1rem; margin: 0.5rem 0 1rem; padding: 1rem; border: 1px solid var(--o-line-2); border-radius: var(--o-r-lg); background: var(--o-inset); }
#office .kn-prov__k { margin: 0; color: var(--o-faint); font: 600 var(--o-t-xs)/1.5 var(--body); }
#office .kn-prov__v { margin: 0; color: var(--o-text); font-size: var(--o-t-sm); line-height: 1.5; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  #office .kn-prov__dl { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
  #office .kn-prov__v { margin-bottom: 0.5rem; }
}

/* Two sources that disagree, side by side in words. */
#office .kn-two { display: grid; grid-template-columns: minmax(7rem, max-content) minmax(0, 1fr); gap: 0.25rem 1rem; margin: 0.25rem 0; }
#office .kn-two__k { margin: 0; color: var(--o-faint); font: 600 var(--o-t-xs)/1.5 var(--body); }
#office .kn-two__v { margin: 0; color: var(--o-text); font-size: var(--o-t-sm); line-height: 1.5; overflow-wrap: anywhere; }
@media (max-width: 560px) { #office .kn-two { grid-template-columns: minmax(0, 1fr); } }

#office .kn-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
#office .kn-acts .ofc-ghost, #office .kn-acts .ofc-quiet { min-height: 44px; }
#office .kn-acts__note { margin: 0; color: var(--o-dim); font-size: var(--o-t-xs); line-height: 1.5; }
#office .kn-needs { display: grid; gap: 0.5rem; margin-top: 0.5rem; }
#office .kn-done { margin: 0.5rem 0 0; max-width: 64ch; color: var(--o-text); font-size: var(--o-t-sm); line-height: 1.5; }
#office .kn-done:focus { outline: none; }

/* A correction, written in place. */
#office .kn-fix { display: grid; gap: 0.5rem; max-width: 560px; margin-top: 1rem; }
#office .kn-fix__k { color: var(--o-faint); font: 600 var(--o-t-xs)/1.3 var(--body); }
#office .kn-fix__in { width: 100%; min-height: 44px; padding: 0.5rem 0.75rem; border: 1px solid var(--o-line-3); border-radius: var(--o-r-sm); background: var(--o-inset); color: var(--o-text); font: inherit; font-size: var(--o-t-sm); line-height: 1.5; resize: vertical; }
#office .kn-fix__in:focus-visible { outline: 1px solid var(--focus-edge); outline-offset: 1px; }
#office .kn-fix__go { justify-self: start; min-height: 44px; }

#office .kn-more { margin: 1rem 0 0; }
#office .kn-more .ofc-ghost { min-height: 44px; }
