/* Home tabs as pictures (Overview · Rooms · Finishes · Facts). Pictograms and small charts from js/ux/viz.js; words are one or two per tile.
   Colours come from the card's own tokens (--lg-fg*, --lg-field), so they follow the light surface the tabs sit on. */
.hm2 { --vz-ink: var(--lg-fg, #16161b); --vz-ink2: var(--lg-fg2, rgba(22, 22, 27, .66)); --vz-tile: var(--lg-field, rgba(22, 22, 27, .06)); --vz-line: rgba(22, 22, 27, .12); --vz-acc: var(--lg-fg, #16161b); }
.hm2 svg.vz-i { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hm2 svg.vz-i.big { width: 2.6rem; height: 2.6rem; }

/* ---------- Overview ---------- */
.vz-ov { display: grid; gap: .6rem; margin-top: .6rem; }
.vz-area { display: flex; align-items: center; gap: 1rem; padding: .75rem .9rem; border-radius: var(--r-ctl, 14px); background: var(--vz-tile); }
.vz-ring { position: relative; display: grid; place-items: center; width: 5.2rem; height: 5.2rem; flex: none; }
.vz-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-width: 4; }
.vz-ring .t { stroke: var(--vz-line); } .vz-ring .v { stroke: var(--vz-acc); stroke-linecap: round; }
.vz-ring b { font: 500 1.05rem/1 var(--num, var(--sans)); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--vz-ink); margin-top: -.62rem; }
.vz-ring small { position: absolute; bottom: 1.5rem; font: 600 max(12px, .5rem)/1 var(--sans); letter-spacing: .03em; text-transform: uppercase; color: var(--vz-ink2); }   /* E2E L6: higher and a touch tighter, inside the ring ("USABLE" ran into the stroke) */
.vz-bars { flex: 1; display: grid; gap: .5rem; min-width: 0; }
.vz-bars p { display: grid; grid-template-columns: 4.2rem 1fr auto; align-items: center; gap: .6rem; margin: 0; font: 600 max(12px, .78rem)/1 var(--sans); color: var(--vz-ink2); }
.vz-bars u { display: block; height: .55rem; border-radius: 9px; background: var(--vz-line); position: relative; overflow: hidden; text-decoration: none; }
.vz-bars u::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--vz-acc); animation: vz-grow .72s var(--ease-out, cubic-bezier(.22, 1, .36, 1)) both; transform-origin: 0 50%; }
.vz-bars u.all::after { opacity: .28; }
.vz-bars b { font: 500 .95rem/1 var(--num, var(--sans)); font-variant-numeric: tabular-nums; color: var(--vz-ink); min-width: 3rem; text-align: right; }
.vz-sts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.vz-st { display: grid; justify-items: center; gap: .15rem; padding: .7rem .3rem .6rem; border-radius: var(--r-ctl, 14px); background: var(--vz-tile); color: var(--vz-ink); text-align: center; }
.vz-st b { font: 500 1.5rem/1 var(--num, var(--sans)); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.vz-st span { font: 600 max(12px, .68rem)/1.15 var(--sans); color: var(--vz-ink2); letter-spacing: .02em; }

/* ---------- Rooms ---------- */
.vz-hint { display: flex; align-items: center; gap: .55rem; }
.vz-hint svg.vz-i { width: 1.1rem; height: 1.1rem; }
.hm2 ul.rooms { display: grid; gap: .3rem; padding: 0; margin: .3rem 0 0; list-style: none; }
body #lv-home .u-spec.hm2 ul.rooms li.vz-rm { display: grid; justify-content: stretch; grid-template-columns: 2.4rem minmax(5.5rem, 8rem) 1fr auto; align-items: center; gap: .65rem; min-height: 46px; padding: .3rem .7rem .3rem .4rem; border-radius: var(--r-pill, 99px); border: 0; background: transparent; cursor: pointer; color: var(--vz-ink); }
body #lv-home .u-spec.hm2 ul.rooms li.vz-rm:hover, body #lv-home .u-spec.hm2 ul.rooms li.vz-rm.on { background: var(--vz-tile); }
.vz-ri { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--vz-tile); }
.vz-ri svg.vz-i { width: 1.2rem; height: 1.2rem; }
body #lv-home .u-spec.hm2 ul.rooms li.vz-rm > span { text-align: left; font: 500 .95rem/1.15 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vz-bar { display: block; height: .5rem; border-radius: 9px; background: var(--vz-line); position: relative; overflow: hidden; }
.vz-bar u { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--vz-acc); text-decoration: none; animation: vz-grow .64s var(--ease-out, cubic-bezier(.22, 1, .36, 1)) both; transform-origin: 0 50%; }
body #lv-home .u-spec.hm2 ul.rooms li.vz-rm > b { text-align: right; font: 500 max(12px, .88rem)/1 var(--num, var(--sans)); font-variant-numeric: tabular-nums; color: var(--vz-ink2); white-space: nowrap; }
.vz-tot { display: flex; align-items: center; gap: .6rem; margin: .5rem 0 0; padding: .6rem .9rem; border-radius: var(--r-ctl, 14px); background: var(--vz-tile); font: 600 max(12px, .85rem)/1 var(--sans); color: var(--vz-ink2); }
.vz-tot b { margin-left: auto; font: 500 1.1rem/1 var(--num, var(--sans)); color: var(--vz-ink); font-variant-numeric: tabular-nums; }
.vz-tot svg.vz-i { width: 1.2rem; height: 1.2rem; }

/* ---------- Finishes ---------- */
.vz-fin { display: grid; gap: .9rem; padding-bottom: .5rem; }
.vz-fg h4 { display: flex; align-items: center; gap: .55rem; margin: 0 0 .45rem; font: 600 max(12px, .72rem)/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--vz-ink2); }
.vz-fg h4 svg.vz-i { width: 1.15rem; height: 1.15rem; }
.vz-ft { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.vz-f { display: grid; justify-items: center; align-content: start; gap: .4rem; min-height: 5.6rem; padding: .7rem .4rem .6rem; border-radius: var(--r-ctl, 16px); background: var(--vz-tile); color: var(--vz-ink); text-align: center; position: relative; overflow: hidden; transition: transform var(--dur-press, 140ms) var(--ease-out, cubic-bezier(.22, 1, .36, 1)), background-color var(--dur-quick, 200ms); }
.vz-f b { font: 600 max(12px, .78rem)/1.15 var(--sans); letter-spacing: -.005em; }
.vz-fi { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px var(--vz-line); position: relative; z-index: 1; }
.vz-fi svg.vz-i { width: 1.4rem; height: 1.4rem; }
.vz-f.on { background: var(--vz-ink); color: #fff; }
.vz-f.on .vz-fi { background: rgba(255, 255, 255, .16); box-shadow: none; }
/* material swatches: the finish drawn as the finish (tile grid, wood grain, granite fleck) behind the icon */
.vz-f.sw-tile::before, .vz-f.sw-wood::before, .vz-f.sw-granite::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 52%; opacity: .55; }
.vz-f.sw-tile::before { background: linear-gradient(90deg, var(--vz-line) 1px, transparent 1px) 0 0 / 1.1rem 1.1rem, linear-gradient(var(--vz-line) 1px, transparent 1px) 0 0 / 1.1rem 1.1rem, linear-gradient(135deg, #f1efe9, #e3dfd5); }
.vz-f.sw-wood::before { background: repeating-linear-gradient(90deg, rgba(120, 82, 48, .26) 0 1px, transparent 1px 1.3rem), linear-gradient(100deg, #d6b48a, #bf9468 60%, #cfa779); }
.vz-f.sw-granite::before { background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .5) 0 1px, transparent 2px) 0 0 / .9rem .9rem, radial-gradient(circle at 70% 60%, rgba(0, 0, 0, .35) 0 1px, transparent 2px) 0 0 / 1.1rem 1.1rem, linear-gradient(135deg, #5a5a62, #3b3b42); }
.vz-fnote { min-height: 0; margin: 0; padding: 0 .4rem; font: 500 max(12px, .88rem)/1.4 var(--sans); color: var(--vz-ink2); opacity: 0; max-height: 0; overflow: hidden; transition: opacity .2s, max-height .24s; }
.vz-fnote.show { opacity: 1; max-height: 4rem; padding-top: .2rem; }

/* ---------- Facts ---------- */
.vz-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.vz-fc { display: grid; grid-template-columns: 3.2rem 1fr; grid-template-rows: auto auto; column-gap: .75rem; align-items: center; padding: .65rem .8rem .65rem .65rem; border-radius: var(--r-ctl, 16px); background: var(--vz-tile); color: var(--vz-ink); }
/* the Vastu line under Facing / Sun: full width, so the wording is read without opening Home facts */
.vz-vastu { grid-column: 1 / -1; display: flex; align-items: baseline; gap: .6rem; padding: .5rem .8rem; border-radius: var(--r-ctl, 16px); background: var(--vz-tile); color: var(--vz-ink); }
.vz-vastu span { font: 600 max(12px, .7rem)/1.2 var(--sans); color: var(--vz-ink2); }
.vz-vastu b { font: 500 max(13px, .85rem)/1.25 var(--sans); }
.vz-fc > :first-child { grid-row: 1 / 3; justify-self: center; }
.vz-fc b { font: 500 1.05rem/1.15 var(--num, var(--sans)); letter-spacing: -.015em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; align-self: end; }
.vz-fc span:not([class]), .vz-fc > span:last-child { font: 600 max(12px, .7rem)/1.2 var(--sans); color: var(--vz-ink2); align-self: start; }
.vz-cmp svg { width: 3rem; height: 3rem; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; display: block; }
.vz-cmp .t { stroke-opacity: .35; } .vz-cmp .tk { stroke-opacity: .5; } .vz-cmp .ar { fill: currentColor; stroke: none; } .vz-cmp .ar2 { fill: none; stroke-opacity: .5; } .vz-cmp .dot { fill: #fff; stroke: currentColor; }
/* (18 October) the N: 12.5 units, about 10px on the 3rem compass (it was 7 units, 5.7px). It sits 1.5 units higher, off the needle's tip, and a halo in the Facts
   tile's colour (--lg-field on the white card) parts the ring and the north tick behind it.
   (18 October, L-06) the letter itself measured 7.25px tall at 12.5 units: 16.5 units (13.4px on the 39px compass) give a 9.4 to 9.6px capital (cap height .70 to
   .72 em). Its top stays inside the drawing (baseline at 12 units, the capital from about .3 to 12); the ring (y 3.3 to 4.7) and the tick (2.5 to 6.5) still pass
   behind it, parted by the halo, as before */
.vz-cmp text { fill: currentColor; stroke: #f1f1f1; stroke-width: 3px; stroke-linejoin: round; paint-order: stroke; font: 600 16.5px/1 var(--sans); transform: translateY(-.5px); }
.vz-fc .vz-ring { width: 3.1rem; height: 3.1rem; } .vz-fc .vz-ring b { display: none; } .vz-fc .vz-ring svg { stroke-width: 5; }
.vz-sun svg { display: block; width: 3.2rem; height: 2rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.vz-sun .t { stroke: var(--vz-line); stroke-width: 4; } .vz-sun .v { stroke: #e0a33a; stroke-width: 4; } .vz-sun circle { fill: #e0a33a; stroke: none; }
.vz-many { display: inline-flex; align-items: center; gap: .05rem; } .vz-many svg.vz-i { width: 1.4rem; height: 1.4rem; margin-right: -.3rem; } .vz-many em { font: 600 max(.7rem, 11px)/1 var(--sans); font-style: normal; margin-left: .45rem; color: var(--vz-ink2); }
.vz-dots { display: inline-grid; grid-template-columns: repeat(4, .55rem); gap: .22rem; } .vz-dots i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--vz-line); } .vz-dots i.so { background: var(--vz-ink); }
.vz-cost { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; margin-top: .5rem; padding: .8rem 1rem; border-radius: var(--r-ctl, 16px); background: var(--vz-ink); color: #fff; }
.vz-cost svg.vz-i { width: 1.6rem; height: 1.6rem; opacity: .8; }
.vz-cost div { display: grid; gap: .25rem; } .vz-cost span { font: 600 max(12px, .68rem)/1.1 var(--sans); letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.vz-cost b { font: 400 1.9rem/1 var(--num, var(--sans)); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.vz-cost small { font: 500 max(12px, .78rem)/1.2 var(--sans); opacity: .65; text-align: right; }

@keyframes vz-grow { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .vz-bars u::after, .vz-bar u { animation: none; } }
