/* v8 policies: Policies (#/cover), a policy (#/cover/:id), the cover and package drawers, and the document viewer.
   Built on base.css (tokens, hero, zones, cards). Views: ../../prototype/app/v8-policies.js. Spec: ../../old/explore/visual/VISUAL-SPEC.md.
   Specificity as README section 2: in-app rules start #v8 #app; overlays (drawers, the viewer) start #v8. !important only on font
   size and weight, and where an older class is restyled. No font-size inside a media query. */

/* ---------- Pages ---------- */
/* A policy card grid of five or six: three across (never four and one), two from 600, one below */
#v8 #app .v8-grid.v8p-pc3 { --cols: 3; }
@media (max-width: 1199px) { #v8 #app .v8-grid.v8p-pc3 { --cols: 2; } }
/* push: also answers to the page area's width (branch ai-drawer README, the push layout) */
@container app (max-width: 1199px) { #v8 #app .v8-grid.v8p-pc3 { --cols: 2; }}
@media (max-width: 599px) { #v8 #app .v8-grid.v8p-pc3 { --cols: 1; } }

/* The add card, the cover chip and the drawer's icon tile moved to base.css section 21 (18 October 2026, the integrator) */


/* Questions about your policies: the help card alone in the band, laid out as one row from 768 (art, words, actions) */
#v8 #app .v8p-helpw .v8-help { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: var(--v8-5); align-items: center; }
/* It stands alone, not in a pair, so the illustration stays at its left at 64 (base.css 30 puts it at the right, 48, in a pair) */
#v8 #app .v8p-helpw .v8-help > .v8-art { float: none; margin: 0; grid-column: 1; grid-row: 1 / span 2; width: 64px; height: 64px; }   /* the wide row places it (base.css 30 floats it elsewhere) */
#v8 #app .v8p-helpw .v8-help > .v8-art :is(img, svg) { width: 64px !important; height: 64px !important; }
#v8 #app .v8p-helpw .v8-help > .v8-cn { grid-column: 2; grid-row: 1; margin-top: 0; align-self: end; }
#v8 #app .v8p-helpw .v8-help > .v8-cn + .v8-cl { grid-column: 2; grid-row: 2; align-self: start; }
#v8 #app .v8p-helpw .v8-help > .v8-acts { grid-column: 1 / -1; }
@media (min-width: 768px) {
  #v8 #app .v8p-helpw .v8-help { grid-template-columns: 64px minmax(0, 1fr) auto; }
  #v8 #app .v8p-helpw .v8-help > .v8-acts { grid-column: 3; grid-row: 1 / span 2; margin-top: 0; flex-wrap: nowrap; }
}

/* ---------- A policy: the Coverages card ----------
   The old page's card is the system's V8.panel since 18 October 2026 (base.css section 21: the illustration and the 28 title
   inside the gray card, groups with hairlines between, the upgrade as V8.panelRow). The policy documents are V8.docCards.
   Nothing of them stays here */

/* ---------- The drawers: a cover, and the upgrade (the old drawers' layout on v8's frame and type) ---------- */
/* The drawer's head (V8.openDrawer({ icon })) and the explainer body (.v8-xd-*) are base.css section 21. Only the upgrade's own: */
#v8 .v8p-up-d { padding-top: var(--v8-2); }
/* The upgrade: two packages side by side (stacked in a narrow drawer), the next one with the chosen edge; added covers Bold green */
#v8 .v8p-cmp { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--v8-4); }
#v8 .v8p-cmp-c { min-width: 0; padding: var(--v8-5); border-radius: var(--v8-r); background: var(--v8-white); box-shadow: inset 0 0 0 1px var(--v8-line); }
#v8 .v8p-cmp-on { box-shadow: var(--v8-edge-chosen); }
#v8 .v8p-cmp-c h3 { margin: 0; font-size: var(--v8-fs-20) !important; line-height: var(--v8-lh-20) !important; font-weight: 700 !important; letter-spacing: -0.01em; color: var(--v8-ink); }
#v8 .v8p-cmp-c .v8-price { display: block; margin: var(--v8-2) 0 0; }
#v8 .v8p-cmp-s { min-height: 24px; margin: var(--v8-2) 0 0 !important; color: var(--v8-ink-2); }
#v8 .v8p-cmp-l { padding-top: var(--v8-4); border-top: 1px solid var(--v8-line); }
#v8 .v8p-cmp-new { color: var(--v8-green-t); font-weight: 700 !important; }
#v8 .v8p-cmp-note { margin-top: var(--v8-5) !important; color: var(--v8-ink-2); }

/* ---------- The document viewer: a centred modal, the document a white page on the gray stage ---------- */
#v8 body .v8-dvw { position: fixed; inset: 0; z-index: 200; display: grid !important; place-items: center; padding: 16px !important; }
#v8 body .v8-dvw .dv-scrim { opacity: 0; transition: opacity .2s ease-out; }
#v8 body .v8-dvw.v8-on .dv-scrim { opacity: 1; }
#v8 body .v8-dv { display: grid !important; grid-template-rows: auto minmax(0, 1fr) !important; width: min(880px, calc(100vw - 32px)) !important; height: 90vh !important; max-height: 90vh !important; padding: 0 !important;
  border-radius: var(--v8-r) !important; background: var(--v8-white) !important; box-shadow: var(--v8-shadow-pop) !important; color: var(--v8-ink); opacity: 0; transform: scale(.98); transition: opacity .2s ease-out, transform .2s ease-out; }
#v8 body .v8-dvw.v8-on .v8-dv { opacity: 1; transform: none; }
/* The head, in the old viewer's order (18 October 2026): the drawers' mint icon tile, then the name (20 Bold), what the document
   is and when it was added (16, secondary) and the link to open it in a new tab; Download and Email under them; Close top right */
#v8 body .v8-dvh { display: grid; grid-template-columns: 64px minmax(0, 1fr) 44px; grid-template-areas: "ic tx x" ". acts ."; align-items: start; gap: var(--v8-4) var(--v8-5); padding: var(--v8-6) var(--v8-5) var(--v8-6) var(--v8-6); border-bottom: 1px solid var(--v8-line); }
#v8 body .v8-dvh > .v8-dlg-ic { grid-area: ic; }
#v8 body .v8-dvh-tx { grid-area: tx; min-width: 0; }
#v8 body .v8-dvh h2 { margin: 0; font-size: var(--v8-fs-20) !important; line-height: var(--v8-lh-20) !important; font-weight: 700 !important; letter-spacing: -0.01em; color: var(--v8-ink) !important; }
#v8 body .v8-dvh p { 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 new-tab link flows as text, so when it wraps its icon follows the last word (review, 18 October 2026) */
#v8 body .v8-dvh .v8-dv-new { display: block !important; width: fit-content; max-width: 100%; margin-top: var(--v8-2); min-height: 0; }
#v8 body .v8-dvh .v8-dv-new svg.i { display: inline; width: 20px; height: 20px; margin-left: 4px; vertical-align: -4px; }
#v8 body .v8-dvh-acts { display: flex; flex-wrap: wrap; gap: var(--v8-3); grid-area: acts !important; }
#v8 body .v8-dvh-acts .dv-act { height: auto !important; min-height: 40px !important; padding: 0 var(--v8-4) !important; font-weight: 400 !important; }
#v8 body .v8-dvh-acts .dv-act:disabled { opacity: .45; cursor: default; background: var(--v8-white) !important; }
#v8 body .v8-dvh .dv-x { grid-area: x !important; margin: 0 !important; }
#v8 body .v8-dvb { position: relative; min-height: 0; overflow: auto; border: 0 !important; background: var(--v8-gray) !important; }
#v8 body .v8-dvb .dv-frame { display: block; width: 100%; height: 100%; border: 0; background: var(--v8-gray); }
#v8 body .v8-dvb.is-focus { outline: var(--v8-focus); outline-offset: -4px; box-shadow: var(--v8-focus-glow-in) !important; }
/* Photos: one at a time, centred on the stage, Previous and Next under it */
#v8 body .v8-dvp { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: var(--v8-4); height: 100%; padding: var(--v8-6) var(--v8-6) var(--v8-5); }
#v8 body .v8-dvp-f { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--v8-3); min-height: 0; margin: 0; }
#v8 body .v8-dvp-f[hidden] { display: none; }
#v8 body .v8-dvp-f img { display: block; flex: 0 1 auto; max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; border-radius: var(--v8-r-sm); background: var(--v8-white); box-shadow: none; }
#v8 body .v8-dvp-f figcaption { color: var(--v8-ink-2); font-size: var(--v8-fs-16) !important; }
#v8 body .v8-dvp-none { display: grid; place-items: center; gap: var(--v8-3); width: min(480px, 100%); padding: var(--v8-8); border-radius: var(--v8-r-sm); background: var(--v8-white); color: var(--v8-ink-2); text-align: center; }
#v8 body .v8-dvp-none svg.i { width: 24px; height: 24px; color: var(--v8-green); }
#v8 body .v8-dvp-nav { display: flex; align-items: center; justify-content: center; gap: var(--v8-4); }
#v8 body .v8-dvp-nav .v8-ib { background: var(--v8-white); box-shadow: inset 0 0 0 1px var(--v8-line); }
@media (hover: hover) { #v8 body .v8-dvp-nav .v8-ib:hover { background: var(--v8-hover); } }
#v8 body .v8-dvp-n { min-width: 64px; margin: 0; color: var(--v8-ink-2); text-align: center; font-variant-numeric: tabular-nums; }
/* The Email step inside the viewer, on the version 8 tokens */
#v8 body .v8-dv .dv-mail { padding: var(--v8-6); }
#v8 body .v8-dv .dv-mail h3 { font-size: var(--v8-fs-20) !important; line-height: var(--v8-lh-20) !important; font-weight: 700 !important; }
#v8 body .v8-dv .dv-mail label { font-weight: 400 !important; }
#v8 body .v8-dv .dv-mail :is(input, textarea) { min-height: 48px; padding: 12px 16px; border: 0; border-radius: var(--v8-r-pill); box-shadow: inset 0 0 0 1px var(--v8-field); background: var(--v8-white); outline: none; }
#v8 body .v8-dv .dv-mail :is(input, textarea):focus { box-shadow: inset 0 0 0 2px var(--v8-deep); }
#v8 body .v8-dv .dv-mail input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--v8-red); }
#v8 body .v8-dv .dv-mail .dm-err { color: var(--v8-red); }
#v8 body .v8-dv .dv-mail .dm-err svg.i { color: var(--v8-red); }
#v8 body .v8-dvb:has(.dv-mail) { background: var(--v8-white) !important; }
@media (max-width: 639px) {
  #v8 body .v8-dvw { padding: 0 !important; }
  #v8 body .v8-dv { width: 100vw !important; height: 100% !important; max-height: none !important; border-radius: 0 !important; }
  #v8 body .v8-dvh { grid-template-columns: 48px minmax(0, 1fr) 44px; grid-template-areas: "ic tx x" "acts acts acts"; column-gap: var(--v8-4); padding: var(--v8-4); }
  #v8 body .v8-dvh > .v8-dlg-ic { width: 48px; height: 48px; }
  #v8 body .v8-dvh > .v8-dlg-ic svg.i { width: 24px; height: 24px; }
  #v8 body .v8-dvp { padding: var(--v8-4); }
  /* On a phone the document gets the screen: Download covers what the new-tab link did */
  #v8 body .v8-dvh-tx > .v8-dv-new { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { #v8 body .v8-dv, #v8 body .v8-dvw .dv-scrim { transition: none; } }
html#v8[data-motion="off"] body .v8-dv, html#v8[data-motion="off"] body .v8-dvw .dv-scrim { transition: none; animation: none; }


/* ---------- 18 October 2026, the policy page review ---------- */
/* Policies: a card's title sits right under its art in every card of a row, and the price stays level at the foot. Since the
   integration of 18 October 2026 that is base.css section 10.1's rule for every policy card, so nothing is scoped here */

/* The level indicator (the system's V8.levelIndicator, base.css) as the Coverages card's first group, "Packages": 16 under its
   heading, and no wider than 720 so two or three packages read as one strip, not a full-width table */
#v8 #app .v8p-covs .v8-panel-g > .v8-lvi-w { max-width: 720px; margin-top: var(--v8-4); }
/* The indicator's look (no box: names in a line, hairlines between, hers Bold with "Your package") is base.css 23's since the
   system's review of 18 October 2026; the local override that drew it here is gone (the integrator) */

/* The assistant's way in, in its rainbow ring: one button card, white with the ring, the sparkle, a 16 Bold question and "Ask our AI
   assistant" under it. In the Coverages card (after a hairline) and at the end of a cover drawer */
#v8 :is(#app, .v8-dlgw) .v8p-ai { --ai-a: 200deg; display: inline-grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; column-gap: var(--v8-4); max-width: 100%; min-height: 72px; padding: var(--v8-3) var(--v8-6) var(--v8-3) var(--v8-4);
  border: 2px solid transparent; border-radius: var(--v8-r); background-color: transparent; background-image: linear-gradient(var(--v8-white), var(--v8-white)), var(--v8-ring); background-clip: padding-box, border-box; background-origin: border-box; color: var(--v8-ink); font: inherit; text-align: left; cursor: pointer; transition: background-color .16s ease-out; }
#v8 :is(#app, .v8-dlgw) .v8p-ai-mk { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--v8-gray); color: var(--v8-green); font-size: var(--v8-fs-20) !important; line-height: 1; }
#v8 :is(#app, .v8-dlgw) .v8p-ai-tx { display: grid; gap: 2px; min-width: 0; }
#v8 :is(#app, .v8-dlgw) .v8p-ai-t { color: var(--v8-ink); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; font-weight: 700 !important; }
#v8 :is(#app, .v8-dlgw) .v8p-ai-l { color: var(--v8-green-t); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; font-weight: 400 !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (hover: hover) { #v8 :is(#app, .v8-dlgw) .v8p-ai:hover { background-color: transparent; background-image: linear-gradient(var(--v8-hover), var(--v8-hover)), var(--v8-ring); background-clip: padding-box, border-box; background-origin: border-box; } }
#v8 :is(#app, .v8-dlgw) .v8p-ai:focus-visible { outline: var(--v8-focus); outline-offset: 0 !important; box-shadow: var(--v8-focus-glow) !important; }
@media (max-width: 639px) { #v8 :is(#app, .v8-dlgw) .v8p-ai { display: grid; width: 100%; padding-right: var(--v8-4); } }

/* Claims under this policy (SPEC 4.6, 18 October 2026, night). Ongoing claims: a stack of gray claim cards 8 apart, Claims' anatomy
   (the white 48 disc with the icon, the name 16 Bold and what happened, the stage bar with its word and the date, "View claim"),
   only the link hovers. Past claims: white rows with hairlines, the name as the link, the decision badge and what was paid.
   Both lay out by their own width */
#v8 #app .v8p-clg-h { margin: var(--v8-6) 0 var(--v8-4); }
#v8 #app .v8-sh + .v8p-clg-h { margin-top: var(--v8-5); }
#v8 #app .v8p-ccs, #v8 #app .v8p-prs { container: v8pcl / inline-size; margin: 0; padding: 0; list-style: none; }
/* The ongoing claims are Claims' own cards (V8C.card, claims.css): the list is the timeline's container, so they lay out by its
   width exactly as on Claims (round j). The .v8p-cc rules below are the fallback's */
#v8 #app .v8p-ccs { container: v8pcl v8ctl / inline-size; }
#v8 #app .v8p-ccs { display: grid; gap: var(--v8-2); }
#v8 #app .v8p-cc { display: grid; grid-template-columns: 48px minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: var(--v8-2) var(--v8-5); min-height: 88px; padding: var(--v8-5); border-radius: var(--v8-r); background: var(--v8-gray); color: var(--v8-ink); }
#v8 #app .v8p-cc-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--v8-white); }
#v8 #app .v8p-cc-ic svg.i { width: 24px; height: 24px; color: var(--v8-green); }
#v8 #app .v8p-cc-tx, #v8 #app .v8p-pr-tx { display: grid; gap: var(--v8-1); min-width: 0; }
#v8 #app .v8p-cc-n { margin: 0; color: var(--v8-ink); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; font-weight: 700 !important; letter-spacing: 0; }
#v8 #app :is(.v8p-cc-l, .v8p-pr-l) { color: var(--v8-ink-2); }
#v8 #app :is(.v8p-cc-st, .v8p-pr-st) { display: grid; justify-items: start; gap: var(--v8-1); min-width: 0; color: var(--v8-ink); }
#v8 #app .v8p-cc-st .v8c-when { color: var(--v8-ink); font-weight: 700 !important; }
#v8 #app .v8p-cc-a { justify-self: end; white-space: nowrap; }
#v8 #app .v8p-prs { border-top: 1px solid var(--v8-line); }
#v8 #app .v8p-pr { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: var(--v8-2) var(--v8-5); padding: var(--v8-4) 0; border-bottom: 1px solid var(--v8-line); }
#v8 #app .v8p-pr-n { justify-self: start; font-weight: 700 !important; }
@container v8pcl (max-width: 599px) {
  #v8 #app .v8p-cc { grid-template-columns: 48px minmax(0, 1fr); align-items: start; column-gap: var(--v8-4); padding: var(--v8-4); }
  #v8 #app .v8p-cc-st, #v8 #app .v8p-cc-a { grid-column: 2; }
  #v8 #app .v8p-cc-a { justify-self: start; }
  #v8 #app .v8p-pr { grid-template-columns: minmax(0, 1fr); }
}

/* The cover drawer (Janne, 18 October 2026: "restore the drawer's rounded edges"): it floats 12 from the window's edges with
   every corner rounded the same (8 on a phone) */
#v8 .v8-dlgw.v8-xdw .v8-drawer { top: 12px; right: 12px; bottom: 12px; width: min(560px, calc(100vw - 24px)); border-radius: var(--v8-r); }
@media (max-width: 639px) { #v8 .v8-dlgw.v8-xdw .v8-drawer { top: 8px; right: 8px; bottom: 8px; width: calc(100vw - 16px); } }
/* Below 480 a figure's label sits over its value, so every row of the list reads the same (one wrapped, the next didn't) */
#v8 .v8-xdw .v8-xd { container-type: inline-size; }
@container (max-width: 479px) {
  #v8 .v8-xdw .v8-xd-dl > div { display: grid; gap: var(--v8-1); }
  #v8 .v8-xdw .v8-xd-dl dd { text-align: left; }
}
#v8 .v8-xd-more { margin-top: var(--v8-4) !important; max-width: var(--v8-measure); color: var(--v8-ink-2); }
/* The examples (Janne, note 10, 18 October 2026): ONE white container with the light gray stroke, the drawer's 16 corners,
   titled Examples (20 Bold) with its line (16 secondary), and its two parts joined inside it, Covers and Does not cover (16
   Bold), a hairline between them; not two boxes */
#v8 .v8p-exs { margin-top: var(--v8-7); padding: var(--v8-5); border-radius: var(--v8-r); background: var(--v8-white); box-shadow: inset 0 0 0 1px var(--v8-line); }
#v8 .v8p-exs-h h3 { 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.01em; }
#v8 .v8p-exs-h p { margin: var(--v8-2) 0 0 !important; max-width: var(--v8-measure); color: var(--v8-ink-2); }
#v8 .v8p-exs-p { margin-top: var(--v8-5); padding-top: var(--v8-5); border-top: 1px solid var(--v8-line); }
#v8 .v8p-exs-p h4 { margin: 0; color: var(--v8-ink); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; font-weight: 700 !important; }
#v8 .v8p-exs-p .v8-xd-ex { margin-top: var(--v8-3); }
/* The heading and its line lead straight into Covers: the one hairline is the joint between the two parts */
#v8 .v8p-exs-h + .v8p-exs-p { padding-top: 0; border-top: 0; }
@media (max-width: 639px) { #v8 .v8p-exs { padding: var(--v8-4); } }
#v8 .v8-xd-ai { margin-top: var(--v8-7); padding-top: var(--v8-6); border-top: 1px solid var(--v8-line); }
#v8 .v8-xd-ai .v8p-ai { display: grid; width: 100%; }
/* Upgrade your plan sits right after its sentence, next to what isn't covered yet (Janne, note 9), not pushed to the card's far
   edge; below 640 the system's rule puts the button under the sentence, full width */
#v8 #app .v8p-covs .v8-panel-row { justify-content: flex-start; }
#v8 #app .v8p-covs .v8-panel-row p { flex: 0 1 auto; }


/* ---------- 18 October 2026, the reference study's items 3, 7 and 8 (explore/a reference/STUDY.md) ---------- */
/* Item 3, the package meter (the system's V8.meter, kind "package"). On the policy page it opens the Coverages card's Packages
   group, and what her package lacks follows right under it: "Not in your Basic package" (16 Bold), the dotted chips, then the
   sentence with Upgrade your plan, so the empty segment and the button read together */
#v8 #app .v8p-covs .v8p-meter { margin-top: var(--v8-4); }
#v8 #app .v8p-covs .v8p-out { margin-top: var(--v8-6); }
#v8 #app .v8p-covs .v8p-out-h { margin: 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 .v8p-covs .v8p-out-h + .v8-chips-cover { margin-top: var(--v8-3); }
/* On a policy card the meter sits just above the price, so the meters of a row line up and compare at a glance */
#v8 #app .v8-pc > .v8p-pc-lv { display: block; margin-top: auto; padding-top: var(--v8-5); }
/* The card draws the small meter (round G, 18 October 2026), so the word stays beside the capsule at four cards a row; base.css 28
   moves it under the capsule only when it doesn't fit */
#v8 #app .v8-pc:has(> .v8p-pc-lv) > .v8-pc-foot { margin-top: 0; padding-top: var(--v8-4); }

/* Item 7, Your insured amounts: one white band per amount in the gray Coverages card (16 corners, 24 inside). The insured figure
   and its label; opposite it, after a hairline, the gap figure and its label; then the fix, its price change under the button.
   A right-size amount is its figure alone. The bands follow their own width: three columns from 640, the fix under the two
   figures below it, and one column below 320 (a 320 phone), the hairline then above the gap */
#v8 #app .v8p-amt-l { max-width: var(--v8-measure); margin: var(--v8-2) 0 0 !important; }
#v8 #app .v8p-amts { container: v8pamt / inline-size; display: grid; gap: var(--v8-2); margin: var(--v8-4) 0 0; padding: 0; list-style: none; }
#v8 #app .v8p-amt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(max-content, auto); align-items: start; padding: var(--v8-5); border-radius: var(--v8-r); background: var(--v8-white); }
#v8 #app .v8p-amt.v8p-amt-ok { grid-template-columns: minmax(0, 1fr); }
#v8 #app .v8p-amt.v8p-amt-nofix { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
#v8 #app .v8p-amt > .v8-fig { margin: 0; padding-right: var(--v8-5); }
#v8 #app .v8p-amt-g { min-width: 0; padding: 0 var(--v8-5); border-left: 1px solid var(--v8-line); }
#v8 #app .v8p-amt-g > .v8-fig { margin: 0; }
#v8 #app .v8p-amt .v8-fig > span { display: block; max-width: 30ch; margin-top: var(--v8-1); }
#v8 #app .v8p-amt-x { display: grid; justify-items: end; align-self: center; gap: var(--v8-2); }
#v8 #app .v8p-amt-p { color: var(--v8-ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
@container v8pamt (max-width: 639px) {
  #v8 #app .v8p-amt, #v8 #app .v8p-amt.v8p-amt-nofix { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  #v8 #app .v8p-amt.v8p-amt-ok { grid-template-columns: minmax(0, 1fr); }
  #v8 #app .v8p-amt-x { grid-column: 1 / -1; justify-items: stretch; margin-top: var(--v8-5); padding-top: var(--v8-5); border-top: 1px solid var(--v8-line); }
  #v8 #app .v8p-amt-x .v8-btn { width: 100%; }
  #v8 #app .v8p-amt-p { text-align: center; }
}
@container v8pamt (max-width: 319px) {
  #v8 #app .v8p-amt, #v8 #app .v8p-amt.v8p-amt-nofix { grid-template-columns: minmax(0, 1fr); padding: var(--v8-4); }
  #v8 #app .v8p-amt > .v8-fig { padding-right: 0; }
  #v8 #app .v8p-amt-g { margin-top: var(--v8-4); padding: var(--v8-4) 0 0; border-left: 0; border-top: 1px solid var(--v8-line); }
  #v8 #app .v8p-amt-x { margin-top: var(--v8-4); padding-top: var(--v8-4); }
  #v8 #app .v8p-amt-x .v8-btn { padding: var(--v8-2) var(--v8-4); white-space: normal; text-align: center; }
}
/* The daily allowance's gap is words ("About a third"), wider than a euro figure: its band stacks below 400, so neither the 28
   words nor the labels break into a narrow column on a 390 phone */
@container v8pamt (max-width: 399px) {
  #v8 #app .v8p-amt.v8p-amt-day { grid-template-columns: minmax(0, 1fr); }
  #v8 #app .v8p-amt-day > .v8-fig { padding-right: 0; }
  #v8 #app .v8p-amt-day .v8p-amt-g { margin-top: var(--v8-4); padding: var(--v8-4) 0 0; border-left: 0; border-top: 1px solid var(--v8-line); }
}

/* ---------- Policies, the simpler page (explore/simplify/SPEC.md 3 and 4.2, 18 October 2026, night) ----------
   The lean hero's strip (the price with its 72 ring, the policy count, the loyalty discount), the swatch on each policy card's
   price, How well you're covered as tight rows in one white panel. Layout answers each block's own width (container queries);
   type never changes with width: 28 (the strip's figures), 20 (titles), 16 (everything read). Data colours from the system's
   --v8-data-* tokens (the fallbacks are the same hexes): charts never use the greens */
#v8 #app {
  --v8p-d1: var(--v8-data-1, #1C69FF); --v8p-d2: var(--v8-data-2, #770F67); --v8p-d3: var(--v8-data-3, #FF7104);
  --v8p-d4: var(--v8-data-4, #C1D6FF); --v8p-d5: var(--v8-data-5, #FFC01F); --v8p-edge: var(--v8-data-edge, #5E5E5E);
  --v8p-hatch: var(--v8-data-left, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M-1 1l2-2M0 6l6-6M5 7l2-2' stroke='%235E5E5E' stroke-width='1.5'/%3E%3C/svg%3E"));
}
/* Data marks: a policy's key colour, the 1 px edge on the light ones (orange, pale blue, turmeric), the hatch for what stays */
#v8 #app .v8p-d1 { --c: var(--v8p-d1); fill: var(--v8p-d1); }
#v8 #app .v8p-d2 { --c: var(--v8p-d2); fill: var(--v8p-d2); }
#v8 #app .v8p-d3 { --c: var(--v8p-d3); fill: var(--v8p-d3); }
#v8 #app .v8p-d4 { --c: var(--v8p-d4); fill: var(--v8p-d4); }
#v8 #app .v8p-d5 { --c: var(--v8p-d5); fill: var(--v8p-d5); }
#v8 #app i:is(.v8p-d3, .v8p-d4, .v8p-d5) { box-shadow: inset 0 0 0 1px var(--v8p-edge); }
#v8 #app i.v8p-left, #v8 #app :is(.v8p-bar, .v8p-cv-key li) > i.v8p-left { background: var(--v8p-hatch), var(--v8-white); box-shadow: inset 0 0 0 1px var(--v8p-edge); }
#v8 #app .v8p-sw { flex: none; display: inline-block; width: 12px; height: 12px; border-radius: 2px; background: var(--c); }
#v8 #app .v8p-ring { display: block; flex: none; }
#v8 #app .v8p-ring .v8p-rg-edge { fill: none; stroke: var(--v8p-edge); stroke-width: 2; }
#v8 #app .v8p-num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* The strip is the system's (V8.facts({ strip: true }), base.css, README 35); the ring is its first cell's art */
/* The just-joined strip's two cells (the ring's and the renewal date's) stack below 640 by base.css's rule for a two-cell strip
   with a visual */

/* The price cell's legend (19 October 2026): under "58,50 € a month", one item a policy, wrapping two to a line: a 10 dot in
   its ring colour, the short name in secondary, the price in ink. The ring sits at the cell's top when the legend makes the cell tall. The policy
   cards below carry no swatch any more */
#v8 #app .v8-strip > .v8-facts > li.v8-strip-a:has(.v8p-lg) { align-items: flex-start; }
#v8 #app .v8-strip > .v8-facts > li.v8-strip-a:has(.v8p-lg) > .v8-strip-f { flex: 1 1 auto; }
/* The cell with the legend takes more of the strip, so the legend runs two items to a line */
@media (min-width: 640px) { #v8 #app .v8-strip > .v8-facts-3:has(> li.v8-strip-a:first-child .v8p-lg) { grid-template-columns: minmax(0, 1.8fr) repeat(2, minmax(0, 1fr)); } }
#v8 #app .v8-strip .v8-facts .v8p-lg { display: flex; flex-wrap: wrap; gap: 4px var(--v8-4); margin: var(--v8-3) 0 0; padding: 0; list-style: none; }
#v8 #app .v8-strip .v8-facts .v8p-lg > li { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0; border: 0; box-shadow: none; white-space: nowrap; color: var(--v8-ink); }
#v8 #app .v8-strip .v8-facts .v8p-lg > li > span { max-width: none; color: var(--v8-ink); }
#v8 #app .v8-strip .v8-facts .v8p-lg > li > .v8p-lg-n { color: var(--v8-ink-2); }
#v8 #app .v8p-dot { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
#v8 #app i.v8p-dot:is(.v8p-d3, .v8p-d4, .v8p-d5) { box-shadow: inset 0 0 0 1px var(--v8p-edge); }

/* ---------- The hero's two halves, 20 October 2026 (README 49; the study is explore/loyalty/) ----------
   One white plate, the price on the left and the loyalty discount on the right, each half the plate. Side by side while each
   half has 440 (a plate of about 920 inside: 1440 and up), stacked below that, 24 apart. The price half: the 72 ring (56 on
   phones), the 28 figure and its label, then the legend as a little table (dot, name in secondary, price in ink, right-aligned in
   tabular figures). The loyalty half: a mint card (radius 12 inside the plate's 16): the euros at 40 with
   Fennia's sparkle, the label, the round arrow and its words; beside them the five steps (green #8ADC94, hers #004C07, the
   euros above, the rate and year under, all 12 Bold or 12; the caption 16 secondary). Under 440 of its own the card puts the
   steps across under the words and the link last. Greens are allowed here: the steps are a progress meter of Fennia's own
   program, not a data series (README 30, rule 1, the meters' exception); every value is text beside its step */
#v8 #app .v8-plate.v8p-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: var(--v8-5) var(--v8-6); }
#v8 #app .v8p-duo > div { min-width: 0; }
#v8 #app .v8p-duo-a { display: flex; align-items: flex-start; gap: var(--v8-4); }
#v8 #app .v8p-duo-a > .v8-strip-f { display: flex; flex-direction: column; gap: var(--v8-1); flex: 1 1 auto; min-width: 0; }
#v8 #app .v8p-duo-a > .v8-strip-f > span { color: var(--v8-ink-2); }
#v8 #app .v8p-duo .v8p-lg { display: grid; grid-template-columns: 10px auto auto; justify-content: start; align-items: center; gap: var(--v8-2) var(--v8-3); margin: var(--v8-4) 0 0; padding: 0; list-style: none; }
#v8 #app .v8p-duo .v8p-lg > li { display: contents; }
#v8 #app .v8p-duo .v8p-lg .v8p-lg-n { color: var(--v8-ink-2); }
#v8 #app .v8p-duo .v8p-lg .v8p-lg-v { color: var(--v8-ink); text-align: right; }
#v8 #app .v8p-duo-b { container: v8ploy / inline-size; }
/* A 320 phone: the legend runs under the ring and the figure, across the half, so the names don't wrap */
@container v8pprice (max-width: 339px) {
  #v8 #app .v8p-duo-a > .v8-strip-f > .v8p-lg { grid-template-columns: 10px minmax(0, 1fr) auto; width: calc(100% + 72px); margin-left: -72px; }
}
/* Stacked on a wide plate (1024 to 1439), the legend stands beside the figure, so the price half stays one ring high */
#v8 #app .v8p-duo-a { container: v8pprice / inline-size; }
@container v8pprice (min-width: 520px) {
  #v8 #app .v8p-duo-a > .v8-strip-f { display: grid; grid-template-columns: max-content max-content; grid-template-rows: auto auto 1fr; column-gap: var(--v8-8); row-gap: var(--v8-1); align-content: start; }
  #v8 #app .v8p-duo-a > .v8-strip-f > .v8p-lg { grid-column: 2; grid-row: 1 / span 3; margin-top: 4px; }
}
#v8 #app .v8p-loy { display: flex; align-items: stretch; justify-content: space-between; gap: var(--v8-5); height: 100%; padding: var(--v8-5); border-radius: var(--v8-r-in); background: var(--v8-mint); color: var(--v8-ink); }
#v8 #app .v8p-loy p, #v8 #app .v8p-loy figure { margin: 0; }
#v8 #app .v8p-loy-w { display: flex; flex-direction: column; gap: var(--v8-4); flex: 0 1 232px; min-width: 0; }
#v8 #app .v8p-loy-h { display: flex; flex-direction: column; gap: var(--v8-1); }
#v8 #app .v8p-loy-fw { display: inline-flex; align-items: flex-start; gap: 2px; }
#v8 #app .v8p-loy .v8p-loy-fig { color: var(--v8-deep); font-size: var(--v8-fs-40); line-height: var(--v8-lh-40); font-weight: 700; letter-spacing: -0.01em; }
#v8 #app .v8p-loy-fw > svg { flex: none; fill: #2EAA4A; }
#v8 #app .v8p-loy-s1 { width: 20px; height: 22px; margin-top: -4px; }
#v8 #app .v8p-loy-s2 { width: 11px; height: 12px; margin-top: 20px; fill: #8ADC94 !important; }
#v8 #app .v8p-loy-go { display: inline-flex; align-items: center; gap: var(--v8-3); align-self: flex-start; min-height: 44px; margin-top: auto; color: var(--v8-green-t); font-weight: 700; text-decoration: none; }
#v8 #app .v8p-loy-gc { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--v8-green); transition: background-color .16s ease-out; }
#v8 #app .v8p-loy-gc svg.i { width: 20px; height: 20px; color: var(--v8-white); fill: currentColor; }
#v8 #app .v8p-loy-go:hover .v8p-loy-gc { background: var(--v8-deep); }
#v8 #app .v8p-loy-go:hover > span:last-child { text-decoration: underline; text-underline-offset: 3px; }
#v8 #app .v8p-loy-go:focus-visible { outline: var(--v8-focus); outline-offset: 0 !important; border-radius: var(--v8-r-sm); box-shadow: var(--v8-focus-glow) !important; }
#v8 #app .v8p-loy-ch { display: flex; flex-direction: column; justify-content: flex-end; gap: var(--v8-2); flex: 1 1 208px; max-width: 360px; min-width: 0; }
#v8 #app .v8p-loy-ch figcaption { color: var(--v8-ink-2); text-align: right; }
#v8 #app .v8p-loy-st { display: flex; align-items: flex-end; gap: 4px; margin: 0; padding: 0; list-style: none; }
#v8 #app .v8p-loy-st > li { display: flex; flex-direction: column; align-items: center; flex: 1 1 0; min-width: 0; margin: 0; padding: 0; border: 0; box-shadow: none; }
#v8 #app .v8p-loy-st b, #v8 #app .v8p-loy-st span { font-size: var(--v8-fs-14) !important; line-height: var(--v8-lh-14) !important; white-space: nowrap; }
#v8 #app .v8p-loy-st b { margin-bottom: 4px; font-weight: 700; color: var(--v8-ink); }
#v8 #app .v8p-loy-bar { display: block; width: 100%; height: calc(12px + 60px * var(--h)); border-radius: 6px 6px 0 0; background: #8ADC94; }
#v8 #app .v8p-loy-pc { margin-top: 6px; font-weight: 700; color: var(--v8-ink); }
#v8 #app .v8p-loy-yr { color: var(--v8-ink-2); }
#v8 #app .v8p-loy-now .v8p-loy-bar { background: var(--v8-deep); }
#v8 #app .v8p-loy-now :is(b, .v8p-loy-pc, .v8p-loy-yr) { color: var(--v8-deep); }
#v8 #app .v8p-loy-now .v8p-loy-yr { font-weight: 700; }
@container v8ploy (max-width: 439px) {
  #v8 #app .v8p-loy { flex-direction: column; gap: var(--v8-4); }
  #v8 #app .v8p-loy-bar { height: calc(12px + 44px * var(--h)); }
  #v8 #app .v8p-loy-w { display: contents; }
  #v8 #app .v8p-loy-ch { flex: none; max-width: none; order: 1; }
  #v8 #app .v8p-loy-ch figcaption { text-align: left; }
  #v8 #app .v8p-loy-go { order: 2; margin-top: 0; }
}
/* The steps rise once on the page's first render (motion.js's html.mo-enter), 60 ms apart; never under Motion: off or reduced motion */
@keyframes v8p-loy-rise { from { transform: scaleY(0); } }
html.mo-enter:not(.mo-still) #app .v8p-loy-bar { transform-origin: 50% 100%; animation: v8p-loy-rise var(--dur-4, 420ms) var(--ease-out, ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
@media (forced-colors: active) {
  #v8 #app .v8p-loy { border: 1px solid CanvasText; }
  #v8 #app .v8p-loy-bar { background: Canvas !important; border: 1px solid CanvasText; forced-color-adjust: none; }
  #v8 #app .v8p-loy-now .v8p-loy-bar { background: CanvasText !important; }
}

/* How well you're covered: the white panel (README 36: 1 px #DDDDDD inside edge, 16 corners, 32 in), its head (the line on the
   bars' colour and the hatch's key), five rows with hairlines, the foot (the estimates line and Change your answers) */
#v8 #app .v8p-cvp { container: v8pcvp / inline-size; padding: var(--v8-6); border-radius: var(--v8-r); background: var(--v8-white); box-shadow: inset 0 0 0 1px var(--v8-line); color: var(--v8-ink); }
#v8 #app .v8p-cvp p { margin: 0; }
#v8 #app .v8p-cvp-ft { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--v8-2) var(--v8-5); padding-top: var(--v8-5); color: var(--v8-ink-2); }
/* Round Q: the status words defined under the rows, before the estimate line (V8.fitDefs, base.css) */
#v8 #app .v8p-cvp > .v8-fitdefs { padding-top: var(--v8-5); }
#v8 #app .v8p-cvp-ft > p { flex: 1 1 320px; max-width: var(--v8-measure); }
#v8 #app .v8p-cvp-ft .v8-link { white-space: nowrap; }
#v8 #app .v8p-cv-key { display: flex; flex-wrap: wrap; gap: var(--v8-1) var(--v8-4); margin: 0; padding: 0; list-style: none; color: var(--v8-ink-2); }
#v8 #app .v8p-cv-key li { display: inline-flex; align-items: center; gap: var(--v8-2); }
#v8 #app .v8p-cv-key i { display: inline-block; width: 24px; height: 12px; border-radius: 2px; background: var(--c); }
/* 19 October 2026: one header row and four columns (the risk and its case, the bar with what we'd pay and the fix, the status,
   what stays with her). Rows 24 apart with hairlines; the header row's words are secondary and said once */
#v8 #app .v8p-rks { margin: 0; padding: 0; list-style: none; }
#v8 #app .v8p-rk { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 132px 112px; grid-template-areas: "n b s l"; column-gap: var(--v8-5); align-items: start; padding: var(--v8-5) 0; border-top: 1px solid var(--v8-line); }
#v8 #app .v8p-rk-n { grid-area: n; } #v8 #app .v8p-rk-b { grid-area: b; } #v8 #app .v8p-rk-s { grid-area: s; } #v8 #app .v8p-rk-l { grid-area: l; }
#v8 #app .v8p-rk-hd { padding: 0 0 var(--v8-3); border-top: 0; align-items: end; color: var(--v8-ink-2); }
#v8 #app .v8p-rk-hd > :first-child { grid-area: n; } #v8 #app .v8p-rk-hd > .v8p-cv-key { grid-area: b; } #v8 #app .v8p-rk-hd > :nth-child(3) { grid-area: s; }
#v8 #app .v8p-rk-hd > .v8p-rk-hl { grid-area: l; text-align: right; }
#v8 #app .v8p-rk:last-child { border-bottom: 1px solid var(--v8-line); }
#v8 #app .v8p-rk-n { display: grid; justify-items: start; gap: 4px; min-width: 0; }
#v8 #app .v8p-rk-n h3 { margin: 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 .v8p-case { color: var(--v8-ink-2); }
#v8 #app .v8p-fit { display: flex; align-items: center; gap: 6px; color: var(--v8-ink); }
#v8 #app .v8p-fit svg { flex: none; width: 20px; height: 20px; color: var(--v8-green); }
#v8 #app .v8p-fit:is(.v8p-fit-gap, .v8p-fit-under, .v8p-fit-over) { font-weight: 700 !important; }
#v8 #app .v8p-fit-gap svg { color: var(--v8-red); }
#v8 #app .v8p-fit:is(.v8p-fit-under, .v8p-fit-over) svg { color: var(--v8-ink); }
#v8 #app .v8p-rk-b { display: grid; justify-items: start; gap: var(--v8-2); min-width: 0; padding-top: 4px; }
#v8 #app .v8p-rk-b > p { max-width: var(--v8-measure); }
#v8 #app .v8p-paid { color: var(--v8-ink-2); }
#v8 #app .v8p-paid b { font-weight: 400 !important; color: var(--v8-ink); }
#v8 #app .v8p-bar { display: flex; gap: 2px; justify-self: stretch; height: 16px; }
#v8 #app .v8p-bar > i { display: block; flex: none; min-width: 4px; border-radius: 2px; background: var(--c); }
#v8 #app .v8p-fix { color: var(--v8-ink); }
/* A link inside a sentence wraps as text */
#v8 #app .v8p-fix .v8-link { display: inline; }
/* A fix link alone on its line is a 44 target: 10 above and below, taken back by the margin */
#v8 #app .v8p-fix > .v8-link:only-child { display: inline-block; padding-block: 10px; margin-block: -10px; }
#v8 #app .v8p-rk-l { display: grid; gap: 4px; margin: 0; text-align: right; }
#v8 #app .v8p-rk-l b { color: var(--v8-ink); font-size: var(--v8-fs-20) !important; line-height: var(--v8-lh-20) !important; font-weight: 700 !important; }
#v8 #app .v8p-rk-right .v8p-rk-l b { color: var(--v8-ink-2); }
/* Wide, the column header says "left with you" once; the row's own words stay for screen readers */
#v8 #app .v8p-rk-ll { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@container v8pcvp (max-width: 879px) { #v8 #app .v8p-rk { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 120px 96px; } }
/* Narrow: the header row goes; the risk with its status under the case, what stays with her at the right, the bar across */
@container v8pcvp (max-width: 639px) {
  #v8 #app .v8p-rk-hd { display: none; }
  #v8 #app .v8p-rk { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n l" "s s" "b b"; row-gap: var(--v8-3); }
  #v8 #app .v8p-rks > .v8p-rk:first-child { border-top: 0; padding-top: 0; }
  #v8 #app .v8p-rk-ll { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; color: var(--v8-ink-2); }
}
@media (max-width: 639px) { #v8 #app .v8p-cvp { padding: var(--v8-5) var(--v8-4); } }

/* Forced colours: marks keep their shapes; fills become the system's ink, the hatch keeps its lines; the panel keeps a frame */
@media (forced-colors: active) {
  #v8 #app :is(.v8p-sw, .v8p-dot, .v8p-bar i, .v8p-cv-key i):is(.v8p-d1, .v8p-d2, .v8p-d3, .v8p-d4, .v8p-d5), #v8 #app .v8p-ring path:not(.v8p-rg-edge) { background: CanvasText; fill: CanvasText; forced-color-adjust: none; }
  #v8 #app i.v8p-left { background: repeating-linear-gradient(-45deg, CanvasText 0 1.5px, Canvas 1.5px 5px); box-shadow: inset 0 0 0 1px CanvasText; forced-color-adjust: none; }
  #v8 #app .v8p-fit svg { color: CanvasText; }
  #v8 #app .v8p-cvp { outline: 1px solid CanvasText; outline-offset: -1px; }
}

/* The package in the policy page's facts row (18 October 2026, Janne: "the package should be at the top-right corner"): the meter
   as the last fact's value, its word set like the other values (20 Bold, the meter's deep green), the capsule centred on the
   word's line; "Package" under it like every fact's label */
#v8 #app .v8-frow .v8-frow-v .v8-meter { align-items: center; font-size: var(--v8-fs-20) !important; line-height: var(--v8-lh-20) !important; }
#v8 #app .v8-frow .v8-frow-v .v8-meter .v8-mt-cap { margin-top: 0; }
#v8 #app .v8-frow .v8-frow-v .v8-meter .v8-mt-w { color: var(--v8-deep); font-weight: 700 !important; }

/* 44 targets for the links that stand alone (View claim, a past claim's name, Change your answers) without moving the layout:
   10 above and below, taken back by the margin. Links inside a sentence (the fixes) wrap as text */
#v8 #app :is(.v8p-cc-a, .v8p-pr-n, .v8p-cvp-ft .v8-link) { display: inline-block; padding: 10px 0; margin: -10px 0; }
/* Your insured amounts, smaller (20 October 2026, Janne: "can u make smaller"): 16 / 20 in, the amount 20 Bold with its words 16
   secondary under it; a row with nothing to fix is only as wide as its words (at least 280), not the panel's width */
#v8 #app .v8p-amt { padding: var(--v8-4) var(--v8-5); border-radius: var(--v8-r-in); }
#v8 #app .v8p-amt .v8-fig > b { font-size: var(--v8-fs-20) !important; line-height: var(--v8-lh-20) !important; font-weight: 700 !important; }
#v8 #app .v8p-amt .v8-fig > span { max-width: 40ch; }
#v8 #app .v8p-amt.v8p-amt-ok { justify-self: start; width: fit-content; min-width: 280px; max-width: 100%; }
/* Each half of the Policies hero says what it is (20 October 2026, Janne: "u constantly take away titles. its not clear on the
   right its loyalty program, nor left that its the price u pay"): "Your price" and "Loyalty discount", 20 Bold ink, 16 above */
#v8 #app .v8p-duo-t { margin: 0 0 var(--v8-4); color: var(--v8-ink); font-size: var(--v8-fs-20) !important; line-height: var(--v8-lh-20) !important; font-weight: 700 !important; }
#v8 #app .v8p-duo-a { display: block !important; }
#v8 #app .v8p-duo-ar { display: flex; align-items: flex-start; gap: var(--v8-4); }
/* push: also answers to the page area's width (branch ai-drawer README, the push layout) */
@media (min-width: 1200px) { @container app (min-width: 1200px) { #v8 #app .v8p-duo-a { padding-top: var(--v8-5); } } }   /* the two titles on one line with the mint card's inset */

/* No container in a container (20 October 2026, Janne: "this has fallen downwards. i think the container in container on the
   right doesnt work"): the loyalty half loses its mint card; it sits on the white plate like the price half, its title on the
   price's title line, the staircase in its own greens. A hairline between the halves when they sit side by side */
#v8 #app .v8p-loy { padding: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
/* push: this query never matched before (nothing above .v8p-duo-b was a container); #app is one now, so it is pinned to a name no element has, to keep it as it was */
@container v8p-duo-none (min-width: 900px) { #v8 #app .v8p-duo-b { padding-left: var(--v8-6); box-shadow: inset 1px 0 0 var(--v8-line); } }
#v8 #app .v8p-duo { align-items: start; }
/* Both halves start on the same top line: the price half's 24 of top padding matched the old mint card and goes with it */
#v8 #app .v8p-duo-a { padding-top: 0 !important; }
/* The staircase starts on the figure's line, not the title's (Janne: "The top of the bar chart should be aligned with the number
   ... so that the title is kind of signifying both items below"): pushed down by the title and its gap (56) */
#v8 #app .v8p-loy .v8p-loy-ch { justify-content: flex-start !important; margin-top: 56px !important; }

/* ---------- The loyalty steps in the chart well (22 October 2026, README 79) ----------
   The figure is a well (chart-well.css) on the plate; each step a soft chubby bar (two thirds of its column, so about 1.5 times the
   space beside it; 4 px corners all round), rising with the rate as before; this year's filled olive, the years ahead soft with the
   olive edge (the euros and the rate say every value). The now year's words stay deep green and Bold. The caption is the well's ink */
#v8 #app .v8p-loy-ch.v8-chartwell { padding: var(--v8-3) var(--v8-3) var(--v8-2); }
#v8 #app .v8p-loy-st .v8p-loy-bar.v8-cw-u { width: 66%; border-radius: 4px; background: var(--v8-cw-mark); }
#v8 #app .v8p-loy-st .v8p-loy-bar.v8-cw-soft { background: var(--v8-cw-soft); }
#v8 #app .v8p-loy-ch.v8-chartwell figcaption { color: var(--v8-cw-ink); }

/* The price ring in the chart well (22 October 2026, README 79): the 72 slot is a well, the ring 54 inside it (8 of padding, 1 of
   outline). Chubby bars were tried and left: at this size the smallest policy became a sliver. The legend's swatches are rounded
   squares (no circles, README 70) */
#v8 #app .v8-chartwell.v8p-ringw { box-sizing: border-box; display: grid; place-items: center; width: 100%; height: 100%; padding: var(--v8-2); }
#v8 #app .v8p-ringw > svg.v8p-ring { width: 100%; height: 100%; }
#v8 #app i.v8p-dot { border-radius: 3px; }

/* ---------- The hero as a lime tray, 22 October 2026 (README 134, Jordi's round) ---------- */
/* The tray's corner is the cards' plus its 8 band, so the lime runs one even width round and between them */
#v8 #app .v8-hero-nav > .v8-hero-base > .v8-plate.v8p-tray, #v8 #app .v8-plate.v8p-tray { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: var(--v8-2); padding: var(--v8-2); border: 0; border-radius: calc(var(--v8-r-in) + var(--v8-2)); background: var(--v8-lime); box-shadow: 0 0 0 1px color-mix(in srgb, var(--v8-lime-edge) 22%, transparent); }
#v8 #app .v8p-tc { display: flex; flex-direction: column; gap: var(--v8-5); min-width: 0; padding: var(--v8-5); border-radius: var(--v8-r-in); background: var(--v8-white); box-shadow: 0 0 0 1px rgb(0 0 0 / .06); }
#v8 #app .v8p-tc-h { display: flex; flex-direction: column; gap: var(--v8-4); }
#v8 #app .v8p-tc-t { margin: 0; color: var(--v8-ink); font-size: var(--v8-fs-20); line-height: var(--v8-lh-20); font-weight: 700; }
#v8 #app .v8p-tc-f { display: flex; flex-direction: column; gap: var(--v8-1); margin: 0; color: var(--v8-ink); }
#v8 #app .v8p-tc-fig { color: var(--v8-deep); font-size: var(--v8-fs-40); line-height: var(--v8-lh-40); font-weight: 700; letter-spacing: -.015em; }
/* The price donut fills the card under its line; pdPlace() centres the ring and sets each label beside its slice */
#v8 #app .v8p-pd { position: relative; flex: 1 1 auto; min-height: 216px; margin: 0; }
#v8 #app .v8p-pd-r { position: absolute; overflow: visible; }
#v8 #app .v8p-pd-s { stroke: var(--c); stroke-linejoin: round; }
#v8 #app .v8p-pd-o { fill: none; stroke: var(--c); }
#v8 #app .v8p-d0 { --c: var(--v8-line-2); fill: var(--v8-line-2); }
#v8 #app .v8p-pd-ln { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--v8-off); stroke-width: 1; }
#v8 #app .v8p-pd-l { margin: 0; padding: 0; list-style: none; }
#v8 #app .v8p-pd:not(.is-list) .v8p-pd-l > li { position: absolute; top: 0; display: flex; flex-direction: column; }
#v8 #app .v8p-pd:not(.is-list) .v8p-pd-l i { display: none; }
#v8 #app .v8p-pd-l b { color: var(--v8-ink); font-weight: 700; }
#v8 #app .v8p-pd-l span { color: var(--v8-ink-2); font-size: var(--v8-fs-14); line-height: var(--v8-lh-14); }
/* A narrow card: the ring centred, the policies listed under it */
#v8 #app .v8p-pd.is-list { display: flex; flex-direction: column; align-items: center; gap: var(--v8-5); min-height: 0; }
#v8 #app .v8p-pd.is-list .v8p-pd-r { position: static; }
#v8 #app .v8p-pd.is-list .v8p-pd-ln { display: none; }
#v8 #app .v8p-pd.is-list .v8p-pd-l { align-self: stretch; display: flex; flex-direction: column; gap: var(--v8-2); }
#v8 #app .v8p-pd.is-list .v8p-pd-l > li { display: flex; align-items: center; gap: var(--v8-3); }
#v8 #app .v8p-pd.is-list .v8p-pd-l i { flex: none; width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
#v8 #app .v8p-pd.is-list .v8p-pd-l span { order: 2; flex: 1 1 auto; min-width: 0; font-size: var(--v8-fs-16); line-height: var(--v8-lh-16); }
#v8 #app .v8p-pd.is-list .v8p-pd-l b { order: 3; font-weight: 400 !important; white-space: nowrap; }   /* base.css bolds every b */
@media (forced-colors: active) {
  #v8 #app .v8p-tray, #v8 #app .v8p-tc { border: 1px solid CanvasText; }
  #v8 #app .v8p-pd-s { fill: CanvasText; stroke: CanvasText; forced-color-adjust: none; }
  #v8 #app .v8p-pd-o { stroke: CanvasText; forced-color-adjust: none; }
}
/* The loyalty discount as slabs: each year a dotted container hugging its slabs. Its corner is the slabs' 6 plus the 4 inset and
   the 2 border, so the corners match */
#v8 #app .v8p-tc-fw { display: inline-flex; align-items: flex-start; gap: 2px; }
#v8 #app .v8p-tc-fw > svg { flex: none; }
#v8 #app .v8p-tc-s1 { width: 18px; height: 20px; margin-top: -2px; fill: var(--v8-deep); }
#v8 #app .v8p-tc-s2 { width: 10px; height: 11px; margin-top: 22px; fill: var(--v8-pressed); }
#v8 #app .v8p-sl { display: flex; flex-direction: column; gap: var(--v8-2); margin: auto 0 0; }
#v8 #app .v8p-sl ol { display: flex; align-items: flex-end; gap: var(--v8-3); margin: 0; padding: 0; list-style: none; }
#v8 #app .v8p-sl li { display: flex; flex-direction: column; flex: 1 1 0; min-width: 0; text-align: center; }
#v8 #app .v8p-sl li > b { margin-bottom: 6px; color: var(--v8-deep); }
#v8 #app .v8p-sl-box { display: flex; flex-direction: column-reverse; gap: var(--v8-1); padding: var(--v8-1); border: 2px dotted var(--v8-off); border-radius: 12px; }
#v8 #app .v8p-sl-box > i { height: 16px; border-radius: var(--v8-r-tag); background: var(--v8-pressed); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); }
#v8 #app .v8p-sl li.is-now .v8p-sl-box > i, #v8 #app .v8p-sl figcaption i.is-now { background: var(--v8-t-mid); }
#v8 #app :is(.v8p-sl-yr, .v8p-sl-pc) { color: var(--v8-ink-2); font-size: var(--v8-fs-14); line-height: var(--v8-lh-14); }
#v8 #app .v8p-sl-yr { margin-top: var(--v8-2); }
#v8 #app .v8p-sl figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: var(--v8-2) var(--v8-4); margin-top: var(--v8-2); color: var(--v8-ink); font-size: var(--v8-fs-14); line-height: var(--v8-lh-14); }
#v8 #app .v8p-sl figcaption > span { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
#v8 #app .v8p-sl figcaption i { width: 18px; height: 8px; border-radius: 3px; background: var(--v8-pressed); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); }
#v8 #app .v8p-sl figcaption > .v8p-sl-tp { margin-left: auto; font-weight: 400; }
@media (forced-colors: active) {
  #v8 #app .v8p-sl-box { border-color: CanvasText; }
  #v8 #app .v8p-sl-box > i, #v8 #app .v8p-sl figcaption i { background: Canvas; border: 1px solid CanvasText; forced-color-adjust: none; }
  #v8 #app .v8p-sl li.is-now .v8p-sl-box > i, #v8 #app .v8p-sl figcaption i.is-now { background: CanvasText; }
}
/* The loyalty columns dashed, with 2 px corners (Janne, 22 October 2026: "I don't want that to be a dotted line. It should be a
   dashed line, consistent with the style we use elsewhere ... I would only put the rounding at 2 px, including the thing outside
   of it"). The portal's dashed edge (rest.css, the could-add cards and the policy page's dashed box: an SVG line, 2 px, 8 dashes
   and 6 gaps, since the browser's own dashes are short and close) in the same gray as before, corners 2; the slabs inside 2 too.
   The key under the chart runs from the first column's left edge to the last column's right edge (This year starts where the
   2026 column's line starts; At today's prices ends where the 2030 column's line ends) */
#v8 #app .v8p-sl-box { border: 0 !important; border-radius: 2px !important; padding: calc(var(--v8-1) + 2px) !important; background-repeat: no-repeat;
  background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect x='1' y='1' width='calc(100%25 - 2px)' height='calc(100%25 - 2px)' rx='2' fill='none' stroke='%23ADADAD' stroke-width='2' stroke-dasharray='8 6'/%3e%3c/svg%3e"); }
#v8 #app .v8p-sl-box > i { border-radius: 2px !important; }
#v8 #app .v8p-sl figcaption i { border-radius: 2px; }
#v8 #app .v8p-sl figcaption { padding: 0; }
@media (forced-colors: active) { #v8 #app .v8p-sl-box { border: 2px dashed CanvasText !important; background-image: none; } }
/* ---------- The hero, compact, 22 October 2026 (README 149, Jordi's round) ----------
   Claims' compact cards (claims.css, "The hero's two cards on the lime tray") on Policies: one slot for both charts, the slabs'
   width, the donut centred in it */
#v8 #app .v8p-trayc { --v8p-ls-edge: #C9C9C9; }   /* fainter than --v8-off, a fine 1 px dash */
#v8 #app .v8p-trayc .v8c-tc2-a { width: 184px; }
#v8 #app .v8p-cn { background: var(--v8-t-mid); }
#v8 #app .v8p-cd-s { stroke: var(--c); stroke-linejoin: round; }
#v8 #app .v8p-cd-o { fill: none; stroke: var(--c); }
#v8 #app .v8p-ls { flex: none; overflow: visible; margin-bottom: -28px; }   /* the rates hang below the centred boxes */
#v8 #app .v8p-ls-box { fill: transparent; stroke: var(--v8p-ls-edge); stroke-width: 1; stroke-dasharray: 2 2; }
#v8 #app .v8p-ls .is-now { fill: var(--v8-t-mid); }
#v8 #app .v8p-ls .is-ahead { fill: var(--v8-pressed); }
@media (forced-colors: active) {
  #v8 #app .v8p-cn { forced-color-adjust: none; background: CanvasText; }
  #v8 #app .v8p-cd-s { fill: CanvasText; stroke: CanvasText; forced-color-adjust: none; }
  #v8 #app .v8p-cd-o { stroke: CanvasText; forced-color-adjust: none; }
  #v8 #app .v8p-ls-box { stroke: CanvasText; forced-color-adjust: none; }
  #v8 #app .v8p-ls .is-now { fill: CanvasText; forced-color-adjust: none; }
  #v8 #app .v8p-ls .is-ahead { fill: Canvas; stroke: CanvasText; forced-color-adjust: none; }
}
/* The price's key (Jordi: no policy only in a tip) and the loyalty chart: beside where the card is wide enough, a row under the figure where
   it isn't (a card under 480 wide: one column under 480 of tray, two columns from 888 to 967) */
#v8 #app .v8p-trayc { container: v8ptray / inline-size; }
#v8 #app .v8p-ck { display: flex; flex-direction: column; align-self: center; gap: 0; margin: 0 0 0 auto; padding: 0; list-style: none; color: var(--v8-ink-2); font-size: var(--v8-fs-14); line-height: var(--v8-lh-14); }
#v8 #app .v8p-ck li { display: flex; align-items: center; gap: var(--v8-2); white-space: nowrap; }   /* four 20 rows: the donut's 80 */
#v8 #app .v8p-ck li > span { flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
#v8 #app .v8p-trayc .v8p-ck + .v8c-tc2-a { width: 80px; }
@container v8ptray (max-width: 479px) {
  #v8 #app .v8p-tc:has(> .v8p-ck) { flex-wrap: wrap; row-gap: var(--v8-4); }
  #v8 #app .v8p-ck { order: 3; flex: 1 0 100%; flex-direction: row; flex-wrap: wrap; gap: var(--v8-1) var(--v8-4); margin: 0; }
  #v8 #app .v8p-tc:has(.v8p-ls) { flex-wrap: wrap; row-gap: var(--v8-5); }
  #v8 #app .v8p-tc:has(.v8p-ls) > .v8c-tc2-a { order: 3; flex: 1 0 100%; justify-content: flex-start; }
  #v8 #app .v8p-ls { margin-bottom: 0; }
}
@container v8ptray (min-width: 888px) and (max-width: 967px) {
  #v8 #app .v8p-tc:has(> .v8p-ck) { flex-wrap: wrap; row-gap: var(--v8-4); }
  #v8 #app .v8p-ck { order: 3; flex: 1 0 100%; flex-direction: row; flex-wrap: wrap; gap: var(--v8-1) var(--v8-4); margin: 0; }
  #v8 #app .v8p-tc:has(.v8p-ls) { flex-wrap: wrap; row-gap: var(--v8-5); }
  #v8 #app .v8p-tc:has(.v8p-ls) > .v8c-tc2-a { order: 3; flex: 1 0 100%; justify-content: flex-start; }
  #v8 #app .v8p-ls { margin-bottom: 0; }
}
@media (forced-colors: active) { #v8 #app .v8p-ck li > span { forced-color-adjust: none; background: CanvasText; } }
/* A slice opens its policy: the pointer says so, focus takes the system ring as Claims' calendar days; nothing else changes on
   hover (README 147) */
#v8 #app .v8p-trayc .v8c-dn a :is(path, circle) { cursor: pointer; }
#v8 #app .v8p-trayc .v8c-dn a:focus-visible { outline: var(--v8-focus); outline-offset: 0 !important; box-shadow: var(--v8-focus-glow) !important; }
#v8 #app .v8p-ls text { fill: var(--v8-ink-2); font-size: 14px; font-family: inherit; }   /* SVG, which the type guard skips: 14, the smallest size (README 194) */
#v8 #app .v8p-ls text.is-now { fill: var(--v8-ink-2); font-weight: 700 !important; }   /* this year's rate, as its dark slab; components.css sets #app * to 400 !important */
/* The loyalty slabs larger by height (README 158): the rates at 16, on the type scale, hanging 28 below the boxes */
html#v8 #app .v8p-ls text { font-size: var(--v8-fs-16, 16px) !important; }

/* README 206, the viewer's head (Janne, 9 November 2026: "there should be more padding at the top and sides ... are those buttons
   correct? They look too big ... that opening-a-new-tab icon looks way too faint compared to the size of the font"): 32 at the top,
   the bottom and the left, 24 at the right beside Close (above: padding); Download and Email at the page's secondary size, 40 high
   with 16 at the sides, as Get a certificate on the policy page (above: .dv-act); the new-tab icon 20, the link's own size and
   green, so it weighs as much as the Bold words (above: .v8-dv-new svg.i) */
