/* ix-pair.css: two insights side by side on #/insights (22 October 2026, README 78). Markup: app/ix-pair.js.
   The frame, the Insight tag, the title and the lead are the fit card's (ix-glance-k.css .ixgk-w > .ixgk, .ixgk-hd); this file
   only lays the two cards out and draws their charts.

   The row: two equal columns, the page's card gap (40) between them. Each card is a subgrid of the row's three tracks (head,
   chart, source line), so the two titles, the two charts' bottoms and the two source lines sit on the same lines whatever the
   leads' lengths. Under 900 of row (the 1024 window's content and phones) the cards stack, 40 apart, as the page's other cards.
   Type stays 16 and 12; no font size changes in a query. */
#v8 #app .ixp-row { container: ixp / inline-size; min-width: 0; margin-top: var(--v8-7); }
@media (max-width: 639px) { #v8 #app .ixp-row { margin-top: var(--v8-5); } }
#v8 #app .ixp-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; column-gap: var(--v8-7); row-gap: 0; }
#v8 #app .ixp-g > .v8-ix.ixp-w { margin: 0; min-width: 0; display: grid; grid-template-rows: subgrid; row-gap: 0; }
/* The fit card's .ixgk is a size container (container: ixgk), and size containment turns a subgrid back into "none"; these
   cards use the row's container (ixp) instead */
#v8 #app .ixp-g > .ixp-w > .ixp { container-type: normal; grid-row: 1 / -1; display: grid; grid-template-rows: subgrid; row-gap: 0; min-width: 0; }
#v8 #app .ixp-g > .ixp-w { grid-row: 1 / span 3; }
#v8 #app .ixp-one > .ixp-w { grid-column: 1 / -1; }
@container ixp (max-width: 899px) {
  #v8 #app .ixp-g { grid-template-columns: minmax(0, 1fr); }
  #v8 #app .ixp-g > .ixp-w + .ixp-w { grid-row: 4 / span 3; margin-top: var(--v8-7); }
}
#v8 #app .ixp-hd { align-self: start; }
#v8 #app .ixp-ch { align-self: end; min-width: 0; margin-top: var(--v8-4); }
#v8 #app .ixp p.ixp-foot { margin: var(--v8-4) 0 0; max-width: var(--v8-measure); color: var(--v8-ink-2); font-size: var(--v8-fs-14) !important; line-height: var(--v8-lh-14) !important; font-weight: 400 !important; }
/* A tighter inside than the fit card (24 rather than 32 from the frame), so the pair stays wider than tall (Janne: "more horizontal") */
#v8 #app .ixp-g > .ixgk-w > .ixgk.ixp { padding: calc(var(--v8-5) - 7px); }
#v8 #app .ixp .ixgk-hd > .ixgk-tag { margin-bottom: var(--v8-3) !important; }
#v8 #app .ixp figure { margin: 0; }

/* Card A, two stat tiles (Janne, 22 October 2026, with a reference of small rounded tiles: "two of these little containers there,
   and it should give you some number", then "not coverages. I meant claims"; README 78). The chart well before them is README 79.
   Side by side, 16 apart, stacking under 360 of card. Each tile: 8 px corners (README 70), Neutral-10 (the butter yellow,
   ?tiles=yellow, merged with the card's yellow frame), 16 inside; a Fennia line icon 24 at the top left with no disc, the label 16 Regular ink (at most two
   lines), then a 40 px ring (a chart: stroke 6, the track Blue-20, the value Blue-100) beside the figure at 32 Bold ink (the compact
   scale's page-title step, --v8c-fs-32) with its "%" at 16. The tiles fill the chart row, so ring and figure sit on its floor */
#v8 #app .ixp-ch:has(> .ixp-tiles) { align-self: stretch; display: flex; flex-direction: column; margin-top: var(--v8-4); }
#v8 #app .ixp-tiles { flex: 1 1 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--v8-4); margin: 0; padding: 0; list-style: none; }
@container ixp (max-width: 359px) { #v8 #app .ixp-tiles { grid-template-columns: minmax(0, 1fr); } }
#v8 #app .ixp-tile { display: flex; flex-direction: column; min-width: 0; padding: var(--v8-4); border-radius: var(--v8-r-sm); background: var(--v8-gray); color: var(--v8-ink); }
#v8 #app .ixp-tiles-y .ixp-tile { background: var(--v8-insight-panel); }
#v8 #app .ixp-tic { display: block; width: 24px; height: 24px; }
#v8 #app .ixp-tic svg.i { width: 24px !important; height: 24px !important; color: var(--v8-deep); fill: currentColor; }
#v8 #app .ixp-tile p.ixp-tl { margin: var(--v8-3) 0 0; color: var(--v8-ink); }
#v8 #app .ixp-tile p.ixp-ts { display: flex; align-items: center; gap: var(--v8-3); margin: auto 0 0; padding-top: var(--v8-4); }
#v8 #app .ixp-ring { flex: none; width: 40px; height: 40px; }
#v8 #app .ixp-ring circle { fill: none; stroke-width: 6; }
#v8 #app .ixp-ring-t { stroke: var(--fennia-blue-20, #DCEBFF); }
#v8 #app .ixp-ring-v { stroke: var(--fennia-blue-100, #0052CC); }
#v8 #app .ixp-ts > b { color: var(--v8-ink); font-size: var(--v8c-fs-32, 32px); line-height: var(--v8c-lh-32, 40px); font-weight: 700; white-space: nowrap; }
#v8 #app .ixp-ts > b > span { font-size: var(--v8-fs-16); line-height: var(--v8-lh-16); }
@media (forced-colors: active) { #v8 #app .ixp-tile { border: 1px solid CanvasText; } #v8 #app .ixp-ring-v { stroke: CanvasText; } #v8 #app .ixp-ring-t { stroke: GrayText; } }

/* Card B, compact (Janne, the same day: "more horizontal than vertical"): no box, the column heads in 12 Bold ink-2 over a hairline,
   rows 32 high on hairlines, the names on one line. The mark in front of the name is Claims' 24 px rounded square (README 70): the
   green check on mint when she has it, a calm gray minus when she doesn't */
#v8 #app .ixp-tbl { width: 100%; border-collapse: collapse; }
#v8 #app .ixp-tbl :is(th, td) { padding: 4px 0; text-align: left; vertical-align: middle; color: var(--v8-ink); font-weight: 400; }
#v8 #app .ixp-tbl :is(th, td) + :is(th, td) { padding-left: var(--v8-4); }
#v8 #app .ixp-tbl thead th { padding-bottom: var(--v8-1); border-bottom: 1px solid var(--v8-line); color: var(--v8-ink-2); font-size: var(--v8-fs-14) !important; line-height: var(--v8-lh-14) !important; font-weight: 700 !important; }
#v8 #app .ixp-tbl tbody tr + tr > * { border-top: 1px solid var(--v8-line); }
#v8 #app .ixp-tbl :is(th, td):last-child { width: 1%; white-space: nowrap; }
#v8 #app .ixp-tn { display: flex; align-items: center; gap: var(--v8-3); }
#v8 #app .ixp-mk { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: var(--v8-r-tag); }
#v8 #app .ixp-mk svg.i { width: 16px !important; height: 16px !important; fill: currentColor; }
#v8 #app .ixp-mk-ok { background: var(--v8-mint); color: var(--v8-green-t); }
#v8 #app .ixp-mk-no { background: color-mix(in srgb, var(--v8-ink) 7%, var(--v8-white)); color: var(--v8-ink-2); }
@container ixp (max-width: 520px) { #v8 #app .ixp-tbl :is(th, td):last-child { width: 40%; white-space: normal; } }

@media (forced-colors: active) {
  #v8 #app .ixp-mk { border: 1px solid CanvasText; }
  #v8 #app .ixp-pin { border: 1px solid CanvasText; }
}
/* Round three (Janne, 22 October 2026): the legend's 32 px rounded-square mark at the top left beside the label, the ring and the
   figure right under it ("That graph should come closer to the text"), and the tiles as short landscape boxes that no longer stretch
   to the taller card beside them */
#v8 #app .ixp-ch:has(> .ixp-tiles) { align-self: start !important; display: block !important; }
#v8 #app .ixp-tiles { align-items: start; }
#v8 #app .ixp-tile { flex-direction: column; gap: var(--v8-3); }
#v8 #app .ixp-tile p.ixp-th { display: flex; align-items: center; gap: var(--v8-3); margin: 0; }
#v8 #app .ixp-tile .ixp-tl { margin: 0 !important; color: var(--v8-ink); }
#v8 #app .ixp-tic { display: grid !important; place-items: center; flex: none; width: 32px !important; height: 32px !important; border-radius: var(--v8-r-sm); }
#v8 #app .ixp-tic svg.i { width: 20px !important; height: 20px !important; fill: currentColor; }
#v8 #app .ixp-tic-ok, #v8 #app .ixp-tic-down { background: var(--v8-mint); color: var(--v8-green-t); }
#v8 #app .ixp-tic-up { background: var(--v8-blue); color: var(--v8-blue-ink); }
#v8 #app .ixp-tic-alert { background: color-mix(in srgb, var(--v8-red) 10%, var(--v8-white)); color: var(--v8-red); }
#v8 #app .ixp-tile p.ixp-ts { margin: 0 !important; padding-top: 0 !important; }
#v8 #app .ixp-tic svg.i { color: inherit !important; }
#v8 #app .ixp-tile p.ixp-th { align-items: flex-start; }
#v8 #app .ixp-tile p.ixp-th .ixp-tl { padding-top: 4px; }
#v8 #app .ixp-tiles { align-items: stretch; }
/* Round four: the figure first, the label as the rest of its sentence under it, 8 below; no mark */
#v8 #app .ixp-tile.ixp-tile-2 { gap: var(--v8-2); }
#v8 #app .ixp-tile.ixp-tile-2 p.ixp-tl { margin: 0 !important; color: var(--v8-ink); }
/* The question tile: the question at the top (16 Regular ink), then the answer at 32 Bold and its line under it (16 ink-2) */
#v8 #app .ixp-tile.ixp-tile-q { gap: var(--v8-2); }
#v8 #app .ixp-tile.ixp-tile-q p.ixp-tl { margin: 0 !important; }
#v8 #app .ixp-tile p.ixp-qa { display: flex; flex-direction: column; gap: 2px; margin: var(--v8-2) 0 0; }
#v8 #app .ixp-tile p.ixp-qa b { color: var(--v8-ink); font-size: var(--v8-fs-32, 32px) !important; line-height: 40px !important; font-weight: 700 !important; }
#v8 #app .ixp-tile p.ixp-qa span { color: var(--v8-ink-2); }
/* The policy tiles' answer mark: 24 px square before the answer word; the drawer link under the line */
#v8 #app .ixp-tile p.ixp-qa b { display: inline-flex; align-items: center; gap: var(--v8-3); }
#v8 #app .ixp-qmk { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: var(--v8-r-sm); }
#v8 #app .ixp-qmk svg.i { width: 20px !important; height: 20px !important; fill: currentColor; }
#v8 #app .ixp-qmk-ok { background: var(--v8-mint); color: var(--v8-green-t); }
#v8 #app .ixp-tile p.ixp-why { margin: var(--v8-2) 0 0; }
#v8 #app .ixp-drw p { margin: 0 0 var(--v8-4); }
#v8 #app .ixp-drw ul { margin: 0 0 var(--v8-4); padding-left: 20px; }
#v8 #app .ixp-drw li { margin: 0 0 var(--v8-1); }
#v8 #app .ixp-tile p.ixp-qa b { font-size: var(--v8c-fs-24, 24px) !important; line-height: var(--v8c-lh-24, 32px) !important; }   /* answers at 24 Bold, so "In one place" fits one line beside its mark */
#v8 #app .ixp-qmk { width: 28px; height: 28px; } #v8 #app .ixp-qmk svg.i { width: 18px !important; height: 18px !important; }
/* The policies card's stacked, horizontal tiles (README 78, 22 October 2026): one column; each tile the text on the left and its
   small bar chart on the right, 24 apart; under 560 the chart drops under the text */
#v8 #app .ixp-tiles.ixp-tiles-stack { grid-template-columns: minmax(0, 1fr) !important; }
#v8 #app .ixp-tiles-stack .ixp-tile.ixp-tile-q { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: var(--v8-5); align-items: start; }
#v8 #app .ixp-tiles-stack .ixp-tile.ixp-tile-q > :not(.ixp-viz) { grid-column: 1; }
#v8 #app .ixp-tiles-stack .ixp-viz { grid-column: 2; grid-row: 1 / span 5; align-self: center; display: grid; gap: 6px; position: relative; }
@container ixp (max-width: 559px) { #v8 #app .ixp-tiles-stack .ixp-tile.ixp-tile-q { grid-template-columns: minmax(0, 1fr); } #v8 #app .ixp-tiles-stack .ixp-viz { grid-column: 1; grid-row: auto; margin-top: var(--v8-3); } }
#v8 #app .ixp-hb-r { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: var(--v8-2); color: var(--v8-ink); font-size: var(--v8-fs-14) !important; line-height: var(--v8-lh-14) !important; }
#v8 #app .ixp-hb-tr { position: relative; display: block; height: 12px; border-radius: 3px; background: color-mix(in srgb, var(--v8-ink) 6%, var(--v8-white)); overflow: hidden; }
#v8 #app .ixp-hb-tr > i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; }
#v8 #app .ixp-hb-a { background: var(--fennia-blue-100, #0052CC); }
#v8 #app .ixp-hb-b { background: var(--fennia-red-100, #D63D29); }
#v8 #app .ixp-hb-v { color: var(--v8-ink-2); font-variant-numeric: tabular-nums; }
#v8 #app .ixp-hb-p { grid-template-columns: 20px 112px minmax(0, 1fr); }
#v8 #app .ixp-hb-p .ixp-hb-m { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: var(--fennia-red-10, #F9E3E0); color: var(--fennia-red-100, #D63D29); }
#v8 #app .ixp-hb-p.is-held .ixp-hb-m { background: var(--v8-mint); color: var(--v8-green-t); }
#v8 #app .ixp-hb-p .ixp-hb-m svg.i { width: 14px !important; height: 14px !important; fill: currentColor; }
#v8 #app .ixp-hb-p .ixp-hb-tr > i { background: var(--fennia-blue-30, #C9DDFF); }
#v8 #app .ixp-hb-p.is-held .ixp-hb-tr > i { background: var(--fennia-blue-100, #0052CC); }
#v8 #app .ixp-hb-half { display: none; }
#v8 #app .ixp > .ixp-ch p.ixp-why, #v8 #app .ixp-ch > p.ixp-why { margin: var(--v8-3) 0 0; }

/* Three quarters and one quarter (Janne, 22 October 2026: "the policy insight is not as useful ... one more of those containers about
   the claims. It should take three-fourths of the space ... The policy thing should be only kind of like a small card"): the claims
   card's three tiles in a row; the policies card one tile. The count tile's squares stand in the ring's 40 px box, one per claim */
#v8 #app .ixp-g:not(.ixp-one) { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
#v8 #app #ix-claims .ixp-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#v8 #app #ix-pol .ixp-tiles { grid-template-columns: minmax(0, 1fr); }
@container ixp (max-width: 899px) { #v8 #app .ixp-g:not(.ixp-one) { grid-template-columns: minmax(0, 1fr); } }
@container ixp (max-width: 559px) { #v8 #app #ix-claims .ixp-tiles { grid-template-columns: minmax(0, 1fr); } }
#v8 #app .ixp-dots { flex: none; display: grid; grid-template-columns: repeat(3, 12px); gap: 2px; width: 40px; align-content: center; height: 40px; }
#v8 #app .ixp-dots.ixp-dots-4 { grid-template-columns: repeat(4, 8.5px); gap: 2px; }
#v8 #app .ixp-dots i { aspect-ratio: 1; border-radius: 3px; background: var(--fennia-blue-100); }
#v8 #app .ixp-dots i.is-wait { background: var(--fennia-blue-30); }
#v8 #app .ixp-tile p.ixp-tsub { margin: 0; color: var(--v8-ink-2); }
@media (forced-colors: active) { #v8 #app .ixp-dots i { background: CanvasText; } #v8 #app .ixp-dots i.is-wait { background: GrayText; } }
/* Squares in every tile (22 October 2026): dark Blue-100 counts, light Blue-30 the rest, a part-dark square for a fraction */
#v8 #app .ixp-dots i { background: var(--fennia-blue-30); }
#v8 #app .ixp-dots i.on { background: var(--fennia-blue-100); }
#v8 #app .ixp-dots i.part { background: linear-gradient(90deg, var(--fennia-blue-100) var(--f), var(--fennia-blue-30) var(--f)); }
@media (forced-colors: active) { #v8 #app .ixp-dots i { background: GrayText; } #v8 #app .ixp-dots i.on { background: CanvasText; } }
/* With no source line, the claims tiles stretch to the policies card's tile and link beside them, so no white gap opens under them */
#v8 #app #ix-claims .ixp-ch:has(> .ixp-tiles) { align-self: stretch !important; display: flex !important; }
#v8 #app #ix-claims .ixp-tiles { flex: 1 1 auto; align-items: stretch; }
/* The tiles on another page (README 104: the Claims page's figures): three to a row, one column on a phone */
#v8 #app .ixp-tiles.ixp-tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 719px) { #v8 #app .ixp-tiles.ixp-tiles-3 { grid-template-columns: minmax(0, 1fr); } }
#v8 #app .v8c-tiles { margin-top: var(--v8-6); }
