/* ------------------------------------------------------------------
   Product vignettes: small, simplified pictures of Rideau screens, after
   the Groundswell feature bento (Michael, November 27, 2026). Suggested,
   not literal: real labels for the key bits, skeleton bars for filler,
   hairline chips, minimal chrome.

   Palette: "Ottawa night" from /tokens.css (November 27, 2026). Each value
   names its token with the literal as a fallback, so a page that does not
   link tokens.css (product.html, for now) still renders.

   Every vignette is one picture: the container carries role="img" and an
   aria-label, and its contents are aria-hidden. Text that is shown still
   clears 4.5:1 (ink-400 or lighter on ink-900 and ink-800).

   Surface: .mk sits on ink-900 by default (inside an ink-800 card). Set
   --mk-bg on a parent to change it.
   ------------------------------------------------------------------ */

.mk {
  --mk-white: var(--ink-100, #ECECEC);
  --mk-300: var(--ink-200, #C8C8C8);
  --mk-400: var(--ink-400, #9E9E9E);   /* 7.56:1 on ink-900, 6.94:1 on ink-800 */
  --mk-700: var(--ink-700, #2A2A2A);   /* hairlines */
  --mk-bar: var(--ink-600, #3A3A3A);   /* skeleton bars */
  --mk-800: var(--ink-800, #1A1A1A);
  --mk-900: var(--ink-900, #131313);
  --mk-red: var(--signal-500, #E8383D); /* the live dot only, never a label */
  --mk-mono: var(--font-mono, "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace);

  display: block;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--mk-700);
  border-radius: 12px;
  background-color: var(--mk-bg, var(--mk-900));
  font-family: var(--font-sans, "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif);
  font-size: 13px;
  line-height: 1.4;
  color: var(--mk-300);
  text-align: left;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}
.mk * { box-sizing: border-box; }
/* The one child, aria-hidden, so a screen reader hears only the label. */
.mk-in { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.mk ul, .mk ol { margin: 0; padding: 0; list-style: none; }
.mk p { margin: 0; }

/* The panel nested inside a vignette (an answer, a page) is one step
   lighter or darker than the vignette itself. */
.mk-inset {
  padding: 12px;
  border: 1px solid var(--mk-700);
  border-radius: 10px;
  background-color: var(--mk-inset-bg, var(--mk-800));
}

/* --- type ------------------------------------------------------------- */
.mk-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.mk-head-start { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mk-title { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--mk-white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-text { color: var(--mk-white); }
.mk-sub { font-size: 12px; color: var(--mk-400); }
.mk-label { font-size: 12px; font-weight: 500; color: var(--mk-400); }
.mk-mono { font-family: var(--mk-mono); font-size: 11.5px; letter-spacing: 0.01em; color: var(--mk-400); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* --- skeleton bars: filler text ----------------------------------------- */
.mk-bars { display: flex; flex-direction: column; gap: 7px; }
.mk-bar { display: block; height: 6px; width: var(--w, 100%); border-radius: 5px; background-color: var(--mk-bar); }
.mk-bar--thick { height: 8px; }

/* --- chips -------------------------------------------------------------- */
.mk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--mk-700);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--mk-300);
  white-space: nowrap;
}
.mk-chip--mono { font-family: var(--mk-mono); font-size: 11px; }
/* A control-like chip, such as "Remind me". */
.mk-chip--action { border-color: var(--mk-bar); background-color: var(--mk-bar); color: var(--mk-white); font-weight: 500; }
.mk-live { color: var(--mk-white); font-weight: 500; }
.mk-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background-color: var(--mk-red); }

/* --- tabs ---------------------------------------------------------------- */
.mk-tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--mk-700);
  border-radius: 10px;
  background-color: var(--mk-800);
  align-self: flex-start;
  max-width: 100%;
  overflow: hidden;
}
.mk-tab { padding: 3px 9px; border-radius: 8px; font-size: 12px; color: var(--mk-400); white-space: nowrap; }
.mk-tab.is-on { color: var(--mk-white); background-color: var(--mk-900); }

/* --- rows ---------------------------------------------------------------- */
.mk-rows > li { display: flex; align-items: center; gap: 10px; min-width: 0; padding-block: 9px; border-top: 1px solid var(--mk-700); }
.mk-rows > li:first-child { border-top: 0; padding-top: 0; }
.mk-rows > li:last-child { padding-bottom: 0; }
.mk-grow { flex: 1 1 auto; min-width: 0; }
.mk-grow > * + * { margin-top: 4px; }
.mk-ellipsis { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- icons: 14px line glyphs --------------------------------------------- */
.mk-icon { flex: 0 0 auto; width: 16px; height: 16px; display: block; }
.mk-icon * { fill: none; stroke: var(--mk-400); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.mk-icon-box {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--mk-700);
  border-radius: 10px;
}

/* ===================================================================
   a. Live transcript
   =================================================================== */
.mk-turns > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px 10px; padding-block: 10px; border-top: 1px solid var(--mk-700); }
.mk-turns > li:first-child { border-top: 0; padding-top: 2px; }
.mk-turns > li:last-child { padding-bottom: 0; }
.mk-turns .mk-mono { padding-top: 1px; }
.mk-turns .mk-speaker { font-size: 12px; font-weight: 600; color: var(--mk-white); }
.mk-turns .mk-speaker span { font-weight: 400; color: var(--mk-400); }
.mk-turns .mk-said { grid-column: 2; color: var(--mk-300); }
.mk-turns .mk-bars { grid-column: 2; margin-top: 4px; }

/* ===================================================================
   b. Answer with receipts
   =================================================================== */
.mk-ask {
  align-self: flex-end;
  max-width: 88%;
  padding: 8px 12px;
  border-radius: 14px 14px 3px 14px;
  background-color: var(--mk-bar);
  color: var(--mk-white);
}
.mk-answer { display: flex; flex-direction: column; gap: 10px; }
.mk-answer .mk-text { line-height: 1.5; }
.mk-source { text-decoration: underline; text-decoration-color: var(--mk-400); text-underline-offset: 3px; }

/* ===================================================================
   c. Who is lobbying, d. expiring contracts
   =================================================================== */
.mk-count { flex: 0 0 auto; }
.mk-table > li { align-items: flex-start; }
.mk-table .mk-chip { flex: 0 0 auto; }

/* ===================================================================
   e. Alert with a reason
   =================================================================== */
.mk-alert { display: flex; gap: 12px; }
.mk-alert-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.mk-alert-title { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--mk-white); }
.mk-why { padding-left: 10px; border-left: 2px solid var(--mk-700); }
.mk-why .mk-label { display: block; margin-bottom: 2px; }

/* ===================================================================
   f. Folder
   =================================================================== */
.mk-items > li { gap: 10px; }
.mk-type { flex: 0 0 auto; width: 84px; font-size: 12px; color: var(--mk-400); }
.mk-check { width: 14px; height: 14px; }
.mk-step { display: flex; align-items: center; gap: 10px; }
.mk-step-dot {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--mk-700);
  border-radius: 50%;
}
.mk-step-dot.is-done { border-color: var(--mk-400); }
.mk-step-dot.is-done svg * { stroke: var(--mk-white); }

/* ===================================================================
   g. Meeting brief document: a page, lighter than its ground
   =================================================================== */
.mk-page { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.mk-page-title { font-size: 15px; font-weight: 600; color: var(--mk-white); }
.mk-page .mk-sec { display: flex; flex-direction: column; gap: 6px; }
.mk-page .mk-sec + .mk-sec { padding-top: 10px; border-top: 1px solid var(--mk-700); }
.mk-page h4 { margin: 0; font-size: 12px; font-weight: 600; color: var(--mk-300); }

/* ===================================================================
   h. Comment deadline
   =================================================================== */
.mk-deadline-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }

/* ===================================================================
   i. People profile
   =================================================================== */
.mk-person { display: flex; align-items: center; gap: 12px; }
.mk-portrait { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background-color: var(--mk-bar); }
.mk-party-bar { display: flex; height: 10px; gap: 2px; border-radius: 5px; overflow: hidden; }
.mk-party-bar span { display: block; height: 100%; flex: var(--n) 1 0; background-color: var(--c); }
.mk-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.mk-legend li { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mk-400); }
.mk-legend li::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background-color: var(--c); }
.mk-lib { --c: #D71920; }
.mk-con { --c: #2F63B5; }
.mk-bq  { --c: #33B2CC; }
.mk-ndp { --c: #F37021; }
.mk-grn { --c: #3D9B35; }

/* ===================================================================
   k. Workflow picker
   =================================================================== */
.mk-input {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--mk-400);
  border-radius: 12px;
  background-color: var(--mk-800);
  color: var(--mk-white);
}
.mk-caret { width: 1px; height: 16px; background-color: var(--mk-white); }
.mk-input .mk-send {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 10px;
  background-color: var(--mk-bar);
}
.mk-input .mk-send svg * { stroke: var(--mk-white); }
