/* Both result presentations share the existing toolbar, charts and tokens. */
.thematic-results[hidden],.single-page-prototype__question[hidden] {display:none!important;}
.thematic-results {min-width:0;--story-ink:var(--ui-ink,var(--color-ink));--story-muted:var(--ui-muted,var(--color-muted));--story-blue:var(--ui-accent,var(--color-accent));}
.thematic-results__topic,.thematic-results__conclusion {position:relative;margin:2.5rem 0;padding-top:2rem;border-top:1px solid var(--color-rule,var(--ui-rule));scroll-margin-top:var(--single-page-anchor-offset,3rem);}
.thematic-results__kicker {color:var(--color-muted,var(--ui-muted));font-size:.8rem;margin:0 0 .5rem;}
.thematic-results__topic>h2,.thematic-results__conclusion>h2 {font:400 clamp(1.6rem,3vw,2.4rem)/1.15 var(--font-serif);margin:.3rem 0 1rem;}
.thematic-results__description,.thematic-results__scope {color:var(--color-muted,var(--ui-muted));font-size:.85rem;max-width:75ch;}
.thematic-results__metrics {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:1rem;margin:1.5rem 0;}
.thematic-results__group-metric {grid-template-columns:minmax(0,24rem);margin:.75rem 0 1.25rem;}
/* Composite cards follow the shared filters; a comparison adds one row per group. */
.thematic-results .story-composite-summary__status {margin:.8rem 0;color:var(--color-muted,var(--ui-muted));font-size:.95rem;}
.thematic-results .story-composite-summary__groups {list-style:none;margin:.9rem 0 0;padding:.75rem 0 0;border-top:1px solid var(--color-rule,var(--ui-rule));display:grid;gap:.45rem;font-size:.85rem;}
.thematic-results .story-composite-summary__group {display:grid;grid-template-columns:minmax(0,1fr) 3.2em;column-gap:.6rem;row-gap:.15rem;align-items:center;}
.thematic-results .story-composite-summary__group-label {grid-column:1/-1;min-width:0;overflow-wrap:break-word;}
.thematic-results .story-composite-summary__track {position:relative;height:.375rem;border-radius:.2rem;background:var(--color-rule,var(--ui-rule));}
.thematic-results .story-composite-summary__track>i {position:absolute;top:50%;width:.625rem;height:.625rem;border-radius:50%;background:var(--color-accent,var(--ui-accent));transform:translate(-50%,-50%);}
.thematic-results .story-composite-summary__group-value {text-align:right;font-weight:600;font-variant-numeric:tabular-nums;}
.thematic-results .story-composite-summary__group-n {color:var(--color-muted,var(--ui-muted));font-size:.75rem;white-space:nowrap;}
.thematic-results .story-composite-summary__group:not([data-group-status="available"]) .story-composite-summary__group-value {color:var(--color-muted,var(--ui-muted));font-weight:400;}
.thematic-results .story-composite-summary__group[hidden] {display:none;}
.thematic-results .story-composite-summary__toggle {margin-top:.6rem;min-height:44px;padding:.4rem .8rem;border:1px solid var(--color-rule,var(--ui-rule));border-radius:var(--ui-radius,.5rem);background:transparent;color:var(--color-accent,var(--ui-accent));font:inherit;font-size:.85rem;cursor:pointer;}
.thematic-results .story-composite-summary__toggle:focus-visible {outline:3px solid var(--color-focus);outline-offset:2px;}
.thematic-results__heatmap {margin-top:1rem;border-top:1px solid var(--color-rule,var(--ui-rule));}
.thematic-results__heatmap>summary {cursor:pointer;padding:.75rem 0;font-weight:600;}
.thematic-results .story-composite-summary {min-height:0;padding:1.1rem;border-left:3px solid var(--color-accent,var(--ui-accent));background:var(--ui-surface-soft,var(--color-surface-soft));}
.thematic-results .story-composite-summary__eyebrow {font:500 .8rem/1.4 var(--font-sans);letter-spacing:0;text-transform:none;}
.thematic-results .story-composite-summary__value {font:500 clamp(3rem,6vw,4.5rem)/1.05 var(--font-sans);margin:.8rem 0;letter-spacing:-.04em;}
.thematic-results .story-composite-summary__scale {font:400 .9rem/1.4 var(--font-sans);}
.thematic-results .story-composite-summary__detail {font-size:.78rem;margin:.8rem 0 0;}
.thematic-results__group {margin:2rem 0;scroll-margin-top:var(--single-page-anchor-offset,3rem);}
.thematic-results__group>h3 {font:500 1.15rem/1.35 var(--font-sans);margin:0 0 1rem;}
.thematic-results__sources {display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;margin:.75rem 0;color:var(--color-muted,var(--ui-muted));font-size:.8rem;}
.thematic-results__sources a {text-underline-offset:.2em;}
.thematic-results__status {padding:1rem 0;color:var(--color-muted,var(--ui-muted));}
.thematic-results__finding {max-width:70ch;margin:1.5rem 0;}
.thematic-results__finding h3 {font:400 clamp(1.4rem,2.4vw,1.9rem)/1.2 var(--font-serif);margin:.5rem 0;}
.thematic-results__more {display:inline-block;margin:1rem 0;font-weight:500;text-underline-offset:.25em;}
.story-anchor-alias {display:block;position:absolute;top:0;scroll-margin-top:3rem;}
.thematic-results--story .analysis-view__statement h3 {font:500 1rem/1.45 var(--font-sans);}
.thematic-results--story .thematic-results__topic {margin-top:5rem;}
.thematic-results--story .thematic-results__scope {margin-bottom:1rem;}
@media(max-width:600px){.thematic-results__topic {margin-top:2rem;}.thematic-results__group {margin:1.5rem 0;}}
.thematic-results__item-source {display:block;margin:.35rem 0;font:400 .75rem/1.4 var(--font-sans);text-underline-offset:.2em;color:var(--color-muted,var(--ui-muted));}
.thematic-results__findings>section {margin:1.5rem 0;max-width:70ch;}
.thematic-results__findings h3 {font:500 1.1rem/1.4 var(--font-sans);}
.story__scope-note {max-width:65ch;font-size:.9rem;color:var(--ui-muted,var(--color-muted));margin-top:1rem;}
.thematic-results .story-composite-education {margin:2rem 0;}
.thematic-results .story-composite__list {padding-left:0;}
/* The title identifies the page before its data tools. */
html.site-shell .single-page-prototype>.single-page-prototype__toolbar {top:var(--site-navigation-height);}
html.site-shell .single-page-prototype>.single-page-prototype__toolbar-handle {top:var(--site-navigation-height);margin-left:0;width:100%;}
html.site-shell .single-page-prototype>.single-page-prototype__toolbar {margin-bottom:1.5rem;}
@media(max-width:600px){html.site-shell .single-page-prototype>.single-page-prototype__toolbar {top:calc(var(--site-navigation-height) + 44px);}}

.results-composite-profile {margin-block:1rem 2rem;min-width:0;}
.results-composite-profile__metric {border-top:1px solid var(--color-rule);padding:.8rem 0;}
.results-composite-profile__metric h4 {margin:0 0 .4rem;}
.results-composite-profile__metric > a {font-size:.875rem;}
.results-composite-profile__metric details {margin:.25rem 0 0;}
.results-composite-profile__rows {margin:0 0 .5rem;padding:0;list-style:none;}
.results-composite-profile__rows li {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.16rem .5rem;padding:.3rem 0;font-size:.875rem;}
.results-composite-profile__rows li > :nth-child(2) {text-align:end;font-variant-numeric:tabular-nums;}
.results-composite-profile__rows li[data-reference] {color:var(--color-muted);}
.results-composite-profile__rows li[data-reference] i {background:var(--color-surface);border:1px solid var(--color-muted);}
.responsibility-heatmap__chart a:focus-visible {outline:2px solid var(--color-focus);}

:is(.results-composite-profile__axis,.story-comparison__axis) {position:relative;height:1.1rem;margin:.45rem .45rem .1rem;color:var(--color-muted);font-size:.75rem;font-variant-numeric:tabular-nums;}
:is(.results-composite-profile__axis,.story-comparison__axis) > span {position:absolute;translate:-50% 0;}
:is(.results-composite-profile__axis,.story-comparison__axis) > span:nth-child(1) {left:0;}
:is(.results-composite-profile__axis,.story-comparison__axis) > span:nth-child(2) {left:20%;}
:is(.results-composite-profile__axis,.story-comparison__axis) > span:nth-child(3) {left:40%;}
:is(.results-composite-profile__axis,.story-comparison__axis) > span:nth-child(4) {left:60%;}
:is(.results-composite-profile__axis,.story-comparison__axis) > span:nth-child(5) {left:80%;}
:is(.results-composite-profile__axis,.story-comparison__axis) > span:nth-child(6) {left:100%;}
/* Shared 1–6 axis and the point tracks must span the same width. */
.results-composite-profile :is(.results-composite-profile__axis,.results-composite-profile__rows) {max-width:44rem;}

/* Composite gauges in story stages (composite-gauge.js). */
.theme-story__gauges {display:grid;gap:.75rem;margin:1rem 0 .5rem;}
.theme-story__gauges[hidden] {display:none;}
.composite-gauge {margin:0;padding:.75rem 0;border-top:1px solid var(--color-rule);}
.composite-gauge__caption {display:flex;flex-wrap:wrap;justify-content:space-between;gap:.15rem .75rem;margin-bottom:.45rem;}
.composite-gauge__name {font:650 .95rem/1.3 var(--font-sans);color:var(--color-ink);}
.composite-gauge__scale {font-size:.78rem;color:var(--color-muted);}
.composite-gauge__body {display:flex;align-items:center;gap:1rem;}
.composite-gauge__ring {flex:none;}
.composite-gauge__track {stroke:var(--color-rule);}
.composite-gauge__value {font:700 1.45rem/1 var(--font-sans);fill:var(--color-ink);font-variant-numeric:tabular-nums;}
.composite-gauge__legend {list-style:none;margin:0;padding:0;display:grid;gap:.35rem;min-width:0;font-size:.85rem;max-width:none;}
.composite-gauge__legend li {display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:.45rem;align-items:baseline;}
.composite-gauge__legend li:not(:has(.composite-gauge__swatch)) {grid-template-columns:minmax(0,1fr);}
.composite-gauge__swatch {width:.7rem;height:.7rem;border-radius:50%;align-self:center;}
.composite-gauge__label {color:var(--color-ink);}
.composite-gauge__number {grid-column:-2;color:var(--color-muted);font-variant-numeric:tabular-nums;}
.composite-gauge__status {margin:.25rem 0;font-size:.85rem;color:var(--color-muted);font-style:italic;}
.composite-gauge__points .story-comparison__points li {font-size:.82rem;}

/* Mean heatmap: groups × measures or uses on the fixed 1–6 scale. */
.mean-heatmap {margin:.75rem 0;}
.mean-heatmap__scroller {overflow-x:auto;}
.mean-heatmap table {border-collapse:separate;border-spacing:3px;font-size:.82rem;width:100%;max-width:48rem;table-layout:fixed;}
.mean-heatmap thead th:first-child {width:28%;}
.mean-heatmap caption {text-align:start;font-weight:650;padding-bottom:.35rem;}
.mean-heatmap thead th {font-weight:600;color:var(--color-muted);text-align:center;padding:.2rem .25rem;vertical-align:bottom;line-height:1.2;}
.mean-heatmap thead th:first-child {text-align:start;}
.mean-heatmap tbody th {text-align:start;font-weight:500;padding:.25rem .4rem .25rem 0;line-height:1.2;}
.mean-heatmap__n {display:block;font-size:.72rem;color:var(--color-muted);font-weight:400;}
.mean-heatmap td {vertical-align:middle;text-align:center;font-weight:650;font-variant-numeric:tabular-nums;min-width:3.1rem;height:2.1rem;border-radius:3px;}
.mean-heatmap td[data-status] {background:var(--color-surface-soft);color:var(--color-muted);font-weight:400;}
.mean-heatmap__link {cursor:pointer;}
.mean-heatmap__link:hover {outline:2px solid var(--color-ink);outline-offset:-2px;}
.mean-heatmap__link:focus-visible {outline:2px solid var(--color-focus);outline-offset:1px;}
.mean-heatmap__legend {display:flex;align-items:center;gap:.4rem;margin-top:.5rem;font-size:.75rem;color:var(--color-muted);}
.mean-heatmap__gradient {display:inline-block;width:8rem;height:.55rem;border-radius:2px;}

/* Intelligent TPACK radar. */
.thematic-results__tpack {min-width:0;}
.tpack-profile {margin:0 0 1rem;}
.tpack-profile__title {font:650 1rem/1.3 var(--font-sans);}
.tpack-profile__note {margin:.2rem 0 .5rem;font-size:.82rem;color:var(--color-muted);max-width:60ch;}
.tpack-profile__radar {display:block;max-width:100%;height:auto;overflow:visible;}
.tpack-profile__grid {fill:none;stroke:var(--color-rule);stroke-width:1;}
.tpack-profile__spoke {stroke:var(--color-rule-strong);stroke-width:1;}
.tpack-profile__axis {font:650 12px var(--font-sans);fill:var(--color-ink);}
.tpack-profile__tick {font:10px var(--font-sans);fill:var(--color-muted);}
.tpack-profile__shape {fill-opacity:.14;stroke-width:2;stroke-linejoin:round;}
.tpack-profile__legend {margin-top:.4rem;}
.tpack-profile__exact {margin-top:.5rem;font-size:.85rem;}

.visually-hidden {position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;}

.composite-gauge__more {margin:.35rem 0 0;padding:.3rem .1rem;min-height:44px;border:0;background:none;color:var(--color-accent);font:600 .85rem/1.2 var(--font-sans);cursor:pointer;}
.composite-gauge__points .story-comparison__points li {padding:.22rem 0;}
.composite-gauge__points .story-comparison__points li[hidden] {display:none;}
.tpack-profile__axis-value {font:500 12px var(--font-sans);fill:var(--color-muted);font-variant-numeric:tabular-nums;}

/* Narrow screens: the bottom bar's contents sheet lists the story stages, so the
   in-page stage links are omitted, a stage's single group repeats no heading,
   and vertical spacing is tightened to reach the first statement chart sooner. */
@media (width < 1008px) {
 .single-page-prototype :is(.theme-story__steps,.q24-theme-story__steps) {display:none;}
 .theme-story__step {padding:.6rem 0;}
 .theme-story__heading {margin-bottom:.35rem;}
 .theme-story__description {margin:0 0 .4rem;}
 .theme-story__gauges {margin:.5rem 0 .25rem;gap:.4rem;}
 .composite-gauge {padding:.45rem 0;}
 .composite-gauge__ring {width:92px;height:92px;}
 .composite-gauge__caption {margin-bottom:.25rem;}
 .theme-story__content:not(:has(> .thematic-results__group ~ .thematic-results__group)) > .thematic-results__group > h4 {display:none;}
 .tpack-profile__note {margin:.1rem 0 .25rem;font-size:.78rem;}
 .thematic-results__topic > .thematic-results__description {margin-bottom:.4rem;}
}
