/* One page typeface, with named sizes for a consistent hierarchy. */
.insights-report{--report-font:"Space Grotesk",system-ui,sans-serif;--report-type-caption:.6rem;--report-type-small:.7rem;--report-type-body:.8rem;--report-type-heading:1rem;--report-type-section:1.2rem;--report-type-stat:1.6rem;--insights-chart-font-size:14;font-family:var(--report-font)}
.insights-report :is(button,input,select,summary,h1,h2,h3,h4,p,.model-pill){font-family:var(--report-font)}
/* Insights uses the original index.html stylesheet. These rules only adapt the new
   vignette and focused table components; no replacement theme or card palette. */
.insights-report{--gem:var(--public-accent-secondary);--mint:var(--aph-cooperate);--coral:var(--aph-attack);--neutral:var(--public-muted)}
.insights-report [hidden]{display:none!important}
.insights-report #standouts,.insights-report #charts,.insights-report #stories,.insights-report #compare{scroll-margin-top:110px}
html[data-theme=light] .insights-report .public-hero,html[data-theme=light] .insights-report .app-footer{background:var(--public-surface);color:var(--public-ink)}
.insights-report .public-hero-copy{max-width:65rem}
.insights-report .public-hero-copy>p{max-width:65rem}
.insights-report .report-scope,.insights-report .report-chart-heading,.insights-report .report-table-controls{display:flex;align-items:end;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.insights-report label{font-size:var(--report-type-small);color:var(--public-muted);margin:0}
.insights-report select,.insights-report input[type=search]{font-size:var(--report-type-body);padding:.45rem .7rem;height:auto;margin:.3rem 0 0;min-width:9rem}
.insights-report .report-scope{margin:1.2rem 0 .5rem}
.insights-report .report-scope p{margin:0}
.insights-report .form-note{line-height:1.55}
.insights-report .insights-standout__description{font-size:var(--report-type-small);line-height:1.5}
.insights-report .insights-standout{position:relative;display:grid;grid-template-rows:1.8em 2.8em 3em auto;align-content:start;gap:.25rem;padding:.85rem 1rem}
.insights-report .metric-card.insights-standout .insights-standout__model{align-self:start}
.insights-report .chart-card{min-width:0}
.insights-report #scatter-wrap{height:390px}
.insights-report .report-slope{height:220px}
.insights-report #fates-wrap{min-width:640px}
.insights-report .report-scroll{overflow-x:auto;max-width:100%}
.insights-report details{font-size:var(--report-type-body);margin:.8rem 0 0}
.insights-report summary{color:var(--public-accent);cursor:pointer}
.insights-report .report-table-controls{align-items:center;margin-bottom:.75rem;justify-content:flex-start}
.insights-report .report-search{margin-left:auto}
.insights-report .report-advanced{margin:0}
.insights-report .report-advanced>div{display:flex;gap:.7rem;flex-wrap:wrap;padding:.7rem;border:1px solid var(--public-line);margin-top:.5rem}
.insights-report .report-advanced .ui-button{align-self:end;font-size:var(--report-type-small)}
.insights-report .insights-table{min-width:0;table-layout:fixed;width:100%}
.insights-report .insights-table th,.insights-report .insights-table td{padding:.6rem .65rem;text-align:right;vertical-align:middle;font-variant-numeric:tabular-nums;border-right:0}
.insights-report .insights-table th{font-size:.72rem;letter-spacing:0;text-transform:none;word-break:normal;overflow-wrap:normal;max-width:none;line-height:1.4}
.insights-report .insights-table th:first-child,.insights-report .insights-table td:first-child{width:200px;min-width:200px;text-align:left;word-break:normal;overflow-wrap:normal}
.insights-report .insights-table td{font-size:.8rem;white-space:nowrap}
.insights-report .insights-table td:first-child{white-space:normal}
.insights-report .insights-table th:not(:first-child){width:auto;min-width:0;max-width:none}
.insights-report .insights-table button{display:inline;padding:0;border:0;margin:0;background:none;box-shadow:none;font:inherit;color:inherit;width:auto;line-height:inherit;border-radius:0}
.insights-report .insights-table th button{width:100%;text-align:right;color:var(--public-accent)}
.insights-report .insights-table th:first-child button{text-align:left}
.insights-report .insights-table .model-pill{font-size:.74rem;line-height:1.45;white-space:normal;word-break:normal;overflow-wrap:normal}
.insights-report .insights-table .report-detail-row td{position:static;background:var(--public-surface-muted);white-space:normal;text-align:left;padding:1rem}
.insights-report .report-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;margin:.6rem 0;font-size:var(--report-type-small)}
.insights-report .report-detail-grid p{margin:0}
.insights-report .report-evidence{padding:.75rem 1rem;margin-top:.75rem;border-left:3px solid var(--public-accent);background:var(--public-surface-muted);font-size:var(--report-type-body);line-height:1.6}
.insights-report .insights-table .report-evidence-row td{position:static;white-space:normal;text-align:left;padding:.75rem 1rem;border-left:3px solid var(--public-accent);background:var(--public-surface-muted);font-size:.78rem;line-height:1.6}
.insights-report .report-table-help{margin-top:1rem}
.insights-report .small-table{width:100%;font-size:var(--report-type-small)}
.insights-report .small-table td,.insights-report .small-table th{padding:.5rem;border-bottom:1px solid var(--public-line);font-variant-numeric:tabular-nums;text-align:right}
.insights-report .small-table td:first-child,.insights-report .small-table th:first-child{text-align:left}
.insights-report #fates-data table{min-width:1300px}
.insights-report .report-story-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:1rem}
.insights-report .report-story-menu{display:flex;flex-direction:column;gap:.5rem;align-items:stretch;justify-content:flex-start}
.insights-report .report-story-menu button{font:inherit;font-size:var(--report-type-body);line-height:1.4;color:var(--public-ink);text-align:left;margin:0;width:100%;box-shadow:none}
.insights-report .report-story-menu small{font-size:var(--report-type-caption);color:var(--public-muted)}
.insights-report #story-panel{margin:0}
.insights-report .story-kicker{color:var(--public-accent);font-size:var(--report-type-caption);letter-spacing:.12em}
.insights-report .story-intro,.insights-report .takeaway{font-size:var(--report-type-body);line-height:1.6}
.insights-report .story-select{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:1rem 0}
.insights-report .story-select select{max-width:65%}
.insights-report .root-node{display:flex;align-items:center;justify-content:center;gap:1rem;padding:1rem;border:1px solid var(--public-line);background:var(--public-surface-muted)}
.insights-report .root-node strong{font-size:var(--report-type-stat)}
.insights-report .root-node p{margin:0;font-size:var(--report-type-body)}
.insights-report .muted{color:var(--public-muted)}
.insights-report .route-branches{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:1.4rem 0 1rem}
.insights-report .route-branches:before{content:'';position:absolute;left:25%;right:25%;top:-.8rem;height:.8rem;border:1px solid var(--public-line);border-bottom:0}
.insights-report .route-branches:after{content:'';position:absolute;left:50%;top:-1.4rem;height:.6rem;border-left:1px solid var(--public-line)}
.insights-report .route-branch{border:1px solid var(--public-line);padding:1rem;min-width:0}
.insights-report .route-branch.gem{border-color:var(--public-accent-secondary)}
/* Continue the Sword-pickup branch from the left parent, keeping both rows aligned. */
.insights-report .sword-baseline-branches{margin-bottom:0}
.insights-report .sword-followup{position:relative;padding-top:1.2rem}
.insights-report .sword-followup:before{content:'';position:absolute;left:calc(25% - .25rem);top:0;height:1.2rem;border-left:1px solid var(--public-line)}
.insights-report .sword-followup-context{width:calc(50% - .5rem);text-align:center;padding:.6rem 0}
.insights-report .sword-followup-context p{font-size:var(--report-type-small);line-height:1.6;margin:0}
.insights-report .sword-followup-context p+p{margin-top:.4rem}
.insights-report .sword-outcomes:after{left:calc(25% - .25rem)}
.insights-report .sword-outcomes:before{left:calc(25% - .25rem);right:calc(25% - .25rem)}
@media(max-width:560px){.insights-report .sword-followup:before{display:none}.insights-report .sword-followup-context{width:100%;text-align:left;border-left:2px solid var(--public-accent-secondary);padding:.5rem .7rem}}
.insights-report .branch-heading{display:flex;align-items:center;gap:.75rem;font-size:var(--report-type-body)}
.insights-report .branch-heading strong{font-size:var(--report-type-stat)}
.insights-report .branch-description{font-size:var(--report-type-small);color:var(--public-muted);min-height:3em;margin:.4rem 0 1rem}
.insights-report .bar-label{display:flex;align-items:start;justify-content:space-between;gap:.6rem;font-size:var(--report-type-small);margin-top:.6rem}
.insights-report .bar-label b{white-space:nowrap}
.insights-report .bar-track{height:7px;background:var(--public-line);margin:.4rem 0 1rem}
.insights-report .bar-fill{height:100%;background:var(--mint)}
.insights-report .bar-fill.gem{background:var(--gem)}
.insights-report .bar-fill.coral{background:var(--coral)}
.insights-report .bar-fill.neutral{background:var(--neutral)}
.insights-report .story-detail{border-top:1px solid var(--public-line);padding-top:.8rem}
.insights-report .story-detail p,.insights-report .fineprint{font-size:var(--report-type-small);color:var(--public-muted);line-height:1.6}
.insights-report .tiny-bar{display:none}
.insights-report .legend{display:flex;gap:1rem;flex-wrap:wrap;font-size:var(--report-type-small);margin:1rem 0}
.insights-report .legend i{display:inline-block;width:.6rem;height:.6rem;margin-right:.3rem}
.insights-report .compare-row h4{font-size:var(--report-type-body);margin:1rem 0 .4rem}
.insights-report .compare-row p{font-size:var(--report-type-small);color:var(--public-muted)}
.insights-report .stacked-bar{height:20px;display:flex;background:var(--public-line)}
.insights-report .empty-panel{padding:1rem 0;font-size:var(--report-type-body)}
.insights-report .report-skip{position:absolute;top:-100px}.insights-report .report-skip:focus{top:0;z-index:20;background:var(--public-surface);padding:1rem}
.insights-report button:focus-visible,.insights-report select:focus-visible,.insights-report summary:focus-visible{outline:2px solid var(--public-accent);outline-offset:3px}
@media(max-width:960px){.insights-report :is(#standouts,#charts,#stories,#compare){scroll-margin-top:160px}.insights-report .report-story-layout{grid-template-columns:1fr}.insights-report .report-story-menu{display:grid;grid-template-columns:1fr 1fr}.insights-report .insights-table{min-width:700px}}
@media(max-width:560px){.insights-report .public-shell:not(.public-shell--landing){padding:1rem}.insights-report .report-scope{align-items:start}.insights-report .report-scope label{width:100%}.insights-report .report-scope select{width:100%}.insights-report .report-chart-heading{display:block}.insights-report .report-chart-heading label{display:block}.insights-report .report-table-controls{gap:.6rem}.insights-report .report-search{margin-left:0;flex:1}.insights-report .report-search input{width:100%;min-width:0}.insights-report .report-advanced{width:100%}.insights-report #scatter-wrap{height:310px}.insights-report .route-branches{grid-template-columns:1fr}.insights-report .route-branches:before,.insights-report .route-branches:after{display:none}.insights-report .report-story-menu button{padding:.65rem;font-size:.75rem}.insights-report .report-detail-grid{grid-template-columns:1fr 1fr}.insights-report .bar-label{font-size:.7rem}.insights-report .branch-description{min-height:0}}

/* Original theme and components, with a shared masthead and consistent rhythm. */

.insights-report .report-hero{display:grid;grid-template-columns:1.6fr 1fr;gap:2rem;align-items:center;padding:2rem 0;border:0;background:none}
.insights-report .report-hero h2{font-size:clamp(2rem,3.7vw,3rem);line-height:1.15;letter-spacing:-.04em;margin-bottom:1rem}
.insights-report .report-hero h2 span{color:var(--public-accent)}
.insights-report .report-hero p{font-size:var(--report-type-body);line-height:1.65;margin-bottom:0}
.insights-report .report-hero .landing-eyebrow{font-size:var(--report-type-caption);margin-bottom:.9rem}
.insights-report .report-field-note{border-left:1px solid var(--public-line);padding-left:1.5rem}
.insights-report .report-field-note .form-note{font-size:var(--report-type-small);margin-top:.7rem}
.insights-report .report-metadata{border-block:1px solid var(--public-line);padding:.85rem 0;margin:0}
.insights-report .report-metadata>p{margin:0 0 .3rem}
.insights-report .report-metadata .insights-sample{font-size:var(--report-type-body);line-height:1.6}
.insights-report .report-metadata details{margin:.25rem 0 0;font-size:var(--report-type-caption)}
.insights-report .report-metadata summary{margin:0}
.insights-report .report-metadata details p{margin:.5rem 0 0}
.insights-report .report-section-nav{display:flex;flex-wrap:wrap;gap:.6rem 1.3rem;padding:1rem 0 0;font-size:var(--report-type-small)}
.insights-report .public-band{margin:0;padding:1.6rem 0 0}
.insights-report .panel-header{display:block;margin:0 0 .85rem;padding:0}
.insights-report .panel-header h2{font-size:var(--report-type-section);margin:0 0 .25rem}
.insights-report .panel-header p{font-size:var(--report-type-small);margin:0}
.insights-report .metric-card.insights-standout .insights-standout__byline{font-size:var(--report-type-caption);letter-spacing:.05em;line-height:1.45;padding-right:.8rem}
.insights-report .metric-card.insights-standout .insights-standout__quip{font-size:var(--report-type-heading);line-height:1.3;letter-spacing:-.02em}
.insights-report .metric-card.insights-standout .insights-standout__value{font-size:var(--report-type-body);line-height:1.35;margin:0}
.insights-report .insights-standout__value small{display:block;font-size:var(--report-type-caption);color:var(--public-muted);margin-top:.15rem}
.insights-report .metric-card.insights-standout .insights-standout__model{margin:0}
.insights-report .insights-standout__model .model-pill{font-size:var(--report-type-caption);white-space:normal}
.insights-report .report-card-info{position:absolute;right:.55rem;top:.55rem;background:none;border:0;box-shadow:none;width:1rem;height:1rem;padding:0;margin:0;color:var(--public-muted);font-size:var(--report-type-small)}
.insights-report .report-card-explanation{grid-column:1/-1;font-size:var(--report-type-caption);line-height:1.55;margin:.6rem 0 0;border-top:1px solid var(--public-line);padding-top:.5rem}
.insights-report .insights-charts-band{display:block}
.insights-report .insights-charts-band .chart-card{margin:0 0 1rem;padding:1rem;gap:.65rem}
.insights-report .chart-card .form-note{margin:0;font-size:var(--report-type-small)}
.insights-report .report-chart-filter{display:flex;align-items:center;justify-content:flex-start;gap:.75rem;align-self:flex-start;width:auto}
.insights-report .report-chart-filter select{width:auto;max-width:100%;margin:0}
.insights-report .story-select{justify-content:flex-start;gap:.75rem}
.insights-report .story-select select{width:auto;max-width:100%}
.insights-report #story-panel{padding:1rem;border:1px solid var(--public-line);border-radius:.28rem}
.insights-report #story-panel h3{font-size:var(--report-type-heading);margin:.4rem 0 .65rem}
.insights-report .report-table-toolbar{display:grid;gap:.9rem;margin-bottom:.85rem}
.insights-report .report-table-filters{display:flex;align-items:end;gap:.8rem;flex-wrap:wrap}
.insights-report .report-table-filters label{flex:1;min-width:150px}
.insights-report .report-table-filters .ui-button{margin:0;font-size:.7rem;padding:.45rem .7rem}
.insights-report .report-columns{border:0;padding:0;margin:0 0 .85rem;display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
.insights-report .report-columns legend{font-size:.65rem;color:var(--public-muted);padding:0;margin-bottom:.4rem}
.insights-report #column-options{display:flex;gap:.6rem 1rem;flex-wrap:wrap}
.insights-report #column-options label{display:flex;align-items:center;gap:.35rem;font-size:.7rem}
.insights-report #column-options input{margin:0;width:.8rem;height:.8rem}
.insights-report .report-columns .ui-button{font-size:.65rem;padding:.2rem .4rem;margin:0}
.insights-report .insights-table td,.insights-report .insights-table th{padding:.5rem .55rem}
.insights-report .insights-table-shell{max-width:100%;overflow:auto}
.insights-report .insights-table th:first-child,.insights-report .insights-table td:first-child{position:sticky;left:0;z-index:1;background:var(--public-surface)}
.insights-report .insights-table .model-pill{font-size:.65rem}
.insights-report .insights-table .report-evidence-row td{position:static}
.insights-report .app-footer{margin-top:2rem}
@media(max-width:800px){.insights-report .report-hero{grid-template-columns:1fr;gap:1rem}.insights-report .report-field-note{border-left:0;border-top:1px solid var(--public-line);padding:1rem 0 0}}
@media(max-width:560px){.insights-report .report-hero{padding:1.5rem 0}.insights-report .report-chart-filter{display:block;width:100%}.insights-report .report-chart-filter select{display:block;width:100%;min-width:0;margin-top:.3rem}.insights-report .story-select{display:block}.insights-report .story-select select{display:block;width:100%;margin-top:.3rem}.insights-report .report-table-filters label{min-width:100%;width:100%}.insights-report .public-band{padding-top:1.4rem}.insights-report .report-section-nav{gap:.6rem 1rem}.insights-report .insights-table th:first-child,.insights-report .insights-table td:first-child{width:165px;min-width:165px}}

.insights-report .report-section-nav{justify-content:flex-start}
.insights-report .public-band{padding:1rem;gap:.75rem}
.insights-report .panel-header{margin:0}
.insights-report .insights-standout{grid-template-rows:1.1rem 2.2rem 2.2rem auto;margin:0;padding:.75rem .9rem;gap:.2rem}
.insights-report .insights-group-row{justify-content:flex-start;gap:.4rem}
.insights-report .insights-group-row .mode-summary-card{flex:none;width:auto;min-width:5rem;padding:.45rem .8rem;font-size:.72rem;gap:0}
.insights-report .report-table-toolbar{gap:.7rem;margin:0}
.insights-report .report-columns{margin:0}
.insights-report #table-note{margin:0;font-size:.7rem}
@media(max-width:560px){.insights-report .public-band{padding:.8rem}.insights-report .insights-standout{grid-template-rows:1.1rem 2.2rem 2.4rem auto}.insights-report .insights-group-row .mode-summary-card{min-width:0;flex:1;padding:.4rem .5rem}}

@media(max-width:560px){.insights-report .insights-group-row{display:grid;grid-template-columns:1fr 1fr}.insights-report .insights-group-row .mode-summary-card{width:100%;white-space:nowrap}}

.insights-report .public-hero.report-hero,html[data-theme=light] .insights-report .public-hero.report-hero{background:transparent;box-shadow:none}

/* Give each title a deliberate inset and separate the heading from its content. */
.insights-report .public-band{padding:1.4rem;gap:1rem}
.insights-report .panel-header{display:grid;gap:.4rem;padding:0;margin:0}
.insights-report .panel-header h2{margin:0;line-height:1.3;font-weight:700}
.insights-report .panel-header p{margin:0;font-size:var(--report-type-body);line-height:1.5}
.insights-report .insights-charts-band{display:flex;flex-direction:column;gap:1rem}
.insights-report .insights-charts-band .chart-card{margin:0;padding:1.2rem;gap:.8rem}
.insights-report .insights-charts-band .chart-card h3{font-size:var(--report-type-heading);line-height:1.4;margin:0}
.insights-report .report-chart-heading{display:block;margin:0;padding:0}
.insights-report .insights-charts-band .slope-panel h4{font-size:var(--report-type-body);line-height:1.5;margin:0 0 .4rem}
.insights-report #story-panel{display:flex;flex-direction:column;gap:.8rem;padding:1.2rem}
.insights-report .report-story-heading{display:grid;gap:.5rem;margin:0;padding:0}
.insights-report .report-story-heading .story-kicker{font-size:var(--report-type-caption);line-height:1.5;margin:0}
.insights-report #story-panel h3{font-size:var(--report-type-heading);line-height:1.4;margin:0}
.insights-report .report-story-heading .story-intro{font-size:var(--report-type-body);line-height:1.6;margin:0}
.insights-report .story-select{margin:0 0 .4rem}
.insights-report .story-select select{margin:0}
.insights-report .branch-description{line-height:1.6;min-height:3.2em}
.insights-report .bar-label{font-size:var(--report-type-small);line-height:1.5}
.insights-report .takeaway{margin:0;line-height:1.6}
.insights-report .story-detail{margin:0;padding-top:.8rem}
.insights-report .story-detail summary{margin:0;font-size:var(--report-type-small);line-height:1.5}
.insights-report .story-detail p{margin:.7rem 0 0}
.insights-report .metric-card.insights-standout .insights-standout__quip{margin:0}
.insights-report .insights-standout{padding:.9rem;grid-template-rows:1.1rem 2.2rem 2.2rem auto}
.insights-report .report-story-menu button{font-size:var(--report-type-body);padding:.8rem;gap:.3rem}
.insights-report .report-story-menu small{font-size:var(--report-type-small);line-height:1.5}
/* Keep the approved comparison table's inset and controls. */
.insights-report #compare{padding:1rem;gap:.75rem}
@media(max-width:560px){.insights-report .public-band{padding:1rem}.insights-report #compare{padding:.8rem}.insights-report .insights-charts-band .chart-card,.insights-report #story-panel{padding:.9rem}.insights-report .branch-description{min-height:0}.insights-report .bar-label{flex-wrap:wrap;gap:.2rem .6rem}.insights-report .story-select select{margin-top:.4rem}.insights-report .report-story-menu button{font-size:var(--report-type-small);padding:.65rem}}

.insights-report .report-dataset-heading{display:flex;justify-content:space-between;align-items:center;gap:1rem}.insights-report .report-dataset-heading p{margin:0}.insights-report #corpus-control{display:flex;align-items:center;gap:.6rem}.insights-report #corpus-control select{width:auto;margin:0}.insights-report #collection-status{font-size:var(--report-type-small);margin:.3rem 0 0}
@media(max-width:560px){.insights-report .report-dataset-heading{align-items:flex-start;flex-direction:column;margin-bottom:.6rem}}
