/* VSSGEO cleanup · lane "chartfix" (2026-09-28) — FRICTION items 1, 9, 10, 11, 12, 14. Pairs with chartfix.js.
   LOAD AFTER lead-fixes.css and all four charts-*.css (last stylesheet). Every rule is prefixed ":root body.door" so it
   also wins on specificity, not only on order. Tokens only; see chartfix.md for the colour rule and the QA list. */

:root{
  --vgx-dim:.55;                                              /* the one hover-dim value for every chart (marks only) */
  --vgx-bar:var(--vr2-bar-blue,var(--vg-blue));               /* a share of THIS place */
  --vgx-hi:var(--vr2-bar-gold,var(--vg-gold));                /* ≥ 1.5× U.S. — a bar that is unusually big here */
  --vgx-hi-ink:var(--vg-gold);                                /* the same meaning as TEXT ("3.9× U.S.") */
  --vgx-us:var(--vg-ink);                                     /* the U.S. reference tick */
}
:root[data-theme="light"]{--vgx-hi-ink:#8a5c00}               /* #b57b09 is 3.2:1 on white: fine for a bar, too pale for 12px text (this is 5.8:1) */


/* ══ 1 · REST = FULL STRENGTH. Hover-dim only for a real mouse, gently, never sticky on touch ══════════════════════ */
/* Work tab: rows 4+ had their blocks at .62 at rest (Maria, Priya, Beth: "fades to grey") */
:root body.door #panel :is(#sOcc,#sInd) :is(.vwk-row,.vwk-orow):not(.top) .vwk-blocks i.on{opacity:1}
/* text never dims: only the marks of the other rows step back */
:root body.door #panel :is(#sOcc,#sInd) :is(.vwk-row,.vwk-orow).vwk-dim :is(.vwk-lab,.vwk-val,.vwk-rk,b,small,.pc){opacity:1}
:root body.door #panel .gbar.vgg-row.vgg-dim{opacity:1}
:root body.door #panel .vgs-focus>.ibar.vgs-done:not(.vgs-on){color:inherit}

@media (hover:hover) and (pointer:fine){
  :root body.door #panel :is(#sOcc,#sInd) :is(.vwk-row,.vwk-orow).vwk-dim :is(.vwk-blocks,.im){opacity:var(--vgx-dim)}
  :root body.door .who .vgw.vgw-focus .vgw-grid i[data-g]:not(.vgw-on){opacity:var(--vgx-dim)}
  :root body.door #panel .vgg.vgg-focus .vgg-t:not(.vgg-on){opacity:var(--vgx-dim)}
  :root body.door #panel .gbar.vgg-row.vgg-dim .vgg-bar{opacity:var(--vgx-dim)}
  :root body.door #panel .gbar.vgg-row .vgg-bar{transition:opacity .18s}
  :root body.door #panel .vgc.vgc-focus :is(.vgc-tile,.vgc-row,.vgc-card):not(.vgc-on)>.vgc-m{opacity:var(--vgx-dim)}
  :root body.door #panel .vgs-focus>.ibar.vgs-done:not(.vgs-on) :is(.vgs-bar,.vgs-us){opacity:var(--vgx-dim)}
}
/* touch / pen / no hover: whatever a tap left behind (mouseover/focusin fire on tap, mouseleave never does) shows nothing */
@media not all and (hover:hover) and (pointer:fine){
  :root body.door #panel :is(#sOcc,#sInd) :is(.vwk-row,.vwk-orow).vwk-dim :is(.vwk-blocks,.im,.vwk-lab,.vwk-val,.vwk-rk,b,small,.pc){opacity:1}
  :root body.door #panel :is(#sOcc,#sInd) .vwk-row.vwk-on{background:none}
  :root body.door .who .vgw.vgw-focus .vgw-grid i[data-g]{opacity:1;transform:none}
  :root body.door .who .vgw.vgw-focus .chips>span.vgw-on{background:none}
  :root body.door #panel .vgg.vgg-focus .vgg-t{opacity:1;filter:none}
  :root body.door #panel .gbar.vgg-row.vgg-hot{background:none}
  :root body.door #panel .vgc.vgc-focus :is(.vgc-tile,.vgc-row,.vgc-card)>.vgc-m{opacity:1}
  :root body.door #panel .vgc>.vgc-tile.vgc-on{background:none}
  :root body.door #panel .vgc>.vgc-tile.vgc-link{box-shadow:none}
  :root body.door #panel .vgc .vgc-on>.vgc-m:not(.vgc-m-lead)>i::after,
  :root body.door #panel .vgc .vgc-link>.vgc-m:not(.vgc-m-lead)>i::after{background:var(--vgc-fill)}
  :root body.door #panel .vgc :is(.vgc-on,.vgc-link) :is(.vgc-v,.vgc-n),:root body.door #panel .vgc .vgc-link>.vgc-n{color:inherit}
  :root body.door #panel .vgs-focus>.ibar.vgs-done :is(.vgs-bar,.vgs-us){opacity:1}
  :root body.door #panel .ibar.vgs-on .vgs-us{width:2px;margin-left:-1px;background:var(--vgx-us)}
}


/* ══ 10 · "More about this group": the + / – sits on the right, like every other expander ══════════════════════ */
:root body.door #panel details.more>summary{display:flex!important;justify-content:space-between;align-items:center;gap:16px;
  padding:12px 0!important;font:600 15px/1.3 var(--vg-font-display);color:var(--vg-ink);cursor:pointer;list-style:none}
:root body.door #panel details.more>summary::before{content:none!important}
:root body.door #panel details.more>summary::after{content:"+"!important;flex:none;color:var(--red,var(--vg-red));font:400 20px/1 var(--vg-font-display)}
:root body.door #panel details.more[open]>summary::after{content:"–"!important}


/* ══ 12 · ONE COLOUR RULE for bars and "× U.S." (both themes; see chartfix.md) ══════════════════════════════════ */
/* Work tab bars + key: blue = share here, gold = 1.5× U.S. or more (chartfix.js marks the gold photo-row bars) */
:root:root body.door #panel :is(#sOcc,#sInd) .vwk-blocks:not(.gold){--c:var(--vgx-bar)!important}   /* beats work.css's light-theme blue mix */
:root body.door #panel :is(#sOcc,#sInd) .vwk-blocks.gold{--c:var(--vgx-hi)!important}
:root body.door #panel :is(#sOcc,#sInd) .vwk-kb{background:var(--vgx-bar)!important}
:root body.door #panel :is(#sOcc,#sInd) .vwk-kb.vwk-kg{background:var(--vgx-hi)!important}
:root body.door #panel :is(#sOcc,#sInd) .vwk-kt,:root body.door #panel :is(#sOcc,#sInd) .vwk-tick{background:var(--vgx-us)}
/* "N× U.S." text: gold (text-safe) when ≥ 1.5×, otherwise muted — never the red accent */
:root body.door #panel :is(#sOcc,#sInd) :is(.vwk-val,.pc) small.hi{color:var(--vgx-hi-ink)!important}
:root body.door #panel .ibar.vgs-done:has(.vgs-bar.vgs-gold)>span:last-child small{color:var(--vgx-hi-ink);font-weight:600}
/* report bars (scales lane): the hovered row's U.S. tick thickens but stays ink */
:root body.door #panel .ibar.vgs-on .vgs-us{background:var(--vgx-us)}
/* rank numbers are labels, not data: ink, not the (gold/red) accent */
:root body.door #panel :is(#sOcc,#sInd) .top>.vwk-rk{color:var(--vg-ink)}
/* stat-tile / LIFE HERE lead meters: a share of this place → the same blue as every other share bar */
:root body.door #panel .vgc{--vgc-lead:var(--vgx-bar)}


/* ══ 14 · Minimum 12 px for chart keys, section labels, distances; readable greys ═══════════════════════════════ */
:root body.door #panel :is(.kicker,th,.whosrc,.rank small,.shop small){font-size:12px!important}
:root body.door :is(#occhere .kicker,#panel .lx-kicker){font-size:12px!important}
:root body.door #panel #goalbox>.kicker[style]{font-size:14px!important}          /* the one kicker that is already bigger */
:root body.door #panel .vgc>.vgc-tile>span{font-size:12px}
:root body.door #panel :is(#sOcc,#sInd) :is(.vwk-key,.vwk-lab small,.vwk-val small,.pc small){font-size:12px}
:root body.door #panel :is(#sOcc,#sInd) .vwk-rk{font-size:12px;color:var(--vg-muted)}
:root body.door #panel :is(#sOcc,#sInd) .orow small{font-size:12px}
:root body.door #panel .vgg-key{font-size:12px;color:var(--vg-muted)}
:root body.door #panel .vgg .vgg-l span{font-size:12px}
:root body.door #panel .gbar.vgg-row .vgg-no{font-size:12px}
:root body.door #panel .vgg-rkl{font-size:12px}
:root body.door #panel :is(.vgs-key,.ibar small){font-size:12px}
:root body.door #panel .life.vgc .vgc-row>.vgc-l,:root body.door #panel .life.vgc .vgc-lines .vgc-row.vgc-txt{font-size:12px}
:root body.door :is(#dock #ladder.vgs-ladder,#dock .gheat.vgs-heat,.legend2.vgs-heat .l,.vgs-read){font-size:12px}
