/* Policies' insurance cards in the calm comparison style (README 63), a variant behind ?policies=k before the hash
   (21 October 2026, night; README 64). Janne agreed: keep the type (card name 20 Bold, the line 16, package and price 16); calm
   the container: white, one 1 px --v8-line stroke instead of the gray fill, 12 corners (the compact scale's card radius), the
   illustration at 48 instead of 64, the round green arrow as Claims' subtle arrow (?claims=flow: no disc at rest, a round green
   wash with the card's hover), the package meter's word and the price line in ink. "Your policies" and "Policies you could add"
   are large section titles, 24 Bold ink (rule 63.8: their cards carry 20 titles). Could-add cards keep the dashed edge, on white.
   Scoped to html[data-policies="k"] (set by the inline script in prototype/index.html) and to the two sections of #/cover, so
   without the flag, and on Home's and the purchase's policy cards, nothing changes. type-scale.js lets these two 24 headings be.
   No font-size inside a media query. */

/* ---------- The section titles: large, 24 Bold ink (both scales) ---------- */
html#v8[data-policies="k"] #app section:is([aria-labelledby="v8p-pol-h"], [aria-labelledby="v8p-add-h"]) > .v8-sh h2.v8-h2 {
  font-size: var(--v8c-fs-24) !important; line-height: var(--v8c-lh-24) !important; letter-spacing: -0.01em; font-weight: 700 !important; color: var(--v8-ink); }

/* ---------- The card: white, a 1 px hairline, 12 corners, no fixed height (the row's grid evens them) ---------- */
html#v8[data-policies="k"] #app section:is([aria-labelledby="v8p-pol-h"], [aria-labelledby="v8p-add-h"]) .v8-pc {
  min-height: 0; border-radius: var(--v8c-r) !important; background: var(--v8-white) !important; box-shadow: inset 0 0 0 1px var(--v8-line) !important; }
/* The illustration at 48, and 24 between it and the name (the 64 art had 32) */
html#v8[data-policies="k"] #app section:is([aria-labelledby="v8p-pol-h"], [aria-labelledby="v8p-add-h"]) .v8-pc-art { width: 48px; height: 48px; }
html#v8[data-policies="k"] #app section:is([aria-labelledby="v8p-pol-h"], [aria-labelledby="v8p-add-h"]) .v8-pc-art :is(img, svg) { width: 48px !important; height: 48px !important; }
html#v8[data-policies="k"] #app section:is([aria-labelledby="v8p-pol-h"], [aria-labelledby="v8p-add-h"]) .v8-pc-tx { padding-top: var(--v8-5) !important; }
/* The package meter's word and the price line in regular ink (63.3: the text after a marker is regular ink, never coloured) */
html#v8[data-policies="k"] #app section:is([aria-labelledby="v8p-pol-h"], [aria-labelledby="v8p-add-h"]) .v8-pc .v8-meter .v8-mt-w { color: var(--v8-ink); font-weight: 400 !important; }
html#v8[data-policies="k"] #app section:is([aria-labelledby="v8p-pol-h"], [aria-labelledby="v8p-add-h"]) .v8-pc .v8-price { color: var(--v8-ink); }

/* ---------- The arrow: Claims' subtle arrow (claims-flow.css 257), no disc at rest; the card's hover and focus give it a round
   green wash and the deep arrow. It stays a cue inside the one link, not a second target ---------- */
html#v8[data-policies="k"] #app section:is([aria-labelledby="v8p-pol-h"], [aria-labelledby="v8p-add-h"]) .v8-pc .v8-arrow { background: transparent; box-shadow: none; color: var(--v8-green-t); }
html#v8[data-policies="k"] #app section:is([aria-labelledby="v8p-pol-h"], [aria-labelledby="v8p-add-h"]) a.v8-pc:is(:hover, :focus-visible) .v8-arrow { background: var(--v8-pressed); color: var(--v8-deep); }

/* ---------- Hover and press: the whole card is one link, so the card takes the green wash (the stroke steps aside) ---------- */
@media (hover: hover) {
  html#v8[data-policies="k"] #app section:is([aria-labelledby="v8p-pol-h"], [aria-labelledby="v8p-add-h"]) a.v8-pc:hover { background: var(--v8-hover) !important; box-shadow: none !important; }
}
html#v8[data-policies="k"] #app section:is([aria-labelledby="v8p-pol-h"], [aria-labelledby="v8p-add-h"]) a.v8-pc:active { background: var(--v8-pressed) !important; box-shadow: none !important; }

/* ---------- Could add: white, the dashed edge (rest.css's 10/7 dashes) redrawn at the 12 corners; the wash and green dashes on
   hover. No hairline: the dashes are its edge ---------- */
html#v8[data-policies="k"] #app section:is([aria-labelledby="v8p-pol-h"], [aria-labelledby="v8p-add-h"]) .v8-pc.v8-pc-add { box-shadow: none !important; background-color: var(--v8-white) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect width='100%25' height='100%25' fill='none' rx='12' ry='12' stroke='%232EAA4A' stroke-width='4' stroke-dasharray='10 7'/%3E%3C/svg%3E") !important; }
@media (hover: hover) {
  html#v8[data-policies="k"] #app section:is([aria-labelledby="v8p-pol-h"], [aria-labelledby="v8p-add-h"]) a.v8-pc.v8-pc-add:hover { background-color: var(--v8-hover) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect width='100%25' height='100%25' fill='none' rx='12' ry='12' stroke='%2300700B' stroke-width='4' stroke-dasharray='10 7'/%3E%3C/svg%3E") !important; }
}

/* Forced colours draw the hairline as a real border, since the inset shadow disappears there */
@media (forced-colors: active) {
  html#v8[data-policies="k"] #app section:is([aria-labelledby="v8p-pol-h"], [aria-labelledby="v8p-add-h"]) .v8-pc:not(.v8-pc-add) { outline: 1px solid CanvasText !important; outline-offset: -1px; }
}

/* One column on a phone: the name holds one line, so it drops base's two-line floor (rest.css, there to line up titles in a row) */
@media (max-width: 599px) {
  html#v8[data-policies="k"] #app section:is([aria-labelledby="v8p-pol-h"], [aria-labelledby="v8p-add-h"]) .v8-pc .v8-pc-tx > .v8-cn { min-height: 0; }
}
