/* system/v8/cov-open.css (branch-cov-open only): the Coverages section as a thin list that opens in place, ?cov=a|b|c.
   Only app/v8-cov-open.js draws these classes (cvo-). Type 12, 16, 20 at 400 and 700; no font-size in a media or container
   query; radii 16 (the section), 12 (a container in it), 8 (a row's hover). */

/* ---------- The row: the whole row is one button, about 52 high ---------- */
#v8 #app .cvo-l { margin: 0; padding: 0; list-style: none; min-width: 0; }
#v8 #app .cvo-r { min-width: 0; }
#v8 #app .cvo-r-h { margin: 0; font-size: inherit !important; line-height: inherit !important; }
#v8 #app .cvo-r-b { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto 20px; align-items: center; column-gap: var(--v8-3); width: 100%; min-height: 52px; margin: 0; padding: var(--v8-3) var(--v8-4);
  border: 0; border-radius: 0; background: none; color: var(--v8-ink); font: inherit; text-align: left; cursor: pointer; transition: background-color .16s ease-out; }
#v8 #app .cvo-r-ic { display: grid; place-items: center; width: 20px; height: 20px; }
#v8 #app .cvo-r-ic svg.i { width: 20px; height: 20px; color: var(--v8-green-t); }
#v8 #app .cvo-r-t { min-width: 0; color: var(--v8-ink); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; font-weight: 400 !important; overflow-wrap: break-word; }
#v8 #app .cvo-r-end { justify-self: end; color: var(--v8-ink-2); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; font-weight: 400 !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
#v8 #app .cvo-r-ch { display: grid; place-items: center; width: 20px; height: 20px; color: var(--v8-green-t); transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
#v8 #app .cvo-r-ch svg.i { width: 20px; height: 20px; color: currentColor; }
#v8 #app .cvo-r.on .cvo-r-ch { transform: rotate(180deg); }
#v8 #app .cvo-r.on .cvo-r-t { font-weight: 700 !important; }
@media (hover: hover) { #v8 #app .cvo-r-b:hover { background: var(--v8-hover); } }
#v8 #app .cvo-r-b:active { background: var(--v8-pressed); }
#v8 #app .cvo-r-b:focus-visible { outline: var(--v8-focus) !important; outline-offset: -2px !important; box-shadow: var(--v8-focus-glow-in) !important; }
#v8 #app .cvo-r-p[hidden] { display: none; }
/* The opened cover: indented under the name (16 + 20 + 12) */
#v8 #app .cvo-r-in { padding: var(--v8-2) var(--v8-5) var(--v8-6) 48px; }

/* The narrow list (a column under 360, or a phone): the limit leaves the row; the panel holds it */
#v8 #app .cvo-lw { container: cvol / inline-size; min-width: 0; }
@container cvol (max-width: 359px) {
  #v8 #app .cvo-r-b { grid-template-columns: 20px minmax(0, 1fr) 20px; }
  #v8 #app .cvo-r-end { display: none; }
  #v8 #app .cvo-r-in { padding: var(--v8-2) var(--v8-4) var(--v8-5); }
}

/* ---------- A cover's detail ---------- */
#v8 #app .cvo-dw { container: cvod / inline-size; }
#v8 #app .cvo-d { display: grid; gap: var(--v8-5); color: var(--v8-ink); }
#v8 #app .cvo-d p { margin: 0; }
#v8 #app .cvo-d-a { display: grid; align-content: start; gap: var(--v8-4); min-width: 0; }
#v8 #app .cvo-d-x { min-width: 0; }
#v8 #app .cvo-d-x .v8p-exs { margin-top: 0; border-radius: var(--v8-r-in); }
#v8 #app .cvo-d-what { max-width: 60ch; }
#v8 #app .cvo-figs { display: flex; flex-wrap: wrap; gap: var(--v8-4) var(--v8-7); margin: 0; padding: 0; }
#v8 #app .cvo-figs > div { display: flex; flex-direction: column-reverse; gap: 2px; min-width: 0; }
#v8 #app .cvo-figs dt { color: var(--v8-ink-2); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; font-weight: 400 !important; }
#v8 #app .cvo-figs dd { margin: 0; color: var(--v8-ink); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; font-weight: 700 !important; font-variant-numeric: tabular-nums; }
#v8 #app .cvo-d .v8-xd-more { margin: 0 !important; }
#v8 #app .cvo-up { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--v8-4) var(--v8-5); padding: var(--v8-4) var(--v8-5); border-radius: var(--v8-r-in); background: var(--v8-mint); }
#v8 #app .cvo-up p { flex: 1 1 240px; max-width: var(--v8-measure); }
#v8 #app .cvo-ai .v8p-ai { min-height: 64px; }
/* The examples' two parts side by side when there is room */
@container cvod (min-width: 600px) {
  #v8 #app .cvo-d .v8p-exs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--v8-6); }
  #v8 #app .cvo-d .v8p-exs-h { grid-column: 1 / -1; }
  #v8 #app .cvo-d .v8p-exs-h + .v8p-exs-p { padding-top: var(--v8-5); border-top: 1px solid var(--v8-line); }
}
/* Wide (c's full-width panel): what it pays, the figures and the assistant on the left, the examples on the right */
@container cvod (min-width: 900px) {
  #v8 #app .cvo-d-2 { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); grid-template-rows: auto 1fr; column-gap: var(--v8-7); align-items: start; }
  #v8 #app .cvo-d-2 > .cvo-d-a { grid-area: 1 / 1; }
  #v8 #app .cvo-d-2 > .cvo-ai { grid-area: 2 / 1; }
  #v8 #app .cvo-d-2 > .cvo-d-x { grid-area: 1 / 2 / span 2; }
}

/* Upgrade your plan once on screen */
#v8 #app .cvo-grp-up[hidden] { display: none; }
#v8 #app .cvo-grp-up .v8-panel-row { margin-top: var(--v8-4); }
#v8 #app .v8-panel-g > .v8-h3 + .cvo-lw, #v8 #app .cvo-sec .v8-panel-h + .cvo-lw { margin-top: var(--v8-4) !important; }

/* ---------- a: the hairline list in one white card; two columns on a wide section ---------- */
#v8 #app .cvo-m-a .cvo-lw, #v8 #app .cvo-m-c .cvo-lw { border-radius: var(--v8-r-in); background: var(--v8-white); overflow: hidden; }
#v8 #app .cvo-m-a .cvo-r + .cvo-r { border-top: 1px solid var(--v8-line); }
#v8 #app .cvo-m-a .cvo-r.on .cvo-r-b, #v8 #app .cvo-m-c .cvo-r.on .cvo-r-b { background: var(--v8-mint); }
#v8 #app .cvo-sec .cvo-cols { display: grid; grid-template-columns: minmax(0, 1fr); }
@container cvosec (min-width: 760px) {
  #v8 #app .cvo-sec .cvo-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  #v8 #app .cvo-m-a .cvo-cols > .cvo-l + .cvo-l { border-left: 1px solid var(--v8-line); }
  #v8 #app .cvo-m-b .cvo-cols { column-gap: var(--v8-4); }
}
@container cvosec (max-width: 759px) {
  #v8 #app .cvo-m-a .cvo-cols > .cvo-l + .cvo-l { border-top: 1px solid var(--v8-line); }
  #v8 #app .cvo-m-b .cvo-cols > .cvo-l + .cvo-l { margin-top: var(--v8-2); }
}
#v8 #app .cvo-sec { container: cvosec / inline-size; }
/* Covers she doesn't have: the list card has no fill and the dotted edge */
#v8 #app .cvo-m-a .cvo-lw-out, #v8 #app .cvo-m-c .cvo-lw-out { background: transparent; outline: 2px dotted var(--v8-field); outline-offset: -2px; }
#v8 #app .cvo-lw-out .cvo-r-ic svg.i { color: var(--v8-green-t); }
#v8 #app .cvo-r-end .v8-badge { vertical-align: middle; }

/* ---------- b: slim cards 8 apart on the white panel ---------- */
#v8 #app .cvo-m-b .cvo-l { display: grid; gap: var(--v8-2); }
#v8 #app .cvo-m-b .cvo-r { border-radius: var(--v8-r-in); background: var(--v8-gray); }
#v8 #app .cvo-m-b .cvo-r-b { border-radius: var(--v8-r-in); }
#v8 #app .cvo-m-b .cvo-r.on { box-shadow: inset 0 0 0 2px var(--v8-deep); }
#v8 #app .cvo-m-b .cvo-r.on .cvo-r-b { border-radius: var(--v8-r-in) var(--v8-r-in) 0 0; }
#v8 #app .cvo-m-b .cvo-r.cvo-out { background: transparent; outline: 2px dotted var(--v8-field); outline-offset: -2px; }
#v8 #app .cvo-m-b .cvo-r.cvo-out.on { outline: 0; }
#v8 #app .cvo-m-b .cvo-d .v8p-exs { background: var(--v8-white); }
#v8 #app .cvo-m-b .v8p-amt { background: var(--v8-gray); }

/* ---------- c: the hairline grid, the rows in pairs, an open cover across both columns ---------- */
#v8 #app .cvo-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
@container cvosec (min-width: 760px) {
  #v8 #app .cvo-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  #v8 #app .cvo-grid > .cvo-r:nth-child(n) { border-top: 1px solid var(--v8-line); }
  #v8 #app .cvo-grid > .cvo-r-pl { grid-column: 1 / -1; }
}
#v8 #app .cvo-grid > .cvo-r { border-top: 1px solid var(--v8-line); margin-top: -1px; }
#v8 #app .cvo-grid > .cvo-r-pl { border-top: 1px solid var(--v8-line); background: var(--v8-white); }
#v8 #app .cvo-m-c .cvo-r-in { padding: var(--v8-5) var(--v8-6) var(--v8-6) 48px; }
@container cvol (max-width: 359px) { #v8 #app .cvo-m-c .cvo-r-in { padding: var(--v8-2) var(--v8-4) var(--v8-5); } }

@media (prefers-reduced-motion: reduce) { #v8 #app :is(.cvo-r-ch, .cvo-r-b) { transition: none; } }
html#v8[data-motion="off"] #app :is(.cvo-r-ch, .cvo-r-b) { transition: none !important; }

/* One limit for every cover in a list: said once under the group's heading, not on every row */
#v8 #app .v8-panel-g > .v8-h3 + .cvo-same { margin-top: var(--v8-1) !important; }
#v8 #app .cvo-same { max-width: var(--v8-measure); margin-bottom: 0; color: var(--v8-ink-2); }
#v8 #app .cvo-same + .cvo-lw { margin-top: var(--v8-4) !important; }

/* ---------- d: one list, one row under another at every width (Janne, 19 October 2026: "they really need to be a list") ----------
   The white list card of a and c, a hairline between rows, 48 high (16 on a 24 line, 12 above and below), the limit at the right.
   The opened cover runs the list's full width under its own row: the row on mint, then the detail on white, a hairline under it */
#v8 #app .cvo-m-d .cvo-lw { border-radius: var(--v8-r-in); background: var(--v8-white); overflow: hidden; }
#v8 #app .cvo-m-d .cvo-lw-out { background: transparent; outline: 2px dotted var(--v8-field); outline-offset: -2px; }
#v8 #app .cvo-m-d .cvo-r + .cvo-r { border-top: 1px solid var(--v8-line); }
#v8 #app .cvo-m-d .cvo-r-b { min-height: 48px; padding-block: var(--v8-3); }
#v8 #app .cvo-m-d .cvo-r.on .cvo-r-b { background: var(--v8-mint); }
@media (hover: hover) { #v8 #app .cvo-m-d .cvo-r.on .cvo-r-b:hover { background: var(--v8-hover); } }
#v8 #app .cvo-m-d .cvo-r.on .cvo-r-b:active { background: var(--v8-pressed); }
#v8 #app .cvo-m-d .cvo-r-p { border-top: 1px solid var(--v8-line); }
#v8 #app .cvo-m-d .cvo-r-in { padding: var(--v8-5) var(--v8-6) var(--v8-6) 48px; }
#v8 #app .cvo-m-d .cvo-r-ch { transition: transform .24s var(--v8-ease); }
/* A narrow list (a phone): the limit moves under the name, still in the row, so every row keeps its figure */
@container cvol (max-width: 479px) {
  #v8 #app .cvo-m-d .cvo-r-b { grid-template-columns: 20px minmax(0, 1fr) 20px; grid-template-areas: "ic t ch" ". e ch"; row-gap: 0; }
  #v8 #app .cvo-m-d .cvo-r-ic { grid-area: ic; }
  #v8 #app .cvo-m-d .cvo-r-t { grid-area: t; }
  #v8 #app .cvo-m-d .cvo-r-end { grid-area: e; display: block; justify-self: start; }
  #v8 #app .cvo-m-d .cvo-r-end:empty { display: none; }
  #v8 #app .cvo-m-d .cvo-r-ch { grid-area: ch; }
  #v8 #app .cvo-m-d .cvo-r-in { padding: var(--v8-4) var(--v8-4) var(--v8-5); }
}

/* d, the opened cover's hierarchy (20 October 2026, Janne: "the scale of the content too large. the examples box should be much
   tighter. the content u open should not appear larger in styling than the actual header of the accordion"). Nothing inside is
   bigger or bolder than the row's name (16 Bold when open): the sentence 16, the two figures 16 Bold with their words 12 under
   them, the examples without their box and without the 20 heading: two tight lists under 16 Bold "Covers" / "Does not cover",
   16 px marks, 4 between items, the note 12 under them; the assistant as one slim line (40 tall, 24 mark). The panel is 16 under
   the row, its text on the row name's edge */
#v8 #app .cvo-m-d .cvo-d { gap: var(--v8-4); }
#v8 #app .cvo-m-d .cvo-figs { gap: var(--v8-3) var(--v8-6); }
#v8 #app .cvo-m-d .cvo-figs dt { font-size: var(--v8-fs-14) !important; line-height: var(--v8-lh-14) !important; }
#v8 #app .cvo-m-d .v8p-exs { padding: 0; border-radius: 0; background: none; box-shadow: none; }
#v8 #app .cvo-m-d .v8p-exs-h h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#v8 #app .cvo-m-d .v8p-exs-h p { order: 9; margin: var(--v8-2) 0 0 !important; color: var(--v8-ink-2); font-size: var(--v8-fs-14) !important; line-height: var(--v8-lh-14) !important; }
#v8 #app .cvo-m-d .v8p-exs { display: flex; flex-direction: column; }
#v8 #app .cvo-m-d .v8p-exs-h { display: contents; }
#v8 #app .cvo-m-d .v8p-exs-p { margin-top: 0; padding-top: 0; border-top: 0; }
#v8 #app .cvo-m-d .v8p-exs-p h4 { font-size: var(--v8-fs-16) !important; }
#v8 #app .cvo-m-d .v8-xd-ex { gap: var(--v8-1); margin-top: var(--v8-2); }
#v8 #app .cvo-m-d .v8-xd-ex li { grid-template-columns: 16px minmax(0, 1fr); gap: var(--v8-2); }
#v8 #app .cvo-m-d .v8-xd-ex-ic { width: 16px; height: 16px; margin-top: 4px; }
#v8 #app .cvo-m-d .v8-xd-ex-ic svg.i { width: 11px; height: 11px; }
#v8 #app .cvo-m-d .cvo-ai .v8p-ai { min-height: 40px; grid-template-columns: 24px minmax(0, 1fr); column-gap: var(--v8-2); padding: var(--v8-1) var(--v8-4) var(--v8-1) var(--v8-2); }
#v8 #app .cvo-m-d .cvo-ai .v8p-ai-mk { width: 24px; height: 24px; font-size: var(--v8-fs-16) !important; }
#v8 #app .cvo-m-d .cvo-ai .v8p-ai-t { font-weight: 400 !important; }
#v8 #app .cvo-m-d .cvo-ai .v8p-ai-tx { grid-auto-flow: column; justify-content: start; gap: var(--v8-1); }
/* d: Ask about your covers at the Coverages panel's top right */
#v8 #app .cvo-m-d > .v8-panel-h { display: flex; align-items: flex-start; gap: var(--v8-5); }
#v8 #app .cvo-m-d > .v8-panel-h > div:not(.cvo-ask) { flex: 1 1 auto; min-width: 0; }
#v8 #app .cvo-m-d .cvo-ask { flex: none; margin-left: auto; }
@media (max-width: 639px) { #v8 #app .cvo-m-d > .v8-panel-h { flex-wrap: wrap; } #v8 #app .cvo-m-d .cvo-ask { margin-left: 0; } }
/* d: the two example lists side by side from 640 (Covers, Does not cover), the note under both */
#v8 #app .cvo-m-d .v8p-exs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--v8-6); row-gap: var(--v8-3); }
#v8 #app .cvo-m-d .v8p-exs-h { display: contents; }
#v8 #app .cvo-m-d .v8p-exs-h p { grid-column: 1 / -1; grid-row: 2; margin: 0 !important; }
#v8 #app .cvo-m-d .v8p-exs-p { grid-row: 1; }
@media (max-width: 639px) { #v8 #app .cvo-m-d .v8p-exs { grid-template-columns: minmax(0, 1fr); } #v8 #app .cvo-m-d .v8p-exs-p { grid-row: auto; } #v8 #app .cvo-m-d .v8p-exs-h p { grid-row: auto; } }
#v8 #app .cvo-m-d .v8p-exs > .v8p-exs-p, #v8 #app .cvo-m-d .v8p-exs > .v8p-exs-p::before { margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; }
#v8 #app .cvo-m-d .v8p-exs > .v8p-exs-p::before { content: none !important; }
#v8 #app .cvo-m-d .v8p-exs { padding-top: var(--v8-4) !important; border-top: 1px solid var(--v8-line) !important; }
/* d: the upgrade closes the opened cover, after the examples (20 October 2026, Janne: "should appear at the end of
   information"); the Ask link at the section's top right is a small pill: 36 tall, 16 regular, 12 at the sides */
#v8 #app .cvo-m-d .cvo-d > .cvo-up { grid-column: 1 / -1; grid-row: auto; }
#v8 #app .cvo-m-d .cvo-ask .v8-btn { min-height: 36px; height: 36px; padding: 0 var(--v8-3) 0 var(--v8-2); font-size: var(--v8-fs-16) !important; font-weight: 400 !important; }
#v8 #app .cvo-m-d .cvo-ask .v8-btn svg.i { width: 16px; height: 16px; }

/* The opened cover's padding, the one rule kept from the evening's pass (20 October 2026, Janne: "I like the previous design in the
   policies coverages, so I think you should just check the paddings"): 24 above, 32 below, 12 at the right, the text starting under
   the cover's name (12 + the 24 icon + 12). The risk table's opened rows use the same */
#v8 #app .cvo-m-d .cvo-r-in { padding: var(--v8-5) 12px var(--v8-6) calc(12px + 24px + var(--v8-3)) !important; }

/* Always two rows, never three columns (20 October 2026, Janne: "These are still in three columns. They were supposed to be only
   in two: first, the general information, and then below ... the examples"): at every width the facts sit on top, the examples
   under them in their two columns; the wide side-by-side layout is off */
@container cvod (min-width: 900px) {
  #v8 #app .cvo-m-d .cvo-d-2 { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: auto !important; }
  #v8 #app .cvo-m-d .cvo-d-2 > .cvo-d-a, #v8 #app .cvo-m-d .cvo-d-2 > .cvo-d-x, #v8 #app .cvo-m-d .cvo-d-2 > .cvo-ai { grid-area: auto !important; }
}
