/* =====================================================================================================================
   ix-know.css: "What we know about you", the Insights page's last section (main, 21 October 2026). Markup: ../../prototype/app/ix-know.js.
   Janne: one Edit button at the top right, the source tags in their own column, calm and aligned.
   A section, not an insight: white with the cards' 1 px --v8-line edge (a real border, so its content edge is the insight cards'),
   radius 16, 32 in (24 on phones). The title 28 Bold deep green (every 28 title on the page), Edit (the system's secondary pill, 44)
   level with the title's first line, the line 16 ink 12 under the title. Then the table, 32 under the line: hairline rows, 16 above
   and below each, three columns that line up row to row because every row uses the same tracks: the name (16 Bold), the value (16),
   the source tag (12 in a 24 frame, one frame for every state). Under 760 of section the tag goes under its value; under 440 (a phone)
   each row stacks name, value, tag.
   Since README 76 (21 October 2026, night) the card is gone: title 20 Bold ink, Edit 40 at its right, the line ink-2, the rows a dl
   in one white box with the 1 px Neutral-30 stroke and 8 corners (the coverages' box); see "The section" below.
   Every size and weight !important, only 28, 16 and 12 at 400 and 700, no font-size inside a query, v8 tokens only.
   ===================================================================================================================== */

/* ---------- The section (README 76, 21 October 2026, night) ----------
   Janne: "the same kind of gray-stroked container as we have in the coverages. There should be an 'Edit' button at the top right,
   and there should be a list." No card any more: the section sits on the page like the policy page's tables (63.8: a section holding
   a list takes the medium title, 20 Bold ink), Edit (the global secondary button, 40 drawn, 8 corners) on the title's line at the
   right, the line 16 ink-2 under both, then the rows in ONE white box with a 1 px Neutral-30 stroke and 8 corners, as policy-k.css
   .v8pk-covg .v8pk-lw draws her covers, hairlines between the rows */
#v8 #app .ixk { container: ixk / inline-size; min-width: 0; color: var(--v8-ink); }

/* The head: the title and Edit on one line, the line under both */
#v8 #app .ixk-hd { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--v8-5); align-items: center; }
#v8 #app .ixk-hd h2.ixk-t { grid-column: 1; grid-row: 1; margin: 0; color: var(--v8-ink); font-size: var(--v8-fs-20) !important; line-height: var(--v8-lh-20) !important; font-weight: 700 !important; letter-spacing: 0; text-wrap: balance; }
/* Edit: 40 drawn on the title's 24 line, centred on it; 8 above and below reach outside the line, the line under keeps its 8 */
#v8 #app .ixk-hd .ixk-edit { grid-column: 2; grid-row: 1; margin: -8px 0; }
/* Reassess risks beside Edit (README 144, second pass): the two in one row at the title's right, 12 apart, Edit at the corner, both
   centred on the title's line as Edit alone was. On a narrow section (a phone) the title takes the whole line and the two go under
   the line, at its start, so neither title nor button wraps */
#v8 #app .ixk-hd .ixk-acts { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: var(--v8-3, 12px); margin: -8px 0; }
#v8 #app .ixk-hd .ixk-acts .ixk-edit { margin: 0; }
/* The AI button's 2 px ring is a real border: border-box keeps it Edit's height (40, 44 on touch) instead of 4 taller */
#v8 #app .ixk-hd .ixk-ai { box-sizing: border-box; }
@media (max-width: 479px) { #v8 #app .ixk-hd .ixk-ai { padding-top: 8px; padding-bottom: 8px; } }   /* base.css gives phone buttons 10 above and below; the ring's 2 come out of it */
@container ixk (max-width: 559px) {
  #v8 #app .ixk-hd { grid-template-columns: minmax(0, 1fr); }
  #v8 #app .ixk-hd .ixk-acts { grid-column: 1; grid-row: 3; flex-wrap: wrap; margin: var(--v8-4) 0 0; }
}
#v8 #app .ixk-hd p.ixk-line { grid-column: 1 / -1; grid-row: 2; margin: var(--v8-2) 0 0; max-width: var(--v8-measure); color: var(--v8-ink-2); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; font-weight: 400 !important; text-wrap: pretty; }

/* ---------- The list: one stroked box, rows on hairlines ---------- */
#v8 #app .ixk-tbl { margin: var(--v8-5) 0 0; padding: 0; border: 1px solid var(--fennia-neutral-30, #DDDDDD); border-radius: var(--v8-r-sm); background: var(--v8-white); }
#v8 #app .ixk-r {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) 280px; grid-template-areas: "n v s"; column-gap: var(--v8-5); row-gap: var(--v8-2); align-items: center;
  min-height: 56px; padding: var(--v8-4); border-top: 1px solid var(--fennia-neutral-30, #DDDDDD);
}
#v8 #app .ixk-r:first-child { border-top: 0; }
#v8 #app .ixk-r :is(dt, dd) { margin: 0; }
#v8 #app .ixk-n { grid-area: n; min-width: 0; color: var(--v8-ink); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; font-weight: 700 !important; }
#v8 #app .ixk-v { grid-area: v; min-width: 0; color: var(--v8-ink); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; font-weight: 400 !important; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#v8 #app .ixk-s { grid-area: s; min-width: 0; display: flex; }

/* The source tag: one frame for every state, the icon and the words carry it (never colour alone). 24 tall; it wraps inside its
   frame only when the column is narrower than the words */
#v8 #app .ixk-tag {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 24px; padding: var(--v8-1) var(--v8-2) var(--v8-1) 6px; border-radius: var(--v8-r-tag);
  background: var(--v8-white); box-shadow: inset 0 0 0 1px var(--v8-line); color: var(--v8-ink);
  font-size: var(--v8-fs-14) !important; line-height: var(--v8-lh-14) !important; font-weight: 400 !important; font-variant-numeric: tabular-nums;
}
/* Our estimate (her earnings withheld: the typical figure we use) is said in words, not a tag: the tag's 12, ink-2, no frame */
#v8 #app .ixk-words { max-width: 280px; color: var(--v8-ink-2); font-size: var(--v8-fs-14) !important; line-height: var(--v8-lh-14) !important; font-weight: 400 !important; font-variant-numeric: tabular-nums; text-wrap: pretty; }
#v8 #app .ixk-tag-i { display: inline-grid; flex: none; place-items: center; width: 16px; height: 16px; }
#v8 #app .ixk-tag-i svg.i { width: 16px; height: 16px; fill: var(--v8-ink); color: var(--v8-ink); }

/* What she changed: the value washed in mint once (1,6 s), only with motion on (ix-know.js sets the class only then) */
@keyframes ixk-wash { 0%, 35% { background-color: var(--v8-mint); box-shadow: 0 0 0 4px var(--v8-mint); } 100% { background-color: transparent; box-shadow: 0 0 0 4px transparent; } }
#v8 #app .ixk-just .ixk-vt { border-radius: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; animation: ixk-wash 1.6s ease-out both; }
@media (prefers-reduced-motion: reduce) { #v8 #app .ixk-just .ixk-vt { animation: none; } }
html#v8[data-motion="off"] #app .ixk-just .ixk-vt { animation: none; }

/* Under 760 of section (a 1024 window's column): the name keeps its column, the tag goes under its value */
@container ixk (max-width: 759px) {
  #v8 #app .ixk-r { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-areas: "n v" "n s"; align-items: start; }
}
/* Under 440 (a phone): name, value, tag, one under the other */
@container ixk (max-width: 439px) {
  #v8 #app .ixk-r { grid-template-columns: minmax(0, 1fr); grid-template-areas: "n" "v" "s"; row-gap: var(--v8-1); }
  #v8 #app .ixk-s { margin-top: var(--v8-1); }
}

/* ---------- The edit drawer (.v8-dlgw.ixk-dlg): the system's fields, 32 apart ---------- */
#v8 .v8-dlgw.ixk-dlg .v8-dlg-b p.ixk-dl { margin: 0 0 var(--v8-6); color: var(--v8-ink-2); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; font-weight: 400 !important; }
#v8 .v8-dlgw.ixk-dlg .ixk-form { display: grid; gap: var(--v8-6); margin: 0; }
#v8 .v8-dlgw.ixk-dlg .ixk-form > .ixk-fld { margin: 0; min-width: 0; }
#v8 .v8-dlgw.ixk-dlg .v8-field { display: grid; gap: var(--v8-2); }
/* The labels and the radio group's question read alike: 16 Bold, the hint 16 secondary 4 under it */
#v8 .v8-dlgw.ixk-dlg :is(.v8-label, .v8-legend) { display: block; margin: 0; padding: 0; color: var(--v8-ink); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; font-weight: 700 !important; }
#v8 .v8-dlgw.ixk-dlg .v8-legend { margin-bottom: var(--v8-3); }
#v8 .v8-dlgw.ixk-dlg .v8-dlg-b p.v8-hint { margin: -4px 0 0; color: var(--v8-ink-2); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; font-weight: 400 !important; }
#v8 .v8-dlgw.ixk-dlg .v8-dlg-b p.v8-err { display: flex; align-items: flex-start; gap: var(--v8-2); margin: 0; color: var(--v8-red); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; font-weight: 400 !important; }
#v8 .v8-dlgw.ixk-dlg .v8-err svg.i { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--v8-red); fill: var(--v8-red); }
/* The amounts: a field as wide as what it holds, the euro sign inside at its right (the label says "in euros" to screen readers) */
#v8 .v8-dlgw.ixk-dlg .ixk-inw { position: relative; display: block; width: 100%; max-width: 240px; }
#v8 .v8-dlgw.ixk-dlg .ixk-inw .v8-input { padding-right: var(--v8-8); font-variant-numeric: tabular-nums; }
#v8 .v8-dlgw.ixk-dlg .ixk-unit { position: absolute; top: 50%; right: var(--v8-4); transform: translateY(-50%); color: var(--v8-ink-2); pointer-events: none; font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; font-weight: 400 !important; }
/* "I'd rather not say" under the earnings field: the system's checkbox (V8.check), whose layout base.css scopes to #app only, so it
   is set here for the drawer: 44 to touch, the 24 box, the tick when chosen, the focus ring on the box. The field it switches off
   takes Fennia's disabled look (base.css) */
#v8 :is(#app, .v8-dlgw).ixk-dlg .v8-check { display: flex; align-items: flex-start; gap: var(--v8-3); min-height: 44px; margin: 0; padding: 10px 0; cursor: pointer; color: var(--v8-ink); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; font-weight: 400 !important; }
html#v8 :is(#app, .v8-dlgw).ixk-dlg .v8-check input[type="checkbox"] { flex: none; margin: 0; -webkit-appearance: none; appearance: none; background: var(--v8-white) center / 18px no-repeat; cursor: pointer; }
html#v8 :is(#app, .v8-dlgw).ixk-dlg .v8-check input[type="checkbox"]:checked { background-color: var(--v8-green); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5 9.5-10' fill='none' stroke='%23fff' stroke-width='2.4'/%3E%3C/svg%3E"); }
html#v8 :is(#app, .v8-dlgw).ixk-dlg .v8-check input:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--v8-green), 0 0 0 2px var(--v8-white), 0 0 0 3px var(--v8-deep); }
#v8 :is(#app, .v8-dlgw).ixk-dlg .v8-check-tx { display: grid; padding-top: 0; }
#v8 .v8-dlgw.ixk-dlg .ixk-fld > .v8-check { margin-top: var(--v8-1); }
/* Where she works: Fennia's option rows, compact as Messages' form has them (16 Regular, one column, 12 apart). base.css scopes the
   rows as #v8 :is(#app, .v8-dlgw), which counts as two ids, so these rules use the same :is() to win on specificity. A one-line row
   is Fennia's RadioButtons, so its edge at rest is the 3:1 #8B8B8B (base.css 2038's rule for Messages' topic rows), never over the
   hover, chosen or focus edges */
#v8 :is(#app, .v8-dlgw).ixk-dlg .v8-opts { gap: var(--v8-3); margin: 0; padding: 0; border: 0; min-width: 0; }
html#v8 :is(#app, .v8-dlgw).ixk-dlg .v8-opt { grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: var(--v8-3); min-height: 56px; padding: var(--v8-4) var(--v8-5); }
html#v8 :is(#app, .v8-dlgw).ixk-dlg .v8-opt:not(:hover, :has(input:checked), :has(input:focus-visible)) { box-shadow: var(--v8-st-rest); }
#v8 :is(#app, .v8-dlgw).ixk-dlg .v8-opt > .v8-opt-r { display: none; }
#v8 :is(#app, .v8-dlgw).ixk-dlg .v8-opt-tx b { font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; font-weight: 400 !important; }

/* ---------- Forced colours: the section and the tags keep their frames ---------- */
@media (forced-colors: active) {
  #v8 #app .ixk-tbl, #v8 #app .ixk-r { border-color: CanvasText; }
  #v8 #app .ixk-tag { border: 1px solid CanvasText; }
  #v8 #app .ixk-tag-i svg.i { fill: CanvasText; color: CanvasText; }
}
/* The source as a quiet light gray tag, no icon and no stroke (Janne, 22 October 2026: "they could be just something we don't
   need. Could you just make them inside light gray containers? We don't even need icons in those"): Neutral-15 fill, 6 px corners,
   12 ink-2 text (4.5:1 or more on it) */
#v8 #app .ixk-tag { border: 0 !important; box-shadow: none !important; background: var(--fennia-neutral-15, #F5F5F5) !important; border-radius: var(--v8-r-tag) !important;
  padding: 2px 8px !important; color: var(--v8-ink-2) !important; font-size: var(--v8-fs-14) !important; line-height: var(--v8-lh-14) !important; gap: 0 !important; }

/* ---------- README 161 (23 October 2026) ----------
   The head: the description never runs into the buttons (Janne, of a tablet: "the text is too close to the bottom, like 'Reassess risks
   and edit'"). The buttons' -8 overhang went, so the first row is the buttons' 40 high with the title centred in it, and the description
   sits 12 under that row (the section head's title-to-text gap), at every width.
   The rows: the answer fills the row and the source tag sits at its right edge (Janne: "the line of work and what they have responded
   to are more like a fill container ... They're more pushed to the right"): the detail's name keeps a 220 column, the answer takes the
   rest, the tag hugs its words at the end */
#v8 #app .ixk-hd .ixk-acts { margin: 0 !important; }
#v8 #app .ixk-hd p.ixk-line { margin-top: var(--v8-3) !important; }
#v8 #app .ixk-r { grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; }
#v8 #app .ixk-r > .ixk-s, #v8 #app .ixk-s { justify-self: end; }
@container ixk (max-width: 759px) {
  #v8 #app .ixk-r { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  #v8 #app .ixk-r > .ixk-s, #v8 #app .ixk-s { justify-self: start; }
}
@container ixk (max-width: 439px) { #v8 #app .ixk-r { grid-template-columns: minmax(0, 1fr); } }

/* ---------- README 167: the column heads; the detail's column wider (Janne, 23 October 2026) ----------
   "the table needs a header ... Also, the line of work and accountant, the first two [columns], I would put them a bit further from each
   other". The head row is the system's table head (base.css .v8-table thead: 16 Regular in ink-2, 48 high, the stronger line under it);
   "Source" sits over the tags at the right. The detail's name column is 300 (was 220), so its value starts further from it. When the
   rows stack (under 760) the head is read but not shown, as the system's tables do */
#v8 #app .ixk-r.ixk-head { min-height: 48px; padding-top: var(--v8-3); padding-bottom: var(--v8-3); border-bottom: 1px solid var(--v8-line-strong, #CFCFCF); }
#v8 #app .ixk-r.ixk-head + .ixk-r { border-top: 0; }
#v8 #app .ixk-head > [role="columnheader"] { color: var(--v8-ink-2); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; font-weight: 400 !important; }
#v8 #app .ixk-r { grid-template-columns: minmax(0, 300px) minmax(0, 1fr) auto; }
#v8 #app .ixk-s:empty { display: none; }
@container ixk (max-width: 759px) {
  #v8 #app .ixk-r { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  #v8 #app .ixk-r.ixk-head { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
  #v8 #app .ixk-r.ixk-head + .ixk-r { border-top: 0; }
}
@container ixk (max-width: 439px) { #v8 #app .ixk-r { grid-template-columns: minmax(0, 1fr); } }
