/* v16d: one layout system for every app page.
   .wrap is a 12-column dense grid with 4px row units (masonry). Wrapper blocks dissolve (display:contents)
   so every card is a direct grid item; pack16.js sets each item's row span from its real height.
   One spacing scale: gap 16px between all containers, 14px card header padding, 16px body padding. */
/* tall cards escape half-width wrappers: a 560px+ card in a .g2/.vz pair goes full width so its row partner is not stretched */
.main>.wrap .full16{grid-column:span 12!important}
:root{--gx:16px;--ru:4px}
@media (min-width:761px){
.main>.wrap{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-rows:var(--ru);grid-auto-flow:row dense;column-gap:var(--gx);row-gap:0;align-items:start;padding-top:16px!important;padding-bottom:20px!important}
.main>.wrap>*{grid-column:span 12;margin:0!important;min-width:0;align-self:start}
/* wrappers dissolve so their cards join the page grid; default child span is the full row */
.main>.wrap .dis16{display:contents}
.main>.wrap .dis16>*{grid-column:span 12;margin:0!important;min-width:0;align-self:start}
.main>.wrap :is(#d16-lab,#d16-cs,#m16-lab,#v16-ov,#v16-mk,#v16-tr,#v16-cn,#v16-fe,#v16-fn,#v16-gr,#v16-ul,#v16-geo,#geo,#m16-sp,#v16-ct,#map16,.grid16,.vz,.g2,.g21,.g2c,.g3){display:contents}
.main>.wrap :is(#d16-lab,#d16-cs,#m16-lab,#v16-ov,#v16-mk,#v16-tr,#v16-cn,#v16-fe,#v16-fn,#v16-gr,#v16-ul,#v16-geo,#m16-sp,#v16-ct,#map16)>*{grid-column:span 12;min-width:0;align-self:start;margin:0!important}
.main>.wrap :is(.g2,.g21,.g2c,.g3,.grid16,.vz)>*{margin:0!important;min-width:0;align-self:start;height:auto!important}
.main>.wrap :is(.g2,.vz.c2,.vz.c3,.vz)>*{grid-column:span 6}
.main>.wrap .vz:not(.c2):not(.c3)>*{grid-column:span 12}
.main>.wrap .vz.c3>*{grid-column:span 4}
.main>.wrap .g21>*:first-child{grid-column:span 7}.main>.wrap .g21>*:last-child{grid-column:span 5}
.main>.wrap .g2c>*:first-child{grid-column:span 7}.main>.wrap .g2c>*:last-child{grid-column:span 5}
.main>.wrap .g3>*{grid-column:span 4}
.main>.wrap .grid16>.c4{grid-column:span 4}.main>.wrap .grid16>.c5{grid-column:span 5}.main>.wrap .grid16>.c6{grid-column:span 6}.main>.wrap .grid16>.c7{grid-column:span 7}.main>.wrap .grid16>.c8{grid-column:span 8}.main>.wrap .grid16>.c12{grid-column:span 12}
.main>.wrap :is(.g2,.g21,.g2c)>div>.card{height:auto!important}
/* puzzle layout: a single card inside a grid16 column (c4/c8...) fills the column,
   so stretched side-by-side columns render as equal-height cards */
.main>.wrap .grid16>*{display:flex;flex-direction:column}
.main>.wrap .grid16>*>.card:only-child{flex:1 1 auto}
/* #geo children and single-card blocks */
.main>.wrap #geo>*{grid-column:span 12;margin:0!important}
.main>.wrap #geo>.g2>*{grid-column:span 6}
/* cards that read fine at half width pair up (pack16.js adds .half16 after verifying nothing overflows) */
.main>.wrap .half16{grid-column:span 6!important}
/* consistent card anatomy */
.main .card>.hd{padding:14px 16px 12px!important;gap:10px!important}
.main .card .hd .ht{flex:1 1 190px!important;min-width:0}
.main .card .hd h3{font-size:clamp(17px,1.35vw,20px)!important;line-height:1.2!important}
.main .card .hd .sub{margin-top:3px!important;font-size:12.5px!important;line-height:1.4!important}
.main .card>.bd{padding:12px 16px 14px!important}
.main .card>.bd>:first-child{margin-top:0!important}.main .card>.bd>:last-child{margin-bottom:0!important}
.main>.wrap .kpis{gap:var(--gx)!important}
.main .card .mt,.main .card .bd .mt{margin-top:12px}
}
@media (min-width:761px) and (max-width:1179px){
.main>.wrap :is(.g2,.vz,.vz.c2)>*,.main>.wrap .g21>*,.main>.wrap .g2c>*,.main>.wrap .g3>*,.main>.wrap .grid16>.c4,.main>.wrap .grid16>.c5,.main>.wrap .grid16>.c6,.main>.wrap .grid16>.c7,.main>.wrap .grid16>.c8{grid-column:span 6}
.main>.wrap .grid16>.c12,.main>.wrap .vz:not(.c2):not(.c3)>*,.main>.wrap .half16{grid-column:span 12!important}
}
@media (max-width:760px){.main>.wrap>*{margin-bottom:12px}}
/* analytics labs: after the headline row, two balanced masonry columns */
@media (min-width:1180px){
.main>.wrap .grid16.lab16>.c5,.main>.wrap .grid16.lab16>.c7,.main>.wrap .grid16.lab16>.c4:nth-child(n+3){grid-column:span 6}
}

/* text fields (profile, team, security) stack label over a full-width input; numeric assumption fields keep the compact row */
label.fld16:has(input[type=text],input[type=email],input[type=tel],input[type=password],input:not([type]),textarea){grid-template-columns:minmax(0,1fr)!important;row-gap:4px;align-items:start}
label.fld16:has(input[type=text],input[type=email],input[type=tel],input[type=password],input:not([type])) .fc{justify-self:stretch!important;display:flex!important;width:100%}
label.fld16:has(input[type=text],input[type=email],input[type=tel],input[type=password],input:not([type])) .fc input{width:100%!important;text-align:left!important;font-weight:600!important}

/* pzfill: a puzzle-stretched card distributes its content to fill the box —
   body grows, chart areas absorb slack, lists spread, methodology anchors to the bottom */
.main>.wrap .grid16>*>.card:only-child,.main>.wrap .card.half16{display:flex;flex-direction:column}
.main>.wrap .card>.bd{flex:1 1 auto;display:flex;flex-direction:column;justify-content:space-between;gap:14px;min-height:0}
.main>.wrap .card .fan16{flex:1 1 auto;min-height:0;display:flex;align-items:center}
.main>.wrap .card .fan16 svg{height:100%;width:100%}
.main>.wrap .card .why16{flex:1 1 auto;display:flex;flex-direction:column;justify-content:space-between;gap:10px}
.main>.wrap .card .why16 .wf{margin-top:0}

/* stretched-card content blocks absorb the slack and distribute their rows/charts evenly */
.main>.wrap .card>.bd>:is(.chips16,.rng,.drv16,.acc16,.fz,.mini,.vlg,.cov16,.ub16,.donut,.mc16,.lcw,.yb,.ybl,.ins2,.sim16,.ucards,.bars16,.mcards){flex:1 1 auto;display:flex;flex-direction:column;justify-content:space-around;min-height:0}
.main>.wrap .card>.bd>.empty{flex:1 1 auto;display:flex;align-items:center;min-height:0}
.main>.wrap .card>.bd>:is(.donut,.gauge16,.mc16,.yb) svg,.main>.wrap .card>.bd>:is(.donut,.gauge16,.mc16,.yb) canvas{max-height:100%;margin:auto}

.gauge16{flex:0 0 auto}

/* ===== stretched-card sparse-content fixes (2026-10-28 comprehensive audit) =====
   Sparse blocks in puzzle-stretched cards now center and scale instead of leaving voids */
.main>.wrap .card>.bd>.opsrow{flex:1 1 auto;flex-direction:column;justify-content:space-around;align-items:stretch}
.main>.wrap .card>.bd>.opsrow .btn{margin:0}
.main>.wrap .card>.bd>table.t2{flex:1 1 auto;margin:auto 0}
.main>.wrap .card>.bd>table.t2 td,.main>.wrap .card>.bd>table.t2 th{padding-top:13px;padding-bottom:13px}
.main>.wrap .card>.bd>p:not(.vzn):not(.foot-note):not(.empty){flex:1 1 auto;display:flex;align-items:center;font-size:14px;line-height:1.65;color:#3C3F4A}
.main>.wrap .card>.bd>.cr{flex:1 1 auto;align-content:center;align-items:center}
.main>.wrap .card>.bd>#tm{flex:1 1 auto;display:flex;align-items:center;justify-content:center}
.main>.wrap .card>.bd>.chps{flex:1 1 auto;align-content:space-around}
/* deterministic row growth (flex-grow is inert for these grid rows under space-between) */
.main>.wrap .card>.bd>.cr{min-height:36px}
.main>.wrap .card>.bd>.wr{min-height:34px}
.main>.wrap .card>.bd>.rr{flex:1 1 auto;min-height:60%}
/* why16: the diverging bar is the hero visual — full width, 28px tall */
.why16 details.wf summary{display:grid;grid-template-columns:minmax(0,1fr) 88px;gap:2px 12px;align-items:center;padding:10px 0 4px;font-size:13px}
.why16 details.wf summary .lab{grid-column:1;grid-row:1}
.why16 details.wf summary b{grid-column:2;grid-row:1;text-align:right;font-size:14px}
.why16 details.wf summary .wbar{grid-column:1/3;grid-row:2;height:28px;border-radius:14px}
.why16 .wf .wbar i{border-radius:14px;box-shadow:inset 0 -2px 5px rgba(20,23,51,.10)}
.main>.wrap .card>.bd>.rr{grid-auto-rows:auto;align-content:space-evenly}
.main>.wrap .card>.bd>p:not(.vzn):not(.foot-note):not(.empty){font-size:14.5px;line-height:1.75}
/* why16 rows absorb the stretch slack inside the row (content top-aligned, slack below the explanation) */
.main>.wrap .card .why16 .wf{flex:1 1 auto;display:flex;flex-direction:column}
.main>.wrap .card .why16 .wf p{flex:1 1 auto;display:flex;align-items:center;margin:8px 0 12px}
/* why16 sparse-case: bigger bars and explanation text so 2-factor cards carry their height */
.why16 details.wf summary .wbar{height:36px;border-radius:18px}
.why16 .wf .wbar i{border-radius:18px}
.why16 .wf p{font-size:13px;line-height:1.62}
.why16 details.wf summary{font-size:13.5px}

/* ===== GLOBAL TYPOGRAPHY SCALE (2026-10-28 launch-density pass) =====
   Every small muted text class across the site steps up one notch; contrast darkens.
   High-specificity selectors so these win over the base rules. */
.main>.wrap .vzn{font-size:12.5px !important;color:#4A5170 !important;line-height:1.55 !important}
.main>.wrap .why16 details.wf p{font-size:13.5px !important;line-height:1.65 !important;color:#3E4460 !important;font-weight:500 !important}
.main>.wrap .why16 details.wf summary .lab{font-size:14px !important}
.main>.wrap .mcm b{font-size:13px !important}
.main>.wrap .flags li{font-size:13px !important;line-height:1.55 !important}
.main>.wrap .drv16 .dr .lab{font-size:13px !important}
.main>.wrap .bd>.cr span:first-child{font-size:13.5px !important}
.main>.wrap table.t2 td,.main>.wrap table.t2 th{font-size:13.5px !important}
.main>.wrap .mc16 .vzn{font-size:12.5px !important}
.main>.wrap .math .mrw span{font-size:13.5px !important}
.main>.wrap .math .mrw b{font-size:14px !important}
.main>.wrap .gauge16 .gs{font-size:12.5px !important}
.main>.wrap .wf summary{font-size:14px !important}
.main>.wrap .prbl{font-size:11.5px !important}
.main>.wrap .card>.bd p:not(.vzn):not(.foot-note):not(.empty){font-size:14px !important;line-height:1.7 !important;color:#33384A !important}

/* the "what does this number mean" hover layer (app-tips16.js) */
.cttip{position:fixed;max-width:300px;background:#141B33;color:#E9ECF8;border-radius:10px;padding:10px 12px;font:500 12.5px/1.5 Inter,sans-serif;box-shadow:0 14px 30px -12px rgba(14,27,61,.7);opacity:0;transform:translateY(4px);transition:opacity .12s,transform .12s;pointer-events:none;z-index:9999;white-space:normal}
.cttip.on{opacity:1;transform:translateY(0)}
.cttip b{display:inline-block;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#8F94EE;margin-bottom:3px}
