
/* ConsultiQ editorial refinement v8 - tables and short takeaways */
.v8-revenue-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(285px,.85fr);gap:22px;align-items:start}
.v8-rev-main,.v8-rev-side>div{background:#fff;border:1px solid #dbe5eb;border-radius:18px;box-shadow:0 12px 30px #1432440a;padding:24px}
.v8-rev-main{min-width:0}.v8-income-lead{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:stretch;margin-bottom:22px}
.v8-income-lead>div:first-child{padding:9px 0}.v8-income-lead p{font-size:14px;line-height:1.55;color:#425769;max-width:460px;margin:9px 0}
.v8-big{font-size:clamp(39px,5vw,66px);line-height:1.04;font-weight:850;letter-spacing:-.045em;color:#0c364b;margin-top:9px}
.v8-keyquote{background:#103c53;border-radius:13px;padding:20px!important;color:#fff}.v8-keyquote>span,.v8-quote>span,.v8-fag>span{display:block;letter-spacing:.1em;font-weight:800;font-size:11px;margin-bottom:8px}
.v8-keyquote strong{font-size:36px;line-height:1.15;color:#b9f1e8}.v8-keyquote p{color:#dceaf0!important;font-size:13px!important}
.v8-table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums;text-align:left;background:#fff;color:#12364a}
.v8-table th{background:#edf3f6;color:#314e61;font-size:11px;letter-spacing:.065em;text-transform:uppercase;padding:15px 16px;border-bottom:2px solid #ccdae2;white-space:nowrap}
.v8-table td{padding:15px 16px;border-bottom:1px solid #e4edf1;font-size:14px;line-height:1.4;vertical-align:middle}
.v8-table th:not(:first-child),.v8-table td:not(:first-child){text-align:right;white-space:nowrap}
.v8-rev-table td:nth-child(2){font-weight:800;font-size:17px}
.v8-capital-row td{background:#fff8ec}.v8-total-row td{background:#eaf5f5;font-weight:900!important;border-top:2px solid #a3ccd2}
.v8-data-note{font-size:12px!important;line-height:1.55!important;color:#5c7180!important;margin:13px 0 0!important}
.v8-data-note a{color:#0b7384;text-decoration:underline}
.v8-rev-side{display:grid;gap:15px}.v8-rev-side .v8-quote{background:#103c53;color:#fff}.v8-quote strong{display:block;font-size:clamp(23px,2vw,31px);line-height:1.3;color:#c2f5ec;margin:10px 0}.v8-quote strong small{display:block;font-size:12px;font-weight:550;color:#dceaf0}.v8-quote p{color:#e2f0f4;font-size:13px;line-height:1.5}
.v8-fag{background:#f5f9fb!important}.v8-fag strong{font-size:22px;color:#0c394a}.v8-fag p{font-size:13px;line-height:1.55;color:#395569}.v8-fag a{font-size:13px;color:#006d81;font-weight:800}
.v8-rev-side>.v8-data-note{padding:0 10px}
.v8-marketing-note{background:#e8f3f5;border-left:4px solid #0b8da0;padding:12px 16px;border-radius:8px;color:#153a4e;line-height:1.55;margin:15px 0 6px}
.v8-marketing-note a{color:#06718b;font-weight:800}
.v8-cluster-table{min-width:710px}.v8-cluster-table td{font-size:14px;padding:13px 14px}.v8-cluster-table td:first-child{min-width:218px}.v8-cluster-table td:first-child b{font-size:14px}.v8-cluster-table td:first-child small{display:block;color:#637a88;margin-top:4px;font-size:11px}
.v8-cluster-table td:nth-child(2){font-weight:850;color:#146e8b}.v8-cluster-table td:nth-child(3){font-weight:850;color:#102f41}.v8-cluster-table td:last-child{font-weight:850;color:#9a493b}.v8-cluster-table .v8-net-surplus{color:#12816b!important}
.v8-cluster-click{cursor:pointer}.v8-cluster-click:hover td,.v8-cluster-click:focus-visible td{background:#e4f2f4;outline:0}
.v8-fee-teaser{background:#e8f5f4;padding:15px 20px;border-radius:11px;line-height:1.5;margin:15px 0!important}.v8-fee-teaser a{font-weight:850;color:#0b7485}
.v8-debt-snapshot{padding:20px;background:#123f55;color:#fff;border-radius:14px;margin-bottom:15px}.v8-snapshot-header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:13px}.v8-snapshot-header>strong{font-size:20px}.v8-snapshot-header span{font-size:12px;color:#b7d7e3}
.v8-spark-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.v8-spark-card{background:#092c40;border:1px solid #356071;border-radius:10px;padding:13px}.v8-spark-top{display:flex;justify-content:space-between;gap:7px;align-items:baseline;flex-wrap:wrap}.v8-spark-top span{font-size:12px;color:#d4e7ef}.v8-spark-top strong{font-size:21px;color:#fff}.v8-spark-card svg{width:100%;height:75px;display:block}.v8-debt-snapshot .v8-data-note{color:#d3e4ed!important}
#incomeSheet .grant-summary{background:#fff;border:1px solid #dce6eb;border-radius:14px;padding:20px;box-shadow:none}
.v8-calc-income{background:#fff;margin:16px 0;border:1px solid #dce6eb;border-radius:12px;overflow:hidden}
.v8-income-top{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:21px;background:#103b50;color:#fff}.v8-income-top div{min-width:158px}.v8-income-top span{font-size:11px;letter-spacing:.1em;display:block;color:#d7eef5;font-weight:800}.v8-income-top strong{font-size:clamp(30px,3vw,43px);display:block;margin-top:3px}.v8-income-top p{max-width:370px;font-size:13px;line-height:1.55;margin:0;color:#e2eff5}
.v8-calcincome th,.v8-calcincome td{padding:12px 14px}.v8-calcincome td:nth-child(2){font-weight:800}.v8-calcincome td:nth-child(3){color:#627c8b;font-weight:700}.v8-calcincome td small{display:block;font-size:11px;color:#815d34;margin-top:3px}
.v8-income-callout{display:flex;gap:14px;align-items:center;flex-wrap:wrap;background:#e9f4f2;padding:14px 17px}.v8-income-callout span{color:#245b60;font-size:11px;font-weight:900;letter-spacing:.07em}.v8-income-callout strong{font-size:28px;color:#164758}.v8-income-callout p{font-size:12px;color:#355c63;flex:1 1 200px;margin:0;line-height:1.45}
.v8-grant-details{border:1px solid #d9e4e9;border-radius:12px;margin:15px 0;background:#f4f9fb}.v8-grant-details summary{cursor:pointer;padding:16px;display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap;color:#12394c}.v8-grant-details summary span{color:#5f7482}.v8-grant-body{padding:0 16px 16px;font-size:13px;line-height:1.55}.v8-grant-body a{color:#06758b;font-weight:800}
.v8-simple-note{border-left:4px solid #d3a55c;padding:11px 14px;background:#fff7e9;border-radius:6px;font-size:13px;line-height:1.55}.v8-simple-note p{margin:5px 0}.v8-simple-note a{color:#006b80}
.v8-mini-heading{font-size:20px!important;border-top:1px solid #deeaef;padding-top:23px;margin-top:25px!important;color:#103c4e!important}
.v8-fee-link{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#e9f5f7;padding:17px;border-radius:11px;margin-top:16px}.v8-fee-link strong{font-size:17px;color:#0f4154}.v8-fee-link p{font-size:13px;line-height:1.5;margin:5px 0;color:#466271}.v8-fee-button{background:#0a536c;color:white!important;border-radius:8px;padding:12px 17px;white-space:nowrap;font-size:13px;font-weight:850;text-decoration:none}
#applyFeesAll{background:#0c586b;color:#fff}
@media(max-width:1000px){.v8-revenue-layout{grid-template-columns:1fr}.v8-spark-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.v8-rev-main,.v8-rev-side>div{padding:17px}.v8-income-lead{grid-template-columns:1fr}.v8-income-top{display:block}.v8-income-top p{margin-top:8px}.v8-table th,.v8-table td{padding:12px 10px;font-size:12px}.v8-rev-table td:nth-child(2){font-size:14px}.v8-spark-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v8-spark-card{padding:9px}.v8-spark-top strong{font-size:17px}.v8-fee-link{display:block}.v8-fee-button{display:inline-block;margin-top:12px}.v8-snapshot-header{display:block}.v8-snapshot-header span{display:block;margin-top:5px}.v8-keyquote strong{font-size:32px}}

/* Table must override pre-v8 five-card grid */
#clusterSummary{display:block!important;width:100%;min-width:0!important}
#clusterSummary>.table-scroll{display:block;width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;border-radius:12px;border:1px solid #d7e5e9}
#clusterSummary .v8-cluster-table{min-width:890px;width:100%}
#clusterSummary>.v8-data-note{display:block;max-width:1100px;margin:12px 0!important}
#debt .v8-debt-snapshot{margin:26px 0 12px}

@media(max-width:650px){
 #clusterSummary>.table-scroll{border:0;border-radius:0;overflow:visible}
 #clusterSummary .v8-cluster-table{display:block;width:100%;min-width:0;background:transparent}
 #clusterSummary .v8-cluster-table thead{display:none}
 #clusterSummary .v8-cluster-table tbody{display:grid;grid-template-columns:1fr;gap:13px}
 #clusterSummary .v8-cluster-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 6px;background:#fff;border:1px solid #d5e5e9;border-radius:11px;padding:10px 10px 12px;overflow:hidden;box-shadow:0 3px 12px #183a4a09}
 #clusterSummary .v8-cluster-table td{display:block!important;text-align:left!important;white-space:normal!important;min-width:0!important;padding:9px 10px!important;border:0!important;line-height:1.4;font-size:15px}
 #clusterSummary .v8-cluster-table td:first-child{grid-column:1 / -1;border-bottom:1px solid #e3ecef!important;padding-bottom:13px!important;margin-bottom:4px}
 #clusterSummary .v8-cluster-table td:first-child b{font-size:16px}
 #clusterSummary .v8-cluster-table td:not(:first-child)::before{content:attr(data-label);display:block;font-size:10px;color:#607988;font-weight:900;text-transform:uppercase;letter-spacing:.04em;margin:0 0 4px}
 #clusterSummary .v8-cluster-table td:last-child{background:#ecf6f5;border-radius:7px}
}
