/* overview: #/overview for an existing customer (DIRECTION-v4.md 4.5) and in the new stage (4.6).
   The needs-you panel (.task), the stat group (.stat-group, .tiles), date tiles (.dtile, .when), the ring
   and checklist rows (.check) are shared and live in styles.css; buy cards (.buy-card) in buy.css; the
   Price card (.price) in flow.css. This file holds the page's own spacing, Coming up's list, Finish
   setting up's rows, the doors and their visuals, and the new stage's parts. No font-size inside a
   media or container query: layout responds, type doesn't. */

/* =================================================================
   The overview, an existing customer (4.5)
   ================================================================= */
/* Top to bottom: the head, 32, the panel, 48, the numbers, 48, the doors, then --section-gap and a
   hairline before the pair. The .stat-group + .doors-wrap rule also spaces the welcome page's peek */
.page-in > #nums, .stat-group + .doors-wrap { margin-top: var(--s-7); }
.page-in > .ov-later { padding-top: var(--section-gap); border-top: 1px solid var(--line); }

/* Coming up (3.12): date rows, 12 above and below (styles.css), no hairlines, link rows wash.
   With Finish setting up gone it takes the full width in two columns, read down each column */
.ov-up { container-type: inline-size; }
.ov-dates { display: grid; list-style: none; }
.ov-up.full .ov-dates { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 3), auto); grid-auto-flow: column; column-gap: var(--col-gap); }
@container (max-width: 719px) { .ov-up.full .ov-dates { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; } }

/* Finish setting up: only the open steps, each a 40 mint tile, the title (Body), the why (Small gray)
   and its text action at the right; hairlines between them; then the done line with a 16 checkBadge */
.ov-su .sec-head { flex-wrap: nowrap; }            /* the ring stays right of the title on a phone too */
.ov-su .sec-head > div:first-child { flex: 1 1 auto; }
.ov-su .sec-head > div:last-child { flex: none; }
.ov-su .ring .rn { white-space: nowrap; }
.ov-steps { list-style: none; }
.ov-steps > * + * { border-top: 1px solid var(--line); }
.check.ov-step { grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; padding: var(--s-4) 0; }
.check.ov-step:first-child { padding-top: 0; }
.check.ov-step .s { margin-top: 2px; }
.check.ov-step > .link { white-space: nowrap; }
.ov-done { display: flex; align-items: flex-start; gap: var(--s-2); margin-top: var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--line); color: var(--ink-2); font-size: var(--fs-small); line-height: var(--lh-small); }
.ov-done > svg.i { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--green); }

/* =================================================================
   The doors to the three pages (version 5, after Compound's service cards)
   ================================================================= */
/* Each door is one link, a white container: the page's title, one sentence at the foot that says what the page found,
   and a Fennia building on a mint tile in the top right corner. Three side by side down to an 880 container, then
   stacked. The whole door washes on hover (one fact, 3.3) and its title underlines */
.doors-wrap { container-type: inline-size; }
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-cards); list-style: none; margin: 0; padding: 0; }
.doors > li { display: flex; min-width: 0; }
.door { position: relative; display: flex; flex-direction: column; width: 100%; min-height: 208px; color: var(--ink); text-decoration: none; }
.door .d-art { position: absolute; top: var(--s-5); right: var(--s-5); display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--r-lg); background: var(--g-10); }
.door .d-art img { display: block; width: 48px; height: 48px; }
.door .d-h { padding-right: 80px; font-size: var(--fs-section); line-height: var(--lh-section); font-weight: 700; }
.door .d-t { margin-top: auto; padding-top: var(--s-6); max-width: 40ch; color: var(--ink-2); }
a.door:hover .d-h { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a.door:active .d-t { color: var(--ink-2-press); }
a.door:focus-visible { outline: var(--v8-focus); outline-offset: 0; box-shadow: var(--v8-focus-glow); }
/* On touch, where nothing hovers, the rows' chevron (3.11) sits in the door's bottom right corner to say it opens */
.door > span.go { position: absolute; right: var(--s-5); bottom: var(--s-5); }
@media (hover: none) { .door .d-t { padding-right: var(--s-5); } }
@container (max-width: 879px) { .door .d-t { padding-right: 0; } }
/* Stacked (under an 880 container), a door becomes a row: the building on the left, the title and sentence, and on touch
   the chevron at the right, so neither sits on the other */
@container (max-width: 879px) {
  .doors { grid-template-columns: minmax(0, 1fr); }
  .door { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; column-gap: var(--s-4); align-items: center; min-height: 0; }
  .door .d-art { position: static; grid-row: 1 / span 2; }
  .door .d-h { grid-column: 2; padding-right: 0; }
  .door .d-t { grid-column: 2; margin-top: 2px; padding: 0; }
  .door > span.go { position: static; grid-column: 3; grid-row: 1 / span 2; }
}

/* How you compare (also the Claims page's "How your claims compare"): four mini columns drawn as one
   SVG by U.miniColumns() in charts.js (24 wide, 16 apart, 6 round tops, at most 56 high, the share
   above, the bin under, yours in --data-you with "You"). Its container carries role="img" and the sentence */
.minicols { display: block; overflow: visible; }


/* =================================================================
   The new stage, before the first policy (4.6)
   ================================================================= */
/* Your recommended policies: buy cards (3.16, buy.css) with the tier tag after the title and no case
   bar, then the mint Price card. Kept to a readable width, so a price sits near its title */
.ov-recs-in { max-width: 760px; }
.ov-recs fieldset { border: 0; min-width: 0; }
.ov-recs .buy-card .t .tag { margin-left: var(--s-2); vertical-align: 0; }
.ov-recs .buy-card .why, .ov-recs .buy-card .law { display: block; }
.ov-recs .buy-card .law { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink); }
.ov-recs .buy-card .law svg.i { width: 16px; height: 16px; color: var(--green-strong); }
.ov-recs .buy-card .per { color: var(--ink-2); font-size: var(--fs-small); line-height: var(--lh-small); }
.ov-recs .err { margin-top: var(--s-3); }

/* Your risks: a 40 round mint tile per area, the name, the level word and the ink meter at the right,
   the question in Small gray under the name. The name's first line centers on the tile */
.ov-risks { list-style: none; }
.check.riskrow { grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: var(--s-4); row-gap: 2px; align-items: start; padding: var(--s-4) 0; }
.check.riskrow:first-child { padding-top: 0; }
.check.riskrow > .it { grid-row: 1 / span 2; }
.check.riskrow .t { grid-column: 2; padding-top: 9px; }
.check.riskrow .lvl { grid-column: 3; grid-row: 1; display: flex; align-items: center; gap: var(--s-3); padding-top: 10px; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-2); white-space: nowrap; }
.check.riskrow .s { grid-column: 2 / -1; grid-row: 2; margin-top: 0; }
.check.riskrow .meter i { box-shadow: inset 0 0 0 1px var(--field); }
.check.riskrow .meter i.on { background: var(--ink); box-shadow: none; }
@media (max-width: 639px) {
  .check.riskrow { grid-template-columns: 40px minmax(0, 1fr); }
  .check.riskrow > .it { grid-row: 1 / span 3; }
  .check.riskrow .lvl { grid-column: 2; grid-row: 2; padding-top: 2px; }
  .check.riskrow .s { grid-column: 2; grid-row: 3; }
}

/* Talk to an advisor: a box with the contact art in its head, then the time slots and Book */
.ov-talk .box-head { align-items: flex-start; }
.ov-talk .box-head > div { padding-top: 1px; }
.ov-talk .box-head + * { margin-top: var(--s-5); }
.slots { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.slot { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow var(--t-hover); }
.slot:hover { box-shadow: var(--edge-hover); }
.slot[aria-checked="true"] { background: var(--wash); box-shadow: inset 0 0 0 2px var(--green); font-weight: 700; }
.slot svg.i { width: 16px; height: 16px; color: var(--green-text); stroke-width: 1.75; }
.slot[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--error); }
.book { margin-top: var(--s-4); }

/* When something goes wrong: three boxes in a row (one column under 768): a 48 mint tile with the
   paying policy's area icon, the scene (Body), the policy that pays as an outline tag */
.ov-scenes { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-cards); }
.ov-scene { display: flex; flex-direction: column; align-items: flex-start; }
.ov-scene .q { margin: var(--s-4) 0; line-height: var(--lh-body); }
.ov-scene .tag { margin-top: auto; }   /* the tags line up along the bottom of the row */
.ov-scene .tag { max-width: 100%; height: auto; min-height: 24px; padding-block: 2px; white-space: normal; }   /* a long policy name wraps inside its box */
@media (max-width: 767px) { .ov-scenes { grid-template-columns: minmax(0, 1fr); } }
