/* risk-k.css: Lower your risk (#/overview/risk, v8-home.js vRisk8) in the detail page's parts, and its card on Insights
   (v8-insights.js lowerRisk). README 107, 22 October 2026. Janne: "when I click insights, I don't see the thing, like 'How to lessen
   your risk' ... I would want it to be much more aesthetic, and I don't even know where it is at the moment."
   The page's top, section titles and help box are the system's (base.css "Detail page parts", policy-k.css .v8pk-help); this file
   holds only the step cards and the Insights card. In branch-step-cards the cards wear Home's panel look and Mark as done is the chip (see the last block). Type 16 and 20, none inside a query. No circles (README 70). */

/* ---------- The step cards (branch-step-cards, 22 October 2026) ----------
   Janne, with a grid of white cards as the reference: "Try seeking inspiration from this and make those kinds of next steps, what
   you can do, in this style ... They would be more like cards." Steps to take and Done are each a grid of white cards: 12 corners
   (--v8-r, the card radius on the compact scale; --v8-r-in is 8 there), Home's tile shadow (the 1 px ring, a tight lift, a soft ambient: home.css .v8-hm-tile), 32 in. One column, two from a
   560 container, three from 880 (1440: three; 1024: two; a phone: one); a row's cards share its height, the action at each foot.
   Container queries for the layout only; type never changes in them. No circles (README 70) */
html#v8 #app .rkc-cq { container: rkc / inline-size; }
html#v8 #app .rkc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--v8-5); margin: 0; padding: 0; list-style: none; }
@container rkc (min-width: 560px) { html#v8 #app .rkc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container rkc (min-width: 880px) { html#v8 #app .rkc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
html#v8 #app .rkc { display: flex; flex-direction: column; min-width: 0; box-sizing: border-box; padding: var(--v8-6); border-radius: var(--v8-r); background: var(--v8-white);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 1px 2px -1px rgb(0 0 0 / .06), 0 2px 4px 0 rgb(0 0 0 / .04); overflow-wrap: anywhere; }
@container rkc (max-width: 419px) { html#v8 #app .rkc { padding: var(--v8-5); } }
html#v8 #app .rkc:focus { outline: none; }
html#v8 #app .rkc:focus-visible { outline: var(--v8-focus); outline-offset: 0 !important; box-shadow: var(--v8-focus-glow) !important; }
/* The tile: 56, white, a 1 px line, 12 corners, a soft shadow; the step's icon at 24 in link green (the page's own marks, STEP_ICON) */
html#v8 #app .rkc-tile { display: grid; place-items: center; flex: none; width: 56px; height: 56px; box-sizing: border-box; border: 1px solid var(--v8-line); border-radius: var(--v8-r); background: var(--v8-white);
  box-shadow: 0 1px 2px -1px rgb(0 0 0 / .06), 0 2px 4px 0 rgb(0 0 0 / .04); color: var(--v8-green-t); }
html#v8 #app .rkc-tile svg.i { width: 24px; height: 24px; color: var(--v8-green-t); fill: currentColor; }
/* The words: the title 20/24 Bold (the system's card title; it has no 24 Regular), 24 under the tile; its why 16/24 ink-2, 8 under
   the title; what it costs as quiet ink-2 words, 8 under the why */
html#v8 #app h3.rkc-t { margin: var(--v8-5) 0 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: pretty; }
html#v8 #app p.rkc-l { margin: var(--v8-2) 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; }
html#v8 #app p.rkc-cost { margin: var(--v8-2) 0 0; color: var(--v8-ink-2); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; }
/* The foot: pushed to the card's bottom, so the actions of a row line up. The 44 target's extra 10 above and below is pulled back,
   so the words sit 24 under what is above them and 32 above the card's edge, like every other edge of the card */
html#v8 #app .rkc-foot { margin-top: auto; padding-top: calc(var(--v8-5) - 10px); margin-bottom: -10px; }
/* The text action: link-green 16 Regular words, no underline, no chevron; a 44 target with 8 of side padding pulled back so the
   words stay on the text edge; the green wash on hover, pressed green, the system's focus ring (README 84's subtle button, minus
   its arrow) */
html#v8 #app button.rkc-act { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 0 calc(-1 * var(--v8-2)); padding: 0 var(--v8-2); border: 0; border-radius: var(--v8-r-sm);
  background: none; color: var(--v8-green-t) !important; font: inherit; font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; font-weight: 400 !important; text-decoration: none; cursor: pointer;
  transition: background-color .16s ease-out; }
@media (hover: hover) { html#v8 #app button.rkc-act:hover { background: var(--v8-hover); } }
html#v8 #app button.rkc-act:active { background: var(--v8-pressed); }
html#v8 #app button.rkc-act:focus-visible { outline: var(--v8-focus); outline-offset: 0 !important; box-shadow: var(--v8-focus-glow) !important; }
/* A step chosen by ?step=<id> (a link from Insights or the risk table): the card on mint, its tile stays white so the mark is clear;
   the action's wash goes one step darker so it still shows on the mint (README 111's darker step) */
html#v8 #app .rkc.rkc-on { background: var(--v8-mint); }
@media (hover: hover) { html#v8 #app .rkc.rkc-on button.rkc-act:hover { background: var(--v8-pressed); } }
html#v8 #app .rkc.rkc-on button.rkc-act:active { background: var(--v8-pressed); color: var(--v8-deep) !important; }   /* Primary-40 would put the green words at 3.8:1; deep green on the pressed green holds 4.5:1 and more */
/* Done: the same card, the check in the tile, the title Regular: it reads as finished, not as a task */
html#v8 #app .rkc-done h3.rkc-t { font-weight: 400 !important; }
@media (prefers-reduced-motion: reduce) { html#v8 #app button.rkc-act { transition: none; } }
@media (forced-colors: active) { html#v8 #app :is(.rkc, .rkc-tile) { border: 1px solid CanvasText; } html#v8 #app button.rkc-act { color: ButtonText !important; } }

/* ---------- The help box at the foot: the policy page's white box (policy-k.css .v8pk-help) under the last section ---------- */
html#v8 #app .v8-rkk > .v8pk-help { margin-top: var(--v8-9); }

/* ---------- The Insights card (#ix-lower): the fit card's frame, tag, title and lead (ix-glance-k.css); 40 under the pair, inside
   the insights topic (README 87). The first three open steps, each a link to its step, so the whole card washes green (README 90,
   base.css). "Go to Lower your risk" the chip button (.v8-chipbtn) under it ---------- */
html#v8 #app .v8-insp > .rkx-w { margin-top: var(--v8-7); }
@media (max-width: 639px) { html#v8 #app .v8-insp > .rkx-w { margin-top: var(--v8-5); } }
/* branch-step-cards: the three steps as mini cards in a row (the page's cards in small): white, 8 corners (--v8-r-in: nested inside the 12 insight card, README 45), Home's tile shadow, 16
   in; the tile 40 (8 corners, 1 px line, the soft shadow) with the icon at 20; the title 16 Regular in link green at rest (each card
   is one link); "Free" quiet at the foot. The whole card is the link, so it washes green on hover and its tile keeps white. Under a
   600 container they become rows: the tile beside the title, "Free" at the right */
html#v8 #app .rkx-cq { container: rkx / inline-size; margin: var(--v8-5) 0 0; }
html#v8 #app .rkx-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--v8-3); margin: 0; padding: 0; list-style: none; }
html#v8 #app .rkx-list > li { display: flex; min-width: 0; }
html#v8 #app a.rkx-a { flex: 1; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: var(--v8-3); align-items: center; min-width: 0; min-height: 64px; box-sizing: border-box; padding: var(--v8-3) var(--v8-4);
  border-radius: var(--v8-r-in); background: var(--v8-white); box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 1px 2px -1px rgb(0 0 0 / .06), 0 2px 4px 0 rgb(0 0 0 / .04);
  color: var(--v8-ink) !important; text-decoration: none !important; transition: background-color .16s ease-out; }
@container rkx (min-width: 600px) {
  html#v8 #app .rkx-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--v8-4); }
  html#v8 #app a.rkx-a { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; align-items: start; row-gap: 0; padding: var(--v8-4); }
  html#v8 #app a.rkx-a .rkx-t { margin-top: var(--v8-4); }
  html#v8 #app a.rkx-a .rkx-c { margin-top: var(--v8-2); }
}
html#v8 #app .rkx-sq { display: grid; place-items: center; width: 40px; height: 40px; box-sizing: border-box; border: 1px solid var(--v8-line); border-radius: var(--v8-r-sm); background: var(--v8-white);
  box-shadow: 0 1px 2px -1px rgb(0 0 0 / .06), 0 2px 4px 0 rgb(0 0 0 / .04); color: var(--v8-green-t); }
html#v8 #app .rkx-sq svg.i { width: 20px; height: 20px; color: var(--v8-green-t); fill: currentColor; }
html#v8 #app .rkx-t { min-width: 0; color: var(--v8-green-t); font-weight: 400 !important; text-wrap: pretty; }   /* link green at rest: the card says it opens something before any hover (ux-rules 1; interactive looks interactive) */
html#v8 #app .rkx-c { color: var(--v8-ink-2); white-space: nowrap; }
@media (hover: hover) { html#v8 #app a.rkx-a:hover { background: var(--v8-hover); } }
html#v8 #app a.rkx-a:active { background: var(--v8-pressed); }
html#v8 #app a.rkx-a:focus-visible { outline: var(--v8-focus); outline-offset: 0 !important; background: var(--v8-hover); box-shadow: var(--v8-focus-glow) !important; }
html#v8 #app .rkx-foot { margin: var(--v8-5) 0 0; }
@media (prefers-reduced-motion: reduce) { html#v8 #app a.rkx-a { transition: none; } }
@media (forced-colors: active) { html#v8 #app :is(a.rkx-a, .rkx-sq) { border: 1px solid CanvasText; } }

/* ---------- The step cards in Home's card look (branch-step-cards, 22 October 2026, second pass) ----------
   Janne: "I really like the aesthetic you did for the home page, where there was a colored container where we can have the
   illustration at the top ... Create a little colored area at the top where we can place illustrations ... make them the same
   size as you did in the cards ... on the home page" and "As the background color ... choose one more color that we are not quite
   using yet, because this is kind of like next best steps ... pick one we haven't used yet, and then you can make it a bit paler or
   more pastely". So Home's suggestion card (home.css .v8-hm-ic): the white card, an 8 band round a coloured panel with 10 corners,
   the illustration 64 in the middle of a 160 panel. The panel is Fennia's Plum-100 (#770F67) at 7 % on white, a pale lilac: the
   portal's surfaces use mint (Primary), lime (Secondary, insights), peach (Yellow-10, the calculator) and Blue-10 (the assessment),
   none uses Plum or Pink, and lilac sits apart from Pink's red warmth (Red is the warnings' colour). The body 16 24 24: the title
   16 Bold (was 20 at first), its why 16/24, then the foot: what it costs as a grey tag at the left (Neutral-15 fill, no stroke, 14/20, 6 corners,
   not a button), Mark as done the system's chip button (README 112: white, 1 px Primary-30, 36 high) at the right */
html#v8 #app .rkc { padding: var(--v8-2) !important; }
html#v8 #app .rkc-p { display: grid; place-items: center; height: 160px; border-radius: calc(var(--v8-r) - var(--v8-2) + 2px); background: color-mix(in srgb, var(--fennia-plum-100) 7%, var(--v8-white)); }
html#v8 #app .rkc-a { display: block; width: 64px; height: 64px; transition: translate .24s var(--v8-ease); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { html#v8 #app .rkc:hover .rkc-a { translate: 0 -4px; } }
html#v8 #app .rkc-b { display: flex; flex: 1; flex-direction: column; padding: var(--v8-4) var(--v8-4) var(--v8-4); }
html#v8 #app .rkc-b h3.rkc-t { margin: 0; }
html#v8 #app .rkc-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--v8-3); margin: auto 0 0 !important; padding-top: var(--v8-5) !important; }
html#v8 #app .rkc-tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--v8-r-tag); background: var(--fennia-neutral-15); color: var(--v8-ink-2); font-size: var(--v8-fs-14) !important; line-height: var(--v8-lh-14) !important; white-space: nowrap; }
html#v8 #app .rkc .rkc-chip { margin: 0; flex: none; }
html#v8 #app .rkc.rkc-on { background: var(--v8-white); box-shadow: 0 0 0 2px var(--fennia-primary-40); }
html#v8 #app .rkc-done .rkc-p { background: var(--v8-mint); }
@media (forced-colors: active) { html#v8 #app .rkc-tag { border: 1px solid CanvasText; } }
/* The title at Home's card size (Janne, 22 October 2026: "The font is too large in these cards ... the very same style as the ones
   that you had on the home page ... The title, I mean"): 16 Bold on 24, as home.css .v8-hm-ic-t (was 20) */
html#v8 #app .rkc-b h3.rkc-t { font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; font-weight: 700 !important; }
html#v8 #app .rkc-done .rkc-b h3.rkc-t { font-weight: 400 !important; }
/* One height for every card (Janne, 22 October 2026: "the card height is kind of fixed, so it should be the same height. Make it so
   that the header title can always be two lines ... so that all the paragraph text is aligned horizontally. The done section should
   also ... follow the same kind of rules"). The title always holds two lines (48), the why four (96), so every card's paragraph
   starts on one line and every foot sits at one height, in Steps to take and in Done alike; a longer text still grows its card
   rather than being cut. Done cards wear the same lilac panel and Bold title; their foot is the light green check square (24, 6
   corners, mint with the link green tick, as the risk table's .ixrt-mk-ok) with when it was done beside it in ink-2 */
html#v8 #app .rkc-b h3.rkc-t { min-height: calc(2 * var(--v8-lh-16)); }
html#v8 #app .rkc-b p.rkc-l { min-height: calc(4 * var(--v8-lh-16)); }
html#v8 #app .rkc-grid { grid-auto-rows: 1fr; }
html#v8 #app .rkc-done .rkc-p { background: color-mix(in srgb, var(--fennia-plum-100) 7%, var(--v8-white)); }
html#v8 #app .rkc-done .rkc-b h3.rkc-t { font-weight: 700 !important; }
html#v8 #app .rkc-st { display: inline-flex; align-items: center; gap: var(--v8-2); min-height: 36px; color: var(--v8-ink-2); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; }
html#v8 #app .rkc-ck { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: var(--v8-r-tag); background: var(--v8-mint); color: var(--v8-green-t); }
html#v8 #app .rkc-ck svg.i { width: 16px; height: 16px; fill: currentColor; }
@media (forced-colors: active) { html#v8 #app .rkc-ck { border: 1px solid CanvasText; } }
/* No "Free" tag on the open step cards (Janne, 22 October 2026: "maybe those tags that say 'free' can be taken away"): every step
   is free, so the line under Steps to take says it once (Codex: "All these steps are free. Mark each one as done when you've
   completed it.") and Mark as done sits alone at the card's foot, at its start like every card action. A step that ever costs
   something would bring its tag back. Done cards keep their check and date */
html#v8 #app .rkc:not(.rkc-done) .rkc-tag { display: none; }
html#v8 #app .rkc:not(.rkc-done) .rkc-foot { justify-content: flex-start; }
